npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@1c2c/cli

v0.4.0

Published

Unified OCTC CLI: octc sync agents, octc verify monorepo (ADR-0003), octc init workspace|app, octc add|sync surface, octc sync governance, octc portfolio suggest.

Downloads

746

Readme

@1c2c/cli

Unified OCTC command-line entry point (@1c2c/cli · v0.3+). Agent flows delegate to octc-agents; monorepo / superficies / gobernanza / sugerencias de PORTFOLIO viven en el mismo binario (octc verify monorepo, octc add|sync surface, octc sync governance, octc portfolio suggest — ver ADR-0003).

Install

pnpm add -D @1c2c/cli

Or run without installing:

npx @1c2c/cli --help

Usage

# Preferred (P3-3 umbrella)
npx @1c2c/cli sync agents
npx @1c2c/cli sync agents --target ./some-repo

# Monorepo / governance (ADR-0003, ≥ 0.2)
npx @1c2c/cli verify monorepo
npx @1c2c/cli verify monorepo --cwd ./some-repo

# Stubs y plantillas empaquetadas (≥ 0.3)
npx @1c2c/cli add surface web
npx @1c2c/cli sync surface web --dry-run
npx @1c2c/cli sync surface --all --force
npx @1c2c/cli sync governance --only doc-contract
npx @1c2c/cli portfolio suggest --repo my-product

# *-workspace bootstrap (files on disk only; does not create GitHub repo or PORTFOLIO)
npx @1c2c/cli init workspace ./my-workspace --pin <SHA>
# *-app public-safe scaffold (same limits; --pin optional for portfolio dispatch callable)
npx @1c2c/cli init app ./my-app

# Shorthand
npx @1c2c/cli agents verify
npx @1c2c/cli agents init --force

Plantilla YAML monorepo: en el repo publicado templates/monorepo/monorepo.yaml.example; copia a .octc/monorepo.yaml en tu producto.

init workspace / init app

  • octc init workspace <dir> — Materializa el árbol estándar *-workspace (paridad con octc-platform-internal templates/workspace-repo). Opciones: --force, --pin <SHA> (mismo valor en uses: y tooling_ref del wrapper generado), --template-dir <path>. No crea repo en GitHub ni configuración org; ver runbook interno.
  • octc init app <dir> — Scaffold templates/product: contrato -app en disco (p. ej. .octc/monorepo.yaml, workflow portfolio dispatch). --pin opcional para el callable de portfolio; por defecto main si la plantilla usa placeholder. No sustituye NEW_PRODUCT_REPO para rulesets/secretos.

Why this package?

  • octc verify monorepo, octc add surface, octc sync surface, octc sync governance, octc portfolio suggest — ver ADR-0003 y PORTFOLIO_BRIDGE. Matriz de superficies pensada para repos *-app (REFERENCE_PRODUCT_MONOREPO). Roadmap: automatizar PR a internal solo con credenciales org.
  • @1c2c/agent-templates remains the implementation for agent file sync; this package pins it as a dependency.

Provenance

Published with npm provenance from CI. Verify in consumers:

pnpm dlx audit-signatures || npm audit signatures

Policy: docs/packages/POLICY.md.

First publish (maintainers)

The package must exist on npm before npx @1c2c/cli works for consumers. If it is not created yet:

  1. Ensure packages/cli/package.json version is correct (e.g. 0.1.0).
  2. From repo root, with NPM_TOKEN in ./.env (classic or granular token with publish rights to @1c2c), run:
    bash scripts/publish-cli-manual.sh
    The script uses a temporary .npmrc with only the token so a previous npm login in your user profile does not trigger the browser / device flow. If publish still asks for OTP: bash scripts/publish-cli-manual.sh --otp=XXXXXX. For CI, prefer a granular automation token that can publish without OTP (if org policy allows).
  3. First publish uses --no-provenance (token on laptop). After the package exists, configure Trusted Publisher for @1c2c/cli on npm and prefer release.yml for subsequent releases (provenance + OIDC), per SUPPLY_CHAIN.