@asteroidai/cli 1.9.286 → 1.9.297
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 -2
- package/dist/core.js +22 -1
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -387,7 +387,7 @@ var COMMANDS = [
|
|
|
387
387
|
command: "bug report",
|
|
388
388
|
tool: "bug_report_create",
|
|
389
389
|
title: "File a bug report",
|
|
390
|
-
description: "File a bug report with Asteroid's engineering team. Use it for defects in the Asteroid platform itself. Do not use it when the problem is in a downstream portal or site the agent drives, or in the user's own workflow. Write plain text: what happened, what was expected, and the ids of any executions or workflows involved. Never include patient data, credentials or other secrets; reference ids instead. Returns a reference
|
|
390
|
+
description: "File a bug report with Asteroid's engineering team. Use it for defects in the Asteroid platform itself. Do not use it when the problem is in a downstream portal or site the agent drives, or in the user's own workflow. Write plain text: what happened, what was expected, and the ids of any executions or workflows involved. Never include patient data, credentials or other secrets; reference ids instead. Returns a reference for the user to quote.",
|
|
391
391
|
method: "POST",
|
|
392
392
|
path: "/agents/v2/support/bug-reports",
|
|
393
393
|
args: [],
|
|
@@ -7650,7 +7650,7 @@ var ApiError = class extends Error {
|
|
|
7650
7650
|
status;
|
|
7651
7651
|
body;
|
|
7652
7652
|
};
|
|
7653
|
-
var VERSION = "1.9.
|
|
7653
|
+
var VERSION = "1.9.297";
|
|
7654
7654
|
function problem(status, body, fallback) {
|
|
7655
7655
|
if (body && typeof body === "object") {
|
|
7656
7656
|
const record2 = body;
|
|
@@ -8824,8 +8824,29 @@ ${indentJson(info)}` : "";
|
|
|
8824
8824
|
return `[${label}: ${payload.actionName}]:${detail}
|
|
8825
8825
|
`;
|
|
8826
8826
|
}
|
|
8827
|
+
function statusChanged({
|
|
8828
|
+
status,
|
|
8829
|
+
completedPayload,
|
|
8830
|
+
failedPayload
|
|
8831
|
+
}) {
|
|
8832
|
+
if (failedPayload) {
|
|
8833
|
+
return `[status_changed: ${status}]:
|
|
8834
|
+
reason: ${failedPayload.reason}
|
|
8835
|
+
`;
|
|
8836
|
+
}
|
|
8837
|
+
if (completedPayload) {
|
|
8838
|
+
return `[status_changed: ${status}]:
|
|
8839
|
+
outcome: ${completedPayload.outcome}
|
|
8840
|
+
reasoning: ${completedPayload.reasoning}
|
|
8841
|
+
`;
|
|
8842
|
+
}
|
|
8843
|
+
return `[status_changed: ${status}]
|
|
8844
|
+
`;
|
|
8845
|
+
}
|
|
8827
8846
|
function line(payload) {
|
|
8828
8847
|
switch (payload.activityType) {
|
|
8848
|
+
case "status_changed":
|
|
8849
|
+
return statusChanged(payload);
|
|
8829
8850
|
case "reasoning":
|
|
8830
8851
|
return `[reasoning]:
|
|
8831
8852
|
${payload.reasoning}
|
package/dist/core.js
CHANGED
|
@@ -408,7 +408,7 @@ var COMMANDS = [
|
|
|
408
408
|
command: "bug report",
|
|
409
409
|
tool: "bug_report_create",
|
|
410
410
|
title: "File a bug report",
|
|
411
|
-
description: "File a bug report with Asteroid's engineering team. Use it for defects in the Asteroid platform itself. Do not use it when the problem is in a downstream portal or site the agent drives, or in the user's own workflow. Write plain text: what happened, what was expected, and the ids of any executions or workflows involved. Never include patient data, credentials or other secrets; reference ids instead. Returns a reference
|
|
411
|
+
description: "File a bug report with Asteroid's engineering team. Use it for defects in the Asteroid platform itself. Do not use it when the problem is in a downstream portal or site the agent drives, or in the user's own workflow. Write plain text: what happened, what was expected, and the ids of any executions or workflows involved. Never include patient data, credentials or other secrets; reference ids instead. Returns a reference for the user to quote.",
|
|
412
412
|
method: "POST",
|
|
413
413
|
path: "/agents/v2/support/bug-reports",
|
|
414
414
|
args: [],
|
|
@@ -7369,8 +7369,29 @@ ${indentJson(info)}` : "";
|
|
|
7369
7369
|
return `[${label}: ${payload.actionName}]:${detail}
|
|
7370
7370
|
`;
|
|
7371
7371
|
}
|
|
7372
|
+
function statusChanged({
|
|
7373
|
+
status,
|
|
7374
|
+
completedPayload,
|
|
7375
|
+
failedPayload
|
|
7376
|
+
}) {
|
|
7377
|
+
if (failedPayload) {
|
|
7378
|
+
return `[status_changed: ${status}]:
|
|
7379
|
+
reason: ${failedPayload.reason}
|
|
7380
|
+
`;
|
|
7381
|
+
}
|
|
7382
|
+
if (completedPayload) {
|
|
7383
|
+
return `[status_changed: ${status}]:
|
|
7384
|
+
outcome: ${completedPayload.outcome}
|
|
7385
|
+
reasoning: ${completedPayload.reasoning}
|
|
7386
|
+
`;
|
|
7387
|
+
}
|
|
7388
|
+
return `[status_changed: ${status}]
|
|
7389
|
+
`;
|
|
7390
|
+
}
|
|
7372
7391
|
function line(payload) {
|
|
7373
7392
|
switch (payload.activityType) {
|
|
7393
|
+
case "status_changed":
|
|
7394
|
+
return statusChanged(payload);
|
|
7374
7395
|
case "reasoning":
|
|
7375
7396
|
return `[reasoning]:
|
|
7376
7397
|
${payload.reasoning}
|