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 @@
1
+ {"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/autopilot/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAe9D,SAAS,MAAM,CAAmB,KAAQ;IACxC,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAAE,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA+B,MAAM,CAAC;IAClE,EAAE,EAAE,EAAE,OAAO,EAAE,K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 -43,7 +43,7 @@ export interface AutopilotRunConfig {
43
43
  /**
44
44
  * Base delay before the automatic retry of a failed step (ms, default 4000). Transient provider errors are retried up
45
45
  * to three times, after about 1×, 3× and 9× this delay (and never sooner than the provider's Retry-After); every
46
- * delay scales with it, so 0 makes them all instant.
46
+ * delay scales with it, the waits of «Retry later» (`options.longRetry`) too, so 0 makes them all instant.
47
47
  */
48
48
  retryDelayMs?: number;
49
49
  /** Source of the retry jitter, in [0, 1) (default `Math.random`). */
@@ -101,7 +101,7 @@ export declare function applyAnswer(state: AutopilotState, answer: QuestionAnswe
101
101
  * What the author saved in the state file while a step ran, carried into the state that step produced. `base` is the state
102
102
  * as the run last read it, `stored` the file as it is now and `working` the run's own. The author owns the interventions,
103
103
  * the rules, what a rewrite changes and the settings that can change during a run (`LIVE_AUTOPILOT_OPTIONS`: where the book is
104
- * published and whether to pause after every chapter): they are merged (interventions by id, rules by text, the effects of a new
104
+ * published, whether to pause after every chapter, what to do with frozen chapters, «Retry later»): they are merged (interventions by id, rules by text, the effects of a new
105
105
  * rewrite land on `working`, as they did when they were handed over in memory, a setting by its value as the author left it), and
106
106
  * the run wins on everything else. `foreign` says that `stored` differs from `base` in something the author does not own or the run
107
107
  * does not write by itself (its own heartbeat): that is a conflict.
@@ -123,6 +123,20 @@ export declare function extendPlanIfNeeded(state: AutopilotState, targetChapters
123
123
  * (configuration, state). Hosts can mark their own transient failures with the same flag.
124
124
  */
125
125
  export declare function isRetryableError(error: unknown): boolean;
126
+ /** What a failure is owed by each level of retries: the quick one (`planRetry`'s kind; `null` for a failure never retried) and «Retry later». */
127
+ export interface RetryClass {
128
+ short: "boost" | "transient" | "rejected" | "other" | null;
129
+ /** Whether, once its quick retries are used up, the failure may wait for «Retry later» (`options.longRetry`) and be tried again. */
130
+ long: boolean;
131
+ }
132
+ /**
133
+ * How a failure may be retried. The quick level is `planRetry`'s. «Retry later» is only for a transient failure of the provider: a status that asks
134
+ * to come back later or a failure of its server (408, 429, 5xx), or no status at all (the endpoint cannot be reached, a timeout, a stream lost or
135
+ * ended too early, an empty reply). Never a reply that was rejected, an error that is not retryable (400, 401, 403, 404, 422, Tools only, a prompt
136
+ * no window holds, a reply cut by its limit, a runaway stream, the routing budget), another status (409 included), a failure of the book store or of
137
+ * a host, a conflict, the lease, the budget, a pause of the author, or anything nobody classified: a closed list. Pure.
138
+ */
139
+ export declare function classifyRetry(error: unknown): RetryClass;
126
140
  /** What the retried request is told about a rejected reply: the reason, never the reply. At most 500 characters. */
127
141
  export declare function retryNoteFor(error: unknown): string | null;
128
142
  /**
@@ -140,6 +154,8 @@ export declare class AutopilotRun {
140
154
  private stopRequested;
141
155
  /** A pause at the end of the chapter was asked for: the run goes on until the chapter in progress is closed and published. */
142
156
  private chapterStopRequested;
157
+ /** The stop came from the server that is stopping (`stopForShutdown`), not from the author: the paused state says so. */
158
+ private shutdown;
143
159
  /** The step in flight, or waiting to be retried, is part of a chapter in progress: a pause at the end of the chapter does not cut its wait. */
144
160
  private inChapter;
145
161
  private interrupted;
@@ -168,6 +184,14 @@ export declare class AutopilotRun {
168
184
  private waiting;
169
185
  /** While the run waits to try a failed step again: when, and which retry. Told in the summary, never saved. */
170
186
  private retry;
187
+ /** The state the wait in progress was told with: what «Retry now» tells again, without the wait. */
188
+ private waitState;
189
+ /** The language of the book as the last step read it: the run's own words are said in it. */
190
+ private language;
191
+ /** The options of the newest state the run has seen (by `version`): what the author changed while a step ran or failed, or while the run waits. */
192
+ private freshOptions;
193
+ /** The last heartbeat the run saved: the summaries it tells say it when it is newer than the one of the state they are made from. */
194
+ private savedHeartbeatAt;
171
195
  /** The run already said that the money budget cannot apply to a model without a price. */
172
196
  private budgetWarned;
173
197
  /** What the planner reported during this run, so that each finding is said once however many steps it takes. */
@@ -187,6 +211,12 @@ export declare class AutopilotRun {
187
211
  get activity(): AutopilotActivity | null;
188
212
  /** Stop now: the AI request in flight is abandoned (the provider may still bill it). */
189
213
  stop(): void;
214
+ /**
215
+ * Stop now because the server that runs the book is stopping (Ctrl+C, a service stop): as `stop`, and the paused state says so
216
+ * (`stoppedBy: "server-shutdown"`), so that the server can resume it when it starts again. A pause the author asked for before (a stop, or
217
+ * one that waits for the end of the step or of the chapter) stays the author's: the run ends as paused by the author.
218
+ */
219
+ stopForShutdown(): void;
190
220
  /** Finish and save the current step, then pause. A wait before a retry ends at once. */
191
221
  stopAfterStep(): void;
192
222
  /**
@@ -201,6 +231,23 @@ export declare class AutopilotRun {
201
231
  * happened cannot be undone, nor can a pause of a run that is closing.
202
232
  */
203
233
  cancelPause(): boolean;
234
+ /**
235
+ * «Retry now»: end the wait before the next attempt of a failed step (a quick retry, or a cycle of «Retry later»), so that the attempt starts
236
+ * at once. `true` when the run was waiting, `false` (and nothing happens) otherwise. It uses up nothing more, and gives nothing back: the retry,
237
+ * or the cycle, the wait belonged to stays counted. Told with a `retrySkipped` insight (with the `waitMs` that was left) and, at once, a
238
+ * `state` event without `retry`. It is not a pause: one asked for before or after it works as always.
239
+ */
240
+ retryNow(): boolean;
241
+ /**
242
+ * The author saved the options while the run goes on (`AutopilotSession.updateOptions` says it with the state it saved): what the run decides
243
+ * from now on reads them, and «Retry later» turned off ends a wait for it (the run stops with the failure it waited to try again). A wait in
244
+ * progress is neither shorter nor longer for new minutes or cycles: they count from the next cycle.
245
+ */
246
+ optionsChanged(state: AutopilotState): void;
247
+ /** Remember the options of a state the run read or wrote, when it is the newest it has seen. */
248
+ private noteOptions;
249
+ /** The options as the newest state the run has seen says them: the author may have changed them while the step ran, failed, or waited. */
250
+ private latestOptions;
204
251
  /** The pause that waits for the run to reach it; `null` when none does (a stop that happened is not waiting). */
205
252
  get pausePending(): AutopilotPausePending | null;
206
253
  /** The limit of chapters of this run: the stricter of the one the run was started with and the saved option `chaptersPerRun` (0 = none). */
@@ -217,7 +264,7 @@ export declare class AutopilotRun {
217
264
  };
218
265
  /** How many chapters had a change waiting for the author before the last step; `null` until the run looked. */
219
266
  get frozenWaiting(): number | null;
220
- /** The summary of a state as this run says it: with the pause that waits, its limits, and where the book is published. */
267
+ /** The summary of a state as this run says it: with the pause that waits, its limits, where the book is published, and the newest heartbeat it saved. */
221
268
  private summarize;
222
269
  /** Queue an intervention in memory (a session saves it at once instead); with `interrupt` the running step is abandoned and repeated with it. */
223
270
  intervene(input: InterventionInput): void;
@@ -227,7 +274,8 @@ export declare class AutopilotRun {
227
274
  private stepContext;
228
275
  private announce;
229
276
  /**
230
- * Waits before a retry; `false` when a pause ended the wait (or came before it). A pause at the end of the chapter does not, for a step of the chapter.
277
+ * Waits before a retry, and says how the wait ended (`RetryWaitOutcome`): `stopped` when a pause ended it (or came before it; a pause at the end
278
+ * of the chapter does not, for a step of the chapter), `skipped` for «Retry now», `off` when «Retry later» was turned off during a wait of it.
231
279
  * While it waits the summary says when the next attempt is (`retry`, with a `state` event), and it says so no more once the wait is over.
232
280
  */
233
281
  private waitBeforeRetry;
@@ -244,7 +292,9 @@ export declare class AutopilotRun {
244
292
  * conflict or a failing store is ignored until the next heartbeat; another runner's id in the file is the lease lost.
245
293
  */
246
294
  private persistHeartbeat;
247
- execute(start?: StartOptions): Promise<AutopilotState>;
295
+ execute(start?: StartOptions & {
296
+ afterRestart?: boolean;
297
+ }): Promise<AutopilotState>;
248
298
  /** The steps of the run, until it completes, pauses, fails, or another runner takes the book. */
249
299
  private runSteps;
250
300
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/autopilot/runner.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,MAAM,EAAkE,MAAM,gBAAgB,CAAC;AAKpJ,OAAO,EAA4D,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAYjI,OAAO,EAA+G,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAqBhK,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAE3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB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