@uru-intelligence/cli 0.5.7 → 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 +4 -0
- package/README.md +24 -1
- package/dist/library.mjs +27 -6
- package/dist/uru.mjs +2071 -1630
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -62,6 +62,8 @@
|
|
|
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.
|
|
65
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
|
|
66
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.
|
|
67
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
|
|
@@ -102,6 +104,8 @@
|
|
|
102
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.
|
|
103
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
|
|
104
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.
|
|
105
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
|
|
106
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.
|
|
107
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` >
|
|
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`
|
|
@@ -277,6 +278,28 @@ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
|
|
|
277
278
|
node apps/cli/scripts/staging-smoke.mjs --cli "$prefix/bin/uru" --json
|
|
278
279
|
```
|
|
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
|
+
|
|
280
303
|
Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
|
|
281
304
|
(`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
|
|
282
305
|
`apps/cli/package.json` version as its `version` input. The workflow rejects
|
package/dist/library.mjs
CHANGED
|
@@ -9112,7 +9112,8 @@ var zGemShareAudienceRequest = strictObject({
|
|
|
9112
9112
|
});
|
|
9113
9113
|
var zGemShareCaller = strictObject({
|
|
9114
9114
|
canManage: boolean2(),
|
|
9115
|
-
isOwner: boolean2()
|
|
9115
|
+
isOwner: boolean2(),
|
|
9116
|
+
peopleSearch: _enum(["organization", "workspace"]).nullable()
|
|
9116
9117
|
});
|
|
9117
9118
|
var zGemShareCapability = strictObject({
|
|
9118
9119
|
blockedReason: _enum(["adopted_connection", "no_personal_owner"]).nullable(),
|
|
@@ -9176,10 +9177,14 @@ var zGemShareOwner = strictObject({
|
|
|
9176
9177
|
isYou: boolean2(),
|
|
9177
9178
|
name: string2().nullable()
|
|
9178
9179
|
});
|
|
9180
|
+
var zGemSharePeopleResponse = strictObject({
|
|
9181
|
+
people: array(zGemShareAudiencePerson)
|
|
9182
|
+
});
|
|
9179
9183
|
var zGemSharePerson = strictObject({
|
|
9180
9184
|
email: string2().min(3).max(320)
|
|
9181
9185
|
});
|
|
9182
9186
|
var zAddGemShareRecipientsRequest = strictObject({
|
|
9187
|
+
notify: boolean2().optional(),
|
|
9183
9188
|
people: array(zGemSharePerson).min(1).max(100)
|
|
9184
9189
|
});
|
|
9185
9190
|
var zCreateGemShareRequest = strictObject({
|
|
@@ -9190,6 +9195,7 @@ var zCreateGemShareRequest = strictObject({
|
|
|
9190
9195
|
kind: _enum(["editor", "viewer"]).optional(),
|
|
9191
9196
|
message: string2().max(2000).nullish(),
|
|
9192
9197
|
name: string2().min(1).max(200),
|
|
9198
|
+
notify: boolean2().optional(),
|
|
9193
9199
|
notifyOnOpen: _enum(["all_views", "first_view_only", "off"]).optional(),
|
|
9194
9200
|
people: array(zGemSharePerson).max(100).optional(),
|
|
9195
9201
|
version: object({
|
|
@@ -9241,6 +9247,7 @@ var zGemShare = strictObject({
|
|
|
9241
9247
|
expiresAt: string2().nullable(),
|
|
9242
9248
|
gate: zGemShareGate,
|
|
9243
9249
|
gemId: string2(),
|
|
9250
|
+
generalAccessCount: int(),
|
|
9244
9251
|
hasNamedRecipients: boolean2(),
|
|
9245
9252
|
id: string2(),
|
|
9246
9253
|
kind: _enum(["editor", "viewer"]),
|
|
@@ -9291,6 +9298,12 @@ var zGemShareDetail = strictObject({
|
|
|
9291
9298
|
});
|
|
9292
9299
|
var zGemShareAddRecipientsResponse = strictObject({
|
|
9293
9300
|
added: array(zGemShareRecipient),
|
|
9301
|
+
emailed: array(string2()),
|
|
9302
|
+
gemId: string2(),
|
|
9303
|
+
share: zGemShareDetail
|
|
9304
|
+
});
|
|
9305
|
+
var zGemShareCreateResponse = strictObject({
|
|
9306
|
+
emailed: array(string2()),
|
|
9294
9307
|
gemId: string2(),
|
|
9295
9308
|
share: zGemShareDetail
|
|
9296
9309
|
});
|
|
@@ -10318,6 +10331,7 @@ var zLibraryShareRequest = object({
|
|
|
10318
10331
|
automationPackageConfirmationToken: string2().min(16).nullish(),
|
|
10319
10332
|
expiresAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
10320
10333
|
message: string2().nullish(),
|
|
10334
|
+
notify: boolean2().optional().default(true),
|
|
10321
10335
|
recipients: array(zLibraryShareRecipientRequest).optional(),
|
|
10322
10336
|
shareMode: string2().regex(/^(reference|copy)$/).optional().default("reference"),
|
|
10323
10337
|
shareScope: string2().regex(/^(specific_users|workspace)$/).optional().default("specific_users")
|
|
@@ -11851,6 +11865,7 @@ var zShareContentRequest = object({
|
|
|
11851
11865
|
contentType: zContentTypeInput,
|
|
11852
11866
|
description: string2().nullish(),
|
|
11853
11867
|
expiresAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
11868
|
+
notify: boolean2().optional().default(true),
|
|
11854
11869
|
recipientUserIds: array(uuid2()).nullish(),
|
|
11855
11870
|
recipients: array(zRecipientSpec).nullish(),
|
|
11856
11871
|
replaceExistingRecipients: boolean2().optional().default(false),
|
|
@@ -14516,6 +14531,7 @@ var zSharedContentResponse = object({
|
|
|
14516
14531
|
contentType: zModulesSharingModelsContentType,
|
|
14517
14532
|
createdAt: exports_iso.datetime({ offset: true }),
|
|
14518
14533
|
description: string2().nullable(),
|
|
14534
|
+
emailedUserIds: array(uuid2()).optional(),
|
|
14519
14535
|
expiresAt: exports_iso.datetime({ offset: true }).nullable(),
|
|
14520
14536
|
id: uuid2(),
|
|
14521
14537
|
metadata: record(string2(), unknown()),
|
|
@@ -18020,6 +18036,13 @@ var zCreateGemShareHeaders = object({
|
|
|
18020
18036
|
var zCreateGemSharePath = object({
|
|
18021
18037
|
gemRef: string2().min(1)
|
|
18022
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
|
+
});
|
|
18023
18046
|
var zListGemVersionsPath = object({
|
|
18024
18047
|
gemRef: string2().min(1)
|
|
18025
18048
|
});
|
|
@@ -19526,7 +19549,7 @@ function pickString(record2, keys) {
|
|
|
19526
19549
|
// package.json
|
|
19527
19550
|
var package_default = {
|
|
19528
19551
|
name: "@uru-intelligence/cli",
|
|
19529
|
-
version: "0.5.
|
|
19552
|
+
version: "0.5.8",
|
|
19530
19553
|
private: false,
|
|
19531
19554
|
description: "Uru full-platform command line interface",
|
|
19532
19555
|
repository: {
|
|
@@ -19554,10 +19577,8 @@ var package_default = {
|
|
|
19554
19577
|
lint: "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts .",
|
|
19555
19578
|
"lint:fix": "node ../../scripts/run-with-repo-node.mjs oxlint --type-aware --deny-warnings -c ../../oxlint.config.mts --fix .",
|
|
19556
19579
|
"type-check": "tsc --noEmit",
|
|
19557
|
-
test: "bun test",
|
|
19558
|
-
"test:
|
|
19559
|
-
"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",
|
|
19560
|
-
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",
|
|
19561
19582
|
build: "node scripts/build.mjs && bun run check:dist-company-names",
|
|
19562
19583
|
"check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
|
|
19563
19584
|
prepack: "bun run build",
|