narrarium-engine 0.1.23 → 0.1.25

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 (86) hide show
  1. package/README.md +21 -2
  2. package/dist/autopilot/campaign.d.ts +9 -2
  3. package/dist/autopilot/campaign.d.ts.map +1 -1
  4. package/dist/autopilot/campaign.js +84 -14
  5. package/dist/autopilot/campaign.js.map +1 -1
  6. package/dist/autopilot/design.d.ts +77 -0
  7. package/dist/autopilot/design.d.ts.map +1 -0
  8. package/dist/autopilot/design.js +234 -0
  9. package/dist/autopilot/design.js.map +1 -0
  10. package/dist/autopilot/estimate-texts.d.ts +6 -0
  11. package/dist/autopilot/estimate-texts.d.ts.map +1 -1
  12. package/dist/autopilot/estimate-texts.js +20 -7
  13. package/dist/autopilot/estimate-texts.js.map +1 -1
  14. package/dist/autopilot/estimate.d.ts +29 -1
  15. package/dist/autopilot/estimate.d.ts.map +1 -1
  16. package/dist/autopilot/estimate.js +98 -32
  17. package/dist/autopilot/estimate.js.map +1 -1
  18. package/dist/autopilot/frozen.d.ts +2 -0
  19. package/dist/autopilot/frozen.d.ts.map +1 -1
  20. package/dist/autopilot/frozen.js.map +1 -1
  21. package/dist/autopilot/outline-check.d.ts +9 -0
  22. package/dist/autopilot/outline-check.d.ts.map +1 -1
  23. package/dist/autopilot/outline-check.js +16 -0
  24. package/dist/autopilot/outline-check.js.map +1 -1
  25. package/dist/autopilot/outline-compose.d.ts +3 -3
  26. package/dist/autopilot/outline-compose.d.ts.map +1 -1
  27. package/dist/autopilot/outline-compose.js +4 -4
  28. package/dist/autopilot/outline-compose.js.map +1 -1
  29. package/dist/autopilot/planner.d.ts +10 -10
  30. package/dist/autopilot/planner.d.ts.map +1 -1
  31. package/dist/autopilot/planner.js +220 -37
  32. package/dist/autopilot/planner.js.map +1 -1
  33. package/dist/autopilot/prompts.d.ts +18 -0
  34. package/dist/autopilot/prompts.d.ts.map +1 -1
  35. package/dist/autopilot/prompts.js +163 -0
  36. package/dist/autopilot/prompts.js.map +1 -1
  37. package/dist/autopilot/review-policy.d.ts +25 -5
  38. package/dist/autopilot/review-policy.d.ts.map +1 -1
  39. package/dist/autopilot/review-policy.js +84 -2
  40. package/dist/autopilot/review-policy.js.map +1 -1
  41. package/dist/autopilot/review-readers.d.ts +69 -0
  42. package/dist/autopilot/review-readers.d.ts.map +1 -0
  43. package/dist/autopilot/review-readers.js +79 -0
  44. package/dist/autopilot/review-readers.js.map +1 -0
  45. package/dist/autopilot/runner.d.ts.map +1 -1
  46. package/dist/autopilot/runner.js +22 -3
  47. package/dist/autopilot/runner.js.map +1 -1
  48. package/dist/autopilot/state.d.ts +20 -1
  49. package/dist/autopilot/state.d.ts.map +1 -1
  50. package/dist/autopilot/state.js +139 -5
  51. package/dist/autopilot/state.js.map +1 -1
  52. package/dist/autopilot/tasks.d.ts +3 -1
  53. package/dist/autopilot/tasks.d.ts.map +1 -1
  54. package/dist/autopilot/tasks.js +509 -67
  55. package/dist/autopilot/tasks.js.map +1 -1
  56. package/dist/autopilot/types.d.ts +164 -8
  57. package/dist/autopilot/types.d.ts.map +1 -1
  58. package/dist/autopilot/types.js +6 -0
  59. package/dist/autopilot/types.js.map +1 -1
  60. package/dist/book/design.d.ts +265 -0
  61. package/dist/book/design.d.ts.map +1 -0
  62. package/dist/book/design.js +632 -0
  63. package/dist/book/design.js.map +1 -0
  64. package/dist/book/outline.d.ts +20 -4
  65. package/dist/book/outline.d.ts.map +1 -1
  66. package/dist/book/outline.js +46 -9
  67. package/dist/book/outline.js.map +1 -1
  68. package/dist/index.d.ts +3 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +3 -0
  71. package/dist/index.js.map +1 -1
  72. package/dist/server/client.d.ts +2 -1
  73. package/dist/server/client.d.ts.map +1 -1
  74. package/dist/server/client.js +15 -3
  75. package/dist/server/client.js.map +1 -1
  76. package/dist/server/protocol.d.ts +28 -0
  77. package/dist/server/protocol.d.ts.map +1 -1
  78. package/dist/server/protocol.js +34 -0
  79. package/dist/server/protocol.js.map +1 -1
  80. package/dist/testing/index.d.ts +2 -0
  81. package/dist/testing/index.d.ts.map +1 -1
  82. package/dist/testing/index.js +67 -0
  83. package/dist/testing/index.js.map +1 -1
  84. package/dist/version.d.ts +1 -1
  85. package/dist/version.js +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,265 @@
