gsd-pi 2.78.1-dev.9d08d820b → 2.78.1-dev.a7b6e59b7

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 (101) hide show
  1. package/README.md +1 -0
  2. package/dist/cli-auto-routing.d.ts +1 -0
  3. package/dist/cli-auto-routing.js +5 -0
  4. package/dist/cli.js +5 -14
  5. package/dist/resources/.managed-resources-content-hash +1 -1
  6. package/dist/resources/extensions/google-search/index.js +2 -6
  7. package/dist/resources/extensions/gsd/auto/run-unit.js +23 -11
  8. package/dist/resources/extensions/gsd/auto-direct-dispatch.js +55 -21
  9. package/dist/resources/extensions/gsd/auto-prompts.js +6 -0
  10. package/dist/resources/extensions/gsd/auto-worktree.js +15 -0
  11. package/dist/resources/extensions/gsd/auto.js +25 -9
  12. package/dist/resources/extensions/gsd/bootstrap/register-hooks.js +12 -0
  13. package/dist/resources/extensions/gsd/bootstrap/system-context.js +11 -0
  14. package/dist/resources/extensions/gsd/commands/catalog.js +8 -1
  15. package/dist/resources/extensions/gsd/commands/handlers/core.js +1 -0
  16. package/dist/resources/extensions/gsd/commands/handlers/ops.js +8 -0
  17. package/dist/resources/extensions/gsd/commands-worktree.js +309 -0
  18. package/dist/resources/extensions/gsd/prompts/guided-discuss-milestone.md +2 -0
  19. package/dist/resources/extensions/gsd/prompts/parallel-research-slices.md +2 -0
  20. package/dist/resources/extensions/gsd/prompts/rewrite-docs.md +2 -0
  21. package/dist/resources/extensions/gsd/worktree-resolver.js +24 -0
  22. package/dist/resources/extensions/mcp-client/index.js +0 -6
  23. package/dist/resources/skills/lint/SKILL.md +4 -0
  24. package/dist/resources/skills/review/SKILL.md +4 -0
  25. package/dist/resources/skills/test/SKILL.md +3 -0
  26. package/dist/tsconfig.extensions.tsbuildinfo +1 -1
  27. package/dist/web/standalone/.next/BUILD_ID +1 -1
  28. package/dist/web/standalone/.next/app-path-routes-manifest.json +12 -12
  29. package/dist/web/standalone/.next/build-manifest.json +2 -2
  30. package/dist/web/standalone/.next/prerender-manifest.json +3 -3
  31. package/dist/web/standalone/.next/server/app/_global-error.html +1 -1
  32. package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
  33. package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  34. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  35. package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  36. package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  37. package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  38. package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  39. package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
  40. package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
  41. package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  42. package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  43. package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  44. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  45. package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  46. package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  47. package/dist/web/standalone/.next/server/app/index.html +1 -1
  48. package/dist/web/standalone/.next/server/app/index.rsc +1 -1
  49. package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  50. package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  51. package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  52. package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  53. package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  54. package/dist/web/standalone/.next/server/app-paths-manifest.json +12 -12
  55. package/dist/web/standalone/.next/server/middleware-build-manifest.js +1 -1
  56. package/dist/web/standalone/.next/server/middleware-manifest.json +5 -5
  57. package/dist/web/standalone/.next/server/pages/404.html +1 -1
  58. package/dist/web/standalone/.next/server/pages/500.html +1 -1
  59. package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
  60. package/dist/welcome-screen.js +27 -1
  61. package/package.json +1 -1
  62. package/packages/pi-coding-agent/dist/core/agent-session-abort-order.test.js +278 -0
  63. package/packages/pi-coding-agent/dist/core/agent-session-abort-order.test.js.map +1 -1
  64. package/packages/pi-coding-agent/dist/core/agent-session.d.ts +7 -0
  65. package/packages/pi-coding-agent/dist/core/agent-session.d.ts.map +1 -1
  66. package/packages/pi-coding-agent/dist/core/agent-session.js +125 -55
  67. package/packages/pi-coding-agent/dist/core/agent-session.js.map +1 -1
  68. package/packages/pi-coding-agent/src/core/agent-session-abort-order.test.ts +319 -0
  69. package/packages/pi-coding-agent/src/core/agent-session.ts +128 -59
  70. package/packages/pi-coding-agent/tsconfig.tsbuildinfo +1 -1
  71. package/src/resources/extensions/google-search/index.ts +2 -9
  72. package/src/resources/extensions/gsd/auto/run-unit.ts +23 -11
  73. package/src/resources/extensions/gsd/auto-direct-dispatch.ts +60 -24
  74. package/src/resources/extensions/gsd/auto-prompts.ts +6 -0
  75. package/src/resources/extensions/gsd/auto-worktree.ts +15 -0
  76. package/src/resources/extensions/gsd/auto.ts +23 -6
  77. package/src/resources/extensions/gsd/bootstrap/register-hooks.ts +13 -0
  78. package/src/resources/extensions/gsd/bootstrap/system-context.ts +11 -0
  79. package/src/resources/extensions/gsd/commands/catalog.ts +8 -1
  80. package/src/resources/extensions/gsd/commands/handlers/core.ts +1 -0
  81. package/src/resources/extensions/gsd/commands/handlers/ops.ts +10 -0
  82. package/src/resources/extensions/gsd/commands-worktree.ts +383 -0
  83. package/src/resources/extensions/gsd/prompts/guided-discuss-milestone.md +2 -0
  84. package/src/resources/extensions/gsd/prompts/parallel-research-slices.md +2 -0
  85. package/src/resources/extensions/gsd/prompts/rewrite-docs.md +2 -0
  86. package/src/resources/extensions/gsd/tests/auto-loop.test.ts +1 -0
  87. package/src/resources/extensions/gsd/tests/bundled-skill-triggers.test.ts +50 -27
  88. package/src/resources/extensions/gsd/tests/commands-worktree-clean.test.ts +48 -0
  89. package/src/resources/extensions/gsd/tests/google-search-stub.test.ts +25 -65
  90. package/src/resources/extensions/gsd/tests/safety-harness-false-positives.test.ts +34 -0
  91. package/src/resources/extensions/gsd/tests/stash-pop-gsd-conflict.test.ts +8 -2
  92. package/src/resources/extensions/gsd/tests/stash-queued-context-files.test.ts +12 -6
  93. package/src/resources/extensions/gsd/tests/worktree-path-injection.test.ts +235 -0
  94. package/src/resources/extensions/gsd/tests/worktree-resolver.test.ts +85 -0
  95. package/src/resources/extensions/gsd/worktree-resolver.ts +24 -0
  96. package/src/resources/extensions/mcp-client/index.ts +0 -7
  97. package/src/resources/skills/lint/SKILL.md +4 -0
  98. package/src/resources/skills/review/SKILL.md +4 -0
  99. package/src/resources/skills/test/SKILL.md +3 -0
  100. /package/dist/web/standalone/.next/static/{-Ukk6_YxRd4GY4iUOnRUE → GlYncvckBGG33CSoJaSnB}/_buildManifest.js +0 -0
  101. /package/dist/web/standalone/.next/static/{-Ukk6_YxRd4GY4iUOnRUE → GlYncvckBGG33CSoJaSnB}/_ssgManifest.js +0 -0
