@kushalkhemka/opensec-pi-subagents 0.19.2 → 0.19.4-bun.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +25 -986
  3. package/SECURITY.md +4 -4
  4. package/dist-bun/core.cjs +12607 -0
  5. package/dist-bun/index.js +31 -0
  6. package/package.json +30 -22
  7. package/CONTRIBUTING.md +0 -72
  8. package/dist/abortable.d.ts +0 -12
  9. package/dist/abortable.js +0 -42
  10. package/dist/agent-color.d.ts +0 -35
  11. package/dist/agent-color.js +0 -123
  12. package/dist/agent-file-toggle.d.ts +0 -125
  13. package/dist/agent-file-toggle.js +0 -258
  14. package/dist/agent-manager.d.ts +0 -472
  15. package/dist/agent-manager.js +0 -1338
  16. package/dist/agent-runner.d.ts +0 -302
  17. package/dist/agent-runner.js +0 -1004
  18. package/dist/agent-types.d.ts +0 -119
  19. package/dist/agent-types.js +0 -286
  20. package/dist/child-context.d.ts +0 -2
  21. package/dist/child-context.js +0 -12
  22. package/dist/context.d.ts +0 -12
  23. package/dist/context.js +0 -56
  24. package/dist/cross-extension-rpc.d.ts +0 -66
  25. package/dist/cross-extension-rpc.js +0 -138
  26. package/dist/custom-agents.d.ts +0 -54
  27. package/dist/custom-agents.js +0 -311
  28. package/dist/default-agents.d.ts +0 -7
  29. package/dist/default-agents.js +0 -119
  30. package/dist/discovery-cache.d.ts +0 -6
  31. package/dist/discovery-cache.js +0 -42
  32. package/dist/enabled-models.d.ts +0 -49
  33. package/dist/enabled-models.js +0 -145
  34. package/dist/env.d.ts +0 -6
  35. package/dist/env.js +0 -28
  36. package/dist/group-join.d.ts +0 -32
  37. package/dist/group-join.js +0 -116
  38. package/dist/index.d.ts +0 -50
  39. package/dist/index.js +0 -3679
  40. package/dist/invocation-config.d.ts +0 -107
  41. package/dist/invocation-config.js +0 -83
  42. package/dist/memory.d.ts +0 -53
  43. package/dist/memory.js +0 -165
  44. package/dist/mention-clone.d.ts +0 -87
  45. package/dist/mention-clone.js +0 -153
  46. package/dist/mention.d.ts +0 -81
  47. package/dist/mention.js +0 -131
  48. package/dist/model-resolver.d.ts +0 -36
  49. package/dist/model-resolver.js +0 -95
  50. package/dist/model-scope.d.ts +0 -49
  51. package/dist/model-scope.js +0 -48
  52. package/dist/nested-tools.d.ts +0 -55
  53. package/dist/nested-tools.js +0 -299
  54. package/dist/output-file.d.ts +0 -43
  55. package/dist/output-file.js +0 -142
  56. package/dist/prompts.d.ts +0 -55
  57. package/dist/prompts.js +0 -91
  58. package/dist/schedule-store.d.ts +0 -38
  59. package/dist/schedule-store.js +0 -155
  60. package/dist/schedule.d.ts +0 -109
  61. package/dist/schedule.js +0 -359
  62. package/dist/settings.d.ts +0 -360
  63. package/dist/settings.js +0 -253
  64. package/dist/skill-loader.d.ts +0 -24
  65. package/dist/skill-loader.js +0 -93
  66. package/dist/status-note.d.ts +0 -61
  67. package/dist/status-note.js +0 -85
  68. package/dist/structured-output.d.ts +0 -61
  69. package/dist/structured-output.js +0 -112
  70. package/dist/types.d.ts +0 -365
  71. package/dist/types.js +0 -5
  72. package/dist/ui/agent-mention.d.ts +0 -82
  73. package/dist/ui/agent-mention.js +0 -187
  74. package/dist/ui/agent-widget.d.ts +0 -217
  75. package/dist/ui/agent-widget.js +0 -585
  76. package/dist/ui/conversation-viewer.d.ts +0 -120
  77. package/dist/ui/conversation-viewer.js +0 -578
  78. package/dist/ui/fleet-list.d.ts +0 -195
  79. package/dist/ui/fleet-list.js +0 -471
  80. package/dist/ui/schedule-menu.d.ts +0 -16
  81. package/dist/ui/schedule-menu.js +0 -94
  82. package/dist/ui/select-item.d.ts +0 -27
  83. package/dist/ui/select-item.js +0 -34
  84. package/dist/ui/viewer-keys.d.ts +0 -20
  85. package/dist/ui/viewer-keys.js +0 -17
  86. package/dist/ui/workflow-card.d.ts +0 -175
  87. package/dist/ui/workflow-card.js +0 -332
  88. package/dist/ui/workflow-dialog.d.ts +0 -305
  89. package/dist/ui/workflow-dialog.js +0 -843
  90. package/dist/ui/workflow-menu.d.ts +0 -60
  91. package/dist/ui/workflow-menu.js +0 -147
  92. package/dist/usage.d.ts +0 -135
  93. package/dist/usage.js +0 -120
  94. package/dist/workflow/collisions.d.ts +0 -93
  95. package/dist/workflow/collisions.js +0 -85
  96. package/dist/workflow/entry.d.ts +0 -32
  97. package/dist/workflow/entry.js +0 -29
  98. package/dist/workflow/host.d.ts +0 -62
  99. package/dist/workflow/host.js +0 -362
  100. package/dist/workflow/journal.d.ts +0 -97
  101. package/dist/workflow/journal.js +0 -120
  102. package/dist/workflow/json-schema.d.ts +0 -51
  103. package/dist/workflow/json-schema.js +0 -111
  104. package/dist/workflow/meta.d.ts +0 -67
  105. package/dist/workflow/meta.js +0 -317
  106. package/dist/workflow/progress.d.ts +0 -224
  107. package/dist/workflow/progress.js +0 -361
  108. package/dist/workflow/runtime.d.ts +0 -334
  109. package/dist/workflow/runtime.js +0 -830
  110. package/dist/workflow/saved.d.ts +0 -90
  111. package/dist/workflow/saved.js +0 -203
  112. package/dist/workflow/task.d.ts +0 -136
  113. package/dist/workflow/task.js +0 -207
  114. package/dist/workflow/tool-description.d.ts +0 -38
  115. package/dist/workflow/tool-description.js +0 -199
  116. package/dist/workflow/worker-source.d.ts +0 -47
  117. package/dist/workflow/worker-source.js +0 -778
  118. package/dist/worktree.d.ts +0 -52
  119. package/dist/worktree.js +0 -164
  120. package/dist/xml.d.ts +0 -10
  121. package/dist/xml.js +0 -12
  122. package/src/abortable.ts +0 -43
  123. package/src/agent-color.ts +0 -161
  124. package/src/agent-file-toggle.ts +0 -269
  125. package/src/agent-manager.ts +0 -1581
  126. package/src/agent-runner.ts +0 -1247
  127. package/src/agent-types.ts +0 -346
  128. package/src/child-context.ts +0 -15
  129. package/src/context.ts +0 -58
  130. package/src/cross-extension-rpc.ts +0 -198
  131. package/src/custom-agents.ts +0 -333
  132. package/src/default-agents.ts +0 -123
  133. package/src/discovery-cache.ts +0 -42
  134. package/src/enabled-models.ts +0 -180
  135. package/src/env.ts +0 -33
  136. package/src/group-join.ts +0 -141
  137. package/src/index.ts +0 -3988
  138. package/src/invocation-config.ts +0 -155
  139. package/src/memory.ts +0 -179
  140. package/src/mention-clone.ts +0 -196
  141. package/src/mention.ts +0 -141
  142. package/src/model-resolver.ts +0 -118
  143. package/src/model-scope.ts +0 -70
  144. package/src/nested-tools.ts +0 -422
  145. package/src/output-file.ts +0 -155
  146. package/src/prompts.ts +0 -142
  147. package/src/schedule-store.ts +0 -153
  148. package/src/schedule.ts +0 -386
  149. package/src/settings.ts +0 -593
  150. package/src/skill-loader.ts +0 -102
  151. package/src/status-note.ts +0 -90
  152. package/src/structured-output.ts +0 -130
  153. package/src/types.ts +0 -377
  154. package/src/ui/agent-mention.ts +0 -216
  155. package/src/ui/agent-widget.ts +0 -659
  156. package/src/ui/conversation-viewer.ts +0 -589
  157. package/src/ui/fleet-list.ts +0 -543
  158. package/src/ui/schedule-menu.ts +0 -105
  159. package/src/ui/select-item.ts +0 -45
  160. package/src/ui/viewer-keys.ts +0 -39
  161. package/src/ui/workflow-card.ts +0 -470
  162. package/src/ui/workflow-dialog.ts +0 -1115
  163. package/src/ui/workflow-menu.ts +0 -193
  164. package/src/usage.ts +0 -167
  165. package/src/workflow/collisions.ts +0 -120
  166. package/src/workflow/entry.ts +0 -47
  167. package/src/workflow/host.ts +0 -403
  168. package/src/workflow/journal.ts +0 -164
  169. package/src/workflow/json-schema.ts +0 -128
  170. package/src/workflow/meta.ts +0 -325
  171. package/src/workflow/progress.ts +0 -550
  172. package/src/workflow/runtime.ts +0 -1219
  173. package/src/workflow/saved.ts +0 -217
  174. package/src/workflow/task.ts +0 -302
  175. package/src/workflow/tool-description.ts +0 -200
  176. package/src/workflow/worker-source.ts +0 -781
  177. package/src/worktree.ts +0 -205
  178. package/src/xml.ts +0 -13
