anon-pi 0.11.0 → 0.12.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/README.md CHANGED
@@ -121,15 +121,16 @@ The menu needs a TTY. Without one it refuses and tells you to name a project dir
121
121
  pi cannot `cd` into a different project mid-session (a conversation is keyed to its launch cwd). So when you want to move between projects, or poke around the machine, use a jailed shell:
122
122
 
123
123
  ```sh
124
- anon-pi --shell # bash at ~ (the machine home), inside the jail
124
+ anon-pi --shell # bash at /projects (the projects root), inside the jail
125
+ anon-pi --shell . # same as bare --shell: bash at /projects (`.` is a synonym)
125
126
  anon-pi --shell recon # bash cd'd into /projects/recon
126
127
  ```
127
128
 
128
- From inside the shell you can `cd` between `/projects/*` and run `pi` yourself in whichever one you want. The shell forwards no arguments (`anon-pi --shell recon extra` is an error); run pi from inside it instead. Same forced-egress jail as a pi launch.
129
+ A bare `--shell` lands at the projects root (`/projects`, or `/work` under `--mount`), the project-hopper's natural home: the model is project-centric, and anything you write under the machine home (`~`) persists into that machine's config home on the host, which is for config, not work. From inside the shell you can `cd` between `/projects/*` and run `pi` yourself in whichever one you want; `cd ~` reaches the machine home for the rare case you want it. The shell forwards no arguments (`anon-pi --shell recon extra` is an error); run pi from inside it instead. Same forced-egress jail as a pi launch.
129
130
 
130
131
  ### Reaching an in-jail server from the host (`forward` / `ports`)
131
132
 
132
- A jailed tool sometimes runs a server you want to open on the host: a dev/preview server on `:3001`, a local API. The jail deliberately publishes no ports (that would open an inbound path around the forced egress), so host access is a separate, explicit verb, the way `kubectl port-forward` / `ssh -L` work. anon-pi wraps netcage's `forward` so you never handle the raw container name (needs **netcage >= 0.9.0**):
133
+ A jailed tool sometimes runs a server you want to open on the host: a dev/preview server on `:3001`, a local API. The jail deliberately publishes no ports (that would open an inbound path around the forced egress), so host access is a separate, explicit verb, the way `kubectl port-forward` / `ssh -L` work. anon-pi wraps netcage's `forward` so you never handle the raw container name (needs **netcage >= 0.10.0**: anon-pi reads managed containers back via `netcage ps --format json`):
133
134
 
