agental 0.14.0 → 0.14.1

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 +114 -11
  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.14.0" : "dev";
49
+ var CLI_VERSION = true ? "0.14.1" : "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}`;
@@ -1687,17 +1687,58 @@ var COMMANDS = [
1687
1687
  ]
1688
1688
  },
1689
1689
  { name: "summary", summary: "Count your sandboxes by status, size, template, tag or any field.", examples: ["agental summary", "agental summary --facets size,status"] },
1690
- { name: "exec", summary: "Run a command in a sandbox and print what it prints.", examples: ["agental exec sbx_2a9a47e50daec64a -- ls -la", "agental exec sbx_2a9a47e50daec64a -- npm test"] },
1690
+ {
1691
+ name: "exec",
1692
+ summary: "Run a command in a sandbox and print what it prints.",
1693
+ examples: ["agental exec sbx_2a9a47e50daec64a -- ls -la", "agental exec sbx_2a9a47e50daec64a -- npm test"],
1694
+ flags: [
1695
+ ["-- <command> [args...]", "what to run; everything after -- is the command's own"]
1696
+ ]
1697
+ },
1691
1698
  { name: "shell", summary: "Open a login shell in a sandbox, in this terminal, with no SSH key or port.", examples: ["agental shell sbx_2a9a47e50daec64a"] },
1692
- { name: "ssh", summary: "Open a shell in a sandbox, or run a command there, over SSH.", examples: ["agental ssh sbx_2a9a47e50daec64a", "agental ssh sbx_2a9a47e50daec64a --tmux"] },
1699
+ {
1700
+ name: "ssh",
1701
+ summary: "Open a shell in a sandbox, or run a command there, over SSH.",
1702
+ examples: ["agental ssh sbx_2a9a47e50daec64a", "agental ssh sbx_2a9a47e50daec64a --tmux"],
1703
+ flags: [
1704
+ ["--tmux", "keep the shell in a tmux session, to come back to after a lost connection"],
1705
+ ["[ssh options]", "anything ssh itself takes, as -L 8080:localhost:8080"]
1706
+ ]
1707
+ },
1693
1708
  { name: "scp", summary: "Copy files to or from a sandbox over SSH.", examples: ["agental scp ./build.tar.gz sbx_2a9a47e50daec64a:/tmp/"] },
1694
1709
  { name: "ssh-config", summary: "Print a Host block for ~/.ssh/config, so anything that speaks SSH reaches a sandbox by its id.", examples: ["agental ssh-config sbx_2a9a47e50daec64a >> ~/.ssh/config"] },
1695
1710
  { name: "ssh-connect", summary: "Reach a sandbox for ssh: what the Host block ssh-config prints runs. It is not typed by hand." },
1696
1711
  { name: "ssh-keys", summary: "List or remove the SSH keys a sandbox lets in." },
1697
1712
  { name: "ssh-off", summary: "Turn SSH off for a sandbox and close its port." },
1698
- { name: "start", summary: "Start a stopped sandbox, or every one --where finds.", examples: ["agental start sbx_2a9a47e50daec64a"] },
1699
- { name: "stop", summary: "Stop a sandbox, or every one --where finds. Its disk is kept.", examples: ["agental stop sbx_2a9a47e50daec64a", "agental stop sbx_2a9a47e50daec64a --keep-memory", "agental stop --where 'bench'"] },
1700
- { name: "delete", summary: "Delete a sandbox, or every one --where finds. It cannot be undone.", examples: ["agental delete sbx_2a9a47e50daec64a"] },
1713
+ {
1714
+ name: "start",
1715
+ summary: "Start a stopped sandbox, or every one --where finds.",
1716
+ examples: ["agental start sbx_2a9a47e50daec64a"],
1717
+ flags: [
1718
+ ["--where '<words>'", "every sandbox the words find, as one job"],
1719
+ ["--yes", "with --where: start them without asking"],
1720
+ ["--max-burst-fee <dollars>", "the most this start may pay in burst fees"]
1721
+ ]
1722
+ },
1723
+ {
1724
+ name: "stop",
1725
+ summary: "Stop a sandbox, or every one --where finds. Its disk is kept.",
1726
+ examples: ["agental stop sbx_2a9a47e50daec64a", "agental stop sbx_2a9a47e50daec64a --keep-memory", "agental stop --where 'bench'"],
1727
+ flags: [
1728
+ ["--keep-memory", "keep what runs in memory too, so it carries on from where it was"],
1729
+ ["--where '<words>'", "every sandbox the words find, as one job"],
1730
+ ["--yes", "with --where: stop them without asking"]
1731
+ ]
1732
+ },
1733
+ {
1734
+ name: "delete",
1735
+ summary: "Delete a sandbox, or every one --where finds. It cannot be undone.",
1736
+ examples: ["agental delete sbx_2a9a47e50daec64a"],
1737
+ flags: [
1738
+ ["--where '<words>'", "every sandbox the words find, as one job"],
1739
+ ["--confirm <count>", "with --where: how many it finds, typed so that none are deleted by mistake"]
1740
+ ]
1741
+ },
1701
1742
  { name: "recover", summary: "Get a stuck sandbox going again: what runs in it is killed, its disk is kept." },
