context-mode 2.1.1 → 2.1.2

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.
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "context-mode",
15
- "version": "2.1.1"
15
+ "version": "2.1.2"
16
16
  }
package/run.mjs CHANGED
@@ -1136,7 +1136,7 @@ var PI_EVENTS = {
1136
1136
  tool_call: { event: "PreToolUse" },
1137
1137
  tool_result: { event: "PostToolUse" }
1138
1138
  };
1139
- var NATIVE_TO_CANONICAL6 = { bash: "Bash", read: "Read" };
1139
+ var NATIVE_TO_CANONICAL6 = { bash: "Bash", read: "Read", edit: "Edit", write: "Write" };
1140
1140
  function record(v) {
1141
1141
  return typeof v === "object" && v !== null && !Array.isArray(v) ? v : {};
1142
1142
  }
@@ -1406,8 +1406,9 @@ var ADAPTERS = Object.freeze([
1406
1406
  installMode: "in-process",
1407
1407
  projectSource: "pi:ctx.cwd",
1408
1408
  toolNamePrefix: TOOL_NAME_PREFIX9,
1409
- nativeTools: { shell: ["bash"], read: ["read"] },
1409
+ nativeTools: { shell: ["bash", "powershell"], read: ["read"] },
1410
1410
  execReadOnlyHint: false,
1411
+ // D-R38-PI-PWSH-1: Pi on Windows names its shell tool "powershell"
1411
1412
  eventMap: { SessionStart: "session_start", UserPromptSubmit: "input", PreToolUse: "tool_call", PostToolUse: "tool_result" },
1412
1413
  compactDelivery: "pi-flag",
1413
1414
  compactSummary: "none",
package/search.mjs CHANGED
@@ -1136,7 +1136,7 @@ var PI_EVENTS = {
1136
1136
  tool_call: { event: "PreToolUse" },
1137
1137
  tool_result: { event: "PostToolUse" }
1138
1138
  };
1139
- var NATIVE_TO_CANONICAL6 = { bash: "Bash", read: "Read" };
1139
+ var NATIVE_TO_CANONICAL6 = { bash: "Bash", read: "Read", edit: "Edit", write: "Write" };
1140
1140
  function record(v) {
1141
1141
  return typeof v === "object" && v !== null && !Array.isArray(v) ? v : {};
1142
1142
  }
@@ -1406,8 +1406,9 @@ var ADAPTERS = Object.freeze([
1406
1406
  installMode: "in-process",
1407
1407
  projectSource: "pi:ctx.cwd",
1408
1408
  toolNamePrefix: TOOL_NAME_PREFIX9,
1409
- nativeTools: { shell: ["bash"], read: ["read"] },
1409
+ nativeTools: { shell: ["bash", "powershell"], read: ["read"] },
1410
1410
  execReadOnlyHint: false,
1411
+ // D-R38-PI-PWSH-1: Pi on Windows names its shell tool "powershell"
1411
1412
  eventMap: { SessionStart: "session_start", UserPromptSubmit: "input", PreToolUse: "tool_call", PostToolUse: "tool_result" },
1412
1413
  compactDelivery: "pi-flag",
1413
1414
  compactSummary: "none",