juno-code 1.0.43 → 1.0.44

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/dist/bin/cli.js CHANGED
@@ -15216,6 +15216,8 @@ Items that have been resolved will be moved here.`,
15216
15216
  When a task on kanban, has related_tasks key, you need to get the task to understand the complete picture of tasks related to the current current task, you can get all the context through
15217
15217
  \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
15218
15218
 
15219
+ When creating a task, relevant to another task, you can add the following format anywhere in the body of the task : \`[task_id]{Ref_TASK_ID}[/task_id]\` , using ref task id, help kanban organize dependecies between tasks better.
15220
+
15219
15221
  Important: You need to get maximum 3 tasks done in one go.
15220
15222
 
15221
15223
  ## Agent-Specific Instructions
@@ -15349,6 +15351,9 @@ When a task on kanban, has related_tasks key, you need to get the task to unders
15349
15351
  \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
15350
15352
 
15351
15353
 
15354
+ When creating a task, relevant to another task, you can add the following format anywhere in the body of the task : \`[task_id]{Ref_TASK_ID}[/task_id]\` , using ref task id, help kanban organize dependecies between tasks better.
15355
+
15356
+ Important: You need to get maximum 3 tasks done in one go.
15352
15357
 
15353
15358
  ## Build & Test Commands
15354
15359
 
@@ -16583,142 +16588,16 @@ This project uses AI-assisted development with juno-code to achieve: ${variables
16583
16588
  - Security best practices
16584
16589
  `;
16585
16590
  await fs3__default.default.writeFile(path3__namespace.join(specsDir, "architecture.md"), architectureContent);
