@trim21/personal-pi-extensions 0.1.653 → 0.1.654
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.
- package/package.json +1 -1
- package/src/index.ts +4 -4
- package/src/lib/tool-bus.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 本仓库的统一扩展入口:所有工具都在这里注册。
|
|
3
3
|
*
|
|
4
|
-
* 为什么是单一入口:pi
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* 为什么是单一入口:pi 给每个扩展入口单独的模块图,模块级状态不跨入口共享
|
|
5
|
+
* (两套文件 IO 工具集、LSP 服务、bwrap runtime 都各自持有状态),而且只有集中
|
|
6
|
+
* 在一处,`personalExtensions` 配置(`fileIo` / `fileIoByModel` / `disabledTools`
|
|
7
|
+
* / `enabledTools`)才有一个唯一的求值点。
|
|
8
8
|
*
|
|
9
9
|
* 注册时机:pi 在每次会话启动(启动、/new、resume、fork、/reload)时重建扩展,
|
|
10
10
|
* 所以在 `session_start` 里注册即「每个会话按自己的模型判定一次」。模型在扩展
|
package/src/lib/tool-bus.ts
CHANGED