clanka 0.13.0 → 0.13.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clanka",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/Acp.test.ts CHANGED
@@ -326,10 +326,14 @@ describe("Acp", () => {
326
326
  })
327
327
  const sessionId: string = created.result.sessionId
328
328
 
329
- yield* server.request(2, "session/set_model", {
329
+ const switched = yield* server.request(2, "session/set_model", {
330
330
  sessionId,
331
331
  modelId: "other:model",
332
332
  })
333
+ assert.strictEqual(
334
+ switched.result.configOptions[0].id,
335
+ "thought_level",
336
+ )
333
337
 
334
338
  const configured = yield* server.request(
335
339
  3,
package/src/Acp.ts CHANGED
@@ -953,7 +953,7 @@ export const make = Effect.fnUntraced(function* <RAgent, RModel>(
953
953
  yield* requireModel(modelId, session.thoughtLevel)
954
954
  session.model = modelId
955
955
  yield* persist(session)
956
- return {}
956
+ return { configOptions: configOptions(session) }
957
957
  })
958
958
 
959
959
  const setConfigOption = Effect.fnUntraced(function* (params: unknown) {