parallel-codex-tui 0.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/.parallel-codex/config.example.toml +62 -0
- package/LICENSE +21 -0
- package/README.md +150 -0
- package/dist/bootstrap.js +25 -0
- package/dist/cli-args.js +26 -0
- package/dist/cli.js +48 -0
- package/dist/core/config.js +304 -0
- package/dist/core/file-store.js +56 -0
- package/dist/core/paths.js +17 -0
- package/dist/core/router.js +151 -0
- package/dist/core/session-index.js +180 -0
- package/dist/core/session-manager.js +264 -0
- package/dist/doctor.js +121 -0
- package/dist/domain/schemas.js +78 -0
- package/dist/orchestrator/collaboration-channel.js +103 -0
- package/dist/orchestrator/orchestrator.js +545 -0
- package/dist/orchestrator/prompts.js +124 -0
- package/dist/orchestrator/supervisor-summary.js +38 -0
- package/dist/tui/App.js +740 -0
- package/dist/tui/AppShell.js +129 -0
- package/dist/tui/InputBar.js +141 -0
- package/dist/tui/StatusBar.js +288 -0
- package/dist/tui/TerminalOutput.js +22 -0
- package/dist/tui/WorkerOutputView.js +4015 -0
- package/dist/tui/chat-input.js +37 -0
- package/dist/tui/display-width.js +132 -0
- package/dist/tui/keyboard.js +38 -0
- package/dist/tui/native-input.js +120 -0
- package/dist/tui/raw-input-decoder.js +18 -0
- package/dist/tui/scrolling.js +25 -0
- package/dist/tui/status-line.js +90 -0
- package/dist/tui/task-memory.js +26 -0
- package/dist/tui/terminal-screen.js +168 -0
- package/dist/version.js +1 -0
- package/dist/workers/mock-adapter.js +62 -0
- package/dist/workers/native-attach.js +189 -0
- package/dist/workers/process-adapter.js +265 -0
- package/dist/workers/registry.js +32 -0
- package/dist/workers/types.js +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { readTextIfExists } from "../core/file-store.js";
|
|
3
|
+
export async function buildSupervisorSummary(dirs) {
|
|
4
|
+
const turnRequirements = dirs.turnDir ? await readTextIfExists(join(dirs.turnDir, "requirements.md")) : "";
|
|
5
|
+
const requirements = turnRequirements.trim()
|
|
6
|
+
? turnRequirements
|
|
7
|
+
: await readTextIfExists(join(dirs.judgeDir, "requirements.md"));
|
|
8
|
+
const featureWorklog = dirs.featureActorWorklogPath
|
|
9
|
+
? await readTextIfExists(dirs.featureActorWorklogPath)
|
|
10
|
+
: "";
|
|
11
|
+
const worklog = featureWorklog.trim() ? featureWorklog : await readTextIfExists(join(dirs.actorDir, "worklog.md"));
|
|
12
|
+
const review = await readTextIfExists(join(dirs.criticDir, "review.md"));
|
|
13
|
+
const findings = dirs.featureCriticFindingsPath
|
|
14
|
+
? await readTextIfExists(dirs.featureCriticFindingsPath)
|
|
15
|
+
: "";
|
|
16
|
+
return [
|
|
17
|
+
"Complex task completed.",
|
|
18
|
+
"",
|
|
19
|
+
"Requirements:",
|
|
20
|
+
excerpt(requirements),
|
|
21
|
+
"",
|
|
22
|
+
"Actor work:",
|
|
23
|
+
excerpt(worklog),
|
|
24
|
+
"",
|
|
25
|
+
"Critic review:",
|
|
26
|
+
excerpt(review),
|
|
27
|
+
"",
|
|
28
|
+
"Critic findings:",
|
|
29
|
+
excerpt(findings)
|
|
30
|
+
].join("\n");
|
|
31
|
+
}
|
|
32
|
+
function excerpt(text) {
|
|
33
|
+
const trimmed = text.trim();
|
|
34
|
+
if (!trimmed) {
|
|
35
|
+
return "(empty)";
|
|
36
|
+
}
|
|
37
|
+
return trimmed.length > 800 ? `${trimmed.slice(0, 797)}...` : trimmed;
|
|
38
|
+
}
|