context-engineer 1.3.1 → 1.3.2
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/README.md +10 -1
- package/lib/update.mjs +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,10 +62,19 @@ npx context-engineer init --dir ./myapp # Install to a specific directory
|
|
|
62
62
|
### Update Templates
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
npx context-engineer update #
|
|
65
|
+
npx context-engineer update # Smart update: framework files always, content files only if untouched
|
|
66
66
|
npx context-engineer update --check # Check for updates without applying
|
|
67
|
+
npx context-engineer update --force # Overwrite customized content too
|
|
68
|
+
npx context-engineer update --yes # Auto-confirm (non-interactive)
|
|
67
69
|
```
|
|
68
70
|
|
|
71
|
+
Files are classified as:
|
|
72
|
+
|
|
73
|
+
- **Framework** (`.claude/`, `scripts/`, `CLAUDE.md`) — always updated to latest version
|
|
74
|
+
- **Content** (`.context/architecture/`, `business/`, `AGENTS.md`, etc.) — preserved if customized since install
|
|
75
|
+
|
|
76
|
+
Non-TTY environments (Claude Code Bash tool, CI) auto-confirm prompts.
|
|
77
|
+
|
|
69
78
|
## After Installation
|
|
70
79
|
|
|
71
80
|
1. **Claude Code**: Run `/bootstrap-context` to populate templates from your codebase
|
package/lib/update.mjs
CHANGED
|
@@ -33,18 +33,25 @@ function detectInstalledGroups(targetDir) {
|
|
|
33
33
|
/**
|
|
34
34
|
* Framework files are the "engine" of context-engineer — skills, scripts, agent roles.
|
|
35
35
|
* These should always be updated, even if the user's copy differs (e.g., bootstrap touched them).
|
|
36
|
+
*
|
|
36
37
|
* Content files (.context/ project docs) contain user knowledge and should be preserved.
|
|
38
|
+
*
|
|
39
|
+
* MIXED files (CLAUDE.md, .cursorrules, AGENTS.md) contain both framework structure
|
|
40
|
+
* AND user placeholders ([BUILD_COMMAND], [TEST_COMMAND], etc.) filled in by /bootstrap-context.
|
|
41
|
+
* These are classified as CONTENT to protect user customizations — if you want the latest
|
|
42
|
+
* framework structure for these, run `--force` and re-fill the placeholders.
|
|
37
43
|
*/
|
|
38
44
|
function isFrameworkFile(relPath) {
|
|
39
45
|
const normalized = relPath.replace(/\\/g, '/');
|
|
46
|
+
// Pure framework directories — no user placeholders
|
|
40
47
|
if (normalized.startsWith('.claude/')) return true;
|
|
41
|
-
if (normalized.startsWith('.cursor/')) return true;
|
|
48
|
+
if (normalized.startsWith('.cursor/rules/')) return true;
|
|
42
49
|
if (normalized.startsWith('scripts/')) return true;
|
|
43
50
|
if (normalized.startsWith('.github/')) return true;
|
|
44
|
-
|
|
45
|
-
if (normalized === '.cursorrules') return true;
|
|
51
|
+
// Pure framework files
|
|
46
52
|
if (normalized === '.context/_meta/schema.md') return true;
|
|
47
53
|
if (normalized === '.context/_meta/drift-report.md') return true;
|
|
54
|
+
// CLAUDE.md, .cursorrules, AGENTS.md are MIXED — treated as content
|
|
48
55
|
return false;
|
|
49
56
|
}
|
|
50
57
|
|
package/package.json
CHANGED