trackfw 6.5.0 → 6.5.1

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": "trackfw",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "description": "Governance CLI for AI-native software delivery and AI coding agents. Enforces traceability: ADR → REQ → ROADMAP → kanban. Native support for Codex, Claude Code, Gemini CLI, Cursor, Copilot, Windsurf, Amazon Q, OpenCode, and Kiro.",
5
5
  "keywords": [
6
6
  "cli",
@@ -6,7 +6,7 @@ const path = require('path')
6
6
  const identityStore = require('../identity')
7
7
  const { catalog, buildPlans, IntegrationManager, globalGroupPath } = require('../integrations')
8
8
  const { tildeify, validateTargets, buildDocument, humanReport, silenceConsole } = require('../lib/update-engine')
9
- const { mergeClaudeHookArray, mergeSimpleCommandArray, mergeCopilotHookArray } = require('../generators/hooks')
9
+ const { mergeClaudeHookArray, mergeSimpleCommandArray, mergeCopilotHookArray, generateGlobalCredentialGuardScript } = require('../generators/hooks')
10
10
 
11
11
  // `trackfw update harness` is the global counterpart to `trackfw update` —
12
12
  // see docs/cli-parity.md, "`trackfw update` vs `trackfw update harness`".
@@ -581,6 +581,19 @@ function run(options) {
581
581
  const dryRun = Boolean(options.dryRun)
582
582
  const installMissing = Boolean(options.installMissing)
583
583
 
584
+ // The per-CLI *-credential-guard targets below only wire hook entries that
585
+ // point at ~/.trackfw/scripts/trackfw-credential-guard.sh — none of them
586
+ // write the script itself (ADR-2026-08-06, decision #2/#3). Without this
587
+ // call the wiring is installed but every hook invocation fails with
588
+ // "No such file or directory" because the script never exists.
589
+ if (!dryRun) {
590
+ if (options.json) {
591
+ silenceConsole(() => generateGlobalCredentialGuardScript(homeRoot))
592
+ } else {
593
+ generateGlobalCredentialGuardScript(homeRoot)
594
+ }
595
+ }
596
+
584
597
  // Identidade resolvida do disco antes de buildPlans — pular esta etapa
585
598
  // reverteria silenciosamente os nomes customizados para os defaults
586
599
  // neutros (mesma justificativa de npm/src/integrations/index.js:execute).
@@ -1,10 +1,5 @@
1
1
  'use strict'
2
2
 
3
- const fs = require('fs')
4
- const path = require('path')
5
- const { injectCodexHooks } = require('./hooks')
6
- const { injectRulesForTool } = require('./init')
7
-
8
3
  const skills = {
9
4
  'trackfw-governance': `---
10
5
  name: trackfw-governance
@@ -81,23 +76,4 @@ Review the branch as an owner. Return findings first, ordered by severity, with
81
76
  `,
82
77
  }
83
78
 
84
- function installCodex(cwd) {
85
- const root = cwd || process.cwd()
86
- const { execute } = require('../integrations')
87
- execute('agents', 'install', { targets: ['codex'], scope: 'project' }, { projectRoot: root })
88
- execute('skills', 'install', { targets: ['codex'], scope: 'project' }, { projectRoot: root })
89
- injectRulesForTool('codex', root)
90
-
91
- const configPath = path.join(root, '.codex', 'config.toml')
92
- fs.mkdirSync(path.dirname(configPath), { recursive: true })
93
- let config = fs.existsSync(configPath) ? fs.readFileSync(configPath, 'utf8') : ''
94
- if (!/^\[agents\]\s*$/m.test(config)) {
95
- config = config.replace(/\s*$/, '') + '\n\n[agents]\nmax_threads = 6\nmax_depth = 1\n'
96
- fs.writeFileSync(configPath, config, 'utf8')
97
- }
98
-
99
- injectCodexHooks(root)
100
- console.log(' ✓ Codex: AGENTS.md, skills, custom agents and hooks')
101
- }
102
-
103
- module.exports = { installCodex, legacyCodexFixtures: { skills, agents } }
79
+ module.exports = { legacyCodexFixtures: { skills, agents } }