opensec-pi-subagents 0.19.1 → 0.20.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 +44 -0
  2. package/LICENSE +202 -21
  3. package/NOTICE +58 -0
  4. package/README.md +116 -976
  5. package/SECURITY.md +5 -5
  6. package/dist-bun/core.cjs +13136 -0
  7. package/dist-bun/index.js +31 -0
  8. package/docs/workflows.md +3 -3
  9. package/package.json +35 -38
  10. package/CONTRIBUTING.md +0 -72
  11. package/dist/abortable.d.ts +0 -12
  12. package/dist/abortable.js +0 -42
  13. package/dist/agent-color.d.ts +0 -35
  14. package/dist/agent-color.js +0 -123
  15. package/dist/agent-file-toggle.d.ts +0 -125
  16. package/dist/agent-file-toggle.js +0 -258
  17. package/dist/agent-manager.d.ts +0 -472
  18. package/dist/agent-manager.js +0 -1338
  19. package/dist/agent-runner.d.ts +0 -302
  20. package/dist/agent-runner.js +0 -1004
  21. package/dist/agent-types.d.ts +0 -119
  22. package/dist/agent-types.js +0 -286
  23. package/dist/child-context.d.ts +0 -2
  24. package/dist/child-context.js +0 -12
  25. package/dist/context.d.ts +0 -12
  26. package/dist/context.js +0 -56
  27. package/dist/cross-extension-rpc.d.ts +0 -66
  28. package/dist/cross-extension-rpc.js +0 -138
  29. package/dist/custom-agents.d.ts +0 -54
  30. package/dist/custom-agents.js +0 -308
  31. package/dist/default-agents.d.ts +0 -7
  32. package/dist/default-agents.js +0 -119
  33. package/dist/enabled-models.d.ts +0 -49
  34. package/dist/enabled-models.js +0 -145
  35. package/dist/env.d.ts +0 -6
  36. package/dist/env.js +0 -28
  37. package/dist/group-join.d.ts +0 -32
  38. package/dist/group-join.js +0 -116
  39. package/dist/index.d.ts +0 -50
  40. package/dist/index.js +0 -3679
  41. package/dist/invocation-config.d.ts +0 -107
  42. package/dist/invocation-config.js +0 -83
  43. package/dist/memory.d.ts +0 -53
  44. package/dist/memory.js +0 -165
  45. package/dist/mention-clone.d.ts +0 -87
  46. package/dist/mention-clone.js +0 -153
  47. package/dist/mention.d.ts +0 -81
  48. package/dist/mention.js +0 -131
  49. package/dist/model-resolver.d.ts +0 -36
  50. package/dist/model-resolver.js +0 -95
  51. package/dist/model-scope.d.ts +0 -49
  52. package/dist/model-scope.js +0 -48
  53. package/dist/nested-tools.d.ts +0 -55
  54. package/dist/nested-tools.js +0 -299
  55. package/dist/output-file.d.ts +0 -43
  56. package/dist/output-file.js +0 -142
  57. package/dist/prompts.d.ts +0 -55
  58. package/dist/prompts.js +0 -91
  59. package/dist/schedule-store.d.ts +0 -38
  60. package/dist/schedule-store.js +0 -155
  61. package/dist/schedule.d.ts +0 -109
  62. package/dist/schedule.js +0 -359
  63. package/dist/settings.d.ts +0 -360
  64. package/dist/settings.js +0 -251
  65. package/dist/skill-loader.d.ts +0 -24
  66. package/dist/skill-loader.js +0 -93
  67. package/dist/status-note.d.ts +0 -61
  68. package/dist/status-note.js +0 -85
  69. package/dist/structured-output.d.ts +0 -61
  70. package/dist/structured-output.js +0 -112
  71. package/dist/types.d.ts +0 -365
  72. package/dist/types.js +0 -5
  73. package/dist/ui/agent-mention.d.ts +0 -82
  74. package/dist/ui/agent-mention.js +0 -187
  75. package/dist/ui/agent-widget.d.ts +0 -217
  76. package/dist/ui/agent-widget.js +0 -585
  77. package/dist/ui/conversation-viewer.d.ts +0 -120
  78. package/dist/ui/conversation-viewer.js +0 -578
  79. package/dist/ui/fleet-list.d.ts +0 -195
  80. package/dist/ui/fleet-list.js +0 -471
  81. package/dist/ui/schedule-menu.d.ts +0 -16
  82. package/dist/ui/schedule-menu.js +0 -94
  83. package/dist/ui/select-item.d.ts +0 -27
  84. package/dist/ui/select-item.js +0 -34
  85. package/dist/ui/viewer-keys.d.ts +0 -20
  86. package/dist/ui/viewer-keys.js +0 -17
  87. package/dist/ui/workflow-card.d.ts +0 -175
  88. package/dist/ui/workflow-card.js +0 -332
  89. package/dist/ui/workflow-dialog.d.ts +0 -305
  90. package/dist/ui/workflow-dialog.js +0 -843
  91. package/dist/ui/workflow-menu.d.ts +0 -60
  92. package/dist/ui/workflow-menu.js +0 -147
  93. package/dist/usage.d.ts +0 -135
  94. package/dist/usage.js +0 -120
  95. package/dist/workflow/collisions.d.ts +0 -93
  96. package/dist/workflow/collisions.js +0 -85
  97. package/dist/workflow/entry.d.ts +0 -32
  98. package/dist/workflow/entry.js +0 -29
  99. package/dist/workflow/host.d.ts +0 -62
  100. package/dist/workflow/host.js +0 -362
  101. package/dist/workflow/journal.d.ts +0 -97
  102. package/dist/workflow/journal.js +0 -120
  103. package/dist/workflow/json-schema.d.ts +0 -51
  104. package/dist/workflow/json-schema.js +0 -111
  105. package/dist/workflow/meta.d.ts +0 -67
  106. package/dist/workflow/meta.js +0 -317
  107. package/dist/workflow/progress.d.ts +0 -224
  108. package/dist/workflow/progress.js +0 -361
  109. package/dist/workflow/runtime.d.ts +0 -334
  110. package/dist/workflow/runtime.js +0 -830
  111. package/dist/workflow/saved.d.ts +0 -90
  112. package/dist/workflow/saved.js +0 -203
  113. package/dist/workflow/task.d.ts +0 -136
  114. package/dist/workflow/task.js +0 -207
  115. package/dist/workflow/tool-description.d.ts +0 -38
  116. package/dist/workflow/tool-description.js +0 -199
  117. package/dist/workflow/worker-source.d.ts +0 -47
  118. package/dist/workflow/worker-source.js +0 -778
  119. package/dist/worktree.d.ts +0 -52
  120. package/dist/worktree.js +0 -164
  121. package/dist/xml.d.ts +0 -10
  122. package/dist/xml.js +0 -12
  123. package/src/abortable.ts +0 -43
  124. package/src/agent-color.ts +0 -161
  125. package/src/agent-file-toggle.ts +0 -269
  126. package/src/agent-manager.ts +0 -1581
  127. package/src/agent-runner.ts +0 -1247
  128. package/src/agent-types.ts +0 -346
  129. package/src/child-context.ts +0 -15
  130. package/src/context.ts +0 -58
  131. package/src/cross-extension-rpc.ts +0 -198
  132. package/src/custom-agents.ts +0 -324
  133. package/src/default-agents.ts +0 -123
  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 -587
  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,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.20.0] - 2026-10-04
