@hearsay-tools/squawk 0.18.0-pr3966.7514 → 0.18.0-pr3967.7519

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 (111) hide show
  1. package/dist/agent-config/catalog.js +1 -1
  2. package/dist/agent-config/catalog.js.map +1 -1
  3. package/dist/contract/index.js +47 -1
  4. package/dist/contract/runners.d.ts +106 -1
  5. package/dist/core/runner-definition.d.ts +26 -5
  6. package/dist/core/runner-definition.js.map +1 -1
  7. package/dist/delegation/transport.d.ts +65 -65
  8. package/dist/runners/agent-config-notes.d.ts +5 -0
  9. package/dist/runners/agent-config-notes.js +6 -0
  10. package/dist/runners/agent-config-notes.js.map +1 -0
  11. package/dist/runners/claude/config-files.d.ts +3 -0
  12. package/dist/runners/claude/config-files.js +14 -0
  13. package/dist/runners/claude/config-files.js.map +1 -1
  14. package/dist/runners/claude/definition.js +2 -2
  15. package/dist/runners/claude/definition.js.map +1 -1
  16. package/dist/runners/claude/display.d.ts +6 -0
  17. package/dist/runners/claude/display.js +6 -0
  18. package/dist/runners/claude/display.js.map +1 -1
  19. package/dist/runners/claude/models.js +7 -0
  20. package/dist/runners/claude/models.js.map +1 -1
  21. package/dist/runners/codex/config-files.d.ts +3 -0
  22. package/dist/runners/codex/config-files.js +15 -0
  23. package/dist/runners/codex/config-files.js.map +1 -1
  24. package/dist/runners/codex/definition.js +2 -2
  25. package/dist/runners/codex/definition.js.map +1 -1
  26. package/dist/runners/codex/display.d.ts +6 -0
  27. package/dist/runners/codex/display.js +6 -0
  28. package/dist/runners/codex/display.js.map +1 -1
  29. package/dist/runners/codex/models.js +2 -0
  30. package/dist/runners/codex/models.js.map +1 -1
  31. package/dist/runners/omp/config-files.d.ts +3 -0
  32. package/dist/runners/omp/config-files.js +15 -0
  33. package/dist/runners/omp/config-files.js.map +1 -1
  34. package/dist/runners/omp/definition.js +2 -2
  35. package/dist/runners/omp/definition.js.map +1 -1
  36. package/dist/runners/omp/display.d.ts +5 -0
  37. package/dist/runners/omp/display.js +5 -0
  38. package/dist/runners/omp/display.js.map +1 -1
  39. package/dist/runners/omp/models.js +2 -0
  40. package/dist/runners/omp/models.js.map +1 -1
  41. package/dist/runners/opencode/config-files.d.ts +3 -0
  42. package/dist/runners/opencode/config-files.js +15 -0
  43. package/dist/runners/opencode/config-files.js.map +1 -1
  44. package/dist/runners/opencode/definition.js +2 -2
  45. package/dist/runners/opencode/definition.js.map +1 -1
  46. package/dist/runners/opencode/display.d.ts +5 -0
  47. package/dist/runners/opencode/display.js +5 -0
  48. package/dist/runners/opencode/display.js.map +1 -1
  49. package/dist/runners/opencode/models.js +2 -0
  50. package/dist/runners/opencode/models.js.map +1 -1
  51. package/dist/runners/pi/config-files.d.ts +3 -0
  52. package/dist/runners/pi/config-files.js +16 -0
  53. package/dist/runners/pi/config-files.js.map +1 -1
  54. package/dist/runners/pi/definition.js +2 -2
  55. package/dist/runners/pi/definition.js.map +1 -1
  56. package/dist/runners/pi/display.d.ts +6 -0
  57. package/dist/runners/pi/display.js +6 -0
  58. package/dist/runners/pi/display.js.map +1 -1
  59. package/dist/runners/pi/models.js +2 -0
  60. package/dist/runners/pi/models.js.map +1 -1
  61. package/dist/server/activity-routes.d.ts +23 -23
  62. package/dist/server/runners-routes.d.ts +28 -2
  63. package/dist/server/runners-routes.js +11 -3
  64. package/dist/server/runners-routes.js.map +1 -1
  65. package/dist/server/server.d.ts +83 -58
  66. package/package.json +4 -4
  67. package/web/dist/assets/{activity-motion-DQwtapOI.js → activity-motion-Cnn3cBta.js} +1 -1
  68. package/web/dist/assets/{activity-route-BwZiMGfK.js → activity-route-BQUTeE9k.js} +1 -1
  69. package/web/dist/assets/{commit-diff-panel-BVWKMptW.js → commit-diff-panel-ciZBMCl_.js} +1 -1
  70. package/web/dist/assets/diff-CKzeeWgI.js +3 -0
  71. package/web/dist/assets/{diff-view-y7x-a5xQ.js → diff-view-DLgYw1RF.js} +4 -4
  72. package/web/dist/assets/{file-preview-CEaNT3ht.js → file-preview-C_cg6yPh.js} +2 -2
  73. package/web/dist/assets/{git-toolbar-BvvAgmDO.js → git-toolbar-DSslO3UH.js} +1 -1
  74. package/web/dist/assets/{github-B3WekFy2.js → github-C2Sp8zFK.js} +1 -1
  75. package/web/dist/assets/{global-activity-route-D3lMjvxF.js → global-activity-route-DRfUGNFG.js} +1 -1
  76. package/web/dist/assets/index-DskzMp3E.js +14 -0
  77. package/web/dist/assets/{markdown-BojHOSHX.js → markdown-etGRjyCq.js} +3 -3
  78. package/web/dist/assets/picker-pill-Bhsrt_K5.js +15 -0
  79. package/web/dist/assets/preview-pane-connected-KMiTUonG.js +3 -0
  80. package/web/dist/assets/prompt-template-menu-Cl8ES_lT.js +1 -0
  81. package/web/dist/assets/{queries-BpsLvjtu.js → queries-D5f-3moU.js} +1 -1
  82. package/web/dist/assets/{reference-chip-HnvJLwQV.js → reference-chip-BPdU-pFz.js} +1 -1
  83. package/web/dist/assets/repo-git-C42O6Rbh.js +1 -0
  84. package/web/dist/assets/{report-reader-B9tuKd1M.js → report-reader-C6vJyZO2.js} +1 -1
  85. package/web/dist/assets/{reports-DX1Hw80D.js → reports-Cbr9VxBI.js} +1 -1
  86. package/web/dist/assets/run-header-dMWozEAa.js +2 -0
  87. package/web/dist/assets/runners-Dc2_oqXR.js +1 -0
  88. package/web/dist/assets/skills-CUZCFSsJ.js +1 -0
  89. package/web/dist/assets/task-changes-BY9zm_nh.js +1 -0
  90. package/web/dist/assets/{task-commits-BtU9bGk7.js → task-commits-RTEvW8F-.js} +1 -1
  91. package/web/dist/assets/{task-files-B0n2qyBi.js → task-files-BRDIYWSI.js} +1 -1
  92. package/web/dist/assets/{task-github-item-Xr08h42p.js → task-github-item-CWyZ26hk.js} +1 -1
  93. package/web/dist/assets/task-thread-mK7YtcdY.js +9 -0
  94. package/web/dist/assets/{thread-state-DoSqzctg.js → thread-state-BqDqq0jU.js} +1 -1
  95. package/web/dist/assets/{use-desktop-Coqw26IL.js → use-desktop-R2WTomyJ.js} +1 -1
  96. package/web/dist/assets/use-hand-to-agent-state-DnEUiJHj.js +1 -0
  97. package/web/dist/assets/{workflows-BEniI_am.js → workflows-Cm1QRP5j.js} +3 -3
  98. package/web/dist/index.html +7 -8
  99. package/web/dist/assets/agent-accounts-C_UK6pPU.js +0 -1
  100. package/web/dist/assets/diff-CXCoZr3w.js +0 -3
  101. package/web/dist/assets/index-BvMEJ3Ux.js +0 -14
  102. package/web/dist/assets/picker-pill-ToL4uifX.js +0 -15
  103. package/web/dist/assets/preview-pane-connected-BmBOIaSo.js +0 -3
  104. package/web/dist/assets/prompt-template-menu-D8RsDr0w.js +0 -1
  105. package/web/dist/assets/repo-git-jRvRtMVC.js +0 -1
  106. package/web/dist/assets/run-header-ClrfkoK4.js +0 -2
  107. package/web/dist/assets/runners-CIHj9D-C.js +0 -1
  108. package/web/dist/assets/skills-Y60pkNkG.js +0 -1
  109. package/web/dist/assets/task-changes-D-No9noD.js +0 -1
  110. package/web/dist/assets/task-thread-B7lUY_dn.js +0 -9
  111. package/web/dist/assets/use-hand-to-agent-state-PL74uvoL.js +0 -1
