billion-context-pi 0.1.40 → 0.1.43
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/compress-tool.d.ts +8 -2
- package/dist/config.d.ts +6 -0
- package/dist/index.js +616 -72
- package/dist/index.js.map +1 -1
- package/dist/overflow-selfheal.d.ts +45 -0
- package/dist/runtime.d.ts +38 -0
- package/dist/tag-tokens.d.ts +3 -0
- package/dist/throttle-retry.d.ts +52 -0
- package/dist/user-config.d.ts +2 -0
- package/package.json +2 -2
package/dist/compress-tool.d.ts
CHANGED
|
@@ -3,13 +3,19 @@ import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
|
3
3
|
import type { AcpRuntime } from "./runtime.js";
|
|
4
4
|
declare const CompressParams: Type.TObject<{
|
|
5
5
|
topic: Type.TOptional<Type.TString>;
|
|
6
|
-
content: Type.TArray<Type.TObject<{
|
|
6
|
+
content: Type.TUnion<[Type.TArray<Type.TObject<{
|
|
7
7
|
startId: Type.TString;
|
|
8
8
|
endId: Type.TString;
|
|
9
9
|
summary: Type.TString;
|
|
10
10
|
topic: Type.TOptional<Type.TString>;
|
|
11
|
-
}
|
|
11
|
+
}>>, Type.TString]>;
|
|
12
12
|
summaryMaxChars: Type.TOptional<Type.TNumber>;
|
|
13
13
|
}>;
|
|
14
14
|
export declare function makeCompressTool(runtime: AcpRuntime): ToolDefinition<typeof CompressParams>;
|
|
15
|
+
/** True when a (non-error) compress toolResult text represents a completed
|
|
16
|
+
* compression run — the "▣ ACP | …" panel. Other non-error strings ("No
|
|
17
|
+
* ranges provided.", semantic "Errors: …" panels with nothing reclaimed)
|
|
18
|
+
* are neutral outcomes that neither reset nor advance the retry counter
|
|
19
|
+
* (see noteCompressOutcomes in runtime.ts). */
|
|
20
|
+
export declare function isCompressSuccessText(text: string): boolean;
|
|
15
21
|
export {};
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Config, type Prompts } from "acp-kernel";
|
|
2
|
+
import type { ThrottleRetryConfig } from "./throttle-retry.js";
|
|
2
3
|
/** Delegate sub-agent configuration. */
|
|
3
4
|
export interface DelegateConfig {
|
|
4
5
|
/** Enable acp_delegate tools (delegate/wait/cancel) and their system-prompt
|
|
@@ -88,6 +89,11 @@ export interface AdapterConfig {
|
|
|
88
89
|
delegate?: boolean | DelegateConfig;
|
|
89
90
|
/** Compression tuning. */
|
|
90
91
|
compress?: CompressConfig;
|
|
92
|
+
/** Provider token-throttle (Bedrock "Too many tokens, please wait before
|
|
93
|
+
* trying again.") auto-retry. Accepts a boolean shorthand (`false`
|
|
94
|
+
* disables) or a ThrottleRetryConfig object. Default: enabled, 10 retries,
|
|
95
|
+
* 60s exponential base capped at 300s per kick. */
|
|
96
|
+
throttleRetry?: boolean | ThrottleRetryConfig;
|
|
91
97
|
/** Legacy flat alias for `delegate.displayUsage`. Kept for backward
|
|
92
98
|
* compatibility with existing acp.json files. Prefer `delegate.displayUsage`. */
|
|
93
99
|
displayUsage?: "merged" | "separate";
|