@uru-intelligence/cli 0.5.1 → 0.5.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
@@ -8,6 +8,8 @@
8
8
 
9
9
  - 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
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
+ - 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
+ - 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.
11
13
  - 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
12
14
  - 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.
13
15
 
@@ -80,12 +82,16 @@
80
82
  - Action: No action is required. `uru doctor` gains a `data access` check and fails when a credential validates but cannot execute tools; a token supplied through `--token` or `URU_TOKEN` is no longer told to run `uru login`.
81
83
  - Send scope on uru automations create, honor --output/--json on uru tools run, and keep errorId plus httpStatus on JSON errors. — surfaces: cli; reference: apps/cli/src/local-commands.ts
82
84
  - Action: uru automations create now sends scope=workspace by default. Pass --scope personal when creating a personal automation. JSON errors include errorId and httpStatus when the API provides them.
85
+ - Stop repeated browser or device consent after a new session is rejected. Cancel browser sign-in cleanly, reject unrelated callbacks, and bound OAuth network waits. Explain the supported Codex, Claude, Cursor, and Manus connection paths. — surfaces: cli, docs; reference: docs/research/2026-09-10-cli-mcp-auth-compatibility.md
86
+ - Action: Install CLI 0.5.2 with the matching Uru server release. Run uru login once. Cursor uses the documented public client ID.
83
87
  - The CLI tells the server which Gem result envelope it reads, and a server that cannot answer in it refuses before it acts instead of after the write. — surfaces: cli; reference: https://linear.app/uru-intelligence/issue/URU-1000
84
88
  - 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.
85
89
  - 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
86
90
  - 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.
87
91
  - 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
88
92
  - Action: Nothing to change. A not-logged-in inspect prints a pointer to uru login and exits 0; operations ls stays local and schema-free.
93
+ - uru operations run and inspect accept the tool name that uru operations ls prints beside each operation id, invalid_tool_arguments names the failing fields of the operation that ran, and a retryable failure says it is temporary and how to retry a write safely. — surfaces: cli; reference: apps/cli/src/tool-failure-guidance.ts
94
+ - 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.
89
95
  - 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
90
96
  - Action: No action is required; prerelease and malformed registry versions now follow the same validation and ordering rules as release publication.
91
97
 
package/README.md CHANGED
@@ -73,12 +73,12 @@ bun src/index.ts library rm 'library/Notes/Old.md'
73
73
  bun src/index.ts library restore 'library/Notes/Old.md'
74
74
  bun src/index.ts datasets ls --limit 50 --json
75
75
  bun src/index.ts datasets query revenue_rows --limit 50 --response-format concise --json
76
- # Registry-family commands accept canonical camelCase fields and adapt them at
77
- # the tool-protocol boundary.
76
+ # Registry-family commands send --params-json fields exactly as the tool's input
77
+ # schema spells them. Read that schema with --get-schema or `uru operations inspect <id>`.
78
78
  bun src/index.ts datasets get revenue-rows
79
79
  bun src/index.ts datasets history revenue-rows --limit 20
80
80
  bun src/index.ts datasets jobs revenue-rows --limit 20
81
- bun src/index.ts datasets rows --params-json '{"op":"upsert","datasetId":"revenue-rows","rows":[{"name":"Acme"}]}'
81
+ bun src/index.ts datasets rows --params-json '{"op":"upsert","dataset_id":"revenue-rows","rows":[{"name":"Acme"}]}'
82
82
  bun src/index.ts datasets create --params-json '{"title":"Revenue Rows","properties":[{"clientKey":"name","name":"Name","type":"title","required":true,"nullable":false,"position":0,"config":{}}]}'
83
83
  bun src/index.ts datasets sql --params-json '{"sql":"SELECT 1"}'
84
84
  bun src/index.ts distribution list --limit 20
@@ -247,52 +247,23 @@ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
247
247
  bun --filter=@uru-intelligence/cli run smoke:staging -- --json
