@wentianen/opencode-viewer 0.1.0
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/index.js +7460 -0
- package/dist/web/assets/index-BsxobLm1.js +40 -0
- package/dist/web/assets/index-Cayn5Wq7.css +1 -0
- package/dist/web/index.html +13 -0
- package/package.json +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{color-scheme:dark;--bg: #071018;--bg-soft: #0c1822;--panel: rgba(10, 19, 28, .88);--line: rgba(145, 170, 186, .18);--text: #e7f1f5;--muted: #7f97a8;--accent: #68f4c0;--accent-soft: rgba(104, 244, 192, .14)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top left,rgba(104,244,192,.12),transparent 24%),radial-gradient(circle at top right,rgba(89,180,255,.08),transparent 22%),linear-gradient(180deg,#071018,#09131c);color:var(--text);font-family:IBM Plex Sans,Helvetica Neue,sans-serif}button{font:inherit}#root{min-height:100vh}.app-shell{min-height:100vh;padding:28px}.hero-strip{display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}.eyebrow,.section-label{margin:0 0 8px;color:var(--accent);font-size:12px;letter-spacing:.16em;text-transform:uppercase}.hero-strip h1{margin:0;font-size:clamp(40px,8vw,78px);line-height:.94;letter-spacing:-.05em}.mode-bar{display:inline-flex;gap:10px}.mode-pill{border:1px solid var(--line);background:transparent;color:var(--muted);padding:10px 14px;border-radius:999px}.mode-pill.is-active{border-color:#68f4c057;background:var(--accent-soft);color:var(--text)}.overview-strip{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:18px;padding:22px 0 26px;border-bottom:1px solid var(--line)}.overview-strip div{display:flex;flex-direction:column;gap:6px}.overview-strip strong{font-size:clamp(24px,4vw,34px);font-weight:600;letter-spacing:-.04em}.overview-strip span{color:var(--muted);font-size:14px}.workspace{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(420px,1.7fr) minmax(260px,1fr);gap:18px;padding-top:22px}.panel{min-height:62vh;background:var(--panel);border:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.panel-header{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:18px 18px 14px;border-bottom:1px solid var(--line)}.panel-header span{color:var(--muted);font-size:13px}.session-list,.timeline-list,.detail-block{padding:10px 0}.session-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:0;border-bottom:1px solid rgba(145,170,186,.08);background:transparent;color:inherit;text-align:left}.session-row.is-active{background:linear-gradient(90deg,rgba(104,244,192,.1),transparent 72%)}.session-name{font-weight:500}.session-meta,.timeline-meta,.timeline-route{color:var(--muted);font-size:13px}.timeline-row{width:100%;background:transparent;border:0;padding:16px 18px;border-bottom:1px solid rgba(145,170,186,.08);color:inherit;text-align:left}.timeline-row.is-selected{background:linear-gradient(90deg,rgba(104,244,192,.08),transparent 70%)}.timeline-route{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--text)}.timeline-arrow{color:var(--accent)}.timeline-meta{display:flex;justify-content:space-between;gap:16px}.detail-block{padding:18px}.detail-title{margin:0 0 12px;font-size:15px;font-weight:600}.detail-block pre{margin:0;padding:14px;overflow:auto;background:#ffffff08;color:#bfe8d9;font-size:13px;line-height:1.5}@media(max-width:980px){.app-shell{padding:18px}.hero-strip{flex-direction:column;align-items:start}.overview-strip{grid-template-columns:1fr 1fr}.workspace{grid-template-columns:1fr}.panel{min-height:auto}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>OpenCode Activity Viewer</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BsxobLm1.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cayn5Wq7.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wentianen/opencode-viewer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./dist/index.js",
|
|
12
|
+
"./plugin": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"clean": "rm -rf dist",
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"test:watch": "vitest",
|
|
18
|
+
"dev": "vite",
|
|
19
|
+
"build:web": "vite build",
|
|
20
|
+
"build:plugin": "esbuild src/plugin/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js",
|
|
21
|
+
"build": "npm run clean && npm run build:plugin && npm run build:web"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@hono/node-server": "^1.14.2",
|
|
25
|
+
"framer-motion": "^12.6.3",
|
|
26
|
+
"hono": "^4.10.7",
|
|
27
|
+
"react": "^18.3.1",
|
|
28
|
+
"react-dom": "^18.3.1",
|
|
29
|
+
"zod": "^3.25.76"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@testing-library/react": "^16.3.0",
|
|
33
|
+
"@types/react": "^18.3.12",
|
|
34
|
+
"@types/react-dom": "^18.3.1",
|
|
35
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
36
|
+
"esbuild": "^0.25.9",
|
|
37
|
+
"jsdom": "^26.1.0",
|
|
38
|
+
"tsx": "^4.19.4",
|
|
39
|
+
"typescript": "^5.8.3",
|
|
40
|
+
"vite": "^6.3.5",
|
|
41
|
+
"vitest": "^3.1.4"
|
|
42
|
+
}
|
|
43
|
+
}
|