@topolo/cli 0.7.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # TopoloCli
2
2
 
3
- Command-line interface for the Topolo platform. Designed for both humans and
4
- third-party agents (Claude Code, Codex, Cursor, etc.) that prefer to interact
5
- via `stdin`/`stdout`.
3
+ Public customer command-line interface for Topolo organizations, developers,
4
+ and agents. First-party engineering, seed, scaffold, audit, provisioning,
5
+ deployment, and release commands belong to the restricted `topolo-platform`
6
+ toolchain and are deliberately absent.
6
7
 
7
8
  ## Current scope
8
9
 
@@ -11,8 +12,9 @@ via `stdin`/`stdout`.
11
12
  - Stored access-token refresh; the `@topolo/mcp` server reads the same credential, so agents need no API-key plumbing.
12
13
  - First-class `production`, `staging`, `development`, and `local` environments with separate stored credentials and service URL overrides.
13
14
  - **Per-context credentials** — hold and switch between your personal space and multiple organizations with `topolo context`.
14
- - **One-command agent setup** — `topolo skills install` wires the skill + MCP into Claude Code / Codex.
15
- - Commands: `auth`, `whoami`, `context`, `skills`, `apps`, `services`, `workspaces`, credential-scoped `actions`, generic `api` passthrough, and internal `platform` scaffolding.
15
+ - **One-command agent setup** — `topolo setup` wires the bundled compatible skill + MCP into Claude Code / Codex.
16
+ - **End-to-end diagnostics** — `topolo doctor` proves authentication and the MCP protocol path.
17
+ - Commands: `auth`, `whoami`, `context`, `setup`, `doctor`, `skills`, `apps`, `services`, `resources`, `workspaces`, credential-scoped `actions`, `oauth`, `integrations`, and generic `api` passthrough.
16
18
 
17
19
  ## Install
18
20
 
@@ -35,7 +37,7 @@ Production is the default. Select staging with `--env staging` anywhere in the c
35
37
  ```bash
36
38
  topolo auth status --env staging --json
37
39
  topolo auth login --env staging
38
- topolo platform apps scaffold home --env staging --write --json
40
+ topolo whoami --env staging --json
39
41
  ```
40
42
 
41
43
  The staging profile uses `auth.stg.topolo.us`, `developers.stg.topolo.us`, and `seed.stg.topolo.us` by default. Other SDK service calls in staging must have an explicit staging URL override; the CLI refuses to call a production SDK URL while `--env staging` is selected.
@@ -71,7 +73,8 @@ topolo context use <organization|personal> # switch (validated + a fresh token m
71
73
  ### Wire into Claude Code / Codex
72
74
 
73
75
  ```bash
74
- topolo skills install # copies the skill + registers the `topolo` MCP server, credential-free
76
+ topolo setup # copies the skill + registers the exact bundled MCP
77
+ topolo doctor # verifies auth, handshake, tool discovery, and identity
75
78
  ```
76
79
 
77
80
  The MCP reads the same credential `topolo auth login` writes — no API key to paste.
@@ -208,48 +211,11 @@ generated application list.
208
211
  ```bash
209
212
  topolo apps --json
210
213
  topolo apps get mail --json
211
- topolo apps requirements mail --json
212
- topolo apps audit mail --json
213
- topolo apps audit mail --local --repo-root /Users/ashes/Projects/topolo --fail-on needs_review --json
214
- topolo apps scaffold insights --json
215
- topolo apps scaffold insights --write --repo-root /Users/ashes/Projects/topolo --json
216
- topolo apps scaffold score --target developer --write --repo-root ./starters --json
217
- topolo apps scaffold insights --workflow-only --no-json
218
214
  ```
219
215
 
