@llm4ts/shell 4.11.0 → 4.11.2
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/Config.d.ts.map +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/ConfigEdit.d.ts.map +1 -1
- package/dist/ConfigEdit.js.map +1 -1
- package/dist/Menu.d.ts.map +1 -1
- package/dist/Menu.js.map +1 -1
- package/dist/OperatorTools.d.ts.map +1 -1
- package/dist/OperatorTools.js.map +1 -1
- package/dist/Refine.d.ts.map +1 -1
- package/dist/Refine.js.map +1 -1
- package/dist/WebWatch.d.ts.map +1 -1
- package/dist/WebWatch.js.map +1 -1
- package/package.json +8 -8
- package/src/Config.ts +5 -7
- package/src/ConfigEdit.ts +4 -6
- package/src/Menu.ts +7 -9
- package/src/OperatorTools.ts +9 -11
- package/src/Refine.ts +1 -8
- package/src/WebWatch.ts +5 -8
- package/web/app.js +20 -20
- package/web/fonts/Geist-Variable.woff2 +0 -0
- package/web/fonts/GeistMono-Variable.woff2 +0 -0
package/src/ConfigEdit.ts
CHANGED
|
@@ -98,12 +98,10 @@ export interface ActionChoice {
|
|
|
98
98
|
/** What an open setting offers; a removal only for a file that holds it. */
|
|
99
99
|
export const settingActions = (held: ReadonlyArray<FileLayer>): ReadonlyArray<ActionChoice> => [
|
|
100
100
|
{ title: "change the value", action: { kind: "change" } },
|
|
101
|
-
...held.map(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
})
|
|
106
|
-
),
|
|
101
|
+
...held.map((layer): ActionChoice => ({
|
|
102
|
+
title: `remove it from the ${layer} file`,
|
|
103
|
+
action: { kind: "remove", layer }
|
|
104
|
+
})),
|
|
107
105
|
{ title: "back", action: { kind: "back" } }
|
|
108
106
|
]
|
|
109
107
|
|
package/src/Menu.ts
CHANGED
|
@@ -47,15 +47,13 @@ const selectCoder = Effect.fn("@llm4ts/shell/Menu.selectCoder")(function* (
|
|
|
47
47
|
value: undefined,
|
|
48
48
|
description: "LLM4TS_CODER from the environment or the config files"
|
|
49
49
|
},
|
|
50
|
-
...coderChoices.map(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
})
|
|
58
|
-
)
|
|
50
|
+
...coderChoices.map((choice): Prompt.SelectChoice<string | undefined> => ({
|
|
51
|
+
title:
|
|
52
|
+
findOnPath(choice.executable, environment) === undefined
|
|
53
|
+
? choice.token
|
|
54
|
+
: `${choice.token} ✓ found`,
|
|
55
|
+
value: choice.token
|
|
56
|
+
}))
|
|
59
57
|
]
|
|
60
58
|
return yield* Prompt.run(Prompt.Select({ message: "Which coding agent?", choices }))
|
|
61
59
|
})
|
package/src/OperatorTools.ts
CHANGED
|
@@ -366,17 +366,15 @@ export const readHandlers = (
|
|
|
366
366
|
Effect.gen(function* () {
|
|
367
367
|
const repo = yield* resolveRepo(deps.config, repoId)
|
|
368
368
|
const doctor = yield* deps.doctor
|
|
369
|
-
const connectors = doctor.connectors.map(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
})
|
|
379
|
-
)
|
|
369
|
+
const connectors = doctor.connectors.map((connector): ConnectorHealthOut => ({
|
|
370
|
+
id: connector.id,
|
|
371
|
+
availability: connector.status.availability,
|
|
372
|
+
authStatus: connector.status.authStatus,
|
|
373
|
+
probe: connector.probe,
|
|
374
|
+
...(connector.status.latency === undefined
|
|
375
|
+
? {}
|
|
376
|
+
: { latencyMs: Math.round(Duration.toMillis(connector.status.latency)) })
|
|
377
|
+
}))
|
|
380
378
|
const roster = yield* deps.roster(repo.path).pipe(
|
|
381
379
|
Effect.map((report) => ({ report, note: undefined })),
|
|
382
380
|
Effect.catch((error) =>
|
package/src/Refine.ts
CHANGED
|
@@ -109,14 +109,7 @@ export interface RefineSessionOptions {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
type Action =
|
|
112
|
-
| "
|
|
113
|
-
| "scenarios"
|
|
114
|
-
| "deepen"
|
|
115
|
-
| "run"
|
|
116
|
-
| "answer"
|
|
117
|
-
| "regroup"
|
|
118
|
-
| "approve"
|
|
119
|
-
| "exit"
|
|
112
|
+
"programs" | "scenarios" | "deepen" | "run" | "answer" | "regroup" | "approve" | "exit"
|
|
120
113
|
|
|
121
114
|
const dispositionChoices: ReadonlyArray<Prompt.SelectChoice<Disposition | "?">> = [
|
|
122
115
|
{ title: "drop", value: "drop", description: "deprecated — will not exist in the target" },
|
package/src/WebWatch.ts
CHANGED
|
@@ -236,14 +236,11 @@ export const webWatchApp = Effect.fn("@llm4ts/shell/WebWatch.app")(function* (
|
|
|
236
236
|
const target: WatchTarget = yield* resolveTraceTarget(options, dependencies)
|
|
237
237
|
const replay = options.replay === true
|
|
238
238
|
const start = yield* startingTree(target, dependencies.files, options.idleAfterMs)
|
|
239
|
-
const load = Effect.map(
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
steps: stepsOfTrace(lines)
|
|
245
|
-
})
|
|
246
|
-
)
|
|
239
|
+
const load = Effect.map(readTrace(dependencies.files, target.tracePath), (lines): Loaded => ({
|
|
240
|
+
runId: lines[0]?.runId,
|
|
241
|
+
lastSeq: lines.at(-1)?.seq,
|
|
242
|
+
steps: stepsOfTrace(lines)
|
|
243
|
+
}))
|
|
247
244
|
// Read once up front, so a missing or unreadable trace fails before serving.
|
|
248
245
|
yield* load
|
|
249
246
|
const speedOf = (asked: number | undefined): number =>
|