11
+
12
+ First public release of OpenSec's Bun build, under the Apache License 2.0 (upstream notices in NOTICE). The code is
13
+ that of the Bun build below; the package is renamed `opensec-pi-subagents` and installs with
14
+ `pi-bolt install npm:opensec-pi-subagents`.
15
+
16
+ ## [0.19.5] - 2026-10-03 (Bun build)
17
+
18
+ ### Fixed
19
+ - **Schedules longer than ~24.8 days** fired every millisecond (or at once for `+30d` / far ISO times), each fire spawning an agent past `maxConcurrent`. Long delays now run on chained timers; intervals must be at least 1 minute (capped at `3650d`), and a fire is skipped while the job's previous agent is still queued or running.
20
+ - **Worktree work lost** when `git status` or `rev-parse` timed out or failed: the worktree is now removed only when status succeeded, was empty and HEAD is unchanged; anything else keeps it and names its path. Preservation commits run with `commit.gpgsign=false`; worktrees live in a private `0700` temp dir.
21
+ - **Quitting during a worktree agent** no longer strands its changes: shutdown waits (up to 15 s) for stopped agents to save them. A failed agent's result now says where its changes went.
22
+ - **Stopping an agent before its session existed** was lost and the agent ran to completion; it is now aborted before the first prompt.
23
+ - **`ext:` tool narrowing** is now enforced on Pi 1.0 deferred/codemode tool-to-tool calls too.
24
+ - `get_subagent_result` with `wait: true` no longer reports "still running" while the worktree is being created.
25
+ - A corrupt schedule file is kept as `.corrupt` instead of overwritten; the scheduler re-checks the session after croner loads.
26
+ - **Workflows:** an async expression in `meta` could freeze Pi forever (also while the call was still streaming); the call-line name cache grew with every streamed prefix (~1 GB for a 95 KB script); a `log()` flood crashed progress handling; children of a finished run kept running; a paused run could be resumed while alive; script paths that are not regular files (FIFO, `/dev/zero`) blocked or exhausted memory; schema `pattern`s with nested quantifiers are refused; top-level script errors name the script line.
27
+ - **Terminal escapes** (OSC 52 clipboard writes, screen clears, CR) in child output, gate output and logs are stripped before rendering.
28
+ - The agents widget timer is stopped on session shutdown.
29
+
30
+ ### Changed
31
+ - Workflow scripts are documented as running with full host access: the vm is not a sandbox.
32
+ - Refuses to load next to another extension built on this code that registers the same tools and events; the first one loaded stays active and the other warns once.
33
+ - A canceled session switch no longer stops the scheduler; a foreground resume is stoppable (fresh abort controller, parent-signal wiring).
34
+
35
+ ## [0.19.4] - 2026-10-02 (Bun build)
36
+
37
+ The Bun build. Same tools, commands, settings and file locations as 0.19.4.
38
+
39
+ ### Changed
40
+ - 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.
41
+
42
+ ### Fixed
43
+ - 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.
44
+ - `@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.
45
+ - Subagent transcripts (`.output` files) on Pi 1.0 duplicated the prompt and recorded system messages as `toolResult` entries.
46
+ - Workflow script line numbers in stack traces were one line off on Bun.
47
+ - 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.
48
+
49
+ ## [0.19.2] - 2026-09-26
50
+
51
+ ### Changed
52
+ - **Cache unchanged subagent discovery and configuration.** Directory listings, parsed agent files, and parsed subagent settings are reused after metadata validation on each load. Changes invalidate the cache without a timer; sessions, extension initialization, tools, skills, model, and thinking inheritance remain unchanged.
53
+
10
54
  ## [0.19.0] - 2026-08-25
11
55
 
12
56
  > **⚠️ Breaking — this release requires pi 0.84.0 or newer** (`peerDependencies` moves from `>=0.81.0`). `SubagentWorkflow` needs two host APIs that do not exist below it, and both fail the typecheck rather than degrading quietly — see the `Changed` entry below for which, and why neither was worth reimplementing to hold the old floor. npm flags an older pi at install time.
package/LICENSE CHANGED
@@ -1,21 +1,202 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 tintinweb
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,58 @@
1
+ OpenSec Subagents for Pi (opensec-pi-subagents)
2
+ Copyright 2026 OpenSec
3
+
4
+ Licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ This product includes software developed by others, under the licences below.
7
+
8
+ --------------------------------------------------------------------------------
9
+ @tintinweb/pi-subagents (https://github.com/tintinweb/pi-subagents)
10
+ This package is a modified version of it.
11
+
12
+ MIT License
13
+
14
+ Copyright (c) 2026 tintinweb
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the "Software"), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all
24
+ copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ SOFTWARE.
33
+
34
+ --------------------------------------------------------------------------------
35
+ croner 10.0.1 (https://github.com/hexagon/croner), bundled in dist-bun/core.cjs
36
+
37
+ The MIT License (MIT)
38
+
39
+ Copyright (c) 2015-2021 Hexagon <github.com/Hexagon>
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ of this software and associated documentation files (the "Software"), to deal
43
+ in the Software without restriction, including without limitation the rights
44
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ copies of the Software, and to permit persons to whom the Software is
46
+ furnished to do so, subject to the following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be included in all
49
+ copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ SOFTWARE.
58
+