narrarium-engine 0.1.7 → 0.1.9

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.
Files changed (132) hide show
  1. package/README.md +360 -26
  2. package/dist/ai/body.d.ts +20 -0
  3. package/dist/ai/body.d.ts.map +1 -0
  4. package/dist/ai/body.js +112 -0
  5. package/dist/ai/body.js.map +1 -0
  6. package/dist/ai/catalog-fetch.d.ts +51 -0
  7. package/dist/ai/catalog-fetch.d.ts.map +1 -0
  8. package/dist/ai/catalog-fetch.js +261 -0
  9. package/dist/ai/catalog-fetch.js.map +1 -0
  10. package/dist/ai/catalog-support.d.ts +13 -0
  11. package/dist/ai/catalog-support.d.ts.map +1 -0
  12. package/dist/ai/catalog-support.js +28 -0
  13. package/dist/ai/catalog-support.js.map +1 -0
  14. package/dist/ai/catalog.d.ts +148 -0
  15. package/dist/ai/catalog.d.ts.map +1 -0
  16. package/dist/ai/catalog.js +367 -0
  17. package/dist/ai/catalog.js.map +1 -0
  18. package/dist/ai/config.d.ts +83 -7
  19. package/dist/ai/config.d.ts.map +1 -1
  20. package/dist/ai/config.js +83 -11
  21. package/dist/ai/config.js.map +1 -1
  22. package/dist/ai/fetch-client.d.ts +20 -0
  23. package/dist/ai/fetch-client.d.ts.map +1 -1
  24. package/dist/ai/fetch-client.js +49 -24
  25. package/dist/ai/fetch-client.js.map +1 -1
  26. package/dist/ai/probe.d.ts +40 -0
  27. package/dist/ai/probe.d.ts.map +1 -0
  28. package/dist/ai/probe.js +110 -0
  29. package/dist/ai/probe.js.map +1 -0
  30. package/dist/ai/request.d.ts +58 -5
  31. package/dist/ai/request.d.ts.map +1 -1
  32. package/dist/ai/request.js +96 -7
  33. package/dist/ai/request.js.map +1 -1
  34. package/dist/ai/router.d.ts +12 -1
  35. package/dist/ai/router.d.ts.map +1 -1
  36. package/dist/ai/router.js +10 -2
  37. package/dist/ai/router.js.map +1 -1
  38. package/dist/ai/routing.d.ts +15 -4
  39. package/dist/ai/routing.d.ts.map +1 -1
  40. package/dist/ai/routing.js +25 -6
  41. package/dist/ai/routing.js.map +1 -1
  42. package/dist/ai/token-limit.d.ts +4 -4
  43. package/dist/ai/token-limit.d.ts.map +1 -1
  44. package/dist/ai/token-limit.js +5 -4
  45. package/dist/ai/token-limit.js.map +1 -1
  46. package/dist/ai/types.d.ts +12 -1
  47. package/dist/ai/types.d.ts.map +1 -1
  48. package/dist/ai/types.js +12 -0
  49. package/dist/ai/types.js.map +1 -1
  50. package/dist/autopilot/errors.d.ts +4 -3
  51. package/dist/autopilot/errors.d.ts.map +1 -1
  52. package/dist/autopilot/errors.js +21 -5
  53. package/dist/autopilot/errors.js.map +1 -1
  54. package/dist/autopilot/frozen.d.ts +169 -0
  55. package/dist/autopilot/frozen.d.ts.map +1 -0
  56. package/dist/autopilot/frozen.js +495 -0
  57. package/dist/autopilot/frozen.js.map +1 -0
  58. package/dist/autopilot/outline-check.d.ts +39 -0
  59. package/dist/autopilot/outline-check.d.ts.map +1 -0
  60. package/dist/autopilot/outline-check.js +81 -0
  61. package/dist/autopilot/outline-check.js.map +1 -0
  62. package/dist/autopilot/planner.d.ts +29 -1
  63. package/dist/autopilot/planner.d.ts.map +1 -1
  64. package/dist/autopilot/planner.js +78 -8
  65. package/dist/autopilot/planner.js.map +1 -1
  66. package/dist/autopilot/profile-check.d.ts +7 -4
  67. package/dist/autopilot/profile-check.d.ts.map +1 -1
  68. package/dist/autopilot/profile-check.js +9 -6
  69. package/dist/autopilot/profile-check.js.map +1 -1
  70. package/dist/autopilot/runner.d.ts +17 -3
  71. package/dist/autopilot/runner.d.ts.map +1 -1
  72. package/dist/autopilot/runner.js +127 -20
  73. package/dist/autopilot/runner.js.map +1 -1
  74. package/dist/autopilot/session.d.ts +34 -1
  75. package/dist/autopilot/session.d.ts.map +1 -1
  76. package/dist/autopilot/session.js +202 -2
  77. package/dist/autopilot/session.js.map +1 -1
  78. package/dist/autopilot/state.d.ts +12 -3
  79. package/dist/autopilot/state.d.ts.map +1 -1
  80. package/dist/autopilot/state.js +203 -12
  81. package/dist/autopilot/state.js.map +1 -1
  82. package/dist/autopilot/tasks.d.ts +14 -2
  83. package/dist/autopilot/tasks.d.ts.map +1 -1
  84. package/dist/autopilot/tasks.js +480 -36
  85. package/dist/autopilot/tasks.js.map +1 -1
  86. package/dist/autopilot/types.d.ts +193 -12
  87. package/dist/autopilot/types.d.ts.map +1 -1
  88. package/dist/autopilot/types.js +9 -2
  89. package/dist/autopilot/types.js.map +1 -1
  90. package/dist/book/context.d.ts +3 -0
  91. package/dist/book/context.d.ts.map +1 -1
  92. package/dist/book/context.js +7 -1
  93. package/dist/book/context.js.map +1 -1
  94. package/dist/book/freeze.d.ts +115 -0
  95. package/dist/book/freeze.d.ts.map +1 -0
  96. package/dist/book/freeze.js +286 -0
  97. package/dist/book/freeze.js.map +1 -0
  98. package/dist/book/outline.d.ts +245 -0
  99. package/dist/book/outline.d.ts.map +1 -0
  100. package/dist/book/outline.js +488 -0
  101. package/dist/book/outline.js.map +1 -0
  102. package/dist/book/paths.d.ts +18 -0
  103. package/dist/book/paths.d.ts.map +1 -1
  104. package/dist/book/paths.js +25 -0
  105. package/dist/book/paths.js.map +1 -1
  106. package/dist/book/snapshot.d.ts +25 -1
  107. package/dist/book/snapshot.d.ts.map +1 -1
  108. package/dist/book/snapshot.js +24 -4
  109. package/dist/book/snapshot.js.map +1 -1
  110. package/dist/director/opinion.d.ts +6 -0
  111. package/dist/director/opinion.d.ts.map +1 -1
  112. package/dist/director/opinion.js +4 -1
  113. package/dist/director/opinion.js.map +1 -1
  114. package/dist/index.d.ts +8 -0
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +8 -0
  117. package/dist/index.js.map +1 -1
  118. package/dist/profiles/evaluation-style.d.ts +44 -0
  119. package/dist/profiles/evaluation-style.d.ts.map +1 -0
  120. package/dist/profiles/evaluation-style.js +152 -0
  121. package/dist/profiles/evaluation-style.js.map +1 -0
  122. package/dist/server/client.d.ts +46 -2
  123. package/dist/server/client.d.ts.map +1 -1
  124. package/dist/server/client.js +57 -0
  125. package/dist/server/client.js.map +1 -1
  126. package/dist/server/protocol.d.ts +120 -2
  127. package/dist/server/protocol.d.ts.map +1 -1
  128. package/dist/server/protocol.js +36 -0
  129. package/dist/server/protocol.js.map +1 -1
  130. package/dist/version.d.ts +1 -1
  131. package/dist/version.js +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,169 @@
