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/dist/Acp.js +1 -1
- package/dist/Acp.js.map +1 -1
- package/dist/Acp.test.js +2 -1
- package/dist/Acp.test.js.map +1 -1
- package/dist/bin/cli.mjs +2 -2
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Acp.test.ts +5 -1
- package/src/Acp.ts +1 -1
package/package.json
CHANGED
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) {
|