agental 0.4.0 → 0.5.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -13
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -46,7 +46,7 @@ import { parseArgs } from "node:util";
46
46
 
47
47
  // ../src/cli-build.ts
48
48
  var PUBLISHED = true;
49
- var CLI_VERSION = true ? "0.4.0" : "dev";
49
+ var CLI_VERSION = true ? "0.5.0" : "dev";
50
50
  var DEFAULT_API_URL = true ? "https://agental.io" : "http://127.0.0.1:8741";
51
51
  var PACKAGE_NAME = "agental";
52
52
  var USER_AGENT = `agental-cli/${CLI_VERSION}`;
@@ -2586,8 +2586,6 @@ async function main() {
2586
2586
  "from-name": { type: "string" },
2587
2587
  "reply-to": { type: "string" },
2588
2588
  box: { type: "string" },
2589
- restart: { type: "boolean", default: false },
2590
- live: { type: "boolean", default: false },
2591
2589
  screen: { type: "string" },
2592
2590
  headless: { type: "boolean", default: false },
2593
2591
  headed: { type: "boolean", default: false },
@@ -2766,14 +2764,6 @@ async function main() {
2766
2764
  case "browser":
2767
2765
  await browser(positionals[1], values.headless, values.headed, values.off, values.status);
2768
2766
  return;
2769
- case "move": {
2770
- if (PUBLISHED) {
2771
- throw new Error("move is for whoever runs agental, from its repository.");
2772
- }
2773
- const { move: move2 } = await Promise.resolve().then(() => (init_cli_operator(), cli_operator_exports));
2774
- await move2({ request, fail }, positionals[1], boxNamed(values.box), values.restart, values.live);
2775
- return;
2776
- }
2777
2767
  case "network":
2778
2768
  await network(positionals.slice(1), values);
2779
2769
  return;
@@ -3309,7 +3299,7 @@ async function lifecycle(action, id, headers = {}, sent) {
3309
3299
  `);
3310
3300
  if (action === "start" && response.status === 202) {
3311
3301
  const archived = Boolean(body) && typeof body === "object" && body["archived"] === true;
3312
- const why = archived ? "it is archived and is being brought back, which takes as long as its disk is large" : "its machine was being archived or moved to another server, and is started as soon as that has ended";
3302
+ const why = archived ? "it is archived and is being brought back, which takes as long as its disk is large" : "its machine was being archived, and is started as soon as that has ended";
3313
3303
  process.stderr.write(
3314
3304
  `Start was accepted. ${id} is restoring: ${why}. It is running when agental list says so. If list shows it stopped again, the start failed, and agental list --json has its error.
3315
3305
  `
@@ -5203,7 +5193,7 @@ ssh opens a shell in a running sandbox, or runs a command there, with the ssh th
5203
5193
  here. It turns SSH on for the sandbox, which opens a port of the server the sandbox is on, lets
5204
5194
  in a key of its own, ~/.ssh/agental_ed25519, which it makes when there is none, and connects
5205
5195
  where the API says. It accepts only the host key the API says the sandbox has. A shell whose
5206
- connection is lost, as it is when the sandbox is moved to another server, is opened again
5196
+ connection is lost, as it is when the sandbox stops and starts again, is opened again
5207
5197
  where the sandbox is by then. With --tmux it is the same shell, kept in a tmux session in the
5208
5198
  sandbox. A command is run once and not again. scp copies files the same way, with the
5209
5199
  sandbox's side written <sandbox-id>:<path>. ssh-config prints a Host block for ~/.ssh/config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "The agental command: Linux sandboxes for your agents, from the terminal. npx agental@latest signs you in and installs the agent skills.",
5
5
  "license": "MIT",
6
6
  "author": "VERTIXER LTD",