privateer-agent 0.15.4 → 0.15.6

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 (229) hide show
  1. package/README.md +11 -0
  2. package/bin/boot-bundle.d.mts +2 -0
  3. package/bin/boot-bundle.mjs +44 -0
  4. package/bin/fresh-supervisor.d.mts +5 -1
  5. package/bin/fresh-supervisor.mjs +47 -10
  6. package/bin/privateer-launch.mjs +27 -3
  7. package/bin/privateer-subagent.mjs +5 -2
  8. package/bin/privateer-verify.mjs +12 -0
  9. package/bin/session-recovery.d.mts +53 -0
  10. package/bin/session-recovery.mjs +240 -0
  11. package/bin/session-seal-preload.mjs +17 -0
  12. package/bin/session-seal.d.mts +25 -0
  13. package/bin/session-seal.mjs +242 -0
  14. package/dist-boot/boot.mjs +3 -0
  15. package/dist-boot/c-27JKSMWL.mjs +1460 -0
  16. package/dist-boot/c-2BMRFV24.mjs +269 -0
  17. package/dist-boot/c-2CTF6JA3.mjs +166 -0
  18. package/dist-boot/c-2G3BBHRJ.mjs +84 -0
  19. package/dist-boot/c-2IDLKXX6.mjs +250 -0
  20. package/dist-boot/c-2NJD5VYM.mjs +8 -0
  21. package/dist-boot/c-2S5EEQPW.mjs +1602 -0
  22. package/dist-boot/c-2WRDCUVI.mjs +25 -0
  23. package/dist-boot/c-2YN3M256.mjs +14 -0
  24. package/dist-boot/c-37GM3GMU.mjs +187 -0
  25. package/dist-boot/c-3STKRSVO.mjs +2480 -0
  26. package/dist-boot/c-3TPV6TQQ.mjs +2320 -0
  27. package/dist-boot/c-3UVHLQDJ.mjs +225 -0
  28. package/dist-boot/c-42PUUZYC.mjs +697 -0
  29. package/dist-boot/c-4D5UMWVW.mjs +683 -0
  30. package/dist-boot/c-4ETZRMTA.mjs +46 -0
  31. package/dist-boot/c-4QT25BD5.mjs +1482 -0
  32. package/dist-boot/c-4WVR32AP.mjs +2579 -0
  33. package/dist-boot/c-5EMM567G.mjs +152 -0
  34. package/dist-boot/c-5FA4CV63.mjs +145 -0
  35. package/dist-boot/c-5GV3X3RB.mjs +14 -0
  36. package/dist-boot/c-5JCEPRIY.mjs +52 -0
  37. package/dist-boot/c-5NDKIIWT.mjs +16 -0
  38. package/dist-boot/c-5QL3AR26.mjs +4665 -0
  39. package/dist-boot/c-5XY6MFKN.mjs +5142 -0
  40. package/dist-boot/c-65UZIZC7.mjs +2897 -0
  41. package/dist-boot/c-6FUXKHOK.mjs +1969 -0
  42. package/dist-boot/c-6JHWQE4V.mjs +18242 -0
  43. package/dist-boot/c-6LOBR4I6.mjs +5280 -0
  44. package/dist-boot/c-6QHOZXKQ.mjs +14394 -0
  45. package/dist-boot/c-6ZO2SADQ.mjs +178 -0
  46. package/dist-boot/c-6ZORVVZP.mjs +1449 -0
  47. package/dist-boot/c-76QH4UCP.mjs +2441 -0
  48. package/dist-boot/c-77GO5L5Y.mjs +20982 -0
  49. package/dist-boot/c-7M23XFTN.mjs +5052 -0
  50. package/dist-boot/c-7TC367E2.mjs +32 -0
  51. package/dist-boot/c-7UOG7POX.mjs +1524 -0
  52. package/dist-boot/c-7VHP3FLN.mjs +376 -0
  53. package/dist-boot/c-A73JHZP2.mjs +13207 -0
  54. package/dist-boot/c-ABXULAFL.mjs +71 -0
  55. package/dist-boot/c-ANDD2AQO.mjs +74 -0
  56. package/dist-boot/c-AOY77AZL.mjs +1430 -0
  57. package/dist-boot/c-AXEPZ22I.mjs +108 -0
  58. package/dist-boot/c-B2Y7VNHU.mjs +427 -0
  59. package/dist-boot/c-B7VJUH73.mjs +77 -0
  60. package/dist-boot/c-BFW6CDVL.mjs +24 -0
  61. package/dist-boot/c-BHNIF2AR.mjs +188 -0
  62. package/dist-boot/c-BKF2O6BL.mjs +23 -0
  63. package/dist-boot/c-BOZXFTZN.mjs +8 -0
  64. package/dist-boot/c-BRNYJWZL.mjs +28 -0
  65. package/dist-boot/c-C3N4Z2HO.mjs +93 -0
  66. package/dist-boot/c-C4IV7ZFG.mjs +717 -0
  67. package/dist-boot/c-C5NK6UYV.mjs +793 -0
  68. package/dist-boot/c-C67644MB.mjs +1659 -0
  69. package/dist-boot/c-C6S2YB53.mjs +620 -0
  70. package/dist-boot/c-CDBEJSBF.mjs +37 -0
  71. package/dist-boot/c-CG47HBKU.mjs +435 -0
  72. package/dist-boot/c-CKCTWCT5.mjs +51 -0
  73. package/dist-boot/c-CN77DCGF.mjs +60 -0
  74. package/dist-boot/c-CRBXNKFO.mjs +1795 -0
  75. package/dist-boot/c-CRIHASQ6.mjs +973 -0
  76. package/dist-boot/c-CU4NGAUO.mjs +3786 -0
  77. package/dist-boot/c-CWRFLGQU.mjs +1883 -0
  78. package/dist-boot/c-CYQB2USO.mjs +32 -0
  79. package/dist-boot/c-DEE67DJO.mjs +379 -0
  80. package/dist-boot/c-DIFDBYOP.mjs +1258 -0
  81. package/dist-boot/c-DOSGVXDZ.mjs +34879 -0
  82. package/dist-boot/c-DR7XQI32.mjs +381 -0
  83. package/dist-boot/c-DTGPSB46.mjs +14666 -0
  84. package/dist-boot/c-DTHDNA4P.mjs +320 -0
  85. package/dist-boot/c-E4Z3Y5B5.mjs +3864 -0
  86. package/dist-boot/c-E66Z2TI7.mjs +203 -0
  87. package/dist-boot/c-EBU6RLRV.mjs +1527 -0
  88. package/dist-boot/c-EBZZNGSF.mjs +432 -0
  89. package/dist-boot/c-EC3LJ2KF.mjs +1032 -0
  90. package/dist-boot/c-EQBKXWNX.mjs +15829 -0
  91. package/dist-boot/c-EUEPIW4S.mjs +574 -0
  92. package/dist-boot/c-EX4YVWAT.mjs +378 -0
  93. package/dist-boot/c-EYZGSAJU.mjs +98 -0
  94. package/dist-boot/c-F75VRKY4.mjs +172 -0
  95. package/dist-boot/c-FH4NXKHV.mjs +177 -0
  96. package/dist-boot/c-FHNUCTEM.mjs +140 -0
  97. package/dist-boot/c-FJ5T42DS.mjs +5349 -0
  98. package/dist-boot/c-FPCNRL7G.mjs +1728 -0
  99. package/dist-boot/c-G4DLN7Q4.mjs +8 -0
  100. package/dist-boot/c-G56GYQFZ.mjs +2507 -0
  101. package/dist-boot/c-GLIOERDQ.mjs +1200 -0
  102. package/dist-boot/c-GMJ5HUBM.mjs +14 -0
  103. package/dist-boot/c-H3HSGMAQ.mjs +461 -0
  104. package/dist-boot/c-HIKTO6P7.mjs +275 -0
  105. package/dist-boot/c-I2MCJ34O.mjs +464 -0
  106. package/dist-boot/c-I3C6LBW4.mjs +765 -0
  107. package/dist-boot/c-I54OKQHW.mjs +387 -0
  108. package/dist-boot/c-IFSP3R4D.mjs +80 -0
  109. package/dist-boot/c-IZK77VB7.mjs +171 -0
  110. package/dist-boot/c-J3Y25UGE.mjs +54 -0
  111. package/dist-boot/c-J5IESS7W.mjs +27750 -0
  112. package/dist-boot/c-JJWZBY7L.mjs +254 -0
  113. package/dist-boot/c-JKTFXTGF.mjs +463 -0
  114. package/dist-boot/c-JN57AXQ4.mjs +77 -0
  115. package/dist-boot/c-KFIO6LUW.mjs +1096 -0
  116. package/dist-boot/c-KIEMEFWW.mjs +478 -0
  117. package/dist-boot/c-KIVXWBYD.mjs +28 -0
  118. package/dist-boot/c-KP6CRIP4.mjs +580 -0
  119. package/dist-boot/c-L26VOJX4.mjs +11558 -0
  120. package/dist-boot/c-L5GHWG5G.mjs +5988 -0
  121. package/dist-boot/c-M7NSQAKK.mjs +353 -0
  122. package/dist-boot/c-MCEWOPBW.mjs +56 -0
  123. package/dist-boot/c-MGPIEG7I.mjs +20 -0
  124. package/dist-boot/c-NREXJV3M.mjs +393 -0
  125. package/dist-boot/c-O5PP6CTX.mjs +162 -0
  126. package/dist-boot/c-OBQDHSXM.mjs +1774 -0
  127. package/dist-boot/c-OLQHHDD4.mjs +21 -0
  128. package/dist-boot/c-OXW4JQQH.mjs +319 -0
  129. package/dist-boot/c-P3D7ZUWN.mjs +1288 -0
  130. package/dist-boot/c-P4PQZVV5.mjs +948 -0
  131. package/dist-boot/c-P63T3XL2.mjs +26373 -0
  132. package/dist-boot/c-P6N5DQGZ.mjs +194 -0
  133. package/dist-boot/c-P7MLKQFC.mjs +58 -0
  134. package/dist-boot/c-PB3PZJL5.mjs +1276 -0
  135. package/dist-boot/c-PTN4S6G2.mjs +1259 -0
  136. package/dist-boot/c-PYCE5J7U.mjs +1083 -0
  137. package/dist-boot/c-Q4HYCRLB.mjs +19410 -0
  138. package/dist-boot/c-QUXMETGG.mjs +68 -0
  139. package/dist-boot/c-RDMJZCOX.mjs +356 -0
  140. package/dist-boot/c-ROGJK76M.mjs +17 -0
  141. package/dist-boot/c-RQJJ26T4.mjs +708 -0
  142. package/dist-boot/c-RSKCUPJF.mjs +7559 -0
  143. package/dist-boot/c-RVJU4O6P.mjs +37 -0
  144. package/dist-boot/c-S2RVHR3M.mjs +165 -0
  145. package/dist-boot/c-SKMK3PEE.mjs +91120 -0
  146. package/dist-boot/c-TI7SM4EG.mjs +20 -0
  147. package/dist-boot/c-TILJ6GXD.mjs +1235 -0
  148. package/dist-boot/c-TT6BCUJD.mjs +114 -0
  149. package/dist-boot/c-U4ITOXAN.mjs +2107 -0
  150. package/dist-boot/c-UGERXVO2.mjs +7120 -0
  151. package/dist-boot/c-UPBH5AXY.mjs +1363 -0
  152. package/dist-boot/c-US2PUNZL.mjs +597 -0
  153. package/dist-boot/c-UU4WZPPE.mjs +20 -0
  154. package/dist-boot/c-UWVIYPQS.mjs +39 -0
  155. package/dist-boot/c-V4RHQBPQ.mjs +17683 -0
  156. package/dist-boot/c-V5MRVK47.mjs +351 -0
  157. package/dist-boot/c-V6CL266R.mjs +1755 -0
  158. package/dist-boot/c-VJTMFKYE.mjs +14975 -0
  159. package/dist-boot/c-VJTRUKIB.mjs +773 -0
  160. package/dist-boot/c-W4IFSHPW.mjs +43 -0
  161. package/dist-boot/c-WETGB2CF.mjs +113 -0
  162. package/dist-boot/c-WO3QSZUU.mjs +1337 -0
  163. package/dist-boot/c-WQLH73TY.mjs +242 -0
  164. package/dist-boot/c-XL735JW5.mjs +500 -0
  165. package/dist-boot/c-Y7HADL5B.mjs +1107 -0
  166. package/dist-boot/c-YGQHSVSK.mjs +41 -0
  167. package/dist-boot/c-YMP2AMEB.mjs +10350 -0
  168. package/dist-boot/c-YRDO2WEF.mjs +12012 -0
  169. package/dist-boot/c-YUSTRATJ.mjs +8 -0
  170. package/dist-boot/c-Z2262R22.mjs +2697 -0
  171. package/dist-boot/c-Z4ALQMJC.mjs +709 -0
  172. package/dist-boot/c-Z5ZUQVUY.mjs +62 -0
  173. package/dist-boot/c-ZDZUKXF7.mjs +874 -0
  174. package/dist-boot/c-ZJYLGIC3.mjs +32 -0
  175. package/dist-boot/c-ZNA5CDMI.mjs +77 -0
  176. package/dist-boot/c-ZSO6DI3M.mjs +204 -0
  177. package/dist-boot/c-ZWUVHKMK.mjs +100 -0
  178. package/dist-boot/c-ZY4MESEW.mjs +832 -0
  179. package/dist-boot/c-ZZ5REI4L.mjs +329 -0
  180. package/dist-boot/cli.mjs +51 -0
  181. package/dist-boot/ext-anthropic-attribution.mjs +207 -0
  182. package/dist-boot/ext-pi-background-tasks.mjs +7234 -0
  183. package/dist-boot/ext-pi-subagents.mjs +37 -0
  184. package/dist-boot/ext-privateer-account.mjs +4426 -0
  185. package/dist-boot/ext-privateer-brand.mjs +5274 -0
  186. package/dist-boot/ext-privateer-codemode.mjs +37 -0
  187. package/dist-boot/ext-privateer-computer.mjs +626 -0
  188. package/dist-boot/ext-privateer-connect.mjs +1862 -0
  189. package/dist-boot/ext-privateer-context.mjs +323 -0
  190. package/dist-boot/ext-privateer-desktop.mjs +92 -0
  191. package/dist-boot/ext-privateer-final-audit.mjs +48 -0
  192. package/dist-boot/ext-privateer-fresh.mjs +81 -0
  193. package/dist-boot/ext-privateer-gate.mjs +5959 -0
  194. package/dist-boot/ext-privateer-hints.mjs +236 -0
  195. package/dist-boot/ext-privateer-media.mjs +2626 -0
  196. package/dist-boot/ext-privateer-models.mjs +3397 -0
  197. package/dist-boot/ext-privateer-posture.mjs +3006 -0
  198. package/dist-boot/ext-privateer-privacy.mjs +4578 -0
  199. package/dist-boot/ext-privateer-recovery.mjs +287 -0
  200. package/dist-boot/ext-privateer-speak.mjs +4754 -0
  201. package/dist-boot/ext-privateer-terminals.mjs +725 -0
  202. package/dist-boot/ext-privateer-tools.mjs +528 -0
  203. package/dist-boot/ext-privateer-truncation.mjs +74 -0
  204. package/dist-boot/ext-privateer-update.mjs +210 -0
  205. package/dist-boot/ext-privateer-vision.mjs +148 -0
  206. package/dist-boot/ext-privateer-web.mjs +543 -0
  207. package/dist-boot/ext-rpiv-ask-user-question.mjs +710 -0
  208. package/dist-boot/manifest.json +9 -0
  209. package/extensions/privateer-brand.ts +3 -1
  210. package/extensions/privateer-context.ts +4 -2
  211. package/extensions/privateer-final-audit.ts +17 -0
  212. package/extensions/privateer-gate.ts +55 -9
  213. package/extensions/privateer-recovery.ts +175 -0
  214. package/extensions/privateer-web.ts +4 -4
  215. package/package.json +3 -1
  216. package/patches/@earendil-works+pi-coding-agent+1.3.0.patch +199 -2
  217. package/patches/pi-background-tasks+2.6.10.patch +91 -7
  218. package/src/cli/chat.ts +7 -1
  219. package/src/config/moatManifest.json +2 -0
  220. package/src/config/whatsNew.json +4 -4
  221. package/src/context.ts +33 -5
  222. package/src/engine/finalAudit.ts +38 -0
  223. package/src/engine/stallWatchdog.ts +8 -1
  224. package/src/providers/account.ts +34 -3
  225. package/src/remote/attentionPush.ts +40 -0
  226. package/src/remote/liveTaskSession.ts +7 -1
  227. package/src/remote/relayClient.ts +38 -4
  228. package/src/remote/remoteBridge.ts +17 -0
  229. package/src/remote/transcriptSnapshot.ts +104 -0
