billion-context-omp 0.1.8 → 0.2.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/README.md +1 -0
- package/dist/auto-compress.d.ts +4 -0
- package/dist/config.d.ts +7 -0
- package/dist/index.js +441 -110
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts +4 -0
- package/dist/user-config.d.ts +5 -0
- package/dist/wire-transform.d.ts +53 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -145,6 +145,7 @@ Create `~/.omp/acp-omp.json` (global) and/or `<project>/.omp/acp-omp.json` (proj
|
|
|
145
145
|
| Key | Default | Description |
|
|
146
146
|
|-----|---------|-------------|
|
|
147
147
|
| `debug` | `false` | Enable verbose **debug-level** events in the log. The always-on log (lifecycle events, errors, warnings) is written regardless; `debug` only adds extra diagnostics. Also enabled by env `ACP_DEBUG=1`. |
|
|
148
|
+
| `transformMode` | `"context"` (default) or `"provider"` — where the compression surgery intercepts. `provider` transforms the provider wire payload (no feedback re-entry; experimental). |
|
|
148
149
|
| `autoUpdate` | `true` | On session start (throttled to one check per 3 minutes), check npm for a newer version and auto-install it. Disable to avoid all startup network calls. |
|
|
149
150
|
| `modelContextLimit` | *(auto)* | Override the context limit (in tokens). Defaults to the model's `contextWindow`. |
|
|
150
151
|
| `compressModel` | *(session model)* | `provider:modelId` used for `/compact` model-summarized compaction (e.g. `"zhipuai:glm-5.2"`). Defaults to the current session model when omitted. |
|
package/dist/auto-compress.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export declare function summarizeMessages(ctx: ExtensionContext, messages: Agent
|
|
|
50
50
|
customInstructions?: string;
|
|
51
51
|
signal?: AbortSignal;
|
|
52
52
|
completeFn?: typeof complete;
|
|
53
|
+
/** Fold-slot messageRefs — when provided, formatSlice renders stable
|
|
54
|
+
* mNNNNN refs instead of raw pN position ids (issue #14 Minor1: the
|
|
55
|
+
* model was shown p-ids it must never echo back). */
|
|
56
|
+
messageRefs?: CompressionState["messageRefs"];
|
|
53
57
|
}): Promise<{
|
|
54
58
|
summary: string;
|
|
55
59
|
model: string;
|
package/dist/config.d.ts
CHANGED
|
@@ -27,6 +27,13 @@ export interface CompressConfig {
|
|
|
27
27
|
* (live model context window, protected tools, state persistence).
|
|
28
28
|
*/
|
|
29
29
|
export interface AdapterConfig {
|
|
30
|
+
/** Where the compression surgery intercepts (issue #52). "context" (default)
|
|
31
|
+
* rewrites the context event — battle-tested, but omp's recap/subagent
|
|
32
|
+
* pipelines can re-feed our output as input (feedback-view loops).
|
|
33
|
+
* "provider" leaves the agent array untouched and transforms the WIRE
|
|
34
|
+
* payload at before_provider_request — request-local, no re-entry; unknown
|
|
35
|
+
* provider formats pass through untransformed (fail-open). */
|
|
36
|
+
transformMode?: "context" | "provider";
|
|
30
37
|
/** When omitted, the adapter reads `ctx.model.contextWindow` live each turn.
|
|
31
38
|
* Set explicitly for tests/headless runs. */
|
|
32
39
|
modelContextLimit?: number;
|