134
135
  ```sh
135
136
  # terminal 1: a running session with a server inside (e.g. pi started `pnpm dev` on :3001)
package/dist/anon-pi.d.ts CHANGED
@@ -13,17 +13,18 @@ export declare const CONTAINER_PROJECTS_ROOT = "/projects";
13
13
  export declare const CONTAINER_MOUNT_ROOT = "/work";
14
14
  /**
15
15
  * The jail cwd root for a machine (its persistent home, bind-mounted at /root).
16
- * A machine root has no named subfolders: only the root token `.` (a scratch pi
17
- * / shell at `~`) is valid. Written as `~` so it reads as "the machine home".
16
+ * A machine root has no named subfolders: only the root token `.` (the machine
17
+ * home itself) is valid. Written as `~` so it reads as "the machine home".
18
18
  */
19
19
  export declare const CONTAINER_MACHINE_HOME = "~";
20
20
  /**
21
21
  * The REAL container path the machine home is bind-mounted at (the source is
22
- * the host `machineHomeDir`). This is what a shell-at-`~` launch actually cwds
23
- * into (`-w /root`), distinct from CONTAINER_MACHINE_HOME (`~`), which is the
24
- * human-readable menu token. It is the parent of CONTAINER_AGENT_DIR
25
- * (`/root/.pi/agent`); the seed-if-fresh promotes the image's `/root` defaults +
26
- * pi staging into the mounted home here.
22
+ * the host `machineHomeDir`), distinct from CONTAINER_MACHINE_HOME (`~`), which
23
+ * is the human-readable menu token. No launch cwds here by default (a bare shell
24
+ * lands at the projects root, not the home); it is reached via `cd ~` inside the
25
+ * jail. It is the parent of CONTAINER_AGENT_DIR (`/root/.pi/agent`); the
26
+ * seed-if-fresh promotes the image's `/root` defaults + pi staging into the
27
+ * mounted home here.
27
28
  */
28
29
  export declare const CONTAINER_HOME_ROOT = "/root";
29
30
  /**
@@ -298,14 +299,17 @@ export declare function rootCwd(kind: RootKind): string;
298
299
  export declare function resolveCwd(kind: RootKind, token: string): string;
299
300
  /**
300
301
  * PURE: the launch cwd for a resolved (mode, rootKind, project). With a project
301
- * token it resolves under the active root (resolveCwd). With NO project: a
302
- * `shell` sits at the machine home (`/root`) the "sit on the machine" mode —
303
- * while `pi` (a `--session`/`--resume` launch that pi cwd-switches itself) starts
304
- * at the projects root (`rootCwd`), a real pi launch position. `menu` never
305
- * reaches here (it is argv-less). Shared by resolveRunPlan + keptContainerKey so
306
- * the run cwd and the container-identity key always agree.
307
- */
308
- export declare function launchCwd(mode: LaunchMode, kind: RootKind, project: string | undefined): string;
302
+ * token it resolves under the active root (resolveCwd). With NO project BOTH a
303
+ * bare `shell` and a `--session`/`--resume` pi launch start at the active root
304
+ * (`rootCwd`): `/projects`, or `/work` under `--mount`. The shell defaults to
305
+ * the projects root (not the machine home) because the model is project-centric
306
+ * and files written under the home land in the machine's config home on the
307
+ * host; a shell is the project-hopper, so `/projects` is the natural landing.
308
+ * The machine home is one `cd ~` away for the rare case. `menu` never reaches
309
+ * here (it is argv-less). Shared by resolveRunPlan + keptContainerKey so the run
310
+ * cwd and the container-identity key always agree.
311
+ */
312
+ export declare function launchCwd(_mode: LaunchMode, kind: RootKind, project: string | undefined): string;
309
313
  /** Parsed shape of config.json. All fields optional (a hand-edited file may omit any). */
310
314
  export interface AnonPiConfig {
311
315
  /** socks5h proxy URL. */
@@ -434,7 +438,8 @@ export interface LaunchIntent {
434
438
  projectsRoot: string;
435
439
  /**
436
440
  * The project token: a validated project name, the root token `.`, or
437
- * undefined (shell-at-home / menu). Resolves the cwd via resolveCwd.
441
+ * undefined (bare shell / menu). Resolves the cwd via resolveCwd; a bare
442
+ * shell lands at the projects root, same as the `.` token.
438
443
  */
439
444
  project?: string;
440
445
  /**
@@ -493,7 +498,7 @@ export type LaunchPlan = {
493
498
  } | {
494
499
  kind: 'launch';
495
500
  machine: Machine;
496
- /** The jail cwd (`-w`): /projects[/<p>], /work[/<p>] (--mount), or /root (shell ~). */
501
+ /** The jail cwd (`-w`): /projects[/<p>], or /work[/<p>] (--mount). A bare shell uses the root (/projects, or /work). */
497
502
  cwd: string;
498
503
  /** True when the machine home is fresh (informational; the seed is marker-guarded). */
499
504
  fresh: boolean;
@@ -507,7 +512,7 @@ export declare const DEFAULT_MACHINE = "default";
507
512
  * chosen (bare `anon-pi`, or `-m <machine>` / `--mount <parent>` with no
508
513
  * project): the CLI runs the host-side menu. `pi`/`shell` carry the chosen
509
514
  * target. `project` is a validated project name, the `.` root token, or
510
- * undefined (menu / shell-at-home). `mountParent` is the `--mount` HOST parent
515
+ * undefined (menu / bare shell, which lands at the active root). `mountParent` is the `--mount` HOST parent
511
516
  * (a path, NOT a name-namespaced token). `keep` is `--keep` (default false =>
512
517
  * throwaway `--rm`). `piArgs` are the trailing tokens forwarded to pi (pi mode
513
518
  * only; undefined otherwise).
@@ -651,7 +656,8 @@ export type RunVsStart = {
651
656
  * host parent at /work, so a `--mount` launch is a distinct identity from
652
657
  * the projects-root launch of the same name.
653
658
  * - the resolved container `cwd`: this already encodes the project token
654
- * (`/projects/<p>`, `/work/<p>`, `.` -> a root, or /root for a bare shell)
659
+ * (`/projects/<p>`, `/work/<p>`, or a root `/projects`/`/work`; legacy kept
660
+ * containers may still carry /root from the pre-0.12 bare-shell-at-home)
655
661
  * AND which root it sits under, so it is pi's conversation key too. Using
656
662
  * the cwd keeps the container identity aligned with the conversation the
657
663
  * kept container hosts.
@@ -696,9 +702,10 @@ export interface KeptKeyFields {
696
702
  export declare function parseKeptKey(key: string): KeptKeyFields;
697
703
  /**
698
704
  * PURE: the leaf name of a stamped key's cwd, i.e. the project a container hosts
699
- * (`/projects/recon` -> `recon`, `/projects` -> '.', `/work/x` -> `x`, `/root`
700
- * -> '' for a bare shell). Used to filter the picker by `<project>` and to label
701
- * each row. A root cwd (`/projects`, `/work`) maps to the `.` root token.
705
+ * (`/projects/recon` -> `recon`, `/projects` -> '.', `/work/x` -> `x`). Used to
706
+ * filter the picker by `<project>` and to label each row. A root cwd
707
+ * (`/projects`, `/work`) maps to the `.` root token; a legacy /root cwd (a
708
+ * pre-0.12 bare shell that sat at the machine home) maps to '' (no project).
702
709
  */
703
710
  export declare function keyProject(fields: KeptKeyFields): string;
704
711
  /**
@@ -793,6 +800,38 @@ export interface NetcageListener {
793
800
  * treats [] as "no hint", never an error.
794
801
  */
795
802
  export declare function parseNetcagePortsJson(stdout: string): NetcageListener[];
803
+ /**
804
+ * The netcage label anon-pi stamps its identity key onto (withKeyLabel). Kept
805
+ * here so the pure ps-JSON parser and the CLI's stamp/read agree on one name.
806
+ */
807
+ export declare const ANON_PI_KEY_LABEL = "anon-pi.key";
808
+ /**
809
+ * A raw `netcage ps --format json` entry, as anon-pi consumes it: the fields the
810
+ * container-resolution needs. netcage forwards podman's JSON verbatim (>= 0.10.0),
811
+ * so `Id`/`Names`/`Labels`/`State` are podman's own shape.
812
+ */
813
+ export interface NetcagePsEntry {
814
+ Id?: string;
815
+ Names?: string[];
816
+ Labels?: Record<string, string>;
817
+ State?: string;
818
+ }
819
+ /**
820
+ * PURE: parse `netcage ps --format json` into the anon-pi-owned containers:
821
+ * exactly the entries that carry an `anon-pi.key` label (so a netcage sidecar,
822
+ * which has no such label, is dropped), each as {key: <RAW base64 label value>,
823
+ * ref: <Id>, name: <first Names entry or Id>}. When `runningOnly`, entries whose
824
+ * State is not "running" are dropped (forward/ports can only reach a live jail).
825
+ * The base64 DECODE of `key` is the CLI's job (Buffer), so this stays pure; the
826
+ * caller decodes before matching against a keptContainerKey. [] on bad JSON.
827
+ */
828
+ export declare function parseNetcagePsJson(stdout: string, opts?: {
829
+ runningOnly?: boolean;
830
+ }): {
831
+ key: string;
832
+ ref: string;
833
+ name: string;
834
+ }[];
796
835
  /** netcage's in-jail DNS forwarder always listens here; anon-pi hides it from the port hint. */
797
836
  export declare const NETCAGE_DNS_PORT = 53;
798
837
  /**
@@ -1397,5 +1436,5 @@ export declare function setImageWarning(name: string, oldImage: string | undefin
1397
1436
  /** Read the AnonPiEnv from a process env map (kept separate so tests inject one). */
1398
1437
  export declare function envFromProcess(penv: Record<string, string | undefined>): AnonPiEnv;
1399
1438
  /** The --help text (kept here so it is covered by the same module). */
1400
- export declare const HELP = "anon-pi - run pi on anonymized, jailed machines (netcage: forced egress + one direct local model)\n\nUSAGE\n anon-pi MENU: pick a project (pi), a shell, or a new project\n anon-pi <project> pi in the project (/projects/<project>); exit pi -> host\n anon-pi <project> <pi-args\u2026> forward args to pi (e.g. -p for a headless one-shot)\n anon-pi --session <id> resume a pi session by id, in its own project (also -r/--resume)\n anon-pi <project> --fork <id> fork a session into <project> (`.`=root; --continue too; project required)\n anon-pi --list-models list the models pi sees (also --models; no project needed)\n anon-pi pi <pi-args\u2026> run pi with ANY args and no project (the passthrough)\n anon-pi --version print anon-pi's version (also -V)\n anon-pi --shell [<project>] a jailed bash (at ~, or cd'd into <project>) - the project-hopper\n anon-pi forward [<p>] [--port \u2026] open a host port onto a running container's in-jail server\n anon-pi ports [<project>] list a running container's open in-jail TCP listeners\n anon-pi -m <machine> [<p>] the same, on <machine> (its own image + home + conversations)\n anon-pi --mount <parent> [<p>] root at a HOST parent folder instead of the projects root\n anon-pi init onboard: verify your proxy, capture your local model, pick an image\n anon-pi machine \u2026 manage machines (create / list / set-image / rm)\n anon-pi --delete-home [<m>] delete a machine's home (config + convos); keep its image pin + files\n anon-pi --delete-project <p> delete a project's files + its per-machine sessions; keep the homes\n\n <project> a folder under the projects root (mounted at /projects; pi's cwd). `.` means\n the root itself (a scratch pi at /projects, /work for --mount, or ~).\n\n [--rm] throwaway container this run (the DEFAULT; deleted on exit).\n [--keep] leave the container KEPT so its filesystem survives (apt install,\n quit, re-enter). anon-pi finds it by netcage's managed label and\n `netcage start`s it on re-entry.\n\nWHAT IT DOES\n Runs pi inside netcage with all web/DNS egress forced through the socks5h proxy\n (fail-closed) and ONE direct hole to your local model (ANON_PI_LLM). A MACHINE\n is an image + a persistent HOST home (bind-mounted at /root) holding your pi\n config, extensions, and conversations; the container is disposable, so `--rm`\n loses nothing. Files (projects) are global by default; conversations are\n per-machine. On a FRESH machine home the image's staged defaults + your\n models.json are seeded in once; after that pi owns the home. Requires `netcage`.\n\nENVIRONMENT\n ANON_PI_PROXY (required) socks5h URL of your proxy (Tor/wireproxy/ssh -D).\n No default: the proxy is what anonymizes, so it is never guessed.\n ANON_PI_LLM (required) RFC1918/link-local IP[:port] of the local model\n ANON_PI_IMAGE image with `pi` on PATH, used when a machine has no image set.\n No image yet? See the README (Providing a pi image).\n ANON_PI_HOME anon-pi workspace dir (default ~/.anon-pi; NOT under ~/.config)\n ANON_PI_PROJECTS projects root override (host dir mounted at /projects)\n\nPLATFORM\n Linux only (via netcage's netns/nft jail). On macOS/Windows it works only\n inside a Linux VM, where --allow-direct to a LAN model is VM-boundary-sensitive.\n";
1439
+ export declare const HELP = "anon-pi - run pi on anonymized, jailed machines (netcage: forced egress + one direct local model)\n\nUSAGE\n anon-pi MENU: pick a project (pi), a shell, or a new project\n anon-pi <project> pi in the project (/projects/<project>); exit pi -> host\n anon-pi <project> <pi-args\u2026> forward args to pi (e.g. -p for a headless one-shot)\n anon-pi --session <id> resume a pi session by id, in its own project (also -r/--resume)\n anon-pi <project> --fork <id> fork a session into <project> (`.`=root; --continue too; project required)\n anon-pi --list-models list the models pi sees (also --models; no project needed)\n anon-pi pi <pi-args\u2026> run pi with ANY args and no project (the passthrough)\n anon-pi --version print anon-pi's version (also -V)\n anon-pi --shell [<project>] a jailed bash (at /projects, or cd'd into <project>) - the project-hopper\n anon-pi forward [<p>] [--port \u2026] open a host port onto a running container's in-jail server\n anon-pi ports [<project>] list a running container's open in-jail TCP listeners\n anon-pi -m <machine> [<p>] the same, on <machine> (its own image + home + conversations)\n anon-pi --mount <parent> [<p>] root at a HOST parent folder instead of the projects root\n anon-pi init onboard: verify your proxy, capture your local model, pick an image\n anon-pi machine \u2026 manage machines (create / list / set-image / rm)\n anon-pi --delete-home [<m>] delete a machine's home (config + convos); keep its image pin + files\n anon-pi --delete-project <p> delete a project's files + its per-machine sessions; keep the homes\n\n <project> a folder under the projects root (mounted at /projects; pi's cwd). `.` means\n the root itself (a scratch pi at /projects, /work for --mount, or ~).\n\n [--rm] throwaway container this run (the DEFAULT; deleted on exit).\n [--keep] leave the container KEPT so its filesystem survives (apt install,\n quit, re-enter). anon-pi finds it by netcage's managed label and\n `netcage start`s it on re-entry.\n\nWHAT IT DOES\n Runs pi inside netcage with all web/DNS egress forced through the socks5h proxy\n (fail-closed) and ONE direct hole to your local model (ANON_PI_LLM). A MACHINE\n is an image + a persistent HOST home (bind-mounted at /root) holding your pi\n config, extensions, and conversations; the container is disposable, so `--rm`\n loses nothing. Files (projects) are global by default; conversations are\n per-machine. On a FRESH machine home the image's staged defaults + your\n models.json are seeded in once; after that pi owns the home. Requires `netcage`.\n\nENVIRONMENT\n ANON_PI_PROXY (required) socks5h URL of your proxy (Tor/wireproxy/ssh -D).\n No default: the proxy is what anonymizes, so it is never guessed.\n ANON_PI_LLM (required) RFC1918/link-local IP[:port] of the local model\n ANON_PI_IMAGE image with `pi` on PATH, used when a machine has no image set.\n No image yet? See the README (Providing a pi image).\n ANON_PI_HOME anon-pi workspace dir (default ~/.anon-pi; NOT under ~/.config)\n ANON_PI_PROJECTS projects root override (host dir mounted at /projects)\n\nPLATFORM\n Linux only (via netcage's netns/nft jail). On macOS/Windows it works only\n inside a Linux VM, where --allow-direct to a LAN model is VM-boundary-sensitive.\n";
1401
1440
  //# sourceMappingURL=anon-pi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"anon-pi.d.ts","sourceRoot":"","sources":["../src/anon-pi.ts"],"names":[],"mappings":"AAqCA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,cAAc,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,8BAA8B,CAAC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C,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GACtC,SAAS,CAaX;AAED,uEAAuE;AACvE,eAAO,MAAM,IAAI,y7GAkDhB,CAAC"}
package/dist/anon-pi.js CHANGED
@@ -48,17 +48,18 @@ export const CONTAINER_PROJECTS_ROOT = '/projects';
48
48
  export const CONTAINER_MOUNT_ROOT = '/work';
49
49
  /**
50
50
  * The jail cwd root for a machine (its persistent home, bind-mounted at /root).
51
- * A machine root has no named subfolders: only the root token `.` (a scratch pi
52
- * / shell at `~`) is valid. Written as `~` so it reads as "the machine home".
51
+ * A machine root has no named subfolders: only the root token `.` (the machine
52
+ * home itself) is valid. Written as `~` so it reads as "the machine home".
53
53
  */
54
54
  export const CONTAINER_MACHINE_HOME = '~';
55
55
  /**
56
56
  * The REAL container path the machine home is bind-mounted at (the source is
57
- * the host `machineHomeDir`). This is what a shell-at-`~` launch actually cwds
58
- * into (`-w /root`), distinct from CONTAINER_MACHINE_HOME (`~`), which is the
59
- * human-readable menu token. It is the parent of CONTAINER_AGENT_DIR
60
- * (`/root/.pi/agent`); the seed-if-fresh promotes the image's `/root` defaults +
61
- * pi staging into the mounted home here.
57
+ * the host `machineHomeDir`), distinct from CONTAINER_MACHINE_HOME (`~`), which
58
+ * is the human-readable menu token. No launch cwds here by default (a bare shell
59
+ * lands at the projects root, not the home); it is reached via `cd ~` inside the
60
+ * jail. It is the parent of CONTAINER_AGENT_DIR (`/root/.pi/agent`); the
61
+ * seed-if-fresh promotes the image's `/root` defaults + pi staging into the
62
+ * mounted home here.
62
63
  */
63
64
  export const CONTAINER_HOME_ROOT = '/root';
64
65
  /**
@@ -379,17 +380,20 @@ export function resolveCwd(kind, token) {
379
380
  }
380
381
  /**
381
382
  * PURE: the launch cwd for a resolved (mode, rootKind, project). With a project
382
- * token it resolves under the active root (resolveCwd). With NO project: a
383
- * `shell` sits at the machine home (`/root`) the "sit on the machine" mode —
384
- * while `pi` (a `--session`/`--resume` launch that pi cwd-switches itself) starts
385
- * at the projects root (`rootCwd`), a real pi launch position. `menu` never
386
- * reaches here (it is argv-less). Shared by resolveRunPlan + keptContainerKey so
387
- * the run cwd and the container-identity key always agree.
388
- */
389
- export function launchCwd(mode, kind, project) {
383
+ * token it resolves under the active root (resolveCwd). With NO project BOTH a
384
+ * bare `shell` and a `--session`/`--resume` pi launch start at the active root
385
+ * (`rootCwd`): `/projects`, or `/work` under `--mount`. The shell defaults to
386
+ * the projects root (not the machine home) because the model is project-centric
387
+ * and files written under the home land in the machine's config home on the
388
+ * host; a shell is the project-hopper, so `/projects` is the natural landing.
389
+ * The machine home is one `cd ~` away for the rare case. `menu` never reaches
390
+ * here (it is argv-less). Shared by resolveRunPlan + keptContainerKey so the run
391
+ * cwd and the container-identity key always agree.
392
+ */
393
+ export function launchCwd(_mode, kind, project) {
390
394
  if (project !== undefined)
391
395
  return resolveCwd(kind, project);
392
- return mode === 'shell' ? CONTAINER_HOME_ROOT : rootCwd(kind);
396
+ return rootCwd(kind);
393
397
  }
394
398
  /** Pick a string field from a parsed-JSON object, or undefined if absent/non-string. */
395
399
  function strField(o, key) {
@@ -1029,7 +1033,8 @@ function containerSeedThen(seedVersion, exec) {
1029
1033
  * host parent at /work, so a `--mount` launch is a distinct identity from
1030
1034
  * the projects-root launch of the same name.
1031
1035
  * - the resolved container `cwd`: this already encodes the project token
1032
- * (`/projects/<p>`, `/work/<p>`, `.` -> a root, or /root for a bare shell)
1036
+ * (`/projects/<p>`, `/work/<p>`, or a root `/projects`/`/work`; legacy kept
1037
+ * containers may still carry /root from the pre-0.12 bare-shell-at-home)
1033
1038
  * AND which root it sits under, so it is pi's conversation key too. Using
1034
1039
  * the cwd keeps the container identity aligned with the conversation the
1035
1040
  * kept container hosts.
@@ -1106,9 +1111,10 @@ export function parseKeptKey(key) {
1106
1111
  }
1107
1112
  /**
1108
1113
  * PURE: the leaf name of a stamped key's cwd, i.e. the project a container hosts
1109
- * (`/projects/recon` -> `recon`, `/projects` -> '.', `/work/x` -> `x`, `/root`
1110
- * -> '' for a bare shell). Used to filter the picker by `<project>` and to label
1111
- * each row. A root cwd (`/projects`, `/work`) maps to the `.` root token.
1114
+ * (`/projects/recon` -> `recon`, `/projects` -> '.', `/work/x` -> `x`). Used to
1115
+ * filter the picker by `<project>` and to label each row. A root cwd
1116
+ * (`/projects`, `/work`) maps to the `.` root token; a legacy /root cwd (a
1117
+ * pre-0.12 bare shell that sat at the machine home) maps to '' (no project).
1112
1118
  */
1113
1119
  export function keyProject(fields) {
1114
1120
  const cwd = fields.cwd;
@@ -1289,6 +1295,53 @@ export function parseNetcagePortsJson(stdout) {
1289
1295
  }
1290
1296
  return out;
1291
1297
  }
1298
+ /**
1299
+ * The netcage label anon-pi stamps its identity key onto (withKeyLabel). Kept
1300
+ * here so the pure ps-JSON parser and the CLI's stamp/read agree on one name.
1301
+ */
1302
+ export const ANON_PI_KEY_LABEL = 'anon-pi.key';
1303
+ /**
1304
+ * PURE: parse `netcage ps --format json` into the anon-pi-owned containers:
1305
+ * exactly the entries that carry an `anon-pi.key` label (so a netcage sidecar,
1306
+ * which has no such label, is dropped), each as {key: <RAW base64 label value>,
1307
+ * ref: <Id>, name: <first Names entry or Id>}. When `runningOnly`, entries whose
1308
+ * State is not "running" are dropped (forward/ports can only reach a live jail).
1309
+ * The base64 DECODE of `key` is the CLI's job (Buffer), so this stays pure; the
1310
+ * caller decodes before matching against a keptContainerKey. [] on bad JSON.
1311
+ */
1312
+ export function parseNetcagePsJson(stdout, opts = {}) {
1313
+ let parsed;
1314
+ try {
1315
+ parsed = JSON.parse(stdout);
1316
+ }
1317
+ catch {
1318
+ return [];
1319
+ }
1320
+ if (!Array.isArray(parsed))
1321
+ return [];
1322
+ const out = [];
1323
+ for (const e of parsed) {
1324
+ if (!e || typeof e !== 'object')
1325
+ continue;
1326
+ const entry = e;
1327
+ const labels = entry.Labels;
1328
+ if (!labels || typeof labels !== 'object')
1329
+ continue;
1330
+ const rawKey = labels[ANON_PI_KEY_LABEL];
1331
+ if (typeof rawKey !== 'string' || rawKey === '')
1332
+ continue; // not anon-pi's (e.g. a sidecar)
1333
+ if (opts.runningOnly && entry.State !== 'running')
1334
+ continue;
1335
+ const ref = typeof entry.Id === 'string' ? entry.Id : '';
1336
+ if (ref === '')
1337
+ continue;
1338
+ const name = Array.isArray(entry.Names) && typeof entry.Names[0] === 'string'
1339
+ ? entry.Names[0]
1340
+ : ref;
1341
+ out.push({ key: rawKey, ref, name });
1342
+ }
1343
+ return out;
1344
+ }
1292
1345
  /** netcage's in-jail DNS forwarder always listens here; anon-pi hides it from the port hint. */
1293
1346
  export const NETCAGE_DNS_PORT = 53;
1294
1347
  /**
@@ -2206,7 +2259,7 @@ USAGE
2206
2259
  anon-pi --list-models list the models pi sees (also --models; no project needed)
2207
2260
  anon-pi pi <pi-args…> run pi with ANY args and no project (the passthrough)
2208
2261
  anon-pi --version print anon-pi's version (also -V)
2209
- anon-pi --shell [<project>] a jailed bash (at ~, or cd'd into <project>) - the project-hopper
2262
+ anon-pi --shell [<project>] a jailed bash (at /projects, or cd'd into <project>) - the project-hopper
2210
2263
  anon-pi forward [<p>] [--port …] open a host port onto a running container's in-jail server
2211
2264
  anon-pi ports [<project>] list a running container's open in-jail TCP listeners
2212
2265
  anon-pi -m <machine> [<p>] the same, on <machine> (its own image + home + conversations)