@deftai/directive-core 0.79.1 → 0.79.3

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.
Files changed (76) hide show
  1. package/dist/cache/fetch.js +14 -4
  2. package/dist/capacity/backfill.js +4 -2
  3. package/dist/category-b-namespace/index.js +31 -6
  4. package/dist/check/orchestrator.d.ts +4 -0
  5. package/dist/check/orchestrator.js +9 -1
  6. package/dist/content-contracts/skills/skill-frontmatter.js +6 -2
  7. package/dist/eval/health.js +8 -1
  8. package/dist/eval/run.js +2 -0
  9. package/dist/fs/projection-containment.d.ts +11 -0
  10. package/dist/fs/projection-containment.js +62 -1
  11. package/dist/hooks/dispatcher.d.ts +1 -1
  12. package/dist/hooks/dispatcher.js +66 -7
  13. package/dist/init-deposit/hygiene.js +3 -0
  14. package/dist/intake/reconcile-issues.d.ts +1 -1
  15. package/dist/intake/reconcile-issues.js +25 -2
  16. package/dist/issue-sync/sync-from-xbrief-cli.d.ts +1 -0
  17. package/dist/issue-sync/sync-from-xbrief-cli.js +3 -0
  18. package/dist/issue-sync/sync-from-xbrief.d.ts +4 -0
  19. package/dist/issue-sync/sync-from-xbrief.js +12 -0
  20. package/dist/lifecycle/event.d.ts +15 -0
  21. package/dist/lifecycle/event.js +163 -0
  22. package/dist/lifecycle/index.d.ts +1 -0
  23. package/dist/lifecycle/index.js +1 -0
  24. package/dist/orchestration/verify-judgment-gates.js +18 -2
  25. package/dist/platform/resolve-version.d.ts +2 -6
  26. package/dist/platform/resolve-version.js +3 -129
  27. package/dist/pr-merge-readiness/compute.d.ts +2 -1
  28. package/dist/pr-merge-readiness/compute.js +23 -6
  29. package/dist/pr-merge-readiness/evaluate.d.ts +2 -1
  30. package/dist/pr-merge-readiness/evaluate.js +46 -31
  31. package/dist/pr-merge-readiness/gh.js +13 -5
  32. package/dist/pr-merge-readiness/greptile-inline.d.ts +27 -0
  33. package/dist/pr-merge-readiness/greptile-inline.js +239 -0
  34. package/dist/pr-merge-readiness/index.d.ts +1 -0
  35. package/dist/pr-merge-readiness/index.js +1 -0
  36. package/dist/pr-merge-readiness/mergeability.d.ts +2 -1
  37. package/dist/pr-merge-readiness/mergeability.js +7 -1
  38. package/dist/pr-merge-readiness/test-gh-fixtures.helpers.d.ts +18 -0
  39. package/dist/pr-merge-readiness/test-gh-fixtures.helpers.js +76 -0
  40. package/dist/pr-monitor/monitor.js +10 -1
  41. package/dist/pr-watch/constants.d.ts +5 -0
  42. package/dist/pr-watch/constants.js +27 -0
  43. package/dist/pr-watch/index.d.ts +1 -1
  44. package/dist/pr-watch/index.js +1 -1
  45. package/dist/pr-watch/main.d.ts +3 -0
  46. package/dist/pr-watch/main.js +29 -3
  47. package/dist/release/constants.d.ts +5 -0
  48. package/dist/release/constants.js +14 -2
  49. package/dist/release/flags.js +16 -0
  50. package/dist/release/main.js +7 -0
  51. package/dist/release/pipeline.js +7 -3
  52. package/dist/release/preflight.js +8 -1
  53. package/dist/release/skip-ci-incident.d.ts +22 -0
  54. package/dist/release/skip-ci-incident.js +68 -0
  55. package/dist/release/types.d.ts +2 -0
  56. package/dist/release/version.js +68 -32
  57. package/dist/release-e2e/entrypoint-worker.js +1 -0
  58. package/dist/release-e2e/entrypoint.js +13 -0
  59. package/dist/review-monitor/constants.d.ts +14 -0
  60. package/dist/review-monitor/constants.js +55 -0
  61. package/dist/review-monitor/index.d.ts +5 -0
  62. package/dist/review-monitor/index.js +5 -0
  63. package/dist/review-monitor/record.d.ts +50 -0
  64. package/dist/review-monitor/record.js +178 -0
  65. package/dist/review-monitor/tier-detection.d.ts +15 -0
  66. package/dist/review-monitor/tier-detection.js +61 -0
  67. package/dist/review-monitor/verify.d.ts +32 -0
  68. package/dist/review-monitor/verify.js +171 -0
  69. package/dist/scope/demote.js +20 -0
  70. package/dist/swarm/worktrees.d.ts +3 -0
  71. package/dist/swarm/worktrees.js +18 -2
  72. package/dist/task-surface/index.js +3 -2
  73. package/dist/vitest-runner/win32-coverage-tmp-setup.d.ts +16 -8
  74. package/dist/vitest-runner/win32-coverage-tmp-setup.js +41 -14
  75. package/dist/xbrief-migrate/migration-containment.js +9 -25
  76. package/package.json +7 -3
