@asteroidai/cli 1.9.189 → 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 +23 -3
- package/dist/core.js +22 -2
- package/package.json +1 -1
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
|
|
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: [
|
|
@@ -7736,7 +7756,7 @@ var ApiError = class extends Error {
|
|
|
7736
7756
|
status;
|
|
7737
7757
|
body;
|
|
7738
7758
|
};
|
|
7739
|
-
var VERSION = "1.9.
|
|
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
|
|
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: [
|