fix: address 3 critical PR review issues

1. threads.yaml race condition: reload threads index after agent subprocess
   completes before updating head pointer (cli-uwf/commands/thread.ts)

2. evaluateJsonata not awaited: jsonata evaluate() returns Promise for async
   expressions — now properly awaited (uwf-moderator/evaluate.ts)

3. resolveWorkflowHash dead code: function always returns a value, removed
   impossible null return type and dead null-check branches at call sites
   (cli-uwf/store.ts, commands/thread.ts, commands/workflow.ts)
This commit is contained in:
2026-05-18 10:05:11 +00:00
parent 0727e0e8d5
commit d90e29ad05
7 changed files with 32 additions and 32 deletions
+3 -1
View File
@@ -2,7 +2,9 @@
"name": "@uncaged/workflow-monorepo",
"private": true,
"workspaces": [
"packages/*"
"packages/*",
"../json-cas/packages/json-cas",
"../json-cas/packages/json-cas-fs"
],
"scripts": {
"build": "bunx tsc --build",