techunter 0.1.3 → 0.1.5
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/README.md +1 -1
- package/dist/index.js +13 -3
- package/dist/mcp.js +12 -2
- package/package.json +4 -3
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1005,7 +1005,7 @@ async function runSubAgentLoop(config, systemPrompt, userMessage, toolNames) {
|
|
|
1005
1005
|
{ role: "system", content: systemPrompt },
|
|
1006
1006
|
{ role: "user", content: userMessage }
|
|
1007
1007
|
];
|
|
1008
|
-
const MAX_ITERATIONS =
|
|
1008
|
+
const MAX_ITERATIONS = 100;
|
|
1009
1009
|
let iterations = 0;
|
|
1010
1010
|
for (; ; ) {
|
|
1011
1011
|
if (++iterations > MAX_ITERATIONS) {
|
|
@@ -1141,6 +1141,11 @@ async function run(_input, config) {
|
|
|
1141
1141
|
spinner.stop();
|
|
1142
1142
|
return `Commit failed: ${err.message}`;
|
|
1143
1143
|
}
|
|
1144
|
+
if (isSelfSubmit) {
|
|
1145
|
+
setConfig({ taskState: { activeIssueNumber: void 0, baseCommit: void 0 } });
|
|
1146
|
+
return `Task #${issueNumber} committed.
|
|
1147
|
+
Commit: "${commitMessage.trim()}"`;
|
|
1148
|
+
}
|
|
1144
1149
|
spinner = ora2("Creating pull request\u2026").start();
|
|
1145
1150
|
let prUrl;
|
|
1146
1151
|
try {
|
|
@@ -1198,6 +1203,11 @@ async function execute(input3, config) {
|
|
|
1198
1203
|
} catch (err) {
|
|
1199
1204
|
return `Commit failed: ${err.message}`;
|
|
1200
1205
|
}
|
|
1206
|
+
if (isSelfSubmit) {
|
|
1207
|
+
setConfig({ taskState: { activeIssueNumber: void 0, baseCommit: void 0 } });
|
|
1208
|
+
return `Task #${issueNumber} committed.
|
|
1209
|
+
Commit: "${commitMessage}"`;
|
|
1210
|
+
}
|
|
1201
1211
|
let prUrl;
|
|
1202
1212
|
try {
|
|
1203
1213
|
const prBody = [
|
|
@@ -1551,7 +1561,7 @@ List each file path with CREATE/MODIFY, and one sentence describing what changes
|
|
|
1551
1561
|
What the feature/fix receives as input and what it produces or affects.
|
|
1552
1562
|
|
|
1553
1563
|
### \u9A8C\u6536\u6807\u51C6
|
|
1554
|
-
Checkbox list of testable conditions.
|
|
1564
|
+
Checkbox list of only the most essential testable conditions. Maximum 3 items \u2014 include only what is strictly necessary to verify the task is done.
|
|
1555
1565
|
`.trim();
|
|
1556
1566
|
|
|
1557
1567
|
// src/tools/new-task/guide-generator.ts
|
|
@@ -2801,7 +2811,7 @@ async function runAgentLoop(config, messages) {
|
|
|
2801
2811
|
"5. To reject: write a structured rejection comment and call reject."
|
|
2802
2812
|
].join("\n")
|
|
2803
2813
|
};
|
|
2804
|
-
const MAX_ITERATIONS =
|
|
2814
|
+
const MAX_ITERATIONS = 100;
|
|
2805
2815
|
let iterations = 0;
|
|
2806
2816
|
for (; ; ) {
|
|
2807
2817
|
if (++iterations > MAX_ITERATIONS) {
|
package/dist/mcp.js
CHANGED
|
@@ -721,7 +721,7 @@ async function runSubAgentLoop(config, systemPrompt, userMessage, toolNames) {
|
|
|
721
721
|
{ role: "system", content: systemPrompt },
|
|
722
722
|
{ role: "user", content: userMessage }
|
|
723
723
|
];
|
|
724
|
-
const MAX_ITERATIONS =
|
|
724
|
+
const MAX_ITERATIONS = 100;
|
|
725
725
|
let iterations = 0;
|
|
726
726
|
for (; ; ) {
|
|
727
727
|
if (++iterations > MAX_ITERATIONS) {
|
|
@@ -857,6 +857,11 @@ async function run(_input, config) {
|
|
|
857
857
|
spinner.stop();
|
|
858
858
|
return `Commit failed: ${err.message}`;
|
|
859
859
|
}
|
|
860
|
+
if (isSelfSubmit) {
|
|
861
|
+
setConfig({ taskState: { activeIssueNumber: void 0, baseCommit: void 0 } });
|
|
862
|
+
return `Task #${issueNumber} committed.
|
|
863
|
+
Commit: "${commitMessage.trim()}"`;
|
|
864
|
+
}
|
|
860
865
|
spinner = ora("Creating pull request\u2026").start();
|
|
861
866
|
let prUrl;
|
|
862
867
|
try {
|
|
@@ -914,6 +919,11 @@ async function execute(input, config) {
|
|
|
914
919
|
} catch (err) {
|
|
915
920
|
return `Commit failed: ${err.message}`;
|
|
916
921
|
}
|
|
922
|
+
if (isSelfSubmit) {
|
|
923
|
+
setConfig({ taskState: { activeIssueNumber: void 0, baseCommit: void 0 } });
|
|
924
|
+
return `Task #${issueNumber} committed.
|
|
925
|
+
Commit: "${commitMessage}"`;
|
|
926
|
+
}
|
|
917
927
|
let prUrl;
|
|
918
928
|
try {
|
|
919
929
|
const prBody = [
|
|
@@ -1267,7 +1277,7 @@ List each file path with CREATE/MODIFY, and one sentence describing what changes
|
|
|
1267
1277
|
What the feature/fix receives as input and what it produces or affects.
|
|
1268
1278
|
|
|
1269
1279
|
### \u9A8C\u6536\u6807\u51C6
|
|
1270
|
-
Checkbox list of testable conditions.
|
|
1280
|
+
Checkbox list of only the most essential testable conditions. Maximum 3 items \u2014 include only what is strictly necessary to verify the task is done.
|
|
1271
1281
|
`.trim();
|
|
1272
1282
|
|
|
1273
1283
|
// src/tools/new-task/guide-generator.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "techunter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "AI-powered task distribution CLI for development teams",
|
|
5
5
|
"author": "Techunter Contributors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"build": "tsup",
|
|
26
26
|
"dev": "tsx src/index.ts",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
|
-
"prepublishOnly": "npm run build && npm run typecheck"
|
|
28
|
+
"prepublishOnly": "npm run build && npm run typecheck",
|
|
29
|
+
"release": "npm version patch && npm publish && git push --follow-tags"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
@@ -62,4 +63,4 @@
|
|
|
62
63
|
"tasks",
|
|
63
64
|
"developer-tools"
|
|
64
65
|
]
|
|
65
|
-
}
|
|
66
|
+
}
|