billion-context-pi 0.0.6 → 0.1.25
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/README.md +31 -17
- package/README.zh-CN.md +31 -17
- package/dist/config.d.ts +18 -0
- package/dist/index.js +162 -22
- package/dist/index.js.map +1 -1
- package/dist/tool-guardrails.d.ts +9 -0
- package/dist/user-config.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ExtensionAPI, type ToolResultEvent } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import type { AcpRuntime } from "./runtime.js";
|
|
3
|
+
export declare function resolveBashTimeout(input: {
|
|
4
|
+
timeout?: number;
|
|
5
|
+
}, defaultTimeout: number | undefined): number | undefined;
|
|
6
|
+
export declare function capToolOutput(content: ToolResultEvent["content"], maxBytes: number | undefined, fullPath?: string): ToolResultEvent["content"] | undefined;
|
|
7
|
+
export declare function detectBashTimeout(content: ToolResultEvent["content"]): number | undefined;
|
|
8
|
+
export declare function appendTimeoutNotice(content: ToolResultEvent["content"], secs: number): ToolResultEvent["content"];
|
|
9
|
+
export declare function wireToolGuardrails(pi: ExtensionAPI, runtime: AcpRuntime): void;
|
package/dist/user-config.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export interface UserAcpConfig {
|
|
|
7
7
|
autoUpdate?: boolean;
|
|
8
8
|
modelContextLimit?: number;
|
|
9
9
|
delegate?: boolean;
|
|
10
|
+
toolBashDefaultTimeout?: number;
|
|
11
|
+
toolOutputMaxBytes?: number;
|
|
10
12
|
}
|
|
11
13
|
/** Read global + project acp.json, project overrides global. Returns {} on any
|
|
12
14
|
* error (missing file, bad JSON) — never throws. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billion-context-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "One billion, not one million. Model-driven context management for the Pi coding agent.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "git+https://github.com/ranxianglei/billion-context-pi.git"
|
|
28
28
|
},
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/ranxianglei/
|
|
30
|
+
"url": "https://github.com/ranxianglei/billion-context-pi/issues"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^26.1.2",
|
|
61
|
-
"acp-kernel": "0.0.
|
|
61
|
+
"acp-kernel": "0.0.17",
|
|
62
62
|
"tsup": "^8.5.1",
|
|
63
63
|
"tsx": "^4.23.1",
|
|
64
64
|
"typescript": "^7.0.2"
|