dsh-continual-evolve 0.11.0 → 0.12.1
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 +42 -115
- package/README.zh.md +33 -93
- package/client/client.js +253 -0
- package/cordis.patch.yml +2 -2
- package/lib/card-routes.d.ts +32 -0
- package/lib/card-routes.js +92 -0
- package/lib/index.d.ts +65 -217
- package/lib/index.js +74 -234
- package/lib/known-workspaces.d.ts +22 -0
- package/lib/known-workspaces.js +42 -0
- package/lib/memory-guide.d.ts +13 -14
- package/lib/memory-guide.js +34 -21
- package/lib/memory-section.d.ts +77 -0
- package/lib/memory-section.js +189 -0
- package/lib/memory-snapshot.d.ts +54 -0
- package/lib/memory-snapshot.js +125 -0
- package/package.json +8 -17
- package/lib/apply.d.ts +0 -22
- package/lib/apply.js +0 -157
- package/lib/approval.d.ts +0 -73
- package/lib/approval.js +0 -127
- package/lib/audit-log.d.ts +0 -19
- package/lib/audit-log.js +0 -52
- package/lib/auto.d.ts +0 -236
- package/lib/auto.js +0 -773
- package/lib/autocase.d.ts +0 -38
- package/lib/autocase.js +0 -76
- package/lib/benchmark-command.d.ts +0 -9
- package/lib/benchmark-command.js +0 -357
- package/lib/benchmark.d.ts +0 -151
- package/lib/benchmark.js +0 -250
- package/lib/command-util.d.ts +0 -70
- package/lib/command-util.js +0 -123
- package/lib/command.d.ts +0 -13
- package/lib/command.js +0 -134
- package/lib/consolidate.d.ts +0 -90
- package/lib/consolidate.js +0 -180
- package/lib/copy.d.ts +0 -37
- package/lib/copy.js +0 -58
- package/lib/declines.d.ts +0 -103
- package/lib/declines.js +0 -179
- package/lib/evaluate.d.ts +0 -74
- package/lib/evaluate.js +0 -271
- package/lib/evolve-event.d.ts +0 -40
- package/lib/evolve-event.js +0 -60
- package/lib/extraction-phase.d.ts +0 -132
- package/lib/extraction-phase.js +0 -236
- package/lib/failures.d.ts +0 -42
- package/lib/failures.js +0 -171
- package/lib/fate.d.ts +0 -130
- package/lib/fate.js +0 -350
- package/lib/goal-command.d.ts +0 -7
- package/lib/goal-command.js +0 -37
- package/lib/goal.d.ts +0 -72
- package/lib/goal.js +0 -72
- package/lib/inject.d.ts +0 -90
- package/lib/inject.js +0 -164
- package/lib/injection-caps.d.ts +0 -4
- package/lib/injection-caps.js +0 -4
- package/lib/injection-directory.d.ts +0 -29
- package/lib/injection-directory.js +0 -78
- package/lib/injection-rank.d.ts +0 -85
- package/lib/injection-rank.js +0 -161
- package/lib/listener.d.ts +0 -45
- package/lib/listener.js +0 -199
- package/lib/llm-text.d.ts +0 -104
- package/lib/llm-text.js +0 -140
- package/lib/logfile.d.ts +0 -71
- package/lib/logfile.js +0 -159
- package/lib/maintenance-commands.d.ts +0 -23
- package/lib/maintenance-commands.js +0 -136
- package/lib/memory-agent.d.ts +0 -93
- package/lib/memory-agent.js +0 -300
- package/lib/memory-apply.d.ts +0 -44
- package/lib/memory-apply.js +0 -202
- package/lib/memory-benchmark.d.ts +0 -76
- package/lib/memory-benchmark.js +0 -170
- package/lib/memory-index.d.ts +0 -114
- package/lib/memory-index.js +0 -197
- package/lib/memory-manifest.d.ts +0 -16
- package/lib/memory-manifest.js +0 -70
- package/lib/message-source.d.ts +0 -23
- package/lib/message-source.js +0 -12
- package/lib/mount-command.d.ts +0 -10
- package/lib/mount-command.js +0 -48
- package/lib/mount.d.ts +0 -42
- package/lib/mount.js +0 -212
- package/lib/notify.d.ts +0 -48
- package/lib/notify.js +0 -57
- package/lib/plan-command.d.ts +0 -12
- package/lib/plan-command.js +0 -38
- package/lib/plan.d.ts +0 -16
- package/lib/plan.js +0 -126
- package/lib/planner.d.ts +0 -61
- package/lib/planner.js +0 -144
- package/lib/pool.d.ts +0 -7
- package/lib/pool.js +0 -25
- package/lib/prefix-cache.d.ts +0 -79
- package/lib/prefix-cache.js +0 -168
- package/lib/project.d.ts +0 -28
- package/lib/project.js +0 -66
- package/lib/projection.d.ts +0 -22
- package/lib/projection.js +0 -112
- package/lib/promotion.d.ts +0 -94
- package/lib/promotion.js +0 -171
- package/lib/recall.d.ts +0 -85
- package/lib/recall.js +0 -142
- package/lib/record-language.d.ts +0 -85
- package/lib/record-language.js +0 -152
- package/lib/render.d.ts +0 -13
- package/lib/render.js +0 -80
- package/lib/review-scheduler.d.ts +0 -38
- package/lib/review-scheduler.js +0 -183
- package/lib/review.d.ts +0 -60
- package/lib/review.js +0 -145
- package/lib/rollback.d.ts +0 -9
- package/lib/rollback.js +0 -68
- package/lib/rubric.d.ts +0 -29
- package/lib/rubric.js +0 -119
- package/lib/runtime-commands.d.ts +0 -14
- package/lib/runtime-commands.js +0 -115
- package/lib/runtime.d.ts +0 -24
- package/lib/runtime.js +0 -87
- package/lib/score.d.ts +0 -64
- package/lib/score.js +0 -191
- package/lib/search.d.ts +0 -83
- package/lib/search.js +0 -136
- package/lib/service.d.ts +0 -63
- package/lib/service.js +0 -253
- package/lib/skill-render.d.ts +0 -23
- package/lib/skill-render.js +0 -69
- package/lib/skill.d.ts +0 -15
- package/lib/skill.js +0 -80
- package/lib/skillquality.d.ts +0 -85
- package/lib/skillquality.js +0 -320
- package/lib/source.d.ts +0 -30
- package/lib/source.js +0 -43
- package/lib/state.d.ts +0 -26
- package/lib/state.js +0 -151
- package/lib/store.d.ts +0 -61
- package/lib/store.js +0 -164
- package/lib/token-usage.d.ts +0 -68
- package/lib/token-usage.js +0 -211
- package/lib/tool.d.ts +0 -34
- package/lib/tool.js +0 -320
- package/lib/turn-snapshot.d.ts +0 -78
- package/lib/turn-snapshot.js +0 -252
- package/lib/types.d.ts +0 -218
- package/lib/types.js +0 -133
- package/lib/usage.d.ts +0 -36
- package/lib/usage.js +0 -98
- package/lib/validate.d.ts +0 -28
- package/lib/validate.js +0 -181
- package/lib/wrapup-candidates.d.ts +0 -127
- package/lib/wrapup-candidates.js +0 -161
- package/lib/wrapup-command.d.ts +0 -10
- package/lib/wrapup-command.js +0 -243
- package/lib/wrapup-proposals.d.ts +0 -101
- package/lib/wrapup-proposals.js +0 -281
- package/lib/wrapup.d.ts +0 -56
- package/lib/wrapup.js +0 -105
package/lib/index.d.ts
CHANGED
|
@@ -1,101 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-continual-evolve — plugin entry.
|
|
3
|
+
*
|
|
4
|
+
* After the 2026-10-04 ZCode-alignment teardown the plugin is one thing: a
|
|
5
|
+
* session-start system-prompt section that injects the workspace memory
|
|
6
|
+
* index (`<cwd>/.evolve/memory/MEMORY.md`), hands out the store path, and
|
|
7
|
+
* teaches the when-to-save guide. The model reads and writes the markdown
|
|
8
|
+
* files with its native tools; there are no plugin tools, no commands, no
|
|
9
|
+
* background extraction, and no governance. See
|
|
10
|
+
* .agents/notes/implemented/architecture/2026-10-04-zcode-alignment-teardown.md.
|
|
11
|
+
*
|
|
12
|
+
* The 2026-10-04 plugin-management card adds a read-only surface: the
|
|
13
|
+
* workspace roots the section has served feed an in-memory allowlist, and a
|
|
14
|
+
* `webServer` route pair projects any known workspace's store for the card
|
|
15
|
+
* in the official plugin manager (`plugins.bundle.config`, client bundle in
|
|
16
|
+
* client/client.js). The card is a viewer — see
|
|
17
|
+
* .agents/notes/implemented/feature/2026-10-04-plugin-management-card.md.
|
|
18
|
+
*
|
|
19
|
+
* The host API surface is declared locally (the minimal shape this plugin
|
|
20
|
+
* touches) instead of importing the DSH type packages — the section call is
|
|
21
|
+
* the same one every prior release used, verified in production.
|
|
22
|
+
*/
|
|
1
23
|
import z from "@deepseek-ai/schemastery";
|
|
2
|
-
import type { Context } from "@deepseek-ai/cordis";
|
|
3
|
-
import { type EvolutionEngine } from "./service.js";
|
|
4
24
|
export declare const name = "continual-evolve";
|
|
5
|
-
/** Service key under which the evolution engine is published. */
|
|
6
|
-
export declare const EVOLUTION_SERVICE = "evolution";
|
|
7
25
|
export declare const inject: string[];
|
|
26
|
+
/** The minimal host surface this plugin touches. */
|
|
27
|
+
interface SectionContext {
|
|
28
|
+
agent?: unknown;
|
|
29
|
+
}
|
|
30
|
+
interface HostContext {
|
|
31
|
+
systemPrompt: {
|
|
32
|
+
section(section: {
|
|
33
|
+
name: string;
|
|
34
|
+
order: number;
|
|
35
|
+
text: string | ((context: SectionContext) => string);
|
|
36
|
+
}): void;
|
|
37
|
+
};
|
|
38
|
+
logger(name: string): {
|
|
39
|
+
info(message: string): void;
|
|
40
|
+
warn(message: string): void;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
8
43
|
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
9
|
-
/** Root for evolution stores; defaults to the resolved DSH home. */
|
|
10
|
-
baseDir: z<string, string, "plain">;
|
|
11
|
-
/** System-prompt section order for the evolution guidance. */
|
|
12
|
-
sectionOrder: z<number, number, "defined">;
|
|
13
|
-
/** Initial Memory Agent default when no `evolve/runtime.json` exists; not a registration gate. */
|
|
14
|
-
autoReview: z<boolean, boolean, "defined">;
|
|
15
|
-
/** ZCode-style minimum lexical words in one direct user text part. */
|
|
16
|
-
memoryMinUserWords: z<number, number, "defined">;
|
|
17
|
-
/**
|
|
18
|
-
* Session-close bounded drain for in-flight extraction, in milliseconds.
|
|
19
|
-
* Absent → 15s; 0 restores the legacy immediate abort on dispose.
|
|
20
|
-
*/
|
|
21
|
-
sessionCloseDrainMs: z<number, number, "defined">;
|
|
22
|
-
/** Trajectory slice handed to the extractor, in characters. */
|
|
23
|
-
maxReviewInputChars: z<number, number, "defined">;
|
|
24
|
-
/** Output budget for the cheap gate call. */
|
|
25
|
-
reviewBudgetTokens: z<number, number, "defined">;
|
|
26
44
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* `
|
|
31
|
-
|
|
32
|
-
plannerPrefixCache: z<"session" | "auto" | "off", "session" | "auto" | "off", "defined">;
|
|
33
|
-
/** Session-prefix budget for Route A planning inputs, in characters. */
|
|
34
|
-
plannerPrefixMaxChars: z<number, number, "defined">;
|
|
35
|
-
/** After an approved gate run with applied edits, queue a visible follow-up notice. */
|
|
36
|
-
notifyOnAutoReview: z<boolean, boolean, "defined">;
|
|
37
|
-
/** Cross-session (global) edits require an explicit human approval. */
|
|
38
|
-
requireGlobalApproval: z<boolean, boolean, "defined">;
|
|
39
|
-
/**
|
|
40
|
-
* Authoring language for evolution records (refinement summaries,
|
|
41
|
-
* rationales, entry titles/content, review and wrap-up verdicts).
|
|
42
|
-
* `auto` follows the DSH client language (durable `locale.preference`,
|
|
43
|
-
* then trajectory detection, then `en`); `zh`/`en` pin it.
|
|
44
|
-
*/
|
|
45
|
-
recordLanguage: z<"auto" | "zh" | "en", "auto" | "zh" | "en", "defined">;
|
|
46
|
-
/** Skills root for materialized skill entries; defaults to <dshHome>/skills. */
|
|
47
|
-
skillsDir: z<string, string, "plain">;
|
|
48
|
-
/** Passphrase for rubric encryption; falls back to DSH_EVOLVE_RUBRIC_KEY, then a local key file. */
|
|
49
|
-
rubricKey: z<string, string, "plain">;
|
|
50
|
-
/** Write all cordis log messages to <baseDir>/evolve/plugin.log (JSONL). */
|
|
51
|
-
logToFile: z<boolean, boolean, "defined">;
|
|
52
|
-
/** File log level: 0=error, 1=info, 2=warn, 3=debug. */
|
|
53
|
-
logLevel: z<number, number, "defined">;
|
|
54
|
-
/** Rotate the file log when it exceeds this many bytes. */
|
|
55
|
-
logMaxBytes: z<number, number, "defined">;
|
|
56
|
-
/** After a benchmark decision rejects a candidate, roll the refinement back automatically. */
|
|
57
|
-
autoRollbackOnReject: z<boolean, boolean, "defined">;
|
|
58
|
-
/**
|
|
59
|
-
* P1 auto-case capture: failed evolution attempts (benchmark-rejected
|
|
60
|
-
* candidates, gate proposals without consent) land as draft cases in the
|
|
61
|
-
* auto-regression container benchmark, seeding the regression loop.
|
|
62
|
-
*/
|
|
63
|
-
autoCase: z<boolean, boolean, "defined">;
|
|
64
|
-
/**
|
|
65
|
-
* Optional model override for the memory extractor (cheaper model).
|
|
66
|
-
* Format: "provider/model" or just "model" (same provider as the agent).
|
|
67
|
-
* When absent, the extractor uses the agent's own provider/model.
|
|
68
|
-
*/
|
|
69
|
-
reviewModel: z<string, string, "plain">;
|
|
70
|
-
/**
|
|
71
|
-
* Goal-blocked moment: after this many CONSECUTIVE idle probes that
|
|
72
|
-
* observe the session goal in phase "blocked", run one memory extraction
|
|
73
|
-
* so the stuck encounter is distilled. 0 disables.
|
|
74
|
-
*/
|
|
75
|
-
goalBlockedWrapupTurns: z<number, number, "defined">;
|
|
76
|
-
/**
|
|
77
|
-
* Promotion policy (2026-08-22): regex sources whose match in a
|
|
78
|
-
* candidate's title/content marks it project-scoped — such entries are
|
|
79
|
-
* never promoted to the cross-session global store. Replaces the built-in
|
|
80
|
-
* defaults when set.
|
|
81
|
-
*/
|
|
82
|
-
/**
|
|
83
|
-
* Promotion policy (2026-08-22): regex sources whose match in a
|
|
84
|
-
* candidate's title/content marks it project-scoped — such entries are
|
|
85
|
-
* never promoted to the cross-session global store. Replaces the built-in
|
|
86
|
-
* defaults when set.
|
|
87
|
-
*/
|
|
88
|
-
promotionBlockPatterns: z<string[], string[], "plain">;
|
|
89
|
-
/** Whole promotions below this content length stay local (chars). */
|
|
90
|
-
promotionMinChars: z<number, number, "defined">;
|
|
91
|
-
/** Entry-directory lines injected per build before folding into a counter. */
|
|
92
|
-
injectionDirectoryLines: z<number, number, "defined">;
|
|
93
|
-
/**
|
|
94
|
-
* evolve v2 memory index: the section that injects memory CONTENT (not just
|
|
95
|
-
* an id/title directory) at session start, frozen per session to keep the
|
|
96
|
-
* system prompt byte-stable (prompt cache). `enabled`/`guide`/`order`/
|
|
97
|
-
* `maxChars` default to true/true/400/6000; with `guide` off and an empty
|
|
98
|
-
* store the section renders to "" and costs no tokens.
|
|
45
|
+
* The memory section: injects the workspace memory index at session
|
|
46
|
+
* start, frozen per session to keep the system prompt byte-stable
|
|
47
|
+
* (prompt cache). `enabled`/`guide`/`order`/`maxChars` default to
|
|
48
|
+
* true/true/400/6000; with `guide` off and an empty store the section
|
|
49
|
+
* renders to "" and costs no tokens.
|
|
99
50
|
*/
|
|
100
51
|
memoryIndex: z<Schemastery.ObjectS<NoInfer<{
|
|
101
52
|
enabled: z<boolean, boolean, "plain">;
|
|
@@ -109,115 +60,23 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
109
60
|
maxChars: z<number, number, "plain">;
|
|
110
61
|
}>>, "plain">;
|
|
111
62
|
/**
|
|
112
|
-
*
|
|
113
|
-
* `
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* Absent fields fall back to the store defaults (20 / 500 / 500 / 500) —
|
|
117
|
-
* rollback needs recent snapshots, readers need a recent window.
|
|
63
|
+
* The read-only memory card in the official plugin manager
|
|
64
|
+
* (`plugins.bundle.config`). Defaults to on; hosts without the
|
|
65
|
+
* `webServer` service or the `plugins.bundle.config` slot degrade to no
|
|
66
|
+
* card, with the memory section unaffected.
|
|
118
67
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
refinements: z<number, number, "plain">;
|
|
122
|
-
reviews: z<number, number, "plain">;
|
|
123
|
-
tokenUsage: z<number, number, "plain">;
|
|
68
|
+
memoryCard: z<Schemastery.ObjectS<NoInfer<{
|
|
69
|
+
enabled: z<boolean, boolean, "plain">;
|
|
124
70
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
125
|
-
|
|
126
|
-
refinements: z<number, number, "plain">;
|
|
127
|
-
reviews: z<number, number, "plain">;
|
|
128
|
-
tokenUsage: z<number, number, "plain">;
|
|
71
|
+
enabled: z<boolean, boolean, "plain">;
|
|
129
72
|
}>>, "plain">;
|
|
130
73
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
131
|
-
/** Root for evolution stores; defaults to the resolved DSH home. */
|
|
132
|
-
baseDir: z<string, string, "plain">;
|
|
133
|
-
/** System-prompt section order for the evolution guidance. */
|
|
134
|
-
sectionOrder: z<number, number, "defined">;
|
|
135
|
-
/** Initial Memory Agent default when no `evolve/runtime.json` exists; not a registration gate. */
|
|
136
|
-
autoReview: z<boolean, boolean, "defined">;
|
|
137
|
-
/** ZCode-style minimum lexical words in one direct user text part. */
|
|
138
|
-
memoryMinUserWords: z<number, number, "defined">;
|
|
139
|
-
/**
|
|
140
|
-
* Session-close bounded drain for in-flight extraction, in milliseconds.
|
|
141
|
-
* Absent → 15s; 0 restores the legacy immediate abort on dispose.
|
|
142
|
-
*/
|
|
143
|
-
sessionCloseDrainMs: z<number, number, "defined">;
|
|
144
|
-
/** Trajectory slice handed to the extractor, in characters. */
|
|
145
|
-
maxReviewInputChars: z<number, number, "defined">;
|
|
146
|
-
/** Output budget for the cheap gate call. */
|
|
147
|
-
reviewBudgetTokens: z<number, number, "defined">;
|
|
148
|
-
/**
|
|
149
|
-
* Planner prefix-cache routing for the gate and planner inputs: `auto`
|
|
150
|
-
* prepends a session-derived message prefix when the session shows
|
|
151
|
-
* cache-read evidence (dropping the redundant flat trajectory text),
|
|
152
|
-
* `session` always prefixes, `off` keeps the legacy flat-text input.
|
|
153
|
-
*/
|
|
154
|
-
plannerPrefixCache: z<"session" | "auto" | "off", "session" | "auto" | "off", "defined">;
|
|
155
|
-
/** Session-prefix budget for Route A planning inputs, in characters. */
|
|
156
|
-
plannerPrefixMaxChars: z<number, number, "defined">;
|
|
157
|
-
/** After an approved gate run with applied edits, queue a visible follow-up notice. */
|
|
158
|
-
notifyOnAutoReview: z<boolean, boolean, "defined">;
|
|
159
|
-
/** Cross-session (global) edits require an explicit human approval. */
|
|
160
|
-
requireGlobalApproval: z<boolean, boolean, "defined">;
|
|
161
|
-
/**
|
|
162
|
-
* Authoring language for evolution records (refinement summaries,
|
|
163
|
-
* rationales, entry titles/content, review and wrap-up verdicts).
|
|
164
|
-
* `auto` follows the DSH client language (durable `locale.preference`,
|
|
165
|
-
* then trajectory detection, then `en`); `zh`/`en` pin it.
|
|
166
|
-
*/
|
|
167
|
-
recordLanguage: z<"auto" | "zh" | "en", "auto" | "zh" | "en", "defined">;
|
|
168
|
-
/** Skills root for materialized skill entries; defaults to <dshHome>/skills. */
|
|
169
|
-
skillsDir: z<string, string, "plain">;
|
|
170
|
-
/** Passphrase for rubric encryption; falls back to DSH_EVOLVE_RUBRIC_KEY, then a local key file. */
|
|
171
|
-
rubricKey: z<string, string, "plain">;
|
|
172
|
-
/** Write all cordis log messages to <baseDir>/evolve/plugin.log (JSONL). */
|
|
173
|
-
logToFile: z<boolean, boolean, "defined">;
|
|
174
|
-
/** File log level: 0=error, 1=info, 2=warn, 3=debug. */
|
|
175
|
-
logLevel: z<number, number, "defined">;
|
|
176
|
-
/** Rotate the file log when it exceeds this many bytes. */
|
|
177
|
-
logMaxBytes: z<number, number, "defined">;
|
|
178
|
-
/** After a benchmark decision rejects a candidate, roll the refinement back automatically. */
|
|
179
|
-
autoRollbackOnReject: z<boolean, boolean, "defined">;
|
|
180
|
-
/**
|
|
181
|
-
* P1 auto-case capture: failed evolution attempts (benchmark-rejected
|
|
182
|
-
* candidates, gate proposals without consent) land as draft cases in the
|
|
183
|
-
* auto-regression container benchmark, seeding the regression loop.
|
|
184
|
-
*/
|
|
185
|
-
autoCase: z<boolean, boolean, "defined">;
|
|
186
|
-
/**
|
|
187
|
-
* Optional model override for the memory extractor (cheaper model).
|
|
188
|
-
* Format: "provider/model" or just "model" (same provider as the agent).
|
|
189
|
-
* When absent, the extractor uses the agent's own provider/model.
|
|
190
|
-
*/
|
|
191
|
-
reviewModel: z<string, string, "plain">;
|
|
192
|
-
/**
|
|
193
|
-
* Goal-blocked moment: after this many CONSECUTIVE idle probes that
|
|
194
|
-
* observe the session goal in phase "blocked", run one memory extraction
|
|
195
|
-
* so the stuck encounter is distilled. 0 disables.
|
|
196
|
-
*/
|
|
197
|
-
goalBlockedWrapupTurns: z<number, number, "defined">;
|
|
198
|
-
/**
|
|
199
|
-
* Promotion policy (2026-08-22): regex sources whose match in a
|
|
200
|
-
* candidate's title/content marks it project-scoped — such entries are
|
|
201
|
-
* never promoted to the cross-session global store. Replaces the built-in
|
|
202
|
-
* defaults when set.
|
|
203
|
-
*/
|
|
204
74
|
/**
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
|
|
210
|
-
promotionBlockPatterns: z<string[], string[], "plain">;
|
|
211
|
-
/** Whole promotions below this content length stay local (chars). */
|
|
212
|
-
promotionMinChars: z<number, number, "defined">;
|
|
213
|
-
/** Entry-directory lines injected per build before folding into a counter. */
|
|
214
|
-
injectionDirectoryLines: z<number, number, "defined">;
|
|
215
|
-
/**
|
|
216
|
-
* evolve v2 memory index: the section that injects memory CONTENT (not just
|
|
217
|
-
* an id/title directory) at session start, frozen per session to keep the
|
|
218
|
-
* system prompt byte-stable (prompt cache). `enabled`/`guide`/`order`/
|
|
219
|
-
* `maxChars` default to true/true/400/6000; with `guide` off and an empty
|
|
220
|
-
* store the section renders to "" and costs no tokens.
|
|
75
|
+
* The memory section: injects the workspace memory index at session
|
|
76
|
+
* start, frozen per session to keep the system prompt byte-stable
|
|
77
|
+
* (prompt cache). `enabled`/`guide`/`order`/`maxChars` default to
|
|
78
|
+
* true/true/400/6000; with `guide` off and an empty store the section
|
|
79
|
+
* renders to "" and costs no tokens.
|
|
221
80
|
*/
|
|
222
81
|
memoryIndex: z<Schemastery.ObjectS<NoInfer<{
|
|
223
82
|
enabled: z<boolean, boolean, "plain">;
|
|
@@ -231,23 +90,15 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
231
90
|
maxChars: z<number, number, "plain">;
|
|
232
91
|
}>>, "plain">;
|
|
233
92
|
/**
|
|
234
|
-
*
|
|
235
|
-
* `
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* Absent fields fall back to the store defaults (20 / 500 / 500 / 500) —
|
|
239
|
-
* rollback needs recent snapshots, readers need a recent window.
|
|
93
|
+
* The read-only memory card in the official plugin manager
|
|
94
|
+
* (`plugins.bundle.config`). Defaults to on; hosts without the
|
|
95
|
+
* `webServer` service or the `plugins.bundle.config` slot degrade to no
|
|
96
|
+
* card, with the memory section unaffected.
|
|
240
97
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
refinements: z<number, number, "plain">;
|
|
244
|
-
reviews: z<number, number, "plain">;
|
|
245
|
-
tokenUsage: z<number, number, "plain">;
|
|
98
|
+
memoryCard: z<Schemastery.ObjectS<NoInfer<{
|
|
99
|
+
enabled: z<boolean, boolean, "plain">;
|
|
246
100
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
247
|
-
|
|
248
|
-
refinements: z<number, number, "plain">;
|
|
249
|
-
reviews: z<number, number, "plain">;
|
|
250
|
-
tokenUsage: z<number, number, "plain">;
|
|
101
|
+
enabled: z<boolean, boolean, "plain">;
|
|
251
102
|
}>>, "plain">;
|
|
252
103
|
}>>, "plain">;
|
|
253
104
|
/**
|
|
@@ -255,9 +106,6 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
|
255
106
|
* Derived from the schemastery schema — single source of truth, no manual sync.
|
|
256
107
|
*/
|
|
257
108
|
export type EvolveConfig = Partial<Schemastery.TypeT<typeof Config>>;
|
|
258
|
-
export
|
|
259
|
-
|
|
260
|
-
readonly baseDir: string;
|
|
261
|
-
}
|
|
262
|
-
export declare function apply(ctx: Context, config: EvolveConfig): void;
|
|
109
|
+
export declare function apply(host: HostContext, config: EvolveConfig): void;
|
|
110
|
+
export {};
|
|
263
111
|
//# sourceMappingURL=index.d.ts.map
|