@lmzhen/dsh-evolution-core 0.1.0-rc.13 → 0.1.0-rc.15
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/lib/index.js +89 -11
- package/lib/types/constants.d.ts +4 -0
- package/lib/types/curator.d.ts +18 -0
- package/lib/types/prompts.d.ts +3 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -215,6 +215,10 @@ const MAX_SKILL_CONTENT_CHARS = 1e5;
|
|
|
215
215
|
const MAX_SKILL_FILE_BYTES = 1048576;
|
|
216
216
|
const DEFAULT_REVIEW_MEMORY_INTERVAL = 10;
|
|
217
217
|
const DEFAULT_REVIEW_SKILL_INTERVAL = 10;
|
|
218
|
+
/** Skill-review completion channel trigger mode: 'cadence' | 'completion' | 'both'. */
|
|
219
|
+
const DEFAULT_SKILL_REVIEW_TRIGGER = "both";
|
|
220
|
+
/** Cumulative session tool calls before a session counts as "proven long" for the completion channel. */
|
|
221
|
+
const DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS = 20;
|
|
218
222
|
const DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS = 3;
|
|
219
223
|
const DEFAULT_SUBSTANTIVE_MIN_USER_CHARS = 200;
|
|
220
224
|
const DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS = 500;
|
|
@@ -245,6 +249,47 @@ function buildCuratorRunReport(input) {
|
|
|
245
249
|
...input.snapshotPath === void 0 ? {} : { snapshotPath: input.snapshotPath }
|
|
246
250
|
};
|
|
247
251
|
}
|
|
252
|
+
const NOMINATION_NAME_RE = /^[a-z0-9][a-z0-9-]*$/;
|
|
253
|
+
/**
|
|
254
|
+
* Parse the curator LLM's YAML nomination block (consolidations + prunings).
|
|
255
|
+
* Line-oriented and lenient by design: the LLM output is advisory, every name
|
|
256
|
+
* is re-validated against the tree before any file move happens downstream.
|
|
257
|
+
*/
|
|
258
|
+
function parseCuratorNominations(text) {
|
|
259
|
+
const prunings = [];
|
|
260
|
+
const consolidations = [];
|
|
261
|
+
let section = null;
|
|
262
|
+
let currentFrom = "";
|
|
263
|
+
for (const line of text.split("\n")) {
|
|
264
|
+
const consolidated = /^\s*-\s*from:\s*([a-z0-9][a-z0-9-]*)\s*$/.exec(line);
|
|
265
|
+
if (consolidated) {
|
|
266
|
+
section = "consolidations";
|
|
267
|
+
currentFrom = consolidated[1] ?? "";
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
const into = /^\s*into:\s*([a-z0-9][a-z0-9-]*)\s*$/.exec(line);
|
|
271
|
+
if (into) {
|
|
272
|
+
const intoName = into[1] ?? "";
|
|
273
|
+
if (section === "consolidations" && currentFrom !== "" && currentFrom !== intoName) consolidations.push({
|
|
274
|
+
from: currentFrom,
|
|
275
|
+
into: intoName
|
|
276
|
+
});
|
|
277
|
+
currentFrom = "";
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
const pruned = /^\s*-\s*name:\s*([a-z0-9][a-z0-9-]*)\s*$/.exec(line);
|
|
281
|
+
if (pruned) {
|
|
282
|
+
section = "prunings";
|
|
283
|
+
const name = pruned[1];
|
|
284
|
+
if (name) prunings.push(name);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
const valid = (name) => NOMINATION_NAME_RE.test(name);
|
|
288
|
+
return {
|
|
289
|
+
prunings: prunings.filter(valid),
|
|
290
|
+
consolidations: consolidations.filter((item) => valid(item.from) && valid(item.into))
|
|
291
|
+
};
|
|
292
|
+
}
|
|
248
293
|
function daysSince(iso, created, now) {
|
|
249
294
|
return (now - new Date(iso ?? created).getTime()) / 864e5;
|
|
250
295
|
}
|
|
@@ -259,6 +304,7 @@ function computeLifecycleTransitions(usage, config, now = /* @__PURE__ */ new Da
|
|
|
259
304
|
if (record.pinned) continue;
|
|
260
305
|
if (config.excludeSkillNames?.has(name)) continue;
|
|
261
306
|
if (config.suppressedNames?.has(name)) continue;
|
|
307
|
+
if (config.referencedSkillNames?.has(name)) continue;
|
|
262
308
|
const bundled = config.bundledNames?.has(name) === true;
|
|
263
309
|
if (!(record.created_by === "agent" || config.manageUnmanaged === true) && !(config.pruneBuiltins === true && bundled)) continue;
|
|
264
310
|
if (PROTECTED_BUILTIN_SKILLS.has(name)) continue;
|
|
@@ -938,23 +984,54 @@ Review the conversation above and update two things.
|
|
|
938
984
|
**Skills**: how to do this class of task. Be ACTIVE. Follow the same class-level umbrella policy, preference order, protected-skill rules, and do-not-capture list as a skill review.
|
|
939
985
|
|
|
940
986
|
Act on whichever dimension has real signal. If genuinely nothing stands out on either, say "Nothing to save." and stop — but don't reach for that conclusion as a default.`;
|
|
941
|
-
const CURATOR_PROMPT = `You are the skill curator. Maintain a healthy, class-level skill library.
|
|
987
|
+
const CURATOR_PROMPT = `You are the skill curator. Maintain a healthy, class-level skill library, not a flat pile of narrow one-session skills.
|
|
942
988
|
|
|
943
|
-
|
|
944
|
-
1. NEVER hard-delete a skill. Archive is the maximum destructive action.
|
|
945
|
-
2. Do not touch bundled, hub-installed, or pinned skills.
|
|
946
|
-
3. Do not archive recently-created or never-used skills without strong evidence.
|
|
947
|
-
4. Prefer merging narrow skills into class-level umbrellas.
|
|
948
|
-
5. Before archiving a merged skill, ensure its unique content was preserved.
|
|
989
|
+
The goal is a LIBRARY OF CLASS-LEVEL INSTRUCTIONS. A skill collection of many narrow skills where each captures one session's specific bug is a FAILURE of the library. An agent searching skills matches on descriptions, not exact names; one broad umbrella with labeled subsections beats five narrow siblings for discoverability.
|
|
949
990
|
|
|
950
|
-
|
|
991
|
+
Right target shape: class-level skills with rich SKILL.md + references/, templates/, scripts/ support files for session-specific detail.
|
|
992
|
+
|
|
993
|
+
Hard rules:
|
|
994
|
+
1. NEVER hard-delete a skill. Archive (moving to .archive/) is the maximum destructive action; archives are recoverable, deletion is not.
|
|
995
|
+
2. Do not touch bundled, hub-installed, pinned, or scheduled-task-referenced (\`referenced\`) skills. Referenced skills MAY be consolidated into an umbrella, but never simply pruned.
|
|
996
|
+
3. Do not archive recently-created or never-used skills without strong evidence. "use=0" is NOT evidence either way — it only means the trigger has not come up yet.
|
|
997
|
+
4. Do NOT reject consolidation on the grounds that "each skill has a distinct trigger". The right bar is: would a human maintainer write this as N separate skills, or one skill with N labeled subsections? When the answer is the latter, merge.
|
|
998
|
+
5. Judge overlap on CONTENT, not on usage counters.
|
|
999
|
+
6. Before archiving a merged skill, ensure its unique content was preserved in the umbrella.
|
|
1000
|
+
|
|
1001
|
+
How to work:
|
|
1002
|
+
1. Scan the candidate list. Identify PREFIX CLUSTERS — skills sharing a first word or domain keyword (expect 10-25 clusters).
|
|
1003
|
+
2. For each cluster with 2+ members, ask "what is the UMBRELLA CLASS these skills serve?" and consolidate:
|
|
1004
|
+
a. MERGE INTO AN EXISTING UMBRELLA (patch a labeled section for each sibling's unique insight, then archive the siblings).
|
|
1005
|
+
b. CREATE A NEW UMBRELLA SKILL.md covering the shared workflow with short labeled subsections, then archive the absorbed siblings.
|
|
1006
|
+
c. DEMOTE session-specific detail to references/, templates/, or scripts/ under the umbrella.
|
|
1007
|
+
3. Keep the umbrella body tight and scannable: exact commands, verbatim paths, ~100-200 lines; never invent flags or APIs.
|
|
1008
|
+
|
|
1009
|
+
Produce a YAML summary with exactly this shape:
|
|
951
1010
|
consolidations:
|
|
952
1011
|
- from: <old-skill-name>
|
|
953
1012
|
into: <umbrella-skill-name>
|
|
954
1013
|
reason: <one short sentence>
|
|
955
1014
|
prunings:
|
|
956
1015
|
- name: <skill-name>
|
|
957
|
-
reason: <one short sentence
|
|
1016
|
+
reason: <one short sentence>
|
|
1017
|
+
Nominate a pruning only when archival is clearly safe (stale AND genuinely obsolete or fully absorbed elsewhere).`;
|
|
1018
|
+
const CURATOR_DRY_RUN_BANNER = `═══════════════════════════════════════════════════════════════
|
|
1019
|
+
DRY-RUN — REPORT ONLY. DO NOT MUTATE THE SKILL LIBRARY.
|
|
1020
|
+
═══════════════════════════════════════════════════════════════
|
|
1021
|
+
|
|
1022
|
+
This is a PREVIEW pass. Follow every instruction above EXCEPT:
|
|
1023
|
+
• Do NOT call skill_manage with action=create, update, patch, delete, write_file, or remove_file.
|
|
1024
|
+
• Do NOT move, copy, or rewrite any file under the skills tree.
|
|
1025
|
+
|
|
1026
|
+
Your output IS the deliverable: produce the exact same human-readable summary and YAML block you would on a live run, describing the actions you WOULD take. A reviewer will decide whether to approve a live run.
|
|
1027
|
+
|
|
1028
|
+
If you accidentally take a mutating action, say so explicitly in the summary.`;
|
|
1029
|
+
const COMPLETION_SKILL_REVIEW_PROMPT = `[Auto-review — Skills · task complete]
|
|
1030
|
+
Your current task now appears complete. Before wrapping up, review the approach and update the skill library via skill_manage.
|
|
1031
|
+
|
|
1032
|
+
Follow the skills review policy: be ACTIVE, prefer class-level umbrellas, patch skills loaded this session, and capture non-trivial techniques and user corrections. Do NOT capture environment-dependent failures, negative claims about tools, or one-off task narratives.
|
|
1033
|
+
|
|
1034
|
+
Do NOT modify output files or re-run the task. If you are still mid-task, ignore this.`;
|
|
958
1035
|
function reviewPrompt(kind) {
|
|
959
1036
|
if (kind === "memory") return MEMORY_REVIEW_PROMPT;
|
|
960
1037
|
if (kind === "skill") return SKILL_REVIEW_PROMPT;
|
|
@@ -980,7 +1057,8 @@ const PROMPT_BUNDLE = createPromptBundle({
|
|
|
980
1057
|
memory: MEMORY_REVIEW_PROMPT,
|
|
981
1058
|
skill: SKILL_REVIEW_PROMPT,
|
|
982
1059
|
combined: COMBINED_REVIEW_PROMPT,
|
|
983
|
-
curator: CURATOR_PROMPT
|
|
1060
|
+
curator: CURATOR_PROMPT,
|
|
1061
|
+
completion: COMPLETION_SKILL_REVIEW_PROMPT
|
|
984
1062
|
});
|
|
985
1063
|
function verifyPromptBundle(bundle = PROMPT_BUNDLE) {
|
|
986
1064
|
const canonical = JSON.stringify({
|
|
@@ -1691,4 +1769,4 @@ var JsonState = class JsonState {
|
|
|
1691
1769
|
}
|
|
1692
1770
|
};
|
|
1693
1771
|
//#endregion
|
|
1694
|
-
export { COMBINED_REVIEW_PROMPT, CURATOR_PROMPT, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_MAX_OPS_PER_PLAN, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MIN_IDLE_HOURS, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_STALE_AFTER_DAYS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_USER_CHAR_LIMIT, DSH_AUTHORING_STANDARDS, ENTRY_DELIMITER, JsonState, MAX_DESCRIPTION_LENGTH, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, MEMORY_REVIEW_PROMPT, MemoryStore, PROMPT_BUNDLE, PROMPT_BUNDLE_ID, PROTECTED_BUILTIN_SKILLS, SKILL_NAME_RE, SKILL_REVIEW_PROMPT, SUPPORT_DIRS, SkillLibrary, advanceReview, buildCuratorRunReport, bumpPatch, bumpUse, bumpView, computeLifecycleTransitions, emptyRecord, evaluateThreat, evolutionHome, evolutionIoAdapter, foldTurn, getRecord, latestActivityAt, loadSuppressedNames, loadUsage, markAgentCreated, memoryRoot, nodeEvolutionIo, observeEvent, parseFrontmatter, reviewPrompt, saveSuppressedNames, saveUsage, scanContentThreats, scanMemoryThreats, scanThreats, skillsRoot, suppressedFile, usageFile, validateFrontmatter, verifyPromptBundle };
|
|
1772
|
+
export { COMBINED_REVIEW_PROMPT, COMPLETION_SKILL_REVIEW_PROMPT, CURATOR_DRY_RUN_BANNER, CURATOR_PROMPT, DEFAULT_ARCHIVE_AFTER_DAYS, DEFAULT_CURATOR_INTERVAL_HOURS, DEFAULT_MAX_OPS_PER_PLAN, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MIN_IDLE_HOURS, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_STALE_AFTER_DAYS, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_USER_CHAR_LIMIT, DSH_AUTHORING_STANDARDS, ENTRY_DELIMITER, JsonState, MAX_DESCRIPTION_LENGTH, MAX_SKILL_CONTENT_CHARS, MAX_SKILL_FILE_BYTES, MAX_SKILL_NAME_LENGTH, MEMORY_REVIEW_PROMPT, MemoryStore, PROMPT_BUNDLE, PROMPT_BUNDLE_ID, PROTECTED_BUILTIN_SKILLS, SKILL_NAME_RE, SKILL_REVIEW_PROMPT, SUPPORT_DIRS, SkillLibrary, advanceReview, buildCuratorRunReport, bumpPatch, bumpUse, bumpView, computeLifecycleTransitions, emptyRecord, evaluateThreat, evolutionHome, evolutionIoAdapter, foldTurn, getRecord, latestActivityAt, loadSuppressedNames, loadUsage, markAgentCreated, memoryRoot, nodeEvolutionIo, observeEvent, parseCuratorNominations, parseFrontmatter, reviewPrompt, saveSuppressedNames, saveUsage, scanContentThreats, scanMemoryThreats, scanThreats, skillsRoot, suppressedFile, usageFile, validateFrontmatter, verifyPromptBundle };
|
package/lib/types/constants.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export declare const MAX_SKILL_CONTENT_CHARS = 100000;
|
|
|
33
33
|
export declare const MAX_SKILL_FILE_BYTES = 1048576;
|
|
34
34
|
export declare const DEFAULT_REVIEW_MEMORY_INTERVAL = 10;
|
|
35
35
|
export declare const DEFAULT_REVIEW_SKILL_INTERVAL = 10;
|
|
36
|
+
/** Skill-review completion channel trigger mode: 'cadence' | 'completion' | 'both'. */
|
|
37
|
+
export declare const DEFAULT_SKILL_REVIEW_TRIGGER: "both";
|
|
38
|
+
/** Cumulative session tool calls before a session counts as "proven long" for the completion channel. */
|
|
39
|
+
export declare const DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS = 20;
|
|
36
40
|
export declare const DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS = 3;
|
|
37
41
|
export declare const DEFAULT_SUBSTANTIVE_MIN_USER_CHARS = 200;
|
|
38
42
|
export declare const DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS = 500;
|
package/lib/types/curator.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface CuratorConfig {
|
|
|
19
19
|
bundledNames?: ReadonlySet<string>;
|
|
20
20
|
/** Skill names the curator archived once and must not fight across re-seeds. */
|
|
21
21
|
suppressedNames?: ReadonlySet<string>;
|
|
22
|
+
/** Skills referenced by scheduled/automated jobs: never auto-transitioned (idle clocks mislead for rarely-firing tasks). */
|
|
23
|
+
referencedSkillNames?: ReadonlySet<string>;
|
|
22
24
|
}
|
|
23
25
|
export interface CuratorTransition {
|
|
24
26
|
name: string;
|
|
@@ -64,5 +66,21 @@ export interface CuratorReportInput {
|
|
|
64
66
|
snapshotPath?: string;
|
|
65
67
|
}
|
|
66
68
|
export declare function buildCuratorRunReport(input: CuratorReportInput): CuratorRunReport;
|
|
69
|
+
/** One LLM-nominated consolidation: `from` merges into the umbrella `into`. */
|
|
70
|
+
export interface CuratorConsolidation {
|
|
71
|
+
from: string;
|
|
72
|
+
into: string;
|
|
73
|
+
}
|
|
74
|
+
/** Structured result of the optional curator LLM nomination pass. */
|
|
75
|
+
export interface CuratorNominations {
|
|
76
|
+
prunings: string[];
|
|
77
|
+
consolidations: CuratorConsolidation[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Parse the curator LLM's YAML nomination block (consolidations + prunings).
|
|
81
|
+
* Line-oriented and lenient by design: the LLM output is advisory, every name
|
|
82
|
+
* is re-validated against the tree before any file move happens downstream.
|
|
83
|
+
*/
|
|
84
|
+
export declare function parseCuratorNominations(text: string): CuratorNominations;
|
|
67
85
|
export declare function computeLifecycleTransitions(usage: UsageMap, config: CuratorConfig, now?: Date): CuratorResult;
|
|
68
86
|
//# sourceMappingURL=curator.d.ts.map
|
package/lib/types/prompts.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ export declare const PROMPT_BUNDLE_ID = "dsh-evolution@1";
|
|
|
2
2
|
export declare const MEMORY_REVIEW_PROMPT = "[Auto-review \u2014 Memory]\nReview the conversation above and consider saving to memory if appropriate.\n\nFocus on:\n1. Has the user revealed things about themselves \u2014 persona, desires, preferences, or personal details worth remembering?\n2. Has the user expressed expectations about how you should behave, their work style, or ways they want you to operate?\n\nIf something stands out, save it using the memory tool.\nIf nothing is worth saving, just say \"Nothing to save.\" and stop.";
|
|
3
3
|
export declare const SKILL_REVIEW_PROMPT = "[Auto-review \u2014 Skills]\nReview the conversation above and update the skill library. Be ACTIVE \u2014 most sessions produce at least one skill update, even if small.\n\nTarget shape: CLASS-LEVEL skills with a rich SKILL.md and a references/ directory for session-specific detail. Not a flat list of narrow one-session skills.\n\nSignals that warrant action:\n- The user corrected your style, tone, format, verbosity, workflow, or approach.\n- A non-trivial technique, fix, workaround, or debugging path emerged.\n- A loaded skill turned out wrong, missing, or outdated \u2014 patch it now.\n\nPreference order:\n1. Patch a skill that was loaded or read this session.\n2. Patch an existing umbrella skill.\n3. Add references/, templates/, or scripts/ support under an existing skill.\n4. Create a new class-level umbrella skill only when nothing fits.\n\nProtected skills (bundled/hub-installed) must not be edited. Pinned skills may be patched but not archived.\n\nDo NOT capture:\n- Environment-dependent failures (missing binaries, unconfigured credentials).\n- Negative claims about tools (\"browser tools do not work\").\n- Transient errors that resolved during the session.\n- One-off task narratives.\n\nIf a tool failed because of setup state, capture the FIX under an existing setup skill \u2014 never \"this tool does not work\" as a standalone constraint.\n\n\"Nothing to save.\" is a real option but should NOT be the default.";
|
|
4
4
|
export declare const COMBINED_REVIEW_PROMPT = "[Auto-review]\nReview the conversation above and update two things.\n\n**Memory**: who the user is. Save durable user preferences, personal details, and expectations with the memory tool.\n\n**Skills**: how to do this class of task. Be ACTIVE. Follow the same class-level umbrella policy, preference order, protected-skill rules, and do-not-capture list as a skill review.\n\nAct on whichever dimension has real signal. If genuinely nothing stands out on either, say \"Nothing to save.\" and stop \u2014 but don't reach for that conclusion as a default.";
|
|
5
|
-
export declare const CURATOR_PROMPT = "You are the skill curator. Maintain a healthy, class-level skill library.\n\
|
|
5
|
+
export declare const CURATOR_PROMPT = "You are the skill curator. Maintain a healthy, class-level skill library, not a flat pile of narrow one-session skills.\n\nThe goal is a LIBRARY OF CLASS-LEVEL INSTRUCTIONS. A skill collection of many narrow skills where each captures one session's specific bug is a FAILURE of the library. An agent searching skills matches on descriptions, not exact names; one broad umbrella with labeled subsections beats five narrow siblings for discoverability.\n\nRight target shape: class-level skills with rich SKILL.md + references/, templates/, scripts/ support files for session-specific detail.\n\nHard rules:\n1. NEVER hard-delete a skill. Archive (moving to .archive/) is the maximum destructive action; archives are recoverable, deletion is not.\n2. Do not touch bundled, hub-installed, pinned, or scheduled-task-referenced (`referenced`) skills. Referenced skills MAY be consolidated into an umbrella, but never simply pruned.\n3. Do not archive recently-created or never-used skills without strong evidence. \"use=0\" is NOT evidence either way \u2014 it only means the trigger has not come up yet.\n4. Do NOT reject consolidation on the grounds that \"each skill has a distinct trigger\". The right bar is: would a human maintainer write this as N separate skills, or one skill with N labeled subsections? When the answer is the latter, merge.\n5. Judge overlap on CONTENT, not on usage counters.\n6. Before archiving a merged skill, ensure its unique content was preserved in the umbrella.\n\nHow to work:\n1. Scan the candidate list. Identify PREFIX CLUSTERS \u2014 skills sharing a first word or domain keyword (expect 10-25 clusters).\n2. For each cluster with 2+ members, ask \"what is the UMBRELLA CLASS these skills serve?\" and consolidate:\n a. MERGE INTO AN EXISTING UMBRELLA (patch a labeled section for each sibling's unique insight, then archive the siblings).\n b. CREATE A NEW UMBRELLA SKILL.md covering the shared workflow with short labeled subsections, then archive the absorbed siblings.\n c. DEMOTE session-specific detail to references/, templates/, or scripts/ under the umbrella.\n3. Keep the umbrella body tight and scannable: exact commands, verbatim paths, ~100-200 lines; never invent flags or APIs.\n\nProduce a YAML summary with exactly this shape:\nconsolidations:\n - from: <old-skill-name>\n into: <umbrella-skill-name>\n reason: <one short sentence>\nprunings:\n - name: <skill-name>\n reason: <one short sentence>\nNominate a pruning only when archival is clearly safe (stale AND genuinely obsolete or fully absorbed elsewhere).";
|
|
6
|
+
export declare const CURATOR_DRY_RUN_BANNER = "\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\nDRY-RUN \u2014 REPORT ONLY. DO NOT MUTATE THE SKILL LIBRARY.\n\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\n\nThis is a PREVIEW pass. Follow every instruction above EXCEPT:\n \u2022 Do NOT call skill_manage with action=create, update, patch, delete, write_file, or remove_file.\n \u2022 Do NOT move, copy, or rewrite any file under the skills tree.\n\nYour output IS the deliverable: produce the exact same human-readable summary and YAML block you would on a live run, describing the actions you WOULD take. A reviewer will decide whether to approve a live run.\n\nIf you accidentally take a mutating action, say so explicitly in the summary.";
|
|
7
|
+
export declare const COMPLETION_SKILL_REVIEW_PROMPT = "[Auto-review \u2014 Skills \u00B7 task complete]\nYour current task now appears complete. Before wrapping up, review the approach and update the skill library via skill_manage.\n\nFollow the skills review policy: be ACTIVE, prefer class-level umbrellas, patch skills loaded this session, and capture non-trivial techniques and user corrections. Do NOT capture environment-dependent failures, negative claims about tools, or one-off task narratives.\n\nDo NOT modify output files or re-run the task. If you are still mid-task, ignore this.";
|
|
6
8
|
export declare function reviewPrompt(kind: 'memory' | 'skill' | 'combined'): string;
|
|
7
9
|
export interface PromptBundle {
|
|
8
10
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-core",
|
|
3
3
|
"description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.15",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|