task-o-matic-core 0.1.6 → 0.1.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-review.d.ts","sourceRoot":"","sources":["../../src/lib/task-review.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"task-review.d.ts","sourceRoot":"","sources":["../../src/lib/task-review.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,UAAU,CAAC;AAQ9C;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,YAAY,EACpB,MAAM,GAAE,CACN,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAa,GAC3D,OAAO,CAAC,YAAY,CAAC,CAqNvB"}
|
package/dist/lib/task-review.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.executeReviewPhase = executeReviewPhase;
|
|
4
4
|
const logger_1 = require("./logger");
|
|
5
5
|
const ai_service_factory_1 = require("../utils/ai-service-factory");
|
|
6
|
+
const model_executor_parser_1 = require("../utils/model-executor-parser");
|
|
6
7
|
const child_process_1 = require("child_process");
|
|
7
8
|
const util_1 = require("util");
|
|
8
9
|
const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
@@ -56,15 +57,22 @@ async function executeReviewPhase(task, config, execFn = execAsync) {
|
|
|
56
57
|
success: true,
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
// Parse executor and model from reviewModel string
|
|
60
|
+
// Parse executor and model from reviewModel string (same logic as task-planning.ts)
|
|
60
61
|
let reviewExecutor = reviewTool;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
let reviewModelName = reviewModel;
|
|
63
|
+
// Only parse reviewModel for executor if reviewTool is NOT explicitly set
|
|
64
|
+
if (reviewModel && !reviewTool) {
|
|
65
|
+
const result = (0, model_executor_parser_1.parseExecutorModelString)(reviewModel);
|
|
66
|
+
if (result.executor) {
|
|
67
|
+
reviewExecutor = result.executor;
|
|
68
|
+
}
|
|
69
|
+
reviewModelName = result.model;
|
|
70
|
+
}
|
|
71
|
+
else if (reviewModel) {
|
|
72
|
+
// If reviewTool IS set, just use reviewModel as the model name
|
|
73
|
+
const result = (0, model_executor_parser_1.parseExecutorModelString)(reviewModel);
|
|
74
|
+
reviewModelName = result.model;
|
|
64
75
|
}
|
|
65
|
-
const reviewModelName = reviewModel
|
|
66
|
-
? reviewModel.split(":")[1] || reviewModel
|
|
67
|
-
: undefined;
|
|
68
76
|
// Map executor to AI provider
|
|
69
77
|
let aiProvider;
|
|
70
78
|
if (reviewExecutor) {
|