@uru-intelligence/cli 0.3.60 → 0.3.61

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/dist/library.mjs CHANGED
@@ -14339,7 +14339,7 @@ function pickString(record2, keys) {
14339
14339
  // package.json
14340
14340
  var package_default = {
14341
14341
  name: "@uru-intelligence/cli",
14342
- version: "0.3.60",
14342
+ version: "0.3.61",
14343
14343
  private: false,
14344
14344
  description: "Uru full-platform command line interface",
14345
14345
  repository: {
@@ -14473,16 +14473,18 @@ class UruApiClient {
14473
14473
  method: "GET"
14474
14474
  });
14475
14475
  }
14476
- async runTool(name, parameters) {
14476
+ async runTool(name, parameters, operation) {
14477
14477
  return this.request(`/api/platform/tools/${encodeURIComponent(name)}/execute`, {
14478
14478
  method: "POST",
14479
- body: { parameters }
14479
+ body: { parameters },
14480
+ ...operation === undefined ? {} : { cliOperation: operation }
14480
14481
  });
14481
14482
  }
14482
- async streamTool(name, parameters, onEvent) {
14483
+ async streamTool(name, parameters, onEvent, operation) {
14483
14484
  return this.requestStream(`/api/platform/tools/${encodeURIComponent(name)}/execute`, {
14484
14485
  method: "POST",
14485
- body: { parameters }
14486
+ body: { parameters },
14487
+ ...operation === undefined ? {} : { cliOperation: operation }
14486
14488
  }, onEvent);
14487
14489
  }
14488
14490
  async api(path, options) {
@@ -14495,6 +14497,9 @@ class UruApiClient {
14495
14497
  headers: {
14496
14498
  Authorization: `Bearer ${this.token}`,
14497
14499
  Accept: "application/json",
14500
+ "X-Uru-Client-Name": "uru-cli",
14501
+ "X-Uru-Client-Version": CLI_VERSION,
14502
+ ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
14498
14503
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
14499
14504
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
14500
14505
  },
@@ -14515,6 +14520,9 @@ class UruApiClient {
14515
14520
  headers: {
14516
14521
  Authorization: `Bearer ${this.token}`,
14517
14522
  Accept: "application/x-ndjson, application/json",
14523
+ "X-Uru-Client-Name": "uru-cli",
14524
+ "X-Uru-Client-Version": CLI_VERSION,
14525
+ ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
14518
14526
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
14519
14527
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
14520
14528
  },
package/dist/uru.mjs CHANGED
@@ -20,7 +20,7 @@ import { spawn as spawn3 } from "node:child_process";
20
20
  // package.json
21
21
  var package_default = {
22
22
  name: "@uru-intelligence/cli",
23
- version: "0.3.60",
23
+ version: "0.3.61",
24
24
  private: false,
25
25
  description: "Uru full-platform command line interface",
26
26
  repository: {
@@ -1294,7 +1294,6 @@ function gemPathSpecs() {
1294
1294
  pathSpec(["gems", "links", "create"], "gems", [optional("gem")], [
1295
1295
  valueFlag("--name"),
1296
1296
  valueFlag("--version"),
1297
- booleanFlag("--pin"),
1298
1297
  valueFlag("--idempotency-key"),
1299
1298
  ...gemRefFlags
1300
1299
  ]),
@@ -16269,16 +16268,18 @@ class UruApiClient {
16269
16268
  method: "GET"
16270
16269
  });
16271
16270
  }
16272
- async runTool(name, parameters) {
16271
+ async runTool(name, parameters, operation) {
16273
16272
  return this.request(`/api/platform/tools/${encodeURIComponent(name)}/execute`, {
16274
16273
  method: "POST",
16275
- body: { parameters }
16274
+ body: { parameters },
16275
+ ...operation === undefined ? {} : { cliOperation: operation }
16276
16276
  });
16277
16277
  }
16278
- async streamTool(name, parameters, onEvent) {
16278
+ async streamTool(name, parameters, onEvent, operation) {
16279
16279
  return this.requestStream(`/api/platform/tools/${encodeURIComponent(name)}/execute`, {
16280
16280
  method: "POST",
16281
- body: { parameters }
16281
+ body: { parameters },
16282
+ ...operation === undefined ? {} : { cliOperation: operation }
16282
16283
  }, onEvent);
16283
16284
  }
16284
16285
  async api(path, options) {
@@ -16291,6 +16292,9 @@ class UruApiClient {
16291
16292
  headers: {
16292
16293
  Authorization: `Bearer ${this.token}`,
16293
16294
  Accept: "application/json",
16295
+ "X-Uru-Client-Name": "uru-cli",
16296
+ "X-Uru-Client-Version": CLI_VERSION,
16297
+ ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
16294
16298
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
16295
16299
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
16296
16300
  },
@@ -16311,6 +16315,9 @@ class UruApiClient {
16311
16315
  headers: {
16312
16316
  Authorization: `Bearer ${this.token}`,
16313
16317
  Accept: "application/x-ndjson, application/json",
16318
+ "X-Uru-Client-Name": "uru-cli",
16319
+ "X-Uru-Client-Version": CLI_VERSION,
16320
+ ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
16314
16321
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
16315
16322
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
16316
16323
  },
@@ -16785,17 +16792,14 @@ Create and inspect hosted Releases for explicit Versions. A Release never change
16785
16792
  a Link. Embedded Gems are link-ready without a Release.
16786
16793
  `,
16787
16794
  "gems links": `Usage: uru gems links list [library/name.gem]
16788
- uru gems links create [library/name.gem] --name <name> [--pin --version <version>]
16795
+ uru gems links create [library/name.gem] --name <name> --version <version>
16789
16796
  uru gems links set-version [library/name.gem] <link> <version>
16790
16797
  uru gems links set-access [library/name.gem] <link> --gate <gate>
16791
16798
  uru gems links set-notifications [library/name.gem] <link> <mode>
16792
16799
  uru gems links rotate|revoke [library/name.gem] <link>
16793
16800
 
16794
- A new Link FOLLOWS the Gem: it serves whatever the Gem's current Version is, and
16795
- needs no Version named. Add --pin --version <version> to freeze it on one
16796
- Version instead. --version on its own is refused, because a following Link would
16797
- discard it and publish something else. Changing one Link does not move any other
16798
- Link.
16801
+ A new Link opens one exact ready Version. Use set-version to move only that Link.
16802
+ Changing one Link does not move any other Link.
16799
16803
  `,
16800
16804
  "gems runs": `Usage: uru gems runs list [library/name.gem] [--cursor <cursor>] [--limit <n>] [--status <status>]
16801
16805
  uru gems runs show [library/name.gem] <run>
@@ -17019,7 +17023,7 @@ async function executeOperationStream(ctx, operationId, params, onEvent, options
17019
17023
  const response = await client(ctx).streamTool(operation.backendToolName, toolParams, (event) => {
17020
17024
  assertToolResultSuccess(event);
17021
17025
  onEvent(event);
17022
- });
17026
+ }, operationId);
17023
17027
  if (response.payload !== undefined) {
17024
17028
  assertToolResultSuccess(response.payload);
17025
17029
  }
@@ -17041,7 +17045,7 @@ async function executeOperation(ctx, operationId, params, options = {}) {
17041
17045
  if (operation.backendOp !== undefined) {
17042
17046
  toolParams["op"] = operation.backendOp;
17043
17047
  }
17044
- const result = await client(ctx).runTool(operation.backendToolName, toolParams);
17048
+ const result = await client(ctx).runTool(operation.backendToolName, toolParams, operationId);
17045
17049
  assertToolResultSuccess(result);
17046
17050
  return result;
17047
17051
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uru-intelligence/cli",
3
- "version": "0.3.60",
3
+ "version": "0.3.61",
4
4
  "private": false,
5
5
  "description": "Uru full-platform command line interface",
6
6
  "repository": {