@swirls/looms 0.0.2 → 0.2.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/CHANGELOG.md +24 -2
- package/dist/actor/cell.d.ts +9 -4
- package/dist/actor/cell.js +7 -11
- package/dist/actor/host.d.ts +7 -3
- package/dist/actor/host.js +57 -33
- package/dist/actor/index.d.ts +1 -1
- package/dist/actor/index.js +1 -1
- package/dist/actor/routing.d.ts +12 -1
- package/dist/actor/routing.js +57 -51
- package/dist/agent/agent-session.d.ts +5 -0
- package/dist/agent/agent-session.js +270 -0
- package/dist/agent/debugger/agent-chat.d.ts +2 -0
- package/dist/agent/debugger/agent-chat.js +176 -0
- package/dist/agent/debugger/index.d.ts +5 -0
- package/dist/agent/debugger/index.js +19 -0
- package/dist/agent/debugger/summarize.d.ts +2 -0
- package/dist/agent/debugger/summarize.js +51 -0
- package/dist/agent/debugger/token-usage.d.ts +3 -0
- package/dist/agent/debugger/token-usage.js +11 -0
- package/dist/agent/definitions-store.d.ts +2 -3
- package/dist/agent/definitions-store.js +2 -4
- package/dist/agent/definitions.d.ts +47 -29
- package/dist/agent/definitions.js +39 -12
- package/dist/agent/effects.d.ts +359 -2
- package/dist/agent/effects.js +60 -34
- package/dist/agent/events.d.ts +175 -19
- package/dist/agent/events.js +45 -10
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +1 -0
- package/dist/agent/llm.d.ts +11 -2
- package/dist/agent/llm.js +13 -3
- package/dist/agent/module.d.ts +812 -78
- package/dist/agent/module.js +16 -4
- package/dist/agent/scope.d.ts +174 -18
- package/dist/agent/signals.d.ts +26 -1
- package/dist/agent/signals.js +79 -0
- package/dist/agent/threads.d.ts +3 -33
- package/dist/agent/threads.js +20 -25
- package/dist/agent/tool-schema.d.ts +1 -17
- package/dist/agent/tool-schema.js +3 -43
- package/dist/agent/types.d.ts +49 -4
- package/dist/agent/types.js +5 -5
- package/dist/ai-vercel/index.d.ts +1 -0
- package/dist/ai-vercel/index.js +1 -0
- package/dist/ai-vercel/messages.js +22 -7
- package/dist/ai-vercel/vercel-evaluator.d.ts +36 -0
- package/dist/ai-vercel/vercel-evaluator.js +73 -0
- package/dist/ai-vercel/vercel-llm.js +64 -44
- package/dist/approval/debugger/approvals-view.d.ts +3 -0
- package/dist/approval/debugger/approvals-view.js +16 -0
- package/dist/approval/debugger/index.d.ts +4 -0
- package/dist/approval/debugger/index.js +11 -0
- package/dist/approval/debugger/summarize.d.ts +2 -0
- package/dist/approval/debugger/summarize.js +17 -0
- package/dist/approval/effects.d.ts +89 -0
- package/dist/approval/module.d.ts +179 -29
- package/dist/approval/projections.d.ts +0 -14
- package/dist/approval/projections.js +20 -3
- package/dist/approval/signals.d.ts +2 -0
- package/dist/approval/signals.js +18 -2
- package/dist/cli/cli.js +2 -0
- package/dist/cli/commands.js +12 -16
- package/dist/client/client.d.ts +1213 -18
- package/dist/client/client.js +120 -120
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/sse.d.ts +13 -0
- package/dist/client/sse.js +38 -44
- package/dist/cloudflare/alarm-scheduler.d.ts +12 -2
- package/dist/cloudflare/alarm-scheduler.js +34 -7
- package/dist/cloudflare/durable-object.d.ts +10 -2
- package/dist/cloudflare/durable-object.js +59 -28
- package/dist/cloudflare/event-store.d.ts +7 -2
- package/dist/cloudflare/event-store.js +8 -7
- package/dist/cloudflare/index.d.ts +2 -2
- package/dist/cloudflare/index.js +2 -2
- package/dist/cloudflare/router.d.ts +1 -1
- package/dist/cloudflare/router.js +15 -16
- package/dist/core/catalog.d.ts +3 -3
- package/dist/core/catalog.js +2 -5
- package/dist/core/coalesce.js +5 -3
- package/dist/core/compose.d.ts +2 -1
- package/dist/core/compose.js +19 -2
- package/dist/core/debugger-host.d.ts +16 -0
- package/dist/core/debugger-host.js +1 -0
- package/dist/core/definition-store.d.ts +11 -0
- package/dist/core/definition-store.js +6 -0
- package/dist/core/effects.d.ts +127 -15
- package/dist/core/effects.js +89 -17
- package/dist/core/envelope.d.ts +27 -7
- package/dist/core/envelope.js +20 -6
- package/dist/core/event-codec.d.ts +4 -2
- package/dist/core/event-codec.js +10 -5
- package/dist/core/event-index.js +1 -3
- package/dist/core/fold.d.ts +3 -0
- package/dist/core/fold.js +171 -24
- package/dist/core/ids.d.ts +5 -0
- package/dist/core/ids.js +35 -2
- package/dist/core/index.d.ts +7 -1
- package/dist/core/index.js +6 -1
- package/dist/core/kind.d.ts +22 -0
- package/dist/core/kind.js +17 -0
- package/dist/core/limits.d.ts +34 -0
- package/dist/core/limits.js +46 -0
- package/dist/core/match.d.ts +1 -0
- package/dist/core/match.js +10 -1
- package/dist/core/module-scope.d.ts +22 -20
- package/dist/core/module-scope.js +38 -28
- package/dist/core/module.d.ts +18 -5
- package/dist/core/module.js +4 -0
- package/dist/core/projection.d.ts +13 -13
- package/dist/core/projection.js +9 -5
- package/dist/core/protocol.d.ts +68 -11
- package/dist/core/protocol.js +82 -11
- package/dist/core/published.d.ts +43 -0
- package/dist/core/published.js +44 -0
- package/dist/core/replay.d.ts +312 -3
- package/dist/core/replay.js +11 -1
- package/dist/core/schema.d.ts +11 -20
- package/dist/core/schema.js +63 -80
- package/dist/core/serialize.js +2 -4
- package/dist/core/snapshot-store.d.ts +6 -1
- package/dist/core/snapshot-store.js +15 -2
- package/dist/core/snapshots.d.ts +5 -1
- package/dist/core/snapshots.js +10 -15
- package/dist/core/sqlite-store.js +95 -11
- package/dist/core/state.d.ts +142 -4
- package/dist/core/state.js +78 -0
- package/dist/core/store.d.ts +38 -3
- package/dist/core/store.js +77 -22
- package/dist/core/thread.d.ts +10 -9
- package/dist/core/types.d.ts +5 -8
- package/dist/core/types.js +28 -24
- package/dist/core/validate-event.js +14 -4
- package/dist/core/worker-callback.d.ts +17 -0
- package/dist/core/worker-callback.js +1 -0
- package/dist/debugger/app/assets/index-B3Ah8WAE.css +2 -0
- package/dist/debugger/app/assets/index-Qb371t_O.js +22 -0
- package/dist/debugger/app/assets/rolldown-runtime-CbXtAM7H.js +1 -0
- package/dist/debugger/app/assets/routes-CjtEHgPQ.js +47 -0
- package/dist/debugger/app/index.html +14 -0
- package/dist/debugger/components/composer.d.ts +17 -0
- package/dist/debugger/components/composer.js +25 -0
- package/dist/debugger/components/debugger-split.d.ts +2 -1
- package/dist/debugger/components/debugger-split.js +2 -2
- package/dist/debugger/components/event-inspector.d.ts +2 -1
- package/dist/debugger/components/event-inspector.js +25 -16
- package/dist/debugger/components/event-stream.d.ts +2 -1
- package/dist/debugger/components/event-stream.js +14 -74
- package/dist/debugger/components/follow-list.d.ts +19 -0
- package/dist/debugger/components/follow-list.js +96 -0
- package/dist/debugger/components/json-tree.d.ts +11 -0
- package/dist/debugger/components/json-tree.js +120 -0
- package/dist/debugger/components/json-view.js +2 -2
- package/dist/debugger/components/run-tree.js +53 -20
- package/dist/debugger/components/status-dot.d.ts +4 -0
- package/dist/debugger/components/status-dot.js +6 -2
- package/dist/debugger/context.d.ts +14 -0
- package/dist/debugger/context.js +17 -0
- package/dist/debugger/contracts.d.ts +7 -4
- package/dist/debugger/events/builtin-families.d.ts +3 -0
- package/dist/debugger/events/builtin-families.js +9 -0
- package/dist/debugger/events/catalog.d.ts +3 -4
- package/dist/debugger/events/catalog.js +27 -17
- package/dist/debugger/events/protocol-summarize.d.ts +1 -2
- package/dist/debugger/events/protocol-summarize.js +42 -24
- package/dist/debugger/index.d.ts +20 -6
- package/dist/debugger/index.js +19 -5
- package/dist/debugger/lib/cn.d.ts +1 -0
- package/dist/debugger/lib/cn.js +3 -0
- package/dist/debugger/lib/event-meta.d.ts +2 -3
- package/dist/debugger/lib/event-meta.js +6 -12
- package/dist/debugger/lib/json.d.ts +25 -0
- package/dist/debugger/lib/json.js +87 -0
- package/dist/debugger/lib/payload.d.ts +7 -0
- package/dist/debugger/lib/payload.js +11 -0
- package/dist/debugger/lib/time.d.ts +3 -0
- package/dist/debugger/lib/time.js +24 -0
- package/dist/debugger/plugin.d.ts +36 -0
- package/dist/debugger/plugin.js +14 -0
- package/dist/debugger/server/index.d.ts +14 -0
- package/dist/debugger/server/index.js +114 -0
- package/dist/debugger/shell/debugger-shell.d.ts +15 -0
- package/dist/debugger/shell/debugger-shell.js +43 -0
- package/dist/debugger/shell/definition-key.d.ts +3 -0
- package/dist/debugger/shell/definition-key.js +4 -0
- package/dist/debugger/shell/events-pane.d.ts +12 -0
- package/dist/debugger/shell/events-pane.js +25 -0
- package/dist/debugger/shell/projections-panel.d.ts +4 -0
- package/dist/debugger/shell/projections-panel.js +59 -0
- package/dist/debugger/shell/run-controls.d.ts +4 -0
- package/dist/debugger/shell/run-controls.js +72 -0
- package/dist/debugger/shell/run-search.d.ts +6 -0
- package/dist/debugger/shell/run-search.js +102 -0
- package/dist/debugger/shell/run-type-menu.d.ts +6 -0
- package/dist/debugger/shell/run-type-menu.js +11 -0
- package/dist/debugger/shell/schema-form.d.ts +31 -0
- package/dist/debugger/shell/schema-form.js +117 -0
- package/dist/debugger/shell/start-form.d.ts +3 -0
- package/dist/debugger/shell/start-form.js +75 -0
- package/dist/debugger/shell/use-start-run.d.ts +14 -0
- package/dist/debugger/shell/use-start-run.js +32 -0
- package/dist/debugger/shell/workspace.d.ts +6 -0
- package/dist/debugger/shell/workspace.js +15 -0
- package/dist/debugger/styles.css +111 -27
- package/dist/debugger/ui/button.d.ts +24 -0
- package/dist/debugger/ui/button.js +24 -0
- package/dist/debugger/ui/command.d.ts +9 -0
- package/dist/debugger/ui/command.js +24 -0
- package/dist/debugger/ui/dropdown-menu.d.ts +13 -0
- package/dist/debugger/ui/dropdown-menu.js +37 -0
- package/dist/debugger/ui/panel.d.ts +14 -0
- package/dist/debugger/ui/panel.js +16 -0
- package/dist/debugger/ui/popover.d.ts +7 -0
- package/dist/debugger/ui/popover.js +17 -0
- package/dist/debugger/ui/resizable.d.ts +7 -0
- package/dist/debugger/ui/resizable.js +14 -0
- package/dist/debugger/ui/scroll-area.d.ts +2 -1
- package/dist/debugger/ui/scroll-area.js +5 -3
- package/dist/debugger/ui/select.d.ts +10 -0
- package/dist/debugger/ui/select.js +21 -0
- package/dist/debugger/ui/tabs.js +2 -2
- package/dist/debugger/ui/textarea.d.ts +3 -0
- package/dist/debugger/ui/textarea.js +7 -0
- package/dist/evaluator/definitions-store.d.ts +11 -0
- package/dist/evaluator/definitions-store.js +8 -0
- package/dist/evaluator/definitions.d.ts +18 -0
- package/dist/evaluator/definitions.js +4 -0
- package/dist/evaluator/effects.d.ts +226 -0
- package/dist/evaluator/effects.js +132 -0
- package/dist/evaluator/evaluator.d.ts +24 -0
- package/dist/evaluator/evaluator.js +67 -0
- package/dist/evaluator/events.d.ts +59 -0
- package/dist/evaluator/events.js +21 -0
- package/dist/evaluator/index.d.ts +11 -0
- package/dist/evaluator/index.js +11 -0
- package/dist/evaluator/module.d.ts +606 -0
- package/dist/evaluator/module.js +25 -0
- package/dist/evaluator/projections.d.ts +50 -0
- package/dist/evaluator/projections.js +20 -0
- package/dist/evaluator/scope.d.ts +59 -0
- package/dist/evaluator/scope.js +7 -0
- package/dist/evaluator/signals.d.ts +3 -0
- package/dist/evaluator/signals.js +17 -0
- package/dist/evaluator/threads.d.ts +62 -0
- package/dist/evaluator/threads.js +117 -0
- package/dist/evaluator/types.d.ts +125 -0
- package/dist/evaluator/types.js +51 -0
- package/dist/projectors/delivery.d.ts +83 -0
- package/dist/projectors/delivery.js +182 -0
- package/dist/projectors/index-model.d.ts +1 -1
- package/dist/projectors/index-model.js +4 -6
- package/dist/projectors/index.d.ts +2 -0
- package/dist/projectors/index.js +2 -0
- package/dist/projectors/memory.d.ts +1 -1
- package/dist/projectors/memory.js +10 -8
- package/dist/projectors/postgres.js +44 -58
- package/dist/projectors/projector.d.ts +17 -0
- package/dist/projectors/projector.js +26 -1
- package/dist/projectors/sqlite-delivery.d.ts +4 -0
- package/dist/projectors/sqlite-delivery.js +147 -0
- package/dist/projectors/sqlite.js +23 -23
- package/dist/projectors/with-projectors.d.ts +7 -2
- package/dist/projectors/with-projectors.js +27 -28
- package/dist/react/notify.js +11 -8
- package/dist/react/react.d.ts +2 -3
- package/dist/react/react.js +14 -30
- package/dist/react/sse.d.ts +1 -1
- package/dist/react/sse.js +1 -1
- package/dist/react/store.d.ts +3 -3
- package/dist/react/store.js +109 -119
- package/dist/runtime/cancellation.d.ts +16 -0
- package/dist/runtime/cancellation.js +129 -0
- package/dist/runtime/deadline-transition-planner.d.ts +31 -0
- package/dist/runtime/deadline-transition-planner.js +139 -0
- package/dist/runtime/dispatch-effect.d.ts +3 -2
- package/dist/runtime/dispatch-effect.js +7 -13
- package/dist/runtime/errors.d.ts +51 -0
- package/dist/runtime/errors.js +39 -0
- package/dist/runtime/{runtime-helpers.d.ts → helpers.d.ts} +24 -4
- package/dist/runtime/{runtime-helpers.js → helpers.js} +56 -19
- package/dist/runtime/index.d.ts +3 -3
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/ingress.d.ts +15 -0
- package/dist/runtime/ingress.js +42 -0
- package/dist/runtime/local-effect-executor.d.ts +21 -0
- package/dist/runtime/local-effect-executor.js +137 -0
- package/dist/runtime/looms.d.ts +30 -4
- package/dist/runtime/looms.js +57 -37
- package/dist/runtime/observer.d.ts +45 -0
- package/dist/runtime/observer.js +11 -0
- package/dist/runtime/repository.d.ts +55 -0
- package/dist/runtime/repository.js +293 -0
- package/dist/runtime/retry-policy.d.ts +16 -0
- package/dist/runtime/retry-policy.js +29 -0
- package/dist/runtime/run-execution-context.d.ts +30 -0
- package/dist/runtime/run-execution-context.js +56 -0
- package/dist/runtime/run-start.d.ts +4 -0
- package/dist/runtime/run-start.js +44 -0
- package/dist/runtime/runtime.d.ts +6 -87
- package/dist/runtime/runtime.js +248 -470
- package/dist/runtime/server/auth.d.ts +41 -0
- package/dist/runtime/server/auth.js +45 -0
- package/dist/runtime/server/debugger-host.d.ts +11 -0
- package/dist/runtime/server/debugger-host.js +32 -0
- package/dist/runtime/server/fetch-handler.d.ts +18 -0
- package/dist/runtime/server/fetch-handler.js +62 -0
- package/dist/runtime/server/http.d.ts +38 -0
- package/dist/runtime/server/http.js +66 -0
- package/dist/runtime/server/route-table.d.ts +55 -0
- package/dist/runtime/server/route-table.js +74 -0
- package/dist/runtime/server/routes/definitions.d.ts +3 -0
- package/dist/runtime/server/routes/definitions.js +20 -0
- package/dist/runtime/server/routes/effects.d.ts +3 -0
- package/dist/runtime/server/routes/effects.js +59 -0
- package/dist/runtime/server/routes/operations.d.ts +3 -0
- package/dist/runtime/server/routes/operations.js +14 -0
- package/dist/runtime/server/routes/runs.d.ts +3 -0
- package/dist/runtime/server/routes/runs.js +199 -0
- package/dist/runtime/server.d.ts +4 -8
- package/dist/runtime/server.js +6 -211
- package/dist/runtime/sse.d.ts +2 -1
- package/dist/runtime/sse.js +24 -17
- package/dist/runtime/types.d.ts +117 -0
- package/dist/runtime/types.js +1 -0
- package/dist/runtime/wake-engine.d.ts +20 -0
- package/dist/runtime/wake-engine.js +311 -0
- package/dist/runtime/wake-scheduler.d.ts +3 -4
- package/dist/runtime/wake-scheduler.js +25 -31
- package/dist/runtime/worker-callbacks.d.ts +16 -0
- package/dist/runtime/worker-callbacks.js +167 -0
- package/dist/runtime/worker-effect-dispatch.d.ts +36 -0
- package/dist/runtime/worker-effect-dispatch.js +126 -0
- package/dist/s2/config.d.ts +1 -1
- package/dist/s2/config.js +1 -1
- package/dist/s2/lite.js +70 -82
- package/dist/s2/pagination.d.ts +15 -0
- package/dist/s2/pagination.js +36 -0
- package/dist/s2/projector.js +6 -5
- package/dist/s2/snapshot-store.js +188 -161
- package/dist/s2/store.d.ts +3 -21
- package/dist/s2/store.js +71 -165
- package/dist/testing/index.d.ts +15 -0
- package/dist/testing/index.js +53 -16
- package/dist/workflow/debugger/index.d.ts +4 -0
- package/dist/workflow/debugger/index.js +11 -0
- package/dist/workflow/debugger/nodes-view.d.ts +3 -0
- package/dist/workflow/debugger/nodes-view.js +13 -0
- package/dist/workflow/debugger/summarize.d.ts +2 -0
- package/dist/workflow/debugger/summarize.js +30 -0
- package/dist/workflow/definitions-store.d.ts +2 -3
- package/dist/workflow/definitions-store.js +2 -2
- package/dist/workflow/definitions.d.ts +78 -22
- package/dist/workflow/definitions.js +80 -14
- package/dist/workflow/effects.d.ts +453 -107
- package/dist/workflow/effects.js +214 -115
- package/dist/workflow/events.d.ts +149 -5
- package/dist/workflow/events.js +27 -5
- package/dist/workflow/graph.d.ts +56 -0
- package/dist/workflow/graph.js +207 -0
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.js +1 -0
- package/dist/workflow/module.d.ts +1047 -266
- package/dist/workflow/projections.d.ts +14 -12
- package/dist/workflow/projections.js +30 -8
- package/dist/workflow/scope.d.ts +146 -4
- package/dist/workflow/threads.d.ts +383 -155
- package/dist/workflow/threads.js +308 -110
- package/package.json +26 -2
- package/dist/debugger/events/domain-summarize.d.ts +0 -3
- package/dist/debugger/events/domain-summarize.js +0 -107
- package/dist/debugger/events/family.d.ts +0 -8
- package/dist/debugger/events/family.js +0 -44
- package/dist/runtime/events-api.d.ts +0 -4
- package/dist/runtime/events-api.js +0 -84
package/dist/agent/effects.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { type ToolCall } from './types';
|
|
|
6
6
|
export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectDefinition<{
|
|
7
7
|
readonly turn: number;
|
|
8
8
|
readonly definitionName?: string | undefined;
|
|
9
|
+
readonly definitionVersion: string;
|
|
9
10
|
readonly messages?: readonly {
|
|
10
11
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
11
12
|
readonly content: string;
|
|
@@ -18,11 +19,68 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
18
19
|
}[] | undefined;
|
|
19
20
|
}[] | undefined;
|
|
20
21
|
readonly input?: Schema.Json | undefined;
|
|
22
|
+
readonly consumedSteerMessageIds?: readonly string[] | undefined;
|
|
21
23
|
}, AgentDefinitionsTag | LlmTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
22
24
|
readonly type: "agent.effects.requested";
|
|
23
25
|
readonly payload: {
|
|
24
26
|
readonly toolCallId: string;
|
|
25
|
-
readonly effects: readonly
|
|
27
|
+
readonly effects: readonly ({
|
|
28
|
+
readonly type: "runtime.spawn";
|
|
29
|
+
readonly childThreadId: string;
|
|
30
|
+
readonly kind: string;
|
|
31
|
+
readonly definitionName: string;
|
|
32
|
+
readonly definitionVersion: string;
|
|
33
|
+
readonly input: Schema.Json;
|
|
34
|
+
} | {
|
|
35
|
+
readonly type: "runtime.wait";
|
|
36
|
+
readonly waitId: string;
|
|
37
|
+
readonly on: {
|
|
38
|
+
readonly type: string | readonly string[];
|
|
39
|
+
readonly match?: Schema.Json | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
readonly timerAt: number;
|
|
42
|
+
};
|
|
43
|
+
readonly tag?: Schema.Json | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
readonly type: "runtime.emit";
|
|
46
|
+
readonly event: {
|
|
47
|
+
readonly type: string;
|
|
48
|
+
readonly payload: Schema.Json;
|
|
49
|
+
readonly threadId?: string | null | undefined;
|
|
50
|
+
readonly parentThreadId?: string | null | undefined;
|
|
51
|
+
readonly causationId?: string | null | undefined;
|
|
52
|
+
readonly correlationId?: string | null | undefined;
|
|
53
|
+
readonly effectId?: string | null | undefined;
|
|
54
|
+
readonly origin?: {
|
|
55
|
+
readonly type: "thread";
|
|
56
|
+
readonly threadId: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "external";
|
|
59
|
+
readonly actorId?: string | undefined;
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "system";
|
|
62
|
+
} | undefined;
|
|
63
|
+
readonly ephemeral?: boolean | undefined;
|
|
64
|
+
readonly id?: string | undefined;
|
|
65
|
+
readonly ts?: number | undefined;
|
|
66
|
+
readonly idempotencyKey?: string | null | undefined;
|
|
67
|
+
};
|
|
68
|
+
readonly tag?: string | undefined;
|
|
69
|
+
} | {
|
|
70
|
+
readonly type: "runtime.complete";
|
|
71
|
+
readonly output: Schema.Json;
|
|
72
|
+
} | {
|
|
73
|
+
readonly type: "runtime.fail";
|
|
74
|
+
readonly error: string;
|
|
75
|
+
} | {
|
|
76
|
+
readonly type: "runtime.cancel";
|
|
77
|
+
readonly threadId: string;
|
|
78
|
+
readonly tag?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
readonly type: string;
|
|
81
|
+
readonly input: Schema.Json;
|
|
82
|
+
readonly tag?: string | undefined;
|
|
83
|
+
})[];
|
|
26
84
|
readonly waitOn?: {
|
|
27
85
|
readonly type: string | readonly string[];
|
|
28
86
|
readonly match?: Schema.Json | undefined;
|
|
@@ -63,12 +121,43 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
63
121
|
}[] | undefined;
|
|
64
122
|
};
|
|
65
123
|
};
|
|
124
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
125
|
+
readonly type: "agent.session.cancel.requested";
|
|
126
|
+
readonly payload: {};
|
|
127
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
128
|
+
readonly type: "agent.session.message.submitted";
|
|
129
|
+
readonly payload: {
|
|
130
|
+
readonly messageId: string;
|
|
131
|
+
readonly text: string;
|
|
132
|
+
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
133
|
+
readonly activeChildThreadId?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
136
|
+
readonly type: "agent.session.steer.delivered";
|
|
137
|
+
readonly payload: {
|
|
138
|
+
readonly messageId: string;
|
|
139
|
+
readonly activeMessageId: string;
|
|
140
|
+
};
|
|
141
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
142
|
+
readonly type: "agent.session.turn.closed";
|
|
143
|
+
readonly payload: {
|
|
144
|
+
readonly messageId: string;
|
|
145
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
146
|
+
readonly error?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
149
|
+
readonly type: "agent.session.turn.started";
|
|
150
|
+
readonly payload: {
|
|
151
|
+
readonly messageId: string;
|
|
152
|
+
readonly childThreadId: string;
|
|
153
|
+
};
|
|
66
154
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
67
155
|
readonly type: "agent.spawn.requested";
|
|
68
156
|
readonly payload: {
|
|
69
157
|
readonly childThreadId: string;
|
|
70
158
|
readonly kind: string;
|
|
71
159
|
readonly definitionName: string;
|
|
160
|
+
readonly definitionVersion: string;
|
|
72
161
|
readonly toolCallId: string;
|
|
73
162
|
readonly input: Schema.Json;
|
|
74
163
|
};
|
|
@@ -76,6 +165,7 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
76
165
|
readonly type: "agent.steered";
|
|
77
166
|
readonly payload: {
|
|
78
167
|
readonly turn: number;
|
|
168
|
+
readonly messageId?: string | undefined;
|
|
79
169
|
readonly message: {
|
|
80
170
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
81
171
|
readonly content: string;
|
|
@@ -119,12 +209,93 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
119
209
|
readonly turn: number;
|
|
120
210
|
readonly delta: string;
|
|
121
211
|
};
|
|
212
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
213
|
+
readonly type: "runtime.effect.ambiguous";
|
|
214
|
+
readonly payload: {
|
|
215
|
+
readonly effectId: string;
|
|
216
|
+
readonly attempt: number;
|
|
217
|
+
readonly error: string;
|
|
218
|
+
};
|
|
219
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
220
|
+
readonly type: "runtime.effect.attempt.started";
|
|
221
|
+
readonly payload: {
|
|
222
|
+
readonly effectId: string;
|
|
223
|
+
readonly attempt: number;
|
|
224
|
+
};
|
|
225
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
226
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
227
|
+
readonly payload: {
|
|
228
|
+
readonly effectId: string;
|
|
229
|
+
readonly attempt: number;
|
|
230
|
+
readonly deadlineAt: number | null;
|
|
231
|
+
};
|
|
232
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
233
|
+
readonly type: "runtime.effect.cancelled";
|
|
234
|
+
readonly payload: {
|
|
235
|
+
readonly effectId: string;
|
|
236
|
+
readonly attempt: number;
|
|
237
|
+
};
|
|
238
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
239
|
+
readonly type: "runtime.effect.completed";
|
|
240
|
+
readonly payload: {
|
|
241
|
+
readonly effectId: string;
|
|
242
|
+
readonly attempt: number;
|
|
243
|
+
};
|
|
244
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
245
|
+
readonly type: "runtime.effect.dispatched";
|
|
246
|
+
readonly payload: {
|
|
247
|
+
readonly effectId: string;
|
|
248
|
+
readonly attempt: number;
|
|
249
|
+
readonly deadlineAt: number | null;
|
|
250
|
+
};
|
|
122
251
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
123
252
|
readonly type: "runtime.effect.failed";
|
|
124
253
|
readonly payload: {
|
|
125
254
|
readonly effectId: string;
|
|
126
255
|
readonly error: string;
|
|
127
256
|
};
|
|
257
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
258
|
+
readonly type: "runtime.effect.heartbeat";
|
|
259
|
+
readonly payload: {
|
|
260
|
+
readonly effectId: string;
|
|
261
|
+
readonly attempt: number;
|
|
262
|
+
readonly heartbeatAt: number;
|
|
263
|
+
readonly deadlineAt: number | null;
|
|
264
|
+
};
|
|
265
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
266
|
+
readonly type: "runtime.effect.queued";
|
|
267
|
+
readonly payload: {
|
|
268
|
+
readonly effectId: string;
|
|
269
|
+
readonly attempt: number;
|
|
270
|
+
readonly deadlineAt: number | null;
|
|
271
|
+
};
|
|
272
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
273
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
274
|
+
readonly payload: {
|
|
275
|
+
readonly effectId: string;
|
|
276
|
+
readonly attempt: number;
|
|
277
|
+
readonly nextAttemptAt: number;
|
|
278
|
+
readonly error: string;
|
|
279
|
+
};
|
|
280
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
281
|
+
readonly type: "runtime.effect.timed_out";
|
|
282
|
+
readonly payload: {
|
|
283
|
+
readonly effectId: string;
|
|
284
|
+
readonly attempt: number;
|
|
285
|
+
readonly timeout: string;
|
|
286
|
+
};
|
|
287
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
288
|
+
readonly type: "runtime.effect.worker.started";
|
|
289
|
+
readonly payload: {
|
|
290
|
+
readonly effectId: string;
|
|
291
|
+
readonly attempt: number;
|
|
292
|
+
readonly deadlineAt: number | null;
|
|
293
|
+
};
|
|
294
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
295
|
+
readonly type: "runtime.run.cancelled";
|
|
296
|
+
readonly payload: {
|
|
297
|
+
readonly reason?: string | undefined;
|
|
298
|
+
};
|
|
128
299
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
129
300
|
readonly type: "runtime.run.completed";
|
|
130
301
|
readonly payload: {
|
|
@@ -137,7 +308,9 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
137
308
|
readonly rootThreadId?: string | undefined;
|
|
138
309
|
readonly kind: string;
|
|
139
310
|
readonly definitionName: string;
|
|
311
|
+
readonly definitionVersion: string;
|
|
140
312
|
readonly input: Schema.Json;
|
|
313
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
141
314
|
};
|
|
142
315
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
143
316
|
readonly type: "runtime.signal.received";
|
|
@@ -151,6 +324,11 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
151
324
|
readonly stateHash: string;
|
|
152
325
|
readonly state?: Schema.Json | undefined;
|
|
153
326
|
};
|
|
327
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
328
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
329
|
+
readonly payload: {
|
|
330
|
+
readonly threadId: string;
|
|
331
|
+
};
|
|
154
332
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
155
333
|
readonly type: "runtime.thread.cancelled";
|
|
156
334
|
readonly payload: {
|
|
@@ -175,6 +353,7 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
175
353
|
readonly threadId: string;
|
|
176
354
|
readonly kind: string;
|
|
177
355
|
readonly definitionName: string;
|
|
356
|
+
readonly definitionVersion: string;
|
|
178
357
|
readonly input: Schema.Json;
|
|
179
358
|
readonly parentThreadId: string | null;
|
|
180
359
|
};
|
|
@@ -219,6 +398,7 @@ export declare const callLlmEffect: NoInfer<import("@swirls/looms/core").EffectD
|
|
|
219
398
|
export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").EffectDefinition<{
|
|
220
399
|
readonly turn: number;
|
|
221
400
|
readonly definitionName?: string | undefined;
|
|
401
|
+
readonly definitionVersion: string;
|
|
222
402
|
readonly toolCall: {
|
|
223
403
|
readonly id: string;
|
|
224
404
|
readonly name: string;
|
|
@@ -228,7 +408,63 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
228
408
|
readonly type: "agent.effects.requested";
|
|
229
409
|
readonly payload: {
|
|
230
410
|
readonly toolCallId: string;
|
|
231
|
-
readonly effects: readonly
|
|
411
|
+
readonly effects: readonly ({
|
|
412
|
+
readonly type: "runtime.spawn";
|
|
413
|
+
readonly childThreadId: string;
|
|
414
|
+
readonly kind: string;
|
|
415
|
+
readonly definitionName: string;
|
|
416
|
+
readonly definitionVersion: string;
|
|
417
|
+
readonly input: Schema.Json;
|
|
418
|
+
} | {
|
|
419
|
+
readonly type: "runtime.wait";
|
|
420
|
+
readonly waitId: string;
|
|
421
|
+
readonly on: {
|
|
422
|
+
readonly type: string | readonly string[];
|
|
423
|
+
readonly match?: Schema.Json | undefined;
|
|
424
|
+
} | {
|
|
425
|
+
readonly timerAt: number;
|
|
426
|
+
};
|
|
427
|
+
readonly tag?: Schema.Json | undefined;
|
|
428
|
+
} | {
|
|
429
|
+
readonly type: "runtime.emit";
|
|
430
|
+
readonly event: {
|
|
431
|
+
readonly type: string;
|
|
432
|
+
readonly payload: Schema.Json;
|
|
433
|
+
readonly threadId?: string | null | undefined;
|
|
434
|
+
readonly parentThreadId?: string | null | undefined;
|
|
435
|
+
readonly causationId?: string | null | undefined;
|
|
436
|
+
readonly correlationId?: string | null | undefined;
|
|
437
|
+
readonly effectId?: string | null | undefined;
|
|
438
|
+
readonly origin?: {
|
|
439
|
+
readonly type: "thread";
|
|
440
|
+
readonly threadId: string;
|
|
441
|
+
} | {
|
|
442
|
+
readonly type: "external";
|
|
443
|
+
readonly actorId?: string | undefined;
|
|
444
|
+
} | {
|
|
445
|
+
readonly type: "system";
|
|
446
|
+
} | undefined;
|
|
447
|
+
readonly ephemeral?: boolean | undefined;
|
|
448
|
+
readonly id?: string | undefined;
|
|
449
|
+
readonly ts?: number | undefined;
|
|
450
|
+
readonly idempotencyKey?: string | null | undefined;
|
|
451
|
+
};
|
|
452
|
+
readonly tag?: string | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
readonly type: "runtime.complete";
|
|
455
|
+
readonly output: Schema.Json;
|
|
456
|
+
} | {
|
|
457
|
+
readonly type: "runtime.fail";
|
|
458
|
+
readonly error: string;
|
|
459
|
+
} | {
|
|
460
|
+
readonly type: "runtime.cancel";
|
|
461
|
+
readonly threadId: string;
|
|
462
|
+
readonly tag?: string | undefined;
|
|
463
|
+
} | {
|
|
464
|
+
readonly type: string;
|
|
465
|
+
readonly input: Schema.Json;
|
|
466
|
+
readonly tag?: string | undefined;
|
|
467
|
+
})[];
|
|
232
468
|
readonly waitOn?: {
|
|
233
469
|
readonly type: string | readonly string[];
|
|
234
470
|
readonly match?: Schema.Json | undefined;
|
|
@@ -269,12 +505,43 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
269
505
|
}[] | undefined;
|
|
270
506
|
};
|
|
271
507
|
};
|
|
508
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
509
|
+
readonly type: "agent.session.cancel.requested";
|
|
510
|
+
readonly payload: {};
|
|
511
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
512
|
+
readonly type: "agent.session.message.submitted";
|
|
513
|
+
readonly payload: {
|
|
514
|
+
readonly messageId: string;
|
|
515
|
+
readonly text: string;
|
|
516
|
+
readonly delivery?: "followUp" | "nextTurn" | "steer" | undefined;
|
|
517
|
+
readonly activeChildThreadId?: string | undefined;
|
|
518
|
+
};
|
|
519
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
520
|
+
readonly type: "agent.session.steer.delivered";
|
|
521
|
+
readonly payload: {
|
|
522
|
+
readonly messageId: string;
|
|
523
|
+
readonly activeMessageId: string;
|
|
524
|
+
};
|
|
525
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
526
|
+
readonly type: "agent.session.turn.closed";
|
|
527
|
+
readonly payload: {
|
|
528
|
+
readonly messageId: string;
|
|
529
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
530
|
+
readonly error?: string | undefined;
|
|
531
|
+
};
|
|
532
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
533
|
+
readonly type: "agent.session.turn.started";
|
|
534
|
+
readonly payload: {
|
|
535
|
+
readonly messageId: string;
|
|
536
|
+
readonly childThreadId: string;
|
|
537
|
+
};
|
|
272
538
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
273
539
|
readonly type: "agent.spawn.requested";
|
|
274
540
|
readonly payload: {
|
|
275
541
|
readonly childThreadId: string;
|
|
276
542
|
readonly kind: string;
|
|
277
543
|
readonly definitionName: string;
|
|
544
|
+
readonly definitionVersion: string;
|
|
278
545
|
readonly toolCallId: string;
|
|
279
546
|
readonly input: Schema.Json;
|
|
280
547
|
};
|
|
@@ -282,6 +549,7 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
282
549
|
readonly type: "agent.steered";
|
|
283
550
|
readonly payload: {
|
|
284
551
|
readonly turn: number;
|
|
552
|
+
readonly messageId?: string | undefined;
|
|
285
553
|
readonly message: {
|
|
286
554
|
readonly role: "assistant" | "system" | "tool" | "user";
|
|
287
555
|
readonly content: string;
|
|
@@ -325,12 +593,93 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
325
593
|
readonly turn: number;
|
|
326
594
|
readonly delta: string;
|
|
327
595
|
};
|
|
596
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
597
|
+
readonly type: "runtime.effect.ambiguous";
|
|
598
|
+
readonly payload: {
|
|
599
|
+
readonly effectId: string;
|
|
600
|
+
readonly attempt: number;
|
|
601
|
+
readonly error: string;
|
|
602
|
+
};
|
|
603
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
604
|
+
readonly type: "runtime.effect.attempt.started";
|
|
605
|
+
readonly payload: {
|
|
606
|
+
readonly effectId: string;
|
|
607
|
+
readonly attempt: number;
|
|
608
|
+
};
|
|
609
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
610
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
611
|
+
readonly payload: {
|
|
612
|
+
readonly effectId: string;
|
|
613
|
+
readonly attempt: number;
|
|
614
|
+
readonly deadlineAt: number | null;
|
|
615
|
+
};
|
|
616
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
617
|
+
readonly type: "runtime.effect.cancelled";
|
|
618
|
+
readonly payload: {
|
|
619
|
+
readonly effectId: string;
|
|
620
|
+
readonly attempt: number;
|
|
621
|
+
};
|
|
622
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
623
|
+
readonly type: "runtime.effect.completed";
|
|
624
|
+
readonly payload: {
|
|
625
|
+
readonly effectId: string;
|
|
626
|
+
readonly attempt: number;
|
|
627
|
+
};
|
|
628
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
629
|
+
readonly type: "runtime.effect.dispatched";
|
|
630
|
+
readonly payload: {
|
|
631
|
+
readonly effectId: string;
|
|
632
|
+
readonly attempt: number;
|
|
633
|
+
readonly deadlineAt: number | null;
|
|
634
|
+
};
|
|
328
635
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
329
636
|
readonly type: "runtime.effect.failed";
|
|
330
637
|
readonly payload: {
|
|
331
638
|
readonly effectId: string;
|
|
332
639
|
readonly error: string;
|
|
333
640
|
};
|
|
641
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
642
|
+
readonly type: "runtime.effect.heartbeat";
|
|
643
|
+
readonly payload: {
|
|
644
|
+
readonly effectId: string;
|
|
645
|
+
readonly attempt: number;
|
|
646
|
+
readonly heartbeatAt: number;
|
|
647
|
+
readonly deadlineAt: number | null;
|
|
648
|
+
};
|
|
649
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
650
|
+
readonly type: "runtime.effect.queued";
|
|
651
|
+
readonly payload: {
|
|
652
|
+
readonly effectId: string;
|
|
653
|
+
readonly attempt: number;
|
|
654
|
+
readonly deadlineAt: number | null;
|
|
655
|
+
};
|
|
656
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
657
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
658
|
+
readonly payload: {
|
|
659
|
+
readonly effectId: string;
|
|
660
|
+
readonly attempt: number;
|
|
661
|
+
readonly nextAttemptAt: number;
|
|
662
|
+
readonly error: string;
|
|
663
|
+
};
|
|
664
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
665
|
+
readonly type: "runtime.effect.timed_out";
|
|
666
|
+
readonly payload: {
|
|
667
|
+
readonly effectId: string;
|
|
668
|
+
readonly attempt: number;
|
|
669
|
+
readonly timeout: string;
|
|
670
|
+
};
|
|
671
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
672
|
+
readonly type: "runtime.effect.worker.started";
|
|
673
|
+
readonly payload: {
|
|
674
|
+
readonly effectId: string;
|
|
675
|
+
readonly attempt: number;
|
|
676
|
+
readonly deadlineAt: number | null;
|
|
677
|
+
};
|
|
678
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
679
|
+
readonly type: "runtime.run.cancelled";
|
|
680
|
+
readonly payload: {
|
|
681
|
+
readonly reason?: string | undefined;
|
|
682
|
+
};
|
|
334
683
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
335
684
|
readonly type: "runtime.run.completed";
|
|
336
685
|
readonly payload: {
|
|
@@ -343,7 +692,9 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
343
692
|
readonly rootThreadId?: string | undefined;
|
|
344
693
|
readonly kind: string;
|
|
345
694
|
readonly definitionName: string;
|
|
695
|
+
readonly definitionVersion: string;
|
|
346
696
|
readonly input: Schema.Json;
|
|
697
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
347
698
|
};
|
|
348
699
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
349
700
|
readonly type: "runtime.signal.received";
|
|
@@ -357,6 +708,11 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
357
708
|
readonly stateHash: string;
|
|
358
709
|
readonly state?: Schema.Json | undefined;
|
|
359
710
|
};
|
|
711
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
712
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
713
|
+
readonly payload: {
|
|
714
|
+
readonly threadId: string;
|
|
715
|
+
};
|
|
360
716
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
361
717
|
readonly type: "runtime.thread.cancelled";
|
|
362
718
|
readonly payload: {
|
|
@@ -381,6 +737,7 @@ export declare const executeToolEffect: NoInfer<import("@swirls/looms/core").Eff
|
|
|
381
737
|
readonly threadId: string;
|
|
382
738
|
readonly kind: string;
|
|
383
739
|
readonly definitionName: string;
|
|
740
|
+
readonly definitionVersion: string;
|
|
384
741
|
readonly input: Schema.Json;
|
|
385
742
|
readonly parentThreadId: string | null;
|
|
386
743
|
};
|