@@ -23,6 +23,10 @@ The reviewer reads both the diff and the surrounding source files to understand
23
23
  The purpose is to review and report findings. Making changes during review conflates the reviewer and author roles. Present findings and let the user decide what to act on.
24
24
  </analysis_only_rule>
25
25
 
26
+ <working_directory_awareness>
27
+ **Before running any `git` command:** check whether your dispatch context specifies a working directory (look for "Working directory:" in your initial prompt). If it does and `pwd` does not match it, prefix every git invocation with `-C <that path>` (e.g. `git -C /path/to/worktree diff --cached`). Reviewing the wrong directory's diff is a silent failure mode — the review will look correct but cover the wrong code.
28
+ </working_directory_awareness>
29
+
26
30
  <quick_start>
27
31
 
28
32
  <determine_review_scope>
@@ -151,6 +151,9 @@ Failures:
151
151
  **Suggest what to test when no arguments are given.**
152
152
 
153
153
  **A. Check recent changes:**
154
+
155
+ > **Working directory check:** if your dispatch context specifies a working directory and `pwd` does not match it, prefix the git commands below with `-C <that path>` (e.g. `git -C /path/to/worktree diff --name-only HEAD~5`).
156
+
154
157
  - Run `git diff --name-only HEAD~5` to find recently changed files
155
158
  - Run `git diff --name-only --cached` for staged files
156
159
  - Filter to source files (exclude configs, docs, lockfiles)