opensec-pi-subagents 0.19.2 → 0.20.1

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 (182) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/LICENSE +202 -21
  3. package/NOTICE +32 -0
  4. package/README.md +128 -977
  5. package/SECURITY.md +4 -4
  6. package/dist-bun/core.cjs +14820 -0
  7. package/dist-bun/index.js +31 -0
  8. package/docs/workflows.md +13 -6
  9. package/examples/workflows/gated-fix.js +3 -2
  10. package/package.json +28 -39
  11. package/CONTRIBUTING.md +0 -72
  12. package/dist/abortable.d.ts +0 -12
  13. package/dist/abortable.js +0 -42
  14. package/dist/agent-color.d.ts +0 -35
  15. package/dist/agent-color.js +0 -123
  16. package/dist/agent-file-toggle.d.ts +0 -125
  17. package/dist/agent-file-toggle.js +0 -258
  18. package/dist/agent-manager.d.ts +0 -472
  19. package/dist/agent-manager.js +0 -1338
  20. package/dist/agent-runner.d.ts +0 -302
  21. package/dist/agent-runner.js +0 -1004
  22. package/dist/agent-types.d.ts +0 -119
  23. package/dist/agent-types.js +0 -286
  24. package/dist/child-context.d.ts +0 -2
  25. package/dist/child-context.js +0 -12
  26. package/dist/context.d.ts +0 -12
  27. package/dist/context.js +0 -56
  28. package/dist/cross-extension-rpc.d.ts +0 -66
  29. package/dist/cross-extension-rpc.js +0 -138
  30. package/dist/custom-agents.d.ts +0 -54
  31. package/dist/custom-agents.js +0 -311
  32. package/dist/default-agents.d.ts +0 -7
  33. package/dist/default-agents.js +0 -119
  34. package/dist/discovery-cache.d.ts +0 -6
  35. package/dist/discovery-cache.js +0 -42
  36. package/dist/enabled-models.d.ts +0 -49
  37. package/dist/enabled-models.js +0 -145
  38. package/dist/env.d.ts +0 -6
  39. package/dist/env.js +0 -28
  40. package/dist/group-join.d.ts +0 -32
  41. package/dist/group-join.js +0 -116
  42. package/dist/index.d.ts +0 -50
  43. package/dist/index.js +0 -3679
  44. package/dist/invocation-config.d.ts +0 -107
  45. package/dist/invocation-config.js +0 -83
  46. package/dist/memory.d.ts +0 -53
  47. package/dist/memory.js +0 -165
  48. package/dist/mention-clone.d.ts +0 -87
  49. package/dist/mention-clone.js +0 -153
  50. package/dist/mention.d.ts +0 -81
  51. package/dist/mention.js +0 -131
  52. package/dist/model-resolver.d.ts +0 -36
  53. package/dist/model-resolver.js +0 -95
  54. package/dist/model-scope.d.ts +0 -49
  55. package/dist/model-scope.js +0 -48
  56. package/dist/nested-tools.d.ts +0 -55
  57. package/dist/nested-tools.js +0 -299
  58. package/dist/output-file.d.ts +0 -43
  59. package/dist/output-file.js +0 -142
  60. package/dist/prompts.d.ts +0 -55
  61. package/dist/prompts.js +0 -91
  62. package/dist/schedule-store.d.ts +0 -38
  63. package/dist/schedule-store.js +0 -155
  64. package/dist/schedule.d.ts +0 -109
  65. package/dist/schedule.js +0 -359
  66. package/dist/settings.d.ts +0 -360
  67. package/dist/settings.js +0 -253
  68. package/dist/skill-loader.d.ts +0 -24
  69. package/dist/skill-loader.js +0 -93
  70. package/dist/status-note.d.ts +0 -61
  71. package/dist/status-note.js +0 -85
  72. package/dist/structured-output.d.ts +0 -61
  73. package/dist/structured-output.js +0 -112
  74. package/dist/types.d.ts +0 -365
  75. package/dist/types.js +0 -5
  76. package/dist/ui/agent-mention.d.ts +0 -82
  77. package/dist/ui/agent-mention.js +0 -187
  78. package/dist/ui/agent-widget.d.ts +0 -217
  79. package/dist/ui/agent-widget.js +0 -585
  80. package/dist/ui/conversation-viewer.d.ts +0 -120
  81. package/dist/ui/conversation-viewer.js +0 -578
  82. package/dist/ui/fleet-list.d.ts +0 -195
  83. package/dist/ui/fleet-list.js +0 -471
  84. package/dist/ui/schedule-menu.d.ts +0 -16
  85. package/dist/ui/schedule-menu.js +0 -94
  86. package/dist/ui/select-item.d.ts +0 -27
  87. package/dist/ui/select-item.js +0 -34
  88. package/dist/ui/viewer-keys.d.ts +0 -20
  89. package/dist/ui/viewer-keys.js +0 -17
  90. package/dist/ui/workflow-card.d.ts +0 -175
  91. package/dist/ui/workflow-card.js +0 -332
  92. package/dist/ui/workflow-dialog.d.ts +0 -305
  93. package/dist/ui/workflow-dialog.js +0 -843
  94. package/dist/ui/workflow-menu.d.ts +0 -60
  95. package/dist/ui/workflow-menu.js +0 -147
  96. package/dist/usage.d.ts +0 -135
  97. package/dist/usage.js +0 -120
  98. package/dist/workflow/collisions.d.ts +0 -93
  99. package/dist/workflow/collisions.js +0 -85
  100. package/dist/workflow/entry.d.ts +0 -32
  101. package/dist/workflow/entry.js +0 -29
  102. package/dist/workflow/host.d.ts +0 -62
  103. package/dist/workflow/host.js +0 -362
  104. package/dist/workflow/journal.d.ts +0 -97
  105. package/dist/workflow/journal.js +0 -120
  106. package/dist/workflow/json-schema.d.ts +0 -51
  107. package/dist/workflow/json-schema.js +0 -111
  108. package/dist/workflow/meta.d.ts +0 -67
  109. package/dist/workflow/meta.js +0 -317
  110. package/dist/workflow/progress.d.ts +0 -224
  111. package/dist/workflow/progress.js +0 -361
  112. package/dist/workflow/runtime.d.ts +0 -334
  113. package/dist/workflow/runtime.js +0 -830
  114. package/dist/workflow/saved.d.ts +0 -90
  115. package/dist/workflow/saved.js +0 -203
  116. package/dist/workflow/task.d.ts +0 -136
  117. package/dist/workflow/task.js +0 -207
  118. package/dist/workflow/tool-description.d.ts +0 -38
  119. package/dist/workflow/tool-description.js +0 -199
  120. package/dist/workflow/worker-source.d.ts +0 -47
  121. package/dist/workflow/worker-source.js +0 -778
  122. package/dist/worktree.d.ts +0 -52
  123. package/dist/worktree.js +0 -164
  124. package/dist/xml.d.ts +0 -10
  125. package/dist/xml.js +0 -12
  126. package/src/abortable.ts +0 -43
  127. package/src/agent-color.ts +0 -161
  128. package/src/agent-file-toggle.ts +0 -269
  129. package/src/agent-manager.ts +0 -1581
  130. package/src/agent-runner.ts +0 -1247
  131. package/src/agent-types.ts +0 -346
  132. package/src/child-context.ts +0 -15
  133. package/src/context.ts +0 -58
  134. package/src/cross-extension-rpc.ts +0 -198
  135. package/src/custom-agents.ts +0 -333
  136. package/src/default-agents.ts +0 -123
  137. package/src/discovery-cache.ts +0 -42
  138. package/src/enabled-models.ts +0 -180
  139. package/src/env.ts +0 -33
  140. package/src/group-join.ts +0 -141
  141. package/src/index.ts +0 -3988
  142. package/src/invocation-config.ts +0 -155
  143. package/src/memory.ts +0 -179
  144. package/src/mention-clone.ts +0 -196
  145. package/src/mention.ts +0 -141
  146. package/src/model-resolver.ts +0 -118
  147. package/src/model-scope.ts +0 -70
  148. package/src/nested-tools.ts +0 -422
  149. package/src/output-file.ts +0 -155
  150. package/src/prompts.ts +0 -142
  151. package/src/schedule-store.ts +0 -153
  152. package/src/schedule.ts +0 -386
  153. package/src/settings.ts +0 -593
  154. package/src/skill-loader.ts +0 -102
  155. package/src/status-note.ts +0 -90
  156. package/src/structured-output.ts +0 -130
  157. package/src/types.ts +0 -377
  158. package/src/ui/agent-mention.ts +0 -216
  159. package/src/ui/agent-widget.ts +0 -659
  160. package/src/ui/conversation-viewer.ts +0 -589
  161. package/src/ui/fleet-list.ts +0 -543
  162. package/src/ui/schedule-menu.ts +0 -105
  163. package/src/ui/select-item.ts +0 -45
  164. package/src/ui/viewer-keys.ts +0 -39
  165. package/src/ui/workflow-card.ts +0 -470
  166. package/src/ui/workflow-dialog.ts +0 -1115
  167. package/src/ui/workflow-menu.ts +0 -193
  168. package/src/usage.ts +0 -167
  169. package/src/workflow/collisions.ts +0 -120
  170. package/src/workflow/entry.ts +0 -47
  171. package/src/workflow/host.ts +0 -403
  172. package/src/workflow/journal.ts +0 -164
  173. package/src/workflow/json-schema.ts +0 -128
  174. package/src/workflow/meta.ts +0 -325
  175. package/src/workflow/progress.ts +0 -550
  176. package/src/workflow/runtime.ts +0 -1219
  177. package/src/workflow/saved.ts +0 -217
  178. package/src/workflow/task.ts +0 -302
  179. package/src/workflow/tool-description.ts +0 -200
  180. package/src/workflow/worker-source.ts +0 -781
  181. package/src/worktree.ts +0 -205
  182. package/src/xml.ts +0 -13
