@mmon-co/ncept-default-theory 3.0.13 → 3.0.14
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/dist/chat.js +8 -6
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -159,7 +159,8 @@ function* setup(ctx, mode) {
|
|
|
159
159
|
if (!ctx.graph.nodes.some(({ id }) => id === node))
|
|
160
160
|
throw new Error(`Missing Node ${node}`);
|
|
161
161
|
const prompt = tutorSystemPrompt(mode);
|
|
162
|
-
const
|
|
162
|
+
const { documents, candidates } = documentListing(ctx);
|
|
163
|
+
const offered = linkedDocuments(ctx, documents, ctx.tutorMessages ?? []);
|
|
163
164
|
const entry = ctx.entry;
|
|
164
165
|
const intervalNodes = entry?.kind === "review"
|
|
165
166
|
? entry.nodes.filter((node) => nodeReviewSchedule(ctx.graph, node).kind === "interval")
|
|
@@ -169,11 +170,12 @@ function* setup(ctx, mode) {
|
|
|
169
170
|
context: [
|
|
170
171
|
...evaluationContext(ctx),
|
|
171
172
|
tutorOpening(ctx),
|
|
172
|
-
|
|
173
|
-
?
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
offered.length
|
|
174
|
+
? `Application help already offered in this Session (once-only asides):\n${JSON.stringify(offered)}\nKeep subsequent replies on the learner's task unless they ask for more application help.`
|
|
175
|
+
: !ctx.opening && candidates.length
|
|
176
|
+
? "If the learner's current message matches a cue, briefly link its guide alongside the answer:\n" +
|
|
177
|
+
candidates.map(({ raiseWhen, label, documentUrl }) => `${raiseWhen} [${label}](${documentUrl})`).join("\n")
|
|
178
|
+
: undefined,
|
|
177
179
|
ctx.about.length
|
|
178
180
|
? `This Session is attached to ${ctx.about.join(", ")}. Current Node memory (other Sessions' spans and Records; use theory {name:'memory',input:{node}} for more):\n\n${scopedMemory(ctx) || "(none)"}`
|
|
179
181
|
: "This Session is attached to no Nodes; name Nodes explicitly where a tool needs them.",
|
package/dist/release.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const theoryContent = "
|
|
1
|
+
export declare const theoryContent = "fb917e7d1b5c0084e6743cd20d696f0d74bd67457eeaa1b9f6f2ee596de9e890";
|
package/dist/release.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const theoryContent = "
|
|
1
|
+
export const theoryContent = "fb917e7d1b5c0084e6743cd20d696f0d74bd67457eeaa1b9f6f2ee596de9e890";
|