@chllming/wave-orchestration 0.5.1
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/CHANGELOG.md +41 -0
- package/README.md +549 -0
- package/docs/agents/wave-deploy-verifier-role.md +34 -0
- package/docs/agents/wave-documentation-role.md +30 -0
- package/docs/agents/wave-evaluator-role.md +43 -0
- package/docs/agents/wave-infra-role.md +34 -0
- package/docs/agents/wave-integration-role.md +32 -0
- package/docs/agents/wave-launcher-role.md +37 -0
- package/docs/context7/bundles.json +91 -0
- package/docs/plans/component-cutover-matrix.json +112 -0
- package/docs/plans/component-cutover-matrix.md +49 -0
- package/docs/plans/context7-wave-orchestrator.md +130 -0
- package/docs/plans/current-state.md +44 -0
- package/docs/plans/master-plan.md +16 -0
- package/docs/plans/migration.md +23 -0
- package/docs/plans/wave-orchestrator.md +254 -0
- package/docs/plans/waves/wave-0.md +165 -0
- package/docs/reference/github-packages-setup.md +52 -0
- package/docs/reference/migration-0.2-to-0.5.md +622 -0
- package/docs/reference/npmjs-trusted-publishing.md +55 -0
- package/docs/reference/repository-guidance.md +18 -0
- package/docs/reference/runtime-config/README.md +85 -0
- package/docs/reference/runtime-config/claude.md +105 -0
- package/docs/reference/runtime-config/codex.md +81 -0
- package/docs/reference/runtime-config/opencode.md +93 -0
- package/docs/research/agent-context-sources.md +57 -0
- package/docs/roadmap.md +626 -0
- package/package.json +53 -0
- package/releases/manifest.json +101 -0
- package/scripts/context7-api-check.sh +21 -0
- package/scripts/context7-export-env.sh +52 -0
- package/scripts/research/agent-context-archive.mjs +472 -0
- package/scripts/research/generate-agent-context-indexes.mjs +85 -0
- package/scripts/research/import-agent-context-archive.mjs +793 -0
- package/scripts/research/manifests/harness-and-blackboard-2026-03-21.mjs +201 -0
- package/scripts/wave-autonomous.mjs +13 -0
- package/scripts/wave-cli-bootstrap.mjs +27 -0
- package/scripts/wave-dashboard.mjs +11 -0
- package/scripts/wave-human-feedback.mjs +11 -0
- package/scripts/wave-launcher.mjs +11 -0
- package/scripts/wave-local-executor.mjs +13 -0
- package/scripts/wave-orchestrator/agent-state.mjs +416 -0
- package/scripts/wave-orchestrator/autonomous.mjs +367 -0
- package/scripts/wave-orchestrator/clarification-triage.mjs +605 -0
- package/scripts/wave-orchestrator/config.mjs +848 -0
- package/scripts/wave-orchestrator/context7.mjs +464 -0
- package/scripts/wave-orchestrator/coord-cli.mjs +286 -0
- package/scripts/wave-orchestrator/coordination-store.mjs +987 -0
- package/scripts/wave-orchestrator/coordination.mjs +768 -0
- package/scripts/wave-orchestrator/dashboard-renderer.mjs +254 -0
- package/scripts/wave-orchestrator/dashboard-state.mjs +473 -0
- package/scripts/wave-orchestrator/dep-cli.mjs +219 -0
- package/scripts/wave-orchestrator/docs-queue.mjs +75 -0
- package/scripts/wave-orchestrator/executors.mjs +385 -0
- package/scripts/wave-orchestrator/feedback.mjs +372 -0
- package/scripts/wave-orchestrator/install.mjs +540 -0
- package/scripts/wave-orchestrator/launcher.mjs +3879 -0
- package/scripts/wave-orchestrator/ledger.mjs +332 -0
- package/scripts/wave-orchestrator/local-executor.mjs +263 -0
- package/scripts/wave-orchestrator/replay.mjs +246 -0
- package/scripts/wave-orchestrator/roots.mjs +10 -0
- package/scripts/wave-orchestrator/routing-state.mjs +542 -0
- package/scripts/wave-orchestrator/shared.mjs +405 -0
- package/scripts/wave-orchestrator/terminals.mjs +209 -0
- package/scripts/wave-orchestrator/traces.mjs +1094 -0
- package/scripts/wave-orchestrator/wave-files.mjs +1923 -0
- package/scripts/wave.mjs +103 -0
- package/wave.config.json +115 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import process from "node:process";
|
|
5
|
+
import {
|
|
6
|
+
TOPIC_DEFINITIONS,
|
|
7
|
+
buildPaperSectionAssignments,
|
|
8
|
+
buildTopicGroups,
|
|
9
|
+
loadArchiveEntries,
|
|
10
|
+
parsePaperSectionMap,
|
|
11
|
+
renderArticleIndex,
|
|
12
|
+
renderPaperIndex,
|
|
13
|
+
renderTopicPage,
|
|
14
|
+
renderTopicsIndex,
|
|
15
|
+
} from "./agent-context-archive.mjs";
|
|
16
|
+
|
|
17
|
+
const REPO_ROOT = process.cwd();
|
|
18
|
+
const ARCHIVE_ROOT = path.join(REPO_ROOT, "docs/research/agent-context-cache");
|
|
19
|
+
|
|
20
|
+
async function writeFileIfChanged(filePath, content) {
|
|
21
|
+
const normalized = `${content.trimEnd()}\n`;
|
|
22
|
+
let current = null;
|
|
23
|
+
try {
|
|
24
|
+
current = await fs.readFile(filePath, "utf8");
|
|
25
|
+
} catch {
|
|
26
|
+
current = null;
|
|
27
|
+
}
|
|
28
|
+
if (current === normalized) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
32
|
+
await fs.writeFile(filePath, normalized, "utf8");
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async function main() {
|
|
37
|
+
const entries = await loadArchiveEntries(ARCHIVE_ROOT);
|
|
38
|
+
const paperIndexPath = path.join(ARCHIVE_ROOT, "papers/index.md");
|
|
39
|
+
let existingPaperIndex = "";
|
|
40
|
+
try {
|
|
41
|
+
existingPaperIndex = await fs.readFile(paperIndexPath, "utf8");
|
|
42
|
+
} catch {
|
|
43
|
+
existingPaperIndex = "";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const sectionAssignments = buildPaperSectionAssignments(
|
|
47
|
+
entries,
|
|
48
|
+
parsePaperSectionMap(existingPaperIndex),
|
|
49
|
+
);
|
|
50
|
+
const topicGroups = buildTopicGroups(entries, sectionAssignments);
|
|
51
|
+
|
|
52
|
+
const writes = [];
|
|
53
|
+
writes.push(writeFileIfChanged(paperIndexPath, renderPaperIndex(entries, sectionAssignments)));
|
|
54
|
+
writes.push(
|
|
55
|
+
writeFileIfChanged(
|
|
56
|
+
path.join(ARCHIVE_ROOT, "articles/index.md"),
|
|
57
|
+
renderArticleIndex(entries),
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
writes.push(
|
|
61
|
+
writeFileIfChanged(
|
|
62
|
+
path.join(ARCHIVE_ROOT, "topics/index.md"),
|
|
63
|
+
renderTopicsIndex(topicGroups),
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
for (const topic of TOPIC_DEFINITIONS) {
|
|
68
|
+
writes.push(
|
|
69
|
+
writeFileIfChanged(
|
|
70
|
+
path.join(ARCHIVE_ROOT, "topics", `${topic.id}.md`),
|
|
71
|
+
renderTopicPage(topic, topicGroups.get(topic.id) ?? []),
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const changed = (await Promise.all(writes)).filter(Boolean).length;
|
|
77
|
+
console.log(
|
|
78
|
+
`agent-context indexes updated (${entries.filter((entry) => entry.kind === "paper").length} papers, ${entries.filter((entry) => entry.kind === "article").length} articles, ${changed} files changed)`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
main().catch((error) => {
|
|
83
|
+
console.error(error.stack ?? String(error));
|
|
84
|
+
process.exit(1);
|
|
85
|
+
});
|