yolocage 0.1.0 → 0.1.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.
package/lib/types.js CHANGED
@@ -1,7 +1,5 @@
1
1
  // Type defaults table. The shortcut form (`yc claude`) and named-cage
2
- // `--type=…` flag pick from these. v0 ships claude + codex enabled; opencode
3
- // is sketched in but `v0:false` so the CLI errors cleanly if the operator
4
- // asks for it.
2
+ // `--type=…` flag pick from these. v0 ships claude + codex.
5
3
  //
6
4
  // Each entry's `bindDirs` describes the default mounts for a fresh cage:
7
5
  // workspace: a host path mounted at /workspace (default = cwd)
@@ -10,6 +8,11 @@
10
8
  //
11
9
  // `cmd` is the in-container command line the entrypoint exec()s by default.
12
10
  // CLI pass-through args (`yc claude -- --resume`) are appended after.
11
+ //
12
+ // Images are published from .github/workflows/publish-images.yml to
13
+ // ghcr.io/jlamendo/yolocage-<name> as multi-arch (linux/amd64 +
14
+ // linux/arm64) manifests. `:latest` follows main; pinned tags are
15
+ // optionally emitted via the workflow_dispatch input.
13
16
 
14
17
  'use strict';
15
18
 
@@ -21,7 +24,7 @@ const HOME = os.homedir();
21
24
  const TYPE_DEFAULTS = {
22
25
  claude: {
23
26
  v0: true,
24
- image: 'yolocage/claude:dev',
27
+ image: 'ghcr.io/jlamendo/yolocage-claude:latest',
25
28
  configDirHost: path.join(HOME, '.claude'),
26
29
  configDirContainer: '/home/agent/.claude',
27
30
  // --continue auto-resumes the most recent in-cwd conversation; harmless on
@@ -32,18 +35,11 @@ const TYPE_DEFAULTS = {
32
35
  },
33
36
  codex: {
34
37
  v0: true,
35
- image: 'yolocage/codex:dev',
38
+ image: 'ghcr.io/jlamendo/yolocage-codex:latest',
36
39
  configDirHost: path.join(HOME, '.codex'),
37
40
  configDirContainer: '/home/agent/.codex',
38
41
  cmd: ['codex', '--full-auto'],
39
42
  },
40
- opencode: {
41
- v0: false,
42
- image: 'yolocage/opencode:dev',
43
- configDirHost: path.join(HOME, '.config', 'opencode'),
44
- configDirContainer: '/home/agent/.config/opencode',
45
- cmd: ['opencode'],
46
- },
47
43
  };
48
44
 
49
45
  function isKnownType(type) {
package/lib/update.js CHANGED
@@ -5,8 +5,10 @@
5
5
  // We probe how the user is invoking yc (global npm install vs npx
6
6
  // run vs unknown) and either install/upgrade or print a helpful
7
7
  // no-op message.
8
- // 2. Cage images: re-pull yolocage/claude:latest + yolocage/codex:latest
9
- // so the next cage launch starts from current bytes.
8
+ // 2. Cage images: re-pull each ghcr.io/jlamendo/yolocage-* image so
9
+ // the next cage launch starts from current bytes. The exact refs
10
+ // come from TYPE_DEFAULTS — comment is descriptive, not
11
+ // authoritative.
10
12
  //
11
13
  // Sudo handling mirrors lib/docker.js — npm global installs typically
12
14
  // land in a path that requires root (/usr/local/lib/node_modules on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yolocage",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Sandboxed claude-code / codex container with built-in egress credential scrubber. Run AI coding agents in --dangerously-skip-permissions mode with a safety net.",
5
5
  "license": "MIT",
6
6
  "author": "yolocage contributors",