220
- Agents should call `topolo apps requirements <app> --json` before creating or
221
- expanding a Topolo app. The output is the versioned platform contract for app
222
- metadata, canonical docs, shared auth, shared shell, service registration,
223
- deployment metadata, agent surfaces, observability, and verification.
224
- `topolo apps audit --json` returns compact per-app scores and a migration queue
225
- count. Add `--detail` for every finding and migration item, or
226
- `--local --repo-root <topolo-checkout>` to
227
- include filesystem evidence from the app repo, CloudControl metadata, and
228
- TopoloDocs. Add `--fail-on needs_review` for the default new-work gate, or
229
- `--fail-on partial` for strict release readiness.
230
-
231
- `topolo apps scaffold <app>` generates the required new-application scaffold,
232
- including package/auth/shell/docs/CloudControl files, a deploy-ready
233
- Wrangler Worker/static-assets baseline, an Auth service manifest, and a
234
- `topolo-conformance.yml` GitHub Actions workflow for first-party platform
235
- apps. Add `--write --repo-root <topolo-checkout>` to create the files on disk;
236
- existing files are refused unless `--force` is passed. The first-party scaffold
237
- writes apps under `apps/<AppDir>`, writes canonical docs under
238
- `system-apps/TopoloDocs/apps/web/src/content`, writes Auth service manifests
239
- under `topolo-platform/core/TopoloAuth/catalog/service-manifests`, emits a
240
- project-local `AGENTS.md` for future agent work in the scaffold, and pins the
241
- generated starter to the current published shared package baseline. The
242
- generated workflow checks out the app under `apps/<AppDir>`, checks out
243
- `Topolo-io/TopoloDocs`, `Topolo-io/topolo-sdk`, and `Topolo-io/TopoloCli`, builds
244
- the current CLI from source, then runs the local conformance audit with
245
- `--fail-on needs_review`.
246
-
247
- For third-party developers, use `--target developer` or `--developer`. Developer
248
- scaffolds are standalone starter projects with `topolo.app.json`, `.env.example`,
249
- an `@topolo/login` authorization-code + PKCE browser starter, and no internal TopoloDocs,
250
- CloudControl, or private first-party package dependencies. Developer scaffolds
251
- are browser-only by default; add `--with-api` to include a protected Worker
252
- baseline that validates bearer tokens through Topolo Auth over HTTP.
216
+ Only live, credential-scoped applications are returned. The public CLI contains
217
+ no first-party repository metadata or compiled fallback catalog. Internal app
218
+ creation and conformance workflows use `topolo-platform apps`.
253
219
 
254
220
  ### `topolo oauth clients`
255
221
 
@@ -325,17 +291,12 @@ Installable guides for agents that drive the CLI on behalf of a user.
325
291
  - **Claude Code** — copy `skills/topolo/` into `~/.claude/skills/` (per-user)
326
292
  or `<your-project>/.claude/skills/` (per-project). Claude picks it up
327
293
  automatically when the description matches the user's request.
328
- - **Codex / Cursor / generic** — drop `skills/codex/AGENTS.md` at the root of
329
- your repo (or alongside the code your agent works in). Codex reads
330
- `AGENTS.md` files by convention.
294
+ - **Codex** — `topolo setup` installs `skills/topolo/SKILL.md` into the user
295
+ skill directory and writes the deterministic MCP registration.
331
296
 
332
- Both docs cover the same CLI surface: credential handling, the JSON invocation
333
- contract, the write-safety `--confirm` guardrail, and the cross-org isolation
334
- rules. Keep them in sync when adding new commands.
335
-
336
- For agents that support MCP, also register `@topolo/mcp`; the skill/AGENTS
337
- guidance still matters because it tells the agent when to prefer MCP tools,
338
- when to fall back to shell commands, and how to handle writes.
297
+ The one bundled skill covers credential handling, runtime discovery, write
298
+ confirmation, and cross-org isolation. The CLI owns and registers its compatible
299
+ MCP; do not install or synchronize `@topolo/mcp` separately.
339
300
 
340
301
  ## Debug output
341
302