Compare commits

..

2 Commits

Author SHA1 Message Date
xingyue a1bc01ed85 chore: publish v0.3.24
小橘 <xiaoju@shazhou.work>
2026-05-13 20:36:43 +08:00
xingyue d3b5d66208 chore: publish v0.3.22
小橘 <xiaoju@shazhou.work>
2026-05-13 17:56:04 +08:00
39 changed files with 109 additions and 273 deletions
-8
View File
@@ -1,8 +0,0 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
-17
View File
@@ -1,17 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [
[
"@uncaged/*"
]
],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"@uncaged/workflow-dashboard"
]
}
+31
View File
@@ -229,6 +229,37 @@ const mod = await import(bundlePath);
Test files (`__tests__/**`) are exempt.
## Package Build & Distribution
每个包用 `tsc` 编译出 `.js` + `.d.ts``dist/`,**发布 `dist`,不发 `src`,不 bundle**。
### 规则
-`tsc --build` 编译,保留目录结构(tree-shaking 友好)
-`package.json``exports` 指向 `dist/`(编译产物),不指向 `src/`
- ✅ 消费端不受 tsconfig 差异影响
- ❌ 不要用 rollup/esbuild 打成单文件
-`exports` 中不要出现 `./src/`
### package.json exports 格式
```json
{
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
}
}
```
多入口同理,所有路径指向 `dist/`
### 例外
- `workflow-gateway`(Cloudflare Workers)和 `workflow-dashboard`(私有 app)不发 npm,exports 可指向 `src/`
## Toolchain
| Tool | Purpose |
+1 -5
View File
@@ -14,14 +14,10 @@
"link:consume": "./scripts/link-all.sh --consume",
"link:unlink": "./scripts/link-all.sh --unlink",
"publish:gitea": "./scripts/publish.sh patch",
"publish:gitea:dry": "./scripts/publish.sh --dry-run patch",
"changeset": "bunx changeset",
"version": "bunx changeset version",
"release": "bunx changeset publish --no-git-tag"
"publish:gitea:dry": "./scripts/publish.sh --dry-run patch"
},
"devDependencies": {
"@biomejs/biome": "^2.4.14",
"@changesets/cli": "^2.31.0",
"@types/node": "^25.7.0",
"@types/xxhashjs": "^0.2.4",
"bun-types": "^1.3.13"
-18
View File
@@ -1,18 +0,0 @@
# @uncaged/cli-workflow
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-cas@0.4.0
- @uncaged/workflow-execute@0.4.0
- @uncaged/workflow-gateway@0.4.0
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-register@0.4.0
- @uncaged/workflow-runtime@0.4.0
- @uncaged/workflow-util@0.4.0
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/cli-workflow",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"src",
"dist",
@@ -1,16 +0,0 @@
# @uncaged/workflow-agent-cursor
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-reactor@0.4.0
- @uncaged/workflow-runtime@0.4.0
- @uncaged/workflow-util-agent@0.4.0
- @uncaged/workflow-util@0.4.0
+2 -2
View File
@@ -1,11 +1,12 @@
{
"name": "@uncaged/workflow-agent-cursor",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
"test": "bun test"
@@ -20,7 +21,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
@@ -1,13 +0,0 @@
# @uncaged/workflow-agent-hermes
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-runtime@0.4.0
- @uncaged/workflow-util-agent@0.4.0
+2 -2
View File
@@ -1,11 +1,12 @@
{
"name": "@uncaged/workflow-agent-hermes",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
"test": "bun test"
@@ -16,7 +17,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-13
View File
@@ -1,13 +0,0 @@
# @uncaged/workflow-agent-llm
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-runtime@0.4.0
- @uncaged/workflow-util-agent@0.4.0
+2 -2
View File
@@ -1,11 +1,12 @@
{
"name": "@uncaged/workflow-agent-llm",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
"test": "bun test"
@@ -19,7 +20,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
@@ -1,14 +0,0 @@
# @uncaged/workflow-agent-react
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-reactor@0.4.0
- @uncaged/workflow-util-agent@0.4.0
+1 -3
View File
@@ -1,15 +1,13 @@
{
"name": "@uncaged/workflow-agent-react",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"types": "src/index.ts",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-13
View File
@@ -1,13 +0,0 @@
# @uncaged/workflow-cas
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-util@0.4.0
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-cas",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -11,7 +11,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-17
View File
@@ -1,17 +0,0 @@
# @uncaged/workflow-execute
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-cas@0.4.0
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-reactor@0.4.0
- @uncaged/workflow-register@0.4.0
- @uncaged/workflow-runtime@0.4.0
- @uncaged/workflow-util@0.4.0
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-execute",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
@@ -1,6 +1,11 @@
import { fileURLToPath } from "node:url";
/** Absolute path to `worker-host.ts` for spawning bundle worker processes. */
/**
* Absolute path to the worker script for spawning bundle worker processes.
*
* Uses `.js` extension so it resolves correctly whether running from
* src/ (bun handles .js → .ts) or dist/ (compiled .js exists).
*/
export function getWorkerHostScriptPath(): string {
return fileURLToPath(new URL("./worker.ts", import.meta.url));
return fileURLToPath(new URL("./worker.js", import.meta.url));
}
-7
View File
@@ -1,7 +0,0 @@
# @uncaged/workflow-gateway
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-gateway",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
-7
View File
@@ -1,7 +0,0 @@
# @uncaged/workflow-protocol
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
+1 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-protocol",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,12 +8,10 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./moderator-table.js": {
"bun": "./src/moderator-table.ts",
"types": "./dist/moderator-table.d.ts",
"import": "./dist/moderator-table.js"
}
-12
View File
@@ -1,12 +0,0 @@
# @uncaged/workflow-reactor
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-reactor",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-13
View File
@@ -1,13 +0,0 @@
# @uncaged/workflow-register
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
- @uncaged/workflow-util@0.4.0
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-register",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-13
View File
@@ -1,13 +0,0 @@
# @uncaged/workflow-runtime
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-cas@0.4.0
- @uncaged/workflow-protocol@0.4.0
+2 -2
View File
@@ -1,11 +1,12 @@
{
"name": "@uncaged/workflow-runtime",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
"test": "bun test"
@@ -22,7 +23,6 @@
},
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
@@ -1,13 +0,0 @@
# @uncaged/workflow-template-develop
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-register@0.4.0
- @uncaged/workflow-runtime@0.4.0
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-template-develop",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
@@ -1,13 +0,0 @@
# @uncaged/workflow-template-solve-issue
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-register@0.4.0
- @uncaged/workflow-runtime@0.4.0
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-template-solve-issue",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-13
View File
@@ -1,13 +0,0 @@
# @uncaged/workflow-util-agent
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-cas@0.4.0
- @uncaged/workflow-runtime@0.4.0
+1 -3
View File
@@ -1,15 +1,13 @@
{
"name": "@uncaged/workflow-util-agent",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
],
"type": "module",
"types": "src/index.ts",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
-12
View File
@@ -1,12 +0,0 @@
# @uncaged/workflow-util
## 0.4.0
### Minor Changes
- Fix package exports for published packages and adopt changesets for version management.
### Patch Changes
- Updated dependencies
- @uncaged/workflow-protocol@0.4.0
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@uncaged/workflow-util",
"version": "0.4.0",
"version": "0.3.24",
"files": [
"dist",
"package.json"
@@ -8,7 +8,6 @@
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
+49
View File
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
# Link / unlink all @uncaged/* packages from the workflow monorepo.
#
# Usage:
# ./scripts/link-all.sh # Register all packages (run from monorepo root)
# ./scripts/link-all.sh --consume # Link all packages into CWD's project
# ./scripts/link-all.sh --unlink # Unregister all packages and restore CWD's deps
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
MONOREPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
# Iterate package dirs, calling callback(dir, name) for each
each_pkg() {
local cb="$1"
for dir in "$MONOREPO_ROOT"/packages/*/; do
[[ -f "$dir/package.json" ]] || continue
local name
name=$(grep -m1 '"name"' "$dir/package.json" | sed 's/.*: *"\(.*\)".*/\1/')
"$cb" "$dir" "$name"
done
}
do_register() { printf " register %s\n" "$2"; (cd "$1" && bun link 2>&1) > /dev/null; }
do_consume() { printf " link %s\n" "$2"; (bun link "$2" 2>&1) > /dev/null; }
do_unlink() { printf " unlink %s\n" "$2"; (cd "$1" && bun unlink 2>&1) > /dev/null || true; }
case "${1:-}" in
--consume)
each_pkg do_consume
echo "✅ All @uncaged/* packages linked into $(pwd)"
echo " ⚠️ Do NOT run 'bun install' after this — it will overwrite the links"
echo " To restore: $0 --unlink"
;;
--unlink)
each_pkg do_unlink
if [[ -f "package.json" ]]; then
echo " reinstalling deps..."
bun install 2>&1 > /dev/null || true
fi
echo "✅ All @uncaged/* packages unlinked, deps restored"
;;
*)
each_pkg do_register
echo "✅ All @uncaged/* packages registered"
echo " cd <project> && $0 --consume"
;;
esac
+1 -1
View File
@@ -86,7 +86,7 @@ for name, dirname in name_to_dir.items():
local_deps = set()
for section in ('dependencies', 'devDependencies', 'peerDependencies'):
for dep, ver in data.get(section, {}).items():
if dep.startswith('@uncaged/') and dep in name_to_dir and ver.startswith('workspace:'):
if dep.startswith('@uncaged/') and dep in name_to_dir and ver == 'workspace:*':
local_deps.add(dep)
deps_graph[name] = local_deps