gsd-pi 2.46.0-dev.f45e6dc → 2.46.1-dev.44f59e2
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 +47 -29
- package/dist/resources/extensions/claude-code-cli/index.js +25 -0
- package/dist/resources/extensions/claude-code-cli/models.js +40 -0
- package/dist/resources/extensions/claude-code-cli/package.json +11 -0
- package/dist/resources/extensions/claude-code-cli/partial-builder.js +223 -0
- package/dist/resources/extensions/claude-code-cli/readiness.js +26 -0
- package/dist/resources/extensions/claude-code-cli/sdk-types.js +8 -0
- package/dist/resources/extensions/claude-code-cli/stream-adapter.js +293 -0
- package/dist/resources/extensions/gsd/auto-start.js +9 -8
- package/dist/resources/extensions/gsd/prompts/complete-slice.md +1 -1
- package/dist/resources/extensions/gsd/prompts/guided-plan-milestone.md +2 -2
- package/dist/resources/extensions/gsd/prompts/plan-milestone.md +2 -2
- package/dist/resources/extensions/gsd/prompts/plan-slice.md +1 -1
- package/dist/resources/extensions/gsd/prompts/research-milestone.md +2 -2
- package/dist/resources/extensions/gsd/prompts/run-uat.md +2 -2
- package/dist/resources/extensions/gsd/repo-identity.js +5 -2
- package/dist/resources/extensions/gsd/state.js +29 -2
- package/dist/resources/extensions/gsd/workflow-events.js +1 -1
- package/dist/web/standalone/.next/BUILD_ID +1 -1
- package/dist/web/standalone/.next/app-path-routes-manifest.json +18 -18
- package/dist/web/standalone/.next/build-manifest.json +2 -2
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- package/dist/web/standalone/.next/server/app/_global-error.html +2 -2
- package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.html +1 -1
- package/dist/web/standalone/.next/server/app/index.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app-paths-manifest.json +18 -18
- package/dist/web/standalone/.next/server/pages/404.html +1 -1
- package/dist/web/standalone/.next/server/pages/500.html +2 -2
- package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
- package/package.json +3 -1
- package/packages/pi-coding-agent/dist/core/auth-storage.test.js +27 -2
- package/packages/pi-coding-agent/dist/core/auth-storage.test.js.map +1 -1
- package/packages/pi-coding-agent/package.json +1 -1
- package/packages/pi-coding-agent/src/core/auth-storage.test.ts +27 -2
- package/pkg/package.json +1 -1
- package/src/resources/extensions/claude-code-cli/index.ts +28 -0
- package/src/resources/extensions/claude-code-cli/models.ts +42 -0
- package/src/resources/extensions/claude-code-cli/package.json +11 -0
- package/src/resources/extensions/claude-code-cli/partial-builder.ts +258 -0
- package/src/resources/extensions/claude-code-cli/readiness.ts +30 -0
- package/src/resources/extensions/claude-code-cli/sdk-types.ts +149 -0
- package/src/resources/extensions/claude-code-cli/stream-adapter.ts +355 -0
- package/src/resources/extensions/gsd/auto-start.ts +8 -7
- package/src/resources/extensions/gsd/prompts/complete-slice.md +1 -1
- package/src/resources/extensions/gsd/prompts/guided-plan-milestone.md +2 -2
- package/src/resources/extensions/gsd/prompts/plan-milestone.md +2 -2
- package/src/resources/extensions/gsd/prompts/plan-slice.md +1 -1
- package/src/resources/extensions/gsd/prompts/research-milestone.md +2 -2
- package/src/resources/extensions/gsd/prompts/run-uat.md +2 -2
- package/src/resources/extensions/gsd/repo-identity.ts +5 -2
- package/src/resources/extensions/gsd/state.ts +33 -1
- package/src/resources/extensions/gsd/tests/inherited-repo-home-dir.test.ts +70 -0
- package/src/resources/extensions/gsd/tests/plan-slice-prompt.test.ts +40 -0
- package/src/resources/extensions/gsd/tests/run-uat.test.ts +25 -0
- package/src/resources/extensions/gsd/workflow-events.ts +1 -1
- /package/dist/web/standalone/.next/static/{9CuEqE-DGAlva1uIjyfjF → sQCECerYL5daQCVxqF23f}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{9CuEqE-DGAlva1uIjyfjF → sQCECerYL5daQCVxqF23f}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream adapter: bridges the Claude Agent SDK into GSD's streamSimple contract.
|
|
3
|
+
*
|
|
4
|
+
* The SDK runs the full agentic loop (multi-turn, tool execution, compaction)
|
|
5
|
+
* in one call. This adapter translates the SDK's streaming output into
|
|
6
|
+
* AssistantMessageEvents for TUI rendering, then strips tool-call blocks from
|
|
7
|
+
* the final AssistantMessage so GSD's agent loop doesn't try to dispatch them.
|
|
8
|
+
*/
|
|
9
|
+
import { EventStream } from "@gsd/pi-ai";
|
|
10
|
+
import { execSync } from "node:child_process";
|
|
11
|
+
import { PartialMessageBuilder, ZERO_USAGE, mapUsage } from "./partial-builder.js";
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
// Stream factory
|
|
14
|
+
// ---------------------------------------------------------------------------
|
|
15
|
+
/**
|
|
16
|
+
* Construct an AssistantMessageEventStream using EventStream directly.
|
|
17
|
+
* (The class itself is only re-exported as a type from the @gsd/pi-ai barrel.)
|
|
18
|
+
*/
|
|
19
|
+
function createAssistantStream() {
|
|
20
|
+
return new EventStream((event) => event.type === "done" || event.type === "error", (event) => {
|
|
21
|
+
if (event.type === "done")
|
|
22
|
+
return event.message;
|
|
23
|
+
if (event.type === "error")
|
|
24
|
+
return event.error;
|
|
25
|
+
throw new Error("Unexpected event type for final result");
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// Claude binary resolution
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
let cachedClaudePath = null;
|
|
32
|
+
/**
|
|
33
|
+
* Resolve the path to the system-installed `claude` binary.
|
|
34
|
+
* The SDK defaults to a bundled cli.js which doesn't exist when
|
|
35
|
+
* installed as a library — we need to point it at the real CLI.
|
|
36
|
+
*/
|
|
37
|
+
function getClaudePath() {
|
|
38
|
+
if (cachedClaudePath)
|
|
39
|
+
return cachedClaudePath;
|
|
40
|
+
try {
|
|
41
|
+
cachedClaudePath = execSync("which claude", { timeout: 5_000, stdio: "pipe" })
|
|
42
|
+
.toString()
|
|
43
|
+
.trim();
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
cachedClaudePath = "claude"; // fall back to PATH resolution
|
|
47
|
+
}
|
|
48
|
+
return cachedClaudePath;
|
|
49
|
+
}
|
|
50
|
+
// ---------------------------------------------------------------------------
|
|
51
|
+
// Prompt extraction
|
|
52
|
+
// ---------------------------------------------------------------------------
|
|
53
|
+
/**
|
|
54
|
+
* Extract the last user prompt text from GSD's context messages.
|
|
55
|
+
* The SDK manages its own conversation history — we only send
|
|
56
|
+
* the latest user message as the prompt.
|
|
57
|
+
*/
|
|
58
|
+
function extractLastUserPrompt(context) {
|
|
59
|
+
for (let i = context.messages.length - 1; i >= 0; i--) {
|
|
60
|
+
const msg = context.messages[i];
|
|
61
|
+
if (msg.role === "user") {
|
|
62
|
+
if (typeof msg.content === "string")
|
|
63
|
+
return msg.content;
|
|
64
|
+
if (Array.isArray(msg.content)) {
|
|
65
|
+
const textParts = msg.content
|
|
66
|
+
.filter((part) => part.type === "text")
|
|
67
|
+
.map((part) => part.text);
|
|
68
|
+
if (textParts.length > 0)
|
|
69
|
+
return textParts.join("\n");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return "";
|
|
74
|
+
}
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
// Error helper
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
function makeErrorMessage(model, errorMsg) {
|
|
79
|
+
return {
|
|
80
|
+
role: "assistant",
|
|
81
|
+
content: [{ type: "text", text: `Claude Code error: ${errorMsg}` }],
|
|
82
|
+
api: "anthropic-messages",
|
|
83
|
+
provider: "claude-code",
|
|
84
|
+
model,
|
|
85
|
+
usage: { ...ZERO_USAGE },
|
|
86
|
+
stopReason: "error",
|
|
87
|
+
errorMessage: errorMsg,
|
|
88
|
+
timestamp: Date.now(),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
// ---------------------------------------------------------------------------
|
|
92
|
+
// streamSimple implementation
|
|
93
|
+
// ---------------------------------------------------------------------------
|
|
94
|
+
/**
|
|
95
|
+
* GSD streamSimple function that delegates to the Claude Agent SDK.
|
|
96
|
+
*
|
|
97
|
+
* Emits AssistantMessageEvent deltas for real-time TUI rendering
|
|
98
|
+
* (thinking, text, tool calls). The final AssistantMessage has tool-call
|
|
99
|
+
* blocks stripped so the agent loop ends the turn without local dispatch.
|
|
100
|
+
*/
|
|
101
|
+
export function streamViaClaudeCode(model, context, options) {
|
|
102
|
+
const stream = createAssistantStream();
|
|
103
|
+
void pumpSdkMessages(model, context, options, stream);
|
|
104
|
+
return stream;
|
|
105
|
+
}
|
|
106
|
+
async function pumpSdkMessages(model, context, options, stream) {
|
|
107
|
+
const modelId = model.id;
|
|
108
|
+
let builder = null;
|
|
109
|
+
/** Track the last text content seen across all assistant turns for the final message. */
|
|
110
|
+
let lastTextContent = "";
|
|
111
|
+
let lastThinkingContent = "";
|
|
112
|
+
try {
|
|
113
|
+
// Dynamic import — the SDK is an optional dependency.
|
|
114
|
+
const sdkModule = "@anthropic-ai/claude-agent-sdk";
|
|
115
|
+
const sdk = (await import(/* webpackIgnore: true */ sdkModule));
|
|
116
|
+
// Bridge GSD's AbortSignal to SDK's AbortController
|
|
117
|
+
const controller = new AbortController();
|
|
118
|
+
if (options?.signal) {
|
|
119
|
+
options.signal.addEventListener("abort", () => controller.abort(), { once: true });
|
|
120
|
+
}
|
|
121
|
+
const prompt = extractLastUserPrompt(context);
|
|
122
|
+
const queryResult = sdk.query({
|
|
123
|
+
prompt,
|
|
124
|
+
options: {
|
|
125
|
+
pathToClaudeCodeExecutable: getClaudePath(),
|
|
126
|
+
model: modelId,
|
|
127
|
+
includePartialMessages: true,
|
|
128
|
+
persistSession: false,
|
|
129
|
+
abortController: controller,
|
|
130
|
+
cwd: process.cwd(),
|
|
131
|
+
permissionMode: "bypassPermissions",
|
|
132
|
+
allowDangerouslySkipPermissions: true,
|
|
133
|
+
settingSources: ["project"],
|
|
134
|
+
systemPrompt: { type: "preset", preset: "claude_code" },
|
|
135
|
+
betas: modelId.includes("sonnet") ? ["context-1m-2025-08-07"] : [],
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
// Emit start with an empty partial
|
|
139
|
+
const initialPartial = {
|
|
140
|
+
role: "assistant",
|
|
141
|
+
content: [],
|
|
142
|
+
api: "anthropic-messages",
|
|
143
|
+
provider: "claude-code",
|
|
144
|
+
model: modelId,
|
|
145
|
+
usage: { ...ZERO_USAGE },
|
|
146
|
+
stopReason: "stop",
|
|
147
|
+
timestamp: Date.now(),
|
|
148
|
+
};
|
|
149
|
+
stream.push({ type: "start", partial: initialPartial });
|
|
150
|
+
for await (const msg of queryResult) {
|
|
151
|
+
if (options?.signal?.aborted)
|
|
152
|
+
break;
|
|
153
|
+
switch (msg.type) {
|
|
154
|
+
// -- Init --
|
|
155
|
+
case "system": {
|
|
156
|
+
// Nothing to emit — the stream is already started.
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
// -- Streaming partial messages --
|
|
160
|
+
case "stream_event": {
|
|
161
|
+
const partial = msg;
|
|
162
|
+
if (partial.parent_tool_use_id !== null)
|
|
163
|
+
break; // skip subagent
|
|
164
|
+
const event = partial.event;
|
|
165
|
+
// New assistant turn starts with message_start
|
|
166
|
+
if (event.type === "message_start") {
|
|
167
|
+
builder = new PartialMessageBuilder(event.message?.model ?? modelId);
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (!builder)
|
|
171
|
+
break;
|
|
172
|
+
const assistantEvent = builder.handleEvent(event);
|
|
173
|
+
if (assistantEvent) {
|
|
174
|
+
stream.push(assistantEvent);
|
|
175
|
+
}
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
// -- Complete assistant message (non-streaming fallback) --
|
|
179
|
+
case "assistant": {
|
|
180
|
+
const sdkAssistant = msg;
|
|
181
|
+
if (sdkAssistant.parent_tool_use_id !== null)
|
|
182
|
+
break;
|
|
183
|
+
// Capture text content from complete messages
|
|
184
|
+
for (const block of sdkAssistant.message.content) {
|
|
185
|
+
if (block.type === "text") {
|
|
186
|
+
lastTextContent = block.text;
|
|
187
|
+
}
|
|
188
|
+
else if (block.type === "thinking") {
|
|
189
|
+
lastThinkingContent = block.thinking;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
// -- User message (synthetic tool result — signals turn boundary) --
|
|
195
|
+
case "user": {
|
|
196
|
+
const userMsg = msg;
|
|
197
|
+
if (userMsg.parent_tool_use_id !== null)
|
|
198
|
+
break;
|
|
199
|
+
// Capture accumulated text from the builder before resetting
|
|
200
|
+
if (builder) {
|
|
201
|
+
for (const block of builder.message.content) {
|
|
202
|
+
if (block.type === "text" && block.text) {
|
|
203
|
+
lastTextContent = block.text;
|
|
204
|
+
}
|
|
205
|
+
else if (block.type === "thinking" && block.thinking) {
|
|
206
|
+
lastThinkingContent = block.thinking;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
builder = null;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
// -- Result (terminal) --
|
|
214
|
+
case "result": {
|
|
215
|
+
const result = msg;
|
|
216
|
+
// Build final message with text/thinking only (strip tool calls)
|
|
217
|
+
const finalContent = [];
|
|
218
|
+
// Use builder's accumulated content if available, falling back to captured text
|
|
219
|
+
if (builder) {
|
|
220
|
+
for (const block of builder.message.content) {
|
|
221
|
+
if (block.type === "text" && block.text) {
|
|
222
|
+
lastTextContent = block.text;
|
|
223
|
+
}
|
|
224
|
+
else if (block.type === "thinking" && block.thinking) {
|
|
225
|
+
lastThinkingContent = block.thinking;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (lastThinkingContent) {
|
|
230
|
+
finalContent.push({ type: "thinking", thinking: lastThinkingContent });
|
|
231
|
+
}
|
|
232
|
+
if (lastTextContent) {
|
|
233
|
+
finalContent.push({ type: "text", text: lastTextContent });
|
|
234
|
+
}
|
|
235
|
+
// Fallback: use the SDK's result text if we have no content
|
|
236
|
+
if (finalContent.length === 0 && result.subtype === "success" && result.result) {
|
|
237
|
+
finalContent.push({ type: "text", text: result.result });
|
|
238
|
+
}
|
|
239
|
+
const finalMessage = {
|
|
240
|
+
role: "assistant",
|
|
241
|
+
content: finalContent,
|
|
242
|
+
api: "anthropic-messages",
|
|
243
|
+
provider: "claude-code",
|
|
244
|
+
model: modelId,
|
|
245
|
+
usage: mapUsage(result.usage, result.total_cost_usd),
|
|
246
|
+
stopReason: result.is_error ? "error" : "stop",
|
|
247
|
+
timestamp: Date.now(),
|
|
248
|
+
};
|
|
249
|
+
if (result.is_error) {
|
|
250
|
+
const errText = "errors" in result
|
|
251
|
+
? result.errors?.join("; ")
|
|
252
|
+
: result.subtype;
|
|
253
|
+
finalMessage.errorMessage = errText;
|
|
254
|
+
stream.push({ type: "error", reason: "error", error: finalMessage });
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
stream.push({ type: "done", reason: "stop", message: finalMessage });
|
|
258
|
+
}
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
default:
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
// Generator exhausted without a result message (unexpected)
|
|
266
|
+
const fallbackContent = [];
|
|
267
|
+
if (lastTextContent) {
|
|
268
|
+
fallbackContent.push({ type: "text", text: lastTextContent });
|
|
269
|
+
}
|
|
270
|
+
if (fallbackContent.length === 0) {
|
|
271
|
+
fallbackContent.push({ type: "text", text: "(Claude Code session ended without a response)" });
|
|
272
|
+
}
|
|
273
|
+
const fallback = {
|
|
274
|
+
role: "assistant",
|
|
275
|
+
content: fallbackContent,
|
|
276
|
+
api: "anthropic-messages",
|
|
277
|
+
provider: "claude-code",
|
|
278
|
+
model: modelId,
|
|
279
|
+
usage: { ...ZERO_USAGE },
|
|
280
|
+
stopReason: "stop",
|
|
281
|
+
timestamp: Date.now(),
|
|
282
|
+
};
|
|
283
|
+
stream.push({ type: "done", reason: "stop", message: fallback });
|
|
284
|
+
}
|
|
285
|
+
catch (err) {
|
|
286
|
+
const errorMsg = err instanceof Error ? err.message : String(err);
|
|
287
|
+
stream.push({
|
|
288
|
+
type: "error",
|
|
289
|
+
reason: "error",
|
|
290
|
+
error: makeErrorMessage(modelId, errorMsg),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
@@ -20,7 +20,7 @@ import { synthesizeCrashRecovery } from "./session-forensics.js";
|
|
|
20
20
|
import { writeLock, clearLock, readCrashLock, formatCrashInfo, isLockProcessAlive, } from "./crash-recovery.js";
|
|
21
21
|
import { acquireSessionLock, releaseSessionLock, updateSessionLock, } from "./session-lock.js";
|
|
22
22
|
import { ensureGitignore, untrackRuntimeFiles } from "./gitignore.js";
|
|
23
|
-
import {
|
|
23
|
+
import { nativeInit, nativeAddAll, nativeCommit, } from "./native-git-bridge.js";
|
|
24
24
|
import { GitServiceImpl } from "./git-service.js";
|
|
25
25
|
import { captureIntegrationBranch, detectWorktreeName, setActiveMilestoneId, } from "./worktree.js";
|
|
26
26
|
import { getAutoWorktreePath } from "./auto-worktree.js";
|
|
@@ -69,13 +69,14 @@ export async function bootstrapAutoSession(s, ctx, pi, base, verboseMode, reques
|
|
|
69
69
|
ctx.ui.notify(`GSD_PROJECT_ID must contain only alphanumeric characters, hyphens, and underscores. Got: "${customProjectId}"`, "error");
|
|
70
70
|
return releaseLockAndReturn();
|
|
71
71
|
}
|
|
72
|
-
// Ensure git repo exists.
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
|
|
72
|
+
// Ensure git repo exists *locally* at base.
|
|
73
|
+
// nativeIsRepo() uses `git rev-parse` which traverses up to parent dirs,
|
|
74
|
+
// so a parent repo can make it return true even when base has no .git of
|
|
75
|
+
// its own. Check for a local .git instead (defense-in-depth for the case
|
|
76
|
+
// where isInheritedRepo() returns a false negative, e.g. stale .gsd at
|
|
77
|
+
// the parent git root). See #2393 and related issue.
|
|
78
|
+
const hasLocalGit = existsSync(join(base, ".git"));
|
|
79
|
+
if (!hasLocalGit || isInheritedRepo(base)) {
|
|
79
80
|
const mainBranch = loadEffectiveGSDPreferences()?.preferences?.git?.main_branch || "main";
|
|
80
81
|
nativeInit(base, mainBranch);
|
|
81
82
|
}
|
|
@@ -32,6 +32,6 @@ Then:
|
|
|
32
32
|
11. Do not run git commands — the system commits your changes and handles any merge after this unit succeeds.
|
|
33
33
|
12. Update `.gsd/PROJECT.md` if it exists — refresh current state if needed.
|
|
34
34
|
|
|
35
|
-
**You MUST
|
|
35
|
+
**You MUST call `gsd_complete_slice` with the slice summary and UAT content before finishing. The tool persists to both DB and disk and renders `{{sliceSummaryPath}}` and `{{sliceUatPath}}` automatically.**
|
|
36
36
|
|
|
37
37
|
When done, say: "Slice {{sliceId}} complete."
|
|
@@ -10,10 +10,10 @@ Plan milestone {{milestoneId}} ("{{milestoneTitle}}"). Read `.gsd/DECISIONS.md`
|
|
|
10
10
|
## Planning Doctrine
|
|
11
11
|
|
|
12
12
|
- **Risk-first means proof-first.** The earliest slices should prove the hardest thing works by shipping the real feature through the uncertain path. If auth is the risk, the first slice ships a real login page with real session handling that a user can actually use — not a CLI command that returns "authenticated: true". Proof is the shipped feature working. There is no separate "proof" artifact. Do not plan spikes, proof-of-concept slices, or validation-only slices — the proof is the real feature, built through the risky path.
|
|
13
|
-
- **Every slice is vertical, demoable, and shippable.** Every slice ships real, user-facing functionality. "Demoable" means
|
|
13
|
+
- **Every slice is vertical, demoable, and shippable.** Every slice ships real, user-facing functionality. "Demoable" means the intended user can exercise the capability through its real interface — for a web app that's the UI, for a CLI tool that's the terminal, for an API that's a consuming client or curl. The test is: can someone *use* it, not just *assert* it passes. A slice that only proves something but doesn't ship real working code is not a slice — restructure it.
|
|
14
14
|
- **Brownfield bias.** When planning against an existing codebase, ground slices in existing modules, conventions, and seams. Prefer extending real patterns over inventing new ones.
|
|
15
15
|
- **Each slice should establish something downstream slices can depend on.** Think about what stable surface this slice creates for later work — an API, a data shape, a proven integration path.
|
|
16
|
-
- **Avoid foundation-only slices.** If a slice doesn't produce something demoable end-to-end, it's probably a layer, not a vertical slice. Restructure it.
|
|
16
|
+
- **Avoid foundation-only slices.** If a slice doesn't produce something demoable end-to-end, it's probably a layer, not a vertical slice. Restructure it. Exception: if the infrastructure *is* the product surface (a new protocol, extension API, or provider interface), the slice is vertical by definition — the downstream consumer is the demo.
|
|
17
17
|
- **Verification-first.** When planning slices, know what "done" looks like before detailing implementation. Each slice's demo line should describe concrete, verifiable evidence — not vague "it works" claims.
|
|
18
18
|
- **Plan for integrated reality, not just local proof.** Distinguish contract proof from live integration proof. If the milestone involves multiple runtime boundaries, one slice must explicitly prove the assembled system through the real entrypoint or runtime path.
|
|
19
19
|
- **Truthful demo lines only.** If a slice is proven by fixtures or tests only, say so. Do not phrase harness-level proof as if the user can already perform the live end-to-end behavior unless that has actually been exercised.
|
|
@@ -64,10 +64,10 @@ Then:
|
|
|
64
64
|
Apply these when decomposing and ordering slices:
|
|
65
65
|
|
|
66
66
|
- **Risk-first means proof-first.** The earliest slices should prove the hardest thing works by shipping the real feature through the uncertain path. If auth is the risk, the first slice ships a real login page with real session handling that a user can actually use — not a CLI command that returns "authenticated: true". Proof is the shipped feature working. There is no separate "proof" artifact. Do not plan spikes, proof-of-concept slices, or validation-only slices — the proof is the real feature, built through the risky path.
|
|
67
|
-
- **Every slice is vertical, demoable, and shippable.** Every slice ships real, user-facing functionality. "Demoable" means
|
|
67
|
+
- **Every slice is vertical, demoable, and shippable.** Every slice ships real, user-facing functionality. "Demoable" means the intended user can exercise the capability through its real interface — for a web app that's the UI, for a CLI tool that's the terminal, for an API that's a consuming client or curl. The test is: can someone *use* it, not just *assert* it passes. A slice that only proves something but doesn't ship real working code is not a slice — restructure it.
|
|
68
68
|
- **Brownfield bias.** When planning against an existing codebase, ground slices in existing modules, conventions, and seams. Prefer extending real patterns over inventing new ones.
|
|
69
69
|
- **Each slice should establish something downstream slices can depend on.** Think about what stable surface this slice creates for later work — an API, a data shape, a proven integration path.
|
|
70
|
-
- **Avoid foundation-only slices.** If a slice doesn't produce something demoable end-to-end, it's probably a layer, not a vertical slice. Restructure it.
|
|
70
|
+
- **Avoid foundation-only slices.** If a slice doesn't produce something demoable end-to-end, it's probably a layer, not a vertical slice. Restructure it. Exception: if the infrastructure *is* the product surface (a new protocol, extension API, or provider interface), the slice is vertical by definition — the downstream consumer is the demo.
|
|
71
71
|
- **Verification-first.** When planning slices, know what "done" looks like before detailing implementation. Each slice's demo line should describe concrete, verifiable evidence — not vague "it works" claims.
|
|
72
72
|
- **Plan for integrated reality, not just local proof.** Distinguish contract proof from live integration proof. If the milestone involves multiple runtime boundaries, one slice must explicitly prove the assembled system through the real entrypoint or runtime path.
|
|
73
73
|
- **Truthful demo lines only.** If a slice is proven by fixtures or tests only, say so. Do not phrase harness-level proof as if the user can already perform the live end-to-end behavior unless that has actually been exercised.
|
|
@@ -77,6 +77,6 @@ Then:
|
|
|
77
77
|
|
|
78
78
|
The slice directory and tasks/ subdirectory already exist. Do NOT mkdir. All work stays in your working directory: `{{workingDirectory}}`.
|
|
79
79
|
|
|
80
|
-
**You MUST
|
|
80
|
+
**You MUST call `gsd_plan_slice` to persist the planning state before finishing.**
|
|
81
81
|
|
|
82
82
|
When done, say: "Slice {{sliceId}} planned."
|
|
@@ -28,7 +28,7 @@ Then research the codebase and relevant technologies. Narrate key findings and s
|
|
|
28
28
|
5. **Web search budget:** You have a limited budget of web searches (max ~15 per session). Use them strategically — prefer `resolve_library` / `get_library_docs` for library documentation. Do NOT repeat the same or similar queries. If a search didn't find what you need, rephrase once or move on. Target 3-5 total web searches for a typical research unit.
|
|
29
29
|
6. Use the **Research** output template from the inlined context above — include only sections that have real content
|
|
30
30
|
7. If `.gsd/REQUIREMENTS.md` exists, research against it. Identify which Active requirements are table stakes, likely omissions, overbuilt risks, or domain-standard behaviors the user may or may not want.
|
|
31
|
-
8.
|
|
31
|
+
8. Call `gsd_summary_save` with `milestone_id: {{milestoneId}}`, `artifact_type: "RESEARCH"`, and the full research markdown as `content` — the tool computes the file path and persists to both DB and disk.
|
|
32
32
|
|
|
33
33
|
## Strategic Questions to Answer
|
|
34
34
|
|
|
@@ -42,6 +42,6 @@ Then research the codebase and relevant technologies. Narrate key findings and s
|
|
|
42
42
|
|
|
43
43
|
**Research is advisory, not auto-binding.** Surface candidate requirements clearly instead of silently expanding scope.
|
|
44
44
|
|
|
45
|
-
**You MUST
|
|
45
|
+
**You MUST call `gsd_summary_save` with the research content before finishing.**
|
|
46
46
|
|
|
47
47
|
When done, say: "Milestone {{milestoneId}} researched."
|
|
@@ -55,7 +55,7 @@ After running all checks, compute the **overall verdict**:
|
|
|
55
55
|
- `FAIL` — one or more checks failed
|
|
56
56
|
- `PARTIAL` — some checks passed, but one or more checks were skipped, inconclusive, or still require human judgment
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Call `gsd_summary_save` with `milestone_id: {{milestoneId}}`, `slice_id: {{sliceId}}`, `artifact_type: "ASSESSMENT"`, and the full UAT result markdown as `content` — the tool computes the file path and persists to both DB and disk. The content should follow this format:
|
|
59
59
|
|
|
60
60
|
```markdown
|
|
61
61
|
---
|
|
@@ -84,6 +84,6 @@ date: <ISO 8601 timestamp>
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
-
**You MUST
|
|
87
|
+
**You MUST call `gsd_summary_save` with the UAT result content before finishing.**
|
|
88
88
|
|
|
89
89
|
When done, say: "UAT {{sliceId}} complete."
|
|
@@ -112,8 +112,11 @@ export function isInheritedRepo(basePath) {
|
|
|
112
112
|
// (i.e. the parent project was initialised with GSD).
|
|
113
113
|
if (isProjectGsd(join(root, ".gsd")))
|
|
114
114
|
return false;
|
|
115
|
-
//
|
|
116
|
-
|
|
115
|
+
// Walk up from basePath's parent to the git root checking for .gsd.
|
|
116
|
+
// Start at dirname(normalizedBase), NOT normalizedBase itself — finding
|
|
117
|
+
// .gsd at basePath means GSD state is set up for THIS project, which
|
|
118
|
+
// says nothing about whether the git repo is inherited from an ancestor.
|
|
119
|
+
let dir = dirname(normalizedBase);
|
|
117
120
|
while (dir !== normalizedRoot && dir !== dirname(dir)) {
|
|
118
121
|
if (isProjectGsd(join(dir, ".gsd")))
|
|
119
122
|
return false;
|
|
@@ -9,7 +9,7 @@ import { nativeBatchParseGsdFiles } from './native-parser-bridge.js';
|
|
|
9
9
|
import { join, resolve } from 'path';
|
|
10
10
|
import { existsSync, readdirSync } from 'node:fs';
|
|
11
11
|
import { debugCount, debugTime } from './debug-logger.js';
|
|
12
|
-
import { isDbAvailable, getAllMilestones, getMilestoneSlices, getSliceTasks, getReplanHistory, getSlice, insertMilestone, } from './gsd-db.js';
|
|
12
|
+
import { isDbAvailable, getAllMilestones, getMilestoneSlices, getSliceTasks, getReplanHistory, getSlice, insertMilestone, updateTaskStatus, } from './gsd-db.js';
|
|
13
13
|
/**
|
|
14
14
|
* A "ghost" milestone directory contains only META.json (and no substantive
|
|
15
15
|
* files like CONTEXT, CONTEXT-DRAFT, ROADMAP, or SUMMARY). These appear when
|
|
@@ -524,7 +524,34 @@ export async function deriveStateFromDb(basePath) {
|
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
526
|
// ── Get tasks from DB ────────────────────────────────────────────────
|
|
527
|
-
|
|
527
|
+
let tasks = getSliceTasks(activeMilestone.id, activeSlice.id);
|
|
528
|
+
// ── Reconcile stale task status (#2514) ──────────────────────────────
|
|
529
|
+
// When a session disconnects after the agent writes SUMMARY + VERIFY
|
|
530
|
+
// artifacts but before postUnitPostVerification updates the DB, tasks
|
|
531
|
+
// remain "pending" in the DB despite being complete on disk. Without
|
|
532
|
+
// reconciliation, deriveState keeps returning the stale task as active,
|
|
533
|
+
// causing the dispatcher to re-dispatch the same completed task forever.
|
|
534
|
+
let reconciled = false;
|
|
535
|
+
for (const t of tasks) {
|
|
536
|
+
if (isStatusDone(t.status))
|
|
537
|
+
continue;
|
|
538
|
+
const summaryPath = resolveTaskFile(basePath, activeMilestone.id, activeSlice.id, t.id, "SUMMARY");
|
|
539
|
+
if (summaryPath && existsSync(summaryPath)) {
|
|
540
|
+
try {
|
|
541
|
+
updateTaskStatus(activeMilestone.id, activeSlice.id, t.id, "complete");
|
|
542
|
+
process.stderr.write(`gsd-reconcile: task ${activeMilestone.id}/${activeSlice.id}/${t.id} had SUMMARY on disk but DB status was "${t.status}" — updated to "complete" (#2514)\n`);
|
|
543
|
+
reconciled = true;
|
|
544
|
+
}
|
|
545
|
+
catch (e) {
|
|
546
|
+
// DB write failed — continue with stale status rather than crash
|
|
547
|
+
process.stderr.write(`gsd-reconcile: failed to update task ${t.id}: ${e.message}\n`);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
// Re-fetch tasks if any were reconciled so downstream logic sees fresh status
|
|
552
|
+
if (reconciled) {
|
|
553
|
+
tasks = getSliceTasks(activeMilestone.id, activeSlice.id);
|
|
554
|
+
}
|
|
528
555
|
const taskProgress = {
|
|
529
556
|
done: tasks.filter(t => isStatusDone(t.status)).length,
|
|
530
557
|
total: tasks.length,
|
|
@@ -19,7 +19,7 @@ export function getSessionId() {
|
|
|
19
19
|
*/
|
|
20
20
|
export function appendEvent(basePath, event) {
|
|
21
21
|
const hash = createHash("sha256")
|
|
22
|
-
.update(JSON.stringify({ cmd: event.cmd, params: event.params
|
|
22
|
+
.update(JSON.stringify({ cmd: event.cmd, params: event.params }))
|
|
23
23
|
.digest("hex")
|
|
24
24
|
.slice(0, 16);
|
|
25
25
|
const fullEvent = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
sQCECerYL5daQCVxqF23f
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"/_global-error/page": "/_global-error",
|
|
3
2
|
"/_not-found/page": "/_not-found",
|
|
4
|
-
"/
|
|
3
|
+
"/_global-error/page": "/_global-error",
|
|
5
4
|
"/api/bridge-terminal/input/route": "/api/bridge-terminal/input",
|
|
6
|
-
"/api/
|
|
5
|
+
"/api/boot/route": "/api/boot",
|
|
6
|
+
"/api/bridge-terminal/resize/route": "/api/bridge-terminal/resize",
|
|
7
7
|
"/api/bridge-terminal/stream/route": "/api/bridge-terminal/stream",
|
|
8
|
-
"/api/dev-mode/route": "/api/dev-mode",
|
|
9
8
|
"/api/cleanup/route": "/api/cleanup",
|
|
9
|
+
"/api/browse-directories/route": "/api/browse-directories",
|
|
10
10
|
"/api/export-data/route": "/api/export-data",
|
|
11
|
-
"/api/doctor/route": "/api/doctor",
|
|
12
11
|
"/api/forensics/route": "/api/forensics",
|
|
13
|
-
"/api/
|
|
14
|
-
"/api/
|
|
12
|
+
"/api/doctor/route": "/api/doctor",
|
|
13
|
+
"/api/dev-mode/route": "/api/dev-mode",
|
|
15
14
|
"/api/history/route": "/api/history",
|
|
16
|
-
"/api/
|
|
17
|
-
"/api/
|
|
15
|
+
"/api/inspect/route": "/api/inspect",
|
|
16
|
+
"/api/git/route": "/api/git",
|
|
18
17
|
"/api/knowledge/route": "/api/knowledge",
|
|
19
18
|
"/api/live-state/route": "/api/live-state",
|
|
19
|
+
"/api/captures/route": "/api/captures",
|
|
20
20
|
"/api/preferences/route": "/api/preferences",
|
|
21
21
|
"/api/recovery/route": "/api/recovery",
|
|
22
|
-
"/api/onboarding/route": "/api/onboarding",
|
|
23
|
-
"/api/projects/route": "/api/projects",
|
|
24
22
|
"/api/session/browser/route": "/api/session/browser",
|
|
25
|
-
"/api/session/command/route": "/api/session/command",
|
|
26
23
|
"/api/session/events/route": "/api/session/events",
|
|
24
|
+
"/api/session/command/route": "/api/session/command",
|
|
25
|
+
"/api/onboarding/route": "/api/onboarding",
|
|
27
26
|
"/api/session/manage/route": "/api/session/manage",
|
|
28
|
-
"/api/settings-data/route": "/api/settings-data",
|
|
29
27
|
"/api/shutdown/route": "/api/shutdown",
|
|
28
|
+
"/api/files/route": "/api/files",
|
|
30
29
|
"/api/skill-health/route": "/api/skill-health",
|
|
31
|
-
"/api/
|
|
30
|
+
"/api/hooks/route": "/api/hooks",
|
|
32
31
|
"/api/steer/route": "/api/steer",
|
|
32
|
+
"/api/settings-data/route": "/api/settings-data",
|
|
33
|
+
"/api/projects/route": "/api/projects",
|
|
33
34
|
"/api/terminal/input/route": "/api/terminal/input",
|
|
34
|
-
"/api/files/route": "/api/files",
|
|
35
35
|
"/api/switch-root/route": "/api/switch-root",
|
|
36
|
-
"/api/terminal/sessions/route": "/api/terminal/sessions",
|
|
37
36
|
"/api/terminal/resize/route": "/api/terminal/resize",
|
|
38
|
-
"/api/terminal/upload/route": "/api/terminal/upload",
|
|
39
37
|
"/api/terminal/stream/route": "/api/terminal/stream",
|
|
40
|
-
"/api/update/route": "/api/update",
|
|
41
38
|
"/api/undo/route": "/api/undo",
|
|
39
|
+
"/api/terminal/sessions/route": "/api/terminal/sessions",
|
|
42
40
|
"/api/remote-questions/route": "/api/remote-questions",
|
|
41
|
+
"/api/update/route": "/api/update",
|
|
42
|
+
"/api/terminal/upload/route": "/api/terminal/upload",
|
|
43
43
|
"/api/visualizer/route": "/api/visualizer",
|
|
44
44
|
"/page": "/"
|
|
45
45
|
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
],
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"lowPriorityFiles": [
|
|
7
|
-
"static/
|
|
8
|
-
"static/
|
|
7
|
+
"static/sQCECerYL5daQCVxqF23f/_buildManifest.js",
|
|
8
|
+
"static/sQCECerYL5daQCVxqF23f/_ssgManifest.js"
|
|
9
9
|
],
|
|
10
10
|
"rootMainFiles": [
|
|
11
11
|
"static/chunks/webpack-0a4cd455ec4197d2.js",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"dynamicRoutes": {},
|
|
79
79
|
"notFoundRoutes": [],
|
|
80
80
|
"preview": {
|
|
81
|
-
"previewModeId": "
|
|
82
|
-
"previewModeSigningKey": "
|
|
83
|
-
"previewModeEncryptionKey": "
|
|
81
|
+
"previewModeId": "fc6d6d933bf2469ff408604b71a86351",
|
|
82
|
+
"previewModeSigningKey": "e763dff2ecd9b28545c5db2bc9c120b4f221af6599506883f06b6122b46a4039",
|
|
83
|
+
"previewModeEncryptionKey": "d502398dcf55f8658491e37a2d88878f7a81696adf685dcbe42cfd554adad02e"
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-0a4cd455ec4197d2.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[90484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[90484,[],\"ViewportBoundary\"]\n9:I[90484,[],\"MetadataBoundary\"]\nb:I[27123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--sQCECerYL5daQCVxqF23f--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0a4cd455ec4197d2.js"/><script src="/_next/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-fdab67f7802d7832.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-0a4cd455ec4197d2.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[90484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[90484,[],\"ViewportBoundary\"]\n9:I[90484,[],\"MetadataBoundary\"]\nb:I[27123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"sQCECerYL5daQCVxqF23f\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
|