248
248
  ```
249
249
 
250
- Publish the scoped CLI only through the **Publish Uru CLI to npm** workflow on
251
- `main`. A release request must identify the candidate certification workflow
252
- run ID, attempt, and exact retained bundle artifact ID; the publisher never
253
- selects `latest` evidence. Before it reads the release record, it verifies the
254
- candidate's GitHub DSSE/in-toto artifact attestations for both the canonical
255
- release record and the exact `uru_cli.tgz`, pins the builder repository,
256
- candidate workflow path, development ref policy, run/attempt, predicate type,
257
- and source-bundle identity, then recomputes the build-input inventory at
258
- `main`.
259
-
260
- The workflow publishes that retained tarball from a sterile private temporary
261
- directory with `npm publish --ignore-scripts`; it never rebuilds, repacks, or
262
- rewrites it. npm trusted publishing runs only from the protected `production`
263
- environment. The registry smoke compares npm `dist.integrity` to the certified
264
- SRI and runs `npm exec` from a clean OS temporary directory so the monorepo
265
- workspace cannot shadow the published package. It then invokes the complete
266
- published `cli_pin` certification matrix for both staging and production. A
267
- value-free publication-state artifact records the observed npm SRI even when a
268
- publish response or a later gate fails. Re-dispatching the same immutable
269
- candidate selector resumes only when npm already serves that exact certified
270
- SRI; it then repeats the registry and published-matrix proof before evidence,
271
- tag, or GitHub release creation. A different SRI fails closed. A changed source
272
- or failed certification needs a higher-version forward fix; no npm version is
273
- ever rewritten.
274
-
275
- The workflow requires the immutable, no-bypass CLI tag policy before npm
276
- publication and revalidates it before tag creation. GitHub hides a ruleset's
277
- bypass actors from an ordinary workflow token, so the two policy-check steps
278
- mint a short-lived, repository-scoped GitHub App token solely to inspect that
279
- property. The App's client ID is the `production` environment variable
280
- `CLI_RULESET_AUDIT_APP_CLIENT_ID`; its private key is the matching
281
- `CLI_RULESET_AUDIT_APP_PRIVATE_KEY` environment secret. Its administration
282
- write grant is required for visibility only and is never available to the npm
283
- publication step or the tag/release creation step. Only after published evidence
284
- is retained does the workflow create the annotated
285
- `uru-cli-vX.Y.Z` tag at the exact dispatched `main` commit and a GitHub release
286
- with generated notes. The final job verifies an existing tag is annotated and
287
- points to that same commit before it can resume an interrupted GitHub-release
288
- request; it never changes the npm package, repoints a tag, or treats a draft or
289
- prerelease as success. Before the first use, repository policy must contain an
290
- active, no-bypass `refs/tags/uru-cli-v*` rule that blocks both updates and
291
- deletions; the workflow queries and requires it before creating the tag.
292
-
293
- ```bash
294
- bun --filter=@uru-intelligence/cli run smoke:registry
295
- ```
250
+ Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
251
+ (`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
252
+ `apps/cli/package.json` version as its `version` input. The workflow rejects
253
+ other branches or a version mismatch.
254
+
255
+ The workflow runs the source gates, builds one tarball, and retains its integrity
256
+ values. Package smoke tests check that tarball before npm trusted publishing
257
+ runs from the protected environment. Publication uses the retained tarball with
258
+ `--ignore-scripts`, rather than rebuilding it. A retry may reuse an already
259
+ published version only when its integrity is identical. A different package
260
+ needs a higher version.
261
+
262
+ The final job rebuilds the checked-out CLI and tests it against staging using
263
+ credentials supplied by Infisical. It does not install the registry package.
264
+ Check that job and its retained smoke report, then install the exact published
265
+ version in a clean directory and verify the intended behavior. A successful npm
266
+ upload or source smoke alone does not complete registry verification.
296
267
 
297
268
  The npm package remains the canonical install path. Release builds can also
