@topolo/cli 0.7.4 → 0.8.1
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 +28 -57
- package/dist/index.js +663 -10120
- package/package.json +7 -5
- package/skills/topolo/SKILL.md +15 -15
- package/dist/generate-wrangler.mjs +0 -938
- package/skills/codex/AGENTS.md +0 -164
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# TopoloCli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
15
|
-
-
|
|
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
|
|
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,10 +73,21 @@ 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
|
|
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.
|
|
81
|
+
For concurrent agents pinned to different organizations, use an exact context
|
|
82
|
+
key returned by `topolo context ls --json`:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
topolo setup --name topolo-acme --context org:org_acme --env production
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
This creates separately named Claude Code and Codex registrations using the
|
|
89
|
+
same exact nested MCP executable. `topolo-platform` is reserved for the
|
|
90
|
+
restricted operator toolchain.
|
|
78
91
|
|
|
79
92
|
## Cross-org isolation
|
|
80
93
|
|
|
@@ -208,48 +221,11 @@ generated application list.
|
|
|
208
221
|
```bash
|
|
209
222
|
topolo apps --json
|
|
210
223
|
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
224
|
```
|
|
219
225
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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.
|
|
226
|
+
Only live, credential-scoped applications are returned. The public CLI contains
|
|
227
|
+
no first-party repository metadata or compiled fallback catalog. Internal app
|
|
228
|
+
creation and conformance workflows use `topolo-platform apps`.
|
|
253
229
|
|
|
254
230
|
### `topolo oauth clients`
|
|
255
231
|
|
|
@@ -325,17 +301,12 @@ Installable guides for agents that drive the CLI on behalf of a user.
|
|
|
325
301
|
- **Claude Code** — copy `skills/topolo/` into `~/.claude/skills/` (per-user)
|
|
326
302
|
or `<your-project>/.claude/skills/` (per-project). Claude picks it up
|
|
327
303
|
automatically when the description matches the user's request.
|
|
328
|
-
- **Codex
|
|
329
|
-
|
|
330
|
-
`AGENTS.md` files by convention.
|
|
331
|
-
|
|
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.
|
|
304
|
+
- **Codex** — `topolo setup` installs `skills/topolo/SKILL.md` into the user
|
|
305
|
+
skill directory and writes the deterministic MCP registration.
|
|
335
306
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
307
|
+
The one bundled skill covers credential handling, runtime discovery, write
|
|
308
|
+
confirmation, and cross-org isolation. The CLI owns and registers its compatible
|
|
309
|
+
MCP; do not install or synchronize `@topolo/mcp` separately.
|
|
339
310
|
|
|
340
311
|
## Debug output
|
|
341
312
|
|