@swirls/looms 0.25.0 → 0.26.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 +18 -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 +3 -1
- package/dist/agent/effects.js +5 -3
- package/dist/agent/module.d.ts +730 -730
- 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/effects.d.ts +33 -33
- package/dist/evaluator/module.d.ts +66 -66
- 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/schedule/module.d.ts +36 -36
- package/dist/swarm/steps.d.ts +3 -3
- package/dist/swarm/steps.js +5 -5
- package/dist/swarm/tools.d.ts +3 -2
- package/dist/swarm/tools.js +13 -13
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @swirls/looms
|
|
2
2
|
|
|
3
|
+
## 0.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8795ca9: Ids are TypeIDs by default, and a host can supply its own id format.
|
|
8
|
+
|
|
9
|
+
Every run, thread, event, and wait id is now a [TypeID](https://github.com/jetify-com/typeid): `run_`, `thr_`, `evt_`, or `wait_` followed by 26 characters. Ids Looms draws carry a UUIDv7 and sort by creation time within a process. Ids a reducer derives for a child carry a UUIDv8 whose bits are SHA-256 over the parts.
|
|
10
|
+
|
|
11
|
+
Pass `ids` to use another format, for example UUIDs that match the tables run data is replicated into. A format is a `LoomsIds` object: `create(kind)` draws an id and `derive(kind, parts)` names a child. The option is accepted by `createLooms`, `createRuntime`, `createActorCell`, `createLocalActorHost`, the Durable Object config, `routeToDurableObject`, the queue consumer, `createLoomsClient`, `LoomsProvider`, `createLoomsStore`, `preloadRunStore`, and `DebuggerShell`. Reducers and effect handlers read the configured format as `ctx.ids`. An id must be a non-empty string with no `:`; a format that breaks either rule throws `InvalidIdFormatError`. `derive` must be a pure function of its arguments.
|
|
12
|
+
|
|
13
|
+
Breaking changes:
|
|
14
|
+
|
|
15
|
+
- Every id Looms draws or derives has a new shape. Derived thread ids were bare UUID-shaped strings and now start with `thr_`. Derived ids come from SHA-256 instead of FNV-1a, so every derived child has a new name: a run in flight across the upgrade will not replay. Let in-flight runs finish, or cancel them, before upgrading.
|
|
16
|
+
- `ThreadContext`, `StartContext`, `LocalEffectContext`, `WorkerEffectContext`, and `AgentToolResolutionContext` have a required `ids` field. Code that builds one by hand must add it.
|
|
17
|
+
- A workflow's `pendingCancels` state holds `{ target, execution }` records instead of id strings. The workflow no longer reads a child's kind from a `run_` prefix.
|
|
18
|
+
- `deterministicThreadId` and `deterministicRunId` hash their parts as JSON, so `('a:b', 'c')` and `('a', 'b:c')` no longer collide, and `1` and `'1'` differ.
|
|
19
|
+
- `gate`, `evaluate`, `post`, `createTask`, and `boardTools` draw their call ids as `wait_<26 characters>` without the `approval`, `evaluator`, or `swarm` label.
|
|
20
|
+
|
|
3
21
|
## 0.25.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/actor/cell.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyRuntimeModule, type DefinitionResolver, type EventInput, type EventStore, type EventStoreTrimCoverage, type LaunchRunArgs, type RunAttributeFields, type RunLauncher, type RunState, type RunStatusSnapshot, type SnapshotStore } from '@swirls/looms/core';
|
|
1
|
+
import { type AnyRuntimeModule, type DefinitionResolver, type EventInput, type EventStore, type EventStoreTrimCoverage, type LaunchRunArgs, type RunAttributeFields, type RunLauncher, type RunState, type RunStatusSnapshot, type SnapshotStore, type LoomsIds } from '@swirls/looms/core';
|
|
2
2
|
import { type Authorize, type EffectWorker, type LoomsRuntime, type RunSignalOptions, type StartResult, type StartRunArgs, type WakeScheduler, type RuntimeObserver, type SecretProvider, type SecretSealer } from '@swirls/looms/runtime';
|
|
3
3
|
export interface ActorCellOptions<TModules extends readonly AnyRuntimeModule[] = readonly AnyRuntimeModule[]> {
|
|
4
4
|
readonly runId: string;
|
|
@@ -7,6 +7,8 @@ export interface ActorCellOptions<TModules extends readonly AnyRuntimeModule[] =
|
|
|
7
7
|
readonly modules: TModules;
|
|
8
8
|
/** Loads definitions that were not registered on a module. See `CreateRuntimeOptions`. */
|
|
9
9
|
readonly definitionResolver?: DefinitionResolver;
|
|
10
|
+
/** The id format. See `CreateRuntimeOptions.ids`. */
|
|
11
|
+
readonly ids?: LoomsIds;
|
|
10
12
|
readonly snapshotEvery?: number;
|
|
11
13
|
readonly maxWakeIterations?: number;
|
|
12
14
|
/** See `CreateRuntimeOptions.livenessLeaseMs`. */
|
package/dist/actor/cell.js
CHANGED
package/dist/actor/host.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyRuntimeModule, DefinitionResolver, EventInput, EventStore, EventStoreTrimCoverage, RunAttributeFields, RunLauncher, RunState, SnapshotStore } from '@swirls/looms/core';
|
|
1
|
+
import type { AnyRuntimeModule, DefinitionResolver, EventInput, EventStore, EventStoreTrimCoverage, RunAttributeFields, RunLauncher, RunState, SnapshotStore, LoomsIds } from '@swirls/looms/core';
|
|
2
2
|
import { type Authorize, type RunSignalOptions, type StartResult, type StartRunArgs, type RuntimeObserver, type SecretProvider, type SecretSealer } from '@swirls/looms/runtime';
|
|
3
3
|
import { type ActorCell } from './cell';
|
|
4
4
|
export interface LocalActorHostOptions<TModules extends readonly AnyRuntimeModule[] = readonly AnyRuntimeModule[]> {
|
|
@@ -6,6 +6,8 @@ export interface LocalActorHostOptions<TModules extends readonly AnyRuntimeModul
|
|
|
6
6
|
readonly modules: TModules;
|
|
7
7
|
/** Loads definitions that were not registered on a module. See `CreateRuntimeOptions`. */
|
|
8
8
|
readonly definitionResolver?: DefinitionResolver;
|
|
9
|
+
/** The id format. See `CreateRuntimeOptions.ids`. */
|
|
10
|
+
readonly ids?: LoomsIds;
|
|
9
11
|
/** Declared run attributes. See `CreateRuntimeOptions`. */
|
|
10
12
|
readonly attributes?: RunAttributeFields;
|
|
11
13
|
/** Told about wakes, appends, snapshots and effect attempts. See `CreateRuntimeOptions`. */
|
package/dist/actor/host.js
CHANGED
|
@@ -59,6 +59,7 @@ export function createLocalActorHost(options) {
|
|
|
59
59
|
scheduler,
|
|
60
60
|
modules: options.modules,
|
|
61
61
|
definitionResolver: options.definitionResolver,
|
|
62
|
+
ids: options.ids,
|
|
62
63
|
attributes: options.attributes,
|
|
63
64
|
observer: options.observer,
|
|
64
65
|
secretProvider: options.secretProvider,
|
|
@@ -109,7 +110,7 @@ export function createLocalActorHost(options) {
|
|
|
109
110
|
}
|
|
110
111
|
return Effect.runPromise(Effect.gen(function* () {
|
|
111
112
|
const { runId, request } = yield* Effect.tryPromise({
|
|
112
|
-
try: () => resolveRunTarget(req),
|
|
113
|
+
try: () => resolveRunTarget(req, { ids: options.ids }),
|
|
113
114
|
catch: (cause) => new ActorHostError(cause),
|
|
114
115
|
});
|
|
115
116
|
const cell = yield* Effect.tryPromise({
|
package/dist/actor/routing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyRuntimeModule } from '@swirls/looms/core';
|
|
1
|
+
import { type LoomsIds, type AnyRuntimeModule } from '@swirls/looms/core';
|
|
2
2
|
/**
|
|
3
3
|
* Extracts the target `runId` from a Looms HTTP request.
|
|
4
4
|
* Inspects `x-looms-run-id` and `/runs/:runId/*`.
|
|
@@ -32,7 +32,10 @@ export declare class RunTargetError extends RunTargetError_base<{
|
|
|
32
32
|
/**
|
|
33
33
|
* Resolves the destination `runId` for routing to an actor cell.
|
|
34
34
|
* For `POST /runs` and `POST /runs/launch` without a `runId`, creates a fresh
|
|
35
|
-
* `runId
|
|
35
|
+
* `runId` in the `ids` format (default `typeIds`), injects it into the body, and sets
|
|
36
|
+
* `x-looms-run-id`.
|
|
36
37
|
*/
|
|
37
|
-
export declare function resolveRunTarget(req: Request
|
|
38
|
+
export declare function resolveRunTarget(req: Request, options?: {
|
|
39
|
+
readonly ids?: LoomsIds;
|
|
40
|
+
}): Promise<ResolvedRunTarget>;
|
|
38
41
|
export {};
|
package/dist/actor/routing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Data, Effect, Option, Predicate, Schema } from 'effect';
|
|
2
|
-
import { composeModules,
|
|
2
|
+
import { composeModules, resolveIds, isJsonObject, publishDefinition, publishEffects, publishModules, stringifyJson, } from '@swirls/looms/core';
|
|
3
3
|
const RunTargetBodySchema = Schema.Struct({
|
|
4
4
|
runId: Schema.optional(Schema.NonEmptyString),
|
|
5
5
|
});
|
|
@@ -78,9 +78,11 @@ export class RunTargetError extends Data.TaggedError('RunTargetError') {
|
|
|
78
78
|
/**
|
|
79
79
|
* Resolves the destination `runId` for routing to an actor cell.
|
|
80
80
|
* For `POST /runs` and `POST /runs/launch` without a `runId`, creates a fresh
|
|
81
|
-
* `runId
|
|
81
|
+
* `runId` in the `ids` format (default `typeIds`), injects it into the body, and sets
|
|
82
|
+
* `x-looms-run-id`.
|
|
82
83
|
*/
|
|
83
|
-
export function resolveRunTarget(req) {
|
|
84
|
+
export function resolveRunTarget(req, options) {
|
|
85
|
+
const ids = resolveIds(options?.ids);
|
|
84
86
|
return Effect.runPromise(Effect.gen(function* () {
|
|
85
87
|
const existing = runIdFromRequest(req);
|
|
86
88
|
if (existing) {
|
|
@@ -108,7 +110,7 @@ export function resolveRunTarget(req) {
|
|
|
108
110
|
runId = decoded.value.runId;
|
|
109
111
|
}
|
|
110
112
|
else {
|
|
111
|
-
runId =
|
|
113
|
+
runId = ids.create('run');
|
|
112
114
|
}
|
|
113
115
|
const decodedRecord = decodePayloadRecord(text);
|
|
114
116
|
const payloadObj = Option.isSome(decodedRecord) && isJsonObject(decodedRecord.value)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Predicate } from 'effect';
|
|
2
|
-
import { cancel, createWaitId,
|
|
2
|
+
import { cancel, createWaitId, emit, spawn, wait, } from '@swirls/looms/core';
|
|
3
3
|
import { agentModule } from './scope.js';
|
|
4
4
|
import { attachmentsField, userLine } from './types.js';
|
|
5
5
|
function objectPayload(event) {
|
|
@@ -237,7 +237,7 @@ export function createAgentSessionThread(definitions) {
|
|
|
237
237
|
if (next) {
|
|
238
238
|
effects.push(emit(agentModule.input('session.turn.started', {
|
|
239
239
|
messageId: next.messageId,
|
|
240
|
-
childThreadId:
|
|
240
|
+
childThreadId: ctx.ids.derive('thread', [ctx.threadId, 'turn', next.messageId]),
|
|
241
241
|
}, { threadId: ctx.threadId }), `session_admit_${next.messageId}`));
|
|
242
242
|
return effects;
|
|
243
243
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Bot, CornerDownRight, GitFork, MessageSquare, Settings2, User, Wrench } from 'lucide-react';
|
|
3
3
|
import { useMemo, useState } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { isJsonObject, isJsonString } from '@swirls/looms/core';
|
|
5
5
|
import { Button, cn, Composer, EmptyState, errorMessage, FollowList, inputForm, JsonTree, messageInput, parseStructuredJson, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, shortId, useDebugger, useStartRun, } from '@swirls/looms/debugger';
|
|
6
6
|
import { useLiveFold, useProjection, useRunStore, useRunSummary } from '@swirls/looms/react';
|
|
7
7
|
import { conversation, turnActivity } from '../projections.js';
|
|
@@ -115,7 +115,7 @@ export function AgentChat(context) {
|
|
|
115
115
|
}
|
|
116
116
|
setDraft('');
|
|
117
117
|
start(input, session
|
|
118
|
-
? (started) => client.signal(started.runId, agentSessionMessageEvents({ messageId:
|
|
118
|
+
? (started) => client.signal(started.runId, agentSessionMessageEvents({ messageId: client.ids.create('event'), text: content }, { threadId: started.threadId }))
|
|
119
119
|
: undefined);
|
|
120
120
|
}
|
|
121
121
|
return (_jsxs("div", { className: "flex h-full min-h-0 flex-col", children: [runId ? (_jsx(Transcript, { runId: runId })) : (_jsx("div", { className: "min-h-0 flex-1", children: _jsx(EmptyState, { icon: _jsx(MessageSquare, {}), title: `Talk to ${definition.name}`, children: "Your first message starts a new run." }) })), runId ? (_jsx(FollowUp, { runId: runId, session: session, delivery: delivery, setDelivery: setDelivery, startError: error, onForked: context.onStarted })) : (_jsx(Composer, { value: draft, onChange: setDraft, onSubmit: send, pending: pending, placeholder: `Message ${definition.name}…`, submitLabel: "Start", error: error }))] }));
|
|
@@ -140,6 +140,7 @@ function ContinueRun({ runId, status, onForked, }) {
|
|
|
140
140
|
return (_jsxs("div", { className: "border-border shrink-0 border-t p-3", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsxs("p", { className: "text-muted-foreground min-w-0 flex-1 text-xs", children: ["Run ", status, ". Continue from where it stopped in a new run."] }), _jsxs(Button, { size: "sm", variant: "outline", disabled: pending, onClick: continueInNewRun, children: [_jsx(GitFork, {}), "Continue in new run"] })] }), error ? _jsx("p", { className: "text-status-failed mt-2 text-[11px]", children: error }) : null] }));
|
|
141
141
|
}
|
|
142
142
|
function Reply({ runId, session, delivery, setDelivery, startError }) {
|
|
143
|
+
const { client } = useDebugger();
|
|
143
144
|
const store = useRunStore(runId);
|
|
144
145
|
const { rootThreadId, status, finished } = useRunSummary(store);
|
|
145
146
|
const turn = useProjection(store, turnActivity);
|
|
@@ -167,7 +168,7 @@ function Reply({ runId, session, delivery, setDelivery, startError }) {
|
|
|
167
168
|
setError(null);
|
|
168
169
|
const events = session
|
|
169
170
|
? agentSessionMessageEvents({
|
|
170
|
-
messageId:
|
|
171
|
+
messageId: client.ids.create('event'),
|
|
171
172
|
text: content,
|
|
172
173
|
delivery,
|
|
173
174
|
activeChildThreadId: delivery === 'steer' ? activeSessionChild(store.events()) : undefined,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
import type { Schema } from 'effect';
|
|
3
|
-
import { type JsonValue, type RuntimeEffect, type SchemaInput } from '@swirls/looms/core';
|
|
3
|
+
import { type JsonValue, type RuntimeEffect, type SchemaInput, type LoomsIds } from '@swirls/looms/core';
|
|
4
4
|
import type { StopWhen } from './stop-when';
|
|
5
5
|
import type { Message, ToolCall } from './types';
|
|
6
6
|
export declare const TEAM_MEMBER_MAX_DEPTH: 3;
|
|
@@ -86,6 +86,8 @@ export interface AgentToolResolutionContext<TInput = JsonValue> {
|
|
|
86
86
|
readonly threadId: string;
|
|
87
87
|
readonly turn: number;
|
|
88
88
|
readonly input: TInput;
|
|
89
|
+
/** The id format the host was configured with. */
|
|
90
|
+
readonly ids: LoomsIds;
|
|
89
91
|
}
|
|
90
92
|
export interface AgentTurnResult<TOutput extends JsonValue = JsonValue> {
|
|
91
93
|
message: Message;
|
package/dist/agent/effects.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Data, Effect, Predicate, Schema } from 'effect';
|
|
2
|
-
import {
|
|
2
|
+
import { DEFAULT_DEFINITION_VERSION, validateInputEffect, } from '@swirls/looms/core';
|
|
3
3
|
import { buildStructuredOutputInstructions, defaultAgentCompactor, defineTool, isContextOverflowError, normalizeTools, STRUCTURED_OUTPUT_TOOL_NAME, TEAM_MEMBER_MAX_DEPTH, } from './definitions.js';
|
|
4
4
|
import { AgentDefinitionsTag } from './definitions-store.js';
|
|
5
5
|
import { LlmTag } from './llm.js';
|
|
@@ -90,6 +90,7 @@ export const callLlmEffect = agentModule.effect({
|
|
|
90
90
|
consumedSteerMessageIds: [...(input.consumedSteerMessageIds ?? [])],
|
|
91
91
|
runId: ctx.runId,
|
|
92
92
|
threadId: ctx.threadId,
|
|
93
|
+
ids: ctx.ids,
|
|
93
94
|
signal: ctx.signal,
|
|
94
95
|
emit: (event) => ctx.emit(event),
|
|
95
96
|
}),
|
|
@@ -124,7 +125,7 @@ function runCallLlm(args) {
|
|
|
124
125
|
},
|
|
125
126
|
];
|
|
126
127
|
}
|
|
127
|
-
const tools = yield* agentTools(definition, { threadId, turn, input });
|
|
128
|
+
const tools = yield* agentTools(definition, { threadId, turn, input, ids: args.ids });
|
|
128
129
|
const instructions = definition.output
|
|
129
130
|
? `${definition.instructions}\n\n${buildStructuredOutputInstructions(STRUCTURED_OUTPUT_TOOL_NAME)}`
|
|
130
131
|
: definition.instructions;
|
|
@@ -292,6 +293,7 @@ export const executeToolEffect = agentModule.effect({
|
|
|
292
293
|
threadId,
|
|
293
294
|
turn: input.turn,
|
|
294
295
|
input: input.input ?? null,
|
|
296
|
+
ids: ctx.ids,
|
|
295
297
|
}).pipe(Effect.match({
|
|
296
298
|
onFailure: (error) => ({ ok: false, error: error.message }),
|
|
297
299
|
onSuccess: (tools) => ({ ok: true, tools }),
|
|
@@ -380,7 +382,7 @@ export const executeToolEffect = agentModule.effect({
|
|
|
380
382
|
];
|
|
381
383
|
}
|
|
382
384
|
const childInput = tool.mapInput ? tool.mapInput(validated.value) : validated.value;
|
|
383
|
-
const childThreadId =
|
|
385
|
+
const childThreadId = ctx.ids.create('thread');
|
|
384
386
|
return [
|
|
385
387
|
{
|
|
386
388
|
type: 'agent.spawn.requested',
|