@keemakr/operator-sdk 0.6.0 → 0.7.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keemakr/operator-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "The keemakr connector contract: defineProvider + ConnectionProvider/ConnectionOperation types + OperationContext (governed fetch) + the connector manifest schema, shared by keemakr-core's built-in adapters and external connector repos. One shape, two consumers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -318,6 +318,13 @@ export interface ConnectionOperation {
318
318
  // Safe-to-retry marker. Omitted ⇒ false. The platform NEVER auto-retries a
319
319
  // non-idempotent operation; callers (agents) read this to know what is safe.
320
320
  idempotent?: boolean;
321
+ // The fields of the RESULT that are files a person should see: generated
322
+ // images, synthesized audio. `path` names them with dots and `[]` for every
323
+ // item of a list, e.g. `images[].url` or `audio.url`. When the Operator calls
324
+ // the operation, each URL becomes an image or audio card in the chat, and
325
+ // core keeps its own copy, so the card still works after the provider's link
326
+ // expires. Omitted ⇒ the result holds no media.
327
+ media?: ReadonlyArray<{ kind: 'image' | 'audio'; path: string }>;
321
328
  // A Standard Schema (zod/valibot/…) validating the agent-supplied args. Typed
322
329
  // loosely here so the connector contract doesn't hard-depend on zod; adapters
323
330
  // pass a zod schema and the route validates with `.parse`/`.safeParse`.