panopticon-cli 0.5.1 → 0.5.4

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 (120) hide show
  1. package/dist/{agents-5OPQKM5K.js → agents-HNMF52RM.js} +7 -6
  2. package/dist/{chunk-F5555J3A.js → chunk-4HST45MO.js} +13 -27
  3. package/dist/chunk-4HST45MO.js.map +1 -0
  4. package/dist/{chunk-YLPSQAM2.js → chunk-565HZ6VV.js} +2 -2
  5. package/dist/chunk-6N2KBSJA.js +452 -0
  6. package/dist/chunk-6N2KBSJA.js.map +1 -0
  7. package/dist/{chunk-4YSYJ4HM.js → chunk-DFNVHK3N.js} +2 -2
  8. package/dist/{chunk-7SN4L4PH.js → chunk-HOGYHJ2G.js} +2 -2
  9. package/dist/{chunk-FTCPTHIJ.js → chunk-HRU7S4TA.js} +24 -7
  10. package/dist/chunk-HRU7S4TA.js.map +1 -0
  11. package/dist/{chunk-OWHXCGVO.js → chunk-ID4OYXVH.js} +378 -101
  12. package/dist/chunk-ID4OYXVH.js.map +1 -0
  13. package/dist/{chunk-NLQRED36.js → chunk-KBHRXV5T.js} +3 -3
  14. package/dist/chunk-KBHRXV5T.js.map +1 -0
  15. package/dist/{chunk-VHKSS7QX.js → chunk-KY2E2Q3T.js} +25 -19
  16. package/dist/chunk-KY2E2Q3T.js.map +1 -0
  17. package/dist/{chunk-CWELWPWQ.js → chunk-MOPGR3CL.js} +1 -1
  18. package/dist/chunk-MOPGR3CL.js.map +1 -0
  19. package/dist/{chunk-2V4NF7J2.js → chunk-RLZQB7HS.js} +2 -2
  20. package/dist/chunk-RLZQB7HS.js.map +1 -0
  21. package/dist/{chunk-76F6DSVS.js → chunk-T7BBPDEJ.js} +11 -7
  22. package/dist/chunk-T7BBPDEJ.js.map +1 -0
  23. package/dist/chunk-USYP2SBE.js +317 -0
  24. package/dist/chunk-USYP2SBE.js.map +1 -0
  25. package/dist/{chunk-JM6V62LT.js → chunk-ZDNQFWR5.js} +2 -2
  26. package/dist/{chunk-JM6V62LT.js.map → chunk-ZDNQFWR5.js.map} +1 -1
  27. package/dist/{chunk-HJSM6E6U.js → chunk-ZP6EWSZV.js} +29 -322
  28. package/dist/chunk-ZP6EWSZV.js.map +1 -0
  29. package/dist/{chunk-PELXV435.js → chunk-ZTYHZMEC.js} +2 -2
  30. package/dist/chunk-ZTYHZMEC.js.map +1 -0
  31. package/dist/cli/index.js +1390 -777
  32. package/dist/cli/index.js.map +1 -1
  33. package/dist/config-yaml-OVZLKFMA.js +18 -0
  34. package/dist/dashboard/prompts/merge-agent.md +7 -5
  35. package/dist/dashboard/prompts/review-agent.md +12 -1
  36. package/dist/dashboard/prompts/test-agent.md +3 -1
  37. package/dist/dashboard/public/assets/index-DA6pnizT.js +767 -0
  38. package/dist/dashboard/public/assets/index-DSvt5pPn.css +32 -0
  39. package/dist/dashboard/public/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  40. package/dist/dashboard/public/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  41. package/dist/dashboard/public/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  42. package/dist/dashboard/public/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  43. package/dist/dashboard/public/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  44. package/dist/dashboard/public/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  45. package/dist/dashboard/public/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  46. package/dist/dashboard/public/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  47. package/dist/dashboard/public/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  48. package/dist/dashboard/public/assets/space-grotesk-latin-400-normal-BnQMeOim.woff +0 -0
  49. package/dist/dashboard/public/assets/space-grotesk-latin-400-normal-CJ-V5oYT.woff2 +0 -0
  50. package/dist/dashboard/public/assets/space-grotesk-latin-600-normal-BflQw4A9.woff +0 -0
  51. package/dist/dashboard/public/assets/space-grotesk-latin-600-normal-DjKNqYRj.woff2 +0 -0
  52. package/dist/dashboard/public/assets/space-grotesk-latin-700-normal-CwsQ-cCU.woff +0 -0
  53. package/dist/dashboard/public/assets/space-grotesk-latin-700-normal-RjhwGPKo.woff2 +0 -0
  54. package/dist/dashboard/public/assets/space-grotesk-latin-ext-400-normal-CfP_5XZW.woff2 +0 -0
  55. package/dist/dashboard/public/assets/space-grotesk-latin-ext-400-normal-DRPE3kg4.woff +0 -0
  56. package/dist/dashboard/public/assets/space-grotesk-latin-ext-600-normal-DxxdqCpr.woff2 +0 -0
  57. package/dist/dashboard/public/assets/space-grotesk-latin-ext-600-normal-VcznFIpX.woff +0 -0
  58. package/dist/dashboard/public/assets/space-grotesk-latin-ext-700-normal-BQnZhY3m.woff2 +0 -0
  59. package/dist/dashboard/public/assets/space-grotesk-latin-ext-700-normal-HVCqSBdx.woff +0 -0
  60. package/dist/dashboard/public/assets/space-grotesk-vietnamese-400-normal-B7xT_GF5.woff2 +0 -0
  61. package/dist/dashboard/public/assets/space-grotesk-vietnamese-400-normal-BIWiOVfw.woff +0 -0
  62. package/dist/dashboard/public/assets/space-grotesk-vietnamese-600-normal-D6zpsUhD.woff +0 -0
  63. package/dist/dashboard/public/assets/space-grotesk-vietnamese-600-normal-DUi7WF5p.woff2 +0 -0
  64. package/dist/dashboard/public/assets/space-grotesk-vietnamese-700-normal-DMty7AZE.woff2 +0 -0
  65. package/dist/dashboard/public/assets/space-grotesk-vietnamese-700-normal-Duxec5Rn.woff +0 -0
  66. package/dist/dashboard/public/index.html +5 -3
  67. package/dist/dashboard/server.js +4728 -2767
  68. package/dist/{feedback-writer-VRMMWWTW.js → feedback-writer-T43PI5S2.js} +2 -2
  69. package/dist/{hume-WMAUBBV2.js → hume-CKJJ3OUU.js} +3 -3
  70. package/dist/index.js +4 -3
  71. package/dist/index.js.map +1 -1
  72. package/dist/{projects-CFX3RTDL.js → projects-KVM3MN3Y.js} +2 -2
  73. package/dist/{remote-agents-TFSMW7GN.js → remote-agents-ULPD6C5U.js} +3 -3
  74. package/dist/{remote-workspace-7FPGF2RM.js → remote-workspace-XX6ARE6I.js} +3 -3
  75. package/dist/{review-status-TDPSOU5J.js → review-status-XKUKZF6J.js} +3 -2
  76. package/dist/{specialist-context-WGUUYDWY.js → specialist-context-C66TEMXS.js} +6 -5
  77. package/dist/{specialist-context-WGUUYDWY.js.map → specialist-context-C66TEMXS.js.map} +1 -1
  78. package/dist/{specialist-logs-XJB5TCKJ.js → specialist-logs-CJKXM3SR.js} +6 -5
  79. package/dist/{specialists-5LBRHYFA.js → specialists-NXYD4Z62.js} +6 -5
  80. package/dist/{traefik-WFMQX2LY.js → traefik-5GL3Q7DJ.js} +3 -3
  81. package/dist/{tunnel-W2GZBLEV.js → tunnel-BKC7KLBX.js} +3 -3
  82. package/dist/{workspace-manager-E434Z45T.js → workspace-manager-ALBR62AS.js} +5 -5
  83. package/dist/workspace-manager-ALBR62AS.js.map +1 -0
  84. package/package.json +1 -1
  85. package/scripts/record-cost-event.js +8424 -42
  86. package/scripts/recover-costs-deep.mjs +209 -0
  87. package/scripts/recover-costs-proportional.mjs +206 -0
  88. package/scripts/recover-costs.mjs +169 -0
  89. package/scripts/work-agent-stop-hook +221 -24
  90. package/dist/chunk-2V4NF7J2.js.map +0 -1
  91. package/dist/chunk-76F6DSVS.js.map +0 -1
  92. package/dist/chunk-CWELWPWQ.js.map +0 -1
  93. package/dist/chunk-F5555J3A.js.map +0 -1
  94. package/dist/chunk-FTCPTHIJ.js.map +0 -1
  95. package/dist/chunk-HJSM6E6U.js.map +0 -1
  96. package/dist/chunk-NLQRED36.js.map +0 -1
  97. package/dist/chunk-OWHXCGVO.js.map +0 -1
  98. package/dist/chunk-PELXV435.js.map +0 -1
  99. package/dist/chunk-VHKSS7QX.js.map +0 -1
  100. package/dist/chunk-YGJ54GW2.js +0 -96
  101. package/dist/chunk-YGJ54GW2.js.map +0 -1
  102. package/dist/dashboard/public/assets/index-Ce6q21Fm.js +0 -743
  103. package/dist/dashboard/public/assets/index-NzpI0ItZ.css +0 -32
  104. package/dist/git-utils-I2UDKNZH.js +0 -131
  105. package/dist/git-utils-I2UDKNZH.js.map +0 -1
  106. /package/dist/{agents-5OPQKM5K.js.map → agents-HNMF52RM.js.map} +0 -0
  107. /package/dist/{chunk-YLPSQAM2.js.map → chunk-565HZ6VV.js.map} +0 -0
  108. /package/dist/{chunk-4YSYJ4HM.js.map → chunk-DFNVHK3N.js.map} +0 -0
  109. /package/dist/{chunk-7SN4L4PH.js.map → chunk-HOGYHJ2G.js.map} +0 -0
  110. /package/dist/{hume-WMAUBBV2.js.map → config-yaml-OVZLKFMA.js.map} +0 -0
  111. /package/dist/{feedback-writer-VRMMWWTW.js.map → feedback-writer-T43PI5S2.js.map} +0 -0
  112. /package/dist/{projects-CFX3RTDL.js.map → hume-CKJJ3OUU.js.map} +0 -0
  113. /package/dist/{remote-agents-TFSMW7GN.js.map → projects-KVM3MN3Y.js.map} +0 -0
  114. /package/dist/{review-status-TDPSOU5J.js.map → remote-agents-ULPD6C5U.js.map} +0 -0
  115. /package/dist/{remote-workspace-7FPGF2RM.js.map → remote-workspace-XX6ARE6I.js.map} +0 -0
  116. /package/dist/{specialist-logs-XJB5TCKJ.js.map → review-status-XKUKZF6J.js.map} +0 -0
  117. /package/dist/{specialists-5LBRHYFA.js.map → specialist-logs-CJKXM3SR.js.map} +0 -0
  118. /package/dist/{traefik-WFMQX2LY.js.map → specialists-NXYD4Z62.js.map} +0 -0
  119. /package/dist/{tunnel-W2GZBLEV.js.map → traefik-5GL3Q7DJ.js.map} +0 -0
  120. /package/dist/{workspace-manager-E434Z45T.js.map → tunnel-BKC7KLBX.js.map} +0 -0
