pi-soly 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/switch/index.ts +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-soly",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Project management for pi — plans, state, subagent-driven execution. Inspired by GSD.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/switch/index.ts CHANGED
@@ -56,8 +56,12 @@ export default function piSwitchExtension(pi: ExtensionAPI) {
56
56
  if (!lastUi) return;
57
57
  try {
58
58
  const meta = getAgentMeta(currentAgent);
59
- const pill = `${meta.emoji} ${currentAgent}`;
60
- lastUi.setStatus("pi-switch", currentAgent === DEFAULT_AGENT ? null : pill);
59
+ // Persistent pill always visible above the input, even for the
60
+ // default agent. The user wants a constant mode indicator, not a
61
+ // transient one. Marker "▶" makes it scannable.
62
+ const marker = currentAgent === DEFAULT_AGENT ? "·" : "▶";
63
+ const pill = `${marker} ${meta.emoji} ${currentAgent}`;
64
+ lastUi.setStatus("pi-switch", pill);
61
65
  } catch { /* no ui yet */ }
62
66
  }
63
67
 
@@ -99,7 +103,7 @@ export default function piSwitchExtension(pi: ExtensionAPI) {
99
103
  });
100
104
 
101
105
  // ----- Ctrl+Shift+S: hot cycle (no popup, no confirmation) -----
102
- pi.registerShortcut("ctrl+shift+s", {
106
+ pi.registerShortcut("f2", {
103
107
  description: "Cycle to next agent (worker → oracle → scout → …)",
104
108
  handler: (sctx) => {
105
109
  lastUi = sctx.ui;