@asteroidai/cli 1.9.290 → 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 +22 -1
- package/dist/core.js +21 -0
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -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
|
@@ -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}
|