@uru-intelligence/cli 0.5.3 → 0.5.7
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/CHANGELOG.md +28 -0
- package/README.md +87 -26
- package/dist/library.mjs +3035 -1018
- package/dist/uru.mjs +4770 -1701
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
- Action: Update agents and scripts that expected a compiler result from uru gems validate or uru gems build. Print or store hosted_job_id, then poll gem.build_job, or pass --wait.
|
|
11
11
|
- Registry-family commands (uru home, sharing, web, files, workspace, business-sql, datasets, distribution, library source) send --params-json fields exactly as the tool's input schema spells them. The camelCase-to-snake_case rewrite and its error are gone. — surfaces: cli, docs; reference: apps/cli/src/local-commands.ts
|
|
12
12
|
- Action: Send the field names uru <family> <operation> --get-schema or uru operations inspect <id> prints, for example target_id and idempotency_key, not targetId and idempotencyKey.
|
|
13
|
+
- uru automations dlq and the automation.dlq_list, dlq_reprocess and dlq_delete operations are gone, and uru automations runs debug no longer takes --turns-limit. The old automation engine's dead-letter queue and its run archive were deleted. — surfaces: cli, docs; reference: apps/cli/src/local-commands.ts
|
|
14
|
+
- Action: Remove uru automations dlq calls and the dlq_* operation ids from scripts. Drop --turns-limit from uru automations runs debug. Read a run's activity from node_executions in uru automations runs get or debug; steps, agent_activity and archived no longer appear.
|
|
15
|
+
- uru gems share replaces uru gems links. A share decides who may open a Gem: each person you name gets their own URL, and a share with no people has one anyone URL. promote, rollback, open, gems deploy, gems analytics and gems delegations name a share instead of a link. — surfaces: cli, docs; reference: skills/uru-gems/references/publishing.md
|
|
16
|
+
- Action: Replace uru gems links create with uru gems share create, links set-version, set-access and set-notifications with uru gems share update, and links rotate and revoke with uru gems share rotate and revoke. Pass --share-id to promote and rollback, and --share to open, gems deploy, gems analytics and gems delegations. The gem_control_plane link_* ops and the link_id parameter are removed; the error names the share op to use.
|
|
13
17
|
- uru logs --follow now streams live lines over the server-sent stream only. The one-second poll fallback and the --poll-interval-ms flag on logs are gone. — surfaces: cli; reference: docs/research/gem-debugging-2026-09.md
|
|
14
18
|
- Action: Drop --poll-interval-ms from uru logs and uru gems logs; the flag is rejected. --follow reads the recent page once, then follows the same stream the web Activity tab uses. When a Gem has no runtime log stream, the command now says so instead of polling.
|
|
15
19
|
|
|
@@ -17,6 +21,8 @@
|
|
|
17
21
|
|
|
18
22
|
- Bind npm publication to an attested candidate tarball and require the published cli_pin matrix before release success. — surfaces: cli, release; reference: docs/plans/cli-sdk-native-release-modernization/PLAN.md
|
|
19
23
|
- Action: Release operators must supply the exact candidate run, attempt, release-evidence artifact ID, and MCP commit to the protected publish workflow.
|
|
24
|
+
- Remove a company tool id that the published package carried in a server-side denylist. — surfaces: cli; reference: scripts/check-platform-tool-name-invariants.ts
|
|
25
|
+
- Action: Install the next published CLI version. Commands and options do not change.
|
|
20
26
|
- Stop uru mcp config and install from printing or writing a live API token. Generated MCP config now points at the URU_API_KEY environment variable. — surfaces: cli; reference: apps/cli/src/local-commands.ts
|
|
21
27
|
- Action: Set URU_API_KEY in the MCP client environment. uru mcp config no longer embeds the current CLI token.
|
|
22
28
|
|
|
@@ -48,10 +54,20 @@
|
|
|
48
54
|
- Action: Use app library 2.1.0 and CLI 0.5.0 with the matching platform release. Existing jobs keep their saved release and source ownership.
|
|
49
55
|
- Make uru update compare this CLI to the latest npm version and add --check --json. — surfaces: cli; reference: apps/cli/src/update-check.ts
|
|
50
56
|
- Action: No action is required. uru update never installs itself. Run uru update --check --json for machine output, or npm install -g @uru-intelligence/cli@latest to install.
|
|
57
|
+
- Read a Gem job's pending state or saved result with gem.job_status, even after its short-lived status cache expires. — surfaces: cli; reference: packages/platform-operations/src/operation_groups_gems.ts
|
|
58
|
+
- Action: Run uru operations run gem.job_status --params-json with the Gem path and exact deployment_id and execution_id from gem.job_start or saved run detail. Repeat the read with the same IDs while pending.
|
|
59
|
+
- Register automation.node_thread_get and add first-class automations runs nodes, rubrics, evaluations, and dlq subcommands. — surfaces: cli, docs; reference: docs/reference/uru-cli-mcp-operations.md
|
|
60
|
+
- Action: Use uru automations runs nodes <run-id> <node-id> to read one run node's real chat thread, and uru automations rubrics|evaluations|dlq instead of operations run for those catalog ids.
|
|
51
61
|
- uru gems debug-token mints a read-only debug session for one Gem deployment, good for at most 15 minutes. — surfaces: cli; reference: docs/research/gem-debugging-2026-09.md
|
|
52
62
|
- Action: Run uru gems debug-token [gem] [--deployment <id>] [--ttl-seconds <n>] to inspect a running Gem. The session authorizes that deployment's log route and nothing else, and the backend refuses it once it expires. The CLI never holds an internal provider credential.
|
|
63
|
+
- uru gems share create --role editor makes an editor share: each person you name signs in and edits the Gem from their Library. --consent and the new uru gems share consents --grant/--revoke lend the editors your connections, Datasets and secrets, as kind:id. uru sharing shares_list with no path lists the Gems other people shared with you. — surfaces: cli, docs; reference: skills/uru-gems/references/publishing.md
|
|
64
|
+
- Action: Nothing changes for a viewer share. For an editor share, pass --role editor with --people, and name each connection, Dataset or secret the editors may run with --consent kind:id (kind is connection, dataset or secret). Only the owner of each one can lend it. An editor share refuses --version, --pin, --gate, --anyone, --expires-at, --notify-on-open and --verify, because it has no URL.
|
|
65
|
+
- uru gems share update --confirm-link-off confirms a general access change that takes a live link from people who have it: --no-anyone on a working link, or --organization or --workspaces on a link that opens for anyone. Without it the server refuses the change and says how many people opened the link. — surfaces: cli, docs; reference: skills/uru-gems/references/publishing.md
|
|
66
|
+
- Action: Tell the person what the refusal says first. Run the same command again with --confirm-link-off only when they agree. A CLI older than this release cannot send the confirmation; until you upgrade, use gem_control_plane share_update with audience_confirm_link_off: true.
|
|
53
67
|
- uru tools reads the whole tool catalog — platform, personal, adopted, company and external MCP — and runs a connector tool through the MCP proxy. — surfaces: cli, docs; reference: URU-1363
|
|
54
68
|
- Action: Name a tool by its <provider>.<owner>.<connection>.<tool> address; the flat <namespace>__<tool> wire name still resolves. Use uru tools search "<task>", uru tools ls, uru tools <partial address> --help, uru tools schema|inspect <address>, uru tools run <address> -d '{...}' with --get-schema, --dry-run or --parallel, and uru tools connections. Every refusal carries a name: no_match, catalog_unavailable, namespace_unavailable, not_connected, not_adopted, approval_required, refused_by_policy.
|
|
69
|
+
- uru tools search names accounts that need repair, shows a masked account hint, and reports when repair status cannot be checked. — surfaces: cli, docs; reference: apps/cli/src/tools-catalog.ts
|
|
70
|
+
- Action: A search miss reports safe repair status for caller-authorized accounts, including setup failures before tools exist. Use uru tools connections --include-unavailable to inspect available and unavailable connections.
|
|
55
71
|
- uru tools search takes --offset, so a second page of matches no longer means re-reading the first. — surfaces: cli; reference: https://linear.app/uru-intelligence/issue/URU-1361
|
|
56
72
|
- Action: Pass --offset with the nextOffset the previous result printed. An offset past the end prints an empty page with the real total rather than refusing as no match.
|
|
57
73
|
|
|
@@ -61,13 +77,23 @@
|
|
|
61
77
|
- Action: No action is required. `--follow-duration-ms` now accepts up to 30 minutes (was 5).
|
|
62
78
|
- uru logs --request-id prints one ordered waterfall per request instead of a flat page. — surfaces: cli; reference: docs/research/gem-debugging-2026-09.md
|
|
63
79
|
- Action: Each step shows its offset from that request's own start and its own duration, and the header shows the request's total and worst level. Pass --json or --output stream-json to keep the raw page for a machine reader.
|
|
80
|
+
- uru whoami and uru switch list each workspace beside its Organization, grouped by Organization with your own Personal workspace first. — surfaces: cli; reference: apps/cli/src/output.ts
|
|
81
|
+
- Action: uru whoami now prints the grouped workspace list under the identity rows, after a blank line, in plain and rich output. uru switch lists workspaces grouped by Organization: each plain row gains an Organization column before the current mark, and the rich table gains an ORGANIZATION column. Scripts that read either command's text should read --json, which keeps the server's answer and order.
|
|
64
82
|
|
|
65
83
|
### Fixed
|
|
66
84
|
|
|
67
85
|
- A connector call the host parked or refused now reaches the shell with its status and its resumable question id, instead of a sentence the CLI had to read for the word approval. — surfaces: cli; reference: https://linear.app/uru-intelligence/issue/URU-1362
|
|
68
86
|
- Action: Answer a parked call with uru tools approve <question-id> --accept or --decline. The id is printed with the refusal.
|
|
87
|
+
- Approved connected tools now run from uru tools run when their provider name differs from their catalog name. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
|
|
88
|
+
- Action: Install the next published CLI version to get the fix. Existing connections need no change.
|
|
89
|
+
- automations evaluations start no longer sends the deleted mode flag, so every real call reaches the backend instead of failing schema validation. — surfaces: cli, docs; reference: #6667
|
|
90
|
+
- Action: Drop --mode from uru automations evaluations start. The backend never used it for anything but validate-then-discard, so the flag is gone, not optional.
|
|
91
|
+
- automations runs cancel now sends the automation the run belongs to, so real cancel calls reach the backend instead of failing schema validation. — surfaces: cli, docs; reference: apps/backend-ts/src/modules/tools_catalog/static_catalog__automation.ts
|
|
92
|
+
- Action: Pass the automation id too: uru automations runs cancel <run-id> <automation-id> --yes, or --run-id/--automation-id. The run id alone was never enough; op=cancel requires both.
|
|
69
93
|
- Clear automation runs-list usage when automation_id is missing, skip confirm on delete --preview, accept snake_case registry aliases, emit structured token create JSON, and register sharing.labels_list / sharing.label_create ops. — surfaces: cli, docs; reference: apps/cli/src/local-commands.ts
|
|
70
94
|
- Action: uru automations runs ls now requires <automation-id> and prints usage instead of an opaque schema error. Preview deletes no longer need --yes. Prefer published CLI >= 0.4.15 for labels aliases, snake_case registry params, and token create JSON id.
|
|
95
|
+
- Connector tools now run after device sign-in by using the saved MCP grant, and HTTP 401 reports an authentication error. — surfaces: cli; reference: PR #7523
|
|
96
|
+
- Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
|
|
71
97
|
- JSON output for destructive CLI operations refused without `--yes` now includes `confirmationRequired: true` and a copy-paste `suggestedCommand` with `--yes` appended. — surfaces: cli; reference: apps/cli/src/cli-runtime.ts
|
|
72
98
|
- Action: No action is required. Agents and scripts can read `suggestedCommand` from JSON errors instead of guessing the confirmation flag.
|
|
73
99
|
- Keep the CLI login when you switch workspace. A leftover workspace from a previous switch no longer poisons the next login. `uru switch` marks the current workspace in the list. — surfaces: cli; reference: apps/cli/src/oauth-credential.ts
|
|
@@ -92,6 +118,8 @@
|
|
|
92
118
|
- Action: Nothing to change. A not-logged-in inspect prints a pointer to uru login and exits 0; operations ls stays local and schema-free.
|
|
93
119
|
- uru operations run and inspect accept the tool name that uru operations ls prints beside each operation id, invalid_tool_arguments names the failing fields of the operation that ran, and a retryable failure says it is temporary and how to retry a write safely. — surfaces: cli; reference: apps/cli/src/tool-failure-guidance.ts
|
|
94
120
|
- Action: Nothing to change. uru operations run home_pins_query --params-json '{"op":"pins_list"}' now runs home.pins_list; a tool name without a known op lists its operation ids. --json errors now carry retryable and the server details.
|
|
121
|
+
- uru tools run returns a failure exit code when a platform tool or connected tool fails, including a remote tool error result. — surfaces: cli, release; reference: apps/cli/src/tools-commands.ts
|
|
122
|
+
- Action: Check the command exit code before retrying a tool call. Private provider error details stay hidden.
|
|
95
123
|
- Use the shared SemVer contract when deciding whether to show a CLI update notice. — surfaces: cli, release; reference: docs/plans/cli-sdk-native-release-modernization/PLAN.md
|
|
96
124
|
- Action: No action is required; prerelease and malformed registry versions now follow the same validation and ordering rules as release publication.
|
|
97
125
|
|
package/README.md
CHANGED
|
@@ -17,8 +17,10 @@ The CLI is registry-backed. Dedicated Gem/Library/Dataset/Automation commands
|
|
|
17
17
|
are thin adapters over the same platform tools used by MCP and the web UI;
|
|
18
18
|
broader workspace, prompt/persona/context, sharing, web/file, business SQL,
|
|
19
19
|
secret/env/token operations remain exposed through the generated operation
|
|
20
|
-
registry while dedicated UX commands continue to mature. The
|
|
21
|
-
|
|
20
|
+
registry while dedicated UX commands continue to mature. The `deploy` aliases
|
|
21
|
+
call the same saved Version and Release operations as the web UI. A requested
|
|
22
|
+
Share is created only after the server returns a ready Release. The server owns
|
|
23
|
+
readiness, access, and the final published state.
|
|
22
24
|
|
|
23
25
|
## Current commands
|
|
24
26
|
|
|
@@ -46,8 +48,11 @@ bun src/index.ts gems versions diff 'library/Golden Gems/My Gem.gem' 13 14
|
|
|
46
48
|
bun src/index.ts gems versions restore 'library/Golden Gems/My Gem.gem' 12
|
|
47
49
|
bun src/index.ts gems releases create 'library/Golden Gems/My Gem.gem' 14
|
|
48
50
|
bun src/index.ts gems releases list 'library/Golden Gems/My Gem.gem'
|
|
49
|
-
bun src/index.ts gems
|
|
50
|
-
bun src/index.ts gems
|
|
51
|
+
bun src/index.ts gems share create 'library/Golden Gems/My Gem.gem' --name Client --pin --version 14
|
|
52
|
+
bun src/index.ts gems share update 'library/Golden Gems/My Gem.gem' <share-id> --version 14
|
|
53
|
+
bun src/index.ts gems share create 'library/Golden Gems/My Gem.gem' --name Co-editors --role editor --people ana@example.com --consent connection:<connection-id>
|
|
54
|
+
bun src/index.ts gems share consents 'library/Golden Gems/My Gem.gem' <share-id> --grant dataset:<dataset-id> --revoke secret:<secret-id>
|
|
55
|
+
bun src/index.ts sharing shares_list
|
|
51
56
|
bun src/index.ts gems runs list 'library/Golden Gems/My Gem.gem'
|
|
52
57
|
bun src/index.ts gems runs show 'library/Golden Gems/My Gem.gem' <run-id>
|
|
53
58
|
bun src/index.ts gems logs 'library/Golden Gems/My Gem.gem' --release <release-id>
|
|
@@ -78,12 +83,12 @@ bun src/index.ts datasets query revenue_rows --limit 50 --response-format concis
|
|
|
78
83
|
bun src/index.ts datasets get revenue-rows
|
|
79
84
|
bun src/index.ts datasets history revenue-rows --limit 20
|
|
80
85
|
bun src/index.ts datasets jobs revenue-rows --limit 20
|
|
81
|
-
bun src/index.ts datasets rows --params-json '{"op":"upsert","dataset_id":"revenue-rows","rows":[{"name":"Acme"}]}'
|
|
86
|
+
bun src/index.ts datasets rows --params-json '{"op":"upsert","dataset_id":"revenue-rows","rows":[{"row_id":null,"fields":{"name":"Acme"}}]}'
|
|
82
87
|
bun src/index.ts datasets create --params-json '{"title":"Revenue Rows","properties":[{"clientKey":"name","name":"Name","type":"title","required":true,"nullable":false,"position":0,"config":{}}]}'
|
|
83
88
|
bun src/index.ts datasets sql --params-json '{"sql":"SELECT 1"}'
|
|
84
89
|
bun src/index.ts distribution list --limit 20
|
|
85
90
|
bun src/index.ts distribution get <collection-id>
|
|
86
|
-
bun src/index.ts distribution create "Client pack"
|
|
91
|
+
bun src/index.ts distribution create "Client pack"
|
|
87
92
|
|
|
88
93
|
# Automation helpers over the platform tool surface.
|
|
89
94
|
bun src/index.ts automations ls --limit 100
|
|
@@ -96,10 +101,10 @@ bun src/index.ts automations graph-patch <automation-id> --patch-json '{"ops":[]
|
|
|
96
101
|
bun src/index.ts automations triggers list <automation-id>
|
|
97
102
|
bun src/index.ts automations connections list
|
|
98
103
|
bun src/index.ts automations delete <automation-id> --yes
|
|
99
|
-
bun src/index.ts automations trigger <automation-id> --input-message "Run now"
|
|
100
|
-
bun src/index.ts automations runs ls <automation-id> --
|
|
104
|
+
bun src/index.ts automations trigger <automation-id> --mode real --input-message "Run now"
|
|
105
|
+
bun src/index.ts automations runs ls <automation-id> --limit 20
|
|
101
106
|
bun src/index.ts automations runs tail <run-id> --level warn
|
|
102
|
-
bun src/index.ts automations runs cancel <run-id> --yes
|
|
107
|
+
bun src/index.ts automations runs cancel <run-id> <automation-id> --yes
|
|
103
108
|
|
|
104
109
|
# Raw platform-tool escape hatch for diagnostics and low-level operations.
|
|
105
110
|
bun src/index.ts tools ls
|
|
@@ -139,17 +144,30 @@ Generated MCP configs use non-interactive `npx -y` and pin
|
|
|
139
144
|
`uru-mcp@3.7.2`. Pass `--package <package@version>` only for an intentional,
|
|
140
145
|
explicit bridge override.
|
|
141
146
|
|
|
147
|
+
`tools run --parallel` accepts a JSON array of input objects. Calls run in order.
|
|
148
|
+
If one fails, the command prints completed results and the failed input index.
|
|
149
|
+
Check those results before you retry a call that can change data.
|
|
150
|
+
|
|
142
151
|
Gem Version commands save and inspect frozen checkpoints that group coherent
|
|
143
152
|
Edits. The Version name and message are optional. Hosted Gems materialize one
|
|
144
153
|
Version with `releases create`; embedded Gems do not need Releases. Neither
|
|
145
|
-
action changes a public URL. Only `
|
|
146
|
-
|
|
147
|
-
server-side.
|
|
154
|
+
action changes a public URL. Only `gems share update --version` changes the
|
|
155
|
+
Version a Share serves. Provider-internal flags are not accepted: runtime
|
|
156
|
+
routing is compiled server-side.
|
|
157
|
+
|
|
158
|
+
`gems share create --role editor` makes an editor Share: each person you name
|
|
159
|
+
signs in and edits the Gem from their Library (Personal by default). It has no
|
|
160
|
+
URL, Version, gate or expiry. It lends the editors only the connections,
|
|
161
|
+
Datasets and secrets named by `--consent`, or later by `gems share consents
|
|
162
|
+
--grant` and `--revoke`, each as `kind:id` (kind is connection, dataset or
|
|
163
|
+
secret). Only the owner of each one can lend it. `sharing shares_list` with no
|
|
164
|
+
path lists the Gems other people shared with you.
|
|
148
165
|
|
|
149
166
|
The scaffold defaults to the production API (`https://api.uruintelligence.com`).
|
|
150
|
-
Use `--api-url`, `URU_API_BASE`, or `URU_API_URL` to
|
|
167
|
+
Use `--api-url`, `URU_API_BASE`, or `URU_API_URL` to select the API host for another environment. Use the `api-` host, not the website host:
|
|
151
168
|
|
|
152
169
|
```bash
|
|
170
|
+
URU_API_BASE=https://api-development.uruintelligence.com bun src/index.ts whoami --json
|
|
153
171
|
URU_API_BASE=https://api-staging.uruintelligence.com bun src/index.ts whoami --json
|
|
154
172
|
URU_API_BASE=http://127.0.0.1:8000 bun src/index.ts whoami --json
|
|
155
173
|
```
|
|
@@ -179,7 +197,7 @@ explicit token/API-key paths:
|
|
|
179
197
|
- linked project state: `.uru/project.json` with `{workspaceId, gemId, libraryPath}`
|
|
180
198
|
- no credentials are written to `.uru/project.json`
|
|
181
199
|
- `uru auth status` reports logged-in / workspace / storage / expiry and never prints a JWT. `uru whoami` stays a server identity call.
|
|
182
|
-
- `uru switch` sets the local default workspace. `uru link` binds this directory to one Gem. `--workspace` / `URU_WORKSPACE_ID`
|
|
200
|
+
- `uru switch` sets the local default workspace. `uru link` binds this directory to one Gem. `--workspace` / `URU_WORKSPACE_ID` select one of your current workspace memberships for one invocation.
|
|
183
201
|
- The screen says Agent; Library paths and schemas say persona (`library/Agents/Name.persona.md`).
|
|
184
202
|
- Gem-scoped deploy tokens for CI use `uru tokens create|ls|revoke`
|
|
185
203
|
- `uru tokens create` requires `--name` plus exactly one lifetime flag:
|
|
@@ -247,23 +265,66 @@ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
|
|
|
247
265
|
bun --filter=@uru-intelligence/cli run smoke:staging -- --json
|
|
248
266
|
```
|
|
249
267
|
|
|
268
|
+
The smoke builds and runs the checkout by default. To test a packed tarball
|
|
269
|
+
instead, install it into a temporary prefix and pass that `uru` with `--cli`.
|
|
270
|
+
The smoke then skips the build:
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
prefix="$(mktemp -d)"
|
|
274
|
+
NPM_CONFIG_PREFIX="$prefix" npm install --global <tarball.tgz> --ignore-scripts
|
|
275
|
+
URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
|
|
276
|
+
STAGING_AUTH_BEARER_TOKEN=... \
|
|
277
|
+
node apps/cli/scripts/staging-smoke.mjs --cli "$prefix/bin/uru" --json
|
|
278
|
+
```
|
|
279
|
+
|
|
250
280
|
Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
|
|
251
281
|
(`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
|
|
252
282
|
`apps/cli/package.json` version as its `version` input. The workflow rejects
|
|
253
283
|
other branches or a version mismatch.
|
|
254
284
|
|
|
255
|
-
The workflow runs the source gates, builds one tarball, and retains
|
|
256
|
-
|
|
257
|
-
runs from the protected environment. Publication uses the retained
|
|
258
|
-
`--ignore-scripts`, rather than rebuilding it.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
285
|
+
The workflow runs the source gates, builds one tarball, and retains the exact
|
|
286
|
+
tarball for 90 days. Package smoke tests check that tarball before npm trusted
|
|
287
|
+
publishing runs from the protected environment. Publication uses the retained
|
|
288
|
+
tarball with `--ignore-scripts`, rather than rebuilding it.
|
|
289
|
+
|
|
290
|
+
The staging smoke job also runs before npm publishing. It downloads the retained
|
|
291
|
+
tarball, checks its SHA-256, inspects it, installs it into a temporary prefix,
|
|
292
|
+
and runs the installed `uru` against staging with credentials from Infisical. It
|
|
293
|
+
does not build the checkout. A staging smoke failure stops the run before npm,
|
|
294
|
+
so the version stays unpublished and the fixed tarball can use the same version.
|
|
295
|
+
The smoke passes the wrong-workspace check only when the MCP proxy refuses the
|
|
296
|
+
workspace by name (`workspace_not_accessible` or
|
|
297
|
+
`workspace_not_allowed_for_credential`).
|
|
298
|
+
|
|
299
|
+
To rehearse a release without publishing, dispatch the workflow with
|
|
300
|
+
`smoke_only` set to `true`. The run builds, gates and smokes the exact tarball
|
|
301
|
+
against staging, then skips the publish and exact-archive jobs:
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
gh workflow run publish-uru-cli.yml --ref staging -f version=<version> -f smoke_only=true
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Before npm can publish, the workflow checks earlier publish runs on Staging and
|
|
308
|
+
Main. If an earlier run may have reached npm, a retry uses its retained tarball
|
|
309
|
+
when available and compares every byte with the current tested tarball. It then
|
|
310
|
+
runs verification only. It never calls `npm publish` again for that version.
|
|
311
|
+
|
|
312
|
+
After npm exposes the expected integrity, the workflow downloads the published
|
|
313
|
+
tarball and checks both its SHA-256 and SHA-512 values against the tested file.
|
|
314
|
+
If npm accepts the package but delays metadata or tarball download, the run
|
|
315
|
+
fails with “verification pending”. Re-run the **Publish the exact release
|
|
316
|
+
tarball** job of the same run (`gh run rerun <run-id> --job <job-id>`, within
|
|
317
|
+
30 days). That re-run keeps the run's validated tarball and staging smoke
|
|
318
|
+
result, verifies the saved file without another publish, and runs the
|
|
319
|
+
exact-archive gate again. "Re-run failed jobs" does not re-run a publish job that
|
|
320
|
+
succeeded with a pending verification. A new dispatch works too, but it must
|
|
321
|
+
pass the staging smoke again before it reaches verification. A different
|
|
322
|
+
package needs a higher version.
|
|
323
|
+
|
|
324
|
+
The final job, the exact-archive gate, fails the run until the publish job
|
|
325
|
+
reports that npm serves the exact tested bytes. Check that job, then install the
|
|
326
|
+
exact published version in a clean directory and verify the intended behavior. A
|
|
327
|
+
successful npm upload alone does not complete registry verification.
|
|
267
328
|
|
|
268
329
|
The npm package remains the canonical install path. Release builds can also
|
|
269
330
|
produce standalone Bun-compiled binaries for the planned macOS/Linux/Windows
|