@asteroidai/cli 1.9.440 → 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 +18 -23
- package/dist/core.js +17 -22
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -2423,7 +2423,7 @@ var COMMANDS = [
|
|
|
2423
2423
|
command: "memory create",
|
|
2424
2424
|
tool: "memory_create",
|
|
2425
2425
|
title: "Create memory",
|
|
2426
|
-
description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name, and
|
|
2426
|
+
description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name when the memory is about a portal, and add `tags`. Set `workflowId` only when the memory is about how that one workflow works: leave it out for portal facts and anything another workflow could use. Run `memory_list` first and update a memory that already covers it instead of adding another. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
|
|
2427
2427
|
method: "POST",
|
|
2428
2428
|
path: "/astro/v2/memory",
|
|
2429
2429
|
args: [],
|
|
@@ -2468,7 +2468,7 @@ var COMMANDS = [
|
|
|
2468
2468
|
flag: "workflow-id",
|
|
2469
2469
|
type: "string",
|
|
2470
2470
|
required: false,
|
|
2471
|
-
description: "The workflow the memory is about."
|
|
2471
|
+
description: "The workflow the memory is about, set only when it is about how that one workflow works. Portal facts, and anything another workflow could use, have none."
|
|
2472
2472
|
},
|
|
2473
2473
|
{
|
|
2474
2474
|
name: "tags",
|
|
@@ -2526,7 +2526,7 @@ var COMMANDS = [
|
|
|
2526
2526
|
command: "memory list",
|
|
2527
2527
|
tool: "memory_list",
|
|
2528
2528
|
title: "List memory",
|
|
2529
|
-
description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. `memory_get` returns a memory's content.",
|
|
2529
|
+
description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. A `workflowId` filter leaves out portal facts, which have no workflow. `memory_get` returns a memory's content.",
|
|
2530
2530
|
method: "GET",
|
|
2531
2531
|
path: "/astro/v2/memory",
|
|
2532
2532
|
args: [],
|
|
@@ -2543,7 +2543,7 @@ var COMMANDS = [
|
|
|
2543
2543
|
flag: "workflow-id",
|
|
2544
2544
|
type: "string",
|
|
2545
2545
|
required: false,
|
|
2546
|
-
description: "Only memories
|
|
2546
|
+
description: "Only memories linked to this workflow. Portal facts have no workflow, so this filter leaves them out."
|
|
2547
2547
|
},
|
|
2548
2548
|
{
|
|
2549
2549
|
name: "tag",
|
|
@@ -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
|
@@ -2444,7 +2444,7 @@ var COMMANDS = [
|
|
|
2444
2444
|
command: "memory create",
|
|
2445
2445
|
tool: "memory_create",
|
|
2446
2446
|
title: "Create memory",
|
|
2447
|
-
description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name, and
|
|
2447
|
+
description: "Save something the next agent in this organization needs to know: how a portal behaves, why a workflow is built the way it is, a customer's or facility's rules. Give a one-line `description` and plain-text `content`. Link the `portalId` (from `skills_list`) or `portal` name when the memory is about a portal, and add `tags`. Set `workflowId` only when the memory is about how that one workflow works: leave it out for portal facts and anything another workflow could use. Run `memory_list` first and update a memory that already covers it instead of adding another. Never store patient names, member IDs, dates of birth or anything else about one patient or case: keep only what helps the next agent build or fix a workflow.",
|
|
2448
2448
|
method: "POST",
|
|
2449
2449
|
path: "/astro/v2/memory",
|
|
2450
2450
|
args: [],
|
|
@@ -2489,7 +2489,7 @@ var COMMANDS = [
|
|
|
2489
2489
|
flag: "workflow-id",
|
|
2490
2490
|
type: "string",
|
|
2491
2491
|
required: false,
|
|
2492
|
-
description: "The workflow the memory is about."
|
|
2492
|
+
description: "The workflow the memory is about, set only when it is about how that one workflow works. Portal facts, and anything another workflow could use, have none."
|
|
2493
2493
|
},
|
|
2494
2494
|
{
|
|
2495
2495
|
name: "tags",
|
|
@@ -2547,7 +2547,7 @@ var COMMANDS = [
|
|
|
2547
2547
|
command: "memory list",
|
|
2548
2548
|
tool: "memory_list",
|
|
2549
2549
|
title: "List memory",
|
|
2550
|
-
description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. `memory_get` returns a memory's content.",
|
|
2550
|
+
description: "List the organization's memory: what its agents learned while building, one line per memory with its `description`, linked `portal`, `portalId`, `workflowId` and `tags`, newest first. Call it once at the start of a conversation, before other work, and pass `nextCursor` as `cursor` while one comes back. Filter by `workflowId`, `portalId` or `tag`, or search with `query`. A `workflowId` filter leaves out portal facts, which have no workflow. `memory_get` returns a memory's content.",
|
|
2551
2551
|
method: "GET",
|
|
2552
2552
|
path: "/astro/v2/memory",
|
|
2553
2553
|
args: [],
|
|
@@ -2564,7 +2564,7 @@ var COMMANDS = [
|
|
|
2564
2564
|
flag: "workflow-id",
|
|
2565
2565
|
type: "string",
|
|
2566
2566
|
required: false,
|
|
2567
|
-
description: "Only memories
|
|
2567
|
+
description: "Only memories linked to this workflow. Portal facts have no workflow, so this filter leaves them out."
|
|
2568
2568
|
},
|
|
2569
2569
|
{
|
|
2570
2570
|
name: "tag",
|
|
@@ -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);
|