@swirls/looms 0.25.0 → 0.27.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 +42 -0
- package/dist/actor/cell.d.ts +3 -1
- package/dist/actor/cell.js +1 -0
- package/dist/actor/host.d.ts +3 -1
- package/dist/actor/host.js +2 -1
- package/dist/actor/routing.d.ts +6 -3
- package/dist/actor/routing.js +6 -4
- package/dist/agent/agent-session.js +2 -2
- package/dist/agent/debugger/agent-chat.js +4 -3
- package/dist/agent/definitions.d.ts +16 -4
- package/dist/agent/effects.js +20 -9
- package/dist/agent/llm.d.ts +3 -1
- package/dist/agent/threads.js +4 -1
- package/dist/ai-vercel/messages.d.ts +3 -3
- package/dist/ai-vercel/messages.js +23 -6
- package/dist/ai-vercel/vercel-llm.js +1 -1
- package/dist/approval/steps.d.ts +3 -1
- package/dist/approval/steps.js +2 -2
- package/dist/client/client.d.ts +7 -1
- package/dist/client/client.js +5 -2
- package/dist/cloudflare/durable-object.d.ts +3 -1
- package/dist/cloudflare/durable-object.js +1 -0
- package/dist/cloudflare/queue-consumer.d.ts +3 -1
- package/dist/cloudflare/queue-consumer.js +2 -1
- package/dist/cloudflare/router.d.ts +3 -1
- package/dist/cloudflare/router.js +1 -1
- package/dist/core/compose.d.ts +8 -2
- package/dist/core/compose.js +6 -3
- package/dist/core/effects.d.ts +3 -0
- package/dist/core/envelope.d.ts +2 -0
- package/dist/core/envelope.js +2 -2
- package/dist/core/event-codec.d.ts +4 -3
- package/dist/core/event-codec.js +7 -7
- package/dist/core/fold.d.ts +3 -0
- package/dist/core/fold.js +3 -1
- package/dist/core/fork.js +1 -1
- package/dist/core/ids.d.ts +70 -5
- package/dist/core/ids.js +164 -41
- package/dist/core/snapshots.d.ts +2 -0
- package/dist/core/snapshots.js +2 -1
- package/dist/core/thread.d.ts +8 -0
- package/dist/debugger/app/assets/{index-GLtrulmj.js → index-D_FKxPrN.js} +2 -2
- package/dist/debugger/app/assets/routes-CkwzFejg.js +47 -0
- package/dist/debugger/app/index.html +1 -1
- package/dist/debugger/context.d.ts +4 -1
- package/dist/debugger/context.js +4 -4
- package/dist/debugger/shell/debugger-shell.d.ts +4 -1
- package/dist/debugger/shell/debugger-shell.js +2 -2
- package/dist/debugger/shell/use-start-run.d.ts +1 -1
- package/dist/debugger/shell/use-start-run.js +1 -2
- package/dist/evaluator/steps.d.ts +2 -2
- package/dist/evaluator/steps.js +3 -3
- package/dist/react/react.d.ts +8 -3
- package/dist/react/react.js +15 -2
- package/dist/react/store.d.ts +5 -1
- package/dist/react/store.js +5 -4
- package/dist/runtime/cancellation.js +5 -5
- package/dist/runtime/deadline-transition-planner.d.ts +1 -0
- package/dist/runtime/deadline-transition-planner.js +8 -7
- package/dist/runtime/effect-admission.js +1 -0
- package/dist/runtime/helpers.d.ts +6 -5
- package/dist/runtime/helpers.js +8 -8
- package/dist/runtime/local-effect-executor.js +15 -10
- package/dist/runtime/looms.d.ts +6 -1
- package/dist/runtime/looms.js +4 -1
- package/dist/runtime/retry-policy.d.ts +2 -1
- package/dist/runtime/retry-policy.js +2 -1
- package/dist/runtime/runtime.js +10 -10
- package/dist/runtime/server/routes/runs.js +5 -5
- package/dist/runtime/types.d.ts +7 -1
- package/dist/runtime/wake-engine.js +10 -9
- package/dist/runtime/worker-callbacks.js +9 -8
- package/dist/runtime/worker-effect-dispatch.d.ts +3 -2
- package/dist/runtime/worker-effect-dispatch.js +7 -5
- package/dist/swarm/board.d.ts +51 -3
- package/dist/swarm/board.js +8 -0
- package/dist/swarm/conformance.js +54 -1
- package/dist/swarm/definitions.d.ts +15 -0
- package/dist/swarm/definitions.js +3 -0
- package/dist/swarm/effects.d.ts +1009 -31
- package/dist/swarm/effects.js +73 -18
- package/dist/swarm/ensure.d.ts +9 -2
- package/dist/swarm/ensure.js +2 -1
- package/dist/swarm/events.d.ts +51 -0
- package/dist/swarm/events.js +10 -0
- package/dist/swarm/index.d.ts +1 -0
- package/dist/swarm/index.js +1 -0
- package/dist/swarm/memory-board.js +18 -2
- package/dist/swarm/module.d.ts +2055 -115
- package/dist/swarm/module.js +3 -1
- package/dist/swarm/prompt.d.ts +5 -0
- package/dist/swarm/prompt.js +27 -2
- package/dist/swarm/scope.d.ts +80 -0
- package/dist/swarm/services.d.ts +2 -2
- package/dist/swarm/services.js +5 -2
- package/dist/swarm/steps.d.ts +3 -3
- package/dist/swarm/steps.js +5 -5
- package/dist/swarm/threads.d.ts +4 -0
- package/dist/swarm/threads.js +24 -2
- package/dist/swarm/tools.d.ts +3 -2
- package/dist/swarm/tools.js +25 -18
- package/dist/workflow/effects.js +6 -5
- package/dist/workflow/graph.d.ts +3 -3
- package/dist/workflow/graph.js +5 -5
- package/dist/workflow/module.d.ts +8 -2
- package/dist/workflow/threads.d.ts +14 -2
- package/dist/workflow/threads.js +54 -44
- package/package.json +1 -1
- package/dist/debugger/app/assets/routes-CECZJJob.js +0 -47
package/dist/swarm/effects.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
-
import { RunLauncherTag } from '@swirls/looms/core';
|
|
2
|
+
import { RunLauncherTag, type LoomsIds } from '@swirls/looms/core';
|
|
3
3
|
import { BoardsTag, SwarmDefinitionsTag } from './services';
|
|
4
4
|
/** Board events read per pull. A fuller board is read over several pulls. */
|
|
5
5
|
export declare const PULL_LIMIT = 50;
|
|
@@ -255,6 +255,20 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
255
255
|
readonly payload: Schema.Json;
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
259
|
+
readonly type: "swarm.attachments.viewed";
|
|
260
|
+
readonly payload: {
|
|
261
|
+
readonly callId: string;
|
|
262
|
+
readonly board: string;
|
|
263
|
+
readonly message: string;
|
|
264
|
+
readonly attachments: readonly {
|
|
265
|
+
readonly id: string;
|
|
266
|
+
readonly mediaType: string;
|
|
267
|
+
readonly name?: string | undefined;
|
|
268
|
+
readonly size?: number | undefined;
|
|
269
|
+
readonly url?: string | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
};
|
|
258
272
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
259
273
|
readonly type: "swarm.board.pulled";
|
|
260
274
|
readonly payload: {
|
|
@@ -276,6 +290,13 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
276
290
|
readonly labels: {
|
|
277
291
|
readonly [x: string]: string;
|
|
278
292
|
};
|
|
293
|
+
readonly attachments: readonly {
|
|
294
|
+
readonly id: string;
|
|
295
|
+
readonly mediaType: string;
|
|
296
|
+
readonly name?: string | undefined;
|
|
297
|
+
readonly size?: number | undefined;
|
|
298
|
+
readonly url?: string | undefined;
|
|
299
|
+
}[];
|
|
279
300
|
readonly createdAt: number;
|
|
280
301
|
} | undefined;
|
|
281
302
|
readonly task?: {
|
|
@@ -330,6 +351,13 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
330
351
|
readonly labels: {
|
|
331
352
|
readonly [x: string]: string;
|
|
332
353
|
};
|
|
354
|
+
readonly attachments: readonly {
|
|
355
|
+
readonly id: string;
|
|
356
|
+
readonly mediaType: string;
|
|
357
|
+
readonly name?: string | undefined;
|
|
358
|
+
readonly size?: number | undefined;
|
|
359
|
+
readonly url?: string | undefined;
|
|
360
|
+
}[];
|
|
333
361
|
readonly createdAt: number;
|
|
334
362
|
};
|
|
335
363
|
};
|
|
@@ -348,6 +376,13 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
348
376
|
readonly labels: {
|
|
349
377
|
readonly [x: string]: string;
|
|
350
378
|
};
|
|
379
|
+
readonly attachments: readonly {
|
|
380
|
+
readonly id: string;
|
|
381
|
+
readonly mediaType: string;
|
|
382
|
+
readonly name?: string | undefined;
|
|
383
|
+
readonly size?: number | undefined;
|
|
384
|
+
readonly url?: string | undefined;
|
|
385
|
+
}[];
|
|
351
386
|
readonly createdAt: number;
|
|
352
387
|
};
|
|
353
388
|
};
|
|
@@ -366,6 +401,13 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
366
401
|
readonly labels: {
|
|
367
402
|
readonly [x: string]: string;
|
|
368
403
|
};
|
|
404
|
+
readonly attachments: readonly {
|
|
405
|
+
readonly id: string;
|
|
406
|
+
readonly mediaType: string;
|
|
407
|
+
readonly name?: string | undefined;
|
|
408
|
+
readonly size?: number | undefined;
|
|
409
|
+
readonly url?: string | undefined;
|
|
410
|
+
}[];
|
|
369
411
|
readonly createdAt: number;
|
|
370
412
|
}[];
|
|
371
413
|
};
|
|
@@ -464,8 +506,11 @@ export declare const pullEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
464
506
|
}[];
|
|
465
507
|
};
|
|
466
508
|
})>>;
|
|
467
|
-
/**
|
|
468
|
-
|
|
509
|
+
/**
|
|
510
|
+
* The run id of a member's activation, in the host's id format. Derived from the swarm's run id,
|
|
511
|
+
* so a retried activation starts the same run and a host can find a member's run.
|
|
512
|
+
*/
|
|
513
|
+
export declare function activationRunId(swarmRunId: string, member: string, activation: number, ids?: LoomsIds): string;
|
|
469
514
|
export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
470
515
|
readonly definitionName: string;
|
|
471
516
|
readonly definitionVersion: string;
|
|
@@ -487,6 +532,13 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
487
532
|
readonly labels: {
|
|
488
533
|
readonly [x: string]: string;
|
|
489
534
|
};
|
|
535
|
+
readonly attachments: readonly {
|
|
536
|
+
readonly id: string;
|
|
537
|
+
readonly mediaType: string;
|
|
538
|
+
readonly name?: string | undefined;
|
|
539
|
+
readonly size?: number | undefined;
|
|
540
|
+
readonly url?: string | undefined;
|
|
541
|
+
}[];
|
|
490
542
|
readonly createdAt: number;
|
|
491
543
|
} | undefined;
|
|
492
544
|
readonly task?: {
|
|
@@ -751,6 +803,20 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
751
803
|
readonly payload: Schema.Json;
|
|
752
804
|
};
|
|
753
805
|
};
|
|
806
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
807
|
+
readonly type: "swarm.attachments.viewed";
|
|
808
|
+
readonly payload: {
|
|
809
|
+
readonly callId: string;
|
|
810
|
+
readonly board: string;
|
|
811
|
+
readonly message: string;
|
|
812
|
+
readonly attachments: readonly {
|
|
813
|
+
readonly id: string;
|
|
814
|
+
readonly mediaType: string;
|
|
815
|
+
readonly name?: string | undefined;
|
|
816
|
+
readonly size?: number | undefined;
|
|
817
|
+
readonly url?: string | undefined;
|
|
818
|
+
}[];
|
|
819
|
+
};
|
|
754
820
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
755
821
|
readonly type: "swarm.board.pulled";
|
|
756
822
|
readonly payload: {
|
|
@@ -772,6 +838,13 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
772
838
|
readonly labels: {
|
|
773
839
|
readonly [x: string]: string;
|
|
774
840
|
};
|
|
841
|
+
readonly attachments: readonly {
|
|
842
|
+
readonly id: string;
|
|
843
|
+
readonly mediaType: string;
|
|
844
|
+
readonly name?: string | undefined;
|
|
845
|
+
readonly size?: number | undefined;
|
|
846
|
+
readonly url?: string | undefined;
|
|
847
|
+
}[];
|
|
775
848
|
readonly createdAt: number;
|
|
776
849
|
} | undefined;
|
|
777
850
|
readonly task?: {
|
|
@@ -826,6 +899,13 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
826
899
|
readonly labels: {
|
|
827
900
|
readonly [x: string]: string;
|
|
828
901
|
};
|
|
902
|
+
readonly attachments: readonly {
|
|
903
|
+
readonly id: string;
|
|
904
|
+
readonly mediaType: string;
|
|
905
|
+
readonly name?: string | undefined;
|
|
906
|
+
readonly size?: number | undefined;
|
|
907
|
+
readonly url?: string | undefined;
|
|
908
|
+
}[];
|
|
829
909
|
readonly createdAt: number;
|
|
830
910
|
};
|
|
831
911
|
};
|
|
@@ -844,6 +924,13 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
844
924
|
readonly labels: {
|
|
845
925
|
readonly [x: string]: string;
|
|
846
926
|
};
|
|
927
|
+
readonly attachments: readonly {
|
|
928
|
+
readonly id: string;
|
|
929
|
+
readonly mediaType: string;
|
|
930
|
+
readonly name?: string | undefined;
|
|
931
|
+
readonly size?: number | undefined;
|
|
932
|
+
readonly url?: string | undefined;
|
|
933
|
+
}[];
|
|
847
934
|
readonly createdAt: number;
|
|
848
935
|
};
|
|
849
936
|
};
|
|
@@ -862,6 +949,13 @@ export declare const activateEffect: NoInfer<import("@swirls/looms/core").LocalE
|
|
|
862
949
|
readonly labels: {
|
|
863
950
|
readonly [x: string]: string;
|
|
864
951
|
};
|
|
952
|
+
readonly attachments: readonly {
|
|
953
|
+
readonly id: string;
|
|
954
|
+
readonly mediaType: string;
|
|
955
|
+
readonly name?: string | undefined;
|
|
956
|
+
readonly size?: number | undefined;
|
|
957
|
+
readonly url?: string | undefined;
|
|
958
|
+
}[];
|
|
865
959
|
readonly createdAt: number;
|
|
866
960
|
}[];
|
|
867
961
|
};
|
|
@@ -964,11 +1058,29 @@ export declare const PostArgsSchema: Schema.Struct<{
|
|
|
964
1058
|
readonly channel: Schema.String;
|
|
965
1059
|
readonly text: Schema.String;
|
|
966
1060
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1061
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1062
|
+
readonly id: Schema.String;
|
|
1063
|
+
readonly mediaType: Schema.String;
|
|
1064
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1065
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
1066
|
+
readonly url: Schema.optional<Schema.String>;
|
|
1067
|
+
}>>>;
|
|
967
1068
|
}>;
|
|
968
1069
|
export declare const ReplyArgsSchema: Schema.Struct<{
|
|
969
1070
|
/** Any message of the thread to reply in. */
|
|
970
1071
|
readonly to: Schema.String;
|
|
971
1072
|
readonly text: Schema.String;
|
|
1073
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1074
|
+
readonly id: Schema.String;
|
|
1075
|
+
readonly mediaType: Schema.String;
|
|
1076
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1077
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
1078
|
+
readonly url: Schema.optional<Schema.String>;
|
|
1079
|
+
}>>>;
|
|
1080
|
+
}>;
|
|
1081
|
+
export declare const ViewArgsSchema: Schema.Struct<{
|
|
1082
|
+
/** The message whose files to look at. A task's id is the id of its root message. */
|
|
1083
|
+
readonly message: Schema.String;
|
|
972
1084
|
}>;
|
|
973
1085
|
export declare const ReadArgsSchema: Schema.Struct<{
|
|
974
1086
|
readonly channel: Schema.optional<Schema.String>;
|
|
@@ -990,6 +1102,13 @@ export declare const CreateTaskArgsSchema: Schema.Struct<{
|
|
|
990
1102
|
readonly text: Schema.String;
|
|
991
1103
|
readonly for: Schema.optional<Schema.String>;
|
|
992
1104
|
readonly needs: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1105
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1106
|
+
readonly id: Schema.String;
|
|
1107
|
+
readonly mediaType: Schema.String;
|
|
1108
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1109
|
+
readonly size: Schema.optional<Schema.Finite>;
|
|
1110
|
+
readonly url: Schema.optional<Schema.String>;
|
|
1111
|
+
}>>>;
|
|
993
1112
|
}>;
|
|
994
1113
|
export declare const ListTasksArgsSchema: Schema.Struct<{
|
|
995
1114
|
readonly channel: Schema.optional<Schema.String>;
|
|
@@ -1016,6 +1135,13 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1016
1135
|
readonly labels?: {
|
|
1017
1136
|
readonly [x: string]: string;
|
|
1018
1137
|
} | undefined;
|
|
1138
|
+
readonly attachments?: readonly {
|
|
1139
|
+
readonly id: string;
|
|
1140
|
+
readonly mediaType: string;
|
|
1141
|
+
readonly name?: string | undefined;
|
|
1142
|
+
readonly size?: number | undefined;
|
|
1143
|
+
readonly url?: string | undefined;
|
|
1144
|
+
}[] | undefined;
|
|
1019
1145
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1020
1146
|
readonly type: "runtime.child.close.requested";
|
|
1021
1147
|
readonly payload: {
|
|
@@ -1262,6 +1388,20 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1262
1388
|
readonly payload: Schema.Json;
|
|
1263
1389
|
};
|
|
1264
1390
|
};
|
|
1391
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1392
|
+
readonly type: "swarm.attachments.viewed";
|
|
1393
|
+
readonly payload: {
|
|
1394
|
+
readonly callId: string;
|
|
1395
|
+
readonly board: string;
|
|
1396
|
+
readonly message: string;
|
|
1397
|
+
readonly attachments: readonly {
|
|
1398
|
+
readonly id: string;
|
|
1399
|
+
readonly mediaType: string;
|
|
1400
|
+
readonly name?: string | undefined;
|
|
1401
|
+
readonly size?: number | undefined;
|
|
1402
|
+
readonly url?: string | undefined;
|
|
1403
|
+
}[];
|
|
1404
|
+
};
|
|
1265
1405
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1266
1406
|
readonly type: "swarm.board.pulled";
|
|
1267
1407
|
readonly payload: {
|
|
@@ -1283,6 +1423,13 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1283
1423
|
readonly labels: {
|
|
1284
1424
|
readonly [x: string]: string;
|
|
1285
1425
|
};
|
|
1426
|
+
readonly attachments: readonly {
|
|
1427
|
+
readonly id: string;
|
|
1428
|
+
readonly mediaType: string;
|
|
1429
|
+
readonly name?: string | undefined;
|
|
1430
|
+
readonly size?: number | undefined;
|
|
1431
|
+
readonly url?: string | undefined;
|
|
1432
|
+
}[];
|
|
1286
1433
|
readonly createdAt: number;
|
|
1287
1434
|
} | undefined;
|
|
1288
1435
|
readonly task?: {
|
|
@@ -1337,6 +1484,13 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1337
1484
|
readonly labels: {
|
|
1338
1485
|
readonly [x: string]: string;
|
|
1339
1486
|
};
|
|
1487
|
+
readonly attachments: readonly {
|
|
1488
|
+
readonly id: string;
|
|
1489
|
+
readonly mediaType: string;
|
|
1490
|
+
readonly name?: string | undefined;
|
|
1491
|
+
readonly size?: number | undefined;
|
|
1492
|
+
readonly url?: string | undefined;
|
|
1493
|
+
}[];
|
|
1340
1494
|
readonly createdAt: number;
|
|
1341
1495
|
};
|
|
1342
1496
|
};
|
|
@@ -1355,6 +1509,13 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1355
1509
|
readonly labels: {
|
|
1356
1510
|
readonly [x: string]: string;
|
|
1357
1511
|
};
|
|
1512
|
+
readonly attachments: readonly {
|
|
1513
|
+
readonly id: string;
|
|
1514
|
+
readonly mediaType: string;
|
|
1515
|
+
readonly name?: string | undefined;
|
|
1516
|
+
readonly size?: number | undefined;
|
|
1517
|
+
readonly url?: string | undefined;
|
|
1518
|
+
}[];
|
|
1358
1519
|
readonly createdAt: number;
|
|
1359
1520
|
};
|
|
1360
1521
|
};
|
|
@@ -1373,6 +1534,13 @@ export declare const postEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
1373
1534
|
readonly labels: {
|
|
1374
1535
|
readonly [x: string]: string;
|
|
1375
1536
|
};
|
|
1537
|
+
readonly attachments: readonly {
|
|
1538
|
+
readonly id: string;
|
|
1539
|
+
readonly mediaType: string;
|
|
1540
|
+
readonly name?: string | undefined;
|
|
1541
|
+
readonly size?: number | undefined;
|
|
1542
|
+
readonly url?: string | undefined;
|
|
1543
|
+
}[];
|
|
1376
1544
|
readonly createdAt: number;
|
|
1377
1545
|
}[];
|
|
1378
1546
|
};
|
|
@@ -1477,6 +1645,13 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1477
1645
|
readonly as: string;
|
|
1478
1646
|
readonly to: string;
|
|
1479
1647
|
readonly text: string;
|
|
1648
|
+
readonly attachments?: readonly {
|
|
1649
|
+
readonly id: string;
|
|
1650
|
+
readonly mediaType: string;
|
|
1651
|
+
readonly name?: string | undefined;
|
|
1652
|
+
readonly size?: number | undefined;
|
|
1653
|
+
readonly url?: string | undefined;
|
|
1654
|
+
}[] | undefined;
|
|
1480
1655
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1481
1656
|
readonly type: "runtime.child.close.requested";
|
|
1482
1657
|
readonly payload: {
|
|
@@ -1723,6 +1898,20 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1723
1898
|
readonly payload: Schema.Json;
|
|
1724
1899
|
};
|
|
1725
1900
|
};
|
|
1901
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1902
|
+
readonly type: "swarm.attachments.viewed";
|
|
1903
|
+
readonly payload: {
|
|
1904
|
+
readonly callId: string;
|
|
1905
|
+
readonly board: string;
|
|
1906
|
+
readonly message: string;
|
|
1907
|
+
readonly attachments: readonly {
|
|
1908
|
+
readonly id: string;
|
|
1909
|
+
readonly mediaType: string;
|
|
1910
|
+
readonly name?: string | undefined;
|
|
1911
|
+
readonly size?: number | undefined;
|
|
1912
|
+
readonly url?: string | undefined;
|
|
1913
|
+
}[];
|
|
1914
|
+
};
|
|
1726
1915
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
1727
1916
|
readonly type: "swarm.board.pulled";
|
|
1728
1917
|
readonly payload: {
|
|
@@ -1744,6 +1933,13 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1744
1933
|
readonly labels: {
|
|
1745
1934
|
readonly [x: string]: string;
|
|
1746
1935
|
};
|
|
1936
|
+
readonly attachments: readonly {
|
|
1937
|
+
readonly id: string;
|
|
1938
|
+
readonly mediaType: string;
|
|
1939
|
+
readonly name?: string | undefined;
|
|
1940
|
+
readonly size?: number | undefined;
|
|
1941
|
+
readonly url?: string | undefined;
|
|
1942
|
+
}[];
|
|
1747
1943
|
readonly createdAt: number;
|
|
1748
1944
|
} | undefined;
|
|
1749
1945
|
readonly task?: {
|
|
@@ -1798,6 +1994,13 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1798
1994
|
readonly labels: {
|
|
1799
1995
|
readonly [x: string]: string;
|
|
1800
1996
|
};
|
|
1997
|
+
readonly attachments: readonly {
|
|
1998
|
+
readonly id: string;
|
|
1999
|
+
readonly mediaType: string;
|
|
2000
|
+
readonly name?: string | undefined;
|
|
2001
|
+
readonly size?: number | undefined;
|
|
2002
|
+
readonly url?: string | undefined;
|
|
2003
|
+
}[];
|
|
1801
2004
|
readonly createdAt: number;
|
|
1802
2005
|
};
|
|
1803
2006
|
};
|
|
@@ -1816,6 +2019,13 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1816
2019
|
readonly labels: {
|
|
1817
2020
|
readonly [x: string]: string;
|
|
1818
2021
|
};
|
|
2022
|
+
readonly attachments: readonly {
|
|
2023
|
+
readonly id: string;
|
|
2024
|
+
readonly mediaType: string;
|
|
2025
|
+
readonly name?: string | undefined;
|
|
2026
|
+
readonly size?: number | undefined;
|
|
2027
|
+
readonly url?: string | undefined;
|
|
2028
|
+
}[];
|
|
1819
2029
|
readonly createdAt: number;
|
|
1820
2030
|
};
|
|
1821
2031
|
};
|
|
@@ -1834,6 +2044,13 @@ export declare const replyEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
1834
2044
|
readonly labels: {
|
|
1835
2045
|
readonly [x: string]: string;
|
|
1836
2046
|
};
|
|
2047
|
+
readonly attachments: readonly {
|
|
2048
|
+
readonly id: string;
|
|
2049
|
+
readonly mediaType: string;
|
|
2050
|
+
readonly name?: string | undefined;
|
|
2051
|
+
readonly size?: number | undefined;
|
|
2052
|
+
readonly url?: string | undefined;
|
|
2053
|
+
}[];
|
|
1837
2054
|
readonly createdAt: number;
|
|
1838
2055
|
}[];
|
|
1839
2056
|
};
|
|
@@ -2188,6 +2405,20 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2188
2405
|
readonly payload: Schema.Json;
|
|
2189
2406
|
};
|
|
2190
2407
|
};
|
|
2408
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2409
|
+
readonly type: "swarm.attachments.viewed";
|
|
2410
|
+
readonly payload: {
|
|
2411
|
+
readonly callId: string;
|
|
2412
|
+
readonly board: string;
|
|
2413
|
+
readonly message: string;
|
|
2414
|
+
readonly attachments: readonly {
|
|
2415
|
+
readonly id: string;
|
|
2416
|
+
readonly mediaType: string;
|
|
2417
|
+
readonly name?: string | undefined;
|
|
2418
|
+
readonly size?: number | undefined;
|
|
2419
|
+
readonly url?: string | undefined;
|
|
2420
|
+
}[];
|
|
2421
|
+
};
|
|
2191
2422
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2192
2423
|
readonly type: "swarm.board.pulled";
|
|
2193
2424
|
readonly payload: {
|
|
@@ -2209,6 +2440,13 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2209
2440
|
readonly labels: {
|
|
2210
2441
|
readonly [x: string]: string;
|
|
2211
2442
|
};
|
|
2443
|
+
readonly attachments: readonly {
|
|
2444
|
+
readonly id: string;
|
|
2445
|
+
readonly mediaType: string;
|
|
2446
|
+
readonly name?: string | undefined;
|
|
2447
|
+
readonly size?: number | undefined;
|
|
2448
|
+
readonly url?: string | undefined;
|
|
2449
|
+
}[];
|
|
2212
2450
|
readonly createdAt: number;
|
|
2213
2451
|
} | undefined;
|
|
2214
2452
|
readonly task?: {
|
|
@@ -2263,6 +2501,13 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2263
2501
|
readonly labels: {
|
|
2264
2502
|
readonly [x: string]: string;
|
|
2265
2503
|
};
|
|
2504
|
+
readonly attachments: readonly {
|
|
2505
|
+
readonly id: string;
|
|
2506
|
+
readonly mediaType: string;
|
|
2507
|
+
readonly name?: string | undefined;
|
|
2508
|
+
readonly size?: number | undefined;
|
|
2509
|
+
readonly url?: string | undefined;
|
|
2510
|
+
}[];
|
|
2266
2511
|
readonly createdAt: number;
|
|
2267
2512
|
};
|
|
2268
2513
|
};
|
|
@@ -2281,6 +2526,13 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2281
2526
|
readonly labels: {
|
|
2282
2527
|
readonly [x: string]: string;
|
|
2283
2528
|
};
|
|
2529
|
+
readonly attachments: readonly {
|
|
2530
|
+
readonly id: string;
|
|
2531
|
+
readonly mediaType: string;
|
|
2532
|
+
readonly name?: string | undefined;
|
|
2533
|
+
readonly size?: number | undefined;
|
|
2534
|
+
readonly url?: string | undefined;
|
|
2535
|
+
}[];
|
|
2284
2536
|
readonly createdAt: number;
|
|
2285
2537
|
};
|
|
2286
2538
|
};
|
|
@@ -2299,6 +2551,13 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2299
2551
|
readonly labels: {
|
|
2300
2552
|
readonly [x: string]: string;
|
|
2301
2553
|
};
|
|
2554
|
+
readonly attachments: readonly {
|
|
2555
|
+
readonly id: string;
|
|
2556
|
+
readonly mediaType: string;
|
|
2557
|
+
readonly name?: string | undefined;
|
|
2558
|
+
readonly size?: number | undefined;
|
|
2559
|
+
readonly url?: string | undefined;
|
|
2560
|
+
}[];
|
|
2302
2561
|
readonly createdAt: number;
|
|
2303
2562
|
}[];
|
|
2304
2563
|
};
|
|
@@ -2397,18 +2656,11 @@ export declare const readEffect: NoInfer<import("@swirls/looms/core").LocalEffec
|
|
|
2397
2656
|
}[];
|
|
2398
2657
|
};
|
|
2399
2658
|
})>>;
|
|
2400
|
-
export declare const
|
|
2659
|
+
export declare const viewEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
2401
2660
|
readonly callId: string;
|
|
2402
2661
|
readonly board: string;
|
|
2403
2662
|
readonly as: string;
|
|
2404
2663
|
readonly message: string;
|
|
2405
|
-
readonly set?: {
|
|
2406
|
-
readonly [x: string]: string;
|
|
2407
|
-
} | undefined;
|
|
2408
|
-
readonly unset?: readonly string[] | undefined;
|
|
2409
|
-
readonly if?: {
|
|
2410
|
-
readonly [x: string]: string | null;
|
|
2411
|
-
} | undefined;
|
|
2412
2664
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2413
2665
|
readonly type: "runtime.child.close.requested";
|
|
2414
2666
|
readonly payload: {
|
|
@@ -2655,6 +2907,20 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2655
2907
|
readonly payload: Schema.Json;
|
|
2656
2908
|
};
|
|
2657
2909
|
};
|
|
2910
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2911
|
+
readonly type: "swarm.attachments.viewed";
|
|
2912
|
+
readonly payload: {
|
|
2913
|
+
readonly callId: string;
|
|
2914
|
+
readonly board: string;
|
|
2915
|
+
readonly message: string;
|
|
2916
|
+
readonly attachments: readonly {
|
|
2917
|
+
readonly id: string;
|
|
2918
|
+
readonly mediaType: string;
|
|
2919
|
+
readonly name?: string | undefined;
|
|
2920
|
+
readonly size?: number | undefined;
|
|
2921
|
+
readonly url?: string | undefined;
|
|
2922
|
+
}[];
|
|
2923
|
+
};
|
|
2658
2924
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2659
2925
|
readonly type: "swarm.board.pulled";
|
|
2660
2926
|
readonly payload: {
|
|
@@ -2676,6 +2942,13 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2676
2942
|
readonly labels: {
|
|
2677
2943
|
readonly [x: string]: string;
|
|
2678
2944
|
};
|
|
2945
|
+
readonly attachments: readonly {
|
|
2946
|
+
readonly id: string;
|
|
2947
|
+
readonly mediaType: string;
|
|
2948
|
+
readonly name?: string | undefined;
|
|
2949
|
+
readonly size?: number | undefined;
|
|
2950
|
+
readonly url?: string | undefined;
|
|
2951
|
+
}[];
|
|
2679
2952
|
readonly createdAt: number;
|
|
2680
2953
|
} | undefined;
|
|
2681
2954
|
readonly task?: {
|
|
@@ -2730,6 +3003,13 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2730
3003
|
readonly labels: {
|
|
2731
3004
|
readonly [x: string]: string;
|
|
2732
3005
|
};
|
|
3006
|
+
readonly attachments: readonly {
|
|
3007
|
+
readonly id: string;
|
|
3008
|
+
readonly mediaType: string;
|
|
3009
|
+
readonly name?: string | undefined;
|
|
3010
|
+
readonly size?: number | undefined;
|
|
3011
|
+
readonly url?: string | undefined;
|
|
3012
|
+
}[];
|
|
2733
3013
|
readonly createdAt: number;
|
|
2734
3014
|
};
|
|
2735
3015
|
};
|
|
@@ -2748,6 +3028,13 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2748
3028
|
readonly labels: {
|
|
2749
3029
|
readonly [x: string]: string;
|
|
2750
3030
|
};
|
|
3031
|
+
readonly attachments: readonly {
|
|
3032
|
+
readonly id: string;
|
|
3033
|
+
readonly mediaType: string;
|
|
3034
|
+
readonly name?: string | undefined;
|
|
3035
|
+
readonly size?: number | undefined;
|
|
3036
|
+
readonly url?: string | undefined;
|
|
3037
|
+
}[];
|
|
2751
3038
|
readonly createdAt: number;
|
|
2752
3039
|
};
|
|
2753
3040
|
};
|
|
@@ -2766,6 +3053,13 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2766
3053
|
readonly labels: {
|
|
2767
3054
|
readonly [x: string]: string;
|
|
2768
3055
|
};
|
|
3056
|
+
readonly attachments: readonly {
|
|
3057
|
+
readonly id: string;
|
|
3058
|
+
readonly mediaType: string;
|
|
3059
|
+
readonly name?: string | undefined;
|
|
3060
|
+
readonly size?: number | undefined;
|
|
3061
|
+
readonly url?: string | undefined;
|
|
3062
|
+
}[];
|
|
2769
3063
|
readonly createdAt: number;
|
|
2770
3064
|
}[];
|
|
2771
3065
|
};
|
|
@@ -2864,14 +3158,18 @@ export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffe
|
|
|
2864
3158
|
}[];
|
|
2865
3159
|
};
|
|
2866
3160
|
})>>;
|
|
2867
|
-
export declare const
|
|
3161
|
+
export declare const labelEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
2868
3162
|
readonly callId: string;
|
|
2869
3163
|
readonly board: string;
|
|
2870
3164
|
readonly as: string;
|
|
2871
|
-
readonly
|
|
2872
|
-
readonly
|
|
2873
|
-
|
|
2874
|
-
|
|
3165
|
+
readonly message: string;
|
|
3166
|
+
readonly set?: {
|
|
3167
|
+
readonly [x: string]: string;
|
|
3168
|
+
} | undefined;
|
|
3169
|
+
readonly unset?: readonly string[] | undefined;
|
|
3170
|
+
readonly if?: {
|
|
3171
|
+
readonly [x: string]: string | null;
|
|
3172
|
+
} | undefined;
|
|
2875
3173
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
2876
3174
|
readonly type: "runtime.child.close.requested";
|
|
2877
3175
|
readonly payload: {
|
|
@@ -3118,6 +3416,20 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3118
3416
|
readonly payload: Schema.Json;
|
|
3119
3417
|
};
|
|
3120
3418
|
};
|
|
3419
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3420
|
+
readonly type: "swarm.attachments.viewed";
|
|
3421
|
+
readonly payload: {
|
|
3422
|
+
readonly callId: string;
|
|
3423
|
+
readonly board: string;
|
|
3424
|
+
readonly message: string;
|
|
3425
|
+
readonly attachments: readonly {
|
|
3426
|
+
readonly id: string;
|
|
3427
|
+
readonly mediaType: string;
|
|
3428
|
+
readonly name?: string | undefined;
|
|
3429
|
+
readonly size?: number | undefined;
|
|
3430
|
+
readonly url?: string | undefined;
|
|
3431
|
+
}[];
|
|
3432
|
+
};
|
|
3121
3433
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3122
3434
|
readonly type: "swarm.board.pulled";
|
|
3123
3435
|
readonly payload: {
|
|
@@ -3139,6 +3451,13 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3139
3451
|
readonly labels: {
|
|
3140
3452
|
readonly [x: string]: string;
|
|
3141
3453
|
};
|
|
3454
|
+
readonly attachments: readonly {
|
|
3455
|
+
readonly id: string;
|
|
3456
|
+
readonly mediaType: string;
|
|
3457
|
+
readonly name?: string | undefined;
|
|
3458
|
+
readonly size?: number | undefined;
|
|
3459
|
+
readonly url?: string | undefined;
|
|
3460
|
+
}[];
|
|
3142
3461
|
readonly createdAt: number;
|
|
3143
3462
|
} | undefined;
|
|
3144
3463
|
readonly task?: {
|
|
@@ -3193,6 +3512,13 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3193
3512
|
readonly labels: {
|
|
3194
3513
|
readonly [x: string]: string;
|
|
3195
3514
|
};
|
|
3515
|
+
readonly attachments: readonly {
|
|
3516
|
+
readonly id: string;
|
|
3517
|
+
readonly mediaType: string;
|
|
3518
|
+
readonly name?: string | undefined;
|
|
3519
|
+
readonly size?: number | undefined;
|
|
3520
|
+
readonly url?: string | undefined;
|
|
3521
|
+
}[];
|
|
3196
3522
|
readonly createdAt: number;
|
|
3197
3523
|
};
|
|
3198
3524
|
};
|
|
@@ -3211,6 +3537,13 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3211
3537
|
readonly labels: {
|
|
3212
3538
|
readonly [x: string]: string;
|
|
3213
3539
|
};
|
|
3540
|
+
readonly attachments: readonly {
|
|
3541
|
+
readonly id: string;
|
|
3542
|
+
readonly mediaType: string;
|
|
3543
|
+
readonly name?: string | undefined;
|
|
3544
|
+
readonly size?: number | undefined;
|
|
3545
|
+
readonly url?: string | undefined;
|
|
3546
|
+
}[];
|
|
3214
3547
|
readonly createdAt: number;
|
|
3215
3548
|
};
|
|
3216
3549
|
};
|
|
@@ -3229,6 +3562,13 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3229
3562
|
readonly labels: {
|
|
3230
3563
|
readonly [x: string]: string;
|
|
3231
3564
|
};
|
|
3565
|
+
readonly attachments: readonly {
|
|
3566
|
+
readonly id: string;
|
|
3567
|
+
readonly mediaType: string;
|
|
3568
|
+
readonly name?: string | undefined;
|
|
3569
|
+
readonly size?: number | undefined;
|
|
3570
|
+
readonly url?: string | undefined;
|
|
3571
|
+
}[];
|
|
3232
3572
|
readonly createdAt: number;
|
|
3233
3573
|
}[];
|
|
3234
3574
|
};
|
|
@@ -3327,13 +3667,21 @@ export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
3327
3667
|
}[];
|
|
3328
3668
|
};
|
|
3329
3669
|
})>>;
|
|
3330
|
-
export declare const
|
|
3670
|
+
export declare const createTaskEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
3331
3671
|
readonly callId: string;
|
|
3332
3672
|
readonly board: string;
|
|
3333
3673
|
readonly as: string;
|
|
3334
|
-
readonly channel
|
|
3335
|
-
readonly
|
|
3674
|
+
readonly channel: string;
|
|
3675
|
+
readonly text: string;
|
|
3336
3676
|
readonly for?: string | undefined;
|
|
3677
|
+
readonly needs?: readonly string[] | undefined;
|
|
3678
|
+
readonly attachments?: readonly {
|
|
3679
|
+
readonly id: string;
|
|
3680
|
+
readonly mediaType: string;
|
|
3681
|
+
readonly name?: string | undefined;
|
|
3682
|
+
readonly size?: number | undefined;
|
|
3683
|
+
readonly url?: string | undefined;
|
|
3684
|
+
}[] | undefined;
|
|
3337
3685
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3338
3686
|
readonly type: "runtime.child.close.requested";
|
|
3339
3687
|
readonly payload: {
|
|
@@ -3580,6 +3928,20 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3580
3928
|
readonly payload: Schema.Json;
|
|
3581
3929
|
};
|
|
3582
3930
|
};
|
|
3931
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3932
|
+
readonly type: "swarm.attachments.viewed";
|
|
3933
|
+
readonly payload: {
|
|
3934
|
+
readonly callId: string;
|
|
3935
|
+
readonly board: string;
|
|
3936
|
+
readonly message: string;
|
|
3937
|
+
readonly attachments: readonly {
|
|
3938
|
+
readonly id: string;
|
|
3939
|
+
readonly mediaType: string;
|
|
3940
|
+
readonly name?: string | undefined;
|
|
3941
|
+
readonly size?: number | undefined;
|
|
3942
|
+
readonly url?: string | undefined;
|
|
3943
|
+
}[];
|
|
3944
|
+
};
|
|
3583
3945
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3584
3946
|
readonly type: "swarm.board.pulled";
|
|
3585
3947
|
readonly payload: {
|
|
@@ -3601,6 +3963,13 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3601
3963
|
readonly labels: {
|
|
3602
3964
|
readonly [x: string]: string;
|
|
3603
3965
|
};
|
|
3966
|
+
readonly attachments: readonly {
|
|
3967
|
+
readonly id: string;
|
|
3968
|
+
readonly mediaType: string;
|
|
3969
|
+
readonly name?: string | undefined;
|
|
3970
|
+
readonly size?: number | undefined;
|
|
3971
|
+
readonly url?: string | undefined;
|
|
3972
|
+
}[];
|
|
3604
3973
|
readonly createdAt: number;
|
|
3605
3974
|
} | undefined;
|
|
3606
3975
|
readonly task?: {
|
|
@@ -3655,6 +4024,13 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3655
4024
|
readonly labels: {
|
|
3656
4025
|
readonly [x: string]: string;
|
|
3657
4026
|
};
|
|
4027
|
+
readonly attachments: readonly {
|
|
4028
|
+
readonly id: string;
|
|
4029
|
+
readonly mediaType: string;
|
|
4030
|
+
readonly name?: string | undefined;
|
|
4031
|
+
readonly size?: number | undefined;
|
|
4032
|
+
readonly url?: string | undefined;
|
|
4033
|
+
}[];
|
|
3658
4034
|
readonly createdAt: number;
|
|
3659
4035
|
};
|
|
3660
4036
|
};
|
|
@@ -3673,6 +4049,13 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3673
4049
|
readonly labels: {
|
|
3674
4050
|
readonly [x: string]: string;
|
|
3675
4051
|
};
|
|
4052
|
+
readonly attachments: readonly {
|
|
4053
|
+
readonly id: string;
|
|
4054
|
+
readonly mediaType: string;
|
|
4055
|
+
readonly name?: string | undefined;
|
|
4056
|
+
readonly size?: number | undefined;
|
|
4057
|
+
readonly url?: string | undefined;
|
|
4058
|
+
}[];
|
|
3676
4059
|
readonly createdAt: number;
|
|
3677
4060
|
};
|
|
3678
4061
|
};
|
|
@@ -3691,6 +4074,13 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3691
4074
|
readonly labels: {
|
|
3692
4075
|
readonly [x: string]: string;
|
|
3693
4076
|
};
|
|
4077
|
+
readonly attachments: readonly {
|
|
4078
|
+
readonly id: string;
|
|
4079
|
+
readonly mediaType: string;
|
|
4080
|
+
readonly name?: string | undefined;
|
|
4081
|
+
readonly size?: number | undefined;
|
|
4082
|
+
readonly url?: string | undefined;
|
|
4083
|
+
}[];
|
|
3694
4084
|
readonly createdAt: number;
|
|
3695
4085
|
}[];
|
|
3696
4086
|
};
|
|
@@ -3789,17 +4179,13 @@ export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
3789
4179
|
}[];
|
|
3790
4180
|
};
|
|
3791
4181
|
})>>;
|
|
3792
|
-
|
|
3793
|
-
* Not retried: a claim that took effect but whose answer was lost would be refused on a second
|
|
3794
|
-
* attempt, and the lease returns the task to the queue on its own.
|
|
3795
|
-
*/
|
|
3796
|
-
export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
4182
|
+
export declare const listTasksEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
3797
4183
|
readonly callId: string;
|
|
3798
4184
|
readonly board: string;
|
|
3799
4185
|
readonly as: string;
|
|
3800
|
-
readonly task?: string | undefined;
|
|
3801
4186
|
readonly channel?: string | undefined;
|
|
3802
|
-
readonly
|
|
4187
|
+
readonly state?: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting" | undefined;
|
|
4188
|
+
readonly for?: string | undefined;
|
|
3803
4189
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
3804
4190
|
readonly type: "runtime.child.close.requested";
|
|
3805
4191
|
readonly payload: {
|
|
@@ -4046,6 +4432,20 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4046
4432
|
readonly payload: Schema.Json;
|
|
4047
4433
|
};
|
|
4048
4434
|
};
|
|
4435
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
4436
|
+
readonly type: "swarm.attachments.viewed";
|
|
4437
|
+
readonly payload: {
|
|
4438
|
+
readonly callId: string;
|
|
4439
|
+
readonly board: string;
|
|
4440
|
+
readonly message: string;
|
|
4441
|
+
readonly attachments: readonly {
|
|
4442
|
+
readonly id: string;
|
|
4443
|
+
readonly mediaType: string;
|
|
4444
|
+
readonly name?: string | undefined;
|
|
4445
|
+
readonly size?: number | undefined;
|
|
4446
|
+
readonly url?: string | undefined;
|
|
4447
|
+
}[];
|
|
4448
|
+
};
|
|
4049
4449
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
4050
4450
|
readonly type: "swarm.board.pulled";
|
|
4051
4451
|
readonly payload: {
|
|
@@ -4067,6 +4467,13 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4067
4467
|
readonly labels: {
|
|
4068
4468
|
readonly [x: string]: string;
|
|
4069
4469
|
};
|
|
4470
|
+
readonly attachments: readonly {
|
|
4471
|
+
readonly id: string;
|
|
4472
|
+
readonly mediaType: string;
|
|
4473
|
+
readonly name?: string | undefined;
|
|
4474
|
+
readonly size?: number | undefined;
|
|
4475
|
+
readonly url?: string | undefined;
|
|
4476
|
+
}[];
|
|
4070
4477
|
readonly createdAt: number;
|
|
4071
4478
|
} | undefined;
|
|
4072
4479
|
readonly task?: {
|
|
@@ -4121,6 +4528,13 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4121
4528
|
readonly labels: {
|
|
4122
4529
|
readonly [x: string]: string;
|
|
4123
4530
|
};
|
|
4531
|
+
readonly attachments: readonly {
|
|
4532
|
+
readonly id: string;
|
|
4533
|
+
readonly mediaType: string;
|
|
4534
|
+
readonly name?: string | undefined;
|
|
4535
|
+
readonly size?: number | undefined;
|
|
4536
|
+
readonly url?: string | undefined;
|
|
4537
|
+
}[];
|
|
4124
4538
|
readonly createdAt: number;
|
|
4125
4539
|
};
|
|
4126
4540
|
};
|
|
@@ -4139,6 +4553,13 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4139
4553
|
readonly labels: {
|
|
4140
4554
|
readonly [x: string]: string;
|
|
4141
4555
|
};
|
|
4556
|
+
readonly attachments: readonly {
|
|
4557
|
+
readonly id: string;
|
|
4558
|
+
readonly mediaType: string;
|
|
4559
|
+
readonly name?: string | undefined;
|
|
4560
|
+
readonly size?: number | undefined;
|
|
4561
|
+
readonly url?: string | undefined;
|
|
4562
|
+
}[];
|
|
4142
4563
|
readonly createdAt: number;
|
|
4143
4564
|
};
|
|
4144
4565
|
};
|
|
@@ -4157,6 +4578,13 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4157
4578
|
readonly labels: {
|
|
4158
4579
|
readonly [x: string]: string;
|
|
4159
4580
|
};
|
|
4581
|
+
readonly attachments: readonly {
|
|
4582
|
+
readonly id: string;
|
|
4583
|
+
readonly mediaType: string;
|
|
4584
|
+
readonly name?: string | undefined;
|
|
4585
|
+
readonly size?: number | undefined;
|
|
4586
|
+
readonly url?: string | undefined;
|
|
4587
|
+
}[];
|
|
4160
4588
|
readonly createdAt: number;
|
|
4161
4589
|
}[];
|
|
4162
4590
|
};
|
|
@@ -4255,14 +4683,17 @@ export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").Local
|
|
|
4255
4683
|
}[];
|
|
4256
4684
|
};
|
|
4257
4685
|
})>>;
|
|
4258
|
-
|
|
4686
|
+
/**
|
|
4687
|
+
* Not retried: a claim that took effect but whose answer was lost would be refused on a second
|
|
4688
|
+
* attempt, and the lease returns the task to the queue on its own.
|
|
4689
|
+
*/
|
|
4690
|
+
export declare const claimTaskEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
4259
4691
|
readonly callId: string;
|
|
4260
4692
|
readonly board: string;
|
|
4261
4693
|
readonly as: string;
|
|
4262
|
-
readonly task
|
|
4263
|
-
readonly
|
|
4264
|
-
readonly
|
|
4265
|
-
readonly note?: string | undefined;
|
|
4694
|
+
readonly task?: string | undefined;
|
|
4695
|
+
readonly channel?: string | undefined;
|
|
4696
|
+
readonly leaseMs?: number | undefined;
|
|
4266
4697
|
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
4267
4698
|
readonly type: "runtime.child.close.requested";
|
|
4268
4699
|
readonly payload: {
|
|
@@ -4509,6 +4940,20 @@ export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
4509
4940
|
readonly payload: Schema.Json;
|
|
4510
4941
|
};
|
|
4511
4942
|
};
|
|
4943
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
4944
|
+
readonly type: "swarm.attachments.viewed";
|
|
4945
|
+
readonly payload: {
|
|
4946
|
+
readonly callId: string;
|
|
4947
|
+
readonly board: string;
|
|
4948
|
+
readonly message: string;
|
|
4949
|
+
readonly attachments: readonly {
|
|
4950
|
+
readonly id: string;
|
|
4951
|
+
readonly mediaType: string;
|
|
4952
|
+
readonly name?: string | undefined;
|
|
4953
|
+
readonly size?: number | undefined;
|
|
4954
|
+
readonly url?: string | undefined;
|
|
4955
|
+
}[];
|
|
4956
|
+
};
|
|
4512
4957
|
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
4513
4958
|
readonly type: "swarm.board.pulled";
|
|
4514
4959
|
readonly payload: {
|
|
@@ -4530,6 +4975,13 @@ export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
4530
4975
|
readonly labels: {
|
|
4531
4976
|
readonly [x: string]: string;
|
|
4532
4977
|
};
|
|
4978
|
+
readonly attachments: readonly {
|
|
4979
|
+
readonly id: string;
|
|
4980
|
+
readonly mediaType: string;
|
|
4981
|
+
readonly name?: string | undefined;
|
|
4982
|
+
readonly size?: number | undefined;
|
|
4983
|
+
readonly url?: string | undefined;
|
|
4984
|
+
}[];
|
|
4533
4985
|
readonly createdAt: number;
|
|
4534
4986
|
} | undefined;
|
|
4535
4987
|
readonly task?: {
|
|
@@ -4584,6 +5036,13 @@ export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
4584
5036
|
readonly labels: {
|
|
4585
5037
|
readonly [x: string]: string;
|
|
4586
5038
|
};
|
|
5039
|
+
readonly attachments: readonly {
|
|
5040
|
+
readonly id: string;
|
|
5041
|
+
readonly mediaType: string;
|
|
5042
|
+
readonly name?: string | undefined;
|
|
5043
|
+
readonly size?: number | undefined;
|
|
5044
|
+
readonly url?: string | undefined;
|
|
5045
|
+
}[];
|
|
4587
5046
|
readonly createdAt: number;
|
|
4588
5047
|
};
|
|
4589
5048
|
};
|
|
@@ -4602,6 +5061,13 @@ export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
4602
5061
|
readonly labels: {
|
|
4603
5062
|
readonly [x: string]: string;
|
|
4604
5063
|
};
|
|
5064
|
+
readonly attachments: readonly {
|
|
5065
|
+
readonly id: string;
|
|
5066
|
+
readonly mediaType: string;
|
|
5067
|
+
readonly name?: string | undefined;
|
|
5068
|
+
readonly size?: number | undefined;
|
|
5069
|
+
readonly url?: string | undefined;
|
|
5070
|
+
}[];
|
|
4605
5071
|
readonly createdAt: number;
|
|
4606
5072
|
};
|
|
4607
5073
|
};
|
|
@@ -4620,6 +5086,518 @@ export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").Loca
|
|
|
4620
5086
|
readonly labels: {
|
|
4621
5087
|
readonly [x: string]: string;
|
|
4622
5088
|
};
|
|
5089
|
+
readonly attachments: readonly {
|
|
5090
|
+
readonly id: string;
|
|
5091
|
+
readonly mediaType: string;
|
|
5092
|
+
readonly name?: string | undefined;
|
|
5093
|
+
readonly size?: number | undefined;
|
|
5094
|
+
readonly url?: string | undefined;
|
|
5095
|
+
}[];
|
|
5096
|
+
readonly createdAt: number;
|
|
5097
|
+
}[];
|
|
5098
|
+
};
|
|
5099
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5100
|
+
readonly type: "swarm.nudged";
|
|
5101
|
+
readonly payload: {};
|
|
5102
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5103
|
+
readonly type: "swarm.stopped";
|
|
5104
|
+
readonly payload: {};
|
|
5105
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5106
|
+
readonly type: "swarm.task.claimed";
|
|
5107
|
+
readonly payload: {
|
|
5108
|
+
readonly callId: string;
|
|
5109
|
+
readonly board: string;
|
|
5110
|
+
readonly claim: {
|
|
5111
|
+
readonly task: {
|
|
5112
|
+
readonly id: string;
|
|
5113
|
+
readonly channel: string;
|
|
5114
|
+
readonly text: string;
|
|
5115
|
+
readonly by: string;
|
|
5116
|
+
readonly for: string | null;
|
|
5117
|
+
readonly needs: readonly string[];
|
|
5118
|
+
readonly state: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting";
|
|
5119
|
+
readonly holder: string | null;
|
|
5120
|
+
readonly epoch: number;
|
|
5121
|
+
readonly leaseUntil: number | null;
|
|
5122
|
+
readonly note: string | null;
|
|
5123
|
+
readonly createdAt: number;
|
|
5124
|
+
readonly updatedAt: number;
|
|
5125
|
+
};
|
|
5126
|
+
readonly token: string;
|
|
5127
|
+
readonly until: number;
|
|
5128
|
+
} | null;
|
|
5129
|
+
};
|
|
5130
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5131
|
+
readonly type: "swarm.task.created";
|
|
5132
|
+
readonly payload: {
|
|
5133
|
+
readonly callId: string;
|
|
5134
|
+
readonly board: string;
|
|
5135
|
+
readonly task: {
|
|
5136
|
+
readonly id: string;
|
|
5137
|
+
readonly channel: string;
|
|
5138
|
+
readonly text: string;
|
|
5139
|
+
readonly by: string;
|
|
5140
|
+
readonly for: string | null;
|
|
5141
|
+
readonly needs: readonly string[];
|
|
5142
|
+
readonly state: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting";
|
|
5143
|
+
readonly holder: string | null;
|
|
5144
|
+
readonly epoch: number;
|
|
5145
|
+
readonly leaseUntil: number | null;
|
|
5146
|
+
readonly note: string | null;
|
|
5147
|
+
readonly createdAt: number;
|
|
5148
|
+
readonly updatedAt: number;
|
|
5149
|
+
};
|
|
5150
|
+
};
|
|
5151
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5152
|
+
readonly type: "swarm.task.settled";
|
|
5153
|
+
readonly payload: {
|
|
5154
|
+
readonly callId: string;
|
|
5155
|
+
readonly board: string;
|
|
5156
|
+
readonly task: {
|
|
5157
|
+
readonly id: string;
|
|
5158
|
+
readonly channel: string;
|
|
5159
|
+
readonly text: string;
|
|
5160
|
+
readonly by: string;
|
|
5161
|
+
readonly for: string | null;
|
|
5162
|
+
readonly needs: readonly string[];
|
|
5163
|
+
readonly state: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting";
|
|
5164
|
+
readonly holder: string | null;
|
|
5165
|
+
readonly epoch: number;
|
|
5166
|
+
readonly leaseUntil: number | null;
|
|
5167
|
+
readonly note: string | null;
|
|
5168
|
+
readonly createdAt: number;
|
|
5169
|
+
readonly updatedAt: number;
|
|
5170
|
+
};
|
|
5171
|
+
};
|
|
5172
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5173
|
+
readonly type: "swarm.tasks.listed";
|
|
5174
|
+
readonly payload: {
|
|
5175
|
+
readonly callId: string;
|
|
5176
|
+
readonly board: string;
|
|
5177
|
+
readonly tasks: readonly {
|
|
5178
|
+
readonly id: string;
|
|
5179
|
+
readonly channel: string;
|
|
5180
|
+
readonly text: string;
|
|
5181
|
+
readonly by: string;
|
|
5182
|
+
readonly for: string | null;
|
|
5183
|
+
readonly needs: readonly string[];
|
|
5184
|
+
readonly state: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting";
|
|
5185
|
+
readonly holder: string | null;
|
|
5186
|
+
readonly epoch: number;
|
|
5187
|
+
readonly leaseUntil: number | null;
|
|
5188
|
+
readonly note: string | null;
|
|
5189
|
+
readonly createdAt: number;
|
|
5190
|
+
readonly updatedAt: number;
|
|
5191
|
+
}[];
|
|
5192
|
+
};
|
|
5193
|
+
})>>;
|
|
5194
|
+
export declare const settleTaskEffect: NoInfer<import("@swirls/looms/core").LocalEffectDefinition<{
|
|
5195
|
+
readonly callId: string;
|
|
5196
|
+
readonly board: string;
|
|
5197
|
+
readonly as: string;
|
|
5198
|
+
readonly task: string;
|
|
5199
|
+
readonly token: string;
|
|
5200
|
+
readonly outcome: "blocked" | "completed" | "failed" | "released";
|
|
5201
|
+
readonly note?: string | undefined;
|
|
5202
|
+
}, BoardsTag, (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5203
|
+
readonly type: "runtime.child.close.requested";
|
|
5204
|
+
readonly payload: {
|
|
5205
|
+
readonly policy: "terminate" | "wait";
|
|
5206
|
+
};
|
|
5207
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5208
|
+
readonly type: "runtime.child.settled";
|
|
5209
|
+
readonly payload: {
|
|
5210
|
+
readonly runId: string;
|
|
5211
|
+
readonly status: "cancelled" | "completed" | "failed";
|
|
5212
|
+
readonly output: Schema.Json;
|
|
5213
|
+
readonly error: string | null;
|
|
5214
|
+
};
|
|
5215
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5216
|
+
readonly type: "runtime.effect.ambiguous";
|
|
5217
|
+
readonly payload: {
|
|
5218
|
+
readonly effectId: string;
|
|
5219
|
+
readonly attempt: number;
|
|
5220
|
+
readonly error: string;
|
|
5221
|
+
};
|
|
5222
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5223
|
+
readonly type: "runtime.effect.attempt.started";
|
|
5224
|
+
readonly payload: {
|
|
5225
|
+
readonly effectId: string;
|
|
5226
|
+
readonly attempt: number;
|
|
5227
|
+
};
|
|
5228
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5229
|
+
readonly type: "runtime.effect.cancel.requested";
|
|
5230
|
+
readonly payload: {
|
|
5231
|
+
readonly effectId: string;
|
|
5232
|
+
readonly attempt: number;
|
|
5233
|
+
readonly deadlineAt: number | null;
|
|
5234
|
+
};
|
|
5235
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5236
|
+
readonly type: "runtime.effect.cancelled";
|
|
5237
|
+
readonly payload: {
|
|
5238
|
+
readonly effectId: string;
|
|
5239
|
+
readonly attempt: number;
|
|
5240
|
+
};
|
|
5241
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5242
|
+
readonly type: "runtime.effect.completed";
|
|
5243
|
+
readonly payload: {
|
|
5244
|
+
readonly effectId: string;
|
|
5245
|
+
readonly attempt: number;
|
|
5246
|
+
};
|
|
5247
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5248
|
+
readonly type: "runtime.effect.dispatch.deferred";
|
|
5249
|
+
readonly payload: {
|
|
5250
|
+
readonly effectId: string;
|
|
5251
|
+
readonly attempt: number;
|
|
5252
|
+
readonly retryAt: number;
|
|
5253
|
+
readonly error: string;
|
|
5254
|
+
readonly try: number;
|
|
5255
|
+
};
|
|
5256
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5257
|
+
readonly type: "runtime.effect.dispatched";
|
|
5258
|
+
readonly payload: {
|
|
5259
|
+
readonly effectId: string;
|
|
5260
|
+
readonly attempt: number;
|
|
5261
|
+
readonly deadlineAt: number | null;
|
|
5262
|
+
};
|
|
5263
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5264
|
+
readonly type: "runtime.effect.failed";
|
|
5265
|
+
readonly payload: {
|
|
5266
|
+
readonly effectId: string;
|
|
5267
|
+
readonly error: string;
|
|
5268
|
+
readonly nonRetryable?: boolean | undefined;
|
|
5269
|
+
readonly retryAfterMs?: number | undefined;
|
|
5270
|
+
};
|
|
5271
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5272
|
+
readonly type: "runtime.effect.heartbeat";
|
|
5273
|
+
readonly payload: {
|
|
5274
|
+
readonly effectId: string;
|
|
5275
|
+
readonly attempt: number;
|
|
5276
|
+
readonly heartbeatAt: number;
|
|
5277
|
+
readonly deadlineAt: number | null;
|
|
5278
|
+
readonly details?: Schema.Json | undefined;
|
|
5279
|
+
};
|
|
5280
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5281
|
+
readonly type: "runtime.effect.queued";
|
|
5282
|
+
readonly payload: {
|
|
5283
|
+
readonly effectId: string;
|
|
5284
|
+
readonly attempt: number;
|
|
5285
|
+
readonly deadlineAt: number | null;
|
|
5286
|
+
};
|
|
5287
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5288
|
+
readonly type: "runtime.effect.retry.scheduled";
|
|
5289
|
+
readonly payload: {
|
|
5290
|
+
readonly effectId: string;
|
|
5291
|
+
readonly attempt: number;
|
|
5292
|
+
readonly nextAttemptAt: number;
|
|
5293
|
+
readonly error: string;
|
|
5294
|
+
};
|
|
5295
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5296
|
+
readonly type: "runtime.effect.timed_out";
|
|
5297
|
+
readonly payload: {
|
|
5298
|
+
readonly effectId: string;
|
|
5299
|
+
readonly attempt: number;
|
|
5300
|
+
readonly timeout: string;
|
|
5301
|
+
};
|
|
5302
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5303
|
+
readonly type: "runtime.effect.worker.started";
|
|
5304
|
+
readonly payload: {
|
|
5305
|
+
readonly effectId: string;
|
|
5306
|
+
readonly attempt: number;
|
|
5307
|
+
readonly deadlineAt: number | null;
|
|
5308
|
+
};
|
|
5309
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5310
|
+
readonly type: "runtime.fork.elided";
|
|
5311
|
+
readonly payload: {
|
|
5312
|
+
readonly type: string;
|
|
5313
|
+
};
|
|
5314
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5315
|
+
readonly type: "runtime.run.cancelled";
|
|
5316
|
+
readonly payload: {
|
|
5317
|
+
readonly reason?: string | undefined;
|
|
5318
|
+
};
|
|
5319
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5320
|
+
readonly type: "runtime.run.completed";
|
|
5321
|
+
readonly payload: {
|
|
5322
|
+
readonly output: Schema.Json;
|
|
5323
|
+
readonly error: string | null;
|
|
5324
|
+
};
|
|
5325
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5326
|
+
readonly type: "runtime.run.forked";
|
|
5327
|
+
readonly payload: {
|
|
5328
|
+
readonly sourceRunId: string;
|
|
5329
|
+
readonly sourceSeq: number;
|
|
5330
|
+
};
|
|
5331
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5332
|
+
readonly type: "runtime.run.launched";
|
|
5333
|
+
readonly payload: {
|
|
5334
|
+
readonly runId: string;
|
|
5335
|
+
readonly kind: string;
|
|
5336
|
+
readonly definitionName: string;
|
|
5337
|
+
readonly definitionVersion: string;
|
|
5338
|
+
readonly effectId: string;
|
|
5339
|
+
readonly close: "terminate" | "wait";
|
|
5340
|
+
};
|
|
5341
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5342
|
+
readonly type: "runtime.run.started";
|
|
5343
|
+
readonly payload: {
|
|
5344
|
+
readonly rootThreadId?: string | undefined;
|
|
5345
|
+
readonly kind: string;
|
|
5346
|
+
readonly definitionName: string;
|
|
5347
|
+
readonly definitionVersion: string;
|
|
5348
|
+
readonly input: Schema.Json;
|
|
5349
|
+
readonly requestedThreadId?: string | null | undefined;
|
|
5350
|
+
readonly launchedBy?: {
|
|
5351
|
+
readonly runId: string;
|
|
5352
|
+
readonly threadId: string;
|
|
5353
|
+
readonly effectId: string;
|
|
5354
|
+
readonly causationId: string;
|
|
5355
|
+
readonly causationSeq: number;
|
|
5356
|
+
} | undefined;
|
|
5357
|
+
readonly attributes?: {
|
|
5358
|
+
readonly [x: string]: string;
|
|
5359
|
+
} | undefined;
|
|
5360
|
+
readonly trace?: {
|
|
5361
|
+
readonly traceparent: string;
|
|
5362
|
+
readonly tracestate?: string | undefined;
|
|
5363
|
+
} | undefined;
|
|
5364
|
+
};
|
|
5365
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5366
|
+
readonly type: "runtime.signal.received";
|
|
5367
|
+
readonly payload: {
|
|
5368
|
+
readonly signalType: string;
|
|
5369
|
+
};
|
|
5370
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5371
|
+
readonly type: "runtime.snapshot.taken";
|
|
5372
|
+
readonly payload: {
|
|
5373
|
+
readonly seq: number;
|
|
5374
|
+
readonly stateHash: string;
|
|
5375
|
+
readonly state?: Schema.Json | undefined;
|
|
5376
|
+
};
|
|
5377
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5378
|
+
readonly type: "runtime.thread.cancel.requested";
|
|
5379
|
+
readonly payload: {
|
|
5380
|
+
readonly threadId: string;
|
|
5381
|
+
};
|
|
5382
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5383
|
+
readonly type: "runtime.thread.cancelled";
|
|
5384
|
+
readonly payload: {
|
|
5385
|
+
readonly threadId: string;
|
|
5386
|
+
readonly reason?: string | undefined;
|
|
5387
|
+
readonly resumeSeq?: number | undefined;
|
|
5388
|
+
};
|
|
5389
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5390
|
+
readonly type: "runtime.thread.completed";
|
|
5391
|
+
readonly payload: {
|
|
5392
|
+
readonly threadId: string;
|
|
5393
|
+
readonly output: Schema.Json;
|
|
5394
|
+
};
|
|
5395
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5396
|
+
readonly type: "runtime.thread.failed";
|
|
5397
|
+
readonly payload: {
|
|
5398
|
+
readonly threadId: string;
|
|
5399
|
+
readonly error: string;
|
|
5400
|
+
};
|
|
5401
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5402
|
+
readonly type: "runtime.thread.started";
|
|
5403
|
+
readonly payload: {
|
|
5404
|
+
readonly threadId: string;
|
|
5405
|
+
readonly kind: string;
|
|
5406
|
+
readonly definitionName: string;
|
|
5407
|
+
readonly definitionVersion: string;
|
|
5408
|
+
readonly input: Schema.Json;
|
|
5409
|
+
readonly parentThreadId: string | null;
|
|
5410
|
+
};
|
|
5411
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5412
|
+
readonly type: "runtime.timer.fired";
|
|
5413
|
+
readonly payload: {
|
|
5414
|
+
readonly timerId: string;
|
|
5415
|
+
readonly waitId: string;
|
|
5416
|
+
};
|
|
5417
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5418
|
+
readonly type: "runtime.timer.set";
|
|
5419
|
+
readonly payload: {
|
|
5420
|
+
readonly timerId: string;
|
|
5421
|
+
readonly waitId: string;
|
|
5422
|
+
readonly wakeAt: number;
|
|
5423
|
+
};
|
|
5424
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5425
|
+
readonly type: "runtime.wait.registered";
|
|
5426
|
+
readonly payload: {
|
|
5427
|
+
readonly waitId: string;
|
|
5428
|
+
readonly threadId?: string | undefined;
|
|
5429
|
+
readonly on: {
|
|
5430
|
+
readonly type: string | readonly string[];
|
|
5431
|
+
readonly match?: Schema.Json | undefined;
|
|
5432
|
+
} | {
|
|
5433
|
+
readonly timerAt: number;
|
|
5434
|
+
};
|
|
5435
|
+
readonly tag?: Schema.Json | undefined;
|
|
5436
|
+
};
|
|
5437
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5438
|
+
readonly type: "runtime.wait.satisfied";
|
|
5439
|
+
readonly payload: {
|
|
5440
|
+
readonly waitId: string;
|
|
5441
|
+
readonly tag?: Schema.Json | undefined;
|
|
5442
|
+
readonly event: {
|
|
5443
|
+
readonly id: string;
|
|
5444
|
+
readonly type: string;
|
|
5445
|
+
readonly payload: Schema.Json;
|
|
5446
|
+
};
|
|
5447
|
+
};
|
|
5448
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5449
|
+
readonly type: "swarm.attachments.viewed";
|
|
5450
|
+
readonly payload: {
|
|
5451
|
+
readonly callId: string;
|
|
5452
|
+
readonly board: string;
|
|
5453
|
+
readonly message: string;
|
|
5454
|
+
readonly attachments: readonly {
|
|
5455
|
+
readonly id: string;
|
|
5456
|
+
readonly mediaType: string;
|
|
5457
|
+
readonly name?: string | undefined;
|
|
5458
|
+
readonly size?: number | undefined;
|
|
5459
|
+
readonly url?: string | undefined;
|
|
5460
|
+
}[];
|
|
5461
|
+
};
|
|
5462
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5463
|
+
readonly type: "swarm.board.pulled";
|
|
5464
|
+
readonly payload: {
|
|
5465
|
+
readonly board: string;
|
|
5466
|
+
readonly pull: number;
|
|
5467
|
+
readonly cursor: string | null;
|
|
5468
|
+
readonly events: readonly {
|
|
5469
|
+
readonly cursor: string;
|
|
5470
|
+
readonly type: "message.labeled" | "message.posted" | "task.blocked" | "task.canceled" | "task.claimed" | "task.completed" | "task.created" | "task.failed" | "task.ready" | "task.reopened";
|
|
5471
|
+
readonly at: number;
|
|
5472
|
+
readonly by: string;
|
|
5473
|
+
readonly message?: {
|
|
5474
|
+
readonly id: string;
|
|
5475
|
+
readonly channel: string;
|
|
5476
|
+
readonly text: string;
|
|
5477
|
+
readonly by: string;
|
|
5478
|
+
readonly re: string | null;
|
|
5479
|
+
readonly mentions: readonly string[];
|
|
5480
|
+
readonly labels: {
|
|
5481
|
+
readonly [x: string]: string;
|
|
5482
|
+
};
|
|
5483
|
+
readonly attachments: readonly {
|
|
5484
|
+
readonly id: string;
|
|
5485
|
+
readonly mediaType: string;
|
|
5486
|
+
readonly name?: string | undefined;
|
|
5487
|
+
readonly size?: number | undefined;
|
|
5488
|
+
readonly url?: string | undefined;
|
|
5489
|
+
}[];
|
|
5490
|
+
readonly createdAt: number;
|
|
5491
|
+
} | undefined;
|
|
5492
|
+
readonly task?: {
|
|
5493
|
+
readonly id: string;
|
|
5494
|
+
readonly channel: string;
|
|
5495
|
+
readonly text: string;
|
|
5496
|
+
readonly by: string;
|
|
5497
|
+
readonly for: string | null;
|
|
5498
|
+
readonly needs: readonly string[];
|
|
5499
|
+
readonly state: "blocked" | "canceled" | "claimed" | "completed" | "failed" | "ready" | "waiting";
|
|
5500
|
+
readonly holder: string | null;
|
|
5501
|
+
readonly epoch: number;
|
|
5502
|
+
readonly leaseUntil: number | null;
|
|
5503
|
+
readonly note: string | null;
|
|
5504
|
+
readonly createdAt: number;
|
|
5505
|
+
readonly updatedAt: number;
|
|
5506
|
+
} | undefined;
|
|
5507
|
+
}[];
|
|
5508
|
+
readonly more: boolean;
|
|
5509
|
+
readonly nextPullAt: number | null;
|
|
5510
|
+
};
|
|
5511
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5512
|
+
readonly type: "swarm.call.rejected";
|
|
5513
|
+
readonly payload: {
|
|
5514
|
+
readonly callId: string;
|
|
5515
|
+
readonly board: string;
|
|
5516
|
+
readonly code: string;
|
|
5517
|
+
readonly error: string;
|
|
5518
|
+
};
|
|
5519
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5520
|
+
readonly type: "swarm.member.activated";
|
|
5521
|
+
readonly payload: {
|
|
5522
|
+
readonly board: string;
|
|
5523
|
+
readonly member: string;
|
|
5524
|
+
readonly activation: number;
|
|
5525
|
+
readonly runId: string;
|
|
5526
|
+
readonly events: number;
|
|
5527
|
+
readonly at: number;
|
|
5528
|
+
};
|
|
5529
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5530
|
+
readonly type: "swarm.message.labeled";
|
|
5531
|
+
readonly payload: {
|
|
5532
|
+
readonly callId: string;
|
|
5533
|
+
readonly board: string;
|
|
5534
|
+
readonly message: {
|
|
5535
|
+
readonly id: string;
|
|
5536
|
+
readonly channel: string;
|
|
5537
|
+
readonly text: string;
|
|
5538
|
+
readonly by: string;
|
|
5539
|
+
readonly re: string | null;
|
|
5540
|
+
readonly mentions: readonly string[];
|
|
5541
|
+
readonly labels: {
|
|
5542
|
+
readonly [x: string]: string;
|
|
5543
|
+
};
|
|
5544
|
+
readonly attachments: readonly {
|
|
5545
|
+
readonly id: string;
|
|
5546
|
+
readonly mediaType: string;
|
|
5547
|
+
readonly name?: string | undefined;
|
|
5548
|
+
readonly size?: number | undefined;
|
|
5549
|
+
readonly url?: string | undefined;
|
|
5550
|
+
}[];
|
|
5551
|
+
readonly createdAt: number;
|
|
5552
|
+
};
|
|
5553
|
+
};
|
|
5554
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5555
|
+
readonly type: "swarm.message.posted";
|
|
5556
|
+
readonly payload: {
|
|
5557
|
+
readonly callId: string;
|
|
5558
|
+
readonly board: string;
|
|
5559
|
+
readonly message: {
|
|
5560
|
+
readonly id: string;
|
|
5561
|
+
readonly channel: string;
|
|
5562
|
+
readonly text: string;
|
|
5563
|
+
readonly by: string;
|
|
5564
|
+
readonly re: string | null;
|
|
5565
|
+
readonly mentions: readonly string[];
|
|
5566
|
+
readonly labels: {
|
|
5567
|
+
readonly [x: string]: string;
|
|
5568
|
+
};
|
|
5569
|
+
readonly attachments: readonly {
|
|
5570
|
+
readonly id: string;
|
|
5571
|
+
readonly mediaType: string;
|
|
5572
|
+
readonly name?: string | undefined;
|
|
5573
|
+
readonly size?: number | undefined;
|
|
5574
|
+
readonly url?: string | undefined;
|
|
5575
|
+
}[];
|
|
5576
|
+
readonly createdAt: number;
|
|
5577
|
+
};
|
|
5578
|
+
};
|
|
5579
|
+
}) | (Omit<import("@swirls/looms/core").EventInput, "payload" | "type"> & {
|
|
5580
|
+
readonly type: "swarm.messages.read";
|
|
5581
|
+
readonly payload: {
|
|
5582
|
+
readonly callId: string;
|
|
5583
|
+
readonly board: string;
|
|
5584
|
+
readonly messages: readonly {
|
|
5585
|
+
readonly id: string;
|
|
5586
|
+
readonly channel: string;
|
|
5587
|
+
readonly text: string;
|
|
5588
|
+
readonly by: string;
|
|
5589
|
+
readonly re: string | null;
|
|
5590
|
+
readonly mentions: readonly string[];
|
|
5591
|
+
readonly labels: {
|
|
5592
|
+
readonly [x: string]: string;
|
|
5593
|
+
};
|
|
5594
|
+
readonly attachments: readonly {
|
|
5595
|
+
readonly id: string;
|
|
5596
|
+
readonly mediaType: string;
|
|
5597
|
+
readonly name?: string | undefined;
|
|
5598
|
+
readonly size?: number | undefined;
|
|
5599
|
+
readonly url?: string | undefined;
|
|
5600
|
+
}[];
|
|
4623
5601
|
readonly createdAt: number;
|
|
4624
5602
|
}[];
|
|
4625
5603
|
};
|