@herbertgao/pi-extensions 2026.9.3 → 2026.9.5

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 (143) hide show
  1. package/README.md +2 -1
  2. package/THIRD_PARTY_NOTICES.md +25 -0
  3. package/node_modules/@dietrichgebert/ponytail/.qoder-plugin/plugin.json +1 -1
  4. package/node_modules/@dietrichgebert/ponytail/README.es.md +33 -2
  5. package/node_modules/@dietrichgebert/ponytail/README.ko.md +33 -2
  6. package/node_modules/@dietrichgebert/ponytail/README.md +49 -5
  7. package/node_modules/@dietrichgebert/ponytail/assets/retriever-icon.png +0 -0
  8. package/node_modules/@dietrichgebert/ponytail/assets/retriever-logo-dark.svg +4 -0
  9. package/node_modules/@dietrichgebert/ponytail/assets/retriever-logo-light.svg +4 -0
  10. package/node_modules/@dietrichgebert/ponytail/hooks/claude-codex-hooks.json +0 -3
  11. package/node_modules/@dietrichgebert/ponytail/hooks/cursor-hooks.json +17 -0
  12. package/node_modules/@dietrichgebert/ponytail/hooks/ponytail-activate.js +22 -3
  13. package/node_modules/@dietrichgebert/ponytail/hooks/ponytail-mode-tracker.js +27 -2
  14. package/node_modules/@dietrichgebert/ponytail/hooks/ponytail-runtime.js +61 -2
  15. package/node_modules/@dietrichgebert/ponytail/package.json +2 -1
  16. package/node_modules/@dietrichgebert/ponytail/scripts/cursor-hooks.js +135 -0
  17. package/node_modules/@dietrichgebert/ponytail/scripts/uninstall.js +21 -4
  18. package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/reference/index.ts +33 -15
  19. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +3 -2
  20. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/default-mode.ts +16 -11
  21. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/interaction.ts +6 -2
  22. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/mouse/scroll.ts +23 -1
  23. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/diff/diff-renderer.ts +88 -19
  24. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/grouping.ts +12 -7
  25. package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/tool/result.ts +98 -0
  26. package/node_modules/@herbertgao/pi-cc-extensions/package.json +3 -3
  27. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/economics.ts +4 -4
  28. package/node_modules/@herbertgao/sol-pi/src/sol-pi/extensions/online-context-compact/extension.ts +41 -1
  29. package/node_modules/@juicesharp/rpiv-ask-user-question/ask-user-question.ts +5 -1
  30. package/node_modules/@juicesharp/rpiv-ask-user-question/events.ts +5 -1
  31. package/node_modules/@juicesharp/rpiv-ask-user-question/package.json +3 -2
  32. package/node_modules/@juicesharp/rpiv-ask-user-question/tool/normalize-params.ts +56 -0
  33. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/option-list-view.ts +1 -1
  34. package/node_modules/@juicesharp/rpiv-ask-user-question/view/components/tab-bar.ts +1 -2
  35. package/node_modules/@pi-plugins/fast-mode/README.md +31 -44
  36. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs +20914 -30
  37. package/node_modules/@pi-plugins/fast-mode/dist/index.mjs.map +1 -1
  38. package/node_modules/@pi-plugins/fast-mode/package.json +5 -7
  39. package/node_modules/@tifan/pi-copy-response/README.md +2 -2
  40. package/node_modules/@tifan/pi-copy-response/package.json +3 -2
  41. package/node_modules/@tifan/pi-inline-skills/README.md +2 -2
  42. package/node_modules/@tifan/pi-inline-skills/package.json +3 -2
  43. package/node_modules/@tifan/pi-mermaid-open/README.md +1 -1
  44. package/node_modules/@tifan/pi-mermaid-open/package.json +3 -2
  45. package/node_modules/@tifan/pi-preferred-thinking/package.json +3 -2
  46. package/node_modules/@tifan/pi-recap/package.json +3 -2
  47. package/node_modules/pi-antigravity/LICENSE +21 -0
  48. package/node_modules/pi-antigravity/README.md +194 -0
  49. package/node_modules/pi-antigravity/package.json +67 -0
  50. package/node_modules/pi-antigravity/src/auth/index.ts +14 -0
  51. package/node_modules/pi-antigravity/src/auth/oauth.ts +442 -0
  52. package/node_modules/pi-antigravity/src/client/client.ts +561 -0
  53. package/node_modules/pi-antigravity/src/client/index.ts +1 -0
  54. package/node_modules/pi-antigravity/src/diagnostics/diagnostics.ts +96 -0
  55. package/node_modules/pi-antigravity/src/diagnostics/index.ts +1 -0
  56. package/node_modules/pi-antigravity/src/image/image.ts +336 -0
  57. package/node_modules/pi-antigravity/src/image/index.ts +1 -0
  58. package/node_modules/pi-antigravity/src/index.ts +280 -0
  59. package/node_modules/pi-antigravity/src/models/discovery.ts +154 -0
  60. package/node_modules/pi-antigravity/src/models/grouping.ts +424 -0
  61. package/node_modules/pi-antigravity/src/models/index.ts +3 -0
  62. package/node_modules/pi-antigravity/src/models/models.ts +500 -0
  63. package/node_modules/pi-antigravity/src/stream/index.ts +1 -0
  64. package/node_modules/pi-antigravity/src/stream/stream.ts +1460 -0
  65. package/node_modules/pi-antigravity/src/types/enums.ts +42 -0
  66. package/node_modules/pi-antigravity/src/types/index.ts +2 -0
  67. package/node_modules/pi-antigravity/src/types/types.ts +292 -0
  68. package/node_modules/pi-antigravity/src/usage/index.ts +1 -0
  69. package/node_modules/pi-antigravity/src/usage/usage.ts +371 -0
  70. package/node_modules/pi-antigravity/src/utils/http.ts +91 -0
  71. package/node_modules/pi-antigravity/src/utils/index.ts +3 -0
  72. package/node_modules/pi-antigravity/src/utils/security.ts +73 -0
  73. package/node_modules/pi-antigravity/src/utils/util.ts +132 -0
  74. package/node_modules/pi-antigravity/tsconfig.json +21 -0
  75. package/node_modules/pi-mcp-adapter/CHANGELOG.md +78 -0
  76. package/node_modules/pi-mcp-adapter/README.md +125 -19
  77. package/node_modules/pi-mcp-adapter/agent-plugin-loader.ts +69 -30
  78. package/node_modules/pi-mcp-adapter/agent-plugin-provenance.ts +36 -0
  79. package/node_modules/pi-mcp-adapter/claude-plugin-loader.ts +365 -0
  80. package/node_modules/pi-mcp-adapter/commands.ts +13 -15
  81. package/node_modules/pi-mcp-adapter/config.ts +198 -30
  82. package/node_modules/pi-mcp-adapter/consent-manager.ts +40 -9
  83. package/node_modules/pi-mcp-adapter/direct-tool-surface.ts +250 -0
  84. package/node_modules/pi-mcp-adapter/direct-tools.ts +9 -228
  85. package/node_modules/pi-mcp-adapter/dist/agent-plugin-loader.js +74 -32
  86. package/node_modules/pi-mcp-adapter/dist/agent-plugin-loader.js.map +1 -1
  87. package/node_modules/pi-mcp-adapter/dist/agent-plugin-provenance.d.ts +1 -0
  88. package/node_modules/pi-mcp-adapter/dist/agent-plugin-provenance.js +31 -0
  89. package/node_modules/pi-mcp-adapter/dist/agent-plugin-provenance.js.map +1 -0
  90. package/node_modules/pi-mcp-adapter/dist/claude-plugin-loader.d.ts +9 -0
  91. package/node_modules/pi-mcp-adapter/dist/claude-plugin-loader.js +362 -0
  92. package/node_modules/pi-mcp-adapter/dist/claude-plugin-loader.js.map +1 -0
  93. package/node_modules/pi-mcp-adapter/dist/config.d.ts +3 -1
  94. package/node_modules/pi-mcp-adapter/dist/config.js +189 -27
  95. package/node_modules/pi-mcp-adapter/dist/config.js.map +1 -1
  96. package/node_modules/pi-mcp-adapter/dist/metadata-cache.js +7 -16
  97. package/node_modules/pi-mcp-adapter/dist/metadata-cache.js.map +1 -1
  98. package/node_modules/pi-mcp-adapter/dist/package-mcp-loader.js +5 -17
  99. package/node_modules/pi-mcp-adapter/dist/package-mcp-loader.js.map +1 -1
  100. package/node_modules/pi-mcp-adapter/dist/types.d.ts +30 -4
  101. package/node_modules/pi-mcp-adapter/dist/types.js +26 -0
  102. package/node_modules/pi-mcp-adapter/dist/types.js.map +1 -1
  103. package/node_modules/pi-mcp-adapter/dist/utils.d.ts +6 -0
  104. package/node_modules/pi-mcp-adapter/dist/utils.js +65 -6
  105. package/node_modules/pi-mcp-adapter/dist/utils.js.map +1 -1
  106. package/node_modules/pi-mcp-adapter/host-html-template.ts +20 -19
  107. package/node_modules/pi-mcp-adapter/http-ca.ts +84 -0
  108. package/node_modules/pi-mcp-adapter/index.ts +827 -164
  109. package/node_modules/pi-mcp-adapter/init.ts +48 -10
  110. package/node_modules/pi-mcp-adapter/lazy-loader.ts +7 -0
  111. package/node_modules/pi-mcp-adapter/mcp-auth-fetch.ts +113 -0
  112. package/node_modules/pi-mcp-adapter/mcp-auth-flow.ts +256 -77
  113. package/node_modules/pi-mcp-adapter/mcp-auth.ts +316 -54
  114. package/node_modules/pi-mcp-adapter/mcp-code.ts +45 -18
  115. package/node_modules/pi-mcp-adapter/mcp-install.ts +60 -0
  116. package/node_modules/pi-mcp-adapter/mcp-oauth-provider.ts +70 -6
  117. package/node_modules/pi-mcp-adapter/mcp-output-guard.ts +53 -42
  118. package/node_modules/pi-mcp-adapter/mcp-panel-theme.ts +104 -0
  119. package/node_modules/pi-mcp-adapter/mcp-panel.ts +366 -332
  120. package/node_modules/pi-mcp-adapter/mcp-references.ts +9 -14
  121. package/node_modules/pi-mcp-adapter/mcp-script-worker.mjs +3 -1
  122. package/node_modules/pi-mcp-adapter/mcp-setup-panel.ts +383 -341
  123. package/node_modules/pi-mcp-adapter/mcp-status.ts +5 -0
  124. package/node_modules/pi-mcp-adapter/metadata-cache.ts +7 -16
  125. package/node_modules/pi-mcp-adapter/namespace-tools.ts +61 -3
  126. package/node_modules/pi-mcp-adapter/oauth.ts +6 -2
  127. package/node_modules/pi-mcp-adapter/package-mcp-loader.ts +5 -17
  128. package/node_modules/pi-mcp-adapter/package.json +13 -3
  129. package/node_modules/pi-mcp-adapter/prompts.ts +35 -3
  130. package/node_modules/pi-mcp-adapter/proxy-modes.ts +108 -7
  131. package/node_modules/pi-mcp-adapter/runtime-owner.ts +16 -1
  132. package/node_modules/pi-mcp-adapter/sampling-handler.ts +9 -32
  133. package/node_modules/pi-mcp-adapter/sandbox-proxy-template.ts +20 -93
  134. package/node_modules/pi-mcp-adapter/server-manager.ts +227 -40
  135. package/node_modules/pi-mcp-adapter/session-approvals.ts +187 -0
  136. package/node_modules/pi-mcp-adapter/skills/mcp-scripting/SKILL.md +9 -1
  137. package/node_modules/pi-mcp-adapter/state.ts +10 -1
  138. package/node_modules/pi-mcp-adapter/tool-approval.ts +10 -22
  139. package/node_modules/pi-mcp-adapter/tool-metadata.ts +14 -0
  140. package/node_modules/pi-mcp-adapter/types.ts +57 -4
  141. package/node_modules/pi-mcp-adapter/ui-server.ts +36 -28
  142. package/node_modules/pi-mcp-adapter/utils.ts +64 -6
  143. package/package.json +15 -15
