@akagilnc/pi-workflow-roles 0.1.2193 → 0.1.2203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/activation-ledger-git.js +12 -2
- package/dist/public-cli/main.js +194 -50
- package/package.json +1 -1
- package/src/activation-ledger-git.ts +33 -5
- package/src/public-cli/cli.ts +6 -7
- package/src/public-cli/invocation.ts +115 -11
- package/src/public-cli/option-definitions.ts +10 -9
- package/src/public-cli/taishi-run.ts +25 -1
- package/src/taishi-book-key.ts +66 -0
- package/src/taishi-cohort.ts +19 -7
- package/src/taishi-entry.ts +26 -21
- package/src/taishi-index.ts +53 -8
- package/src/taishi-ledger.ts +13 -3
package/src/taishi-ledger.ts
CHANGED
|
@@ -401,7 +401,9 @@ async function classifyScopedRun(input: {
|
|
|
401
401
|
/**
|
|
402
402
|
* Scan ledger home books/<book>/runs for runs in the issue scope.
|
|
403
403
|
* #399: scope = book × optional ticket.
|
|
404
|
-
* - bookKey set → that book only; whole-book when no ticket
|
|
404
|
+
* - bookKey set → that book only; whole-book when no ticket and no projectRoot;
|
|
405
|
+
* ticket filters alone; bookKey + projectRoot (cohort ensure, #412) narrows
|
|
406
|
+
* to that root inside the book.
|
|
405
407
|
* - projectRoot without bookKey (sweep/legacy): git-resolved → whole that book;
|
|
406
408
|
* non-git → path-narrow across books (fixture isolation).
|
|
407
409
|
* Damaged required sources become unreadable exclusions.
|
|
@@ -429,8 +431,16 @@ export async function scanTaishiIssueRuns(input: {
|
|
|
429
431
|
|
|
430
432
|
if (input.bookKey !== undefined && input.bookKey.trim() !== "") {
|
|
431
433
|
bookNames = [input.bookKey];
|
|
432
|
-
|
|
433
|
-
|
|
434
|
+
if (input.projectRoot !== undefined) {
|
|
435
|
+
// Cohort ensure conjunction (#412): the index join already selected the
|
|
436
|
+
// row — a cache-miss recompute must stay inside this root of this book,
|
|
437
|
+
// never inhale sibling roots' runs into one issue page.
|
|
438
|
+
wholeBook = false;
|
|
439
|
+
scopeRootIdentity = physicalPathIdentity(input.projectRoot);
|
|
440
|
+
} else {
|
|
441
|
+
// CLI book scope: whole book unless ticket filters. Never path-narrow.
|
|
442
|
+
wholeBook = true;
|
|
443
|
+
}
|
|
434
444
|
} else if (input.projectRoot !== undefined) {
|
|
435
445
|
const resolved = tryResolveBookKeyFromProjectRoot(input.projectRoot);
|
|
436
446
|
if (resolved !== undefined) {
|