@@ -0,0 +1,18 @@
1
+ import {
2
+ getGlobalConfigPath,
3
+ getProjectConfigPath,
4
+ hasGlobalConfig,
5
+ hasProjectConfig,
6
+ init_config_yaml,
7
+ loadConfig
8
+ } from "./chunk-ZP6EWSZV.js";
9
+ import "./chunk-ZHC57RCV.js";
10
+ init_config_yaml();
11
+ export {
12
+ getGlobalConfigPath,
13
+ getProjectConfigPath,
14
+ hasGlobalConfig,
15
+ hasProjectConfig,
16
+ loadConfig
17
+ };
18
+ //# sourceMappingURL=config-yaml-OVZLKFMA.js.map
@@ -88,14 +88,16 @@ Or search manually for `<<<<<<<`, `=======`, or `>>>>>>>` markers.
88
88
 
89
89
  **If markers found:** Go back and resolve them before proceeding.
90
90
 
91
- #### Step 3b: Build the Project (REQUIRED)
91
+ #### Step 3b: Build the Project (REQUIRED — PRODUCTION MODE)
92
92
 
93
- **Use the Task tool with subagent_type="Bash"** to run the build in an isolated context:
93
+ **Use the Task tool with subagent_type="Bash"** to run the build in an isolated context.
94
94
 
