@surething/cockpit 1.0.198 → 1.0.199
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/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +6 -6
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/server/app/_global-error.html +1 -1
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.html +1 -1
- package/.next-prod/server/app/_not-found.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app-paths-manifest.json +6 -6
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +1 -1
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/trace +12 -12
- package/.next-prod/trace-build +1 -1
- package/package.json +2 -1
- package/scripts/copy-tree-sitter-wasms.mjs +104 -0
- /package/.next-prod/static/{eqVRf-W4m2tYF1VSzMIDY → Gxin8huIJYob3ajiI7kX1}/_buildManifest.js +0 -0
- /package/.next-prod/static/{eqVRf-W4m2tYF1VSzMIDY → Gxin8huIJYob3ajiI7kX1}/_ssgManifest.js +0 -0
package/.next-prod/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":14372277,"timestamp":140166449,"id":14,"parentId":1,"tags":{},"startTime":1778080573793,"traceId":"d2ad6efd9830baa6"},{"name":"run-typescript","duration":15729188,"timestamp":154542569,"id":1437,"parentId":1,"tags":{},"startTime":1778080588170,"traceId":"d2ad6efd9830baa6"},{"name":"static-check","duration":887243,"timestamp":170311865,"id":1440,"parentId":1,"tags":{},"startTime":1778080603939,"traceId":"d2ad6efd9830baa6"},{"name":"static-generation","duration":4711758,"timestamp":171326271,"id":1676,"parentId":1,"tags":{},"startTime":1778080604953,"traceId":"d2ad6efd9830baa6"},{"name":"collect-build-traces","duration":17861250,"timestamp":171199828,"id":1673,"parentId":1,"tags":{},"startTime":1778080604827,"traceId":"d2ad6efd9830baa6"},{"name":"telemetry-flush","duration":53,"timestamp":189065340,"id":1685,"parentId":1,"tags":{},"startTime":1778080622692,"traceId":"d2ad6efd9830baa6"},{"name":"next-build","duration":49068818,"timestamp":139996588,"id":1,"tags":{"buildMode":"default","version":"16.2.4","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1778080573624,"traceId":"d2ad6efd9830baa6"}]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surething/cockpit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.199",
|
|
4
4
|
"description": "Claude Code GUI for parallel AI coding — multi-project sessions, terminal, browser & DB bubbles, code review, and slash modes. Built on the official Claude Agent SDK. Local-first, open source.",
|
|
5
5
|
"author": "Robert",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
".next-prod",
|
|
57
57
|
"kernels",
|
|
58
58
|
"next.config.mjs",
|
|
59
|
+
"scripts/copy-tree-sitter-wasms.mjs",
|
|
59
60
|
"LICENSE",
|
|
60
61
|
"README.md"
|
|
61
62
|
],
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Copy tree-sitter WASM grammars from node_modules into public/tree-sitter/.
|
|
4
|
+
*
|
|
5
|
+
* Sources:
|
|
6
|
+
* - node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter-<lang>.wasm (devDep, prebuilt grammars)
|
|
7
|
+
* - node_modules/web-tree-sitter/web-tree-sitter.wasm (runtime, regular dep)
|
|
8
|
+
*
|
|
9
|
+
* Destination: public/tree-sitter/
|
|
10
|
+
*
|
|
11
|
+
* Why @vscode/tree-sitter-wasm: it ships WASMs whose ABI matches modern
|
|
12
|
+
* `web-tree-sitter` (0.25+). The previously-tried `tree-sitter-wasms` package
|
|
13
|
+
* pinned `tree-sitter-cli@0.20.x` and produced WASMs without the dylink section
|
|
14
|
+
* required by newer runtimes ("need dylink section" error).
|
|
15
|
+
*
|
|
16
|
+
* The list of grammars MUST stay in sync with `SUPPORTED_GRAMMARS` in
|
|
17
|
+
* `src/lib/codeMap/languageMap.ts`. Add a name here and bump the WASM in.
|
|
18
|
+
*
|
|
19
|
+
* Behaviour:
|
|
20
|
+
* - Idempotent: skips files that already match by size + mtime.
|
|
21
|
+
* - Graceful: if the source package is missing (production install without
|
|
22
|
+
* devDeps), logs a notice and exits 0 — the WASMs are expected to be
|
|
23
|
+
* present from the published `public/` directory in that case.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { existsSync, mkdirSync, copyFileSync, statSync } from 'node:fs';
|
|
27
|
+
import { dirname, join, resolve } from 'node:path';
|
|
28
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
29
|
+
|
|
30
|
+
const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url));
|
|
31
|
+
const SCRIPT_PROJECT_ROOT = join(SCRIPT_DIR, '..');
|
|
32
|
+
|
|
33
|
+
// Keep this list aligned with SUPPORTED_GRAMMARS in src/lib/codeMap/languageMap.ts.
|
|
34
|
+
const GRAMMARS = ['typescript', 'tsx', 'javascript', 'python', 'go', 'rust'];
|
|
35
|
+
|
|
36
|
+
function copyIfChanged(src, dst, label) {
|
|
37
|
+
if (!existsSync(src)) {
|
|
38
|
+
console.warn(`[copy-tree-sitter-wasms] missing source: ${label} (${src}) — skipping`);
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
if (existsSync(dst)) {
|
|
42
|
+
const a = statSync(src);
|
|
43
|
+
const b = statSync(dst);
|
|
44
|
+
if (a.size === b.size && Math.abs(a.mtimeMs - b.mtimeMs) < 1000) return false;
|
|
45
|
+
}
|
|
46
|
+
copyFileSync(src, dst);
|
|
47
|
+
console.log(`[copy-tree-sitter-wasms] ✓ ${label}`);
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Copy WASMs into `<projectRoot>/public/tree-sitter/`. Idempotent:
|
|
53
|
+
* skips files that already match by size + mtime.
|
|
54
|
+
*
|
|
55
|
+
* @param projectRoot Absolute project root. Defaults to the repo this
|
|
56
|
+
* script lives in. `bin/postinstall.mjs` passes the consuming
|
|
57
|
+
* project's root explicitly so the helper works from inside a
|
|
58
|
+
* nested node_modules tree.
|
|
59
|
+
* @returns true if at least one file was copied (or warned about);
|
|
60
|
+
* false if everything was already up-to-date and nothing happened.
|
|
61
|
+
*/
|
|
62
|
+
export function copyTreeSitterWasms(projectRoot = SCRIPT_PROJECT_ROOT) {
|
|
63
|
+
const destDir = join(projectRoot, 'public', 'tree-sitter');
|
|
64
|
+
const grammarSrcDir = join(projectRoot, 'node_modules', '@vscode', 'tree-sitter-wasm', 'wasm');
|
|
65
|
+
const runtimeSrc = join(projectRoot, 'node_modules', 'web-tree-sitter', 'web-tree-sitter.wasm');
|
|
66
|
+
|
|
67
|
+
mkdirSync(destDir, { recursive: true });
|
|
68
|
+
|
|
69
|
+
if (!existsSync(grammarSrcDir)) {
|
|
70
|
+
// Production install (no devDeps) — WASMs are already vendored in public/.
|
|
71
|
+
// Verify and bail.
|
|
72
|
+
const allPresent = GRAMMARS.every((g) =>
|
|
73
|
+
existsSync(join(destDir, `tree-sitter-${g}.wasm`)),
|
|
74
|
+
);
|
|
75
|
+
if (!allPresent) {
|
|
76
|
+
console.warn(
|
|
77
|
+
'[copy-tree-sitter-wasms] @vscode/tree-sitter-wasm not installed and grammar files missing in public/tree-sitter/. ' +
|
|
78
|
+
'Code Map symbol extraction will be unavailable. Install devDeps or vendor the WASMs.',
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
let copied = 0;
|
|
85
|
+
for (const g of GRAMMARS) {
|
|
86
|
+
const src = join(grammarSrcDir, `tree-sitter-${g}.wasm`);
|
|
87
|
+
const dst = join(destDir, `tree-sitter-${g}.wasm`);
|
|
88
|
+
if (copyIfChanged(src, dst, `tree-sitter-${g}.wasm`)) copied++;
|
|
89
|
+
}
|
|
90
|
+
if (copyIfChanged(runtimeSrc, join(destDir, 'web-tree-sitter.wasm'), 'web-tree-sitter.wasm')) copied++;
|
|
91
|
+
|
|
92
|
+
if (copied === 0) {
|
|
93
|
+
console.log('[copy-tree-sitter-wasms] all WASMs already up to date');
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Run as CLI when invoked directly (`node scripts/copy-tree-sitter-wasms.mjs`).
|
|
99
|
+
// Detection: compare import.meta.url to the resolved argv[1] file URL. If
|
|
100
|
+
// imported as a module (e.g. by bin/postinstall.mjs), this branch is skipped
|
|
101
|
+
// and only the export above is exposed.
|
|
102
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
|
|
103
|
+
copyTreeSitterWasms();
|
|
104
|
+
}
|
/package/.next-prod/static/{eqVRf-W4m2tYF1VSzMIDY → Gxin8huIJYob3ajiI7kX1}/_buildManifest.js
RENAMED
|
File without changes
|
|
File without changes
|