narrarium-engine 0.1.22 → 0.1.24
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 +23 -6
- package/dist/autopilot/campaign.d.ts +72 -5
- package/dist/autopilot/campaign.d.ts.map +1 -1
- package/dist/autopilot/campaign.js +338 -36
- package/dist/autopilot/campaign.js.map +1 -1
- package/dist/autopilot/design.d.ts +77 -0
- package/dist/autopilot/design.d.ts.map +1 -0
- package/dist/autopilot/design.js +234 -0
- package/dist/autopilot/design.js.map +1 -0
- package/dist/autopilot/estimate-texts.d.ts +6 -0
- package/dist/autopilot/estimate-texts.d.ts.map +1 -1
- package/dist/autopilot/estimate-texts.js +20 -7
- package/dist/autopilot/estimate-texts.js.map +1 -1
- package/dist/autopilot/estimate.d.ts +36 -5
- package/dist/autopilot/estimate.d.ts.map +1 -1
- package/dist/autopilot/estimate.js +100 -35
- package/dist/autopilot/estimate.js.map +1 -1
- package/dist/autopilot/frozen.d.ts +8 -0
- package/dist/autopilot/frozen.d.ts.map +1 -1
- package/dist/autopilot/frozen.js +9 -1
- package/dist/autopilot/frozen.js.map +1 -1
- package/dist/autopilot/outline-check.d.ts +9 -0
- package/dist/autopilot/outline-check.d.ts.map +1 -1
- package/dist/autopilot/outline-check.js +16 -0
- package/dist/autopilot/outline-check.js.map +1 -1
- package/dist/autopilot/outline-compose.d.ts +3 -3
- package/dist/autopilot/outline-compose.d.ts.map +1 -1
- package/dist/autopilot/outline-compose.js +4 -4
- package/dist/autopilot/outline-compose.js.map +1 -1
- package/dist/autopilot/planner.d.ts +13 -11
- package/dist/autopilot/planner.d.ts.map +1 -1
- package/dist/autopilot/planner.js +105 -27
- package/dist/autopilot/planner.js.map +1 -1
- package/dist/autopilot/prompts.d.ts +18 -0
- package/dist/autopilot/prompts.d.ts.map +1 -1
- package/dist/autopilot/prompts.js +163 -0
- package/dist/autopilot/prompts.js.map +1 -1
- package/dist/autopilot/review-policy.d.ts +22 -0
- package/dist/autopilot/review-policy.d.ts.map +1 -0
- package/dist/autopilot/review-policy.js +56 -0
- package/dist/autopilot/review-policy.js.map +1 -0
- package/dist/autopilot/runner.d.ts.map +1 -1
- package/dist/autopilot/runner.js +39 -12
- package/dist/autopilot/runner.js.map +1 -1
- package/dist/autopilot/session.d.ts +9 -1
- package/dist/autopilot/session.d.ts.map +1 -1
- package/dist/autopilot/session.js +36 -2
- package/dist/autopilot/session.js.map +1 -1
- package/dist/autopilot/state.d.ts +19 -4
- package/dist/autopilot/state.d.ts.map +1 -1
- package/dist/autopilot/state.js +200 -8
- package/dist/autopilot/state.js.map +1 -1
- package/dist/autopilot/tasks.d.ts +3 -1
- package/dist/autopilot/tasks.d.ts.map +1 -1
- package/dist/autopilot/tasks.js +471 -78
- package/dist/autopilot/tasks.js.map +1 -1
- package/dist/autopilot/types.d.ts +252 -9
- package/dist/autopilot/types.d.ts.map +1 -1
- package/dist/autopilot/types.js +8 -1
- package/dist/autopilot/types.js.map +1 -1
- package/dist/book/design.d.ts +265 -0
- package/dist/book/design.d.ts.map +1 -0
- package/dist/book/design.js +632 -0
- package/dist/book/design.js.map +1 -0
- package/dist/book/outline.d.ts +20 -4
- package/dist/book/outline.d.ts.map +1 -1
- package/dist/book/outline.js +46 -9
- package/dist/book/outline.js.map +1 -1
- package/dist/director/opinion.d.ts +2 -0
- package/dist/director/opinion.d.ts.map +1 -1
- package/dist/director/opinion.js +4 -3
- package/dist/director/opinion.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/client.d.ts +10 -4
- package/dist/server/client.d.ts.map +1 -1
- package/dist/server/client.js +33 -12
- package/dist/server/client.js.map +1 -1
- package/dist/server/protocol.d.ts +35 -1
- package/dist/server/protocol.d.ts.map +1 -1
- package/dist/server/protocol.js +38 -0
- package/dist/server/protocol.js.map +1 -1
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +67 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type OutlineReader } from "../book/outline.js";
|
|
2
|
+
import { type DesignCheckInput, type DesignFinding } from "../book/design.js";
|
|
3
|
+
import type { BookSnapshot } from "../book/snapshot.js";
|
|
4
|
+
import type { BookFileChange, BookStore } from "../book/store.js";
|
|
5
|
+
import type { DirectorProfile } from "../profiles/director.js";
|
|
6
|
+
import { type AutopilotDesign, type AutopilotState, type DesignOutcome, type DesignStartInput } from "./types.js";
|
|
7
|
+
/**
|
|
8
|
+
* The design run of the autopilot (`AutopilotDesign`): what a start asks of it, the rules of its reviews, how it ends. The steps are the autopilot's own (`concept`,
|
|
9
|
+
* `plan`, `plan-reader`, `plan-review`), with the prompts of a design (`design-prompts.ts`); this module holds what decides, and is pure.
|
|
10
|
+
*/
|
|
11
|
+
/** The chapters of a design when neither the start nor the Synopsis says how many. */
|
|
12
|
+
export declare const DESIGN_DEFAULT_CHAPTERS = 12;
|
|
13
|
+
/** The most chapters a design run is asked for at once: a longer book is designed in more runs, or from a Synopsis that already has its entries. */
|
|
14
|
+
export declare const DESIGN_MAX_CHAPTERS = 500;
|
|
15
|
+
export type AutopilotDesignErrorCode = "invalid_request" | "design_written" | "design_no_description";
|
|
16
|
+
/**
|
|
17
|
+
* A design run that cannot begin: what was asked is not one (`invalid_request`), the autopilot has already written chapters of the book (`design_written`: a design is
|
|
18
|
+
* for a book whose chapters are not written yet), or the book has no description to design it from (`design_no_description`).
|
|
19
|
+
*/
|
|
20
|
+
export declare class AutopilotDesignError extends Error {
|
|
21
|
+
readonly code: AutopilotDesignErrorCode;
|
|
22
|
+
constructor(code: AutopilotDesignErrorCode, message: string);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What a start says of a design (`StartOptions.design`), checked: `true` or an object begins one (`DesignStartInput`), `false` ends the one that goes on, nothing says
|
|
26
|
+
* nothing. Throws `AutopilotDesignError` (`invalid_request`) for anything else: a misspelt key would design a book other than the one asked.
|
|
27
|
+
*/
|
|
28
|
+
export declare function normalizeDesignStart(value: unknown): DesignStartInput | false | undefined;
|
|
29
|
+
/** The chapters of the plan the autopilot has written prose for (the author's own, `imported`, do not count). */
|
|
30
|
+
export declare function chaptersWrittenByAutopilot(state: Pick<AutopilotState, "plan">): number[];
|
|
31
|
+
/**
|
|
32
|
+
* The state a start makes when it asks for a design (`StartOptions.design`), and the chapters the book is designed with. A design that goes on goes on (its policy and
|
|
33
|
+
* its chapters as the start says them now); a new one begins with its reviews at zero, and a plan the director had approved is reviewed again. `options.pauseAfterPlan`
|
|
34
|
+
* is turned on while the design goes on (`AutopilotDesign.pauseAfterPlan` keeps the author's). Throws `AutopilotDesignError` when the autopilot has written chapters
|
|
35
|
+
* of the book, or the book has no description.
|
|
36
|
+
*/
|
|
37
|
+
export declare function beginDesign(state: AutopilotState, input: DesignStartInput, context: {
|
|
38
|
+
now: string;
|
|
39
|
+
outlineChapters: number;
|
|
40
|
+
idea: string;
|
|
41
|
+
language?: string;
|
|
42
|
+
}): {
|
|
43
|
+
state: AutopilotState;
|
|
44
|
+
chapters: number;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The empty entries (the autopilot's, `origin: autopilot` and no text) the Synopsis gets after its last entry up to `chapters`: the book has that many chapters, and the
|
|
48
|
+
* plan fills them. None when the Synopsis reaches that far already.
|
|
49
|
+
*/
|
|
50
|
+
export declare function designPlaceholderChanges(outlineChapters: number, chapters: number): BookFileChange[];
|
|
51
|
+
/** The design ends (`outcome`, at `now`): the run stops there, and `options.pauseAfterPlan` is the author's again. Mutates `state`. */
|
|
52
|
+
export declare function endDesign(state: AutopilotState, outcome: DesignOutcome, now: string): void;
|
|
53
|
+
/** Chapters one call of the plan takes: fewer while a design goes on, for a design says much more of every chapter. */
|
|
54
|
+
export declare function planBatchChapters(state: Pick<AutopilotState, "design"> | null | undefined, plain: number): number;
|
|
55
|
+
/** The vote a design must reach: its policy's, else the director's approval score. */
|
|
56
|
+
export declare function designTarget(state: Pick<AutopilotState, "design">, director: Pick<DirectorProfile, "approvalScore">): number;
|
|
57
|
+
/** In how many of the first reviews of a design the simulated readers read it first: its policy's, else the first only. */
|
|
58
|
+
export declare function designReaderRounds(state: Pick<AutopilotState, "design">): number;
|
|
59
|
+
/** Whether the next review of the design is its last: the rounds of its policy are used once it is done. */
|
|
60
|
+
export declare function designLastRound(state: Pick<AutopilotState, "design" | "plan">): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the reviews of a design have stopped improving: in the last two reviews, neither raised the best vote of the ones before it (the rule of the reviews of the
|
|
63
|
+
* book). Needs three reviews at least.
|
|
64
|
+
*/
|
|
65
|
+
export declare function designPlateau(design: Pick<AutopilotDesign, "rounds"> | undefined): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* What the deterministic checks of a design read (`designChecks`), from the book: every entry of the Synopsis with its design, every secret with its ledger and
|
|
68
|
+
* its reveal (`reveal_in`, else the chapter the plan reveals it in, else `known_from`), the cast and the places of the canon.
|
|
69
|
+
*/
|
|
70
|
+
export declare function loadDesignCheckInput(store: BookStore, snapshot: BookSnapshot, outline: OutlineReader, state: Pick<AutopilotState, "concept" | "plan">): Promise<DesignCheckInput>;
|
|
71
|
+
/** The insight that tells the findings of the checks of a design: the warnings first. `null` when there is none. */
|
|
72
|
+
export declare function designFindingsInsight(findings: readonly DesignFinding[], language: string): {
|
|
73
|
+
tone: "info" | "warning";
|
|
74
|
+
title: string;
|
|
75
|
+
detail: string;
|
|
76
|
+
} | null;
|
|
77
|
+
//# sourceMappingURL=design.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/autopilot/design.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;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E,EAAE,QAAQ,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAc9J"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { referencedChapterNumber } from "../book/context.js";
|
|
2
|
+
import { outlineChapterPath } from "../book/paths.js";
|
|
3
|
+
import { serializeOutlineChapter } from "../book/outline.js";
|
|
4
|
+
import { designFindingText, readSecretLedger } from "../book/design.js";
|
|
5
|
+
import { parseMarkdown } from "../markdown/frontmatter.js";
|
|
6
|
+
import { isItalian } from "../util/text.js";
|
|
7
|
+
import { isPlannedChapterWritten } from "./chapter-state.js";
|
|
8
|
+
import { normalizeReviewPolicy } from "./review-policy.js";
|
|
9
|
+
import { MAX_BOOK_CHAPTERS, designActive, designMaxRounds } from "./state.js";
|
|
10
|
+
import { DESIGN_BATCH_CHAPTERS } from "./types.js";
|
|
11
|
+
/**
|
|
12
|
+
* The design run of the autopilot (`AutopilotDesign`): what a start asks of it, the rules of its reviews, how it ends. The steps are the autopilot's own (`concept`,
|
|
13
|
+
* `plan`, `plan-reader`, `plan-review`), with the prompts of a design (`design-prompts.ts`); this module holds what decides, and is pure.
|
|
14
|
+
*/
|
|
15
|
+
/** The chapters of a design when neither the start nor the Synopsis says how many. */
|
|
16
|
+
export const DESIGN_DEFAULT_CHAPTERS = 12;
|
|
17
|
+
/** The most chapters a design run is asked for at once: a longer book is designed in more runs, or from a Synopsis that already has its entries. */
|
|
18
|
+
export const DESIGN_MAX_CHAPTERS = 500;
|
|
19
|
+
/**
|
|
20
|
+
* A design run that cannot begin: what was asked is not one (`invalid_request`), the autopilot has already written chapters of the book (`design_written`: a design is
|
|
21
|
+
* for a book whose chapters are not written yet), or the book has no description to design it from (`design_no_description`).
|
|
22
|
+
*/
|
|
23
|
+
export class AutopilotDesignError extends Error {
|
|
24
|
+
code;
|
|
25
|
+
constructor(code, message) {
|
|
26
|
+
super(message);
|
|
27
|
+
this.code = code;
|
|
28
|
+
this.name = "AutopilotDesignError";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* What a start says of a design (`StartOptions.design`), checked: `true` or an object begins one (`DesignStartInput`), `false` ends the one that goes on, nothing says
|
|
33
|
+
* nothing. Throws `AutopilotDesignError` (`invalid_request`) for anything else: a misspelt key would design a book other than the one asked.
|
|
34
|
+
*/
|
|
35
|
+
export function normalizeDesignStart(value) {
|
|
36
|
+
if (value === undefined || value === null)
|
|
37
|
+
return undefined;
|
|
38
|
+
if (value === false)
|
|
39
|
+
return false;
|
|
40
|
+
if (value === true)
|
|
41
|
+
return {};
|
|
42
|
+
if (typeof value !== "object" || Array.isArray(value))
|
|
43
|
+
throw new AutopilotDesignError("invalid_request", "design must be true, false or { chapters?, review? }.");
|
|
44
|
+
const source = value;
|
|
45
|
+
const unknown = Object.keys(source).filter((key) => key !== "chapters" && key !== "review");
|
|
46
|
+
if (unknown.length)
|
|
47
|
+
throw new AutopilotDesignError("invalid_request", `design does not take ${unknown.map((key) => `«${key}»`).join(", ")}: it takes chapters and review.`);
|
|
48
|
+
const input = {};
|
|
49
|
+
if (source.chapters !== undefined) {
|
|
50
|
+
const chapters = source.chapters;
|
|
51
|
+
if (typeof chapters !== "number" || !Number.isSafeInteger(chapters) || chapters < 1 || chapters > DESIGN_MAX_CHAPTERS) {
|
|
52
|
+
throw new AutopilotDesignError("invalid_request", `design.chapters must be a whole number from 1 to ${DESIGN_MAX_CHAPTERS}.`);
|
|
53
|
+
}
|
|
54
|
+
input.chapters = chapters;
|
|
55
|
+
}
|
|
56
|
+
if (source.review !== undefined) {
|
|
57
|
+
if (source.review !== null && (typeof source.review !== "object" || Array.isArray(source.review)))
|
|
58
|
+
throw new AutopilotDesignError("invalid_request", "design.review must be { targetScore?, maxRounds?, readerRounds? } or null.");
|
|
59
|
+
if (source.review && Object.keys(source.review).some((key) => key !== "targetScore" && key !== "maxRounds" && key !== "readerRounds")) {
|
|
60
|
+
throw new AutopilotDesignError("invalid_request", "design.review takes targetScore, maxRounds and readerRounds.");
|
|
61
|
+
}
|
|
62
|
+
input.review = source.review;
|
|
63
|
+
}
|
|
64
|
+
return input;
|
|
65
|
+
}
|
|
66
|
+
/** The chapters of the plan the autopilot has written prose for (the author's own, `imported`, do not count). */
|
|
67
|
+
export function chaptersWrittenByAutopilot(state) {
|
|
68
|
+
return (state.plan?.chapters ?? []).filter((chapter) => !chapter.imported && isPlannedChapterWritten(chapter)).map((chapter) => chapter.number);
|
|
69
|
+
}
|
|
70
|
+
function policyOf(update, base) {
|
|
71
|
+
if (update === null)
|
|
72
|
+
return undefined;
|
|
73
|
+
const policy = normalizeReviewPolicy(update ?? {}, base);
|
|
74
|
+
if (!policy)
|
|
75
|
+
return undefined;
|
|
76
|
+
const { targetScore, maxRounds, readerRounds } = policy;
|
|
77
|
+
const design = {};
|
|
78
|
+
if (targetScore !== undefined)
|
|
79
|
+
design.targetScore = targetScore;
|
|
80
|
+
if (maxRounds !== undefined)
|
|
81
|
+
design.maxRounds = maxRounds;
|
|
82
|
+
if (readerRounds !== undefined)
|
|
83
|
+
design.readerRounds = readerRounds;
|
|
84
|
+
return Object.keys(design).length ? design : undefined;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The state a start makes when it asks for a design (`StartOptions.design`), and the chapters the book is designed with. A design that goes on goes on (its policy and
|
|
88
|
+
* its chapters as the start says them now); a new one begins with its reviews at zero, and a plan the director had approved is reviewed again. `options.pauseAfterPlan`
|
|
89
|
+
* is turned on while the design goes on (`AutopilotDesign.pauseAfterPlan` keeps the author's). Throws `AutopilotDesignError` when the autopilot has written chapters
|
|
90
|
+
* of the book, or the book has no description.
|
|
91
|
+
*/
|
|
92
|
+
export function beginDesign(state, input, context) {
|
|
93
|
+
const italian = isItalian(context.language);
|
|
94
|
+
const written = chaptersWrittenByAutopilot(state);
|
|
95
|
+
if (written.length) {
|
|
96
|
+
throw new AutopilotDesignError("design_written", italian
|
|
97
|
+
? `L'autopilot ha già scritto ${written.length === 1 ? "il capitolo" : "i capitoli"} ${written.join(", ")}: la progettazione è per un libro i cui capitoli non sono ancora scritti.`
|
|
98
|
+
: `The autopilot has already written chapter${written.length === 1 ? "" : "s"} ${written.join(", ")}: a design is for a book whose chapters are not written yet.`);
|
|
99
|
+
}
|
|
100
|
+
if (!context.idea.trim()) {
|
|
101
|
+
throw new AutopilotDesignError("design_no_description", italian
|
|
102
|
+
? "Il libro non ha una descrizione: scrivila nella Sinossi, poi progetta il libro."
|
|
103
|
+
: "The book has no description: write it in the Synopsis, then design the book.");
|
|
104
|
+
}
|
|
105
|
+
const previous = state.design;
|
|
106
|
+
const going = designActive(state) ? previous : undefined;
|
|
107
|
+
const asked = input.chapters ?? going?.chapters ?? (context.outlineChapters || DESIGN_DEFAULT_CHAPTERS);
|
|
108
|
+
const chapters = Math.min(MAX_BOOK_CHAPTERS, Math.max(context.outlineChapters, Math.min(DESIGN_MAX_CHAPTERS, Math.max(1, asked))));
|
|
109
|
+
const review = policyOf(input.review, previous?.review);
|
|
110
|
+
const next = structuredClone(state);
|
|
111
|
+
const pauseAfterPlan = going?.pauseAfterPlan ?? state.options.pauseAfterPlan;
|
|
112
|
+
next.options = { ...next.options, pauseAfterPlan: true };
|
|
113
|
+
const design = {
|
|
114
|
+
startedAt: going?.startedAt ?? context.now,
|
|
115
|
+
chapters,
|
|
116
|
+
...(review ? { review } : {}),
|
|
117
|
+
rounds: going?.rounds ?? [],
|
|
118
|
+
...(going?.escalated ? { escalated: true } : {}),
|
|
119
|
+
pauseAfterPlan,
|
|
120
|
+
...(previous?.ledgers ? { ledgers: previous.ledgers } : {}),
|
|
121
|
+
};
|
|
122
|
+
next.design = design;
|
|
123
|
+
if (!going && next.plan) {
|
|
124
|
+
// A new design: the plan is reviewed again from its first round (a plan approved before is reopened; nothing of it is written).
|
|
125
|
+
const { revisionBatches: _batches, ...plan } = next.plan;
|
|
126
|
+
next.plan = { ...plan, approved: false, awaitingAuthor: false, rounds: 0, readersDone: false, readerReactions: [], revisionNotes: plan.approved ? [] : plan.revisionNotes };
|
|
127
|
+
delete next.plan.skippedReaders;
|
|
128
|
+
}
|
|
129
|
+
return { state: next, chapters };
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* The empty entries (the autopilot's, `origin: autopilot` and no text) the Synopsis gets after its last entry up to `chapters`: the book has that many chapters, and the
|
|
133
|
+
* plan fills them. None when the Synopsis reaches that far already.
|
|
134
|
+
*/
|
|
135
|
+
export function designPlaceholderChanges(outlineChapters, chapters) {
|
|
136
|
+
const changes = [];
|
|
137
|
+
for (let number = outlineChapters + 1; number <= chapters; number += 1) {
|
|
138
|
+
changes.push({ path: outlineChapterPath(number), content: serializeOutlineChapter({ number, origin: "autopilot" }), expectedHash: null });
|
|
139
|
+
}
|
|
140
|
+
return changes;
|
|
141
|
+
}
|
|
142
|
+
/** The design ends (`outcome`, at `now`): the run stops there, and `options.pauseAfterPlan` is the author's again. Mutates `state`. */
|
|
143
|
+
export function endDesign(state, outcome, now) {
|
|
144
|
+
const design = state.design;
|
|
145
|
+
if (!design || design.endedAt)
|
|
146
|
+
return;
|
|
147
|
+
if (typeof design.pauseAfterPlan === "boolean")
|
|
148
|
+
state.options = { ...state.options, pauseAfterPlan: design.pauseAfterPlan };
|
|
149
|
+
const { pauseAfterPlan: _pause, ...rest } = design;
|
|
150
|
+
state.design = { ...rest, endedAt: now, outcome };
|
|
151
|
+
// A revision of the plan that waits was cut in the batches of a design: the plan that goes on is cut in its own.
|
|
152
|
+
if (state.plan?.revisionBatches)
|
|
153
|
+
delete state.plan.revisionBatches;
|
|
154
|
+
}
|
|
155
|
+
/** Chapters one call of the plan takes: fewer while a design goes on, for a design says much more of every chapter. */
|
|
156
|
+
export function planBatchChapters(state, plain) {
|
|
157
|
+
return designActive(state) ? DESIGN_BATCH_CHAPTERS : plain;
|
|
158
|
+
}
|
|
159
|
+
/** The vote a design must reach: its policy's, else the director's approval score. */
|
|
160
|
+
export function designTarget(state, director) {
|
|
161
|
+
return state.design?.review?.targetScore ?? director.approvalScore;
|
|
162
|
+
}
|
|
163
|
+
/** In how many of the first reviews of a design the simulated readers read it first: its policy's, else the first only. */
|
|
164
|
+
export function designReaderRounds(state) {
|
|
165
|
+
return state.design?.review?.readerRounds ?? 1;
|
|
166
|
+
}
|
|
167
|
+
/** Whether the next review of the design is its last: the rounds of its policy are used once it is done. */
|
|
168
|
+
export function designLastRound(state) {
|
|
169
|
+
return (state.plan?.rounds ?? 0) >= designMaxRounds(state.design) - 1;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Whether the reviews of a design have stopped improving: in the last two reviews, neither raised the best vote of the ones before it (the rule of the reviews of the
|
|
173
|
+
* book). Needs three reviews at least.
|
|
174
|
+
*/
|
|
175
|
+
export function designPlateau(design) {
|
|
176
|
+
const scores = (design?.rounds ?? []).map((round) => round.score);
|
|
177
|
+
if (scores.length < 3)
|
|
178
|
+
return false;
|
|
179
|
+
const best = (list) => list.reduce((most, score) => Math.max(most, score), Number.NEGATIVE_INFINITY);
|
|
180
|
+
const before = best(scores.slice(0, -2));
|
|
181
|
+
return scores[scores.length - 2] <= before && scores[scores.length - 1] <= Math.max(before, scores[scores.length - 2]);
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* What the deterministic checks of a design read (`designChecks`), from the book: every entry of the Synopsis with its design, every secret with its ledger and
|
|
185
|
+
* its reveal (`reveal_in`, else the chapter the plan reveals it in, else `known_from`), the cast and the places of the canon.
|
|
186
|
+
*/
|
|
187
|
+
export async function loadDesignCheckInput(store, snapshot, outline, state) {
|
|
188
|
+
const entries = await outline.chapters();
|
|
189
|
+
const planned = new Map(state.concept.secrets.map((secret) => [secret.slug, secret.revealChapter]));
|
|
190
|
+
const secrets = await Promise.all(snapshot.canon.filter((entry) => entry.kind === "secret").map(async (entry) => {
|
|
191
|
+
const file = await store.read(entry.path);
|
|
192
|
+
const frontmatter = file ? parseMarkdown(file.content).frontmatter : {};
|
|
193
|
+
const holders = Array.isArray(frontmatter.holders) ? frontmatter.holders.filter((item) => typeof item === "string") : [];
|
|
194
|
+
const reveal = referencedChapterNumber(entry.revealIn) ?? planned.get(entry.slug) ?? referencedChapterNumber(entry.knownFrom);
|
|
195
|
+
const knownFrom = referencedChapterNumber(entry.knownFrom);
|
|
196
|
+
return {
|
|
197
|
+
slug: entry.slug,
|
|
198
|
+
title: entry.name,
|
|
199
|
+
holders,
|
|
200
|
+
ledger: readSecretLedger(frontmatter).ledger,
|
|
201
|
+
...(reveal ? { revealChapter: reveal } : {}),
|
|
202
|
+
...(knownFrom ? { knownFromChapter: knownFrom } : {}),
|
|
203
|
+
};
|
|
204
|
+
}));
|
|
205
|
+
const canonOf = (kind) => snapshot.canon.filter((entry) => entry.kind === kind).map((entry) => ({ slug: entry.slug, name: entry.name, aliases: entry.aliases }));
|
|
206
|
+
const lastPlanned = (state.plan?.chapters ?? []).reduce((highest, chapter) => Math.max(highest, chapter.number), 0);
|
|
207
|
+
return {
|
|
208
|
+
chapters: entries.map((entry) => ({ number: entry.number, title: entry.title, ...(entry.design ? { design: entry.design } : {}) })),
|
|
209
|
+
secrets,
|
|
210
|
+
characters: canonOf("character"),
|
|
211
|
+
locations: canonOf("location"),
|
|
212
|
+
lastChapter: Math.max(outline.last, lastPlanned),
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
/** Findings told in an insight, at most: the rest are counted. */
|
|
216
|
+
const FINDINGS_IN_INSIGHT = 8;
|
|
217
|
+
/** The insight that tells the findings of the checks of a design: the warnings first. `null` when there is none. */
|
|
218
|
+
export function designFindingsInsight(findings, language) {
|
|
219
|
+
if (!findings.length)
|
|
220
|
+
return null;
|
|
221
|
+
const italian = isItalian(language);
|
|
222
|
+
const ordered = [...findings].sort((left, right) => (left.severity === right.severity ? 0 : left.severity === "warning" ? -1 : 1));
|
|
223
|
+
const warnings = findings.filter((finding) => finding.severity === "warning").length;
|
|
224
|
+
const shown = ordered.slice(0, FINDINGS_IN_INSIGHT).map((finding) => `- ${designFindingText(finding, language)}`);
|
|
225
|
+
const more = findings.length - shown.length;
|
|
226
|
+
return {
|
|
227
|
+
tone: warnings ? "warning" : "info",
|
|
228
|
+
title: italian
|
|
229
|
+
? `I controlli del progetto hanno trovato ${findings.length === 1 ? "una cosa" : `${findings.length} cose`} da guardare`
|
|
230
|
+
: `The checks of the design found ${findings.length === 1 ? "one thing" : `${findings.length} things`} to look at`,
|
|
231
|
+
detail: [...shown, ...(more > 0 ? [italian ? `- … e altre ${more}.` : `- … and ${more} more.`] : [])].join("\n"),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=design.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/autopilot/design.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAsB,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAA6C,MAAM,mBAAmB,CAAC;AAGnH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAA2G,MAAM,YAAY,CAAC;AAE5J;;;GAGG;AAEH,sFAAsF;AACtF,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C,oJA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;YACZ,CAAC,CAAC,0CAA0C,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,OAAO,cAAc;YACxH,CAAC,CAAC,kCAAkC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,SAAS,aAAa;QACpH,MAAM,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,IAAI,GAAG,CAAC,CAAC,CAAC,WAAW,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;KACjH,CAAC;AACJ,CAAC"}
|
|
@@ -15,6 +15,12 @@ export declare function estimateTexts(italian: boolean): {
|
|
|
15
15
|
};
|
|
16
16
|
/** What the assumptions say of the book, so that the words are built in one place. */
|
|
17
17
|
export interface AssumptionFacts {
|
|
18
|
+
/** A design run: the chapters of a call, its reviews at most and the reviews the readers read before. */
|
|
19
|
+
design?: {
|
|
20
|
+
batch: number;
|
|
21
|
+
rounds: number;
|
|
22
|
+
readerRounds: number;
|
|
23
|
+
};
|
|
18
24
|
chapters: number;
|
|
19
25
|
written: number;
|
|
20
26
|
toWrite: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate-texts.d.ts","sourceRoot":"","sources":["../../src/autopilot/estimate-texts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA6C1E,mHAAmH;AACnH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAEnE;AAQD,2GAA2G;AAC3G,wBAAgB,aAAa,CAAC,OAAO,EAA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AAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -79,10 +79,22 @@ export function estimateTexts(italian) {
|
|
|
79
79
|
const lines = [];
|
|
80
80
|
const factor = formatFactor(facts.tokensPerWord, italian);
|
|
81
81
|
const written = facts.written > 0;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
if (facts.design) {
|
|
83
|
+
lines.push(italian
|
|
84
|
+
? `Il progetto copre ${count(facts.chapters)} capitoli, ${count(facts.design.batch)} per chiamata, senza prosa: il concept, il progetto di ogni capitolo e il registro dei segreti. Nessuna scena è scritta e il libro non è giudicato.`
|
|
85
|
+
: `The design covers ${count(facts.chapters)} chapters, ${count(facts.design.batch)} a call, with no prose: the concept, the design of every chapter and the ledger of the secrets. No scene is written and the book is not judged.`);
|
|
86
|
+
lines.push(italian
|
|
87
|
+
? `Il caso migliore approva il progetto alla prima revisione; il peggiore usa tutte le ${count(facts.design.rounds)} revisioni, riprogettando ogni volta tutti i capitoli. ${facts.planReaders > 0 ? `${count(facts.planReaders)} lettori simulati lo leggono prima ${facts.design.readerRounds === 1 ? "della prima revisione" : `delle prime ${count(facts.design.readerRounds)} revisioni`}.` : "Nessun lettore simulato lo legge."}`
|
|
88
|
+
: `The best case approves the design at its first review; the worst case uses all its ${count(facts.design.rounds)} reviews, designing every chapter again each time. ${facts.planReaders > 0 ? `${count(facts.planReaders)} simulated readers read it before ${facts.design.readerRounds === 1 ? "the first review" : `the first ${count(facts.design.readerRounds)} reviews`}.` : "No simulated reader reads it."}`);
|
|
89
|
+
}
|
|
90
|
+
if (!facts.design)
|
|
91
|
+
lines.push(italian
|
|
92
|
+
? `Il libro ha ${count(facts.chapters)} capitoli di ${count(facts.scenes)} scene di circa ${count(facts.wordsPerScene)} parole${written ? `; ${count(facts.written)} sono già scritti e restano ${count(facts.toWrite)} da scrivere` : ""} (${count(facts.words)} parole da scrivere). Un capitolo scritto a metà conta per intero.`
|
|
93
|
+
: `The book has ${count(facts.chapters)} chapters of ${count(facts.scenes)} scenes of about ${count(facts.wordsPerScene)} words${written ? `; ${count(facts.written)} are already written and ${count(facts.toWrite)} are left` : ""} (${count(facts.words)} words to write). A chapter written halfway counts as a whole one.`);
|
|
94
|
+
if (facts.design) {
|
|
95
|
+
// Said above, for a design.
|
|
96
|
+
}
|
|
97
|
+
else if (facts.pinned) {
|
|
86
98
|
lines.push(italian
|
|
87
99
|
? `I giri di revisione (${facts.rounds}), le scene corrette per capitolo (${facts.repairs}) e le revisioni del piano (${facts.revisions}) sono quelli dati: il numero di chiamate è uno solo.`
|
|
88
100
|
: `The rounds of review (${facts.rounds}), the scenes repaired in a chapter (${facts.repairs}) and the revisions of the plan (${facts.revisions}) are the ones given: the number of calls is a single one.`);
|
|
@@ -92,9 +104,10 @@ export function estimateTexts(italian) {
|
|
|
92
104
|
? `Le chiamate sono contate dalla pipeline passo per passo. Il caso migliore approva ogni capitolo alla prima revisione e il piano al primo sguardo; il peggiore dà a ogni capitolo ${count(facts.maxRounds)} giri di revisione con ogni scena corretta e fa rivedere il piano due volte. Una corsa vera sta in mezzo.`
|
|
93
105
|
: `The calls are counted from the pipeline, step by step. The best case approves every chapter at its first review and the plan at its first look; the worst case gives every chapter ${count(facts.maxRounds)} rounds of review with every scene repaired and has the plan revised twice. A real run falls in between.`);
|
|
94
106
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
107
|
+
if (!facts.design)
|
|
108
|
+
lines.push(italian
|
|
109
|
+
? `${facts.readers > 0 ? `${count(facts.readers)} lettori simulati leggono ogni capitolo` : "Nessun lettore simulato legge i capitoli"}${facts.planReaders > 0 ? `, ${count(facts.planReaders)} leggono il piano` : ""}${facts.specialists ? "; gli specialisti rivedono ogni capitolo" : ""}. Il gruppo di lettori è di ${count(facts.panel)}.`
|
|
110
|
+
: `${facts.readers > 0 ? `${count(facts.readers)} simulated readers read every chapter` : "No simulated reader reads the chapters"}${facts.planReaders > 0 ? `, ${count(facts.planReaders)} read the plan` : ""}${facts.specialists ? "; the specialists review every chapter" : ""}. The panel of readers has ${count(facts.panel)}.`);
|
|
98
111
|
lines.push(italian
|
|
99
112
|
? `I prompt sono contati come li conta il router del motore (quattro caratteri per token); il testo del libro a ${formatFactor(facts.inputPerWord, true)} token a parola e le risposte a ${factor} token a parola (il fattore del motore per la lingua, generoso per l'inglese e l'italiano): le risposte e il costo sono un'ipotesi prudente.`
|
|
100
113
|
: `Prompts are counted the way the engine's router counts them (four characters a token); the text of the book at ${formatFactor(facts.inputPerWord, false)} tokens a word and the replies at ${factor} tokens a word (the engine's own factor for the language, generous for English and Italian): replies and cost are a prudent guess.`);
|
|
@@ -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,E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ig } from "../ai/config.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type AutopilotBrief, type AutopilotOptions, type AutopilotState } from "./types.js";
|
|
3
3
|
/** The capabilities of the router that the autopilot uses (`AI_CAPABILITIES`). */
|
|
4
4
|
export declare const ESTIMATE_CAPABILITIES: readonly ["autopilot", "director", "reader-evaluation", "reader-evaluation-summary", "review", "simple-tasks"];
|
|
5
5
|
export type EstimateCapability = (typeof ESTIMATE_CAPABILITIES)[number];
|
|
@@ -86,6 +86,17 @@ export declare const ESTIMATE_TYPICAL: Readonly<{
|
|
|
86
86
|
recapSceneWords: 25;
|
|
87
87
|
importedSummaryWords: 60;
|
|
88
88
|
finalWords: 330;
|
|
89
|
+
/**
|
|
90
|
+
* A design run (`EstimateInput.design`): the foundation of a design (the concept with the relationships, the items and the rules of the world), the design of one chapter
|
|
91
|
+
* as the model writes it and as a prompt quotes it, the ledger of a secret in a batch, how many secrets a book has, a reader's reaction and the director's review.
|
|
92
|
+
*/
|
|
93
|
+
designConceptWords: 2100;
|
|
94
|
+
designChapterReplyWords: 330;
|
|
95
|
+
designEntryWords: 260;
|
|
96
|
+
designLedgerWords: 90;
|
|
97
|
+
designSecrets: 3;
|
|
98
|
+
designReactionWords: 260;
|
|
99
|
+
designReviewWords: 520;
|
|
89
100
|
}>;
|
|
90
101
|
/** The sizes of the files of the book, in words, when the host has measured them (each defaults to `ESTIMATE_TYPICAL`). */
|
|
91
102
|
export interface EstimateContext {
|
|
@@ -126,7 +137,7 @@ export type EstimateCount = number | {
|
|
|
126
137
|
* first review, the plan at its first look) to the most (every round used, every scene repaired, the plan revised twice).
|
|
127
138
|
*/
|
|
128
139
|
export interface EstimateScenario {
|
|
129
|
-
/** Rounds of review of a chapter, from 1 to the director's `maxReviewRounds
|
|
140
|
+
/** Rounds of review of a chapter, from 1 to the director's `maxReviewRounds` (or the review policy's). */
|
|
130
141
|
rounds?: EstimateCount;
|
|
131
142
|
/** Scenes repaired in a chapter, in all its rounds. */
|
|
132
143
|
repairs?: EstimateCount;
|
|
@@ -147,6 +158,11 @@ export interface EstimateProgress {
|
|
|
147
158
|
withoutSummary?: number;
|
|
148
159
|
/** Their words, in all (not said: the length of a chapter of the brief). */
|
|
149
160
|
withoutSummaryWords?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The chapters left are written already and are only reviewed again (a review of the book): no scenes are planned or written for them, only their review, the
|
|
163
|
+
* repairs it asks for and their closing. Not said: they are written.
|
|
164
|
+
*/
|
|
165
|
+
reviewOnly?: boolean;
|
|
150
166
|
}
|
|
151
167
|
export interface EstimateOutline {
|
|
152
168
|
/** Chapters the author wrote an entry for. */
|
|
@@ -156,14 +172,29 @@ export interface EstimateOutline {
|
|
|
156
172
|
/** Their words, in all (not said: `ESTIMATE_TYPICAL.outlineEntryWords` for each). */
|
|
157
173
|
words?: number;
|
|
158
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* A design run (`StartOptions.design`): the concept, the design of every chapter in batches of `DESIGN_BATCH_CHAPTERS`, the readers and the director's reviews for the
|
|
177
|
+
* rounds of its policy. Nothing is written and nothing is judged as a book: no scene, no review of a chapter, no final judgement.
|
|
178
|
+
*/
|
|
179
|
+
export interface EstimateDesign {
|
|
180
|
+
/** The reviews of the design at most (its policy's `maxRounds`; `DESIGN_DEFAULT_ROUNDS` when it says nothing). */
|
|
181
|
+
maxRounds?: number;
|
|
182
|
+
/** In how many of the first reviews the readers read it (its policy's `readerRounds`; 1 when it says nothing). */
|
|
183
|
+
readerRounds?: number;
|
|
184
|
+
}
|
|
159
185
|
export interface EstimateInput {
|
|
160
186
|
/** The brief of the form: the words of a scene, and the idea and the synopsis, which weigh in the prompts that carry them. The chapters are `outline`'s. */
|
|
161
187
|
brief?: Partial<AutopilotBrief>;
|
|
188
|
+
/** A design run instead of a run that writes (`EstimateDesign`; `true`: with the defaults of a design). */
|
|
189
|
+
design?: EstimateDesign | boolean;
|
|
162
190
|
/** The scenes a chapter is expected to have (the planner's rule gives 2 to 4 for each chapter); the middle of the range when missing. */
|
|
163
191
|
scenesPerChapter?: number;
|
|
164
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* `readers`, `maxReaders`, `readersOnPlan`, `specialists` and the review policy (`review`: the rounds of a chapter, and the rounds the readers read in) change the
|
|
194
|
+
* calls; the others (`pauseAfterPlan`, `chaptersPerRun`, the budgets…) do not.
|
|
195
|
+
*/
|
|
165
196
|
options?: Partial<AutopilotOptions>;
|
|
166
|
-
/** `maxReviewRounds` of the director's profile (1 to 3, 2 when it says nothing). */
|
|
197
|
+
/** `maxReviewRounds` of the director's profile (1 to 3, 2 when it says nothing): the rounds of review of a chapter unless the review policy (`options.review.maxRounds`) says others. */
|
|
167
198
|
maxReviewRounds?: number;
|
|
168
199
|
/** The language of the book: its name or its code. The texts of the estimate are in Italian for an Italian book and in English for every other. */
|
|
169
200
|
language?: string;
|
|
@@ -283,7 +314,7 @@ export declare function estimateModelsFromConfig(config: AiRuntimeConfig | null
|
|
|
283
314
|
* Where a book is, read from the state of the autopilot: the chapters done, the chapters of the plan when it is approved, whether the concept and the judgement of
|
|
284
315
|
* the whole book are done, and the chapters the author wrote that have no summary yet. What `EstimateInput.progress` takes for a book that is already started.
|
|
285
316
|
*/
|
|
286
|
-
export declare function estimateProgressFromState(state: Pick<AutopilotState, "plan" | "concept" | "finalDone"> | null | undefined): Required<Omit<EstimateProgress, "withoutSummaryWords">>;
|
|
317
|
+
export declare function estimateProgressFromState(state: Pick<AutopilotState, "plan" | "concept" | "finalDone"> | null | undefined): Required<Omit<EstimateProgress, "withoutSummaryWords" | "reviewOnly">>;
|
|
287
318
|
/**
|
|
288
319
|
* Where a book is by its chapters alone, for a book the autopilot has not started (it has no state): every chapter with prose is the author's, so it is done, and the ones
|
|
289
320
|
* with no summary each cost a call before the plan. `snapshot.chapters` is what it takes. For a book with a state, `estimateProgressFromState` is the one to use.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimate.d.ts","sourceRoot":"","sources":["../../src/autopilot/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