@lmzhen/dsh-evolution-core 0.1.0-rc.24 → 0.1.0-rc.26
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 +6 -2
- package/lib/types/curator.d.ts +3 -0
- package/lib/types/prompts.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -263,7 +263,8 @@ function buildCuratorRunReport(input) {
|
|
|
263
263
|
archiveCandidates: [...input.archiveCandidates],
|
|
264
264
|
archived: [...input.archived],
|
|
265
265
|
failed: [...input.failed],
|
|
266
|
-
...input.snapshotPath === void 0 ? {} : { snapshotPath: input.snapshotPath }
|
|
266
|
+
...input.snapshotPath === void 0 ? {} : { snapshotPath: input.snapshotPath },
|
|
267
|
+
...input.llmReviewEnabled === void 0 ? {} : { llmReviewEnabled: input.llmReviewEnabled }
|
|
267
268
|
};
|
|
268
269
|
}
|
|
269
270
|
const NOMINATION_NAME_RE = /^[a-z0-9][a-z0-9-]*$/;
|
|
@@ -532,6 +533,7 @@ Frontmatter:
|
|
|
532
533
|
- author: always the literal value "Hermes". NEVER fill it from the environment, git config, or any identity you can probe.
|
|
533
534
|
- platforms: declare [macos], [linux], and/or [windows] only when the skill is genuinely OS-bound; omit for portable skills.
|
|
534
535
|
- metadata.hermes.tags: a few Capitalized, Relevant, Tags.
|
|
536
|
+
- metadata.hermes.related_skills: [a, b] — name sibling skills this one builds on or is referenced by (optional; feeds the quality references factor).
|
|
535
537
|
|
|
536
538
|
Body section order (omit only when empty):
|
|
537
539
|
1. "# <Human Title>" then a 2-3 sentence intro: what it does, what it does NOT do, key dependency stance.
|
|
@@ -1222,7 +1224,9 @@ var MemoryStore = class {
|
|
|
1222
1224
|
if (await this.oversizedFile(target)) return true;
|
|
1223
1225
|
const raw = await this.io.readText(fileFor(this.root, target));
|
|
1224
1226
|
if (raw === null) return false;
|
|
1225
|
-
|
|
1227
|
+
const entries = normalizeEntries(raw);
|
|
1228
|
+
if (entries.some((entry) => entry.length > this.limitFor(target))) return true;
|
|
1229
|
+
return render(entries) !== raw;
|
|
1226
1230
|
}
|
|
1227
1231
|
};
|
|
1228
1232
|
//#endregion
|
package/lib/types/curator.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ export interface CuratorRunReport {
|
|
|
55
55
|
archived: CuratorArchivedSkill[];
|
|
56
56
|
failed: CuratorFailedSkill[];
|
|
57
57
|
snapshotPath?: string;
|
|
58
|
+
/** Whether the LLM nomination pass was enabled for this run (decision visibility). */
|
|
59
|
+
llmReviewEnabled?: boolean;
|
|
58
60
|
}
|
|
59
61
|
export interface CuratorReportInput {
|
|
60
62
|
runId: string;
|
|
@@ -66,6 +68,7 @@ export interface CuratorReportInput {
|
|
|
66
68
|
archived: readonly CuratorArchivedSkill[];
|
|
67
69
|
failed: readonly CuratorFailedSkill[];
|
|
68
70
|
snapshotPath?: string;
|
|
71
|
+
llmReviewEnabled?: boolean;
|
|
69
72
|
}
|
|
70
73
|
export declare function buildCuratorRunReport(input: CuratorReportInput): CuratorRunReport;
|
|
71
74
|
/** One LLM-nominated consolidation: `from` merges into the umbrella `into`. */
|
package/lib/types/prompts.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export interface PromptBundle {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const PROMPT_BUNDLE: PromptBundle;
|
|
22
22
|
export declare function verifyPromptBundle(bundle?: PromptBundle): boolean;
|
|
23
|
-
export declare const DSH_AUTHORING_STANDARDS = "Follow the Hermes skill-authoring standards, translated to DSH tools.\n\nFrontmatter:\n- name: lowercase-hyphenated, <=64 chars, no spaces.\n- description: ONE sentence, <=60 characters, ends with a period. State the capability, not the implementation. No marketing words. Do NOT repeat the skill name. Count the characters before saving.\n- version: 0.1.0\n- author: always the literal value \"Hermes\". NEVER fill it from the environment, git config, or any identity you can probe.\n- platforms: declare [macos], [linux], and/or [windows] only when the skill is genuinely OS-bound; omit for portable skills.\n- metadata.hermes.tags: a few Capitalized, Relevant, Tags.\n\nBody section order (omit only when empty):\n1. \"# <Human Title>\" then a 2-3 sentence intro: what it does, what it does NOT do, key dependency stance.\n2. \"## When to Use\" \u2014 concrete trigger phrases.\n3. \"## Prerequisites\" \u2014 exact env vars, install steps, credentials.\n4. \"## How to Run\" \u2014 canonical invocation framed through DSH tools.\n5. \"## Quick Reference\" \u2014 flat command/endpoint list.\n6. \"## Procedure\" \u2014 numbered steps with copy-paste-exact commands.\n7. \"## Pitfalls\" \u2014 known limits and rate limits.\n8. \"## Verification\" \u2014 one check proving the skill worked.\n\nDSH-tool framing:\n- Reference DSH tools by name in backticks: `bash`, `str_replace_editor`, `write`, `skill`, `skill_manage`, `memory`.\n- Do not name wrapped shell utilities when a DSH tool already covers them.\n- Larger scripts belong under `scripts/` (written with `skill_manage write_file`) and are referenced from SKILL.md by relative path.\n\nQuality bar:\n- Prefer verbatim flags, paths, and APIs from the source. Never invent them.\n- Keep it tight: ~100 lines simple, ~200 complex.\n- No router/index/hub skills that only point at other skills.\n- References go in `references/`, templates in `templates/`.";
|
|
23
|
+
export declare const DSH_AUTHORING_STANDARDS = "Follow the Hermes skill-authoring standards, translated to DSH tools.\n\nFrontmatter:\n- name: lowercase-hyphenated, <=64 chars, no spaces.\n- description: ONE sentence, <=60 characters, ends with a period. State the capability, not the implementation. No marketing words. Do NOT repeat the skill name. Count the characters before saving.\n- version: 0.1.0\n- author: always the literal value \"Hermes\". NEVER fill it from the environment, git config, or any identity you can probe.\n- platforms: declare [macos], [linux], and/or [windows] only when the skill is genuinely OS-bound; omit for portable skills.\n- metadata.hermes.tags: a few Capitalized, Relevant, Tags.\n- metadata.hermes.related_skills: [a, b] \u2014 name sibling skills this one builds on or is referenced by (optional; feeds the quality references factor).\n\nBody section order (omit only when empty):\n1. \"# <Human Title>\" then a 2-3 sentence intro: what it does, what it does NOT do, key dependency stance.\n2. \"## When to Use\" \u2014 concrete trigger phrases.\n3. \"## Prerequisites\" \u2014 exact env vars, install steps, credentials.\n4. \"## How to Run\" \u2014 canonical invocation framed through DSH tools.\n5. \"## Quick Reference\" \u2014 flat command/endpoint list.\n6. \"## Procedure\" \u2014 numbered steps with copy-paste-exact commands.\n7. \"## Pitfalls\" \u2014 known limits and rate limits.\n8. \"## Verification\" \u2014 one check proving the skill worked.\n\nDSH-tool framing:\n- Reference DSH tools by name in backticks: `bash`, `str_replace_editor`, `write`, `skill`, `skill_manage`, `memory`.\n- Do not name wrapped shell utilities when a DSH tool already covers them.\n- Larger scripts belong under `scripts/` (written with `skill_manage write_file`) and are referenced from SKILL.md by relative path.\n\nQuality bar:\n- Prefer verbatim flags, paths, and APIs from the source. Never invent them.\n- Keep it tight: ~100 lines simple, ~200 complex.\n- No router/index/hub skills that only point at other skills.\n- References go in `references/`, templates in `templates/`.";
|
|
24
24
|
//# sourceMappingURL=prompts.d.ts.map
|
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.26",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|