shariq-pi-extensions 0.7.3 → 0.7.4

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.
@@ -3,7 +3,7 @@
3
3
  Controls what ordinary **Enter** does when the interactive Pi agent is already running:
4
4
 
5
5
  - `steer` (default) queues the message before the agent's next model step.
6
- - `interrupt` signals Pi's active abort controller immediately, retains the submitted text and images, then starts a fresh turn at Pi's safe `agent_settled` boundary. Multiple inputs received during cancellation are preserved in order in that replacement turn.
6
+ - `interrupt` signals Pi's active abort controller immediately, retains the submitted text and images, then starts a fresh turn at Pi's safe `agent_settled` boundary. If another extension starts a run at that boundary first, the retained input steers that run instead. Multiple inputs received during cancellation are preserved in order in that replacement turn.
7
7
  - `follow-up` queues the message until the active run finishes.
8
8
 
9
9
  Use `/input-mode` for the picker or `/input-mode steer|interrupt|follow-up` for direct selection. The global choice is stored with restrictive permissions in `<agent-dir>/input-mode.json`; non-default modes appear in Pi's status area.
@@ -93,7 +93,8 @@ export function createInputModeExtension(options: InputModeExtensionOptions = {}
93
93
  pi.on("agent_settled", () => {
94
94
  if (pendingInterrupts.length === 0) return;
95
95
  const input = mergeInputs(pendingInterrupts.splice(0));
96
- pi.sendUserMessage(input, { expandPromptTemplates: true });
96
+ // Another settled action may start a run first; the interrupting input then steers it.
97
+ pi.sendUserMessage(input, { deliverAs: "steer", expandPromptTemplates: true });
97
98
  });
98
99
 
99
100
  pi.on("session_shutdown", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shariq-pi-extensions",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Cross-platform extension suite for the Pi coding agent.",
5
5
  "license": "MIT",
6
6
  "author": "Shariq Riaz",
@@ -98,10 +98,10 @@
98
98
  }
99
99
  },
100
100
  "devDependencies": {
101
- "@earendil-works/pi-agent-core": "^1.1.0",
102
- "@earendil-works/pi-ai": "^1.1.0",
103
- "@earendil-works/pi-coding-agent": "^1.1.0",
104
- "@earendil-works/pi-tui": "^1.1.0",
101
+ "@earendil-works/pi-agent-core": "^1.2.0",
102
+ "@earendil-works/pi-ai": "^1.2.0",
103
+ "@earendil-works/pi-coding-agent": "^1.2.0",
104
+ "@earendil-works/pi-tui": "^1.2.0",
105
105
  "@types/node": "^26.6.4",
106
106
  "typebox": "^1.3.34",
107
107
  "typescript": "^7.0.2"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
2
+ "$schema": "https://pi.dev/schemas/theme.schema.json",
3
3
  "name": "ember-warm-dark",
4
4
  "vars": {
5
5
  "accent": "#f2a956",