16586
- const claudeContent = `# Claude Development Session Learnings
16587
-
16588
- ## Project Overview
16589
-
16590
- This project was initialized on ${variables.CURRENT_DATE} using juno-code.
16591
-
16592
- **Main Task**: ${variables.TASK}
16593
- **Preferred Subagent**: ${variables.EDITOR}
16594
- **Project Root**: ${targetDirectory}
16595
-
16596
- ## Development Environment
16597
-
16598
- ### Build System
16599
- - Use \`npm run build\` to build the project
16600
- - Test with \`npm test\` for unit tests
16601
- - Use \`npm run test:binary\` for CLI testing
16602
-
16603
- ### Key Commands
16604
- - \`juno-code start\` - Begin task execution
16605
- - \`juno-code -s ${variables.EDITOR}\` - Quick execution with preferred subagent
16606
- - \`juno-code feedback\` - Provide feedback on the process
16607
-
16608
- ## Project Structure
16609
-
16610
- \`\`\`
16611
- .
16612
- \u251C\u2500\u2500 .juno_task/
16613
- \u2502 \u251C\u2500\u2500 prompt.md # Main task definition with AI instructions
16614
- \u2502 \u251C\u2500\u2500 init.md # Initial task breakdown and constraints
16615
- \u2502 \u251C\u2500\u2500 plan.md # Dynamic planning and priority tracking
16616
- \u2502 \u251C\u2500\u2500 implement.md # Implementation guide and current tasks
16617
- \u2502 \u251C\u2500\u2500 USER_FEEDBACK.md # User feedback and issue tracking
16618
- \u2502 \u251C\u2500\u2500 scripts/ # Utility scripts for project maintenance
16619
- \u2502 \u2502 \u2514\u2500\u2500 clean_logs_folder.sh # Archive old log files
16620
- \u2502 \u2514\u2500\u2500 specs/ # Project specifications
16621
- \u2502 \u251C\u2500\u2500 README.md # Specs overview
16622
- \u2502 \u251C\u2500\u2500 requirements.md # Functional requirements
16623
- \u2502 \u2514\u2500\u2500 architecture.md # System architecture
16624
- \u251C\u2500\u2500 CLAUDE.md # This file - session documentation
16625
- \u2514\u2500\u2500 README.md # Project overview
16626
- \`\`\`
16627
-
16628
- ## AI Workflow
16629
-
16630
- The project uses a sophisticated AI workflow with:
16631
-
16632
- 1. **Task Analysis**: Study existing codebase and requirements
16633
- 2. **Specification Creation**: Detailed specs for each component
16634
- 3. **Implementation**: AI-assisted development with parallel subagents
16635
- 4. **Testing**: Automated testing and validation
16636
- 5. **Documentation**: Continuous documentation updates
16637
- 6. **Version Control**: Automated Git workflow management
16638
-
16639
- ## Important Notes
16640
-
16641
- - Always check USER_FEEDBACK.md first for user input
16642
- - Keep plan.md up to date with current priorities
16643
- - Use up to 500 parallel subagents for analysis
16644
- - Use only 1 subagent for build/test operations
16645
- - Focus on full implementations, not placeholders
16646
- - Maintain comprehensive documentation
16647
-
16648
- ## Session Progress
16649
-
16650
- This file will be updated as development progresses to track:
16651
- - Key decisions and their rationale
16652
- - Important learnings and discoveries
16653
- - Build/test optimization techniques
16654
- - Solutions to complex problems
16655
- - Performance improvements and optimizations
16656
- `;
16657
- await fs3__default.default.writeFile(path3__namespace.join(targetDirectory, "CLAUDE.md"), claudeContent);
16658
- const agentsContent = `# AI Agent Selection and Performance
16659
-
16660
- ## Available Agents
16661
-
16662
- ### ${variables.EDITOR.toUpperCase()} \u2705 SELECTED
16663
- **Status**: Primary agent for this project
16664
- **Usage**: Main development and task execution
16665
- **Strengths**: ${this.getAgentStrengths(variables.EDITOR)}
16666
- **Best For**: ${this.getAgentBestFor(variables.EDITOR)}
16667
-
16668
- ### CLAUDE \u2B55 Available
16669
- **Status**: Available as secondary agent
16670
- **Usage**: Complex reasoning, analysis, documentation
16671
- **Strengths**: Analytical thinking, detailed explanations
16672
- **Best For**: Code analysis, architectural decisions, documentation
16673
-
16674
- ### CURSOR \u2B55 Available
16675
- **Status**: Available as secondary agent
16676
- **Usage**: Code generation, debugging, optimization
16677
- **Strengths**: Code-centric development, debugging
16678
- **Best For**: Feature implementation, bug fixes, code optimization
16679
-
16680
- ### CODEX \u2B55 Available
16681
- **Status**: Available as secondary agent
16682
- **Usage**: General development, problem solving
16683
- **Strengths**: Versatile development capabilities
16684
- **Best For**: General purpose development tasks
16685
-
16686
- ### GEMINI \u2B55 Available
16687
- **Status**: Available as secondary agent
16688
- **Usage**: Creative solutions, alternative approaches
16689
- **Strengths**: Creative problem solving, diverse perspectives
16690
- **Best For**: Brainstorming, alternative implementations, creative solutions
16691
-
16692
- ## Agent Selection Strategy
16693
-
16694
- ### Primary Agent Selection
16695
- - **${variables.EDITOR}** chosen as primary agent for this project
16696
- - Based on task requirements and project needs
16697
- - Can be changed by updating project configuration
16698
-
16699
- ### Secondary Agent Usage
16700
- - Use parallel agents for analysis and research
16701
- - Specialized agents for specific task types
16702
- - Load balancing for complex operations
16703
-
16704
- ## Performance Tracking
16705
-
16706
- Track agent performance for:
16707
- - Task completion time
16708
- - Code quality
16709
- - Accuracy of implementation
16710
- - Documentation quality
16711
- - Problem-solving effectiveness
16712
-
16713
- ## Optimization Tips
16714
-
16715
- 1. **Right Agent for Right Task**: Choose agents based on their strengths
16716
- 2. **Parallel Processing**: Use multiple agents for analysis phases
16717
- 3. **Quality Validation**: Review and validate agent output
16718
- 4. **Feedback Loop**: Provide feedback to improve agent performance
16719
- 5. **Performance Monitoring**: Track and optimize agent usage
16720
- `;
16721
- await fs3__default.default.writeFile(path3__namespace.join(targetDirectory, "AGENTS.md"), agentsContent);
16591
+ const claudeTemplate = templateEngine.getBuiltInTemplate("CLAUDE.md");
16592
+ if (claudeTemplate) {
16593
+ const claudeContent = await templateEngine.render(claudeTemplate, templateContext);
16594
+ await fs3__default.default.writeFile(path3__namespace.join(targetDirectory, "CLAUDE.md"), claudeContent);
16595
+ }
16596
+ const agentsTemplate = templateEngine.getBuiltInTemplate("AGENTS.md");
16597
+ if (agentsTemplate) {
16598
+ const agentsContent = await templateEngine.render(agentsTemplate, templateContext);
16599
+ await fs3__default.default.writeFile(path3__namespace.join(targetDirectory, "AGENTS.md"), agentsContent);
16600
+ }
16722
16601
  const readmeContent = `# ${variables.PROJECT_NAME}
16723
16602
 
16724
16603
  ${variables.DESCRIPTION}
@@ -16824,24 +16703,6 @@ ${variables.EDITOR ? `using ${variables.EDITOR} as primary AI subagent` : ""}
16824
16703
  console.log(chalk15__default.default.green.bold("\n\u2705 Project initialization complete!"));
16825
16704
  this.printNextSteps(targetDirectory, variables.EDITOR);
16826
16705
  }
16827
- getAgentStrengths(agent) {
16828
- const strengths = {
16829
- claude: "Analytical thinking, detailed explanations, architectural decisions",
16830
- cursor: "Code-centric development, debugging, optimization",
16831
- codex: "Versatile development capabilities, general purpose tasks",
16832
- gemini: "Creative problem solving, diverse perspectives"
16833
- };
16834
- return strengths[agent] || "General AI assistance";
16835
- }
16836
- getAgentBestFor(agent) {
16837
- const bestFor = {
16838
- claude: "Code analysis, architectural decisions, documentation",
16839
- cursor: "Feature implementation, bug fixes, code optimization",
16840
- codex: "General purpose development tasks",
16841
- gemini: "Brainstorming, alternative implementations, creative solutions"
16842
- };
16843
- return bestFor[agent] || "General development tasks";
16844
- }
16845
16706
  async createConfigFile(junoTaskDir, targetDirectory) {
16846
16707
  const configContent = {
16847
16708
  // Core settings