narrarium-engine 0.1.20 → 0.1.21

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/README.md CHANGED
@@ -20,12 +20,12 @@ npm install narrarium-engine
20
20
  | Director | `askDirector`, `listDirectorOpinions`, `parseDirector`, `serializeDirector`, `directorPrompt` |
21
21
  | Readers | `readerPersonaSystemPrompt`, `mergeReaderPersonas`, `READER_EVALUATION_TOOL`, `chapterReaderText` |
22
22
  | Ghostwriters | `parseGhostwriter`, `ghostwriterPrompt` |
23
- | Outline (Scaletta) | `parseOutline`, `serializeOutlineChapter`, `serializeOutlineBook`, `outlineChanges`, `outlineEntryDigest`, `outlineBookDigest`, `outlineIndex`, `OutlineReader`, `OutlineCache`, `outlineChapterPath`, `parseOutlineChapterPath`, `outlinePlanStatus`, `composeOutlineEdits`, `remapOutlineNumber`, `changeOfWritten`, `groupOutlineChanges`, `effectiveTargetChapters`: see *Outline (Scaletta)* |
23
+ | Outline (the Synopsis) | `parseOutline`, `serializeOutlineChapter`, `serializeOutlineBook`, `outlineChanges`, `outlineEntryDigest`, `outlineBookDigest`, `outlineIndex`, `OutlineReader`, `OutlineCache`, `outlineChapterPath`, `parseOutlineChapterPath`, `outlinePlanStatus`, `composeOutlineEdits`, `remapOutlineNumber`, `changeOfWritten`, `groupOutlineChanges`, `effectiveTargetChapters`: see *Outline (the Synopsis)* |
24
24
  | Evaluation style | `parseEvaluationStyle`, `loadEvaluationStyle`, `evaluationStyleBlock`, `EVALUATION_STYLE_MAX_CHARS`: see *Evaluation style* |
25
25
  | Estimate of a run | `estimateAutopilotRun` (calls, tokens, cost, minutes, warnings and assumptions of a brief and its options, before the run), `estimateModelsFromConfig`, `estimateProgressFromState`, `estimateProgressFromChapters`, `estimateContextFromState`, `ESTIMATE_TYPICAL`, `ESTIMATE_CAPABILITIES`, `ESTIMATE_CALL_KINDS`; `AUTOPILOT_PRESETS`, `matchAutopilotPreset`, `autopilotPreset`; `measuredSpeed`, `TWO_CALL_TASKS`: see *Estimating a run* |
26
26
  | Markdown | `parseMarkdown` (with `error`), `splitFrontmatter`, `stripFrontmatter`, `renderMarkdown`, `FrontmatterError` |
27
27
  | Text | `clipMiddle`, `truncate`, `tail`, `countWords`, `languageCode`, `formatBookDate`, `tokensPerWord`, `scaleOutputTokens`, `sceneCharacterLimit` |
28
- | AI | `AiPort` (the only door to language models), `createFetchAi` (OpenAI, Azure OpenAI, GitHub Models), `buildChatRequest`, `resolveAiCandidates`, `pickAiRuntimeConfig`, `redactAiRuntimeConfig`, `AI_THINKING_LEVELS`, `AI_REASONING_PARAMETERS`, `suggestedReasoningParameter`, `AiToolsRequiredError`, `effectiveAiBase`, `endpointOrigin`, `redactSecrets`, the deadlines and limits of a call (`DEFAULT_REQUEST_TIMEOUT_MS`, `MIN_REQUEST_TIMEOUT_MS`, `DEFAULT_IDLE_TIMEOUT_MS`, `TOTAL_REQUEST_CAP_MS`, `MAX_STREAM_TRANSPORT_BYTES`…) |
28
+ | AI | `AiPort` (the only door to language models), `createFetchAi` (OpenAI, Azure OpenAI, GitHub Models), `buildChatRequest`, `resolveAiCandidates`, `pickAiRuntimeConfig`, `redactAiRuntimeConfig`, `AI_THINKING_LEVELS`, `AI_REASONING_PARAMETERS`, `suggestedReasoningParameter`, `AiToolsRequiredError`, `COPILOT_CAPABILITY`, `BRAINSTORMING_CAPABILITY`, `AI_CAPABILITY_FOLLOWS`, `effectiveAiBase`, `endpointOrigin`, `redactSecrets`, the deadlines and limits of a call (`DEFAULT_REQUEST_TIMEOUT_MS`, `MIN_REQUEST_TIMEOUT_MS`, `DEFAULT_IDLE_TIMEOUT_MS`, `TOTAL_REQUEST_CAP_MS`, `MAX_STREAM_TRANSPORT_BYTES`…) |
29
29
  | Model catalog | `fetchModelCatalog` (the models of an OpenAI-compatible endpoint, with the window, the largest answer and the capabilities its gateway declares), `probeEndpoint` (does it answer, and how), `fetchLmStudioModels`, the pure parsers `parseModelList`, `parseModelDetails`, `parseModalities`, `tokenLimitsFromDetails`, `modelFieldsFromCatalogEntry`, `parseLmStudioModels`, `lmStudioContext`, `AiCatalogError`, `AI_MODEL_TYPES`, `catalogTarget`: see *Model catalog and declared capabilities* |
30
30
  | Personal server | `NarrariumServerClient`, `pairWithServer`, `pairWithServerDetailed`, `verifyServerIdentity`, `serverCompatibility`, `serverSupportsAutopilotControls`, `serverSupportsAutopilotRules`, `serverSupportsFrozenChapters`, `serverSupportsAutopilotRetry`, `serverSupportsGithubConflicts`, `remoteBookStore`, protocol types (scopes, pairing, updates, the conflicts with GitHub), `ServerSentEventParser` |
31
31
  | Sync | `planFileSync`, `syncBookStores` (three-way sync of two book stores, with the files it leaves out in `skipped`) |
@@ -77,7 +77,7 @@ A run whose heartbeat is older than `RUNNER_STALE_MINUTES` (20) is taken for dea
77
77
 
78
78
  1. **Concept** — story design, world context, characters, locations, factions and secrets (skipped when the book already has a design or prose). The author's outline, when there is one, is binding for it too.
79
79
  2. **Summaries of the author's chapters** — only for a book with chapters written by the author: see *Chapters the author wrote*.
80
- 3. **Plan** — chapter plan, following the author's outline as binding when there is one, and filling the outline with what it planned; simulated readers react to it and the director approves it or asks for changes (judging with the method and the severity of the evaluation style). The run can pause here for the author. See *Outline (Scaletta)*.
80
+ 3. **Plan** — chapter plan, following the author's outline as binding when there is one, and filling the outline with what it planned; simulated readers react to it and the director approves it or asks for changes (judging with the method and the severity of the evaluation style). The run can pause here for the author. See *Outline (the Synopsis)*.
81
81
  4. **Per chapter** — when the author changed the outline of the chapter since it was planned, the chapter is planned again (`replan`); then the scene plan, prose scene by scene (streamed), then the review cycle:
82
82
  - blind simulated readers (no canon, no secrets) and a panel summary;
83
83
  - specialists (continuity, canon, secrets, timeline, voice, style, pacing) with evidence anchored in the text, and the criteria of the evaluation style;
