juno-code 1.0.40 → 1.0.42

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
@@ -14556,22 +14556,19 @@ and for each part create a seperate .md file under @.juno_task/spec/*
14556
14556
 
14557
14557
  ## ULTIMATE Goal
14558
14558
  We want to achieve the main Task with respect to the Constraints section
14559
+
14560
+ Part 1)
14559
14561
  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
14560
14562
 
14561
14563
 
14564
+ 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.
14565
+ After completing the proccess an implementer agent would start the job and go through kanban tasks one by one.
14566
+
14567
+
14562
14568
  ### Constraints
14563
14569
  **Preferred Subagent**: {{SUBAGENT}}
14564
14570
  **Repository URL**: {{GIT_URL}}
14565
-
14566
-
14567
- ## Environment Setup
14568
- [Empty]
14569
-
14570
- ### 2. Package Installation
14571
- [Empty]
14572
-
14573
- ### 3. Test Installation
14574
- [Empty]`,
14571
+ `,
14575
14572
  variables: [
14576
14573
  {
14577
14574
  name: "main_task",
@@ -14916,6 +14913,24 @@ Items that have been resolved will be moved here.`,
14916
14913
  **Git Repository:** {{GIT_URL}}
14917
14914
  **Configuration Date:** {{CURRENT_DATE}}
14918
14915
 
14916
+ ## Kanban Task Management
14917
+
14918
+ \`\`\`bash
14919
+ # List tasks
14920
+ ./.juno_task/scripts/kanban.sh list --limit 5 --sort asc
14921
+ ./.juno_task/scripts/kanban.sh list --status [backlog|todo|in_progress|done] --sort asc
14922
+
14923
+ # Task operations
14924
+ ./.juno_task/scripts/kanban.sh get {TASK_ID}
14925
+ ./.juno_task/scripts/kanban.sh mark [in_progress|done|todo] --id {TASK_ID} --response "message"
14926
+ ./.juno_task/scripts/kanban.sh update {TASK_ID} --commit {COMMIT_HASH}
14927
+ \`\`\`
14928
+
14929
+ 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
14930
+ \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
14931
+
14932
+ Important: You need to get maximum 3 tasks done in one go.
14933
+
14919
14934
  ## Agent-Specific Instructions
14920
14935
 
14921
14936
  ### {{SUBAGENT}} Configuration
@@ -15030,6 +15045,24 @@ python -m pytest tests/ --cov=src --cov-report=term-missing
15030
15045
  - **Code Quality:** Focus on production-ready, well-documented code
15031
15046
  - **Testing:** Comprehensive unit and integration tests required
15032
15047
 
15048
+ ## Kanban Task Management
15049
+
15050
+ \`\`\`bash
15051
+ # List tasks
15052
+ ./.juno_task/scripts/kanban.sh list --limit 5 --sort asc
15053
+ ./.juno_task/scripts/kanban.sh list --status [backlog|todo|in_progress|done] --sort asc
15054
+
15055
+ # Task operations
15056
+ ./.juno_task/scripts/kanban.sh get {TASK_ID}
15057
+ ./.juno_task/scripts/kanban.sh mark [in_progress|done|todo] --id {TASK_ID} --response "message"
15058
+ ./.juno_task/scripts/kanban.sh update {TASK_ID} --commit {COMMIT_HASH}
15059
+ \`\`\`
15060
+
15061
+ 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
15062
+ \`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
15063
+
15064
+
15065
+
15033
15066
  ## Build & Test Commands
15034
15067
 
15035
15068
  **Environment Setup:**
@@ -24363,10 +24396,29 @@ function setupMainCommand(program) {
24363
24396
  stdio: "inherit",
24364
24397
  cwd: process.cwd()
24365
24398
  });
24399
+ process.removeAllListeners("SIGINT");
24400
+ process.removeAllListeners("SIGTERM");
24401
+ let childExited = false;
24402
+ const signalHandler = (signal) => {
24403
+ if (!childExited && child.pid) {
24404
+ try {
24405
+ process.kill(child.pid, signal);
24406
+ } catch (err) {
24407
+ }
24408
+ }
24409
+ };
24410
+ process.on("SIGINT", signalHandler);
24411
+ process.on("SIGTERM", signalHandler);
24366
24412
  child.on("exit", (code) => {
24413
+ childExited = true;
24414
+ process.removeListener("SIGINT", signalHandler);
24415
+ process.removeListener("SIGTERM", signalHandler);
24367
24416
  process.exit(code || 0);
24368
24417
  });
24369
24418
  child.on("error", (error) => {
24419
+ childExited = true;
24420
+ process.removeListener("SIGINT", signalHandler);
24421
+ process.removeListener("SIGTERM", signalHandler);
24370
24422
  console.error(chalk15__default.default.red.bold("\n\u274C Error executing run_until_completion.sh"));
24371
24423
  console.error(chalk15__default.default.red(` ${error.message}`));
24372
24424
  process.exit(1);