@tutti-os/workspace-issue-manager 0.0.59 → 0.0.60
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.
|
@@ -905,6 +905,18 @@ function resolveIssueManagerMovedTaskOrder(input) {
|
|
|
905
905
|
...tasksWithoutMoved.slice(normalizedInsertIndex)
|
|
906
906
|
];
|
|
907
907
|
}
|
|
908
|
+
async function resolveIssueManagerExecutionDirectory(input) {
|
|
909
|
+
const selected = input.selectedExecutionDirectory?.trim();
|
|
910
|
+
if (selected) {
|
|
911
|
+
return selected;
|
|
912
|
+
}
|
|
913
|
+
try {
|
|
914
|
+
const defaultSelection = await input.feature.executionDirectoryPicker?.service?.getDefaultSelection?.();
|
|
915
|
+
return defaultSelection?.path?.trim() || null;
|
|
916
|
+
} catch {
|
|
917
|
+
return null;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
908
920
|
function createIssueManagerControllerActions(input) {
|
|
909
921
|
const {
|
|
910
922
|
copy,
|
|
@@ -1302,12 +1314,14 @@ function createIssueManagerControllerActions(input) {
|
|
|
1302
1314
|
}
|
|
1303
1315
|
setIsRunningTask(true);
|
|
1304
1316
|
try {
|
|
1317
|
+
const executionDirectory = await resolveIssueManagerExecutionDirectory({
|
|
1318
|
+
feature,
|
|
1319
|
+
selectedExecutionDirectory: nodeState.selectedExecutionDirectory
|
|
1320
|
+
});
|
|
1305
1321
|
trackIssueManagerAnalytics(feature, {
|
|
1306
1322
|
name: "issue_manager.task_run_initiated",
|
|
1307
1323
|
params: {
|
|
1308
|
-
hasExecutionDirectory: Boolean(
|
|
1309
|
-
nodeState.selectedExecutionDirectory?.trim()
|
|
1310
|
-
),
|
|
1324
|
+
hasExecutionDirectory: Boolean(executionDirectory),
|
|
1311
1325
|
issueId: currentIssueDetail.issue.issueId,
|
|
1312
1326
|
provider: runPlan.provider,
|
|
1313
1327
|
taskId: currentTaskDetail?.task.taskId ?? null
|
|
@@ -1317,7 +1331,7 @@ function createIssueManagerControllerActions(input) {
|
|
|
1317
1331
|
feature,
|
|
1318
1332
|
issue: currentIssueDetail.issue,
|
|
1319
1333
|
provider: runPlan.provider,
|
|
1320
|
-
executionDirectory
|
|
1334
|
+
executionDirectory,
|
|
1321
1335
|
task: currentTaskDetail?.task,
|
|
1322
1336
|
workspaceId
|
|
1323
1337
|
});
|
|
@@ -1367,6 +1381,10 @@ function createIssueManagerControllerActions(input) {
|
|
|
1367
1381
|
}
|
|
1368
1382
|
setIsRunningTask(true);
|
|
1369
1383
|
try {
|
|
1384
|
+
const executionDirectory = await resolveIssueManagerExecutionDirectory({
|
|
1385
|
+
feature,
|
|
1386
|
+
selectedExecutionDirectory: nodeState.selectedExecutionDirectory
|
|
1387
|
+
});
|
|
1370
1388
|
trackIssueManagerAnalytics(feature, {
|
|
1371
1389
|
name: "issue_manager.issue_breakdown_initiated",
|
|
1372
1390
|
params: {
|
|
@@ -1375,9 +1393,7 @@ function createIssueManagerControllerActions(input) {
|
|
|
1375
1393
|
}
|
|
1376
1394
|
});
|
|
1377
1395
|
const result = await breakdownLauncher.startBreakdown({
|
|
1378
|
-
...
|
|
1379
|
-
executionDirectory: nodeState.selectedExecutionDirectory.trim()
|
|
1380
|
-
} : {},
|
|
1396
|
+
...executionDirectory ? { executionDirectory } : {},
|
|
1381
1397
|
issueDetail: currentIssueDetail,
|
|
1382
1398
|
provider: breakdownPlan.provider,
|
|
1383
1399
|
workspaceId
|
|
@@ -6721,4 +6737,4 @@ export {
|
|
|
6721
6737
|
IssueManagerNode,
|
|
6722
6738
|
IssueManagerNodeHeader
|
|
6723
6739
|
};
|
|
6724
|
-
//# sourceMappingURL=chunk-
|
|
6740
|
+
//# sourceMappingURL=chunk-RTFQ2N6U.js.map
|