@mmon-co/ncept-default-theory 3.0.25 → 3.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/implementation.d.ts +2 -1
- package/dist/implementation.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/path.d.ts +2 -1
- package/dist/path.js +11 -0
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/package.json +1 -1
package/dist/implementation.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { event } from "./event.js";
|
|
|
3
3
|
import { isAttemptOutcome, isQuizOutcome } from "./outcomes.js";
|
|
4
4
|
import { initDefaultState, isCompletionOutcome } from "./state.js";
|
|
5
5
|
import { projectDefault } from "./tags.js";
|
|
6
|
-
import { pathDefault, preparePathDefault } from "./path.js";
|
|
6
|
+
import { pathDefault, preparePathDefault, suggestDefault } from "./path.js";
|
|
7
7
|
import { progressDefault, estimateDefault, prepareEstimateDefault } from "./reading.js";
|
|
8
8
|
/** The single default implementation assembly. */
|
|
9
9
|
export declare const implementation: {
|
|
@@ -26,6 +26,7 @@ export declare const implementation: {
|
|
|
26
26
|
prepareEstimate: typeof prepareEstimateDefault;
|
|
27
27
|
path: typeof pathDefault;
|
|
28
28
|
preparePath: typeof preparePathDefault;
|
|
29
|
+
suggest: typeof suggestDefault;
|
|
29
30
|
describeObservation: typeof describeDefaultObservation;
|
|
30
31
|
tags: readonly [...string[], "item-outcomes", "instability", "unused", "coarse", "lesson-split", "self-report", "edge-contradiction", "homeless"];
|
|
31
32
|
outcomes: {
|
package/dist/implementation.js
CHANGED
|
@@ -5,7 +5,7 @@ import { event } from "./event.js";
|
|
|
5
5
|
import { isAttemptOutcome, isQuizOutcome } from "./outcomes.js";
|
|
6
6
|
import { DEFAULT_THEORY_REF, initDefaultState, isCompletionOutcome } from "./state.js";
|
|
7
7
|
import { defaultTags, projectDefault } from "./tags.js";
|
|
8
|
-
import { pathDefault, preparePathDefault } from "./path.js";
|
|
8
|
+
import { pathDefault, preparePathDefault, suggestDefault } from "./path.js";
|
|
9
9
|
import { progressDefault, estimateDefault, prepareEstimateDefault } from "./reading.js";
|
|
10
10
|
/** The single default implementation assembly. */
|
|
11
11
|
export const implementation = {
|
|
@@ -19,6 +19,7 @@ export const implementation = {
|
|
|
19
19
|
prepareEstimate: prepareEstimateDefault,
|
|
20
20
|
path: pathDefault,
|
|
21
21
|
preparePath: preparePathDefault,
|
|
22
|
+
suggest: suggestDefault,
|
|
22
23
|
describeObservation: describeDefaultObservation,
|
|
23
24
|
tags: defaultTags,
|
|
24
25
|
outcomes: {
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const defaultTheory: {
|
|
|
19
19
|
prepareEstimate: typeof import("./reading.js").prepareEstimateDefault;
|
|
20
20
|
path: typeof import("./path.js").pathDefault;
|
|
21
21
|
preparePath: typeof import("./path.js").preparePathDefault;
|
|
22
|
+
suggest: typeof import("./path.js").suggestDefault;
|
|
22
23
|
describeObservation: typeof import("./history.js").describeDefaultObservation;
|
|
23
24
|
tags: readonly [...string[], "item-outcomes", "instability", "unused", "coarse", "lesson-split", "self-report", "edge-contradiction", "homeless"];
|
|
24
25
|
outcomes: {
|
package/dist/path.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NodeId, type ResolvedGraph } from "@mmon-co/ncept-core/patch";
|
|
2
|
-
import { type MissionPath, type MissionFuture, type PathContext, type PathInputs, type PathSelection } from "@mmon-co/ncept-core/theory";
|
|
2
|
+
import { type MissionPath, type MissionFuture, type PathContext, type PathInputs, type PathSelection, type SuggestContext, type Suggestion } from "@mmon-co/ncept-core/theory";
|
|
3
3
|
import type { DefaultState } from "./state.js";
|
|
4
4
|
import { type ReviewSchedule } from "./schedules.js";
|
|
5
5
|
export { REVIEW_PROPERTY, validateReviewSchedule, type ReviewSchedule } from "./schedules.js";
|
|
@@ -22,4 +22,5 @@ export declare function nodePriority(graph: ResolvedGraph, node: NodeId): number
|
|
|
22
22
|
export declare function teachingPath(graph: ResolvedGraph, targets: readonly NodeId[]): MissionPath;
|
|
23
23
|
/** The syllabus stays addressable as progress changes; only the future is upcoming. */
|
|
24
24
|
export declare function pathDefault(context: PathContext): MissionFuture;
|
|
25
|
+
export declare function suggestDefault({ future, checkIn, activeToday, dueCards }: SuggestContext): Suggestion | undefined;
|
|
25
26
|
export declare function preparePathDefault(inputs: PathInputs, _state?: DefaultState): (selection: PathSelection) => MissionFuture;
|
package/dist/path.js
CHANGED
|
@@ -208,6 +208,17 @@ export function pathDefault(context) {
|
|
|
208
208
|
future: lessons.filter((lesson) => !lesson.numbered || lesson.nodes.some((id) => progress[id]?.status === "open")),
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
+
export function suggestDefault({ future, checkIn, activeToday, dueCards }) {
|
|
212
|
+
if (checkIn)
|
|
213
|
+
return { kind: "check-in" };
|
|
214
|
+
if (future.future.length === 0)
|
|
215
|
+
return undefined;
|
|
216
|
+
if (activeToday)
|
|
217
|
+
return { kind: "chat" };
|
|
218
|
+
if (dueCards > 0)
|
|
219
|
+
return { kind: "cards", count: dueCards };
|
|
220
|
+
return { kind: "chat" };
|
|
221
|
+
}
|
|
211
222
|
export function preparePathDefault(inputs, _state) {
|
|
212
223
|
return (selection) => pathDefault({ ...inputs, ...selection });
|
|
213
224
|
}
|
package/dist/release.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const theoryContent = "
|
|
1
|
+
export declare const theoryContent = "bbc9092c9a6e01c23b4774e5041816db02b9b0fa8f40b05a0492959cd71020b2";
|
package/dist/release.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const theoryContent = "
|
|
1
|
+
export const theoryContent = "bbc9092c9a6e01c23b4774e5041816db02b9b0fa8f40b05a0492959cd71020b2";
|