pi-design-deck 0.3.4 → 0.3.5
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/index.ts +5 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -411,6 +411,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
411
411
|
"When the user requests more options, tool returns generate-more instructions — " +
|
|
412
412
|
'call design_deck with action:"add-options" to push all new options at once. ' +
|
|
413
413
|
"previewBlocks for code/architecture comparisons, previewHtml for custom UI mockups.",
|
|
414
|
+
promptSnippet:
|
|
415
|
+
"Use this to present architecture/UI/code choices visually. Start with {slides: <deck-json-string>} and wait for completion. " +
|
|
416
|
+
"If it returns generate-more instructions, call design_deck with action:\"add-options\" and slideId to push all new options.",
|
|
414
417
|
parameters: DeckParams,
|
|
415
418
|
|
|
416
419
|
async execute(_toolCallId, params, signal, onUpdate, ctx) {
|
|
@@ -1067,6 +1070,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
1067
1070
|
pi.registerTool({
|
|
1068
1071
|
name: "deck_generate",
|
|
1069
1072
|
description: "Generate text using a specific model (for design deck option generation). Use this when the generate-more prompt specifies a model override.",
|
|
1073
|
+
promptSnippet:
|
|
1074
|
+
"Use when design_deck generate-more/regenerate asks for a specific model. Provide {model: \"provider/model-id\", task: \"prompt\"} and return the raw generated text.",
|
|
1070
1075
|
parameters: Type.Object({
|
|
1071
1076
|
model: Type.String({ description: "Full model ID in 'provider/model-id' format (e.g., 'anthropic/claude-haiku-4-5')" }),
|
|
1072
1077
|
task: Type.String({ description: "The generation task/prompt" }),
|