@vincemakes/kiso-runtime 0.46.0 → 0.46.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/agent.d.ts CHANGED
@@ -34,6 +34,12 @@ export interface AgentDefinition {
34
34
  /** 0.40.0: the config profile that named this binding, recorded per
35
35
  * revision for display. Never part of drift. */
36
36
  readonly profileName?: string;
37
+ /** B1: a NEW session's initial reasoning (the CLI passes the effort last
38
+ * picked for the profile). Recorded in the session's first profile
39
+ * revision; never read for a session that has a recorded profile — its
40
+ * own wins, and a changed binding resets to defaults as before.
41
+ * `setModelBinding` stays the one way to change a live binding. */
42
+ readonly reasoning?: import("./provider/metadata.js").ReasoningSetting;
37
43
  /** `Tool<any>` like the registry: typed tools register without casts. */
38
44
  readonly tools: readonly Tool<any>[];
39
45
  readonly store: SessionStore;
package/dist/agent.js CHANGED
@@ -155,7 +155,11 @@ export class AgentRuntime {
155
155
  ...((restored !== null ? restored.scope : startupScope) !== undefined
156
156
  ? { continuationScope: (restored !== null ? restored.scope : startupScope) }
157
157
  : {}),
158
- ...(restored !== null ? { reasoning: restored.reasoning } : {}),
158
+ ...(restored !== null
159
+ ? { reasoning: restored.reasoning }
160
+ : newSession !== null && this.#definition.reasoning !== undefined
161
+ ? { reasoning: this.#definition.reasoning }
162
+ : {}),
159
163
  ...(profilePending ? { profilePending: true } : {}),
160
164
  ...(newSession !== null ? { newSession } : {}),
161
165
  ...(this.#definition.profileName !== undefined ? { profileName: this.#definition.profileName } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-runtime",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
4
4
  "description": "kiso runtime \u2014 durable multi-turn agent sessions: AgentDefinition, AgentRuntime, AgentSession, Run, append-only JSONL store.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  "test": "vitest run"
26
26
  },
27
27
  "dependencies": {
28
- "@vincemakes/kiso-core": "0.46.0"
28
+ "@vincemakes/kiso-core": "0.46.1"
29
29
  },
30
30
  "peerDependencies": {
31
- "@vincemakes/kiso-provider-anthropic": "0.46.0",
32
- "@vincemakes/kiso-provider-openai": "0.46.0",
33
- "@vincemakes/kiso-provider-openai-responses": "0.46.0"
31
+ "@vincemakes/kiso-provider-anthropic": "0.46.1",
32
+ "@vincemakes/kiso-provider-openai": "0.46.1",
33
+ "@vincemakes/kiso-provider-openai-responses": "0.46.1"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@vincemakes/kiso-provider-anthropic": {
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "devDependencies": {
47
- "@vincemakes/kiso-evals": "0.46.0",
47
+ "@vincemakes/kiso-evals": "0.46.1",
48
48
  "@types/node": "^26.1.2",
49
49
  "typescript": "^5.7.2",
50
50
  "vitest": "^3.0.0"