agental 0.26.0 → 0.27.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.
- package/dist/cli.js +5 -8
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7411,7 +7411,7 @@ import { parseArgs } from "node:util";
|
|
|
7411
7411
|
|
|
7412
7412
|
// ../src/cli-build.ts
|
|
7413
7413
|
var PUBLISHED = true;
|
|
7414
|
-
var CLI_VERSION = true ? "0.
|
|
7414
|
+
var CLI_VERSION = true ? "0.27.0" : "dev";
|
|
7415
7415
|
var DEFAULT_API_URL = true ? "https://agental.io" : "http://127.0.0.1:8741";
|
|
7416
7416
|
var PACKAGE_NAME = "agental";
|
|
7417
7417
|
var USER_AGENT = `agental-cli/${CLI_VERSION}`;
|
|
@@ -9195,7 +9195,7 @@ var COMMANDS = [
|
|
|
9195
9195
|
summary: "Make a sandbox: a Linux machine of its own, started from a template.",
|
|
9196
9196
|
examples: ["agental create --name review-pr-218", "agental create --name build --size medium --template ci", "agental create --name scraper --egress residential:de --ttl 2h"],
|
|
9197
9197
|
flags: [
|
|
9198
|
-
["-n, --name <name>", "what to call it
|
|
9198
|
+
["-n, --name <name>", "what to call it; left out, it is made up as sbx-\u2026"],
|
|
9199
9199
|
["-t, --template <template>", "what it starts from (default: your default template)"],
|
|
9200
9200
|
["-s, --size <size>", "tiny, small, medium or large (default: the template's)"],
|
|
9201
9201
|
[" --region <region>", "where it runs; agental regions lists them"],
|
|
@@ -9444,7 +9444,7 @@ var COMMANDS = [
|
|
|
9444
9444
|
summary: "Your sandboxes, as agental sandbox <verb>: each is the same as the command without sandbox in front.",
|
|
9445
9445
|
usage: [
|
|
9446
9446
|
"agental sandbox list [flags]",
|
|
9447
|
-
"agental sandbox create --name <name> [flags]",
|
|
9447
|
+
"agental sandbox create [--name <name>] [flags]",
|
|
9448
9448
|
"agental sandbox start|stop|delete|recover <sandbox-id> [flags]",
|
|
9449
9449
|
"agental sandbox exec <sandbox-id> -- <command> [args...]",
|
|
9450
9450
|
"agental sandbox shell <sandbox-id>",
|
|
@@ -12838,9 +12838,6 @@ function once(given, name) {
|
|
|
12838
12838
|
return given?.[0];
|
|
12839
12839
|
}
|
|
12840
12840
|
async function create(values) {
|
|
12841
|
-
if (!values.name) {
|
|
12842
|
-
throw new Error("create needs --name: what to call the sandbox, as agental create --name review-pr-218.");
|
|
12843
|
-
}
|
|
12844
12841
|
const given = labelsGiven(values);
|
|
12845
12842
|
const burstHeaders = maxBurstFeeHeaders(values["max-burst-fee"]);
|
|
12846
12843
|
const ttlSeconds = ttlOption(values.ttl);
|
|
@@ -12866,7 +12863,7 @@ async function create(values) {
|
|
|
12866
12863
|
method: "POST",
|
|
12867
12864
|
headers: { "Idempotency-Key": idempotencyKey, ...box ? { "X-Agental-Box": box } : {}, ...burstHeaders },
|
|
12868
12865
|
body: JSON.stringify({
|
|
12869
|
-
name: values.name,
|
|
12866
|
+
...values.name ? { name: values.name } : {},
|
|
12870
12867
|
...values.size ? { size: values.size } : {},
|
|
12871
12868
|
...templateId ? { templateId } : {},
|
|
12872
12869
|
...regionsOption(values.region),
|
|
@@ -15378,7 +15375,7 @@ Setting up
|
|
|
15378
15375
|
agental completion zsh|bash|fish
|
|
15379
15376
|
|
|
15380
15377
|
Usage
|
|
15381
|
-
agental create --name <name> [--template <template>] [--size tiny|small|medium|large] [--region <region>[,<region>...]] [--ttl <time> | --ttl default] [--on-timeout delete|stop] [--idempotency-key <key>]
|
|
15378
|
+
agental create [--name <name>] [--template <template>] [--size tiny|small|medium|large] [--region <region>[,<region>...]] [--ttl <time> | --ttl default] [--on-timeout delete|stop] [--idempotency-key <key>]
|
|
15382
15379
|
${operator ? "[--box <name-or-id>] " : ""}[--allow <address>[,<address>...]] [--egress box | residential:<country>[:sticky|rotating]] [--max-burst-fee <dollars>]
|
|
15383
15380
|
[--ssh-key <public-key-or-file>]... [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]...
|
|
15384
15381
|
agental summary [--where '<words>'] [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]... [--facets <field>[,<field>...]] [--json]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agental",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.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",
|