95
- Detect the project type and run the appropriate build command:
96
- - **Node.js** (package.json exists): `npm run build`
95
+ **CRITICAL:** Always build in **production mode**. Dev builds mask minification bugs (e.g., Temporal Dead Zone errors that only surface when variables are renamed by esbuild/terser).
96
+
97
+ Detect the project type and run the appropriate **production** build command:
98
+ - **Node.js** (package.json exists): `NODE_ENV=production npm run build` (or the project's prod build script)
97
99
  - **Java/Maven** (pom.xml exists): `mvn compile`
98
- - **Rust** (Cargo.toml exists): `cargo build`
100
+ - **Rust** (Cargo.toml exists): `cargo build --release`
99
101
  - **Python** (setup.py/pyproject.toml): `pip install -e .` or `python -m build`
100
102
 
101
103
  **Why use a subagent?** Build output can be verbose. A subagent isolates the output and returns a clean summary.
@@ -165,7 +165,18 @@ const { stdout } = await execAsync('tmux capture-pane -t session -p');
165
165
  - This applies to ALL shell commands: tmux, git, bd (beads), docker, etc.
166
166
  - The ONLY exception is one-time startup initialization code that runs before the server starts listening
167
167
 
168
- ### 7. All Beads Must Be Closed
168
+ ### 7. No Temporal Dead Zone (TDZ) Bugs
169
+
170
+ **In React/TypeScript components**, all `useCallback`, `useMemo`, and `useEffect` hooks MUST only reference variables that are declared **above** them in the component body. Out-of-order `const`/`let` declarations create Temporal Dead Zone crashes that only appear in **production builds** (minification renames variables, exposing the reference-before-initialization error).
171
+
172
+ **How to check:**
173
+ 1. For each `useCallback`/`useMemo`, verify its dependency array only references variables declared earlier in the file
174
+ 2. Check that any function called inside the hook body is declared above the hook
175
+ 3. This is especially critical for hooks that reference other hooks (e.g., `handleSubmit` referencing `validateForm`)
176
+
177
+ **If found:** REQUEST CHANGES with: "TDZ risk: `<variable>` is declared after `<hook>` but referenced in its closure/dependency array. Move the declaration above the hook."
178
+
179
+ ### 8. All Beads Must Be Closed
169
180
  - **Before approval, run `beads-completion-check` subagent**
170
181
  - All beads (tracked tasks) created during implementation must be closed
171
182
  - Open beads indicate incomplete work, forgotten sub-tasks, or unfinished documentation
@@ -129,8 +129,10 @@ If tests take longer than 10 minutes, consider them hung and report failure.
129
129
 
130
130
  ```bash
131
131
  # Save current state, run tests on main, restore — ALL output to file
132
+ # Use --detach with origin/main to avoid the "branch already checked out" error
133
+ # that occurs in git worktrees where the parent repo holds the main branch lock.
132
134
  git stash
133
- git checkout main
135
+ git checkout --detach origin/main
134
136
  {{detectedTestCommand}} 2>&1 > /tmp/test-main.txt; echo "EXIT_CODE: $?" # with timeout: 300000
135
137
  tail -20 /tmp/test-main.txt
136
138
  git checkout {{branch}}