chore: bump all packages to 0.4.0, fix exports for publish

- All @uncaged/* packages → 0.4.0
- Internal deps: workspace:* → workspace:^ (resolves to ^0.4.0 on publish)
- Fix exports: add 'bun' condition for local dev (src), 'import' for consumers (dist)
- Remove stale 'main: src/index.ts' from 6 packages
- Fix publish.sh topo sort to match workspace:^ prefix

星月 <xingyue@shazhou.work>
This commit is contained in:
2026-05-13 20:46:00 +08:00
parent 9d9c00df98
commit ca644dabaa
17 changed files with 92 additions and 83 deletions
+8 -8
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/cli-workflow", "name": "@uncaged/cli-workflow",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"src", "src",
"dist", "dist",
@@ -11,13 +11,13 @@
"uncaged-workflow": "src/cli.ts" "uncaged-workflow": "src/cli.ts"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-gateway": "workspace:*", "@uncaged/workflow-gateway": "workspace:^",
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-util": "workspace:*", "@uncaged/workflow-util": "workspace:^",
"@uncaged/workflow-cas": "workspace:*", "@uncaged/workflow-cas": "workspace:^",
"@uncaged/workflow-execute": "workspace:*", "@uncaged/workflow-execute": "workspace:^",
"@uncaged/workflow-register": "workspace:*", "@uncaged/workflow-register": "workspace:^",
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"hono": "^4.12.18", "hono": "^4.12.18",
"yaml": "^2.8.4" "yaml": "^2.8.4"
}, },
+8 -8
View File
@@ -1,28 +1,28 @@
{ {
"name": "@uncaged/workflow-agent-cursor", "name": "@uncaged/workflow-agent-cursor",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-reactor": "workspace:*", "@uncaged/workflow-reactor": "workspace:^",
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"@uncaged/workflow-util": "workspace:*", "@uncaged/workflow-util": "workspace:^",
"@uncaged/workflow-util-agent": "workspace:*", "@uncaged/workflow-util-agent": "workspace:^",
"zod": "^4.0.0" "zod": "^4.0.0"
}, },
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
} }
} }
+5 -5
View File
@@ -1,24 +1,24 @@
{ {
"name": "@uncaged/workflow-agent-hermes", "name": "@uncaged/workflow-agent-hermes",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"@uncaged/workflow-util-agent": "workspace:*" "@uncaged/workflow-util-agent": "workspace:^"
}, },
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
} }
} }
+5 -5
View File
@@ -1,27 +1,27 @@
{ {
"name": "@uncaged/workflow-agent-llm", "name": "@uncaged/workflow-agent-llm",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"@uncaged/workflow-util-agent": "workspace:*" "@uncaged/workflow-util-agent": "workspace:^"
}, },
"devDependencies": { "devDependencies": {
"zod": "^4.0.0" "zod": "^4.0.0"
}, },
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
} }
} }
+7 -7
View File
@@ -1,26 +1,26 @@
{ {
"name": "@uncaged/workflow-agent-react", "name": "@uncaged/workflow-agent-react",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"exports": { "exports": {
".": { ".": {
"types": "./src/index.ts", "bun": "./src/index.ts",
"default": "./src/index.ts" "types": "./dist/index.d.ts",
"import": "./dist/index.js"
} }
}, },
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-reactor": "workspace:*", "@uncaged/workflow-reactor": "workspace:^",
"@uncaged/workflow-util-agent": "workspace:*" "@uncaged/workflow-util-agent": "workspace:^"
}, },
"devDependencies": { "devDependencies": {
"zod": "^4.0.0" "zod": "^4.0.0"
+5 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-cas", "name": "@uncaged/workflow-cas",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -11,13 +11,14 @@
}, },
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-util": "workspace:*", "@uncaged/workflow-util": "workspace:^",
"xxhashjs": "^0.2.2", "xxhashjs": "^0.2.2",
"yaml": "^2.7.1" "yaml": "^2.7.1"
}, },
+9 -8
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-execute", "name": "@uncaged/workflow-execute",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,20 +8,21 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"@uncaged/workflow-util": "workspace:*", "@uncaged/workflow-util": "workspace:^",
"@uncaged/workflow-cas": "workspace:*", "@uncaged/workflow-cas": "workspace:^",
"@uncaged/workflow-reactor": "workspace:*", "@uncaged/workflow-reactor": "workspace:^",
"@uncaged/workflow-register": "workspace:*", "@uncaged/workflow-register": "workspace:^",
"yaml": "^2.7.1" "yaml": "^2.7.1"
}, },
"peerDependencies": { "peerDependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-gateway", "name": "@uncaged/workflow-gateway",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
+5 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-protocol", "name": "@uncaged/workflow-protocol",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,12 +8,14 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
}, },
"./moderator-table.js": { "./moderator-table.js": {
"bun": "./src/moderator-table.ts",
"types": "./dist/moderator-table.d.ts", "types": "./dist/moderator-table.d.ts",
"import": "./src/moderator-table.ts" "import": "./dist/moderator-table.js"
} }
}, },
"peerDependencies": { "peerDependencies": {
+4 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-reactor", "name": "@uncaged/workflow-reactor",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,12 +8,13 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*" "@uncaged/workflow-protocol": "workspace:^"
}, },
"peerDependencies": { "peerDependencies": {
"zod": "^4.0.0" "zod": "^4.0.0"
+5 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-register", "name": "@uncaged/workflow-register",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,13 +8,14 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*", "@uncaged/workflow-protocol": "workspace:^",
"@uncaged/workflow-util": "workspace:*" "@uncaged/workflow-util": "workspace:^"
}, },
"peerDependencies": { "peerDependencies": {
"acorn": "^8.0.0", "acorn": "^8.0.0",
+5 -5
View File
@@ -1,19 +1,18 @@
{ {
"name": "@uncaged/workflow-runtime", "name": "@uncaged/workflow-runtime",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-cas": "workspace:*", "@uncaged/workflow-cas": "workspace:^",
"@uncaged/workflow-protocol": "workspace:*" "@uncaged/workflow-protocol": "workspace:^"
}, },
"peerDependencies": { "peerDependencies": {
"zod": "^4.0.0" "zod": "^4.0.0"
@@ -23,8 +22,9 @@
}, },
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
} }
} }
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-template-develop", "name": "@uncaged/workflow-template-develop",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,19 +8,20 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-register": "workspace:*", "@uncaged/workflow-register": "workspace:^",
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"zod": "^4.0.0" "zod": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@uncaged/workflow-protocol": "workspace:*" "@uncaged/workflow-protocol": "workspace:^"
} }
} }
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-template-solve-issue", "name": "@uncaged/workflow-template-solve-issue",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,21 +8,22 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-register": "workspace:*", "@uncaged/workflow-register": "workspace:^",
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"zod": "^4.0.0" "zod": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@uncaged/workflow-cas": "workspace:*", "@uncaged/workflow-cas": "workspace:^",
"@uncaged/workflow-execute": "workspace:*", "@uncaged/workflow-execute": "workspace:^",
"@uncaged/workflow-protocol": "workspace:*" "@uncaged/workflow-protocol": "workspace:^"
} }
} }
+6 -6
View File
@@ -1,25 +1,25 @@
{ {
"name": "@uncaged/workflow-util-agent", "name": "@uncaged/workflow-util-agent",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
], ],
"type": "module", "type": "module",
"main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",
"exports": { "exports": {
".": { ".": {
"types": "./src/index.ts", "bun": "./src/index.ts",
"default": "./src/index.ts" "types": "./dist/index.d.ts",
"import": "./dist/index.js"
} }
}, },
"scripts": { "scripts": {
"test": "bun test" "test": "bun test"
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-runtime": "workspace:*", "@uncaged/workflow-runtime": "workspace:^",
"@uncaged/workflow-cas": "workspace:*", "@uncaged/workflow-cas": "workspace:^",
"zod": "^4.0.0" "zod": "^4.0.0"
} }
} }
+4 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@uncaged/workflow-util", "name": "@uncaged/workflow-util",
"version": "0.3.21", "version": "0.4.0",
"files": [ "files": [
"dist", "dist",
"package.json" "package.json"
@@ -8,12 +8,13 @@
"type": "module", "type": "module",
"exports": { "exports": {
".": { ".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./src/index.ts" "import": "./dist/index.js"
} }
}, },
"dependencies": { "dependencies": {
"@uncaged/workflow-protocol": "workspace:*" "@uncaged/workflow-protocol": "workspace:^"
}, },
"devDependencies": { "devDependencies": {
"typescript": "^5.8.3" "typescript": "^5.8.3"
+1 -1
View File
@@ -86,7 +86,7 @@ for name, dirname in name_to_dir.items():
local_deps = set() local_deps = set()
for section in ('dependencies', 'devDependencies', 'peerDependencies'): for section in ('dependencies', 'devDependencies', 'peerDependencies'):
for dep, ver in data.get(section, {}).items(): for dep, ver in data.get(section, {}).items():
if dep.startswith('@uncaged/') and dep in name_to_dir and ver == 'workspace:*': if dep.startswith('@uncaged/') and dep in name_to_dir and ver.startswith('workspace:'):
local_deps.add(dep) local_deps.add(dep)
deps_graph[name] = local_deps deps_graph[name] = local_deps