@uru-intelligence/cli 0.5.8 → 0.6.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/CHANGELOG.md CHANGED
@@ -10,12 +10,24 @@
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
+ - Search and run exact connected actions with stable account IDs. Serve MCP over stdio through the installed Uru CLI. — surfaces: cli, docs, release, sdk; reference: docs/adr/0010-shared-action-discovery-execution.md
14
+ - Action: Install CLI 0.5.9 and regenerate client settings with uru mcp config. Existing eager clients can narrow their tools with saved action references.
13
15
  - 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
16
  - 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.
17
+ - uru business-sql and its two business_sql operations are gone. Those tools now run only as company tools in the workspaces that own them. — surfaces: cli, docs; reference: URU-1566
18
+ - Action: Remove uru business-sql calls and the business_sql operation ids from scripts. Find the tool with uru tools ls --owner company, then run it with uru tools run <address>.
19
+ - uru gems share list, create, get, analytics, update, add-people, remove-person, consents, revoke and rotate are gone. A Gem is shared like every other Library item, with uru shares. — surfaces: cli; reference: skills/uru-library/SKILL.md
20
+ - Action: Run uru shares list|create|get|opens|update|add|remove|consents|revoke|rotate with the Gem's Library path in place of uru gems share …. Name each person with their own --email or --user in place of --people a,b, and give --expires a date (2026-10-31) or an ISO date and time in place of --expires-at. Every share write still holds its retry key, and remove, revoke and rotate need --yes.
15
21
  - 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
22
  - 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.
17
23
  - 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
18
24
  - 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.
