@yaag/extension 0.4.0 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaag/extension",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@earendil-works/pi-tui": "^0.84.0",
27
- "@yaag/cli": "0.4.0",
28
- "@yaag/runtime": "0.4.0",
29
- "@yaag/tui": "0.4.0",
27
+ "@yaag/cli": "0.5.0",
28
+ "@yaag/runtime": "0.5.0",
29
+ "@yaag/tui": "0.5.0",
30
30
  "nanoid": "^6.0.1"
31
31
  },
32
32
  "peerDependencies": {
@@ -8,7 +8,7 @@
8
8
  import { readFile } from "node:fs/promises";
9
9
  import { copyToClipboard, type ExtensionUIContext } from "@earendil-works/pi-coding-agent";
10
10
  import type { TUI } from "@earendil-works/pi-tui";
11
- import type { AgentInfo } from "@yaag/runtime";
11
+ import { type AgentInfo, readSystemPromptSidecar } from "@yaag/runtime";
12
12
  import type { NamedKeybindings, RunTreeViewHost, TreeState } from "@yaag/tui";
13
13
 
14
14
  /** The pi services one open view holds. */
@@ -30,6 +30,8 @@ export function createRunTreeHost(options: RunTreeHostOptions): ReadOnlyRunTreeH
30
30
  keybindings: options.keybindings,
31
31
  agentInfo: (agent) => state.summary.agents[agent],
32
32
  readSession: (agent) => readSession(state.summary.agents[agent]),
33
+ readSystemPromptSidecar: (agent) =>
34
+ readSystemPromptSidecar(state.summary.agents[agent]?.sessionFile),
33
35
  sessionPath: (agent) => state.summary.agents[agent]?.sessionFile ?? null,
34
36
  // No capability here opens a pi dialog: `ui.editor`, `select`, `input`, and
35
37
  // `confirm` all clear the editor container, which removes the non-overlay