@uru-intelligence/cli 0.6.2 → 0.6.3

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
@@ -6,6 +6,8 @@
6
6
 
7
7
  ### Breaking
8
8
 
9
+ - `uru tools run` prints a proxy action's value as structuredContent and the call workspace as _meta. The value is the action's structuredContent, or its whole result when it has none. As in Executor v2, the action's own text, media, resource blocks and provider _meta are not printed, so the command no longer prints them as content. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
10
+ - Action: Read .structuredContent for a proxy action's data. Do not expect .content blocks (text, media or resources) from a proxy action. A text-only action's result is now inside .structuredContent.
9
11
  - Each CLI call names one workspace through --workspace, URU_WORKSPACE_ID, or .uru/project.json, in that order. Login stores identity only. uru switch and workspace.switch are removed. OAuth approval covers all current and future workspace memberships; every call still checks access to its named workspace. — surfaces: cli, docs; reference: apps/cli/src/cli-runtime.ts
10
12
  - Action: Use uru workspace list to find workspace IDs. Pass --workspace <workspace-id>, set URU_WORKSPACE_ID, or link the directory with uru link --workspace <workspace-id>. Remove uru switch and set_current_workspace calls. Workspace API keys remain bound to their workspace.
11
13
  - gem.validate and gem.build return a hosted job id immediately. Pass --wait to poll gem.build_job until the compile settles. — surfaces: cli, docs; reference: skills/uru-gems/SKILL.md
@@ -105,6 +107,10 @@
105
107
  - 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.
106
108
  - `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
107
109
  - Action: No action is required. `--follow-duration-ms` now accepts up to 30 minutes (was 5).
110
+ - `uru tools run` and `uru tools schema` read Executor v2's execution outcome. A program the host refuses at start fails with `executor_capacity_exceeded` (retryable), and a failed action keeps its own error code. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
111
+ - Action: No change for successful calls. Retry a call that fails with `executor_capacity_exceeded` after a short wait.
112
+ - `uru tools schema` for an Uru proxy action prints Executor v2's describe item: the path, the whole description and the TypeScript signature. The raw JSON Schema and the action identity are no longer printed for these actions, because Executor v2's `tools.search.describe` takes only `paths`. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
113
+ - Action: Read the input and output types from `signature`. For a Gem binding, run `uru tools search "<task words>" --json` and read `gemDeclaration` from the `definitionGroups[].choices[]` entry with the same path.
108
114
  - 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
109
115
  - 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.
110
116
  - 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
@@ -126,7 +132,10 @@
126
132
  - 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.
127
133
  - @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
128
134
  - 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.
135
+ - `uru mcp serve` and `uru tools` keep working when another process on the same computer renews the same person's saved login. Before, the first renewal by another process made every later call fail with "The saved CLI sign-in changed" until the connection restarted. A login as a different person still stops the call. — surfaces: cli; reference: apps/cli/src/auth-commands.ts
136
+ - Action: Install the next CLI release and restart running `uru mcp serve` connections.
129
137
  - `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
138
+ - `uru tools run` prints a large action result in the same envelope as a small one. The server keeps only the action's own value behind a retained handle, so the CLI puts that value back in `result` and keeps `success` and the other execution fields. Before, a large result such as the `gem.inspect` Gem result envelope printed without `success`. — surfaces: cli; reference: apps/cli/src/client.ts
130
139
  - `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
131
140
  - `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
132
141
  - 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
@@ -139,7 +148,7 @@
139
148
  - 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.
140
149
  - 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
141
150
  - 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.
142
- - CLI tool calls use current Executor search and preserve raw action results, media, and metadata. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
151
+ - CLI tool calls use current Executor search and print the raw value of a proxy action's result. — surfaces: cli; reference: apps/cli/src/tools-mcp.ts
143
152
  - 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
144
153
  - Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
145
154
  - 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
@@ -149,6 +158,8 @@
149
158
  - Action: No action is required. After you switch workspace, the next command keeps the same login. A new login writes only the workspace the login response selected.
150
159
  - Pin URU_API_BASE and URU_PROXY_URL in generated MCP client config from the CLI API host, and send the MCP 2026-07-28 request envelope from CLI staging smoke. — surfaces: cli; reference: apps/cli/src/mcp-commands.ts
151
160
  - Action: After `uru mcp config` against development or staging, set URU_API_KEY and use the emitted URU_PROXY_URL so clients do not fall through to production MCP. Prefer published CLI >= 0.4.14.