@@ -0,0 +1,108 @@
1
+ import{createRequire as __pvCR}from"node:module";import{fileURLToPath as __pvF}from"node:url";import{dirname as __pvD}from"node:path";const require=__pvCR(import.meta.url);const __pvUrl=(r)=>new URL(r,import.meta.url).href;const __pvFile=(r)=>__pvF(new URL(r,import.meta.url));
2
+ import {
3
+ normalizeFusionDeclaredSources
4
+ } from "./c-JJWZBY7L.mjs";
5
+ import {
6
+ FUSION_INPUT_SCHEMA_VERSION,
7
+ FusionError
8
+ } from "./c-37GM3GMU.mjs";
9
+ import {
10
+ canonicalJson
11
+ } from "./c-KIVXWBYD.mjs";
12
+ import "./c-I3C6LBW4.mjs";
13
+ import "./c-B2Y7VNHU.mjs";
14
+ import "./c-SKMK3PEE.mjs";
15
+ import "./c-I54OKQHW.mjs";
16
+ import "./c-UPBH5AXY.mjs";
17
+ import "./c-7UOG7POX.mjs";
18
+ import "./c-E4Z3Y5B5.mjs";
19
+ import "./c-6ZO2SADQ.mjs";
20
+ import "./c-JKTFXTGF.mjs";
21
+ import "./c-CRBXNKFO.mjs";
22
+ import "./c-KP6CRIP4.mjs";
23
+ import "./c-RSKCUPJF.mjs";
24
+ import "./c-PTN4S6G2.mjs";
25
+ import "./c-P6N5DQGZ.mjs";
26
+ import "./c-6LOBR4I6.mjs";
27
+ import "./c-3STKRSVO.mjs";
28
+ import "./c-YRDO2WEF.mjs";
29
+ import "./c-BHNIF2AR.mjs";
30
+ import "./c-ABXULAFL.mjs";
31
+ import "./c-2G3BBHRJ.mjs";
32
+ import "./c-O5PP6CTX.mjs";
33
+ import "./c-CDBEJSBF.mjs";
34
+ import "./c-DEE67DJO.mjs";
35
+ import "./c-WO3QSZUU.mjs";
36
+ import "./c-S2RVHR3M.mjs";
37
+ import "./c-EQBKXWNX.mjs";
38
+ import "./c-RQJJ26T4.mjs";
39
+ import "./c-L5GHWG5G.mjs";
40
+ import {
41
+ __name
42
+ } from "./c-CN77DCGF.mjs";
43
+
44
+ // node_modules/pi-background-tasks/src/core/fusion/clean-context.ts?ext=pi-background-tasks
45
+ import { createHash } from "node:crypto";
46
+ var buildCleanFusionCanonicalInput = buildFusionCleanTaskCanonicalInput;
47
+ function sha256Text(value) {
48
+ return createHash("sha256").update(Buffer.from(value, "utf8")).digest("hex");
49
+ }
50
+ __name(sha256Text, "sha256Text");
51
+ function buildFusionCleanTaskCanonicalInput(options) {
52
+ if (options.request.trim().length === 0) {
53
+ throw new FusionError("fusion request must not be blank", {
54
+ code: "context_capture_failed",
55
+ childCreated: false
56
+ });
57
+ }
58
+ if (!["investigate", "research", "validate"].includes(options.workflow)) {
59
+ throw new FusionError(
60
+ "clean-task fusion input is available only to investigate, research, and validate workflows",
61
+ {
62
+ code: "context_capture_failed",
63
+ childCreated: false
64
+ }
65
+ );
66
+ }
67
+ const declaredSources = normalizeFusionDeclaredSources(options.declaredSources ?? []);
68
+ if (options.workflow === "research" && declaredSources.length === 0) {
69
+ throw new FusionError("fusion research requires at least one declared source URL and purpose", {
70
+ code: "context_capture_failed",
71
+ childCreated: false
72
+ });
73
+ }
74
+ if (options.workflow !== "research" && declaredSources.length > 0) {
75
+ throw new FusionError("declared sources are accepted only by the research workflow", {
76
+ code: "context_capture_failed",
77
+ childCreated: false
78
+ });
79
+ }
80
+ const request = {
81
+ source: options.source,
82
+ authority: "explicit_text",
83
+ text: options.request,
84
+ sha256: sha256Text(options.request)
85
+ };
86
+ const input = {
87
+ schema_version: FUSION_INPUT_SCHEMA_VERSION,
88
+ workflow: options.workflow,
89
+ cwd: options.cwd,
90
+ request,
91
+ context: {
92
+ kind: "clean_task",
93
+ policy_id: "fusion-clean-task-v1",
94
+ declared_sources: declaredSources
95
+ }
96
+ };
97
+ return {
98
+ input,
99
+ serialized: canonicalJson(input),
100
+ declaredSources,
101
+ transcriptLeafId: null
102
+ };
103
+ }
104
+ __name(buildFusionCleanTaskCanonicalInput, "buildFusionCleanTaskCanonicalInput");
105
+ export {
106
+ buildCleanFusionCanonicalInput,
107
+ buildFusionCleanTaskCanonicalInput
108
+ };
@@ -0,0 +1,427 @@
1
+ import{createRequire as __pvCR}from"node:module";import{fileURLToPath as __pvF}from"node:url";import{dirname as __pvD}from"node:path";const require=__pvCR(import.meta.url);const __pvUrl=(r)=>new URL(r,import.meta.url).href;const __pvFile=(r)=>__pvF(new URL(r,import.meta.url));
2
+ import {
3
+ AgentSession,
4
+ AgentSessionRuntime,
5
+ AssistantMessageComponent,
6
+ BashExecutionComponent,
7
+ BorderedLoader,
8
+ BranchSummaryMessageComponent,
9
+ CURRENT_SESSION_VERSION,
10
+ CompactionSummaryMessageComponent,
11
+ CredentialSynchronizationError,
12
+ CustomEditor,
13
+ CustomMessageComponent,
14
+ DEFAULT_COMPACTION_SETTINGS,
15
+ DefaultPackageManager,
16
+ DefaultResourceLoader,
17
+ DynamicBorder,
18
+ ExtensionEditorComponent,
19
+ ExtensionInputComponent,
20
+ ExtensionRunner,
21
+ ExtensionSelectorComponent,
22
+ FooterComponent,
23
+ InteractiveMode,
24
+ LoginDialogComponent,
25
+ ModelRegistry,
26
+ ModelRuntime,
27
+ ModelSelectorComponent,
28
+ OAuthSelectorComponent,
29
+ RpcClient,
30
+ SessionManager,
31
+ SessionSelectorComponent,
32
+ SettingsManager,
33
+ SettingsSelectorComponent,
34
+ SkillInvocationMessageComponent,
35
+ ThinkingSelectorComponent,
36
+ ToolExecutionComponent,
37
+ TreeSelectorComponent,
38
+ UserMessageComponent,
39
+ UserMessageSelectorComponent,
40
+ VIRTUAL_MODEL_STATE_ENTRY,
41
+ buildContextEntries,
42
+ buildSessionContext,
43
+ buildSessionProjection,
44
+ calculateContextTokens,
45
+ collectEntriesForBranchSummary,
46
+ compact,
47
+ convertToLlm,
48
+ convertToPng,
49
+ copyToClipboard,
50
+ createAgentSession,
51
+ createAgentSessionFromServices,
52
+ createAgentSessionRuntime,
53
+ createAgentSessionServices,
54
+ createBashTool,
55
+ createBashToolDefinition,
56
+ createCodemodeExtension,
57
+ createCodingTools,
58
+ createEditTool,
59
+ createEditToolDefinition,
60
+ createEventBus,
61
+ createExtensionRuntime,
62
+ createFindTool,
63
+ createFindToolDefinition,
64
+ createGrepTool,
65
+ createGrepToolDefinition,
66
+ createLocalBashOperations,
67
+ createLocalPowerShellOperations,
68
+ createLsTool,
69
+ createLsToolDefinition,
70
+ createMcpExtension,
71
+ createPowerShellTool,
72
+ createPowerShellToolDefinition,
73
+ createReadOnlyTools,
74
+ createReadTool,
75
+ createReadToolDefinition,
76
+ createSyntheticSourceInfo,
77
+ createToolSearchExtension,
78
+ createWriteTool,
79
+ createWriteToolDefinition,
80
+ defineTool,
81
+ detectSupportedImageMimeTypeFromFile,
82
+ discoverAndLoadExtensions,
83
+ estimateTokens,
84
+ findCutPoint,
85
+ findTurnStartIndex,
86
+ formatDimensionNote,
87
+ formatSkillsForPrompt,
88
+ generateBranchSummary,
89
+ generateDiffString,
90
+ generateSummary,
91
+ generateSummaryWithUsage,
92
+ generateUnifiedPatch,
93
+ getLastAssistantUsage,
94
+ getLatestCompactionEntry,
95
+ isBashToolResult,
96
+ isEditToolResult,
97
+ isFindToolResult,
98
+ isGrepToolResult,
99
+ isLsToolResult,
100
+ isPowerShellToolResult,
101
+ isReadToolResult,
102
+ isToolCallEventType,
103
+ isWriteToolResult,
104
+ loadProjectContextFiles,
105
+ loadSkills,
106
+ loadSkillsFromDir,
107
+ main,
108
+ migrateSessionEntries,
109
+ parseArgs,
110
+ parseFrontmatter,
111
+ parseSessionEntries,
112
+ parseSkillBlock,
113
+ prepareBranchEntries,
114
+ renderDiff,
115
+ resizeImage,
116
+ resolveCliModel,
117
+ resolveModelScopeWithDiagnostics,
118
+ runPrintMode,
119
+ runRpcMode,
120
+ serializeConversation,
121
+ sessionEntryToContextMessages,
122
+ shouldCompact,
123
+ stripFrontmatter,
124
+ withFileMutationQueue,
125
+ wrapRegisteredTool,
126
+ wrapRegisteredTools
127
+ } from "./c-SKMK3PEE.mjs";
128
+ import {
129
+ ProjectTrustStore,
130
+ hasTrustRequiringProjectResources
131
+ } from "./c-I54OKQHW.mjs";
132
+ import {
133
+ DEFAULT_MAX_BYTES,
134
+ DEFAULT_MAX_LINES,
135
+ formatReadLineRange,
136
+ formatSize,
137
+ truncateHead,
138
+ truncateLine,
139
+ truncateTail,
140
+ truncateToVisualLines
141
+ } from "./c-7UOG7POX.mjs";
142
+ import {
143
+ AuthStorage,
144
+ readStoredCredential
145
+ } from "./c-E4Z3Y5B5.mjs";
146
+ import {
147
+ getPowerShellConfig,
148
+ getShellConfig
149
+ } from "./c-6ZO2SADQ.mjs";
150
+ import {
151
+ ArminComponent
152
+ } from "./c-JKTFXTGF.mjs";
153
+ import {
154
+ Theme,
155
+ getAvailableThemes,
156
+ getLanguageFromPath,
157
+ getMarkdownTheme,
158
+ getSelectListTheme,
159
+ getSettingsListTheme,
160
+ highlightCode,
161
+ initTheme,
162
+ keyHint,
163
+ keyText,
164
+ rawKeyHint
165
+ } from "./c-CRBXNKFO.mjs";
166
+ import {
167
+ CONFIG_DIR_NAME,
168
+ VERSION,
169
+ getAgentDir,
170
+ getDocsPath,
171
+ getExamplesPath,
172
+ getPackageDir,
173
+ getReadmePath
174
+ } from "./c-PTN4S6G2.mjs";
175
+ import {
176
+ Container,
177
+ SelectList
178
+ } from "./c-EQBKXWNX.mjs";
179
+ import {
180
+ __export,
181
+ __name
182
+ } from "./c-CN77DCGF.mjs";
183
+
184
+ // node_modules/@earendil-works/pi-coding-agent/dist/index.js
185
+ var dist_exports = {};
186
+ __export(dist_exports, {
187
+ AgentSession: () => AgentSession,
188
+ AgentSessionRuntime: () => AgentSessionRuntime,
189
+ ArminComponent: () => ArminComponent,
190
+ AssistantMessageComponent: () => AssistantMessageComponent,
191
+ AuthStorage: () => AuthStorage,
192
+ BashExecutionComponent: () => BashExecutionComponent,
193
+ BorderedLoader: () => BorderedLoader,
194
+ BranchSummaryMessageComponent: () => BranchSummaryMessageComponent,
195
+ CONFIG_DIR_NAME: () => CONFIG_DIR_NAME,
196
+ CURRENT_SESSION_VERSION: () => CURRENT_SESSION_VERSION,
197
+ CompactionSummaryMessageComponent: () => CompactionSummaryMessageComponent,
198
+ CredentialSynchronizationError: () => CredentialSynchronizationError,
199
+ CustomEditor: () => CustomEditor,
200
+ CustomMessageComponent: () => CustomMessageComponent,
201
+ DEFAULT_COMPACTION_SETTINGS: () => DEFAULT_COMPACTION_SETTINGS,
202
+ DEFAULT_MAX_BYTES: () => DEFAULT_MAX_BYTES,
203
+ DEFAULT_MAX_LINES: () => DEFAULT_MAX_LINES,
204
+ DefaultPackageManager: () => DefaultPackageManager,
205
+ DefaultResourceLoader: () => DefaultResourceLoader,
206
+ DynamicBorder: () => DynamicBorder,
207
+ ExtensionEditorComponent: () => ExtensionEditorComponent,
208
+ ExtensionInputComponent: () => ExtensionInputComponent,
209
+ ExtensionRunner: () => ExtensionRunner,
210
+ ExtensionSelectorComponent: () => ExtensionSelectorComponent,
211
+ FooterComponent: () => FooterComponent,
212
+ InteractiveMode: () => InteractiveMode,
213
+ LoginDialogComponent: () => LoginDialogComponent,
214
+ ModelRegistry: () => ModelRegistry,
215
+ ModelRuntime: () => ModelRuntime,
216
+ ModelSelectorComponent: () => ModelSelectorComponent,
217
+ OAuthSelectorComponent: () => OAuthSelectorComponent,
218
+ ProjectTrustStore: () => ProjectTrustStore,
219
+ RpcClient: () => RpcClient,
220
+ SessionManager: () => SessionManager,
221
+ SessionSelectorComponent: () => SessionSelectorComponent,
222
+ SettingsManager: () => SettingsManager,
223
+ SettingsSelectorComponent: () => SettingsSelectorComponent,
224
+ ShowImagesSelectorComponent: () => ShowImagesSelectorComponent,
225
+ SkillInvocationMessageComponent: () => SkillInvocationMessageComponent,
226
+ Theme: () => Theme,
227
+ ThemeSelectorComponent: () => ThemeSelectorComponent,
228
+ ThinkingSelectorComponent: () => ThinkingSelectorComponent,
229
+ ToolExecutionComponent: () => ToolExecutionComponent,
230
+ TreeSelectorComponent: () => TreeSelectorComponent,
231
+ UserMessageComponent: () => UserMessageComponent,
232
+ UserMessageSelectorComponent: () => UserMessageSelectorComponent,
233
+ VERSION: () => VERSION,
234
+ VIRTUAL_MODEL_STATE_ENTRY: () => VIRTUAL_MODEL_STATE_ENTRY,
235
+ buildContextEntries: () => buildContextEntries,
236
+ buildSessionContext: () => buildSessionContext,
237
+ buildSessionProjection: () => buildSessionProjection,
238
+ calculateContextTokens: () => calculateContextTokens,
239
+ collectEntriesForBranchSummary: () => collectEntriesForBranchSummary,
240
+ compact: () => compact,
241
+ convertToLlm: () => convertToLlm,
242
+ convertToPng: () => convertToPng,
243
+ copyToClipboard: () => copyToClipboard,
244
+ createAgentSession: () => createAgentSession,
245
+ createAgentSessionFromServices: () => createAgentSessionFromServices,
246
+ createAgentSessionRuntime: () => createAgentSessionRuntime,
247
+ createAgentSessionServices: () => createAgentSessionServices,
248
+ createBashTool: () => createBashTool,
249
+ createBashToolDefinition: () => createBashToolDefinition,
250
+ createCodemodeExtension: () => createCodemodeExtension,
251
+ createCodingTools: () => createCodingTools,
252
+ createEditTool: () => createEditTool,
253
+ createEditToolDefinition: () => createEditToolDefinition,
254
+ createEventBus: () => createEventBus,
255
+ createExtensionRuntime: () => createExtensionRuntime,
256
+ createFindTool: () => createFindTool,
257
+ createFindToolDefinition: () => createFindToolDefinition,
258
+ createGrepTool: () => createGrepTool,
259
+ createGrepToolDefinition: () => createGrepToolDefinition,
260
+ createLocalBashOperations: () => createLocalBashOperations,
261
+ createLocalPowerShellOperations: () => createLocalPowerShellOperations,
262
+ createLsTool: () => createLsTool,
263
+ createLsToolDefinition: () => createLsToolDefinition,
264
+ createMcpExtension: () => createMcpExtension,
265
+ createPowerShellTool: () => createPowerShellTool,
266
+ createPowerShellToolDefinition: () => createPowerShellToolDefinition,
267
+ createReadOnlyTools: () => createReadOnlyTools,
268
+ createReadTool: () => createReadTool,
269
+ createReadToolDefinition: () => createReadToolDefinition,
270
+ createSyntheticSourceInfo: () => createSyntheticSourceInfo,
271
+ createToolSearchExtension: () => createToolSearchExtension,
272
+ createWriteTool: () => createWriteTool,
273
+ createWriteToolDefinition: () => createWriteToolDefinition,
274
+ defineTool: () => defineTool,
275
+ detectSupportedImageMimeTypeFromFile: () => detectSupportedImageMimeTypeFromFile,
276
+ discoverAndLoadExtensions: () => discoverAndLoadExtensions,
277
+ estimateTokens: () => estimateTokens,
278
+ findCutPoint: () => findCutPoint,
279
+ findTurnStartIndex: () => findTurnStartIndex,
280
+ formatDimensionNote: () => formatDimensionNote,
281
+ formatReadLineRange: () => formatReadLineRange,
282
+ formatSize: () => formatSize,
283
+ formatSkillsForPrompt: () => formatSkillsForPrompt,
284
+ generateBranchSummary: () => generateBranchSummary,
285
+ generateDiffString: () => generateDiffString,
286
+ generateSummary: () => generateSummary,
287
+ generateSummaryWithUsage: () => generateSummaryWithUsage,
288
+ generateUnifiedPatch: () => generateUnifiedPatch,
289
+ getAgentDir: () => getAgentDir,
290
+ getDocsPath: () => getDocsPath,
291
+ getExamplesPath: () => getExamplesPath,
292
+ getLanguageFromPath: () => getLanguageFromPath,
293
+ getLastAssistantUsage: () => getLastAssistantUsage,
294
+ getLatestCompactionEntry: () => getLatestCompactionEntry,
295
+ getMarkdownTheme: () => getMarkdownTheme,
296
+ getPackageDir: () => getPackageDir,
297
+ getPowerShellConfig: () => getPowerShellConfig,
298
+ getReadmePath: () => getReadmePath,
299
+ getSelectListTheme: () => getSelectListTheme,
300
+ getSettingsListTheme: () => getSettingsListTheme,
301
+ getShellConfig: () => getShellConfig,
302
+ hasTrustRequiringProjectResources: () => hasTrustRequiringProjectResources,
303
+ highlightCode: () => highlightCode,
304
+ initTheme: () => initTheme,
305
+ isBashToolResult: () => isBashToolResult,
306
+ isEditToolResult: () => isEditToolResult,
307
+ isFindToolResult: () => isFindToolResult,
308
+ isGrepToolResult: () => isGrepToolResult,
309
+ isLsToolResult: () => isLsToolResult,
310
+ isPowerShellToolResult: () => isPowerShellToolResult,
311
+ isReadToolResult: () => isReadToolResult,
312
+ isToolCallEventType: () => isToolCallEventType,
313
+ isWriteToolResult: () => isWriteToolResult,
314
+ keyHint: () => keyHint,
315
+ keyText: () => keyText,
316
+ loadProjectContextFiles: () => loadProjectContextFiles,
317
+ loadSkills: () => loadSkills,
318
+ loadSkillsFromDir: () => loadSkillsFromDir,
319
+ main: () => main,
320
+ migrateSessionEntries: () => migrateSessionEntries,
321
+ parseArgs: () => parseArgs,
322
+ parseFrontmatter: () => parseFrontmatter,
323
+ parseSessionEntries: () => parseSessionEntries,
324
+ parseSkillBlock: () => parseSkillBlock,
325
+ prepareBranchEntries: () => prepareBranchEntries,
326
+ rawKeyHint: () => rawKeyHint,
327
+ readStoredCredential: () => readStoredCredential,
328
+ renderDiff: () => renderDiff,
329
+ resizeImage: () => resizeImage,
330
+ resolveCliModel: () => resolveCliModel,
331
+ resolveModelScopeWithDiagnostics: () => resolveModelScopeWithDiagnostics,
332
+ runPrintMode: () => runPrintMode,
333
+ runRpcMode: () => runRpcMode,
334
+ serializeConversation: () => serializeConversation,
335
+ sessionEntryToContextMessages: () => sessionEntryToContextMessages,
336
+ shouldCompact: () => shouldCompact,
337
+ stripFrontmatter: () => stripFrontmatter,
338
+ truncateHead: () => truncateHead,
339
+ truncateLine: () => truncateLine,
340
+ truncateTail: () => truncateTail,
341
+ truncateToVisualLines: () => truncateToVisualLines,
342
+ withFileMutationQueue: () => withFileMutationQueue,
343
+ wrapRegisteredTool: () => wrapRegisteredTool,
344
+ wrapRegisteredTools: () => wrapRegisteredTools
345
+ });
346
+
347
+ // node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js
348
+ var SHOW_IMAGES_SELECT_LIST_LAYOUT = {
349
+ minPrimaryColumnWidth: 12,
350
+ maxPrimaryColumnWidth: 32
351
+ };
352
+ var ShowImagesSelectorComponent = class extends Container {
353
+ static {
354
+ __name(this, "ShowImagesSelectorComponent");
355
+ }
356
+ selectList;
357
+ constructor(currentValue, onSelect, onCancel) {
358
+ super();
359
+ const items = [
360
+ { value: "yes", label: "Yes", description: "Show images inline in terminal" },
361
+ { value: "no", label: "No", description: "Show text placeholder instead" }
362
+ ];
363
+ this.addChild(new DynamicBorder());
364
+ this.selectList = new SelectList(items, 5, getSelectListTheme(), SHOW_IMAGES_SELECT_LIST_LAYOUT);
365
+ this.selectList.setSelectedIndex(currentValue ? 0 : 1);
366
+ this.selectList.onSelect = (item) => {
367
+ onSelect(item.value === "yes");
368
+ };
369
+ this.selectList.onCancel = () => {
370
+ onCancel();
371
+ };
372
+ this.addChild(this.selectList);
373
+ this.addChild(new DynamicBorder());
374
+ }
375
+ getSelectList() {
376
+ return this.selectList;
377
+ }
378
+ };
379
+
380
+ // node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/theme-selector.js
381
+ var THEME_SELECT_LIST_LAYOUT = {
382
+ minPrimaryColumnWidth: 12,
383
+ maxPrimaryColumnWidth: 32
384
+ };
385
+ var ThemeSelectorComponent = class extends Container {
386
+ static {
387
+ __name(this, "ThemeSelectorComponent");
388
+ }
389
+ selectList;
390
+ onPreview;
391
+ constructor(currentTheme, onSelect, onCancel, onPreview) {
392
+ super();
393
+ this.onPreview = onPreview;
394
+ const themes = getAvailableThemes();
395
+ const themeItems = themes.map((name) => ({
396
+ value: name,
397
+ label: name,
398
+ description: name === currentTheme ? "(current)" : void 0
399
+ }));
400
+ this.addChild(new DynamicBorder());
401
+ this.selectList = new SelectList(themeItems, 10, getSelectListTheme(), THEME_SELECT_LIST_LAYOUT);
402
+ const currentIndex = themes.indexOf(currentTheme);
403
+ if (currentIndex !== -1) {
404
+ this.selectList.setSelectedIndex(currentIndex);
405
+ }
406
+ this.selectList.onSelect = (item) => {
407
+ onSelect(item.value);
408
+ };
409
+ this.selectList.onCancel = () => {
410
+ onCancel();
411
+ };
412
+ this.selectList.onSelectionChange = (item) => {
413
+ this.onPreview(item.value);
414
+ };
415
+ this.addChild(this.selectList);
416
+ this.addChild(new DynamicBorder());
417
+ }
418
+ getSelectList() {
419
+ return this.selectList;
420
+ }
421
+ };
422
+
423
+ export {
424
+ ShowImagesSelectorComponent,
425
+ ThemeSelectorComponent,
426
+ dist_exports
427
+ };
@@ -0,0 +1,77 @@
1
+ import{createRequire as __pvCR}from"node:module";import{fileURLToPath as __pvF}from"node:url";import{dirname as __pvD}from"node:path";const require=__pvCR(import.meta.url);const __pvUrl=(r)=>new URL(r,import.meta.url).href;const __pvFile=(r)=>__pvF(new URL(r,import.meta.url));
2
+ import {
3
+ dist_exports as dist_exports3
4
+ } from "./c-B2Y7VNHU.mjs";
5
+ import "./c-SKMK3PEE.mjs";
6
+ import "./c-I54OKQHW.mjs";
7
+ import {
8
+ dist_exports as dist_exports2
9
+ } from "./c-UPBH5AXY.mjs";
10
+ import "./c-7UOG7POX.mjs";
11
+ import "./c-E4Z3Y5B5.mjs";
12
+ import "./c-6ZO2SADQ.mjs";
13
+ import "./c-JKTFXTGF.mjs";
14
+ import "./c-CRBXNKFO.mjs";
15
+ import "./c-KP6CRIP4.mjs";
16
+ import "./c-RSKCUPJF.mjs";
17
+ import "./c-PTN4S6G2.mjs";
18
+ import {
19
+ compile_exports
20
+ } from "./c-P6N5DQGZ.mjs";
21
+ import {
22
+ value_exports2 as value_exports
23
+ } from "./c-6LOBR4I6.mjs";
24
+ import {
25
+ all_exports,
26
+ compat_exports
27
+ } from "./c-3STKRSVO.mjs";
28
+ import "./c-YRDO2WEF.mjs";
29
+ import "./c-BHNIF2AR.mjs";
30
+ import "./c-ABXULAFL.mjs";
31
+ import "./c-2G3BBHRJ.mjs";
32
+ import "./c-O5PP6CTX.mjs";
33
+ import "./c-CDBEJSBF.mjs";
34
+ import "./c-DEE67DJO.mjs";
35
+ import "./c-WO3QSZUU.mjs";
36
+ import "./c-S2RVHR3M.mjs";
37
+ import {
38
+ dist_exports
39
+ } from "./c-EQBKXWNX.mjs";
40
+ import {
41
+ build_exports
42
+ } from "./c-RQJJ26T4.mjs";
43
+ import "./c-L5GHWG5G.mjs";
44
+ import "./c-CN77DCGF.mjs";
45
+
46
+ // node_modules/@earendil-works/pi-ai/dist/oauth.js
47
+ var oauth_exports = {};
48
+
49
+ // node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/virtual-modules.js
50
+ var VIRTUAL_MODULES = {
51
+ typebox: build_exports,
52
+ "typebox/compile": compile_exports,
53
+ "typebox/value": value_exports,
54
+ "@sinclair/typebox": build_exports,
55
+ "@sinclair/typebox/compile": compile_exports,
56
+ "@sinclair/typebox/value": value_exports,
57
+ "@earendil-works/pi-agent-core": dist_exports2,
58
+ "@earendil-works/pi-tui": dist_exports,
59
+ // Extensions resolve the pi-ai root to the compat entrypoint (a strict
60
+ // superset of the core entrypoint): existing extensions using the old
61
+ // global API keep working at runtime until compat is removed.
62
+ "@earendil-works/pi-ai": compat_exports,
63
+ "@earendil-works/pi-ai/compat": compat_exports,
64
+ "@earendil-works/pi-ai/oauth": oauth_exports,
65
+ "@earendil-works/pi-ai/providers/all": all_exports,
66
+ "@earendil-works/pi-coding-agent": dist_exports3,
67
+ "@mariozechner/pi-agent-core": dist_exports2,
68
+ "@mariozechner/pi-tui": dist_exports,
69
+ "@mariozechner/pi-ai": compat_exports,
70
+ "@mariozechner/pi-ai/compat": compat_exports,
71
+ "@mariozechner/pi-ai/oauth": oauth_exports,
72
+ "@mariozechner/pi-ai/providers/all": all_exports,
73
+ "@mariozechner/pi-coding-agent": dist_exports3
74
+ };
75
+ export {
76
+ VIRTUAL_MODULES
77
+ };
@@ -0,0 +1,24 @@
1
+ import{createRequire as __pvCR}from"node:module";import{fileURLToPath as __pvF}from"node:url";import{dirname as __pvD}from"node:path";const require=__pvCR(import.meta.url);const __pvUrl=(r)=>new URL(r,import.meta.url).href;const __pvFile=(r)=>__pvF(new URL(r,import.meta.url));
2
+ import {
3
+ __name
4
+ } from "./c-CN77DCGF.mjs";
5
+
6
+ // node_modules/pi-background-tasks/src/core/anthropic-attribution-path.ts?ext=pi-background-tasks
7
+ import { existsSync } from "node:fs";
8
+ import { dirname, resolve } from "node:path";
9
+ import { fileURLToPath } from "node:url";
10
+ var __pvMetaUrl = __pvUrl("../node_modules/pi-background-tasks/src/core/anthropic-attribution-path.ts");
11
+ function resolveAnthropicAttributionExtensionPath(moduleUrl = __pvMetaUrl, pathExists = existsSync) {
12
+ const modulePath = fileURLToPath(moduleUrl);
13
+ const extension = modulePath.endsWith(".ts") ? "anthropic-attribution-child.ts" : "anthropic-attribution-child.js";
14
+ const candidate = resolve(dirname(modulePath), "../../extensions", extension);
15
+ if (!pathExists(candidate)) {
16
+ throw new Error(`Anthropic attribution extension is missing: ${candidate}`);
17
+ }
18
+ return candidate;
19
+ }
20
+ __name(resolveAnthropicAttributionExtensionPath, "resolveAnthropicAttributionExtensionPath");
21
+
22
+ export {
23
+ resolveAnthropicAttributionExtensionPath
24
+ };