narrarium-engine 0.1.9 → 0.1.11

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 (101) hide show
  1. package/README.md +252 -22
  2. package/dist/ai/budget.d.ts +18 -2
  3. package/dist/ai/budget.d.ts.map +1 -1
  4. package/dist/ai/budget.js +9 -2
  5. package/dist/ai/budget.js.map +1 -1
  6. package/dist/ai/fetch-client.d.ts +13 -6
  7. package/dist/ai/fetch-client.d.ts.map +1 -1
  8. package/dist/ai/fetch-client.js +26 -3
  9. package/dist/ai/fetch-client.js.map +1 -1
  10. package/dist/ai/request.d.ts +1 -1
  11. package/dist/ai/request.d.ts.map +1 -1
  12. package/dist/ai/request.js +31 -5
  13. package/dist/ai/request.js.map +1 -1
  14. package/dist/ai/routing.d.ts.map +1 -1
  15. package/dist/ai/routing.js +1 -1
  16. package/dist/ai/routing.js.map +1 -1
  17. package/dist/ai/types.d.ts +29 -2
  18. package/dist/ai/types.d.ts.map +1 -1
  19. package/dist/ai/types.js +5 -2
  20. package/dist/ai/types.js.map +1 -1
  21. package/dist/autopilot/chapter-state.d.ts +19 -0
  22. package/dist/autopilot/chapter-state.d.ts.map +1 -0
  23. package/dist/autopilot/chapter-state.js +31 -0
  24. package/dist/autopilot/chapter-state.js.map +1 -0
  25. package/dist/autopilot/errors.d.ts +2 -1
  26. package/dist/autopilot/errors.d.ts.map +1 -1
  27. package/dist/autopilot/errors.js +17 -1
  28. package/dist/autopilot/errors.js.map +1 -1
  29. package/dist/autopilot/estimate-math.d.ts +19 -0
  30. package/dist/autopilot/estimate-math.d.ts.map +1 -0
  31. package/dist/autopilot/estimate-math.js +74 -0
  32. package/dist/autopilot/estimate-math.js.map +1 -0
  33. package/dist/autopilot/estimate-texts.d.ts +40 -0
  34. package/dist/autopilot/estimate-texts.d.ts.map +1 -0
  35. package/dist/autopilot/estimate-texts.js +130 -0
  36. package/dist/autopilot/estimate-texts.js.map +1 -0
  37. package/dist/autopilot/estimate.d.ts +303 -0
  38. package/dist/autopilot/estimate.d.ts.map +1 -0
  39. package/dist/autopilot/estimate.js +887 -0
  40. package/dist/autopilot/estimate.js.map +1 -0
  41. package/dist/autopilot/frozen.d.ts +1 -4
  42. package/dist/autopilot/frozen.d.ts.map +1 -1
  43. package/dist/autopilot/frozen.js +13 -25
  44. package/dist/autopilot/frozen.js.map +1 -1
  45. package/dist/autopilot/outline-change.d.ts +69 -0
  46. package/dist/autopilot/outline-change.d.ts.map +1 -0
  47. package/dist/autopilot/outline-change.js +42 -0
  48. package/dist/autopilot/outline-change.js.map +1 -0
  49. package/dist/autopilot/outline-check.d.ts +1 -0
  50. package/dist/autopilot/outline-check.d.ts.map +1 -1
  51. package/dist/autopilot/outline-check.js +9 -6
  52. package/dist/autopilot/outline-check.js.map +1 -1
  53. package/dist/autopilot/outline-compose.d.ts +203 -0
  54. package/dist/autopilot/outline-compose.d.ts.map +1 -0
  55. package/dist/autopilot/outline-compose.js +492 -0
  56. package/dist/autopilot/outline-compose.js.map +1 -0
  57. package/dist/autopilot/presets.d.ts +36 -0
  58. package/dist/autopilot/presets.d.ts.map +1 -0
  59. package/dist/autopilot/presets.js +54 -0
  60. package/dist/autopilot/presets.js.map +1 -0
  61. package/dist/autopilot/runner.d.ts +55 -5
  62. package/dist/autopilot/runner.d.ts.map +1 -1
  63. package/dist/autopilot/runner.js +252 -20
  64. package/dist/autopilot/runner.js.map +1 -1
  65. package/dist/autopilot/session.d.ts +61 -9
  66. package/dist/autopilot/session.d.ts.map +1 -1
  67. package/dist/autopilot/session.js +140 -17
  68. package/dist/autopilot/session.js.map +1 -1
  69. package/dist/autopilot/speed.d.ts +30 -0
  70. package/dist/autopilot/speed.d.ts.map +1 -0
  71. package/dist/autopilot/speed.js +71 -0
  72. package/dist/autopilot/speed.js.map +1 -0
  73. package/dist/autopilot/state.d.ts +15 -2
  74. package/dist/autopilot/state.d.ts.map +1 -1
  75. package/dist/autopilot/state.js +67 -2
  76. package/dist/autopilot/state.js.map +1 -1
  77. package/dist/autopilot/types.d.ts +104 -9
  78. package/dist/autopilot/types.d.ts.map +1 -1
  79. package/dist/autopilot/types.js +14 -2
  80. package/dist/autopilot/types.js.map +1 -1
  81. package/dist/index.d.ts +5 -0
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +6 -0
  84. package/dist/index.js.map +1 -1
  85. package/dist/server/client.d.ts +52 -6
  86. package/dist/server/client.d.ts.map +1 -1
  87. package/dist/server/client.js +93 -11
  88. package/dist/server/client.js.map +1 -1
  89. package/dist/server/protocol.d.ts +125 -1
  90. package/dist/server/protocol.d.ts.map +1 -1
  91. package/dist/server/protocol.js +47 -0
  92. package/dist/server/protocol.js.map +1 -1
  93. package/dist/util/text.d.ts +6 -0
  94. package/dist/util/text.d.ts.map +1 -1
  95. package/dist/util/text.js +21 -0
  96. package/dist/util/text.js.map +1 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.d.ts.map +1 -1
  99. package/dist/version.js +1 -1
  100. package/dist/version.js.map +1 -1
  101. package/package.json +1 -1