1702
1743
  { name: "auto-stop", summary: "Say when a running sandbox stops by itself, or that it never does.", examples: ["agental auto-stop sbx_2a9a47e50daec64a --in 2h", "agental auto-stop sbx_2a9a47e50daec64a --never"] },
1703
1744
  { name: "jobs", summary: "Follow or cancel the work started on many sandboxes at once." },
@@ -1713,10 +1754,51 @@ var COMMANDS = [
1713
1754
  { name: "network", summary: "Say what a sandbox may reach outside itself.", examples: ["agental network sbx_2a9a47e50daec64a --allow github.com,registry.npmjs.org", "agental network sbx_2a9a47e50daec64a --none"] },
1714
1755
  { name: "egress", summary: "Say where a sandbox's web traffic leaves from, or read your residential egress.", examples: ["agental egress sbx_2a9a47e50daec64a residential de"] },
1715
1756
  { name: "templates", summary: "List your templates: what new sandboxes start from." },
1716
- { name: "template", summary: "Make, read, change and start templates.", examples: ["agental template create my-env", "agental template start my-env --size medium", "agental template put my-env sbx_2a9a47e50daec64a"] },
1717
- { name: "secrets", summary: "Keep values and files out of a sandbox, or out of every sandbox of a template.", examples: ["agental secrets --template default set GITHUB_TOKEN=ghp_\u2026 --host github.com,api.github.com", "agental secrets sbx_2a9a47e50daec64a"] },
1757
+ {
1758
+ name: "template",
1759
+ summary: "Make, read, change and start templates.",
1760
+ examples: ["agental template create my-env", "agental template start my-env --size medium", "agental template put my-env sbx_2a9a47e50daec64a"],
1761
+ flags: [
1762
+ ["--size <size>", "start: the size its sandboxes start as"],
1763
+ ["--snapshot <snapshot-id>", "start: start them from this snapshot"],
1764
+ ["--new-machine", "start: start them as a new machine, from no snapshot"],
1765
+ ["--ttl <time> | default", "start: stop them after this long, as 2h"],
1766
+ ["--tag <tag>, --meta <key>=<value>", "create: label it (may be given again)"],
1767
+ ["--json", "print as JSON"]
1768
+ ]
1769
+ },
1770
+ {
1771
+ name: "secrets",
1772
+ summary: "Keep values and files out of a sandbox, or out of every sandbox of a template.",
1773
+ examples: ["agental secrets --template default set GITHUB_TOKEN=ghp_\u2026 --host github.com,api.github.com", "agental secrets sbx_2a9a47e50daec64a"],
1774
+ flags: [
1775
+ ["--template <template>", "the template's secrets, for every sandbox made from it"],
1776
+ ["--host <host>[,<host>...]", "set, hosts: keep the value out of the sandbox, sent only to these hosts"],
1777
+ ["--plain", "set: a variable the sandbox sees, where its template keeps one out"],
1778
+ ["--text <text>", "put-file: the file's content, in place of a local file"],
1779
+ ["--json", "print as JSON"]
1780
+ ]
1781
+ },
1718
1782
  { name: "schedules", summary: "List a sandbox's schedules." },
1719
- { name: "schedule", summary: "Run a command in a sandbox on a timer, or once at a time.", examples: ["agental schedule add sbx_2a9a47e50daec64a --every 1h -- npm test", "agental schedule runs sbx_2a9a47e50daec64a nightly"] },
1783
+ {
1784
+ name: "schedule",
1785
+ summary: "Run a command in a sandbox on a timer, or once at a time.",
1786
+ examples: ["agental schedule add sbx_2a9a47e50daec64a --every 1h -- npm test", "agental schedule runs sbx_2a9a47e50daec64a nightly"],
1787
+ flags: [
1788
+ ["--every 5m|15m|1h|1d", "add, update: how often, counted from now"],
1789
+ ['--cron "<m h dom mon dow>"', "add, update: when, as cron says it, in UTC unless --tz says"],
1790
+ ["--tz <zone>", "the time zone --cron is read in, as Europe/Sofia"],
1791
+ ["--at <date-time>", "add, update: once, at that moment"],
1792
+ ["--name <name>", "what to call it, for show, run and the rest"],
1793
+ ["--timeout <time>", "how long a run may take (default 10m, at most 6h)"],
1794
+ ["--if-stopped start|skip", "start a stopped sandbox for the run and stop it after (start), or skip"],
1795
+ ["--keep-memory", "when the run stops the sandbox again, keep its memory too"],
1796
+ ["--overlap skip|replace|parallel", "when the last run still goes: skip this one, stop that one, or run both"],
1797
+ ["--delete-after", "with --at: delete the sandbox after a run that exits 0"],
1798
+ ["--limit <n>", "runs: how many to list"],
1799
+ ["--json", "print as JSON"]
1800
+ ]
1801
+ },
1720
1802
  { name: "metrics", summary: "Read CPU, memory and disk, of each sandbox now or of one over time.", examples: ["agental metrics", "agental metrics sbx_2a9a47e50daec64a --since 2h"] },
1721
1803
  { name: "email", summary: "Give a sandbox an email address of its own, and read and send its mail." },
1722
1804
  { name: "desktop", summary: "Turn on a screen in a sandbox, watch it, and drive it." },
@@ -1728,7 +1810,21 @@ var COMMANDS = [
1728
1810
  { name: "webhooks", summary: "List the addresses your account's events are sent to." },
1729
1811
  { name: "webhook", summary: "Add, change and remove the addresses your account's events are sent to.", examples: ["agental webhook add https://example.com/agental --all"] },
1730
1812
  { name: "keys", summary: "List your account's API keys." },
1731
- { name: "key", summary: "Make, read, limit and delete API keys.", examples: ["agental key add ci --preset ci", "agental key add reader --preset read-only --expires 30d"] },
1813
+ {
1814
+ name: "key",
1815
+ summary: "Make, read, limit and delete API keys.",
1816
+ examples: ["agental key add ci --preset ci", "agental key add reader --preset read-only --expires 30d"],
1817
+ flags: [
1818
+ ["--preset <preset>", "add: read-only, full-sandbox, ci or admin"],
1819
+ ["--actions <action>[,...]", "add: exactly these actions, in place of a preset"],
1820
+ ["--sandbox <sandbox-id>", "add: reach only these sandboxes (may be given again)"],
1821
+ ["--template <template>", "add: reach only these templates and their sandboxes (may be given again)"],
1822
+ ["--expires <date> | <n>d | <n>h", "add: stop working then, as 2026-12-31 or 30d"],
1823
+ ["--allow-from <address-or-range>", "add, allow-from: be used only from these addresses (may be given again)"],
1824
+ ["--anywhere", "allow-from: lift the limit"],
1825
+ ["--json", "print as JSON"]
1826
+ ]
1827
+ },
1732
1828
  { name: "org", summary: "List, switch and make the accounts you belong to." },
1733
1829
  { name: "members", summary: "List or remove the members of a team." },
1734
1830
  { name: "invite", summary: "Invite someone to your team by email." },
@@ -1779,7 +1875,14 @@ var COMMANDS = [
1779
1875
  "agental secret get-file|rm-file (<sandbox-id> | --template <template>) <path>"
1780
1876
  ],
1781
1877
  examples: ["agental secret set --template default GITHUB_TOKEN=ghp_\u2026 --host github.com,api.github.com", "agental secret list sbx_2a9a47e50daec64a"],
1782
- also: "secrets <sandbox-id> <verb>"
1878
+ also: "secrets <sandbox-id> <verb>",
1879
+ flags: [
1880
+ ["--template <template>", "the template's secrets, for every sandbox made from it"],
1881
+ ["--host <host>[,<host>...]", "set, hosts: keep the value out of the sandbox, sent only to these hosts"],
1882
+ ["--plain", "set: a variable the sandbox sees, where its template keeps one out"],
1883
+ ["--text <text>", "put-file: the file's content, in place of a local file"],
1884
+ ["--json", "print as JSON"]
1885
+ ]
1783
1886
  },
1784
1887
  { name: "job", summary: "Follow or cancel the work started on many sandboxes at once.", usage: ["agental job list [--json]", "agental job show <job-id> [--json]", "agental job cancel <job-id>"], also: "jobs" },
1785
1888
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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",