prjct-cli 0.47.0 → 0.49.0
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 +52 -3821
- package/core/agentic/context-builder.ts +4 -4
- package/core/agentic/memory-system.ts +3 -1
- package/core/agentic/prompt-builder.ts +6 -2
- package/core/agentic/smart-context.ts +2 -2
- package/core/ai-tools/generator.ts +11 -1
- package/core/cli/linear.ts +5 -4
- package/core/commands/analytics.ts +4 -2
- package/core/commands/cleanup.ts +1 -1
- package/core/commands/commands.ts +1 -1
- package/core/commands/planning.ts +4 -4
- package/core/commands/registry.ts +3 -2
- package/core/commands/shipping.ts +1 -1
- package/core/commands/snapshots.ts +6 -6
- package/core/commands/workflow.ts +6 -6
- package/core/constants/index.ts +3 -1
- package/core/context-tools/imports-tool.ts +1 -1
- package/core/context-tools/signatures-tool.ts +1 -1
- package/core/plugin/hooks.ts +1 -1
- package/core/services/agent-generator.ts +58 -6
- package/core/services/context-generator.ts +35 -15
- package/core/utils/error-messages.ts +161 -0
- package/core/utils/help.ts +0 -1
- package/core/utils/markdown-builder.ts +9 -3
- package/core/utils/output.ts +24 -0
- package/core/utils/preserve-sections.ts +1 -1
- package/core/utils/project-commands.ts +0 -6
- package/core/utils/subtask-table.ts +1 -1
- package/dist/bin/prjct.mjs +308 -96
- package/package.json +1 -1
- package/templates/global/CLAUDE.md +27 -0
|
@@ -147,6 +147,33 @@ fs.writeFileSync(path, JSON.stringify(data, null, 2))
|
|
|
147
147
|
|
|
148
148
|
**Full specification**: Install prjct-cli and see `{npm root -g}/prjct-cli/templates/global/STORAGE-SPEC.md`
|
|
149
149
|
|
|
150
|
+
### 6. Preserve Markers (User Customizations)
|
|
151
|
+
|
|
152
|
+
User customizations in context files and agents survive regeneration using preserve markers:
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
<!-- prjct:preserve -->
|
|
156
|
+
# My Custom Rules
|
|
157
|
+
- Always use tabs
|
|
158
|
+
- Prefer functional patterns
|
|
159
|
+
<!-- /prjct:preserve -->
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**How it works:**
|
|
163
|
+
- Content between markers is extracted before regeneration
|
|
164
|
+
- After regeneration, preserved content is appended under "Your Customizations"
|
|
165
|
+
- Named sections: `<!-- prjct:preserve:my-rules -->` for identification
|
|
166
|
+
|
|
167
|
+
**Where to use:**
|
|
168
|
+
- `context/CLAUDE.md` - Project-specific AI instructions
|
|
169
|
+
- `agents/*.md` - Domain-specific patterns
|
|
170
|
+
- Any regenerated context file
|
|
171
|
+
|
|
172
|
+
**⚠️ Invalid blocks show warnings:**
|
|
173
|
+
- Unclosed markers are ignored
|
|
174
|
+
- Nested blocks are not supported
|
|
175
|
+
- Mismatched markers trigger console warnings
|
|
176
|
+
|
|
150
177
|
---
|
|
151
178
|
|
|
152
179
|
## CORE WORKFLOW
|