plotlink-ows 0.1.18 → 1.0.4
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 +167 -67
- package/app/lib/publish.ts +134 -32
- package/app/routes/dashboard.ts +64 -13
- package/app/routes/publish.ts +52 -1
- package/app/routes/settings.ts +194 -0
- package/app/routes/stories.ts +75 -8
- package/app/routes/terminal.ts +167 -63
- package/app/server.ts +7 -1
- package/app/web/components/Dashboard.tsx +83 -32
- package/app/web/components/PreviewPanel.tsx +280 -41
- package/app/web/components/Settings.tsx +227 -3
- package/app/web/components/StoriesPage.tsx +121 -8
- package/app/web/components/StoryBrowser.tsx +32 -8
- package/app/web/components/TerminalPanel.tsx +384 -78
- package/app/web/dist/assets/index-BuOxhUWG.css +32 -0
- package/app/web/dist/assets/index-De8CpT47.js +129 -0
- package/app/web/dist/index.html +2 -2
- package/app/web/styles.css +18 -0
- package/bin/plotlink-ows.js +21 -61
- package/package.json +21 -15
- package/scripts/fix-index-status.ts +93 -0
- package/app/web/dist/assets/index-D5gfwaEX.css +0 -32
- package/app/web/dist/assets/index-pBt5Q_bN.js +0 -117
package/app/web/dist/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-De8CpT47.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BuOxhUWG.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/app/web/styles.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
|
+
@plugin "@tailwindcss/typography";
|
|
2
3
|
|
|
3
4
|
:root {
|
|
4
5
|
--bg: #E8DFD0;
|
|
@@ -42,6 +43,17 @@ h1, h2, h3, h4 {
|
|
|
42
43
|
font-family: "Lora", Georgia, "Times New Roman", serif;
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
.prose {
|
|
47
|
+
--tw-prose-body: var(--text);
|
|
48
|
+
--tw-prose-headings: var(--text);
|
|
49
|
+
--tw-prose-links: var(--accent);
|
|
50
|
+
--tw-prose-bold: var(--text);
|
|
51
|
+
--tw-prose-quotes: var(--text-muted);
|
|
52
|
+
--tw-prose-quote-borders: var(--border);
|
|
53
|
+
--tw-prose-code: var(--text);
|
|
54
|
+
--tw-prose-hr: var(--border);
|
|
55
|
+
}
|
|
56
|
+
|
|
45
57
|
.prose, .prose p, .prose li, .prose blockquote {
|
|
46
58
|
font-family: "Lora", Georgia, "Times New Roman", serif;
|
|
47
59
|
}
|
|
@@ -49,3 +61,9 @@ h1, h2, h3, h4 {
|
|
|
49
61
|
code, pre {
|
|
50
62
|
font-family: "Geist Mono", ui-monospace, monospace;
|
|
51
63
|
}
|
|
64
|
+
|
|
65
|
+
/* Ensure dim/faint terminal text (SGR 2) stays readable on cream bg */
|
|
66
|
+
.xterm .xterm-dim {
|
|
67
|
+
opacity: 1 !important;
|
|
68
|
+
color: #8B7355 !important;
|
|
69
|
+
}
|
package/bin/plotlink-ows.js
CHANGED
|
@@ -10,7 +10,6 @@ const crypto = require("crypto");
|
|
|
10
10
|
|
|
11
11
|
const CONFIG_DIR = path.join(require("os").homedir(), ".plotlink-ows");
|
|
12
12
|
const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
|
|
13
|
-
const PID_FILE = path.join(CONFIG_DIR, "server.pid");
|
|
14
13
|
const PROJECT_DIR = path.dirname(__dirname);
|
|
15
14
|
const ENV_FILE = path.join(CONFIG_DIR, ".env");
|
|
16
15
|
const AGENT_CONFIG_FILE = path.join(CONFIG_DIR, "agent.config.json");
|
|
@@ -212,19 +211,6 @@ function cmdStart() {
|
|
|
212
211
|
process.exit(1);
|
|
213
212
|
}
|
|
214
213
|
|
|
215
|
-
// Check if already running
|
|
216
|
-
if (fs.existsSync(PID_FILE)) {
|
|
217
|
-
const pid = parseInt(fs.readFileSync(PID_FILE, "utf-8"));
|
|
218
|
-
try {
|
|
219
|
-
process.kill(pid, 0);
|
|
220
|
-
log(`Already running (PID ${pid}).`);
|
|
221
|
-
log(`Open http://localhost:${config.port || 7777}`);
|
|
222
|
-
process.exit(0);
|
|
223
|
-
} catch {
|
|
224
|
-
fs.unlinkSync(PID_FILE);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
214
|
// Ensure deps installed
|
|
229
215
|
if (!fs.existsSync(path.join(PROJECT_DIR, "node_modules"))) {
|
|
230
216
|
log("Installing dependencies...");
|
|
@@ -239,45 +225,29 @@ function cmdStart() {
|
|
|
239
225
|
}
|
|
240
226
|
|
|
241
227
|
const port = config.port || 7777;
|
|
242
|
-
log(`Starting PlotLink OWS on port ${port}...`);
|
|
243
228
|
|
|
244
|
-
|
|
245
|
-
cwd: PROJECT_DIR,
|
|
246
|
-
stdio: "ignore",
|
|
247
|
-
detached: true,
|
|
248
|
-
env: { ...process.env, APP_PORT: String(port) },
|
|
249
|
-
});
|
|
250
|
-
server.unref();
|
|
251
|
-
|
|
252
|
-
ensureConfigDir();
|
|
253
|
-
fs.writeFileSync(PID_FILE, String(server.pid));
|
|
254
|
-
|
|
255
|
-
// Auto-open browser
|
|
229
|
+
// Auto-open browser after a short delay
|
|
256
230
|
setTimeout(() => {
|
|
257
231
|
try {
|
|
258
|
-
const
|
|
259
|
-
execSync(`${
|
|
232
|
+
const openCmd = process.platform === "darwin" ? "open" : "xdg-open";
|
|
233
|
+
execSync(`${openCmd} http://localhost:${port}`, { stdio: "ignore" });
|
|
260
234
|
} catch { /* ignore */ }
|
|
261
235
|
}, 2000);
|
|
262
236
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
237
|
+
// Run server in foreground with visible logs
|
|
238
|
+
const server = spawn("npx", ["tsx", "app/server.ts"], {
|
|
239
|
+
cwd: PROJECT_DIR,
|
|
240
|
+
stdio: "inherit",
|
|
241
|
+
env: { ...process.env, APP_PORT: String(port) },
|
|
242
|
+
});
|
|
266
243
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
244
|
+
// Ctrl+C gracefully stops the server
|
|
245
|
+
process.on("SIGINT", () => server.kill("SIGINT"));
|
|
246
|
+
process.on("SIGTERM", () => server.kill("SIGTERM"));
|
|
272
247
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
success(`Stopped (PID ${pid})`);
|
|
277
|
-
} catch {
|
|
278
|
-
warn(`Process ${pid} not found.`);
|
|
279
|
-
}
|
|
280
|
-
fs.unlinkSync(PID_FILE);
|
|
248
|
+
server.on("close", (code) => {
|
|
249
|
+
process.exit(code ?? 0);
|
|
250
|
+
});
|
|
281
251
|
}
|
|
282
252
|
|
|
283
253
|
function cmdStatus() {
|
|
@@ -307,19 +277,7 @@ function cmdStatus() {
|
|
|
307
277
|
log("Wallet: OWS SDK not available");
|
|
308
278
|
}
|
|
309
279
|
|
|
310
|
-
|
|
311
|
-
if (fs.existsSync(PID_FILE)) {
|
|
312
|
-
const pid = parseInt(fs.readFileSync(PID_FILE, "utf-8"));
|
|
313
|
-
try {
|
|
314
|
-
process.kill(pid, 0);
|
|
315
|
-
log(`Server: \x1b[32mrunning\x1b[0m (PID ${pid})`);
|
|
316
|
-
} catch {
|
|
317
|
-
log("Server: stopped");
|
|
318
|
-
fs.unlinkSync(PID_FILE);
|
|
319
|
-
}
|
|
320
|
-
} else {
|
|
321
|
-
log("Server: stopped");
|
|
322
|
-
}
|
|
280
|
+
log('Run \x1b[1mnpx plotlink-ows\x1b[0m to start the server.');
|
|
323
281
|
log("");
|
|
324
282
|
}
|
|
325
283
|
|
|
@@ -330,12 +288,14 @@ switch (cmd) {
|
|
|
330
288
|
case "init":
|
|
331
289
|
cmdInit();
|
|
332
290
|
break;
|
|
333
|
-
case "stop":
|
|
334
|
-
cmdStop();
|
|
335
|
-
break;
|
|
336
291
|
case "status":
|
|
337
292
|
cmdStatus();
|
|
338
293
|
break;
|
|
294
|
+
case "stop":
|
|
295
|
+
log('The "stop" command has been removed.');
|
|
296
|
+
log("The server now runs in the foreground — press Ctrl+C to stop it.");
|
|
297
|
+
process.exit(0);
|
|
298
|
+
break;
|
|
339
299
|
default:
|
|
340
300
|
cmdStart();
|
|
341
301
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plotlink-ows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"bin": {
|
|
5
5
|
"plotlink-ows": "./bin/plotlink-ows.js"
|
|
6
6
|
},
|
|
@@ -26,30 +26,24 @@
|
|
|
26
26
|
"app:dev": "concurrently \"tsx watch app/server.ts\" \"vite --config app/vite.config.ts\"",
|
|
27
27
|
"app:build": "vite build --config app/vite.config.ts",
|
|
28
28
|
"app:start": "tsx app/server.ts",
|
|
29
|
-
"
|
|
29
|
+
"postinstall": "prisma generate --schema app/prisma/schema.prisma",
|
|
30
|
+
"prisma:local": "prisma generate --schema app/prisma/schema.prisma && prisma db push --schema app/prisma/schema.prisma",
|
|
31
|
+
"release:patch": "npm version patch && git push origin main --follow-tags && VERSION=$(node -p 'require(\"./package.json\").version') && gh release create \"v$VERSION\" --generate-notes --latest && npm publish",
|
|
32
|
+
"release:minor": "npm version minor && git push origin main --follow-tags && VERSION=$(node -p 'require(\"./package.json\").version') && gh release create \"v$VERSION\" --generate-notes --latest && npm publish",
|
|
33
|
+
"release:major": "npm version major && git push origin main --follow-tags && VERSION=$(node -p 'require(\"./package.json\").version') && gh release create \"v$VERSION\" --generate-notes --latest && npm publish"
|
|
30
34
|
},
|
|
31
35
|
"dependencies": {
|
|
32
36
|
"@aws-sdk/client-s3": "^3.1009.0",
|
|
33
|
-
"@farcaster/miniapp-node": "^0.1.13",
|
|
34
|
-
"@farcaster/miniapp-sdk": "^0.3.0",
|
|
35
|
-
"@farcaster/miniapp-wagmi-connector": "^2.0.0",
|
|
36
37
|
"@hono/node-server": "^1.19.12",
|
|
37
38
|
"@open-wallet-standard/core": "^1.2.4",
|
|
38
39
|
"@prisma/client": "^6.19.3",
|
|
39
|
-
"@rainbow-me/rainbowkit": "^2.2.10",
|
|
40
40
|
"@supabase/supabase-js": "^2.99.1",
|
|
41
|
-
"@tailwindcss/vite": "^4.2.2",
|
|
42
|
-
"@tanstack/react-query": "^5.90.21",
|
|
43
|
-
"@types/ws": "^8.18.1",
|
|
44
|
-
"@vercel/analytics": "^2.0.1",
|
|
45
|
-
"@vitejs/plugin-react": "^4.7.0",
|
|
46
41
|
"@xterm/addon-fit": "^0.11.0",
|
|
42
|
+
"@xterm/addon-serialize": "^0.14.0",
|
|
47
43
|
"@xterm/xterm": "^6.0.0",
|
|
48
44
|
"dotenv": "^17.4.0",
|
|
49
45
|
"hono": "^4.12.10",
|
|
50
|
-
"next": "16.1.6",
|
|
51
46
|
"node-pty": "^1.2.0-beta.12",
|
|
52
|
-
"ox": "^0.14.8",
|
|
53
47
|
"prisma": "^6.19.3",
|
|
54
48
|
"react": "19.2.3",
|
|
55
49
|
"react-dom": "19.2.3",
|
|
@@ -61,23 +55,35 @@
|
|
|
61
55
|
"tsx": "^4.21.0",
|
|
62
56
|
"viem": "^2.47.2",
|
|
63
57
|
"vite": "^6.4.1",
|
|
64
|
-
"wagmi": "^2.19.5",
|
|
65
58
|
"ws": "^8.20.0"
|
|
66
59
|
},
|
|
67
60
|
"devDependencies": {
|
|
61
|
+
"@farcaster/miniapp-node": "^0.1.13",
|
|
62
|
+
"@farcaster/miniapp-sdk": "^0.3.0",
|
|
63
|
+
"@farcaster/miniapp-wagmi-connector": "^2.0.0",
|
|
68
64
|
"@playwright/test": "^1.58.2",
|
|
65
|
+
"@rainbow-me/rainbowkit": "^2.2.10",
|
|
69
66
|
"@tailwindcss/postcss": "^4",
|
|
67
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
68
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
69
|
+
"@tanstack/react-query": "^5.90.21",
|
|
70
70
|
"@testing-library/jest-dom": "^6.9.1",
|
|
71
71
|
"@testing-library/react": "^16.3.2",
|
|
72
72
|
"@testing-library/user-event": "^14.6.1",
|
|
73
73
|
"@types/node": "^20",
|
|
74
74
|
"@types/react": "^19",
|
|
75
75
|
"@types/react-dom": "^19",
|
|
76
|
+
"@types/ws": "^8.18.1",
|
|
77
|
+
"@vercel/analytics": "^2.0.1",
|
|
78
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
76
79
|
"concurrently": "^9.2.1",
|
|
77
80
|
"eslint": "^9",
|
|
78
81
|
"eslint-config-next": "16.1.6",
|
|
79
82
|
"jsdom": "^27.0.1",
|
|
83
|
+
"next": "16.1.6",
|
|
84
|
+
"ox": "^0.14.8",
|
|
80
85
|
"typescript": "^5",
|
|
81
|
-
"vitest": "^3.2.4"
|
|
86
|
+
"vitest": "^3.2.4",
|
|
87
|
+
"wagmi": "^2.19.5"
|
|
82
88
|
}
|
|
83
89
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env npx tsx
|
|
2
|
+
/**
|
|
3
|
+
* One-off fix: mark specific published files as "published-not-indexed".
|
|
4
|
+
* For files published before #64's index failure tracking.
|
|
5
|
+
*
|
|
6
|
+
* Usage: npx tsx scripts/fix-index-status.ts <story-name> <file-name> [error-message]
|
|
7
|
+
* Example: npx tsx scripts/fix-index-status.ts new-employee plot-01.md "Content hash mismatch"
|
|
8
|
+
*
|
|
9
|
+
* Without arguments: lists all published files for review.
|
|
10
|
+
*/
|
|
11
|
+
import fs from "fs";
|
|
12
|
+
import path from "path";
|
|
13
|
+
import { fileURLToPath } from "url";
|
|
14
|
+
|
|
15
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const STORIES_DIR = path.join(__dirname, "..", "stories");
|
|
17
|
+
|
|
18
|
+
interface FileStatus {
|
|
19
|
+
file: string;
|
|
20
|
+
status: string;
|
|
21
|
+
txHash?: string;
|
|
22
|
+
storylineId?: number;
|
|
23
|
+
contentCid?: string;
|
|
24
|
+
publishedAt?: string;
|
|
25
|
+
gasCost?: string;
|
|
26
|
+
indexError?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function listPublished() {
|
|
30
|
+
if (!fs.existsSync(STORIES_DIR)) {
|
|
31
|
+
console.log("No stories directory found.");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const dirs = fs.readdirSync(STORIES_DIR, { withFileTypes: true })
|
|
36
|
+
.filter((d) => d.isDirectory() && !d.name.startsWith("."));
|
|
37
|
+
|
|
38
|
+
for (const dir of dirs) {
|
|
39
|
+
const statusFile = path.join(STORIES_DIR, dir.name, ".publish-status.json");
|
|
40
|
+
if (!fs.existsSync(statusFile)) continue;
|
|
41
|
+
|
|
42
|
+
const status: Record<string, FileStatus> = JSON.parse(fs.readFileSync(statusFile, "utf-8"));
|
|
43
|
+
for (const [file, entry] of Object.entries(status)) {
|
|
44
|
+
const icon = entry.status === "published" ? "\u2713" : entry.status === "published-not-indexed" ? "\u26A0" : "\u23F3";
|
|
45
|
+
console.log(` ${icon} ${dir.name}/${file} — ${entry.status}${entry.indexError ? ` (${entry.indexError})` : ""}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function markNotIndexed(storyName: string, fileName: string, errorMessage: string) {
|
|
51
|
+
const statusFile = path.join(STORIES_DIR, storyName, ".publish-status.json");
|
|
52
|
+
if (!fs.existsSync(statusFile)) {
|
|
53
|
+
console.error(`No .publish-status.json found for story "${storyName}"`);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const status: Record<string, FileStatus> = JSON.parse(fs.readFileSync(statusFile, "utf-8"));
|
|
58
|
+
const entry = status[fileName];
|
|
59
|
+
|
|
60
|
+
if (!entry) {
|
|
61
|
+
console.error(`File "${fileName}" not found in ${storyName}/.publish-status.json`);
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (entry.status !== "published" && entry.status !== "published-not-indexed") {
|
|
66
|
+
console.error(`File "${fileName}" is not published (status: ${entry.status})`);
|
|
67
|
+
process.exit(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (entry.status === "published-not-indexed") {
|
|
71
|
+
console.log(`Already marked as published-not-indexed.`);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
entry.status = "published-not-indexed";
|
|
76
|
+
entry.indexError = errorMessage;
|
|
77
|
+
fs.writeFileSync(statusFile, JSON.stringify(status, null, 2) + "\n");
|
|
78
|
+
console.log(`Marked ${storyName}/${fileName} as published-not-indexed: ${errorMessage}`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const [storyName, fileName, ...rest] = process.argv.slice(2);
|
|
82
|
+
|
|
83
|
+
if (!storyName) {
|
|
84
|
+
console.log("Published files:\n");
|
|
85
|
+
listPublished();
|
|
86
|
+
console.log("\nTo fix: npx tsx scripts/fix-index-status.ts <story> <file> [error-message]");
|
|
87
|
+
} else if (!fileName) {
|
|
88
|
+
console.error("Usage: npx tsx scripts/fix-index-status.ts <story-name> <file-name> [error-message]");
|
|
89
|
+
process.exit(1);
|
|
90
|
+
} else {
|
|
91
|
+
const errorMessage = rest.join(" ") || "Not indexed on plotlink.xyz (pre-#64 publish)";
|
|
92
|
+
markNotIndexed(storyName, fileName, errorMessage);
|
|
93
|
+
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
-
* https://github.com/chjj/term.js
|
|
5
|
-
* @license MIT
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in
|
|
15
|
-
* all copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
* THE SOFTWARE.
|
|
24
|
-
*
|
|
25
|
-
* Originally forked from (with the author's permission):
|
|
26
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
-
* http://bellard.org/jslinux/
|
|
28
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
-
* The original design remains. The terminal itself
|
|
30
|
-
* has been extended to include xterm CSI codes, among
|
|
31
|
-
* other features.
|
|
32
|
-
*/.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-700:oklch(50.5% .213 27.518);--color-amber-700:oklch(55.5% .163 48.998);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.h-2{height:calc(var(--spacing) * 2)}.h-14{height:calc(var(--spacing) * 14)}.h-\[calc\(100vh-3\.5rem\)\]{height:calc(100vh - 3.5rem)}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-2{width:calc(var(--spacing) * 2)}.w-56{width:calc(var(--spacing) * 56)}.w-96{width:calc(var(--spacing) * 96)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--accent)}.border-accent-dim\/30{border-color:var(--accent-dim)}@supports (color:color-mix(in lab,red,red)){.border-accent-dim\/30{border-color:color-mix(in oklab,var(--accent-dim) 30%,transparent)}}.border-accent\/30{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.border-accent\/30{border-color:color-mix(in oklab,var(--accent) 30%,transparent)}}.border-border{border-color:var(--border)}.border-green-700\/30{border-color:#0081384d}@supports (color:color-mix(in lab,red,red)){.border-green-700\/30{border-color:color-mix(in oklab,var(--color-green-700) 30%,transparent)}}.border-red-700\/30{border-color:#bf000f4d}@supports (color:color-mix(in lab,red,red)){.border-red-700\/30{border-color:color-mix(in oklab,var(--color-red-700) 30%,transparent)}}.bg-accent{background-color:var(--accent)}.bg-green-600{background-color:var(--color-green-600)}.bg-surface{background-color:var(--bg-surface)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.text-accent{color:var(--accent)}.text-accent-dim{color:var(--accent-dim)}.text-amber-700{color:var(--color-amber-700)}.text-error{color:var(--error)}.text-foreground{color:var(--text)}.text-green-700{color:var(--color-green-700)}.text-muted{color:var(--text-muted)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.placeholder\:text-muted\/50::placeholder{color:var(--text-muted)}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-muted\/50::placeholder{color:color-mix(in oklab,var(--text-muted) 50%,transparent)}}@media(hover:hover){.hover\:border-accent:hover{border-color:var(--accent)}.hover\:border-error:hover{border-color:var(--error)}.hover\:bg-accent-dim:hover{background-color:var(--accent-dim)}.hover\:bg-accent\/10:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab,var(--accent) 10%,transparent)}}.hover\:bg-surface:hover{background-color:var(--bg-surface)}.hover\:text-accent:hover{color:var(--accent)}.hover\:text-error:hover{color:var(--error)}.hover\:text-foreground:hover{color:var(--text)}.hover\:opacity-80:hover{opacity:.8}}.focus\:border-accent:focus{border-color:var(--accent)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}}:root{--bg:#e8dfd0;--bg-surface:#f0ebe1;--bg-shelf:#ddd3c2;--text:#2c1810;--text-muted:#8b7355;--accent:#8b4513;--accent-dim:#6b3410;--border:#d4c5b0;--error:#c33;--paper-bg:#f5f0e8}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,system-ui,-apple-system,sans-serif}::selection{background:var(--accent);color:#fff}h1,h2,h3,h4,.prose,.prose p,.prose li,.prose blockquote{font-family:Lora,Georgia,Times New Roman,serif}code,pre{font-family:Geist Mono,ui-monospace,monospace}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|