@asteroidai/cli 1.9.106 → 1.9.108
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 +104 -49
- package/dist/core.js +103 -48
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -1471,6 +1471,26 @@ var COMMANDS = [
|
|
|
1471
1471
|
readOnly: true,
|
|
1472
1472
|
destructive: false
|
|
1473
1473
|
},
|
|
1474
|
+
{
|
|
1475
|
+
command: "execution delete",
|
|
1476
|
+
tool: "execution_delete",
|
|
1477
|
+
title: "Delete execution",
|
|
1478
|
+
description: "Delete a finished execution. It disappears from lists and reads, and the user cannot restore it. Only a terminal execution can be deleted: cancel a running one first with `execution_cancel`. Confirm with the user before calling it. This is a soft delete: Asteroid keeps the data under its retention policy, so it does not meet a data deletion or retention requirement. For that, the user must ask Asteroid for custom retention.",
|
|
1479
|
+
method: "DELETE",
|
|
1480
|
+
path: "/agents/v2/executions/{executionId}",
|
|
1481
|
+
args: [
|
|
1482
|
+
{
|
|
1483
|
+
name: "executionId",
|
|
1484
|
+
flag: "execution-id",
|
|
1485
|
+
type: "string",
|
|
1486
|
+
required: true
|
|
1487
|
+
}
|
|
1488
|
+
],
|
|
1489
|
+
query: [],
|
|
1490
|
+
binary: false,
|
|
1491
|
+
readOnly: false,
|
|
1492
|
+
destructive: true
|
|
1493
|
+
},
|
|
1474
1494
|
{
|
|
1475
1495
|
command: "execution file download",
|
|
1476
1496
|
tool: "execution_file_download",
|
|
@@ -1756,7 +1776,7 @@ var COMMANDS = [
|
|
|
1756
1776
|
command: "execution message",
|
|
1757
1777
|
tool: "execution_user_messages_add",
|
|
1758
1778
|
title: "Add execution message",
|
|
1759
|
-
description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it.",
|
|
1779
|
+
description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
|
|
1760
1780
|
method: "POST",
|
|
1761
1781
|
path: "/agents/v2/executions/{executionId}/user-messages",
|
|
1762
1782
|
args: [
|
|
@@ -1979,53 +1999,6 @@ var COMMANDS = [
|
|
|
1979
1999
|
readOnly: true,
|
|
1980
2000
|
destructive: false
|
|
1981
2001
|
},
|
|
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
2002
|
{
|
|
2030
2003
|
command: "model list",
|
|
2031
2004
|
tool: "models_list",
|
|
@@ -4739,6 +4712,88 @@ var COMMANDS = [
|
|
|
4739
4712
|
readOnly: true,
|
|
4740
4713
|
destructive: false
|
|
4741
4714
|
},
|
|
4715
|
+
{
|
|
4716
|
+
command: "workflow list-stats",
|
|
4717
|
+
tool: "workflow_stats_list",
|
|
4718
|
+
title: "List workflows with stats",
|
|
4719
|
+
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`.",
|
|
4720
|
+
method: "GET",
|
|
4721
|
+
path: "/agents/v2/workflows/stats",
|
|
4722
|
+
args: [],
|
|
4723
|
+
query: [
|
|
4724
|
+
{
|
|
4725
|
+
name: "pageSize",
|
|
4726
|
+
flag: "page-size",
|
|
4727
|
+
type: "integer",
|
|
4728
|
+
required: false
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
name: "page",
|
|
4732
|
+
flag: "page",
|
|
4733
|
+
type: "integer",
|
|
4734
|
+
required: false
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
name: "searchName",
|
|
4738
|
+
flag: "search-name",
|
|
4739
|
+
type: "string",
|
|
4740
|
+
required: false,
|
|
4741
|
+
description: "Return results whose name contains this text, case-insensitive."
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
name: "agentId",
|
|
4745
|
+
flag: "agent-id",
|
|
4746
|
+
type: "string[]",
|
|
4747
|
+
required: false
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
name: "sortField",
|
|
4751
|
+
flag: "sort-field",
|
|
4752
|
+
type: "string",
|
|
4753
|
+
required: false,
|
|
4754
|
+
enum: [
|
|
4755
|
+
"name",
|
|
4756
|
+
"created_at",
|
|
4757
|
+
"latest_version_created_at",
|
|
4758
|
+
"last_execution_start_time",
|
|
4759
|
+
"execution_count",
|
|
4760
|
+
"version_count"
|
|
4761
|
+
]
|
|
4762
|
+
},
|
|
4763
|
+
{
|
|
4764
|
+
name: "sortDirection",
|
|
4765
|
+
flag: "sort-direction",
|
|
4766
|
+
type: "string",
|
|
4767
|
+
required: false,
|
|
4768
|
+
enum: ["asc", "desc"]
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
name: "tagIds",
|
|
4772
|
+
flag: "tag-ids",
|
|
4773
|
+
type: "string[]",
|
|
4774
|
+
required: false,
|
|
4775
|
+
description: "Restrict the results to workflows carrying these tags"
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
name: "tagMatch",
|
|
4779
|
+
flag: "tag-match",
|
|
4780
|
+
type: "string",
|
|
4781
|
+
required: false,
|
|
4782
|
+
description: "How tagIds combine: any (default) or all",
|
|
4783
|
+
enum: ["any", "all"]
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
name: "withoutTagGroupId",
|
|
4787
|
+
flag: "without-tag-group-id",
|
|
4788
|
+
type: "string",
|
|
4789
|
+
required: false,
|
|
4790
|
+
description: "Restrict the results to workflows with no tag in this group. Backs the 'No <group>' bucket."
|
|
4791
|
+
}
|
|
4792
|
+
],
|
|
4793
|
+
binary: false,
|
|
4794
|
+
readOnly: true,
|
|
4795
|
+
destructive: false
|
|
4796
|
+
},
|
|
4742
4797
|
{
|
|
4743
4798
|
command: "workflow pull",
|
|
4744
4799
|
tool: "workflow_files_list",
|
|
@@ -6816,7 +6871,7 @@ var ApiError = class extends Error {
|
|
|
6816
6871
|
status;
|
|
6817
6872
|
body;
|
|
6818
6873
|
};
|
|
6819
|
-
var VERSION = "1.9.
|
|
6874
|
+
var VERSION = "1.9.108";
|
|
6820
6875
|
function problem(status, body, fallback) {
|
|
6821
6876
|
if (body && typeof body === "object") {
|
|
6822
6877
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -1492,6 +1492,26 @@ var COMMANDS = [
|
|
|
1492
1492
|
readOnly: true,
|
|
1493
1493
|
destructive: false
|
|
1494
1494
|
},
|
|
1495
|
+
{
|
|
1496
|
+
command: "execution delete",
|
|
1497
|
+
tool: "execution_delete",
|
|
1498
|
+
title: "Delete execution",
|
|
1499
|
+
description: "Delete a finished execution. It disappears from lists and reads, and the user cannot restore it. Only a terminal execution can be deleted: cancel a running one first with `execution_cancel`. Confirm with the user before calling it. This is a soft delete: Asteroid keeps the data under its retention policy, so it does not meet a data deletion or retention requirement. For that, the user must ask Asteroid for custom retention.",
|
|
1500
|
+
method: "DELETE",
|
|
1501
|
+
path: "/agents/v2/executions/{executionId}",
|
|
1502
|
+
args: [
|
|
1503
|
+
{
|
|
1504
|
+
name: "executionId",
|
|
1505
|
+
flag: "execution-id",
|
|
1506
|
+
type: "string",
|
|
1507
|
+
required: true
|
|
1508
|
+
}
|
|
1509
|
+
],
|
|
1510
|
+
query: [],
|
|
1511
|
+
binary: false,
|
|
1512
|
+
readOnly: false,
|
|
1513
|
+
destructive: true
|
|
1514
|
+
},
|
|
1495
1515
|
{
|
|
1496
1516
|
command: "execution file download",
|
|
1497
1517
|
tool: "execution_file_download",
|
|
@@ -1777,7 +1797,7 @@ var COMMANDS = [
|
|
|
1777
1797
|
command: "execution message",
|
|
1778
1798
|
tool: "execution_user_messages_add",
|
|
1779
1799
|
title: "Add execution message",
|
|
1780
|
-
description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it.",
|
|
1800
|
+
description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
|
|
1781
1801
|
method: "POST",
|
|
1782
1802
|
path: "/agents/v2/executions/{executionId}/user-messages",
|
|
1783
1803
|
args: [
|
|
@@ -2000,53 +2020,6 @@ var COMMANDS = [
|
|
|
2000
2020
|
readOnly: true,
|
|
2001
2021
|
destructive: false
|
|
2002
2022
|
},
|
|
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
2023
|
{
|
|
2051
2024
|
command: "model list",
|
|
2052
2025
|
tool: "models_list",
|
|
@@ -4760,6 +4733,88 @@ var COMMANDS = [
|
|
|
4760
4733
|
readOnly: true,
|
|
4761
4734
|
destructive: false
|
|
4762
4735
|
},
|
|
4736
|
+
{
|
|
4737
|
+
command: "workflow list-stats",
|
|
4738
|
+
tool: "workflow_stats_list",
|
|
4739
|
+
title: "List workflows with stats",
|
|
4740
|
+
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`.",
|
|
4741
|
+
method: "GET",
|
|
4742
|
+
path: "/agents/v2/workflows/stats",
|
|
4743
|
+
args: [],
|
|
4744
|
+
query: [
|
|
4745
|
+
{
|
|
4746
|
+
name: "pageSize",
|
|
4747
|
+
flag: "page-size",
|
|
4748
|
+
type: "integer",
|
|
4749
|
+
required: false
|
|
4750
|
+
},
|
|
4751
|
+
{
|
|
4752
|
+
name: "page",
|
|
4753
|
+
flag: "page",
|
|
4754
|
+
type: "integer",
|
|
4755
|
+
required: false
|
|
4756
|
+
},
|
|
4757
|
+
{
|
|
4758
|
+
name: "searchName",
|
|
4759
|
+
flag: "search-name",
|
|
4760
|
+
type: "string",
|
|
4761
|
+
required: false,
|
|
4762
|
+
description: "Return results whose name contains this text, case-insensitive."
|
|
4763
|
+
},
|
|
4764
|
+
{
|
|
4765
|
+
name: "agentId",
|
|
4766
|
+
flag: "agent-id",
|
|
4767
|
+
type: "string[]",
|
|
4768
|
+
required: false
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
name: "sortField",
|
|
4772
|
+
flag: "sort-field",
|
|
4773
|
+
type: "string",
|
|
4774
|
+
required: false,
|
|
4775
|
+
enum: [
|
|
4776
|
+
"name",
|
|
4777
|
+
"created_at",
|
|
4778
|
+
"latest_version_created_at",
|
|
4779
|
+
"last_execution_start_time",
|
|
4780
|
+
"execution_count",
|
|
4781
|
+
"version_count"
|
|
4782
|
+
]
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
name: "sortDirection",
|
|
4786
|
+
flag: "sort-direction",
|
|
4787
|
+
type: "string",
|
|
4788
|
+
required: false,
|
|
4789
|
+
enum: ["asc", "desc"]
|
|
4790
|
+
},
|
|
4791
|
+
{
|
|
4792
|
+
name: "tagIds",
|
|
4793
|
+
flag: "tag-ids",
|
|
4794
|
+
type: "string[]",
|
|
4795
|
+
required: false,
|
|
4796
|
+
description: "Restrict the results to workflows carrying these tags"
|
|
4797
|
+
},
|
|
4798
|
+
{
|
|
4799
|
+
name: "tagMatch",
|
|
4800
|
+
flag: "tag-match",
|
|
4801
|
+
type: "string",
|
|
4802
|
+
required: false,
|
|
4803
|
+
description: "How tagIds combine: any (default) or all",
|
|
4804
|
+
enum: ["any", "all"]
|
|
4805
|
+
},
|
|
4806
|
+
{
|
|
4807
|
+
name: "withoutTagGroupId",
|
|
4808
|
+
flag: "without-tag-group-id",
|
|
4809
|
+
type: "string",
|
|
4810
|
+
required: false,
|
|
4811
|
+
description: "Restrict the results to workflows with no tag in this group. Backs the 'No <group>' bucket."
|
|
4812
|
+
}
|
|
4813
|
+
],
|
|
4814
|
+
binary: false,
|
|
4815
|
+
readOnly: true,
|
|
4816
|
+
destructive: false
|
|
4817
|
+
},
|
|
4763
4818
|
{
|
|
4764
4819
|
command: "workflow pull",
|
|
4765
4820
|
tool: "workflow_files_list",
|