@llm4ts/flow 3.2.6 → 3.4.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/dist/Bench.d.ts.map +1 -1
- package/dist/Bench.js +3 -7
- package/dist/Bench.js.map +1 -1
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +2 -8
- package/dist/Context.js.map +1 -1
- package/dist/CostTracker.d.ts +1 -1
- package/dist/CostTracker.d.ts.map +1 -1
- package/dist/CostTracker.js +2 -8
- package/dist/CostTracker.js.map +1 -1
- package/dist/EstimatedUsage.d.ts.map +1 -1
- package/dist/EstimatedUsage.js +4 -3
- package/dist/EstimatedUsage.js.map +1 -1
- package/dist/FlowEvents.d.ts +100 -0
- package/dist/FlowEvents.d.ts.map +1 -1
- package/dist/FlowEvents.js +188 -107
- package/dist/FlowEvents.js.map +1 -1
- package/dist/FlowRecorder.d.ts +1 -1
- package/dist/FlowRecorder.d.ts.map +1 -1
- package/dist/FlowRecorder.js +4 -10
- package/dist/FlowRecorder.js.map +1 -1
- package/dist/GateTriage.d.ts +1 -1
- package/dist/GateTriage.d.ts.map +1 -1
- package/dist/GateTriage.js +1 -1
- package/dist/GateTriage.js.map +1 -1
- package/dist/GraphRules.d.ts +3 -1
- package/dist/GraphRules.d.ts.map +1 -1
- package/dist/GraphRules.js +2 -0
- package/dist/GraphRules.js.map +1 -1
- package/dist/JudgmentLog.d.ts.map +1 -1
- package/dist/JudgmentLog.js +5 -8
- package/dist/JudgmentLog.js.map +1 -1
- package/dist/NodePreflight.d.ts.map +1 -1
- package/dist/NodePreflight.js +2 -2
- package/dist/NodePreflight.js.map +1 -1
- package/dist/OracleGuard.d.ts +1 -1
- package/dist/OracleGuard.d.ts.map +1 -1
- package/dist/OracleGuard.js +1 -1
- package/dist/OracleGuard.js.map +1 -1
- package/dist/Orientation.d.ts.map +1 -1
- package/dist/Orientation.js +3 -5
- package/dist/Orientation.js.map +1 -1
- package/dist/Retro.d.ts.map +1 -1
- package/dist/Retro.js +2 -3
- package/dist/Retro.js.map +1 -1
- package/dist/Settings.d.ts +105 -0
- package/dist/Settings.d.ts.map +1 -0
- package/dist/Settings.js +198 -0
- package/dist/Settings.js.map +1 -0
- package/dist/Spans.d.ts.map +1 -1
- package/dist/Spans.js +2 -4
- package/dist/Spans.js.map +1 -1
- package/dist/Survey.d.ts +2 -4
- package/dist/Survey.d.ts.map +1 -1
- package/dist/Survey.js +2 -2
- package/dist/Survey.js.map +1 -1
- package/dist/TestEvidence.d.ts.map +1 -1
- package/dist/TestEvidence.js +4 -3
- package/dist/TestEvidence.js.map +1 -1
- package/dist/Workspace.d.ts.map +1 -1
- package/dist/Workspace.js +5 -22
- package/dist/Workspace.js.map +1 -1
- package/dist/settings/Registry.d.ts +625 -0
- package/dist/settings/Registry.d.ts.map +1 -0
- package/dist/settings/Registry.js +742 -0
- package/dist/settings/Registry.js.map +1 -0
- package/dist/settings/Value.d.ts +56 -0
- package/dist/settings/Value.d.ts.map +1 -0
- package/dist/settings/Value.js +107 -0
- package/dist/settings/Value.js.map +1 -0
- package/package.json +3 -2
- package/src/Bench.ts +6 -19
- package/src/Context.ts +2 -8
- package/src/CostTracker.ts +3 -15
- package/src/EstimatedUsage.ts +4 -3
- package/src/FlowEvents.ts +383 -117
- package/src/FlowRecorder.ts +7 -16
- package/src/GateTriage.ts +1 -1
- package/src/GraphRules.ts +4 -1
- package/src/JudgmentLog.ts +5 -13
- package/src/NodePreflight.ts +2 -4
- package/src/OracleGuard.ts +1 -1
- package/src/Orientation.ts +3 -5
- package/src/Retro.ts +2 -5
- package/src/Settings.ts +309 -0
- package/src/Spans.ts +2 -4
- package/src/Survey.ts +2 -2
- package/src/TestEvidence.ts +4 -3
- package/src/Workspace.ts +7 -24
- package/src/settings/Registry.ts +802 -0
- package/src/settings/Value.ts +250 -0
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
import * as Duration from "effect/Duration";
|
|
2
|
+
import { apiProviderNames, coderNames, offeredApiProviderNames, offeredCoderNames } from "@llm4ts/core/Models";
|
|
3
|
+
import * as Value from "./Value.js";
|
|
4
|
+
/**
|
|
5
|
+
* Docs sections and `config show --all` groups, in this order.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export const settingGroups = [
|
|
10
|
+
["seats", "Seats and models"],
|
|
11
|
+
["repositories", "Repositories, packs and worktrees"],
|
|
12
|
+
["gates", "Gates"],
|
|
13
|
+
["review", "Review, judging and stalls"],
|
|
14
|
+
["context", "Context and estate bounds"],
|
|
15
|
+
["modernization", "Modernization flows"],
|
|
16
|
+
["ports", "Port flows"],
|
|
17
|
+
["soap-ace", "Kit: soap-ace"],
|
|
18
|
+
["j2ee-nextjs", "Kit: j2ee-nextjs"],
|
|
19
|
+
["terminal", "Terminal, transcripts and the agent tree"],
|
|
20
|
+
["telemetry", "OpenTelemetry and usage estimates"],
|
|
21
|
+
["gemini-bridge", "Gemini bridge"],
|
|
22
|
+
["operator", "MCP operator"],
|
|
23
|
+
["launch", "Set by llm4ts"]
|
|
24
|
+
];
|
|
25
|
+
const setting = (spec) => spec;
|
|
26
|
+
const fallback = {
|
|
27
|
+
value: (value, text) => ({
|
|
28
|
+
_tag: "Default",
|
|
29
|
+
value,
|
|
30
|
+
text
|
|
31
|
+
}),
|
|
32
|
+
perFlow: (text) => ({ _tag: "PerFlow", value: undefined, text }),
|
|
33
|
+
off: (text) => ({ _tag: "Off", value: undefined, text })
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Every `LLM4TS_*` name llm4ts reads. `examples/test/settings-sync.test.ts`
|
|
37
|
+
* fails when the code reads a name this table lacks, or the table holds a
|
|
38
|
+
* name the code no longer mentions.
|
|
39
|
+
*
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
export const settings = {
|
|
43
|
+
// ---- seats ------------------------------------------------------------------
|
|
44
|
+
LLM4TS_CODER: setting({
|
|
45
|
+
group: "seats",
|
|
46
|
+
scope: "global",
|
|
47
|
+
value: Value.oneOf(coderNames),
|
|
48
|
+
fallback: fallback.perFlow("claude; pi in the epic flows"),
|
|
49
|
+
doc: `The coding agent that edits files: ${Value.listed(offeredCoderNames)}.`
|
|
50
|
+
}),
|
|
51
|
+
LLM4TS_REASONER: setting({
|
|
52
|
+
group: "seats",
|
|
53
|
+
scope: "global",
|
|
54
|
+
value: Value.oneOf(coderNames),
|
|
55
|
+
fallback: fallback.perFlow("claude"),
|
|
56
|
+
doc: "The agent that plans, reviews and judges in the epic, soap, roundtable and taskforce flows; any coder name."
|
|
57
|
+
}),
|
|
58
|
+
LLM4TS_CODER_MODEL: setting({
|
|
59
|
+
group: "seats",
|
|
60
|
+
scope: "global",
|
|
61
|
+
value: Value.text,
|
|
62
|
+
fallback: fallback.perFlow("the agent's own default; the local and sdd flows name theirs"),
|
|
63
|
+
doc: "The coder seat's model. pi takes provider/model, such as openai-codex/gpt-5.5."
|
|
64
|
+
}),
|
|
65
|
+
LLM4TS_REASONING_MODEL: setting({
|
|
66
|
+
group: "seats",
|
|
67
|
+
scope: "global",
|
|
68
|
+
value: Value.text,
|
|
69
|
+
fallback: fallback.perFlow("the agent's own default; the local and sdd flows name theirs"),
|
|
70
|
+
doc: "The reasoning seat's model."
|
|
71
|
+
}),
|
|
72
|
+
LLM4TS_CODER_FLAGS: setting({
|
|
73
|
+
group: "seats",
|
|
74
|
+
scope: "global",
|
|
75
|
+
value: Value.cliFlags,
|
|
76
|
+
fallback: fallback.off("none"),
|
|
77
|
+
doc: "Extra CLI flags for the coder seat in the epic flows, on top of its preset's own."
|
|
78
|
+
}),
|
|
79
|
+
LLM4TS_REASONING_FLAGS: setting({
|
|
80
|
+
group: "seats",
|
|
81
|
+
scope: "global",
|
|
82
|
+
value: Value.cliFlags,
|
|
83
|
+
fallback: fallback.off("none"),
|
|
84
|
+
doc: "Extra CLI flags for the reasoning seat in the epic flows."
|
|
85
|
+
}),
|
|
86
|
+
LLM4TS_CODER_HEALTH_URL: setting({
|
|
87
|
+
group: "seats",
|
|
88
|
+
scope: "global",
|
|
89
|
+
value: Value.url,
|
|
90
|
+
fallback: fallback.perFlow("the local server's model list at its default address"),
|
|
91
|
+
doc: "The URL polled until a local serving engine answers again after it went down."
|
|
92
|
+
}),
|
|
93
|
+
LLM4TS_PROVIDER: setting({
|
|
94
|
+
group: "seats",
|
|
95
|
+
scope: "global",
|
|
96
|
+
value: Value.oneOf(apiProviderNames),
|
|
97
|
+
fallback: fallback.value("mock", "mock"),
|
|
98
|
+
doc: `The API provider of provider-driven flows such as hello: ${Value.listed(offeredApiProviderNames)}. Any provider but mock needs LLM4TS_MODEL.`
|
|
99
|
+
}),
|
|
100
|
+
LLM4TS_MODEL: setting({
|
|
101
|
+
group: "seats",
|
|
102
|
+
scope: "global",
|
|
103
|
+
value: Value.text,
|
|
104
|
+
fallback: fallback.off("none; required unless the provider is mock"),
|
|
105
|
+
doc: "The model LLM4TS_PROVIDER serves."
|
|
106
|
+
}),
|
|
107
|
+
LLM4TS_JUDGMENT_PROVIDER: setting({
|
|
108
|
+
group: "seats",
|
|
109
|
+
scope: "global",
|
|
110
|
+
value: Value.oneOf(apiProviderNames),
|
|
111
|
+
fallback: fallback.off("the reasoning seat answers typed judgments"),
|
|
112
|
+
doc: "The API provider of the judgment seat, named the way LLM4TS_PROVIDER is."
|
|
113
|
+
}),
|
|
114
|
+
LLM4TS_JUDGMENT_MODEL: setting({
|
|
115
|
+
group: "seats",
|
|
116
|
+
scope: "global",
|
|
117
|
+
value: Value.text,
|
|
118
|
+
fallback: fallback.off("none; required with a judgment provider other than mock"),
|
|
119
|
+
doc: "The model LLM4TS_JUDGMENT_PROVIDER serves."
|
|
120
|
+
}),
|
|
121
|
+
LLM4TS_JUDGMENT_BACKEND: setting({
|
|
122
|
+
group: "seats",
|
|
123
|
+
scope: "global",
|
|
124
|
+
value: Value.oneOf(["llm", "typesafe"]),
|
|
125
|
+
fallback: fallback.value("llm", "llm"),
|
|
126
|
+
doc: "What answers typed judgments: an LLM seat, or the TypeSafe API (needs TYPESAFE_API_KEY)."
|
|
127
|
+
}),
|
|
128
|
+
LLM4TS_JUDGMENT_BATCHING: setting({
|
|
129
|
+
group: "seats",
|
|
130
|
+
scope: "global",
|
|
131
|
+
value: Value.oneOf(["independent", "shared-prefix"]),
|
|
132
|
+
fallback: fallback.value("independent", "independent"),
|
|
133
|
+
doc: "shared-prefix sends the questions of one judgment request behind one shared prompt prefix, for a local model that caches it."
|
|
134
|
+
}),
|
|
135
|
+
LLM4TS_ISOLATED: setting({
|
|
136
|
+
group: "seats",
|
|
137
|
+
scope: "project",
|
|
138
|
+
value: Value.toggle,
|
|
139
|
+
fallback: fallback.value(false, "off"),
|
|
140
|
+
doc: "Asks every CLI seat to leave the repository's own hooks, MCP servers, settings and instruction files unloaded."
|
|
141
|
+
}),
|
|
142
|
+
LLM4TS_ROSTER: setting({
|
|
143
|
+
group: "seats",
|
|
144
|
+
scope: "project",
|
|
145
|
+
value: Value.text,
|
|
146
|
+
fallback: fallback.off("the user's and the repository's roster.json, merged"),
|
|
147
|
+
flag: "--roster",
|
|
148
|
+
doc: "The executor roster in place of the roster.json files: a roster file, or none for one executor per seat."
|
|
149
|
+
}),
|
|
150
|
+
LLM4TS_EXECUTORS: setting({
|
|
151
|
+
group: "seats",
|
|
152
|
+
scope: "run",
|
|
153
|
+
value: Value.names,
|
|
154
|
+
fallback: fallback.off("every executor of the roster"),
|
|
155
|
+
flag: "--executors",
|
|
156
|
+
doc: "Narrows the roster to these executor ids."
|
|
157
|
+
}),
|
|
158
|
+
// ---- repositories -----------------------------------------------------------
|
|
159
|
+
LLM4TS_PACK: setting({
|
|
160
|
+
group: "repositories",
|
|
161
|
+
scope: "project",
|
|
162
|
+
value: Value.text,
|
|
163
|
+
fallback: fallback.perFlow("cobol-springboot in the modernization flows; j2ee-nextjs-spa in the convert flows; none in the epic flows"),
|
|
164
|
+
flag: "--pack",
|
|
165
|
+
doc: "The pack: a kit pack name, kit/pack, or a directory holding pack.md."
|
|
166
|
+
}),
|
|
167
|
+
LLM4TS_LEGACY_REPO: setting({
|
|
168
|
+
group: "repositories",
|
|
169
|
+
scope: "project",
|
|
170
|
+
value: Value.path,
|
|
171
|
+
fallback: fallback.off("none"),
|
|
172
|
+
requiredBy: ["modernize-seed", "convert-page", "convert-all", "convert-feature"],
|
|
173
|
+
doc: "The legacy repository holding docs/modernization/, for flows rooted at the target. epic-design needs it too, except with --list."
|
|
174
|
+
}),
|
|
175
|
+
LLM4TS_TARGET_REPO: setting({
|
|
176
|
+
group: "repositories",
|
|
177
|
+
scope: "project",
|
|
178
|
+
value: Value.path,
|
|
179
|
+
fallback: fallback.off("none: a refine proposal claims nothing as provided by the target"),
|
|
180
|
+
doc: "The target repository, mounted read-only by modernize-refine; `llm4ts refine --target` sets it."
|
|
181
|
+
}),
|
|
182
|
+
LLM4TS_WORKTREE_ROOT: setting({
|
|
183
|
+
group: "repositories",
|
|
184
|
+
scope: "project",
|
|
185
|
+
value: Value.path,
|
|
186
|
+
fallback: fallback.perFlow("<repo>.worktrees beside the repository"),
|
|
187
|
+
doc: "Where the epic flows and taskforce keep their worktrees, one folder per epic."
|
|
188
|
+
}),
|
|
189
|
+
LLM4TS_WORKTREE_SETUP: setting({
|
|
190
|
+
group: "repositories",
|
|
191
|
+
scope: "project",
|
|
192
|
+
value: Value.commandOrNone,
|
|
193
|
+
fallback: fallback.perFlow("the pack's setup:, else pnpm install --offline"),
|
|
194
|
+
doc: "Prepares each story worktree before its coder starts; empty skips setup."
|
|
195
|
+
}),
|
|
196
|
+
LLM4TS_SETUP_AGENT: setting({
|
|
197
|
+
group: "repositories",
|
|
198
|
+
scope: "project",
|
|
199
|
+
value: Value.toggle,
|
|
200
|
+
fallback: fallback.value(false, "off"),
|
|
201
|
+
doc: "Gives the coder one turn to repair a failed worktree setup, then runs the setup again."
|
|
202
|
+
}),
|
|
203
|
+
LLM4TS_APP_DIR: setting({
|
|
204
|
+
group: "repositories",
|
|
205
|
+
scope: "project",
|
|
206
|
+
value: Value.text,
|
|
207
|
+
fallback: fallback.perFlow("the repository root, or its one first-level folder with a package.json"),
|
|
208
|
+
doc: "The folder inside the repository where setup and gates run, relative to it (frontend)."
|
|
209
|
+
}),
|
|
210
|
+
LLM4TS_NODE_CHECK: setting({
|
|
211
|
+
group: "repositories",
|
|
212
|
+
scope: "project",
|
|
213
|
+
value: Value.toggle,
|
|
214
|
+
fallback: fallback.value(true, "on"),
|
|
215
|
+
doc: "Checks the node on PATH against the repository's pin before gates run; off runs anyway."
|
|
216
|
+
}),
|
|
217
|
+
// ---- gates ------------------------------------------------------------------
|
|
218
|
+
LLM4TS_GATES: setting({
|
|
219
|
+
group: "gates",
|
|
220
|
+
scope: "project",
|
|
221
|
+
value: Value.commands,
|
|
222
|
+
fallback: fallback.perFlow("the pack's ## Gates, else pnpm typecheck, lint, test and build where the app defines them"),
|
|
223
|
+
doc: "The gate commands of the epic flows, overriding the pack's."
|
|
224
|
+
}),
|
|
225
|
+
LLM4TS_GATE_TIMEOUT: setting({
|
|
226
|
+
group: "gates",
|
|
227
|
+
scope: "project",
|
|
228
|
+
value: Value.seconds,
|
|
229
|
+
fallback: fallback.value(Duration.seconds(1200), "1200 seconds"),
|
|
230
|
+
doc: "How long a gate may run before it is killed and reported as a hang."
|
|
231
|
+
}),
|
|
232
|
+
LLM4TS_GATE_TAIL_CHARS: setting({
|
|
233
|
+
group: "gates",
|
|
234
|
+
scope: "project",
|
|
235
|
+
value: Value.positive,
|
|
236
|
+
fallback: fallback.value(4000, "4000"),
|
|
237
|
+
doc: "How many characters of a red gate's output the fix prompt carries; at least 500 in port-tests."
|
|
238
|
+
}),
|
|
239
|
+
LLM4TS_TEST_REPORT: setting({
|
|
240
|
+
group: "gates",
|
|
241
|
+
scope: "project",
|
|
242
|
+
value: Value.text,
|
|
243
|
+
fallback: fallback.off("none; epic-mvp needs this or LLM4TS_TEST_ONE"),
|
|
244
|
+
doc: "The JUnit XML report the test gate writes, relative to the app folder; epic-mvp reads its evidence there."
|
|
245
|
+
}),
|
|
246
|
+
LLM4TS_TEST_ONE: setting({
|
|
247
|
+
group: "gates",
|
|
248
|
+
scope: "project",
|
|
249
|
+
value: Value.command,
|
|
250
|
+
fallback: fallback.off("none; epic-mvp needs this or LLM4TS_TEST_REPORT"),
|
|
251
|
+
doc: "A test command run once per outcome in epic-mvp, with {tag} or {tagRegex} replaced by the outcome's tag."
|
|
252
|
+
}),
|
|
253
|
+
// ---- review -----------------------------------------------------------------
|
|
254
|
+
LLM4TS_JUDGE_ROUNDS: setting({
|
|
255
|
+
group: "review",
|
|
256
|
+
scope: "project",
|
|
257
|
+
value: Value.positive,
|
|
258
|
+
fallback: fallback.perFlow("3 story-review rounds in the epic flows; 2 judge attempts elsewhere"),
|
|
259
|
+
doc: "Judge attempts before a story, page or program fails; in the epic flows --review-rounds and --judge-rounds set it too."
|
|
260
|
+
}),
|
|
261
|
+
LLM4TS_REVIEW_VOTES: setting({
|
|
262
|
+
group: "review",
|
|
263
|
+
scope: "project",
|
|
264
|
+
value: Value.positive,
|
|
265
|
+
fallback: fallback.perFlow("1; 2 in the port flows"),
|
|
266
|
+
doc: "Independent votes of the adversarial review lens per round."
|
|
267
|
+
}),
|
|
268
|
+
LLM4TS_REVIEW_FIXER: setting({
|
|
269
|
+
group: "review",
|
|
270
|
+
scope: "project",
|
|
271
|
+
value: Value.oneOf(["separate"]),
|
|
272
|
+
fallback: fallback.off("the implementer's own chat fixes review findings"),
|
|
273
|
+
doc: "separate sends review findings to a fresh fixer chat."
|
|
274
|
+
}),
|
|
275
|
+
LLM4TS_MERGE_REVISIONS: setting({
|
|
276
|
+
group: "review",
|
|
277
|
+
scope: "project",
|
|
278
|
+
value: Value.count,
|
|
279
|
+
fallback: fallback.value(1, "1"),
|
|
280
|
+
doc: "Times a story whose merge turns the epic gates red goes back to be fixed; 0 fails at once. --merge-revisions sets it too."
|
|
281
|
+
}),
|
|
282
|
+
LLM4TS_TASK_CONCURRENCY: setting({
|
|
283
|
+
group: "review",
|
|
284
|
+
scope: "project",
|
|
285
|
+
value: Value.positive,
|
|
286
|
+
fallback: fallback.value(1, "1"),
|
|
287
|
+
doc: "Coders working on one story at once; --task-concurrency sets it too."
|
|
288
|
+
}),
|
|
289
|
+
LLM4TS_DEFER_FINDINGS: setting({
|
|
290
|
+
group: "review",
|
|
291
|
+
scope: "project",
|
|
292
|
+
value: Value.toggle,
|
|
293
|
+
fallback: fallback.value(false, "off"),
|
|
294
|
+
doc: "Fixes only Critical review findings in place and defers the rest to one refine round after the last merge; --defer-findings sets it too."
|
|
295
|
+
}),
|
|
296
|
+
LLM4TS_DEFER_TESTS: setting({
|
|
297
|
+
group: "review",
|
|
298
|
+
scope: "project",
|
|
299
|
+
value: Value.toggle,
|
|
300
|
+
fallback: fallback.value(false, "off"),
|
|
301
|
+
doc: "Records the judge's tests score as debt instead of failing the story; --defer-tests sets it too."
|
|
302
|
+
}),
|
|
303
|
+
LLM4TS_STALL_REPEATS: setting({
|
|
304
|
+
group: "review",
|
|
305
|
+
scope: "project",
|
|
306
|
+
value: Value.positive,
|
|
307
|
+
fallback: fallback.value(5, "5"),
|
|
308
|
+
doc: "Ends a coder turn that repeats one tool call this many times in a row; at least 2."
|
|
309
|
+
}),
|
|
310
|
+
LLM4TS_STALL_MINUTES: setting({
|
|
311
|
+
group: "review",
|
|
312
|
+
scope: "project",
|
|
313
|
+
value: Value.minutes,
|
|
314
|
+
fallback: fallback.off("no silence limit"),
|
|
315
|
+
doc: "Ends a coder turn that prints nothing for this long."
|
|
316
|
+
}),
|
|
317
|
+
// ---- context ----------------------------------------------------------------
|
|
318
|
+
LLM4TS_CONTEXT_BUDGET: setting({
|
|
319
|
+
group: "context",
|
|
320
|
+
scope: "project",
|
|
321
|
+
value: Value.positive,
|
|
322
|
+
fallback: fallback.value(400_000, "400000"),
|
|
323
|
+
doc: "The character budget of the evidence one prompt may carry."
|
|
324
|
+
}),
|
|
325
|
+
LLM4TS_ORIENTATION_CHARS: setting({
|
|
326
|
+
group: "context",
|
|
327
|
+
scope: "project",
|
|
328
|
+
value: Value.count,
|
|
329
|
+
fallback: fallback.value(8000, "8000"),
|
|
330
|
+
doc: "How much of the repository digest the planner and every coder see; 0 leaves it out."
|
|
331
|
+
}),
|
|
332
|
+
LLM4TS_STORY_CONTEXT_CHARS: setting({
|
|
333
|
+
group: "context",
|
|
334
|
+
scope: "project",
|
|
335
|
+
value: Value.count,
|
|
336
|
+
fallback: fallback.value(40_000, "40000"),
|
|
337
|
+
doc: "How much of the code a story starts from its coder sees up front; 0 leaves it out."
|
|
338
|
+
}),
|
|
339
|
+
LLM4TS_RETRO_CHARS: setting({
|
|
340
|
+
group: "context",
|
|
341
|
+
scope: "project",
|
|
342
|
+
value: Value.positive,
|
|
343
|
+
fallback: fallback.value(60_000, "60000"),
|
|
344
|
+
doc: "The character budget of the digest epic-retro reads."
|
|
345
|
+
}),
|
|
346
|
+
LLM4TS_MAX_READ_BYTES: setting({
|
|
347
|
+
group: "context",
|
|
348
|
+
scope: "project",
|
|
349
|
+
value: Value.positive,
|
|
350
|
+
fallback: fallback.perFlow("the workspace's cap; 8388608 for a legacy estate"),
|
|
351
|
+
doc: "The per-file read cap, for estates whose sources exceed it."
|
|
352
|
+
}),
|
|
353
|
+
LLM4TS_MAX_DISCOVER_RESULTS: setting({
|
|
354
|
+
group: "context",
|
|
355
|
+
scope: "project",
|
|
356
|
+
value: Value.positive,
|
|
357
|
+
fallback: fallback.perFlow("the workspace's cap; 20000 for a legacy estate"),
|
|
358
|
+
doc: "How many files a discovery may return before it fails."
|
|
359
|
+
}),
|
|
360
|
+
LLM4TS_EXCLUDE_DIRS: setting({
|
|
361
|
+
group: "context",
|
|
362
|
+
scope: "project",
|
|
363
|
+
value: Value.names,
|
|
364
|
+
fallback: fallback.perFlow("the built-in pruned list (.git, node_modules, …)"),
|
|
365
|
+
doc: "Directory names discovery prunes, replacing the built-in list."
|
|
366
|
+
}),
|
|
367
|
+
// ---- modernization ----------------------------------------------------------
|
|
368
|
+
LLM4TS_WAVE: setting({
|
|
369
|
+
group: "modernization",
|
|
370
|
+
scope: "run",
|
|
371
|
+
value: Value.text,
|
|
372
|
+
fallback: fallback.off("every wave, with estate-wide coverage"),
|
|
373
|
+
doc: "Scopes modernize-extract to one wave of the approved plan."
|
|
374
|
+
}),
|
|
375
|
+
LLM4TS_EXTRACT_CONCURRENCY: setting({
|
|
376
|
+
group: "modernization",
|
|
377
|
+
scope: "project",
|
|
378
|
+
value: Value.positive,
|
|
379
|
+
fallback: fallback.value(1, "1"),
|
|
380
|
+
doc: "Programs modernize-extract extracts and judges at once."
|
|
381
|
+
}),
|
|
382
|
+
LLM4TS_ANALYST_TURNS: setting({
|
|
383
|
+
group: "modernization",
|
|
384
|
+
scope: "project",
|
|
385
|
+
value: Value.positive,
|
|
386
|
+
fallback: fallback.value(48, "48"),
|
|
387
|
+
doc: "The turn budget of one program's analyst in modernize-extract and modernize-refine."
|
|
388
|
+
}),
|
|
389
|
+
LLM4TS_MAX_CLOSURE_FILES: setting({
|
|
390
|
+
group: "modernization",
|
|
391
|
+
scope: "project",
|
|
392
|
+
value: Value.positive,
|
|
393
|
+
fallback: fallback.perFlow("40 in the modernization flows; 12 in the convert flows"),
|
|
394
|
+
doc: "How many files of a program's include closure are named as evidence."
|
|
395
|
+
}),
|
|
396
|
+
LLM4TS_GRAPH_REFINE: setting({
|
|
397
|
+
group: "modernization",
|
|
398
|
+
scope: "project",
|
|
399
|
+
value: Value.toggle,
|
|
400
|
+
fallback: fallback.value(true, "on"),
|
|
401
|
+
doc: "The LLM pass that refines modernize-survey's code graph; off ships the regex graph."
|
|
402
|
+
}),
|
|
403
|
+
LLM4TS_REGROUP: setting({
|
|
404
|
+
group: "modernization",
|
|
405
|
+
scope: "run",
|
|
406
|
+
value: Value.toggle,
|
|
407
|
+
fallback: fallback.value(false, "off"),
|
|
408
|
+
doc: "Makes modernize-refine consolidate domains again even when domains.md is current; `llm4ts refine` sets it for its regroup action."
|
|
409
|
+
}),
|
|
410
|
+
LLM4TS_MARK_DEEPEN: setting({
|
|
411
|
+
group: "modernization",
|
|
412
|
+
scope: "run",
|
|
413
|
+
value: Value.toggle,
|
|
414
|
+
fallback: fallback.value(false, "off"),
|
|
415
|
+
doc: "Makes modernize-pack-upgrade add a ## Deepen request to every incompatible program."
|
|
416
|
+
}),
|
|
417
|
+
LLM4TS_APPROVER: setting({
|
|
418
|
+
group: "modernization",
|
|
419
|
+
scope: "global",
|
|
420
|
+
value: Value.text,
|
|
421
|
+
fallback: fallback.off("the OS user"),
|
|
422
|
+
doc: "The name that signs refine decisions and the seed's provenance."
|
|
423
|
+
}),
|
|
424
|
+
LLM4TS_BENCH_MODE: setting({
|
|
425
|
+
group: "modernization",
|
|
426
|
+
scope: "run",
|
|
427
|
+
value: Value.oneOf(["measure", "report"]),
|
|
428
|
+
fallback: fallback.perFlow("measure; report when the task is `report`"),
|
|
429
|
+
doc: "Whether modernize-bench measures a run or prints the comparison report."
|
|
430
|
+
}),
|
|
431
|
+
LLM4TS_BENCH_PROJECT: setting({
|
|
432
|
+
group: "modernization",
|
|
433
|
+
scope: "run",
|
|
434
|
+
value: Value.positive,
|
|
435
|
+
fallback: fallback.off("no projection"),
|
|
436
|
+
doc: "A program count the bench report projects its measured cost onto."
|
|
437
|
+
}),
|
|
438
|
+
LLM4TS_TARGET_KIND: setting({
|
|
439
|
+
group: "modernization",
|
|
440
|
+
scope: "run",
|
|
441
|
+
value: Value.oneOf(["frontend", "backend"]),
|
|
442
|
+
fallback: fallback.off("none"),
|
|
443
|
+
requiredBy: ["pack-fork"],
|
|
444
|
+
doc: "Which side of the target repository pack-fork reads conventions from."
|
|
445
|
+
}),
|
|
446
|
+
LLM4TS_FORK_AS: setting({
|
|
447
|
+
group: "modernization",
|
|
448
|
+
scope: "run",
|
|
449
|
+
value: Value.text,
|
|
450
|
+
fallback: fallback.off("none"),
|
|
451
|
+
requiredBy: ["pack-fork"],
|
|
452
|
+
doc: "The forked pack's name, lowercase kebab-case."
|
|
453
|
+
}),
|
|
454
|
+
LLM4TS_FEEDBACK: setting({
|
|
455
|
+
group: "modernization",
|
|
456
|
+
scope: "run",
|
|
457
|
+
value: Value.text,
|
|
458
|
+
fallback: fallback.off("none: a fresh fork"),
|
|
459
|
+
doc: "What to fix in the fork LLM4TS_FORK_AS names, revising it instead of starting over."
|
|
460
|
+
}),
|
|
461
|
+
// ---- ports ------------------------------------------------------------------
|
|
462
|
+
LLM4TS_PORT_PILOT: setting({
|
|
463
|
+
group: "ports",
|
|
464
|
+
scope: "run",
|
|
465
|
+
value: Value.count,
|
|
466
|
+
fallback: fallback.value(0, "0: no pilot"),
|
|
467
|
+
doc: "Ports this many files first, then stops for an approval of the pilot report."
|
|
468
|
+
}),
|
|
469
|
+
LLM4TS_PORT_CONCURRENCY: setting({
|
|
470
|
+
group: "ports",
|
|
471
|
+
scope: "project",
|
|
472
|
+
value: Value.positive,
|
|
473
|
+
fallback: fallback.value(4, "4"),
|
|
474
|
+
doc: "Files the port flows work on at once."
|
|
475
|
+
}),
|
|
476
|
+
LLM4TS_PORT_BATCH: setting({
|
|
477
|
+
group: "ports",
|
|
478
|
+
scope: "project",
|
|
479
|
+
value: Value.positive,
|
|
480
|
+
fallback: fallback.value(100, "100"),
|
|
481
|
+
doc: "Files port-files takes from the queue per run."
|
|
482
|
+
}),
|
|
483
|
+
LLM4TS_PORT_SOURCE_CHARS: setting({
|
|
484
|
+
group: "ports",
|
|
485
|
+
scope: "project",
|
|
486
|
+
value: Value.positive,
|
|
487
|
+
fallback: fallback.value(120_000, "120000"),
|
|
488
|
+
doc: "How many characters of one source file a port prompt carries; at least 1000."
|
|
489
|
+
}),
|
|
490
|
+
LLM4TS_PORT_SHARDS: setting({
|
|
491
|
+
group: "ports",
|
|
492
|
+
scope: "project",
|
|
493
|
+
value: Value.count,
|
|
494
|
+
fallback: fallback.value(0, "0: one checkout"),
|
|
495
|
+
doc: "Worktrees port-files spreads its work over, under .llm4ts/port/shards."
|
|
496
|
+
}),
|
|
497
|
+
LLM4TS_PORT_TEST_ROUNDS: setting({
|
|
498
|
+
group: "ports",
|
|
499
|
+
scope: "project",
|
|
500
|
+
value: Value.positive,
|
|
501
|
+
fallback: fallback.value(4, "4"),
|
|
502
|
+
doc: "Fix rounds port-tests gives a red test gate."
|
|
503
|
+
}),
|
|
504
|
+
LLM4TS_PORT_COMPILE_ROUNDS: setting({
|
|
505
|
+
group: "ports",
|
|
506
|
+
scope: "project",
|
|
507
|
+
value: Value.positive,
|
|
508
|
+
fallback: fallback.value(6, "6"),
|
|
509
|
+
doc: "Fix rounds port-compile gives a red build."
|
|
510
|
+
}),
|
|
511
|
+
LLM4TS_PORT_GUIDE_SAMPLE: setting({
|
|
512
|
+
group: "ports",
|
|
513
|
+
scope: "project",
|
|
514
|
+
value: Value.positive,
|
|
515
|
+
fallback: fallback.value(3, "3"),
|
|
516
|
+
doc: "Files port-guide samples to draft the porting guide."
|
|
517
|
+
}),
|
|
518
|
+
LLM4TS_PORT_GUIDE_TRIAL: setting({
|
|
519
|
+
group: "ports",
|
|
520
|
+
scope: "project",
|
|
521
|
+
value: Value.toggle,
|
|
522
|
+
fallback: fallback.value(true, "on"),
|
|
523
|
+
doc: "The trial port that proves port-guide's draft; off skips it."
|
|
524
|
+
}),
|
|
525
|
+
// ---- kit: soap-ace ----------------------------------------------------------
|
|
526
|
+
LLM4TS_SOAP_SERVICE: setting({
|
|
527
|
+
group: "soap-ace",
|
|
528
|
+
scope: "project",
|
|
529
|
+
value: Value.text,
|
|
530
|
+
fallback: fallback.off("the only service discovered; several need the name"),
|
|
531
|
+
doc: "The SOAP service the soap flows work on, and the folder of its auth.json."
|
|
532
|
+
}),
|
|
533
|
+
LLM4TS_SOAP_ENV: setting({
|
|
534
|
+
group: "soap-ace",
|
|
535
|
+
scope: "run",
|
|
536
|
+
value: Value.text,
|
|
537
|
+
fallback: fallback.off("the default profile, auth.json"),
|
|
538
|
+
doc: "The environment whose auth.<env>.json the soap flows use; `-- --env` sets it too."
|
|
539
|
+
}),
|
|
540
|
+
LLM4TS_SOAP_STUB: setting({
|
|
541
|
+
group: "soap-ace",
|
|
542
|
+
scope: "project",
|
|
543
|
+
value: Value.path,
|
|
544
|
+
fallback: fallback.off("calls go to the network"),
|
|
545
|
+
doc: "A folder of recorded <operation>.xml responses that answers SOAP calls instead of the network."
|
|
546
|
+
}),
|
|
547
|
+
LLM4TS_ACE_API: setting({
|
|
548
|
+
group: "soap-ace",
|
|
549
|
+
scope: "project",
|
|
550
|
+
value: Value.text,
|
|
551
|
+
fallback: fallback.perFlow("derived from the service: DemoBankService gives DemoBankApi"),
|
|
552
|
+
doc: "The name of the ACE API project soap-epic builds."
|
|
553
|
+
}),
|
|
554
|
+
// ---- kit: j2ee-nextjs -------------------------------------------------------
|
|
555
|
+
LLM4TS_ADO_ORG_URL: setting({
|
|
556
|
+
group: "j2ee-nextjs",
|
|
557
|
+
scope: "project",
|
|
558
|
+
value: Value.url,
|
|
559
|
+
fallback: fallback.off("no Azure DevOps mirror"),
|
|
560
|
+
doc: "The Azure DevOps organization convert-all mirrors its board to; needs LLM4TS_ADO_PROJECT."
|
|
561
|
+
}),
|
|
562
|
+
LLM4TS_ADO_PROJECT: setting({
|
|
563
|
+
group: "j2ee-nextjs",
|
|
564
|
+
scope: "project",
|
|
565
|
+
value: Value.text,
|
|
566
|
+
fallback: fallback.off("no Azure DevOps mirror"),
|
|
567
|
+
doc: "The Azure DevOps project of the work-item mirror."
|
|
568
|
+
}),
|
|
569
|
+
LLM4TS_ADO_REPO: setting({
|
|
570
|
+
group: "j2ee-nextjs",
|
|
571
|
+
scope: "project",
|
|
572
|
+
value: Value.text,
|
|
573
|
+
fallback: fallback.perFlow("the project's name"),
|
|
574
|
+
doc: "The Azure DevOps repository the mirrored work items link to."
|
|
575
|
+
}),
|
|
576
|
+
LLM4TS_FAIL_FAST: setting({
|
|
577
|
+
group: "j2ee-nextjs",
|
|
578
|
+
scope: "run",
|
|
579
|
+
value: Value.toggle,
|
|
580
|
+
fallback: fallback.value(false, "off"),
|
|
581
|
+
doc: "Stops convert-all at the first page that fails instead of marking it and going on."
|
|
582
|
+
}),
|
|
583
|
+
// ---- terminal ---------------------------------------------------------------
|
|
584
|
+
LLM4TS_VERBOSITY: setting({
|
|
585
|
+
group: "terminal",
|
|
586
|
+
scope: "global",
|
|
587
|
+
value: Value.oneOf(["quiet", "normal", "verbose", "debug"]),
|
|
588
|
+
fallback: fallback.value("normal", "normal"),
|
|
589
|
+
flag: "--verbose",
|
|
590
|
+
doc: "How much the terminal shows."
|
|
591
|
+
}),
|
|
592
|
+
LLM4TS_UI: setting({
|
|
593
|
+
group: "terminal",
|
|
594
|
+
scope: "global",
|
|
595
|
+
value: Value.oneOf(["classic", "tree"]),
|
|
596
|
+
fallback: fallback.value("classic", "classic"),
|
|
597
|
+
flag: "--ui",
|
|
598
|
+
doc: "tree draws the agent tree full-screen on a terminal; q returns to the classic view."
|
|
599
|
+
}),
|
|
600
|
+
LLM4TS_TIMESTAMPS: setting({
|
|
601
|
+
group: "terminal",
|
|
602
|
+
scope: "global",
|
|
603
|
+
value: Value.toggle,
|
|
604
|
+
fallback: fallback.value(false, "off"),
|
|
605
|
+
doc: "Prefixes every terminal line with the time."
|
|
606
|
+
}),
|
|
607
|
+
LLM4TS_TRANSCRIPT: setting({
|
|
608
|
+
group: "terminal",
|
|
609
|
+
scope: "global",
|
|
610
|
+
value: Value.toggle,
|
|
611
|
+
fallback: fallback.perFlow("off; on in the epic flows"),
|
|
612
|
+
flag: "--transcript",
|
|
613
|
+
doc: "Records what each seat is told and answers under .llm4ts/transcripts/, for `llm4ts watch --tail`."
|
|
614
|
+
}),
|
|
615
|
+
LLM4TS_IDLE_AFTER: setting({
|
|
616
|
+
group: "terminal",
|
|
617
|
+
scope: "global",
|
|
618
|
+
value: Value.span,
|
|
619
|
+
fallback: fallback.value(Duration.minutes(2), "2m"),
|
|
620
|
+
doc: "How long a lane of the agent tree may be silent before it is marked idle."
|
|
621
|
+
}),
|
|
622
|
+
LLM4TS_TOOL_BRIEF: setting({
|
|
623
|
+
group: "terminal",
|
|
624
|
+
scope: "project",
|
|
625
|
+
value: Value.toggle,
|
|
626
|
+
fallback: fallback.value(true, "on"),
|
|
627
|
+
doc: "The paragraph of a coder's brief that lists the pack's tool presets; off drops it."
|
|
628
|
+
}),
|
|
629
|
+
// ---- telemetry --------------------------------------------------------------
|
|
630
|
+
LLM4TS_OTEL: setting({
|
|
631
|
+
group: "telemetry",
|
|
632
|
+
scope: "global",
|
|
633
|
+
value: Value.toggle,
|
|
634
|
+
fallback: fallback.off("off, unless OTEL_EXPORTER_OTLP_ENDPOINT is set"),
|
|
635
|
+
flag: "--otel",
|
|
636
|
+
doc: "Exports spans over OTLP, to a local Phoenix unless the OTEL_* variables say otherwise; off silences export even with an endpoint set."
|
|
637
|
+
}),
|
|
638
|
+
LLM4TS_OTEL_CONTENT: setting({
|
|
639
|
+
group: "telemetry",
|
|
640
|
+
scope: "global",
|
|
641
|
+
value: Value.oneOf(["off", "on", "full"]),
|
|
642
|
+
fallback: fallback.value("off", "off"),
|
|
643
|
+
flag: "--otel-content",
|
|
644
|
+
doc: "What exported spans carry besides usage: on adds prompts, replies and tool I/O; full the system prompt too."
|
|
645
|
+
}),
|
|
646
|
+
LLM4TS_ESTIMATE_USAGE: setting({
|
|
647
|
+
group: "telemetry",
|
|
648
|
+
scope: "global",
|
|
649
|
+
value: Value.toggle,
|
|
650
|
+
fallback: fallback.value(true, "on"),
|
|
651
|
+
doc: "Estimates token usage from character counts for seats whose backend reports none."
|
|
652
|
+
}),
|
|
653
|
+
LLM4TS_ESTIMATE_MODEL: setting({
|
|
654
|
+
group: "telemetry",
|
|
655
|
+
scope: "global",
|
|
656
|
+
value: Value.text,
|
|
657
|
+
fallback: fallback.value("claude-sonnet-4", "claude-sonnet-4"),
|
|
658
|
+
doc: "The price-list model usage estimates are priced as."
|
|
659
|
+
}),
|
|
660
|
+
LLM4TS_ESTIMATE_CHARS_PER_TOKEN: setting({
|
|
661
|
+
group: "telemetry",
|
|
662
|
+
scope: "global",
|
|
663
|
+
value: Value.positive,
|
|
664
|
+
fallback: fallback.value(4, "4"),
|
|
665
|
+
doc: "Characters per token in usage estimates."
|
|
666
|
+
}),
|
|
667
|
+
// ---- gemini bridge ----------------------------------------------------------
|
|
668
|
+
LLM4TS_GEMINI_BRIDGE: setting({
|
|
669
|
+
group: "gemini-bridge",
|
|
670
|
+
scope: "global",
|
|
671
|
+
value: Value.toggle,
|
|
672
|
+
fallback: fallback.value(false, "off"),
|
|
673
|
+
doc: "Starts the local Gemini bridge for pi seats during a run."
|
|
674
|
+
}),
|
|
675
|
+
LLM4TS_GEMINI_BRIDGE_MODE: setting({
|
|
676
|
+
group: "gemini-bridge",
|
|
677
|
+
scope: "global",
|
|
678
|
+
value: Value.oneOf(["acp", "model"]),
|
|
679
|
+
fallback: fallback.value("acp", "acp"),
|
|
680
|
+
doc: "The route the bridge serves: acp, a Gemini ACP session, or model, one locked-down gemini call per request."
|
|
681
|
+
}),
|
|
682
|
+
LLM4TS_GEMINI_BRIDGE_MODEL: setting({
|
|
683
|
+
group: "gemini-bridge",
|
|
684
|
+
scope: "global",
|
|
685
|
+
value: Value.text,
|
|
686
|
+
fallback: fallback.perFlow("the one bridge model pi's models.json offers"),
|
|
687
|
+
doc: "The provider/model pi is started with when its models.json offers several bridge models."
|
|
688
|
+
}),
|
|
689
|
+
LLM4TS_GEMINI_BRIDGE_PORT: setting({
|
|
690
|
+
group: "gemini-bridge",
|
|
691
|
+
scope: "global",
|
|
692
|
+
value: Value.positive,
|
|
693
|
+
fallback: fallback.value(8731, "8731"),
|
|
694
|
+
doc: "The port on 127.0.0.1 the bridge listens on."
|
|
695
|
+
}),
|
|
696
|
+
LLM4TS_GEMINI_BRIDGE_TOKEN: setting({
|
|
697
|
+
group: "gemini-bridge",
|
|
698
|
+
scope: "secret",
|
|
699
|
+
value: Value.text,
|
|
700
|
+
fallback: fallback.off("no token required"),
|
|
701
|
+
doc: "The bearer every bridge request must carry in model mode; also pi's apiKey."
|
|
702
|
+
}),
|
|
703
|
+
LLM4TS_GEMINI_MODEL: setting({
|
|
704
|
+
group: "gemini-bridge",
|
|
705
|
+
scope: "global",
|
|
706
|
+
value: Value.text,
|
|
707
|
+
fallback: fallback.off("the model pi's request names"),
|
|
708
|
+
doc: "The Gemini model the bridge reasons with."
|
|
709
|
+
}),
|
|
710
|
+
// ---- operator ---------------------------------------------------------------
|
|
711
|
+
LLM4TS_MCP_TOKEN: setting({
|
|
712
|
+
group: "operator",
|
|
713
|
+
scope: "secret",
|
|
714
|
+
shellOnly: true,
|
|
715
|
+
value: Value.text,
|
|
716
|
+
fallback: fallback.off("no HTTP transport without --token-file"),
|
|
717
|
+
doc: "The bearer token of `llm4ts mcp --http`; never reaches a flow."
|
|
718
|
+
}),
|
|
719
|
+
// ---- launch -----------------------------------------------------------------
|
|
720
|
+
LLM4TS_FLOW: setting({
|
|
721
|
+
group: "launch",
|
|
722
|
+
scope: "internal",
|
|
723
|
+
value: Value.text,
|
|
724
|
+
fallback: fallback.off("set by the launcher"),
|
|
725
|
+
doc: "The running flow's name, for its spans."
|
|
726
|
+
}),
|
|
727
|
+
LLM4TS_RUN_ID: setting({
|
|
728
|
+
group: "launch",
|
|
729
|
+
scope: "internal",
|
|
730
|
+
value: Value.text,
|
|
731
|
+
fallback: fallback.off("the runner makes one"),
|
|
732
|
+
doc: "The run's id, set by the MCP operator so it can find the run it started."
|
|
733
|
+
}),
|
|
734
|
+
LLM4TS_TRACE_PATH: setting({
|
|
735
|
+
group: "launch",
|
|
736
|
+
scope: "internal",
|
|
737
|
+
value: Value.path,
|
|
738
|
+
fallback: fallback.off(".llm4ts/trace-<start>.jsonl in the repository"),
|
|
739
|
+
doc: "Where the run writes its trace, set by the MCP operator."
|
|
740
|
+
})
|
|
741
|
+
};
|
|
742
|
+
//# sourceMappingURL=Registry.js.map
|