@asteroidai/cli 1.9.185 → 1.9.191

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/asteroid.js CHANGED
@@ -374,7 +374,7 @@ var COMMANDS = [
374
374
  command: "catalog get",
375
375
  tool: "catalog_get",
376
376
  title: "Get catalog",
377
- description: "The organization's agent catalog: categories, portals and the templates it is entitled to. `accessLevel` is `granted` (can instantiate) or `viewable` (locked). `organizationId` defaults to the caller's one organization. Template definitions are omitted; read one with `catalog_template_get`.",
377
+ description: "The organization's agent catalog: categories, portals and the templates it is entitled to. `accessLevel` is `granted` (can instantiate) or `viewable` (locked); `catalog_template_add` grants a `viewable` one. `organizationId` defaults to the caller's one organization. Template definitions are omitted; read one with `catalog_template_get`.",
378
378
  method: "GET",
379
379
  path: "/agents/v2/catalog",
380
380
  args: [],
@@ -383,6 +383,26 @@ var COMMANDS = [
383
383
  readOnly: true,
384
384
  destructive: false
385
385
  },
386
+ {
387
+ command: "catalog template add",
388
+ tool: "catalog_template_add",
389
+ title: "Add catalog template",
390
+ description: "Add a catalog template to an organization at `accessLevel` `granted`, so `catalog_template_instantiate` can clone it. Also adds the skills of the template's portal. Needs a Startup plan or above. Adding one the organization already has is a no-op. `organizationId` defaults to the caller's one organization.",
391
+ method: "POST",
392
+ path: "/agents/v2/catalog/templates/{templateId}/add",
393
+ args: [
394
+ {
395
+ name: "templateId",
396
+ flag: "template-id",
397
+ type: "string",
398
+ required: true
399
+ }
400
+ ],
401
+ query: [],
402
+ binary: false,
403
+ readOnly: false,
404
+ destructive: false
405
+ },
386
406
  {
387
407
  command: "catalog template get",
388
408
  tool: "catalog_template_get",
@@ -415,7 +435,7 @@ var COMMANDS = [
415
435
  command: "catalog template instantiate",
416
436
  tool: "catalog_template_instantiate",
417
437
  title: "Instantiate catalog template",
418
- description: "Create a new workflow in the organization from a catalog template. Needs `accessLevel` `granted`. Pass `credentials` (keyed by the portal's credential field keys) to create a profile, or `agentProfileId` to reuse one, or neither for a bare clone. Returns the workflow ID, its version ID and any profile ID. `organizationId` defaults to the caller's one organization.",
438
+ description: "Create a new workflow in the organization from a catalog template. Needs `accessLevel` `granted`: add the template with `catalog_template_add` first. Pass `credentials` (keyed by the portal's credential field keys) to create a profile, or `agentProfileId` to reuse one, or neither for a bare clone. Returns the workflow ID, its version ID and any profile ID. `organizationId` defaults to the caller's one organization.",
419
439
  method: "POST",
420
440
  path: "/agents/v2/catalog/templates/{templateId}/instantiate",
421
441
  args: [
@@ -5574,7 +5594,7 @@ var COMMANDS = [
5574
5594
  command: "workflow push",
5575
5595
  tool: "workflow_files_patch",
5576
5596
  title: "Write workflow files",
5577
- description: "Write and delete files on the workflow's editable head in one patch. Structural files re-derive the graph; the workflow's own files go to its file store, you just write paths. Pass the rev from `workflow_files_list` as baseRev; a stale value is rejected with 409, so re-read and retry. Editing a published or already-executed version forks a new one instead of rewriting it. Each write carries `contentBase64`: base64-encode the file content, plain text is rejected with 400.",
5597
+ description: "Write and delete files on the workflow's editable head in one patch. Structural files re-derive the graph; the workflow's own files go to its file store, you just write paths. Pass the rev from `workflow_files_list` as baseRev; a stale value is rejected with 409, so re-read and retry. Editing a published or already-executed version forks a new one instead of rewriting it. Each write carries the file as `content` (UTF-8 text) or `contentBase64` (base64 bytes, for binary files), exactly one.",
5578
5598
  method: "PATCH",
5579
5599
  path: "/agents/v2/workflows/{workflowId}/head/files",
5580
5600
  args: [
@@ -7736,7 +7756,7 @@ var ApiError = class extends Error {
7736
7756
  status;
7737
7757
  body;
7738
7758
  };
7739
- var VERSION = "1.9.185";
7759
+ var VERSION = "1.9.191";
7740
7760
  function problem(status, body, fallback) {
7741
7761
  if (body && typeof body === "object") {
7742
7762
  const record2 = body;
package/dist/core.js CHANGED
@@ -395,7 +395,7 @@ var COMMANDS = [
395
395
  command: "catalog get",
396
396
  tool: "catalog_get",
397
397
  title: "Get catalog",
398
- description: "The organization's agent catalog: categories, portals and the templates it is entitled to. `accessLevel` is `granted` (can instantiate) or `viewable` (locked). `organizationId` defaults to the caller's one organization. Template definitions are omitted; read one with `catalog_template_get`.",
398
+ description: "The organization's agent catalog: categories, portals and the templates it is entitled to. `accessLevel` is `granted` (can instantiate) or `viewable` (locked); `catalog_template_add` grants a `viewable` one. `organizationId` defaults to the caller's one organization. Template definitions are omitted; read one with `catalog_template_get`.",
399
399
  method: "GET",
400
400
  path: "/agents/v2/catalog",
401
401
  args: [],
@@ -404,6 +404,26 @@ var COMMANDS = [
404
404
  readOnly: true,
405
405
  destructive: false
406
406
  },
407
+ {
408
+ command: "catalog template add",
409
+ tool: "catalog_template_add",
410
+ title: "Add catalog template",
411
+ description: "Add a catalog template to an organization at `accessLevel` `granted`, so `catalog_template_instantiate` can clone it. Also adds the skills of the template's portal. Needs a Startup plan or above. Adding one the organization already has is a no-op. `organizationId` defaults to the caller's one organization.",
412
+ method: "POST",
413
+ path: "/agents/v2/catalog/templates/{templateId}/add",
414
+ args: [
415
+ {
416
+ name: "templateId",
417
+ flag: "template-id",
418
+ type: "string",
419
+ required: true
420
+ }
421
+ ],
422
+ query: [],
423
+ binary: false,
424
+ readOnly: false,
425
+ destructive: false
426
+ },
407
427
  {
408
428
  command: "catalog template get",
409
429
  tool: "catalog_template_get",
@@ -436,7 +456,7 @@ var COMMANDS = [
436
456
  command: "catalog template instantiate",
437
457
  tool: "catalog_template_instantiate",
438
458
  title: "Instantiate catalog template",
439
- description: "Create a new workflow in the organization from a catalog template. Needs `accessLevel` `granted`. Pass `credentials` (keyed by the portal's credential field keys) to create a profile, or `agentProfileId` to reuse one, or neither for a bare clone. Returns the workflow ID, its version ID and any profile ID. `organizationId` defaults to the caller's one organization.",
459
+ description: "Create a new workflow in the organization from a catalog template. Needs `accessLevel` `granted`: add the template with `catalog_template_add` first. Pass `credentials` (keyed by the portal's credential field keys) to create a profile, or `agentProfileId` to reuse one, or neither for a bare clone. Returns the workflow ID, its version ID and any profile ID. `organizationId` defaults to the caller's one organization.",
440
460
  method: "POST",
441
461
  path: "/agents/v2/catalog/templates/{templateId}/instantiate",
442
462
  args: [
@@ -5595,7 +5615,7 @@ var COMMANDS = [
5595
5615
  command: "workflow push",
5596
5616
  tool: "workflow_files_patch",
5597
5617
  title: "Write workflow files",
5598
- description: "Write and delete files on the workflow's editable head in one patch. Structural files re-derive the graph; the workflow's own files go to its file store, you just write paths. Pass the rev from `workflow_files_list` as baseRev; a stale value is rejected with 409, so re-read and retry. Editing a published or already-executed version forks a new one instead of rewriting it. Each write carries `contentBase64`: base64-encode the file content, plain text is rejected with 400.",
5618
+ description: "Write and delete files on the workflow's editable head in one patch. Structural files re-derive the graph; the workflow's own files go to its file store, you just write paths. Pass the rev from `workflow_files_list` as baseRev; a stale value is rejected with 409, so re-read and retry. Editing a published or already-executed version forks a new one instead of rewriting it. Each write carries the file as `content` (UTF-8 text) or `contentBase64` (base64 bytes, for binary files), exactly one.",
5599
5619
  method: "PATCH",
5600
5620
  path: "/agents/v2/workflows/{workflowId}/head/files",
5601
5621
  args: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.185",
3
+ "version": "1.9.191",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",