@relipa/ai-flow-kit 0.1.8-beta.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relipa/ai-flow-kit",
3
- "version": "0.1.8-beta.0",
3
+ "version": "0.1.8",
4
4
  "description": "All-in-one AI Flow Kit for team development with Claude AI - skills, templates, and MCP adapters",
5
5
  "author": "Example Team",
6
6
  "publishConfig": {
package/scripts/init.js CHANGED
@@ -1215,6 +1215,7 @@ module.exports.detectRtk = detectRtk;
1215
1215
  module.exports.isRtkHookConfigured = isRtkHookConfigured;
1216
1216
  module.exports.isGitNexusConfigured = isGitNexusConfigured;
1217
1217
  module.exports.setupClaudeCommands = setupClaudeCommands;
1218
+ module.exports.copyDocsToProject = copyDocsToProject;
1218
1219
  module.exports.setupFramework = setupFramework;
1219
1220
  module.exports.ensureAiflowGitignored = ensureAiflowGitignored;
1220
1221
  module.exports.resolveWorkflowFile = resolveWorkflowFile;
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