@yaklabs-ai/plugin-sdk 0.9.1 → 0.10.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.
- package/README.md +1 -1
- package/THIRD-PARTY-INVENTORY.json +1 -1
- package/dist/kay-app.d.ts +21 -9
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/kay-app.d.ts
CHANGED
|
@@ -1276,9 +1276,20 @@ export declare interface KayAppAutomationContext {
|
|
|
1276
1276
|
readonly sessionId: string;
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
export declare type KayAppAutomationEffect =
|
|
1279
|
+
export declare type KayAppAutomationEffect = {
|
|
1280
|
+
/**
|
|
1281
|
+
* STORED only: a binding created before the 2026-09-28 owner ruling (agents and plugins
|
|
1282
|
+
* may not create `spawn-session` automations) can still carry this effect, so a read must
|
|
1283
|
+
* still parse it. Absent from {@link KayAppAutomationEffectInput}, so no NEW binding can
|
|
1284
|
+
* be minted with it.
|
|
1285
|
+
*/
|
|
1280
1286
|
readonly kind: "spawn-session";
|
|
1281
|
-
|
|
1287
|
+
readonly prompt: string;
|
|
1288
|
+
readonly cwd?: string;
|
|
1289
|
+
readonly projectId?: string | null;
|
|
1290
|
+
/** Resolve the spawned session's model by tier instead of the caller's default. */
|
|
1291
|
+
readonly tier?: "small" | "medium" | "large" | "ultra";
|
|
1292
|
+
} | {
|
|
1282
1293
|
/** As STORED: always a reference, never inline source. */
|
|
1283
1294
|
readonly kind: "script";
|
|
1284
1295
|
readonly ref: KayAppAutomationScriptRef;
|
|
@@ -1294,6 +1305,14 @@ export declare type KayAppAutomationEffect = Extract<KayAppAutomationEffectInput
|
|
|
1294
1305
|
readonly prompt: string;
|
|
1295
1306
|
};
|
|
1296
1307
|
|
|
1308
|
+
/**
|
|
1309
|
+
* What a plugin may CREATE an automation with. `spawn-session` is deliberately absent: owner
|
|
1310
|
+
* ruling (2026-09-28) forbids a plugin (or an agent) from minting a `spawn-session` binding —
|
|
1311
|
+
* durable recurring agent work belongs to a plugin workflow (`app.workflows.define` +
|
|
1312
|
+
* `ctx.runAgent`) or a direct `app.sessions.run`. A binding created before that ruling can still
|
|
1313
|
+
* carry the effect and still reads and runs; see {@link KayAppAutomationEffect}, the STORED type
|
|
1314
|
+
* this input narrows.
|
|
1315
|
+
*/
|
|
1297
1316
|
export declare type KayAppAutomationEffectInput = {
|
|
1298
1317
|
readonly kind: "deliver-turn";
|
|
1299
1318
|
readonly prompt: string;
|
|
@@ -1307,13 +1326,6 @@ export declare type KayAppAutomationEffectInput = {
|
|
|
1307
1326
|
*/
|
|
1308
1327
|
readonly source?: string;
|
|
1309
1328
|
readonly initialState?: JsonValue_4;
|
|
1310
|
-
} | {
|
|
1311
|
-
readonly kind: "spawn-session";
|
|
1312
|
-
readonly prompt: string;
|
|
1313
|
-
readonly cwd?: string;
|
|
1314
|
-
readonly projectId?: string | null;
|
|
1315
|
-
/** Resolve the spawned session's model by tier instead of the caller's default. */
|
|
1316
|
-
readonly tier?: "small" | "medium" | "large" | "ultra";
|
|
1317
1329
|
};
|
|
1318
1330
|
|
|
1319
1331
|
/**
|