juno-code 1.0.40 → 1.0.41

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.mjs CHANGED
@@ -14520,22 +14520,19 @@ and for each part create a seperate .md file under @.juno_task/spec/*
14520
14520
 
14521
14521
  ## ULTIMATE Goal
14522
14522
  We want to achieve the main Task with respect to the Constraints section
14523
+
14524
+ Part 1)
14523
14525
  Consider missing steps and plan. If the step is missing then author the specification at @.juno_task/spec/FILENAME.md (do NOT assume that it does not exist, search before creating). The naming of the module should be GenZ named and not conflict with another module name. If you create a new step then document the plan to implement in @.juno_task/plan.md
14524
14526
 
14525
14527
 
14528
+ Part 2) after completing the plan, and spec, create task for implementing each part on kanban './.juno_task/scripts/kanban.sh' You need to create a task for each step of implementation and testing. You need to go through the project, the spec and plan at the end to make sure you have covered all tasks on the kanban. We will later on implement tasks from kanban one by one.
14529
+ After completing the proccess an implementer agent would start the job and go through kanban tasks one by one.
14530
+
14531
+
14526
14532
  ### Constraints
14527
14533
  **Preferred Subagent**: {{SUBAGENT}}
14528
14534
  **Repository URL**: {{GIT_URL}}
14529
-
14530
-
14531
- ## Environment Setup
14532
- [Empty]
14533
-
14534
- ### 2. Package Installation
14535
- [Empty]
14536
-
14537
- ### 3. Test Installation
14538
- [Empty]`,
14535
+ `,
14539
14536
  variables: [
14540
14537
  {
14541
14538
  name: "main_task",
@@ -14880,6 +14877,23 @@ Items that have been resolved will be moved here.`,
14880
14877
  **Git Repository:** {{GIT_URL}}
14881
14878
  **Configuration Date:** {{CURRENT_DATE}}
14882
14879
 
14880
+ ## Kanban Task Management
14881
+
14882
+ \`\`\`bash
14883
+ # List tasks
14884
+ ./.juno_task/scripts/kanban.sh list --limit 5 --sort asc
14885
+ ./.juno_task/scripts/kanban.sh list --status [backlog|todo|in_progress|done] --sort asc
14886
+
14887
+ # Task operations
14888
+ ./.juno_task/scripts/kanban.sh get {TASK_ID}
14889
+ ./.juno_task/scripts/kanban.sh mark [in_progress|done|todo] --id {TASK_ID} --response "message"
14890
+ ./.juno_task/scripts/kanban.sh update {TASK_ID} --commit {COMMIT_HASH}
14891
+ \`\`\`
14892
+
14893
+ 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
14894
+ \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
14895
+
14896
+
14883
14897
  ## Agent-Specific Instructions
14884
14898
 
14885
14899
  ### {{SUBAGENT}} Configuration
@@ -14994,6 +15008,24 @@ python -m pytest tests/ --cov=src --cov-report=term-missing
14994
15008
  - **Code Quality:** Focus on production-ready, well-documented code
14995
15009
  - **Testing:** Comprehensive unit and integration tests required
14996
15010
 
15011
+ ## Kanban Task Management
15012
+
15013
+ \`\`\`bash
15014
+ # List tasks
15015
+ ./.juno_task/scripts/kanban.sh list --limit 5 --sort asc
15016
+ ./.juno_task/scripts/kanban.sh list --status [backlog|todo|in_progress|done] --sort asc
15017
+
15018
+ # Task operations
15019
+ ./.juno_task/scripts/kanban.sh get {TASK_ID}
15020
+ ./.juno_task/scripts/kanban.sh mark [in_progress|done|todo] --id {TASK_ID} --response "message"
15021
+ ./.juno_task/scripts/kanban.sh update {TASK_ID} --commit {COMMIT_HASH}
15022
+ \`\`\`
15023
+
15024
+ 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
15025
+ \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
15026
+
15027
+
15028
+
14997
15029
  ## Build & Test Commands
14998
15030
 
14999
15031
  **Environment Setup:**
@@ -24327,10 +24359,29 @@ function setupMainCommand(program) {
24327
24359
  stdio: "inherit",
24328
24360
  cwd: process.cwd()
24329
24361
  });
24362
+ process.removeAllListeners("SIGINT");
24363
+ process.removeAllListeners("SIGTERM");
24364
+ let childExited = false;
24365
+ const signalHandler = (signal) => {
24366
+ if (!childExited && child.pid) {
24367
+ try {
24368
+ process.kill(child.pid, signal);
24369
+ } catch (err) {
24370
+ }
24371
+ }
24372
+ };
24373
+ process.on("SIGINT", signalHandler);
24374
+ process.on("SIGTERM", signalHandler);
24330
24375
  child.on("exit", (code) => {
24376
+ childExited = true;
24377
+ process.removeListener("SIGINT", signalHandler);
24378
+ process.removeListener("SIGTERM", signalHandler);
24331
24379
  process.exit(code || 0);
24332
24380
  });
24333
24381
  child.on("error", (error) => {
24382
+ childExited = true;
24383
+ process.removeListener("SIGINT", signalHandler);
24384
+ process.removeListener("SIGTERM", signalHandler);
24334
24385
  console.error(chalk15.red.bold("\n\u274C Error executing run_until_completion.sh"));
24335
24386
  console.error(chalk15.red(` ${error.message}`));
24336
24387
  process.exit(1);