@herbertgao/pi-extensions 2026.9.8 → 2026.9.10

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 (144) hide show
  1. package/README.md +8 -4
  2. package/THIRD_PARTY_NOTICES.md +52 -0
  3. package/node_modules/@herbertgao/pi-bark/package.json +2 -2
  4. package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +1 -1
  5. package/node_modules/@herbertgao/pi-cc-extensions/README.md +1 -1
  6. package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
  7. package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
  8. package/node_modules/@herbertgao/pi-subagents/README.md +427 -120
  9. package/node_modules/@herbertgao/pi-subagents/docs/rpc.md +184 -0
  10. package/node_modules/@herbertgao/pi-subagents/docs/workflows.md +466 -0
  11. package/node_modules/@herbertgao/pi-subagents/examples/agent-tool-description.md +6 -6
  12. package/node_modules/@herbertgao/pi-subagents/examples/workflows/compose.js +52 -0
  13. package/node_modules/@herbertgao/pi-subagents/examples/workflows/fan-out-audit.js +56 -0
  14. package/node_modules/@herbertgao/pi-subagents/examples/workflows/gated-fix.js +60 -0
  15. package/node_modules/@herbertgao/pi-subagents/examples/workflows/lib/count-child.js +30 -0
  16. package/node_modules/@herbertgao/pi-subagents/examples/workflows/review-panel.js +68 -0
  17. package/node_modules/@herbertgao/pi-subagents/examples/workflows/structured-findings.js +81 -0
  18. package/node_modules/@herbertgao/pi-subagents/package.json +11 -9
  19. package/node_modules/@herbertgao/pi-subagents/src/agent-file-toggle.ts +52 -12
  20. package/node_modules/@herbertgao/pi-subagents/src/agent-manager.ts +837 -146
  21. package/node_modules/@herbertgao/pi-subagents/src/agent-runner.ts +213 -39
  22. package/node_modules/@herbertgao/pi-subagents/src/cross-extension-rpc.ts +73 -14
  23. package/node_modules/@herbertgao/pi-subagents/src/custom-agents.ts +101 -47
  24. package/node_modules/@herbertgao/pi-subagents/src/index.ts +2249 -914
  25. package/node_modules/@herbertgao/pi-subagents/src/invocation-config.ts +13 -0
  26. package/node_modules/@herbertgao/pi-subagents/src/mention-clone.ts +215 -0
  27. package/node_modules/@herbertgao/pi-subagents/src/mention.ts +147 -0
  28. package/node_modules/@herbertgao/pi-subagents/src/model-resolver.ts +9 -1
  29. package/node_modules/@herbertgao/pi-subagents/src/nested-tools.ts +40 -26
  30. package/node_modules/@herbertgao/pi-subagents/src/output-file.ts +18 -8
  31. package/node_modules/@herbertgao/pi-subagents/src/prompts.ts +46 -9
  32. package/node_modules/@herbertgao/pi-subagents/src/schedule.ts +21 -16
  33. package/node_modules/@herbertgao/pi-subagents/src/settings.ts +137 -7
  34. package/node_modules/@herbertgao/pi-subagents/src/structured-output.ts +136 -0
  35. package/node_modules/@herbertgao/pi-subagents/src/types.ts +126 -8
  36. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-mention.ts +274 -0
  37. package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +20 -5
  38. package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +10 -4
  39. package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +167 -22
  40. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-card.ts +555 -0
  41. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-dialog.ts +1304 -0
  42. package/node_modules/@herbertgao/pi-subagents/src/ui/workflow-menu.ts +226 -0
  43. package/node_modules/@herbertgao/pi-subagents/src/workflow/collisions.ts +122 -0
  44. package/node_modules/@herbertgao/pi-subagents/src/workflow/entry.ts +47 -0
  45. package/node_modules/@herbertgao/pi-subagents/src/workflow/host.ts +463 -0
  46. package/node_modules/@herbertgao/pi-subagents/src/workflow/journal.ts +164 -0
  47. package/node_modules/@herbertgao/pi-subagents/src/workflow/json-schema.ts +142 -0
  48. package/node_modules/@herbertgao/pi-subagents/src/workflow/meta.ts +401 -0
  49. package/node_modules/@herbertgao/pi-subagents/src/workflow/progress.ts +622 -0
  50. package/node_modules/@herbertgao/pi-subagents/src/workflow/runtime.ts +1399 -0
  51. package/node_modules/@herbertgao/pi-subagents/src/workflow/saved.ts +230 -0
  52. package/node_modules/@herbertgao/pi-subagents/src/workflow/task.ts +333 -0
  53. package/node_modules/@herbertgao/pi-subagents/src/workflow/tool-description.ts +200 -0
  54. package/node_modules/@herbertgao/pi-subagents/src/workflow/worker-source.ts +781 -0
  55. package/node_modules/@herbertgao/pi-subagents/src/worktree.ts +97 -95
  56. package/node_modules/@herbertgao/pi-subagents/src/xml.ts +13 -0
  57. package/node_modules/@herbertgao/resume-from/package.json +2 -2
  58. package/node_modules/@narumitw/pi-btw/README.md +6 -1
  59. package/node_modules/@narumitw/pi-btw/dist/index.ts +209 -23
  60. package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
  61. package/node_modules/@narumitw/pi-btw/package.json +1 -1
  62. package/node_modules/@narumitw/pi-btw/src/btw.ts +1 -12
  63. package/node_modules/@narumitw/pi-btw/src/menu.ts +244 -15
  64. package/node_modules/@narumitw/pi-btw/src/settings.ts +5 -0
  65. package/node_modules/pi-jev-auto-mode/CHANGELOG.md +110 -0
  66. package/node_modules/pi-jev-auto-mode/LICENSE +21 -0
  67. package/node_modules/pi-jev-auto-mode/README.md +285 -0
  68. package/node_modules/pi-jev-auto-mode/SECURITY.md +32 -0
  69. package/node_modules/pi-jev-auto-mode/docs/calibration.md +154 -0
  70. package/node_modules/pi-jev-auto-mode/docs/design.md +164 -0
  71. package/node_modules/pi-jev-auto-mode/docs/security.md +124 -0
  72. package/node_modules/pi-jev-auto-mode/index.ts +1 -0
  73. package/node_modules/pi-jev-auto-mode/package.json +72 -0
  74. package/node_modules/pi-jev-auto-mode/src/call.ts +180 -0
  75. package/node_modules/pi-jev-auto-mode/src/decide.ts +86 -0
  76. package/node_modules/pi-jev-auto-mode/src/extension.ts +862 -0
  77. package/node_modules/pi-jev-auto-mode/src/intent.ts +71 -0
  78. package/node_modules/pi-jev-auto-mode/src/jev/availability.ts +53 -0
  79. package/node_modules/pi-jev-auto-mode/src/jev/criteria.ts +19 -0
  80. package/node_modules/pi-jev-auto-mode/src/jev/decide.ts +187 -0
  81. package/node_modules/pi-jev-auto-mode/src/jev/engine.ts +165 -0
  82. package/node_modules/pi-jev-auto-mode/src/jev/index.ts +20 -0
  83. package/node_modules/pi-jev-auto-mode/src/jev/questions.ts +273 -0
  84. package/node_modules/pi-jev-auto-mode/src/jev/response.ts +64 -0
  85. package/node_modules/pi-jev-auto-mode/src/jev/state.ts +20 -0
  86. package/node_modules/pi-jev-auto-mode/src/jev/transport.ts +117 -0
  87. package/node_modules/pi-jev-auto-mode/src/jev/types.ts +46 -0
  88. package/node_modules/pi-jev-auto-mode/src/policy.ts +558 -0
  89. package/node_modules/pi-jev-auto-mode/src/records.ts +118 -0
  90. package/node_modules/pi-jev-auto-mode/src/settings.ts +327 -0
  91. package/node_modules/pi-jev-auto-mode/src/ui.ts +233 -0
  92. package/node_modules/pi-lens/CHANGELOG.md +45 -0
  93. package/node_modules/pi-lens/dist/clients/actionable-warnings.js +21 -9
  94. package/node_modules/pi-lens/dist/clients/cascade-format.js +24 -0
  95. package/node_modules/pi-lens/dist/clients/extension-log.js +48 -1
  96. package/node_modules/pi-lens/dist/clients/finding-delivery-gate.js +11 -12
  97. package/node_modules/pi-lens/dist/clients/lsp/cascade-tier.js +3 -0
  98. package/node_modules/pi-lens/dist/clients/lsp/index.js +41 -7
  99. package/node_modules/pi-lens/dist/clients/mcp/analyze.js +9 -2
  100. package/node_modules/pi-lens/dist/clients/path-utils.js +51 -9
  101. package/node_modules/pi-lens/dist/clients/persistent-reverify.js +271 -0
  102. package/node_modules/pi-lens/dist/clients/pipeline.js +15 -1
  103. package/node_modules/pi-lens/dist/clients/runtime-turn.js +124 -7
  104. package/node_modules/pi-lens/dist/clients/skills-resolver.js +38 -2
  105. package/node_modules/pi-lens/dist/clients/widget-state.js +152 -6
  106. package/node_modules/pi-lens/dist/index.js +729 -344
  107. package/node_modules/pi-lens/dist/tools/lens-diagnostic-mark.js +14 -2
  108. package/node_modules/pi-lens/dist/tools/lens-diagnostics.js +84 -17
  109. package/node_modules/pi-lens/dist/tools/lsp-diagnostics.js +32 -5
  110. package/node_modules/pi-lens/package.json +1 -1
  111. package/node_modules/pi-typesafe/LICENSE +21 -0
  112. package/node_modules/pi-typesafe/README.md +153 -0
  113. package/node_modules/pi-typesafe/dist/ask.d.ts +32 -0
  114. package/node_modules/pi-typesafe/dist/ask.js +25 -0
  115. package/node_modules/pi-typesafe/dist/auth.d.ts +56 -0
  116. package/node_modules/pi-typesafe/dist/auth.js +114 -0
  117. package/node_modules/pi-typesafe/dist/batch.d.ts +74 -0
  118. package/node_modules/pi-typesafe/dist/batch.js +116 -0
  119. package/node_modules/pi-typesafe/dist/calibrate.d.ts +106 -0
  120. package/node_modules/pi-typesafe/dist/calibrate.js +157 -0
  121. package/node_modules/pi-typesafe/dist/client.d.ts +69 -0
  122. package/node_modules/pi-typesafe/dist/client.js +188 -0
  123. package/node_modules/pi-typesafe/dist/credentials.d.ts +46 -0
  124. package/node_modules/pi-typesafe/dist/credentials.js +112 -0
  125. package/node_modules/pi-typesafe/dist/errors.d.ts +9 -0
  126. package/node_modules/pi-typesafe/dist/errors.js +31 -0
  127. package/node_modules/pi-typesafe/dist/extension.d.ts +3 -0
  128. package/node_modules/pi-typesafe/dist/extension.js +222 -0
  129. package/node_modules/pi-typesafe/dist/index.d.ts +18 -0
  130. package/node_modules/pi-typesafe/dist/index.js +9 -0
  131. package/node_modules/pi-typesafe/dist/key-prompt.d.ts +3 -0
  132. package/node_modules/pi-typesafe/dist/key-prompt.js +43 -0
  133. package/node_modules/pi-typesafe/dist/login.d.ts +27 -0
  134. package/node_modules/pi-typesafe/dist/login.js +38 -0
  135. package/node_modules/pi-typesafe/dist/schema.d.ts +43 -0
  136. package/node_modules/pi-typesafe/dist/schema.js +152 -0
  137. package/node_modules/pi-typesafe/dist/ui.d.ts +3 -0
  138. package/node_modules/pi-typesafe/dist/ui.js +3 -0
  139. package/node_modules/pi-typesafe/dist/usage.d.ts +73 -0
  140. package/node_modules/pi-typesafe/dist/usage.js +182 -0
  141. package/node_modules/pi-typesafe/examples/decision-extension.ts +41 -0
  142. package/node_modules/pi-typesafe/extensions/index.js +2 -0
  143. package/node_modules/pi-typesafe/package.json +89 -0
  144. package/package.json +16 -9
