@rallycry/conveyor-agent 7.1.8 → 7.1.9
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.
|
@@ -555,6 +555,15 @@ var ModeController = class {
|
|
|
555
555
|
this._hasExitedPlanMode = true;
|
|
556
556
|
return { type: "restart_query", newMode: "building" };
|
|
557
557
|
}
|
|
558
|
+
if (this._runnerMode === "task" && newMode === "auto") {
|
|
559
|
+
this._mode = newMode;
|
|
560
|
+
this._hasExitedPlanMode = true;
|
|
561
|
+
return { type: "restart_query", newMode: "auto" };
|
|
562
|
+
}
|
|
563
|
+
if (this._mode === "auto" && this._hasExitedPlanMode && newMode === "building") {
|
|
564
|
+
this._mode = newMode;
|
|
565
|
+
return { type: "noop" };
|
|
566
|
+
}
|
|
558
567
|
if (this._runnerMode !== "pm") return { type: "noop" };
|
|
559
568
|
this._mode = newMode;
|
|
560
569
|
this.updateExitedPlanModeFlag(newMode);
|
|
@@ -1881,6 +1890,31 @@ function formatRepoRefs(repoRefs) {
|
|
|
1881
1890
|
}
|
|
1882
1891
|
return parts;
|
|
1883
1892
|
}
|
|
1893
|
+
function formatProjectObjectives(objectives) {
|
|
1894
|
+
const parts = [];
|
|
1895
|
+
parts.push(`
|
|
1896
|
+
## Project Objectives`);
|
|
1897
|
+
for (const obj of objectives) {
|
|
1898
|
+
const dates = `${obj.startDate.split("T")[0]} to ${obj.endDate.split("T")[0]}`;
|
|
1899
|
+
parts.push(`- **${obj.name}** (${dates})${obj.description ? ": " + obj.description : ""}`);
|
|
1900
|
+
}
|
|
1901
|
+
return parts;
|
|
1902
|
+
}
|
|
1903
|
+
function formatRecentRelatedTasks(tasks) {
|
|
1904
|
+
const parts = [];
|
|
1905
|
+
parts.push(`
|
|
1906
|
+
## Recently Completed Related Tasks`);
|
|
1907
|
+
parts.push(
|
|
1908
|
+
`These tasks in the same domain were recently completed. Use them for context on recent changes and patterns.
|
|
1909
|
+
`
|
|
1910
|
+
);
|
|
1911
|
+
for (const task of tasks) {
|
|
1912
|
+
const tags = task.tagNames.length > 0 ? ` [${task.tagNames.join(", ")}]` : "";
|
|
1913
|
+
const pr = task.githubPRUrl ? ` \u2014 PR: ${task.githubPRUrl}` : "";
|
|
1914
|
+
parts.push(`- **${task.title}**${tags}${pr}`);
|
|
1915
|
+
}
|
|
1916
|
+
return parts;
|
|
1917
|
+
}
|
|
1884
1918
|
function formatIncidents(incidents) {
|
|
1885
1919
|
const parts = [];
|
|
1886
1920
|
parts.push(`
|
|
@@ -1929,6 +1963,12 @@ ${context.plan}`);
|
|
|
1929
1963
|
}
|
|
1930
1964
|
const tagSection = await resolveTaskTagContext(context);
|
|
1931
1965
|
if (tagSection) parts.push(tagSection);
|
|
1966
|
+
if (context.projectObjectives && context.projectObjectives.length > 0) {
|
|
1967
|
+
parts.push(...formatProjectObjectives(context.projectObjectives));
|
|
1968
|
+
}
|
|
1969
|
+
if (context.recentRelatedTasks && context.recentRelatedTasks.length > 0) {
|
|
1970
|
+
parts.push(...formatRecentRelatedTasks(context.recentRelatedTasks));
|
|
1971
|
+
}
|
|
1932
1972
|
if (context.incidents && context.incidents.length > 0) {
|
|
1933
1973
|
parts.push(...formatIncidents(context.incidents));
|
|
1934
1974
|
}
|
|
@@ -5953,6 +5993,7 @@ var SessionRunner = class _SessionRunner {
|
|
|
5953
5993
|
taskTagIds: ctx.taskTagIds ?? void 0,
|
|
5954
5994
|
projectObjectives: ctx.projectObjectives ?? void 0,
|
|
5955
5995
|
incidents: ctx.incidents ?? void 0,
|
|
5996
|
+
recentRelatedTasks: ctx.recentRelatedTasks ?? void 0,
|
|
5956
5997
|
agentSettings: ctx.agentSettings ?? null,
|
|
5957
5998
|
agentMode: ctx.agentMode ?? void 0,
|
|
5958
5999
|
isAuto: ctx.isAuto
|
|
@@ -7567,4 +7608,4 @@ export {
|
|
|
7567
7608
|
loadForwardPorts,
|
|
7568
7609
|
loadConveyorConfig
|
|
7569
7610
|
};
|
|
7570
|
-
//# sourceMappingURL=chunk-
|
|
7611
|
+
//# sourceMappingURL=chunk-5CGROG7V.js.map
|