@dudousxd/nestjs-agent 0.3.3 → 0.4.1

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.
@@ -1,11 +1,14 @@
1
1
  import { AgentStore, AgentRunInput, AgentRunner, Decision } from '@dudousxd/nestjs-agent-core';
2
2
  import { WorkflowCtx } from '@dudousxd/nestjs-durable-core';
3
- import { A as AgentDepsFactory, a as AgentModuleOptions } from '../agent-deps.factory-D4KyREOv.js';
3
+ import { A as AgentDepsFactory, a as AgentModuleOptions } from '../agent-deps.factory-BM_RB6br.js';
4
4
  import { WorkflowService } from '@dudousxd/nestjs-durable';
5
5
  import { DynamicModule } from '@nestjs/common';
6
6
 
7
7
  /**
8
- * The agent turn AS a durable workflow. Each model/tool call is a checkpointed `ctx.step`, HITL is
8
+ * The agent turn AS a durable workflow. Each model/tool call is a checkpointed `ctx.localStep` — the
9
+ * in-process primitive, NOT the always-dispatched `ctx.step`: the loop's deps (model provider, store,
10
+ * sink) live in THIS workflow worker's DI, and the step names are dynamic checkpoint identities
11
+ * (`llm:0`, `persist:toolcall:<id>`), not routable worker groups. HITL is
9
12
  * `ctx.waitForSignal`, and sub-agent delegation is `ctx.child(AgentRunWorkflow)` — a replay-safe,
10
13
  * observable child run (it shows up as a node in the durable dashboard). A child streams into its
11
14
  * top-level ancestor's sink (`sinkRunId`) so the human watching the parent sees it and can approve