@asteroidai/cli 1.9.446 → 1.9.449
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 +14 -19
- package/dist/core.js +13 -18
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -2754,13 +2754,6 @@ var COMMANDS = [
|
|
|
2754
2754
|
type: "string",
|
|
2755
2755
|
required: true
|
|
2756
2756
|
},
|
|
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
2757
|
{
|
|
2765
2758
|
name: "secretIds",
|
|
2766
2759
|
flag: "secret-ids",
|
|
@@ -2984,13 +2977,6 @@ var COMMANDS = [
|
|
|
2984
2977
|
type: "string",
|
|
2985
2978
|
required: false
|
|
2986
2979
|
},
|
|
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
2980
|
{
|
|
2995
2981
|
name: "secretIds",
|
|
2996
2982
|
flag: "secret-ids",
|
|
@@ -8119,7 +8105,7 @@ var ApiError = class extends Error {
|
|
|
8119
8105
|
status;
|
|
8120
8106
|
body;
|
|
8121
8107
|
};
|
|
8122
|
-
var VERSION = "1.9.
|
|
8108
|
+
var VERSION = "1.9.449";
|
|
8123
8109
|
function problem(status, body, fallback) {
|
|
8124
8110
|
if (body && typeof body === "object") {
|
|
8125
8111
|
const record2 = body;
|
|
@@ -9435,10 +9421,19 @@ function formatActivitiesMarkdown(activities, status, createdAt) {
|
|
|
9435
9421
|
// src/sync/execution-pull.ts
|
|
9436
9422
|
var DIRECTORIES = ["workspace", "downloads", "shared"];
|
|
9437
9423
|
function relativeFilePath(file) {
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9424
|
+
return `${file.directory}/${pathInDirectory(file)}`.replace(
|
|
9425
|
+
/^workspace\/\.execution-context\//,
|
|
9426
|
+
""
|
|
9427
|
+
);
|
|
9428
|
+
}
|
|
9429
|
+
function pathInDirectory({
|
|
9430
|
+
filePath,
|
|
9431
|
+
directory
|
|
9432
|
+
}) {
|
|
9433
|
+
if (!filePath.startsWith("/")) return filePath;
|
|
9434
|
+
const at = filePath.indexOf(`/${directory}/`);
|
|
9435
|
+
if (at !== -1) return filePath.slice(at + directory.length + 2);
|
|
9436
|
+
return filePath.split("/").pop() ?? "unknown";
|
|
9442
9437
|
}
|
|
9443
9438
|
function executionDir(options, execution) {
|
|
9444
9439
|
const chosen = options.dir?.(execution);
|
package/dist/core.js
CHANGED
|
@@ -2775,13 +2775,6 @@ var COMMANDS = [
|
|
|
2775
2775
|
type: "string",
|
|
2776
2776
|
required: true
|
|
2777
2777
|
},
|
|
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
2778
|
{
|
|
2786
2779
|
name: "secretIds",
|
|
2787
2780
|
flag: "secret-ids",
|
|
@@ -3005,13 +2998,6 @@ var COMMANDS = [
|
|
|
3005
2998
|
type: "string",
|
|
3006
2999
|
required: false
|
|
3007
3000
|
},
|
|
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
3001
|
{
|
|
3016
3002
|
name: "secretIds",
|
|
3017
3003
|
flag: "secret-ids",
|
|
@@ -8020,10 +8006,19 @@ function matchesGlob(path, pattern) {
|
|
|
8020
8006
|
// src/sync/execution-pull.ts
|
|
8021
8007
|
var DIRECTORIES = ["workspace", "downloads", "shared"];
|
|
8022
8008
|
function relativeFilePath(file) {
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8009
|
+
return `${file.directory}/${pathInDirectory(file)}`.replace(
|
|
8010
|
+
/^workspace\/\.execution-context\//,
|
|
8011
|
+
""
|
|
8012
|
+
);
|
|
8013
|
+
}
|
|
8014
|
+
function pathInDirectory({
|
|
8015
|
+
filePath,
|
|
8016
|
+
directory
|
|
8017
|
+
}) {
|
|
8018
|
+
if (!filePath.startsWith("/")) return filePath;
|
|
8019
|
+
const at = filePath.indexOf(`/${directory}/`);
|
|
8020
|
+
if (at !== -1) return filePath.slice(at + directory.length + 2);
|
|
8021
|
+
return filePath.split("/").pop() ?? "unknown";
|
|
8027
8022
|
}
|
|
8028
8023
|
function executionDir(options, execution) {
|
|
8029
8024
|
const chosen = options.dir?.(execution);
|