@uru-intelligence/cli 0.5.6 → 0.5.7
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 +42 -8
- package/dist/library.mjs +97 -43
- package/dist/uru.mjs +320 -62
- package/package.json +2 -1
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 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
|
+
- 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
67
|
- 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
68
|
- 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
69
|
- 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 +92,8 @@
|
|
|
90
92
|
- 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
93
|
- 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
94
|
- 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.
|
|
95
|
+
- 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
|
|
96
|
+
- Action: Install CLI 0.5.7. An active device sign-in needs no new approval.
|
|
93
97
|
- 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
98
|
- Action: No action is required. Agents and scripts can read `suggestedCommand` from JSON errors instead of guessing the confirmation flag.
|
|
95
99
|
- 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
|
package/README.md
CHANGED
|
@@ -265,6 +265,18 @@ URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
|
|
|
265
265
|
bun --filter=@uru-intelligence/cli run smoke:staging -- --json
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
+
The smoke builds and runs the checkout by default. To test a packed tarball
|
|
269
|
+
instead, install it into a temporary prefix and pass that `uru` with `--cli`.
|
|
270
|
+
The smoke then skips the build:
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
prefix="$(mktemp -d)"
|
|
274
|
+
NPM_CONFIG_PREFIX="$prefix" npm install --global <tarball.tgz> --ignore-scripts
|
|
275
|
+
URU_CLI_MCP_STAGING_SMOKE_TARGET=staging \
|
|
276
|
+
STAGING_AUTH_BEARER_TOKEN=... \
|
|
277
|
+
node apps/cli/scripts/staging-smoke.mjs --cli "$prefix/bin/uru" --json
|
|
278
|
+
```
|
|
279
|
+
|
|
268
280
|
Publish the scoped CLI through the **Publish Uru CLI to npm** workflow
|
|
269
281
|
(`.github/workflows/publish-uru-cli.yml`) from `staging` or `main`. Pass the exact
|
|
270
282
|
`apps/cli/package.json` version as its `version` input. The workflow rejects
|
|
@@ -275,6 +287,23 @@ tarball for 90 days. Package smoke tests check that tarball before npm trusted
|
|
|
275
287
|
publishing runs from the protected environment. Publication uses the retained
|
|
276
288
|
tarball with `--ignore-scripts`, rather than rebuilding it.
|
|
277
289
|
|
|
290
|
+
The staging smoke job also runs before npm publishing. It downloads the retained
|
|
291
|
+
tarball, checks its SHA-256, inspects it, installs it into a temporary prefix,
|
|
292
|
+
and runs the installed `uru` against staging with credentials from Infisical. It
|
|
293
|
+
does not build the checkout. A staging smoke failure stops the run before npm,
|
|
294
|
+
so the version stays unpublished and the fixed tarball can use the same version.
|
|
295
|
+
The smoke passes the wrong-workspace check only when the MCP proxy refuses the
|
|
296
|
+
workspace by name (`workspace_not_accessible` or
|
|
297
|
+
`workspace_not_allowed_for_credential`).
|
|
298
|
+
|
|
299
|
+
To rehearse a release without publishing, dispatch the workflow with
|
|
300
|
+
`smoke_only` set to `true`. The run builds, gates and smokes the exact tarball
|
|
301
|
+
against staging, then skips the publish and exact-archive jobs:
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
gh workflow run publish-uru-cli.yml --ref staging -f version=<version> -f smoke_only=true
|
|
305
|
+
```
|
|
306
|
+
|
|
278
307
|
Before npm can publish, the workflow checks earlier publish runs on Staging and
|
|
279
308
|
Main. If an earlier run may have reached npm, a retry uses its retained tarball
|
|
280
309
|
when available and compares every byte with the current tested tarball. It then
|
|
@@ -283,14 +312,19 @@ runs verification only. It never calls `npm publish` again for that version.
|
|
|
283
312
|
After npm exposes the expected integrity, the workflow downloads the published
|
|
284
313
|
tarball and checks both its SHA-256 and SHA-512 values against the tested file.
|
|
285
314
|
If npm accepts the package but delays metadata or tarball download, the run
|
|
286
|
-
fails with “verification pending”.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
315
|
+
fails with “verification pending”. Re-run the **Publish the exact release
|
|
316
|
+
tarball** job of the same run (`gh run rerun <run-id> --job <job-id>`, within
|
|
317
|
+
30 days). That re-run keeps the run's validated tarball and staging smoke
|
|
318
|
+
result, verifies the saved file without another publish, and runs the
|
|
319
|
+
exact-archive gate again. "Re-run failed jobs" does not re-run a publish job that
|
|
320
|
+
succeeded with a pending verification. A new dispatch works too, but it must
|
|
321
|
+
pass the staging smoke again before it reaches verification. A different
|
|
322
|
+
package needs a higher version.
|
|
323
|
+
|
|
324
|
+
The final job, the exact-archive gate, fails the run until the publish job
|
|
325
|
+
reports that npm serves the exact tested bytes. Check that job, then install the
|
|
326
|
+
exact published version in a clean directory and verify the intended behavior. A
|
|
327
|
+
successful npm upload alone does not complete registry verification.
|
|
294
328
|
|
|
295
329
|
The npm package remains the canonical install path. Release builds can also
|
|
296
330
|
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
|
-
|
|
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),
|
|
@@ -9169,7 +9232,6 @@ var zGemShareVersion = strictObject({
|
|
|
9169
9232
|
}).nullable();
|
|
9170
9233
|
var zGemShare = strictObject({
|
|
9171
9234
|
allowCopy: boolean2(),
|
|
9172
|
-
allowReshare: boolean2(),
|
|
9173
9235
|
audiences: array(zGemShareAudience),
|
|
9174
9236
|
canManage: boolean2().optional(),
|
|
9175
9237
|
consents: array(zGemShareConsent),
|
|
@@ -9199,7 +9261,6 @@ var zGemShare = strictObject({
|
|
|
9199
9261
|
});
|
|
9200
9262
|
var zGemShareDetail = strictObject({
|
|
9201
9263
|
allowCopy: boolean2(),
|
|
9202
|
-
allowReshare: boolean2(),
|
|
9203
9264
|
audiences: array(zGemShareAudience),
|
|
9204
9265
|
canManage: boolean2().optional(),
|
|
9205
9266
|
consents: array(zGemShareConsent),
|
|
@@ -9237,6 +9298,11 @@ var zGemShareResponse = strictObject({
|
|
|
9237
9298
|
gemId: string2(),
|
|
9238
9299
|
share: zGemShareDetail
|
|
9239
9300
|
});
|
|
9301
|
+
var zGemShareUpdateResponse = strictObject({
|
|
9302
|
+
gemId: string2(),
|
|
9303
|
+
linkTurnedOff: boolean2(),
|
|
9304
|
+
share: zGemShareDetail
|
|
9305
|
+
});
|
|
9240
9306
|
var zGemShareViewEvent = strictObject({
|
|
9241
9307
|
clientIp: string2().nullable(),
|
|
9242
9308
|
durationSeconds: number2().nullable(),
|
|
@@ -13570,6 +13636,7 @@ var zUpdateExternalPermissionsRequest = object({
|
|
|
13570
13636
|
});
|
|
13571
13637
|
var zUpdateGemShareRequest = strictObject({
|
|
13572
13638
|
audience: zGemShareAudienceRequest.optional(),
|
|
13639
|
+
audienceConfirmLinkOff: boolean2().optional(),
|
|
13573
13640
|
expiresAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
13574
13641
|
gate: zGemShareGateRequest.optional(),
|
|
13575
13642
|
message: string2().max(2000).nullish(),
|
|
@@ -14304,6 +14371,7 @@ var zWorkspacePlanSummary = object({
|
|
|
14304
14371
|
slug: string2()
|
|
14305
14372
|
}),
|
|
14306
14373
|
planState: _enum(["free", "trialing", "paid"]),
|
|
14374
|
+
planType: _enum(["rate_limited", "pay_per_usage"]).nullable(),
|
|
14307
14375
|
viewerCanManageBilling: boolean2()
|
|
14308
14376
|
});
|
|
14309
14377
|
var zWorkspaceRequestDeclineBody = object({
|
|
@@ -14430,17 +14498,11 @@ var zModulesPlatformModelsContextBlockResponse = object({
|
|
|
14430
14498
|
title: string2(),
|
|
14431
14499
|
updatedAt: exports_iso.datetime({ offset: true })
|
|
14432
14500
|
});
|
|
14433
|
-
var zModulesPlatformModelsContextBlockListResponse = object({
|
|
14434
|
-
contextBlocks: array(zModulesPlatformModelsContextBlockResponse),
|
|
14435
|
-
hasMore: boolean2(),
|
|
14436
|
-
totalCount: int()
|
|
14437
|
-
});
|
|
14438
14501
|
var zModulesPlatformModelsContextBlockUpdateRequest = object({
|
|
14439
14502
|
category: string2().regex(/^[a-z0-9_-]+$/).nullish(),
|
|
14440
14503
|
content: string2().min(1).nullish(),
|
|
14441
14504
|
description: string2().nullish(),
|
|
14442
14505
|
folderId: string2().nullish(),
|
|
14443
|
-
isFavorite: boolean2().nullish(),
|
|
14444
14506
|
isLocked: boolean2().nullish(),
|
|
14445
14507
|
isWorkspaceDefault: boolean2().nullish(),
|
|
14446
14508
|
teamIds: array(string2()).nullish(),
|
|
@@ -14449,6 +14511,7 @@ var zModulesPlatformModelsContextBlockUpdateRequest = object({
|
|
|
14449
14511
|
var zModulesSharingModelsContentType = _enum(["library_item"]);
|
|
14450
14512
|
var zSharedContentResponse = object({
|
|
14451
14513
|
activeRecipientCount: int().optional().default(0),
|
|
14514
|
+
canManage: boolean2().optional().default(false),
|
|
14452
14515
|
contentId: uuid2(),
|
|
14453
14516
|
contentType: zModulesSharingModelsContentType,
|
|
14454
14517
|
createdAt: exports_iso.datetime({ offset: true }),
|
|
@@ -14846,7 +14909,7 @@ var zUpdateWorkspaceMemberRoleApiAuthWorkspaceWorkspaceIdMembersUserIdRolePutRes
|
|
|
14846
14909
|
var zGetUserWorkspacesApiAuthWorkspacesGetResponse = record(string2(), unknown());
|
|
14847
14910
|
var zListAutomationsApiAutomationsGetQuery = object({
|
|
14848
14911
|
statusFilter: string2().nullish(),
|
|
14849
|
-
|
|
14912
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
14850
14913
|
folderFilter: _enum(["all", "root", "folder"]).optional().default("root"),
|
|
14851
14914
|
folderId: string2().nullish(),
|
|
14852
14915
|
limit: int().gte(1).lte(500).optional().default(100)
|
|
@@ -14866,12 +14929,13 @@ var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostPath = object(
|
|
|
14866
14929
|
});
|
|
14867
14930
|
var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostResponse = record(string2(), unknown());
|
|
14868
14931
|
var zGetDashboardApiAutomationsDashboardGetQuery = object({
|
|
14869
|
-
|
|
14932
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
|
|
14870
14933
|
});
|
|
14871
14934
|
var zGetDashboardApiAutomationsDashboardGetResponse = record(string2(), unknown());
|
|
14872
14935
|
var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetQuery = object({
|
|
14873
14936
|
threshold: int().gte(0).lte(100).nullish().default(80),
|
|
14874
|
-
limit: int().gte(1).lte(100).optional().default(25)
|
|
14937
|
+
limit: int().gte(1).lte(100).optional().default(25),
|
|
14938
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
|
|
14875
14939
|
});
|
|
14876
14940
|
var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetResponse = array(record(string2(), unknown()));
|
|
14877
14941
|
var zGetEvaluationDetailApiAutomationsEvaluationsEvaluationIdGetPath = object({
|
|
@@ -14907,7 +14971,7 @@ var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostPath = object
|
|
|
14907
14971
|
var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostResponse = array(record(string2(), unknown()));
|
|
14908
14972
|
var zListAllRunsApiAutomationsRunsGetQuery = object({
|
|
14909
14973
|
limit: int().gte(1).lte(500).optional().default(100),
|
|
14910
|
-
|
|
14974
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
14911
14975
|
cursor: string2().nullish(),
|
|
14912
14976
|
include: string2().nullish()
|
|
14913
14977
|
});
|
|
@@ -14972,6 +15036,9 @@ var zGetNodeThreadMessagesApiAutomationsRunsRunIdNodesNodeIdThreadMessagesGetQue
|
|
|
14972
15036
|
runIndex: int().gte(0).optional(),
|
|
14973
15037
|
attempt: int().gte(1).optional()
|
|
14974
15038
|
});
|
|
15039
|
+
var zGetAutomationRunOutlinePath = object({
|
|
15040
|
+
runId: string2()
|
|
15041
|
+
});
|
|
14975
15042
|
var zResumeRunEventsApiAutomationsRunsRunIdResumeStreamGetPath = object({
|
|
14976
15043
|
runId: string2()
|
|
14977
15044
|
});
|
|
@@ -15111,6 +15178,9 @@ var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryG
|
|
|
15111
15178
|
rubricId: string2().nullish()
|
|
15112
15179
|
});
|
|
15113
15180
|
var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryGetResponse = record(string2(), unknown());
|
|
15181
|
+
var zPauseAutomationPath = object({
|
|
15182
|
+
automationId: string2()
|
|
15183
|
+
});
|
|
15114
15184
|
var zUpdateQuickScheduleApiAutomationsAutomationIdQuickSchedulePatchPath = object({
|
|
15115
15185
|
automationId: string2()
|
|
15116
15186
|
});
|
|
@@ -15123,6 +15193,14 @@ var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePost
|
|
|
15123
15193
|
rubricId: string2()
|
|
15124
15194
|
});
|
|
15125
15195
|
var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePostResponse = record(string2(), unknown());
|
|
15196
|
+
var zGetAutomationRubricPath = object({
|
|
15197
|
+
automationId: string2(),
|
|
15198
|
+
rubricId: string2()
|
|
15199
|
+
});
|
|
15200
|
+
var zGetAutomationRubricQuery = object({
|
|
15201
|
+
revision: int().gte(1).optional()
|
|
15202
|
+
});
|
|
15203
|
+
var zGetAutomationRubricResponse = record(string2(), unknown());
|
|
15126
15204
|
var zManualRunApiAutomationsAutomationIdRunPostBody = zAutomationManualRunRequest.nullable();
|
|
15127
15205
|
var zManualRunApiAutomationsAutomationIdRunPostPath = object({
|
|
15128
15206
|
automationId: string2()
|
|
@@ -15132,7 +15210,7 @@ var zListRunsApiAutomationsAutomationIdRunsGetPath = object({
|
|
|
15132
15210
|
});
|
|
15133
15211
|
var zListRunsApiAutomationsAutomationIdRunsGetQuery = object({
|
|
15134
15212
|
limit: int().gte(1).lte(500).optional().default(100),
|
|
15135
|
-
|
|
15213
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
15136
15214
|
cursor: string2().nullish(),
|
|
15137
15215
|
include: string2().nullish()
|
|
15138
15216
|
});
|
|
@@ -16339,12 +16417,6 @@ var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchPath = o
|
|
|
16339
16417
|
artifactSlug: string2()
|
|
16340
16418
|
});
|
|
16341
16419
|
var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchResponse = record(string2(), unknown());
|
|
16342
|
-
var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostPath = object({
|
|
16343
|
-
artifactSlug: string2()
|
|
16344
|
-
});
|
|
16345
|
-
var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostResponse = object({
|
|
16346
|
-
success: literal(true)
|
|
16347
|
-
});
|
|
16348
16420
|
var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesContentGetPath = object({
|
|
16349
16421
|
artifactSlug: string2()
|
|
16350
16422
|
});
|
|
@@ -16501,18 +16573,6 @@ var zGetArtifactSourceTreeApiPlatformArtifactsArtifactSlugSourceTreeGetResponse
|
|
|
16501
16573
|
revisionNumber: int(),
|
|
16502
16574
|
sourceRevisionId: string2()
|
|
16503
16575
|
});
|
|
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
16576
|
var zDeleteContextBlockApiPlatformContextContextSlugDeletePath = object({
|
|
16517
16577
|
contextSlug: string2()
|
|
16518
16578
|
});
|
|
@@ -16523,13 +16583,6 @@ var zGetContextBlockApiPlatformContextContextSlugGetPath = object({
|
|
|
16523
16583
|
var zUpdateContextBlockApiPlatformContextContextSlugPutPath = object({
|
|
16524
16584
|
contextSlug: string2()
|
|
16525
16585
|
});
|
|
16526
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostPath = object({
|
|
16527
|
-
contextSlug: string2()
|
|
16528
|
-
});
|
|
16529
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostQuery = object({
|
|
16530
|
-
isFavorite: boolean2().optional()
|
|
16531
|
-
});
|
|
16532
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostResponse = record(string2(), unknown());
|
|
16533
16586
|
var zDatasetCreateBody = strictObject({
|
|
16534
16587
|
idempotencyKey: string2().min(1).max(128),
|
|
16535
16588
|
initialRows: array(strictObject({
|
|
@@ -19473,7 +19526,7 @@ function pickString(record2, keys) {
|
|
|
19473
19526
|
// package.json
|
|
19474
19527
|
var package_default = {
|
|
19475
19528
|
name: "@uru-intelligence/cli",
|
|
19476
|
-
version: "0.5.
|
|
19529
|
+
version: "0.5.7",
|
|
19477
19530
|
private: false,
|
|
19478
19531
|
description: "Uru full-platform command line interface",
|
|
19479
19532
|
repository: {
|
|
@@ -19503,6 +19556,7 @@ var package_default = {
|
|
|
19503
19556
|
"type-check": "tsc --noEmit",
|
|
19504
19557
|
test: "bun test",
|
|
19505
19558
|
"test:unit": "bun 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",
|
|
19506
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",
|
|
19507
19561
|
build: "node scripts/build.mjs && bun run check:dist-company-names",
|
|
19508
19562
|
"check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
|
package/dist/uru.mjs
CHANGED
|
@@ -284,7 +284,7 @@ function buildGemOperations(op) {
|
|
|
284
284
|
op("gem.share_get", "gems", "Read one Share with every person on it and each person's own URL.", "gem_query", "share_get", "read"),
|
|
285
285
|
op("gem.share_analytics", "gems", "Read one page of a Share's view events, with a summary and who opened it.", "gem_query", "share_analytics", "read"),
|
|
286
286
|
op("gem.share_create", "gems", "Share a Gem. A viewer Share gives each named person their own URL, or one anyone URL when people is empty, and follows each newer ready Version unless you pin one. An editor Share lets each named person sign in and change the Gem from their Library, and lends them only the connections, Datasets and secrets you consent to.", "gem_control_plane", "share_create", "write"),
|
|
287
|
-
op("gem.share_update", "gems", "Change one Share: its name, Version, gate, expiry, open notifications, general access or search opt-out. A rollback moves it to an older Version it served before.", "gem_control_plane", "share_update", "write"),
|
|
287
|
+
op("gem.share_update", "gems", "Change one Share: its name, Version, gate, expiry, open notifications, general access or search opt-out. A rollback moves it to an older Version it served before. Taking a live link from people who have it (turning it off, or moving an anyone link to members) needs audience_confirm_link_off.", "gem_control_plane", "share_update", "write"),
|
|
288
288
|
op("gem.share_add_people", "gems", "Add people to one Share. Each new person gets their own URL.", "gem_control_plane", "share_add_people", "write"),
|
|
289
289
|
op("gem.share_remove_person", "gems", "Remove one person from a Share. Their URL stops working at once.", "gem_control_plane", "share_remove_person", "destructive"),
|
|
290
290
|
op("gem.share_revoke", "gems", "Revoke one Share. Every URL it carries stops working at once.", "gem_control_plane", "share_revoke", "destructive"),
|
|
@@ -982,6 +982,59 @@ var WORKSPACE_SELECTION_TOOL_IDS = new Set([
|
|
|
982
982
|
"LIST_WORKSPACES",
|
|
983
983
|
"SET_CURRENT_WORKSPACE"
|
|
984
984
|
]);
|
|
985
|
+
var LIST_WORKSPACES_ORGANIZATION_KINDS = ["starter", "organization"];
|
|
986
|
+
var LIST_WORKSPACES_ACCESS_MODES = [
|
|
987
|
+
"open",
|
|
988
|
+
"ask_to_join",
|
|
989
|
+
"invite_only",
|
|
990
|
+
"hidden"
|
|
991
|
+
];
|
|
992
|
+
var LIST_WORKSPACES_TOOL_DESCRIPTOR = {
|
|
993
|
+
name: "list_workspaces",
|
|
994
|
+
description: "List the workspaces you can name in workspace_id.",
|
|
995
|
+
inputSchema: {
|
|
996
|
+
type: "object",
|
|
997
|
+
properties: {},
|
|
998
|
+
additionalProperties: false
|
|
999
|
+
},
|
|
1000
|
+
outputSchema: {
|
|
1001
|
+
type: "object",
|
|
1002
|
+
additionalProperties: true,
|
|
1003
|
+
required: ["success", "workspaces", "count"],
|
|
1004
|
+
properties: {
|
|
1005
|
+
success: { type: "boolean" },
|
|
1006
|
+
workspaces: {
|
|
1007
|
+
type: "array",
|
|
1008
|
+
items: {
|
|
1009
|
+
type: "object",
|
|
1010
|
+
additionalProperties: true,
|
|
1011
|
+
properties: {
|
|
1012
|
+
id: { type: "string" },
|
|
1013
|
+
name: { type: "string" },
|
|
1014
|
+
description: { type: "string" },
|
|
1015
|
+
role: { type: "string" },
|
|
1016
|
+
joinedAt: { type: "string" },
|
|
1017
|
+
isActive: { type: "boolean" },
|
|
1018
|
+
kind: { type: "string", enum: ["personal", "organization"] },
|
|
1019
|
+
slug: { type: ["string", "null"] },
|
|
1020
|
+
organizationId: { type: "string" },
|
|
1021
|
+
organizationName: { type: "string" },
|
|
1022
|
+
organizationSlug: { type: "string" },
|
|
1023
|
+
organizationKind: {
|
|
1024
|
+
type: "string",
|
|
1025
|
+
enum: [...LIST_WORKSPACES_ORGANIZATION_KINDS]
|
|
1026
|
+
},
|
|
1027
|
+
organizationIsViewerStarter: { type: "boolean" },
|
|
1028
|
+
accessMode: { type: "string", enum: [...LIST_WORKSPACES_ACCESS_MODES] }
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
count: { type: "integer" },
|
|
1033
|
+
message: { type: "string" },
|
|
1034
|
+
error: { type: "string" }
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
985
1038
|
// ../../packages/platform-operations/src/tool_address.ts
|
|
986
1039
|
var TOOL_OWNER_CLASSES = [
|
|
987
1040
|
"platform",
|
|
@@ -2407,6 +2460,7 @@ function gemPathSpecs() {
|
|
|
2407
2460
|
booleanFlag("--no-anyone"),
|
|
2408
2461
|
booleanFlag("--organization"),
|
|
2409
2462
|
valueFlag("--workspaces"),
|
|
2463
|
+
booleanFlag("--confirm-link-off"),
|
|
2410
2464
|
booleanFlag("--search-indexing-disabled"),
|
|
2411
2465
|
valueFlag("--idempotency-key"),
|
|
2412
2466
|
...gemRefFlags
|
|
@@ -3078,7 +3132,7 @@ function spec(id, summary, auth, workspace, safety, outputModes, cancellation =
|
|
|
3078
3132
|
// package.json
|
|
3079
3133
|
var package_default = {
|
|
3080
3134
|
name: "@uru-intelligence/cli",
|
|
3081
|
-
version: "0.5.
|
|
3135
|
+
version: "0.5.7",
|
|
3082
3136
|
private: false,
|
|
3083
3137
|
description: "Uru full-platform command line interface",
|
|
3084
3138
|
repository: {
|
|
@@ -3108,6 +3162,7 @@ var package_default = {
|
|
|
3108
3162
|
"type-check": "tsc --noEmit",
|
|
3109
3163
|
test: "bun test",
|
|
3110
3164
|
"test:unit": "bun test",
|
|
3165
|
+
"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",
|
|
3111
3166
|
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",
|
|
3112
3167
|
build: "node scripts/build.mjs && bun run check:dist-company-names",
|
|
3113
3168
|
"check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
|
|
@@ -9849,9 +9904,6 @@ var zArtifactMetadataUpdateRequest = object({
|
|
|
9849
9904
|
metadata: record(string2(), unknown()).nullish(),
|
|
9850
9905
|
title: string2().min(1).max(255).nullish()
|
|
9851
9906
|
});
|
|
9852
|
-
var zArtifactMoveFolderRequest = object({
|
|
9853
|
-
folderId: string2().nullish()
|
|
9854
|
-
});
|
|
9855
9907
|
var zArtifactPackageObject = object({
|
|
9856
9908
|
bytes: int().nullish(),
|
|
9857
9909
|
content: string2().nullish(),
|
|
@@ -10175,6 +10227,30 @@ var zAutoAcceptSettingResponse = object({
|
|
|
10175
10227
|
autoAcceptSharing: boolean2(),
|
|
10176
10228
|
workspaceId: string2()
|
|
10177
10229
|
});
|
|
10230
|
+
var zAutomationAccess = object({
|
|
10231
|
+
capabilities: array(_enum([
|
|
10232
|
+
"read",
|
|
10233
|
+
"read_run_outline",
|
|
10234
|
+
"edit",
|
|
10235
|
+
"run",
|
|
10236
|
+
"stop_run",
|
|
10237
|
+
"pause",
|
|
10238
|
+
"resume",
|
|
10239
|
+
"delete",
|
|
10240
|
+
"grade",
|
|
10241
|
+
"rebind_authority",
|
|
10242
|
+
"change_billing_route",
|
|
10243
|
+
"respond_approval",
|
|
10244
|
+
"govern_authority"
|
|
10245
|
+
])),
|
|
10246
|
+
grant: _enum([
|
|
10247
|
+
"owner",
|
|
10248
|
+
"library_editor",
|
|
10249
|
+
"library_viewer",
|
|
10250
|
+
"workspace_oversight",
|
|
10251
|
+
"approval_recipient"
|
|
10252
|
+
])
|
|
10253
|
+
});
|
|
10178
10254
|
var zAutomationBillingRouteSubscription = object({
|
|
10179
10255
|
kind: _enum(["subscription"]),
|
|
10180
10256
|
provider: _enum(["chatgpt", "grok", "cursor"])
|
|
@@ -10187,7 +10263,7 @@ var zAutomationBillingRoute = discriminatedUnion("kind", [
|
|
|
10187
10263
|
zAutomationBillingRouteSubscription.extend({ kind: literal("subscription") })
|
|
10188
10264
|
]);
|
|
10189
10265
|
var zAutomation = object({
|
|
10190
|
-
|
|
10266
|
+
access: zAutomationAccess.optional(),
|
|
10191
10267
|
billingRoute: zAutomationBillingRoute,
|
|
10192
10268
|
contextConfig: record(string2(), unknown()).optional(),
|
|
10193
10269
|
createdAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
@@ -10205,6 +10281,7 @@ var zAutomation = object({
|
|
|
10205
10281
|
toolPolicy: record(string2(), unknown()).optional(),
|
|
10206
10282
|
triggers: array(record(string2(), unknown())).optional(),
|
|
10207
10283
|
updatedAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
10284
|
+
viewerGrant: _enum(["owner", "library", "oversight"]).optional(),
|
|
10208
10285
|
workspaceId: string2()
|
|
10209
10286
|
});
|
|
10210
10287
|
var zAutomationControlHistoryItem = strictObject({
|
|
@@ -10394,6 +10471,39 @@ var zAutomationRunLogEntry = strictObject({
|
|
|
10394
10471
|
message: string2(),
|
|
10395
10472
|
metadata: record(string2(), unknown())
|
|
10396
10473
|
});
|
|
10474
|
+
var zAutomationRunOutline = strictObject({
|
|
10475
|
+
access: zAutomationAccess,
|
|
10476
|
+
approvals: array(object({
|
|
10477
|
+
decidedAt: string2().nullable(),
|
|
10478
|
+
id: string2(),
|
|
10479
|
+
message: string2(),
|
|
10480
|
+
nodeId: string2().nullable(),
|
|
10481
|
+
status: string2(),
|
|
10482
|
+
youDecide: boolean2()
|
|
10483
|
+
})),
|
|
10484
|
+
automation: object({
|
|
10485
|
+
id: string2(),
|
|
10486
|
+
name: string2()
|
|
10487
|
+
}),
|
|
10488
|
+
owner: object({
|
|
10489
|
+
displayName: string2().nullable()
|
|
10490
|
+
}),
|
|
10491
|
+
run: object({
|
|
10492
|
+
durationMs: int().gte(0).nullable(),
|
|
10493
|
+
finishedAt: string2().nullable(),
|
|
10494
|
+
id: string2(),
|
|
10495
|
+
startedAt: string2().nullable(),
|
|
10496
|
+
status: string2()
|
|
10497
|
+
}),
|
|
10498
|
+
steps: array(object({
|
|
10499
|
+
finishedAt: string2().nullable(),
|
|
10500
|
+
kind: string2().nullable(),
|
|
10501
|
+
label: string2().nullable(),
|
|
10502
|
+
nodeId: string2(),
|
|
10503
|
+
startedAt: string2().nullable(),
|
|
10504
|
+
state: _enum(["not_started", "running", "finished"])
|
|
10505
|
+
}))
|
|
10506
|
+
});
|
|
10397
10507
|
var zAutomationRunTranscriptResponse = strictObject({
|
|
10398
10508
|
has_more: boolean2(),
|
|
10399
10509
|
history_state: _enum([
|
|
@@ -11283,6 +11393,14 @@ var zCrossWorkspaceShareResponse = object({
|
|
|
11283
11393
|
terminalReason: string2().nullable(),
|
|
11284
11394
|
updatedAt: exports_iso.datetime({ offset: true })
|
|
11285
11395
|
});
|
|
11396
|
+
var zCrossWorkspaceOutgoingShareResponse = zCrossWorkspaceShareResponse.and(object({
|
|
11397
|
+
canManage: boolean2()
|
|
11398
|
+
}));
|
|
11399
|
+
var zCrossWorkspaceOutgoingShareListResponse = object({
|
|
11400
|
+
hasMore: boolean2(),
|
|
11401
|
+
shares: array(zCrossWorkspaceOutgoingShareResponse),
|
|
11402
|
+
totalCount: int()
|
|
11403
|
+
});
|
|
11286
11404
|
var zCrossWorkspaceShareListResponse = object({
|
|
11287
11405
|
hasMore: boolean2(),
|
|
11288
11406
|
shares: array(zCrossWorkspaceShareResponse),
|
|
@@ -12589,7 +12707,6 @@ var zGemShareVersion = strictObject({
|
|
|
12589
12707
|
}).nullable();
|
|
12590
12708
|
var zGemShare = strictObject({
|
|
12591
12709
|
allowCopy: boolean2(),
|
|
12592
|
-
allowReshare: boolean2(),
|
|
12593
12710
|
audiences: array(zGemShareAudience),
|
|
12594
12711
|
canManage: boolean2().optional(),
|
|
12595
12712
|
consents: array(zGemShareConsent),
|
|
@@ -12619,7 +12736,6 @@ var zGemShare = strictObject({
|
|
|
12619
12736
|
});
|
|
12620
12737
|
var zGemShareDetail = strictObject({
|
|
12621
12738
|
allowCopy: boolean2(),
|
|
12622
|
-
allowReshare: boolean2(),
|
|
12623
12739
|
audiences: array(zGemShareAudience),
|
|
12624
12740
|
canManage: boolean2().optional(),
|
|
12625
12741
|
consents: array(zGemShareConsent),
|
|
@@ -12657,6 +12773,11 @@ var zGemShareResponse = strictObject({
|
|
|
12657
12773
|
gemId: string2(),
|
|
12658
12774
|
share: zGemShareDetail
|
|
12659
12775
|
});
|
|
12776
|
+
var zGemShareUpdateResponse = strictObject({
|
|
12777
|
+
gemId: string2(),
|
|
12778
|
+
linkTurnedOff: boolean2(),
|
|
12779
|
+
share: zGemShareDetail
|
|
12780
|
+
});
|
|
12660
12781
|
var zGemShareViewEvent = strictObject({
|
|
12661
12782
|
clientIp: string2().nullable(),
|
|
12662
12783
|
durationSeconds: number2().nullable(),
|
|
@@ -16990,6 +17111,7 @@ var zUpdateExternalPermissionsRequest = object({
|
|
|
16990
17111
|
});
|
|
16991
17112
|
var zUpdateGemShareRequest = strictObject({
|
|
16992
17113
|
audience: zGemShareAudienceRequest.optional(),
|
|
17114
|
+
audienceConfirmLinkOff: boolean2().optional(),
|
|
16993
17115
|
expiresAt: exports_iso.datetime({ offset: true }).nullish(),
|
|
16994
17116
|
gate: zGemShareGateRequest.optional(),
|
|
16995
17117
|
message: string2().max(2000).nullish(),
|
|
@@ -17724,6 +17846,7 @@ var zWorkspacePlanSummary = object({
|
|
|
17724
17846
|
slug: string2()
|
|
17725
17847
|
}),
|
|
17726
17848
|
planState: _enum(["free", "trialing", "paid"]),
|
|
17849
|
+
planType: _enum(["rate_limited", "pay_per_usage"]).nullable(),
|
|
17727
17850
|
viewerCanManageBilling: boolean2()
|
|
17728
17851
|
});
|
|
17729
17852
|
var zWorkspaceRequestDeclineBody = object({
|
|
@@ -17850,17 +17973,11 @@ var zModulesPlatformModelsContextBlockResponse = object({
|
|
|
17850
17973
|
title: string2(),
|
|
17851
17974
|
updatedAt: exports_iso.datetime({ offset: true })
|
|
17852
17975
|
});
|
|
17853
|
-
var zModulesPlatformModelsContextBlockListResponse = object({
|
|
17854
|
-
contextBlocks: array(zModulesPlatformModelsContextBlockResponse),
|
|
17855
|
-
hasMore: boolean2(),
|
|
17856
|
-
totalCount: int()
|
|
17857
|
-
});
|
|
17858
17976
|
var zModulesPlatformModelsContextBlockUpdateRequest = object({
|
|
17859
17977
|
category: string2().regex(/^[a-z0-9_-]+$/).nullish(),
|
|
17860
17978
|
content: string2().min(1).nullish(),
|
|
17861
17979
|
description: string2().nullish(),
|
|
17862
17980
|
folderId: string2().nullish(),
|
|
17863
|
-
isFavorite: boolean2().nullish(),
|
|
17864
17981
|
isLocked: boolean2().nullish(),
|
|
17865
17982
|
isWorkspaceDefault: boolean2().nullish(),
|
|
17866
17983
|
teamIds: array(string2()).nullish(),
|
|
@@ -17869,6 +17986,7 @@ var zModulesPlatformModelsContextBlockUpdateRequest = object({
|
|
|
17869
17986
|
var zModulesSharingModelsContentType = _enum(["library_item"]);
|
|
17870
17987
|
var zSharedContentResponse = object({
|
|
17871
17988
|
activeRecipientCount: int().optional().default(0),
|
|
17989
|
+
canManage: boolean2().optional().default(false),
|
|
17872
17990
|
contentId: uuid2(),
|
|
17873
17991
|
contentType: zModulesSharingModelsContentType,
|
|
17874
17992
|
createdAt: exports_iso.datetime({ offset: true }),
|
|
@@ -18266,7 +18384,7 @@ var zUpdateWorkspaceMemberRoleApiAuthWorkspaceWorkspaceIdMembersUserIdRolePutRes
|
|
|
18266
18384
|
var zGetUserWorkspacesApiAuthWorkspacesGetResponse = record(string2(), unknown());
|
|
18267
18385
|
var zListAutomationsApiAutomationsGetQuery = object({
|
|
18268
18386
|
statusFilter: string2().nullish(),
|
|
18269
|
-
|
|
18387
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
18270
18388
|
folderFilter: _enum(["all", "root", "folder"]).optional().default("root"),
|
|
18271
18389
|
folderId: string2().nullish(),
|
|
18272
18390
|
limit: int().gte(1).lte(500).optional().default(100)
|
|
@@ -18286,12 +18404,13 @@ var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostPath = object(
|
|
|
18286
18404
|
});
|
|
18287
18405
|
var zRespondToApprovalApiAutomationsApprovalsApprovalIdRespondPostResponse = record(string2(), unknown());
|
|
18288
18406
|
var zGetDashboardApiAutomationsDashboardGetQuery = object({
|
|
18289
|
-
|
|
18407
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
|
|
18290
18408
|
});
|
|
18291
18409
|
var zGetDashboardApiAutomationsDashboardGetResponse = record(string2(), unknown());
|
|
18292
18410
|
var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetQuery = object({
|
|
18293
18411
|
threshold: int().gte(0).lte(100).nullish().default(80),
|
|
18294
|
-
limit: int().gte(1).lte(100).optional().default(25)
|
|
18412
|
+
limit: int().gte(1).lte(100).optional().default(25),
|
|
18413
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible")
|
|
18295
18414
|
});
|
|
18296
18415
|
var zListEvaluationIssuesApiAutomationsEvaluationsIssuesGetResponse = array(record(string2(), unknown()));
|
|
18297
18416
|
var zGetEvaluationDetailApiAutomationsEvaluationsEvaluationIdGetPath = object({
|
|
@@ -18327,7 +18446,7 @@ var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostPath = object
|
|
|
18327
18446
|
var zReplaceRubricCriteriaApiAutomationsRubricsRubricIdCriteriaPostResponse = array(record(string2(), unknown()));
|
|
18328
18447
|
var zListAllRunsApiAutomationsRunsGetQuery = object({
|
|
18329
18448
|
limit: int().gte(1).lte(500).optional().default(100),
|
|
18330
|
-
|
|
18449
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
18331
18450
|
cursor: string2().nullish(),
|
|
18332
18451
|
include: string2().nullish()
|
|
18333
18452
|
});
|
|
@@ -18392,6 +18511,9 @@ var zGetNodeThreadMessagesApiAutomationsRunsRunIdNodesNodeIdThreadMessagesGetQue
|
|
|
18392
18511
|
runIndex: int().gte(0).optional(),
|
|
18393
18512
|
attempt: int().gte(1).optional()
|
|
18394
18513
|
});
|
|
18514
|
+
var zGetAutomationRunOutlinePath = object({
|
|
18515
|
+
runId: string2()
|
|
18516
|
+
});
|
|
18395
18517
|
var zResumeRunEventsApiAutomationsRunsRunIdResumeStreamGetPath = object({
|
|
18396
18518
|
runId: string2()
|
|
18397
18519
|
});
|
|
@@ -18531,6 +18653,9 @@ var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryG
|
|
|
18531
18653
|
rubricId: string2().nullish()
|
|
18532
18654
|
});
|
|
18533
18655
|
var zSummarizeAutomationEvaluationsApiAutomationsAutomationIdEvaluationsSummaryGetResponse = record(string2(), unknown());
|
|
18656
|
+
var zPauseAutomationPath = object({
|
|
18657
|
+
automationId: string2()
|
|
18658
|
+
});
|
|
18534
18659
|
var zUpdateQuickScheduleApiAutomationsAutomationIdQuickSchedulePatchPath = object({
|
|
18535
18660
|
automationId: string2()
|
|
18536
18661
|
});
|
|
@@ -18543,6 +18668,14 @@ var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePost
|
|
|
18543
18668
|
rubricId: string2()
|
|
18544
18669
|
});
|
|
18545
18670
|
var zTriggerRubricEvaluationApiAutomationsAutomationIdRubricRubricIdEvaluatePostResponse = record(string2(), unknown());
|
|
18671
|
+
var zGetAutomationRubricPath = object({
|
|
18672
|
+
automationId: string2(),
|
|
18673
|
+
rubricId: string2()
|
|
18674
|
+
});
|
|
18675
|
+
var zGetAutomationRubricQuery = object({
|
|
18676
|
+
revision: int().gte(1).optional()
|
|
18677
|
+
});
|
|
18678
|
+
var zGetAutomationRubricResponse = record(string2(), unknown());
|
|
18546
18679
|
var zManualRunApiAutomationsAutomationIdRunPostBody = zAutomationManualRunRequest.nullable();
|
|
18547
18680
|
var zManualRunApiAutomationsAutomationIdRunPostPath = object({
|
|
18548
18681
|
automationId: string2()
|
|
@@ -18552,7 +18685,7 @@ var zListRunsApiAutomationsAutomationIdRunsGetPath = object({
|
|
|
18552
18685
|
});
|
|
18553
18686
|
var zListRunsApiAutomationsAutomationIdRunsGetQuery = object({
|
|
18554
18687
|
limit: int().gte(1).lte(500).optional().default(100),
|
|
18555
|
-
|
|
18688
|
+
view: _enum(["mine", "visible", "workspace"]).optional().default("visible"),
|
|
18556
18689
|
cursor: string2().nullish(),
|
|
18557
18690
|
include: string2().nullish()
|
|
18558
18691
|
});
|
|
@@ -19759,12 +19892,6 @@ var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchPath = o
|
|
|
19759
19892
|
artifactSlug: string2()
|
|
19760
19893
|
});
|
|
19761
19894
|
var zUpdateArtifactMetadataApiPlatformArtifactsArtifactSlugMetadataPatchResponse = record(string2(), unknown());
|
|
19762
|
-
var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostPath = object({
|
|
19763
|
-
artifactSlug: string2()
|
|
19764
|
-
});
|
|
19765
|
-
var zMoveArtifactToFolderApiPlatformArtifactsArtifactSlugMoveFolderPostResponse = object({
|
|
19766
|
-
success: literal(true)
|
|
19767
|
-
});
|
|
19768
19895
|
var zGetArtifactProjectFileContentApiPlatformArtifactsArtifactSlugProjectFilesContentGetPath = object({
|
|
19769
19896
|
artifactSlug: string2()
|
|
19770
19897
|
});
|
|
@@ -19921,18 +20048,6 @@ var zGetArtifactSourceTreeApiPlatformArtifactsArtifactSlugSourceTreeGetResponse
|
|
|
19921
20048
|
revisionNumber: int(),
|
|
19922
20049
|
sourceRevisionId: string2()
|
|
19923
20050
|
});
|
|
19924
|
-
var zSearchContextBlocksApiPlatformContextGetQuery = object({
|
|
19925
|
-
query: string2().nullish(),
|
|
19926
|
-
category: string2().nullish(),
|
|
19927
|
-
isFavorite: boolean2().optional(),
|
|
19928
|
-
personaId: string2().nullish(),
|
|
19929
|
-
folderFilter: _enum(["all", "root", "folder"]).optional().default("all"),
|
|
19930
|
-
folderId: uuid2().nullish(),
|
|
19931
|
-
includeContent: boolean2().optional(),
|
|
19932
|
-
contentPreviewChars: int().gte(0).lte(5000).nullish().default(400),
|
|
19933
|
-
limit: int().gte(1).lte(100).optional().default(50),
|
|
19934
|
-
offset: int().gte(0).nullish().default(0)
|
|
19935
|
-
});
|
|
19936
20051
|
var zDeleteContextBlockApiPlatformContextContextSlugDeletePath = object({
|
|
19937
20052
|
contextSlug: string2()
|
|
19938
20053
|
});
|
|
@@ -19943,13 +20058,6 @@ var zGetContextBlockApiPlatformContextContextSlugGetPath = object({
|
|
|
19943
20058
|
var zUpdateContextBlockApiPlatformContextContextSlugPutPath = object({
|
|
19944
20059
|
contextSlug: string2()
|
|
19945
20060
|
});
|
|
19946
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostPath = object({
|
|
19947
|
-
contextSlug: string2()
|
|
19948
|
-
});
|
|
19949
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostQuery = object({
|
|
19950
|
-
isFavorite: boolean2().optional()
|
|
19951
|
-
});
|
|
19952
|
-
var zToggleContextFavoriteApiPlatformContextContextSlugFavoritePostResponse = record(string2(), unknown());
|
|
19953
20061
|
var zDatasetCreateBody = strictObject({
|
|
19954
20062
|
idempotencyKey: string2().min(1).max(128),
|
|
19955
20063
|
initialRows: array(strictObject({
|
|
@@ -24166,6 +24274,16 @@ function groupWorkspacesByOrganizationOrder(rows, keyOf) {
|
|
|
24166
24274
|
...ordered.filter((group) => !group.isViewerStarter)
|
|
24167
24275
|
];
|
|
24168
24276
|
}
|
|
24277
|
+
// ../../packages/types/src/platform/workspaceCall.ts
|
|
24278
|
+
var WORKSPACE_CALL_REFUSAL_STATUS = {
|
|
24279
|
+
workspace_required: 400,
|
|
24280
|
+
workspace_id_invalid: 400,
|
|
24281
|
+
workspace_not_accessible: 403,
|
|
24282
|
+
workspace_not_allowed_for_credential: 403,
|
|
24283
|
+
tool_not_in_workspace: 404,
|
|
24284
|
+
upload_workspace_mismatch: 409
|
|
24285
|
+
};
|
|
24286
|
+
var WORKSPACE_CALL_REFUSAL_CODES = Object.keys(WORKSPACE_CALL_REFUSAL_STATUS);
|
|
24169
24287
|
// src/visual.ts
|
|
24170
24288
|
var PLAIN_VISUAL = { rich: false, width: 80 };
|
|
24171
24289
|
var ANSI = {
|
|
@@ -24765,7 +24883,7 @@ without a Release.
|
|
|
24765
24883
|
uru gems share create [library/name.gem] --name <name> [--people <email,email>] [--anyone|--no-anyone|--organization|--workspaces <id,id>] [--gate none|passcode|email_otp] [--passcode <code>] [--email-allowlist <email,email>] [--expires-at <iso>] [--notify-on-open off|first_view_only|all_views] [--message <text>] [--pin --version <version>] [--idempotency-key <key>] [--verify]
|
|
24766
24884
|
uru gems share create [library/name.gem] --name <name> --role editor --people <email,email> [--consent kind:id,...] [--message <text>] [--idempotency-key <key>]
|
|
24767
24885
|
uru gems share get|analytics [library/name.gem] <share>
|
|
24768
|
-
uru gems share update [library/name.gem] <share> [--name <name>] [--version <version> | --latest] [--rollback --yes] [--gate <gate>] [--expires-at <iso>] [--notify-on-open <mode>] [--anyone|--no-anyone|--organization|--workspaces <id,id>] [--search-indexing-disabled]
|
|
24886
|
+
uru gems share update [library/name.gem] <share> [--name <name>] [--version <version> | --latest] [--rollback --yes] [--gate <gate>] [--expires-at <iso>] [--notify-on-open <mode>] [--anyone|--no-anyone|--organization|--workspaces <id,id>] [--confirm-link-off] [--search-indexing-disabled]
|
|
24769
24887
|
uru gems share add-people [library/name.gem] <share> --people <email,email>
|
|
24770
24888
|
uru gems share remove-person [library/name.gem] <share> <recipient> --yes
|
|
24771
24889
|
uru gems share consents [library/name.gem] <share> [--grant kind:id,...] [--revoke kind:id,...]
|
|
@@ -24786,6 +24904,11 @@ of those workspaces open it after they sign in; each must be in the Gem's
|
|
|
24786
24904
|
organization, and you must be in it. Both give the share one sign-in URL.
|
|
24787
24905
|
--no-anyone leaves only the people named. On update, the flag replaces the
|
|
24788
24906
|
current level, and everyone who opened through a removed level loses access.
|
|
24907
|
+
An update that leaves no level turns the share's live link off: its URL stops
|
|
24908
|
+
working for everyone who has it. An update from --anyone to --organization or
|
|
24909
|
+
--workspaces closes the link to everyone who is not a signed-in member, clients
|
|
24910
|
+
included. Both are refused, with how many people opened the link, until you
|
|
24911
|
+
run the same command again with --confirm-link-off.
|
|
24789
24912
|
|
|
24790
24913
|
An editor share (--role editor) lets each person you name sign in and change
|
|
24791
24914
|
the Gem from their Library (Personal by default). It has no URL, Version, gate
|
|
@@ -25212,6 +25335,70 @@ async function resolveStoredToken(options) {
|
|
|
25212
25335
|
return;
|
|
25213
25336
|
}
|
|
25214
25337
|
}
|
|
25338
|
+
async function resolveMcpCallBearer(ctx, mcpUrl) {
|
|
25339
|
+
if (ctx.token === undefined) {
|
|
25340
|
+
throw new CliError("Authentication required. Run `uru login` first.", {
|
|
25341
|
+
code: ExitCode.AuthRequired
|
|
25342
|
+
});
|
|
25343
|
+
}
|
|
25344
|
+
if (ctx.tokenIsExplicit || ctx.token.startsWith("uru_")) {
|
|
25345
|
+
return { token: ctx.token, expiresAtMs: null };
|
|
25346
|
+
}
|
|
25347
|
+
const currentConfig = await ctx.store.read();
|
|
25348
|
+
const options = {
|
|
25349
|
+
credentialStore: ctx.credentialStore,
|
|
25350
|
+
store: ctx.store,
|
|
25351
|
+
apiUrl: ctx.apiUrl,
|
|
25352
|
+
config: currentConfig,
|
|
25353
|
+
...ctx.workspace === undefined ? {} : { workspaceId: ctx.workspace },
|
|
25354
|
+
...ctx.fetch === undefined ? {} : { fetch: ctx.fetch }
|
|
25355
|
+
};
|
|
25356
|
+
const keychainValue = await ctx.credentialStore.readToken(ctx.apiUrl);
|
|
25357
|
+
const source = keychainValue === undefined ? "config" : "keychain";
|
|
25358
|
+
const storedValue = keychainValue ?? (currentConfig.insecureStorage === true ? currentConfig.token : undefined);
|
|
25359
|
+
const credential = storedValue === undefined ? null : parseStoredCliOAuthCredential(storedValue);
|
|
25360
|
+
if (storedValue === undefined || credential === null) {
|
|
25361
|
+
throw new CliError("The saved CLI login has no MCP grant. Run `uru login` again.", {
|
|
25362
|
+
code: ExitCode.AuthRequired,
|
|
25363
|
+
errorCode: "auth_required"
|
|
25364
|
+
});
|
|
25365
|
+
}
|
|
25366
|
+
if (credential.sessionAccessToken !== ctx.token) {
|
|
25367
|
+
throw new CliError("The saved CLI sign-in changed. Retry the command.", {
|
|
25368
|
+
code: ExitCode.AuthRequired,
|
|
25369
|
+
errorCode: "auth_required"
|
|
25370
|
+
});
|
|
25371
|
+
}
|
|
25372
|
+
if (credential.oauthResource !== mcpUrl) {
|
|
25373
|
+
throw new CliError("The saved MCP grant is for a different proxy URL.", {
|
|
25374
|
+
code: ExitCode.AuthRequired,
|
|
25375
|
+
errorCode: "oauth_resource_mismatch"
|
|
25376
|
+
});
|
|
25377
|
+
}
|
|
25378
|
+
try {
|
|
25379
|
+
const refreshed = await refreshOAuthToken({
|
|
25380
|
+
apiUrl: ctx.apiUrl,
|
|
25381
|
+
clientId: credential.oauthClientId,
|
|
25382
|
+
refreshToken: credential.oauthRefreshToken,
|
|
25383
|
+
resource: credential.oauthResource,
|
|
25384
|
+
fetch: loginFetch(ctx)
|
|
25385
|
+
});
|
|
25386
|
+
const rotatedRefreshToken = requireRefreshToken(refreshed);
|
|
25387
|
+
await persistMcpGrantIfCurrent(options, source, storedValue, serializeStoredCliOAuthCredential({
|
|
25388
|
+
...credential,
|
|
25389
|
+
oauthRefreshToken: rotatedRefreshToken
|
|
25390
|
+
}));
|
|
25391
|
+
return {
|
|
25392
|
+
token: refreshed.accessToken,
|
|
25393
|
+
expiresAtMs: Date.now() + (refreshed.expiresIn ?? 0) * 1000
|
|
25394
|
+
};
|
|
25395
|
+
} catch (error2) {
|
|
25396
|
+
if (isStoredRefreshRejected(error2)) {
|
|
25397
|
+
await clearMcpGrantIfCurrent(options, source, storedValue);
|
|
25398
|
+
}
|
|
25399
|
+
throw error2;
|
|
25400
|
+
}
|
|
25401
|
+
}
|
|
25215
25402
|
async function revokeStoredOAuthLogin(args) {
|
|
25216
25403
|
const storedValue = await args.credentialStore.readToken(args.apiUrl) ?? (args.config.insecureStorage === true ? args.config.token : undefined);
|
|
25217
25404
|
if (storedValue === undefined) {
|
|
@@ -25529,6 +25716,31 @@ async function persistResolvedCredential(options, source, storedValue) {
|
|
|
25529
25716
|
insecureStorage: true
|
|
25530
25717
|
});
|
|
25531
25718
|
}
|
|
25719
|
+
async function currentMcpGrant(options, source) {
|
|
25720
|
+
const config2 = await options.store.read();
|
|
25721
|
+
const storedValue = source === "keychain" ? await options.credentialStore.readToken(options.apiUrl) : config2.insecureStorage === true ? config2.token : undefined;
|
|
25722
|
+
return { config: config2, storedValue };
|
|
25723
|
+
}
|
|
25724
|
+
function changedMcpGrantError() {
|
|
25725
|
+
return new CliError("The saved CLI sign-in changed. Retry the command.", {
|
|
25726
|
+
code: ExitCode.AuthRequired,
|
|
25727
|
+
errorCode: "auth_required"
|
|
25728
|
+
});
|
|
25729
|
+
}
|
|
25730
|
+
async function persistMcpGrantIfCurrent(options, source, expectedValue, nextValue) {
|
|
25731
|
+
const current = await currentMcpGrant(options, source);
|
|
25732
|
+
if (current.storedValue !== expectedValue) {
|
|
25733
|
+
throw changedMcpGrantError();
|
|
25734
|
+
}
|
|
25735
|
+
await persistResolvedCredential({ ...options, config: current.config }, source, nextValue);
|
|
25736
|
+
}
|
|
25737
|
+
async function clearMcpGrantIfCurrent(options, source, expectedValue) {
|
|
25738
|
+
const current = await currentMcpGrant(options, source);
|
|
25739
|
+
if (current.storedValue !== expectedValue) {
|
|
25740
|
+
throw changedMcpGrantError();
|
|
25741
|
+
}
|
|
25742
|
+
await clearResolvedCredential({ ...options, config: current.config }, source);
|
|
25743
|
+
}
|
|
25532
25744
|
async function clearResolvedCredential(options, source) {
|
|
25533
25745
|
if (source === "keychain") {
|
|
25534
25746
|
await options.credentialStore.clearToken(options.apiUrl);
|
|
@@ -29538,6 +29750,9 @@ function formatCopyResult(value) {
|
|
|
29538
29750
|
`);
|
|
29539
29751
|
}
|
|
29540
29752
|
|
|
29753
|
+
// ../../packages/types/src/artifacts/gemShares.ts
|
|
29754
|
+
var GEM_SHARE_LINK_OFF_CONFIRMATION_REQUIRED_CODE = "gem_share_link_off_confirmation_required";
|
|
29755
|
+
|
|
29541
29756
|
// src/held-idempotency-keys.ts
|
|
29542
29757
|
import { createHash as createHash3, randomUUID as randomUUID3 } from "node:crypto";
|
|
29543
29758
|
import { constants } from "node:fs";
|
|
@@ -30252,7 +30467,7 @@ async function dispatchGemShare(ctx, args, linkedProject) {
|
|
|
30252
30467
|
}
|
|
30253
30468
|
if (verb === "update") {
|
|
30254
30469
|
const flags = parseLocalFlags(rest, ["gems", "share", "update"]);
|
|
30255
|
-
const shareId = lifecycleResourceArg(flags, "Usage: uru gems share update [library/name.gem] <share> [--name <name>] [--version <version> | --latest] [--rollback --yes] [--gate <gate>] [--expires-at <iso>] [--notify-on-open <mode>] [--anyone|--no-anyone|--organization|--workspaces <id,id>] [--search-indexing-disabled]");
|
|
30470
|
+
const shareId = lifecycleResourceArg(flags, "Usage: uru gems share update [library/name.gem] <share> [--name <name>] [--version <version> | --latest] [--rollback --yes] [--gate <gate>] [--expires-at <iso>] [--notify-on-open <mode>] [--anyone|--no-anyone|--organization|--workspaces <id,id>] [--confirm-link-off] [--search-indexing-disabled]");
|
|
30256
30471
|
const params = {
|
|
30257
30472
|
path: gemPathFromArgs(flags, linkedProject),
|
|
30258
30473
|
share_id: shareId,
|
|
@@ -30269,7 +30484,22 @@ async function dispatchGemShare(ctx, args, linkedProject) {
|
|
|
30269
30484
|
if (Object.keys(params).length === 2) {
|
|
30270
30485
|
throw new CliError("share update needs at least one change: --name, --version, --latest, --gate, --expires-at, --notify-on-open, --anyone, --no-anyone, --organization, --workspaces, or --search-indexing-disabled.");
|
|
30271
30486
|
}
|
|
30272
|
-
|
|
30487
|
+
if (flags.booleans.has("--confirm-link-off")) {
|
|
30488
|
+
if (params["audience"] === undefined) {
|
|
30489
|
+
throw new CliError("--confirm-link-off confirms a general access change. Pass it with --no-anyone, --anyone, --organization or --workspaces.");
|
|
30490
|
+
}
|
|
30491
|
+
params["audience_confirm_link_off"] = true;
|
|
30492
|
+
}
|
|
30493
|
+
try {
|
|
30494
|
+
await emitShareWrite(ctx, flags, "gem.share_update", params, extractShareUpdateSummary);
|
|
30495
|
+
} catch (error2) {
|
|
30496
|
+
if (error2 instanceof CliError && error2.errorCode === GEM_SHARE_LINK_OFF_CONFIRMATION_REQUIRED_CODE) {
|
|
30497
|
+
throw refineCliError(error2, {
|
|
30498
|
+
tip: "Nothing changed. If the people the message names should lose the link, run the same command again with --confirm-link-off."
|
|
30499
|
+
});
|
|
30500
|
+
}
|
|
30501
|
+
throw error2;
|
|
30502
|
+
}
|
|
30273
30503
|
return;
|
|
30274
30504
|
}
|
|
30275
30505
|
if (verb === "add-people") {
|
|
@@ -30784,7 +31014,8 @@ function extractShareUpdateSummary(value) {
|
|
|
30784
31014
|
return `${name ?? "The share"} is updated. Other shares did not change.`;
|
|
30785
31015
|
}
|
|
30786
31016
|
const version2 = shareVersionLabel(share);
|
|
30787
|
-
|
|
31017
|
+
const summary = `${name ?? "The share"} now opens Version${version2 === null ? "" : ` ${version2}`}. Other shares did not change.`;
|
|
31018
|
+
return jsonObjectOrNull(value)?.["link_turned_off"] === true ? `${summary} Its link is off: the URL stopped working for everyone who had it.` : summary;
|
|
30788
31019
|
}
|
|
30789
31020
|
function extractShareAddPeopleSummary(value) {
|
|
30790
31021
|
const added = jsonObjectOrNull(value)?.["added"];
|
|
@@ -33318,35 +33549,52 @@ function assertServing(tool) {
|
|
|
33318
33549
|
function connectorRefusal(tool, error2) {
|
|
33319
33550
|
const message = error2.message;
|
|
33320
33551
|
const lower = message.toLowerCase();
|
|
33552
|
+
const proxyRefusal = (errorCode, text, suggestedCommand) => new CliError(text, {
|
|
33553
|
+
errorCode,
|
|
33554
|
+
...error2.status === undefined ? {} : { httpStatus: error2.status },
|
|
33555
|
+
...suggestedCommand === undefined ? {} : { suggestedCommand },
|
|
33556
|
+
cause: error2
|
|
33557
|
+
});
|
|
33558
|
+
if (error2.status === 401) {
|
|
33559
|
+
return new CliError(`${tool.address} needs a valid MCP credential.`, {
|
|
33560
|
+
code: ExitCode.AuthRequired,
|
|
33561
|
+
errorCode: "auth_required",
|
|
33562
|
+
httpStatus: 401,
|
|
33563
|
+
tip: "Run `uru login` again, or pass a Uru API key for this call.",
|
|
33564
|
+
cause: error2
|
|
33565
|
+
});
|
|
33566
|
+
}
|
|
33321
33567
|
if (error2.data?.["code"] === "tool_execution_failed") {
|
|
33322
33568
|
return new CliError(`${tool.address} failed while the connected tool ran.`, {
|
|
33323
33569
|
errorCode: "tool_execution_failed",
|
|
33324
|
-
|
|
33570
|
+
...error2.status === undefined ? {} : { httpStatus: error2.status },
|
|
33571
|
+
tip: `Check the connection and the saved run in Uru before retrying.`,
|
|
33572
|
+
cause: error2
|
|
33325
33573
|
});
|
|
33326
33574
|
}
|
|
33327
33575
|
const envelope = parseParkedCallEnvelope(error2.data);
|
|
33328
33576
|
if (envelope !== null && envelope.questionId !== null) {
|
|
33329
|
-
return
|
|
33577
|
+
return proxyRefusal(envelope.status === "approval_required" ? TOOL_REFUSALS.approvalRequired : TOOL_REFUSALS.refusedByPolicy, [
|
|
33330
33578
|
`${tool.address} did not run: ${envelope.status}.`,
|
|
33331
33579
|
...parkedLines(envelope)
|
|
33332
33580
|
].join(`
|
|
33333
33581
|
`), `uru tools approve ${envelope.questionId} --accept`);
|
|
33334
33582
|
}
|
|
33335
33583
|
if (lower.includes("approval")) {
|
|
33336
|
-
return
|
|
33584
|
+
return proxyRefusal(TOOL_REFUSALS.approvalRequired, `${tool.address} needs an approval before it runs: ${message}`, "uru tools inspect " + tool.address);
|
|
33337
33585
|
}
|
|
33338
33586
|
if (lower.includes("not connected") || lower.includes("missing exact connection") || lower.includes("connected_account")) {
|
|
33339
|
-
return
|
|
33587
|
+
return proxyRefusal(TOOL_REFUSALS.notConnected, `${tool.address} has no live connection: ${message}. Connect ${tool.provider} in Uru, then retry.`, `uru tools connections`);
|
|
33340
33588
|
}
|
|
33341
33589
|
if (error2.status === 403 || lower.includes("policy") || lower.includes("denied")) {
|
|
33342
|
-
return
|
|
33590
|
+
return proxyRefusal(TOOL_REFUSALS.refusedByPolicy, `${tool.address} was refused by workspace policy: ${message}`, `uru tools inspect ${tool.address}`);
|
|
33343
33591
|
}
|
|
33344
33592
|
if (error2.status === 404) {
|
|
33345
|
-
return
|
|
33593
|
+
return proxyRefusal(TOOL_REFUSALS.namespaceUnavailable, `${tool.address} is in your catalog but the proxy does not serve it right now: ${message}`);
|
|
33346
33594
|
}
|
|
33347
|
-
return
|
|
33595
|
+
return proxyRefusal(TOOL_REFUSALS.refusedByPolicy, message);
|
|
33348
33596
|
}
|
|
33349
|
-
async function runOneCall(ctx, tool, parameters,
|
|
33597
|
+
async function runOneCall(ctx, tool, parameters, mcpCall) {
|
|
33350
33598
|
if (isPlatformTool(tool)) {
|
|
33351
33599
|
const operation = getPlatformOperationForToolCall(tool.tool, parameters);
|
|
33352
33600
|
if (operation !== undefined) {
|
|
@@ -33356,13 +33604,13 @@ async function runOneCall(ctx, tool, parameters, mcpUrl) {
|
|
|
33356
33604
|
}
|
|
33357
33605
|
return client(ctx).runTool(tool.tool, parameters);
|
|
33358
33606
|
}
|
|
33359
|
-
if (
|
|
33607
|
+
if (mcpCall === null) {
|
|
33360
33608
|
throw new CliError("Authentication required. Run `uru login`, pass --token, or set URU_TOKEN.");
|
|
33361
33609
|
}
|
|
33362
33610
|
try {
|
|
33363
33611
|
return await callConnectorTool({
|
|
33364
|
-
url:
|
|
33365
|
-
token:
|
|
33612
|
+
url: mcpCall.url,
|
|
33613
|
+
token: await mcpCall.bearer(),
|
|
33366
33614
|
workspaceId: ctx.workspace,
|
|
33367
33615
|
fetchImpl: ctx.fetch ?? fetch,
|
|
33368
33616
|
signal: ctx.abortSignal
|
|
@@ -33417,7 +33665,17 @@ async function toolsRun(ctx, args) {
|
|
|
33417
33665
|
return;
|
|
33418
33666
|
}
|
|
33419
33667
|
assertServing(tool);
|
|
33420
|
-
const
|
|
33668
|
+
const proxyUrl = isPlatformTool(tool) ? null : resolveMcpUrl({ apiUrl: ctx.apiUrl, explicit: flags.values["--mcp-url"] });
|
|
33669
|
+
let cachedBearer = null;
|
|
33670
|
+
const mcpCall = proxyUrl === null ? null : {
|
|
33671
|
+
url: proxyUrl,
|
|
33672
|
+
async bearer() {
|
|
33673
|
+
if (cachedBearer === null || cachedBearer.expiresAtMs !== null && cachedBearer.expiresAtMs <= Date.now() + 60000) {
|
|
33674
|
+
cachedBearer = await resolveMcpCallBearer(ctx, proxyUrl);
|
|
33675
|
+
}
|
|
33676
|
+
return cachedBearer.token;
|
|
33677
|
+
}
|
|
33678
|
+
};
|
|
33421
33679
|
if (parallel) {
|
|
33422
33680
|
const inputs = parameters;
|
|
33423
33681
|
const results = [];
|
|
@@ -33426,7 +33684,7 @@ async function toolsRun(ctx, args) {
|
|
|
33426
33684
|
if (!isJsonObject(input)) {
|
|
33427
33685
|
throw new CliError("--parallel needs every array entry to be an object.");
|
|
33428
33686
|
}
|
|
33429
|
-
results.push(await runOneCall(ctx, tool, input,
|
|
33687
|
+
results.push(await runOneCall(ctx, tool, input, mcpCall));
|
|
33430
33688
|
} catch (error2) {
|
|
33431
33689
|
emitValue(ctx, {
|
|
33432
33690
|
address: tool.address,
|
|
@@ -33443,7 +33701,7 @@ async function toolsRun(ctx, args) {
|
|
|
33443
33701
|
emitValue(ctx, { address: tool.address, results });
|
|
33444
33702
|
return;
|
|
33445
33703
|
}
|
|
33446
|
-
const result = await runOneCall(ctx, tool, parameters,
|
|
33704
|
+
const result = await runOneCall(ctx, tool, parameters, mcpCall);
|
|
33447
33705
|
const parked = parseParkedCallEnvelope(result);
|
|
33448
33706
|
if (parked !== null) {
|
|
33449
33707
|
emitValue(ctx, result, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uru-intelligence/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Uru full-platform command line interface",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"type-check": "tsc --noEmit",
|
|
31
31
|
"test": "bun test",
|
|
32
32
|
"test:unit": "bun test",
|
|
33
|
+
"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",
|
|
33
34
|
"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",
|
|
34
35
|
"build": "node scripts/build.mjs && bun run check:dist-company-names",
|
|
35
36
|
"check:dist-company-names": "bun ../../scripts/check-cli-dist-company-names.ts",
|