25
+ - uru mcp config and uru mcp install now fail when no workspace resolves. Every generated MCP config writes URU_WORKSPACE_ID, because every MCP call names its workspace. — surfaces: cli; reference: apps/cli/src/mcp-commands.ts
26
+ - Action: Pass --workspace <workspace-id>, set URU_WORKSPACE_ID, run uru switch <workspace-id>, or run uru link --workspace <workspace-id> before uru mcp config or uru mcp install. Rerun uru mcp install for an existing client config that has no URU_WORKSPACE_ID.
27
+ - uru mcp config and uru mcp install write a direct streamable HTTP entry for the Uru MCP server (type http, the MCP URL of the CLI's environment, and the X-Uru-Workspace-Id header). The npx uru-mcp stdio bridge, its version pin and --package are gone. The default entry has no API key, so the client signs in with OAuth. The workspace must be a UUID, because the MCP server refuses any other value. uru mcp list and uru doctor flag an old npx uru-mcp entry and print the install command that replaces it, with --server-name when the entry has another name. — surfaces: cli, docs; reference: apps/cli/src/mcp-commands.ts
28
+ - Action: Run the uru mcp install command that uru mcp list or uru doctor prints to replace an old npx uru-mcp entry. Pass the workspace ID in UUID form. Replace --api-key <key> with --api-key-env URU_API_KEY for a headless client; the entry then references that environment variable in an Authorization header. Drop --package. Pass --mcp-url <url> for a server the CLI does not know.
29
+ - uru tokens create, ls and revoke (and the token alias) are gone, with the token.create, token.list and token.revoke operations. Gem deploy tokens were removed from Uru. — surfaces: cli, docs; reference: apps/cli/src/command-spec.ts
30
+ - Action: Gem deploy tokens are gone and nothing replaces them. In CI, set URU_TOKEN to a workspace API key from Settings > API Keys, or sign in with uru login.
19
31
 
20
32
  ### Security
21
33
 
@@ -28,6 +40,9 @@
28
40
 
29
41
  ### Added
30
42
 
43
+ - @uru-intelligence/app 2.2.4: four recoverable background job examples ship with the package, at @uru-intelligence/app/examples/customer-workflows/scheduled-collector, review-only-draft, file-processor and approved-external-write. — surfaces: docs, sdk; reference: PR #6956
44
+ - @uru-intelligence/app 2.2.4: uploads.request and uploads.upload take an idempotencyKey, and the SDK keeps its automatic key after an uncertain response. uploads.status reads the saved result for a key without starting another upload, and the UruUploadStatus type is exported. A private upload stays bound to the viewer's stable identity. — surfaces: sdk; reference: PR #7042
45
+ - Action: After an uncertain upload response, call uploads.status with the same key, or send the request again with the same idempotencyKey, instead of starting a new upload.
31
46
  - A tool call that parks for approval now names itself, and uru tools approve <question-id> --accept|--decline answers it from the shell. — surfaces: cli; reference: URU-1362
32
47
  - Action: A parked call prints its named status (approval_required or refused_by_policy), its question id, and its write class. Answer it with uru tools approve <question-id> --accept or --decline. The id is the durable approval row's own id, so the same answer settles the card in chat. Running the command twice is safe: it prints the answer that won.
33
48
  - Add `uru link --verify` for local link diagnostics and `uru gems links create --verify` to run browser verification after link creation. — surfaces: cli, docs; reference: apps/cli/src/workspace-commands.ts
@@ -46,6 +61,7 @@
46
61
  - Action: Use uru gems bindings list|upsert|resolve to attach connections, and uru gems api describe|query|action|job to run declared Gem capabilities. Do not put connection ids in Gem source.
47
62
  - Add MCP list/target commands, auth status, text-mode list tables, and regenerate the full CLI/MCP operations reference. — surfaces: cli, docs; reference: docs/reference/uru-cli-mcp-operations.md
48
63
  - Action: Use uru mcp list, uru auth status, and uru docs search. List commands print tables in text mode; --json stays JSON. Prefer ${URU_API_KEY} in generated MCP config.
64
+ - Add sharing.share_owner_link, which makes a Gem owner's own link when it is missing; a share write that names the item's owner or the caller's own address now answers 422. — surfaces: cli, docs, sdk; reference: docs/plans/reach/PLAN.md
49
65
  - Add TTY visual chrome for help, tables, doctor, and login without changing JSON or pipe output. — surfaces: cli; reference: apps/cli/src/visual.ts
50
66
  - Action: No action is required. Color and box drawing appear only on a color TTY. Use --no-color, CI, or a pipe to keep the previous plain text.
51
67
  - Add uru tools inspect and uru operations inspect, and accept --params-json @file or @- for large tool parameters. — surfaces: cli; reference: apps/cli/src/command-spec.ts
@@ -58,6 +74,8 @@
58
74
  - 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
75
  - 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
76
  - 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.
77
+ - uru collections makes packs of Library items from any folders: list, get, create, update, add, remove, reorder and delete. Share a collection with uru shares create <collection>; everyone it is shared with can open the items added later. — surfaces: cli; reference: docs/plans/reach/PLAN.md
78
+ - uru contacts reads and manages your private contacts and companies, the same list in every workspace: list, get, search, activity, shares, create, import (a CSV file of email,name rows), update, archive, restore, delete, emails, split, merge, duplicates and export to a Dataset, and uru contacts companies for companies, their domains and suggestions. No command sends email. — surfaces: cli; reference: skills/uru-library/references/contacts.md
61
79
  - 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
62
80
  - 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
81
  - 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
@@ -66,6 +84,10 @@
66
84
  - Action: Nothing changes by default: each person you name is still emailed. Add --no-notify to name people without an email; they still get the Uru inbox card.
67
85
  - 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
68
86
  - 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.
87
+ - uru shares copy <item> makes your own copy of a prompt or context shared with you, at the root of your Personal workspace, named "{name} (copy)" (then "(copy 2)" and on). It is refused when the owner turned copies off. Each run makes another copy. — surfaces: cli; reference: docs/plans/reach/PLAN.md
88
+ - uru shares create, add and update take --confirm-used-items <item-id> (repeat it, or pass none). An Editor share of an automation also shares, as Editor, each Library item the automation uses that you may share, and asks first: the command prints the items Editors get too, the ones they do not and why, and the same command with the --confirm-used-items that agrees to that list. Nothing changes until you run it. — surfaces: cli; reference: docs/plans/reach/PLAN.md
89
+ - uru shares shares any Library item: a file, folder, Dataset, prompt, context, automation, Agent, Collection or Gem. list, get, opens, create, add, update, remove, revoke, rotate, consents and resend manage what you share. received lists everything shared with you from every workspace (--sort modified, shared or name), received get shows every way you can open one item, place puts a shortcut in one of your workspaces, leave takes it off your list, and sent, sent revoke, counts and allowance cover what you shared. — surfaces: cli; reference: docs/plans/reach/PLAN.md
90
+ - Action: uru gems share … is now uru shares … for every kind. uru distribution now reads results; collection commands moved to uru collections.
69
91
  - 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
70
92
  - 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.
71
93
  - 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
@@ -75,8 +97,12 @@
75
97
 
76
98
  ### Changed
77
99
 
100
+ - @uru-intelligence/app 2.2.4: UruAppRuntimeError.code keeps the Dataset conflict codes row_conflict, dataset_conflict and idempotency_conflict, and the job failure code job_import_failed. It no longer passes through four retired codes: dataset_frozen_gem_release_unverified, dataset_frozen_gem_compatibility_disabled, tool_result_content_unavailable and tool_parameters_content_unavailable. — surfaces: sdk; reference: PR #6957, PR #7347, PR #7134
101
+ - Action: Branch on row_conflict, dataset_conflict or idempotency_conflict instead of reading the error message. Remove any branch on the four retired codes; Uru no longer sends them.
78
102
  - `uru logs --follow` streams Gem runtime logs over SSE for up to 30 minutes and falls back to polling when the stream route is missing. — surfaces: cli; reference: apps/cli/src/gem-lifecycle-commands.ts
79
103
  - Action: No action is required. `--follow-duration-ms` now accepts up to 30 minutes (was 5).
104
+ - uru distribution now reads the results of what you shared by name: overview, items, item, opens and follow-ups, with snooze, done and restore for follow-ups. Its collection and link commands are gone. — surfaces: cli; reference: docs/plans/reach/PLAN.md
105
+ - Action: Use uru collections for collections and uru shares create <collection> to share one. uru distribution list, get, create, update, delete, members-*, private-*, publish, unpublish, publication-get, link-* and analytics no longer exist.
80
106
  - 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
81
107
  - 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.
82
108
  - 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
@@ -84,6 +110,20 @@
84
110
 
85
111
  ### Fixed
86
112
 
113
+ - @uru-intelligence/app 2.2.4: a job cancel sends an empty JSON object with an application/json content type, so the provider gateway accepts it from a Fly job. — surfaces: sdk; reference: PR #7213
114
+ - @uru-intelligence/app 2.2.4: a keyed Dataset row write, jobs.progress and jobs.checkpoint are sent again with the same body after a temporary answer (HTTP 408, 429 or 503), so a short database stall no longer fails a Gem job. A 500, any other status, retryable: false and a missing-setup 503 stay final. The waits of one call add up to at most 63 seconds; with 30 second sends a call can take about 5 minutes in the worst case. These calls carry x-uru-sdk-resends: temporary, so the provider gateway does not send them again too. — surfaces: sdk; reference: PR #8045
115
+ - Action: Rebuild a Gem with @uru-intelligence/app 2.2.4 after it is published. Until then, the provider gateway sends these calls again inside its 20 second window for Gems built with an older SDK.
116
+ - @uru-intelligence/app 2.2.4: actions.run waits out an action that answers pending. It reads the execution's status until the action ends, inside the caller's signal and timeoutMs, and returns its result or throws its final failure. The background-job coordinator also keeps a job record that another deployment of the same Gem saved, so a new release can observe, wait on, cancel and resume the job. — surfaces: sdk; reference: PR #7198
117
+ - Action: Rebuild a Gem with @uru-intelligence/app 2.2.4 after it is published. Pass the job handler's signal to actions.run so a canceled job stops waiting.
118
+ - @uru-intelligence/app 2.2.5: a call that may be sent again is also sent again after Cloudflare's own 520 to 527 or 530, which Cloudflare gives when Uru's origin was down, refused or dropped the connection, or did not answer in time. It uses the lost-answer waits, as after a 502 or 504. — surfaces: sdk; reference: PR #8484
119
+ - Action: Rebuild a Gem with @uru-intelligence/app 2.2.5 after it is published. A Gem job built with an older SDK still gets its next attempt from the platform after such an answer.
120
+ - @uru-intelligence/app 2.2.5: a query is sent again, with a new key, after a temporary answer (HTTP 408, or a 503 that is not final), such as the API's 503 when its database pool is full for a moment. It uses the lost-answer waits. A 429 keeps its rate-limit waits, and an action or a job start keeps a temporary answer as its result. — surfaces: sdk; reference: PR #8476
121
+ - Action: Rebuild a Gem with @uru-intelligence/app 2.2.5 after it is published. A Gem job built with an older SDK still gets its next attempt from the platform after a temporary answer.
122
+ - @uru-intelligence/app 2.2.5: jobs.progress, jobs.checkpoint and a Dataset row write with a key are sent again, at most twice, after a 500 that carries no Uru error code. Uru answers its own 500 with an error code, so such a 500 came from a proxy in front of Uru, as while an API replica starts. A 500 with Uru's error code is still final. A job update, a file call or an upload that is not accepted now keeps the answer's JSON body on the error. So a job update that gets a final 503, or a 502 or 504 with Uru's own error code, now ends the job, the same as any other call. These calls carry x-uru-sdk-resends-bare-500: 1 (unless dampers.maxTransportRetries is 0), so the provider gateway does not send a bare 500 again too. — surfaces: sdk; reference: PR #8587, PR #8619
123
+ - Action: Rebuild a Gem with @uru-intelligence/app 2.2.5 after it is published. A retry-safe Gem job built with an older SDK also gets its next attempt after a 500 with no Uru error code, and Uru's own 500 still ends it, once its deployment runs the current Gem runtime image: the runtime reads the 500 itself. Until a Gem is rebuilt, the provider gateway sends a bare 500 again for its job updates and keyed writes, inside its 20 second window and at most 3 more times, so such a Gem also survives a proxy 500.
124
+ - `uru tools run` and `uru tools schema` call a proxy action such as `docs` through Executor by its exact call name when the catalog gives it no canonical address. A failed proxy action exits nonzero with `tool_execution_failed` and keeps provider text hidden. _(internal)_ — surfaces: cli; reference: apps/cli/src/tools-commands.ts
125
+ - `uru tools run` prints a proxy action's own result again, such as the `docs` result with its `content` and `structuredContent`, in place of the Executor `execute` wrapper (`structuredContent.result.ok`, `data`, `executionId`). When Executor keeps a large result behind a retained handle, the CLI reads the complete result through the `uru tools output` route and prints it. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
126
+ - `uru tools run` prints the complete action result again when the server keeps a large result behind a retained handle. The CLI reads the handle through the `uru tools output` route, so `--json` output keeps the action's own envelope, for example the Gem result envelope of `gem.inspect`. — surfaces: cli; reference: apps/cli/src/client.ts
87
127
  - 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
88
128
  - Action: Answer a parked call with uru tools approve <question-id> --accept or --decline. The id is printed with the refusal.
89
129
  - 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
@@ -96,6 +136,7 @@
96
136
  - 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.
97
137
  - 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
98
138
  - Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
139
+ - Expose a fixed public Executor with `execute` and `skills`; search and describe authorized actions inside `execute`, then call the exact returned path while preserving account identities and compact action contracts. — surfaces: cli, sdk; reference: docs/research/tool-list-refresh-2026-10-08.md
99
140
  - 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
100
141
  - Action: No action is required. Agents and scripts can read `suggestedCommand` from JSON errors instead of guessing the confirmation flag.
101
142
  - 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
@@ -118,12 +159,15 @@
118
159
  - Action: Nothing to do. If an older server answers with an envelope this CLI does not read, the error now says the operation may have completed and to check with uru library ls before retrying.
119
160
  - Tip library_fs read refusals toward library_query, and ship labels/list aliases that need a live catalog with list_labels/create_label. — surfaces: cli, docs; reference: PR #5379 CF001; PR #5381 staging labels catalog
120
161
  - Action: Prefer published CLI >= 0.4.15. Use uru sharing labels_list / label_create (or operations sharing.labels_list / sharing.label_create). library_fs read ops should point callers at library_query instead of an opaque safety refusal.
162
+ - uru logs --follow uses the saved delivery position after the recent page and after reconnect. Delayed lines keep their original times, appear once, and cannot be skipped by mixed time forms. — surfaces: cli; reference: apps/cli/src/gem-lifecycle-commands.ts
121
163
  - uru operations inspect <id> and uru <family> <verb> --get-schema print the operation's real input schema, narrowed to its op, with the op's examples, instead of Input schema: {}. — surfaces: cli; reference: URU-1425
122
164
  - 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.
123
165
  - 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
124
166
  - 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.
125
167
  - 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
126
168
  - Action: Check the command exit code before retrying a tool call. Private provider error details stay hidden.
169
+ - Use explicit Gem declaration fields from tool discovery. Distinguish native platform roles from account-bound connector roles. — surfaces: cli, docs; reference: skills/uru-gems/references/uru-json.md#tool-discovery-to-gem-calls
170
+ - Action: Use gemDeclaration for source, then bind each connector role to the selected account. Keep Executor paths out of Gem source.
127
171
  - 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
128
172
  - Action: No action is required; prerelease and malformed registry versions now follow the same validation and ordering rules as release publication.
129
173
 
package/README.md CHANGED
@@ -15,8 +15,8 @@ bun src/index.ts switch <workspace-id>
15
15
 
16
16
  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
- broader workspace, prompt/persona/context, sharing, web/file, business SQL,
19
- secret/env/token operations remain exposed through the generated operation
18
+ broader workspace, prompt/persona/context, sharing, web/file, and
19
+ secret/env operations remain exposed through the generated operation
20
20
  registry while dedicated UX commands continue to mature. The `deploy` aliases
21
21
  call the same saved Version and Release operations as the web UI. A requested
22
22
  Share is created only after the server returns a ready Release. The server owns
@@ -48,11 +48,11 @@ bun src/index.ts gems versions diff 'library/Golden Gems/My Gem.gem' 13 14
48
48
  bun src/index.ts gems versions restore 'library/Golden Gems/My Gem.gem' 12
49
49
  bun src/index.ts gems releases create 'library/Golden Gems/My Gem.gem' 14
50
50
  bun src/index.ts gems releases list 'library/Golden Gems/My Gem.gem'
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
+ bun src/index.ts shares create 'library/Golden Gems/My Gem.gem' --name Client --version 14
52
+ bun src/index.ts shares update <share-id> --version <version-id>
53
+ bun src/index.ts shares create 'library/Golden Gems/My Gem.gem' --name Co-editors --role editor --email ana@example.com --consent connection:<connection-id>
54
+ bun src/index.ts shares consents <share-id> --grant dataset:<dataset-id> --revoke secret:<secret-id>
55
+ bun src/index.ts shares received
56
56
  bun src/index.ts gems runs list 'library/Golden Gems/My Gem.gem'
57
57
  bun src/index.ts gems runs show 'library/Golden Gems/My Gem.gem' <run-id>
58
58
  bun src/index.ts gems logs 'library/Golden Gems/My Gem.gem' --release <release-id>
@@ -86,9 +86,10 @@ bun src/index.ts datasets jobs revenue-rows --limit 20
86
86
  bun src/index.ts datasets rows --params-json '{"op":"upsert","dataset_id":"revenue-rows","rows":[{"row_id":null,"fields":{"name":"Acme"}}]}'
87
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":{}}]}'
88
88
  bun src/index.ts datasets sql --params-json '{"sql":"SELECT 1"}'
89
- bun src/index.ts distribution list --limit 20
90
- bun src/index.ts distribution get <collection-id>
91
- bun src/index.ts distribution create "Client pack"
89
+ bun src/index.ts collections create --name "Client pack" --item 'library/Board.pdf'
90
+ bun src/index.ts shares create 'library/Client pack' --email ana@example.com
91
+ bun src/index.ts distribution items --not-opened
92
+ bun src/index.ts contacts list --opened last-7-days
92
93
 
93
94
  # Automation helpers over the platform tool surface.
94
95
  bun src/index.ts automations ls --limit 100
@@ -108,8 +109,10 @@ bun src/index.ts automations runs cancel <run-id> <automation-id> --yes
108
109
 
109
110
  # Raw platform-tool escape hatch for diagnostics and low-level operations.
110
111
  bun src/index.ts tools ls
111
- bun src/index.ts tools schema gem_control_plane --json
112
- bun src/index.ts tools run gem_control_plane --params-json '{"op":"inspect","path":"library/Golden Gems/My Gem.gem"}'
112
+ bun src/index.ts tools search "gem inspect" --limit 50 --json
113
+ bun src/index.ts tools schema <address-from-search> --json
114
+ bun src/index.ts tools output <result-ref> --json
115
+ bun src/index.ts tools run <address-from-search> --params-json '{"path":"library/Golden Gems/My Gem.gem"}'
113
116
 
114
117
  # Show and execute the generated operation registry.
115
118
  bun src/index.ts operations ls
@@ -118,15 +121,13 @@ bun src/index.ts operations run gem.inspect --params-json '{"path":"library/Gold
118
121
  bun src/index.ts library search "client brief"
119
122
  bun src/index.ts docs library_fs
120
123
  bun src/index.ts docs search library_fs
121
- bun src/index.ts api platform/tools/search_tools/execute -F query=gem
122
- bun src/index.ts api /api/platform/tools/search_tools/execute -F query=gem
123
124
 
124
- # MCP client config helper. Prefer ${URU_API_KEY} or --api-key. List never prints keys.
125
+ # MCP client config helper. Writes a streamable HTTP entry. List never prints keys.
125
126
  bun src/index.ts mcp list
126
127
  bun src/index.ts mcp list --target cursor
127
- bun src/index.ts mcp config --api-key "$URU_API_KEY"
128
- bun src/index.ts mcp install --target cursor
129
- bun src/index.ts mcp install --path ~/.config/claude-code/mcp.json --api-key "$URU_API_KEY"
128
+ bun src/index.ts mcp config --workspace <workspace-id> --target claude
129
+ bun src/index.ts mcp install --workspace <workspace-id> --target cursor
130
+ bun src/index.ts mcp install --workspace <workspace-id> --target claude --api-key-env URU_API_KEY
130
131
  bun src/index.ts mcp remove --target cursor
131
132
 
132
133
  # Local auth facts. Never prints a JWT.
@@ -140,9 +141,62 @@ bun src/index.ts complete fish
140
141
  bun src/index.ts complete powershell
141
142
  ```
142
143
 
143
- Generated MCP configs use non-interactive `npx -y` and pin
144
- `uru-mcp@3.7.2`. Pass `--package <package@version>` only for an intentional,
145
- explicit bridge override.
144
+ Generated MCP configs connect straight to the Uru MCP server over streamable
145
+ HTTP: `"type": "http"` and the MCP URL of the CLI's environment
146
+ (`https://mcp.uruintelligence.com/mcp` for production). Pass `--mcp-url <url>`
147
+ for another server. Generated configs do not use a local `npx` or stdio bridge.
148
+
149
+ By default the entry has no API key, so the client signs in with OAuth. The
150
+ Cursor entry also names Cursor's public OAuth client, as in the
151
+ [MCP guide](../../content/docs/guides/mcp.mdx). For a headless client, pass
152
+ `--api-key-env URU_API_KEY`. The entry then gets an `Authorization` header that
153
+ references that environment variable (`${URU_API_KEY}` for Claude Code,
154
+ `${env:URU_API_KEY}` for Cursor). The CLI never writes a key value. It refuses
155
+ `--api-key <key>`.
156
+
157
+ Every entry sends the `X-Uru-Workspace-Id` header, because every MCP call names
158
+ its workspace. `mcp config` and `mcp install` fail when no workspace resolves
159
+ from `--workspace`, `URU_WORKSPACE_ID`, the linked project, or the last
160
+ `uru switch`.
161
+
162
+ The workspace must be a UUID, because the MCP server refuses any other value
163
+ in the workspace header.
164
+
165
+ `mcp list` and `doctor` flag an old `npx uru-mcp` entry and print the
166
+ `mcp install` command that replaces it. For an entry with a name other than
167
+ `uru`, that command adds `--server-name <name>`.
168
+
169
+ Pass `--tool-filter '<JSON array of saved action references>'` to `mcp config`
170
+ or `mcp install` to narrow the generated entry. The config sends the stable
171
+ references in the `X-Uru-Tool-Filter` header. The server intersects them with
172
+ the authorized catalog. An empty array shows no discovered actions.
173
+
174
+ The explicit `uru mcp serve` command remains available for clients that need a
175
+ stdio bridge. It accepts `--mcp-url` and `--tool-filter`; generated configs do
176
+ not select it.
177
+
178
+ `uru tools search` uses the same server index as chat and MCP. It returns five
179
+ matches by default, with a maximum of 50. Use the returned `--cursor` for the
180
+ next page. Search lists actions and account details without loading their input
181
+ rules. `uru tools schema` loads the exact selected action schema.
182
+ `uru tools output` reads the complete redacted JSON behind a retained result
183
+ handle. It uses the logged-in user and workspace, and reads bounded pages.
184
+ `uru tools run` sends its stable action reference and arguments. Platform
185
+ operation calls do not take an `op` argument; the server sets that value.
186
+ `uru tools run` prints the action's complete result. When the execute route
187
+ answers a large result with a retained handle, the command reads the complete
188
+ redacted JSON through the same route as `uru tools output`, then prints it.
189
+
190
+ For a proxy action, the CLI uses the fixed MCP `execute` tool. Schema reads use
191
+ `tools.describe.tool({ path })`. Calls use the exact `tools.<path>(parameters)`
192
+ Executor path from the authorized catalog: the canonical address, or the call
193
+ name when the catalog has no canonical address (for example `docs`). The CLI
194
+ sends the action reference and workspace with each call. `uru tools run` prints
195
+ the action's own `tools/call` result (`content`, `structuredContent`, `_meta`),
196
+ not the Executor `execute` wrapper. When Executor keeps a large result behind a
197
+ retained handle, the command reads the complete result through the same route
198
+ as `uru tools output`. Platform and connector actions still use the exact
199
+ action execute route.
146
200
 
147
201
  `tools run --parallel` accepts a JSON array of input objects. Calls run in order.
148
202
  If one fails, the command prints completed results and the failed input index.
@@ -151,17 +205,17 @@ Check those results before you retry a call that can change data.
151
205
  Gem Version commands save and inspect frozen checkpoints that group coherent
152
206
  Edits. The Version name and message are optional. Hosted Gems materialize one
153
207
  Version with `releases create`; embedded Gems do not need Releases. Neither
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.
208
+ action changes a public URL. Only `shares update --version`, `promote` and
209
+ `rollback` change the Version a share serves. Provider-internal flags are not
210
+ accepted: runtime routing is compiled server-side.
211
+
212
+ `uru shares` shares every kind of Library item, Gems included. `shares create
213
+ --role editor` makes an editor share of a Gem: each person you name signs in
214
+ and edits it. It lends the editors only the connections, Datasets and secrets
215
+ named by `--consent`, or later by `shares consents --grant` and `--revoke`,
216
+ each as `kind:id` (kind is connection, dataset or secret). Only the owner of
217
+ each one can lend it. `shares received` lists everything other people shared
218
+ with you, from every workspace you are in.
165
219
 
166
220
  The scaffold defaults to the production API (`https://api.uruintelligence.com`).
167
221
  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:
@@ -200,12 +254,6 @@ explicit token/API-key paths:
200
254
  - `uru auth status` reports logged-in / workspace / storage / expiry and never prints a JWT. `uru whoami` stays a server identity call.
201
255
  - `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.
202
256
  - The screen says Agent; Library paths and schemas say persona (`library/Agents/Name.persona.md`).
203
- - Gem-scoped deploy tokens for CI use `uru tokens create|ls|revoke`
204
- - `uru tokens create` requires `--name` plus exactly one lifetime flag:
205
- `--expiry <duration>` or `--expires-at <iso timestamp>`
206
- - created tokens default to the server-enforced `gem:deploy` scope
207
- - custom `--scope`/`--scopes` values must include `gem:deploy` before the token
208
- can operate Gem deploy/query/control routes
209
257
  - Gem secrets use `uru secrets put|ls|rm`; values are write-only
210
258
  - `uru env pull` writes a metadata-only template, never downloads remote secret
211
259
  values, and clamps the output file to `0600` even when overwriting an existing
@@ -214,11 +262,11 @@ explicit token/API-key paths:
214
262
 
215
263
  ## CI cookbook
216
264
 
217
- Use a Gem-scoped token, never a session JWT, and fail closed:
265
+ Use a workspace API key (create it in Settings > API Keys), never a session
266
+ JWT, and fail closed:
218
267
 
219
268
  ```bash
220
- uru tokens create 'library/Golden Gems/My Gem.gem' --name CI --expiry 30d --json
221
- export URU_TOKEN=<token-from-create-once>
269
+ export URU_TOKEN=<workspace-api-key>
222
270
  export URU_WORKSPACE_ID=<workspace-id>
223
271
  uru --no-input doctor --json
224
272
  uru --no-input auth status --json
@@ -290,7 +338,7 @@ to deployed product runs. The remaining offline cases protect these failures:
290
338
  | A session token reaches the wrong proxy, or refresh overwrites a newer login | `cli-connector-oauth.test.ts`, `cli-connector-auth-status.test.ts`, `cli.test.ts` | These cases control native credential stores, expiry, and account changes between local callbacks. The browser suite cannot control those local stores or callback races. |
291
339
  | A local token file stays readable by other users | `config.test.ts` | The deployed product cannot inspect or repair a CLI user's local file mode. This case writes a real file and checks mode `0600`. |
292
340
  | Source reads truncate bytes, corrupt local files, discard edits, or advance a stale checkout | `cli-source-sync.test.ts`, `cli-source-sync-push.test.ts`, `cli-source-sync.part2.test.ts` | The deployed Gem group uses browser and backend tools. It does not own the CLI's local files or source lock. Corrupt page replies and a failure after the first read need controlled I/O. |
293
- | A destructive command or top-level rollback runs without confirmation, exposes a token, or bypasses a registered policy | `cli-platform-tools.test.ts`, `platform-operations-tool-call-lookup.test.ts`, `cli-gem-v2-commands.test.ts`, `cli-tools-catalog.test.ts` | The cases prove refusal before execution and keep uppercase spellings inside the same confirmation guard. Top-level rollback has its own guard; the lifecycle command test reaches a different guard. Using a live deletion or provider write to check a missing guard could destroy data or cost money. |
341
+ | A destructive command or top-level rollback runs without confirmation, exposes a token, or bypasses a registered policy | `cli-platform-tools.test.ts`, `cli-gem-v2-commands.test.ts`, `cli-tools-catalog.test.ts` | The cases prove refusal before execution and keep uppercase spellings inside the same confirmation guard. Top-level rollback has its own guard; the lifecycle command test reaches a different guard. Using a live deletion or provider write to check a missing guard could destroy data or cost money. |
294
342
  | A disable command enables a job, or guesses the wrong capability kind | `cli-gem-capabilities.test.ts` | The CLI off-switch has its own boolean contract. The deployed Gem fixtures have no runnable job; testing a runaway job would execute real work. |
295
343
  | A failed parallel batch hides completed work, invalid input starts part of a batch, or a Gem action runs without a retry key | `cli-tools-catalog.test.ts`, `cli-gem-bindings.test.ts` | These cases control which provider call fails after another completes and prove refusal before an unkeyed action. They prevent a caller from repeating completed work. The API action has a separate key guard; a live runnable action could execute paid work if that guard disappears. |
296
344
  | A changed owner row leaks a connection, or a provider failure exposes private detail | `cli-tools-catalog.test.ts`, `client.test.ts` | A valid deployed catalog does not return contradictory ownership or echoed secret fields. The cases inject those replies at the external I/O boundary. |
@@ -298,12 +346,15 @@ to deployed product runs. The remaining offline cases protect these failures:
298
346
  | Approval waiting hangs, or a deadline becomes success | `cli-automations-wait.test.ts` | The cases control the poll sequence and a five-millisecond deadline. A live automation cannot provide that exact timing. |
299
347
  | A broken response or split stream becomes false success, lost data, or an unsafe retry | `client.test.ts`, `gem-result.test.ts` | The runner cannot choose edge-proxy replies or stream chunk boundaries. An unsupported result schema would require an incompatible live server. |
300
348
  | A library caller omits scope, selects another workspace, or loses cancellation | `library.test.ts` | The deployed browser suite does not construct the published CLI library or inspect its local cancellation signal. |
301
- | Release smoke runs the checkout or accepts an unrelated error as workspace isolation | `staging-smoke.test.ts` | The cases run the real smoke process with an installed executable and controlled refusal replies. Forcing an unrelated live error would make release evidence inconclusive. |
349
+ | Release smoke runs the checkout, crosses an environment, accepts an unrelated refusal, or leaves original owned resources after failure | `staging-smoke.test.ts` | The cases run the native smoke with an installed executable and the real Product fixture. They control only external HTTP and browser I/O. A deployed run cannot safely cross Production, lose a create reply, or keep a grant active on demand. |
350
+ | A foreign or unprotected dispatch reaches credentials, or Development reaches publication | `publish-immutable-cli.test.ts` | The native shell tests execute the publisher's actual mode guard before credential and package-write stand-ins. The deployed product suite cannot forge private GitHub runner authority. |
302
351
 
303
352
  Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
304
353
  (`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
305
354
  `apps/cli/package.json` version as its `version` input. The workflow rejects
306
- other branches or a version mismatch.
355
+ an unprotected source, another repository, a non-manual event, or a version
356
+ mismatch. Development accepts only `operation=prepare-next` with
357
+ `smoke_only=true`. Development cannot publish a version or change a public tag.
307
358
 
308
359
  The workflow runs the source gates, builds one tarball, and retains the exact
309
360
  tarball for 90 days. Package smoke tests check that tarball before npm trusted
@@ -327,6 +378,54 @@ against staging, then skips the publish and exact-archive jobs:
327
378
  gh workflow run publish-uru-cli.yml --ref staging -f version=<version> -f smoke_only=true
328
379
  ```
329
380
 
381
+ To prepare the same tarball against Development, dispatch the protected
382
+ Development workflow with the exact served release commit and MCP image revision
383
+ from the normal successful release receipt:
384
+
385
+ ```bash
386
+ gh workflow run publish-uru-cli.yml --ref development \
387
+ -f version=<version> -f operation=prepare-next -f smoke_only=true \
388
+ -f expected_served_release=<40-hex-served-development-sha> \
389
+ -f expected_mcp_image_revision=<40-hex-receipt-mcp-image-revision>
390
+ ```
391
+
392
+ The retained tarball uses the workflow's protected build source commit. The
393
+ served release input identifies the backend deployment under test. The MCP
394
+ image input identifies the receipt's `release_image_revisions.mcp_proxy`.
395
+ Image reuse can make these commits differ. Obtain both inputs from the successful
396
+ release receipt; never infer the expected image from the current public health
397
+ response. The guard requires both exact 40-hex inputs before credentials.
398
+ The smoke checks the same backend deployment and exact MCP image with
399
+ `direct-actions-v1` before and after the test. Both targets use the API and MCP from
400
+ `scripts/lib/environments.mjs`; a supplied URL must match that exact target.
401
+
402
+ Development uses the Product QA accounts and QA Organization. It uses the same
403
+ password sign-in, marked temporary workspace and anchor, browser device
404
+ approval, private session record, and cleanup code as the Product suite. It
405
+ creates a synthetic draft static Gem for the direct read proof. It starts no
406
+ Gem build, release, model call, or provider job. It never loads the Staging
407
+ Golden Gem bearer, Keychain entry, workspace, or Gem path. Missing account,
408
+ Organization, or Gem access fails the preparation.
409
+
410
+ Cleanup must confirm deletion of the original Gem and workspaces. It must also
411
+ confirm separate revocation of the CLI grant and all issued sessions. Workspace
412
+ containment alone cannot pass. The cleanup owner keeps the original CLI
413
+ credential and private state until explicit grant revocation, session
414
+ revocation, and workspace deletion all pass. A later recovery uses that same
415
+ credential, including a refresh token that the failed check rotated.
416
+ The private record saves each workspace marker
417
+ before its create request, so cleanup can recover a lost create answer through
418
+ the exact owned marker. The workflow's recovery step uses that same record after
419
+ a failed or stopped smoke. Private state stays on the runner when cleanup fails;
420
+ the workflow never uploads it. Recovery cannot change the original smoke result.
421
+
422
+ A Development preparation reports `publication_not_attempted` and
423
+ `exact_archive_verified=false`. Publish, public archive verification, and Main
424
+ latest promotion each exclude Development. Preparation uses the source, Linux,
425
+ Windows, certified archive, installed failure, documentation, type, and safety
426
+ gates and retains the same archive for 90 days. It does not qualify a different
427
+ published CLI version or a Sandbox image.
428
+
330
429
  Before npm can publish, the workflow checks earlier publish runs on Staging and
331
430
  Main. If an earlier run may have reached npm, a retry uses its retained tarball
332
431
  when available and compares every byte with the current tested tarball. It then
@@ -365,3 +464,10 @@ the installation. Interactive text-mode commands also perform a bounded
365
464
  once-per-24h npm version check and write a single stderr notice when a newer CLI
366
465
  is available. The notifier is disabled for JSON/streaming output, CI,
367
466
  `NO_UPDATE_NOTIFIER`, and `URU_NO_UPDATE_NOTIFIER`.
467
+
468
+ The live CLI smoke takes the target environment's existing tenant-mutation
469
+ turn, shared with release deploys and migration apply. Package validation and
470
+ Windows checks run outside that turn. Before dispatch, read the latest
471
+ successful release receipt for both expected identities. A release that
472
+ changes before the smoke acquires its turn causes a refusal before access.
473
+ The workflow run title names the operation, source branch, and package version.