tring-chat 0.1.7 → 0.1.9

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.
@@ -13,8 +13,8 @@
13
13
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
14
14
  <meta name="apple-mobile-web-app-title" content="tring" />
15
15
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%23071a15'/><rect x='11' y='11' width='10' height='10' rx='2' fill='%233ee9a4'/><g fill='%23145f4a'><rect x='4' y='4' width='6' height='6' rx='1.5'/><rect x='13' y='4' width='6' height='6' rx='1.5'/><rect x='22' y='4' width='6' height='6' rx='1.5'/><rect x='4' y='13' width='6' height='6' rx='1.5'/><rect x='22' y='13' width='6' height='6' rx='1.5'/><rect x='4' y='22' width='6' height='6' rx='1.5'/><rect x='13' y='22' width='6' height='6' rx='1.5'/><rect x='22' y='22' width='6' height='6' rx='1.5'/></g></svg>" />
16
- <script type="module" crossorigin src="/assets/index-Duc9mz6Q.js"></script>
17
- <link rel="stylesheet" crossorigin href="/assets/index-9gbsSKfr.css">
16
+ <script type="module" crossorigin src="/assets/index-OEG-FJ7q.js"></script>
17
+ <link rel="stylesheet" crossorigin href="/assets/index-CzTgQqii.css">
18
18
  </head>
19
19
  <body>
20
20
  <div id="app">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tring-chat",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Focus-centred terminal deck for agentic work — 16 live terminals around one focus, green when an agent is done",
5
5
  "keywords": [
6
6
  "terminal",
@@ -31,12 +31,14 @@
31
31
  },
32
32
  "files": [
33
33
  "dist",
34
+ "scripts",
34
35
  "README.md"
35
36
  ],
36
37
  "scripts": {
37
38
  "dev": "TRING_NO_OPEN=1 TRING_ALLOW_ORIGIN=http://localhost:5173,http://127.0.0.1:5173 tsx watch src/index.ts",
38
39
  "start": "tsx src/index.ts",
39
40
  "build": "node build.mjs",
41
+ "postinstall": "node scripts/postinstall.mjs",
40
42
  "prepublishOnly": "node build.mjs"
41
43
  },
42
44
  "dependencies": {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Repairs node-pty's spawn-helper at install time. See src/spawn-helper.ts for
3
+ * what is wrong with it and why this runs as well as the startup pass.
4
+ *
5
+ * A loader rather than a second copy of the logic: `npm run build` emits the
6
+ * real thing beside the daemon. A source checkout has nothing built yet when
7
+ * npm runs this — and also nothing installed to repair, and the startup pass
8
+ * to cover it — so a missing file here is the normal case, not a failure.
9
+ */
10
+ import { existsSync } from 'node:fs'
11
+ import path from 'node:path'
12
+ import { fileURLToPath, pathToFileURL } from 'node:url'
13
+
14
+ const built = path.resolve(
15
+ path.dirname(fileURLToPath(import.meta.url)),
16
+ '../dist/fix-spawn-helper.mjs',
17
+ )
18
+ if (existsSync(built)) await import(pathToFileURL(built).href)