@asteroidai/cli 1.9.446 → 1.9.450
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 +17 -21
- package/dist/core.js +16 -20
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -2447,7 +2447,7 @@ var COMMANDS = [
|
|
|
2447
2447
|
flag: "content",
|
|
2448
2448
|
type: "string",
|
|
2449
2449
|
required: true,
|
|
2450
|
-
description: "Plain text, 1 to
|
|
2450
|
+
description: "Plain text, 1 to 4000 characters. One fact per memory. Leave out patient data and anything about one case. Keep what helps the next agent build or fix a workflow."
|
|
2451
2451
|
},
|
|
2452
2452
|
{
|
|
2453
2453
|
name: "portal",
|
|
@@ -2611,7 +2611,8 @@ var COMMANDS = [
|
|
|
2611
2611
|
name: "content",
|
|
2612
2612
|
flag: "content",
|
|
2613
2613
|
type: "string",
|
|
2614
|
-
required: false
|
|
2614
|
+
required: false,
|
|
2615
|
+
description: "Replaces the whole content. Plain text, 1 to 4000 characters. If over the character limit, consider creating separate memories per fact you're storing."
|
|
2615
2616
|
},
|
|
2616
2617
|
{
|
|
2617
2618
|
name: "portal",
|
|
@@ -2754,13 +2755,6 @@ var COMMANDS = [
|
|
|
2754
2755
|
type: "string",
|
|
2755
2756
|
required: true
|
|
2756
2757
|
},
|
|
2757
|
-
{
|
|
2758
|
-
name: "stickyIP",
|
|
2759
|
-
flag: "sticky-ip",
|
|
2760
|
-
type: "boolean",
|
|
2761
|
-
required: false,
|
|
2762
|
-
description: "Give browser runs on this profile one dedicated IP. Applies when the environment uses no proxy or the default managed proxy. Any other proxy, or a gateway, turns it off."
|
|
2763
|
-
},
|
|
2764
2758
|
{
|
|
2765
2759
|
name: "secretIds",
|
|
2766
2760
|
flag: "secret-ids",
|
|
@@ -2984,13 +2978,6 @@ var COMMANDS = [
|
|
|
2984
2978
|
type: "string",
|
|
2985
2979
|
required: false
|
|
2986
2980
|
},
|
|
2987
|
-
{
|
|
2988
|
-
name: "stickyIP",
|
|
2989
|
-
flag: "sticky-ip",
|
|
2990
|
-
type: "boolean",
|
|
2991
|
-
required: false,
|
|
2992
|
-
description: "Turn the dedicated IP on or off. A change clears the profile's saved browser state, and is refused while a run uses the profile."
|
|
2993
|
-
},
|
|
2994
2981
|
{
|
|
2995
2982
|
name: "secretIds",
|
|
2996
2983
|
flag: "secret-ids",
|
|
@@ -8119,7 +8106,7 @@ var ApiError = class extends Error {
|
|
|
8119
8106
|
status;
|
|
8120
8107
|
body;
|
|
8121
8108
|
};
|
|
8122
|
-
var VERSION = "1.9.
|
|
8109
|
+
var VERSION = "1.9.450";
|
|
8123
8110
|
function problem(status, body, fallback) {
|
|
8124
8111
|
if (body && typeof body === "object") {
|
|
8125
8112
|
const record2 = body;
|
|
@@ -9435,10 +9422,19 @@ function formatActivitiesMarkdown(activities, status, createdAt) {
|
|
|
9435
9422
|
// src/sync/execution-pull.ts
|
|
9436
9423
|
var DIRECTORIES = ["workspace", "downloads", "shared"];
|
|
9437
9424
|
function relativeFilePath(file) {
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9425
|
+
return `${file.directory}/${pathInDirectory(file)}`.replace(
|
|
9426
|
+
/^workspace\/\.execution-context\//,
|
|
9427
|
+
""
|
|
9428
|
+
);
|
|
9429
|
+
}
|
|
9430
|
+
function pathInDirectory({
|
|
9431
|
+
filePath,
|
|
9432
|
+
directory
|
|
9433
|
+
}) {
|
|
9434
|
+
if (!filePath.startsWith("/")) return filePath;
|
|
9435
|
+
const at = filePath.indexOf(`/${directory}/`);
|
|
9436
|
+
if (at !== -1) return filePath.slice(at + directory.length + 2);
|
|
9437
|
+
return filePath.split("/").pop() ?? "unknown";
|
|
9442
9438
|
}
|
|
9443
9439
|
function executionDir(options, execution) {
|
|
9444
9440
|
const chosen = options.dir?.(execution);
|
package/dist/core.js
CHANGED
|
@@ -2468,7 +2468,7 @@ var COMMANDS = [
|
|
|
2468
2468
|
flag: "content",
|
|
2469
2469
|
type: "string",
|
|
2470
2470
|
required: true,
|
|
2471
|
-
description: "Plain text, 1 to
|
|
2471
|
+
description: "Plain text, 1 to 4000 characters. One fact per memory. Leave out patient data and anything about one case. Keep what helps the next agent build or fix a workflow."
|
|
2472
2472
|
},
|
|
2473
2473
|
{
|
|
2474
2474
|
name: "portal",
|
|
@@ -2632,7 +2632,8 @@ var COMMANDS = [
|
|
|
2632
2632
|
name: "content",
|
|
2633
2633
|
flag: "content",
|
|
2634
2634
|
type: "string",
|
|
2635
|
-
required: false
|
|
2635
|
+
required: false,
|
|
2636
|
+
description: "Replaces the whole content. Plain text, 1 to 4000 characters. If over the character limit, consider creating separate memories per fact you're storing."
|
|
2636
2637
|
},
|
|
2637
2638
|
{
|
|
2638
2639
|
name: "portal",
|
|
@@ -2775,13 +2776,6 @@ var COMMANDS = [
|
|
|
2775
2776
|
type: "string",
|
|
2776
2777
|
required: true
|
|
2777
2778
|
},
|
|
2778
|
-
{
|
|
2779
|
-
name: "stickyIP",
|
|
2780
|
-
flag: "sticky-ip",
|
|
2781
|
-
type: "boolean",
|
|
2782
|
-
required: false,
|
|
2783
|
-
description: "Give browser runs on this profile one dedicated IP. Applies when the environment uses no proxy or the default managed proxy. Any other proxy, or a gateway, turns it off."
|
|
2784
|
-
},
|
|
2785
2779
|
{
|
|
2786
2780
|
name: "secretIds",
|
|
2787
2781
|
flag: "secret-ids",
|
|
@@ -3005,13 +2999,6 @@ var COMMANDS = [
|
|
|
3005
2999
|
type: "string",
|
|
3006
3000
|
required: false
|
|
3007
3001
|
},
|
|
3008
|
-
{
|
|
3009
|
-
name: "stickyIP",
|
|
3010
|
-
flag: "sticky-ip",
|
|
3011
|
-
type: "boolean",
|
|
3012
|
-
required: false,
|
|
3013
|
-
description: "Turn the dedicated IP on or off. A change clears the profile's saved browser state, and is refused while a run uses the profile."
|
|
3014
|
-
},
|
|
3015
3002
|
{
|
|
3016
3003
|
name: "secretIds",
|
|
3017
3004
|
flag: "secret-ids",
|
|
@@ -8020,10 +8007,19 @@ function matchesGlob(path, pattern) {
|
|
|
8020
8007
|
// src/sync/execution-pull.ts
|
|
8021
8008
|
var DIRECTORIES = ["workspace", "downloads", "shared"];
|
|
8022
8009
|
function relativeFilePath(file) {
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8010
|
+
return `${file.directory}/${pathInDirectory(file)}`.replace(
|
|
8011
|
+
/^workspace\/\.execution-context\//,
|
|
8012
|
+
""
|
|
8013
|
+
);
|
|
8014
|
+
}
|
|
8015
|
+
function pathInDirectory({
|
|
8016
|
+
filePath,
|
|
8017
|
+
directory
|
|
8018
|
+
}) {
|
|
8019
|
+
if (!filePath.startsWith("/")) return filePath;
|
|
8020
|
+
const at = filePath.indexOf(`/${directory}/`);
|
|
8021
|
+
if (at !== -1) return filePath.slice(at + directory.length + 2);
|
|
8022
|
+
return filePath.split("/").pop() ?? "unknown";
|
|
8027
8023
|
}
|
|
8028
8024
|
function executionDir(options, execution) {
|
|
8029
8025
|
const chosen = options.dir?.(execution);
|