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 +62 -10
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/cli.mjs +62 -10
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/templates/scripts/install_requirements.sh +3 -4
- package/dist/templates/scripts/run_until_completion.sh +163 -14
- package/package.json +1 -1
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,24 @@ 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
|
+
Important: You need to get maximum 3 tasks done in one go.
|
|
14897
|
+
|
|
14883
14898
|
## Agent-Specific Instructions
|
|
14884
14899
|
|
|
14885
14900
|
### {{SUBAGENT}} Configuration
|
|
@@ -14994,6 +15009,24 @@ python -m pytest tests/ --cov=src --cov-report=term-missing
|
|
|
14994
15009
|
- **Code Quality:** Focus on production-ready, well-documented code
|
|
14995
15010
|
- **Testing:** Comprehensive unit and integration tests required
|
|
14996
15011
|
|
|
15012
|
+
## Kanban Task Management
|
|
15013
|
+
|
|
15014
|
+
\`\`\`bash
|
|
15015
|
+
# List tasks
|
|
15016
|
+
./.juno_task/scripts/kanban.sh list --limit 5 --sort asc
|
|
15017
|
+
./.juno_task/scripts/kanban.sh list --status [backlog|todo|in_progress|done] --sort asc
|
|
15018
|
+
|
|
15019
|
+
# Task operations
|
|
15020
|
+
./.juno_task/scripts/kanban.sh get {TASK_ID}
|
|
15021
|
+
./.juno_task/scripts/kanban.sh mark [in_progress|done|todo] --id {TASK_ID} --response "message"
|
|
15022
|
+
./.juno_task/scripts/kanban.sh update {TASK_ID} --commit {COMMIT_HASH}
|
|
15023
|
+
\`\`\`
|
|
15024
|
+
|
|
15025
|
+
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
|
|
15026
|
+
\`./.juno_task/scripts/kanban.sh get {TASK_ID}\`
|
|
15027
|
+
|
|
15028
|
+
|
|
15029
|
+
|
|
14997
15030
|
## Build & Test Commands
|
|
14998
15031
|
|
|
14999
15032
|
**Environment Setup:**
|
|
@@ -24327,10 +24360,29 @@ function setupMainCommand(program) {
|
|
|
24327
24360
|
stdio: "inherit",
|
|
24328
24361
|
cwd: process.cwd()
|
|
24329
24362
|
});
|
|
24363
|
+
process.removeAllListeners("SIGINT");
|
|
24364
|
+
process.removeAllListeners("SIGTERM");
|
|
24365
|
+
let childExited = false;
|
|
24366
|
+
const signalHandler = (signal) => {
|
|
24367
|
+
if (!childExited && child.pid) {
|
|
24368
|
+
try {
|
|
24369
|
+
process.kill(child.pid, signal);
|
|
24370
|
+
} catch (err) {
|
|
24371
|
+
}
|
|
24372
|
+
}
|
|
24373
|
+
};
|
|
24374
|
+
process.on("SIGINT", signalHandler);
|
|
24375
|
+
process.on("SIGTERM", signalHandler);
|
|
24330
24376
|
child.on("exit", (code) => {
|
|
24377
|
+
childExited = true;
|
|
24378
|
+
process.removeListener("SIGINT", signalHandler);
|
|
24379
|
+
process.removeListener("SIGTERM", signalHandler);
|
|
24331
24380
|
process.exit(code || 0);
|
|
24332
24381
|
});
|
|
24333
24382
|
child.on("error", (error) => {
|
|
24383
|
+
childExited = true;
|
|
24384
|
+
process.removeListener("SIGINT", signalHandler);
|
|
24385
|
+
process.removeListener("SIGTERM", signalHandler);
|
|
24334
24386
|
console.error(chalk15.red.bold("\n\u274C Error executing run_until_completion.sh"));
|
|
24335
24387
|
console.error(chalk15.red(` ${error.message}`));
|
|
24336
24388
|
process.exit(1);
|