chore: remove symlink dead code #271

Merged
xiaomo merged 1 commits from chore/remove-symlink-dead-code into main 2026-05-16 06:22:35 +00:00
Owner

What

删除 ensure-uncaged-workflow-symlink.ts 及所有相关引用。

Why

PR #270 后 bundle 完全自包含,不再有 external @uncaged/* import,symlink 机制成为死代码。

Changes

  • 删除 ensure-uncaged-workflow-symlink.ts
  • extract-bundle-exports.ts — 移除 symlink 调用,简化为单参数
  • types.ts — 移除 ExtractBundleExportsOptions
  • bundle/index.ts + register/src/index.ts — 移除 re-export
  • worker.ts — 移除 import 和调用
  • workflow-adapter.ts + add.ts — 适配新签名
  • bundle-import-env.ts — 清理过时注释

9 files changed, +4 / -77

Depends on: #270

## What 删除 `ensure-uncaged-workflow-symlink.ts` 及所有相关引用。 ## Why PR #270 后 bundle 完全自包含,不再有 external `@uncaged/*` import,symlink 机制成为死代码。 ## Changes - 删除 `ensure-uncaged-workflow-symlink.ts` - `extract-bundle-exports.ts` — 移除 symlink 调用,简化为单参数 - `types.ts` — 移除 `ExtractBundleExportsOptions` - `bundle/index.ts` + `register/src/index.ts` — 移除 re-export - `worker.ts` — 移除 import 和调用 - `workflow-adapter.ts` + `add.ts` — 适配新签名 - `bundle-import-env.ts` — 清理过时注释 9 files changed, +4 / -77 Depends on: #270
xiaoju added 1 commit 2026-05-16 06:21:54 +00:00
Now that bundles are fully self-contained (no external @uncaged/* imports),
the symlink mechanism is no longer needed.

- Delete ensure-uncaged-workflow-symlink.ts
- Remove ensureUncagedWorkflowSymlink from all imports/exports
- Remove ExtractBundleExportsOptions type (storageRoot param)
- Simplify extractBundleExports to single-arg signature
- Clean up stale comments
xiaomo approved these changes 2026-05-16 06:22:33 +00:00
xiaomo left a comment
Owner

LGTM 干净的死代码清理——symlink 机制随 #270 的 bundle 自包含策略已无存在意义,类型和参数一并清除,调用方全部适配。

LGTM ✅ 干净的死代码清理——symlink 机制随 #270 的 bundle 自包含策略已无存在意义,类型和参数一并清除,调用方全部适配。
xiaomo merged commit 131021b1a7 into main 2026-05-16 06:22:35 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#271