@uru-intelligence/cli 0.5.6 → 0.5.8

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
@@ -62,6 +62,10 @@
62
62
  - 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
63
  - 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
64
64
  - Action: Nothing changes for a viewer share. For an editor share, pass --role editor with --people, and name each connection, Dataset or secret the editors may run with --consent kind:id (kind is connection, dataset or secret). Only the owner of each one can lend it. An editor share refuses --version, --pin, --gate, --anyone, --expires-at, --notify-on-open and --verify, because it has no URL.
65
+ - uru gems share create and add-people take --no-notify, which adds the people without the "shared with you" email. Each command now prints the addresses the email was queued for. — surfaces: cli; reference: docs/GEM_SYSTEM.md
66
+ - 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
+ - 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
+ - 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.
65
69
  - 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
66
70
  - 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.
67
71
  - 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
@@ -90,6 +94,8 @@
90
94
  - 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.
91
95
  - 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
92
96
  - 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
+ - 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
+ - Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
93
99
  - 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
94
100
  - Action: No action is required. Agents and scripts can read `suggestedCommand` from JSON errors instead of guessing the confirmation flag.
95
101
  - 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
@@ -98,6 +104,8 @@
98
104
  - 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.
99
105
  - 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
100
106
  - 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.
107
+ - 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
108
+ - Action: Install CLI 0.5.8. Existing valid device sign-ins need no new approval.
101
109
  - Report a non-JSON API response as what it is. A proxy or firewall that answers with an HTML page now produces the HTTP status and content type instead of `Unexpected token '<', "<!DOCTYPE "... is not valid JSON`. — surfaces: cli; reference: apps/cli/src/client.ts
102
110
  - Action: No action is required. Failures of this class now carry the `non_json_response` error code, keep the auth exit code on a 401, and print a tip naming the likely cause.
103
111
  - Report what a rejected credential actually means: `uru doctor` now runs a read-only data call instead of trusting `uru whoami`, API error envelopes are read in full, and auth advice follows where the token came from. — surfaces: cli; reference: apps/cli/src/doctor.ts
package/README.md CHANGED
@@ -190,7 +190,8 @@ explicit token/API-key paths:
190
190
  - interactive commands with missing or expired stored auth start browser login and then retry the command without printing login success text to stdout
191
191
  - `--no-input` disables implicit login and exits `4` when authentication is missing
192
192
  - `uru logout` invalidates the current CLI session, revokes the renewable OAuth credential, and clears local auth state
193
- - precedence: `--token` / `--token-file` / `--token-stdin` > `URU_TOKEN` > OS keychain > `--insecure-storage` local config
193
+ - precedence: `--token` / `--token-file` / `--token-stdin` > `URU_TOKEN` > a local config login saved with `--insecure-storage` for the selected API > the OS keychain entry for the selected API
194
+ - A local config login for another API is not selected or cleared by this invocation.
194
195
  - manually supplied tokens and CI tokens are used as-is and do not gain OAuth renewal
195
196
  - local config: `URU_CONFIG_HOME`, then XDG config home, then `~/.config/uru`
196
197
  - config file permissions: `0600`
@@ -265,6 +266,40 @@ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
265
266
  bun --filter=@uru-intelligence/cli run smoke:staging -- --json