298
269
  produce standalone Bun-compiled binaries for the planned macOS/Linux/Windows
package/dist/library.mjs CHANGED
@@ -6429,7 +6429,7 @@ var zArtifactProjectFileUpdateRequest = object({
6429
6429
  content: string2().nullish(),
6430
6430
  contentBase64: string2().nullish(),
6431
6431
  createIfMissing: boolean2().optional().default(false),
6432
- path: string2().min(1).max(1024)
6432
+ path: string2().min(1).max(240)
6433
6433
  });
6434
6434
  var zArtifactRenderEventRequest = object({
6435
6435
  dependencyNames: array(string2()).nullish(),
@@ -11264,17 +11264,17 @@ var zThreadFileView = object({
11264
11264
  "quarantined",
11265
11265
  "failed"
11266
11266
  ]),
11267
- bytes: int().nullish(),
11267
+ bytes: int().nullable(),
11268
11268
  createdAtMs: int(),
11269
11269
  fileId: uuid2(),
11270
11270
  filename: string2(),
11271
11271
  folder: _enum(["uploads", "outputs"]),
11272
11272
  kind: _enum(["file", "image", "audio", "video"]),
11273
- mime: string2().nullish(),
11273
+ mime: string2().nullable(),
11274
11274
  modelAccess: _enum(["direct", "sandbox_only"]),
11275
11275
  previewUrl: string2().nullable(),
11276
11276
  threadId: uuid2(),
11277
- url: string2().nullish()
11277
+ url: string2().nullable()
11278
11278
  });
