Repository navigation
docs(spec): drive search workspace scope and --path-prefix [skip deploy] - #138
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使用者遇到的問題
wspc backend 已經支援一次搜整個 Workspace 與
path_prefix,但 published@wspc/cli0.14.0 的wspc drive search仍要求<id>、沒有--path-prefix,--cursor的說明也過時。使用者要跨 library 或限定資料夾只能自己打 HTTP。背景
tod_01M4A48GD4EMGXY7R3MAD1X7KEx-cli.command: "drive search",只差一個有positional: ["id"]。問題出在哪裡
codegen 以
x-cli.command當輸出檔名,兩個 op 都寫到src/generated/cli/drive/search.ts,後者蓋掉前者,而index.ts仍 import 兩個名字。對 live spec 乾跑sync-spec → generate → typecheck:Releaseworkflow 每次都先sync-spec再generate再typecheck,所以在修好之前任何一次 release 都會中止。修法
本 PR 只新增 spec 與 brief,不含實作:
docs/superpowers/specs/2026-10-07-drive-search-workspace-scope-brief.md:產品決策依據(已核准)。docs/superpowers/specs/2026-10-07-drive-search-workspace-scope-design.md:實作 spec。決定wspc drive search [id]以 optional positional 表達 scope,codegen 新增 Paired Command 規則合成同名 op,其他重名直接報錯。README.mdRoadmap 連結本 spec;CONTEXT.md新增Search Scope詞條。這個 PR 不修什麼
不改程式碼、不同步 spec、不 regenerate。實作由後續 ready-for-agent Todo 進行。Release 在實作 merge 前仍會失敗。
已知副作用
無。
測試
文件變更,
git diff --check通過。無 regression test 適用。未完成驗收
無(spec PR 本身無 acceptance;實作 acceptance 見 spec)。
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.