@@ -0,0 +1,203 @@
1
+ import { type OutlineEdit, type OutlineIndex, type OutlineWarning } from "../book/outline.js";
2
+ import type { BookFileChange, BookFileContent } from "../book/store.js";
3
+ /**
4
+ * A series of edits of the outline (the Scaletta) as the files of one commit. One function for every host that makes the author's edits in a row: the web app's Outline
5
+ * page and Copilot, the personal server's MCP tool.
6
+ *
7
+ * The engine makes every edit (`outlineChanges`): the numbering, the format, the author as the writer of every entry it writes. What it leaves to its caller, and this
8
+ * does:
9
+ *
10
+ * - Several edits in a row. Each is made on the outline the one before left (a `number` is the number the chapter has at that point of the series), and the files are
11
+ * written once, with their final text; a file that comes back to what it was is left alone.
12
+ * - The identity of every entry, followed through the renumbering. A client reads an entry and gets the hash of its file; the text of that entry is replaced, or the entry
13
+ * removed, only if the hash is still the file's. In a series the entry is no longer where it was, so the hash that was read is checked against the entry it was of,
14
+ * wherever the edits before have put it (`OutlineSeriesEdit.expectedHash`).
15
+ * - Only the files that are needed. An outline has no maximum, and an insert at its head renames every entry: but an update of one entry reads one file. An entry is known
16
+ * by its path and hash (`OutlineIndex`, from the list of the book's files) and read only when an edit is about to rewrite it.
17
+ * - Limits a caller chooses: how many edits a series has, how many files it may change (checked as the series goes).
18
+ *
19
+ * Pure: nothing is written and no file is read but through `OutlineSource.read`. The files come out as `BookFileChange`s, each expecting the file as it was read, and a commit
20
+ * through a store refuses the lot if any of them changed since.
21
+ */
22
+ /** Edits one series may make, unless the caller says another number. */
23
+ export declare const OUTLINE_COMPOSE_MAX_EDITS = 50;
24
+ /** Files one series may change, unless the caller says another number: an insert at the head of a long outline renames all of it, and that is for a place where the author sees it and can undo it. */
25
+ export declare const OUTLINE_COMPOSE_MAX_FILES = 1000;
26
+ /**
27
+ * An edit of a series: the engine's own (`OutlineEdit`), and for the ones that replace what someone read (`update`, `remove`, `book`) the hash of the file as it was
28
+ * read. For `update` and `remove` it is the hash of the entry as the series found it, wherever the edits before it have put the entry; for `book`, of `outline/book.md`.
29
+ * An entry that the series made has no hash.
30
+ */
31
+ export type OutlineSeriesEdit = Exclude<OutlineEdit, {
32
+ kind: "remove" | "update" | "book";
33
+ }> | (Extract<OutlineEdit, {
34
+ kind: "remove" | "update" | "book";
35
+ }> & {
36
+ expectedHash?: string;
37
+ });
38
+ /**
39
+ * Whether an edit replaces what someone must have read: the text of an entry that exists, an entry that is deleted, the description of the book. The rule of a caller that
40
+ * never overwrites what changed meanwhile (`OutlineComposeOptions.requireHash`): a title or a ghostwriter changes no text, and a new entry has no file to compare.
41
+ */
42
+ export declare function outlineEditNeedsHash(edit: OutlineSeriesEdit): boolean;
43
+ /**
44
+ * Where the entry numbered `number` is after `edit`, as the engine places the files; `null` when the edit deletes it. The one rule of the renumbering: the series follows
45
+ * the entries with it, and a page that keeps what the author typed in an entry that moved with it.
46
+ */
47
+ export declare function remapOutlineNumber(edit: OutlineEdit, number: number): number | null;
48
+ /** Where the outline of a book is: its files known by name and hash, and the way to read one. */
49
+ export interface OutlineSource {
50
+ /** The entries and the description as the list of the book's files has them (`BookSnapshot.outline`, or `outlineIndex(files)`): paths and hashes, nothing read. */
51
+ index: OutlineIndex;
52
+ /**
53
+ * The paths of the book's files (any: the ones that are not the outline's are left out). The index has one file for a chapter; a second file for it, or a file named as no
54
+ * entry is named (`7.md`, `0007.md`), can only be seen from the list, and an outline that has one is read whole, and read again after each edit, as the engine reads it
55
+ * (what an edit frees is taken by the file that waited). Without the list the index is all there is.
56
+ */
57
+ paths?: Iterable<string>;
58
+ /** `null` for a file that is gone (it changed since it was listed). */
59
+ read(path: string): Promise<BookFileContent | null>;
60
+ }
61
+ export interface OutlineComposeOptions {
62
+ /** The slugs of the book's ghostwriters (without them they are not checked). */
63
+ ghostwriters?: readonly string[];
64
+ /** Edits a series may have (default `OUTLINE_COMPOSE_MAX_EDITS`); `Infinity` for none. */
65
+ maxEdits?: number;
66
+ /** Files a series may change at any moment of it (default `OUTLINE_COMPOSE_MAX_FILES`); `Infinity` for none. */
67
+ maxFiles?: number;
68
+ /**
69
+ * An edit of a chapter that has no entry (`move`, `remove`): `throw` (the default) refuses the whole series, `warn` is the engine's own answer: that edit changes nothing
70
+ * and a `not-found` warning says so, and the others are made.
71
+ */
72
+ missing?: "throw" | "warn";
73
+ /** Which edits must carry the hash of what they replace (`outlineEditNeedsHash` is the rule of a caller that never overwrites what changed meanwhile). None by default; a hash that is given is always checked. */
74
+ requireHash?: (edit: OutlineSeriesEdit) => boolean;
75
+ }
76
+ export type OutlineComposeErrorCode = "not_found" | "expected_hash_required" | "conflict" | "too_many_edits" | "too_many_files" | "invalid_edit";
77
+ /** Why an edit was a conflict: its entry is not the one that was read (`changed`), is gone (`removed`), was made by the series (`made-in-series`), or a file of the outline is gone (`gone`). */
78
+ export type OutlineConflictReason = "changed" | "removed" | "made-in-series" | "gone";
79
+ export interface OutlineComposeErrorDetails {
80
+ /** The edit, by its place in the series (from 0), and the edit itself. */
81
+ index?: number;
82
+ edit?: unknown;
83
+ /** The chapter (the number it has at that point of the series) or the description of the book that the error is about, and the file. */
84
+ number?: number;
85
+ path?: string;
86
+ subject?: "chapter" | "book";
87
+ reason?: OutlineConflictReason;
88
+ /** `too_many_edits` and `too_many_files`: how many there were (at least, for the files), and how many are allowed. */
89
+ count?: number;
90
+ limit?: number;
91
+ }
92
+ /**
93
+ * A series that cannot be made: nothing was written, for nothing is written here. The `code` is one of `OutlineComposeErrorCode`, and the details say which edit and
94
+ * which file, so that a host words it in its own way (the message is English, and names no tool).
95
+ */
96
+ export declare class OutlineComposeError extends Error implements OutlineComposeErrorDetails {
97
+ readonly code: OutlineComposeErrorCode;
98
+ readonly index?: number;
99
+ readonly edit?: unknown;
100
+ readonly number?: number;
101
+ readonly path?: string;
102
+ readonly subject?: "chapter" | "book";
103
+ readonly reason?: OutlineConflictReason;
104
+ readonly count?: number;
105
+ readonly limit?: number;
106
+ constructor(code: OutlineComposeErrorCode, message: string, details?: OutlineComposeErrorDetails);
107
+ }
108
+ /** What an edit of a series did, in the order of the series (`ComposedOutlineEdits.steps`), for a host that tells it in its words. */
109
+ export type OutlineSeriesStep = {
110
+ kind: "append";
111
+ number: number;
112
+ } | {
113
+ kind: "insert";
114
+ at: number;
115
+ }
116
+ /**
117
+ * `unchanged`: the entry is where it is asked to go. `missing`: the chapter has no entry (`missing: "warn"`): nothing was done. `origin`: the number the entry had when the
118
+ * series began (absent for an entry the series made, and for one that is not there), so that a host that names the entries names the right one though the numbers shift.
119
+ */
120
+ | {
121
+ kind: "move";
122
+ from: number;
123
+ to: number;
124
+ unchanged: boolean;
125
+ origin?: number;
126
+ missing?: true;
127
+ } | {
128
+ kind: "remove";
129
+ number: number;
130
+ renumber: boolean;
131
+ origin?: number;
132
+ missing?: true;
133
+ }
134
+ /** `created`: the chapter had no entry. `fields`: what the edit set. */
135
+ | {
136
+ kind: "update";
137
+ number: number;
138
+ created: boolean;
139
+ fields: Array<"title" | "body" | "ghostwriter">;
140
+ origin?: number;
141
+ } | {
142
+ kind: "book";
143
+ created: boolean;
144
+ fields: Array<"title" | "body">;
145
+ };
146
+ /** Entries that moved together: `count` entries from chapter `from` are now from chapter `to`. */
147
+ export interface OutlineMovedRun {
148
+ from: number;
149
+ to: number;
150
+ count: number;
151
+ }
152
+ /** An entry the series did something to, with the hash its file had when the series began: the table a caller that checks hashes reads (the series itself checks the ones it is given). */
153
+ export interface OutlineIdentity {
154
+ /** The number the entry had when the series began, and the hash of its file then. */
155
+ number: number;
156
+ hash: string;
157
+ /** Where it is when the series is over; `null`: it was deleted. */
158
+ now: number | null;
159
+ /** An edit set its title, its text or its ghostwriter. */
160
+ updated: boolean;
161
+ }
162
+ export interface ComposedOutlineEdits {
163
+ /** The files of one commit, in order of path, each expecting the file as it was read (`null`: it did not exist). Empty when the series changes nothing. */
164
+ changes: BookFileChange[];
165
+ /** What the engine says, told once; of the gaps, only the one the outline ends with, and only when the series made or changed it. */
166
+ warnings: OutlineWarning[];
167
+ /** One for each edit, in order. */
168
+ steps: OutlineSeriesStep[];
169
+ /** The numbers, when the series is over, of the entries it made (they did not exist) and of the entries that existed and whose title, text or ghostwriter an edit set. */
170
+ created: number[];
171
+ updated: number[];
172
+ /** The numbers, when the series began, of the entries it deleted. */
173
+ removed: number[];
174
+ /** Entries that changed number. */
175
+ moved: OutlineMovedRun[];
176
+ /** The chapters whose entry says something else when the series is over than when it began (an entry that is new for the number counts), and the ones that have no entry now though they had one. */
177
+ changed: number[];
178
+ gone: number[];
179
+ /** How many entries the outline has when the series is over. */
180
+ chapters: number;
181
+ /** Each entry it made or changed, with the hash of its file now. */
182
+ entries: Array<{
183
+ number: number;
184
+ path: string;
185
+ hash: string;
186
+ }>;
187
+ /** The description of the book, when the series wrote it. */
188
+ book?: {
189
+ path: string;
190
+ hash: string;
191
+ created: boolean;
192
+ };
193
+ /** The entries the series moved, deleted or changed, with their hashes when it began. */
194
+ identities: OutlineIdentity[];
195
+ }
196
+ /**
197
+ * Make `edits` on the outline `source` describes, in order, and answer the files of one commit. Throws an `OutlineComposeError` for an edit that cannot be made
198
+ * (`not_found`, `invalid_edit`), one whose hash is missing where the caller's rule asks for one (`expected_hash_required`) or is not the entry's (`conflict`), a file that is
199
+ * gone when it is read (`conflict`), and a series that is too long or would change too many files (`too_many_edits`, `too_many_files`). Nothing was written then, for nothing
200
+ * is written here.
201
+ */
202
+ export declare function composeOutlineEdits(source: OutlineSource, edits: readonly OutlineSeriesEdit[], options?: OutlineComposeOptions): Promise<ComposedOutlineEdits>;
203
+ //# sourceMappingURL=outline-compose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outline-compose.d.ts","sourceRoot":"","sources":["../../src/autopilot/outline-compose.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,WAAW,EAEhB,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,uMAAuM;AACvM,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;CAAE,CAAC,GAC5D,CAAC,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;CAAE,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAWrE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM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