@mmon-co/ncept-default-theory 1.1.0 → 2.0.0
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 +2 -1
- package/dist/chat.js +16 -4
- package/dist/event.js +14 -8
- package/dist/implementation.d.ts +29 -23
- package/dist/implementation.js +3 -2
- package/dist/index.d.ts +37 -30
- package/dist/index.js +2 -1
- package/dist/migrations.d.ts +15 -0
- package/dist/migrations.js +67 -0
- package/dist/opening.d.ts +1 -1
- package/dist/opening.js +2 -2
- package/dist/outcomes.d.ts +9 -24
- package/dist/outcomes.js +16 -47
- package/dist/path.js +2 -2
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/skills/sources.d.ts +4 -4
- package/dist/skills/sources.js +4 -4
- package/dist/state.d.ts +1 -1
- package/dist/state.js +5 -5
- package/dist/tools.js +3 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,7 +45,6 @@ Core's `Observation` envelope carries identity, time, scope, support and the pro
|
|
|
45
45
|
| Payload | Public type and guard from `@mmon-co/ncept-default-theory/outcomes` | Captured evidence |
|
|
46
46
|
| --- | --- | --- |
|
|
47
47
|
| `completion` | `CompletionOutcome`, `isCompletionOutcome` | Playground and scope, exact Node provenance, complete/incomplete and optional validity boundary |
|
|
48
|
-
| `recall` | `RecallOutcome`, `isRecallOutcome` | Card content and Nodes at retrieval, learner answer and recall grade |
|
|
49
48
|
| `quiz` | `QuizOutcome`, `isQuizOutcome` | Questions, choices and correct answers, selected/skipped responses and comments |
|
|
50
49
|
| `attempt` | `AttemptOutcome`, `isAttemptOutcome` | Problem and grading contract at opening, response, assessment, help and exact revision |
|
|
51
50
|
|
|
@@ -71,4 +70,6 @@ Record payload types are exported from `@mmon-co/ncept-default-theory/state` and
|
|
|
71
70
|
|
|
72
71
|
Public guards include `isDemonstration`, `isRetrievalOpenerDemonstration`, `isLapse`, `isGrade`, `isReviewPass`, `isFeatureUse`, `isTeaching`, `isClaim`, `isRetraction`, `isHoming` and `isMemory`. `isDefaultObservation` checks producing-Theory attribution only; it is not a payload validator. `MemorySummaryPayload` and `Interpretation` have exported types but no standalone public guards. Other Theories choose which kinds they understand and preserve unread observations when exchanging a Profile.
|
|
73
72
|
|
|
73
|
+
Queued repetitions emit `attempt` too; their four ratings and latency belong to the queue's scheduling history. Version 1.1 migrates historical recall captures to Problems, freezing the former front/back unaided rule as observed assistance. Existing Demonstrations retain their identities, attribution and readings.
|
|
74
|
+
|
|
74
75
|
Observation-contract changes follow the Theory's semver and forward-migration rules: a patch needs no dependent-data migration, a minor permits a mechanical migration, and a major requires a non-mechanical one. This extraction preserves the existing payloads and validators unchanged.
|
package/dist/chat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { renderSpeech } from "@mmon-co/ncept-core/theory/speaker";
|
|
2
2
|
/* eslint-disable require-yield -- Chat setup is a zero-effect synchronous Program. */
|
|
3
|
-
import { lastMetadataContribution, metadataSetsForEntity, NODE_CRITERION_PROPERTY, NODE_LABEL_PROPERTY, PEDAGOGY_OPENING_PROPERTY, PEDAGOGY_FIRST_MESSAGE_PROPERTY, nodeCascadedProperty, } from "@mmon-co/ncept-core/patch";
|
|
3
|
+
import { provenanceOf, lastMetadataContribution, metadataSetsForEntity, NODE_CRITERION_PROPERTY, NODE_LABEL_PROPERTY, PEDAGOGY_OPENING_PROPERTY, PEDAGOGY_FIRST_MESSAGE_PROPERTY, nodeCascadedProperty, } from "@mmon-co/ncept-core/patch";
|
|
4
4
|
import { CATALOG_MODE_TOOLS, CATALOG_MODE_TITLES, CATALOG_MODE_METADATA_KEYS } from "./catalog-contract.js";
|
|
5
5
|
import { isDefaultObservation, isMemory, memoryDefault } from "./state.js";
|
|
6
6
|
import { skillBody, skillResources, skillsForMode, tutorSystemPrompt } from "./skills.js";
|
|
@@ -14,7 +14,7 @@ function metadataValue(ctx, node, property) {
|
|
|
14
14
|
const candidates = metadataSetsForEntity(ctx.graph, { kind: "node", id: node }).flatMap((set) => {
|
|
15
15
|
if (!(property in set.properties))
|
|
16
16
|
return [];
|
|
17
|
-
const source = ctx.graph.provenance.metadataProperties
|
|
17
|
+
const source = provenanceOf(ctx.graph.provenance.metadataProperties, set.id)?.[property]?.at(-1);
|
|
18
18
|
if (source === undefined)
|
|
19
19
|
throw new Error(`Missing provenance for ${property} on ${node}`);
|
|
20
20
|
return [{ value: set.properties[property], source }];
|
|
@@ -25,7 +25,7 @@ function officialDocuments(ctx) {
|
|
|
25
25
|
const officialPatches = new Set(ctx.graph.patchOrder.flatMap(({ identity }) => ctx.graph.patchMetadata[identity]?.properties[COMMON_CONCEPT_PATCH_PROPERTY] === true ? [identity] : []));
|
|
26
26
|
return ctx.graph.nodes.flatMap(({ id }) => {
|
|
27
27
|
if (!id.startsWith("node-mmon-") ||
|
|
28
|
-
!ctx.graph.provenance.nodes
|
|
28
|
+
!provenanceOf(ctx.graph.provenance.nodes, id)?.some(({ patch }) => officialPatches.has(patch.identity)))
|
|
29
29
|
return [];
|
|
30
30
|
const label = metadataValue(ctx, id, NODE_LABEL_PROPERTY);
|
|
31
31
|
const summary = metadataValue(ctx, id, NODE_CRITERION_PROPERTY);
|
|
@@ -46,6 +46,11 @@ function officialDocuments(ctx) {
|
|
|
46
46
|
];
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
function linkedDocuments(documents, messages) {
|
|
50
|
+
// A linked official title still counts as offered when the tutor mistypes its destination.
|
|
51
|
+
return documents.filter(({ documentId, label }) => messages.some((text) => text.includes(`${COMMON_CONCEPT_DOCUMENT_URL}${encodeURIComponent(documentId)}`) ||
|
|
52
|
+
text.replace(/\]\(\s+/g, "](").includes(`[${label}](${COMMON_CONCEPT_DOCUMENT_URL}`)));
|
|
53
|
+
}
|
|
49
54
|
/** Exclude Document links already carried by tutor text, in this conversation or a closed Session. */
|
|
50
55
|
function recommendableAffordances(ctx, documents) {
|
|
51
56
|
const told = [
|
|
@@ -54,6 +59,7 @@ function recommendableAffordances(ctx, documents) {
|
|
|
54
59
|
? observation.payload.entries.filter(({ speaker }) => speaker.kind === "tutor").map(({ text }) => text)
|
|
55
60
|
: []),
|
|
56
61
|
];
|
|
62
|
+
const offered = new Set(linkedDocuments(documents, told).map(({ node }) => node));
|
|
57
63
|
return documents.flatMap((document) => {
|
|
58
64
|
const state = ctx.state.nodes[document.node];
|
|
59
65
|
const raiseWhen = metadataValue(ctx, document.node, RAISE_WHEN_PROPERTY);
|
|
@@ -62,7 +68,7 @@ function recommendableAffordances(ctx, documents) {
|
|
|
62
68
|
state.featureUses.length !== 0 ||
|
|
63
69
|
typeof raiseWhen !== "string" ||
|
|
64
70
|
raiseWhen.trim() === "" ||
|
|
65
|
-
|
|
71
|
+
offered.has(document.node))
|
|
66
72
|
return [];
|
|
67
73
|
return [{ ...document, raiseWhen, documentUrl }];
|
|
68
74
|
});
|
|
@@ -128,11 +134,17 @@ function* setup(ctx, mode) {
|
|
|
128
134
|
if (!ctx.graph.nodes.some(({ id }) => id === node))
|
|
129
135
|
throw new Error(`Missing Node ${node}`);
|
|
130
136
|
const prompt = tutorSystemPrompt(mode);
|
|
137
|
+
const offered = linkedDocuments(officialDocuments(ctx), ctx.tutorMessages ?? []);
|
|
131
138
|
return {
|
|
132
139
|
prompt,
|
|
133
140
|
context: [
|
|
134
141
|
...evaluationContext(ctx),
|
|
135
142
|
tutorOpening(ctx),
|
|
143
|
+
...(offered.length
|
|
144
|
+
? [
|
|
145
|
+
`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.`,
|
|
146
|
+
]
|
|
147
|
+
: []),
|
|
136
148
|
ctx.about.length
|
|
137
149
|
? `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)"}`
|
|
138
150
|
: "This Session is attached to no Nodes; name Nodes explicitly where a tool needs them.",
|
package/dist/event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderSpeech } from "@mmon-co/ncept-core/theory/speaker";
|
|
2
2
|
import { judge, isObservationId, read, write, } from "@mmon-co/ncept-core/observations";
|
|
3
3
|
import { isNodeId, sameExactPatchRef } from "@mmon-co/ncept-core/patch";
|
|
4
|
-
import { isAttemptOutcome, isQuizOutcome,
|
|
4
|
+
import { isAttemptOutcome, isQuizOutcome, practiceAttempts, problemAttempts } from "./outcomes.js";
|
|
5
5
|
import { stateDefault, homeDefaultRecords, isCompletionOutcome, projectGraphChange, homingCandidates, expandNodeMemory, isGrade, nodeDayEvidence, defaultNodeCompletion, completionNodeRef, } from "./state.js";
|
|
6
6
|
/** Entries after a Node's last summary; exactly eight remain verbatim. */
|
|
7
7
|
const MEMORY_COMPACTION_THRESHOLD = 8;
|
|
@@ -287,7 +287,7 @@ export function* event(input, ctx) {
|
|
|
287
287
|
}
|
|
288
288
|
if (object(payload) && payload.kind === "completion")
|
|
289
289
|
throw new Error("Invalid completion outcome");
|
|
290
|
-
if (!
|
|
290
|
+
if (!isQuizOutcome(payload) && !isAttemptOutcome(payload)) {
|
|
291
291
|
if (typeof input.payload === "object" &&
|
|
292
292
|
input.payload !== null &&
|
|
293
293
|
"kind" in input.payload &&
|
|
@@ -366,20 +366,26 @@ export function* event(input, ctx) {
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
const current = stateDefault(ctx.graph, yield* read.observations({}), ctx.now);
|
|
369
|
+
const summaries = new Map();
|
|
369
370
|
for (const node of new Set(input.about)) {
|
|
370
371
|
const memory = current.memories[node];
|
|
371
372
|
if (memory === undefined ||
|
|
372
373
|
memory.entries.filter((entry) => entry.kind === "entry").length <= MEMORY_COMPACTION_THRESHOLD)
|
|
373
374
|
continue;
|
|
374
|
-
const
|
|
375
|
+
const renderedText = memory.entries
|
|
375
376
|
.map((entry) => entry.kind === "summary"
|
|
376
377
|
? `[summary through ${expandNodeMemory(memory, entry).at(-1)?.position}; Material sources ${JSON.stringify(entry.materialSources)}] quoted derivative: ${JSON.stringify(entry.text)}`
|
|
377
378
|
: `[${entry.at}] ${renderSpeech(entry.speaker, entry.text)}`)
|
|
378
|
-
.join("\n\n")
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
379
|
+
.join("\n\n");
|
|
380
|
+
let text = summaries.get(renderedText);
|
|
381
|
+
if (text === undefined) {
|
|
382
|
+
text = yield* judge(SUMMARIZE, renderedText, { type: "string" }, (raw) => {
|
|
383
|
+
if (typeof raw !== "string")
|
|
384
|
+
throw new Error("Memory summary must be a string");
|
|
385
|
+
return raw;
|
|
386
|
+
});
|
|
387
|
+
summaries.set(renderedText, text);
|
|
388
|
+
}
|
|
383
389
|
const sources = [...new Set(memory.originals.map((entry) => entry.observation))];
|
|
384
390
|
const dependencies = [
|
|
385
391
|
...new Set(memory.originals.flatMap((entry) => [
|
package/dist/implementation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describeDefaultObservation } from "./history.js";
|
|
2
2
|
import { event } from "./event.js";
|
|
3
|
-
import { isAttemptOutcome, isQuizOutcome
|
|
3
|
+
import { isAttemptOutcome, isQuizOutcome } from "./outcomes.js";
|
|
4
4
|
import { initDefaultState, isCompletionOutcome } from "./state.js";
|
|
5
5
|
import { projectDefault } from "./tags.js";
|
|
6
6
|
import { pathDefault } from "./path.js";
|
|
@@ -8,7 +8,14 @@ import { progressDefault, estimateDefault, prepareEstimateDefault } from "./read
|
|
|
8
8
|
/** The single default implementation assembly. */
|
|
9
9
|
export declare const implementation: {
|
|
10
10
|
id: "default";
|
|
11
|
-
version: "1.
|
|
11
|
+
version: "1.1.0";
|
|
12
|
+
migrations: readonly Readonly<{
|
|
13
|
+
from: import("@mmon-co/ncept-core/theory").TheoryDataVersion;
|
|
14
|
+
to: import("@mmon-co/ncept-core/theory").TheoryDataVersion;
|
|
15
|
+
migratePatch(content: import("@mmon-co/ncept-core").PatchContent): import("@mmon-co/ncept-core").PatchContent;
|
|
16
|
+
migrate(profile: import("@mmon-co/ncept-core").Profile): import("@mmon-co/ncept-core").Profile;
|
|
17
|
+
migrateOutcome?(payload: unknown, profile: import("@mmon-co/ncept-core").Profile): unknown;
|
|
18
|
+
}>[];
|
|
12
19
|
initState: typeof initDefaultState;
|
|
13
20
|
project: typeof projectDefault;
|
|
14
21
|
progress: typeof progressDefault;
|
|
@@ -19,13 +26,12 @@ export declare const implementation: {
|
|
|
19
26
|
tags: readonly [...string[], "item-outcomes", "instability", "unused", "coarse", "lesson-split", "self-report", "edge-contradiction", "homeless"];
|
|
20
27
|
outcomes: {
|
|
21
28
|
completion: typeof isCompletionOutcome;
|
|
22
|
-
recall: typeof isRecallOutcome;
|
|
23
29
|
quiz: typeof isQuizOutcome;
|
|
24
30
|
attempt: typeof isAttemptOutcome;
|
|
25
31
|
};
|
|
26
32
|
chat: {
|
|
27
|
-
open: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core
|
|
28
|
-
turn: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core
|
|
33
|
+
open: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core").Program<import("@mmon-co/ncept-core/theory").ChatSetup<import("./state.js").DefaultState>>;
|
|
34
|
+
turn: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core").Program<import("@mmon-co/ncept-core/theory").ChatSetup<import("./state.js").DefaultState>>;
|
|
29
35
|
reply: typeof import("./evaluation.js").evaluateWatchedReply;
|
|
30
36
|
};
|
|
31
37
|
modes: {
|
|
@@ -41,15 +47,15 @@ export declare const implementation: {
|
|
|
41
47
|
mode: string;
|
|
42
48
|
then: "here";
|
|
43
49
|
}[];
|
|
44
|
-
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core
|
|
50
|
+
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
45
51
|
prompt: string;
|
|
46
52
|
context?: string;
|
|
47
53
|
tools: readonly Readonly<{
|
|
48
54
|
name: string;
|
|
49
55
|
description: string;
|
|
50
|
-
schema: import("@mmon-co/ncept-core
|
|
56
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
51
57
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
52
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core
|
|
58
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
53
59
|
}>[];
|
|
54
60
|
skills: readonly Readonly<{
|
|
55
61
|
name: string;
|
|
@@ -78,15 +84,15 @@ export declare const implementation: {
|
|
|
78
84
|
kind: "brief";
|
|
79
85
|
};
|
|
80
86
|
}[];
|
|
81
|
-
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core
|
|
87
|
+
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
82
88
|
prompt: string;
|
|
83
89
|
context?: string;
|
|
84
90
|
tools: readonly Readonly<{
|
|
85
91
|
name: string;
|
|
86
92
|
description: string;
|
|
87
|
-
schema: import("@mmon-co/ncept-core
|
|
93
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
88
94
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
89
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core
|
|
95
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
90
96
|
}>[];
|
|
91
97
|
skills: readonly Readonly<{
|
|
92
98
|
name: string;
|
|
@@ -105,15 +111,15 @@ export declare const implementation: {
|
|
|
105
111
|
};
|
|
106
112
|
capabilities: readonly import("@mmon-co/ncept-core/theory").HostCapability[];
|
|
107
113
|
switches: never[];
|
|
108
|
-
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core
|
|
114
|
+
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
109
115
|
prompt: string;
|
|
110
116
|
context?: string;
|
|
111
117
|
tools: readonly Readonly<{
|
|
112
118
|
name: string;
|
|
113
119
|
description: string;
|
|
114
|
-
schema: import("@mmon-co/ncept-core
|
|
120
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
115
121
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
116
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core
|
|
122
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
117
123
|
}>[];
|
|
118
124
|
skills: readonly Readonly<{
|
|
119
125
|
name: string;
|
|
@@ -147,15 +153,15 @@ export declare const implementation: {
|
|
|
147
153
|
focus: string;
|
|
148
154
|
};
|
|
149
155
|
})[];
|
|
150
|
-
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core
|
|
156
|
+
setup: (ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
151
157
|
prompt: string;
|
|
152
158
|
context?: string;
|
|
153
159
|
tools: readonly Readonly<{
|
|
154
160
|
name: string;
|
|
155
161
|
description: string;
|
|
156
|
-
schema: import("@mmon-co/ncept-core
|
|
162
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
157
163
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
158
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core
|
|
164
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core/theory").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
159
165
|
}>[];
|
|
160
166
|
skills: readonly Readonly<{
|
|
161
167
|
name: string;
|
|
@@ -166,16 +172,16 @@ export declare const implementation: {
|
|
|
166
172
|
}>>;
|
|
167
173
|
};
|
|
168
174
|
};
|
|
169
|
-
noEventHook: (input: import("@mmon-co/ncept-core
|
|
175
|
+
noEventHook: (input: import("@mmon-co/ncept-core").PlatformEvent) => input is {
|
|
170
176
|
readonly kind: "surface.open";
|
|
171
|
-
readonly surface: import("@mmon-co/ncept-core
|
|
177
|
+
readonly surface: import("@mmon-co/ncept-core").SurfaceId;
|
|
172
178
|
readonly format: string;
|
|
173
|
-
readonly about: readonly import("@mmon-co/ncept-core
|
|
179
|
+
readonly about: readonly import("@mmon-co/ncept-core").NodeId[];
|
|
174
180
|
} | {
|
|
175
181
|
readonly kind: "object.put";
|
|
176
|
-
readonly object: import("@mmon-co/ncept-core
|
|
177
|
-
readonly meta: import("@mmon-co/ncept-core
|
|
178
|
-
readonly surface?: import("@mmon-co/ncept-core
|
|
182
|
+
readonly object: import("@mmon-co/ncept-core").ObjectId;
|
|
183
|
+
readonly meta: import("@mmon-co/ncept-core").ObjectMeta;
|
|
184
|
+
readonly surface?: import("@mmon-co/ncept-core").SurfaceId;
|
|
179
185
|
} | {
|
|
180
186
|
readonly kind: "mission";
|
|
181
187
|
readonly text: string;
|
package/dist/implementation.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { migrations } from "./migrations.js";
|
|
1
2
|
import { chat, modes } from "./chat.js";
|
|
2
3
|
import { describeDefaultObservation } from "./history.js";
|
|
3
4
|
import { event } from "./event.js";
|
|
4
|
-
import { isAttemptOutcome, isQuizOutcome
|
|
5
|
+
import { isAttemptOutcome, isQuizOutcome } from "./outcomes.js";
|
|
5
6
|
import { DEFAULT_THEORY_REF, initDefaultState, isCompletionOutcome } from "./state.js";
|
|
6
7
|
import { defaultTags, projectDefault } from "./tags.js";
|
|
7
8
|
import { pathDefault } from "./path.js";
|
|
@@ -10,6 +11,7 @@ import { progressDefault, estimateDefault, prepareEstimateDefault } from "./read
|
|
|
10
11
|
export const implementation = {
|
|
11
12
|
id: DEFAULT_THEORY_REF.theory,
|
|
12
13
|
version: DEFAULT_THEORY_REF.version,
|
|
14
|
+
migrations,
|
|
13
15
|
initState: initDefaultState,
|
|
14
16
|
project: projectDefault,
|
|
15
17
|
progress: progressDefault,
|
|
@@ -20,7 +22,6 @@ export const implementation = {
|
|
|
20
22
|
tags: defaultTags,
|
|
21
23
|
outcomes: {
|
|
22
24
|
completion: isCompletionOutcome,
|
|
23
|
-
recall: isRecallOutcome,
|
|
24
25
|
quiz: isQuizOutcome,
|
|
25
26
|
attempt: isAttemptOutcome,
|
|
26
27
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
export declare const defaultTheory: {
|
|
3
3
|
version: string;
|
|
4
4
|
id: "default";
|
|
5
|
+
migrations: readonly Readonly<{
|
|
6
|
+
from: import("@mmon-co/ncept-core").TheoryDataVersion;
|
|
7
|
+
to: import("@mmon-co/ncept-core").TheoryDataVersion;
|
|
8
|
+
migratePatch(content: import("@mmon-co/ncept-core").PatchContent): import("@mmon-co/ncept-core").PatchContent;
|
|
9
|
+
migrate(profile: import("@mmon-co/ncept-core").Profile): import("@mmon-co/ncept-core").Profile;
|
|
10
|
+
migrateOutcome?(payload: unknown, profile: import("@mmon-co/ncept-core").Profile): unknown;
|
|
11
|
+
}>[];
|
|
5
12
|
initState: typeof import("./state.js").initDefaultState;
|
|
6
13
|
project: typeof import("./tags.js").projectDefault;
|
|
7
14
|
progress: typeof import("./reading.js").progressDefault;
|
|
@@ -12,13 +19,12 @@ export declare const defaultTheory: {
|
|
|
12
19
|
tags: readonly [...string[], "item-outcomes", "instability", "unused", "coarse", "lesson-split", "self-report", "edge-contradiction", "homeless"];
|
|
13
20
|
outcomes: {
|
|
14
21
|
completion: typeof import("./state.js").isCompletionOutcome;
|
|
15
|
-
recall: typeof import("./outcomes.js").isRecallOutcome;
|
|
16
22
|
quiz: typeof import("./outcomes.js").isQuizOutcome;
|
|
17
23
|
attempt: typeof import("./outcomes.js").isAttemptOutcome;
|
|
18
24
|
};
|
|
19
25
|
chat: {
|
|
20
|
-
open: (ctx: import("@mmon-co/ncept-core
|
|
21
|
-
turn: (ctx: import("@mmon-co/ncept-core
|
|
26
|
+
open: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core").Program<import("@mmon-co/ncept-core").ChatSetup<import("./state.js").DefaultState>>;
|
|
27
|
+
turn: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>, mode?: "empty" | "charting" | "authoring" | "lesson") => import("@mmon-co/ncept-core").Program<import("@mmon-co/ncept-core").ChatSetup<import("./state.js").DefaultState>>;
|
|
22
28
|
reply: typeof import("./evaluation.js").evaluateWatchedReply;
|
|
23
29
|
};
|
|
24
30
|
modes: {
|
|
@@ -29,26 +35,26 @@ export declare const defaultTheory: {
|
|
|
29
35
|
required: false;
|
|
30
36
|
kinds: never[];
|
|
31
37
|
};
|
|
32
|
-
capabilities: readonly import("@mmon-co/ncept-core
|
|
38
|
+
capabilities: readonly import("@mmon-co/ncept-core").HostCapability[];
|
|
33
39
|
switches: {
|
|
34
40
|
mode: string;
|
|
35
41
|
then: "here";
|
|
36
42
|
}[];
|
|
37
|
-
setup: (ctx: import("@mmon-co/ncept-core
|
|
43
|
+
setup: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
38
44
|
prompt: string;
|
|
39
45
|
context?: string;
|
|
40
46
|
tools: readonly Readonly<{
|
|
41
47
|
name: string;
|
|
42
48
|
description: string;
|
|
43
|
-
schema: import("@mmon-co/ncept-core
|
|
49
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
44
50
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
45
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core
|
|
51
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
46
52
|
}>[];
|
|
47
53
|
skills: readonly Readonly<{
|
|
48
54
|
name: string;
|
|
49
55
|
description: string;
|
|
50
56
|
body: string;
|
|
51
|
-
resources?: readonly import("@mmon-co/ncept-core
|
|
57
|
+
resources?: readonly import("@mmon-co/ncept-core").SkillResource[];
|
|
52
58
|
}>[];
|
|
53
59
|
}>>;
|
|
54
60
|
};
|
|
@@ -63,7 +69,7 @@ export declare const defaultTheory: {
|
|
|
63
69
|
required: false;
|
|
64
70
|
kinds: ("mission" | "checkpoint" | "goal" | "target")[];
|
|
65
71
|
};
|
|
66
|
-
capabilities: readonly import("@mmon-co/ncept-core
|
|
72
|
+
capabilities: readonly import("@mmon-co/ncept-core").HostCapability[];
|
|
67
73
|
switches: {
|
|
68
74
|
mode: string;
|
|
69
75
|
then: "next";
|
|
@@ -71,21 +77,21 @@ export declare const defaultTheory: {
|
|
|
71
77
|
kind: "brief";
|
|
72
78
|
};
|
|
73
79
|
}[];
|
|
74
|
-
setup: (ctx: import("@mmon-co/ncept-core
|
|
80
|
+
setup: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
75
81
|
prompt: string;
|
|
76
82
|
context?: string;
|
|
77
83
|
tools: readonly Readonly<{
|
|
78
84
|
name: string;
|
|
79
85
|
description: string;
|
|
80
|
-
schema: import("@mmon-co/ncept-core
|
|
86
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
81
87
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
82
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core
|
|
88
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
83
89
|
}>[];
|
|
84
90
|
skills: readonly Readonly<{
|
|
85
91
|
name: string;
|
|
86
92
|
description: string;
|
|
87
93
|
body: string;
|
|
88
|
-
resources?: readonly import("@mmon-co/ncept-core
|
|
94
|
+
resources?: readonly import("@mmon-co/ncept-core").SkillResource[];
|
|
89
95
|
}>[];
|
|
90
96
|
}>>;
|
|
91
97
|
};
|
|
@@ -96,23 +102,23 @@ export declare const defaultTheory: {
|
|
|
96
102
|
required: false;
|
|
97
103
|
kinds: ("mission" | "goal")[];
|
|
98
104
|
};
|
|
99
|
-
capabilities: readonly import("@mmon-co/ncept-core
|
|
105
|
+
capabilities: readonly import("@mmon-co/ncept-core").HostCapability[];
|
|
100
106
|
switches: never[];
|
|
101
|
-
setup: (ctx: import("@mmon-co/ncept-core
|
|
107
|
+
setup: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
102
108
|
prompt: string;
|
|
103
109
|
context?: string;
|
|
104
110
|
tools: readonly Readonly<{
|
|
105
111
|
name: string;
|
|
106
112
|
description: string;
|
|
107
|
-
schema: import("@mmon-co/ncept-core
|
|
113
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
108
114
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
109
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core
|
|
115
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
110
116
|
}>[];
|
|
111
117
|
skills: readonly Readonly<{
|
|
112
118
|
name: string;
|
|
113
119
|
description: string;
|
|
114
120
|
body: string;
|
|
115
|
-
resources?: readonly import("@mmon-co/ncept-core
|
|
121
|
+
resources?: readonly import("@mmon-co/ncept-core").SkillResource[];
|
|
116
122
|
}>[];
|
|
117
123
|
}>>;
|
|
118
124
|
};
|
|
@@ -123,7 +129,7 @@ export declare const defaultTheory: {
|
|
|
123
129
|
required: true;
|
|
124
130
|
kinds: ("lesson" | "review")[];
|
|
125
131
|
};
|
|
126
|
-
capabilities: readonly import("@mmon-co/ncept-core
|
|
132
|
+
capabilities: readonly import("@mmon-co/ncept-core").HostCapability[];
|
|
127
133
|
metadataKeys: readonly string[] | undefined;
|
|
128
134
|
switches: ({
|
|
129
135
|
mode: string;
|
|
@@ -140,35 +146,35 @@ export declare const defaultTheory: {
|
|
|
140
146
|
focus: string;
|
|
141
147
|
};
|
|
142
148
|
})[];
|
|
143
|
-
setup: (ctx: import("@mmon-co/ncept-core
|
|
149
|
+
setup: (ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>) => import("@mmon-co/ncept-core").Program<Readonly<{
|
|
144
150
|
prompt: string;
|
|
145
151
|
context?: string;
|
|
146
152
|
tools: readonly Readonly<{
|
|
147
153
|
name: string;
|
|
148
154
|
description: string;
|
|
149
|
-
schema: import("@mmon-co/ncept-core
|
|
155
|
+
schema: import("@mmon-co/ncept-core").JsonSchema;
|
|
150
156
|
members?: readonly Readonly</*elided*/ any>[] | undefined;
|
|
151
|
-
run(args: unknown, ctx: import("@mmon-co/ncept-core
|
|
157
|
+
run(args: unknown, ctx: import("@mmon-co/ncept-core").ChatContext<import("./state.js").DefaultState>): import("@mmon-co/ncept-core").Program<unknown>;
|
|
152
158
|
}>[];
|
|
153
159
|
skills: readonly Readonly<{
|
|
154
160
|
name: string;
|
|
155
161
|
description: string;
|
|
156
162
|
body: string;
|
|
157
|
-
resources?: readonly import("@mmon-co/ncept-core
|
|
163
|
+
resources?: readonly import("@mmon-co/ncept-core").SkillResource[];
|
|
158
164
|
}>[];
|
|
159
165
|
}>>;
|
|
160
166
|
};
|
|
161
167
|
};
|
|
162
|
-
noEventHook: (input: import("@mmon-co/ncept-core
|
|
168
|
+
noEventHook: (input: import("@mmon-co/ncept-core").PlatformEvent) => input is {
|
|
163
169
|
readonly kind: "surface.open";
|
|
164
|
-
readonly surface: import("@mmon-co/ncept-core
|
|
170
|
+
readonly surface: import("@mmon-co/ncept-core").SurfaceId;
|
|
165
171
|
readonly format: string;
|
|
166
|
-
readonly about: readonly import("@mmon-co/ncept-core
|
|
172
|
+
readonly about: readonly import("@mmon-co/ncept-core").NodeId[];
|
|
167
173
|
} | {
|
|
168
174
|
readonly kind: "object.put";
|
|
169
|
-
readonly object: import("@mmon-co/ncept-core
|
|
170
|
-
readonly meta: import("@mmon-co/ncept-core
|
|
171
|
-
readonly surface?: import("@mmon-co/ncept-core
|
|
175
|
+
readonly object: import("@mmon-co/ncept-core").ObjectId;
|
|
176
|
+
readonly meta: import("@mmon-co/ncept-core").ObjectMeta;
|
|
177
|
+
readonly surface?: import("@mmon-co/ncept-core").SurfaceId;
|
|
172
178
|
} | {
|
|
173
179
|
readonly kind: "mission";
|
|
174
180
|
readonly text: string;
|
|
@@ -178,7 +184,7 @@ export declare const defaultTheory: {
|
|
|
178
184
|
/** The range a new Profile accepts: the default Theory's current minor, which a patch deploy keeps. */
|
|
179
185
|
export declare const DEFAULT_THEORY_REQUIREMENT: {
|
|
180
186
|
readonly theory: "default";
|
|
181
|
-
readonly range: "~1.
|
|
187
|
+
readonly range: "~1.1";
|
|
182
188
|
};
|
|
183
189
|
export * from "./path.js";
|
|
184
190
|
export * from "./reading.js";
|
|
@@ -190,6 +196,7 @@ export * from "./state.js";
|
|
|
190
196
|
export * from "./completion.js";
|
|
191
197
|
export * from "./tags.js";
|
|
192
198
|
export * from "./outcomes.js";
|
|
199
|
+
export { recallToAttemptMigration } from "./migrations.js";
|
|
193
200
|
export * from "./roleplay.js";
|
|
194
201
|
export * from "./chat.js";
|
|
195
202
|
export * from "./opening.js";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export const defaultTheory = {
|
|
|
6
6
|
version: `${implementation.version}+${theoryContent}`,
|
|
7
7
|
};
|
|
8
8
|
/** The range a new Profile accepts: the default Theory's current minor, which a patch deploy keeps. */
|
|
9
|
-
export const DEFAULT_THEORY_REQUIREMENT = { theory: defaultTheory.id, range: "~1.
|
|
9
|
+
export const DEFAULT_THEORY_REQUIREMENT = { theory: defaultTheory.id, range: "~1.1" };
|
|
10
10
|
export * from "./path.js";
|
|
11
11
|
export * from "./reading.js";
|
|
12
12
|
export * from "./timing.js";
|
|
@@ -17,6 +17,7 @@ export * from "./state.js";
|
|
|
17
17
|
export * from "./completion.js";
|
|
18
18
|
export * from "./tags.js";
|
|
19
19
|
export * from "./outcomes.js";
|
|
20
|
+
export { recallToAttemptMigration } from "./migrations.js";
|
|
20
21
|
export * from "./roleplay.js";
|
|
21
22
|
export * from "./chat.js";
|
|
22
23
|
export * from "./opening.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Profile } from "@mmon-co/ncept-core";
|
|
2
|
+
import { type ExactPatchRef } from "@mmon-co/ncept-core/patch";
|
|
3
|
+
import type { TheoryMigration } from "@mmon-co/ncept-core/theory";
|
|
4
|
+
declare function migratePayload(payload: unknown, revision: ExactPatchRef): unknown;
|
|
5
|
+
declare function migrate(profile: Profile): Profile;
|
|
6
|
+
export declare const recallToAttemptMigration: {
|
|
7
|
+
from: "1.0";
|
|
8
|
+
to: "1.1";
|
|
9
|
+
migratePatch: (content: import("@mmon-co/ncept-core").PatchContent) => import("@mmon-co/ncept-core").PatchContent;
|
|
10
|
+
migrate: typeof migrate;
|
|
11
|
+
migrateOutcome: (payload: unknown, profile: Profile) => unknown;
|
|
12
|
+
migratePayload: typeof migratePayload;
|
|
13
|
+
};
|
|
14
|
+
export declare const migrations: readonly TheoryMigration[];
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { attachmentDigest, isObservation } from "@mmon-co/ncept-core";
|
|
2
|
+
import { isNodeId } from "@mmon-co/ncept-core/patch";
|
|
3
|
+
import { isAttemptOutcome } from "./outcomes.js";
|
|
4
|
+
function object(value) {
|
|
5
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6
|
+
}
|
|
7
|
+
function isRecall(payload) {
|
|
8
|
+
const { card, grade } = payload;
|
|
9
|
+
return (object(card) &&
|
|
10
|
+
object(grade) &&
|
|
11
|
+
typeof card.id === "string" &&
|
|
12
|
+
typeof card.front === "string" &&
|
|
13
|
+
typeof card.back === "string" &&
|
|
14
|
+
Array.isArray(card.nodes) &&
|
|
15
|
+
card.nodes.every((node) => object(node) && isNodeId(node.node)) &&
|
|
16
|
+
typeof grade.answer === "string" &&
|
|
17
|
+
["again", "hard", "good", "easy"].includes(String(grade.grade)));
|
|
18
|
+
}
|
|
19
|
+
function migratePayload(payload, revision) {
|
|
20
|
+
if (!object(payload) || payload.kind !== "recall")
|
|
21
|
+
return payload;
|
|
22
|
+
if (!isRecall(payload))
|
|
23
|
+
throw new Error("Invalid historical recall");
|
|
24
|
+
const { card, grade } = payload;
|
|
25
|
+
const body = {
|
|
26
|
+
about: card.nodes.map(({ node }) => node),
|
|
27
|
+
prompt: card.front,
|
|
28
|
+
answer: { kind: "short" },
|
|
29
|
+
grader: { by: "learner", rubric: card.back, accepted: [card.back] },
|
|
30
|
+
};
|
|
31
|
+
// Freeze the old rule once. Forward evidence uses the declared answer kind and observed assistance.
|
|
32
|
+
const normalize = (value) => value.trim().toLocaleLowerCase().replace(/\s+/g, " ");
|
|
33
|
+
const back = normalize(card.back);
|
|
34
|
+
const leaksAnswer = back.length > 0 && normalize(card.front).includes(back);
|
|
35
|
+
const offersCandidates = /(^|\n)\s*(?:[a-d][).]|[-*•])\s+/i.test(card.front) || /\bwhich of\b/i.test(card.front);
|
|
36
|
+
const attempt = {
|
|
37
|
+
kind: "attempt",
|
|
38
|
+
problem: { id: card.id, digest: attachmentDigest(new TextEncoder().encode(JSON.stringify(body))), ...body },
|
|
39
|
+
revision,
|
|
40
|
+
response: grade.answer,
|
|
41
|
+
assessment: {
|
|
42
|
+
correct: grade.grade !== "again",
|
|
43
|
+
grader: grade.answer.trim() === card.back.trim() ? "mechanical" : "learner",
|
|
44
|
+
...(leaksAnswer || offersCandidates ? { aided: true } : {}),
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
if (!isAttemptOutcome(attempt))
|
|
48
|
+
throw new Error("Invalid migrated recall attempt");
|
|
49
|
+
return attempt;
|
|
50
|
+
}
|
|
51
|
+
function migrate(profile) {
|
|
52
|
+
return {
|
|
53
|
+
...profile,
|
|
54
|
+
log: profile.log.map((entry) => isObservation(entry) ? { ...entry, payload: migratePayload(entry.payload, profile.patches.terminal) } : entry),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
// The hosted release can scan just the two payload stores before committing this step's
|
|
58
|
+
// changed rows. Patch, Mission and derived Demonstration facts stay byte-for-byte as they were.
|
|
59
|
+
export const recallToAttemptMigration = {
|
|
60
|
+
from: "1.0",
|
|
61
|
+
to: "1.1",
|
|
62
|
+
migratePatch: (content) => content,
|
|
63
|
+
migrate,
|
|
64
|
+
migrateOutcome: (payload, profile) => migratePayload(payload, profile.patches.terminal),
|
|
65
|
+
migratePayload,
|
|
66
|
+
};
|
|
67
|
+
export const migrations = [recallToAttemptMigration];
|
package/dist/opening.d.ts
CHANGED
package/dist/opening.js
CHANGED
|
@@ -7,13 +7,13 @@ export function lessonOpening(graph, nodes, mission) {
|
|
|
7
7
|
.filter(({ from, to }) => nodes.includes(from) && !nodes.includes(to) && mission?.nodes.includes(to))
|
|
8
8
|
.map(({ to }) => to));
|
|
9
9
|
return {
|
|
10
|
-
instruction: "Make and open the Lesson’s Materials first, following the focus Nodes’ guidance. Ask first only when that guidance leaves the work undecided. Then describe the Lesson as it stands: what its focus Nodes cover, its Materials in the order to use them,
|
|
10
|
+
instruction: "Make and open the Lesson’s Materials first, following the focus Nodes’ guidance. Ask first only when that guidance leaves the work undecided. Then describe the Lesson as it stands: what its focus Nodes cover, its Materials in the order to use them, what counts as completing the Lesson, and what follows. Elicit the first action, using the first Node’s authored first action if supplied. Later Nodes’ openings are for when those Nodes are reached.",
|
|
11
11
|
facts: {
|
|
12
12
|
focus: nodes.map((node) => ({
|
|
13
13
|
...label(node),
|
|
14
14
|
completion: defaultNodeCompletion(graph, node) ?? "Establish completion following this Node’s guidance.",
|
|
15
15
|
})),
|
|
16
|
-
|
|
16
|
+
completion: "The Lesson reads complete when every focus Node’s completion query holds over the evidence. Use existing queries where set; otherwise establish them following the Nodes’ guidance.",
|
|
17
17
|
follows: [...following].map(label),
|
|
18
18
|
},
|
|
19
19
|
};
|
package/dist/outcomes.d.ts
CHANGED
|
@@ -2,23 +2,6 @@ import type { Demonstration, NodeRef } from "./state.js";
|
|
|
2
2
|
import type { ExactPatchRef, NodeId } from "@mmon-co/ncept-core/patch";
|
|
3
3
|
export { isCompletionOutcome } from "./state.js";
|
|
4
4
|
export type { CompletionOutcome } from "./state.js";
|
|
5
|
-
/** Content captured when retrieval happened, not a pointer to an editable card. */
|
|
6
|
-
export interface RecallOutcome {
|
|
7
|
-
readonly kind: "recall";
|
|
8
|
-
readonly card: {
|
|
9
|
-
readonly id: string;
|
|
10
|
-
readonly front: string;
|
|
11
|
-
readonly back: string;
|
|
12
|
-
readonly nodes: readonly NodeRef[];
|
|
13
|
-
};
|
|
14
|
-
readonly grade: {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly cardId: string;
|
|
17
|
-
readonly gradedAt: string;
|
|
18
|
-
readonly answer: string;
|
|
19
|
-
readonly grade: "again" | "hard" | "good" | "easy";
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
5
|
export interface QuizOutcome {
|
|
23
6
|
readonly kind: "quiz";
|
|
24
7
|
readonly id: string;
|
|
@@ -46,7 +29,7 @@ export interface CheckResult {
|
|
|
46
29
|
readonly error?: string;
|
|
47
30
|
}
|
|
48
31
|
/**
|
|
49
|
-
* One assessed
|
|
32
|
+
* One assessed Problem response, with its content and revision captured before grading.
|
|
50
33
|
* Answer describes the response surface; grader records who judged it.
|
|
51
34
|
*/
|
|
52
35
|
export interface AttemptOutcome {
|
|
@@ -91,8 +74,14 @@ export interface AttemptOutcome {
|
|
|
91
74
|
readonly by: "mechanical";
|
|
92
75
|
readonly accepted?: readonly string[];
|
|
93
76
|
} | {
|
|
94
|
-
readonly by: "
|
|
77
|
+
readonly by: "program";
|
|
78
|
+
} | {
|
|
79
|
+
readonly by: "tutor";
|
|
80
|
+
readonly rubric?: string;
|
|
81
|
+
} | {
|
|
82
|
+
readonly by: "learner";
|
|
95
83
|
readonly rubric?: string;
|
|
84
|
+
readonly accepted?: readonly string[];
|
|
96
85
|
} | {
|
|
97
86
|
readonly by: "checks";
|
|
98
87
|
readonly help: "pump" | "hint" | "correct";
|
|
@@ -128,11 +117,7 @@ export interface AttemptOutcome {
|
|
|
128
117
|
readonly revision: ExactPatchRef;
|
|
129
118
|
}
|
|
130
119
|
export declare function isAttemptOutcome(value: unknown): value is AttemptOutcome;
|
|
131
|
-
/** Guards validate the supported payload, including the captured grading invariants. */
|
|
132
|
-
export declare function isRecallOutcome(value: unknown): value is RecallOutcome;
|
|
133
120
|
export declare function isQuizOutcome(value: unknown): value is QuizOutcome;
|
|
134
|
-
/** The existing verbatim unaided-card rule, recomputed from the attempt's content. */
|
|
135
|
-
export declare function recallUnaided(card: Pick<RecallOutcome["card"], "front" | "back">): boolean;
|
|
136
121
|
export interface OriginalAttempt {
|
|
137
122
|
readonly at: string;
|
|
138
123
|
readonly payload: Demonstration;
|
|
@@ -140,4 +125,4 @@ export interface OriginalAttempt {
|
|
|
140
125
|
/** One demonstration per Node and help state, pinned to the revision the Problem was opened at. */
|
|
141
126
|
export declare function problemAttempts(outcome: AttemptOutcome, at: string): readonly OriginalAttempt[];
|
|
142
127
|
/** Pure scoring over captured values; no current Material or graph read can rewrite an attempt. */
|
|
143
|
-
export declare function practiceAttempts(outcome:
|
|
128
|
+
export declare function practiceAttempts(outcome: QuizOutcome): readonly OriginalAttempt[];
|
package/dist/outcomes.js
CHANGED
|
@@ -57,6 +57,20 @@ export function isAttemptOutcome(value) {
|
|
|
57
57
|
(assessment.grader === "tutor" ||
|
|
58
58
|
(assessment.grader === "mechanical" && chosen.correct === assessment.correct))));
|
|
59
59
|
}
|
|
60
|
+
if (answer.kind === "short" && grader.by === "learner")
|
|
61
|
+
return (text(grader.rubric) &&
|
|
62
|
+
(grader.accepted === undefined ||
|
|
63
|
+
(Array.isArray(grader.accepted) && grader.accepted.length > 0 && grader.accepted.every(text))) &&
|
|
64
|
+
(dontKnow ||
|
|
65
|
+
assessment.grader === "learner" ||
|
|
66
|
+
(assessment.grader === "mechanical" &&
|
|
67
|
+
assessment.correct === true &&
|
|
68
|
+
(response.trim() === grader.rubric.trim() ||
|
|
69
|
+
(Array.isArray(grader.accepted) &&
|
|
70
|
+
grader.accepted.some((accepted) => accepted.normalize("NFKC").trim().replace(/\s+/gu, " ").toLocaleLowerCase() ===
|
|
71
|
+
response.normalize("NFKC").trim().replace(/\s+/gu, " ").toLocaleLowerCase()))))));
|
|
72
|
+
if (answer.kind === "short" && grader.by === "program")
|
|
73
|
+
return Object.keys(grader).length === 1 && (dontKnow || assessment.grader === "mechanical");
|
|
60
74
|
if (answer.kind === "short")
|
|
61
75
|
return (grader.by === "mechanical" &&
|
|
62
76
|
Array.isArray(grader.accepted) &&
|
|
@@ -112,26 +126,6 @@ export function isAttemptOutcome(value) {
|
|
|
112
126
|
return object(result) && result.outcome === "shown";
|
|
113
127
|
}))));
|
|
114
128
|
}
|
|
115
|
-
/** Guards validate the supported payload, including the captured grading invariants. */
|
|
116
|
-
export function isRecallOutcome(value) {
|
|
117
|
-
if (!object(value) || value.kind !== "recall" || !object(value.card) || !object(value.grade))
|
|
118
|
-
return false;
|
|
119
|
-
const { card, grade } = value;
|
|
120
|
-
return (text(card.id) &&
|
|
121
|
-
typeof card.front === "string" &&
|
|
122
|
-
typeof card.back === "string" &&
|
|
123
|
-
Array.isArray(card.nodes) &&
|
|
124
|
-
card.nodes.length > 0 &&
|
|
125
|
-
card.nodes.every(nodeRef) &&
|
|
126
|
-
new Set(card.nodes.map((node) => node.node)).size === card.nodes.length &&
|
|
127
|
-
text(grade.id) &&
|
|
128
|
-
grade.cardId === card.id &&
|
|
129
|
-
isObservationTimestamp(grade.gradedAt) &&
|
|
130
|
-
text(grade.answer) &&
|
|
131
|
-
typeof grade.grade === "string" &&
|
|
132
|
-
["again", "hard", "good", "easy"].includes(grade.grade) &&
|
|
133
|
-
!(grade.answer.trim() === card.back.trim() && grade.grade === "again"));
|
|
134
|
-
}
|
|
135
129
|
export function isQuizOutcome(value) {
|
|
136
130
|
if (!object(value) ||
|
|
137
131
|
value.kind !== "quiz" ||
|
|
@@ -171,15 +165,6 @@ export function isQuizOutcome(value) {
|
|
|
171
165
|
: question.options.some(({ id }) => id === response.selectedOptionId)));
|
|
172
166
|
}));
|
|
173
167
|
}
|
|
174
|
-
/** The existing verbatim unaided-card rule, recomputed from the attempt's content. */
|
|
175
|
-
export function recallUnaided(card) {
|
|
176
|
-
const normalize = (value) => value.trim().toLocaleLowerCase().replace(/\s+/g, " ");
|
|
177
|
-
const front = normalize(card.front);
|
|
178
|
-
const back = normalize(card.back);
|
|
179
|
-
const leaksAnswer = back.length > 0 && front.includes(back);
|
|
180
|
-
const offersCandidates = /(^|\n)\s*(?:[a-d][).]|[-*•])\s+/i.test(card.front) || /\bwhich of\b/i.test(card.front);
|
|
181
|
-
return !leaksAnswer && !offersCandidates;
|
|
182
|
-
}
|
|
183
168
|
function checkNote(check, { outcome, error }) {
|
|
184
169
|
if (outcome === "shown")
|
|
185
170
|
return `Shown: ${check.shown}`;
|
|
@@ -200,7 +185,7 @@ export function problemAttempts(outcome, at) {
|
|
|
200
185
|
item: problem.id,
|
|
201
186
|
node: { node, provenance: { ...outcome.revision } },
|
|
202
187
|
outcome: "dont-know",
|
|
203
|
-
unaided: !assessment.aided,
|
|
188
|
+
unaided: problem.answer.kind !== "choice" && !assessment.aided,
|
|
204
189
|
grader: "learner",
|
|
205
190
|
task: problem.prompt,
|
|
206
191
|
response,
|
|
@@ -255,7 +240,7 @@ export function problemAttempts(outcome, at) {
|
|
|
255
240
|
item: problem.id,
|
|
256
241
|
node: { node, provenance: { ...outcome.revision } },
|
|
257
242
|
outcome: assessment.correct ? "success" : "failure",
|
|
258
|
-
unaided: !assessment.aided,
|
|
243
|
+
unaided: problem.answer.kind !== "choice" && !assessment.aided,
|
|
259
244
|
grader: assessment.grader,
|
|
260
245
|
task: choice ? `${problem.prompt}\n${choice.map(({ label }) => `- ${label}`).join("\n")}` : problem.prompt,
|
|
261
246
|
response: answer,
|
|
@@ -264,22 +249,6 @@ export function problemAttempts(outcome, at) {
|
|
|
264
249
|
}
|
|
265
250
|
/** Pure scoring over captured values; no current Material or graph read can rewrite an attempt. */
|
|
266
251
|
export function practiceAttempts(outcome) {
|
|
267
|
-
if (outcome.kind === "recall") {
|
|
268
|
-
const { card, grade } = outcome;
|
|
269
|
-
return card.nodes.map((node) => ({
|
|
270
|
-
at: grade.gradedAt,
|
|
271
|
-
payload: {
|
|
272
|
-
kind: "demonstration",
|
|
273
|
-
item: card.id,
|
|
274
|
-
node: { node: node.node, provenance: { ...node.provenance } },
|
|
275
|
-
outcome: grade.grade === "again" ? "failure" : "success",
|
|
276
|
-
unaided: recallUnaided(card),
|
|
277
|
-
grader: grade.answer.trim() === card.back.trim() ? "mechanical" : "learner",
|
|
278
|
-
task: card.front,
|
|
279
|
-
response: grade.answer,
|
|
280
|
-
},
|
|
281
|
-
}));
|
|
282
|
-
}
|
|
283
252
|
return outcome.questions.flatMap((question) => {
|
|
284
253
|
const response = outcome.responses.find(({ questionId }) => questionId === question.id);
|
|
285
254
|
if (response === undefined)
|
package/dist/path.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lastMetadataContribution, metadataSetsForEntity, NODE_ELABORATE_PROPERTY, nodeCascadedProperty, route, unscopedCopyTagName, } from "@mmon-co/ncept-core/patch";
|
|
1
|
+
import { provenanceOf, lastMetadataContribution, metadataSetsForEntity, NODE_ELABORATE_PROPERTY, nodeCascadedProperty, route, unscopedCopyTagName, } from "@mmon-co/ncept-core/patch";
|
|
2
2
|
import { dependentCones } from "./dependent-cone.js";
|
|
3
3
|
import { LESSON_TAG_PREFIX, tagIndex, } from "@mmon-co/ncept-core/theory";
|
|
4
4
|
import { prepareEstimateDefault, progressDefault } from "./reading.js";
|
|
@@ -7,7 +7,7 @@ import { forgetting_curve } from "ts-fsrs";
|
|
|
7
7
|
/** Default-theory authoring metadata, not Core graph vocabulary. */
|
|
8
8
|
export function pathProperty(graph, node, key) {
|
|
9
9
|
return lastMetadataContribution(graph, metadataSetsForEntity(graph, { kind: "node", id: node }).flatMap((set) => {
|
|
10
|
-
const source = graph.provenance.metadataProperties
|
|
10
|
+
const source = provenanceOf(graph.provenance.metadataProperties, set.id)?.[key]?.at(-1);
|
|
11
11
|
return source === undefined ? [] : [{ value: set.properties[key], source }];
|
|
12
12
|
}))?.value;
|
|
13
13
|
}
|
package/dist/release.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const theoryContent = "
|
|
1
|
+
export declare const theoryContent = "0e02007470e1d43f5b572872ba466de874d22d728e90d06280cde6bc2c4395c9";
|
package/dist/release.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const theoryContent = "
|
|
1
|
+
export const theoryContent = "0e02007470e1d43f5b572872ba466de874d22d728e90d06280cde6bc2c4395c9";
|
package/dist/skills/sources.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const sources: {
|
|
2
2
|
readonly "base.md": "# Tutor base\n\nHelp the learner accomplish what they want and expand what they can do. Think first about the learner's goal, what they can do now, which way of learning fits, and what would move them furthest next.\n\nTalk with the learner about what they're after in their terms. Tool names, identifiers, labels, Skills and bookkeeping are yours, not theirs; name content by its display label and quote what they said.\n\n## Terms\n\n- **Node**: one thing someone can show or has done, defined by what shows it. Nodes are shared content; nothing about a learner is a Node, and a topic or a lesson is not one.\n- **Edge**: a prerequisite by definition: demonstrating the dependent demonstrates the prerequisite. Not teaching order, and not relatedness.\n- **Tag**: a named set of Nodes. Guidance on a tag reaches each of its Nodes; a `lesson:` tag groups a Lesson.\n- **Guidance**: instructions on a Node, tag or Mission about how to teach and check it, cascading onto the Nodes it reaches.\n- **Patch**: a versioned unit of graph content. The learner's own graph is their Personal Patch; others are adopted from the Hub.\n- **Mission**: a learner's goal, possibly not yet charted: target Nodes, the View of what they depend on, and the numbered path through it.\n- **View**: a saved selection of Nodes; a Mission's View is its targets and their prerequisites.\n- **Milestone**: a Node whose check is a whole performance closing a section of the path.\n- **Lesson**: one numbered stop on a path, a few Nodes worked on and checked in one Session. A Review rechecks due Nodes.\n- **Material**: a document, quiz, card, applet, roleplay, reference or audio the learner works in.\n- **Record**: what the learner did or claimed on a Node. The theory interprets Records into labels; you never set a label.\n\n## Teaching\n\n- Converse in the language the learner uses, unless there is a pedagogical reason to use another language. Treat practice in a target language as practice, not by itself as a request to switch the conversation's language.\n- Choose how to teach for this goal as stated, not for how the subject is usually taught. A method from another domain may fit better; the learner's own preferred method or a course they like is a legitimate choice.\n- Follow the learner's saved preferences and the guidance on the Nodes in play before choosing or making Material; pace work to their Session length and suggest wrapping up as active minutes reach it.\n- When the current mode permits Material work, teach and assess in Materials, and keep conversation for goals, reports, questions and confusion.\n- Present knowledge easily; difficulty spent on understanding is working memory lost. Make practice effortful: retrieval, spacing and interleaving build lasting strength where easy fluency only feels like mastery.\n- After no unaided success, show a worked example and then a similar problem. When guided work succeeds, fade help toward an unaided check. For multi-step work, give feedback on the step just taken as immediately as the medium allows.\n- Read prefetched Node memory and `theory {name:'trail',input}` for the current scope; notice what another Session added. Memory is context, not evidence. Never match learning styles or prescribe rereading as retrieval practice.\n- Tailor from an explicit preference or a cited Record, never a presumed learner trait. Testing a skill in the world can mean finding a well-moderated community of practitioners, unless the learner has said they do not want one.\n\n## Evidence\n\n- Describe what happened; the theory interprets it. Record an actual attempt at a posed, failable task that informs a decision, including a real step the learner reports taking. Reading, explanation or a remark in passing shows nothing.\n- What a Record will do to a label is never a reason to record, withhold or home it differently. When tempted to diagnose an error, retain what the learner did and name a misconception only when the response supports it.\n- Cite a Record identity or Patch provenance for factual claims about the learner or the content. Summaries are never evidence.\n";
|
|
3
|
-
readonly "chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. With no learner, as for a Patch others will adopt, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the approach the Mission settled, find how courses, textbooks and syllabi organize this ground, or how practitioners who reached a goal in the world sequenced it: playbooks and postmortems. Read the structures, not their contents; Lessons pull in materials later. These are your checklist for comprehensiveness, against charting only what comes to mind first.\n\n2. **Find the macro organization.** What's the macro level organization of the Mission's prerequisites? Is it a sequence of real steps and the capabilities they need, or several separate, independently valuable skills or understandings, as with a knowledge domain? Should it be broken into separately practiced paths, like vocab vs grammar for a language? Is it fractal-like via \"making smaller circles\"? Separately practiced paths are strand tags; the practice serving one is guidance on its tag, not a Node.\n\n3. **Choose milestones.** A few milestones mark sections of progress toward the targets. Each is a smaller Mission: a whole performance worth having on its own, checked by using its section together. First is whichever gets the learner doing the real thing soonest, even crudely. Set `pedagogy:milestone: true` on the Node ending each section, and give its criterion a ladder of simpler conditions down to the lowest viable whole task. An outcome that also depends on the world, such as a stranger paying, suits a milestone; a miss leads to re-charting at its check-in. Milestone 0 holds what the learner says they already have or did, their words quoted as claims.\n\n4. **Elaborate the first section.** Recursively, starting from its milestone Node: does its new part fit one Session at the learner's minutes per Node? If not, how can that new part be broken into smaller prerequisites? Leave later sections coarse with `pedagogy:elaborate: true`, for the check-in before them.\n\n5. **Propose** the draft as a revision setting the Mission's targets, or as a graph diff when they don't change; content for others carries no claims. Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- A Node is one thing the learner can show or has done, defined by what shows it. Steps depend on what the learner can and will do themselves; work an agent could simply do is done by the tutor or left out, and coordinating other people stays outside. Different presentations of one task are one Node.\n- An Edge means the dependent can't be demonstrated without the prerequisite; give the reason in `pedagogy:because`. Teaching order is `pedagogy:priority`, never an Edge.\n- A part too big for one Lesson lacks a prerequisite step or capability (a child Node), volume (tiers: the top 50 words, then 100) or consolidation (thresholds: 60, then 90 words a minute).\n- Set `pedagogy:review: false` on one-off steps. Capabilities retain Review through another real instance; maintained states retain Review by checking whether they still hold.\n- Reuse an existing Node only unchanged: its metadata is shared with every Mission that uses it.\n- Group small Nodes taught together with a `lesson:<name>` tag, inside one section.\n- A learner's override of adopted guidance goes in their Mission's guidance, scoped to its Node.\n";
|
|
4
|
-
readonly "checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: tell the learner what they showed, what came easy and what was hard, and ask whether what they want has shifted. After a complaint, ask what isn't working and read the cited Records. A check-in with no milestone behind it has nothing to reflect on; go to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the task and response they cite first.\n - The goal moved: revise the Mission (see `mission`).\n - The milestone failed: re-chart a plan that didn't work in the world; for a capability miss, a follow-up Lesson under a simpler condition from its ladder, a blocking Review for components that regressed, or new Nodes for what the map missed. Fix the map, not the learner.\n - The map is wrong (grain, Edges, order, method): edit it (see `chart`). An edited Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - A Record is wrong: that's a recording error, corrected in a Lesson, not a content problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred to this check-in, and set `pedagogy:elaborate: false` on what you refine.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, this is the Mission's retrospective: what they can do now, then retire the Mission, which is how it finishes, with an extension or a next Mission if they want one.\n";
|
|
3
|
+
readonly "chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. With no learner, as for a Patch others will adopt, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the approach the Mission settled, find how courses, textbooks and syllabi organize this ground, or how practitioners who reached a goal in the world sequenced it: playbooks and postmortems. Read the structures, not their contents; Lessons pull in materials later. These are your checklist for comprehensiveness, against charting only what comes to mind first.\n\n2. **Find the macro organization.** What's the macro level organization of the Mission's prerequisites? Is it a sequence of real steps and the capabilities they need, or several separate, independently valuable skills or understandings, as with a knowledge domain? Should it be broken into separately practiced paths, like vocab vs grammar for a language? Is it fractal-like via \"making smaller circles\"? Separately practiced paths are strand tags; the practice serving one is guidance on its tag, not a Node.\n\n3. **Choose milestones.** A few milestones mark sections of progress toward the targets. Each is a smaller Mission: a whole performance worth having on its own, checked by using its section together. First is whichever gets the learner doing the real thing soonest, even crudely. Set `pedagogy:milestone: true` on the Node ending each section, and give its criterion a ladder of simpler conditions down to the lowest viable whole task. An outcome that also depends on the world, such as a stranger paying, suits a milestone; a miss leads to re-charting at its check-in. Where the Mission's approach is a conjecture, the next milestone is also its measure: name in the Mission's assessment guidance the few-minute task from it that a Lesson can open on, with its number where it has one (a time, a rate, a count). Milestone 0 holds what the learner says they already have or did, their words quoted as claims.\n\n4. **Elaborate the first section.** Recursively, starting from its milestone Node: does its new part fit one Session at the learner's minutes per Node? If not, how can that new part be broken into smaller prerequisites? Leave later sections coarse with `pedagogy:elaborate: true`, for the check-in before them.\n\n5. **Propose** the draft as a revision setting the Mission's targets, or as a graph diff when they don't change; content for others carries no claims. Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- A Node is one thing the learner can show or has done, defined by what shows it. Steps depend on what the learner can and will do themselves; work an agent could simply do is done by the tutor or left out, and coordinating other people stays outside. Different presentations of one task are one Node.\n- An Edge means the dependent can't be demonstrated without the prerequisite; give the reason in `pedagogy:because`. Teaching order is `pedagogy:priority`, never an Edge.\n- A part too big for one Lesson lacks a prerequisite step or capability (a child Node), volume (tiers: the top 50 words, then 100) or consolidation (thresholds: 60, then 90 words a minute).\n- Set `pedagogy:review: false` on one-off steps. Capabilities retain Review through another real instance; maintained states retain Review by checking whether they still hold.\n- Reuse an existing Node only unchanged: its metadata is shared with every Mission that uses it.\n- Group small Nodes taught together with a `lesson:<name>` tag, inside one section.\n- A learner's override of adopted guidance goes in their Mission's guidance, scoped to its Node.\n";
|
|
4
|
+
readonly "checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: tell the learner what they showed, what came easy and what was hard, and ask whether what they want has shifted. After a complaint, ask what isn't working and read the cited Records. A check-in with no milestone behind it has nothing to reflect on; go to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the task and response they cite first.\n - The goal moved: revise the Mission (see `mission`).\n - The milestone failed: re-chart a plan that didn't work in the world; for a capability miss, a follow-up Lesson under a simpler condition from its ladder, a blocking Review for components that regressed, or new Nodes for what the map missed. Fix the map, not the learner.\n - The map is wrong (grain, Edges, order, method): edit it (see `chart`). An edited Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - A Record is wrong: that's a recording error, corrected in a Lesson, not a content problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred to this check-in, move the Mission's measure to the next milestone, and set `pedagogy:elaborate: false` on what you refine.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, this is the Mission's retrospective: what they can do now, then retire the Mission, which is how it finishes, with an extension or a next Mission if they want one.\n";
|
|
5
5
|
readonly "material/SKILL.md": "---\nname: material\ndescription: A Lesson or Review is starting or its Materials have run, or a Material needs making or changing.\n---\n\nMaterials carry the learner into the work: teaching and assessment, or a brief and preparation for a real step. Reuse the Materials already about a Node (`theory items`) before making new ones.\n\nA Material can teach, assess or both, like a game whose levels get harder and are retried until beaten. Assess with unaided checks at the Nodes' criteria under the Mission's assessment guidance, enough independent checks to demonstrate each Node, graded mechanically wherever the answer is mechanical. When the real work is the check, use its outcome rather than a separate practice set.\n\nLoad the guide for the Session with `skill {name:'material', resource}`:\n\n- A Lesson: [lesson.md](lesson.md), and for a milestone also [milestone.md](milestone.md).\n- A Review: [review.md](review.md).\n\n## Which Material\n\n- **Document:** prose, worked examples and reference, for what the learner reads and comes back to.\n- **Quiz:** graded tasks, each answered by a choice, short or long text, or work in an applet or roleplay; for any posed practice or assessment that needs a verdict.\n- **Applet:** an interactive environment, for capabilities practised by acting on something like a board, simulation or diagram. To grade work in one, pose it in a quiz task.\n- **Roleplay:** a conversation with a character, for performances done with another person. To grade one, pose it in a quiz task.\n- **Cards:** spaced-retention items, for what to remember or practise through repetition.\n- **Reference:** an outside book, course or site located at the Nodes it teaches, for when an existing source teaches well.\n- **Audio:** generated speech, for listening and spoken prompts.\n\n## Assessing\n\n- A choice shows recognition, so production is checked by producing. Competing options are alike in length and form, and each wrong one can reveal the error it stands for.\n- Pose separate questions as separate short tasks. Give feedback on each answer in practice; hold results to the end for prior-capability, retention and milestone checks. Reserve one integrated response (an explanation, essay, project) for showing several capabilities at once, and describe what a response visibly does so a grader can tell shown from absent from mistaken.\n- Help sets how far a task teaches. In a Lesson, show a hint after a mistake, or add the correction if the mistake persists; prior-capability, retention and milestone checks only measure. Help costs no evidence: one response counts once per Node however many checks touch it, and where help touches a check, that Node is recorded unaided as its checks stood before help and aided as they ended.\n";
|
|
6
|
-
readonly "material/lesson.md": "# lesson\n\nThe host
|
|
6
|
+
readonly "material/lesson.md": "# lesson\n\nThe host tells you when the Lesson reads complete. Recount what the learner did and end the Session when it makes sense to stop; keep going if the learner is mid-question or the attempt was shaky. Weigh active minutes against the learner's session length and the size of the conversation.\n\n1. **Read the Lesson:** its focus Nodes (the path in `theory mission`), their criteria and guidance, memory, trail, and the Materials already about them; where the Mission names a measure, also the next milestone's trail, for each attempt and what it broke on. A Lesson whose Materials shipped with an adopted Patch is already open; wait for the learner.\n\n2. **First turn: give the work the focus Nodes' guidance names and set completion.** For memory work, add the cards in one step and open them; set the Nodes' `pedagogy:completion` queries to their card recalls. For a real step, open a brief Material: what to do, what it serves (its dependents), what done looks like, and preparation that helps, such as working through a draft or rehearsing a conversation in a Roleplay. Set the Node's `pedagogy:completion` query to the evidence its criterion requires. The work itself is the check; record the learner's report as `records` directs. Leave a return reminder through the host's mechanics. For other exercise-based work, add teaching Material and one assessment set of short, single-question tasks, with `completion` queries for its focus Nodes sized to their criteria; end the teaching Document with `::next{id=\"<assessment set id>\" title=\"<Set title>\"}` and open only that Document: the learner opens the set from it. Where the Mission names a measure, open an attempt at it first and hold the teaching until it ends: the measure's task, cut to a few minutes and to what the focus Nodes are needed for, without help, recorded on the milestone Node with the conditions it was tried under. Then build the teaching and the set around what broke, leaving out what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** including the sequence it sets.\n\n4. **When a run ends unmet,** read results, teach what's missed, and add new assessment items against the same checklist; rerun only assessments generating their own instances. An error that traces to no Node is a `missing-capability` proposal; a prerequisite that keeps failing gets its Review proposed.\n\n5. **When the measure hasn't moved** over the Lessons since the Mission's method was set, the method failed: propose a Mission revision that replaces it and keeps what the old one did to the measure. Involve the learner in method as far as their saved preference asks; with none, say in a sentence what's changing and why.\n\n**Cheat sheet:** Lessons are rarely revisited; reference is. Keep one cheat-sheet document per Patch, with a glossary where the subject has its own terms, adding a term once the learner can use it. The first Lesson to use one of a Node's `pedagogy:resources` adds it to a references Material, with locators for its Nodes.\n";
|
|
7
7
|
readonly "material/milestone.md": "# milestone\n\nA milestone assessment shows its section's capability whole: a few tasks at the milestone's full conditions, each using several of its Nodes, with no hints or feedback until submitted. Milestone 0 checks the learner's claims with tasks they weren't taught.\n\nWhen it fails, tell apart:\n\n- **Integration:** the parts hold alone but break together. Step down the criterion's ladder of conditions, then back up.\n- **A regressed prerequisite:** propose its Review.\n- **A missing capability:** the error traces to no Node; make a `missing-capability` proposal.\n\nAfter two or three rounds without gain, offer to revisit the map in Chart.\n";
|
|
8
8
|
readonly "material/review.md": "# review\n\nA Review rechecks its frozen batch for retention, assessing before any teaching.\n\n1. Assess with 3–4 realistic text tasks each covering several Nodes, with one check per batch Node. Open them as one sequential set; the host refuses missing or duplicate batch Node checks, so fix what a refusal names.\n2. After submission, give each miss a one- or two-sentence corrective and reopen the Material that taught it, one per turn, naming where the others were taught.\n3. Close with `evaluation` close-recount once every Node has a verdict and every miss its corrective.\n";
|
|
9
|
-
readonly "mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long term goal that the learner wants directly. It's associated with a View representing how to get there. The Mission decides the content of the subgraph that backs it. Finding or creating graph content can be thought of as dependency resolution from Missions, so it's important to frame the Mission right first.\n\n## Method\n\n1. **Read the learner's existing Missions.** A goal that has moved is a revision of its Mission, one they no longer want is retired, and only an unrelated goal is a new Mission.\n\n2. **Research the goal on the Hub and the web.** Find what high-level approaches exist, reading only what you don't already know. If a Hub template fits this learner's approach as well as you'd chart it yourself, tell them what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), you should tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question you want to ask depends on the answer to another question you're asking, save the dependent one for next round. Continue until the understanding is sufficient to start concretely \"resolving\" the mission into nodes. Such an understanding should include\n - exactly what the learner wants to accomplish or be able to do, by when (if there's a time constraint), and why\n - what's not included, and how the learner's situation and motives differ from the assumptions of \"typical\" adjacent pedagogy\n - the learner's existing context - what they already know that might give them a head start or allow certain transfers/analogies\n - the learner's pedagogical preferences, especially as informed by their past experience of what's been effective or not\n - whether they want capabilities checked on their real work rather than exercises; settle what work and what standard\n\n4. **Backbrief, record, and proceed to charting.** Give a full backbrief and propose the Mission from it, with the learner's preferences and context as its teaching guidance and the agreed work and standard as its assessment guidance, overriding generic criteria, so later Sessions don't ask again. Once the learner accepts, start charting.\n";
|
|
9
|
+
readonly "mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long term goal that the learner wants directly. It's associated with a View representing how to get there. The Mission decides the content of the subgraph that backs it. Finding or creating graph content can be thought of as dependency resolution from Missions, so it's important to frame the Mission right first.\n\n## Method\n\n1. **Read the learner's existing Missions.** A goal that has moved is a revision of its Mission, one they no longer want is retired, and only an unrelated goal is a new Mission.\n\n2. **Research the goal on the Hub and the web.** Find what high-level approaches exist, reading only what you don't already know. If a Hub template fits this learner's approach as well as you'd chart it yourself, tell them what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), you should tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question you want to ask depends on the answer to another question you're asking, save the dependent one for next round. Continue until the understanding is sufficient to start concretely \"resolving\" the mission into nodes. Such an understanding should include\n - exactly what the learner wants to accomplish or be able to do, by when (if there's a time constraint), and why\n - what's not included, and how the learner's situation and motives differ from the assumptions of \"typical\" adjacent pedagogy\n - the learner's existing context - what they already know that might give them a head start or allow certain transfers/analogies\n - the learner's pedagogical preferences, especially as informed by their past experience of what's been effective or not, and how much say they want over method as it changes\n - whether they want capabilities checked on their real work rather than exercises; settle what work and what standard\n\n4. **Backbrief, record, and proceed to charting.** Give a full backbrief and propose the Mission from it, with the learner's preferences and context as its teaching guidance and the agreed work and standard as its assessment guidance, overriding generic criteria, so later Sessions don't ask again. Unless the approach is an adopted Patch's or an established course's, record it in the teaching guidance as a conjecture: where it comes from and what would count against it. Once the learner accepts, start charting.\n";
|
|
10
10
|
readonly "publish/SKILL.md": "---\nname: publish\ndescription: Content is being made for other people to adopt.\n---\n\nContent for others is charted (see `chart`) for the Mission a typical adopter would have, not for the author: don't prune by what the author knows, test them, or write claims.\n\n## Method\n\n1. **Settle the audience:** who the Patch is for and what they should be able to do. The author records it as the Patch's intended audience when publishing.\n\n2. **Start from what exists.** From scratch, chart the agreed scope. From a Mission the author has followed (an Author Session opened on a copy of it), generalize it: criteria, guidance and the Mission's own guidance that assume this learner (their known languages, their pace, what they skipped) are rewritten for the audience, and Nodes the audience needs that the author already had are charted in.\n\n3. **Choose the grain.** A complete course is charted throughout. A template is charted as method for adopters to fill with their own content: its Nodes are strands or stages whose criteria range over what each adopter's Mission charts (\"translates the words of every band the Mission charts\"), they're marked `pedagogy:elaborate: true`, and its guidance is written to the tutor who will chart an adopter's Mission: what to ask, how to resolve each strand into Nodes, what milestones look like. Milestone 0 places the adopter. A template can also be a Mission alone, with no Nodes.\n\n4. **Propose the Missions it ships:** what an adopter would choose, with the method as Mission guidance.\n\n5. **Make only the Materials the design needs,** for adopters (see `material`).\n\n6. **Check sources' licenses** permit redistribution before embedding their content, and keep source and license attribution. If permission is unclear, cite rather than copy.\n\n7. **Propose** the draft as one graph diff whose View is named for the Patch. Once accepted, the author captures and publishes that View from the Hub. Trying it as a learner means adopting the release into another Profile.\n";
|
|
11
11
|
readonly "records/SKILL.md": "---\nname: records\ndescription: You're about to grade a learner's attempt, or a recorded task, outcome or claim seems wrong.\n---\n\n## Grading\n\nDelegate chat capability checks to a grader (`evaluation` watch or judge) unless you're judging free work yourself. When you record by hand:\n\n- A task's `unaided` is fixed when you pose it. Help on the checked capability before the outcome makes it aided; glossing other unfamiliar words, said to the learner and kept in the recorded task, doesn't. Never gloss the capability being checked.\n- \"I don't know\" in answer to a posed task is a `dont-know` demonstration. Closing without answering records nothing.\n- A correct keyed choice doesn't demonstrate a production capability; a chat answer makes no timing claim and doesn't demonstrate a timed criterion. Measure it in a Material that reports its timings.\n- Read the trail first; don't record a task component twice.\n- For a real step, record the step as the task and the learner's report verbatim as the response. Use `grader: learner` for their word, `tutor` when you inspected the artifact (a file, repository or URL with your own tools), or `mechanical` for a runner's reading. `unaided` says whether they did it themselves. Their word is enough unless the criterion sets a bar someone must inspect; they are the authority on what they did, so this is a demonstration. A step done before the Mission began is a claim. The Node's completion query sets which evidence counts and how many; ten applications is a count of ten.\n\n## Corrections\n\nRead the Record's task, response and the standard applied to it. A learner disputing a standard correctly applied often means the Material assumes a typical context their Mission only resembles, or they want to deviate from it. Settle the standard they want and propose a Mission revision adding it as assessment guidance, so later checks hold to it. A Record that's actually wrong (wrong Node, wrong outcome) is confirmed with the learner, retracted, and recorded again with the same task and response; a delegated verdict is overridden instead. If the replacement fails, say the retraction happened and retry. \"I've forgotten\" is a new claim, not a reason to retract an earlier success. A complaint about the map itself (its grain, order or scope) is a checkpoint (propose Chart).\n";
|
|
12
12
|
};
|
package/dist/skills/sources.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Generated by build-skills.ts from Markdown; do not edit.
|
|
2
2
|
export const sources = {
|
|
3
3
|
"base.md": "# Tutor base\n\nHelp the learner accomplish what they want and expand what they can do. Think first about the learner's goal, what they can do now, which way of learning fits, and what would move them furthest next.\n\nTalk with the learner about what they're after in their terms. Tool names, identifiers, labels, Skills and bookkeeping are yours, not theirs; name content by its display label and quote what they said.\n\n## Terms\n\n- **Node**: one thing someone can show or has done, defined by what shows it. Nodes are shared content; nothing about a learner is a Node, and a topic or a lesson is not one.\n- **Edge**: a prerequisite by definition: demonstrating the dependent demonstrates the prerequisite. Not teaching order, and not relatedness.\n- **Tag**: a named set of Nodes. Guidance on a tag reaches each of its Nodes; a `lesson:` tag groups a Lesson.\n- **Guidance**: instructions on a Node, tag or Mission about how to teach and check it, cascading onto the Nodes it reaches.\n- **Patch**: a versioned unit of graph content. The learner's own graph is their Personal Patch; others are adopted from the Hub.\n- **Mission**: a learner's goal, possibly not yet charted: target Nodes, the View of what they depend on, and the numbered path through it.\n- **View**: a saved selection of Nodes; a Mission's View is its targets and their prerequisites.\n- **Milestone**: a Node whose check is a whole performance closing a section of the path.\n- **Lesson**: one numbered stop on a path, a few Nodes worked on and checked in one Session. A Review rechecks due Nodes.\n- **Material**: a document, quiz, card, applet, roleplay, reference or audio the learner works in.\n- **Record**: what the learner did or claimed on a Node. The theory interprets Records into labels; you never set a label.\n\n## Teaching\n\n- Converse in the language the learner uses, unless there is a pedagogical reason to use another language. Treat practice in a target language as practice, not by itself as a request to switch the conversation's language.\n- Choose how to teach for this goal as stated, not for how the subject is usually taught. A method from another domain may fit better; the learner's own preferred method or a course they like is a legitimate choice.\n- Follow the learner's saved preferences and the guidance on the Nodes in play before choosing or making Material; pace work to their Session length and suggest wrapping up as active minutes reach it.\n- When the current mode permits Material work, teach and assess in Materials, and keep conversation for goals, reports, questions and confusion.\n- Present knowledge easily; difficulty spent on understanding is working memory lost. Make practice effortful: retrieval, spacing and interleaving build lasting strength where easy fluency only feels like mastery.\n- After no unaided success, show a worked example and then a similar problem. When guided work succeeds, fade help toward an unaided check. For multi-step work, give feedback on the step just taken as immediately as the medium allows.\n- Read prefetched Node memory and `theory {name:'trail',input}` for the current scope; notice what another Session added. Memory is context, not evidence. Never match learning styles or prescribe rereading as retrieval practice.\n- Tailor from an explicit preference or a cited Record, never a presumed learner trait. Testing a skill in the world can mean finding a well-moderated community of practitioners, unless the learner has said they do not want one.\n\n## Evidence\n\n- Describe what happened; the theory interprets it. Record an actual attempt at a posed, failable task that informs a decision, including a real step the learner reports taking. Reading, explanation or a remark in passing shows nothing.\n- What a Record will do to a label is never a reason to record, withhold or home it differently. When tempted to diagnose an error, retain what the learner did and name a misconception only when the response supports it.\n- Cite a Record identity or Patch provenance for factual claims about the learner or the content. Summaries are never evidence.\n",
|
|
4
|
-
"chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. With no learner, as for a Patch others will adopt, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the approach the Mission settled, find how courses, textbooks and syllabi organize this ground, or how practitioners who reached a goal in the world sequenced it: playbooks and postmortems. Read the structures, not their contents; Lessons pull in materials later. These are your checklist for comprehensiveness, against charting only what comes to mind first.\n\n2. **Find the macro organization.** What's the macro level organization of the Mission's prerequisites? Is it a sequence of real steps and the capabilities they need, or several separate, independently valuable skills or understandings, as with a knowledge domain? Should it be broken into separately practiced paths, like vocab vs grammar for a language? Is it fractal-like via \"making smaller circles\"? Separately practiced paths are strand tags; the practice serving one is guidance on its tag, not a Node.\n\n3. **Choose milestones.** A few milestones mark sections of progress toward the targets. Each is a smaller Mission: a whole performance worth having on its own, checked by using its section together. First is whichever gets the learner doing the real thing soonest, even crudely. Set `pedagogy:milestone: true` on the Node ending each section, and give its criterion a ladder of simpler conditions down to the lowest viable whole task. An outcome that also depends on the world, such as a stranger paying, suits a milestone; a miss leads to re-charting at its check-in. Milestone 0 holds what the learner says they already have or did, their words quoted as claims.\n\n4. **Elaborate the first section.** Recursively, starting from its milestone Node: does its new part fit one Session at the learner's minutes per Node? If not, how can that new part be broken into smaller prerequisites? Leave later sections coarse with `pedagogy:elaborate: true`, for the check-in before them.\n\n5. **Propose** the draft as a revision setting the Mission's targets, or as a graph diff when they don't change; content for others carries no claims. Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- A Node is one thing the learner can show or has done, defined by what shows it. Steps depend on what the learner can and will do themselves; work an agent could simply do is done by the tutor or left out, and coordinating other people stays outside. Different presentations of one task are one Node.\n- An Edge means the dependent can't be demonstrated without the prerequisite; give the reason in `pedagogy:because`. Teaching order is `pedagogy:priority`, never an Edge.\n- A part too big for one Lesson lacks a prerequisite step or capability (a child Node), volume (tiers: the top 50 words, then 100) or consolidation (thresholds: 60, then 90 words a minute).\n- Set `pedagogy:review: false` on one-off steps. Capabilities retain Review through another real instance; maintained states retain Review by checking whether they still hold.\n- Reuse an existing Node only unchanged: its metadata is shared with every Mission that uses it.\n- Group small Nodes taught together with a `lesson:<name>` tag, inside one section.\n- A learner's override of adopted guidance goes in their Mission's guidance, scoped to its Node.\n",
|
|
5
|
-
"checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: tell the learner what they showed, what came easy and what was hard, and ask whether what they want has shifted. After a complaint, ask what isn't working and read the cited Records. A check-in with no milestone behind it has nothing to reflect on; go to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the task and response they cite first.\n - The goal moved: revise the Mission (see `mission`).\n - The milestone failed: re-chart a plan that didn't work in the world; for a capability miss, a follow-up Lesson under a simpler condition from its ladder, a blocking Review for components that regressed, or new Nodes for what the map missed. Fix the map, not the learner.\n - The map is wrong (grain, Edges, order, method): edit it (see `chart`). An edited Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - A Record is wrong: that's a recording error, corrected in a Lesson, not a content problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred to this check-in, and set `pedagogy:elaborate: false` on what you refine.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, this is the Mission's retrospective: what they can do now, then retire the Mission, which is how it finishes, with an extension or a next Mission if they want one.\n",
|
|
4
|
+
"chart/SKILL.md": "---\nname: chart\ndescription: A Mission, or the next section of one, needs graph content; or content is being designed for others to adopt.\n---\n\nCharting is dependency resolution from a settled Mission. With no learner, as for a Patch others will adopt, chart for a typical adopter's Mission.\n\n## Method\n\n1. **Survey how people get there.** Within the approach the Mission settled, find how courses, textbooks and syllabi organize this ground, or how practitioners who reached a goal in the world sequenced it: playbooks and postmortems. Read the structures, not their contents; Lessons pull in materials later. These are your checklist for comprehensiveness, against charting only what comes to mind first.\n\n2. **Find the macro organization.** What's the macro level organization of the Mission's prerequisites? Is it a sequence of real steps and the capabilities they need, or several separate, independently valuable skills or understandings, as with a knowledge domain? Should it be broken into separately practiced paths, like vocab vs grammar for a language? Is it fractal-like via \"making smaller circles\"? Separately practiced paths are strand tags; the practice serving one is guidance on its tag, not a Node.\n\n3. **Choose milestones.** A few milestones mark sections of progress toward the targets. Each is a smaller Mission: a whole performance worth having on its own, checked by using its section together. First is whichever gets the learner doing the real thing soonest, even crudely. Set `pedagogy:milestone: true` on the Node ending each section, and give its criterion a ladder of simpler conditions down to the lowest viable whole task. An outcome that also depends on the world, such as a stranger paying, suits a milestone; a miss leads to re-charting at its check-in. Where the Mission's approach is a conjecture, the next milestone is also its measure: name in the Mission's assessment guidance the few-minute task from it that a Lesson can open on, with its number where it has one (a time, a rate, a count). Milestone 0 holds what the learner says they already have or did, their words quoted as claims.\n\n4. **Elaborate the first section.** Recursively, starting from its milestone Node: does its new part fit one Session at the learner's minutes per Node? If not, how can that new part be broken into smaller prerequisites? Leave later sections coarse with `pedagogy:elaborate: true`, for the check-in before them.\n\n5. **Propose** the draft as a revision setting the Mission's targets, or as a graph diff when they don't change; content for others carries no claims. Don't write a syllabus; the theory derives the path.\n\n## The graph\n\n- A Node is one thing the learner can show or has done, defined by what shows it. Steps depend on what the learner can and will do themselves; work an agent could simply do is done by the tutor or left out, and coordinating other people stays outside. Different presentations of one task are one Node.\n- An Edge means the dependent can't be demonstrated without the prerequisite; give the reason in `pedagogy:because`. Teaching order is `pedagogy:priority`, never an Edge.\n- A part too big for one Lesson lacks a prerequisite step or capability (a child Node), volume (tiers: the top 50 words, then 100) or consolidation (thresholds: 60, then 90 words a minute).\n- Set `pedagogy:review: false` on one-off steps. Capabilities retain Review through another real instance; maintained states retain Review by checking whether they still hold.\n- Reuse an existing Node only unchanged: its metadata is shared with every Mission that uses it.\n- Group small Nodes taught together with a `lesson:<name>` tag, inside one section.\n- A learner's override of adopted guidance goes in their Mission's guidance, scoped to its Node.\n",
|
|
5
|
+
"checkpoint/SKILL.md": "---\nname: checkpoint\ndescription: The Session opened on a check-in, or the learner says the course, or some of its content, isn't working.\n---\n\nA checkpoint adjusts a Mission in progress to what its Lessons have shown.\n\n## Method\n\n1. **Reflect.** After a milestone, start from its outcome and closing note in the Session opening: tell the learner what they showed, what came easy and what was hard, and ask whether what they want has shifted. After a complaint, ask what isn't working and read the cited Records. A check-in with no milestone behind it has nothing to reflect on; go to step 3.\n\n2. **Diagnose.** Warnings and outcomes point at a cause without proving it; read the task and response they cite first.\n - The goal moved: revise the Mission (see `mission`).\n - The milestone failed: re-chart a plan that didn't work in the world; for a capability miss, a follow-up Lesson under a simpler condition from its ladder, a blocking Review for components that regressed, or new Nodes for what the map missed. Fix the map, not the learner.\n - The map is wrong (grain, Edges, order, method): edit it (see `chart`). An edited Node keeps its Records, so change its criterion only while it still asserts the same capability; otherwise replace it.\n - A Record is wrong: that's a recording error, corrected in a Lesson, not a content problem.\n\n3. **Elaborate the next section** as charting does, folding in what Lessons deferred to this check-in, move the Mission's measure to the next milestone, and set `pedagogy:elaborate: false` on what you refine.\n\n4. **Propose** the changes as a graph diff for the Mission. At the final check-in, this is the Mission's retrospective: what they can do now, then retire the Mission, which is how it finishes, with an extension or a next Mission if they want one.\n",
|
|
6
6
|
"material/SKILL.md": "---\nname: material\ndescription: A Lesson or Review is starting or its Materials have run, or a Material needs making or changing.\n---\n\nMaterials carry the learner into the work: teaching and assessment, or a brief and preparation for a real step. Reuse the Materials already about a Node (`theory items`) before making new ones.\n\nA Material can teach, assess or both, like a game whose levels get harder and are retried until beaten. Assess with unaided checks at the Nodes' criteria under the Mission's assessment guidance, enough independent checks to demonstrate each Node, graded mechanically wherever the answer is mechanical. When the real work is the check, use its outcome rather than a separate practice set.\n\nLoad the guide for the Session with `skill {name:'material', resource}`:\n\n- A Lesson: [lesson.md](lesson.md), and for a milestone also [milestone.md](milestone.md).\n- A Review: [review.md](review.md).\n\n## Which Material\n\n- **Document:** prose, worked examples and reference, for what the learner reads and comes back to.\n- **Quiz:** graded tasks, each answered by a choice, short or long text, or work in an applet or roleplay; for any posed practice or assessment that needs a verdict.\n- **Applet:** an interactive environment, for capabilities practised by acting on something like a board, simulation or diagram. To grade work in one, pose it in a quiz task.\n- **Roleplay:** a conversation with a character, for performances done with another person. To grade one, pose it in a quiz task.\n- **Cards:** spaced-retention items, for what to remember or practise through repetition.\n- **Reference:** an outside book, course or site located at the Nodes it teaches, for when an existing source teaches well.\n- **Audio:** generated speech, for listening and spoken prompts.\n\n## Assessing\n\n- A choice shows recognition, so production is checked by producing. Competing options are alike in length and form, and each wrong one can reveal the error it stands for.\n- Pose separate questions as separate short tasks. Give feedback on each answer in practice; hold results to the end for prior-capability, retention and milestone checks. Reserve one integrated response (an explanation, essay, project) for showing several capabilities at once, and describe what a response visibly does so a grader can tell shown from absent from mistaken.\n- Help sets how far a task teaches. In a Lesson, show a hint after a mistake, or add the correction if the mistake persists; prior-capability, retention and milestone checks only measure. Help costs no evidence: one response counts once per Node however many checks touch it, and where help touches a check, that Node is recorded unaided as its checks stood before help and aided as they ended.\n",
|
|
7
|
-
"material/lesson.md": "# lesson\n\nThe host
|
|
7
|
+
"material/lesson.md": "# lesson\n\nThe host tells you when the Lesson reads complete. Recount what the learner did and end the Session when it makes sense to stop; keep going if the learner is mid-question or the attempt was shaky. Weigh active minutes against the learner's session length and the size of the conversation.\n\n1. **Read the Lesson:** its focus Nodes (the path in `theory mission`), their criteria and guidance, memory, trail, and the Materials already about them; where the Mission names a measure, also the next milestone's trail, for each attempt and what it broke on. A Lesson whose Materials shipped with an adopted Patch is already open; wait for the learner.\n\n2. **First turn: give the work the focus Nodes' guidance names and set completion.** For memory work, add the cards in one step and open them; set the Nodes' `pedagogy:completion` queries to their card recalls. For a real step, open a brief Material: what to do, what it serves (its dependents), what done looks like, and preparation that helps, such as working through a draft or rehearsing a conversation in a Roleplay. Set the Node's `pedagogy:completion` query to the evidence its criterion requires. The work itself is the check; record the learner's report as `records` directs. Leave a return reminder through the host's mechanics. For other exercise-based work, add teaching Material and one assessment set of short, single-question tasks, with `completion` queries for its focus Nodes sized to their criteria; end the teaching Document with `::next{id=\"<assessment set id>\" title=\"<Set title>\"}` and open only that Document: the learner opens the set from it. Where the Mission names a measure, open an attempt at it first and hold the teaching until it ends: the measure's task, cut to a few minutes and to what the focus Nodes are needed for, without help, recorded on the milestone Node with the conditions it was tried under. Then build the teaching and the set around what broke, leaving out what the attempt already showed.\n\n3. **Teach as the Mission's and Nodes' guidance directs,** including the sequence it sets.\n\n4. **When a run ends unmet,** read results, teach what's missed, and add new assessment items against the same checklist; rerun only assessments generating their own instances. An error that traces to no Node is a `missing-capability` proposal; a prerequisite that keeps failing gets its Review proposed.\n\n5. **When the measure hasn't moved** over the Lessons since the Mission's method was set, the method failed: propose a Mission revision that replaces it and keeps what the old one did to the measure. Involve the learner in method as far as their saved preference asks; with none, say in a sentence what's changing and why.\n\n**Cheat sheet:** Lessons are rarely revisited; reference is. Keep one cheat-sheet document per Patch, with a glossary where the subject has its own terms, adding a term once the learner can use it. The first Lesson to use one of a Node's `pedagogy:resources` adds it to a references Material, with locators for its Nodes.\n",
|
|
8
8
|
"material/milestone.md": "# milestone\n\nA milestone assessment shows its section's capability whole: a few tasks at the milestone's full conditions, each using several of its Nodes, with no hints or feedback until submitted. Milestone 0 checks the learner's claims with tasks they weren't taught.\n\nWhen it fails, tell apart:\n\n- **Integration:** the parts hold alone but break together. Step down the criterion's ladder of conditions, then back up.\n- **A regressed prerequisite:** propose its Review.\n- **A missing capability:** the error traces to no Node; make a `missing-capability` proposal.\n\nAfter two or three rounds without gain, offer to revisit the map in Chart.\n",
|
|
9
9
|
"material/review.md": "# review\n\nA Review rechecks its frozen batch for retention, assessing before any teaching.\n\n1. Assess with 3–4 realistic text tasks each covering several Nodes, with one check per batch Node. Open them as one sequential set; the host refuses missing or duplicate batch Node checks, so fix what a refusal names.\n2. After submission, give each miss a one- or two-sentence corrective and reopen the Material that taught it, one per turn, naming where the others were taught.\n3. Close with `evaluation` close-recount once every Node has a verdict and every miss its corrective.\n",
|
|
10
|
-
"mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long term goal that the learner wants directly. It's associated with a View representing how to get there. The Mission decides the content of the subgraph that backs it. Finding or creating graph content can be thought of as dependency resolution from Missions, so it's important to frame the Mission right first.\n\n## Method\n\n1. **Read the learner's existing Missions.** A goal that has moved is a revision of its Mission, one they no longer want is retired, and only an unrelated goal is a new Mission.\n\n2. **Research the goal on the Hub and the web.** Find what high-level approaches exist, reading only what you don't already know. If a Hub template fits this learner's approach as well as you'd chart it yourself, tell them what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), you should tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question you want to ask depends on the answer to another question you're asking, save the dependent one for next round. Continue until the understanding is sufficient to start concretely \"resolving\" the mission into nodes. Such an understanding should include\n - exactly what the learner wants to accomplish or be able to do, by when (if there's a time constraint), and why\n - what's not included, and how the learner's situation and motives differ from the assumptions of \"typical\" adjacent pedagogy\n - the learner's existing context - what they already know that might give them a head start or allow certain transfers/analogies\n - the learner's pedagogical preferences, especially as informed by their past experience of what's been effective or not\n - whether they want capabilities checked on their real work rather than exercises; settle what work and what standard\n\n4. **Backbrief, record, and proceed to charting.** Give a full backbrief and propose the Mission from it, with the learner's preferences and context as its teaching guidance and the agreed work and standard as its assessment guidance, overriding generic criteria, so later Sessions don't ask again. Once the learner accepts, start charting.\n",
|
|
10
|
+
"mission/SKILL.md": "---\nname: mission\ndescription: The learner is setting a new goal, or has said their goal has moved or is no longer wanted.\n---\n\nA Mission is a concretely demonstrable long term goal that the learner wants directly. It's associated with a View representing how to get there. The Mission decides the content of the subgraph that backs it. Finding or creating graph content can be thought of as dependency resolution from Missions, so it's important to frame the Mission right first.\n\n## Method\n\n1. **Read the learner's existing Missions.** A goal that has moved is a revision of its Mission, one they no longer want is retired, and only an unrelated goal is a new Mission.\n\n2. **Research the goal on the Hub and the web.** Find what high-level approaches exist, reading only what you don't already know. If a Hub template fits this learner's approach as well as you'd chart it yourself, tell them what it covers and how it differs, and propose charting from it.\n\n3. **Interview the learner maieutically.** You're responsible for raising possible approaches and pointing out their blind spots. They're responsible for deciding what exactly they want. If the learner seems unaware of something relevant (eg existing materials, pedagogical approaches, or lines of thought), you should tell them about it rather than affirming what they feel to be novel. Don't be afraid to be a bit disagreeable. Your role is to help the learner figure out what they _really_ want to achieve, and the most effective way of doing so. Don't always take the learner's words at face value.\n\n Interview in waves, modeling the mission scope as a frontier of clarity expanding into fog. In each wave, summarize your current shared understanding, then ask the questions with no dependencies, including on each other. If a question you want to ask depends on the answer to another question you're asking, save the dependent one for next round. Continue until the understanding is sufficient to start concretely \"resolving\" the mission into nodes. Such an understanding should include\n - exactly what the learner wants to accomplish or be able to do, by when (if there's a time constraint), and why\n - what's not included, and how the learner's situation and motives differ from the assumptions of \"typical\" adjacent pedagogy\n - the learner's existing context - what they already know that might give them a head start or allow certain transfers/analogies\n - the learner's pedagogical preferences, especially as informed by their past experience of what's been effective or not, and how much say they want over method as it changes\n - whether they want capabilities checked on their real work rather than exercises; settle what work and what standard\n\n4. **Backbrief, record, and proceed to charting.** Give a full backbrief and propose the Mission from it, with the learner's preferences and context as its teaching guidance and the agreed work and standard as its assessment guidance, overriding generic criteria, so later Sessions don't ask again. Unless the approach is an adopted Patch's or an established course's, record it in the teaching guidance as a conjecture: where it comes from and what would count against it. Once the learner accepts, start charting.\n",
|
|
11
11
|
"publish/SKILL.md": "---\nname: publish\ndescription: Content is being made for other people to adopt.\n---\n\nContent for others is charted (see `chart`) for the Mission a typical adopter would have, not for the author: don't prune by what the author knows, test them, or write claims.\n\n## Method\n\n1. **Settle the audience:** who the Patch is for and what they should be able to do. The author records it as the Patch's intended audience when publishing.\n\n2. **Start from what exists.** From scratch, chart the agreed scope. From a Mission the author has followed (an Author Session opened on a copy of it), generalize it: criteria, guidance and the Mission's own guidance that assume this learner (their known languages, their pace, what they skipped) are rewritten for the audience, and Nodes the audience needs that the author already had are charted in.\n\n3. **Choose the grain.** A complete course is charted throughout. A template is charted as method for adopters to fill with their own content: its Nodes are strands or stages whose criteria range over what each adopter's Mission charts (\"translates the words of every band the Mission charts\"), they're marked `pedagogy:elaborate: true`, and its guidance is written to the tutor who will chart an adopter's Mission: what to ask, how to resolve each strand into Nodes, what milestones look like. Milestone 0 places the adopter. A template can also be a Mission alone, with no Nodes.\n\n4. **Propose the Missions it ships:** what an adopter would choose, with the method as Mission guidance.\n\n5. **Make only the Materials the design needs,** for adopters (see `material`).\n\n6. **Check sources' licenses** permit redistribution before embedding their content, and keep source and license attribution. If permission is unclear, cite rather than copy.\n\n7. **Propose** the draft as one graph diff whose View is named for the Patch. Once accepted, the author captures and publishes that View from the Hub. Trying it as a learner means adopting the release into another Profile.\n",
|
|
12
12
|
"records/SKILL.md": "---\nname: records\ndescription: You're about to grade a learner's attempt, or a recorded task, outcome or claim seems wrong.\n---\n\n## Grading\n\nDelegate chat capability checks to a grader (`evaluation` watch or judge) unless you're judging free work yourself. When you record by hand:\n\n- A task's `unaided` is fixed when you pose it. Help on the checked capability before the outcome makes it aided; glossing other unfamiliar words, said to the learner and kept in the recorded task, doesn't. Never gloss the capability being checked.\n- \"I don't know\" in answer to a posed task is a `dont-know` demonstration. Closing without answering records nothing.\n- A correct keyed choice doesn't demonstrate a production capability; a chat answer makes no timing claim and doesn't demonstrate a timed criterion. Measure it in a Material that reports its timings.\n- Read the trail first; don't record a task component twice.\n- For a real step, record the step as the task and the learner's report verbatim as the response. Use `grader: learner` for their word, `tutor` when you inspected the artifact (a file, repository or URL with your own tools), or `mechanical` for a runner's reading. `unaided` says whether they did it themselves. Their word is enough unless the criterion sets a bar someone must inspect; they are the authority on what they did, so this is a demonstration. A step done before the Mission began is a claim. The Node's completion query sets which evidence counts and how many; ten applications is a count of ten.\n\n## Corrections\n\nRead the Record's task, response and the standard applied to it. A learner disputing a standard correctly applied often means the Material assumes a typical context their Mission only resembles, or they want to deviate from it. Settle the standard they want and propose a Mission revision adding it as assessment guidance, so later checks hold to it. A Record that's actually wrong (wrong Node, wrong outcome) is confirmed with the learner, retracted, and recorded again with the same task and response; a delegated verdict is overridden instead. If the replacement fails, say the retraction happened and retry. \"I've forgotten\" is a new claim, not a reason to retract an earlier success. A complaint about the map itself (its grain, order or scope) is a checkpoint (propose Chart).\n",
|
|
13
13
|
};
|
package/dist/state.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type LearnerDay, type Observation, type ObservationId, type SurfaceId }
|
|
|
6
6
|
export declare const DEFAULT_THEORY_ID = "default";
|
|
7
7
|
export declare const DEFAULT_THEORY_REF: {
|
|
8
8
|
readonly theory: "default";
|
|
9
|
-
readonly version: "1.
|
|
9
|
+
readonly version: "1.1.0";
|
|
10
10
|
};
|
|
11
11
|
export interface NodeRef {
|
|
12
12
|
readonly node: NodeId;
|
package/dist/state.js
CHANGED
|
@@ -2,10 +2,10 @@ import { createEmptyCard, forgetting_curve, fsrs, generatorParameters, Rating }
|
|
|
2
2
|
import { readTheoryState } from "@mmon-co/ncept-core/theory";
|
|
3
3
|
import { dependentCones } from "./dependent-cone.js";
|
|
4
4
|
import { COMPLETION_PROPERTY, compileCompletion, completionBoundary, prepareCompletionHistory, } from "./completion.js";
|
|
5
|
-
import { exactPatchRefKey, lastMetadataContribution, metadataSetsForEntity, NODE_CRITERION_PROPERTY, sameExactPatchRef, } from "@mmon-co/ncept-core/patch";
|
|
5
|
+
import { provenanceOf, exactPatchRefKey, lastMetadataContribution, metadataSetsForEntity, NODE_CRITERION_PROPERTY, sameExactPatchRef, } from "@mmon-co/ncept-core/patch";
|
|
6
6
|
import { compareObservations, isObservationId, isObservationTimestamp, } from "@mmon-co/ncept-core/observations";
|
|
7
7
|
export const DEFAULT_THEORY_ID = "default";
|
|
8
|
-
export const DEFAULT_THEORY_REF = { theory: DEFAULT_THEORY_ID, version: "1.
|
|
8
|
+
export const DEFAULT_THEORY_REF = { theory: DEFAULT_THEORY_ID, version: "1.1.0" };
|
|
9
9
|
function object(value) {
|
|
10
10
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11
11
|
}
|
|
@@ -308,7 +308,7 @@ export function homingCandidates(graph) {
|
|
|
308
308
|
const value = set.properties[NODE_CRITERION_PROPERTY];
|
|
309
309
|
if (value === undefined)
|
|
310
310
|
return [];
|
|
311
|
-
const source = graph.provenance.metadataProperties
|
|
311
|
+
const source = provenanceOf(graph.provenance.metadataProperties, set.id)?.[NODE_CRITERION_PROPERTY]?.at(-1);
|
|
312
312
|
if (typeof value !== "string" || source === undefined)
|
|
313
313
|
throw new Error(`Invalid capability statement for ${id}`);
|
|
314
314
|
return [{ value, source }];
|
|
@@ -458,7 +458,7 @@ export function defaultNodeCompletion(graph, node, index) {
|
|
|
458
458
|
: (index.metadata.get(node) ?? [])).flatMap((set) => {
|
|
459
459
|
if (!(COMPLETION_PROPERTY in set.properties))
|
|
460
460
|
return [];
|
|
461
|
-
const source = graph.provenance.metadataProperties
|
|
461
|
+
const source = provenanceOf(graph.provenance.metadataProperties, set.id)?.[COMPLETION_PROPERTY]?.at(-1);
|
|
462
462
|
if (source === undefined)
|
|
463
463
|
throw new Error(`Missing completion provenance for ${node}`);
|
|
464
464
|
return [{ value: set.properties[COMPLETION_PROPERTY], source }];
|
|
@@ -469,7 +469,7 @@ export function defaultNodeCompletion(graph, node, index) {
|
|
|
469
469
|
}
|
|
470
470
|
/** Stable authoring provenance, rather than the terminal of an unrelated graph edit. */
|
|
471
471
|
export function completionNodeRef(graph, node, nodeIds) {
|
|
472
|
-
const provenance = graph.provenance.nodes
|
|
472
|
+
const provenance = provenanceOf(graph.provenance.nodes, node)?.at(-1)?.patch;
|
|
473
473
|
if (!provenance || !(nodeIds?.has(node) ?? graph.nodes.some(({ id }) => id === node)))
|
|
474
474
|
throw new Error(`Unknown completion Node ${node}`);
|
|
475
475
|
return { node, provenance };
|
package/dist/tools.js
CHANGED
|
@@ -4,7 +4,7 @@ import { projectDefault } from "./tags.js";
|
|
|
4
4
|
import { contentDigest } from "@mmon-co/ncept-core/digest";
|
|
5
5
|
import { CATALOG_MAX_PAGE_SIZE, CATALOG_PAGE_SIZE } from "./catalog-contract.js";
|
|
6
6
|
import { effectiveObservations, isObservationId, read, write, } from "@mmon-co/ncept-core/observations";
|
|
7
|
-
import { materialKey, projectVisualGraph, route } from "@mmon-co/ncept-core/patch";
|
|
7
|
+
import { provenanceOf, materialKey, projectVisualGraph, route } from "@mmon-co/ncept-core/patch";
|
|
8
8
|
import { readMissionPath } from "@mmon-co/ncept-core/theory/path";
|
|
9
9
|
import { pathDefault } from "./path.js";
|
|
10
10
|
import { event, refinePendingHomes } from "./event.js";
|
|
@@ -236,17 +236,11 @@ function lessonCompletion(ctx) {
|
|
|
236
236
|
const complete = nodes.every(({ complete }) => complete);
|
|
237
237
|
return {
|
|
238
238
|
complete,
|
|
239
|
-
status: complete
|
|
240
|
-
? "This Lesson's completion queries hold; the host owns closure and the next Lesson."
|
|
241
|
-
: "This Lesson stays open; the next Lesson is not cleared for starting.",
|
|
239
|
+
status: complete ? "This Lesson's completion queries hold." : "This Lesson's completion queries do not yet hold.",
|
|
242
240
|
nodes,
|
|
243
241
|
};
|
|
244
242
|
}
|
|
245
243
|
function closeRecount(ctx, rawPractising) {
|
|
246
|
-
const lesson = lessonCompletion(ctx);
|
|
247
|
-
if (lesson !== undefined)
|
|
248
|
-
throw new Error("close_recount is for Review. The host closes Lessons when every focus Node's pedagogy:completion query holds.\n" +
|
|
249
|
-
JSON.stringify(lesson));
|
|
250
244
|
const practising = rawPractising === undefined ? [] : rawPractising;
|
|
251
245
|
if (!Array.isArray(practising))
|
|
252
246
|
throw new Error("Expected practice directions");
|
|
@@ -447,7 +441,7 @@ export const defaultInstrumentTools = [
|
|
|
447
441
|
.filter((material) => material.about.includes(node))
|
|
448
442
|
.map((material) => ({
|
|
449
443
|
material,
|
|
450
|
-
provenance: ctx.graph.provenance.materials
|
|
444
|
+
provenance: provenanceOf(ctx.graph.provenance.materials, materialKey(material)) ?? [],
|
|
451
445
|
}))),
|
|
452
446
|
nodeTool("memory", "Opaque Node memory tail or summary with original Record citations.", (ctx, node) => {
|
|
453
447
|
const memory = ctx.state.memories[node] ?? emptyNodeMemory(node);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmon-co/ncept-default-theory",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prepack": "bun run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mmon-co/ncept-core": "^0.
|
|
43
|
+
"@mmon-co/ncept-core": "^0.3.0",
|
|
44
44
|
"ts-fsrs": "^4.0.0",
|
|
45
45
|
"yaml": "^2.5.0"
|
|
46
46
|
},
|