@asteroidai/cli 1.9.105 → 1.9.107
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 +88 -49
- package/dist/core.js +87 -48
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -1979,53 +1979,6 @@ var COMMANDS = [
|
|
|
1979
1979
|
readOnly: true,
|
|
1980
1980
|
destructive: false
|
|
1981
1981
|
},
|
|
1982
|
-
{
|
|
1983
|
-
command: "insight update",
|
|
1984
|
-
tool: "insight_update",
|
|
1985
|
-
title: "Update insight",
|
|
1986
|
-
description: "Change an insight's name, content or status. Omitted fields keep their value. The status must be valid for the insight's type: a recommendation is open, actioned or dismissed; an overview is unread or read.",
|
|
1987
|
-
method: "PATCH",
|
|
1988
|
-
path: "/astro/v2/insights/{insightId}",
|
|
1989
|
-
args: [
|
|
1990
|
-
{
|
|
1991
|
-
name: "insightId",
|
|
1992
|
-
flag: "insight-id",
|
|
1993
|
-
type: "string",
|
|
1994
|
-
required: true
|
|
1995
|
-
}
|
|
1996
|
-
],
|
|
1997
|
-
query: [],
|
|
1998
|
-
binary: false,
|
|
1999
|
-
readOnly: false,
|
|
2000
|
-
destructive: false,
|
|
2001
|
-
body: {
|
|
2002
|
-
required: true,
|
|
2003
|
-
contentType: "application/json",
|
|
2004
|
-
fields: [
|
|
2005
|
-
{
|
|
2006
|
-
name: "name",
|
|
2007
|
-
flag: "name",
|
|
2008
|
-
type: "string",
|
|
2009
|
-
required: false
|
|
2010
|
-
},
|
|
2011
|
-
{
|
|
2012
|
-
name: "content",
|
|
2013
|
-
flag: "content",
|
|
2014
|
-
type: "string",
|
|
2015
|
-
required: false
|
|
2016
|
-
},
|
|
2017
|
-
{
|
|
2018
|
-
name: "status",
|
|
2019
|
-
flag: "status",
|
|
2020
|
-
type: "string",
|
|
2021
|
-
required: false,
|
|
2022
|
-
description: "New status. Must be one of the insight type's statuses."
|
|
2023
|
-
}
|
|
2024
|
-
],
|
|
2025
|
-
files: [],
|
|
2026
|
-
credentialOrganization: false
|
|
2027
|
-
}
|
|
2028
|
-
},
|
|
2029
1982
|
{
|
|
2030
1983
|
command: "model list",
|
|
2031
1984
|
tool: "models_list",
|
|
@@ -4739,6 +4692,88 @@ var COMMANDS = [
|
|
|
4739
4692
|
readOnly: true,
|
|
4740
4693
|
destructive: false
|
|
4741
4694
|
},
|
|
4695
|
+
{
|
|
4696
|
+
command: "workflow list-stats",
|
|
4697
|
+
tool: "workflow_stats_list",
|
|
4698
|
+
title: "List workflows with stats",
|
|
4699
|
+
description: "List workflows with execution stats on each row, like the platform's workflows table: execution and version counts, last run time, average run time and the last 5 executions. Takes the same filters as `workflow_list`: `searchName`, `tagIds` with `tagMatch`, `withoutTagGroupId`. Sort by `sortField`, including `execution_count` and `last_execution_start_time`. Page with `page` and `pageSize`.",
|
|
4700
|
+
method: "GET",
|
|
4701
|
+
path: "/agents/v2/workflows/stats",
|
|
4702
|
+
args: [],
|
|
4703
|
+
query: [
|
|
4704
|
+
{
|
|
4705
|
+
name: "pageSize",
|
|
4706
|
+
flag: "page-size",
|
|
4707
|
+
type: "integer",
|
|
4708
|
+
required: false
|
|
4709
|
+
},
|
|
4710
|
+
{
|
|
4711
|
+
name: "page",
|
|
4712
|
+
flag: "page",
|
|
4713
|
+
type: "integer",
|
|
4714
|
+
required: false
|
|
4715
|
+
},
|
|
4716
|
+
{
|
|
4717
|
+
name: "searchName",
|
|
4718
|
+
flag: "search-name",
|
|
4719
|
+
type: "string",
|
|
4720
|
+
required: false,
|
|
4721
|
+
description: "Return results whose name contains this text, case-insensitive."
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
name: "agentId",
|
|
4725
|
+
flag: "agent-id",
|
|
4726
|
+
type: "string[]",
|
|
4727
|
+
required: false
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
name: "sortField",
|
|
4731
|
+
flag: "sort-field",
|
|
4732
|
+
type: "string",
|
|
4733
|
+
required: false,
|
|
4734
|
+
enum: [
|
|
4735
|
+
"name",
|
|
4736
|
+
"created_at",
|
|
4737
|
+
"latest_version_created_at",
|
|
4738
|
+
"last_execution_start_time",
|
|
4739
|
+
"execution_count",
|
|
4740
|
+
"version_count"
|
|
4741
|
+
]
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
name: "sortDirection",
|
|
4745
|
+
flag: "sort-direction",
|
|
4746
|
+
type: "string",
|
|
4747
|
+
required: false,
|
|
4748
|
+
enum: ["asc", "desc"]
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
name: "tagIds",
|
|
4752
|
+
flag: "tag-ids",
|
|
4753
|
+
type: "string[]",
|
|
4754
|
+
required: false,
|
|
4755
|
+
description: "Restrict the results to workflows carrying these tags"
|
|
4756
|
+
},
|
|
4757
|
+
{
|
|
4758
|
+
name: "tagMatch",
|
|
4759
|
+
flag: "tag-match",
|
|
4760
|
+
type: "string",
|
|
4761
|
+
required: false,
|
|
4762
|
+
description: "How tagIds combine: any (default) or all",
|
|
4763
|
+
enum: ["any", "all"]
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
name: "withoutTagGroupId",
|
|
4767
|
+
flag: "without-tag-group-id",
|
|
4768
|
+
type: "string",
|
|
4769
|
+
required: false,
|
|
4770
|
+
description: "Restrict the results to workflows with no tag in this group. Backs the 'No <group>' bucket."
|
|
4771
|
+
}
|
|
4772
|
+
],
|
|
4773
|
+
binary: false,
|
|
4774
|
+
readOnly: true,
|
|
4775
|
+
destructive: false
|
|
4776
|
+
},
|
|
4742
4777
|
{
|
|
4743
4778
|
command: "workflow pull",
|
|
4744
4779
|
tool: "workflow_files_list",
|
|
@@ -6816,7 +6851,7 @@ var ApiError = class extends Error {
|
|
|
6816
6851
|
status;
|
|
6817
6852
|
body;
|
|
6818
6853
|
};
|
|
6819
|
-
var VERSION = "1.9.
|
|
6854
|
+
var VERSION = "1.9.107";
|
|
6820
6855
|
function problem(status, body, fallback) {
|
|
6821
6856
|
if (body && typeof body === "object") {
|
|
6822
6857
|
const record2 = body;
|
|
@@ -7969,7 +8004,11 @@ function wantedEntries(options, tree, skipped) {
|
|
|
7969
8004
|
}
|
|
7970
8005
|
async function inBatches(items, each) {
|
|
7971
8006
|
for (let i = 0; i < items.length; i += CONCURRENCY) {
|
|
7972
|
-
|
|
8007
|
+
const results = await Promise.allSettled(
|
|
8008
|
+
items.slice(i, i + CONCURRENCY).map(each)
|
|
8009
|
+
);
|
|
8010
|
+
const failed = results.find((r) => r.status === "rejected");
|
|
8011
|
+
if (failed) throw failed.reason;
|
|
7973
8012
|
}
|
|
7974
8013
|
}
|
|
7975
8014
|
async function writeEntries(sync, options, tree, dir) {
|
package/dist/core.js
CHANGED
|
@@ -2000,53 +2000,6 @@ var COMMANDS = [
|
|
|
2000
2000
|
readOnly: true,
|
|
2001
2001
|
destructive: false
|
|
2002
2002
|
},
|
|
2003
|
-
{
|
|
2004
|
-
command: "insight update",
|
|
2005
|
-
tool: "insight_update",
|
|
2006
|
-
title: "Update insight",
|
|
2007
|
-
description: "Change an insight's name, content or status. Omitted fields keep their value. The status must be valid for the insight's type: a recommendation is open, actioned or dismissed; an overview is unread or read.",
|
|
2008
|
-
method: "PATCH",
|
|
2009
|
-
path: "/astro/v2/insights/{insightId}",
|
|
2010
|
-
args: [
|
|
2011
|
-
{
|
|
2012
|
-
name: "insightId",
|
|
2013
|
-
flag: "insight-id",
|
|
2014
|
-
type: "string",
|
|
2015
|
-
required: true
|
|
2016
|
-
}
|
|
2017
|
-
],
|
|
2018
|
-
query: [],
|
|
2019
|
-
binary: false,
|
|
2020
|
-
readOnly: false,
|
|
2021
|
-
destructive: false,
|
|
2022
|
-
body: {
|
|
2023
|
-
required: true,
|
|
2024
|
-
contentType: "application/json",
|
|
2025
|
-
fields: [
|
|
2026
|
-
{
|
|
2027
|
-
name: "name",
|
|
2028
|
-
flag: "name",
|
|
2029
|
-
type: "string",
|
|
2030
|
-
required: false
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
name: "content",
|
|
2034
|
-
flag: "content",
|
|
2035
|
-
type: "string",
|
|
2036
|
-
required: false
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
name: "status",
|
|
2040
|
-
flag: "status",
|
|
2041
|
-
type: "string",
|
|
2042
|
-
required: false,
|
|
2043
|
-
description: "New status. Must be one of the insight type's statuses."
|
|
2044
|
-
}
|
|
2045
|
-
],
|
|
2046
|
-
files: [],
|
|
2047
|
-
credentialOrganization: false
|
|
2048
|
-
}
|
|
2049
|
-
},
|
|
2050
2003
|
{
|
|
2051
2004
|
command: "model list",
|
|
2052
2005
|
tool: "models_list",
|
|
@@ -4760,6 +4713,88 @@ var COMMANDS = [
|
|
|
4760
4713
|
readOnly: true,
|
|
4761
4714
|
destructive: false
|
|
4762
4715
|
},
|
|
4716
|
+
{
|
|
4717
|
+
command: "workflow list-stats",
|
|
4718
|
+
tool: "workflow_stats_list",
|
|
4719
|
+
title: "List workflows with stats",
|
|
4720
|
+
description: "List workflows with execution stats on each row, like the platform's workflows table: execution and version counts, last run time, average run time and the last 5 executions. Takes the same filters as `workflow_list`: `searchName`, `tagIds` with `tagMatch`, `withoutTagGroupId`. Sort by `sortField`, including `execution_count` and `last_execution_start_time`. Page with `page` and `pageSize`.",
|
|
4721
|
+
method: "GET",
|
|
4722
|
+
path: "/agents/v2/workflows/stats",
|
|
4723
|
+
args: [],
|
|
4724
|
+
query: [
|
|
4725
|
+
{
|
|
4726
|
+
name: "pageSize",
|
|
4727
|
+
flag: "page-size",
|
|
4728
|
+
type: "integer",
|
|
4729
|
+
required: false
|
|
4730
|
+
},
|
|
4731
|
+
{
|
|
4732
|
+
name: "page",
|
|
4733
|
+
flag: "page",
|
|
4734
|
+
type: "integer",
|
|
4735
|
+
required: false
|
|
4736
|
+
},
|
|
4737
|
+
{
|
|
4738
|
+
name: "searchName",
|
|
4739
|
+
flag: "search-name",
|
|
4740
|
+
type: "string",
|
|
4741
|
+
required: false,
|
|
4742
|
+
description: "Return results whose name contains this text, case-insensitive."
|
|
4743
|
+
},
|
|
4744
|
+
{
|
|
4745
|
+
name: "agentId",
|
|
4746
|
+
flag: "agent-id",
|
|
4747
|
+
type: "string[]",
|
|
4748
|
+
required: false
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
name: "sortField",
|
|
4752
|
+
flag: "sort-field",
|
|
4753
|
+
type: "string",
|
|
4754
|
+
required: false,
|
|
4755
|
+
enum: [
|
|
4756
|
+
"name",
|
|
4757
|
+
"created_at",
|
|
4758
|
+
"latest_version_created_at",
|
|
4759
|
+
"last_execution_start_time",
|
|
4760
|
+
"execution_count",
|
|
4761
|
+
"version_count"
|
|
4762
|
+
]
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
name: "sortDirection",
|
|
4766
|
+
flag: "sort-direction",
|
|
4767
|
+
type: "string",
|
|
4768
|
+
required: false,
|
|
4769
|
+
enum: ["asc", "desc"]
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
name: "tagIds",
|
|
4773
|
+
flag: "tag-ids",
|
|
4774
|
+
type: "string[]",
|
|
4775
|
+
required: false,
|
|
4776
|
+
description: "Restrict the results to workflows carrying these tags"
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
name: "tagMatch",
|
|
4780
|
+
flag: "tag-match",
|
|
4781
|
+
type: "string",
|
|
4782
|
+
required: false,
|
|
4783
|
+
description: "How tagIds combine: any (default) or all",
|
|
4784
|
+
enum: ["any", "all"]
|
|
4785
|
+
},
|
|
4786
|
+
{
|
|
4787
|
+
name: "withoutTagGroupId",
|
|
4788
|
+
flag: "without-tag-group-id",
|
|
4789
|
+
type: "string",
|
|
4790
|
+
required: false,
|
|
4791
|
+
description: "Restrict the results to workflows with no tag in this group. Backs the 'No <group>' bucket."
|
|
4792
|
+
}
|
|
4793
|
+
],
|
|
4794
|
+
binary: false,
|
|
4795
|
+
readOnly: true,
|
|
4796
|
+
destructive: false
|
|
4797
|
+
},
|
|
4763
4798
|
{
|
|
4764
4799
|
command: "workflow pull",
|
|
4765
4800
|
tool: "workflow_files_list",
|
|
@@ -6967,7 +7002,11 @@ function wantedEntries(options, tree, skipped) {
|
|
|
6967
7002
|
}
|
|
6968
7003
|
async function inBatches(items, each) {
|
|
6969
7004
|
for (let i = 0; i < items.length; i += CONCURRENCY) {
|
|
6970
|
-
|
|
7005
|
+
const results = await Promise.allSettled(
|
|
7006
|
+
items.slice(i, i + CONCURRENCY).map(each)
|
|
7007
|
+
);
|
|
7008
|
+
const failed = results.find((r) => r.status === "rejected");
|
|
7009
|
+
if (failed) throw failed.reason;
|
|
6971
7010
|
}
|
|
6972
7011
|
}
|
|
6973
7012
|
async function writeEntries(sync, options, tree, dir) {
|