@llm4ts/shell 4.0.0 → 4.1.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/flows/lib/epic-stories.js +6 -18
- package/package.json +4 -4
|
@@ -41,8 +41,8 @@ import { estimatedUsageOptionsFromEnv, makeEstimatedUsageMeter } from "@llm4ts/f
|
|
|
41
41
|
import { landEpic } from "@llm4ts/flow/Landing";
|
|
42
42
|
import { deferredPath, implementStoriesFlow } from "@llm4ts/flow/Stories";
|
|
43
43
|
import { validateStoryPlan } from "@llm4ts/flow/StoryPlan";
|
|
44
|
-
import { asReadOnly, nodePlainFileStore, nodeProcessExecutor, openPack, resolveFlowInput, runNode, stage
|
|
45
|
-
import { claude, judgmentConnectorFromEnvironment, pi, seatsFromEnvironment } from "@llm4ts/runner/Connectors";
|
|
44
|
+
import { asReadOnly, nodePlainFileStore, nodeProcessExecutor, openPack, resolveFlowInput, runNode, stage } from "@llm4ts/runner";
|
|
45
|
+
import { claude, judgmentConnectorFromEnvironment, pi, seatsFromEnvironment, withSeatSettings } from "@llm4ts/runner/Connectors";
|
|
46
46
|
import { FlowAborted, FlowLlmError, ReviewResult, ScriptUsage, lintCommand } from "@llm4ts/runner";
|
|
47
47
|
export const epicUsage = [
|
|
48
48
|
"epic-stories flags:",
|
|
@@ -1432,16 +1432,6 @@ export const epicRunnerOptions = Effect.fn("epic-stories.runnerOptions")(functio
|
|
|
1432
1432
|
...(options.judgmentLog === true ? { judgmentLog: true } : {})
|
|
1433
1433
|
};
|
|
1434
1434
|
});
|
|
1435
|
-
/** `LLM4TS_CODER_MODEL` / `LLM4TS_REASONING_MODEL`: pi takes `provider/model` (e.g. `openai-codex/gpt-5.5`). */
|
|
1436
|
-
const withOptionalModel = (config, model) => (model === undefined ? config : withModel(config, model));
|
|
1437
|
-
/**
|
|
1438
|
-
* Extra CLI flags on top of a preset's own (`LLM4TS_CODER_FLAGS`,
|
|
1439
|
-
* `LLM4TS_REASONING_FLAGS`). A value may itself carry `=`:
|
|
1440
|
-
* `config=model_provider=lmstudio` is codex's `--config model_provider=lmstudio`.
|
|
1441
|
-
*/
|
|
1442
|
-
const withExtraFlags = (config, flags) => flags === undefined
|
|
1443
|
-
? config
|
|
1444
|
-
: CliConnectorConfig.make({ ...config, flags: { ...config.flags, ...flags } });
|
|
1445
1435
|
export const defaultEpic = "Add the retail customer's current account (Conto) with balance and movements, and wire " +
|
|
1446
1436
|
"transfers (Bonifico) with beneficiary, review, SCA confirmation, and history.";
|
|
1447
1437
|
export const runEpicStories = (options) => Effect.gen(function* () {
|
|
@@ -1514,12 +1504,10 @@ export const runEpicStories = (options) => Effect.gen(function* () {
|
|
|
1514
1504
|
launchDir: given.workspace,
|
|
1515
1505
|
flowDir: import.meta.dirname
|
|
1516
1506
|
});
|
|
1517
|
-
const
|
|
1518
|
-
|
|
1519
|
-
const
|
|
1520
|
-
const
|
|
1521
|
-
const coder = withExtraFlags(withOptionalModel(seats.coder, coderModel), coderFlags);
|
|
1522
|
-
const localServer = localCoderServer(coderModel, coderFlags ?? {}, process.env);
|
|
1507
|
+
const { coder, reasoning } = yield* seatsFromEnvironment({ coder: pi, reasoner: claude });
|
|
1508
|
+
// The runner puts the model and flag settings on the seats; this asks what the coder ends up as.
|
|
1509
|
+
const seated = withSeatSettings({ coder }, process.env).coder;
|
|
1510
|
+
const localServer = localCoderServer(seated.model, seated instanceof CliConnectorConfig ? seated.flags : {}, process.env);
|
|
1523
1511
|
// A new epic's id (and state folder) is derived from its text; an existing
|
|
1524
1512
|
// one keeps its folder, whatever text is on the command line.
|
|
1525
1513
|
const epicId = choice._tag === "Existing"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llm4ts/shell",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Interactive shell and CLI for llm4ts: flow discovery, run-a-flow, and view",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@effect/platform-node": "4.0.0",
|
|
47
47
|
"@effect/platform-node-shared": "4.0.0",
|
|
48
|
-
"@llm4ts/runner": "4.
|
|
49
|
-
"@llm4ts/core": "4.
|
|
50
|
-
"@llm4ts/flow": "4.
|
|
48
|
+
"@llm4ts/runner": "4.1.0",
|
|
49
|
+
"@llm4ts/core": "4.1.0",
|
|
50
|
+
"@llm4ts/flow": "4.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"effect": "4.0.0"
|