@mmon-co/ncept-local 0.3.4 → 0.3.6
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/host-tools.js +2 -2
- package/dist/learning.js +1 -1
- package/dist/mechanics.js +26 -1
- package/package.json +1 -1
package/dist/host-tools.js
CHANGED
|
@@ -31,7 +31,7 @@ const nodeList = { type: "array", items: { type: "string", pattern: "^node-" } }
|
|
|
31
31
|
const graphProperties = {
|
|
32
32
|
operations: {
|
|
33
33
|
type: "array",
|
|
34
|
-
description:
|
|
34
|
+
description: "Core Patch operations using kind (add-node, add-edge, add-metadata-set, define-tag, mask-contribution, add-material/edit-material/remove-material). Metadata lives in metadata sets, not on Nodes; prefer the material tool for local files.",
|
|
35
35
|
items: { type: "object" },
|
|
36
36
|
},
|
|
37
37
|
targets: nodeList,
|
|
@@ -217,7 +217,7 @@ export function hostTools(host, opened, capabilities, skills, metadataKeys) {
|
|
|
217
217
|
return { content: { status: "draft", report: prepared.compiled.report, graph: prepared.compiled.graph } };
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
mount("propose",
|
|
220
|
+
mount("propose", "Ask learner approval for a Mission (same id revises; targets:[] allowed before charting), graph-diff/revision (input:{} submits current edit_graph_draft), preferences, settings, or mode switch (choose an allowed switch from context). Nothing applies before confirm.", schema({
|
|
221
221
|
op: { enum: ["mission", "graph-diff", "revision", "preferences", "settings", "mode"] },
|
|
222
222
|
input: {
|
|
223
223
|
type: "object",
|
package/dist/learning.js
CHANGED
|
@@ -804,7 +804,7 @@ export class LearningHost {
|
|
|
804
804
|
const settings = localSettings(view.profile);
|
|
805
805
|
return {
|
|
806
806
|
...setup,
|
|
807
|
-
prompt: setup.prompt +
|
|
807
|
+
prompt: `${setup.prompt.trimEnd()}\n- **${mechanics.name}**: ${mechanics.description}` +
|
|
808
808
|
(typeof settings.preferences === "string" ? "\n\nLearner preferences:\n" + settings.preferences : ""),
|
|
809
809
|
capabilities,
|
|
810
810
|
context: [
|
package/dist/mechanics.js
CHANGED
|
@@ -2,5 +2,30 @@
|
|
|
2
2
|
export const mechanics = {
|
|
3
3
|
name: "local-host",
|
|
4
4
|
description: "A Material needs making, opening or reading back, or an outcome, change or reminder needs recording.",
|
|
5
|
-
body:
|
|
5
|
+
body: `The learner's work lives in the Profile directory; the Theory's tools, not you, decide what a record means.
|
|
6
|
+
|
|
7
|
+
## Materials
|
|
8
|
+
|
|
9
|
+
Create Materials with the \`material\` tool in whatever form fits: Markdown for reading, a file of tasks and answers for quizzes, a file of front/back pairs for cards, an HTML page or runnable program for an applet, or an audio clip. The tool records it in the learner's map and checks out a working copy under \`materials/<node>/\`—files written there directly are not Materials. Name each by what it teaches, reuse existing Materials on a Node before making another, and show one by giving its path (or running it when asked). Edits the learner makes in the working copy are their work—read them back as such.
|
|
10
|
+
|
|
11
|
+
## Grading and outcomes
|
|
12
|
+
|
|
13
|
+
Grade mechanically by running checks yourself where answers are mechanical; otherwise judge against the Node's criterion. Record results only through the Theory's record tools (\`record_material_attempt\`, \`record_demonstration\`, \`record_retrieval_opener\`, \`record_teaching\`, \`record_claim\`, \`record_retraction\`, \`close_recount\`) with the verbatim task and learner response—never write labels or edit the log directly.
|
|
14
|
+
|
|
15
|
+
- Use \`record_material_attempt\` for quiz items answered in chat (playground \`local\` for local files, plus item id, Node, task, response, outcome, and \`unaided\`).
|
|
16
|
+
- Use \`record_demonstration\` for ordinary conversational checks.
|
|
17
|
+
- A runner's existing result is returned without duplication; fix a wrong grade with \`evaluation_override\` and a reason. Fix any validation errors the Theory returns.
|
|
18
|
+
|
|
19
|
+
## Applets and read-back
|
|
20
|
+
|
|
21
|
+
Keep an applet's state in a file beside it, and read that file (or run its summary command) before describing the learner's position rather than relying on your last edit. Learner actions arrive in the next message or as file changes; an applet that needs attention writes its state file first, then notifies via terminal bell or the harness's notice.
|
|
22
|
+
|
|
23
|
+
## Notifications and wake-ups
|
|
24
|
+
|
|
25
|
+
You act only when the learner speaks or the harness runs you. For reminders or later follow-ups, use the harness's scheduler or write a note in \`reminders.md\` naming the Node and Session to resume—never promise a message you cannot send.
|
|
26
|
+
|
|
27
|
+
## Changes
|
|
28
|
+
|
|
29
|
+
Mission, graph, and guidance changes are proposals: show the diff as a readable file and ask approval through the harness's prompt. Apply them through the Theory's operations only after approval.
|
|
30
|
+
`,
|
|
6
31
|
};
|