@uru-intelligence/cli 0.6.1 → 0.6.2

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
+ - 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
+ - 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.
9
11
  - 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
10
12
  - 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
13
  - 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
@@ -23,7 +25,7 @@
23
25
  - 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
24
26
  - 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
27
  - 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.
28
+ - Action: Pass --workspace <workspace-id>, set URU_WORKSPACE_ID, 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
29
  - 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
30
  - 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
31
  - 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
@@ -43,6 +45,8 @@
43
45
  - @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
46
  - @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
47
  - 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.
48
+ - @uru-intelligence/app 2.3.0 adds typed get, put, delete, and paged list operations for named JSON values in existing Gem storage. Browser and server contexts use the same API with the server-selected workspace, Gem, environment, and viewer partition. — surfaces: docs, sdk; reference: packages/app/README.md
49
+ - Action: After protected publication verifies version 2.3.0, rebuild Gems that need the new storage API with that exact package. Declare storage in uru.json. Storage writes do not retry automatically; read the value before repeating an uncertain write.
46
50
  - 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
47
51
  - 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.
48
52
  - 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
@@ -105,6 +109,7 @@
105
109
  - 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.
106
110
  - 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
107
111
  - 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.
112
+ - uru shares place: --take-out replaces --default; uru shares received shows IN YOUR LIBRARY. — surfaces: cli; reference: apps/cli/src/shares-resource-commands.ts
108
113
  - 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
109
114
  - Action: uru whoami now prints the grouped workspace list under the identity rows, after a blank line, in plain and rich output. uru switch lists workspaces grouped by Organization: each plain row gains an Organization column before the current mark, and the rich table gains an ORGANIZATION column. Scripts that read either command's text should read --json, which keeps the server's answer and order.
110
115
 
@@ -134,6 +139,7 @@
134
139
  - 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.
135
140
  - 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
136
141
  - 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
137
143
  - 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
138
144
  - Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
139
145
  - 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
@@ -159,11 +165,14 @@
159
165
  - 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.
160
166
  - 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
161
167
  - 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.
168
+ - uru init links the directory to the Library path the Gem got. A path whose name is an id now gets the Gem's real name, and the link follows it. — surfaces: cli; reference: apps/cli/src/gem-lifecycle-commands.ts
162
169
  - 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
163
170
  - 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
164
171
  - 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.
165
172
  - 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
166
173
  - 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.
174
+ - 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
+ - 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.
167
176
  - 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
168
177
  - Action: Check the command exit code before retrying a tool call. Private provider error details stay hidden.
169
178
  - 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
package/README.md CHANGED
@@ -10,7 +10,8 @@ staging smoke gates are all green; run it from the repo with Bun while iterating
10
10
  cd apps/cli
11
11
  bun src/index.ts login
12
12
  bun src/index.ts whoami --json
13
- bun src/index.ts switch <workspace-id>
13
+ bun src/index.ts workspace list
14
+ bun src/index.ts --workspace <workspace-id> whoami
14
15
  ```
15
16
 
16
17
  The CLI is registry-backed. Dedicated Gem/Library/Dataset/Automation commands
@@ -25,6 +26,13 @@ readiness, access, and the final published state.
25
26
  ## Current commands
26
27
 
27
28
  ```bash
29
+ # Discover visible skill packages and read an exact version.
30
+ bun src/index.ts skills list --source uru --json
31
+ bun src/index.ts skills read uru-gems --version <version-from-list>
32
+ bun src/index.ts skills read uru-gems --version <version-from-list> --path references/example.md --json
33
+ bun src/index.ts skills list --source gem --gem-id <gem-id> --version <ready-version-id>
34
+ bun src/index.ts skills read <name> --source gem --gem-id <gem-id> --version <ready-version-id>
35
+
28
36
  # Link the current directory to a server-side Gem. Writes only .uru/project.json.
29
37
  bun src/index.ts link --workspace <workspace-id> --path 'library/Golden Gems/My Gem.gem'
30
38
 
@@ -141,6 +149,20 @@ bun src/index.ts complete fish
141
149
  bun src/index.ts complete powershell
