@danypops/pi-papyrus 0.59.5 → 0.59.6

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.
@@ -28,11 +28,13 @@ import {
28
28
  createArtifactDetails,
29
29
  createArtifactListDetails,
30
30
  createDiscussionDetails,
31
+ createErrorDetails,
31
32
  createExecutionPlanDetails,
32
33
  createLeaseDetails,
33
34
  createNoFocusDetails,
34
35
  createPlaybookInvocationDetails,
35
36
  createPlaybookMissingArgumentsDetails,
37
+ createPreviewDetails,
36
38
  createSemanticTextDetails,
37
39
  createTaskCompletionDetails,
38
40
  type PapyrusToolDetails,
@@ -171,6 +173,11 @@ function projectPapyrusPresentation(descriptor: VehicleOperationDescriptor, outp
171
173
  if (isDiscussionListOutput(output)) return createArtifactListDetails(descriptor.name, output.discussions);
172
174
  if (isTaskCompletion(output)) return createTaskCompletionDetails(descriptor.name, output);
173
175
  if (isTaskLeaseView(output)) return createLeaseDetails(descriptor.name, output);
176
+ if (descriptor.name === "playbooks.preview") {
177
+ return typeof output === "string"
178
+ ? createPreviewDetails(descriptor.name, "Playbook preview", output)
179
+ : createErrorDetails(descriptor.name, "playbook-preview-unprojectable", "Playbook preview returned no rendered text.");
180
+ }
174
181
  if (isSemanticTextOutput(output)) return createSemanticTextDetails(descriptor.name, semanticText(output));
175
182
  throw new Error(`${descriptor.name} produced no legal presentation variant`);
176
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-papyrus",
3
- "version": "0.59.5",
3
+ "version": "0.59.6",
4
4
  "description": "Pi host extension for Papyrus: native tools, TUI panels, and context injection over the daemon-backed graph store",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@danypops/jittor": "^0.19.2",
23
- "@danypops/papyrus": "^0.60.10",
23
+ "@danypops/papyrus": "^0.60.12",
24
24
  "@danypops/vehicle-client": "^0.10.8",
25
25
  "@danypops/vehicle-core": "^0.19.1",
26
26
  "@danypops/vehicle-server": "^0.27.1",