@uru-intelligence/cli 0.5.9 → 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
@@ -16,6 +16,8 @@
16
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
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
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.
19
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
20
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.
21
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
@@ -59,6 +61,7 @@
59
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.
60
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
61
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
62
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
63
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.
64
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
@@ -71,6 +74,8 @@
71
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.
72
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
73
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
74
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
75
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.
76
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
@@ -79,6 +84,10 @@
79
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.
80
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
81
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.
82
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
83
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.
84
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
@@ -92,6 +101,8 @@
92
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.
93
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
94
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.
95
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
96
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.
97
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
@@ -104,6 +115,15 @@
104
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.
105
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
106
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
107
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
108
128
  - Action: Answer a parked call with uru tools approve <question-id> --accept or --decline. The id is printed with the refusal.
109
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
@@ -116,6 +136,7 @@
116
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.
117
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
118
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
119
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
120
141
  - Action: No action is required. Agents and scripts can read `suggestedCommand` from JSON errors instead of guessing the confirmation flag.
121
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
@@ -145,6 +166,8 @@
145
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.
146
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
147
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.
148
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
149
172
  - Action: No action is required; prerelease and malformed registry versions now follow the same validation and ordering rules as release publication.
150
173
 
package/README.md CHANGED
@@ -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
@@ -176,11 +177,26 @@ not select it.
176
177
 
177
178
  `uru tools search` uses the same server index as chat and MCP. It returns five
178
179
  matches by default, with a maximum of 50. Use the returned `--cursor` for the
179
- next page. `uru tools schema` loads the exact selected action schema.
180
+ next page. Search lists actions and account details without loading their input
181
+ rules. `uru tools schema` loads the exact selected action schema.
180
182
  `uru tools output` reads the complete redacted JSON behind a retained result
181
183
  handle. It uses the logged-in user and workspace, and reads bounded pages.
182
184
  `uru tools run` sends its stable action reference and arguments. Platform
183
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.
184
200
 
185
201
  `tools run --parallel` accepts a JSON array of input objects. Calls run in order.
186
202
  If one fails, the command prints completed results and the failed input index.
@@ -189,17 +205,17 @@ Check those results before you retry a call that can change data.
189
205
  Gem Version commands save and inspect frozen checkpoints that group coherent
190
206
  Edits. The Version name and message are optional. Hosted Gems materialize one
191
207
  Version with `releases create`; embedded Gems do not need Releases. Neither
192
- action changes a public URL. Only `gems share update --version` changes the
193
- Version a Share serves. Provider-internal flags are not accepted: runtime
194
- routing is compiled server-side.
195
-
196
- `gems share create --role editor` makes an editor Share: each person you name
197
- signs in and edits the Gem from their Library (Personal by default). It has no
198
- URL, Version, gate or expiry. It lends the editors only the connections,
199
- Datasets and secrets named by `--consent`, or later by `gems share consents
200
- --grant` and `--revoke`, each as `kind:id` (kind is connection, dataset or
201
- secret). Only the owner of each one can lend it. `sharing shares_list` with no
202
- 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.
203
219
 
204
220
  The scaffold defaults to the production API (`https://api.uruintelligence.com`).
205
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: