dal-code 1.0.56 → 1.0.57

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 (276) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/bun/register-bedrock.js +1 -0
  3. package/dist/bundle/chunks/{anthropic-messages-HHQLDDZH.js → anthropic-messages-ASQGS6BL.js} +1 -1
  4. package/dist/bundle/chunks/{azure-openai-responses-S7VKEJTH.js → azure-openai-responses-ZSCUJBSU.js} +1 -1
  5. package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
  6. package/dist/bundle/chunks/{chunk-BCFLC6CK.js → chunk-2E7RGBKM.js} +1 -1
  7. package/dist/bundle/chunks/{chunk-Z64M4Q7A.js → chunk-34D4KVPX.js} +1 -1
  8. package/dist/bundle/chunks/chunk-6PQZ4KMC.js +17 -0
  9. package/dist/bundle/chunks/chunk-6SPX3U36.js +1 -0
  10. package/dist/bundle/chunks/{chunk-UULAEZ3H.js → chunk-F577XLVZ.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-RX6CC5RH.js → chunk-FSX34SAZ.js} +443 -472
  12. package/dist/bundle/chunks/chunk-G5AMLGXC.js +1 -0
  13. package/dist/bundle/chunks/{chunk-F37JXTCY.js → chunk-GPI2GHBH.js} +1 -1
  14. package/dist/bundle/chunks/chunk-HF334NQU.js +21 -0
  15. package/dist/bundle/chunks/{chunk-3HGUIN22.js → chunk-IRSW3MVW.js} +2 -2
  16. package/dist/bundle/chunks/chunk-JPBJUBY4.js +17 -0
  17. package/dist/bundle/chunks/chunk-JPCWLZUZ.js +30 -0
  18. package/dist/bundle/chunks/chunk-JUUJCOIR.js +7 -0
  19. package/dist/bundle/chunks/{chunk-3XMZ5UC3.js → chunk-KP7CMLOT.js} +1 -1
  20. package/dist/bundle/chunks/chunk-LZTZWS3N.js +9 -0
  21. package/dist/bundle/chunks/{chunk-PH42AQ66.js → chunk-MAJODFX6.js} +1 -1
  22. package/dist/bundle/chunks/chunk-NJDCSLWK.js +1 -0
  23. package/dist/bundle/chunks/{chunk-P4IBZA6D.js → chunk-O3XFDBJ3.js} +1 -1
  24. package/dist/bundle/chunks/{chunk-BIY5HTFI.js → chunk-PD6QS7YD.js} +1 -1
  25. package/dist/bundle/chunks/{chunk-ZR6PGIL7.js → chunk-S7K3JBWA.js} +1 -1
  26. package/dist/bundle/chunks/{chunk-VGMP27KM.js → chunk-TNSXMGQB.js} +1 -1
  27. package/dist/bundle/chunks/chunk-XIJS4F22.js +14 -0
  28. package/dist/bundle/chunks/{chunk-QCT6OHUR.js → chunk-YTDTROS5.js} +1 -1
  29. package/dist/bundle/chunks/{cli-NGGC23SK.js → cli-IDAZVEZ2.js} +1 -1
  30. package/dist/bundle/chunks/{cli-TVPE43YN.js → cli-NP7QEFQE.js} +1 -1
  31. package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-RK2YCJXC.js → cloudflare-workers-ai-system-one-WLKVTF6I.js} +1 -1
  32. package/dist/bundle/chunks/{execute-MGTKJB44.js → execute-VXSJSHXH.js} +2 -2
  33. package/dist/bundle/chunks/{google-generative-ai-ZPA4VBXP.js → google-generative-ai-3HIBMVL4.js} +1 -1
  34. package/dist/bundle/chunks/{google-vertex-IWHW2RX7.js → google-vertex-7PIUZFM3.js} +1 -1
  35. package/dist/bundle/chunks/{llama-cpp-classify-FXJM52Q3.js → llama-cpp-classify-5OLOZHKT.js} +1 -1
  36. package/dist/bundle/chunks/{mcp-RLFUDVHN.js → mcp-GHYUCPI4.js} +1 -1
  37. package/dist/bundle/chunks/{mistral-conversations-JXVPTO5Y.js → mistral-conversations-6Y33SI3U.js} +1 -1
  38. package/dist/bundle/chunks/{office-RTREQQ7W.js → office-2JSKOL7V.js} +1 -1
  39. package/dist/bundle/chunks/{openai-codex-responses-EYW27UUE.js → openai-codex-responses-BYGMMTPH.js} +1 -1
  40. package/dist/bundle/chunks/{openai-completions-ROBKXDOC.js → openai-completions-UWYQMOLR.js} +1 -1
  41. package/dist/bundle/chunks/{openai-decisions-4T5LPJRA.js → openai-decisions-I5J7OD62.js} +1 -1
  42. package/dist/bundle/chunks/{openai-responses-ZVFZ75QW.js → openai-responses-LWVKQGLT.js} +1 -1
  43. package/dist/bundle/chunks/{openrouter-images-6VJYTLAX.js → openrouter-images-BDUFN6XX.js} +1 -1
  44. package/dist/bundle/chunks/{pi-messages-Y6HBOGKH.js → pi-messages-64FHWMQR.js} +1 -1
  45. package/dist/bundle/chunks/{review-USSKCVWP.js → review-OQEOVDLP.js} +2 -2
  46. package/dist/bundle/chunks/{router-4JLK3BTT.js → router-3UQE4LBN.js} +1 -1
  47. package/dist/bundle/chunks/runtime-E7KOB62K.js +1 -0
  48. package/dist/bundle/chunks/sdk-5V64WBOZ.js +1 -0
  49. package/dist/bundle/chunks/{sync-UCHKAOUU.js → sync-INSWGFSB.js} +3 -3
  50. package/dist/bundle/chunks/{typesafe-system-one-XPDE7VYD.js → typesafe-system-one-7QFJ5JNW.js} +1 -1
  51. package/dist/bundle/chunks/usage-MG7QDPG2.js +1 -0
  52. package/dist/bundle/chunks/virtual-modules-73ZLFCNE.js +1 -0
  53. package/dist/bundle/cli-runtime.js +1 -1
  54. package/dist/bundle/index.js +1 -1
  55. package/dist/bundle/rpc-entry.js +1 -1
  56. package/dist/cli/experimental/auth.js +1 -0
  57. package/dist/cli/experimental/cli.js +1 -0
  58. package/dist/cli/experimental/command-options.js +1 -0
  59. package/dist/cli/experimental/command.js +1 -0
  60. package/dist/cli/experimental/commands/client.js +1 -0
  61. package/dist/cli/experimental/commands/pi.js +1 -0
  62. package/dist/cli/experimental/commands/server.js +1 -0
  63. package/dist/cli/experimental/transport-address.js +1 -0
  64. package/dist/client/index.js +1 -0
  65. package/dist/client/remote-session.js +1 -0
  66. package/dist/client/transcript.js +1 -0
  67. package/dist/core/provider-attribution.js +1 -0
  68. package/dist/modes/interactive/components/daxnuts.js +1 -0
  69. package/dist/modes/interactive/theme/theme-json.js +12 -0
  70. package/dist/modes/interactive/theme/theme-schema.json +356 -0
  71. package/dist/node_modules/@dalcode/dal-advisor/package.json +3 -3
  72. package/dist/node_modules/@dalcode/dal-awake/package.json +2 -2
  73. package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
  74. package/dist/node_modules/@dalcode/dal-capabilities/package.json +4 -4
  75. package/dist/node_modules/@dalcode/dal-codeindex/package.json +2 -2
  76. package/dist/node_modules/@dalcode/dal-compat/package.json +2 -2
  77. package/dist/node_modules/@dalcode/dal-dap/package.json +2 -2
  78. package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
  79. package/dist/node_modules/@dalcode/dal-goal/package.json +3 -3
  80. package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
  81. package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
  82. package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
  83. package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
  84. package/dist/node_modules/@dalcode/dal-learn/package.json +2 -2
  85. package/dist/node_modules/@dalcode/dal-learn/src/store.js +3 -3
  86. package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
  87. package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
  88. package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
  89. package/dist/node_modules/@dalcode/dal-pi-kit/dist/agent-dir.js +1 -0
  90. package/dist/node_modules/@dalcode/dal-pi-kit/dist/index.js +1 -1
  91. package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
  92. package/dist/node_modules/@dalcode/dal-pi-kit/src/agent-dir.js +1 -0
  93. package/dist/node_modules/@dalcode/dal-pi-kit/src/index.js +1 -1
  94. package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
  95. package/dist/node_modules/@dalcode/dal-recall/package.json +2 -2
  96. package/dist/node_modules/@dalcode/dal-remote/package.json +2 -2
  97. package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
  98. package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
  99. package/dist/node_modules/@dalcode/dal-router/package.json +6 -6
  100. package/dist/node_modules/@dalcode/dal-rtk/package.json +2 -2
  101. package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
  102. package/dist/node_modules/@dalcode/dal-statusline/package.json +2 -2
  103. package/dist/node_modules/@dalcode/dal-structured/package.json +2 -2
  104. package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
  105. package/dist/node_modules/@dalcode/dal-sync/package.json +4 -4
  106. package/dist/node_modules/@dalcode/dal-telemetry/package.json +4 -4
  107. package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
  108. package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
  109. package/dist/node_modules/@dalcode/dal-usage/package.json +2 -2
  110. package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
  111. package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
  112. package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
  113. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +1 -0
  114. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +37 -0
  115. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +104 -0
  116. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js +16 -0
  117. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/config.js +1 -0
  118. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/context.js +1 -0
  119. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +10 -0
  120. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/events.js +1 -0
  121. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/assistant.js +1 -0
  122. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/effect-gate.js +1 -0
  123. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/execution/tools.js +1 -0
  124. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/hooks.js +1 -0
  125. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +17 -0
  126. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bash.js +1 -0
  127. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/bounded.js +1 -0
  128. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/chord.js +1 -0
  129. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/context.js +1 -0
  130. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/harness.js +1 -0
  131. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/hooks.js +1 -0
  132. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/index.js +1 -0
  133. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/jsonl.js +4 -0
  134. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/collapse.js +3 -0
  135. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/entries.js +1 -0
  136. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/frames.js +1 -0
  137. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/generation.js +1 -0
  138. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/job.js +1 -0
  139. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/plugin.js +1 -0
  140. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/post-tools.js +1 -0
  141. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/task-api.js +1 -0
  142. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/kinds/tool.js +3 -0
  143. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/membrane.js +1 -0
  144. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/memory.js +1 -0
  145. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/scheduler.js +1 -0
  146. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/session.js +1 -0
  147. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/system.js +8 -0
  148. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/types.js +1 -0
  149. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/pico3/view.js +1 -0
  150. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +5 -0
  151. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/reducer.js +1 -0
  152. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/result.js +1 -0
  153. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/boundary.js +1 -0
  154. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/checkpoint.js +1 -0
  155. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/deferred.js +1 -0
  156. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/generation.js +1 -0
  157. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/reconcile.js +1 -0
  158. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/recovery.js +1 -0
  159. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/response.js +1 -0
  160. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/retry.js +1 -0
  161. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/structural.js +1 -0
  162. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/terminal.js +1 -0
  163. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tool-placement.js +1 -0
  164. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive/tools.js +1 -0
  165. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/drive.js +1 -0
  166. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/harness.js +1 -0
  167. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/index.js +1 -0
  168. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/lane.js +1 -0
  169. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/progress.js +1 -0
  170. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/reducer.js +1 -0
  171. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/restore.js +1 -0
  172. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/transcript.js +1 -0
  173. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/runtime/types.js +1 -0
  174. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/commit.js +1 -0
  175. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/context.js +1 -0
  176. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork-policy.js +1 -0
  177. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/fork.js +1 -0
  178. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/in-memory-storage-state.js +1 -0
  179. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/index.js +1 -0
  180. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/codec.js +1 -0
  181. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/errors.js +1 -0
  182. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/fork.js +1 -0
  183. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/index.js +1 -0
  184. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/io.js +3 -0
  185. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/legacy-v3.js +1 -0
  186. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/repo.js +1 -0
  187. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/storage.js +8 -0
  188. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl/types.js +1 -0
  189. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +1 -0
  190. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +5 -0
  191. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl.js +1 -0
  192. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +1 -0
  193. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +1 -0
  194. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory.js +1 -0
  195. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/mutation-line.js +1 -0
  196. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js +1 -0
  197. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +1 -0
  198. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/state.js +1 -0
  199. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/datasets.js +1 -0
  200. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/session-repo.js +1 -0
  201. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/benchmark/storage.js +1 -0
  202. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/session-repo.js +1 -0
  203. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance/storage.js +1 -0
  204. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/conformance.js +1 -0
  205. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/gating-storage.js +1 -0
  206. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/index.js +1 -0
  207. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/instrumented-storage.js +1 -0
  208. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/storage-decorator.js +1 -0
  209. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/testing/types.js +0 -0
  210. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/types.js +1 -0
  211. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/session/values.js +1 -0
  212. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +10 -0
  213. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +2 -0
  214. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/telemetry.js +1 -0
  215. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/bash.js +12 -0
  216. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit-diff.js +16 -0
  217. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/edit.js +1 -0
  218. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/file-mutation-queue.js +1 -0
  219. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/image.js +1 -0
  220. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/index.js +1 -0
  221. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/path-utils.js +1 -0
  222. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/read.js +14 -0
  223. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/tool-context.js +0 -0
  224. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/tools/write.js +1 -0
  225. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +1 -0
  226. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/adaptive-publisher.js +1 -0
  227. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/output-capture.js +5 -0
  228. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +1 -0
  229. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js +5 -0
  230. package/dist/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/usage.js +1 -0
  231. package/dist/node_modules/@earendil-works/pi-agent-core/dist/node.js +1 -0
  232. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/index.js +0 -0
  233. package/dist/node_modules/@earendil-works/pi-agent-core/dist/search/scanning.js +1 -0
  234. package/dist/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  235. package/dist/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-gateway-binding.js +1 -0
  236. package/dist/node_modules/@earendil-works/pi-ai/dist/auth/oauth/oauth-page.js +74 -0
  237. package/dist/node_modules/@earendil-works/pi-ai/dist/cli.js +0 -0
  238. package/dist/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +1 -0
  239. package/dist/node_modules/@earendil-works/pi-ai/dist/images-models.js +1 -0
  240. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +1 -0
  241. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +1 -0
  242. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  243. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  244. package/dist/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +1 -0
  245. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +1 -0
  246. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +1 -0
  247. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js +1 -0
  248. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js +1 -0
  249. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.d.ts +1 -1
  250. package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
  251. package/dist/node_modules/@earendil-works/pi-ai/package.json +3 -3
  252. package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
  253. package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  254. package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
  255. package/dist/node_modules/@earendil-works/pi-schema/package.json +1 -1
  256. package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  257. package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
  258. package/dist/server/create-harness.js +1 -0
  259. package/dist/utils/clipboard-native.js +1 -0
  260. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  261. package/examples/extensions/gondolin/package-lock.json +2 -2
  262. package/examples/extensions/gondolin/package.json +1 -1
  263. package/examples/extensions/with-deps/package-lock.json +2 -2
  264. package/examples/extensions/with-deps/package.json +1 -1
  265. package/npm-shrinkwrap.json +2 -2
  266. package/package.json +1 -1
  267. package/dist/bundle/chunks/chunk-3YGHTGYM.js +0 -7
  268. package/dist/bundle/chunks/chunk-MKMLENQD.js +0 -17
  269. package/dist/bundle/chunks/chunk-SE42OS3U.js +0 -21
  270. package/dist/bundle/chunks/chunk-T3TEURLR.js +0 -30
  271. package/dist/bundle/chunks/chunk-XTN2LDU3.js +0 -9
  272. package/dist/bundle/chunks/runtime-G7F6UQLA.js +0 -1
  273. package/dist/bundle/chunks/sdk-CEIRR6KD.js +0 -1
  274. package/dist/bundle/chunks/usage-3ACOJWR3.js +0 -1
  275. package/dist/bundle/chunks/virtual-modules-P4JE2EA6.js +0 -1
  276. /package/dist/bundle/chunks/{chunk-SZZVJTVX.js → chunk-MZ7O6YLD.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-mcp",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -29,11 +29,11 @@
29
29
  ]
30
30
  },
31
31
  "dependencies": {
32
- "@dalcode/dal-bridge": "1.0.56",
33
- "@dalcode/dal-guard": "1.0.56",
34
- "@dalcode/dal-pi-kit": "1.0.56",
35
- "@dalcode/deepailab": "1.0.56",
36
- "@earendil-works/pi-mcp": "1.0.56",
32
+ "@dalcode/dal-bridge": "1.0.57",
33
+ "@dalcode/dal-guard": "1.0.57",
34
+ "@dalcode/dal-pi-kit": "1.0.57",
35
+ "@dalcode/deepailab": "1.0.57",
36
+ "@earendil-works/pi-mcp": "1.0.57",
37
37
  "cross-spawn": "7.0.6"
38
38
  },
39
39
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-office",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.56",
21
+ "@dalcode/dal-pi-kit": "1.0.57",
22
22
  "docx": "9.7.1",
23
23
  "echarts": "6.1.0",
24
24
  "exceljs": "4.4.0",
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty;var i=(r,o)=>e(r,"name",{value:o,configurable:!0});import{homedir as t}from"node:os";import{join as n}from"node:path";function a(){const r=process.env.DAL_CODING_AGENT_DIR;return r?r==="~"?t():r.startsWith("~/")||process.platform==="win32"&&r.startsWith("~\\")?n(t(),r.slice(2)):r:n(t(),".dal","agent")}i(a,"agentDir");export{a as agentDir};
@@ -1 +1 @@
1
- export*from"./i18n.js";export*from"./project-size.js";export*from"./session-scope.js";export*from"./shared-data.js";
1
+ export*from"./agent-dir.js";export*from"./i18n.js";export*from"./project-size.js";export*from"./session-scope.js";export*from"./shared-data.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-pi-kit",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Shared i18n helpers for DAL pi extensions. No engine peer.",
6
6
  "type": "module",
@@ -0,0 +1 @@
1
+ var o=Object.defineProperty;var e=(r,t)=>o(r,"name",{value:t,configurable:!0});var s=Object.defineProperty,c=e((r,t)=>s(r,"name",{value:t,configurable:!0}),"i");import{homedir as a}from"node:os";import{join as i}from"node:path";function n(){const r=process.env.DAL_CODING_AGENT_DIR;return r?r==="~"?a():r.startsWith("~/")||process.platform==="win32"&&r.startsWith("~\\")?i(a(),r.slice(2)):r:i(a(),".dal","agent")}e(n,"a"),c(n,"agentDir");export{n as agentDir};
@@ -1 +1 @@
1
- export*from"./i18n.js";export*from"./project-size.js";export*from"./session-scope.js";export*from"./shared-data.js";
1
+ export*from"./agent-dir.js";export*from"./i18n.js";export*from"./project-size.js";export*from"./session-scope.js";export*from"./shared-data.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-plugins",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -20,9 +20,9 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.56",
24
- "@dalcode/dal-skills": "1.0.56",
25
- "@dalcode/deepailab": "1.0.56",
23
+ "@dalcode/dal-pi-kit": "1.0.57",
24
+ "@dalcode/dal-skills": "1.0.57",
25
+ "@dalcode/deepailab": "1.0.57",
26
26
  "typebox": "1.3.27"
27
27
  },
28
28
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-recall",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Search past sessions: a local full-text index of earlier conversations the model can query with session_search. Adapted from @henryqw/pi-session-recall 5.1.4 (MIT).",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.56",
23
+ "@dalcode/dal-pi-kit": "1.0.57",
24
24
  "typebox": "1.3.27"
25
25
  },
26
26
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-remote",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "`dal remote enable|disable|status|pair|logs`: installs the phone daemon (a pinned, integrity-checked npm package) and runs it as a systemd user service or a launchd agent, so the DAL Code phone app can reach this machine.",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@dalcode/dal-pi-kit": "1.0.56"
22
+ "@dalcode/dal-pi-kit": "1.0.57"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-review",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Code review: a read-only reviewer sub-agent over uncommitted changes, a base branch, a commit, a PR or a supplied diff, returning structured, deduplicated findings. /review in the TUI, dal -p, RPC and the SDK.",
6
6
  "type": "module",
@@ -19,8 +19,8 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@dalcode/dal-pi-kit": "1.0.56",
23
- "@dalcode/dal-subagent": "1.0.56",
22
+ "@dalcode/dal-pi-kit": "1.0.57",
23
+ "@dalcode/dal-subagent": "1.0.57",
24
24
  "typebox": "1.3.7"
25
25
  },
26
26
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-rewind",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Git checkpoints for DAL: a snapshot after every turn that changes files, /rewind, Esc+Esc, safe restore, undo. Adapted from pi-rewind 0.5.0 (MIT, arpagon).",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@dalcode/dal-pi-kit": "1.0.56"
24
+ "@dalcode/dal-pi-kit": "1.0.57"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-router",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -29,11 +29,11 @@
29
29
  ]
30
30
  },
31
31
  "dependencies": {
32
- "@dalcode/dal-guard": "1.0.56",
33
- "@dalcode/dal-pi-kit": "1.0.56",
34
- "@dalcode/dal-tool-catalog": "1.0.56",
35
- "@dalcode/deepailab": "1.0.56",
36
- "@earendil-works/pi-tui": "1.0.56"
32
+ "@dalcode/dal-guard": "1.0.57",
33
+ "@dalcode/dal-pi-kit": "1.0.57",
34
+ "@dalcode/dal-tool-catalog": "1.0.57",
35
+ "@dalcode/deepailab": "1.0.57",
36
+ "@earendil-works/pi-tui": "1.0.57"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@earendil-works/pi-coding-agent": "^1.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-rtk",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Uses rtk, when the user has installed it, to compress the output of shell commands the agent runs. Does nothing when rtk is not installed; never installs it.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.56"
21
+ "@dalcode/dal-pi-kit": "1.0.57"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-skills",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -22,8 +22,8 @@
22
22
  ]
23
23
  },
24
24
  "dependencies": {
25
- "@dalcode/dal-pi-kit": "1.0.56",
26
- "@dalcode/deepailab": "1.0.56",
25
+ "@dalcode/dal-pi-kit": "1.0.57",
26
+ "@dalcode/deepailab": "1.0.57",
27
27
  "typebox": "1.3.7"
28
28
  },
29
29
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-statusline",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "A scriptable status line under the footer: a template or a command of the user's choosing. Grown from the status-line and custom-footer extension examples.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.56"
21
+ "@dalcode/dal-pi-kit": "1.0.57"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-structured",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "dal -p --output-schema: the final answer as JSON that matches a JSON Schema, with a non-zero exit when it does not. Grown from the structured-output extension example.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.56",
21
+ "@dalcode/dal-pi-kit": "1.0.57",
22
22
  "typebox": "1.3.27"
23
23
  },
24
24
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-subagent",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -18,10 +18,10 @@
18
18
  ]
19
19
  },
20
20
  "dependencies": {
21
- "@dalcode/dal-pi-kit": "1.0.56",
22
- "@dalcode/dal-guard": "1.0.56",
23
- "@earendil-works/pi-agent-core": "1.0.56",
24
- "@earendil-works/pi-ai": "1.0.56",
21
+ "@dalcode/dal-pi-kit": "1.0.57",
22
+ "@dalcode/dal-guard": "1.0.57",
23
+ "@earendil-works/pi-agent-core": "1.0.57",
24
+ "@earendil-works/pi-ai": "1.0.57",
25
25
  "typebox": "1.3.7"
26
26
  },
27
27
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-sync",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Conversations, personal skills and personal lessons follow the signed-in DeepAILab account, so other computers pick them up (/sync).",
6
6
  "license": "MIT",
@@ -23,9 +23,9 @@
23
23
  ]
24
24
  },
25
25
  "dependencies": {
26
- "@dalcode/dal-learn": "1.0.56",
27
- "@dalcode/dal-pi-kit": "1.0.56",
28
- "@dalcode/deepailab": "1.0.56"
26
+ "@dalcode/dal-learn": "1.0.57",
27
+ "@dalcode/dal-pi-kit": "1.0.57",
28
+ "@dalcode/deepailab": "1.0.57"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-telemetry",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -25,9 +25,9 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@dalcode/dal-learn": "1.0.56",
29
- "@dalcode/dal-pi-kit": "1.0.56",
30
- "@dalcode/deepailab": "1.0.56"
28
+ "@dalcode/dal-learn": "1.0.57",
29
+ "@dalcode/dal-pi-kit": "1.0.57",
30
+ "@dalcode/deepailab": "1.0.57"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-terminal",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "Host terminal context: a terminal_read tool and @terminal mentions, registered only when the embedding host advertises the terminal capability.",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@dalcode/dal-pi-kit": "1.0.56",
22
+ "@dalcode/dal-pi-kit": "1.0.57",
23
23
  "typebox": "1.3.7"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-tool-catalog",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -19,7 +19,7 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@dalcode/dal-pi-kit": "1.0.56",
22
+ "@dalcode/dal-pi-kit": "1.0.57",
23
23
  "typebox": "1.3.7"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-usage",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "description": "/usage: tokens and cost across all sessions, by day, model and project, with sub-agent spend counted once. Adapted from @tmustier/pi-usage-extension 0.9.5 (MIT).",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.56"
23
+ "@dalcode/dal-pi-kit": "1.0.57"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-web",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -24,8 +24,8 @@
24
24
  ]
25
25
  },
26
26
  "dependencies": {
27
- "@dalcode/dal-pi-kit": "1.0.56",
28
- "@dalcode/deepailab": "1.0.56",
27
+ "@dalcode/dal-pi-kit": "1.0.57",
28
+ "@dalcode/deepailab": "1.0.57",
29
29
  "typebox": "1.3.27",
30
30
  "unpdf": "1.8.1"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/dal-workflow",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -17,7 +17,7 @@
17
17
  ]
18
18
  },
19
19
  "dependencies": {
20
- "@dalcode/dal-pi-kit": "1.0.56",
20
+ "@dalcode/dal-pi-kit": "1.0.57",
21
21
  "typebox": "1.3.27"
22
22
  },
