@polycode-projects/the-mechanical-code-talker 6.0.1 → 6.0.3
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 +12 -0
- package/package.json +9 -2
- package/src/adapters/corpus/courtesy.mjs +67 -3
- package/src/adapters/corpus/dbpedia-lookup-live.mjs +8 -0
- package/src/adapters/corpus/wikidata-live.mjs +8 -0
- package/src/adapters/corpus/wikipedia-live.mjs +18 -0
- package/src/adapters/corpus/wiktionary-live.mjs +8 -0
- package/src/adapters/memory/core.mjs +7 -1
- package/src/adapters/memory/rows.mjs +18 -10
- package/src/adapters/source.mjs +12 -9
- package/src/domain/source-breaker.mjs +259 -0
- package/src/services/chat-page-viz.mjs +189 -26
- package/src/services/chat.mjs +242 -77
- package/src/services/ledger-viz.mjs +91 -6
- package/src/services/memory-panel-viz.mjs +12 -8
- package/src/services/news-viz.mjs +388 -348
- package/src/services/news.mjs +41 -7
- package/src/services/p2p-room.mjs +35 -21
- package/src/surfaces/web/chat-browser-entry.mjs +42 -5
- package/src/surfaces/web/http-row-backend.mjs +39 -0
- package/src/surfaces/web/ledger-browser-entry.mjs +30 -8
- package/src/surfaces/web/memory-ask-browser.bundle.js +135 -135
- package/src/surfaces/web/news-browser-entry.mjs +428 -455
- package/src/tools/graph-load.mjs +4 -2
package/src/tools/graph-load.mjs
CHANGED
|
@@ -10,9 +10,11 @@ export async function loadGraph(config, source) {
|
|
|
10
10
|
const graph = parseEntities(payload);
|
|
11
11
|
if (!graph.individuals.length) {
|
|
12
12
|
// Honest miss, never a stack: a fresh repo simply has no graph yet (the chat
|
|
13
|
-
// session itself creates one as the conversation folds in).
|
|
13
|
+
// session itself creates one as the conversation folds in). A caller with
|
|
14
|
+
// no graphFile at all (no code domain configured, ever) reads the same:
|
|
15
|
+
// `config?.graphFile` in the message below just names nothing.
|
|
14
16
|
const e = new ToolError(
|
|
15
|
-
`the graph at ${config
|
|
17
|
+
`the graph at ${config?.graphFile} is empty — no entities to answer from yet ` +
|
|
16
18
|
"(this repo starts with no graph; the chat session folds the conversation into one).",
|
|
17
19
|
);
|
|
18
20
|
// An empty CODE graph is not an empty world: a caller that can still answer
|