@@ -129,7 +129,7 @@ The engine applies it, so a host only says *how* to publish: `hooks.afterCommit`
129
129
 
130
130
  **What the summary says.** `AutopilotStateSummary`, which the `state` events carry and `snapshot().summary` holds for a client that connects later, has five fields that are never saved: `frozenChanges` (how many chapters have a change that waits for the author, absent when none does: see *Frozen chapters*), `pausePending` (`"after-step"`, `"after-chapter"` or `null`), `limits` (`{ steps?, chapters?, stepsDone, chaptersDone }` of the run in progress, `null` when it has none or is over; `chapters` is the stricter of the run's limit and `chaptersPerRun`), `publish` (`effectivePublish` of the options and the host's default) and `retry` (the retry the run is waiting for, present only while it is, with `longTerm` in a wait of «Retry later»: see *What the interface reads*). A summary made from the state file alone (`summarizeAutopilotState(state)`) has no `frozenChanges`, no `pausePending`, no `limits` and no `retry`: nothing in the file says them, so a client takes them from the events and the snapshot. They change without the state being written, so `updatedAt` does not move: every change of the pause that waits, and every saved step, is a `state` event, and a client keeps the newest event it has seen, whatever its `updatedAt`.
131
131
 
132
- **Message codes.** `run-ended` and `insight` events carry a `code` when a client can say it in its own language: `chapterPause`, `stepLimit` and `chapterLimit` join `takenOver` and the others (`AutopilotMessageCode`). The `message` of the event, and of the saved state, is always in the language of the book. The insights about the outline have codes of their own and say which chapter they are about (`chapterNumber`, and `ghostwriter` for one that does not exist): `outlineGhostwriter`, `outlineChanged`, `outlineRemoved`, `outlineChangedWhileWriting`, `outlineWrittenChanged`, `outlineRemovedWritten`, `outlineWrittenAuto` and `outlineWarnings` (see *Outline (Scaletta)*); so do the insights about the frozen chapters: `frozenMigrated`, `frozenChanged`, `frozenAuto`, `frozenReviewed`, `frozenCleared` and `frozenInvalid` (see *Frozen chapters*). The retries have theirs: `failureRetry` (a quick retry), `longRetryWait` (a wait of «Retry later», with `cycle`, `cycles` and `waitMs`), `retrySkipped` («Retry now» ended a wait, with the `waitMs` that was left), and two that end a run, as the `code` of `run-ended` (and, the first, as an insight with the last `cycle` and `cycles`): `longRetryExhausted` (the cycles are used up) and `longRetryOff` («Retry later» was turned off while the run waited for it). See *Retries*. A restart of the server has two: `serverShutdown` (the `code` of `run-ended` when the server's stop paused the run) and `resumedAfterRestart` (an insight: the server resumed the run by itself). See *Resume after a restart*.
132
+ **Message codes.** `run-ended` and `insight` events carry a `code` when a client can say it in its own language: `chapterPause`, `stepLimit` and `chapterLimit` join `takenOver` and the others (`AutopilotMessageCode`). The `message` of the event, and of the saved state, is always in the language of the book. The insights about the outline have codes of their own and say which chapter they are about (`chapterNumber`, and `ghostwriter` for one that does not exist): `outlineGhostwriter`, `outlineChanged`, `outlineRemoved`, `outlineChangedWhileWriting`, `outlineWrittenChanged`, `outlineRemovedWritten`, `outlineWrittenAuto` and `outlineWarnings` (see *Outline (the Synopsis)*); so do the insights about the frozen chapters: `frozenMigrated`, `frozenChanged`, `frozenAuto`, `frozenReviewed`, `frozenCleared` and `frozenInvalid` (see *Frozen chapters*). The retries have theirs: `failureRetry` (a quick retry), `longRetryWait` (a wait of «Retry later», with `cycle`, `cycles` and `waitMs`), `retrySkipped` («Retry now» ended a wait, with the `waitMs` that was left), and two that end a run, as the `code` of `run-ended` (and, the first, as an insight with the last `cycle` and `cycles`): `longRetryExhausted` (the cycles are used up) and `longRetryOff` («Retry later» was turned off while the run waited for it). See *Retries*. A restart of the server has two: `serverShutdown` (the `code` of `run-ended` when the server's stop paused the run) and `resumedAfterRestart` (an insight: the server resumed the run by itself). See *Resume after a restart*.
133
133
 
134
134
  ### What the interface reads
135
135
 
@@ -173,7 +173,7 @@ Data the web app's pages used to have to guess (from the text of a step, from th
173
173
 
174
174
  **What a model declares.** The safe view of the AI configuration (`redactAiRuntimeConfig(config).integrations[].models[]`, which the personal server's `GET /ai` forwards as it is) says, for every model, what its configuration declares: `supportsToolCalls`, `supportsStreaming`, `supportsReasoning`, `supportsVision`, `maxInputTokens` and `maxOutputTokens`, and the `reasoningParameter` that says how its thinking level is sent (the "Thinking parameter" of the model, «Parametro del thinking»: `reasoning_effort`, `chat_template_kwargs.reasoning_strength` or `none`, with `AI_REASONING_PARAMETERS` for the list and `suggestedReasoningParameter(name, underlyingModel?)` for a hint that a screen may offer, which the engine never applies by itself), each only when it is declared or set (a model that declares nothing is `{ name, capabilities }`, as it always was). An attempt says what it did not do because of it: `onAttempt.notes` (English, absent when there is nothing to say; `ChatRequest.notes` for a host that builds the request itself), and `onAttempt.reasoningParameter` where the level went when it did not go as `reasoning_effort`. A reply cut with nothing written by a model declared as reasoning is a `truncated` error with `reasoningOnly`, so its `errorKind` is `truncated` like any cut reply. What an endpoint says of its models, and whether it answers at all, is what `fetchModelCatalog` and `probeEndpoint` return: see *Model catalog and declared capabilities*. All of it is additive: a configuration that declares nothing reads and runs as it always did.
175
175
 
176
- **The outline and the ghostwriter of every chapter.** `PlannedChapter.ghostwriter` is the ghostwriter the outline gives the chapter (the slug of `ghostwriters/<slug>.md`), absent when it is the book's; the chapter's `chapter.md` says it too, so a page that shows the chapter reads it where it always did. `PlannedChapter.outlineDigest` is the digest of the chapter's entry of the outline (`outlineEntryDigest`) as it was when the plan followed it, or wrote it: an entry whose `contentDigest` is not the chapter's `outlineDigest` has been changed by the author since (`outlinePlanStatus(reader, state, language)` says which ones, for a chapter not written yet and for the written ones). `plan.removedChapters` lists the chapters taken out of the plan because the author deleted their entry. `options.fillOutline` (on by default, saved with the other options, not changeable while a run is active) says whether the plan fills the outline. `state.concept.logline` is the pitch of the concept, which becomes the description of the outline. New task kind: `replan` (a chapter planned again from its new entry, or taken out of the plan). New insight codes: `outlineGhostwriter`, `outlineChanged`, `outlineRemoved`, `outlineChangedWhileWriting` (the entry of a chapter still being written changed: it is decided once the chapter is closed), `outlineWrittenChanged` (the entry of a written chapter changed, and with `frozenEdits: "notify"` it is only said), `outlineRemovedWritten` (a written chapter is no longer in the outline: it stays in the book), `outlineWarnings`, each with `chapterNumber` (see *Outline (Scaletta)*). An engine from before them said the first and the third with `outlineWrittenChanged` as well. An engine from before these fields drops them on its first write; the outline files stay, the next plan of a newer engine reads them again, and a chapter whose plan lost its digest is not planned again from an entry the autopilot wrote (only from one of the author).
176
+ **The outline and the ghostwriter of every chapter.** `PlannedChapter.ghostwriter` is the ghostwriter the outline gives the chapter (the slug of `ghostwriters/<slug>.md`), absent when it is the book's; the chapter's `chapter.md` says it too, so a page that shows the chapter reads it where it always did. `PlannedChapter.outlineDigest` is the digest of the chapter's entry of the outline (`outlineEntryDigest`) as it was when the plan followed it, or wrote it: an entry whose `contentDigest` is not the chapter's `outlineDigest` has been changed by the author since (`outlinePlanStatus(reader, state, language)` says which ones, for a chapter not written yet and for the written ones). `plan.removedChapters` lists the chapters taken out of the plan because the author deleted their entry. `options.fillOutline` (on by default, saved with the other options, not changeable while a run is active) says whether the plan fills the outline. `state.concept.logline` is the pitch of the concept, which becomes the description of the outline. New task kind: `replan` (a chapter planned again from its new entry, or taken out of the plan). New insight codes: `outlineGhostwriter`, `outlineChanged`, `outlineRemoved`, `outlineChangedWhileWriting` (the entry of a chapter still being written changed: it is decided once the chapter is closed), `outlineWrittenChanged` (the entry of a written chapter changed, and with `frozenEdits: "notify"` it is only said), `outlineRemovedWritten` (a written chapter is no longer in the outline: it stays in the book), `outlineWarnings`, each with `chapterNumber` (see *Outline (the Synopsis)*). An engine from before them said the first and the third with `outlineWrittenChanged` as well. An engine from before these fields drops them on its first write; the outline files stay, the next plan of a newer engine reads them again, and a chapter whose plan lost its digest is not planned again from an entry the autopilot wrote (only from one of the author).
177
177
 
178
178
  **Frozen chapters.** What the pages read of them (see *Frozen chapters* for what they mean): `summary.frozenChanges` (not saved: how many chapters have a change that waits for the author's decision, as the run found it before its last step or the last `frozenStatus()`; absent when none waits, as `retry` is, until one of them looked, and from a summary made from the state file alone); `options.frozenEdits` (`"ask"`, `"auto"`, `"notify"`); `state.pendingReviews` (the decisions recorded: `{ id, kind, number, action, fingerprint, at, note?, auto?, started? }`, `started` while one is carried out, with `phase` and the chapter as it was `before`); `state.question` of kind `frozen-change` or `outline-change`, with `choices` (`{ id, label }`, the labels in the language of the book), `options` (the same labels) and `frozen` (`{ kind, number, slug, fingerprint, title?, by?, frozenAt?, changed?, others? }`); `QuestionAnswer.choice`; `state.frozenSince` and `state.frozenSeen` (the engine's bookkeeping); `state.review.authorEdit` (the round of review of an author's change); `state.revision.afterChapter`, `onlyChapter` and `source` (a revision that comes from a change: `{ kind, chapterNumber, note?, auto?, before?, after? }`); the snapshot's `ChapterInfo.frozen`, `frozenProblem`, `bodyDigest` and `document`, and `ParagraphInfo.bodyDigest`. New task kind: `freeze` (without the model). New insight codes to say in the language of the interface, each with `chapterNumber` but the first: `frozenMigrated` (the chapters an older engine approved are frozen now), `frozenChanged` (`notify`: a frozen chapter changed), `frozenAuto` (`auto`: a change is reviewed and the book updated from it), `outlineWrittenAuto` (`auto`: a chapter is rewritten to follow its outline), `frozenReviewed` (a decision was carried out, or a change was marked as reviewed), `frozenCleared` (a change is gone: its question, or its decision, is dropped), `frozenInvalid` (a record that cannot be read; a warning). New kinds of question: `frozen-change`, `outline-change`; their choices are the actions, by id: `review-and-update`, `review-only`, `mark-reviewed`, `rewrite-to-outline`, `keep-text`.
179
179
 
@@ -211,9 +211,9 @@ A profile with warnings is not what the author wrote, so the engine never goes o
211
211
  - `askDirector` still gives its opinion, and reports the problems of `director.md` in `warnings` next to it.
212
212
  - a host that saves a profile should not do it over a file that has warnings.
213
213
 
214
- ## Outline (Scaletta)
214
+ ## Outline (the Synopsis)
215
215
 
216
- The outline is the author's chapter-by-chapter trace of the book: the idea, promise or pitch of the book (its description) and, for every chapter, a hypothetical title, what happens in it and, when it is not the book's, the ghostwriter that writes it. It is a main part of the book, useful without the autopilot too, kept in files of the book, and the autopilot follows it as binding. It is not `plot.md`, which the autopilot generates from the chapters it closes.
216
+ The outline (the Synopsis of the app, «Sinossi» in Italian; once called the Scaletta) is the author's chapter-by-chapter trace of the book: the idea, promise or pitch of the book (its description) and, for every chapter, a hypothetical title, what happens in it and, when it is not the book's, the ghostwriter that writes it. It is a main part of the book, useful without the autopilot too, kept in files of the book, and the autopilot follows it as binding. It is not `plot.md`, which the autopilot generates from the chapters it closes.
217
217
 
218
218
  ### The files
219
219
 
@@ -222,6 +222,7 @@ The outline is the author's chapter-by-chapter trace of the book: the idea, prom
222
222
  | `outline/book.md` | `type: outline`, `id: outline:book`, `title?` (a working title: the book's own stays in `book.md`), `origin?`, `digest?` | The idea, promise or pitch of the book (the description), free Markdown, at most 1 000 000 characters. It is the brief's idea too: stored here and nowhere else. |
223
223
  | `outline/_brief.md` | `type: outline-brief`, `id: outline:brief`, `genre?`, `audience?`, `wordsPerScene` (a whole number from 200 to 8 000; 1 400 when absent) | The synopsis, free Markdown. An `idea` key found here is ignored and never written. It is the brief of the autopilot, not an entry: see *The brief*. |
224
224
  | `outline/chapters/<NNN>.md` | `type: outline-chapter`, `id: outline-chapter:<NNN>`, `number`, `title?` (the hypothetical title), `ghostwriter?` (the slug of `ghostwriters/<slug>.md`; absent: the book's), `origin: author \| autopilot`, `digest?` | What happens in the chapter, plain text. |
225
+ | `outline/brainstorm.md` (`OUTLINE_BRAINSTORM_FILE`) | none | The notes of Brainstorming (the Copilot's mode on the Synopsis page of the app): the decisions the author saved from a brainstorm, one dated section after the other. Never an entry: `parseOutline` and `outlineIndex` skip it as they skip the brief, so it has no number and is never a warning, and no outline edit writes, moves or deletes it. |
225
226
 
226
227
  One file per chapter: the outline has no maximum, and no file grows with the book. `<NNN>` has the zero-padding of the chapter folders (`formatOrdinal`): `outlineChapterPath(7)` is `outline/chapters/007.md`, `outlineChapterPath(1500)` is `outline/chapters/1500.md`, and `parseOutlineChapterPath(path)` reads the number back. The number of an entry is the one of its file's name; a frontmatter that says another is a warning, and the name wins. The keys the format does not know are kept whenever the engine rewrites a file. The core (`narrarium`) has the same paths (`OUTLINE_BOOK_FILE`, `OUTLINE_CHAPTERS_DIRECTORY`, `outlineChapterPath`, `parseOutlineChapterPath`), validates the files with `outlineBookSchema` and `outlineChapterSchema` (passthrough), searches them and renames references in them with the rest of the book (`CONTENT_GLOB`), and its doctor warns, never errs, about a number that is not the file's and a ghostwriter that does not exist.
227
228
 
@@ -275,7 +276,7 @@ An entry that cannot be read changes nothing until the author corrects it, and n
275
276
  ### What the autopilot does with it
276
277
 
277
278
  - **What binds.** The outline binds through the entries of the author (every entry but the autopilot's intact ones) and the description of the author. A book whose outline has nothing of the author, none at all or only the autopilot's intact entries, is asked exactly what it was asked before the outline existed.
278
- - **As many chapters as it has.** The book is `bookChapters(outline)` long: the number of its last chapter entry (the entries are the chapters; a number between two entries that has none is planned freely). An entry the author adds after the last chapter of a finished book extends it. With no chapter entry and no approved plan the run stops with «The outline has no chapters: write the chapters in the Scaletta, then resume.»
279
+ - **As many chapters as it has.** The book is `bookChapters(outline)` long: the number of its last chapter entry (the entries are the chapters; a number between two entries that has none is planned freely). An entry the author adds after the last chapter of a finished book extends it. With no chapter entry and no approved plan the run stops with «The synopsis has no chapters: write the chapters in the Synopsis, then resume.»
279
280
  - **The plan follows it.** The request of every batch of the plan carries the description of the book (at most 3000 characters), the entries of the chapters it plans (whole, as far as their share of 24 000 characters allows) and, condensed like every list of chapters, the entries of the chapters not planned yet, with the rule: the same chapters, in the same order, with the same hypothetical titles (the model refines a title only where the entry has none: the engine keeps the entry's own) and the same events; enrich, never change. `brief.synopsis` stays the fallback: alone it binds as it always did; next to an outline it applies where the outline says nothing, and the outline wins. The concept is told that the outline binds it, and the director is told not to ask the plan to change it.
280
281
  - **The ghostwriter of a chapter.** A chapter takes the ghostwriter of its entry (`PlannedChapter.ghostwriter`) and the `chapter.md` the plan creates says it, when it is not the book's: the chain scene, chapter, book is the one it always was. An entry that names a ghostwriter that does not exist is said (`outlineGhostwriter`, with `chapterNumber` and `ghostwriter`), and the book's writes the chapter; when the author creates it before the chapter starts, the chapter takes it.
281
282
  - **The plan fills it.** After every plan, and every revision of it, the plan writes, in the same commit, the entries of the chapters it planned that have none: the title, and as text the summary of the plan followed by its key events as a list, with `origin: autopilot` and the `digest` of what it wrote; and `outline/book.md` when it is missing, with the logline of the concept (or the brief's idea). The chapters the author wrote get an entry only when they have none, with their summary. An entry of the author is never touched; an intact one of the autopilot follows the plan when the director has it revised. `options.fillOutline: false` writes nothing. Every chapter keeps the digest of its entry (`outlineDigest`).
@@ -284,7 +285,7 @@ An entry that cannot be read changes nothing until the author corrects it, and n
284
285
 
285
286
  ### The brief (`outline/_brief.md`)
286
287
 
287
- The brief the autopilot starts from is kept in two files of the Scaletta, and each text has one home. The **idea** (the idea, promise or pitch of the book) is the description of the book: the body of `outline/book.md`, stored there and nowhere else. `outline/_brief.md` keeps `genre`, `audience`, `wordsPerScene` and the **synopsis** (its body). Two functions compose and split them:
288
+ The brief the autopilot starts from is kept in two files of the Synopsis, and each text has one home. The **idea** (the idea, promise or pitch of the book) is the description of the book: the body of `outline/book.md`, stored there and nowhere else. `outline/_brief.md` keeps `genre`, `audience`, `wordsPerScene` and the **synopsis** (its body). Two functions compose and split them:
288
289
 
289
290
  - `readOutlineBrief(store, sources?)` → `{ brief: { idea, genre, audience, wordsPerScene, synopsis }, hash?, unreadable?, bookUnreadable?, frontmatter }`. `brief.idea` is the body of `outline/book.md`, or `""` when there is none or the autopilot wrote it (a logline of its own is not the author's idea). `hash` is the hash of `_brief.md` (absent when the file does not exist). `sources` says what is known already (`book`: the description already read, `null` for none; `brief: false`: the brief file is known not to exist), so that a host reads each file once.
290
291
  - `writeOutlineBrief(store, fields, message?)` → `OutlineBrief` (the brief as saved). `fields` is any part of `{ idea, genre, audience, wordsPerScene, synopsis }`; the rest is kept. The idea goes to `outline/book.md` through the outline's own builder (`serializeOutlineBook`: the working title and the other keys of the file are kept; the author is the writer), the fields to `_brief.md`, in ONE commit, compare-and-swap on both files (a change made meanwhile is merged, never overwritten; five attempts). A file whose frontmatter cannot be read is never written over. `outlineBriefChanges(store, fields)` → `{ changes, brief }` is the same write, not committed: the start uses it.
@@ -295,11 +296,11 @@ The brief the autopilot starts from is kept in two files of the Scaletta, and ea
295
296
  **Legacy.** A state saved with a brief idea, in a book whose `outline/book.md` has no author's description, gets that idea written into `book.md` once, in the start commit (with the state, in the same commit). A description the author wrote is never overwritten. The fields of a state move to `_brief.md` only when that file does not exist yet.
296
297
 
297
298
  - **The name starts with an underscore, and it is no entry.** `OUTLINE_BRIEF_FILE` is `outline/_brief.md`. `outlineIndex` and `parseOutline` never read it as a chapter, so it has no number, is never counted, and is never a warning. `write_file` refuses the whole `outline/` folder, so the brief changes only through the brief's own routes; `edit_outline` writes only the chapter entries and `outline/book.md` (the description, which is also the idea), so it can neither delete, renumber nor move `_brief.md`.
298
- - **The brief has no number of chapters.** The chapters are the chapter entries of the Scaletta: `bookChapters(outline)` is the number of the last entry (its number; the entries are the chapters). `targetChapters` and `scenesPerChapter` are not read any more.
299
+ - **The brief has no number of chapters.** The chapters are the chapter entries of the Synopsis: `bookChapters(outline)` is the number of the last entry (its number; the entries are the chapters). `targetChapters` and `scenesPerChapter` are not read any more.
299
300
  - **The scenes are the planner's.** `scenesForChapter(text)` gives a chapter 2 scenes when its outline entry is up to 40 words, 3 up to 100 words, and 4 above (`SCENES_PER_CHAPTER` is 2 to 4). The text is the entry's body; a chapter without an entry is read from its summary, goal and key events. `wordsPerScene` is the target of every scene.
300
301
  - **The run reads it at every start and configuration.** `AutopilotSession.start({ brief })` and `configure({ brief })` save a brief sent to the file first; the run then reads the file (`readBrief`). `state.brief` is the snapshot the run uses, and it is refreshed when the run starts or the author configures it. A book whose brief is only in its state (saved before the brief had a file) gets the file in the start commit, once.
301
- - **No chapter entries, no run.** With no chapter entry and no approved plan, the planner stops: «The outline has no chapters: write the chapters in the Scaletta, then resume.» A plan that is already approved keeps going to the end of its own chapters.
302
- - **Legacy states.** A state saved with `targetChapters` and `scenesPerChapter` in its brief still loads and runs: the two counts are not read. A plan of N chapters runs to the end of ITS plan. A completed book is not extended unless the author adds chapter entries to the Scaletta: the highest planned chapter number is compared with the last chapter entry, never the number of chapters planned (a book may go on from chapter 1 200, and no chapter past its last entry is ever planned).
302
+ - **No chapter entries, no run.** With no chapter entry and no approved plan, the planner stops: «The synopsis has no chapters: write the chapters in the Synopsis, then resume.» A plan that is already approved keeps going to the end of its own chapters.
303
+ - **Legacy states.** A state saved with `targetChapters` and `scenesPerChapter` in its brief still loads and runs: the two counts are not read. A plan of N chapters runs to the end of ITS plan. A completed book is not extended unless the author adds chapter entries to the Synopsis: the highest planned chapter number is compared with the last chapter entry, never the number of chapters planned (a book may go on from chapter 1 200, and no chapter past its last entry is ever planned).
303
304
  - **Presets.** The brief has none: `autopilotPresetSkeleton(id)` gives the chapter entries a new book's outline starts with (see *Presets*).
304
305
 
305
306
  ## Frozen chapters
@@ -359,8 +360,8 @@ The option is saved with the others, read tolerantly (any case; a value nobody k
359
360
  | `review-and-update` ("Review and update the book from this change") | The changed chapter goes back to review, before the plan: one round of the director (and of the specialists when they are on), without readers, whose accepted fixes are advice for the author and are **never applied** (the author's change stands); the round joins its `rounds`, and the chapter is closed (summary, story so far) and frozen again. Then the later chapters already written are checked: a revision (`state.revision` with `afterChapter`, analyzed with the tool `revision_impact`) is given BEFORE (what the autopilot knew of the chapter when it was frozen: its summary, key events and story so far at its close) and AFTER (its new closing), and chooses the scenes of the later chapters to rewrite; they are rewritten (`revise`), reviewed, closed and frozen again. The book's final judgement is made again. |
360
361
  | `review-only` ("Only review the chapter") | The same round of the director on the changed chapter, and its closing, frozen again: nothing is rewritten and the later chapters are not checked. A complete book stays complete. |
361
362
  | `mark-reviewed` ("Mark as reviewed") | Frozen again as it is, at once, without the model. For an outline entry, the same as `keep-text`. |
362
- | `rewrite-to-outline` ("Rewrite the chapter to follow the outline") | The plan of the chapter follows the new entry (its purpose becomes the entry's text, its key events are dropped, `outlineDigest` is the entry's), and a revision limited to the chapter (`onlyChapter`) rewrites the scenes the new entry requires; the chapter is reviewed as usual (fixes applied), closed and frozen again, and then the later chapters are checked as for `review-and-update` (unless nothing was rewritten). |
363
- | `keep-text` ("Keep the text, update only the outline") | The plan follows the new entry (`outlineDigest`), nothing is rewritten. |
363
+ | `rewrite-to-outline` ("Rewrite the chapter to follow the synopsis") | The plan of the chapter follows the new entry (its purpose becomes the entry's text, its key events are dropped, `outlineDigest` is the entry's), and a revision limited to the chapter (`onlyChapter`) rewrites the scenes the new entry requires; the chapter is reviewed as usual (fixes applied), closed and frozen again, and then the later chapters are checked as for `review-and-update` (unless nothing was rewritten). |
364
+ | `keep-text` ("Keep the text, update only the synopsis") | The plan follows the new entry (`outlineDigest`), nothing is rewritten. |
364
365
 
365
366
  A decision that needs the model is recorded in `state.pendingReviews` and carried out by the next run before it goes on with the plan (by a run in progress, at its next step), one at a time, in the order of the book; one whose change is gone by then is dropped (`frozenCleared`), and when it is over the run says it (`frozenReviewed`).
366
367
 
@@ -558,7 +559,8 @@ An activity records the model of its **last** call and the tokens of all of them
558
559
  |---|---|
559
560
  | `director.md` | Director profile (`type: director`). |
560
561
  | `evaluation-guidelines.md` | The evaluation style: criteria, method and severity. See *Evaluation style*. |
561
- | `outline/book.md`, `outline/chapters/<NNN>.md` | The outline (Scaletta): the description of the book and one entry per chapter. See *Outline (Scaletta)*. |
562
+ | `outline/book.md`, `outline/chapters/<NNN>.md` | The outline (the Synopsis): the description of the book and one entry per chapter. See *Outline (the Synopsis)*. |
563
+ | `outline/brainstorm.md` | The notes of Brainstorming: the decisions the author saved from a brainstorm. Never an entry of the outline. |
562
564
  | `autopilot/state.json` | Autopilot state: brief, options, plan (with the compact `rounds` of review of every chapter), review cycle, rules, interventions, statistics (with `workedMs`), the final review of the book (`finalReview`) and the last error with its kind. |
563
565
  | `autopilot/activity.json` | Last 200 activities (what, why, next, result, model, tokens, cost). |
564
566
  | `autopilot/plan.md` | Human-readable mirror of the plan. |
@@ -662,6 +664,8 @@ An integration without its own value says `the default provider timeout` or `the
662
664
 
663
665
  The route is the author's, place by place: the primary is position 0 and the fallbacks follow, in the order they wrote them. `describeAiRoute(config, capability)` answers it as `AiRouteEntry[]`: the candidate that stands in each place, or, for a target that cannot be called (its integration is gone, its provider cannot chat here, its model is not in the integration, the model is not allowed the task), the target and why (`unusable`: `integration-missing`, `provider-unsupported`, `model-missing`, `task-not-allowed`). `resolveAiCandidates` is what is left of it, as it always was. A candidate that cannot be called keeps its place, so that the fallback that is asked instead is never taken for the primary: `attempt.index` (`onAttempt`, `onAttemptEnd`) is the place in the route as written, 0 for the primary.
664
666
 
667
+ A task may follow another while it has no route of its own (`AI_CAPABILITY_FOLLOWS`): **Brainstorming** (`BRAINSTORMING_CAPABILITY`, `brainstorming`, the Copilot's mode on the Synopsis page of the web app) follows the Copilot (`COPILOT_CAPABILITY`, `copilot`). Its own route is used alone when it has one; without one, the Copilot's route is, with the thinking levels of its targets (Brainstorming has no default level of its own: it is the Copilot's, the target's level, else the integration's); without that either, it is resolved as the Copilot is, from the models tagged `brainstorming`, then those tagged `copilot`, then the default writing integration and the `default` models. A model the author allows the Copilot is allowed Brainstorming too (not the other way round), so a configuration written before the task existed needs nothing to keep working. The name of the task is stable, for whatever classifies a call by its task (the debug history of the web app, the costs).
668
+
665
669
  What became of every candidate is an `AiRouteStep`: `{ position, integrationId, integrationName, provider, model, outcome, endpoint?, status?, durationMs?, message?, timeoutPhase?, timeoutMs?, routing?, leftOut?, why?, promptTokens?, windowTokens? }`. `outcome` is `ok`, `failed`, `timeout`, `cancelled` for a candidate that was asked (with what the provider said, cleaned of credentials and cut at 240 characters, and for a timeout which deadline ran out and, with `routing`, that it was the routing time that was left and not a limit of the call), or `left-out` for one that was not, with `leftOut` saying why: `unusable`, `no-tool-calls` (Tools only), `boundary` (`sameBoundaryOnly`), `context-window` (the prompt needs `promptTokens` and the model's window leaves `windowTokens`), `budget` (`maxTokenAttempts` or `maxEstimatedCost`), `not-acknowledged` (`requireAcknowledgement`) or `out-of-time` (`maxTotalDurationMs` was used up).
666
670
 
667
671
  - **The error of a call that failed has the whole route.** `AiProviderError.route` (also `AiUnavailableError.route`, for a route written and none of it callable, whose message then names each target and why) is every step in the order of the route: the primary that failed at once, then the fallback that ran out of time. `error.target`, `error.model` and the rest of the error are still the last candidate's. The notes that the message ends with now also say a candidate that the context window or the routing limits left out, and a target that cannot be called. `classifyAutopilotError(error).detail.route` and `errorDetail.route` keep it, cleaned (valid steps only, no credential, an endpoint only as an origin, at most `MAX_ROUTE_STEPS`, 12). A step that was refused has `body` too, the words of its own attempt.
@@ -978,7 +982,7 @@ A skipped file is not recorded as synced (a file that was never synced stays out
978
982
  | `configureAutopilot(bookId, { options: { longRetry } })`, `startAutopilot(bookId, { options: { longRetry } })` | As always: the options go to the engine as they are. | As always. The engine reads them as it reads every option there: a value that is not a policy changes nothing. |
979
983
  | `retryNow(bookId)` | `POST /api/v1/books/:id/autopilot/retry-now`, no body (or `{}`). | `200` the snapshot with `skipped` (`RetryNowResponse`): `true` when the run was waiting and the attempt starts now (the snapshot's `summary.retry` is gone), `false` when there was nothing to skip (no run, or a run that is not waiting: nothing happens). `400 invalid_request` for any other body; `503 maintenance` while the server is about to restart (unlike a pause, which is never refused: «Retry now» sets the run going again). |
980
984
 
981
- - **The length of the book comes from its Scaletta.** A server that takes the chapters from the outline and the brief from `outline/_brief.md` announces `SERVER_FEATURE_AUTOPILOT_OUTLINE_BRIEF` (`"autopilot-outline-brief"`), and `serverHasOutlineBrief(infoOrFeatures)` reads it (never throws). An older server plans the default number of chapters and ignores the Scaletta, so `startAutopilot` and `configureAutopilot` refuse it before sending anything: a `ServerRequestError` with status 501 and code `feature_unavailable`, which says to update the server. The client asks the server's `info` once for both checks.
985
+ - **The length of the book comes from its Synopsis.** A server that takes the chapters from the outline and the brief from `outline/_brief.md` announces `SERVER_FEATURE_AUTOPILOT_OUTLINE_BRIEF` (`"autopilot-outline-brief"`), and `serverHasOutlineBrief(infoOrFeatures)` reads it (never throws). An older server plans the default number of chapters and ignores the Synopsis, so `startAutopilot` and `configureAutopilot` refuse it before sending anything: a `ServerRequestError` with status 501 and code `feature_unavailable`, which says to update the server. The client asks the server's `info` once for both checks.
982
986
  - **Resume after a restart.** A server that resumes a run by itself when it starts again announces `SERVER_FEATURE_AUTOPILOT_AUTO_RESUME` (`"autopilot-auto-resume"`), and `serverSupportsAutopilotAutoResume(infoOrFeatures)` reads it (it takes the info or the list of its features; never throws). Such a server takes `options.resumeAfterRestart` (`true` or `false`) in the options route, `configure` and `start`; it pauses every run with `session.stopForShutdown()` when it stops, and when it starts again it resumes, one book at a time, the runs that `session.restartResumeCause()` names (with `session.start({ afterRestart: true })`, through every check a start of the author has: the AI configuration, the number of runs, the owner's switch and caps), at most three times a day per book (see the server's README). **The client never sends `resumeAfterRestart` to a server that does not announce the feature** (`false` included), for the same reason as `longRetry`: `updateAutopilotOptions`, `configureAutopilot` and `startAutopilot` ask the server's `info()` first and refuse with `501 feature_unavailable` before anything is sent. A request without the setting asks nothing more.
983
987
 
984
988
  - **Conflicts with GitHub.** When the server's commits and GitHub's changed the same files, the server's run stops with a `conflict` (`errorDetail.githubConflicts`: how many files), its sync answers `409 github_conflict` (with `conflicts` in the `details` of the `ServerRequestError`), and `lastSync.conflicts` says it in the summary of the book. The author chooses which version of each file to keep, the server's or GitHub's, through two calls of a server that announces `SERVER_FEATURE_GITHUB_CONFLICTS` (`"github-conflicts"`), which `serverSupportsGithubConflicts(infoOrFeatures)` reads (never throws). **The client refuses a server without the feature before sending anything**: it asks `info()` once (and again until the server says yes, so that an update is noticed) and throws a `ServerRequestError` with status `501` and code `feature_unavailable`, whose message says to update the server. A refusal of the server keeps what it said with it in `ServerRequestError.details` (the fields of the answer other than `code` and `message`). Every call also answers `401 unauthorized`, `403 scope`, `404 book_not_found` and `409 no_remote` (a book that is not on GitHub). The rules (which version a deleted file follows, the autopilot's own files that are never asked about, the names the server does not write, the push that GitHub refuses) are in the server's README, *Conflicts with GitHub*.
@@ -1,5 +1,5 @@
1
1
  import { type AiChatModelConfig, type AiNoThinkingWithTools, type AiIntegrationConfig, type AiPricingConfig, type AiReasoningParameter, type AiRouteTarget, type AiRuntimeConfig, type AiThinking } from "./config.js";
2
- import type { AiUnusableWhy } from "./types.js";
2
+ import { type AiUnusableWhy } from "./types.js";
3
3
  export interface AiCandidate {
4
4
  integration: AiIntegrationConfig;
5
5
  model: string;
@@ -41,14 +41,16 @@ export interface AiRouteEntry {
41
41
  }
42
42
  /**
43
43
  * The route of a task place by place, with the rules of the web app's router: an explicit route (primary + fallbacks) is used alone, and a target of it that cannot
44
- * be called keeps its place with the reason (`unusable`), so that the one that is called instead is never taken for the primary; otherwise models tagged with the
45
- * capability, then the default writing integration, then any `default` model. At most `maxCandidates` candidates (the same one twice counts once), and the entries
44
+ * be called keeps its place with the reason (`unusable`), so that the one that is called instead is never taken for the primary; a task with no route of its own that
45
+ * follows another (`AI_CAPABILITY_FOLLOWS`: Brainstorming the Copilot) uses the route of that one; otherwise models tagged with the capability, then those tagged with
46
+ * the one it follows, then the default writing integration, then any `default` model. At most `maxCandidates` candidates (the same one twice counts once), and the entries
46
47
  * that cannot be called do not count.
47
48
  */
48
49
  export declare function describeAiRoute(config: AiRuntimeConfig, capability: string): AiRouteEntry[];
49
50
  /**
50
- * Ordered models to try for a capability (`describeAiRoute` without the targets that cannot be called): an explicit route (primary + fallbacks) is used alone;
51
- * otherwise models tagged with the capability, then the default writing integration, then any `default` model.
51
+ * Ordered models to try for a capability (`describeAiRoute` without the targets that cannot be called): an explicit route (primary + fallbacks) is used alone, the
52
+ * task's own or, while it has none, the one of the task it follows; otherwise models tagged with the capability (then with the one it follows), then the default writing
53
+ * integration, then any `default` model.
52
54
  */
53
55
  export declare function resolveAiCandidates(config: AiRuntimeConfig, capability: string): AiCandidate[];
54
56
  export declare function hasAiCandidates(config: AiRuntimeConfig, capability: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/ai/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8F,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACnT,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,mBAAmB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,YAAY;IAC3B,iKAAiK;IACjK,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,sEAAsE;IACtE,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,YAAY,EAAE,CAgD3F;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW,EAAE,CAE9F;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEpF"}
package/dist/ai/router.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { normalizeApiProtocol, normalizeEndpointUrl, normalizeReasoningParameter, normalizeThinking } from "./config.js";
2
+ import { AI_CAPABILITY_FOLLOWS } from "./types.js";
2
3
  /** Chat models of an integration, tolerant of the legacy single-model fields. */
3
4
  export function integrationChatModels(integration) {
4
5
  if (integration.chatModels?.length)
@@ -10,8 +11,21 @@ export function integrationChatModels(integration) {
10
11
  models.push({ id: "legacy-review", name: integration.modelReview, capabilities: ["review"] });
11
12
  return models;
12
13
  }
14
+ /**
15
+ * The task, then the task it follows (`AI_CAPABILITY_FOLLOWS`): the order in which a task takes a route and a tag. Brainstorming takes its own route, else the
16
+ * Copilot's; a model tagged for it, else one tagged for the Copilot.
17
+ */
18
+ function followOrder(capability) {
19
+ const follows = Object.prototype.hasOwnProperty.call(AI_CAPABILITY_FOLLOWS, capability) ? AI_CAPABILITY_FOLLOWS[capability] : undefined;
20
+ return follows === undefined ? [capability] : [capability, follows];
21
+ }
13
22
  function supports(model, capability) {
14
- return model.capabilities.includes(capability) || model.capabilities.includes("default");
23
+ return [...followOrder(capability), "default"].some((tag) => model.capabilities.includes(tag));
24
+ }
25
+ /** The route a task has, or, while it has none, the route of the task it follows. */
26
+ function routeOf(config, capability) {
27
+ const written = (route) => Boolean(route && (route.primary || route.fallbacks?.length));
28
+ return followOrder(capability).map((task) => config.taskRouting?.[task]).find(written) ?? config.taskRouting?.[capability];
15
29
  }
16
30
  function candidate(integration, model, target) {
17
31
  const thinking = normalizeThinking(target?.thinking) ?? normalizeThinking(integration.thinking);
@@ -57,19 +71,26 @@ function writingIntegration(config) {
57
71
  ?? integrations.find((entry) => entry.id === config.defaultWritingIntegrationId)
58
72
  ?? integrations[0];
59
73
  }
74
+ /** The model of an integration for a task: the first tagged for it, else for the task it follows, else the first `default` one. */
60
75
  function pick(integration, capability) {
61
76
  const models = integrationChatModels(integration);
62
- return models.find((model) => model.capabilities.includes(capability)) ?? models.find((model) => model.capabilities.includes("default"));
77
+ for (const tag of [...followOrder(capability), "default"]) {
78
+ const model = models.find((entry) => entry.capabilities.includes(tag));
79
+ if (model)
80
+ return model;
81
+ }
82
+ return undefined;
63
83
  }
64
84
  /**
65
85
  * The route of a task place by place, with the rules of the web app's router: an explicit route (primary + fallbacks) is used alone, and a target of it that cannot
66
- * be called keeps its place with the reason (`unusable`), so that the one that is called instead is never taken for the primary; otherwise models tagged with the
67
- * capability, then the default writing integration, then any `default` model. At most `maxCandidates` candidates (the same one twice counts once), and the entries
86
+ * be called keeps its place with the reason (`unusable`), so that the one that is called instead is never taken for the primary; a task with no route of its own that
87
+ * follows another (`AI_CAPABILITY_FOLLOWS`: Brainstorming the Copilot) uses the route of that one; otherwise models tagged with the capability, then those tagged with
88
+ * the one it follows, then the default writing integration, then any `default` model. At most `maxCandidates` candidates (the same one twice counts once), and the entries
68
89
  * that cannot be called do not count.
69
90
  */
70
91
  export function describeAiRoute(config, capability) {
71
92
  const limit = Math.max(1, Math.min(8, config.routingExecution?.maxCandidates ?? config.maxCandidates ?? 4));
72
- const route = config.taskRouting?.[capability];
93
+ const route = routeOf(config, capability);
73
94
  const seen = new Set();
74
95
  const entries = [];
75
96
  let usable = 0;
@@ -107,10 +128,12 @@ export function describeAiRoute(config, capability) {
107
128
  if (review && model)
108
129
  add(candidate(review, model));
109
130
  }
110
- for (const integration of config.aiIntegrations) {
111
- const exact = integrationChatModels(integration).find((model) => model.capabilities.includes(capability));
112
- if (exact)
113
- add(candidate(integration, exact));
131
+ for (const tag of followOrder(capability)) {
132
+ for (const integration of config.aiIntegrations) {
133
+ const exact = integrationChatModels(integration).find((model) => model.capabilities.includes(tag));
134
+ if (exact)
135
+ add(candidate(integration, exact));
136
+ }
114
137
  }
115
138
  const preferred = writingIntegration(config);
116
139
  const preferredModel = preferred ? pick(preferred, capability) : undefined;
@@ -125,8 +148,9 @@ export function describeAiRoute(config, capability) {
125
148
  return entries;
126
149
  }
127
150
  /**
128
- * Ordered models to try for a capability (`describeAiRoute` without the targets that cannot be called): an explicit route (primary + fallbacks) is used alone;
129
- * otherwise models tagged with the capability, then the default writing integration, then any `default` model.
151
+ * Ordered models to try for a capability (`describeAiRoute` without the targets that cannot be called): an explicit route (primary + fallbacks) is used alone, the
152
+ * task's own or, while it has none, the one of the task it follows; otherwise models tagged with the capability (then with the one it follows), then the default writing
153
+ * integration, then any `default` model.
130
154
  */
131
155
  export function resolveAiCandidates(config, capability) {
132
156
  return describeAiRoute(config, capability).flatMap((entry) => (entry.candidate ? [entry.candidate] : []));
@@ -1 +1 @@
1
- {"version":3,"file":"router.js","sourceRoot":"","sources":["../../src/ai/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,iBAAiB,EAA4L,MAAM,aAAa,CAAC;AAgCnT,iFAAiF;AACjF,MAAM,UAAU,qBAAqB,CAAC,WAAgC;IACpE,IAAI,WAAW,CAAC,UAAU,EAAE,MAAM;QAAE,OAAO,WAAW,CAAC,UAAU,CAAC;IAClE,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,IAAI,WAAW,CAAC,YAAY;QAAE,MAAM,CAAC,IAAI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E,QAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAClG,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAuB,EAAE,UAAkB;IAC7E,OAAO,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5G,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,MAAuB,EAAE,UAAkB;IACzE,OAAO,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;AAC5D,CAAC"}
@@ -344,6 +344,21 @@ export declare class AiToolsRequiredError extends AiProviderError {
344
344
  readonly skippedModels: AiSkippedModel[];
345
345
  constructor(message: string, models?: string[], skippedModels?: AiSkippedModel[]);
346
346
  }
347
+ /** The router's task of the Copilot. */
348
+ export declare const COPILOT_CAPABILITY = "copilot";
349
+ /**
350
+ * The router's task of Brainstorming, the Copilot's mode on the Synopsis page of the web app: a task of its own, with its row in the router, and a
351
+ * stable name, for whatever classifies a call by its task (the debug history, the costs). While it has no route of its own it follows the Copilot's
352
+ * (`AI_CAPABILITY_FOLLOWS`).
353
+ */
354
+ export declare const BRAINSTORMING_CAPABILITY = "brainstorming";
355
+ /**
356
+ * The task a task follows while it has no route of its own: its route is the followed task's, and a model the author allows the followed task is allowed
357
+ * it too (not the other way round). Without that route either, it is resolved as the followed task is, with its own tags first: the models tagged for it,
358
+ * then those tagged for the followed task, then the default writing integration and the `default` models. Brainstorming follows the Copilot, so nobody
359
+ * has to route it, and a setup made before it existed keeps working as it was.
360
+ */
361
+ export declare const AI_CAPABILITY_FOLLOWS: Readonly<Record<string, string>>;
347
362
  /** Router capabilities used by the autopilot and the director. Missing routes fall back to `default` models. */
348
363
  export declare const AI_CAPABILITIES: {
349
364
  readonly writer: "autopilot";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ai/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,mHAAmH;AACnH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;IACtC,OAAO,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,SAAS;IACxB,sGAAsG;IACtG,UAAU,EAAE,MAAM,CAAC;IACn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QAAQ,CAAC,aAAa,EAAE,cAAc,EAAE;gBAAzF,OAAO,EAAE,MAAM,EAAW,MAAM,GAAE,MAAM,EAAO,EAAW,aAAa,GAAE,cAAc,EAAO;CAI3G;AAED,wCAAwC;AACxC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AACxD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAqE,CAAC;AAEzI,gHAAgH;AAChH,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC"}
package/dist/ai/types.js CHANGED
@@ -106,6 +106,21 @@ export class AiToolsRequiredError extends AiProviderError {
106
106
  this.name = "AiToolsRequiredError";
107
107
  }
108
108
  }
109
+ /** The router's task of the Copilot. */
110
+ export const COPILOT_CAPABILITY = "copilot";
111
+ /**
112
+ * The router's task of Brainstorming, the Copilot's mode on the Synopsis page of the web app: a task of its own, with its row in the router, and a
113
+ * stable name, for whatever classifies a call by its task (the debug history, the costs). While it has no route of its own it follows the Copilot's
114
+ * (`AI_CAPABILITY_FOLLOWS`).
115
+ */
116
+ export const BRAINSTORMING_CAPABILITY = "brainstorming";
117
+ /**
118
+ * The task a task follows while it has no route of its own: its route is the followed task's, and a model the author allows the followed task is allowed
119
+ * it too (not the other way round). Without that route either, it is resolved as the followed task is, with its own tags first: the models tagged for it,
120
+ * then those tagged for the followed task, then the default writing integration and the `default` models. Brainstorming follows the Copilot, so nobody
121
+ * has to route it, and a setup made before it existed keeps working as it was.
122
+ */
123
+ export const AI_CAPABILITY_FOLLOWS = Object.freeze({ [BRAINSTORMING_CAPABILITY]: COPILOT_CAPABILITY });
109
124
  /** Router capabilities used by the autopilot and the director. Missing routes fall back to `default` models. */
110
125
  export const AI_CAPABILITIES = {
111
126
  writer: "autopilot",
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["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114,12 +114,12 @@ export function estimateTexts(italian) {
114
114
  }
115
115
  if (facts.outlineWords > 0) {
116
116
  lines.push(italian
117
- ? `La scaletta pesa ${count(facts.outlineWords)} parole.`
118
- : `The outline weighs ${count(facts.outlineWords)} words.`);
117
+ ? `La Sinossi pesa ${count(facts.outlineWords)} parole.`
118
+ : `The synopsis weighs ${count(facts.outlineWords)} words.`);
119
119
  }
120
120
  lines.push(italian
121
- ? "Le pause, i budget e le opzioni che non cambiano quello che si chiede ai modelli (pausa dopo il piano o dopo ogni capitolo, capitoli per corsa, riempimento della scaletta) non cambiano i numeri."
122
- : "The pauses, the budgets and the options that do not change what is asked of the models (pause after the plan or after each chapter, chapters per run, filling the outline) do not change the numbers.");
121
+ ? "Le pause, i budget e le opzioni che non cambiano quello che si chiede ai modelli (pausa dopo il piano o dopo ogni capitolo, capitoli per corsa, riempimento della Sinossi) non cambiano i numeri."
122
+ : "The pauses, the budgets and the options that do not change what is asked of the models (pause after the plan or after each chapter, chapters per run, filling the synopsis) do not change the numbers.");
123
123
  return lines;
124
124
  },
125
125
  };
@@ -1 +1 @@
1
- {"version":3,"file":"estimate-texts.js","sourceRoot":"","sources":["../../src/autopilot/estimate-texts.ts"],"names":[],"mappings":"AAEA,mHAAmH;AACnH,MAAM,gBAAgB,GAA4D;IAChF,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE;IAC1M,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE;CACpN,CAAC;AAEF,MAAM,UAAU,GAA0D;IACxE,EAAE,EAAE;QACF,OAAO,E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