@hearsay-tools/squawk 0.18.0-pr3996.7618 → 0.18.0-pr3997.7615

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 (82) hide show
  1. package/dist/agent-config/catalog.d.ts +3 -3
  2. package/dist/agent-config/catalog.js +5 -13
  3. package/dist/agent-config/catalog.js.map +1 -1
  4. package/dist/agent-config/service.d.ts +2 -5
  5. package/dist/agent-config/service.js +3 -9
  6. package/dist/agent-config/service.js.map +1 -1
  7. package/dist/ci-wait/controller.d.ts +46 -46
  8. package/dist/core/runner-config-files.d.ts +16 -17
  9. package/dist/core/runner-config-files.js +1 -7
  10. package/dist/core/runner-config-files.js.map +1 -1
  11. package/dist/core/runner-definition.d.ts +39 -19
  12. package/dist/core/runner-definition.js.map +1 -1
  13. package/dist/delegation/execution-identity.js +3 -3
  14. package/dist/delegation/execution-identity.js.map +1 -1
  15. package/dist/delegation/routes.d.ts +11 -11
  16. package/dist/delegation/transport.d.ts +81 -81
  17. package/dist/paths.d.ts +10 -5
  18. package/dist/paths.js +50 -28
  19. package/dist/paths.js.map +1 -1
  20. package/dist/runners/claude/accounts.d.ts +1 -1
  21. package/dist/runners/claude/accounts.js +1 -1
  22. package/dist/runners/claude/accounts.js.map +1 -1
  23. package/dist/runners/claude/config-files.d.ts +2 -2
  24. package/dist/runners/claude/config-files.js +9 -5
  25. package/dist/runners/claude/config-files.js.map +1 -1
  26. package/dist/runners/claude/definition.js +1 -6
  27. package/dist/runners/claude/definition.js.map +1 -1
  28. package/dist/runners/codex/accounts.d.ts +1 -1
  29. package/dist/runners/codex/accounts.js +1 -1
  30. package/dist/runners/codex/accounts.js.map +1 -1
  31. package/dist/runners/codex/config-files.d.ts +2 -2
  32. package/dist/runners/codex/config-files.js +5 -5
  33. package/dist/runners/codex/config-files.js.map +1 -1
  34. package/dist/runners/codex/definition.js +1 -6
  35. package/dist/runners/codex/definition.js.map +1 -1
  36. package/dist/runners/omp/accounts.d.ts +1 -1
  37. package/dist/runners/omp/accounts.js +1 -1
  38. package/dist/runners/omp/accounts.js.map +1 -1
  39. package/dist/runners/omp/config-files.d.ts +2 -2
  40. package/dist/runners/omp/config-files.js +8 -6
  41. package/dist/runners/omp/config-files.js.map +1 -1
  42. package/dist/runners/omp/definition.js +1 -2
  43. package/dist/runners/omp/definition.js.map +1 -1
  44. package/dist/runners/omp/mock.d.ts +14 -0
  45. package/dist/runners/omp/mock.js +4 -0
  46. package/dist/runners/omp/mock.js.map +1 -1
  47. package/dist/runners/opencode/accounts.d.ts +1 -1
  48. package/dist/runners/opencode/accounts.js +1 -1
  49. package/dist/runners/opencode/accounts.js.map +1 -1
  50. package/dist/runners/opencode/config-files.d.ts +2 -2
  51. package/dist/runners/opencode/config-files.js +5 -5
  52. package/dist/runners/opencode/config-files.js.map +1 -1
  53. package/dist/runners/opencode/definition.js +1 -6
  54. package/dist/runners/opencode/definition.js.map +1 -1
  55. package/dist/runners/opencode/mock.d.ts +14 -0
  56. package/dist/runners/opencode/mock.js +7 -1
  57. package/dist/runners/opencode/mock.js.map +1 -1
  58. package/dist/runners/pi/accounts.d.ts +1 -1
  59. package/dist/runners/pi/accounts.js +1 -1
  60. package/dist/runners/pi/accounts.js.map +1 -1
  61. package/dist/runners/pi/config-files.d.ts +2 -2
  62. package/dist/runners/pi/config-files.js +5 -5
  63. package/dist/runners/pi/config-files.js.map +1 -1
  64. package/dist/runners/pi/definition.js +1 -6
  65. package/dist/runners/pi/definition.js.map +1 -1
  66. package/dist/runners/pi/mock.d.ts +3 -0
  67. package/dist/runners/pi/mock.js +2 -0
  68. package/dist/runners/pi/mock.js.map +1 -1
  69. package/dist/runners/project-agents-file.d.ts +4 -4
  70. package/dist/runners/project-agents-file.js +3 -2
  71. package/dist/runners/project-agents-file.js.map +1 -1
  72. package/dist/server/activity-routes.d.ts +23 -23
  73. package/dist/server/live-routes.d.ts +6 -6
  74. package/dist/server/reports-api.d.ts +2 -2
  75. package/dist/server/server.d.ts +1560 -1560
  76. package/dist/workspace/agent-profiles.d.ts +1 -1
  77. package/dist/workspace/agent-profiles.js +4 -3
  78. package/dist/workspace/agent-profiles.js.map +1 -1
  79. package/package.json +4 -4
  80. package/dist/runners/omp/agent-dir.d.ts +0 -13
  81. package/dist/runners/omp/agent-dir.js +0 -33
  82. package/dist/runners/omp/agent-dir.js.map +0 -1
