@relipa/ai-flow-kit 0.1.7 → 0.1.8

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/scripts/memory.js CHANGED
@@ -4,7 +4,7 @@ const chalk = require('chalk');
4
4
  const store = require('./memory-store');
5
5
  const docsBranchCommand = require('./docs-branch');
6
6
 
7
- // CLI for the "99.Memory/" Project Brain (docs/internal/Memory-Architecture-v1.0.md).
7
+ // CLI for the "99.Memory/" Project Brain (docs/common/Memory-Architecture-v1.0.md).
8
8
  // Thin dispatch layer: business logic lives in memory-store.js, git/MR logic is reused
9
9
  // from docs-branch.js (same "AI drafts — human approves via MR" pattern as `ak docs`).
10
10
  //
package/scripts/update.js CHANGED
@@ -126,7 +126,7 @@ module.exports = async function update(options = {}) {
126
126
 
127
127
  // Sync instruction files with the updated skills.
128
128
  // Support both old 'framework' (singular string) and new 'frameworks' (array).
129
- const { setupFramework, AI_TOOL_FILES, ensureAiflowGitignored, setupClaudeCommands } = require('./init');
129
+ const { setupFramework, AI_TOOL_FILES, ensureAiflowGitignored, setupClaudeCommands, copyDocsToProject } = require('./init');
130
130
  const frameworks = state.frameworks || (state.framework ? [state.framework] : []);
131
131
  const selectedTools = state.aiTools || Object.keys(AI_TOOL_FILES);
132
132
  for (const fw of frameworks) {
@@ -136,6 +136,10 @@ module.exports = async function update(options = {}) {
136
136
  // Install / refresh Claude Code custom commands (.claude/commands/)
137
137
  await setupClaudeCommands(projectDir);
138
138
 
139
+ // Refresh .aiflow/docs with the latest docs/common/ (feeds `ak ask` / aiflow-help).
140
+ // Without this, docs promoted after the project's `ak init` never reach the project.
141
+ await copyDocsToProject(projectDir);
142
+
139
143
  // Ensure all aiflow files are gitignored (especially for projects upgrading from older versions)
140
144
  await ensureAiflowGitignored(projectDir);
141
145