agent-worker 0.14.0 → 0.15.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/README.md +6 -3
- package/dist/{backends-Cv0oM9Ru.mjs → backends-BYWmuyF9.mjs} +1 -1
- package/dist/{backends-C6WBIn9H.mjs → backends-C7pQwuAx.mjs} +265 -227
- package/dist/cli/index.mjs +648 -393
- package/dist/context-CdcZpO-0.mjs +4 -0
- package/dist/create-tool-gcUuI1FD.mjs +32 -0
- package/dist/index.d.mts +4 -33
- package/dist/index.mjs +21 -20
- package/dist/{memory-provider-0nuDxzYQ.mjs → memory-provider-ZLOKyCxA.mjs} +8 -3
- package/dist/{runner-DV86expc.mjs → runner-DB-b57iZ.mjs} +53 -46
- package/dist/workflow-DQ6Eju4n.mjs +664 -0
- package/package.json +3 -3
- package/dist/context-CzqQeThq.mjs +0 -4
- package/dist/workflow-DogkVjOs.mjs +0 -301
- /package/dist/{display-pretty-BCJq5v9d.mjs → display-pretty-Kyd40DEF.mjs} +0 -0
package/README.md
CHANGED
|
@@ -270,10 +270,10 @@ const agent = new AgentWorker({
|
|
|
270
270
|
### Programmatic Workflows
|
|
271
271
|
|
|
272
272
|
```typescript
|
|
273
|
-
import { parseWorkflowFile,
|
|
273
|
+
import { parseWorkflowFile, runWorkflowWithLoops } from 'agent-worker'
|
|
274
274
|
|
|
275
275
|
const workflow = await parseWorkflowFile('review.yaml', { tag: 'pr-123' })
|
|
276
|
-
const result = await
|
|
276
|
+
const result = await runWorkflowWithLoops({
|
|
277
277
|
workflow,
|
|
278
278
|
workflowName: 'review',
|
|
279
279
|
tag: 'pr-123',
|
|
@@ -298,9 +298,12 @@ agent-worker new -m deepseek:deepseek-chat # Direct provider format
|
|
|
298
298
|
|
|
299
299
|
## Documentation
|
|
300
300
|
|
|
301
|
-
- [ARCHITECTURE.md](./ARCHITECTURE.md) — System architecture
|
|
301
|
+
- [ARCHITECTURE.md](./ARCHITECTURE.md) — System architecture (module structure, dependency graph)
|
|
302
|
+
- [docs/architecture/OVERVIEW.md](./docs/architecture/OVERVIEW.md) — Design overview (why each layer exists)
|
|
302
303
|
- [docs/backends.md](./docs/backends.md) — Backend comparison
|
|
303
304
|
- [docs/workflow/](./docs/workflow/) — Workflow system design
|
|
305
|
+
- [docs/architecture/AGENT-TOP-LEVEL.md](./docs/architecture/AGENT-TOP-LEVEL.md) — Agent-as-entity proposal
|
|
306
|
+
- [docs/architecture/GUARD-AGENT.md](./docs/architecture/GUARD-AGENT.md) — Guard agent proposal
|
|
304
307
|
- [TEST-ARCHITECTURE.md](./TEST-ARCHITECTURE.md) — Testing strategy
|
|
305
308
|
- [examples/](./examples/) — Example workflows
|
|
306
309
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as CLAUDE_MODEL_MAP, D as SDK_MODEL_ALIASES, E as OPENCODE_MODEL_MAP, O as getModelForBackend, S as BACKEND_DEFAULT_MODELS, T as CURSOR_MODEL_MAP, _ as extractCodexResult, a as createMockBackend, b as execWithIdleTimeout, c as extractOpenCodeResult, d as CodexBackend, f as ClaudeCodeBackend, g as extractClaudeResult, h as createStreamParser, i as MockAIBackend, k as normalizeBackendType, l as opencodeAdapter, m as codexAdapter, n as createBackend, o as SdkBackend, p as claudeAdapter, r as listBackends, s as OpenCodeBackend, t as checkBackends, u as CursorBackend, v as formatEvent, w as CODEX_MODEL_MAP, x as DEFAULT_IDLE_TIMEOUT, y as IdleTimeoutError } from "./backends-
|
|
1
|
+
import { C as CLAUDE_MODEL_MAP, D as SDK_MODEL_ALIASES, E as OPENCODE_MODEL_MAP, O as getModelForBackend, S as BACKEND_DEFAULT_MODELS, T as CURSOR_MODEL_MAP, _ as extractCodexResult, a as createMockBackend, b as execWithIdleTimeout, c as extractOpenCodeResult, d as CodexBackend, f as ClaudeCodeBackend, g as extractClaudeResult, h as createStreamParser, i as MockAIBackend, k as normalizeBackendType, l as opencodeAdapter, m as codexAdapter, n as createBackend, o as SdkBackend, p as claudeAdapter, r as listBackends, s as OpenCodeBackend, t as checkBackends, u as CursorBackend, v as formatEvent, w as CODEX_MODEL_MAP, x as DEFAULT_IDLE_TIMEOUT, y as IdleTimeoutError } from "./backends-C7pQwuAx.mjs";
|
|
2
2
|
|
|
3
3
|
export { listBackends };
|