@asteroidai/cli 1.9.160 → 1.9.181
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 +37 -15
- package/dist/core.js +36 -14
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -387,7 +387,7 @@ var COMMANDS = [
|
|
|
387
387
|
command: "catalog template get",
|
|
388
388
|
tool: "catalog_template_get",
|
|
389
389
|
title: "Get catalog template",
|
|
390
|
-
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.",
|
|
390
|
+
description: "One catalog template, with `runnable`, its `inputs`, the portal's credential fields and the organization's `accessLevel`. Set `includeWorkflowDefinition` to also get the template's rules, nodes and transitions as a read-only reference when building or editing a workflow; on an organization-scoped read it needs `accessLevel` `granted`. To get an editable copy, use `catalog_template_instantiate`. `organizationId` defaults to the caller's one organization.",
|
|
391
391
|
method: "GET",
|
|
392
392
|
path: "/agents/v2/catalog/templates/{templateId}",
|
|
393
393
|
args: [
|
|
@@ -398,7 +398,15 @@ var COMMANDS = [
|
|
|
398
398
|
required: true
|
|
399
399
|
}
|
|
400
400
|
],
|
|
401
|
-
query: [
|
|
401
|
+
query: [
|
|
402
|
+
{
|
|
403
|
+
name: "includeWorkflowDefinition",
|
|
404
|
+
flag: "include-workflow-definition",
|
|
405
|
+
type: "boolean",
|
|
406
|
+
required: false,
|
|
407
|
+
description: "Also return `workflowDefinition`: the rules, nodes and transitions of the source agent's latest published workflow. On an organization-scoped read it needs `granted` access; a `viewable` template returns 403."
|
|
408
|
+
}
|
|
409
|
+
],
|
|
402
410
|
binary: false,
|
|
403
411
|
readOnly: true,
|
|
404
412
|
destructive: false
|
|
@@ -713,14 +721,14 @@ var COMMANDS = [
|
|
|
713
721
|
flag: "dedicated",
|
|
714
722
|
type: "json",
|
|
715
723
|
required: false,
|
|
716
|
-
description: "Admin only, and returned to admins only. Dedicated
|
|
724
|
+
description: "Admin only, and returned to admins only. Dedicated workers and environments. Absent means no workers are kept. Exclusive with warmPool and warmCache.",
|
|
717
725
|
fields: [
|
|
718
726
|
{
|
|
719
727
|
name: "targetSize",
|
|
720
728
|
flag: "target-size",
|
|
721
729
|
type: "integer",
|
|
722
730
|
required: false,
|
|
723
|
-
description: "Baseline number of
|
|
731
|
+
description: "Baseline number of environments to keep ready outside any scheduled window. 0 drains the custom environment."
|
|
724
732
|
},
|
|
725
733
|
{
|
|
726
734
|
name: "schedule",
|
|
@@ -752,18 +760,25 @@ var COMMANDS = [
|
|
|
752
760
|
description: "Member max age in minutes. As for a warm pool, the replacement boots ahead of it."
|
|
753
761
|
},
|
|
754
762
|
{
|
|
755
|
-
name: "
|
|
756
|
-
flag: "executions-per-
|
|
763
|
+
name: "executionsPerEnvironment",
|
|
764
|
+
flag: "executions-per-environment",
|
|
757
765
|
type: "integer",
|
|
758
766
|
required: false,
|
|
759
|
-
description: "Executions one
|
|
767
|
+
description: "Executions one environment runs at once. On a browser base they share its active tab"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: "workers",
|
|
771
|
+
flag: "workers",
|
|
772
|
+
type: "integer",
|
|
773
|
+
required: false,
|
|
774
|
+
description: "Workers the environment keeps, 1 to 8. Each drives every member environment and takes any execution; add more for volume. Absent means one per member profile"
|
|
760
775
|
},
|
|
761
776
|
{
|
|
762
777
|
name: "initialization",
|
|
763
778
|
flag: "initialization",
|
|
764
779
|
type: "json",
|
|
765
780
|
required: false,
|
|
766
|
-
description: "Workflow that initialises each member before
|
|
781
|
+
description: "Workflow that initialises each member before a worker drives it, such as a sign-in. Absent means a worker drives it as soon as the environment has booted.",
|
|
767
782
|
fields: [
|
|
768
783
|
{
|
|
769
784
|
name: "workflowId",
|
|
@@ -1123,14 +1138,14 @@ var COMMANDS = [
|
|
|
1123
1138
|
flag: "dedicated",
|
|
1124
1139
|
type: "json",
|
|
1125
1140
|
required: false,
|
|
1126
|
-
description: "Admin only, and returned to admins only. Dedicated
|
|
1141
|
+
description: "Admin only, and returned to admins only. Dedicated workers and environments. Absent means no workers are kept. Exclusive with warmPool and warmCache.",
|
|
1127
1142
|
fields: [
|
|
1128
1143
|
{
|
|
1129
1144
|
name: "targetSize",
|
|
1130
1145
|
flag: "target-size",
|
|
1131
1146
|
type: "integer",
|
|
1132
1147
|
required: false,
|
|
1133
|
-
description: "Baseline number of
|
|
1148
|
+
description: "Baseline number of environments to keep ready outside any scheduled window. 0 drains the custom environment."
|
|
1134
1149
|
},
|
|
1135
1150
|
{
|
|
1136
1151
|
name: "schedule",
|
|
@@ -1162,18 +1177,25 @@ var COMMANDS = [
|
|
|
1162
1177
|
description: "Member max age in minutes. As for a warm pool, the replacement boots ahead of it."
|
|
1163
1178
|
},
|
|
1164
1179
|
{
|
|
1165
|
-
name: "
|
|
1166
|
-
flag: "executions-per-
|
|
1180
|
+
name: "executionsPerEnvironment",
|
|
1181
|
+
flag: "executions-per-environment",
|
|
1182
|
+
type: "integer",
|
|
1183
|
+
required: false,
|
|
1184
|
+
description: "Executions one environment runs at once. On a browser base they share its active tab"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
name: "workers",
|
|
1188
|
+
flag: "workers",
|
|
1167
1189
|
type: "integer",
|
|
1168
1190
|
required: false,
|
|
1169
|
-
description: "
|
|
1191
|
+
description: "Workers the environment keeps, 1 to 8. Each drives every member environment and takes any execution; add more for volume. Absent means one per member profile"
|
|
1170
1192
|
},
|
|
1171
1193
|
{
|
|
1172
1194
|
name: "initialization",
|
|
1173
1195
|
flag: "initialization",
|
|
1174
1196
|
type: "json",
|
|
1175
1197
|
required: false,
|
|
1176
|
-
description: "Workflow that initialises each member before
|
|
1198
|
+
description: "Workflow that initialises each member before a worker drives it, such as a sign-in. Absent means a worker drives it as soon as the environment has booted.",
|
|
1177
1199
|
fields: [
|
|
1178
1200
|
{
|
|
1179
1201
|
name: "workflowId",
|
|
@@ -7688,7 +7710,7 @@ var ApiError = class extends Error {
|
|
|
7688
7710
|
status;
|
|
7689
7711
|
body;
|
|
7690
7712
|
};
|
|
7691
|
-
var VERSION = "1.9.
|
|
7713
|
+
var VERSION = "1.9.181";
|
|
7692
7714
|
function problem(status, body, fallback) {
|
|
7693
7715
|
if (body && typeof body === "object") {
|
|
7694
7716
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -408,7 +408,7 @@ var COMMANDS = [
|
|
|
408
408
|
command: "catalog template get",
|
|
409
409
|
tool: "catalog_template_get",
|
|
410
410
|
title: "Get catalog template",
|
|
411
|
-
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.",
|
|
411
|
+
description: "One catalog template, with `runnable`, its `inputs`, the portal's credential fields and the organization's `accessLevel`. Set `includeWorkflowDefinition` to also get the template's rules, nodes and transitions as a read-only reference when building or editing a workflow; on an organization-scoped read it needs `accessLevel` `granted`. To get an editable copy, use `catalog_template_instantiate`. `organizationId` defaults to the caller's one organization.",
|
|
412
412
|
method: "GET",
|
|
413
413
|
path: "/agents/v2/catalog/templates/{templateId}",
|
|
414
414
|
args: [
|
|
@@ -419,7 +419,15 @@ var COMMANDS = [
|
|
|
419
419
|
required: true
|
|
420
420
|
}
|
|
421
421
|
],
|
|
422
|
-
query: [
|
|
422
|
+
query: [
|
|
423
|
+
{
|
|
424
|
+
name: "includeWorkflowDefinition",
|
|
425
|
+
flag: "include-workflow-definition",
|
|
426
|
+
type: "boolean",
|
|
427
|
+
required: false,
|
|
428
|
+
description: "Also return `workflowDefinition`: the rules, nodes and transitions of the source agent's latest published workflow. On an organization-scoped read it needs `granted` access; a `viewable` template returns 403."
|
|
429
|
+
}
|
|
430
|
+
],
|
|
423
431
|
binary: false,
|
|
424
432
|
readOnly: true,
|
|
425
433
|
destructive: false
|
|
@@ -734,14 +742,14 @@ var COMMANDS = [
|
|
|
734
742
|
flag: "dedicated",
|
|
735
743
|
type: "json",
|
|
736
744
|
required: false,
|
|
737
|
-
description: "Admin only, and returned to admins only. Dedicated
|
|
745
|
+
description: "Admin only, and returned to admins only. Dedicated workers and environments. Absent means no workers are kept. Exclusive with warmPool and warmCache.",
|
|
738
746
|
fields: [
|
|
739
747
|
{
|
|
740
748
|
name: "targetSize",
|
|
741
749
|
flag: "target-size",
|
|
742
750
|
type: "integer",
|
|
743
751
|
required: false,
|
|
744
|
-
description: "Baseline number of
|
|
752
|
+
description: "Baseline number of environments to keep ready outside any scheduled window. 0 drains the custom environment."
|
|
745
753
|
},
|
|
746
754
|
{
|
|
747
755
|
name: "schedule",
|
|
@@ -773,18 +781,25 @@ var COMMANDS = [
|
|
|
773
781
|
description: "Member max age in minutes. As for a warm pool, the replacement boots ahead of it."
|
|
774
782
|
},
|
|
775
783
|
{
|
|
776
|
-
name: "
|
|
777
|
-
flag: "executions-per-
|
|
784
|
+
name: "executionsPerEnvironment",
|
|
785
|
+
flag: "executions-per-environment",
|
|
778
786
|
type: "integer",
|
|
779
787
|
required: false,
|
|
780
|
-
description: "Executions one
|
|
788
|
+
description: "Executions one environment runs at once. On a browser base they share its active tab"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
name: "workers",
|
|
792
|
+
flag: "workers",
|
|
793
|
+
type: "integer",
|
|
794
|
+
required: false,
|
|
795
|
+
description: "Workers the environment keeps, 1 to 8. Each drives every member environment and takes any execution; add more for volume. Absent means one per member profile"
|
|
781
796
|
},
|
|
782
797
|
{
|
|
783
798
|
name: "initialization",
|
|
784
799
|
flag: "initialization",
|
|
785
800
|
type: "json",
|
|
786
801
|
required: false,
|
|
787
|
-
description: "Workflow that initialises each member before
|
|
802
|
+
description: "Workflow that initialises each member before a worker drives it, such as a sign-in. Absent means a worker drives it as soon as the environment has booted.",
|
|
788
803
|
fields: [
|
|
789
804
|
{
|
|
790
805
|
name: "workflowId",
|
|
@@ -1144,14 +1159,14 @@ var COMMANDS = [
|
|
|
1144
1159
|
flag: "dedicated",
|
|
1145
1160
|
type: "json",
|
|
1146
1161
|
required: false,
|
|
1147
|
-
description: "Admin only, and returned to admins only. Dedicated
|
|
1162
|
+
description: "Admin only, and returned to admins only. Dedicated workers and environments. Absent means no workers are kept. Exclusive with warmPool and warmCache.",
|
|
1148
1163
|
fields: [
|
|
1149
1164
|
{
|
|
1150
1165
|
name: "targetSize",
|
|
1151
1166
|
flag: "target-size",
|
|
1152
1167
|
type: "integer",
|
|
1153
1168
|
required: false,
|
|
1154
|
-
description: "Baseline number of
|
|
1169
|
+
description: "Baseline number of environments to keep ready outside any scheduled window. 0 drains the custom environment."
|
|
1155
1170
|
},
|
|
1156
1171
|
{
|
|
1157
1172
|
name: "schedule",
|
|
@@ -1183,18 +1198,25 @@ var COMMANDS = [
|
|
|
1183
1198
|
description: "Member max age in minutes. As for a warm pool, the replacement boots ahead of it."
|
|
1184
1199
|
},
|
|
1185
1200
|
{
|
|
1186
|
-
name: "
|
|
1187
|
-
flag: "executions-per-
|
|
1201
|
+
name: "executionsPerEnvironment",
|
|
1202
|
+
flag: "executions-per-environment",
|
|
1203
|
+
type: "integer",
|
|
1204
|
+
required: false,
|
|
1205
|
+
description: "Executions one environment runs at once. On a browser base they share its active tab"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
name: "workers",
|
|
1209
|
+
flag: "workers",
|
|
1188
1210
|
type: "integer",
|
|
1189
1211
|
required: false,
|
|
1190
|
-
description: "
|
|
1212
|
+
description: "Workers the environment keeps, 1 to 8. Each drives every member environment and takes any execution; add more for volume. Absent means one per member profile"
|
|
1191
1213
|
},
|
|
1192
1214
|
{
|
|
1193
1215
|
name: "initialization",
|
|
1194
1216
|
flag: "initialization",
|
|
1195
1217
|
type: "json",
|
|
1196
1218
|
required: false,
|
|
1197
|
-
description: "Workflow that initialises each member before
|
|
1219
|
+
description: "Workflow that initialises each member before a worker drives it, such as a sign-in. Absent means a worker drives it as soon as the environment has booted.",
|
|
1198
1220
|
fields: [
|
|
1199
1221
|
{
|
|
1200
1222
|
name: "workflowId",
|