@uru-intelligence/cli 0.4.18 → 0.4.19
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 +2 -0
- package/dist/library.mjs +9 -14
- package/dist/uru.mjs +9 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
- Action: No action is required. `uru doctor` gains a `data access` check and fails when a credential validates but cannot execute tools; a token supplied through `--token` or `URU_TOKEN` is no longer told to run `uru login`.
|
|
73
73
|
- Send scope on uru automations create, honor --output/--json on uru tools run, and keep errorId plus httpStatus on JSON errors. — surfaces: cli; reference: apps/cli/src/local-commands.ts
|
|
74
74
|
- Action: uru automations create now sends scope=workspace by default. Pass --scope personal when creating a personal automation. JSON errors include errorId and httpStatus when the API provides them.
|
|
75
|
+
- The CLI tells the server which Gem result envelope it reads, and a server that cannot answer in it refuses before it acts instead of after the write. — surfaces: cli; reference: https://linear.app/uru-intelligence/issue/URU-1000
|
|
76
|
+
- Action: Nothing to do. If an older server answers with an envelope this CLI does not read, the error now says the operation may have completed and to check with uru library ls before retrying.
|
|
75
77
|
- Tip library_fs read refusals toward library_query, and ship labels/list aliases that need a live catalog with list_labels/create_label. — surfaces: cli, docs; reference: PR #5379 CF001; PR #5381 staging labels catalog
|
|
76
78
|
- Action: Prefer published CLI >= 0.4.15. Use uru sharing labels_list / label_create (or operations sharing.labels_list / sharing.label_create). library_fs read ops should point callers at library_query instead of an opaque safety refusal.
|
|
77
79
|
- Use the shared SemVer contract when deciding whether to show a CLI update notice. — surfaces: cli, release; reference: docs/plans/cli-sdk-native-release-modernization/PLAN.md
|
package/dist/library.mjs
CHANGED
|
@@ -12174,20 +12174,11 @@ var zTriggersResponse = object({
|
|
|
12174
12174
|
success: boolean2(),
|
|
12175
12175
|
triggers: array(record(string2(), unknown()))
|
|
12176
12176
|
});
|
|
12177
|
-
var zUpdateBillingRequest =
|
|
12178
|
-
architectEnabled: boolean2().nullish(),
|
|
12179
|
-
automationsEnabled: boolean2().nullish(),
|
|
12180
|
-
automationsMonthlyPriceUsd: number2().nullish(),
|
|
12181
|
-
automationsPlanTier: string2().nullish(),
|
|
12177
|
+
var zUpdateBillingRequest = strictObject({
|
|
12182
12178
|
automationsWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
12183
12179
|
billingEmail: email2().nullish(),
|
|
12184
12180
|
billingName: string2().nullish(),
|
|
12185
|
-
chatEnabled: boolean2().nullish(),
|
|
12186
|
-
chatMonthlyPriceUsd: number2().nullish(),
|
|
12187
|
-
chatPlanTier: string2().nullish(),
|
|
12188
12181
|
chatWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
12189
|
-
markupPercentage: number2().nullish(),
|
|
12190
|
-
planType: string2().nullish(),
|
|
12191
12182
|
spendingAlertThresholdUsd: number2().gte(0).nullish(),
|
|
12192
12183
|
spendingLimitUsd: number2().gte(0).nullish()
|
|
12193
12184
|
});
|
|
@@ -17284,6 +17275,8 @@ var zDeviceAuthorizationOauthDeviceCodePostBody = object({
|
|
|
17284
17275
|
var zValidateMcpTokenOauthMcpTokenValidatePostResponse = record(string2(), unknown());
|
|
17285
17276
|
var zRobotsTxtRobotsTxtGetResponse = string2();
|
|
17286
17277
|
|
|
17278
|
+
// ../../packages/types/src/mcp/gemResult.ts
|
|
17279
|
+
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
17287
17280
|
// src/json.ts
|
|
17288
17281
|
function isRecord(value) {
|
|
17289
17282
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -17318,7 +17311,7 @@ function pickString(record2, keys) {
|
|
|
17318
17311
|
// package.json
|
|
17319
17312
|
var package_default = {
|
|
17320
17313
|
name: "@uru-intelligence/cli",
|
|
17321
|
-
version: "0.4.
|
|
17314
|
+
version: "0.4.19",
|
|
17322
17315
|
private: false,
|
|
17323
17316
|
description: "Uru full-platform command line interface",
|
|
17324
17317
|
repository: {
|
|
@@ -17443,12 +17436,11 @@ function stripTerminalControl(value) {
|
|
|
17443
17436
|
return out;
|
|
17444
17437
|
}
|
|
17445
17438
|
|
|
17446
|
-
// ../../packages/types/src/mcp/gemResult.ts
|
|
17447
|
-
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
17448
17439
|
// src/gem-result.ts
|
|
17449
17440
|
function gemEnvelope(body, operation) {
|
|
17450
17441
|
if (!isRecord(body) || body["schema"] !== GEM_RESULT_SCHEMA_V1) {
|
|
17451
|
-
|
|
17442
|
+
const seen = isRecord(body) && typeof body["schema"] === "string" ? body["schema"] : "none";
|
|
17443
|
+
throw new CliError(`Gem ${operation} answered with a result envelope this CLI does not read ` + `(schema ${seen}; this CLI reads ${GEM_RESULT_SCHEMA_V1}). The operation may ` + "have completed on the server: check with `uru library ls` before you retry, " + "then use the CLI version that matches the server.");
|
|
17452
17444
|
}
|
|
17453
17445
|
if (!Object.hasOwn(body, "result") || !Object.hasOwn(body, "error")) {
|
|
17454
17446
|
throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
|
|
@@ -17577,6 +17569,7 @@ class UruApiClient {
|
|
|
17577
17569
|
Accept: "application/json",
|
|
17578
17570
|
"X-Uru-Client-Name": "uru-cli",
|
|
17579
17571
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
17572
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
17580
17573
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
17581
17574
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
17582
17575
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -17603,6 +17596,7 @@ class UruApiClient {
|
|
|
17603
17596
|
Accept: "application/x-ndjson, application/json",
|
|
17604
17597
|
"X-Uru-Client-Name": "uru-cli",
|
|
17605
17598
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
17599
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
17606
17600
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
17607
17601
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
17608
17602
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -17636,6 +17630,7 @@ class UruApiClient {
|
|
|
17636
17630
|
Accept: "text/event-stream",
|
|
17637
17631
|
"X-Uru-Client-Name": "uru-cli",
|
|
17638
17632
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
17633
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
17639
17634
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
17640
17635
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
17641
17636
|
...options.lastEventId === undefined || options.lastEventId === "" ? {} : { "Last-Event-ID": options.lastEventId }
|
package/dist/uru.mjs
CHANGED
|
@@ -2854,7 +2854,7 @@ function spec(id, summary, auth, workspace, safety, outputModes, cancellation =
|
|
|
2854
2854
|
// package.json
|
|
2855
2855
|
var package_default = {
|
|
2856
2856
|
name: "@uru-intelligence/cli",
|
|
2857
|
-
version: "0.4.
|
|
2857
|
+
version: "0.4.19",
|
|
2858
2858
|
private: false,
|
|
2859
2859
|
description: "Uru full-platform command line interface",
|
|
2860
2860
|
repository: {
|
|
@@ -15266,20 +15266,11 @@ var zTriggersResponse = object({
|
|
|
15266
15266
|
success: boolean2(),
|
|
15267
15267
|
triggers: array(record(string2(), unknown()))
|
|
15268
15268
|
});
|
|
15269
|
-
var zUpdateBillingRequest =
|
|
15270
|
-
architectEnabled: boolean2().nullish(),
|
|
15271
|
-
automationsEnabled: boolean2().nullish(),
|
|
15272
|
-
automationsMonthlyPriceUsd: number2().nullish(),
|
|
15273
|
-
automationsPlanTier: string2().nullish(),
|
|
15269
|
+
var zUpdateBillingRequest = strictObject({
|
|
15274
15270
|
automationsWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
15275
15271
|
billingEmail: email2().nullish(),
|
|
15276
15272
|
billingName: string2().nullish(),
|
|
15277
|
-
chatEnabled: boolean2().nullish(),
|
|
15278
|
-
chatMonthlyPriceUsd: number2().nullish(),
|
|
15279
|
-
chatPlanTier: string2().nullish(),
|
|
15280
15273
|
chatWeeklyBudgetUsd: number2().gte(0).nullish(),
|
|
15281
|
-
markupPercentage: number2().nullish(),
|
|
15282
|
-
planType: string2().nullish(),
|
|
15283
15274
|
spendingAlertThresholdUsd: number2().gte(0).nullish(),
|
|
15284
15275
|
spendingLimitUsd: number2().gte(0).nullish()
|
|
15285
15276
|
});
|
|
@@ -20376,6 +20367,8 @@ var zDeviceAuthorizationOauthDeviceCodePostBody = object({
|
|
|
20376
20367
|
var zValidateMcpTokenOauthMcpTokenValidatePostResponse = record(string2(), unknown());
|
|
20377
20368
|
var zRobotsTxtRobotsTxtGetResponse = string2();
|
|
20378
20369
|
|
|
20370
|
+
// ../../packages/types/src/mcp/gemResult.ts
|
|
20371
|
+
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
20379
20372
|
// src/json.ts
|
|
20380
20373
|
function isRecord(value) {
|
|
20381
20374
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -20431,12 +20424,11 @@ function stripTerminalControl(value) {
|
|
|
20431
20424
|
return out;
|
|
20432
20425
|
}
|
|
20433
20426
|
|
|
20434
|
-
// ../../packages/types/src/mcp/gemResult.ts
|
|
20435
|
-
var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
|
|
20436
20427
|
// src/gem-result.ts
|
|
20437
20428
|
function gemEnvelope(body, operation) {
|
|
20438
20429
|
if (!isRecord(body) || body["schema"] !== GEM_RESULT_SCHEMA_V1) {
|
|
20439
|
-
|
|
20430
|
+
const seen = isRecord(body) && typeof body["schema"] === "string" ? body["schema"] : "none";
|
|
20431
|
+
throw new CliError(`Gem ${operation} answered with a result envelope this CLI does not read ` + `(schema ${seen}; this CLI reads ${GEM_RESULT_SCHEMA_V1}). The operation may ` + "have completed on the server: check with `uru library ls` before you retry, " + "then use the CLI version that matches the server.");
|
|
20440
20432
|
}
|
|
20441
20433
|
if (!Object.hasOwn(body, "result") || !Object.hasOwn(body, "error")) {
|
|
20442
20434
|
throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
|
|
@@ -20663,6 +20655,7 @@ class UruApiClient {
|
|
|
20663
20655
|
Accept: "application/json",
|
|
20664
20656
|
"X-Uru-Client-Name": "uru-cli",
|
|
20665
20657
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20658
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20666
20659
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20667
20660
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20668
20661
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -20689,6 +20682,7 @@ class UruApiClient {
|
|
|
20689
20682
|
Accept: "application/x-ndjson, application/json",
|
|
20690
20683
|
"X-Uru-Client-Name": "uru-cli",
|
|
20691
20684
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20685
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20692
20686
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20693
20687
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20694
20688
|
...options.body === undefined ? {} : { "Content-Type": "application/json" }
|
|
@@ -20722,6 +20716,7 @@ class UruApiClient {
|
|
|
20722
20716
|
Accept: "text/event-stream",
|
|
20723
20717
|
"X-Uru-Client-Name": "uru-cli",
|
|
20724
20718
|
"X-Uru-Client-Version": CLI_VERSION,
|
|
20719
|
+
"X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
|
|
20725
20720
|
...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
|
|
20726
20721
|
...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
|
|
20727
20722
|
...options.lastEventId === undefined || options.lastEventId === "" ? {} : { "Last-Event-ID": options.lastEventId }
|