prizmkit 1.0.74 → 1.0.78
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/bundled/VERSION.json +3 -3
- package/bundled/adapters/claude/agent-adapter.js +9 -31
- package/bundled/dev-pipeline/README.md +837 -385
- package/bundled/dev-pipeline/retry-feature.sh +43 -5
- package/bundled/dev-pipeline/run.sh +38 -6
- package/bundled/dev-pipeline/scripts/detect-models.sh +150 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +2 -0
- package/bundled/dev-pipeline/scripts/parse-stream-progress.py +72 -15
- package/bundled/dev-pipeline/scripts/update-feature-status.py +8 -11
- package/bundled/dev-pipeline/scripts/validate-feature-models.py +56 -0
- package/bundled/dev-pipeline/templates/bootstrap-tier1.md +26 -0
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +26 -0
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +26 -0
- package/bundled/dev-pipeline/templates/feature-list-schema.json +4 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/templates/hooks/prizm-post-merge.sh +6 -0
- package/package.json +1 -1
- package/src/scaffold.js +35 -0
- package/src/upgrade.js +2 -0
package/bundled/VERSION.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Key differences from CodeBuddy agents:
|
|
6
6
|
* - tools: comma-separated string -> YAML array
|
|
7
|
-
* - model: "inherit" -> explicit model name
|
|
8
|
-
* - skills:
|
|
7
|
+
* - model: "inherit" -> explicit model name (or kept as "inherit")
|
|
8
|
+
* - skills: kept as comma-separated string (Claude Code supports it natively)
|
|
9
9
|
* - TaskCreate/Get/Update/List -> Task (single tool)
|
|
10
10
|
* - SendMessage -> SendMessage (native Agent Teams communication)
|
|
11
11
|
*/
|
|
@@ -41,36 +41,9 @@ export function convertAgent(agentContent, options = {}) {
|
|
|
41
41
|
tools = [...new Set(mapped)];
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
//
|
|
44
|
+
// Body content is used as-is — no injection or transformation needed.
|
|
45
|
+
// Claude Code natively supports skills in frontmatter and slash commands in body.
|
|
45
46
|
let convertedBody = body;
|
|
46
|
-
if (frontmatter.skills) {
|
|
47
|
-
const skillsList = frontmatter.skills.split(',').map(s => s.trim());
|
|
48
|
-
|
|
49
|
-
// Add a section about available slash commands
|
|
50
|
-
const commandList = skillsList.map(s => `- \`/${s}\``).join('\n');
|
|
51
|
-
const commandSection = `\n\n### 可用命令 (Available Slash Commands)\n\n以下 PrizmKit 命令可通过 slash command 调用:\n${commandList}\n`;
|
|
52
|
-
|
|
53
|
-
// Insert before the first ### section or at the end of body
|
|
54
|
-
const firstH3 = convertedBody.indexOf('\n### ');
|
|
55
|
-
if (firstH3 > 0) {
|
|
56
|
-
convertedBody = convertedBody.slice(0, firstH3) + commandSection + convertedBody.slice(firstH3);
|
|
57
|
-
} else {
|
|
58
|
-
convertedBody += commandSection;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Replace "invoke ... skill" with slash command syntax
|
|
63
|
-
convertedBody = convertedBody.replace(
|
|
64
|
-
/invoke\s+(?:the\s+)?[`"]?(\w[\w-]*)[`"]?\s+skill/gi,
|
|
65
|
-
'run `/$1` command'
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
// Legacy fallback: replace any remaining prizmkit.xxx shorthand with /prizmkit-xxx
|
|
69
|
-
// Core files now use /prizmkit-xxx natively, but this catches any stragglers
|
|
70
|
-
convertedBody = convertedBody.replace(
|
|
71
|
-
/prizmkit\.(\w+)/g,
|
|
72
|
-
(match, sub) => `/prizmkit-${sub.replace(/_/g, '-')}`
|
|
73
|
-
);
|
|
74
47
|
|
|
75
48
|
// Build Claude Code frontmatter
|
|
76
49
|
const claudeFrontmatter = {
|
|
@@ -80,6 +53,11 @@ export function convertAgent(agentContent, options = {}) {
|
|
|
80
53
|
model: options.model || DEFAULT_MODEL,
|
|
81
54
|
};
|
|
82
55
|
|
|
56
|
+
// Preserve skills field if present (Claude Code supports it natively)
|
|
57
|
+
if (frontmatter.skills) {
|
|
58
|
+
claudeFrontmatter.skills = frontmatter.skills;
|
|
59
|
+
}
|
|
60
|
+
|
|
83
61
|
return buildMarkdown(claudeFrontmatter, convertedBody);
|
|
84
62
|
}
|
|
85
63
|
|