@@ -6,8 +6,7 @@ import type { StatefulView } from "../stateful-view.js";
6
6
  * Per-tick projection of TabBar state. The selector
7
7
  * (`selectTabBarProps`) hoists every render-time derivation
8
8
  * (`allAnswered`, `answered`, `isActive`, `submitActive`) into props so
9
- * `render()` is pure styling. Replaces the prior `setConfig(TabBarConfig)`
10
- * snowflake and the inline `+ 1` magic at `props-adapter.ts:127`.
9
+ * `render()` is pure styling.
11
10
  */
12
11
  export interface TabBarProps {
13
12
  /** One per author-defined question, in order. */
@@ -1,12 +1,7 @@
1
1
  # `@pi-plugins/fast-mode`
2
2
 
3
- A [pi-agent](https://github.com/earendil-works/pi) extension that requests a
4
- provider's fast (priority) service tier for configured models — faster inference at a
5
- higher token cost.
6
-
7
- Fast mode is a per-model opt-in: you decide which `provider/model-id` pairs it
8
- applies to, and a single session toggle turns it on and off. Requests for any other
9
- model are left untouched.
3
+ Request priority inference for selected models in
4
+ [pi](https://github.com/earendil-works/pi) with a session toggle.
10
5
 
11
6
  ## Install
12
7
 
@@ -14,49 +9,45 @@ model are left untouched.
14
9
  pi install npm:@pi-plugins/fast-mode
15
10
  ```
16
11
 
17
- For a one-off run without adding it to settings:
12
+ To try it for one session without changing your settings:
18
13
 
19
14
  ```bash
20
15
  pi -e npm:@pi-plugins/fast-mode
21
16
  ```
22
17
 
23
- For local development, load it straight from this directory:
24
-
25
- ```bash
26
- pi -e ./plugins/fast-mode
27
- ```
28
-
29
- ## Supported providers
30
-
31
- | Provider | Mechanism |
32
- | -------------- | ---------------------------------- |
33
- | `openai` | `service_tier: "priority"` payload |
34
- | `openai-codex` | `service_tier: "priority"` payload |
35
-
36
18
  ## Usage
37
19
 
38
- ```text
39
- /fast # toggle fast mode for this session
40
- /fast on # enable
41
- /fast off # disable
42
- /fast status # show the current state and why it is (in)active
43
- ```
20
+ Use `/fast` to control fast mode for the current session:
44
21
 
45
- Start a session with fast mode already enabled:
22
+ | Command | Action |
23
+ | -------------- | ---------------------------------------------------------------------------- |
24
+ | `/fast` | Toggle fast mode. |
25
+ | `/fast on` | Enable fast mode. |
26
+ | `/fast off` | Disable fast mode. |
27
+ | `/fast status` | Show the current state and explain whether it applies to the selected model. |
28
+
29
+ To start a session with fast mode enabled:
46
30
 
47
31
  ```bash
48
32
  pi --fast
49
33
  ```
50
34
 
51
- While fast mode is on and the current model is configured for it, a dim `[fast mode]`
52
- indicator is shown at the right of a status line right above the editor, shared with
53
- other pi-plugins extensions (e.g. `@pi-plugins/speed` renders its measurements at the
54
- left of the same line).
35
+ Fast mode applies only to models listed in the configuration. Other models are left
36
+ unchanged. A `[fast mode]` indicator appears above the editor while active.
37
+
38
+ ## Supported providers
39
+
40
+ | Provider | Pi provider |
41
+ | ------------ | -------------- |
42
+ | OpenAI | `openai` |
43
+ | OpenAI Codex | `openai-codex` |
44
+
45
+ Priority availability depends on the provider and model.
55
46
 
56
47
  ## Configuration
57
48
 
58
- Optional config file at `<agent-dir>/extensions/fast-mode.json` (typically
59
- `~/.pi/agent/extensions/fast-mode.json`):
49
+ Optionally create `<agent-dir>/extensions/fast-mode.json`, typically
50
+ `~/.pi/agent/extensions/fast-mode.json`. The defaults are:
60
51
 
61
52
  ```json
62
53
  {
@@ -79,16 +70,12 @@ Optional config file at `<agent-dir>/extensions/fast-mode.json` (typically
79
70
  }
80
71
  ```
81
72
 
82
- - `enabled`: fast-mode state at session start (`/fast` overrides it for the session
83
- without writing the toggle back to the file).
84
- - `models`: the `provider/model-id` keys fast mode applies to. The defaults above are
85
- used when the file is absent. Models whose API has no fast-mode support are
86
- ignored.
87
- - `showStatus`: show the `[fast mode]` indicator above the editor while active.
73
+ | Setting | Description |
74
+ | ------------ | ----------------------------------------------------------------------------------------------------------- |
75
+ | `enabled` | Enable fast mode at session start. `/fast` changes only the current session and does not write to the file. |
76
+ | `models` | The exact `provider/model-id` pairs fast mode applies to. |
77
+ | `showStatus` | Show the status indicator while fast mode is active. |
88
78
 
89
79
  ## Notes
90
80
 
91
- - The priority service tier bills at a higher rate than the default tier — check your
92
- provider's pricing before leaving it enabled.
93
- - If another extension already set a `service_tier` on the payload, this extension
94
- leaves it alone.
81
+ Priority inference can cost more. Check your provider's pricing before enabling it.