@smartkomm/plexus-cli 0.1.365 → 0.1.367
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 +11 -11
- package/dist/cli.mjs +313 -234
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/references/config/attach-a-template.md +1 -1
- package/dist/skill/references/config/export-tenant-setup.md +2 -2
- package/dist/skill/references/config/platform-setup-export.md +1 -1
- package/dist/skill/references/config/restore-tenant-setup.md +2 -2
- package/dist/skill/references/config/set-tenant-branding.md +1 -1
- package/dist/skill/references/offer/add-workflow-node.md +2 -2
- package/dist/skill/references/offer/assignment-rule.md +3 -3
- package/dist/skill/references/offer/attach-form-to-workflow.md +1 -1
- package/dist/skill/references/offer/author-form-scenarios.md +1 -1
- package/dist/skill/references/offer/author-manifest-meta.md +4 -4
- package/dist/skill/references/offer/bind-node-input.md +1 -1
- package/dist/skill/references/offer/completeness-check.md +2 -2
- package/dist/skill/references/offer/conditional-team.md +1 -1
- package/dist/skill/references/offer/edit-workflow-node.md +1 -1
- package/dist/skill/references/offer/insert-and-rewire-node.md +1 -1
- package/dist/skill/references/offer/node-tasks.md +1 -1
- package/dist/skill/references/offer/set-offer-capacities.md +1 -1
- package/dist/skill/references/offer/template-document-node.md +1 -1
- package/dist/skill/references/offer/workflow-default-channels.md +2 -2
- package/dist/skill/references/platform/clear-test-residue.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ files are relative to the current directory. See the
|
|
|
31
31
|
|
|
32
32
|
On every start the installed CLI keeps an agent skill current for Claude Code
|
|
33
33
|
(`~/.claude/skills/plexus-cli/`) and Codex (`~/.codex/skills/plexus-cli/`) — whichever
|
|
34
|
-
of the two exists:
|
|
34
|
+
of the two exists: the skill's main file plus every playbook as `references/`, each marked with the
|
|
35
35
|
right it needs (tenant token or platform operator). A directory of that name the CLI did
|
|
36
36
|
not write is left alone (one warning); remove it to get the bundled skill. A failed write
|
|
37
37
|
warns once and never fails the command. The installed directory belongs to the CLI: an
|
|
@@ -49,7 +49,7 @@ cd <primary checkout> && pnpm --dir app/tools/plexus-cli link:global
|
|
|
49
49
|
|
|
50
50
|
This installs the app's and the tool's dependencies from their lockfiles
|
|
51
51
|
(`pnpm install --frozen-lockfile` — a stale `node_modules` would build against the
|
|
52
|
-
wrong packages), builds
|
|
52
|
+
wrong packages), builds the CLI bundle and symlinks `plexus-cli` into a bin directory on your `PATH` at it.
|
|
53
53
|
The symlink tracks the checkout, so a later `pnpm build` refreshes the binary. A
|
|
54
54
|
local build reports `plexus-cli --version` as `<floor>-dev+<commit>` (e.g.
|
|
55
55
|
`0.1.0-dev+1bf2c2c77`); only the publish workflow's build carries a release number.
|
|
@@ -163,7 +163,7 @@ plexus-cli tenants # the tenants your identity reaches (real data)
|
|
|
163
163
|
| Symptom | Cause / fix |
|
|
164
164
|
|---|---|
|
|
165
165
|
| `plexus-cli: command not found` | Not installed — `npm i -g @smartkomm/plexus-cli`. |
|
|
166
|
-
| `TokenExchangeError` / 401 on `whoami` | Token missing, expired or revoked — mint a new one (Settings → API-Token) and put it into
|
|
166
|
+
| `TokenExchangeError` / 401 on `whoami` | Token missing, expired or revoked — mint a new one (Settings → API-Token) and put it into the plexus config file. Do not retry blindly. |
|
|
167
167
|
| A function call fails on its arguments | `plexus-cli describe <module:fn>` shows the exact argument names (`client` vs `tenant` differ across functions). |
|
|
168
168
|
| Wrong or empty data | `plexus-cli config show` — the call may go to another `--env` than meant. |
|
|
169
169
|
|
|
@@ -236,9 +236,9 @@ the operator's machine; ONE rule (`runWrites`) says whether a run writes, and ON
|
|
|
236
236
|
(`ClientCommand.caller`) applies it: a writing run refuses without
|
|
237
237
|
`--env` on the command line (a configured default or `PLEXUS_ENV` is not enough), and a
|
|
238
238
|
production target needs `--allow-prod` — decided on the RESOLVED deployment URL, so any
|
|
239
|
-
environment that points at the URL
|
|
239
|
+
environment that points at the URL the plexus config file names for `prod` is production
|
|
240
240
|
(`plexus/writeTarget.ts`, `core/config.ts` `knownProdConvexUrls`). The check runs before any
|
|
241
|
-
network access; a
|
|
241
|
+
network access; a plexus config file without a `prod` entry makes writes refuse. Reads are
|
|
242
242
|
unaffected (`--allow-prod` on a read is ignored, with a note on stderr). A `--confirm`
|
|
243
243
|
command's dry-run counts as a read — its caller lets through only the dry-run calls the
|
|
244
244
|
command declares (`DRY_RUN_CALLS`, each with the argument that makes it a dry run) and
|
|
@@ -263,7 +263,7 @@ that has no table form — indented JSON. Notes, warnings and errors go to **std
|
|
|
263
263
|
| 2 | refused before anything was sent: a usage error, an invalid or incomplete configuration (unknown key, missing `convex_url`/`site_url`/token, `--env local` outside a worktree), or a guard (write without `--env`, production without `--allow-prod`, an undeclared command, a dry run that tried to write) | `--env local` connects only to THIS machine — its admin-key bootstrap is a mutation even for
|
|
264
264
|
a read, so the target's host must resolve to loopback or to an address of one of this machine's
|
|
265
265
|
interfaces (rdu's Traefik host of a worktree does; a remote deployment does not). `seed` is outside the guard: it runs
|
|
266
|
-
`convex run` against the current worktree's own deployment, never through
|
|
266
|
+
`convex run` against the current worktree's own deployment, never through the plexus config file.
|
|
267
267
|
|
|
268
268
|
`seed --if-needed` is the local startup path: it waits for the running `convex dev`
|
|
269
269
|
watcher to push current code (it never pushes itself), initializes
|
|
@@ -952,7 +952,7 @@ cells are authoritative, unlisted ones untouched). Recipe:
|
|
|
952
952
|
[Set an offer's seat capacities](./playbooks/offer/set-offer-capacities.md).
|
|
953
953
|
|
|
954
954
|
A **workflow-less draft** exports/applies a **manifest-only** bundle (no
|
|
955
|
-
|
|
955
|
+
the smartform file / the workflow file). Apply order mirrors the seed
|
|
956
956
|
(`init/seed/admission/seedAdmissionPortal.ts`): manifest → scaffold (pedagogy-unit link
|
|
957
957
|
+ program spine) → smartform (if present) → workflow (if present). Drafts are written
|
|
958
958
|
**only on a canonical-JSON diff** (byte-equal blob = no-op), but the **offer flip is
|
|
@@ -1047,7 +1047,7 @@ plexus-cli --env <env> config wipe --tenant <slug> --target <id|all> [--casca
|
|
|
1047
1047
|
```
|
|
1048
1048
|
|
|
1049
1049
|
Assignment rules are **not** a tenant config target: the rule is part of each offer's
|
|
1050
|
-
workflow (`graph.assignmentRules` in the bundle's
|
|
1050
|
+
workflow (`graph.assignmentRules` in the bundle's workflow file) and travels with
|
|
1051
1051
|
`offer export` / `offer apply`. See `playbooks/offer/assignment-rule.md`.
|
|
1052
1052
|
|
|
1053
1053
|
**A consent is a form field, not a custom-field kind.** A SmartForm field of
|
|
@@ -1140,14 +1140,14 @@ each verified against its hash. The server assembles every part; the command onl
|
|
|
1140
1140
|
The parts, in apply order: `config` (the same content as `config export`), `structure`,
|
|
1141
1141
|
`contracts`, `offers`, `tools`, `portal`; a new part joins without a CLI change. `--platform`
|
|
1142
1142
|
(no tenant) exports the platform's own setup, the contract input registry; restore it before
|
|
1143
|
-
a tenant whose
|
|
1143
|
+
a tenant whose setup file names its keys (`platformRefs`). Contract:
|
|
1144
1144
|
`docs/architecture/platform/storage/setup-export.md`. Platform operator only (`_platform.config.manage`, since each run records the export); a writing verb
|
|
1145
1145
|
(`--allow-prod` on production), because each run records the export. `--out` must be new and
|
|
1146
1146
|
outside any git working tree; the command writes into `<dir>.partial` and renames it once
|
|
1147
1147
|
every file is verified. Recipe: `playbooks/config/export-tenant-setup.md`.
|
|
1148
1148
|
|
|
1149
1149
|
`setup plan --dir <dir> [--part p] [--prune]` (read-only) and `setup apply --dir <dir> --confirm
|
|
1150
|
-
[--part p] [--prune]` restore such a directory onto the tenant
|
|
1150
|
+
[--part p] [--prune]` restore such a directory onto the tenant that the setup file names, part by
|
|
1151
1151
|
part in its `partOrder`. `setup apply` previews every part first (with its `--prune`) and
|
|
1152
1152
|
stops before any write if one refuses. The server answers which files the target lacks; the command
|
|
1153
1153
|
uploads exactly those (hash-checked) and the server applies. Extra rows are kept unless
|
|
@@ -1166,7 +1166,7 @@ ignored). Both read only (`_platform.config.read`). Recipe:
|
|
|
1166
1166
|
A school's Vorlagen (`tenant_files`) ride the config as `files[]`: `key`, `label`,
|
|
1167
1167
|
`filename`, `mimeType`, and the content **by hash** (`sha256`, `sizeBytes`) — never inline.
|
|
1168
1168
|
An export from before file references (`fileName` / `size`) is refused with `[config/fileRefRenamed]`:
|
|
1169
|
-
export again. `export` also downloads each file to `files/<key>/<filename>` beside
|
|
1169
|
+
export again. `export` also downloads each file to `files/<key>/<filename>` beside the config file and
|
|
1170
1170
|
writes its `path`; on `apply --from snapshot:` the file on disk decides the hash. `apply`
|
|
1171
1171
|
uploads only the files whose hash the target does not hold (a dry run uploads nothing and
|
|
1172
1172
|
lists them), `--from env:` downloads them from the source env, and the `test` blueprint's
|