context-bank 0.0.2 β†’ 0.0.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/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ <!-- AI-CONTEXT: .ai/rules.md -->
1
2
  # 🏦 Context Bank
2
3
 
3
4
  <div align="center">
@@ -77,6 +77,19 @@ export async function initCommand(options) {
77
77
  storyContent = storyContent.replace("[Auto-filled by init]", new Date().toISOString().split("T")[0]);
78
78
  await fs.writeFile(storyPath, storyContent);
79
79
  }
80
+ // Special handling for README.md
81
+ const readmePath = path.join(targetDir, "README.md");
82
+ const aiContextMarker = "<!-- AI-CONTEXT: .ai/rules.md -->";
83
+ if (fs.existsSync(readmePath)) {
84
+ const readmeContent = await fs.readFile(readmePath, "utf-8");
85
+ if (!readmeContent.includes(aiContextMarker)) {
86
+ await fs.writeFile(readmePath, `${aiContextMarker}\n${readmeContent}`);
87
+ }
88
+ }
89
+ else {
90
+ const projectName = path.basename(targetDir);
91
+ await fs.writeFile(readmePath, `${aiContextMarker}\n\n# ${projectName}\n`);
92
+ }
80
93
  s.stop(chalk.green("Context initialized!"));
81
94
  outro(chalk.green(`
82
95
  Context Bank setup complete! πŸš€
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-bank",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A CLI tool to standardise AI context in projects.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,24 @@
1
+ # πŸ—οΈ Project Architecture
2
+
3
+ > **AI INSTRUCTION:**
4
+ > Update this file when:
5
+ > 1. New architectural decisions are made.
6
+ > 2. The system design evolves.
7
+ > 3. New integrations or dependencies are added.
8
+
9
+ ## πŸ“ High-Level Design
10
+ [Describe the high-level architecture here]
11
+
12
+ ## πŸ“‚ Directory Structure
13
+ ```
14
+ src/
15
+ β”œβ”€β”€ features/
16
+ β”œβ”€β”€ shared/
17
+ └── ...
18
+ ```
19
+
20
+ ## πŸ”„ Data Flow
21
+ [Describe how data moves through the application]
22
+
23
+ ## πŸ› οΈ Key Decisions
24
+ - [Decision 1]: [Reasoning]
@@ -0,0 +1,18 @@
1
+ # πŸ—ΊοΈ Project Roadmap
2
+
3
+ > **AI INSTRUCTION:**
4
+ > Update this file when:
5
+ > 1. A new feature is planned.
6
+ > 2. A feature is completed (mark with [x]).
7
+ > 3. Priorities change.
8
+
9
+ ## πŸš€ Upcoming
10
+ - [ ] [Feature 1]
11
+ - [ ] [Feature 2]
12
+
13
+ ## πŸ“¦ Backlog
14
+ - [ ] [Idea 1]
15
+ - [ ] [Idea 2]
16
+
17
+ ## βœ… Completed
18
+ - [x] Project Initialization
@@ -1,3 +1,5 @@
1
+ # AI CONTEXT: ALWAYS READ THIS FILE FIRST
2
+
1
3
  # 🧠 Project Context & Rules (Master File)
2
4
 
3
5
  > **AI AGENT INSTRUCTION (CRITICAL):**
@@ -8,7 +10,9 @@
8
10
  >
9
11
  > 1. **Capture Preferences:** If the user specifies a preference, update **`rules.md`**.
10
12
  > 2. **Track Progress:** At the end of a task, update **`active-context.md`** with the current status and next steps.
11
- > 3. **Log History:** When a major milestone is reached, append it to **`story.md`**.
13
+ > 3. **Update Roadmap:** When a feature is completed or planned, update **`roadmap.md`**.
14
+ > 4. **Document Architecture:** When structure/design changes, update **`architecture.md`**.
15
+ > 5. **Log History:** When a major milestone is reached, append it to **`story.md`**.
12
16
  >
13
17
  > **TOKEN SAVING STRATEGY:**
14
18
  > Do not rely on chat history for long-term memory. Rely on these files.