@polycode-projects/the-mechanical-code-talker 2.11.12 → 3.0.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/README.md +4 -2
- package/bin/tmct.mjs +62 -2
- package/corpus/tier2/generate.mjs +1 -1
- package/package.json +3 -2
- package/src/adapters/source.mjs +8 -6
- package/src/adapters/toml-config.mjs +8 -0
- package/src/domain/cli-verbs.mjs +9 -0
- package/src/domain/codeplan/graph-delta.mjs +239 -0
- package/src/domain/codeplan/graph-predicates.mjs +0 -0
- package/src/domain/codeplan/operators.mjs +232 -0
- package/src/domain/codeplan/planner.mjs +87 -0
- package/src/index/extract-jsts.mjs +251 -0
- package/src/index/extract-python.mjs +46 -0
- package/src/index/extract_ast.py +364 -0
- package/src/index/index-repo.mjs +173 -0
- package/src/index/registry.mjs +37 -0
- package/src/index/spawn.mjs +35 -0
- package/src/index/walk.mjs +0 -0
- package/src/services/chat-session.mjs +10 -3
- package/src/services/chat.mjs +5 -5
- package/src/services/sessions.mjs +3 -1
- package/src/surfaces/web/memory-ask-browser.bundle.js +89 -89
|
@@ -48,7 +48,9 @@ function labelFromId(id) {
|
|
|
48
48
|
* reader never sees a torn graph.json and a crash never destroys the old one. */
|
|
49
49
|
async function atomicWriteJson(file, obj) {
|
|
50
50
|
const tmp = `${file}.tmp-${process.pid}-${Math.random().toString(36).slice(2, 10)}`;
|
|
51
|
-
|
|
51
|
+
// 2-space indent: a legitimate session upsert into a hand-formatted graph
|
|
52
|
+
// reflows to the same pretty shape a producer wrote, not one compact line.
|
|
53
|
+
await writeFile(tmp, JSON.stringify(obj, null, 2));
|
|
52
54
|
await rename(tmp, file);
|
|
53
55
|
}
|
|
54
56
|
|