@asteroidai/cli 1.9.144 → 1.9.146
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 +91 -1
- package/dist/core.js +90 -0
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -249,6 +249,89 @@ var COMMANDS = [
|
|
|
249
249
|
credentialOrganization: false
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
|
+
{
|
|
253
|
+
command: "catalog get",
|
|
254
|
+
tool: "catalog_get",
|
|
255
|
+
title: "Get catalog",
|
|
256
|
+
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`.",
|
|
257
|
+
method: "GET",
|
|
258
|
+
path: "/agents/v2/catalog",
|
|
259
|
+
args: [],
|
|
260
|
+
query: [],
|
|
261
|
+
binary: false,
|
|
262
|
+
readOnly: true,
|
|
263
|
+
destructive: false
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
command: "catalog template get",
|
|
267
|
+
tool: "catalog_template_get",
|
|
268
|
+
title: "Get catalog template",
|
|
269
|
+
description: "One catalog template, with `runnable`, its `inputs`, the portal's credential fields and the organization's `accessLevel`. `organizationId` defaults to the caller's one organization.",
|
|
270
|
+
method: "GET",
|
|
271
|
+
path: "/agents/v2/catalog/templates/{templateId}",
|
|
272
|
+
args: [
|
|
273
|
+
{
|
|
274
|
+
name: "templateId",
|
|
275
|
+
flag: "template-id",
|
|
276
|
+
type: "string",
|
|
277
|
+
required: true
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
query: [],
|
|
281
|
+
binary: false,
|
|
282
|
+
readOnly: true,
|
|
283
|
+
destructive: false
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
command: "catalog template instantiate",
|
|
287
|
+
tool: "catalog_template_instantiate",
|
|
288
|
+
title: "Instantiate catalog template",
|
|
289
|
+
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.",
|
|
290
|
+
method: "POST",
|
|
291
|
+
path: "/agents/v2/catalog/templates/{templateId}/instantiate",
|
|
292
|
+
args: [
|
|
293
|
+
{
|
|
294
|
+
name: "templateId",
|
|
295
|
+
flag: "template-id",
|
|
296
|
+
type: "string",
|
|
297
|
+
required: true
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
query: [],
|
|
301
|
+
binary: false,
|
|
302
|
+
readOnly: false,
|
|
303
|
+
destructive: false,
|
|
304
|
+
body: {
|
|
305
|
+
required: true,
|
|
306
|
+
contentType: "application/json",
|
|
307
|
+
fields: [
|
|
308
|
+
{
|
|
309
|
+
name: "name",
|
|
310
|
+
flag: "name",
|
|
311
|
+
type: "string",
|
|
312
|
+
required: false,
|
|
313
|
+
description: 'Optional name for the created agent. Letters, digits, spaces, and punctuation excluding _ < > : " / \\ | ? and *. Defaults to the template name.'
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "agentProfileId",
|
|
317
|
+
flag: "agent-profile-id",
|
|
318
|
+
type: "string",
|
|
319
|
+
required: false,
|
|
320
|
+
description: "Reuse an existing agent profile from the target organization for this clone. The profile must belong to `organizationId`. Mutually exclusive with `credentials`; supplying both is a 400."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: "credentials",
|
|
324
|
+
flag: "credentials",
|
|
325
|
+
type: "json",
|
|
326
|
+
required: false,
|
|
327
|
+
description: "Plaintext values for the portal's declared credential fields, keyed by CredentialField.key. The server creates a fresh agent profile holding them (portal profile defaults applied) before cloning the agent. Required fields (required omitted or true) must be non-blank; blank optional fields are dropped. On a portal with no credential fields, a present (even empty) object still mints a defaults-only profile when the portal declares profile defaults. Mutually exclusive with `agentProfileId`. Omit both fields for a bare clone.",
|
|
328
|
+
record: "string"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
files: [],
|
|
332
|
+
credentialOrganization: true
|
|
333
|
+
}
|
|
334
|
+
},
|
|
252
335
|
{
|
|
253
336
|
command: "context",
|
|
254
337
|
tool: "get_context",
|
|
@@ -1535,6 +1618,13 @@ var COMMANDS = [
|
|
|
1535
1618
|
type: "string",
|
|
1536
1619
|
required: false,
|
|
1537
1620
|
description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
name: "includeOutcomes",
|
|
1624
|
+
flag: "include-outcomes",
|
|
1625
|
+
type: "boolean",
|
|
1626
|
+
required: false,
|
|
1627
|
+
description: "Also count outcome labels. Defaults to true. Set false when only status counts are needed: with no time window, outcome counts read every result in the organization. When false, outcome_counts.items is empty."
|
|
1538
1628
|
}
|
|
1539
1629
|
],
|
|
1540
1630
|
binary: false,
|
|
@@ -7491,7 +7581,7 @@ var ApiError = class extends Error {
|
|
|
7491
7581
|
status;
|
|
7492
7582
|
body;
|
|
7493
7583
|
};
|
|
7494
|
-
var VERSION = "1.9.
|
|
7584
|
+
var VERSION = "1.9.146";
|
|
7495
7585
|
function problem(status, body, fallback) {
|
|
7496
7586
|
if (body && typeof body === "object") {
|
|
7497
7587
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -270,6 +270,89 @@ var COMMANDS = [
|
|
|
270
270
|
credentialOrganization: false
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
|
+
{
|
|
274
|
+
command: "catalog get",
|
|
275
|
+
tool: "catalog_get",
|
|
276
|
+
title: "Get catalog",
|
|
277
|
+
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`.",
|
|
278
|
+
method: "GET",
|
|
279
|
+
path: "/agents/v2/catalog",
|
|
280
|
+
args: [],
|
|
281
|
+
query: [],
|
|
282
|
+
binary: false,
|
|
283
|
+
readOnly: true,
|
|
284
|
+
destructive: false
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
command: "catalog template get",
|
|
288
|
+
tool: "catalog_template_get",
|
|
289
|
+
title: "Get catalog template",
|
|
290
|
+
description: "One catalog template, with `runnable`, its `inputs`, the portal's credential fields and the organization's `accessLevel`. `organizationId` defaults to the caller's one organization.",
|
|
291
|
+
method: "GET",
|
|
292
|
+
path: "/agents/v2/catalog/templates/{templateId}",
|
|
293
|
+
args: [
|
|
294
|
+
{
|
|
295
|
+
name: "templateId",
|
|
296
|
+
flag: "template-id",
|
|
297
|
+
type: "string",
|
|
298
|
+
required: true
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
query: [],
|
|
302
|
+
binary: false,
|
|
303
|
+
readOnly: true,
|
|
304
|
+
destructive: false
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
command: "catalog template instantiate",
|
|
308
|
+
tool: "catalog_template_instantiate",
|
|
309
|
+
title: "Instantiate catalog template",
|
|
310
|
+
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.",
|
|
311
|
+
method: "POST",
|
|
312
|
+
path: "/agents/v2/catalog/templates/{templateId}/instantiate",
|
|
313
|
+
args: [
|
|
314
|
+
{
|
|
315
|
+
name: "templateId",
|
|
316
|
+
flag: "template-id",
|
|
317
|
+
type: "string",
|
|
318
|
+
required: true
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
query: [],
|
|
322
|
+
binary: false,
|
|
323
|
+
readOnly: false,
|
|
324
|
+
destructive: false,
|
|
325
|
+
body: {
|
|
326
|
+
required: true,
|
|
327
|
+
contentType: "application/json",
|
|
328
|
+
fields: [
|
|
329
|
+
{
|
|
330
|
+
name: "name",
|
|
331
|
+
flag: "name",
|
|
332
|
+
type: "string",
|
|
333
|
+
required: false,
|
|
334
|
+
description: 'Optional name for the created agent. Letters, digits, spaces, and punctuation excluding _ < > : " / \\ | ? and *. Defaults to the template name.'
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
name: "agentProfileId",
|
|
338
|
+
flag: "agent-profile-id",
|
|
339
|
+
type: "string",
|
|
340
|
+
required: false,
|
|
341
|
+
description: "Reuse an existing agent profile from the target organization for this clone. The profile must belong to `organizationId`. Mutually exclusive with `credentials`; supplying both is a 400."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "credentials",
|
|
345
|
+
flag: "credentials",
|
|
346
|
+
type: "json",
|
|
347
|
+
required: false,
|
|
348
|
+
description: "Plaintext values for the portal's declared credential fields, keyed by CredentialField.key. The server creates a fresh agent profile holding them (portal profile defaults applied) before cloning the agent. Required fields (required omitted or true) must be non-blank; blank optional fields are dropped. On a portal with no credential fields, a present (even empty) object still mints a defaults-only profile when the portal declares profile defaults. Mutually exclusive with `agentProfileId`. Omit both fields for a bare clone.",
|
|
349
|
+
record: "string"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
files: [],
|
|
353
|
+
credentialOrganization: true
|
|
354
|
+
}
|
|
355
|
+
},
|
|
273
356
|
{
|
|
274
357
|
command: "context",
|
|
275
358
|
tool: "get_context",
|
|
@@ -1556,6 +1639,13 @@ var COMMANDS = [
|
|
|
1556
1639
|
type: "string",
|
|
1557
1640
|
required: false,
|
|
1558
1641
|
description: "Only executions started by this batch, an ID from `execution_batches_list`. Rows not yet triggered have no execution yet: list them with `scheduled_executions_list` and `batchId`."
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
name: "includeOutcomes",
|
|
1645
|
+
flag: "include-outcomes",
|
|
1646
|
+
type: "boolean",
|
|
1647
|
+
required: false,
|
|
1648
|
+
description: "Also count outcome labels. Defaults to true. Set false when only status counts are needed: with no time window, outcome counts read every result in the organization. When false, outcome_counts.items is empty."
|
|
1559
1649
|
}
|
|
1560
1650
|
],
|
|
1561
1651
|
binary: false,
|