@@ -1,37 +1,21 @@
1
- import { lstatSync, readdirSync } from "node:fs";
2
- import { join } from "node:path";
3
- import { assertProjectionContained } from "../fs/projection-containment.js";
1
+ import { assertProjectionContained, ProjectionContainmentError, walkDirectoryRejectSymlinks, } from "../fs/projection-containment.js";
4
2
  /**
5
3
  * Refuse migrate:xbrief when legacy `vbrief/` (or any traversed entry) escapes
6
4
  * the project tree via symlinks (#2601).
7
5
  */
8
6
  export function assertMigrationSourceSafe(projectRoot, legacyDir) {
9
7
  assertProjectionContained(projectRoot, legacyDir);
10
- walkMigrationTreeRejectSymlinks(legacyDir);
11
- }
12
- function walkMigrationTreeRejectSymlinks(root) {
13
- let entries;
14
8
  try {
15
- entries = readdirSync(root, { withFileTypes: true });
16
- }
17
- catch {
18
- return;
9
+ walkDirectoryRejectSymlinks(legacyDir);
19
10
  }
20
- for (const entry of entries) {
21
- const full = join(root, entry.name);
22
- let info;
23
- try {
24
- info = lstatSync(full);
25
- }
26
- catch {
27
- continue;
28
- }
29
- if (info.isSymbolicLink()) {
30
- throw new Error(`refusing to migrate: symlink on migration path: ${full}`);
31
- }
32
- if (info.isDirectory()) {
33
- walkMigrationTreeRejectSymlinks(full);
11
+ catch (err) {
12
+ if (err instanceof ProjectionContainmentError) {
13
+ const nested = err.message.match(/symlink on traversal path: (.+)$/);
14
+ if (nested) {
15
+ throw new Error(`refusing to migrate: symlink on migration path: ${nested[1]}`);
16
+ }
34
17
  }
18
+ throw err;
35
19
  }
36
20
  }
37
21
  //# sourceMappingURL=migration-containment.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive-core",
3
- "version": "0.79.1",
3
+ "version": "0.79.3",
4
4
  "description": "TypeScript engine core for the Directive framework.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -242,6 +242,10 @@
242
242
  "types": "./dist/swarm/index.d.ts",
243
243
  "default": "./dist/swarm/index.js"
244
244
  },
245
+ "./review-monitor": {
246
+ "types": "./dist/review-monitor/index.d.ts",
247
+ "default": "./dist/review-monitor/index.js"
248
+ },
245
249
  "./platform": {
246
250
  "types": "./dist/platform/index.d.ts",
247
251
  "default": "./dist/platform/index.js"
@@ -305,8 +309,8 @@
305
309
  "provenance": true
306
310
  },
307
311
  "dependencies": {
308
- "@deftai/directive-content": "^0.79.1",
309
- "@deftai/directive-types": "^0.79.1",
312
+ "@deftai/directive-content": "^0.79.3",
313
+ "@deftai/directive-types": "^0.79.3",
310
314
  "archiver": "^8.0.0"
311
315
  },
312
316
  "scripts": {