@@ -99,17 +99,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
99
99
  authFailureId?: string | undefined;
100
100
  runner: string;
101
101
  }[];
102
- } | {
103
- runner: string;
104
- models: {
105
- id: string;
106
- label: string;
107
- description: string;
108
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
109
- }[];
110
- source: "cache" | "live" | "unavailable";
111
- stale: boolean;
112
- reason?: string | undefined;
113
102
  } | {
114
103
  tasks: {
115
104
  id: string;
@@ -122,6 +111,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
122
111
  reason?: string | undefined;
123
112
  }[];
124
113
  nextOffset?: number | undefined;
114
+ } | {
115
+ runner: string;
116
+ models: {
117
+ id: string;
118
+ label: string;
119
+ description: string;
120
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
121
+ }[];
122
+ source: "cache" | "live" | "unavailable";
123
+ stale: boolean;
124
+ reason?: string | undefined;
125
125
  };
126
126
  outputFormat: "json";
127
127
  status: 200;
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
- output: {
6
- error: string;
7
- code?: "invalid_input" | undefined;
8
- };
9
- outputFormat: "json";
10
- status: 400;
11
- input: {
12
- query: {
13
- offset?: string | undefined;
14
- };
15
- };
16
- } | {
17
5
  output: {
18
6
  workers: {
19
7
  workerId: string;
@@ -60,24 +48,24 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
60
48
  offset?: string | undefined;
61
49
  };
62
50
  };
51
+ } | {
52
+ output: {
53
+ error: string;
54
+ code?: "invalid_input" | undefined;
55
+ };
56
+ outputFormat: "json";
57
+ status: 400;
58
+ input: {
59
+ query: {
60
+ offset?: string | undefined;
61
+ };
62
+ };
63
63
  };
64
64
  };