@@ -10,7 +10,7 @@ import { registeredRunners } from '../core/runner-registry.js';
10
10
  * every runner's own files.
11
11
  */
12
12
  export function listConfigFiles() {
13
- const files = registeredRunners().flatMap((definition) => definition.configFiles);
13
+ const files = registeredRunners().flatMap((definition) => definition.configFiles.files);
14
14
  return files.filter((file, index) => files.lastIndexOf(file) === index);
15
15
  }
16
16
  /** Look up one entry by its stable id, or undefined when the id is unknown. */
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agent-config/catalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAClF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agent-config/catalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACxF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,OAAO,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -1200,13 +1200,55 @@ var healthResponseSchema = z13.object({
1200
1200
  // ../contract/src/runners.ts
1201
1201
  import { z as z14 } from "zod";
1202
1202
  var runnerModelIdScopeSchema = z14.enum(["own", "provider-spanning"]);
1203
+ var runnerModelPresetSchema = z14.object({
1204
+ id: z14.string(),
1205
+ label: z14.string(),
1206
+ desc: z14.string()
1207
+ });
1208
+ var runnerModelSuggestionsSchema = z14.object({
1209
+ /** The picker's fallback suggestions, in order; the first is auto. */
1210
+ suggested: z14.array(runnerModelPresetSchema),
1211
+ /** Retired model ids. They are no presets any more, but another runner still refuses them. */
1212
+ retired: z14.array(z14.string())
1213
+ });
1214
+ var runnerAgentConfigGroupSchema = z14.object({
1215
+ id: z14.enum(["settings", "mcp", "memory"]),
1216
+ label: z14.string(),
1217
+ /** Group-level caveat, for example where this agent keeps its MCP servers. */
1218
+ note: z14.string().optional(),
1219
+ /** Shown instead of the file list when the group has nothing to list. */
1220
+ empty: z14.string().optional(),
1221
+ /** The group also shows the user-level MCP listing, even with no file. */
1222
+ showsUserMcp: z14.literal(true).optional()
1223
+ });
1224
+ var runnerAgentConfigSchema = z14.object({
1225
+ /** The agent's name on its tab. */
1226
+ label: z14.string(),
1227
+ /** Pane-level caveat shown under the agent's heading. */
1228
+ note: z14.string().optional(),
1229
+ groups: z14.array(runnerAgentConfigGroupSchema)
1230
+ });
1203
1231
  var runnerEntrySchema = z14.object({
1204
1232
  id: runnerSchema,
1205
1233
  /** The runner's name on provider, account and conversation surfaces and in server messages. */
1206
1234
  displayName: z14.string(),
1207
1235
  /** The runner's name in model discovery messages and in the model picker's status line. */
1208
1236
  modelListName: z14.string(),
1209
- modelIdScope: runnerModelIdScopeSchema
1237
+ modelIdScope: runnerModelIdScopeSchema,
1238
+ /** The runner's name in the runner picker. */
1239
+ pickerLabel: z14.string(),
1240
+ /** The runner's line in the runner picker. */
1241
+ pickerDescription: z14.string(),
1242
+ /** A key for the cockpit's icon set. An unknown key shows the generic runner icon. */
1243
+ icon: z14.string(),
1244
+ /** What the accounts pane says when the CLI is not installed. */
1245
+ installHint: z14.string(),
1246
+ /** The command that logs the CLI in, as a terminal runs it. */
1247
+ loginCommand: z14.string(),
1248
+ /** A generic example account folder for the add-account dialog. */
1249
+ accountFolderExample: z14.string().optional(),
1250
+ models: runnerModelSuggestionsSchema,
1251
+ agentConfig: runnerAgentConfigSchema
1210
1252
  });
1211
1253
  var runnersResponseSchema = z14.object({
1212
1254
  runners: z14.array(runnerEntrySchema)
@@ -6484,10 +6526,14 @@ export {
6484
6526
  runWorkflowLabel,
6485
6527
  runWorktreeSetupSchema,
6486
6528
  rungNeedsYou,
6529
+ runnerAgentConfigGroupSchema,
6530
+ runnerAgentConfigSchema,
6487
6531
  runnerEntrySchema,
6488
6532
  runnerModelCatalogResponseSchema,
6489
6533
  runnerModelIdScopeSchema,
6490
6534
  runnerModelOptionSchema,
6535
+ runnerModelPresetSchema,
6536
+ runnerModelSuggestionsSchema,
6491
6537
  runnerModelsSchema,
6492
6538
  runnerSchema,
6493
6539
  runnerSkillListSchema,
@@ -9,7 +9,54 @@ export declare const runnerModelIdScopeSchema: z.ZodEnum<{
9
9
  "provider-spanning": "provider-spanning";
10
10
  }>;
11
11
  export type RunnerModelIdScope = z.infer<typeof runnerModelIdScopeSchema>;
12
- /** One registered runner as the cockpit shows it: the `display` part of its definition. */
12
+ /** One model the picker suggests before host discovery answers. `id: ''` is auto. */
13
+ export declare const runnerModelPresetSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ label: z.ZodString;
16
+ desc: z.ZodString;
17
+ }, z.core.$strip>;
18
+ export type RunnerModelPreset = z.infer<typeof runnerModelPresetSchema>;
19
+ /** The model data the cockpit reads: the picker's suggestions and the ids a runner retired. */
20
+ export declare const runnerModelSuggestionsSchema: z.ZodObject<{
21
+ suggested: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodString;
23
+ label: z.ZodString;
24
+ desc: z.ZodString;
25
+ }, z.core.$strip>>;
26
+ retired: z.ZodArray<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ export type RunnerModelSuggestions = z.infer<typeof runnerModelSuggestionsSchema>;
29
+ /** One group of the Settings → Agent config pane. The file filter stays in the cockpit. */
30
+ export declare const runnerAgentConfigGroupSchema: z.ZodObject<{
31
+ id: z.ZodEnum<{
32
+ mcp: "mcp";
33
+ memory: "memory";
34
+ settings: "settings";
35
+ }>;
36
+ label: z.ZodString;
37
+ note: z.ZodOptional<z.ZodString>;
38
+ empty: z.ZodOptional<z.ZodString>;
39
+ showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
40
+ }, z.core.$strip>;
41
+ export type RunnerAgentConfigGroup = z.infer<typeof runnerAgentConfigGroupSchema>;
42
+ /** The Settings → Agent config pane of one runner. */
43
+ export declare const runnerAgentConfigSchema: z.ZodObject<{
44
+ label: z.ZodString;
45
+ note: z.ZodOptional<z.ZodString>;
46
+ groups: z.ZodArray<z.ZodObject<{
47
+ id: z.ZodEnum<{
48
+ mcp: "mcp";
49
+ memory: "memory";
50
+ settings: "settings";
51
+ }>;
52
+ label: z.ZodString;
53
+ note: z.ZodOptional<z.ZodString>;
54
+ empty: z.ZodOptional<z.ZodString>;
55
+ showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ export type RunnerAgentConfig = z.infer<typeof runnerAgentConfigSchema>;
59
+ /** One registered runner as the cockpit shows it: the parts of its definition the cockpit reads. */
13
60
  export declare const runnerEntrySchema: z.ZodObject<{
14
61
  id: z.ZodString;
15
62
  displayName: z.ZodString;
@@ -18,6 +65,35 @@ export declare const runnerEntrySchema: z.ZodObject<{
18
65
  own: "own";
19
66
  "provider-spanning": "provider-spanning";
20
67
  }>;
68
+ pickerLabel: z.ZodString;
69
+ pickerDescription: z.ZodString;
70
+ icon: z.ZodString;
71
+ installHint: z.ZodString;
72
+ loginCommand: z.ZodString;
73
+ accountFolderExample: z.ZodOptional<z.ZodString>;
74
+ models: z.ZodObject<{
75
+ suggested: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ label: z.ZodString;
78
+ desc: z.ZodString;
79
+ }, z.core.$strip>>;
80
+ retired: z.ZodArray<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ agentConfig: z.ZodObject<{
83
+ label: z.ZodString;
84
+ note: z.ZodOptional<z.ZodString>;
85
+ groups: z.ZodArray<z.ZodObject<{
86
+ id: z.ZodEnum<{
87
+ mcp: "mcp";
88
+ memory: "memory";
89
+ settings: "settings";
90
+ }>;
91
+ label: z.ZodString;
92
+ note: z.ZodOptional<z.ZodString>;
93
+ empty: z.ZodOptional<z.ZodString>;
94
+ showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$strip>;
21
97
  }, z.core.$strip>;
22
98
  export type RunnerEntry = z.infer<typeof runnerEntrySchema>;
23
99
  /**
@@ -34,6 +110,35 @@ export declare const runnersResponseSchema: z.ZodObject<{
34
110
  own: "own";
35
111
  "provider-spanning": "provider-spanning";
36
112
  }>;
113
+ pickerLabel: z.ZodString;
114
+ pickerDescription: z.ZodString;
115
+ icon: z.ZodString;
116
+ installHint: z.ZodString;
117
+ loginCommand: z.ZodString;
118
+ accountFolderExample: z.ZodOptional<z.ZodString>;
119
+ models: z.ZodObject<{
120
+ suggested: z.ZodArray<z.ZodObject<{
121
+ id: z.ZodString;
122
+ label: z.ZodString;
123
+ desc: z.ZodString;
124
+ }, z.core.$strip>>;
125
+ retired: z.ZodArray<z.ZodString>;
126
+ }, z.core.$strip>;
127
+ agentConfig: z.ZodObject<{
128
+ label: z.ZodString;
129
+ note: z.ZodOptional<z.ZodString>;
130
+ groups: z.ZodArray<z.ZodObject<{
131
+ id: z.ZodEnum<{
132
+ mcp: "mcp";
133
+ memory: "memory";
134
+ settings: "settings";
135
+ }>;
136
+ label: z.ZodString;
137
+ note: z.ZodOptional<z.ZodString>;
138
+ empty: z.ZodOptional<z.ZodString>;
139
+ showsUserMcp: z.ZodOptional<z.ZodLiteral<true>>;
140
+ }, z.core.$strip>>;
141
+ }, z.core.$strip>;
37
142
  }, z.core.$strip>>;
38
143
  }, z.core.$strip>;
39
144
  export type RunnersResponse = z.infer<typeof runnersResponseSchema>;
@@ -7,7 +7,7 @@ import type { SkillCatalog } from './runner-skill-catalog.ts';
7
7
  import type { SkillDiscoveryOptions } from './skill-probe.ts';
8
8
  import type { ConfigFileDef } from './runner-config-files.ts';
9
9
  import type { ProviderCommandResult, ProviderConnectionState } from './provider-auth.ts';
10
- import type { RunnerEntry } from '../contract/index.js';
10
+ import type { RunnerAgentConfig, RunnerEntry, RunnerModelPreset } from '../contract/index.js';
11
11
  /**
12
12
  * Everything Squawk knows about one runner, in one object (spec 2026-11-18-runner-definitions).
13
13
  * Each runner's `runners/<id>/definition.ts` exports one, made with `defineRunner`, and an entry
@@ -36,8 +36,8 @@ export interface RunnerDefinition {
36
36
  }) => Promise<ModelOption[]>>;
37
37
  /** Imports the runner's skill list adapter, which lists the skills its CLI sees. */
38
38
  loadSkillCatalog(): Promise<(options: SkillDiscoveryOptions) => Promise<SkillCatalog>>;
39
- /** The native config files that Settings → Agent config shows, in presentation order. */
40
- readonly configFiles: readonly ConfigFileDef[];
39
+ /** The native config files that Settings → Agent config shows, and the runner's pane there. */
40
+ readonly configFiles: RunnerConfigFiles;
41
41
  /** Extra tools unioned onto the default when a step does not set allowedTools. */
42
42
  readonly extraTools: readonly string[];
43
43
  /** Login and auth-status data (the `login` part). */
@@ -86,10 +86,31 @@ export interface RunnerMock {
86
86
  * `scenarios['approval-malformed']`. */
87
87
  readonly malformedApprovalEcho?: string;
88
88
  }
89
- /** The `display` part: a `GET /api/v1/runners` entry without its id. */
90
- export type RunnerDisplay = Omit<RunnerEntry, 'id'>;
89
+ /**
90
+ * The `display` part: a `GET /api/v1/runners` entry without its id, its model presets (the `models`
91
+ * part) and its agent config pane (the `configFiles` part).
92
+ */
93
+ export type RunnerDisplay = Omit<RunnerEntry, 'id' | 'models' | 'agentConfig'>;
94
+ /** A runner's `configFiles` part: its native files and the pane that groups them. Plain data. */
95
+ export interface RunnerConfigFiles {
96
+ /** The native config files that Settings → Agent config shows, in presentation order. */
97
+ readonly files: readonly ConfigFileDef[];
98
+ /** The runner's tab in Settings → Agent config: its name, notes and groups. The cockpit filters
99
+ * the agent config route's files into the groups by each file's `runners`, `kind` and `holdsMcp`. */
100
+ readonly agentConfig: RunnerAgentConfig;
101
+ }
91
102
  /** A runner's model data: plain data in `runners/<id>/models.ts`. */
92
103
  export interface RunnerModelData {
104
+ /**
105
+ * The model picker's fallback suggestions, in order, before host discovery answers. The first is
106
+ * auto (`id: ''`). The cockpit reads them from `GET /api/v1/runners`.
107
+ */
108
+ readonly suggested: readonly RunnerModelPreset[];
109
+ /**
110
+ * Retired model ids: no presets any more, but another runner still refuses them as known
111
+ * foreign ids (`modelConflictsWithRunner` in the cockpit).
112
+ */
113
+ readonly retired: readonly string[];
93
114
  /**
94
115
  * Known preset ids, for mismatch checks (`core/model-presets.ts`). This is not a whitelist:
95
116
  * unknown custom ids remain valid. OpenCode uses native discovery plus a structural guard.
@@ -1 +1 @@
1
- {"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AA4NA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AAkPA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -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,6 +48,18 @@ 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
  } & {
@@ -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;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The pane-level note of every runner whose native files a run reads from the committed base
3
+ * branch (Settings → Agent config). Shared by their `agentConfig` data. Data only.
4
+ */
5
+ export declare const EDITOR_PLUS_COMMIT_NOTE = "An editor-plus-commit: a saved change reaches a run after you commit it to the base branch.";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The pane-level note of every runner whose native files a run reads from the committed base
3
+ * branch (Settings → Agent config). Shared by their `agentConfig` data. Data only.
4
+ */
5
+ export const EDITOR_PLUS_COMMIT_NOTE = 'An editor-plus-commit: a saved change reaches a run after you commit it to the base branch.';
6
+ //# sourceMappingURL=agent-config-notes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-config-notes.js","sourceRoot":"","sources":["../../src/runners/agent-config-notes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAClC,6FAA6F,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ import type { RunnerAgentConfig } from '../../contract/index.js';
2
3
  /**
3
4
  * The Claude runner's native config files for Settings → Agent config. Data only: importing it
4
5
  * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
5
6
  * reads top (broad) to bottom (specific).
6
7
  */
7
8
  export declare const CLAUDE_CONFIG_FILES: readonly ConfigFileDef[];
9
+ /** The Claude tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
10
+ export declare const CLAUDE_AGENT_CONFIG: RunnerAgentConfig;
@@ -109,4 +109,18 @@ export const CLAUDE_CONFIG_FILES = [
109
109
  docsUrl: CLAUDE_MEMORY_DOCS,
110
110
  },
111
111
  ];
112
+ /** The Claude tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
113
+ export const CLAUDE_AGENT_CONFIG = {
114
+ label: 'Claude',
115
+ groups: [
116
+ { id: 'settings', label: 'Settings' },
117
+ {
118
+ id: 'mcp',
119
+ label: 'MCP',
120
+ note: 'A dedicated .mcp.json (key: mcpServers), shared via version control.',
121
+ showsUserMcp: true,
122
+ },
123
+ { id: 'memory', label: 'Memory & instructions' },
124
+ ],
125
+ };
112
126
  //# sourceMappingURL=config-files.js.map
@@ -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;AAGjC,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AACxE,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AACpE,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA6B;IAC3D,wBAAwB;IACxB;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,O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IAAI,EAAE,sEAAsE;YAC5E,YAAY,EAAE,IAAI;SACnB;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
@@ -2,7 +2,7 @@ import { defineRunner } from '../../core/runner-definition.js';
2
2
  import { productEnv } from '../../core/product-env.js';
3
3
  import { CLAUDE_FACTS } from './facts.js';
4
4
  import { CLAUDE_MODELS } from './models.js';
5
- import { CLAUDE_CONFIG_FILES } from './config-files.js';
5
+ import { CLAUDE_AGENT_CONFIG, CLAUDE_CONFIG_FILES } from './config-files.js';
6
6
  import { CLAUDE_EXTRA_TOOLS } from './extra-tools.js';
7
7
  import { CLAUDE_SPEC_SUPPORT } from './spec-support.js';
8
8
  import { CLAUDE_DETECTION } from './detection.js';
@@ -26,7 +26,7 @@ export const claudeRunner = defineRunner({
26
26
  },
27
27
  loadModelCatalog: async () => (await import('./claude-model-catalog.js')).discoverClaudeModels,
28
28
  loadSkillCatalog: async () => (await import('./claude-skill-catalog.js')).discoverClaudeSkills,
29
- configFiles: CLAUDE_CONFIG_FILES,
29
+ configFiles: { files: CLAUDE_CONFIG_FILES, agentConfig: CLAUDE_AGENT_CONFIG },
30
30
  extraTools: CLAUDE_EXTRA_TOOLS,
31
31
  login: { ...CLAUDE_LOGIN, executable: () => productEnv('CLAUDE_BIN') ?? 'claude' },
32
32
  accounts: CLAUDE_ACCOUNTS,
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,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,MAAM,mBAAmB,CAAC;AACxD,OAAO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AAgB;IAC3B,GAAG,EAAE,UAAU;IACf,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,eAAe,EAAE;IACvF,MAAM,EAAE;QACN,GAAG,aAAa;QAChB,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,6CAA6C,CAAC,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"}
@@ -3,4 +3,10 @@ export declare const CLAUDE_DISPLAY: {
3
3
  readonly displayName: 'Claude Code';
4
4
  readonly modelListName: 'Claude';
5
5
  readonly modelIdScope: 'own';
6
+ readonly pickerLabel: 'claude';
7
+ readonly pickerDescription: 'Claude Code CLI';
8
+ readonly icon: 'bot';
9
+ readonly installHint: 'npm i -g @anthropic-ai/claude-code';
10
+ readonly loginCommand: 'claude auth login';
11
+ readonly accountFolderExample: '~/.claude-second';
6
12
  };
@@ -3,5 +3,11 @@ export const CLAUDE_DISPLAY = {
3
3
  displayName: 'Claude Code',
4
4
  modelListName: 'Claude',
5
5
  modelIdScope: 'own',
6
+ pickerLabel: 'claude',
7
+ pickerDescription: 'Claude Code CLI',
8
+ icon: 'bot',
9
+ installHint: 'npm i -g @anthropic-ai/claude-code',
10
+ loginCommand: 'claude auth login',
11
+ accountFolderExample: '~/.claude-second',
6
12
  };
7
13
  //# sourceMappingURL=display.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/claude/display.ts"],"names":[],"mappings":"AAEA,uFAAuF;AACvF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;CACuB,CAAC"}
1
+ {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/claude/display.ts"],"names":[],"mappings":"AAEA,uFAAuF;AACvF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,QAAQ;IACrB,iBAAiB,EAAE,iBAAiB;IACpC,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,oCAAoC;IACjD,YAAY,EAAE,mBAAmB;IACjC,oBAAoB,EAAE,kBAAkB;CACR,CAAC"}
@@ -1,5 +1,12 @@
1
1
  /** The Claude runner's model data. Data only: importing it loads no adapter. */
2
2
  export const CLAUDE_MODELS = {
3
+ suggested: [
4
+ { id: '', label: 'auto', desc: 'Pick the best model per step' },
5
+ { id: 'opus', label: 'opus', desc: 'Deep reasoning for hard tasks' },
6
+ { id: 'sonnet', label: 'sonnet', desc: 'Fast and cheap' },
7
+ { id: 'haiku', label: 'haiku', desc: 'Fastest — simple, scoped tasks' },
8
+ ],
9
+ retired: ['claude-fable-5', 'claude-opus-4-8', 'claude-sonnet-5', 'claude-haiku-4-5'],
3
10
  known: [
4
11
  'opus',
5
12
  'sonnet',
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/claude/models.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC5C,KAAK,EAAE;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;KACnB;IACD,wEAAwE;IACxE,yEAAyE;IACzE,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE;CAClG,CAAC"}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/claude/models.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC5C,SAAS,EAAE;QACT,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,EAAE;QAC/D,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE;QACpE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,gBAAgB,EAAE;QACzD,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,gCAAgC,EAAE;KACxE;IACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;IACrF,KAAK,EAAE;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;KACnB;IACD,wEAAwE;IACxE,yEAAyE;IACzE,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE;CAClG,CAAC"}