agent-shim 14.12.3 → 14.12.5

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
@@ -76,7 +76,7 @@ Every top-level entry in `~/.claude` is classified into one of five categories,
76
76
  | Category | Default shared? | Example entries |
77
77
  |---|---|---|
78
78
  | `secret` | **Never** — hardcoded, cannot be overridden by any configuration layer | `.credentials.json`, `backups`, `settings.json.bak*` |
79
- | `runtime` | No | `daemon*`, `.git*`, `.DS_Store`, `mcp-needs-auth-cache.json`, `codex-quota.json`, `file-transfers`, `shell-snapshots`, `statsig`, `telemetry`, `stats-cache.json`, `usage-data`, `ide`, `cache`, `scheduled_tasks.lock`, `policy-limits.json*`, `remote-settings.json*`, `state` |
79
+ | `runtime` | No | `daemon*`, `.git*`, `.DS_Store`, `mcp-needs-auth-cache.json`, `codex-quota.json`, `file-transfers`, `bridge-spawn`, `child-logs`, `shell-snapshots`, `statsig`, `telemetry`, `stats-cache.json`, `usage-data`, `ide`, `cache`, `scheduled_tasks.lock`, `policy-limits.json*`, `remote-settings.json*`, `state` |
80
80
  | `history` | Yes | `projects`, `sessions`, `session-env`, `teams`, `tasks`, `todos`, `history.jsonl`, `transcripts`, `paste-cache`, `file-history`, `plans`, `workflows`, `jobs`, `debug`, `downloads`, `chrome` |
81
81
  | `knowledge` | Yes | `skills`, `output-styles`, `agents`, `rules`, `memory`, `commands`, `plugins`, `hooks`, `AGENTS.md`, `CLAUDE.md`, `README.md` |
82
82
  | `settings` | Yes | `settings.json`, `settings.local.json` |
