@ian-pascoe/pi-dap 0.2.0 → 0.3.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dap-tool.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian-pascoe/pi-dap",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Configured Debug Adapter Protocol sessions for Pi",
6
6
  "keywords": [
package/src/dap-tool.ts CHANGED
@@ -25,6 +25,10 @@ import {
25
25
  } from "./dap-tool-contract.js";
26
26
  import { renderDapToolCall, renderDapToolResult } from "./dap-tool-rendering.js";
27
27
 
28
+ type DapToolDefinition = ToolDefinition<typeof DapToolParametersSchema, DapToolRenderDetails> & {
29
+ readonly outputSchema: typeof DapToolResultDetailsSchema;
30
+ };
31
+
28
32
  type DapToolSession = Pick<
29
33
  DapSession,
30
34
  | "launch"
@@ -356,7 +360,7 @@ function notifyDapToolObserver(operation: () => void): void {
356
360
  /** Create the single strict Pi DAP ToolDefinition bound to current session resources. */
357
361
  export function createDapToolDefinition(
358
362
  getRuntime: () => DapToolRuntime | undefined,
359
- ): ToolDefinition<typeof DapToolParametersSchema, DapToolRenderDetails> {
363
+ ): DapToolDefinition {
360
364
  return {
361
365
  name: "dap",
362
366
  label: "DAP",
@@ -367,6 +371,7 @@ export function createDapToolDefinition(
367
371
  "Use dap to set source breakpoints, launch a configured Debug Session, control the Debuggee, and inspect stopped Stack Frames and variables.",
368
372
  ],
369
373
  parameters: DapToolParametersSchema,
374
+ outputSchema: DapToolResultDetailsSchema,
370
375
  renderCall: (argumentsValue, theme, context) =>
371
376
  renderDapToolCall(argumentsValue, theme, context.expanded, context.cwd),
372
377
  renderResult: (result, options, theme, context) =>