65
65
  } & {
66
66
  "/discover": {
67
67
  $post: {
68
68
  output: {
69
- tasks: {
70
- id: string;
71
- title: string;
72
- runner?: string | undefined;
73
- status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
74
- attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
75
- attentionLabel: string;
76
- accepts: boolean;
77
- reason?: string | undefined;
78
- }[];
79
- nextOffset?: number | undefined;
80
- } | {
81
69
  scope: "host-default-account";
82
70
  runners: {
83
71
  status: "connected" | "disconnected" | "not-installed" | "unknown";
@@ -97,6 +85,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
97
85
  source: "cache" | "live" | "unavailable";
98
86
  stale: boolean;
99
87
  reason?: string | undefined;
88
+ } | {
89
+ tasks: {
90
+ id: string;
91
+ title: string;
92
+ runner?: string | undefined;
93
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
94
+ attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
95
+ attentionLabel: string;
96
+ accepts: boolean;
97
+ reason?: string | undefined;
98
+ }[];
99
+ nextOffset?: number | undefined;
100
100
  };
101
101
  outputFormat: "json";
102
102
  status: 200;
@@ -206,13 +206,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
206
206
  status: 200;
207
207
  input: {
208
208
  json: {
209
- requestIds: string[];
210
- mode?: "all" | "any" | "one" | undefined;
211
- timeoutSeconds?: number | undefined;
212
- } | {
213
209
  workerIds: string[];
214
210
  timeoutSeconds?: number | undefined;
215
211
  mode?: "all" | "any" | "one" | undefined;
212
+ } | {
213
+ requestIds: string[];
214
+ mode?: "all" | "any" | "one" | undefined;
215
+ timeoutSeconds?: number | undefined;
216
216
  } | {
217
217
  peerIds: string[];
218
218
  timeoutSeconds?: number | undefined;
@@ -598,18 +598,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
598
598
  } & {
599
599
  "/:workerId": {
600
600
  $get: {
601
- output: {
602
- error: string;
603
- code?: "invalid_input" | undefined;
604
- };
605
- outputFormat: "json";
606
- status: 400;
607
- input: {
608
- param: {
609
- workerId: string;
610
- };
611
- };
612
- } | {
613
601
  output: {
614
602
  workerId: string;
615
603
  settled: boolean;
@@ -727,11 +715,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
727
715
  workerId: string;
728
716
  };
729
717
  };
730
- };
731
- };
732
- } & {
733
- "/:workerId/collect": {
734
- $post: {
718
+ } | {
735
719
  output: {
736
720
  error: string;
737
721
  code?: "invalid_input" | undefined;
@@ -742,10 +726,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
742
726
  param: {
743
727
  workerId: string;
744
728
  };
745
- } & {
746
- json: Record<string, never>;
747
729
  };
748
- } | {
730
+ };
731
+ };
732
+ } & {
733
+ "/:workerId/collect": {
734
+ $post: {
749
735
  output: {
750
736
  workerId: string;
751
737
  parentRunId: string;
@@ -868,11 +854,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
868
854
  } & {
869
855
  json: Record<string, never>;
870
856
  };
871
- };
872
- };
873
- } & {
874
- "/:workerId/steer": {
875
- $post: {
857
+ } | {
876
858
  output: {
877
859
  error: string;
878
860
  code?: "invalid_input" | undefined;
@@ -884,11 +866,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
884
866
  workerId: string;
885
867
  };
886
868
  } & {
887
- json: {
888
- text: string;
889
- };
869
+ json: Record<string, never>;
890
870
  };
891
- } | {
871
+ };
872
+ };
873
+ } & {
874
+ "/:workerId/steer": {
875
+ $post: {
892
876
  output: {
893
877
  workerId: string;
894
878
  state: "delivered" | "queued";
@@ -904,11 +888,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
904
888
  text: string;
905
889
  };
906
890
  };
907
- };
908
- };
909
- } & {
910
- "/:workerId/stop": {
911
- $post: {
891
+ } | {
912
892
  output: {
913
893
  error: string;
914
894
  code?: "invalid_input" | undefined;
@@ -920,9 +900,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
920
900
  workerId: string;
921
901
  };
922
902
  } & {
923
- json: Record<string, never>;
903
+ json: {
904
+ text: string;
905
+ };
924
906
  };
925
- } | {
907
+ };
908
+ };
909
+ } & {
910
+ "/:workerId/stop": {
911
+ $post: {
926
912
  output: {
927
913
  workerId: string;
928
914
  state: "stopping" | "terminated";
@@ -936,11 +922,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
936
922
  } & {
937
923
  json: Record<string, never>;
938
924
  };
939
- };
940
- };
941
- } & {
942
- "/:workerId/destroy": {
943
- $post: {
925
+ } | {
944
926
  output: {
945
927
  error: string;
946
928
  code?: "invalid_input" | undefined;
@@ -952,11 +934,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
952
934
  workerId: string;
953
935
  };
954
936
  } & {
955
- json: {
956
- discardWork?: true | undefined;
957
- };
937
+ json: Record<string, never>;
958
938
  };
959
- } | {
939
+ };
940
+ };
941
+ } & {
942
+ "/:workerId/destroy": {
943
+ $post: {
960
944
  output: {
961
945
  workerId: string;
962
946
  state: "complete" | "incomplete";
@@ -985,6 +969,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
985
969
  discardWork?: true | undefined;
986
970
  };
987
971
  };
972
+ } | {
973
+ output: {
974
+ error: string;
975
+ code?: "invalid_input" | undefined;
976
+ };
977
+ outputFormat: "json";
978
+ status: 400;
979
+ input: {
980
+ param: {
981
+ workerId: string;
982
+ };
983
+ } & {
984
+ json: {
985
+ discardWork?: true | undefined;
986
+ };
987
+ };
988
988
  } | {
989
989
  output: {
990
990
  workerId: string;
@@ -1020,11 +1020,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1020
1020
  "/:workerId/diff": {
1021
1021
  $get: {
1022
1022
  output: {
1023
- error: string;
1024
- code?: "invalid_input" | undefined;
1023
+ workerId: string;
1024
+ baselineSha: string;
1025
+ diff: string;
1026
+ truncated: boolean;
1025
1027
  };
1026
1028
  outputFormat: "json";
1027
- status: 400;
1029
+ status: 200;
1028
1030
  input: {
1029
1031
  param: {
1030
1032
  workerId: string;
@@ -1032,13 +1034,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1032
1034
  };
1033
1035
  } | {
1034
1036
  output: {
1035
- workerId: string;
1036
- baselineSha: string;
1037
- diff: string;
1038
- truncated: boolean;
1037
+ error: string;
1038
+ code?: "invalid_input" | undefined;
1039
1039
  };
1040
1040
  outputFormat: "json";
1041
- status: 200;
1041
+ status: 400;
1042
1042
  input: {
1043
1043
  param: {
1044
1044
  workerId: string;
package/dist/paths.d.ts CHANGED
@@ -70,18 +70,23 @@ export declare function expandTilde(path: string): string;
70
70
  */
71
71
  export declare function serverLockPath(instance: string | undefined, home: Home): string;
72
72
  /**
73
- * Where each registered runner keeps its per-user config, keyed by its `accounts.homeSlot`, in
74
- * registration order. Each definition's `accounts.homeDir` honors the variables its vendor
75
- * documents (`runners/<id>/definition.ts`). Read per call so tests and ops can set env live.
73
+ * Where each coding agent keeps its per-user config, honouring the env vars the
74
+ * vendors document: `$CLAUDE_CONFIG_DIR` relocates Claude Code's home;
75
+ * `$CODEX_HOME` relocates Codex's; `$XDG_CONFIG_HOME` relocates OpenCode's config
76
+ * dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
77
+ * (default `~/.pi/agent`); OMP reads that variable too unless `$OMP_PROFILE` selects a profile
78
+ * (`ompAgentDir`). Read per call so tests and ops can set env live.
76
79
  *
77
80
  * These are the DEFAULT profile's dirs. A second login of the same CLI is an
78
81
  * agent profile (`src/core/agent-profiles.ts`) and resolves through
79
82
  * `agentHomePathsForProfiles` instead — what this function answers is what the
80
83
  * host is configured for when nothing overrides it.
81
84
  */
85
+ /** The slot of `AgentHomePaths` that holds each provider's account home. Was the
86
+ * `AGENT_HOME_SLOT` table; the slot now lives in each definition's `accounts.homeSlot`
87
+ * (`runners/<id>/accounts.ts`), checked there against `keyof AgentHomePaths`. */
88
+ export declare function agentHomeSlot(provider: ProviderId): keyof AgentHomePaths;
82
89
  export declare function agentHomePaths(env?: NodeJS.ProcessEnv): AgentHomePaths;
83
- /** One provider's default home: the entry of `agentHomePaths()` in its definition's home slot. */
84
- export declare function agentHomeDir(provider: ProviderId, env?: NodeJS.ProcessEnv): string;
85
90
  /**
86
91
  * Where Claude Code keeps `.claude.json` — its MCP/state file — for a given config dir. The
87
92
  * location is NOT uniform: by default the file is a SIBLING of `~/.claude`, but under a
package/dist/paths.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { homedir } from 'node:os';
2
2
  import { dirname, join } from 'node:path';
3
- import { registeredRunners, runnerDefinition } from './core/runner-registry.js';
3
+ import { runnerDefinition } from './core/runner-registry.js';
4
4
  import { assertOutsideAccountHome } from './home/protected-roots.js';
5
5
  /**
6
6
  * Test writers must never reach the account's real Squawk home. HOME can be a
@@ -100,43 +100,65 @@ export function serverLockPath(instance = DEFAULT_SERVER_INSTANCE, home) {
100
100
  return home.serverLock(instance);
101
101
  }
102
102
  /**
103
- * Where each registered runner keeps its per-user config, keyed by its `accounts.homeSlot`, in
104
- * registration order. Each definition's `accounts.homeDir` honors the variables its vendor
105
- * documents (`runners/<id>/definition.ts`). Read per call so tests and ops can set env live.
103
+ * Where each coding agent keeps its per-user config, honouring the env vars the
104
+ * vendors document: `$CLAUDE_CONFIG_DIR` relocates Claude Code's home;
105
+ * `$CODEX_HOME` relocates Codex's; `$XDG_CONFIG_HOME` relocates OpenCode's config
106
+ * dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
107
+ * (default `~/.pi/agent`); OMP reads that variable too unless `$OMP_PROFILE` selects a profile
108
+ * (`ompAgentDir`). Read per call so tests and ops can set env live.
106
109
  *
107
110
  * These are the DEFAULT profile's dirs. A second login of the same CLI is an
108
111
  * agent profile (`src/core/agent-profiles.ts`) and resolves through
109
112
  * `agentHomePathsForProfiles` instead — what this function answers is what the
110
113
  * host is configured for when nothing overrides it.
111
114
  */
115
+ /** The slot of `AgentHomePaths` that holds each provider's account home. Was the
116
+ * `AGENT_HOME_SLOT` table; the slot now lives in each definition's `accounts.homeSlot`
117
+ * (`runners/<id>/accounts.ts`), checked there against `keyof AgentHomePaths`. */
118
+ export function agentHomeSlot(provider) {
119
+ return runnerDefinition(provider).accounts.homeSlot;
120
+ }
112
121
  export function agentHomePaths(env = process.env) {
113
- const userHome = agentUserHome(env);
114
- const paths = {};
115
- const owners = new Map();
116
- for (const { id, accounts } of registeredRunners()) {
117
- const owner = owners.get(accounts.homeSlot);
118
- if (owner !== undefined)
119
- throw new Error(`Runners ${owner} and ${id} both declare the agent home slot ${accounts.homeSlot}.`);
120
- owners.set(accounts.homeSlot, id);
121
- paths[accounts.homeSlot] = resolveRunnerHome(id, accounts, env, userHome);
122
- }
123
- return paths;
122
+ const home = env.HOME || env.USERPROFILE || homedir();
123
+ const xdgConfig = env.XDG_CONFIG_HOME?.trim() || join(home, '.config');
124
+ return {
125
+ claude: env.CLAUDE_CONFIG_DIR?.trim() || join(home, '.claude'),
126
+ codex: env.CODEX_HOME?.trim() || join(home, '.codex'),
127
+ opencodeConfig: join(xdgConfig, 'opencode'),
128
+ pi: env.PI_CODING_AGENT_DIR?.trim() || join(home, '.pi', 'agent'),
129
+ omp: ompAgentDir(env, home),
130
+ };
124
131
  }
125
- /** One provider's default home: the entry of `agentHomePaths()` in its definition's home slot. */
126
- export function agentHomeDir(provider, env = process.env) {
127
- const { accounts } = runnerDefinition(provider);
128
- return resolveRunnerHome(provider, accounts, env, agentUserHome(env));
132
+ /**
133
+ * OMP's (Oh My Pi's) agent dir under `env`, mirroring how omp 18.8.0 resolves it
134
+ * (`packages/utils/src/dirs.ts`):
135
+ *
136
+ * - a profile — `OMP_PROFILE` when it is set at all, else `PI_PROFILE` — selects
137
+ * `<root>/profiles/<name>/agent`, and omp then ignores `PI_CODING_AGENT_DIR`;
138
+ * - otherwise `PI_CODING_AGENT_DIR`, else `<root>/agent`;
139
+ *
140
+ * where `<root>` is `~/<PI_CONFIG_DIR or .omp>`. A host that exports a profile therefore moves the
141
+ * DEFAULT account (see `profileEnvVar` in `core/agent-profiles.ts`). `default`, a blank value
142
+ * and a name omp would refuse select no profile.
143
+ */
144
+ function ompAgentDir(env, home) {
145
+ const root = ompRootDir(env, home);
146
+ const selected = (env.OMP_PROFILE !== undefined ? env.OMP_PROFILE : env.PI_PROFILE)?.trim();
147
+ if (selected && isOmpProfileName(selected))
148
+ return join(root, 'profiles', selected, 'agent');
149
+ return env.PI_CODING_AGENT_DIR?.trim() || join(root, 'agent');
129
150
  }
130
- function agentUserHome(env) {
131
- return env.HOME || env.USERPROFILE || homedir();
151
+ function ompRootDir(env, home) {
152
+ return join(home, env.PI_CONFIG_DIR?.trim() || '.omp');
132
153
  }
133
- /** Calls a definition's home resolver. A definition without one, or without a home slot, throws
134
- * naming the runner. */
135
- function resolveRunnerHome(id, accounts, env, userHome) {
136
- if (!accounts.homeSlot || typeof accounts.homeDir !== 'function') {
137
- throw new Error(`Runner ${id} declares no agent home: set accounts.homeSlot and accounts.homeDir in runners/${id}/definition.ts.`);
138
- }
139
- return accounts.homeDir(env, userHome);
154
+ /** omp's own profile-name rule (omp 18.8.0, `packages/utils/src/dirs.ts`). */
155
+ const OMP_PROFILE_NAME_RE = /^[a-z0-9][a-z0-9._-]{0,63}$/;
156
+ /** Windows device names omp refuses as a profile, with or without an extension. */
157
+ const OMP_RESERVED_NAME_RE = /^(?:CON|PRN|AUX|NUL|COM[0-9]|LPT[0-9])(?:\..*)?$/i;
158
+ /** Whether omp accepts `name` as a profile of its own; `default` is omp's "no profile". */
159
+ function isOmpProfileName(name) {
160
+ return OMP_PROFILE_NAME_RE.test(name) && !name.endsWith('.') && name !== 'default'
161
+ && !OMP_RESERVED_NAME_RE.test(name);
140
162
  }
141
163
  /**
142
164
  * Where Claude Code keeps `.claude.json` — its MCP/state file — for a given config dir. The
package/dist/paths.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAI1C,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAGrE;;;;GAIG;AACH,MAAM,UAAU,gCAAgC,CAAC,IAAY,EAAE,IAAI,GAAsB,OAAO,CAAC,GAAG;IAClG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc;WAC5F,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,OAAO;QAAE,OAAO;IACrB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,CAC5C,2BAA2B,IAAI,0DAA0D;QACvF,2EAA2E,CAC9E,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,SAAS,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAC,MAAiC;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC;SAC9B,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,C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MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE;WAC5D,UAAU,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,WAAW,IAAI,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IAC9E,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,CAAC;AACrG,CAAC"}
@@ -1,4 +1,4 @@
1
- /** Claude's account data (the `accounts` part's data half). Data only: the definition and the account
1
+ /** Claude's account data (the `accounts` part). Data only: the definition and the account
2
2
  * readers consume it, so importing it loads no code. */
3
3
  export declare const CLAUDE_ACCOUNTS: {
4
4
  readonly layout: {
@@ -1,4 +1,4 @@
1
- /** Claude's account data (the `accounts` part's data half). Data only: the definition and the account
1
+ /** Claude's account data (the `accounts` part). Data only: the definition and the account
2
2
  * readers consume it, so importing it loads no code. */
3
3
  export const CLAUDE_ACCOUNTS = {
4
4
  layout: { envVar: 'CLAUDE_CONFIG_DIR', defaultBindsHome: true, stateFile: 'beside-home' },
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/claude/accounts.ts"],"names":[],"mappings":"AAEA;yDACyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;IACzF,8FAA8F;IAC9F,yCAAyC;IACzC,UAAU,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,QAAQ;CACmB,CAAC"}
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/claude/accounts.ts"],"names":[],"mappings":"AAGA;yDACyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;IACzF,8FAA8F;IAC9F,yCAAyC;IACzC,UAAU,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,QAAQ;CACoD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { type RunnerConfigFile } from '../../core/runner-config-files.ts';
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
2
  import type { RunnerAgentConfig } from '../../contract/index.js';
3
3
  /**
4
4
  * The Claude runner's native config files for Settings → Agent config. Data only: importing it
5
5
  * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
6
6
  * reads top (broad) to bottom (specific).
7
7
  */
8
- export declare const CLAUDE_CONFIG_FILES: readonly RunnerConfigFile[];
8
+ export declare const CLAUDE_CONFIG_FILES: readonly ConfigFileDef[];
9
9
  /** The Claude tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
10
10
  export declare const CLAUDE_AGENT_CONFIG: RunnerAgentConfig;
@@ -1,7 +1,4 @@
1
1
  import { join } from 'node:path';
2
- import { agentHome } from '../../core/runner-config-files.js';
3
- import { CLAUDE_ACCOUNTS } from './accounts.js';
4
- const claudeHome = (home) => agentHome(home, CLAUDE_ACCOUNTS.homeSlot);
5
2
  const CLAUDE_SETTINGS_DOCS = 'https://code.claude.com/docs/en/settings';
6
3
  const CLAUDE_MEMORY_DOCS = 'https://code.claude.com/docs/en/memory';
7
4
  const CLAUDE_MCP_DOCS = 'https://code.claude.com/docs/en/mcp';
@@ -14,9 +11,10 @@ export const CLAUDE_CONFIG_FILES = [
14
11
  // ---- Claude Code ----
15
12
  {
16
13
  id: 'claude.user.settings',
14
+ runners: ['claude'],
17
15
  kind: 'settings',
18
16
  scope: 'user',
19
- resolve: (_repo, home) => join(claudeHome(home), 'settings.json'),
17
+ resolve: (_repo, home) => join(home.claude, 'settings.json'),
20
18
  label: '~/.claude/settings.json',
21
19
  format: 'json',
22
20
  tracked: 'outside-repo',
@@ -29,6 +27,7 @@ export const CLAUDE_CONFIG_FILES = [
29
27
  },
30
28
  {
31
29
  id: 'claude.project.settings',
30
+ runners: ['claude'],
32
31
  kind: 'settings',
33
32
  scope: 'project',
34
33
  resolve: (repo) => join(repo, '.claude', 'settings.json'),
@@ -44,6 +43,7 @@ export const CLAUDE_CONFIG_FILES = [
44
43
  },
45
44
  {
46
45
  id: 'claude.local.settings',
46
+ runners: ['claude'],
47
47
  kind: 'settings',
48
48
  scope: 'local',
49
49
  resolve: (repo) => join(repo, '.claude', 'settings.local.json'),
@@ -60,6 +60,7 @@ export const CLAUDE_CONFIG_FILES = [
60
60
  },
61
61
  {
62
62
  id: 'claude.project.mcp',
63
+ runners: ['claude'],
63
64
  kind: 'mcp',
64
65
  scope: 'project',
65
66
  resolve: (repo) => join(repo, '.mcp.json'),
@@ -72,9 +73,10 @@ export const CLAUDE_CONFIG_FILES = [
72
73
  },
73
74
  {
74
75
  id: 'claude.user.memory',
76
+ runners: ['claude'],
75
77
  kind: 'memory',
76
78
  scope: 'user',
77
- resolve: (_repo, home) => join(claudeHome(home), 'CLAUDE.md'),
79
+ resolve: (_repo, home) => join(home.claude, 'CLAUDE.md'),
78
80
  label: '~/.claude/CLAUDE.md',
79
81
  format: 'markdown',
80
82
  tracked: 'outside-repo',
@@ -83,6 +85,7 @@ export const CLAUDE_CONFIG_FILES = [
83
85
  },
84
86
  {
85
87
  id: 'claude.project.memory',
88
+ runners: ['claude'],
86
89
  kind: 'memory',
87
90
  scope: 'project',
88
91
  resolve: (repo) => join(repo, 'CLAUDE.md'),
@@ -94,6 +97,7 @@ export const CLAUDE_CONFIG_FILES = [
94
97
  },
95
98
  {
96
99
  id: 'claude.local.memory',
100
+ runners: ['claude'],
97
101
  kind: 'memory',
98
102
  scope: 'local',
99
103
  resolve: (repo) => join(repo, 'CLAUDE.local.md'),
@@ -1 +1 @@
1
- {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/claude/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAA8C,MAAM,mCAAmC,CAAC;AAE1G,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,UAAU,GAAG,CAAC,IAAoB,EAAU,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE/F,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AACxE,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AACpE,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,wBAAwB;IACxB;QACE,EAAE,EAAE,sBAAsB;QAC1B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;QACjE,KAAK,EAAE,yBAAyB;QAChC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,CAAC,qBAAqB,EAAE,OAAO,CAAC;QAC3C,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,8HAA8H;QAChI,SAAS,EAAE,sGAAsG;QACjH,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,eAAe,CAAC;QACzD,KAAK,EAA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qBAAqB;QAC5B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EAAE,oFAAoF;QAChG,OAAO,EAAE,kBAAkB;KAC5B;IACD;QACE,EAAE,EAAE,uBAAuB;QAC3B,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;QAC1C,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,SAAS;QAClB,UAAU,EACR,oJAAoJ;QACtJ,OAAO,EAAE,kBAAkB;KAC5B;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC;QAChD,KAAK,EAAE,iBAAiB;QACxB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE,IAAI;QACZ,UAAU,EACR,4HAA4H;QAC9H,OAAO,EAAE,kBAAkB;KAC5B;CACF,CAAC;AAEF,0GAA0G;AAC1G,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,sEAAsE;YAC5E,YAAY,EAAE,IAAI;SACnB;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/claude/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,MAA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AS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;QAC1C,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,SAAS;QAClB,UAAU,EACR,oJAAoJ;QACtJ,OAAO,EAAE,kBAAkB;KAC5B;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC;QAChD,KAAK,EAAE,iBAAiB;QACxB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE,IAAI;QACZ,UAAU,EACR,4HAA4H;QAC9H,OAAO,EAAE,kBAAkB;KAC5B;CACF,CAAC;AAEF,0GAA0G;AAC1G,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,sEAAsE;YAC5E,YAAY,EAAE,IAAI;SACnB;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
@@ -1,4 +1,3 @@
1
- import { join } from 'node:path';
2
1
  import { defineRunner } from '../../core/runner-definition.js';
3
2
  import { productEnv } from '../../core/product-env.js';
4
3
  import { CLAUDE_FACTS } from './facts.js';
@@ -30,11 +29,7 @@ export const claudeRunner = defineRunner({
30
29
  configFiles: { files: CLAUDE_CONFIG_FILES, agentConfig: CLAUDE_AGENT_CONFIG },
31
30
  extraTools: CLAUDE_EXTRA_TOOLS,
32
31
  login: { ...CLAUDE_LOGIN, executable: () => productEnv('CLAUDE_BIN') ?? 'claude' },
33
- accounts: {
34
- ...CLAUDE_ACCOUNTS,
35
- // `$CLAUDE_CONFIG_DIR` relocates Claude Code's home; a blank value is ignored.
36
- homeDir: (env, home) => env.CLAUDE_CONFIG_DIR?.trim() || join(home, '.claude'),
37
- },
32
+ accounts: CLAUDE_ACCOUNTS,
38
33
  env: CLAUDE_ENV,
39
34
  mock: CLAUDE_MOCK,
40
35
  loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseClaudeStatus }),
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,yBAAyB;AACzB,MAAM,CAAC,MAAM,YAA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CAAC,CAAC,2BAA2B;KACpH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC,oBAAoB;IAC9F,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC,oBAAoB;IAC9F,WAAW,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAC7E,UAAU,EAAE,kBAAkB;IAC9B,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,QAAQ,EAAE;IAClF,QAAQ,EAAE,eAAe;IACzB,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,WAAW;IACjB,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACxF,OAAO,EAAE,cAAc;CACxB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- /** Codex's account data (the `accounts` part's data half). Data only: the definition and the account
1
+ /** Codex's account data (the `accounts` part). Data only: the definition and the account
2
2
  * readers consume it, so importing it loads no code. */
3
3
  export declare const CODEX_ACCOUNTS: {
4
4
  readonly layout: {
@@ -1,4 +1,4 @@
1
- /** Codex's account data (the `accounts` part's data half). Data only: the definition and the account
1
+ /** Codex's account data (the `accounts` part). Data only: the definition and the account
2
2
  * readers consume it, so importing it loads no code. */
3
3
  export const CODEX_ACCOUNTS = {
4
4
  layout: { envVar: 'CODEX_HOME', defaultBindsHome: true, stateFile: 'in-home' },