@vincemakes/kiso-runtime 0.15.6 → 0.15.7

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/run.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * persistence, the loop drive, the durable recovery state machine), moved
4
4
  * verbatim from session.ts.
5
5
  */
6
- import { type AbortSignalLike, type Adapter, type Event } from "@vincemakes/kiso-core";
6
+ import { type AbortSignalLike, type Adapter, type ContentBlock, type Event } from "@vincemakes/kiso-core";
7
7
  import type { SessionStore } from "./store.js";
8
8
  import { type AgentSession, type SessionConfig } from "./session.js";
9
9
  /**
@@ -13,7 +13,7 @@ import { type AgentSession, type SessionConfig } from "./session.js";
13
13
  export declare class Run implements AsyncIterable<Event> {
14
14
  #private;
15
15
  runId: string;
16
- constructor(store: SessionStore, adapter: Adapter, config: SessionConfig, session: AgentSession, input: string | undefined, externalSignal: AbortSignalLike | undefined, resume: boolean, source?: import("@vincemakes/kiso-core").MessageSource);
16
+ constructor(store: SessionStore, adapter: Adapter, config: SessionConfig, session: AgentSession, input: string | readonly ContentBlock[] | undefined, externalSignal: AbortSignalLike | undefined, resume: boolean, source?: import("@vincemakes/kiso-core").MessageSource);
17
17
  /** Cancel the run: propagates to the adapter (SDK) and future executions. */
18
18
  abort(): void;
19
19
  [Symbol.asyncIterator](): AsyncIterator<Event>;
package/dist/run.js CHANGED
@@ -21,6 +21,10 @@ export class Run {
21
21
  #adapter;
22
22
  #config;
23
23
  #session;
24
+ /** REL-0152-D11: the turn's input — text, or the content blocks a
25
+ * turn with an attachment carries. The durable event and the
26
+ * projection have accepted both shapes since the protocol was
27
+ * written; only this signature narrowed it to text. */
24
28
  #input;
25
29
  #resume;
26
30
  #source;
package/dist/session.d.ts CHANGED
@@ -173,7 +173,14 @@ export declare class AgentSession {
173
173
  */
174
174
  sideQuery(options: SideQueryOptions): Promise<string>;
175
175
  /** Run one user turn. Iterate to consume; `run.abort()` cancels. */
176
- run(input: string, options?: {
176
+ /** REL-0152-D11: `input` is text, or the content blocks a turn with an
177
+ * attachment carries. The durable event, the projection and both
178
+ * provider adapters have accepted both shapes since the protocol was
179
+ * written — an image block reaches Anthropic as `image` and the
180
+ * OpenAI-compatible family as `image_url` with a data URI. Only this
181
+ * signature narrowed it to text, which is why no caller could ever
182
+ * send one. */
183
+ run(input: string | readonly import("@vincemakes/kiso-core").ContentBlock[], options?: {
177
184
  signal?: AbortSignalLike;
178
185
  source?: import("@vincemakes/kiso-core").MessageSource;
179
186
  }): Run;
package/dist/session.js CHANGED
@@ -290,6 +290,13 @@ export class AgentSession {
290
290
  return text;
291
291
  }
292
292
  /** Run one user turn. Iterate to consume; `run.abort()` cancels. */
293
+ /** REL-0152-D11: `input` is text, or the content blocks a turn with an
294
+ * attachment carries. The durable event, the projection and both
295
+ * provider adapters have accepted both shapes since the protocol was
296
+ * written — an image block reaches Anthropic as `image` and the
297
+ * OpenAI-compatible family as `image_url` with a data URI. Only this
298
+ * signature narrowed it to text, which is why no caller could ever
299
+ * send one. */
293
300
  run(input, options) {
294
301
  this.ensureHealthy();
295
302
  return new Run(this.#store, this.#adapter, this.#effectiveConfig(), this, input, options?.signal, false, options?.source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-runtime",
3
- "version": "0.15.6",
3
+ "version": "0.15.7",
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,11 +25,11 @@
25
25
  "test": "vitest run"
26
26
  },
27
27
  "dependencies": {
28
- "@vincemakes/kiso-core": "0.15.6"
28
+ "@vincemakes/kiso-core": "0.15.7"
29
29
  },
30
30
  "peerDependencies": {
31
- "@vincemakes/kiso-provider-anthropic": "0.15.6",
32
- "@vincemakes/kiso-provider-openai": "0.15.6"
31
+ "@vincemakes/kiso-provider-anthropic": "0.15.7",
32
+ "@vincemakes/kiso-provider-openai": "0.15.7"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@vincemakes/kiso-provider-anthropic": {
@@ -40,7 +40,7 @@
40
40
  }
41
41
  },
42
42
  "devDependencies": {
43
- "@vincemakes/kiso-evals": "0.15.6",
43
+ "@vincemakes/kiso-evals": "0.15.7",
44
44
  "@types/node": "^26.1.2",
45
45
  "typescript": "^5.7.2",
46
46
  "vitest": "^3.0.0"