pilotswarm-sdk 0.5.19 → 0.5.21
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/api/src/http-api-transport.js +4 -0
- package/api/src/protocol.js +2 -0
- package/dist/blob-store.d.ts +42 -11
- package/dist/blob-store.d.ts.map +1 -1
- package/dist/blob-store.js +163 -53
- package/dist/blob-store.js.map +1 -1
- package/dist/cms-migrations.d.ts.map +1 -1
- package/dist/cms-migrations.js +231 -0
- package/dist/cms-migrations.js.map +1 -1
- package/dist/cms.d.ts +62 -0
- package/dist/cms.d.ts.map +1 -1
- package/dist/cms.js +81 -4
- package/dist/cms.js.map +1 -1
- package/dist/distiller-tools.d.ts +9 -0
- package/dist/distiller-tools.d.ts.map +1 -0
- package/dist/distiller-tools.js +102 -0
- package/dist/distiller-tools.js.map +1 -0
- package/dist/footprint.d.ts +129 -0
- package/dist/footprint.d.ts.map +1 -0
- package/dist/footprint.js +254 -0
- package/dist/footprint.js.map +1 -0
- package/dist/inspect-tools.d.ts.map +1 -1
- package/dist/inspect-tools.js +63 -2
- package/dist/inspect-tools.js.map +1 -1
- package/dist/managed-session.d.ts.map +1 -1
- package/dist/managed-session.js +140 -14
- package/dist/managed-session.js.map +1 -1
- package/dist/management-client.d.ts +32 -0
- package/dist/management-client.d.ts.map +1 -1
- package/dist/management-client.js +93 -0
- package/dist/management-client.js.map +1 -1
- package/dist/orchestration/agents.d.ts +18 -0
- package/dist/orchestration/agents.d.ts.map +1 -1
- package/dist/orchestration/agents.js +63 -3
- package/dist/orchestration/agents.js.map +1 -1
- package/dist/orchestration/index.d.ts +2 -2
- package/dist/orchestration/index.js +1 -1
- package/dist/orchestration/lifecycle.d.ts +1 -0
- package/dist/orchestration/lifecycle.d.ts.map +1 -1
- package/dist/orchestration/lifecycle.js +349 -1
- package/dist/orchestration/lifecycle.js.map +1 -1
- package/dist/orchestration/queue.d.ts.map +1 -1
- package/dist/orchestration/queue.js +61 -2
- package/dist/orchestration/queue.js.map +1 -1
- package/dist/orchestration/runtime.d.ts +1 -1
- package/dist/orchestration/runtime.d.ts.map +1 -1
- package/dist/orchestration/runtime.js +31 -1
- package/dist/orchestration/runtime.js.map +1 -1
- package/dist/orchestration/state.d.ts +29 -0
- package/dist/orchestration/state.d.ts.map +1 -1
- package/dist/orchestration/state.js +11 -0
- package/dist/orchestration/state.js.map +1 -1
- package/dist/orchestration/turn.d.ts.map +1 -1
- package/dist/orchestration/turn.js +68 -1
- package/dist/orchestration/turn.js.map +1 -1
- package/dist/orchestration-registry.d.ts.map +1 -1
- package/dist/orchestration-registry.js +8 -2
- package/dist/orchestration-registry.js.map +1 -1
- package/dist/orchestration-version.d.ts +1 -1
- package/dist/orchestration-version.js +1 -1
- package/dist/orchestration.d.ts +2 -2
- package/dist/orchestration.js +1 -1
- package/dist/orchestration_1_0_46.d.ts +1 -1
- package/dist/orchestration_1_0_47.d.ts +1 -1
- package/dist/orchestration_1_0_48.d.ts +1 -1
- package/dist/orchestration_1_0_49.d.ts +1 -1
- package/dist/orchestration_1_0_50.d.ts +1 -1
- package/dist/orchestration_1_0_65/agents.d.ts +43 -0
- package/dist/orchestration_1_0_65/agents.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/agents.js +780 -0
- package/dist/orchestration_1_0_65/agents.js.map +1 -0
- package/dist/orchestration_1_0_65/index.d.ts +24 -0
- package/dist/orchestration_1_0_65/index.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/index.js +13 -0
- package/dist/orchestration_1_0_65/index.js.map +1 -0
- package/dist/orchestration_1_0_65/lifecycle.d.ts +48 -0
- package/dist/orchestration_1_0_65/lifecycle.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/lifecycle.js +572 -0
- package/dist/orchestration_1_0_65/lifecycle.js.map +1 -0
- package/dist/orchestration_1_0_65/queue.d.ts +7 -0
- package/dist/orchestration_1_0_65/queue.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/queue.js +745 -0
- package/dist/orchestration_1_0_65/queue.js.map +1 -0
- package/dist/orchestration_1_0_65/runtime.d.ts +29 -0
- package/dist/orchestration_1_0_65/runtime.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/runtime.js +195 -0
- package/dist/orchestration_1_0_65/runtime.js.map +1 -0
- package/dist/orchestration_1_0_65/state.d.ts +147 -0
- package/dist/orchestration_1_0_65/state.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/state.js +147 -0
- package/dist/orchestration_1_0_65/state.js.map +1 -0
- package/dist/orchestration_1_0_65/turn.d.ts +34 -0
- package/dist/orchestration_1_0_65/turn.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/turn.js +1144 -0
- package/dist/orchestration_1_0_65/turn.js.map +1 -0
- package/dist/orchestration_1_0_65/utils.d.ts +39 -0
- package/dist/orchestration_1_0_65/utils.d.ts.map +1 -0
- package/dist/orchestration_1_0_65/utils.js +316 -0
- package/dist/orchestration_1_0_65/utils.js.map +1 -0
- package/dist/orchestration_1_0_66/agents.d.ts +52 -0
- package/dist/orchestration_1_0_66/agents.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/agents.js +825 -0
- package/dist/orchestration_1_0_66/agents.js.map +1 -0
- package/dist/orchestration_1_0_66/index.d.ts +24 -0
- package/dist/orchestration_1_0_66/index.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/index.js +13 -0
- package/dist/orchestration_1_0_66/index.js.map +1 -0
- package/dist/orchestration_1_0_66/lifecycle.d.ts +48 -0
- package/dist/orchestration_1_0_66/lifecycle.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/lifecycle.js +573 -0
- package/dist/orchestration_1_0_66/lifecycle.js.map +1 -0
- package/dist/orchestration_1_0_66/queue.d.ts +7 -0
- package/dist/orchestration_1_0_66/queue.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/queue.js +776 -0
- package/dist/orchestration_1_0_66/queue.js.map +1 -0
- package/dist/orchestration_1_0_66/runtime.d.ts +29 -0
- package/dist/orchestration_1_0_66/runtime.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/runtime.js +198 -0
- package/dist/orchestration_1_0_66/runtime.js.map +1 -0
- package/dist/orchestration_1_0_66/state.d.ts +149 -0
- package/dist/orchestration_1_0_66/state.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/state.js +148 -0
- package/dist/orchestration_1_0_66/state.js.map +1 -0
- package/dist/orchestration_1_0_66/turn.d.ts +34 -0
- package/dist/orchestration_1_0_66/turn.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/turn.js +1169 -0
- package/dist/orchestration_1_0_66/turn.js.map +1 -0
- package/dist/orchestration_1_0_66/utils.d.ts +39 -0
- package/dist/orchestration_1_0_66/utils.d.ts.map +1 -0
- package/dist/orchestration_1_0_66/utils.js +316 -0
- package/dist/orchestration_1_0_66/utils.js.map +1 -0
- package/dist/orchestration_1_0_67/agents.d.ts +52 -0
- package/dist/orchestration_1_0_67/agents.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/agents.js +825 -0
- package/dist/orchestration_1_0_67/agents.js.map +1 -0
- package/dist/orchestration_1_0_67/index.d.ts +28 -0
- package/dist/orchestration_1_0_67/index.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/index.js +13 -0
- package/dist/orchestration_1_0_67/index.js.map +1 -0
- package/dist/orchestration_1_0_67/lifecycle.d.ts +49 -0
- package/dist/orchestration_1_0_67/lifecycle.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/lifecycle.js +807 -0
- package/dist/orchestration_1_0_67/lifecycle.js.map +1 -0
- package/dist/orchestration_1_0_67/queue.d.ts +7 -0
- package/dist/orchestration_1_0_67/queue.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/queue.js +804 -0
- package/dist/orchestration_1_0_67/queue.js.map +1 -0
- package/dist/orchestration_1_0_67/runtime.d.ts +29 -0
- package/dist/orchestration_1_0_67/runtime.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/runtime.js +228 -0
- package/dist/orchestration_1_0_67/runtime.js.map +1 -0
- package/dist/orchestration_1_0_67/state.d.ts +176 -0
- package/dist/orchestration_1_0_67/state.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/state.js +158 -0
- package/dist/orchestration_1_0_67/state.js.map +1 -0
- package/dist/orchestration_1_0_67/turn.d.ts +34 -0
- package/dist/orchestration_1_0_67/turn.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/turn.js +1208 -0
- package/dist/orchestration_1_0_67/turn.js.map +1 -0
- package/dist/orchestration_1_0_67/utils.d.ts +39 -0
- package/dist/orchestration_1_0_67/utils.d.ts.map +1 -0
- package/dist/orchestration_1_0_67/utils.js +316 -0
- package/dist/orchestration_1_0_67/utils.js.map +1 -0
- package/dist/regen-worker.d.ts +167 -0
- package/dist/regen-worker.d.ts.map +1 -0
- package/dist/regen-worker.js +512 -0
- package/dist/regen-worker.js.map +1 -0
- package/dist/resourcemgr-tools.d.ts.map +1 -1
- package/dist/resourcemgr-tools.js +33 -2
- package/dist/resourcemgr-tools.js.map +1 -1
- package/dist/session-lifecycle.d.ts +8 -0
- package/dist/session-lifecycle.d.ts.map +1 -1
- package/dist/session-lifecycle.js +35 -17
- package/dist/session-lifecycle.js.map +1 -1
- package/dist/session-manager.d.ts +21 -0
- package/dist/session-manager.d.ts.map +1 -1
- package/dist/session-manager.js +104 -11
- package/dist/session-manager.js.map +1 -1
- package/dist/session-proxy.d.ts +34 -0
- package/dist/session-proxy.d.ts.map +1 -1
- package/dist/session-proxy.js +407 -5
- package/dist/session-proxy.js.map +1 -1
- package/dist/session-store.d.ts +50 -15
- package/dist/session-store.d.ts.map +1 -1
- package/dist/session-store.js +143 -30
- package/dist/session-store.js.map +1 -1
- package/dist/snapshot-protocol.d.ts +34 -3
- package/dist/snapshot-protocol.d.ts.map +1 -1
- package/dist/snapshot-protocol.js +25 -0
- package/dist/snapshot-protocol.js.map +1 -1
- package/dist/types.d.ts +101 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/web/web-management-client.d.ts +11 -0
- package/dist/web/web-management-client.d.ts.map +1 -1
- package/dist/web/web-management-client.js +8 -0
- package/dist/web/web-management-client.js.map +1 -1
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +7 -0
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { MessageSender } from "../message-sender.js";
|
|
2
|
+
import type { PromptAttachmentRef } from "../types.js";
|
|
3
|
+
import type { TurnResult } from "../types.js";
|
|
4
|
+
import { type DurableSessionRuntime } from "./state.js";
|
|
5
|
+
/**
|
|
6
|
+
* Scan a finished turn's captured events for a failed `set_session_model` tool
|
|
7
|
+
* call. The inline control tool returns its outcome as a plain string (see
|
|
8
|
+
* session-proxy `setSessionModel`), so `tool.execution_complete.data.result`
|
|
9
|
+
* is usually a string; some transports wrap it as `{ content }`. We match the
|
|
10
|
+
* `set_session_model failed` marker across both shapes. Exported for unit tests.
|
|
11
|
+
*/
|
|
12
|
+
export declare function detectFailedModelSwitch(events: Array<{
|
|
13
|
+
eventType?: string;
|
|
14
|
+
data?: any;
|
|
15
|
+
}> | undefined): string | null;
|
|
16
|
+
/** @internal Project a non-retryable credential failure without terminating the orchestration. */
|
|
17
|
+
export declare function projectAuthFailure(runtime: DurableSessionRuntime, errorMessage: string): Generator<any, void, any>;
|
|
18
|
+
export declare function processPrompt(runtime: DurableSessionRuntime, promptText: string, isBootstrap: boolean, requiredTool?: string, clientMessageIds?: string[], cycleOrigin?: "cron" | "cron_at", sender?: MessageSender, attachments?: PromptAttachmentRef[]): Generator<any, void, any>;
|
|
19
|
+
/**
|
|
20
|
+
* Normalize a raced runTurn branch value. The duroxide-node select bridge
|
|
21
|
+
* flattens activity failures into their raw error string (make_select_future:
|
|
22
|
+
* `Ok(v) => v, Err(e) => e`) instead of throwing into the generator, so the
|
|
23
|
+
* caller must distinguish a TurnResult payload from an error message.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeRacedTurnValue(value: any): {
|
|
26
|
+
kind: "result";
|
|
27
|
+
result: any;
|
|
28
|
+
} | {
|
|
29
|
+
kind: "error";
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
export declare function handleTurnResult(runtime: DurableSessionRuntime, result: TurnResult, sourcePrompt: string, cycleOrigin?: "cron" | "cron_at", clientMessageIds?: string[]): Generator<any, void, any>;
|
|
33
|
+
export declare function processTimer(runtime: DurableSessionRuntime, timerItem: any): Generator<any, void, any>;
|
|
34
|
+
//# sourceMappingURL=turn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turn.d.ts","sourceRoot":"","sources":["../../src/orchestration_1_0_65/turn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAsB,UAAU,EAAE,MAAM,aAAa,CAAC;AA8BlE,OAAO,EAKH,KAAK,qBAAqB,EAC7B,MAAM,YAAY,CAAC;AAkCpB;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAYpH;AA8GD,kGAAkG;AAClG,wBAAiB,kBAAkB,CAC/B,OAAO,EAAE,qBAAqB,EAC9B,YAAY,EAAE,MAAM,GACrB,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAe3B;AAwCD,wBAAiB,aAAa,CAC1B,OAAO,EAAE,qBAAqB,EAC9B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,OAAO,EACpB,YAAY,CAAC,EAAE,MAAM,EACrB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,CAAC,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,mBAAmB,EAAE,GACpC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAsO3B;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,GAAG,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAaxH;AA+TD,wBAAiB,gBAAgB,CAC7B,OAAO,EAAE,qBAAqB,EAC9B,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,EAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAC5B,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAmR3B;AAID,wBAAiB,YAAY,CACzB,OAAO,EAAE,qBAAqB,EAC9B,SAAS,EAAE,GAAG,GACf,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,CAoN3B"}
|