@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.
@@ -1,18 +1,13 @@
1
1
  /**
2
2
  * [FIX #312] Catalog of per-model context limits, keyed `${providerID}/${modelID}`.
3
3
  *
4
- * Within one LLM request the host fires experimental.chat.messages.transform
5
- * BEFORE experimental.chat.system.transform (sst/opencode: session/prompt.ts
6
- * triggers messages.transform, then llm/request.ts triggers system.transform
7
- * during handle.process). state.modelContextLimit is written only by the
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 recorded live by the system hook every request and seeded once
15
- * at plugin init from the host's /config/providers catalog.
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;;;;;;;;;;;;;;;;;;;GAmBG;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,CA6C3D"}
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"}
@@ -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;AAyGzC,eAAO,MAAM,WAAW,eA4LtB,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.6",
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",