package/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.19.4-bun.0] - 2026-10-02
11
+
12
+ Bun build, published on the `bun` dist-tag (`pi install npm:@kushalkhemka/opensec-pi-subagents@bun`). Same tools, commands, settings and file locations as 0.19.4.
13
+
14
+ ### Changed
15
+ - Ships a prebuilt bundle (`dist-bun/`) with no runtime dependencies: a small ESM loader plus the extension as a CommonJS core loaded with Bun's native `require`, so Pi's loader never transpiles it. `nanoid` is replaced by `crypto.getRandomValues` (same id format), journal keys use `Bun.CryptoHasher` (same keys), croner and the workflow engine and inspector are initialized on first use.
16
+
17
+ ### Fixed
18
+ - Scheduling an `Agent` call with a cron expression left a live croner timer behind (validation scheduled a no-op job and never stopped it): `pi -p` never exited, and interactive sessions kept one extra 30 s timer per validation.
19
+ - `@agent` mentions on Pi 1.0: the conversation clone assigned the now read-only `agent.state.systemPrompt`, so every clone failed and every mention fell back to a direct start with a warning. The clone now forces the live prompt per request and carries the conversation as session entries.
20
+ - Subagent transcripts (`.output` files) on Pi 1.0 duplicated the prompt and recorded system messages as `toolResult` entries.
21
+ - Workflow script line numbers in stack traces were one line off on Bun.
22
+ - Worktree isolation deleted an agent's edits when the preservation commit failed (e.g. no git identity configured): the worktree was force-removed and the result reported no changes. The commit is retried with a placeholder author, and work that still cannot be saved keeps its worktree, whose path is named in the result.
23
+
10
24
  ## [0.19.2] - 2026-09-26
11
25
 
12
26
  ### Changed