@kienmatu/inkos-core 0.1.3 → 3.3.0
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/dist/agent/agent-session.js +2 -2
- package/dist/agent/agent-session.js.map +1 -1
- package/dist/agent/agent-system-prompt.d.ts.map +1 -1
- package/dist/agent/agent-system-prompt.js +3 -2
- package/dist/agent/agent-system-prompt.js.map +1 -1
- package/dist/agent/agent-tools.d.ts +1 -0
- package/dist/agent/agent-tools.d.ts.map +1 -1
- package/dist/agent/agent-tools.js +16 -8
- package/dist/agent/agent-tools.js.map +1 -1
- package/dist/agent/pi-stream.d.ts.map +1 -1
- package/dist/agent/pi-stream.js +74 -3
- package/dist/agent/pi-stream.js.map +1 -1
- package/dist/agents/architect.js +7 -7
- package/dist/agents/continuity.d.ts.map +1 -1
- package/dist/agents/continuity.js +2 -1
- package/dist/agents/continuity.js.map +1 -1
- package/dist/agents/fanfic-prompt-sections.d.ts +3 -3
- package/dist/agents/fanfic-prompt-sections.d.ts.map +1 -1
- package/dist/agents/fanfic-prompt-sections.js +83 -3
- package/dist/agents/fanfic-prompt-sections.js.map +1 -1
- package/dist/agents/observer-prompts.js +1 -1
- package/dist/agents/observer-prompts.js.map +1 -1
- package/dist/agents/planner-prompts.d.ts +1 -1
- package/dist/agents/planner-prompts.d.ts.map +1 -1
- package/dist/agents/planner-prompts.js +15 -14
- package/dist/agents/planner-prompts.js.map +1 -1
- package/dist/agents/planner.d.ts.map +1 -1
- package/dist/agents/planner.js +2 -2
- package/dist/agents/planner.js.map +1 -1
- package/dist/agents/post-write-validator.d.ts +2 -0
- package/dist/agents/post-write-validator.d.ts.map +1 -1
- package/dist/agents/post-write-validator.js +6 -2
- package/dist/agents/post-write-validator.js.map +1 -1
- package/dist/agents/settler-prompts.d.ts +1 -0
- package/dist/agents/settler-prompts.d.ts.map +1 -1
- package/dist/agents/settler-prompts.js +200 -13
- package/dist/agents/settler-prompts.js.map +1 -1
- package/dist/agents/short-fiction.d.ts +12 -9
- package/dist/agents/short-fiction.d.ts.map +1 -1
- package/dist/agents/short-fiction.js +269 -49
- package/dist/agents/short-fiction.js.map +1 -1
- package/dist/agents/writer-prompts.d.ts +6 -0
- package/dist/agents/writer-prompts.d.ts.map +1 -1
- package/dist/agents/writer-prompts.js +97 -36
- package/dist/agents/writer-prompts.js.map +1 -1
- package/dist/agents/writer.d.ts.map +1 -1
- package/dist/agents/writer.js +6 -1
- package/dist/agents/writer.js.map +1 -1
- package/dist/interaction/action-envelope.d.ts +10 -10
- package/dist/interaction/action-envelope.d.ts.map +1 -1
- package/dist/interaction/action-envelope.js +13 -6
- package/dist/interaction/action-envelope.js.map +1 -1
- package/dist/interaction/project-tools.d.ts +3 -1
- package/dist/interaction/project-tools.d.ts.map +1 -1
- package/dist/interaction/project-tools.js +27 -8
- package/dist/interaction/project-tools.js.map +1 -1
- package/dist/llm/provider.d.ts +6 -0
- package/dist/llm/provider.d.ts.map +1 -1
- package/dist/llm/provider.js +28 -2
- package/dist/llm/provider.js.map +1 -1
- package/dist/models/short-fiction-format.d.ts +10 -0
- package/dist/models/short-fiction-format.d.ts.map +1 -0
- package/dist/models/short-fiction-format.js +41 -0
- package/dist/models/short-fiction-format.js.map +1 -0
- package/dist/pipeline/chapter-review-cycle.d.ts +3 -8
- package/dist/pipeline/chapter-review-cycle.d.ts.map +1 -1
- package/dist/pipeline/chapter-review-cycle.js +3 -1
- package/dist/pipeline/chapter-review-cycle.js.map +1 -1
- package/dist/pipeline/chapter-state-recovery.d.ts +2 -4
- package/dist/pipeline/chapter-state-recovery.d.ts.map +1 -1
- package/dist/pipeline/chapter-state-recovery.js.map +1 -1
- package/dist/pipeline/chapter-truth-validation.d.ts +2 -4
- package/dist/pipeline/chapter-truth-validation.d.ts.map +1 -1
- package/dist/pipeline/chapter-truth-validation.js.map +1 -1
- package/dist/pipeline/runner.d.ts +14 -0
- package/dist/pipeline/runner.d.ts.map +1 -1
- package/dist/pipeline/runner.js +55 -38
- package/dist/pipeline/runner.js.map +1 -1
- package/dist/pipeline/short-fiction-runner.d.ts.map +1 -1
- package/dist/pipeline/short-fiction-runner.js +19 -6
- package/dist/pipeline/short-fiction-runner.js.map +1 -1
- package/dist/prompts/short-fiction.d.ts +3 -0
- package/dist/prompts/short-fiction.d.ts.map +1 -1
- package/dist/prompts/short-fiction.js +155 -85
- package/dist/prompts/short-fiction.js.map +1 -1
- package/dist/utils/chapter-memo-parser.d.ts +10 -0
- package/dist/utils/chapter-memo-parser.d.ts.map +1 -1
- package/dist/utils/chapter-memo-parser.js +59 -10
- package/dist/utils/chapter-memo-parser.js.map +1 -1
- package/dist/utils/golden-opening.d.ts +12 -0
- package/dist/utils/golden-opening.d.ts.map +1 -0
- package/dist/utils/golden-opening.js +18 -0
- package/dist/utils/golden-opening.js.map +1 -0
- package/dist/utils/log-message.d.ts +13 -0
- package/dist/utils/log-message.d.ts.map +1 -0
- package/dist/utils/log-message.js +2 -0
- package/dist/utils/log-message.js.map +1 -0
- package/package.json +1 -1
- package/skills/inkos-short-writing/SKILL.md +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The opening window is the stretch of chapters that carry retention discipline
|
|
3
|
+
* — the guidance is written as one slot per chapter, so the window and the slot
|
|
4
|
+
* table must stay the same size. Keeping the number here is what stops the
|
|
5
|
+
* planner's flag and the two prompt builders from drifting apart, which they
|
|
6
|
+
* previously did: the planner flagged five chapters for English books while both
|
|
7
|
+
* builders returned nothing past chapter three, so English chapters 4-5 were
|
|
8
|
+
* marked retention-critical and then handed no guidance.
|
|
9
|
+
*/
|
|
10
|
+
export declare const GOLDEN_OPENING_CHAPTERS = 3;
|
|
11
|
+
export declare function isGoldenOpeningChapter(language: string | undefined, chapterNumber: number): boolean;
|
|
12
|
+
//# sourceMappingURL=golden-opening.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"golden-opening.d.ts","sourceRoot":"","sources":["../../src/utils/golden-opening.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,aAAa,EAAE,MAAM,GACpB,OAAO,CAMT"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The opening window is the stretch of chapters that carry retention discipline
|
|
3
|
+
* — the guidance is written as one slot per chapter, so the window and the slot
|
|
4
|
+
* table must stay the same size. Keeping the number here is what stops the
|
|
5
|
+
* planner's flag and the two prompt builders from drifting apart, which they
|
|
6
|
+
* previously did: the planner flagged five chapters for English books while both
|
|
7
|
+
* builders returned nothing past chapter three, so English chapters 4-5 were
|
|
8
|
+
* marked retention-critical and then handed no guidance.
|
|
9
|
+
*/
|
|
10
|
+
export const GOLDEN_OPENING_CHAPTERS = 3;
|
|
11
|
+
export function isGoldenOpeningChapter(language, chapterNumber) {
|
|
12
|
+
// language is accepted (and ignored) so callers do not have to know that the
|
|
13
|
+
// window is currently language-independent; widening it for one language later
|
|
14
|
+
// is a change to this function only.
|
|
15
|
+
void language;
|
|
16
|
+
return chapterNumber >= 1 && chapterNumber <= GOLDEN_OPENING_CHAPTERS;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=golden-opening.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"golden-opening.js","sourceRoot":"","sources":["../../src/utils/golden-opening.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC,MAAM,UAAU,sBAAsB,CACpC,QAA4B,EAC5B,aAAqB;IAErB,6EAA6E;IAC7E,+EAA+E;IAC/E,qCAAqC;IACrC,KAAK,QAAQ,CAAC;IACd,OAAO,aAAa,IAAI,CAAC,IAAI,aAAa,IAAI,uBAAuB,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progress/stage lines are addressed to whoever is watching the run, so they
|
|
3
|
+
* are keyed by the reader's language rather than the book's writing language
|
|
4
|
+
* (which only ever resolves to zh/en). `vi` is optional: a message that has no
|
|
5
|
+
* Vietnamese translation yet falls back to English at the call site.
|
|
6
|
+
*/
|
|
7
|
+
export type LogLanguage = "zh" | "en" | "vi";
|
|
8
|
+
export interface LogMessage {
|
|
9
|
+
readonly zh: string;
|
|
10
|
+
readonly en: string;
|
|
11
|
+
readonly vi?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=log-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-message.d.ts","sourceRoot":"","sources":["../../src/utils/log-message.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-message.js","sourceRoot":"","sources":["../../src/utils/log-message.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: inkos-short-writing
|
|
3
|
-
description:
|
|
3
|
+
description: 8–18 章(默认 10)商业短篇的构思、一次写完、整篇审改与包装。Use for confirmed standalone short-fiction production.
|
|
4
4
|
---
|
|
5
5
|
# Short-fiction writing
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Use this skill when the user wants a complete standalone commercial short story,
|
|
|
8
8
|
|
|
9
9
|
- Preserve the user's premise, emotional target, taboo, viewpoint, and ending preference. Ask only for a missing choice that would materially change the story.
|
|
10
10
|
- In chat or short mode, use the normal proposal and confirmation flow before `short_fiction_run` or cover generation.
|
|
11
|
-
- Build one main line and at most one supporting reversal line. Prefer
|
|
11
|
+
- Build one main line and at most one supporting reversal line. Prefer 8–18 focused chapters (10 by default) and complete scenes over a synopsis montage.
|
|
12
12
|
- Express personality and values through action. Every scene must move conflict, causality, evidence, emotion, payoff, or relationship.
|
|
13
13
|
- Set up reversals and rewards through visible evidence; do not use sudden stupidity or unexplained luck.
|
|
14
14
|
- Treat title, chapter titles, opening, full manuscript, synopsis, selling points, and cover direction as one coherent product.
|