266
267
  ```
267
268
 
269
+ The smoke builds and runs the checkout by default. To test a packed tarball
270
+ instead, install it into a temporary prefix and pass that `uru` with `--cli`.
271
+ The smoke then skips the build:
272
+
273
+ ```bash
274
+ prefix="$(mktemp -d)"
275
+ NPM_CONFIG_PREFIX="$prefix" npm install --global <tarball.tgz> --ignore-scripts
276
+ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
277
+ STAGING_AUTH_BEARER_TOKEN=... \
278
+ node apps/cli/scripts/staging-smoke.mjs --cli "$prefix/bin/uru" --json
279
+ ```
280
+
281
+ ### Named offline safety
282
+
283
+ The PR client safety lane and CLI release gate run `test:safety`. The
284
+ [Agent Testing Guide](../../docs/agent-guides/testing.md) owns the test rule.
285
+ Ordinary command arguments, operation mappings, and successful polling belong
286
+ to deployed product runs. The remaining offline cases protect these failures:
287
+
288
+ | Failure | Test owner | Why the deployed suite cannot show it safely or precisely |
289
+ | --- | --- | --- |
290
+ | 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
+ | 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
+ | 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. |
294
+ | 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
+ | 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
+ | 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. |
297
+ | A failed diagnostic claims healthy access, or a missing route becomes an endless poll | `cli-doctor.test.ts`, `cli-gem-logs-follow.test.ts`, `cli-gem-source-remote-degrade.test.ts` | These cases need a deliberate route or middleware fault and a timed local cancellation. A deployed test run cannot change the server or choose a socket failure point. |
298
+ | 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
+ | 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
+ | 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. |
302
+
268
303
  Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
269
304
  (`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
270
305
  `apps/cli/package.json` version as its `version` input. The workflow rejects
@@ -275,6 +310,23 @@ tarball for 90 days. Package smoke tests check that tarball before npm trusted
275
310
  publishing runs from the protected environment. Publication uses the retained
276
311
  tarball with `--ignore-scripts`, rather than rebuilding it.
277
312
 
313
+ The staging smoke job also runs before npm publishing. It downloads the retained
314
+ tarball, checks its SHA-256, inspects it, installs it into a temporary prefix,
315
+ and runs the installed `uru` against staging with credentials from Infisical. It
316
+ does not build the checkout. A staging smoke failure stops the run before npm,
317
+ so the version stays unpublished and the fixed tarball can use the same version.
318
+ The smoke passes the wrong-workspace check only when the MCP proxy refuses the
319
+ workspace by name (`workspace_not_accessible` or
320
+ `workspace_not_allowed_for_credential`).
321
+
322
+ To rehearse a release without publishing, dispatch the workflow with
323
+ `smoke_only` set to `true`. The run builds, gates and smokes the exact tarball
324
+ against staging, then skips the publish and exact-archive jobs:
325
+
326
+ ```bash
327
+ gh workflow run publish-uru-cli.yml --ref staging -f version=<version> -f smoke_only=true
328
+ ```
329
+
278
330
  Before npm can publish, the workflow checks earlier publish runs on Staging and
279
331
  Main. If an earlier run may have reached npm, a retry uses its retained tarball
280
332
  when available and compares every byte with the current tested tarball. It then
@@ -283,14 +335,19 @@ runs verification only. It never calls `npm publish` again for that version.
283
335
  After npm exposes the expected integrity, the workflow downloads the published
284
336
  tarball and checks both its SHA-256 and SHA-512 values against the tested file.
285
337
  If npm accepts the package but delays metadata or tarball download, the run
286
- fails with “verification pending”. Rerun the workflow to verify the saved file.
287
- A different package needs a higher version.
288
-
289
- The final job rebuilds the checked-out CLI and tests it against staging using
290
- credentials supplied by Infisical. It does not install the registry package.
291
- Check that job and its retained smoke report, then install the exact published
292
- version in a clean directory and verify the intended behavior. A successful npm
293
- upload or source smoke alone does not complete registry verification.
338
+ fails with “verification pending”. Re-run the **Publish the exact release
339
+ tarball** job of the same run (`gh run rerun <run-id> --job <job-id>`, within
340
+ 30 days). That re-run keeps the run's validated tarball and staging smoke
341
+ result, verifies the saved file without another publish, and runs the
342
+ exact-archive gate again. "Re-run failed jobs" does not re-run a publish job that
343
+ succeeded with a pending verification. A new dispatch works too, but it must
344
+ pass the staging smoke again before it reaches verification. A different
345
+ package needs a higher version.
346
+
347
+ The final job, the exact-archive gate, fails the run until the publish job
348
+ reports that npm serves the exact tested bytes. Check that job, then install the
349
+ exact published version in a clean directory and verify the intended behavior. A
350
+ successful npm upload alone does not complete registry verification.
294
351
 
295
352
  The npm package remains the canonical install path. Release builds can also