1
+ /**
2
+ * The design of a book, as its files keep it: the design of every chapter of the Synopsis (`design:` of an entry), the ledger of every secret, the files of
3
+ * `bible/`, and the checks that need no model. One module, for the outline loads it: an app that shows the Synopsis has all of it at once.
4
+ */
5
+ /**
6
+ * The design of a chapter of the outline (`design:` in the frontmatter of `outline/chapters/<NNN>.md`): what a writer needs to write the chapter
7
+ * later, never its prose. Every field is optional, and an entry without `design` is an entry as it always was. The design run of the autopilot
8
+ * (`StartOptions.design`) writes it for the entries it owns; the author edits it in the Synopsis; the Brainstorming proposes it.
9
+ *
10
+ * Read softly: a field of the wrong kind is said (`design-invalid`) and left out of what the engine reads, a list may be one line, and a key the
11
+ * engine does not know (a newer version's, or the author's own) is kept as it is in the file, and counts in the fingerprint of the entry.
12
+ */
13
+ export interface OutlineChapterDesign {
14
+ /** The narrative goal: why the chapter exists. */
15
+ goal?: string;
16
+ /** The point-of-view characters. */
17
+ pov?: string[];
18
+ /** The characters on stage. */
19
+ characters?: string[];
20
+ /** Where it happens. */
21
+ setting?: string;
22
+ /** When it happens: its place in the time of the story. */
23
+ time?: string;
24
+ /** The main events, in order. */
25
+ events?: string[];
26
+ /** The scenes it is expected to have, a line each. */
27
+ scenes?: string[];
28
+ conflicts?: string[];
29
+ /** How the characters change inside, through the chapter. */
30
+ emotions?: string;
31
+ /** What the reader learns (a secret may be named by its id, `secret:<slug>`, or its title). */
32
+ reveals?: string[];
33
+ /** What is kept from the reader. */
34
+ withholds?: string[];
35
+ /** The clues and the foreshadowing it plants. */
36
+ clues?: string[];
37
+ /** What it picks up from the chapters before. */
38
+ previous?: string;
39
+ /** What it sets up for the chapters after. */
40
+ next?: string;
41
+ /** How it closes. */
42
+ ending?: string;
43
+ /** Whether it closes on a cliffhanger. */
44
+ cliffhanger?: boolean;
45
+ /** Notes for the ghostwriter who will write it. */
46
+ notes?: string;
47
+ }
48
+ export type OutlineDesignKey = keyof OutlineChapterDesign;
49
+ type FieldKind = "text" | "list" | "flag";
50
+ /** The fields of a design, in the order the files, the prompts and the interfaces show them. */
51
+ export declare const OUTLINE_DESIGN_FIELDS: ReadonlyArray<{
52
+ key: OutlineDesignKey;
53
+ kind: FieldKind;
54
+ }>;
55
+ export declare const OUTLINE_DESIGN_KEYS: readonly OutlineDesignKey[];
56
+ /** The fields without which a design is incomplete: a chapter with a design but none of these is said (`outlineDesignGaps`). */
57
+ export declare const OUTLINE_DESIGN_KEY_FIELDS: readonly OutlineDesignKey[];
58
+ /** Characters of one text of a design, and of one item of a list, that an edit may write: a longer one is cut, with a warning. */
59
+ export declare const OUTLINE_DESIGN_TEXT_MAX_CHARS = 4000;
60
+ /** Items of one list of a design that an edit may write. */
61
+ export declare const OUTLINE_DESIGN_LIST_MAX_ITEMS = 40;
62
+ /**
63
+ * The design of an entry as the engine reads it from the value of `design:`. `problems` says, in English, every field that could not be read (it is left out of
64
+ * `design`, and stays in the file); a value that is not a mapping is one problem and no design. Absent `design`: the entry has none, or nothing in it is usable.
65
+ */
66
+ export declare function readOutlineDesign(value: unknown): {
67
+ design?: OutlineChapterDesign;
68
+ problems: string[];
69
+ };
70
+ /** A change of a design: a value sets the field, `null` (or an empty text or list) takes it away, a field that is not given stays as it is. */
71
+ export type OutlineDesignPatch = {
72
+ [Key in OutlineDesignKey]?: OutlineChapterDesign[Key] | null;
73
+ };
74
+ /**
75
+ * A design that an edit or a model gives, made what the files keep: texts trimmed, lists of non-empty lines, cut to the limits (each cut is said in
76
+ * `problems`, in English). Fields that are not the design's are left out. `null`/empty values say "take it away" (`cleared`).
77
+ */
78
+ export declare function normalizeDesignPatch(value: unknown): {
79
+ patch: OutlineDesignPatch;
80
+ problems: string[];
81
+ };
82
+ /**
83
+ * The value of `design:` once `patch` is applied to the one the file has (`base`, as it was read: a key the engine does not know is kept, in its place).
84
+ * `null` takes the whole design away. `undefined` when nothing is left: the file then has no `design:`.
85
+ */
86
+ export declare function applyDesignPatch(base: unknown, patch: OutlineDesignPatch | null | undefined): Record<string, unknown> | undefined;
87
+ /** A design as the engine writes it whole: the same as patching nothing with every field of `design` (and no other key). */
88
+ export declare function designMapping(design: OutlineChapterDesign | null | undefined): Record<string, unknown> | undefined;
89
+ /** Whether a design says nothing. */
90
+ export declare function isDesignEmpty(design: OutlineChapterDesign | null | undefined): boolean;
91
+ /** The key fields (`OUTLINE_DESIGN_KEY_FIELDS`) a design lacks. */
92
+ export declare function missingDesignFields(design: OutlineChapterDesign | null | undefined): OutlineDesignKey[];
93
+ /**
94
+ * What the design of an entry adds to its fingerprint (`outlineEntryDigest`): the whole value of `design:` (the keys the engine does not know too), in a form
95
+ * that does not depend on how the YAML is written. `""` for an entry with no design, or an empty one: its fingerprint is the one it always had.
96
+ */
97
+ export declare function designFingerprint(value: unknown): string;
98
+ /** The labels of the fields, as the prompts and the plain-text views say them. */
99
+ export declare const OUTLINE_DESIGN_LABELS: Readonly<Record<OutlineDesignKey, string>>;
100
+ /** A design as lines of text, for a prompt or a plain view: a line a field, the lists joined; `maxChars` keeps it within a share of a prompt. */
101
+ export declare function designText(design: OutlineChapterDesign | null | undefined, maxChars?: number): string;
102
+ /**
103
+ * The ledger of a secret: who knows it and from when, what the reader knows chapter by chapter, the clues and the red herrings planted, and what the reveal
104
+ * changes. Keys of the frontmatter of `secrets/<slug>.md`, beside the ones the format always had (`holders`: who knows it from the start; `known_from` and
105
+ * `reveal_in`: from which chapter the reader may know it, and where it surfaces). The chapters are numbers: the ledger is written while the book is designed,
106
+ * when the chapters have no folder yet.
107
+ *
108
+ * ```yaml
109
+ * learned_by:
110
+ * - { character: character:elio, chapter: 7 }
111
+ * reader_knows:
112
+ * - { chapter: 1, note: Something happened the night of the wreck. }
113
+ * clues:
114
+ * - { chapter: 3, note: The keeper's boots are wet on a dry day. }
115
+ * red_herrings:
116
+ * - { chapter: 4, note: Elio's debts make him the obvious suspect. }
117
+ * consequences:
118
+ * - Mara leaves the island.
119
+ * ```
120
+ *
121
+ * Read softly, like the design of a chapter: an item that cannot be read is said and left out, a key the engine does not know is kept.
122
+ */
123
+ export interface SecretLedgerNote {
124
+ chapter: number;
125
+ note: string;
126
+ }
127
+ export interface SecretLedgerLearner {
128
+ /** A character: its id (`character:<slug>`) or its name. */
129
+ character: string;
130
+ /** The chapter where the character learns the secret. */
131
+ chapter: number;
132
+ }
133
+ export interface SecretLedger {
134
+ learnedBy: SecretLedgerLearner[];
135
+ readerKnows: SecretLedgerNote[];
136
+ clues: SecretLedgerNote[];
137
+ redHerrings: SecretLedgerNote[];
138
+ consequences: string[];
139
+ }
140
+ /** The keys of the frontmatter the ledger is made of. */
141
+ export declare const SECRET_LEDGER_KEYS: readonly ["learned_by", "reader_knows", "clues", "red_herrings", "consequences"];
142
+ /** Items of a list of the ledger, and characters of one note, that the engine writes. */
143
+ export declare const SECRET_LEDGER_MAX_ITEMS = 60;
144
+ export declare const SECRET_LEDGER_NOTE_MAX_CHARS = 1000;
145
+ export declare function emptySecretLedger(): SecretLedger;
146
+ /** A chapter as the ledger says it: a whole number from 0 (0: before the book begins), or a chapter reference (`chapter:007-the-wreck`). */
147
+ export declare function ledgerChapter(value: unknown): number | undefined;
148
+ /** The ledger of a secret from its frontmatter, and what could not be read of it (in English). */
149
+ export declare function readSecretLedger(frontmatter: Record<string, unknown>): {
150
+ ledger: SecretLedger;
151
+ problems: string[];
152
+ };
153
+ /** Whether a ledger says nothing. */
154
+ export declare function isLedgerEmpty(ledger: SecretLedger): boolean;
155
+ /** The keys of the frontmatter a ledger is written as: a list that is empty is no key (`undefined`, so that rendering leaves it out). */
156
+ export declare function secretLedgerFrontmatter(ledger: SecretLedger): Record<(typeof SECRET_LEDGER_KEYS)[number], unknown>;
157
+ /**
158
+ * The ledger the design of chapters `from` to `to` gives a secret, merged into the one it had: what falls in those chapters is the batch's, what falls elsewhere stays
159
+ * (a book designed in batches gets its ledger batch by batch). The consequences are the batch's when it gives them.
160
+ */
161
+ export declare function mergeSecretLedger(base: SecretLedger, batch: Partial<SecretLedger>, from: number, to: number): SecretLedger;
162
+ /**
163
+ * The fingerprint of the ledger a file holds now (the keys of the ledger as they are written, whatever is in them): the design run keeps the one of every ledger
164
+ * it wrote, and rewrites a ledger only while the file still has that one (a change of the author makes the ledger the author's).
165
+ */
166
+ export declare function secretLedgerDigest(frontmatter: Record<string, unknown>): Promise<string>;
167
+ /**
168
+ * The `bible/` folder: the parts of the Story Bible that have no other home in a book. Everything else the Bible shows is in the book's own files (the description
169
+ * and the Synopsis in `outline/`, the story design, the world context, the characters, places, factions, items and secrets): the Bible composes them, and never
170
+ * copies them here.
171
+ *
172
+ * - `bible/themes.md` (`type: bible`, `id: bible:themes`): the themes of the book (`themes`, a list) and its tone (`tone`).
173
+ * - `bible/world.md` (`type: bible`, `id: bible:world`): the rules of the world the story must never break (`rules`, a list).
174
+ *
175
+ * The body of each file is free notes. A design run writes them when they are missing, and never rewrites them: they are the author's from then on.
176
+ */
177
+ export declare const BIBLE_DIRECTORY = "bible";
178
+ export declare const BIBLE_THEMES_FILE = "bible/themes.md";
179
+ export declare const BIBLE_WORLD_FILE = "bible/world.md";
180
+ export interface BibleThemes {
181
+ themes: string[];
182
+ tone: string;
183
+ notes: string;
184
+ }
185
+ export interface BibleWorld {
186
+ rules: string[];
187
+ notes: string;
188
+ }
189
+ /** The themes and the tone of the book from `bible/themes.md` (empty when the file has none). */
190
+ export declare function readBibleThemes(content: string | null | undefined): BibleThemes;
191
+ /** The rules of the world from `bible/world.md` (empty when the file has none). */
192
+ export declare function readBibleWorld(content: string | null | undefined): BibleWorld;
193
+ /** `bible/themes.md` with these themes and this tone; the keys of `existing` that the format does not manage are kept. */
194
+ export declare function serializeBibleThemes(value: Partial<BibleThemes>, existing?: string | null): string;
195
+ /** `bible/world.md` with these rules; the keys of `existing` that the format does not manage are kept. */
196
+ export declare function serializeBibleWorld(value: Partial<BibleWorld>, existing?: string | null): string;
197
+ /**
198
+ * The checks of a design that need no model: they read the chapter entries of the Synopsis (their `design`) and the ledgers of the secrets, and say what does
199
+ * not hold together. They are findings, never blockers: the design run tells them (an insight after every plan, and to the director, who fixes them or asks the
200
+ * author), the Bible shows them, the Brainstorming's coherence check lists them. Pure: nothing is read here, and the same input says the same findings.
201
+ *
202
+ * - `reveal-missing`: a secret with no chapter that reveals it, a mystery without a resolution.
203
+ * - `reveal-out-of-range`: the reveal is after the last chapter of the book.
204
+ * - `reveal-before-known`: `reveal_in` comes before `known_from` (the core says it too).
205
+ * - `clue-after-reveal`: a clue planted in or after the chapter from which the reader knows the truth: it reveals nothing any more.
206
+ * - `secret-without-clue`: a secret revealed after the first chapter with no clue before its reveal: a payoff without a setup.
207
+ * - `chapter-out-of-range`: a chapter of the ledger after the last chapter of the book.
208
+ * - `knowledge-before-learning`: the point of view of a chapter reveals a secret that character only learns in a later chapter.
209
+ * - `unknown-character`, `unknown-location`: an entry names a character, or a setting, the canon does not have (a new minor character may be fine).
210
+ * - `design-incomplete`: an entry has a design without some of its key fields (`outlineDesignGaps`, in `autopilot/outline-check.ts`).
211
+ */
212
+ export type DesignFindingCode = "reveal-missing" | "reveal-out-of-range" | "reveal-before-known" | "clue-after-reveal" | "secret-without-clue" | "chapter-out-of-range" | "knowledge-before-learning" | "unknown-character" | "unknown-location" | "design-incomplete";
213
+ export interface DesignFinding {
214
+ code: DesignFindingCode;
215
+ severity: "info" | "warning";
216
+ /** The chapter it is about. */
217
+ chapter?: number;
218
+ /** The secret it is about. */
219
+ secret?: {
220
+ slug: string;
221
+ title: string;
222
+ };
223
+ /** The character or the place it is about, as the entry names it. */
224
+ name?: string;
225
+ /** A second chapter: where the reader knows the truth, where the character learns it, the last chapter of the book. */
226
+ other?: number;
227
+ /** The key fields a design lacks (`design-incomplete`). */
228
+ fields?: OutlineDesignKey[];
229
+ }
230
+ export interface DesignCheckSecret {
231
+ slug: string;
232
+ title: string;
233
+ /** Who knows it from the start (`holders`), by id (`character:<slug>`) or by name. */
234
+ holders: readonly string[];
235
+ ledger: SecretLedger;
236
+ /** The chapter that reveals it: `reveal_in`, else the plan's, else `known_from`. */
237
+ revealChapter?: number;
238
+ /** `known_from`, when the file says it. */
239
+ knownFromChapter?: number;
240
+ }
241
+ export interface DesignCheckCanon {
242
+ slug: string;
243
+ name: string;
244
+ aliases?: readonly string[];
245
+ }
246
+ export interface DesignCheckInput {
247
+ chapters: ReadonlyArray<{
248
+ number: number;
249
+ title?: string;
250
+ design?: OutlineChapterDesign;
251
+ }>;
252
+ secrets: readonly DesignCheckSecret[];
253
+ characters: readonly DesignCheckCanon[];
254
+ locations: readonly DesignCheckCanon[];
255
+ /** The last chapter of the book (default: the highest of the entries). */
256
+ lastChapter?: number;
257
+ }
258
+ /** Findings told at most, so that a book of five thousand chapters does not drown the author: the rest is counted. */
259
+ export declare const DESIGN_FINDINGS_MAX = 200;
260
+ /** The deterministic checks of a design (`DesignFindingCode`), in a stable order: the secrets, then the chapters. */
261
+ export declare function designChecks(input: DesignCheckInput): DesignFinding[];
262
+ /** A finding in words, in English or in Italian (the language of the book, or of the interface). */
263
+ export declare function designFindingText(finding: DesignFinding, language: string): string;
264
+ export {};
265
+ //# sourceMappingURL=design.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/book/design.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAIH;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,+BAA+B;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,wBAAwB;IACxB,OAAO,CAA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