23
23
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dalcode/deepailab",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@dalcode/dal-pi-kit": "1.0.56",
24
- "@earendil-works/pi-ai": "1.0.56"
23
+ "@dalcode/dal-pi-kit": "1.0.57",
24
+ "@earendil-works/pi-ai": "1.0.57"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@earendil-works/pi-coding-agent": "^1.0.9"
@@ -0,0 +1 @@
1
+ import{Closed as r,HarnessClosed as s,HarnessFault as i,InvalidLane as l,InvalidMessage as m,InvalidNavigation as p,LaneBusy as c,NoActiveOperation as g,NoActiveRun as d,NothingToCompact as v,NothingToResume as N,OperationMismatch as k,UnknownSkill as u,UnknownTarget as A,UnknownTemplate as H}from"./result.js";import{SliceNotImplemented as T}from"./runtime/types.js";import{createAgentHarness as e}from"./runtime/harness.js";const o={create:e};export{o as AgentHarness,r as Closed,s as HarnessClosed,i as HarnessFault,l as InvalidLane,m as InvalidMessage,p as InvalidNavigation,c as LaneBusy,g as NoActiveOperation,d as NoActiveRun,v as NothingToCompact,N as NothingToResume,k as OperationMismatch,T as SliceNotImplemented,u as UnknownSkill,A as UnknownTarget,H as UnknownTemplate};
@@ -0,0 +1,37 @@
1
+ var S=Object.defineProperty;var p=(e,a)=>S(e,"name",{value:a,configurable:!0});import{contentText as F}from"@earendil-works/pi-ai";import{convertToLlm as b,createBranchSummaryMessage as R,createCompactionSummaryMessage as k}from"../messages.js";import{BranchSummaryError as w,err as x,ok as A}from"../types.js";import{completeSimpleWithRetries as T,createSummaryRequestOptions as B,estimateTokens as E,SUMMARIZATION_SYSTEM_PROMPT as P}from"./compaction.js";import{computeFileLists as v,createFileOps as I,extractFileOpsFromMessage as O,formatFileOperations as _,serializeConversation as C}from"./utils.js";async function K(e,a,i,c,r){if(!i)return{entries:[],commonAncestorId:null};const t=new Set((await e.findEntries({start:i},r)).map(n=>n.id)),s=await e.findEntries({start:c},r);let o=null;for(const n of s)if(t.has(n.id)){o=n.id;break}const m=[];let u=i;for(;u&&u!==o;){const n=await a.getEntry(u,r);if(!n)throw new Error(`Corrupt session: entry ${u} not found`);m.push(n),u=n.parentId}return m.reverse(),{entries:m,commonAncestorId:o}}p(K,"collectEntriesForBranchSummary");function W(e){switch(e.type){case"message":return e.message.role==="toolResult"?void 0:e.message;case"branch_summary":return R(e.summary,e.fromId,e.timestamp);case"compaction":return k(e.summary,e.tokensBefore,e.timestamp);case"custom":return}}p(W,"getMessageFromEntry");function N(e,a=0){const i=[],c=I();let r=0;for(const t of e)if(!(t.type!=="branch_summary"||typeof t.details!="object"||t.details===null||Array.isArray(t.details))){if(Array.isArray(t.details.readFiles))for(const s of t.details.readFiles)typeof s=="string"&&c.read.add(s);if(Array.isArray(t.details.modifiedFiles))for(const s of t.details.modifiedFiles)typeof s=="string"&&c.edited.add(s)}for(let t=e.length-1;t>=0;t--){const s=e[t],o=W(s);if(!o)continue;O(o,c);const m=E(o);if(a>0&&r+m>a){(s.type==="compaction"||s.type==="branch_summary")&&r<a*.9&&(i.unshift(o),r+=m);break}i.unshift(o),r+=m}return{messages:i,fileOps:c,totalTokens:r}}p(N,"prepareBranchEntries");const $=`The user explored a different conversation branch before returning here.
2
+ Summary of that exploration:
3
+
4
+ `,M=`Create a structured summary of this conversation branch for context when returning later.
5
+
6
+ Use this EXACT format:
7
+
8
+ ## Goal
9
+ [What was the user trying to accomplish in this branch?]
10
+
11
+ ## Constraints & Preferences
12
+ - [Any constraints, preferences, or requirements mentioned]
13
+ - [Or "(none)" if none were mentioned]
14
+
15
+ ## Progress
16
+ ### Done
17
+ - [x] [Completed tasks/changes]
18
+
19
+ ### In Progress
20
+ - [ ] [Work that was started but not finished]
21
+
22
+ ### Blocked
23
+ - [Issues preventing progress, if any]
24
+
25
+ ## Key Decisions
26
+ - **[Decision]**: [Brief rationale]
27
+
28
+ ## Next Steps
29
+ 1. [What should happen next to continue this work]
30
+
31
+ Keep each section concise. Preserve exact file paths, function names, and error messages.`;function j(e,a,i){const{models:c,model:r,customInstructions:t,replaceInstructions:s,reserveTokens:o=16384,retry:m,callbacks:u}=a,n=r.contextWindow||128e3,h=N(e,n-o);return U(h,{customInstructions:t,replaceInstructions:s},(d,f,l)=>T(c,r,d,f,m,u,l),i)}p(j,"generateBranchSummary");async function U(e,a,i,c){const{customInstructions:r,replaceInstructions:t}=a,{messages:s,fileOps:o}=e;if(s.length===0)return A({summary:"No content to summarize",readFiles:[],modifiedFiles:[]});const m=b(s),u=C(m);let n;t&&r?n=r:r?n=`${M}
32
+
33
+ Additional focus: ${r}`:n=M;const d=[{role:"user",content:[{type:"text",text:`<conversation>
34
+ ${u}
35
+ </conversation>
36
+
37
+ ${n}`}],timestamp:Date.now()}],f=await i({systemPrompt:P,messages:d},B({maxTokens:2048},c),c);if(f.stopReason==="aborted")return x(new w("aborted",f.errorMessage||"Branch summary aborted"));if(f.stopReason==="error")return x(new w("summarization_failed",`Branch summary failed: ${f.errorMessage||"Unknown error"}`));let l=F(f.content);l=$+l;const{readFiles:y,modifiedFiles:g}=v(o);return l+=_(y,g),A({summary:l||"No summary generated",usage:f.usage,readFiles:y,modifiedFiles:g})}p(U,"generateBranchSummaryWithRequest");export{K as collectEntriesForBranchSummary,j as generateBranchSummary,U as generateBranchSummaryWithRequest,N as prepareBranchEntries};
@@ -0,0 +1,104 @@
1
+ var K=Object.defineProperty;var m=(e,t)=>K(e,"name",{value:t,configurable:!0});import{contentText as E,retryAssistantCall as B,uuidv7 as L}from"@earendil-works/pi-ai";import{getTelemetryContext as W}from"../context.js";import{convertToLlm as O,createBranchSummaryMessage as q,createCompactionSummaryMessage as Y}from"../messages.js";import{buildContextEntries as V,sessionEntryToContextMessages as X}from"../session/context.js";import{CompactionError as b,err as x,ok as k}from"../types.js";import{addUsage as G}from"../utils/usage.js";import{computeFileLists as Z,createFileOps as J,extractFileOpsFromMessage as U,formatFileOperations as j,serializeConversation as F}from"./utils.js";function H(e){try{return JSON.stringify(e)??"undefined"}catch{return"[unserializable]"}}m(H,"safeJsonStringify");function Q(e,t,r){const s=J();if(r>=0){const n=t[r];if(typeof n.details=="object"&&n.details!==null&&!Array.isArray(n.details)){if(Array.isArray(n.details.readFiles))for(const o of n.details.readFiles)typeof o=="string"&&s.read.add(o);if(Array.isArray(n.details.modifiedFiles))for(const o of n.details.modifiedFiles)typeof o=="string"&&s.edited.add(o)}}for(const n of e)U(n,s);return s}m(Q,"extractFileOperations");function ee(e){if(e.type==="message")return e.message;if(e.type==="branch_summary")return q(e.summary,e.fromId,e.timestamp);if(e.type==="compaction")return Y(e.summary,e.tokensBefore,e.timestamp)}m(ee,"getMessageFromEntry");function P(e){if(e.type!=="compaction")return ee(e)}m(P,"getMessageFromEntryForCompaction");function w(e,t){return{...e,signal:t.abortSignal,telemetryContext:W(t),cacheRetention:"none",sessionId:e.sessionId??L()}}m(w,"createSummaryRequestOptions");async function N(e,t,r,s,n,o,c){const i=w(s,c);return B(()=>e.completeSimple(t,r,i),n,i.signal,o)}m(N,"completeSimpleWithRetries");const Se={enabled:!0,reserveTokens:16384,keepRecentTokens:2e4};function _(e){return e.totalTokens||e.input+e.output+e.cacheRead+e.cacheWrite}m(_,"calculateContextTokens");function D(e){if(e.role==="assistant"&&"usage"in e){const t=e;if(t.stopReason!=="aborted"&&t.stopReason!=="error"&&t.usage&&_(t.usage)>0)return t.usage}}m(D,"getAssistantUsage");function Ie(e){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r.type==="message"){const s=D(r.message);if(s)return s}}}m(Ie,"getLastAssistantUsage");function te(e){for(let t=e.length-1;t>=0;t--){const r=D(e[t]);if(r)return{usage:r,index:t}}}m(te,"getLastAssistantUsageInfo");function ne(e){const t=te(e);if(!t){let n=0;for(const o of e)n+=C(o);return{tokens:n,usageTokens:0,trailingTokens:n,lastUsageIndex:null}}const r=_(t.usage);let s=0;for(let n=t.index+1;n<e.length;n++)s+=C(e[n]);return{tokens:r+s,usageTokens:r,trailingTokens:s,lastUsageIndex:t.index}}m(ne,"estimateContextTokens");function be(e,t,r){return r.enabled?e>t-r.reserveTokens:!1}m(be,"shouldCompact");const se=4800;function z(e){if(typeof e=="string")return e.length;let t=0;for(const r of e)r.type==="text"&&r.text?t+=r.text.length:r.type==="image"&&(t+=se);return t}m(z,"estimateTextAndImageContentChars");function C(e){let t=0;switch(e.role){case"user":return t=z(e.content),Math.ceil(t/4);case"assistant":{const r=e;for(const s of r.content)s.type==="text"?t+=s.text.length:s.type==="thinking"?t+=s.thinking.length:s.type==="toolCall"&&(t+=s.name.length+H(s.arguments).length);return Math.ceil(t/4)}case"custom":case"toolResult":return t=z(e.content),Math.ceil(t/4);case"bashExecution":return t=e.command.length+e.output.length,Math.ceil(t/4);case"branchSummary":case"compactionSummary":return t=e.summary.length,Math.ceil(t/4)}return 0}m(C,"estimateTokens");function re(e,t,r){const s=[];for(let n=t;n<r;n++){const o=e[n];switch(o.type){case"message":{switch(o.message.role){case"bashExecution":case"custom":case"branchSummary":case"compactionSummary":case"user":case"assistant":s.push(n);break;case"toolResult":break}break}case"compaction":case"branch_summary":case"custom":break}o.type==="branch_summary"&&s.push(n)}return s}m(re,"findValidCutPoints");function oe(e,t,r){for(let s=t;s>=r;s--){const n=e[s];if(n.type==="branch_summary")return s;if(n.type==="message"){const o=n.message.role;if(o==="user"||o==="bashExecution")return s}}return-1}m(oe,"findTurnStartIndex");function ae(e,t,r,s){const n=re(e,t,r);if(n.length===0)return{firstKeptEntryIndex:t,turnStartIndex:-1,isSplitTurn:!1};let o=0,c=n[0];for(let u=r-1;u>=t;u--){const h=e[u];if(h.type!=="message")continue;const p=C(h.message);if(o+=p,o>=s){for(let a=0;a<n.length;a++)if(n[a]>=u){c=n[a];break}break}}for(;c>t;){const u=e[c-1];if(u.type==="compaction"||u.type==="message")break;c--}const i=e[c],l=i.type==="message"&&i.message.role==="user",f=l?-1:oe(e,c,t);return{firstKeptEntryIndex:c,turnStartIndex:f,isSplitTurn:!l&&f!==-1}}m(ae,"findCutPoint");const $=`You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.
2
+
3
+ Do NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.`,ie=`The messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.
4
+
5
+ Use this EXACT format:
6
+
7
+ ## Goal
8
+ [What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]
9
+
10
+ ## Constraints & Preferences
11
+ - [Any constraints, preferences, or requirements mentioned by user]
12
+ - [Or "(none)" if none were mentioned]
13
+
14
+ ## Progress
15
+ ### Done
16
+ - [x] [Completed tasks/changes]
17
+
18
+ ### In Progress
19
+ - [ ] [Current work]
20
+
21
+ ### Blocked
22
+ - [Issues preventing progress, if any]
23
+
24
+ ## Key Decisions
25
+ - **[Decision]**: [Brief rationale]
26
+
27
+ ## Next Steps
28
+ 1. [Ordered list of what should happen next]
29
+
30
+ ## Critical Context
31
+ - [Any data, examples, or references needed to continue]
32
+ - [Or "(none)" if not applicable]
33
+
34
+ Keep each section concise. Preserve exact file paths, function names, and error messages.`,ce=`The messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.
35
+
36
+ Update the existing structured summary with new information. RULES:
37
+ - PRESERVE all existing information from the previous summary
38
+ - ADD new progress, decisions, and context from the new messages
39
+ - UPDATE the Progress section: move items from "In Progress" to "Done" when completed
40
+ - UPDATE "Next Steps" based on what was accomplished
41
+ - PRESERVE exact file paths, function names, and error messages
42
+ - If something is no longer relevant, you may remove it
43
+
44
+ Use this EXACT format:
45
+
46
+ ## Goal
47
+ [Preserve existing goals, add new ones if the task expanded]
48
+
49
+ ## Constraints & Preferences
50
+ - [Preserve existing, add new ones discovered]
51
+
52
+ ## Progress
53
+ ### Done
54
+ - [x] [Include previously done items AND newly completed items]
55
+
56
+ ### In Progress
57
+ - [ ] [Current work - update based on progress]
58
+
59
+ ### Blocked
60
+ - [Current blockers - remove if resolved]
61
+
62
+ ## Key Decisions
63
+ - **[Decision]**: [Brief rationale] (preserve all previous, add new)
64
+
65
+ ## Next Steps
66
+ 1. [Update based on current state]
67
+
68
+ ## Critical Context
69
+ - [Preserve important context, add new if needed]
70
+
71
+ Keep each section concise. Preserve exact file paths, function names, and error messages.`;async function Me(e,t,r,s,n,o,c,i,l,f){const u=await ue(e,t,r,s,n,o,c,i,l,f);return u.ok?k(u.value.text):x(u.error)}m(Me,"generateSummary");function ue(e,t,r,s,n,o,c,i,l,f){return R(e,{model:r,reserveTokens:s,customInstructions:n,previousSummary:o,thinkingLevel:c},(u,h,p)=>N(t,r,u,h,i,l,p),f)}m(ue,"generateSummaryWithUsage");async function R(e,t,r,s){const{model:n,reserveTokens:o,customInstructions:c,previousSummary:i,thinkingLevel:l}=t,f=Math.min(Math.floor(.8*o),n.maxTokens>0?n.maxTokens:Number.POSITIVE_INFINITY);let u=i?ce:ie;c&&(u=`${u}
72
+
73
+ Additional focus: ${c}`);const h=O(e);let a=`<conversation>
74
+ ${F(h)}
75
+ </conversation>
76
+
77
+ `;i&&(a+=`<previous-summary>
78
+ ${i}
79
+ </previous-summary>
80
+
81
+ `),a+=u;const d=[{role:"user",content:[{type:"text",text:a}],timestamp:Date.now()}],y=n.reasoning&&l&&l!=="off"?{maxTokens:f,reasoning:l}:{maxTokens:f},g=await r({systemPrompt:$,messages:d},w(y,s),s);if(g.stopReason==="aborted")return x(new b("aborted",g.errorMessage||"Summarization aborted"));if(g.stopReason==="error")return x(new b("summarization_failed",`Summarization failed: ${g.errorMessage||"Unknown error"}`));const S=E(g.content);return k({text:S,usage:g.usage})}m(R,"generateSummaryWithRequest");function Pe(e,t){if(e.length===0||e[e.length-1].type==="compaction")return k(void 0);let r=-1;for(let a=e.length-1;a>=0;a--)if(e[a].type==="compaction"){r=a;break}let s,n=e;if(r>=0){const a=e[r];s=a.summary,n=[...a.retainedTail.map((y,g)=>({type:"message",id:`${a.id}:retained:${g}`,parentId:g===0?a.id:`${a.id}:retained:${g-1}`,seq:a.seq,timestamp:y.timestamp,message:y})),...e.slice(r+1)]}const o=n.length,c=ne(V(e).flatMap(X)).tokens,i=ae(n,0,o,t.keepRecentTokens),l=i.isSplitTurn?i.turnStartIndex:i.firstKeptEntryIndex,f=[];for(let a=0;a<l;a++){const d=P(n[a]);d&&f.push(d)}const u=[];if(i.isSplitTurn)for(let a=i.turnStartIndex;a<i.firstKeptEntryIndex;a++){const d=P(n[a]);d&&u.push(d)}const h=[];for(let a=i.firstKeptEntryIndex;a<o;a++){const d=P(n[a]);d&&h.push(d)}const p=Q(f,e,r);if(i.isSplitTurn)for(const a of u)U(a,p);return k({messagesToSummarize:f,turnPrefixMessages:u,retainedTail:h,isSplitTurn:i.isSplitTurn,tokensBefore:c,previousSummary:s,fileOps:p,settings:t})}m(Pe,"prepareCompaction");const me=`This is the PREFIX of a turn that was too large to keep. The SUFFIX (recent work) is retained.
82
+
83
+ Summarize the prefix to provide context for the retained suffix:
84
+
85
+ ## Original Request
86
+ [What did the user ask for in this turn?]
87
+
88
+ ## Early Progress
89
+ - [Key decisions and work done in the prefix]
90
+
91
+ ## Context for Suffix
92
+ - [Information needed to understand the retained recent work]
93
+
94
+ Be concise. Focus on what's needed to understand the kept suffix.`;import{serializeConversation as Ae}from"./utils.js";function we(e,t,r,s,n,o,c,i){return le(e,{model:r,customInstructions:s,thinkingLevel:n},(l,f,u)=>N(t,r,l,f,o,c,u),i)}m(we,"compact");async function le(e,t,r,s){const{model:n,customInstructions:o,thinkingLevel:c}=t,{messagesToSummarize:i,turnPrefixMessages:l,retainedTail:f,isSplitTurn:u,tokensBefore:h,previousSummary:p,fileOps:a,settings:d}=e;let y,g;if(u&&l.length>0){let T="No prior history.",M;if(i.length>0){const I=await R(i,{model:n,reserveTokens:d.reserveTokens,customInstructions:o,previousSummary:p,thinkingLevel:c},r,s);if(!I.ok)return x(I.error);T=I.value.text,M=I.value.usage}const v=await fe(l,n,d.reserveTokens,c,r,s);if(!v.ok)return x(v.error);y=`${T}
95
+
96
+ ---
97
+
98
+ **Turn Context (split turn):**
99
+
100
+ ${v.value.text}`,g=M?G(M,v.value.usage):v.value.usage}else{const T=await R(i,{model:n,reserveTokens:d.reserveTokens,customInstructions:o,previousSummary:p,thinkingLevel:c},r,s);if(!T.ok)return x(T.error);y=T.value.text,g=T.value.usage}const{readFiles:S,modifiedFiles:A}=Z(a);return y+=j(S,A),k({summary:y,tokensBefore:h,usage:g,retainedTail:f,details:{readFiles:S,modifiedFiles:A}})}m(le,"compactWithRequest");async function fe(e,t,r,s,n,o){const c=Math.min(Math.floor(.5*r),t.maxTokens>0?t.maxTokens:Number.POSITIVE_INFINITY),i=O(e),u=[{role:"user",content:[{type:"text",text:`<conversation>
101
+ ${F(i)}
102
+ </conversation>
103
+
104
+ ${me}`}],timestamp:Date.now()}],h=t.reasoning&&s&&s!=="off"?{maxTokens:c,reasoning:s}:{maxTokens:c},p=await n({systemPrompt:$,messages:u},w(h,o),o);return p.stopReason==="aborted"?x(new b("aborted",p.errorMessage||"Turn prefix summarization aborted")):p.stopReason==="error"?x(new b("summarization_failed",`Turn prefix summarization failed: ${p.errorMessage||"Unknown error"}`)):k({text:E(p.content),usage:p.usage})}m(fe,"generateTurnPrefixSummary");export{Se as DEFAULT_COMPACTION_SETTINGS,$ as SUMMARIZATION_SYSTEM_PROMPT,_ as calculateContextTokens,we as compact,le as compactWithRequest,N as completeSimpleWithRetries,w as createSummaryRequestOptions,ne as estimateContextTokens,C as estimateTokens,ae as findCutPoint,oe as findTurnStartIndex,Me as generateSummary,R as generateSummaryWithRequest,ue as generateSummaryWithUsage,Ie as getLastAssistantUsage,Pe as prepareCompaction,Ae as serializeConversation,be as shouldCompact};
@@ -0,0 +1,16 @@
1
+ var d=Object.defineProperty;var r=(t,e)=>d(t,"name",{value:e,configurable:!0});import{contentText as c}from"@earendil-works/pi-ai";function $(){return{read:new Set,written:new Set,edited:new Set}}r($,"createFileOps");function S(t,e){if(t.role==="assistant"&&!(!("content"in t)||!Array.isArray(t.content)))for(const n of t.content){if(typeof n!="object"||n===null||!("type"in n)||n.type!=="toolCall"||!("arguments"in n)||!("name"in n))continue;const o=n.arguments;if(!o)continue;const i=typeof o.path=="string"?o.path:void 0;if(i)switch(n.name){case"read":e.read.add(i);break;case"write":e.written.add(i);break;case"edit":e.edited.add(i);break}}}r(S,"extractFileOpsFromMessage");function j(t){const e=new Set([...t.edited,...t.written]),n=[...t.read].filter(i=>!e.has(i)).sort(),o=[...e].sort();return{readFiles:n,modifiedFiles:o}}r(j,"computeFileLists");function k(t,e){const n=[];return t.length>0&&n.push(`<read-files>
2
+ ${t.join(`
3
+ `)}
4
+ </read-files>`),e.length>0&&n.push(`<modified-files>
5
+ ${e.join(`
6
+ `)}
7
+ </modified-files>`),n.length===0?"":`
8
+
9
+ ${n.join(`
10
+
11
+ `)}`}r(k,"formatFileOperations");const p=2e3;function h(t){try{return JSON.stringify(t)??"undefined"}catch{return"[unserializable]"}}r(h,"safeJsonStringify");function g(t,e){if(t.length<=e)return t;const n=t.length-e;return`${t.slice(0,e)}
12
+
13
+ [... ${n} more characters truncated]`}r(g,"truncateForSummary");function w(t){const e=[];for(const n of t)if(n.role==="user"){const o=c(n.content,"");o&&e.push(`[User]: ${o}`)}else if(n.role==="assistant"){const o=[],i=[];for(const s of n.content)if(s.type==="thinking")o.push(s.thinking);else if(s.type==="toolCall"){const a=s.arguments,f=Object.entries(a).map(([u,l])=>`${u}=${h(l)}`).join(", ");i.push(`${s.name}(${f})`)}o.length>0&&e.push(`[Assistant thinking]: ${o.join(`
14
+ `)}`),n.content.some(s=>s.type==="text")&&e.push(`[Assistant]: ${c(n.content)}`),i.length>0&&e.push(`[Assistant tool calls]: ${i.join("; ")}`)}else if(n.role==="toolResult"){const o=c(n.content,"");o&&e.push(`[Tool result]: ${g(o,p)}`)}return e.join(`
15
+
16
+ `)}r(w,"serializeConversation");export{j as computeFileLists,$ as createFileOps,S as extractFileOpsFromMessage,k as formatFileOperations,w as serializeConversation};
@@ -0,0 +1 @@
1
+ var r=Object.defineProperty;var a=(e,n)=>r(e,"name",{value:n,configurable:!0});import{DEFAULT_MAX_AGENT_RETRY_DELAY_MS as s}from"@earendil-works/pi-ai";const m={enabled:!0,maxRetries:3,baseDelayMs:1e3,maxAgentDelayMs:s};function f(e){const n=new Set;for(const t of e){if(n.has(t.name))throw new TypeError(`Duplicate tool name: ${JSON.stringify(t.name)}`);n.add(t.name)}}a(f,"validateToolNames");function u(e){if(!Number.isSafeInteger(e.maxRetries)||e.maxRetries<0||e.maxRetries===Number.MAX_SAFE_INTEGER||!Number.isSafeInteger(e.baseDelayMs)||e.baseDelayMs<0||e.maxAgentDelayMs!==void 0&&(!Number.isSafeInteger(e.maxAgentDelayMs)||e.maxAgentDelayMs<0))throw new RangeError("Retry policy values must be finite non-negative safe integers")}a(u,"validateRetryPolicy");function R(e){if(!Number.isSafeInteger(e.reserveTokens)||e.reserveTokens<0||!Number.isSafeInteger(e.keepRecentTokens)||e.keepRecentTokens<0)throw new RangeError("Compaction token counts must be finite non-negative safe integers")}a(R,"validateCompactionSettings");export{m as DEFAULT_RETRY_POLICY,R as validateCompactionSettings,u as validateRetryPolicy,f as validateToolNames};
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var o=(t,e)=>i(t,"name",{value:e,configurable:!0});import{awaitWithContext as C,BACKGROUND_CONTEXT as E,createContextKey as r,TODO_CONTEXT as x,withAbortSignal as O,withCancel as a,withContextValue as n,withoutAbortSignal as l}from"@earendil-works/chord/context";import{NOOP_TELEMETRY_CONTEXT as m}from"@earendil-works/pi-telemetry";const T=r("pi.telemetryContext");function w(t){return t.value(T)??m}o(w,"getTelemetryContext");function N(t,e){return n(T,t,e)}o(N,"withTelemetryContext");export{E as BACKGROUND_CONTEXT,x as TODO_CONTEXT,C as awaitWithContext,r as createContextKey,w as getTelemetryContext,O as withAbortSignal,a as withCancel,n as withContextValue,N as withTelemetryContext,l as withoutAbortSignal};