161
+ - Prepare CLI 0.6.3 for Executor v2 results so successful programs return a successful exit status. — surfaces: cli, release; reference: apps/cli/package.json
162
+ - Action: Upgrade to 0.6.3 after npm publication. CLI 0.6.2 rejects successful Executor v2 results.
152
163
  - Recover from a revoked CLI session without reusing the dead JWT. When the API returns `session_revoked`, the CLI now rotates the stored OAuth login once or clears it instead of sending the revoked token until local expiry. — surfaces: cli; reference: apps/cli/src/cli.ts
153
164
  - Action: No action is required. Failures of this class now carry the `session_revoked` error code so they can be distinguished from a generic `auth_required` response.
154
165
  - Refreshing a saved connector login also refreshes its platform session. Sign-in, sign-out and workspace changes preserve a newer saved login when commands overlap. — surfaces: cli; reference: PR #7640
@@ -171,6 +182,7 @@
171
182
  - 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.
172
183
  - 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
173
184
  - 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.
185
+ - uru pull and Gem source-read commands read the complete stored response when a source tree or file exceeds the inline response limit. Downloads keep their file bytes and source lock. — surfaces: cli; reference: apps/cli/src/client.ts
174
186
  - uru push of a Gem source larger than one request no longer fails with an HTML 413 error. The push sends its files in parts of at most 196,608 bytes and then saves them all as one Edit. — surfaces: cli; reference: apps/cli/src/gem-source-commands.ts
175
187
  - Action: No action is required after the server update reaches your environment. A push in parts belongs to one source revision: if someone edits the Gem during the upload, the save stops, even with --force. Run uru pull, then push again.
176
188
  - 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
@@ -179,6 +191,7 @@
179
191
  - Action: Use gemDeclaration for source, then bind each connector role to the selected account. Keep Executor paths out of Gem source.
180
192
  - 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
181
193
  - Action: No action is required; prerelease and malformed registry versions now follow the same validation and ordering rules as release publication.
194
+ - When the server's tool schema has drifted from the field list in an older CLI, an invalid-arguments failure keeps its real error and failing-field details, and `uru operations inspect` prints the base contract with a note. `uru tools run` on a proxy action whose result is over 400,000 bytes now names that limit and how to get the value (fewer fields or a smaller page). — surfaces: cli; reference: apps/cli/src/tool-failure-guidance.ts
182
195
 
183
196
  ### Internal
184
197
 
package/README.md CHANGED
@@ -204,21 +204,29 @@ rules. `uru tools schema` loads the exact selected action schema.
204
204
  handle. It uses the logged-in user and workspace, and reads bounded pages.
205
205
  `uru tools run` sends its stable action reference and arguments. Platform
206
206
  operation calls do not take an `op` argument; the server sets that value.
207
- `uru tools run` prints the action's complete result. When the execute route
208
- answers a large result with a retained handle, the command reads the complete
209
- redacted JSON through the same route as `uru tools output`, then prints it.
207
+ `uru tools run` prints the action's value. When the host retains a whole
208
+ program result, the command reads the complete redacted JSON through the same
209
+ route as `uru tools output`, then prints the action value from it.
210
210
 
211
211
  For a proxy action, the CLI uses the fixed MCP `execute` tool. Schema reads use
212
- `tools.search.describe({ paths: [path] })` and read the first returned item.
212
+ `tools.search.describe({ paths: [path] })` and read the first returned item:
213
+ the path, the whole description and the TypeScript signature, with no raw JSON
214
+ Schemas.
213
215
  Calls use the exact `tools.<path>(parameters)`
214
216
  Executor path from the authorized catalog: the canonical address, or the call
215
217
  name when the catalog has no canonical address (for example `docs`). The CLI
216
218
  sends the action reference and workspace with each call. `uru tools run` prints
217
- the action's own `tools/call` result (`content`, `structuredContent`, `_meta`),
218
- not the Executor `execute` wrapper. When Executor keeps a large result behind a
219
- retained handle, the command reads the complete result through the same route
220
- as `uru tools output`. Platform and connector actions still use the exact
221
- action execute route.
219
+ the action value as `structuredContent` and the call workspace as `_meta`. The
220
+ value is the action's `structuredContent`, or its whole result when it has
221
+ none. As in Executor v2, the action's text, media and provider `_meta` are not
222
+ added to the program output, so the command does not print them. It never
223
+ prints the Executor `execute` wrapper. When Executor keeps a large program
224
+ result behind a retained handle, the command reads the complete stored result
225
+ through the same route as `uru tools output` and prints it. Platform and connector actions still use the exact action
226
+ execute route. That route keeps a large result's own value behind a retained
227
+ handle. The command reads the value and puts it in the envelope's `result`, so
228
+ a large result prints with `success` and the other execution fields, as a small
229
+ one does.
222
230
 
223
231
  `tools run --parallel` accepts a JSON array of input objects. Calls run in order.
224
232
  If one fails, the command prints completed results and the failed input index.