296
353
  produce standalone Bun-compiled binaries for the planned macOS/Linux/Windows
package/dist/library.mjs CHANGED
@@ -6429,9 +6429,6 @@ var zArtifactMetadataUpdateRequest = object({
6429
6429
  metadata: record(string2(), unknown()).nullish(),
6430
6430
  title: string2().min(1).max(255).nullish()
6431
6431
  });
6432
- var zArtifactMoveFolderRequest = object({
6433
- folderId: string2().nullish()
6434
- });
6435
6432
  var zArtifactPackageObject = object({
6436
6433
  bytes: int().nullish(),
6437
6434
  content: string2().nullish(),
@@ -6755,6 +6752,30 @@ var zAutoAcceptSettingResponse = object({
6755
6752
  autoAcceptSharing: boolean2(),
6756
6753
  workspaceId: string2()
6757
6754
  });
6755
+ var zAutomationAccess = object({
6756
+ capabilities: array(_enum([
6757
+ "read",
6758
+ "read_run_outline",
6759
+ "edit",
6760
+ "run",
6761
+ "stop_run",
6762
+ "pause",
6763
+ "resume",
6764
+ "delete",
6765
+ "grade",
6766
+ "rebind_authority",
6767
+ "change_billing_route",
6768
+ "respond_approval",
6769
+ "govern_authority"
6770
+ ])),
6771
+ grant: _enum([
6772
+ "owner",
6773
+ "library_editor",
6774
+ "library_viewer",
6775
+ "workspace_oversight",
6776
+ "approval_recipient"
6777
+ ])
6778
+ });
6758
6779
  var zAutomationBillingRouteSubscription = object({
6759
6780
  kind: _enum(["subscription"]),
6760
6781
  provider: _enum(["chatgpt", "grok", "cursor"])
@@ -6767,7 +6788,7 @@ var zAutomationBillingRoute = discriminatedUnion("kind", [
6767
6788
  zAutomationBillingRouteSubscription.extend({ kind: literal("subscription") })
6768
6789
  ]);
6769
6790
  var zAutomation = object({
6770
- accessRole: string2().nullish(),
6791
+ access: zAutomationAccess.optional(),
6771
6792
  billingRoute: zAutomationBillingRoute,
6772
6793
  contextConfig: record(string2(), unknown()).optional(),
6773
6794
  createdAt: exports_iso.datetime({ offset: true }).nullish(),
@@ -6785,6 +6806,7 @@ var zAutomation = object({
6785
6806
  toolPolicy: record(string2(), unknown()).optional(),
6786
6807
  triggers: array(record(string2(), unknown())).optional(),
6787
6808
  updatedAt: exports_iso.datetime({ offset: true }).nullish(),
6809
+ viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
6788
6810
  workspaceId: string2()
6789
6811
  });
6790
6812
  var zAutomationControlHistoryItem = strictObject({
@@ -6974,6 +6996,39 @@ var zAutomationRunLogEntry = strictObject({
6974
6996
  message: string2(),
6975
6997
  metadata: record(string2(), unknown())
6976
6998
  });
6999
+ var zAutomationRunOutline = strictObject({
7000
+ access: zAutomationAccess,
7001
+ approvals: array(object({
7002
+ decidedAt: string2().nullable(),
7003
+ id: string2(),
7004
+ message: string2(),
7005
+ nodeId: string2().nullable(),
7006
+ status: string2(),
7007
+ youDecide: boolean2()
7008
+ })),
7009
+ automation: object({
7010
+ id: string2(),
7011
+ name: string2()
7012
+ }),
7013
+ owner: object({
7014
+ displayName: string2().nullable()
7015
+ }),
7016
+ run: object({
7017
+ durationMs: int().gte(0).nullable(),
7018
+ finishedAt: string2().nullable(),
7019
+ id: string2(),
7020
+ startedAt: string2().nullable(),
7021
+ status: string2()
7022
+ }),
7023
+ steps: array(object({
7024
+ finishedAt: string2().nullable(),
7025
+ kind: string2().nullable(),
7026
+ label: string2().nullable(),
7027
+ nodeId: string2(),
7028
+ startedAt: string2().nullable(),
7029
+ state: _enum(["not_started", "running", "finished"])
7030
+ }))
7031
+ });
6977
7032
  var zAutomationRunTranscriptResponse = strictObject({
6978
7033
  has_more: boolean2(),
6979
7034
  history_state: _enum([
@@ -7863,6 +7918,14 @@ var zCrossWorkspaceShareResponse = object({
7863
7918
  terminalReason: string2().nullable(),
7864
7919
  updatedAt: exports_iso.datetime({ offset: true })
7865
7920
  });
7921
+ var zCrossWorkspaceOutgoingShareResponse = zCrossWorkspaceShareResponse.and(object({
7922
+ canManage: boolean2()
7923
+ }));
7924
+ var zCrossWorkspaceOutgoingShareListResponse = object({
7925
+ hasMore: boolean2(),
7926
+ shares: array(zCrossWorkspaceOutgoingShareResponse),
7927
+ totalCount: int()
7928
+ });
7866
7929
  var zCrossWorkspaceShareListResponse = object({
7867
7930
  hasMore: boolean2(),
7868
7931
  shares: array(zCrossWorkspaceShareResponse),
@@ -9049,7 +9112,8 @@ var zGemShareAudienceRequest = strictObject({
9049
9112
  });
9050
9113
  var zGemShareCaller = strictObject({
9051
9114
  canManage: boolean2(),
9052
- isOwner: boolean2()
9115
+ isOwner: boolean2(),
9116
+ peopleSearch: _enum(["organization", "workspace"]).nullable()
9053
9117
  });
9054
9118
  var zGemShareCapability = strictObject({
9055
9119
  blockedReason: _enum(["adopted_connection", "no_personal_owner"]).nullable(),
@@ -9113,10 +9177,14 @@ var zGemShareOwner = strictObject({
9113
9177
  isYou: boolean2(),
9114
9178
  name: string2().nullable()
9115
9179
  });
9180
+ var zGemSharePeopleResponse = strictObject({
9181
+ people: array(zGemShareAudiencePerson)
9182
+ });
9116
9183
  var zGemSharePerson = strictObject({
9117
9184
  email: string2().min(3).max(320)
9118
9185
  });
9119
9186
  var zAddGemShareRecipientsRequest = strictObject({
9187
+ notify: boolean2().optional(),
9120
9188
  people: array(zGemSharePerson).min(1).max(100)
9121
9189
  });
9122
9190
  var zCreateGemShareRequest = strictObject({
@@ -9127,6 +9195,7 @@ var zCreateGemShareRequest = strictObject({
9127
9195
  kind: _enum(["editor", "viewer"]).optional(),
9128
9196
  message: string2().max(2000).nullish(),
9129
9197
  name: string2().min(1).max(200),
9198
+ notify: boolean2().optional(),
9130
9199
  notifyOnOpen: _enum(["all_views", "first_view_only", "off"]).optional(),
9131
9200
  people: array(zGemSharePerson).max(100).optional(),
9132
9201
  version: object({
@@ -9169,7 +9238,6 @@ var zGemShareVersion = strictObject({
9169
9238
  }).nullable();
9170
9239
  var zGemShare = strictObject({
9171
9240
  allowCopy: boolean2(),
9172
- allowReshare: boolean2(),
9173
9241
  audiences: array(zGemShareAudience),
9174
9242
  canManage: boolean2().optional(),
9175
9243
  consents: array(zGemShareConsent),
@@ -9179,6 +9247,7 @@ var zGemShare = strictObject({
9179
9247
  expiresAt: string2().nullable(),
9180
9248
  gate: zGemShareGate,
9181
9249
  gemId: string2(),
9250
+ generalAccessCount: int(),
9182
9251
  hasNamedRecipients: boolean2(),
9183
9252
  id: string2(),
9184
9253
  kind: _enum(["editor", "viewer"]),
@@ -9199,7 +9268,6 @@ var zGemShare = strictObject({
9199
9268
  });
9200
9269
  var zGemShareDetail = strictObject({
9201
9270
  allowCopy: boolean2(),
9202
- allowReshare: boolean2(),
9203
9271
  audiences: array(zGemShareAudience),
9204
9272
  canManage: boolean2().optional(),
9205
9273
  consents: array(zGemShareConsent),
@@ -9230,6 +9298,12 @@ var zGemShareDetail = strictObject({
9230
9298
  });
9231
9299
  var zGemShareAddRecipientsResponse = strictObject({
9232
9300
  added: array(zGemShareRecipient),
9301
+ emailed: array(string2()),
9302
+ gemId: string2(),
9303
+ share: zGemShareDetail
9304
+ });
9305
+ var zGemShareCreateResponse = strictObject({
9306
+ emailed: array(string2()),
9233
9307
  gemId: string2(),
9234
9308
  share: zGemShareDetail
9235
9309
  });
@@ -9237,6 +9311,11 @@ var zGemShareResponse = strictObject({
9237
9311
  gemId: string2(),
9238
9312
  share: zGemShareDetail
9239
9313
  });
9314
+ var zGemShareUpdateResponse = strictObject({
9315
+ gemId: string2(),
9316
+ linkTurnedOff: boolean2(),
9317
+ share: zGemShareDetail
9318
+ });
9240
9319
  var zGemShareViewEvent = strictObject({
9241
9320
  clientIp: string2().nullable(),
9242
9321
  durationSeconds: number2().nullable(),
@@ -10252,6 +10331,7 @@ var zLibraryShareRequest = object({
10252
10331
  automationPackageConfirmationToken: string2().min(16).nullish(),
10253
10332
  expiresAt: exports_iso.datetime({ offset: true }).nullish(),
10254
10333
  message: string2().nullish(),
10334
+ notify: boolean2().optional().default(true),
10255
10335
  recipients: array(zLibraryShareRecipientRequest).optional(),
10256
10336
  shareMode: string2().regex(/^(reference|copy)$/).optional().default("reference"),
10257
10337
  shareScope: string2().regex(/^(specific_users|workspace)$/).optional().default("specific_users")
@@ -11785,6 +11865,7 @@ var zShareContentRequest = object({
11785
11865
  contentType: zContentTypeInput,
11786
11866
  description: string2().nullish(),
11787
11867
  expiresAt: exports_iso.datetime({ offset: true }).nullish(),
11868
+ notify: boolean2().optional().default(true),
11788
11869
  recipientUserIds: array(uuid2()).nullish(),
11789
11870
  recipients: array(zRecipientSpec).nullish(),
11790
11871
  replaceExistingRecipients: boolean2().optional().default(false),
@@ -13570,6 +13651,7 @@ var zUpdateExternalPermissionsRequest = object({
13570
13651
  });
13571
13652
  var zUpdateGemShareRequest = strictObject({
13572
13653
  audience: zGemShareAudienceRequest.optional(),
13654
+ audienceConfirmLinkOff: boolean2().optional(),
13573
13655
  expiresAt: exports_iso.datetime({ offset: true }).nullish(),
13574
13656
  gate: zGemShareGateRequest.optional(),
13575
13657
  message: string2().max(2000).nullish(),
@@ -14304,6 +14386,7 @@ var zWorkspacePlanSummary = object({
14304
14386
  slug: string2()
14305
14387
  }),
14306
14388
  planState: _enum(["free", "trialing", "paid"]),
14389
+ planType: _enum(["rate_limited", "pay_per_usage"]).nullable(),
14307
14390
  viewerCanManageBilling: boolean2()
14308
14391
  });
14309
14392
  var zWorkspaceRequestDeclineBody = object({
@@ -14430,17 +14513,11 @@ var zModulesPlatformModelsContextBlockResponse = object({
14430
14513
  title: string2(),
14431
14514
  updatedAt: exports_iso.datetime({ offset: true })
14432
14515
  });
14433
- var zModulesPlatformModelsContextBlockListResponse = object({
14434
- contextBlocks: array(zModulesPlatformModelsContextBlockResponse),
14435
- hasMore: boolean2(),
14436
- totalCount: int()
14437
- });
14438
14516
  var zModulesPlatformModelsContextBlockUpdateRequest = object({
14439
14517
  category: string2().regex(/^[a-z0-9_-]+$/).nullish(),
14440
14518
  content: string2().min(1).nullish(),
14441
14519
  description: string2().nullish(),
14442
14520
  folderId: string2().nullish(),
14443
- isFavorite: boolean2().nullish(),
14444
14521
  isLocked: boolean2().nullish(),
14445
14522
  isWorkspaceDefault: boolean2().nullish(),
14446
14523
  teamIds: array(string2()).nullish(),
@@ -14449,10 +14526,12 @@ var zModulesPlatformModelsContextBlockUpdateRequest = object({
14449
14526
  var zModulesSharingModelsContentType = _enum(["library_item"]);
14450
14527
  var zSharedContentResponse = object({
14451
14528
  activeRecipientCount: int().optional().default(0),
14529
+ canManage: boolean2().optional().default(false),
14452
14530
  contentId: uuid2(),
14453
14531
  contentType: zModulesSharingModelsContentType,
14454
14532
  createdAt: exports_iso.datetime({ offset: true }),
14455
14533
  description: string2().nullable(),
14534
+ emailedUserIds: array(uuid2()).optional(),
14456
14535
  expiresAt: exports_iso.datetime({ offset: true }).nullable(),
14457
14536
  id: uuid2(),
14458
14537
  metadata: record(string2(), unknown()),
@@ -14846,7 +14925,7 @@ var zUpdateWorkspaceMemberRoleApiAuthWorkspaceWorkspaceIdMembersUserIdRolePutRes
14846
14925
  var zGetUserWorkspacesApiAuthWorkspacesGetResponse = record(string2(), unknown());
14847
14926
  var zListAutomationsApiAutomationsGetQuery = object({
14848
14927
  statusFilter: string2().nullish(),
14849
- mine: boolean2().optional().default(false),
14928
+ view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
14850
14929
  folderFilter: _enum(["all", "root", "folder"]).optional().default("root"),
14851
14930
  folderId: string2().nullish(),
14852
14931
  limit: int().gte(1).lte(500).optional().default(100)
@@ -14866,12 +14945,13 @@ var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostPath = object(
14866
14945
  });
14867
14946
  var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostResponse = record(string2(), unknown());
14868
14947
  var zGetDashboardApiAutomationsDashboardGetQuery = object({
14869
- mine: boolean2().optional().default(false)
14948
+ view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
14870
14949
  });
14871
14950
  var zGetDashboardApiAutomationsDashboardGetResponse = record(string2(), unknown());
14872
14951
  var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetQuery = object({
14873
14952
  threshold: int().gte(0).lte(100).nullish().default(80),
14874
- limit: int().gte(1).lte(100).optional().default(25)
14953
+ limit: int().gte(1).lte(100).optional().default(25),
14954
+ view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
14875
14955
  });
14876
14956
  var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetResponse = array(record(string2(), unknown()));
14877
14957
  var zGetEvaluationDetailApiAutomationsEvaluationsEvaluationIdGetPath = object({
@@ -14907,7 +14987,7 @@ var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostPath = object
14907
14987
  var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostResponse = array(record(string2(), unknown()));
14908
14988
  var zListAllRunsApiAutomationsRunsGetQuery = object({
14909
14989
  limit: int().gte(1).lte(500).optional().default(100),
14910
- mine: boolean2().optional().default(false),
14990
+ view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
14911
14991
  cursor: string2().nullish(),
14912
14992
  include: string2().nullish()
14913
14993
  });
@@ -14972,6 +15052,9 @@ var zGetNodeThreadMessagesApiAutomationsRunsRunIdNodesNodeIdThreadMessagesGetQue
14972
15052
  runIndex: int().gte(0).optional(),
14973
15053
  attempt: int().gte(1).optional()
14974
15054
  });
15055
+ var zGetAutomationRunOutlinePath = object({
15056
+ runId: string2()
15057
+ });
14975
15058
  var zResumeRunEventsApiAutomationsRunsRunIdResumeStreamGetPath = object({
14976
15059
  runId: string2()
14977
15060
  });
@@ -15111,6 +15194,9 @@ var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryG
15111
15194
  rubricId: string2().nullish()
15112
15195
  });
15113
15196
  var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryGetResponse = record(string2(), unknown());
15197
+ var zPauseAutomationPath = object({
15198
+ automationId: string2()
15199
+ });
15114
15200
  var zUpdateQuickScheduleApiAutomationsAutomationIdQuickSchedulePatchPath = object({
15115
15201
  automationId: string2()
15116
15202
  });
@@ -15123,6 +15209,14 @@ var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePost
15123
15209
  rubricId: string2()
15124
15210
  });
15125
15211
  var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePostResponse = record(string2(), unknown());
15212
+ var zGetAutomationRubricPath = object({
15213
+ automationId: string2(),
15214
+ rubricId: string2()
15215
+ });
15216
+ var zGetAutomationRubricQuery = object({
15217
+ revision: int().gte(1).optional()
15218
+ });
15219
+ var zGetAutomationRubricResponse = record(string2(), unknown());
15126
15220
  var zManualRunApiAutomationsAutomationIdRunPostBody = zAutomationManualRunRequest.nullable();
15127
15221
  var zManualRunApiAutomationsAutomationIdRunPostPath = object({
15128
15222
  automationId: string2()
@@ -15132,7 +15226,7 @@ var zListRunsApiAutomationsAutomationIdRunsGetPath = object({
15132
15226
  });
15133
15227
  var zListRunsApiAutomationsAutomationIdRunsGetQuery = object({
15134
15228
  limit: int().gte(1).lte(500).optional().default(100),
15135
- mine: boolean2().optional().default(false),
15229
+ view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
15136
15230
  cursor: string2().nullish(),
15137
15231
  include: string2().nullish()
15138
15232
  });
@@ -16339,12 +16433,6 @@ var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchPath = o
16339
16433
  artifactSlug: string2()
16340
16434
  });
16341
16435
  var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchResponse = record(string2(), unknown());
16342
- var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostPath = object({
16343
- artifactSlug: string2()
16344
- });
16345
- var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostResponse = object({
16346
- success: literal(true)
16347
- });
16348
16436
  var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesContentGetPath = object({
16349
16437
  artifactSlug: string2()
16350
16438
  });
@@ -16501,18 +16589,6 @@ var zGetArtifactSourceTreeApiPlatformArtifactsArtifactSlugSourceTreeGetResponse
16501
16589
  revisionNumber: int(),
16502
16590
  sourceRevisionId: string2()
16503
16591
  });
16504
- var zSearchContextBlocksApiPlatformContextGetQuery = object({
16505
- query: string2().nullish(),
16506
- category: string2().nullish(),
16507
- isFavorite: boolean2().optional(),
16508
- personaId: string2().nullish(),
16509
- folderFilter: _enum(["all", "root", "folder"]).optional().default("all"),
16510
- folderId: uuid2().nullish(),
16511
- includeContent: boolean2().optional(),
16512
- contentPreviewChars: int().gte(0).lte(5000).nullish().default(400),
16513
- limit: int().gte(1).lte(100).optional().default(50),
16514
- offset: int().gte(0).nullish().default(0)
16515
- });
16516
16592
  var zDeleteContextBlockApiPlatformContextContextSlugDeletePath = object({
16517
16593
  contextSlug: string2()
16518
16594
  });
@@ -16523,13 +16599,6 @@ var zGetContextBlockApiPlatformContextContextSlugGetPath = object({
16523
16599
  var zUpdateContextBlockApiPlatformContextContextSlugPutPath = object({
16524
16600
  contextSlug: string2()
16525
16601
  });
16526
- var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostPath = object({
16527
- contextSlug: string2()
16528
- });
16529
- var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostQuery = object({
16530
- isFavorite: boolean2().optional()
16531
- });
16532
- var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostResponse = record(string2(), unknown());
16533
16602
  var zDatasetCreateBody = strictObject({
16534
16603
  idempotencyKey: string2().min(1).max(128),
16535
16604
  initialRows: array(strictObject({
@@ -17967,6 +18036,13 @@ var zCreateGemShareHeaders = object({
17967
18036
  var zCreateGemSharePath = object({
17968
18037
  gemRef: string2().min(1)
17969
18038
  });
18039
+ var zSearchGemSharePeoplePath = object({
18040
+ gemRef: string2().min(1)
18041
+ });
18042
+ var zSearchGemSharePeopleQuery = object({
18043
+ query: string2().min(2).max(200),
18044
+ limit: int().gte(1).lte(50).optional().default(20)
18045
+ });
17970
18046
  var zListGemVersionsPath = object({
17971
18047
  gemRef: string2().min(1)
17972
18048
  });
@@ -19473,7 +19549,7 @@ function pickString(record2, keys) {
19473
19549
  // package.json
19474
19550
  var package_default = {
19475
19551
  name: "@uru-intelligence/cli",
19476
- version: "0.5.6",
19552
+ version: "0.5.8",
19477
19553
  private: false,
19478
19554
  description: "Uru full-platform command line interface",
19479
19555
  repository: {
@@ -19501,9 +19577,8 @@ var package_default = {
19501
19577
  lint: "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts .",
19502
19578
  "lint:fix": "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts --fix .",
19503
19579
  "type-check": "tsc --noEmit",
19504
- test: "bun test",
19505
- "test:unit": "bun test",
19506
- ci: "bun run lint && bun run type-check && bun run test:unit && bun run docs:check && bun run changelog:check && bun run build && bun run smoke:package && bun run smoke:binaries",
19580
+ "test:safety": "node ../../scripts/ci/run-named-test-files.mjs bun test --files test/certified-tarball-inspection.test.ts test/command-spec.test.ts test/cli-auth-help.test.ts test/cli-distribution.test.ts test/cli-gem-lifecycle.test.ts test/cli-hardening.test.ts test/cli-login-cancellation.test.ts test/cli-login-noninteractive.test.ts test/cli-login-rejection.test.ts test/cli-mcp-auth-ux.test.ts test/cli-oauth-lifecycle.test.ts test/cli-oauth-offline.test.ts test/cli-openapi-contract.test.ts test/cli-token-env-run.test.ts test/cli-token-env.test.ts test/cli-tools-approve.test.ts test/cli-update-check.test.ts test/cli-update-notifier.test.ts test/cli-whoami-honesty.test.ts test/cli-workspace-organizations.test.ts test/credentials.test.ts test/held-idempotency-keys.test.ts test/oauth-callback.test.ts test/oauth-credential.test.ts test/oauth.test.ts test/publish-immutable-cli.test.ts test/stricli-compatibility.test.ts test/terminal-safety.test.ts test/cli-automations-wait.test.ts test/cli-connector-auth-status.test.ts test/cli-connector-oauth.test.ts test/cli-doctor.test.ts test/cli-gem-capabilities.test.ts test/cli-gem-logs-follow.test.ts test/cli-gem-source-remote-degrade.test.ts test/cli-gem-v2-commands.test.ts test/cli-platform-tools.test.ts test/cli-source-sync-push.test.ts test/cli-source-sync.part2.test.ts test/cli-source-sync.test.ts test/cli-tools-catalog.test.ts test/cli.test.ts test/client.test.ts test/config.test.ts test/gem-result.test.ts test/library.test.ts test/staging-smoke.test.ts test/platform-operations-tool-call-lookup.test.ts test/cli-gem-bindings.test.ts",
19581
+ ci: "bun run lint && bun run type-check && bun run test:safety && bun run docs:check && bun run changelog:check && bun run build && bun run smoke:package && bun run smoke:binaries",
19507
19582
  build: "node scripts/build.mjs && bun run check:dist-company-names",
19508
19583
  "check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
19509
19584
  prepack: "bun run build",