142
150
  ```
143
151
 
152
+ `skills` uses the same authorized, versioned reader as the public MCP `skills`
153
+ tool. Uru skills use the package version returned by `skills list`. Gem skills
154
+ require an exact ready Version ID. Each read checks current access on the
155
+ server. `--path` names a file inside the selected skill package; it never reads
156
+ a local file. Text reads print the file content. `--json` includes its metadata
157
+ and content. `skills list` supports `--offset` and `--limit` for paging.
158
+
159
+ `docs` searches the local operation reference. It does not read skill files.
160
+ `uru --json docs gem` returns `{ "query": "gem", "text": "..." }`.
161
+
162
+ Authenticated API, MCP, and OAuth data requests reject HTTP redirects. Configure
163
+ their final endpoint URL. Browser sign-in keeps the OAuth authorization redirect
164
+ flow.
165
+
144
166
  Generated MCP configs connect straight to the Uru MCP server over streamable
145
167
  HTTP: `"type": "http"` and the MCP URL of the CLI's environment
146
168
  (`https://mcp.uruintelligence.com/mcp` for production). Pass `--mcp-url <url>`
@@ -156,8 +178,7 @@ references that environment variable (`${URU_API_KEY}` for Claude Code,
156
178
 
157
179
  Every entry sends the `X-Uru-Workspace-Id` header, because every MCP call names
158
180
  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`.
181
+ from `--workspace`, `URU_WORKSPACE_ID`, or the linked project.
161
182
 
162
183
  The workspace must be a UUID, because the MCP server refuses any other value
163
184
  in the workspace header.
@@ -188,7 +209,8 @@ answers a large result with a retained handle, the command reads the complete
188
209
  redacted JSON through the same route as `uru tools output`, then prints it.
189
210
 
190
211
  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)`
212
+ `tools.search.describe({ paths: [path] })` and read the first returned item.
213
+ Calls use the exact `tools.<path>(parameters)`
192
214
  Executor path from the authorized catalog: the canonical address, or the call
193
215
  name when the catalog has no canonical address (for example `docs`). The CLI
194
216
  sends the action reference and workspace with each call. `uru tools run` prints
@@ -240,7 +262,7 @@ explicit token/API-key paths:
240
262
  - `uru login --token ...` stores the token in OS credential storage when available: macOS Keychain, Linux `secret-tool`/libsecret, or Windows Credential Manager via PowerShell
241
263
  - `uru login --token ... --insecure-storage` is the explicit plaintext fallback
242
264
  - Linux token storage requires `secret-tool` (often installed as `libsecret-tools`); Windows token storage requires PowerShell access to Credential Manager. If the OS store is unavailable, login fails closed with an actionable `--insecure-storage` fallback message.
243
- - browser/device credentials renew within five minutes of session expiry. A workspace switch is request scope and does not rotate the login.
265
+ - browser/device credentials renew within five minutes of session expiry. Naming a workspace is request scope and does not rotate the login.
244
266
  - interactive commands with missing or expired stored auth start browser login and then retry the command without printing login success text to stdout
245
267
  - `--no-input` disables implicit login and exits `4` when authentication is missing
246
268
  - `uru logout` invalidates the current CLI session, revokes the renewable OAuth credential, and clears local auth state
@@ -252,7 +274,7 @@ explicit token/API-key paths:
252
274
  - linked project state: `.uru/project.json` with `{workspaceId, gemId, libraryPath}`
253
275
  - no credentials are written to `.uru/project.json`
254
276
  - `uru auth status` reports logged-in / workspace / storage / expiry and never prints a JWT. `uru whoami` stays a server identity call.
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.
277
+ - `uru link` binds this directory to one Gem. Each call takes its workspace from `--workspace`, then `URU_WORKSPACE_ID`, then `.uru/project.json`. Login stores identity only. Workspace API keys stay bound to their workspace.
256
278
  - The screen says Agent; Library paths and schemas say persona (`library/Agents/Name.persona.md`).
257
279
  - Gem secrets use `uru secrets put|ls|rm`; values are write-only
258
280
  - `uru env pull` writes a metadata-only template, never downloads remote secret