prjct-cli 0.10.2 ā 0.10.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.
- package/CHANGELOG.md +10 -0
- package/core/commands.js +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.3] - 2025-11-27
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Global CLAUDE.md Auto-Update** - Now updates `~/.claude/CLAUDE.md` on every sync/analyze/init
|
|
8
|
+
- `/p:sync`: Updates global config after generating agents
|
|
9
|
+
- `/p:analyze`: Updates global config after analysis
|
|
10
|
+
- `/p:init`: Updates global config for all init modes
|
|
11
|
+
- Ensures Claude always has latest prjct instructions
|
|
12
|
+
|
|
3
13
|
## [0.10.2] - 2025-11-27
|
|
4
14
|
|
|
5
15
|
### Added
|
package/core/commands.js
CHANGED
|
@@ -389,9 +389,17 @@ class PrjctCommands {
|
|
|
389
389
|
console.log(' Custom: Describe your preferred stack\n')
|
|
390
390
|
console.log('Which option do you prefer? (Respond to continue setup)')
|
|
391
391
|
|
|
392
|
+
// Update global CLAUDE.md with latest instructions
|
|
393
|
+
const commandInstaller = require('./infrastructure/command-installer')
|
|
394
|
+
await commandInstaller.installGlobalConfig()
|
|
395
|
+
|
|
392
396
|
return { success: true, mode: 'architect', projectId, idea }
|
|
393
397
|
}
|
|
394
398
|
|
|
399
|
+
// Update global CLAUDE.md with latest instructions (fallback for any case)
|
|
400
|
+
const commandInstaller = require('./infrastructure/command-installer')
|
|
401
|
+
await commandInstaller.installGlobalConfig()
|
|
402
|
+
|
|
395
403
|
return { success: true, projectId }
|
|
396
404
|
} catch (error) {
|
|
397
405
|
console.error('ā Error:', error.message)
|
|
@@ -2352,6 +2360,13 @@ Agent: ${agent}
|
|
|
2352
2360
|
const projectId = await configManager.getProjectId(projectPath)
|
|
2353
2361
|
await contextSync.generateLocalContext(projectPath, projectId)
|
|
2354
2362
|
|
|
2363
|
+
// Update global CLAUDE.md with latest instructions
|
|
2364
|
+
const commandInstaller = require('./infrastructure/command-installer')
|
|
2365
|
+
const globalConfigResult = await commandInstaller.installGlobalConfig()
|
|
2366
|
+
if (globalConfigResult.success) {
|
|
2367
|
+
console.log('š Updated ~/.claude/CLAUDE.md')
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2355
2370
|
console.log('ā
Analysis complete!\n')
|
|
2356
2371
|
console.log('š Full report: analysis/repo-summary.md')
|
|
2357
2372
|
console.log('š Context: ~/.prjct-cli/projects/' + projectId + '/CLAUDE.md\n')
|
|
@@ -2523,6 +2538,13 @@ Agent: ${agent}
|
|
|
2523
2538
|
const contextSync = require('./context-sync')
|
|
2524
2539
|
await contextSync.generateLocalContext(projectPath, projectId)
|
|
2525
2540
|
|
|
2541
|
+
// Update global CLAUDE.md with latest instructions
|
|
2542
|
+
const commandInstaller = require('./infrastructure/command-installer')
|
|
2543
|
+
const globalConfigResult = await commandInstaller.installGlobalConfig()
|
|
2544
|
+
if (globalConfigResult.success) {
|
|
2545
|
+
console.log('š Updated ~/.claude/CLAUDE.md')
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2526
2548
|
console.log('\nā
Sync complete!\n')
|
|
2527
2549
|
console.log(`š¤ Agents Generated: ${generatedAgents.length}`)
|
|
2528
2550
|
generatedAgents.forEach((agent) => {
|