package/README.md CHANGED
@@ -8,7 +8,7 @@ Aggregate installer for HerbertGao-maintained Pi extensions and pinned upstream
8
8
  pi install npm:@herbertgao/pi-extensions
9
9
  ```
10
10
 
11
- Requires Node.js 24 or newer and Pi 0.84.4 or newer.
11
+ Requires Node.js 24 or newer and Pi 0.85.1 or newer.
12
12
 
13
13
  The package bundles 6 active `@herbertgao/*` child packages—`pi-bark`, `pi-cc-extensions`, `resume-from`, `pi-subagents`, `sol-pi`, and the maintained Antigravity provider mirror—plus the following upstream packages under their original names:
14
14
 
@@ -27,8 +27,10 @@ The package bundles 6 active `@herbertgao/*` child packages—`pi-bark`, `pi-cc-
27
27
  - `@tifan/pi-recap@0.4.6`
28
28
  - `@tifan/pi-rename@0.6.0`
29
29
  - `pi-mcp-adapter@2.31.0`
30
+ - `pi-typesafe@0.5.0`
30
31
  - `pi-footer@0.5.1`
31
- - `pi-lens@4.2.0`
32
+ - `pi-jev-auto-mode@0.4.1`
33
+ - `pi-lens@4.2.1`
32
34
  - `pi-web-access@0.27.0`
33
35
  - `remote-pi@0.7.0`
34
36
 
@@ -40,7 +42,9 @@ Pi loads their extensions and skills through `node_modules/` paths inside one pa
40
42
 
41
43
  `@narumitw/pi-caffeinate@0.49.7` uses the host platform's sleep inhibitor during each Pi agent run. On macOS, `/caffeinate sleep` keeps the system awake while allowing the display to sleep; `/caffeinate display` also keeps the display awake. It releases the inhibitor when the run or session ends.
42
44
 
43
- `@herbertgao/resume-from@0.2.0` keeps Claude Code sessions associated with their original repository when the active transcript later moves into a nested cwd. `@herbertgao/sol-pi@0.1.0` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.2.0` expands language routing and bounds retained diagnostic facts across multi-root sessions. `pi-web-access@0.27.0` adds configurable fetch deadlines and answer models plus isolated GitHub clone runtimes. Preferred Thinking 1.0.1 preserves an explicit subagent `--thinking` choice. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming.
45
+ `pi-jev-auto-mode@0.4.1` adds fail-closed Jev safety gates for shell commands and file changes. `pi-typesafe@0.5.0` adds the `/typesafe` command and `typesafe_evaluate` tool for explicit structured decisions; both use the TypeSafe API after login.
46
+
47
+ `@herbertgao/resume-from@0.2.0` keeps Claude Code sessions associated with their original repository when the active transcript later moves into a nested cwd. `@herbertgao/sol-pi@0.1.0` adds opt-in Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact; see its [configuration guide](../sol-pi/docs/configuration.md). `pi-lens@4.2.1` expands language routing and bounds retained diagnostic facts across multi-root sessions. `pi-web-access@0.27.0` adds configurable fetch deadlines and answer models plus isolated GitHub clone runtimes. Preferred Thinking 1.0.1 preserves an explicit subagent `--thinking` choice. Deprecated `@tifan/pi-titlebar-spinner` is no longer bundled; Rename remains the single owner of Herdr tab naming.
44
48
 
45
49
  `pi-stash` is no longer bundled: `/btw` already preserves the main editor draft while handling side questions outside the main conversation. Prior `@herbertgao/pi-stash` releases remain available but are no longer maintained here.
46
50
 
@@ -73,7 +77,7 @@ For the intended compact status text, merge these optional companion settings in
73
77
  }
74
78
  ```
75
79
 
76
- Pi 0.84.1 or newer should use native `fullscreen` TUI mode.
80
+ Pi 0.85.1 or newer should use native `fullscreen` TUI mode.
77
81
 
78
82
  ### Remote Pi trust boundary
79
83
 
@@ -108,3 +108,55 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
108
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
109
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
110
110
  THE SOFTWARE.
111
+
112
+ ## `pi-typesafe`
113
+
114
+ The aggregate bundles [`pi-typesafe`](https://github.com/DevMortimer/pi-typesafe) version 0.5.0 under its original MIT license:
115
+
116
+ MIT License
117
+
118
+ Copyright (c) 2026 Ryan Gapac
119
+
120
+ Permission is hereby granted, free of charge, to any person obtaining a copy
121
+ of this software and associated documentation files (the "Software"), to deal
122
+ in the Software without restriction, including without limitation the rights
123
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
124
+ copies of the Software, and to permit persons to whom the Software is
125
+ furnished to do so, subject to the following conditions:
126
+
127
+ The above copyright notice and this permission notice shall be included in
128
+ all copies or substantial portions of the Software.
129
+
130
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
131
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
132
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
133
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
134
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
135
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
136
+ THE SOFTWARE.
137
+
138
+ ## `pi-jev-auto-mode`
139
+
140
+ The aggregate bundles [`pi-jev-auto-mode`](https://github.com/jomatsu/pi-jev-auto-mode) version 0.4.1 under its original MIT license:
141
+
142
+ MIT License
143
+
144
+ Copyright (c) 2026 jomatsu
145
+
146
+ Permission is hereby granted, free of charge, to any person obtaining a copy
147
+ of this software and associated documentation files (the "Software"), to deal
148
+ in the Software without restriction, including without limitation the rights
149
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
150
+ copies of the Software, and to permit persons to whom the Software is
151
+ furnished to do so, subject to the following conditions:
152
+
153
+ The above copyright notice and this permission notice shall be included in
154
+ all copies or substantial portions of the Software.
155
+
156
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
157
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
158
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
159
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
160
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
161
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
162
+ THE SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-bark",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Send Bark notifications when Pi finishes or needs user input.",
5
5
  "keywords": [
6
6
  "bark",
@@ -39,7 +39,7 @@
39
39
  "typescript": "^5.9.3"
40
40
  },
41
41
  "peerDependencies": {
42
- "@earendil-works/pi-coding-agent": "^0.84.0"
42
+ "@earendil-works/pi-coding-agent": "^0.84.0 || ^0.85.0"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=22.19.0"
@@ -85,7 +85,7 @@ bun run typecheck
85
85
 
86
86
  ## Compatibility
87
87
 
88
- - Node.js `>=22.19.0`, Pi `^0.84.0` (loaded through `pi.extensions` and `pi.themes` in the root `package.json`)
88
+ - Node.js `>=22.19.0`, Pi `^0.84.0 || ^0.85.0` (loaded through `pi.extensions` and `pi.themes` in the root `package.json`)
89
89
 
90
90
  ## Recommended companions
91
91
 
@@ -85,7 +85,7 @@ bun run typecheck
85
85
 
86
86
  ## 兼容性
87
87
 
88
- - Node.js `>=22.19.0`,Pi `^0.84.0`(通过根目录 `package.json` 的 `pi.extensions` 和 `pi.themes` 加载)
88
+ - Node.js `>=22.19.0`,Pi `^0.84.0 || ^0.85.0`(通过根目录 `package.json` 的 `pi.extensions` 和 `pi.themes` 加载)
89
89
 
90
90
  ## 推荐搭配
91
91
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herbertgao/pi-cc-extensions",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "license": "MIT",
5
5
  "description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
6
6
  "type": "module",
@@ -51,9 +51,9 @@
51
51
  "jiti": "^2.7.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@earendil-works/pi-ai": "^0.84.0",
55
- "@earendil-works/pi-coding-agent": "^0.84.0",
56
- "@earendil-works/pi-tui": "^0.84.0"
54
+ "@earendil-works/pi-ai": "^0.84.0 || ^0.85.0",
55
+ "@earendil-works/pi-coding-agent": "^0.84.0 || ^0.85.0",
56
+ "@earendil-works/pi-tui": "^0.84.0 || ^0.85.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=22.19.0"
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#212](https://github.com/HerbertGao/pi-extensions/pull/212) [`8e807a3`](https://github.com/HerbertGao/pi-extensions/commit/8e807a31f07ce57359366a6e6b7acc38b2806100) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Upgrade the maintained subagents extension to upstream v0.19.0 with workflow orchestration, agent mentions, structured output, journal/resume support, and the PR [#268](https://github.com/HerbertGao/pi-extensions/issues/268) worktree-cleanup safety fixes.
8
+
3
9
  ## 0.17.1
4
10
 
5
11
  ### Patch Changes