@infituit/opencode-acp 2.0.0-alpha.6 → 2.0.0-alpha.7
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.js +14 -11
- package/dist/index.js.map +1 -1
- package/dist/state/model-limits.d.ts +6 -11
- package/dist/state/model-limits.d.ts.map +1 -1
- package/dist/v2/plugin.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* [FIX #312] Catalog of per-model context limits, keyed `${providerID}/${modelID}`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* system hook, so on the first request after a model switch every percentage
|
|
9
|
-
* threshold (emergencyThresholdPercent, min/maxContextLimit "%", GC tiers) is
|
|
10
|
-
* still computed against the PREVIOUS model's
|
|
11
|
-
* limit. This catalog lets the messages hook reconcile against the model
|
|
12
|
-
* named on the request's user message instead of waiting one turn.
|
|
4
|
+
* The V2 context hook transforms messages before the system prompt. This
|
|
5
|
+
* catalog lets the messages handler reconcile state.modelContextLimit against
|
|
6
|
+
* the model named on the request's user message before percentage thresholds
|
|
7
|
+
* (emergencyThresholdPercent, min/maxContextLimit "%", GC tiers) are computed.
|
|
13
8
|
*
|
|
14
|
-
* Entries are
|
|
15
|
-
*
|
|
9
|
+
* Entries are seeded at plugin init from the V2 model catalog and resolved
|
|
10
|
+
* again on a request-time miss through the registry's existing lazy hydration.
|
|
16
11
|
*
|
|
17
12
|
* Standalone factory (not embedded in SessionStateRegistry) so the test
|
|
18
13
|
* registry stub can compose the SAME implementation instead of hand-rolling
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-limits.d.ts","sourceRoot":"","sources":["../../src/state/model-limits.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"model-limits.d.ts","sourceRoot":"","sources":["../../src/state/model-limits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CACF,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAAA;IACP,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IACxF,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACtD;AAED,wBAAgB,uBAAuB,IAAI,iBAAiB,CA+C3D"}
|
package/dist/v2/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/v2/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/v2/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAiGzC,eAAO,MAAM,WAAW,eAqMtB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@infituit/opencode-acp",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Active Context Pruning — model-driven context management for OpenCode",
|
|
7
7
|
"main": "./dist/index.js",
|