aibridge-context 1.4.1 → 1.5.1

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/core/init.js CHANGED
@@ -4,6 +4,7 @@ const path = require('path');
4
4
  const fsp = require('fs/promises');
5
5
 
6
6
  const {
7
+ bootstrapProjectAnalysis,
7
8
  createDefaultChangelog,
8
9
  createDefaultState,
9
10
  detectProjectMetadata,
@@ -45,10 +46,20 @@ async function initProject(projectRoot, options) {
45
46
  const templateState = JSON.parse(stateTemplate);
46
47
  const templateChangelog = JSON.parse(changelogTemplate);
47
48
  let enableGitSync = false;
49
+ const bootstrapState = createDefaultState(projectRoot);
50
+ const bootstrapAnalysis = bootstrapProjectAnalysis(projectRoot);
48
51
 
49
- const initialState = Object.assign({}, templateState, existingState || createDefaultState(projectRoot), {
52
+ const initialState = Object.assign({}, templateState, existingState || bootstrapState, {
50
53
  project: metadata.project,
51
- version: metadata.version
54
+ version: metadata.version,
55
+ ai_summary: bootstrapState.ai_summary,
56
+ tech_stack: bootstrapAnalysis.techStack,
57
+ architecture_patterns: bootstrapAnalysis.architecturePatterns,
58
+ implementation_details: bootstrapAnalysis.implementationDetails,
59
+ current_stage: bootstrapState.current_stage,
60
+ key_features: bootstrapState.key_features,
61
+ known_issues: bootstrapState.known_issues,
62
+ next_steps: bootstrapState.next_steps
52
63
  });
53
64
 
54
65
  const initialContext = renderTemplate(contextTemplate, {