11279
11279
  var zThreadFileListResponse = object({
11280
11280
  files: array(zThreadFileView),
@@ -11634,10 +11634,7 @@ var zThreadShareLink = object({
11634
11634
  snapshotLeafMessageId: string2().nullable(),
11635
11635
  threadId: string2()
11636
11636
  });
11637
- var zThreadShareListResponse = object({
11638
- links: array(zThreadShareLink)
11639
- });
11640
- var zThreadShareMintResponse = object({
11637
+ var zThreadShareEnsureResponse = object({
11641
11638
  link: zThreadShareLink,
11642
11639
  token: string2(),
11643
11640
  url: string2().nullable()
@@ -11983,6 +11980,8 @@ var zThreadMessagesListResponse = object({
11983
11980
  siblings: record(string2(), array(string2()))
11984
11981
  });
11985
11982
  var zThreadShareSnapshot = object({
11983
+ files: array(zThreadFileView),
11984
+ generatedAt: string2(),
11986
11985
  messages: array(zThreadExportMessage),
11987
11986
  schema: _enum(["uru.thread-share"]),
11988
11987
  sharedAt: string2(),
@@ -13024,7 +13023,9 @@ var zGetUserDetailApiAdminUsageUsersUserIdGetResponse = record(string2(), unknow
13024
13023
  var zAdminListUsersApiAdminUsersGetQuery = object({
13025
13024
  limit: int().gte(1).lte(100).optional().default(50),
13026
13025
  offset: int().gte(0).nullish().default(0),
13027
- search: string2().max(200).optional()
13026
+ search: string2().max(200).optional(),
13027
+ status: _enum(["active", "deactivated"]).optional(),
13028
+ workspaces: _enum(["one", "many"]).optional()
13028
13029
  });
13029
13030
  var zAdminGetUserApiAdminUsersUserIdGetPath = object({
13030
13031
  userId: string2()
@@ -14238,6 +14239,7 @@ var zAuthorizeRequestApiOauthAuthorizeRequestGetQuery = object({
14238
14239
  var zAuthorizeRequestApiOauthAuthorizeRequestGetResponse = object({
14239
14240
  client_id: string2(),
14240
14241
  client_name: string2(),
14242
+ redirectUri: url(),
14241
14243
  resource: url(),
14242
14244
  scope: string2(),
14243
14245
  workspace_id: string2().nullable(),
@@ -14587,7 +14589,7 @@ var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesCo
14587
14589
  artifactSlug: string2()
14588
14590
  });
14589
14591
  var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesContentGetQuery = object({
14590
- path: string2().min(1).max(1024)
14592
+ path: string2().min(1).max(240)
14591
14593
  });
14592
14594
  var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesContentGetResponse = object({
14593
14595
  artifactId: string2(),
@@ -15897,6 +15899,7 @@ var zDatasetListRowsResponse = object({
15897
15899
  limit: int(),
15898
15900
  nextCursor: string2().nullish(),
15899
15901
  offset: int(),
15902
+ revision: string2().regex(/^(0|[1-9][0-9]{0,19})$/).optional(),
15900
15903
  rows: array(object({
15901
15904
  createdAt: string2().optional(),
15902
15905
  deleted: boolean2().optional(),
@@ -15921,6 +15924,7 @@ var zDatasetListRowsResponse = object({
15921
15924
  total: int().nullable()
15922
15925
  });
15923
15926
  var zDatasetUpsertRowsBody = object({
15927
+ expectedDatasetRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/).optional(),
15924
15928
  idempotencyKey: string2().min(1).max(128).optional(),
15925
15929
  rows: array(record(string2(), union([
15926
15930
  string2(),
@@ -15945,6 +15949,8 @@ var zDatasetUpsertRowsResponse = object({
15945
15949
  updatedIds: array(string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/))
15946
15950
  });
15947
15951
  var zDatasetDeleteRowsBody = object({
15952
+ expectedDatasetRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/).optional(),
15953
+ idempotencyKey: string2().min(1).max(128).optional(),
15948
15954
  rowIds: array(string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/)).max(1000).optional().default([])
15949
15955
  });
15950
15956
  var zDatasetDeleteRowsPath = object({
@@ -16022,6 +16028,8 @@ var zDatasetSubmitRowsMutationResponse = object({
16022
16028
  ])
16023
16029
  });
16024
16030
  var zDatasetRestoreRowsBody = object({
16031
+ expectedDatasetRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/).optional(),
16032
+ idempotencyKey: string2().min(1).max(128).optional(),
16025
16033
  rowIds: array(string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/)).max(1000).optional().default([])
16026
16034
  });
16027
16035
  var zDatasetRestoreRowsPath = object({
@@ -17289,10 +17297,7 @@ var zThreadSandboxListPath = object({
17289
17297
  var zThreadSandboxListQuery = object({
17290
17298
  path: string2().max(512).optional()
17291
17299
  });
17292
- var zThreadShareListPath = object({
17293
- threadId: uuid2()
17294
- });
17295
- var zThreadShareMintPath = object({
17300
+ var zThreadShareEnsurePath = object({
17296
17301
  threadId: uuid2()
17297
17302
  });
17298
17303
  var zThreadShareRevokePath = object({
@@ -17562,7 +17567,7 @@ function pickString(record2, keys) {
17562
17567
  // package.json
17563
17568
  var package_default = {
17564
17569
  name: "@uru-intelligence/cli",
17565
- version: "0.5.1",
17570
+ version: "0.5.3",
17566
17571
  private: false,
17567
17572
  description: "Uru full-platform command line interface",
17568
17573
  repository: {
@@ -17642,6 +17647,9 @@ class CliError extends Error {
17642
17647
  suggestedCommand;
17643
17648
  errorId;
17644
17649
  httpStatus;
17650
+ retryable;
17651
+ tip;
17652
+ details;
17645
17653
  constructor(message, options = {}) {
17646
17654
  super(message, options.cause === undefined ? undefined : { cause: options.cause });
17647
17655
  this.name = "CliError";
@@ -17659,6 +17667,15 @@ class CliError extends Error {
17659
17667
  if (options.httpStatus !== undefined) {
17660
17668
  this.httpStatus = options.httpStatus;
17661
17669
  }
17670
+ if (options.retryable === true) {
17671
+ this.retryable = true;
17672
+ }
17673
+ if (options.tip !== undefined) {
17674
+ this.tip = options.tip;
17675
+ }
17676
+ if (options.details !== undefined) {
17677
+ this.details = options.details;
17678
+ }
17662
17679
  }
17663
17680
  }
17664
17681
  function defaultCliErrorCode(exitCode) {
@@ -17923,6 +17940,9 @@ function toolTransportError(body, requestBody) {
17923
17940
  const structured = {
17924
17941
  ...error2.errorCode === undefined ? {} : { errorCode: error2.errorCode },
17925
17942
  ...error2.errorId === undefined ? {} : { errorId: error2.errorId },
17943
+ ...error2.details === undefined ? {} : { details: error2.details },
17944
+ ...error2.tip === undefined ? {} : { tip: error2.tip },
17945
+ ...isTransientFailure(status, body) ? { retryable: true } : {},
17926
17946
  httpStatus: status
17927
17947
  };
17928
17948
  if (status === 409) {
@@ -18057,13 +18077,28 @@ function apiError(status, payload, requestBody) {
18057
18077
  "error_code"
18058
18078
  ]);
18059
18079
  const errorId = pickStringFromJsonValue(envelope, ["errorId", "error_id"]);
18080
+ const serverDetails = isRecord(envelope) ? envelope["details"] : undefined;
18081
+ const tip = serverTip(envelope);
18060
18082
  return new CliError(message, {
18083
+ ...tip === undefined ? {} : { tip: stripTerminalControl(redactValues(tip, redactions)) },
18061
18084
  code: status === 401 ? ExitCode.AuthRequired : ExitCode.Failure,
18062
18085
  errorCode: backendCode ?? (status === 401 ? "auth_required" : status === 403 ? "permission_denied" : "api_request_failed"),
18063
18086
  httpStatus: status,
18064
- ...errorId === undefined ? {} : { errorId }
18087
+ ...errorId === undefined ? {} : { errorId },
18088
+ ...isTransientFailure(status, payload) ? { retryable: true } : {},
18089
+ ...serverDetails !== undefined && isJsonObject(serverDetails) ? { details: serverDetails } : {}
18065
18090
  });
18066
18091
  }
18092
+ function isTransientFailure(status, payload) {
18093
+ if (status === 429 || status === 503) {
18094
+ return true;
18095
+ }
18096
+ if (!isRecord(payload)) {
18097
+ return false;
18098
+ }
18099
+ const nested = payload["error"];
18100
+ return payload["retryable"] === true || isRecord(nested) && nested["retryable"] === true;
18101
+ }
18067
18102
  function pickStringFromJsonValue(value, keys) {
18068
18103
  return isRecord(value) ? pickString(value, keys) : undefined;
18069
18104
  }
@@ -18101,16 +18136,23 @@ function errorDetails(payload) {
18101
18136
  if (code !== undefined) {
18102
18137
  details.push(`Code: ${code}`);
18103
18138
  }
18104
- const tip = pickString(payload, ["tip"]);
18105
- if (tip !== undefined) {
18106
- details.push(`Tip: ${tip}`);
18107
- }
18108
18139
  const nested = payload["details"];
18109
18140
  if (isJsonObject(nested)) {
18110
18141
  details.push(...errorDetails(nested));
18111
18142
  }
18112
18143
  return [...new Set(details)];
18113
18144
  }
18145
+ function serverTip(payload) {
18146
+ if (!isRecord(payload)) {
18147
+ return;
18148
+ }
18149
+ const tip = pickString(payload, ["tip"]);
18150
+ if (tip !== undefined) {
18151
+ return tip;
18152
+ }
18153
+ const nested = payload["details"];
18154
+ return isJsonObject(nested) ? serverTip(nested) : undefined;
18155
+ }
18114
18156
  function collectSensitiveValues(value) {
18115
18157
  if (value === undefined || value === null) {
18116
18158
  return [];