thumbgate 1.27.14 → 1.27.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thumbgate",
3
- "version": "1.27.14",
3
+ "version": "1.27.15",
4
4
  "description": "ThumbGate self-improving agent governance: thumbs-up/down turns every mistake into a prevention rule and blocks repeat patterns. 36 pre-action checks, budget enforcement, and self-protection for Claude Code, Cursor, Codex, Gemini CLI, and Amp.",
5
5
  "homepage": "https://thumbgate.ai",
6
6
  "repository": {
@@ -222,7 +222,10 @@ function probeFeedbackCapture(projectRoot) {
222
222
  const previousNoNudge = process.env.THUMBGATE_NO_NUDGE;
223
223
 
224
224
  process.env.THUMBGATE_FEEDBACK_DIR = tempDir;
225
- process.env.THUMBGATE_PROJECT_DIR = projectRoot || findProjectRoot();
225
+ // Keep this probe isolated. Direct project scope intentionally overrides
226
+ // THUMBGATE_FEEDBACK_DIR in the runtime resolver, which is correct for real
227
+ // project writes but wrong for a doctor self-test.
228
+ delete process.env.THUMBGATE_PROJECT_DIR;
226
229
  process.env.THUMBGATE_NO_NUDGE = '1';
227
230
 
228
231
  try {
@@ -252,6 +255,7 @@ function probeFeedbackCapture(projectRoot) {
252
255
  feedbackId: feedbackId || null,
253
256
  memoryId: memoryId || null,
254
257
  mode: 'isolated-temp-store',
258
+ feedbackDir: paths.FEEDBACK_DIR,
255
259
  recommendation: (result.accepted && feedbackStored && memoryStored)
256
260
  ? 'Feedback capture writes durable feedback and memory records.'
257
261
  : 'Feedback capture did not persist both feedback and memory records; run `npx thumbgate feedback-self-test --json`.',
@@ -265,6 +269,7 @@ function probeFeedbackCapture(projectRoot) {
265
269
  feedbackId: null,
266
270
  memoryId: null,
267
271
  mode: 'isolated-temp-store',
272
+ feedbackDir: tempDir,
268
273
  error: error && error.message ? error.message : String(error),
269
274
  recommendation: 'Feedback capture probe failed; run `npx thumbgate feedback-self-test --json` for details.',
270
275
  };