LIFEOS/TOOLS imports hooks/lib in 55 files, against the rule in Paths.ts, so those tools cannot load without the hooks tree
Maintainer thường phản hồi trong vòng 5 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 54/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, typescript
- Lĩnh vực
- backend, developer-experience
Hướng nghiên cứu
Read LIFEOS/TOOLS/Paths.ts and the imports in DAGrowth.ts, MemoryStatus.ts, and WorkSweep.ts, then inspect hooks/lib/identity.ts, work-config.ts, and lane-rules.ts. Start by checking the reported imports and the --no-hooks install path; verify the proposed move and re-exports work with the reproduction command. Done means TOOLS loads when hooks/ is absent and the Paths.ts dependency rule holds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
LIFEOS/TOOLS/Paths.ts:8-10 says TOOLS never depends on the hooks tree, because a TOOLS file
importing hooks/lib broke fresh installs between the DeployCore and InstallHooks steps
(#1974, #1968, #1955). On 94bd8f25, 55 files under LIFEOS/TOOLS import from hooks/lib, most
often identity.ts and work-config.ts. With LIFEOS/TOOLS on disk and hooks/ not there,
DAGrowth.ts fails to load. InstallAll.ts:216 offers --no-hooks for a user who declines hooks;
from reading the installer, that leaves the same state for good (not run end to end).
Where
- LIFEOS/TOOLS/Paths.ts:10 (the rule)
- LIFEOS/TOOLS/DAGrowth.ts:18, MemoryStatus.ts:27, WorkSweep.ts:43,46 (WorkSweep.ts:239 restates the rule)
- hooks/lib/work-config.ts and hooks/lib/lane-rules.ts have no importer inside hooks/: 20 and 9 importers outside it
Repro
git grep -lE "from ['\"](\.\./)+hooks/lib/" HEAD -- LifeOS/install/LIFEOS/TOOLS | wc -l # 55; Paths.ts implies 0
mkdir -p t/LIFEOS && cp -r LifeOS/install/LIFEOS/TOOLS t/LIFEOS/ && cd t && bun LIFEOS/TOOLS/DAGrowth.ts --help
# error: Cannot find module '../../hooks/lib/identity'
Fix
Root cause: the modules TOOLS needs from the hooks tree (identity, work-config, lane-rules) still
live in hooks/lib/, so the rule in Paths.ts holds only for the one resolver that was moved.
A general fix is to move them into LIFEOS/TOOLS/, as was done for Paths.ts, and leave
hooks/lib/* as one-line re-exports: the install-order break cannot come back, and work-config
and lane-rules then sit next to the code that uses them.
- Ngôn ngữ chính
- TypeScript
- Star
- 19.9k
- Fork
- 2.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của danielmiessler/LifeOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
danielmiessler/LifeOS#2894 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
danielmiessler/LifeOS#2891 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
danielmiessler/LifeOS#2888 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
danielmiessler/LifeOS#2886 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
danielmiessler/LifeOS#2848 ·
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của danielmiessler/LifeOS
Issue tương tự
-
[功能请求] 设置选项语言调整Đang mở功能请求
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
antithesishq/bombadil#473 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
The structured output reference promises null results for refusals that carry validation detailsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
mattermost/mattermost-mobile#10358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
LucasSantana-Dev/Lucky#3257 ·
Maintainer thường phản hồi trong vòng 1 ngày