xiaoju
2a52b930b9
chore: raise default maxRounds from 5 to 10 (CLI, matches API default)
...
小橘 <xiaoju@shazhou.work >
2026-05-09 13:17:57 +00:00
xiaoju
26cf51366f
feat: Phase 3 — engine read path + runtime context builder
...
- Add buildThreadContext(headHash, cas) to workflow-runtime
- Expand extract phase to return { meta, contentPayload, refs[] }
- Add parseCasThreadNode() to workflow-cas for node type parsing
- Update createWorkflow to write ContentMerkleNode with artifact refs
- Tests: 4 pass (build-context + extract-refs)
- Biome format pass on all files
Refs #155 , closes #158
小橘 <xiaoju@shazhou.work >
2026-05-09 08:00:24 +00:00
xiaoju
b8b557baf6
fix: migrate template test imports from @uncaged/workflow to new packages
...
小橘 🍊 (NEKO Team)
2026-05-09 03:51:48 +00:00
xingyue
727b4bb3ed
refactor(workflow): fix tsconfig references, template imports, delete old packages/workflow
...
- Update root tsconfig.json references: replace packages/workflow with 6 new packages
- Update cli-workflow tsconfig references to new packages
- Add tsconfig references to workflow-util, workflow-runtime, workflow-execute
- Fix workflow-agent-llm, workflow-agent-cursor, workflow-agent-hermes, workflow-util-agent
tsconfig references (../workflow -> ../workflow-runtime)
- Remove stale @uncaged/workflow deps from agent package.json files
- Change template packages to import buildDescriptor from @uncaged/workflow-register
- Normalize package.json exports field across all new packages
- Delete old packages/workflow/ directory
2026-05-09 11:46:57 +08:00
xiaoju
b8f9ffcb59
feat(workflow): migrate supervisor to ThreadReactor (Phase 2)
...
- Rewrite supervisor to use createThreadReactor + createLlmFn
- No direct fetch/HTTP calls in supervisor
- All 266 tests passing
Refs #139 , relates #141
2026-05-09 02:26:39 +00:00
xiaoju
a7171f05f6
feat(workflow): add ThreadReactor generic ReAct loop + migrate extract (Phase 1)
...
- New src/reactor/ module: createThreadReactor, createLlmFn, types
- Two-stage API: config (llm, systemPrompt, tools, toolHandler) + per-call (thread, input, schema)
- All tool failures are recoverable (returned to LLM as error message)
- Rewrite createExtract to use createThreadReactor
- Delete reactExtract old implementation
- Fix template test imports (START/END from runtime, validateWorkflowDescriptor from engine)
268 tests passing.
Refs #139 , relates #140
2026-05-09 02:15:38 +00:00
Scott Wei
a11cc62a81
refactor(workflow-runtime): use full ThreadContext in WorkflowFn
...
Redefine WorkflowFn to accept a complete ThreadContext plus WorkflowRuntime dependencies, removing ThreadInput and WorkflowFnOptions.
Move thread context construction into engine executeThread, update runtime loop/agent paths, and align templates/docs/tests with template-only definition exports.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-08 17:08:01 +08:00
Scott Wei
34f5e655d1
refactor(workflow): unify extraction behind ExtractFn
...
Route createExtract through reactExtract with plain-JSON correction retry.
Remove WorkflowFnOptions.llmProvider, ExtractMode, RoleDefinition.extractMode, ResolveRoleMetaFn.
Runtime createWorkflow calls options.extract directly; engine passes extract only.
Update templates, CLI skill docs, and tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-08 17:08:01 +08:00
xiaoju
e9e4960714
refactor(workflow): migrate downstream packages to workflow-runtime (Phase 2+3)
...
- Verify createWorkflow in runtime has zero I/O imports
- Migrate agent-cursor, agent-hermes to pure workflow-runtime dependency
- Migrate agent-llm, util-agent, templates to dual dependency
(runtime for types, engine for CAS/merkle/buildDescriptor)
- All 377 tests passing
Refs #121 , relates #123 #124
2026-05-08 06:33:52 +00:00
xiaoju
178f6c7519
chore: bump all packages to 0.2.0
2026-05-08 02:55:29 +00:00
xingyue
520b17b351
chore: remove all deprecated code
...
- Remove createThreadCas alias (CAS is global, not per-thread)
- Remove formatSkillDoc() legacy compat shim
- Remove help command (replaced by skill)
- Remove all 13 DEPRECATED_ALIASES flat commands + printDeprecation
- Fix CAS prompts in develop roles: remove stale <THREAD_ID> param
- Update README.md to remove createThreadCas reference
- Net: -86 lines, 241 tests pass
Closes #114
2026-05-08 10:27:27 +08:00
xiaomo
085cdcd3f4
Merge pull request 'feat: engine injects extract provider at runtime (Phase 2)' ( #113 ) from feat/110-phase2-migrate-extract into main
2026-05-08 02:23:58 +00:00
xiaoju
a8c1c158d6
feat: engine injects extract provider at runtime (Phase 2)
...
- createWorkflow(def, binding) — no more extract/llmProvider params
- Engine resolves extract provider from workflow.yaml via resolveModel
- WorkflowFnOptions now carries extract + llmProvider (engine-injected)
- Delete extract-provider.ts, inline maxDepth helper
- Template packages simplified: only take agent binding
- Breaking change: bundles no longer carry provider config
Refs #110
2026-05-08 02:21:45 +00:00
xingyue
a5c09adae6
docs: add README.md to all 8 packages
...
Each README includes: package description, install instructions,
usage example, API overview, and (for templates) role/moderator flow.
Packages documented:
- @uncaged/workflow (core)
- @uncaged/cli-workflow (CLI)
- @uncaged/workflow-agent-cursor
- @uncaged/workflow-agent-hermes
- @uncaged/workflow-agent-llm
- @uncaged/workflow-template-develop
- @uncaged/workflow-template-solve-issue
- @uncaged/workflow-util-agent
2026-05-08 10:17:40 +08:00
xiaoju
d9f79c60a1
Merge pull request 'chore: remove unused build scripts' ( #99 ) from chore/remove-build-scripts into main
2026-05-08 00:46:54 +00:00
xiaoju
485bfcb0b6
chore: remove unused build scripts
...
All packages are pure Bun/TS — no build step needed.
The build scripts were all placeholder `echo 'TODO'` anyway.
2026-05-08 00:46:35 +00:00
xiaoju
23b2c3b47d
feat(reviewer): enrich prompt with conventions awareness + strict verdicts
...
- Read preparer's conventions from thread context
- Review checklist: correctness, conventions, consistency, edge cases
- No nits: every issue is blocking, approve only at zero issues
- Generic prompt, no workflow-specific concepts
Closes #91
小橘 🍊
2026-05-07 16:25:31 +00:00
xiaoju
6b3aa4ce35
fix(cli): usage not red + skill subcommand + --help flag on groups
...
1. No-args usage uses printCliLine (not printCliError), exit 1
2. 'skill [topic]' as first-class command (help --skill kept as compat)
3. 'workflow --help', 'thread --help' etc. show group subcommands
4. Role prompts updated: 'uncaged-workflow skill develop'
240 tests (6 new), build clean.
Closes #83
小橘 🍊
2026-05-07 15:17:20 +00:00
xiaoju
66bca9ef03
feat(cli): help --skill <topic> — context-specific docs for agents
...
- help --skill (no args) → lists available topics
- help --skill cli → full CLI reference (was: help --skill)
- help --skill develop → thread ID, CAS, meta output guide for roles
- help --skill author → bundle structure, descriptor, role definition
- Role prompts updated: planner/coder reference 'help --skill develop'
- Legacy formatSkillDoc() preserved for compat
- 234 tests (15 new), build clean
Closes #81
小橘 🍊
2026-05-07 15:03:08 +00:00
xiaoju
8456a8337b
refactor: slim planner & coder prompts with help --skill
...
Replace inline CLI tutorials (thread ID lookup, cas put/get examples)
with a single 'uncaged-workflow help --skill' reference. Keeps minimal
task-specific instructions (what to store, what to report).
Closes #77
Refs #75 , #72
小橘 🍊
2026-05-07 14:47:14 +00:00
xiaoju
9c8b98a551
refactor: merge 7 workflow-role-* packages into templates
...
- planner/coder/reviewer/tester/committer → workflow-template-develop/src/roles/
- preparer/submitter → workflow-template-solve-issue/src/roles/
- Moved tests, updated imports, removed role packages
- 219 tests pass, build clean
Closes #76
Refs #75 , #73
小橘 🍊
2026-05-07 14:45:11 +00:00
xiaoju
1a685583bd
feat: tester role + develop workflow template
...
- New workflow-role-tester: runs tests/build/lint, reports pass/fail
- Committer: removed push, only creates branch and commits
- New workflow-template-develop: planner → coder ⟲ → reviewer ⟲ → tester → committer
- 173 tests passing
Fixes #58
2026-05-07 13:42:01 +00:00