@kenkaiiii/ggcoder 4.3.206 → 4.3.208
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/cli.js +10 -7
- package/dist/cli.js.map +1 -1
- package/dist/core/goal-controller.js +13 -13
- package/dist/core/goal-controller.js.map +1 -1
- package/dist/core/goal-controller.test.js +54 -12
- package/dist/core/goal-controller.test.js.map +1 -1
- package/dist/core/goal-worker-dev-server-lifecycle.test.d.ts +2 -0
- package/dist/core/goal-worker-dev-server-lifecycle.test.d.ts.map +1 -0
- package/dist/core/goal-worker-dev-server-lifecycle.test.js +68 -0
- package/dist/core/goal-worker-dev-server-lifecycle.test.js.map +1 -0
- package/dist/core/goal-worker.d.ts +7 -3
- package/dist/core/goal-worker.d.ts.map +1 -1
- package/dist/core/goal-worker.js +15 -5
- package/dist/core/goal-worker.js.map +1 -1
- package/dist/core/goal-worker.test.js +19 -1
- package/dist/core/goal-worker.test.js.map +1 -1
- package/dist/core/model-registry.test.js +51 -1
- package/dist/core/model-registry.test.js.map +1 -1
- package/dist/core/process-manager-dev-server-repro.test.d.ts +2 -0
- package/dist/core/process-manager-dev-server-repro.test.d.ts.map +1 -0
- package/dist/core/process-manager-dev-server-repro.test.js +100 -0
- package/dist/core/process-manager-dev-server-repro.test.js.map +1 -0
- package/dist/core/process-manager.js +2 -2
- package/dist/core/process-manager.js.map +1 -1
- package/dist/core/prompt-commands.d.ts.map +1 -1
- package/dist/core/prompt-commands.js +2 -1
- package/dist/core/prompt-commands.js.map +1 -1
- package/dist/core/prompt-commands.test.js +2 -0
- package/dist/core/prompt-commands.test.js.map +1 -1
- package/dist/core/repomap.js +8 -1
- package/dist/core/repomap.js.map +1 -1
- package/dist/core/repomap.test.js +32 -0
- package/dist/core/repomap.test.js.map +1 -1
- package/dist/system-prompt.d.ts.map +1 -1
- package/dist/system-prompt.js +1 -0
- package/dist/system-prompt.js.map +1 -1
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +22 -12
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/edit.test.js +29 -6
- package/dist/tools/edit.test.js.map +1 -1
- package/dist/ui/App.d.ts +39 -4
- package/dist/ui/App.d.ts.map +1 -1
- package/dist/ui/App.js +216 -147
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-state-persistence.test.js +80 -6
- package/dist/ui/app-state-persistence.test.js.map +1 -1
- package/dist/ui/components/GoalOverlay.d.ts +54 -1
- package/dist/ui/components/GoalOverlay.d.ts.map +1 -1
- package/dist/ui/components/GoalOverlay.js +392 -53
- package/dist/ui/components/GoalOverlay.js.map +1 -1
- package/dist/ui/components/InputArea.d.ts.map +1 -1
- package/dist/ui/components/InputArea.js +38 -1
- package/dist/ui/components/InputArea.js.map +1 -1
- package/dist/ui/components/InputArea.test.d.ts +2 -0
- package/dist/ui/components/InputArea.test.d.ts.map +1 -0
- package/dist/ui/components/InputArea.test.js +79 -0
- package/dist/ui/components/InputArea.test.js.map +1 -0
- package/dist/ui/components/ToolExecution.d.ts.map +1 -1
- package/dist/ui/components/ToolExecution.js +2 -2
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/goal-events.d.ts +88 -1
- package/dist/ui/goal-events.d.ts.map +1 -1
- package/dist/ui/goal-events.js +249 -28
- package/dist/ui/goal-events.js.map +1 -1
- package/dist/ui/goal-events.test.js +89 -4
- package/dist/ui/goal-events.test.js.map +1 -1
- package/dist/ui/goal-overlay.test.js +155 -1
- package/dist/ui/goal-overlay.test.js.map +1 -1
- package/dist/ui/render.d.ts +3 -1
- package/dist/ui/render.d.ts.map +1 -1
- package/dist/ui/render.js +2 -0
- package/dist/ui/render.js.map +1 -1
- package/dist/ui/scroll-stabilization.test.js +49 -2
- package/dist/ui/scroll-stabilization.test.js.map +1 -1
- package/dist/ui/slash-command-images.test.d.ts +2 -0
- package/dist/ui/slash-command-images.test.d.ts.map +1 -0
- package/dist/ui/slash-command-images.test.js +47 -0
- package/dist/ui/slash-command-images.test.js.map +1 -0
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { formatGoalTerminalProgress, shouldHideHistoryForOverlayView, } from "./App.js";
|
|
2
|
+
import { buildGoalSummaryRows, formatGoalTerminalProgress, routePromptCommandInput, shouldHideHistoryForOverlayView, shouldHideStaticItemsForOverlayView, shouldStabilizeOverlayPaneRerender, } from "./App.js";
|
|
3
3
|
function goalRun(overrides = {}) {
|
|
4
4
|
return {
|
|
5
5
|
id: "run-1",
|
|
@@ -20,12 +20,31 @@ function goalRun(overrides = {}) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
describe("App TUI state persistence helpers", () => {
|
|
23
|
-
it("
|
|
24
|
-
expect(shouldHideHistoryForOverlayView(true, false)).toBe(
|
|
23
|
+
it("keeps Static history mounted for overlay panes so scrollback is not rewritten", () => {
|
|
24
|
+
expect(shouldHideHistoryForOverlayView(true, false)).toBe(false);
|
|
25
25
|
expect(shouldHideHistoryForOverlayView(true, true)).toBe(false);
|
|
26
26
|
expect(shouldHideHistoryForOverlayView(false, false)).toBe(false);
|
|
27
27
|
});
|
|
28
|
-
it("
|
|
28
|
+
it("keeps active Goal pane switches from blanking Static history", () => {
|
|
29
|
+
const hideHistory = shouldHideHistoryForOverlayView(true, true);
|
|
30
|
+
const stabilizeStatic = shouldStabilizeOverlayPaneRerender({
|
|
31
|
+
overlayPane: "goal",
|
|
32
|
+
isAgentRunning: true,
|
|
33
|
+
});
|
|
34
|
+
expect(hideHistory).toBe(false);
|
|
35
|
+
expect(stabilizeStatic).toBe(true);
|
|
36
|
+
expect(shouldHideStaticItemsForOverlayView({
|
|
37
|
+
shouldHideHistoryForOverlay: hideHistory,
|
|
38
|
+
stabilizeOverlayPaneRerender: stabilizeStatic,
|
|
39
|
+
})).toBe(false);
|
|
40
|
+
});
|
|
41
|
+
it("persists the visible completion footer across idle pane remounts", () => {
|
|
42
|
+
const doneStatus = { durationMs: 3200, toolsUsed: [], verb: "Mulled it over for" };
|
|
43
|
+
const sessionStore = { doneStatus: null };
|
|
44
|
+
sessionStore.doneStatus = doneStatus;
|
|
45
|
+
expect(sessionStore.doneStatus).toEqual(doneStatus);
|
|
46
|
+
});
|
|
47
|
+
it("models the regression: goal progress history remains rendered while a pane is open", () => {
|
|
29
48
|
const goalProgress = {
|
|
30
49
|
kind: "goal_progress",
|
|
31
50
|
phase: "terminal",
|
|
@@ -40,17 +59,72 @@ describe("App TUI state persistence helpers", () => {
|
|
|
40
59
|
{ kind: "assistant", text: "Goal run summary stays visible", id: "assistant-1" },
|
|
41
60
|
];
|
|
42
61
|
const itemsRenderedDuringGoalPane = shouldHideHistoryForOverlayView(true, false) ? [] : history;
|
|
43
|
-
expect(itemsRenderedDuringGoalPane).toEqual(
|
|
62
|
+
expect(itemsRenderedDuringGoalPane).toEqual(history);
|
|
44
63
|
expect(history).toContain(goalProgress);
|
|
45
64
|
});
|
|
65
|
+
it("routes slash prompt commands with pasted multi-line args into the command path", () => {
|
|
66
|
+
const pastedArgs = "explain this snippet:\nconst a = 1;\nconsole.log(a);";
|
|
67
|
+
const route = routePromptCommandInput(`/scan ${pastedArgs}`);
|
|
68
|
+
expect(route).toMatchObject({ cmdName: "scan", cmdArgs: pastedArgs });
|
|
69
|
+
expect(route?.fullPrompt).toContain("# Scan: Confirmed Dead Code Review");
|
|
70
|
+
expect(route?.fullPrompt).toContain(`## User Instructions\n\n${pastedArgs}`);
|
|
71
|
+
});
|
|
46
72
|
it("formats terminal goal progress as durable history-safe rows", () => {
|
|
47
|
-
expect(formatGoalTerminalProgress(goalRun({
|
|
73
|
+
expect(formatGoalTerminalProgress(goalRun({
|
|
74
|
+
status: "passed",
|
|
75
|
+
successCriteria: ["Verifier proves the Goal end-to-end"],
|
|
76
|
+
tasks: [
|
|
77
|
+
{ id: "task-1", title: "Implement", prompt: "Do it", status: "done", attempts: 1 },
|
|
78
|
+
],
|
|
79
|
+
evidence: [
|
|
80
|
+
{
|
|
81
|
+
id: "evidence-1",
|
|
82
|
+
kind: "command",
|
|
83
|
+
label: "Verifier pass",
|
|
84
|
+
path: "artifacts/goal-pass.log",
|
|
85
|
+
createdAt: "2024-01-01T00:00:00.000Z",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
verifier: {
|
|
89
|
+
description: "Goal verifier",
|
|
90
|
+
command: "pnpm test",
|
|
91
|
+
lastResult: {
|
|
92
|
+
status: "pass",
|
|
93
|
+
summary: "passed",
|
|
94
|
+
command: "pnpm test",
|
|
95
|
+
exitCode: 0,
|
|
96
|
+
outputPath: "artifacts/goal-pass.log",
|
|
97
|
+
checkedAt: "2024-01-01T00:00:00.000Z",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
}))).toMatchObject({
|
|
48
101
|
kind: "goal_progress",
|
|
49
102
|
phase: "terminal",
|
|
50
103
|
title: "Goal passed: Persist goal output",
|
|
51
104
|
status: "passed",
|
|
105
|
+
summaryRows: [
|
|
106
|
+
{ label: "Tasks", value: "1/1 done" },
|
|
107
|
+
{ label: "Verifier", value: "pass", detail: "artifacts/goal-pass.log" },
|
|
108
|
+
{ label: "Evidence", value: "1 recorded", detail: "artifacts/goal-pass.log" },
|
|
109
|
+
{ label: "Criteria", value: "1 checked" },
|
|
110
|
+
],
|
|
52
111
|
});
|
|
53
112
|
expect(formatGoalTerminalProgress(goalRun({ status: "running" }))).toBeNull();
|
|
54
113
|
});
|
|
114
|
+
it("builds a compact terminal Goal summary with blocker context", () => {
|
|
115
|
+
expect(buildGoalSummaryRows(goalRun({
|
|
116
|
+
status: "blocked",
|
|
117
|
+
blockers: ["Connect an unlocked iPhone with Developer Mode enabled."],
|
|
118
|
+
tasks: [
|
|
119
|
+
{ id: "task-1", title: "Implement", prompt: "Do it", status: "done", attempts: 1 },
|
|
120
|
+
{ id: "task-2", title: "Capture", prompt: "Capture", status: "blocked", attempts: 0 },
|
|
121
|
+
],
|
|
122
|
+
}))).toEqual([
|
|
123
|
+
{ label: "Tasks", value: "1/2 done", detail: "1 blocked" },
|
|
124
|
+
{ label: "Verifier", value: "missing" },
|
|
125
|
+
{ label: "Evidence", value: "0 recorded" },
|
|
126
|
+
{ label: "Blocked on", value: "Connect an unlocked iPhone with Developer Mode enabled." },
|
|
127
|
+
]);
|
|
128
|
+
});
|
|
55
129
|
});
|
|
56
130
|
//# sourceMappingURL=app-state-persistence.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state-persistence.test.js","sourceRoot":"","sources":["../../src/ui/app-state-persistence.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,
|
|
1
|
+
{"version":3,"file":"app-state-persistence.test.js","sourceRoot":"","sources":["../../src/ui/app-state-persistence.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,uBAAuB,EACvB,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,GAGnC,MAAM,UAAU,CAAC;AAGlB,SAAS,OAAO,CAAC,YAA8B,EAAE;IAC/C,OAAO;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,0BAA0B;QACrC,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,cAAc;QAC3B,eAAe,EAAE,EAAE;QACnB,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,EAAE;QAChB,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,GAAG,SAAS;KACb,CAAC;AACJ,C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AC,0BAA0B,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAChF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6DAA6D,EAAE,GAAG,EAAE;QACrE,MAAM,CACJ,oBAAoB,CAClB,OAAO,CAAC;YACN,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,CAAC,yDAAyD,CAAC;YACrE,KAAK,EAAE;gBACL,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE;gBAClF,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE;aACtF;SACF,CAAC,CACH,CACF,CAAC,OAAO,CAAC;YACR,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE;YAC1D,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;YACvC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE;YAC1C,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,yDAAyD,EAAE;SAC1F,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GoalRun } from "../../core/goal-store.js";
|
|
1
|
+
import { type GoalRun, type GoalRunStatus } from "../../core/goal-store.js";
|
|
2
2
|
export interface GoalOverlayProps {
|
|
3
3
|
cwd: string;
|
|
4
4
|
onClose: () => void;
|
|
@@ -11,9 +11,62 @@ export declare function clampGoalSelectedIndex(index: number, length: number): n
|
|
|
11
11
|
export declare function formatGoalPrerequisiteSummary(run: GoalRun): string;
|
|
12
12
|
export declare function formatGoalTaskSummary(run: GoalRun): string;
|
|
13
13
|
export declare function formatGoalVerifierSummary(run: GoalRun): string;
|
|
14
|
+
export declare function getGoalReadinessText(run: GoalRun): string;
|
|
15
|
+
export declare function formatGoalProgressText(run: GoalRun): string;
|
|
14
16
|
export declare function getGoalStatusCountsText(runs: readonly GoalRun[]): string;
|
|
17
|
+
export declare function clampGoalScrollOffset(offset: number, itemCount: number, viewportRows: number): number;
|
|
18
|
+
export declare function getGoalOverlayViewportRows(terminalRows: number, reservedRows?: number): number;
|
|
19
|
+
export declare function getGoalScrollOffsetForSelection({ selectedIndex, currentOffset, itemCount, viewportRows, }: {
|
|
20
|
+
selectedIndex: number;
|
|
21
|
+
currentOffset: number;
|
|
22
|
+
itemCount: number;
|
|
23
|
+
viewportRows: number;
|
|
24
|
+
}): number;
|
|
25
|
+
export declare function getGoalDetailRowCount(run: GoalRun): number;
|
|
26
|
+
export declare function getGoalCardExtraRowCount(run: GoalRun): number;
|
|
27
|
+
export declare function getGoalListCardRowCount({ run }: {
|
|
28
|
+
run: GoalRun;
|
|
29
|
+
}): number;
|
|
30
|
+
export interface GoalListWindow {
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
hiddenBefore: number;
|
|
34
|
+
hiddenAfter: number;
|
|
35
|
+
rowsUsed: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function getGoalListWindow({ runs, selectedIndex, viewportRows, }: {
|
|
38
|
+
runs: readonly GoalRun[];
|
|
39
|
+
selectedIndex: number;
|
|
40
|
+
viewportRows: number;
|
|
41
|
+
}): GoalListWindow;
|
|
42
|
+
export declare function getGoalExpandedDetailViewportRows({ viewportRows, cardExtraRows, }: {
|
|
43
|
+
viewportRows: number;
|
|
44
|
+
cardExtraRows: number;
|
|
45
|
+
}): number;
|
|
46
|
+
export declare function clampGoalDetailScrollOffset(offset: number, detailRowCount: number, viewportRows: number): number;
|
|
47
|
+
export declare function getGoalDetailScrollWindow({ detailRowCount, scrollOffset, viewportRows, }: {
|
|
48
|
+
detailRowCount: number;
|
|
49
|
+
scrollOffset: number;
|
|
50
|
+
viewportRows: number;
|
|
51
|
+
}): {
|
|
52
|
+
start: number;
|
|
53
|
+
end: number;
|
|
54
|
+
hiddenBefore: number;
|
|
55
|
+
hiddenAfter: number;
|
|
56
|
+
};
|
|
15
57
|
export declare function sortGoalRunsForOverlay(runs: readonly GoalRun[]): GoalRun[];
|
|
16
58
|
export declare function shouldPersistGoalOverlayRuns(previousRuns: readonly GoalRun[], nextRuns: readonly GoalRun[]): boolean;
|
|
59
|
+
export declare function getGoalCardStatusColor({ status, selected, primaryColor, textColor, }: {
|
|
60
|
+
status: GoalRunStatus;
|
|
61
|
+
selected: boolean;
|
|
62
|
+
primaryColor: string;
|
|
63
|
+
textColor: string;
|
|
64
|
+
}): string;
|
|
65
|
+
export declare function getGoalCardTitleColor({ selected, primaryColor, textColor, }: {
|
|
66
|
+
selected: boolean;
|
|
67
|
+
primaryColor: string;
|
|
68
|
+
textColor: string;
|
|
69
|
+
}): string;
|
|
17
70
|
export declare function getGoalDetailTaskHeading(run: GoalRun): string;
|
|
18
71
|
export declare function getGoalUserPrerequisiteHeading(run: GoalRun): string | null;
|
|
19
72
|
export declare function formatGoalTaskDetailSummary(summary: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoalOverlay.d.ts","sourceRoot":"","sources":["../../../src/ui/components/GoalOverlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GoalOverlay.d.ts","sourceRoot":"","sources":["../../../src/ui/components/GoalOverlay.tsx"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,OAAO,EACZ,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAqBlC,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,GAAG,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