@asteroidai/cli 1.9.123 → 1.9.139

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 CHANGED
@@ -1104,7 +1104,7 @@ var COMMANDS = [
1104
1104
  command: "environment start",
1105
1105
  tool: "environment_start",
1106
1106
  title: "Start live environment",
1107
- description: 'Start a live browser or OS environment. Without `source`, you get a browser. Set `source` to `{kind: "workflow"}` to use a workflow\'s environment (needs `workflowId`), or to `{kind: "spec"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile\'s secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright\'s `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.',
1107
+ description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (needs `workflowId`), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1108
1108
  method: "POST",
1109
1109
  path: "/agents/v2/environments",
1110
1110
  args: [],
@@ -1128,7 +1128,7 @@ var COMMANDS = [
1128
1128
  flag: "source",
1129
1129
  type: "json",
1130
1130
  required: false,
1131
- description: "Where the environment spec comes from. Omit for the server default (a browser env at the computer-use resolution). The workflow arm needs a workflow to resolve against, so it requires `workflowId`."
1131
+ description: "Where the environment spec comes from. Omit for the server default: a browser env at the computer-use resolution, or the bound workflow's environment when an Astro chat starts it. The workflow arm needs a workflow to resolve against, so it requires `workflowId`."
1132
1132
  },
1133
1133
  {
1134
1134
  name: "profileId",
@@ -7434,7 +7434,7 @@ var ApiError = class extends Error {
7434
7434
  status;
7435
7435
  body;
7436
7436
  };
7437
- var VERSION = "1.9.123";
7437
+ var VERSION = "1.9.139";
7438
7438
  function problem(status, body, fallback) {
7439
7439
  if (body && typeof body === "object") {
7440
7440
  const record2 = body;
@@ -9008,12 +9008,12 @@ function formatIssues(issues) {
9008
9008
  const warnings = issues.length - errors;
9009
9009
  const count = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
9010
9010
  const summary2 = errors === 0 ? `Validation: ${count(warnings, "warning")}, nothing blocks a publish.` : `Validation: ${count(errors, "error")}${warnings > 0 ? `, ${count(warnings, "warning")}` : ""}. Fix the errors before you publish.`;
9011
- return [
9012
- summary2,
9013
- ...issues.map(
9014
- (issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
9015
- )
9016
- ];
9011
+ return [summary2, ...formatIssueLines(issues)];
9012
+ }
9013
+ function formatIssueLines(issues) {
9014
+ return issues.map(
9015
+ (issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
9016
+ );
9017
9017
  }
9018
9018
 
9019
9019
  // src/sync/run.ts
package/dist/core.js CHANGED
@@ -1125,7 +1125,7 @@ var COMMANDS = [
1125
1125
  command: "environment start",
1126
1126
  tool: "environment_start",
1127
1127
  title: "Start live environment",
1128
- description: 'Start a live browser or OS environment. Without `source`, you get a browser. Set `source` to `{kind: "workflow"}` to use a workflow\'s environment (needs `workflowId`), or to `{kind: "spec"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile\'s secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright\'s `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.',
1128
+ description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (needs `workflowId`), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1129
1129
  method: "POST",
1130
1130
  path: "/agents/v2/environments",
1131
1131
  args: [],
@@ -1149,7 +1149,7 @@ var COMMANDS = [
1149
1149
  flag: "source",
1150
1150
  type: "json",
1151
1151
  required: false,
1152
- description: "Where the environment spec comes from. Omit for the server default (a browser env at the computer-use resolution). The workflow arm needs a workflow to resolve against, so it requires `workflowId`."
1152
+ description: "Where the environment spec comes from. Omit for the server default: a browser env at the computer-use resolution, or the bound workflow's environment when an Astro chat starts it. The workflow arm needs a workflow to resolve against, so it requires `workflowId`."
1153
1153
  },
1154
1154
  {
1155
1155
  name: "profileId",
@@ -8006,12 +8006,12 @@ function formatIssues(issues) {
8006
8006
  const warnings = issues.length - errors;
8007
8007
  const count = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
8008
8008
  const summary2 = errors === 0 ? `Validation: ${count(warnings, "warning")}, nothing blocks a publish.` : `Validation: ${count(errors, "error")}${warnings > 0 ? `, ${count(warnings, "warning")}` : ""}. Fix the errors before you publish.`;
8009
- return [
8010
- summary2,
8011
- ...issues.map(
8012
- (issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
8013
- )
8014
- ];
8009
+ return [summary2, ...formatIssueLines(issues)];
8010
+ }
8011
+ function formatIssueLines(issues) {
8012
+ return issues.map(
8013
+ (issue) => ` ${issue.severity === "error" ? "!" : "?"} ${issue.path.join("/") || "(workflow)"}: ${issue.message}`
8014
+ );
8015
8015
  }
8016
8016
 
8017
8017
  // src/sync/run.ts
@@ -8160,6 +8160,8 @@ export {
8160
8160
  formatExecutionPull,
8161
8161
  formatExecutionWait,
8162
8162
  formatInsightPull,
8163
+ formatIssueLines,
8164
+ formatIssues,
8163
8165
  formatWorkflowPull,
8164
8166
  formatWorkflowPush,
8165
8167
  headFilesRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.123",
3
+ "version": "1.9.139",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",