antechamber 1.0.12 → 1.0.13
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/CHANGELOG.md +9 -0
- package/dist/sessions.d.ts +5 -0
- package/dist/sessions.js +10 -0
- package/dist/v2.d.ts +2 -0
- package/dist/v2.js +2 -1
- package/extensions/omo-compat/package.json +1 -1
- package/extensions/omo-dag/package.json +1 -1
- package/extensions/omo-work/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.13] - 2026-10-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Show the effort (thinking level) picker again in OpenChamber 2.x: `/api/model` and `/api/model/default`
|
|
15
|
+
now list each model's thinking levels in `variants` instead of an empty array.
|
|
16
|
+
- Keep a session's effort when OpenChamber 2.x reopens it on another device: the v2 session record now reports
|
|
17
|
+
the thinking level actually applied, instead of a stale one that the next prompt sent back.
|
|
18
|
+
|
|
10
19
|
## [1.0.12] - 2026-10-21
|
|
11
20
|
|
|
12
21
|
### Fixed
|
package/dist/sessions.d.ts
CHANGED
|
@@ -176,6 +176,11 @@ export declare class SessionManager {
|
|
|
176
176
|
*/
|
|
177
177
|
setModel(sessionId: string, ref: ModelSelection): Promise<OCModelRef>;
|
|
178
178
|
private setModelLive;
|
|
179
|
+
/**
|
|
180
|
+
* On a device with no saved pick, OpenChamber 2.x restores a reopened session's effort from this
|
|
181
|
+
* record and resends it with the next prompt, so a stale level silently resets the user's choice.
|
|
182
|
+
*/
|
|
183
|
+
private syncRecordVariant;
|
|
179
184
|
/**
|
|
180
185
|
* Single funnel for "pi is now running this model": adopt it, persist it for
|
|
181
186
|
* the next cold start, and tell the UI. Returns whether anything changed.
|
package/dist/sessions.js
CHANGED
|
@@ -837,6 +837,7 @@ export class SessionManager {
|
|
|
837
837
|
// not cost a round-trip nor emit a phantom "model switched" marker.
|
|
838
838
|
if (s.model !== undefined && s.model.providerID === ref.providerID && s.model.modelID === ref.modelID) {
|
|
839
839
|
await setThinkingLevel(s, pi, ref.variant);
|
|
840
|
+
this.syncRecordVariant(s);
|
|
840
841
|
return s.model;
|
|
841
842
|
}
|
|
842
843
|
const res = await pi.command({
|
|
@@ -868,8 +869,17 @@ export class SessionManager {
|
|
|
868
869
|
};
|
|
869
870
|
this.applyPiModel(s, resolved.providerID, resolved.modelID);
|
|
870
871
|
await setThinkingLevel(s, pi, ref.variant);
|
|
872
|
+
this.syncRecordVariant(s);
|
|
871
873
|
return resolved;
|
|
872
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* On a device with no saved pick, OpenChamber 2.x restores a reopened session's effort from this
|
|
877
|
+
* record and resends it with the next prompt, so a stale level silently resets the user's choice.
|
|
878
|
+
*/
|
|
879
|
+
syncRecordVariant(s) {
|
|
880
|
+
if (s.info.model !== undefined)
|
|
881
|
+
s.info.model = { ...s.info.model, variant: s.thinkingLevel ?? "default" };
|
|
882
|
+
}
|
|
873
883
|
/**
|
|
874
884
|
* Single funnel for "pi is now running this model": adopt it, persist it for
|
|
875
885
|
* the next cold start, and tell the UI. Returns whether anything changed.
|
package/dist/v2.d.ts
CHANGED
package/dist/v2.js
CHANGED
|
@@ -44,7 +44,8 @@ function toV2Model(m) {
|
|
|
44
44
|
providerID: m.providerID,
|
|
45
45
|
name: m.name,
|
|
46
46
|
capabilities: { tools: true, input: inputs.length > 0 ? inputs : ["text"], output: ["text"] },
|
|
47
|
-
|
|
47
|
+
// OpenChamber 2.x reads a model's efforts only from this array; empty hides the picker.
|
|
48
|
+
variants: Object.entries(m.variants ?? {}).map(([id, settings]) => ({ id, settings })),
|
|
48
49
|
time: { released: 0 },
|
|
49
50
|
cost: [
|
|
50
51
|
{ input: m.cost.input, output: m.cost.output, cache: { read: m.cost.cache.read, write: m.cost.cache.write } },
|