@moxxy/sdk 0.34.0 → 0.35.1
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.
|
@@ -25,7 +25,7 @@ export declare function estimateContextTokens(log: EventLogReader, precomputedEl
|
|
|
25
25
|
*
|
|
26
26
|
* `config.model` is a free-form, unvalidated string, and providers happily
|
|
27
27
|
* serve ids that aren't in their fixed descriptor list — a newer release
|
|
28
|
-
* (`claude-opus-
|
|
28
|
+
* (`claude-opus-5`), a dated id, or a model registered at runtime via
|
|
29
29
|
* provider-admin. So an exact `models.find(m => m.id === ctx.model)` often
|
|
30
30
|
* MISSES, and both auto-compaction and auto-elision used to silently turn into
|
|
31
31
|
* permanent no-ops for the whole session (the context then grows unbounded and
|
|
@@ -102,7 +102,7 @@ function safeJsonLen(v) {
|
|
|
102
102
|
*
|
|
103
103
|
* `config.model` is a free-form, unvalidated string, and providers happily
|
|
104
104
|
* serve ids that aren't in their fixed descriptor list — a newer release
|
|
105
|
-
* (`claude-opus-
|
|
105
|
+
* (`claude-opus-5`), a dated id, or a model registered at runtime via
|
|
106
106
|
* provider-admin. So an exact `models.find(m => m.id === ctx.model)` often
|
|
107
107
|
* MISSES, and both auto-compaction and auto-elision used to silently turn into
|
|
108
108
|
* permanent no-ops for the whole session (the context then grows unbounded and
|
package/package.json
CHANGED
|
@@ -247,7 +247,7 @@ describe('runCompactionIfNeeded', () => {
|
|
|
247
247
|
compactor,
|
|
248
248
|
model: 'claude-opus-4-7', // the listed descriptor
|
|
249
249
|
contextWindow: 800_000,
|
|
250
|
-
ctxModelId: 'claude-opus-4-8', // …but the session runs
|
|
250
|
+
ctxModelId: 'claude-opus-4-8', // …but the session runs a retired, unlisted id
|
|
251
251
|
});
|
|
252
252
|
await runCompactionIfNeeded(ctx);
|
|
253
253
|
// Falls back to models[0].contextWindow instead of bailing.
|
package/src/compactor-helpers.ts
CHANGED
|
@@ -118,7 +118,7 @@ function safeJsonLen(v: unknown): number {
|
|
|
118
118
|
*
|
|
119
119
|
* `config.model` is a free-form, unvalidated string, and providers happily
|
|
120
120
|
* serve ids that aren't in their fixed descriptor list — a newer release
|
|
121
|
-
* (`claude-opus-
|
|
121
|
+
* (`claude-opus-5`), a dated id, or a model registered at runtime via
|
|
122
122
|
* provider-admin. So an exact `models.find(m => m.id === ctx.model)` often
|
|
123
123
|
* MISSES, and both auto-compaction and auto-elision used to silently turn into
|
|
124
124
|
* permanent no-ops for the whole session (the context then grows unbounded and
|