@aalis/plugin-prompt-budget 0.6.0 → 0.7.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @aalis/plugin-prompt-budget —— 暴露 Prompt 预算自检工具
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* 设计动机:@aalis/plugin-agent 已 emit `token:usage` 事件(含 12 桶 breakdown),
|
|
5
5
|
* WebUI 通过 plugin-webui-server 订阅并渲染面板。但 AI 自己跑在工具循环里时,
|
|
6
6
|
* 没有看 WebUI 的机会——需要一个**主动 query** 路径,让模型怀疑"是不是 prompt 太大了"
|
|
7
7
|
* 时能立即查到当前 session 的最新预算消耗。
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `prompt_budget_info` 工具供 AI 查询。零业务逻辑,纯只读 introspection。
|
|
11
11
|
*/
|
|
12
12
|
declare const _default: import("@aalis/core").PluginDefinition<{
|
|
13
|
-
tools: import("@aalis/core
|
|
13
|
+
tools: import("@aalis/core").OptionalUse<import("@aalis/api-tools").ToolService, import("@aalis/api-tools").BoundTools>;
|
|
14
14
|
events: import("@aalis/core").ServiceDescriptor<(identity: symbol) => import("@aalis/core").Events, import("@aalis/core").Events>;
|
|
15
15
|
lifecycle: import("@aalis/core").ServiceDescriptor<(identity: symbol) => import("@aalis/core").LifecycleCap, import("@aalis/core").LifecycleCap>;
|
|
16
16
|
logger: import("@aalis/core").ServiceDescriptor<(identity: symbol) => import("@aalis/core").Logger, import("@aalis/core").Logger>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @aalis/plugin-prompt-budget —— 暴露 Prompt 预算自检工具
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* 设计动机:@aalis/plugin-agent 已 emit `token:usage` 事件(含 12 桶 breakdown),
|
|
5
5
|
* WebUI 通过 plugin-webui-server 订阅并渲染面板。但 AI 自己跑在工具循环里时,
|
|
6
6
|
* 没有看 WebUI 的机会——需要一个**主动 query** 路径,让模型怀疑"是不是 prompt 太大了"
|
|
7
7
|
* 时能立即查到当前 session 的最新预算消耗。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aalis/plugin-prompt-budget",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aalis/api-tools": ">=0.
|
|
28
|
-
"@aalis/util-bounded-map": ">=0.
|
|
27
|
+
"@aalis/api-tools": ">=0.10.0 <1.0.0",
|
|
28
|
+
"@aalis/util-bounded-map": ">=0.6.1 <1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|
|
32
32
|
"typescript": "^5.7.0",
|
|
33
|
-
"@aalis/core": "0.
|
|
34
|
-
"@aalis/api-agent": "0.
|
|
33
|
+
"@aalis/core": "0.18.0",
|
|
34
|
+
"@aalis/api-agent": "0.9.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@aalis/core": ">=0.
|
|
37
|
+
"@aalis/core": ">=0.18.0 <1.0.0"
|
|
38
38
|
},
|
|
39
39
|
"aalis": {
|
|
40
40
|
"service": {
|