package/dist/cli.cjs CHANGED
@@ -34325,6 +34325,8 @@ var init_categories_default = __esm({
34325
34325
  "mcp-needs-auth-cache.json",
34326
34326
  "codex-quota.json",
34327
34327
  "file-transfers",
34328
+ "bridge-spawn",
34329
+ "child-logs",
34328
34330
  "shell-snapshots",
34329
34331
  "statsig",
34330
34332
  "telemetry",
@@ -76444,7 +76446,7 @@ var init_package = __esm({
76444
76446
  "package.json"() {
76445
76447
  package_default = {
76446
76448
  name: "agent-shim",
76447
- version: "14.12.3",
76449
+ version: "14.12.5",
76448
76450
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
76449
76451
  license: "MIT",
76450
76452
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -77280,6 +77282,11 @@ function isOptionValue(token) {
77280
77282
  return token !== void 0 && !token.startsWith("-");
77281
77283
  }
77282
77284
  function isClaudeSubcommand(passthrough) {
77285
+ const first = passthrough[0];
77286
+ const afterPermissionFlags = passthrough.find((token) => !FLAGS_BEFORE_DAEMON.has(token));
77287
+ if (first !== void 0 && FIRST_ARGUMENT_SUBCOMMANDS.has(first) || afterPermissionFlags === "daemon") {
77288
+ return true;
77289
+ }
77283
77290
  let index = 0;
77284
77291
  while (index < passthrough.length) {
77285
77292
  const token = passthrough[index];
@@ -77305,7 +77312,7 @@ function isClaudeSubcommand(passthrough) {
77305
77312
  }
77306
77313
  return false;
77307
77314
  }
77308
- var CLAUDE_SUBCOMMANDS, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
77315
+ var CLAUDE_SUBCOMMANDS, FIRST_ARGUMENT_SUBCOMMANDS, FLAGS_BEFORE_DAEMON, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
77309
77316
  var init_claudeSubcommand = __esm({
77310
77317
  "src/launcher/claudeSubcommand.ts"() {
77311
77318
  "use strict";
@@ -77315,23 +77322,32 @@ var init_claudeSubcommand = __esm({
77315
77322
  "auth",
77316
77323
  "auto-mode",
77317
77324
  "doctor",
77325
+ "edit-hook",
77318
77326
  "gateway",
77319
77327
  "import",
77328
+ "import-conversations",
77320
77329
  "install",
77321
77330
  "kill",
77322
77331
  "logs",
77323
77332
  "mcp",
77324
77333
  "plugin",
77325
77334
  "plugins",
77335
+ "project",
77326
77336
  "purge",
77337
+ "rc",
77338
+ "remote-control",
77327
77339
  "respawn",
77328
77340
  "rm",
77341
+ "sandbox",
77329
77342
  "setup-token",
77330
77343
  "stop",
77331
77344
  "ultrareview",
77332
77345
  "update",
77333
- "upgrade"
77346
+ "upgrade",
77347
+ "workspace-trust"
77334
77348
  ]);
77349
+ FIRST_ARGUMENT_SUBCOMMANDS = /* @__PURE__ */ new Set(["bridge", "daemon", "remote", "self-hosted-agent-proxy", "self-hosted-runner", "sync"]);
77350
+ FLAGS_BEFORE_DAEMON = /* @__PURE__ */ new Set(["--allow-dangerously-skip-permissions", "--dangerously-skip-permissions"]);
77335
77351
  VALUE_OPTIONS = /* @__PURE__ */ new Set([
77336
77352
  "--agent",
77337
77353
  "--agents",
package/dist/index.cjs CHANGED
@@ -49,6 +49,8 @@ var init_categories_default = __esm({
49
49
  "mcp-needs-auth-cache.json",
50
50
  "codex-quota.json",
51
51
  "file-transfers",
52
+ "bridge-spawn",
53
+ "child-logs",
52
54
  "shell-snapshots",
53
55
  "statsig",
54
56
  "telemetry",
@@ -15210,7 +15212,7 @@ var init_package = __esm({
15210
15212
  "package.json"() {
15211
15213
  package_default = {
15212
15214
  name: "agent-shim",
15213
- version: "14.12.3",
15215
+ version: "14.12.5",
15214
15216
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
15215
15217
  license: "MIT",
15216
15218
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -18315,6 +18317,11 @@ function isOptionValue(token) {
18315
18317
  return token !== void 0 && !token.startsWith("-");
18316
18318
  }
18317
18319
  function isClaudeSubcommand(passthrough) {
18320
+ const first = passthrough[0];
18321
+ const afterPermissionFlags = passthrough.find((token) => !FLAGS_BEFORE_DAEMON.has(token));
18322
+ if (first !== void 0 && FIRST_ARGUMENT_SUBCOMMANDS.has(first) || afterPermissionFlags === "daemon") {
18323
+ return true;
18324
+ }
18318
18325
  let index = 0;
18319
18326
  while (index < passthrough.length) {
18320
18327
  const token = passthrough[index];
@@ -18340,7 +18347,7 @@ function isClaudeSubcommand(passthrough) {
18340
18347
  }
18341
18348
  return false;
18342
18349
  }
18343
- var CLAUDE_SUBCOMMANDS, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
18350
+ var CLAUDE_SUBCOMMANDS, FIRST_ARGUMENT_SUBCOMMANDS, FLAGS_BEFORE_DAEMON, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
18344
18351
  var init_claudeSubcommand = __esm({
18345
18352
  "src/launcher/claudeSubcommand.ts"() {
18346
18353
  "use strict";
@@ -18350,23 +18357,32 @@ var init_claudeSubcommand = __esm({
18350
18357
  "auth",
18351
18358
  "auto-mode",
18352
18359
  "doctor",
18360
+ "edit-hook",
18353
18361
  "gateway",
18354
18362
  "import",
18363
+ "import-conversations",
18355
18364
  "install",
18356
18365
  "kill",
18357
18366
  "logs",
18358
18367
  "mcp",
18359
18368
  "plugin",
18360
18369
  "plugins",
18370
+ "project",
18361
18371
  "purge",
18372
+ "rc",
18373
+ "remote-control",
18362
18374
  "respawn",
18363
18375
  "rm",
18376
+ "sandbox",
18364
18377
  "setup-token",
18365
18378
  "stop",
18366
18379
  "ultrareview",
18367
18380
  "update",
18368
- "upgrade"
18381
+ "upgrade",
18382
+ "workspace-trust"
18369
18383
  ]);
18384
+ FIRST_ARGUMENT_SUBCOMMANDS = /* @__PURE__ */ new Set(["bridge", "daemon", "remote", "self-hosted-agent-proxy", "self-hosted-runner", "sync"]);
18385
+ FLAGS_BEFORE_DAEMON = /* @__PURE__ */ new Set(["--allow-dangerously-skip-permissions", "--dangerously-skip-permissions"]);
18370
18386
  VALUE_OPTIONS = /* @__PURE__ */ new Set([
18371
18387
  "--agent",
18372
18388
  "--agents",
package/dist/index.mjs CHANGED
@@ -27,6 +27,8 @@ var init_categories_default = __esm({
27
27
  "mcp-needs-auth-cache.json",
28
28
  "codex-quota.json",
29
29
  "file-transfers",
30
+ "bridge-spawn",
31
+ "child-logs",
30
32
  "shell-snapshots",
31
33
  "statsig",
32
34
  "telemetry",
@@ -15181,7 +15183,7 @@ var init_package = __esm({
15181
15183
  "package.json"() {
15182
15184
  package_default = {
15183
15185
  name: "agent-shim",
15184
- version: "14.12.3",
15186
+ version: "14.12.5",
15185
15187
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
15186
15188
  license: "MIT",
15187
15189
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -18282,6 +18284,11 @@ function isOptionValue(token) {
18282
18284
  return token !== void 0 && !token.startsWith("-");
18283
18285
  }
18284
18286
  function isClaudeSubcommand(passthrough) {
18287
+ const first = passthrough[0];
18288
+ const afterPermissionFlags = passthrough.find((token) => !FLAGS_BEFORE_DAEMON.has(token));
18289
+ if (first !== void 0 && FIRST_ARGUMENT_SUBCOMMANDS.has(first) || afterPermissionFlags === "daemon") {
18290
+ return true;
18291
+ }
18285
18292
  let index = 0;
18286
18293
  while (index < passthrough.length) {
18287
18294
  const token = passthrough[index];
@@ -18307,7 +18314,7 @@ function isClaudeSubcommand(passthrough) {
18307
18314
  }
18308
18315
  return false;
18309
18316
  }
18310
- var CLAUDE_SUBCOMMANDS, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
18317
+ var CLAUDE_SUBCOMMANDS, FIRST_ARGUMENT_SUBCOMMANDS, FLAGS_BEFORE_DAEMON, VALUE_OPTIONS, VARIADIC_OPTIONS, OPTIONAL_VALUE_OPTIONS;
18311
18318
  var init_claudeSubcommand = __esm({
18312
18319
  "src/launcher/claudeSubcommand.ts"() {
18313
18320
  "use strict";
@@ -18317,23 +18324,32 @@ var init_claudeSubcommand = __esm({
18317
18324
  "auth",
18318
18325
  "auto-mode",
18319
18326
  "doctor",
18327
+ "edit-hook",
18320
18328
  "gateway",
18321
18329
  "import",
18330
+ "import-conversations",
18322
18331
  "install",
18323
18332
  "kill",
18324
18333
  "logs",
18325
18334
  "mcp",
18326
18335
  "plugin",
18327
18336
  "plugins",
18337
+ "project",
18328
18338
  "purge",
18339
+ "rc",
18340
+ "remote-control",
18329
18341
  "respawn",
18330
18342
  "rm",
18343
+ "sandbox",
18331
18344
  "setup-token",
18332
18345
  "stop",
18333
18346
  "ultrareview",
18334
18347
  "update",
18335
- "upgrade"
18348
+ "upgrade",
18349
+ "workspace-trust"
18336
18350
  ]);
18351
+ FIRST_ARGUMENT_SUBCOMMANDS = /* @__PURE__ */ new Set(["bridge", "daemon", "remote", "self-hosted-agent-proxy", "self-hosted-runner", "sync"]);
18352
+ FLAGS_BEFORE_DAEMON = /* @__PURE__ */ new Set(["--allow-dangerously-skip-permissions", "--dangerously-skip-permissions"]);
18337
18353
  VALUE_OPTIONS = /* @__PURE__ */ new Set([
18338
18354
  "--agent",
18339
18355
  "--agents",