prizmkit 1.1.61 → 1.1.62
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
CHANGED
|
@@ -16,12 +16,27 @@ function toCodexSkillReference(commandName) {
|
|
|
16
16
|
return `PrizmKit skill \`${commandName}\` (\`.agents/skills/${commandName}/SKILL.md\`)`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
function applyCodexInteractionCompatibility(content) {
|
|
20
|
+
const fallbackInstruction = 'Use `request_user_input` when available. If unavailable in the current Codex surface, including Default mode, ask the same options directly in chat and wait for an explicit answer. Tool unavailability is not permission to choose defaults.';
|
|
21
|
+
|
|
22
|
+
return content
|
|
23
|
+
.replace(/\bAskUserQuestion\b/g, 'request_user_input')
|
|
24
|
+
.replace(
|
|
25
|
+
/Do NOT render options as plain text — the user must be able to click\/select\./g,
|
|
26
|
+
fallbackInstruction
|
|
27
|
+
)
|
|
28
|
+
.replace(
|
|
29
|
+
/Do NOT render options as plain text \(e\.g\., `\[A\] option \[B\] option`\) — the user must be able to click\/select, not type a letter\./g,
|
|
30
|
+
fallbackInstruction
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
19
34
|
export function convertSkill(skillContent, skillName) {
|
|
20
35
|
const { frontmatter, body } = parseFrontmatter(skillContent);
|
|
21
36
|
|
|
22
37
|
if (!frontmatter.name) frontmatter.name = skillName;
|
|
23
38
|
|
|
24
|
-
let convertedBody = body.replace(
|
|
39
|
+
let convertedBody = applyCodexInteractionCompatibility(body).replace(
|
|
25
40
|
/\$\{SKILL_DIR\}/g,
|
|
26
41
|
`.agents/skills/${skillName}`
|
|
27
42
|
);
|
|
@@ -34,7 +49,7 @@ export function convertSkill(skillContent, skillName) {
|
|
|
34
49
|
}
|
|
35
50
|
);
|
|
36
51
|
|
|
37
|
-
const codexNote = `> Codex project install: when instructions mention a PrizmKit slash command such as \`/prizmkit-plan\`, read and execute the matching project skill at \`.agents/skills/prizmkit-plan/SKILL.md\`.\n\n`;
|
|
52
|
+
const codexNote = `> Codex project install: when instructions mention a PrizmKit slash command such as \`/prizmkit-plan\`, read and execute the matching project skill at \`.agents/skills/prizmkit-plan/SKILL.md\`.\n>\n> Codex interaction compatibility: when this skill or any referenced PrizmKit file says \`AskUserQuestion\`, use Codex \`request_user_input\` if it is available. If the current Codex surface does not expose \`request_user_input\`, including Default mode, ask the same question directly in chat and wait for explicit user input. Tool unavailability is not permission to choose defaults. If a source instruction asks more questions than Codex allows in one call, split them into multiple calls while preserving order. Only true headless/non-interactive runs, such as \`codex exec\` automation with no conversational user available, may skip interaction and choose documented defaults; never silently choose defaults in an interactive session.\n\n`;
|
|
38
53
|
|
|
39
54
|
return buildMarkdown(frontmatter, codexNote + convertedBody);
|
|
40
55
|
}
|