package/CHANGELOG.md CHANGED
@@ -7,6 +7,85 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.20.1] - 2026-10-16
11
+
12
+ ### Fixed
13
+
14
+ - **Resume.** A finished, stopped or failed agent stays resumable by the model as long as its session file exists, not 10 minutes: the Agent tool, `@handle`, nested and workflow `agent({resume})` reopen it from the file under the same id, with its own model, thinking level, working directory, worktree and `isolated` setting. Agents are rebuilt after a restart, `/resume`, `/fork` or `/reload`. A worktree agent resumes in its worktree, recreated from its branch. `max_turns`, grace turns and the tool watchdog apply to resumed runs. Foreground results give the model the agent id. A resume waits for a stopped run to finish.
15
+ - **Stopping.** An agent whose tool ignores the abort signal is still stopped: its slot is freed and queued agents start, a foreground call returns, and the watchdog gives up on it instead of waiting forever. Agents stopped while queued or while their worktree is made complete like any other stop.
16
+ - **Crashes.** An `@mention` racing `/new`, `/resume` or `/reload`, an error in a completion handler, and scheduler fires can no longer end Pi's process; the schedule lock no longer blocks Pi.
17
+ - **Project trust.** Subagents follow Pi's decision about a project folder: in an untrusted folder they load none of its extensions or settings, and the extension ignores its agents, skills, workflows and `subagents.json`. A project agent that replaces a built-in is shown.
18
+ - **Explore and Plan** are read-only by their tools (`read`, `grep`, `find`, `ls`), not only by their prompt.
19
+ - **Worktrees.** Cleanup no longer deletes ignored output, nested repositories or stashes while reporting "no changes"; worktrees left by a crash are committed to a `-recovered` branch; workflows report every child's branch. Gate commands and git calls end their whole process tree on a timeout.
20
+ - **Usage.** Workflow resumes are not counted twice; background, workflow and nested spend reaches the parent.
21
+
22
+ ### Performance
23
+
24
+ - The widget and fleet list share one refresh timer, which stops while nothing runs; the transcript viewer builds incrementally (500 messages: 85 ms to 0.6 ms a frame without a JIT); the widget formats only the rows it shows; foreground progress is sent once a frame, not per token; per-tool-call scope checks and git environment checks are cached; finished agents' sessions are released 60 s after they settle; transcript writes are batched.
25
+ - Tests clean up their temporary folders.
26
+
27
+ ## [0.19.11] - 2026-10-07
28
+
29
+ ### Fixed
30
+
31
+ - **The main agent's commands had no time limit either.** Pi's `bash` has no default timeout, so an unbounded `grep -r … /` or a server started in the foreground held the main agent's turn until someone noticed. A main-agent `bash` call that sets no timeout now gets `toolTimeoutSeconds` (default 1200 s, `0` = off) and is killed at it, with the timeout reported to the model. A timeout the main agent supplies, even a longer one, is kept; subagents stay capped at the limit.
32
+
33
+ ## [0.19.10] - 2026-10-07
34
+
35
+ ### Fixed
36
+
37
+ - **A hung tool call held a subagent forever.** Turn limits only count finished turns, and a turn whose tool never returns (a `find /`, a server that never exits) never finishes, so `max_turns` and the grace turns could not stop it. Subagent `bash` calls now get a timeout (the new `toolTimeoutSeconds` setting, default 1200 s, `0` = off): Pi kills the command's whole process tree and the agent sees the timeout and carries on. Any other tool still running a minute past the limit is stopped by a watchdog and the agent is resumed with a note to split the work into bounded steps, up to 3 times per run (nested `Agent` / workflow calls are exempt). Resumed agents get the same protection.
38
+
39
+ ## [0.19.9] - 2026-10-03
40
+
41
+ ### Fixed
42
+
43
+ - **No load warning on Pi 1.0.** `@sinclair/typebox` and `typebox` were listed in `dependencies`, which Pi 1.0 reports as host-provided packages that can bypass its extension loader. They are now optional `"*"` peer dependencies (Pi supplies both on 0.87.1 and 1.0) and stay devDependencies for tests and typecheck.
44
+
45
+ ### Changed
46
+
47
+ - The development pins of `@earendil-works/pi-ai`, `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` move from 0.84.2 to 1.0.0, so `npm test` and `prepublishOnly` run the e2e tests that need Pi 1.0 APIs.
48
+
49
+ ## [0.19.8] - 2026-10-03
50
+
51
+ The Node build now carries the same fixes as the Bun build (0.19.5-bun.x).
52
+
53
+ ### Fixed
54
+ - **Workflows:** an async expression in `meta` could freeze Pi for good (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 still 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.
55
+ - **Terminal escapes** (OSC 52 clipboard writes, screen clears, CR) in child output, gate output and logs are stripped before rendering.
56
+ - **`ext:` tool narrowing** is enforced on Pi 1.0 deferred/codemode tool-to-tool calls too.
57
+ - `get_subagent_result` with `wait: true` no longer reports "still running" while the worktree is being created.
58
+ - A corrupt schedule file is kept as `.corrupt` instead of overwritten, and waiting for the schedule lock no longer spins a core.
59
+ - A canceled session switch no longer stops the scheduler; a foreground resume can be stopped.
60
+ - The agents widget timer stops on session shutdown.
61
+ - Refuses to load next to `opensec-pi-swarm` (same tools and events); the first one loaded stays active and the other warns once.
62
+
63
+ ### Changed
64
+ - Workflow scripts are documented as running with full host access: the vm is not a sandbox.
65
+ - README: pi-bolt users install with `pi-bolt install npm:@kushalkhemka/opensec-pi-subagents@bun`; note on the `~/.pi/agent` directory shared by pi-bolt and Node Pi.
66
+
67
+ ## [0.19.7] - 2026-10-03
68
+
69
+ ### Changed
70
+ - Docs: corrected README facts (Pi compatibility verified on Pi 0.87.1 and 1.0.0). No code changes.
71
+ - License: the package is now proprietary (`UNLICENSED`); LICENSE keeps the upstream MIT notice for the included `@tintinweb/pi-subagents` code.
72
+
73
+ ## [0.19.6] - 2026-10-03
74
+
75
+ ### Changed
76
+ - Docs: README restyle (logo, install for Node and Bun). No code changes.
77
+
78
+ ## [0.19.5] - 2026-10-03
79
+
80
+ ### Fixed
81
+ - **Long schedules no longer fire every millisecond.** Timer delays above 2^31-1 ms (about 24.8 days) are clamped to 1 ms, so a `30d` interval spawned an agent every millisecond (each outside the concurrency queue) and a `+30d` or far ISO one-shot fired at once. Schedules now chain timers of at most 24 days. Intervals must be at least `1m` (stored shorter intervals are raised to one minute), intervals and relative delays are capped at `3650d`, and a fire is skipped (`subagents:scheduled` event `skipped`) while the job's previous agent is still running.
82
+ - **Validating a cron schedule no longer leaves a timer running.** Every validation armed a croner job that was never stopped, so `pi -p` never exited once a cron job had been scheduled.
83
+ - **Worktree agents no longer lose their work on a failed cleanup.** With no git identity the preservation commit failed and the worktree was force-removed while reporting no changes; a `git status` or `rev-parse` timeout did the same. The commit now retries with a placeholder author and runs with `commit.gpgsign=false`, and the worktree is removed only when it provably holds nothing; otherwise it is kept and its path reported, also when the agent itself failed. Worktrees are created inside a private (0700) temporary directory.
84
+ - **Quitting waits up to 15 s for stopped worktree agents to save their changes** to a branch, instead of racing the process exit.
85
+ - **A stop that lands before a subagent's session exists is honored.** An abort during startup (or a parent interrupt before a queued agent started) was lost and the agent ran its whole task.
86
+ - **Pi 1.0: `@agent` mentions start the conversation clone again.** Assigning the clone's system prompt threw on Pi 1.0, so every mention fell back to a direct start.
87
+ - **Pi 1.0: subagent transcripts no longer repeat the system prompt or record system messages as tool results.**
88
+
10
89
  ## [0.19.2] - 2026-09-26
11
90
 
12
91
  ### Changed
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,32 @@
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.