1
+ import { type ChapterFreeze, type FrozenChapterChange } from "../book/freeze.js";
2
+ import type { BookSnapshot, ChapterInfo } from "../book/snapshot.js";
3
+ import type { OutlineWrittenChange } from "./outline-check.js";
4
+ import type { PlanNote } from "./planner.js";
5
+ import { type AutopilotState, type DirectorQuestion, type FrozenAction, type FrozenChangeKind, type FrozenEditsMode, type PendingFrozenReview, type QuestionAnswer, type RevisionRequest } from "./types.js";
6
+ /**
7
+ * One change the author decides about: the text of a frozen chapter (`frozen`), or the outline entry of a chapter already closed
8
+ * (`outline`). `inPlan` says whether the chapter is one of the plan's, closed: only then can it be reviewed (else it can only be marked
9
+ * as reviewed). `pending` is the decision already recorded for it, when there is one.
10
+ */
11
+ export interface FrozenWorkItem {
12
+ kind: FrozenChangeKind;
13
+ number: number;
14
+ slug: string;
15
+ title: string;
16
+ fingerprint: string;
17
+ /** The chapter was written by the author before the autopilot took over: never rewritten for a decision the autopilot took. */
18
+ imported: boolean;
19
+ inPlan: boolean;
20
+ change?: FrozenChapterChange;
21
+ outline?: OutlineWrittenChange;
22
+ pending?: PendingFrozenReview;
23
+ }
24
+ /** Whether a question is about a change of a frozen chapter or of the outline of a written one. */
25
+ export declare function isFrozenQuestion(question: DirectorQuestion | null | undefined): question is DirectorQuestion & {
26
+ frozen: NonNullable<DirectorQuestion["frozen"]>;
27
+ };
28
+ /** The decision being carried out, when one is: the autopilot works on one change at a time. */
29
+ export declare function startedReview(state: Pick<AutopilotState, "pendingReviews">): PendingFrozenReview | undefined;
30
+ /** Whether the revision in progress rewrites this chapter (or rewrote it, and reviews it again at its end). */
31
+ export declare function inRevision(state: Pick<AutopilotState, "revision">, number: number): boolean;
32
+ /** The changes of a book and what is decided about them, in the order of the book (a frozen chapter's text before its outline). */
33
+ export declare function frozenWork(state: AutopilotState | null, snapshot: BookSnapshot, outlineWritten?: ReadonlyMap<number, OutlineWrittenChange>): FrozenWorkItem[];
34
+ /** What can be done with a change now: reviewing needs the chapter in the plan, closed; marking reviewed can always be done. */
35
+ export declare function frozenActions(item: Pick<FrozenWorkItem, "kind" | "inPlan">): FrozenAction[];
36
+ /** The chapters the autopilot approved before it froze what it approves (a state saved by an older engine): frozen once, by its first run. Never the author's. */
37
+ export declare function legacyChapters(state: AutopilotState, snapshot: BookSnapshot): ChapterInfo[];
38
+ /** Decisions to mark a frozen chapter reviewed that wait for a run (a host that applied an answer by itself): the `freeze` step carries them out. */
39
+ export declare function queuedMarkReviewed(state: Pick<AutopilotState, "pendingReviews">): PendingFrozenReview[];
40
+ /** Whether the next step is the `freeze` step, which needs no model: the chapters an older engine approved, or changes marked as reviewed. */
41
+ export declare function needsFreezeStep(state: AutopilotState, snapshot: BookSnapshot): boolean;
42
+ /** The label of an action in the language of the book. */
43
+ export declare function frozenActionLabel(action: FrozenAction, language: string): string;
44
+ /** The question the run stops with for a change (one at a time, in the order of the book): it says the others that wait after it. */
45
+ export declare function frozenQuestion(item: FrozenWorkItem, others: FrozenWorkItem[], language: string, now: string): DirectorQuestion;
46
+ /** Why the run stopped, for a question about a change. */
47
+ export declare function frozenQuestionMessage(question: DirectorQuestion, language: string): string;
48
+ /**
49
+ * The action an answer to a question about a change chooses. The `choice` (or the `answer`) names one by its id or its label, in either
50
+ * language, as an interface that only shows `options` sends it; `accept` without a choice keeps what the author did (`mark-reviewed`, or
51
+ * `keep-text` for the outline); any other text reviews and updates the book (rewrites to the outline), with the text as the author's
52
+ * note for the director. An empty answer chooses nothing.
53
+ */
54
+ export declare function frozenAnswerAction(question: DirectorQuestion, answer: Pick<QuestionAnswer, "answer" | "choice" | "accept">): {
55
+ action: FrozenAction;
56
+ note?: string;
57
+ };
58
+ export interface FrozenDecision {
59
+ kind: FrozenChangeKind;
60
+ number: number;
61
+ action: FrozenAction;
62
+ /** The change decided about (`FrozenWorkItem.fingerprint`). */
63
+ fingerprint: string;
64
+ note?: string;
65
+ /** Taken by the autopilot (`frozenEdits: "auto"`). */
66
+ auto?: boolean;
67
+ /** The author's note becomes a permanent rule too (`QuestionAnswer.asRule`). */
68
+ asRule?: boolean;
69
+ }
70
+ /**
71
+ * The state with a decision recorded: in `pendingReviews` (replacing one that waited for the same change of the same chapter), and the
72
+ * question about it closed. Pure. What needs no model is carried out at once by the session; the rest by the next run, before the plan.
73
+ */
74
+ export declare function applyFrozenDecision(state: AutopilotState, decision: FrozenDecision, at: string, id: string): AutopilotState;
75
+ /** The state without a decision (carried out, or no longer about anything). */
76
+ export declare function withoutPendingReview(state: AutopilotState, id: string): AutopilotState;
77
+ /** Remove the decisions that wait for this chapter (all, or of one kind) and close the question about it: the author decided otherwise. */
78
+ export declare function forgetFrozenChapter(state: AutopilotState, number: number, kind?: FrozenChangeKind): AutopilotState;
79
+ export interface FrozenSettleInput {
80
+ snapshot: BookSnapshot;
81
+ /** The chapters already closed whose outline entry the author changed (`outlinePlanStatus(...).written`). */
82
+ outlineWritten: ReadonlyMap<number, OutlineWrittenChange>;
83
+ language: string;
84
+ now: string;
85
+ }
86
+ export interface FrozenSettleResult {
87
+ state: AutopilotState;
88
+ /** What the author should know (said once a run, by key). */
89
+ notes: PlanNote[];
90
+ /** How many chapters have a change that waits for the author's decision. */
91
+ waiting: number;
92
+ }
93
+ /**
94
+ * What the run does with the changes before a step, as `options.frozenEdits` says: `ask` stops with a question (one change at a time,
95
+ * in the order of the book; a question whose change is gone is withdrawn, one whose change changed again is asked again); `auto`
96
+ * decides to review and update (to rewrite to the outline), with an insight, except for the chapters the author wrote, which are only
97
+ * said; `notify` says every change once (its fingerprint is remembered in `frozenSeen`). Records that cannot be read are said, and the
98
+ * state learns since when it knows frozen chapters once there is nothing an older engine approved left to freeze. Pure.
99
+ */
100
+ export declare function settleFrozenChanges(input: AutopilotState, settle: FrozenSettleInput): FrozenSettleResult;
101
+ /** What the planner knows of the changes when it may start one (the runner, after it settled the changes of the step). */
102
+ export interface PlannerFrozen {
103
+ /** The chapters already closed whose outline entry changed: the new entry of a chapter about to be rewritten to follow it. */
104
+ outlineWritten: ReadonlyMap<number, OutlineWrittenChange>;
105
+ /** The moment the step begins. */
106
+ now: string;
107
+ }
108
+ /**
109
+ * What advancing the state does with the decisions (`advanceState` calls it, before it opens the review of the current chapter):
110
+ *
111
+ * - a change of the outline the author kept (`keep-text`, `mark-reviewed`): the plan follows the new entry;
112
+ * - the decision being carried out, once its chapter is closed again: a review and update goes on with the impact on the later chapters
113
+ * (a revision with `afterChapter`), a review only is done, and so is a rewrite to the outline (after its own impact, when it rewrote);
114
+ * - when nothing is in progress (no question, revision or review) and the planner may start one (`frozen` is given), the first decision
115
+ * that waits, in the order of the book: the chapter goes back to `review` for one round of the director that applies nothing, or its
116
+ * rewrite to follow the new entry begins (a revision with `onlyChapter`). A decision whose change is gone is dropped and said.
117
+ *
118
+ * Deterministic: every id and moment comes from the decision or from `frozen.now`.
119
+ */
120
+ export declare function advancePendingReviews(state: AutopilotState, snapshot: BookSnapshot, report: (note: PlanNote) => void, language: string, frozen?: PlannerFrozen): void;
121
+ /** When the revision that rewrites a chapter to follow its outline is over: whether it rewrote anything (else there is nothing to check after it). */
122
+ export declare function noteOutlineRewrite(state: AutopilotState, revision: RevisionRequest): void;
123
+ export interface FrozenStatusEntry {
124
+ kind: FrozenChangeKind;
125
+ number: number;
126
+ slug: string;
127
+ title: string;
128
+ /** The change: what a decision is about. */
129
+ fingerprint: string;
130
+ /** What can be done with it now (`frozenActions`). */
131
+ actions: FrozenAction[];
132
+ /** For a frozen chapter: who froze it, when, and what changed since. */
133
+ by?: FrozenChapterChange["by"];
134
+ frozenAt?: string;
135
+ changed?: FrozenChapterChange["changed"];
136
+ /** For the outline of a written chapter: the new entry. */
137
+ outline?: {
138
+ title: string;
139
+ digest: string;
140
+ };
141
+ /** The decision recorded for it, which the next run carries out (a run in progress, at its next step). */
142
+ pending?: {
143
+ action: FrozenAction;
144
+ at: string;
145
+ };
146
+ }
147
+ export interface FrozenStatus {
148
+ /** `options.frozenEdits` (`ask` when there is no state yet). */
149
+ mode: FrozenEditsMode;
150
+ /** The changes, in the order of the book, with what can be done with each. */
151
+ changes: FrozenStatusEntry[];
152
+ /** The decisions recorded, also the one being carried out. */
153
+ pending: PendingFrozenReview[];
154
+ /** The chapters whose freeze record cannot be read (they count as not frozen). */
155
+ warnings: Array<{
156
+ slug: string;
157
+ path: string;
158
+ problem: string;
159
+ }>;
160
+ }
161
+ /** A chapter frozen or unfrozen by the author (`AutopilotSession.freezeChapter`, `unfreezeChapter`): its record now, `null` when it is not frozen. */
162
+ export interface FrozenChapterResult {
163
+ slug: string;
164
+ number: number;
165
+ frozen: ChapterFreeze | null;
166
+ }
167
+ /** How many chapters of a status have a change that waits for the author (the summary's `frozenChanges`). */
168
+ export declare function frozenWaitingCount(status: Pick<FrozenStatus, "changes">): number;
169
+ //# sourceMappingURL=frozen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frozen.d.ts","sourceRoot":"","sources":["../../src/autopilot/frozen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACpH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,m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