pi-webapp 0.1.15 → 0.1.17
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 +4 -0
- package/README.zh-CN.md +4 -0
- package/dist/extension.js +32 -19
- package/package.json +11 -4
- package/scripts/prepare-terminal.mjs +13 -0
- package/web/dist/.vite/manifest.json +37 -26
- package/web/dist/assets/WorkspaceTerminal-Cv7i8bfS.js +39 -0
- package/web/dist/assets/app-BcKKo2mS.js +544 -0
- package/web/dist/assets/app.js +3 -3
- package/web/dist/assets/{elixir-DRaGIFOe.js → elixir-DI-tUE_U.js} +1 -1
- package/web/dist/assets/{graphql-CPu4t9Rb.js → graphql-CyDJk6iz.js} +1 -1
- package/web/dist/assets/{html-DsaiN7Ee.js → html-DfmEJESS.js} +1 -1
- package/web/dist/assets/{html-derivative-CADUTaWI.js → html-derivative-BaRuZAr6.js} +1 -1
- package/web/dist/assets/{http-CyXgDlvg.js → http-CVN_N8n2.js} +1 -1
- package/web/dist/assets/{julia-BCSipsbD.js → julia-VEDmabGN.js} +1 -1
- package/web/dist/assets/{perl-D7RI67n_.js → perl-g_tPwekP.js} +1 -1
- package/web/dist/assets/{php-yXDw_aVH.js → php-A4BIeElV.js} +1 -1
- package/web/dist/assets/{rst-BNRqfzXQ.js → rst-B92-rlVg.js} +1 -1
- package/web/dist/assets/{ruby-DTpjfrpO.js → ruby-c8J5vT5Z.js} +1 -1
- package/web/dist/assets/style.css +32 -1
- package/web/dist/assets/{svelte-CV4VbUXv.js → svelte-CPI69Rj5.js} +1 -1
- package/web/dist/assets/{vue-Bx5OMyw-.js → vue-1xbTMnSE.js} +1 -1
- package/web/dist/assets/app-D-yOwj1g.js +0 -542
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-webapp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A browser interface for Pi with live chat, workspaces, models, and attachments",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"pi-webapp": "./bin/pi-webapp.mjs"
|
|
16
16
|
},
|
|
17
17
|
"pi": {
|
|
18
|
-
"image": "https://cdn.jsdelivr.net/npm/pi-webapp@0.1.
|
|
18
|
+
"image": "https://cdn.jsdelivr.net/npm/pi-webapp@0.1.17/assets/cover-webapp.png",
|
|
19
19
|
"extensions": [
|
|
20
20
|
"./dist/extension.js"
|
|
21
21
|
]
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"LICENSE",
|
|
31
31
|
"web/src/ui/shared/LICENSE.txt",
|
|
32
32
|
"docs/sentry.md",
|
|
33
|
-
"docs/sentry-triage.md"
|
|
33
|
+
"docs/sentry-triage.md",
|
|
34
|
+
"scripts/prepare-terminal.mjs"
|
|
34
35
|
],
|
|
35
36
|
"scripts": {
|
|
36
37
|
"start": "npm run build && node bin/pi-webapp.mjs",
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
"verify:package": "node scripts/verify-sentry-release.mjs --package-only",
|
|
48
49
|
"verify:sentry": "node scripts/verify-sentry-release.mjs --live",
|
|
49
50
|
"sentry:triage": "node scripts/sentry-triage.mjs",
|
|
50
|
-
"test:browser": "playwright test"
|
|
51
|
+
"test:browser": "playwright test",
|
|
52
|
+
"postinstall": "node scripts/prepare-terminal.mjs"
|
|
51
53
|
},
|
|
52
54
|
"publishConfig": {
|
|
53
55
|
"access": "public"
|
|
@@ -83,6 +85,10 @@
|
|
|
83
85
|
"@sentry/node": "11.4.0",
|
|
84
86
|
"@sentry/react": "11.4.0",
|
|
85
87
|
"@shikijs/langs": "^4.3.1",
|
|
88
|
+
"@xterm/addon-fit": "0.11.0",
|
|
89
|
+
"@xterm/addon-serialize": "0.14.0",
|
|
90
|
+
"@xterm/headless": "6.0.0",
|
|
91
|
+
"@xterm/xterm": "6.0.0",
|
|
86
92
|
"anser": "^2.3.5",
|
|
87
93
|
"clsx": "^2.1.1",
|
|
88
94
|
"cross-spawn": "^7.0.6",
|
|
@@ -99,6 +105,7 @@
|
|
|
99
105
|
"micromark-util-classify-character": "^2.0.1",
|
|
100
106
|
"micromark-util-sanitize-uri": "^2.0.1",
|
|
101
107
|
"micromark-util-symbol": "^2.0.1",
|
|
108
|
+
"node-pty": "1.1.0",
|
|
102
109
|
"react": "^18.3.1",
|
|
103
110
|
"react-dom": "^18.3.1",
|
|
104
111
|
"react-markdown": "^10.1.0",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { chmod, stat } from "node:fs/promises";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
|
|
5
|
+
// node-pty 1.1.0 publishes its macOS spawn-helper without an executable bit.
|
|
6
|
+
// Keep clean installs usable without altering the user's global environment.
|
|
7
|
+
if (process.platform === "darwin") {
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
const root = dirname(require.resolve("node-pty/package.json"));
|
|
10
|
+
const helper = join(root, "prebuilds", `darwin-${process.arch}`, "spawn-helper");
|
|
11
|
+
try { const info = await stat(helper); await chmod(helper, info.mode | 0o111); }
|
|
12
|
+
catch (error) { if (error.code !== "ENOENT") throw error; } // Source builds provide their own executable.
|
|
13
|
+
}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"isDynamicEntry": true
|
|
82
82
|
},
|
|
83
83
|
"../../node_modules/@shikijs/langs/dist/elixir.mjs": {
|
|
84
|
-
"file": "assets/elixir-
|
|
84
|
+
"file": "assets/elixir-DI-tUE_U.js",
|
|
85
85
|
"name": "elixir",
|
|
86
86
|
"src": "../../node_modules/@shikijs/langs/dist/elixir.mjs",
|
|
87
87
|
"isDynamicEntry": true,
|
|
@@ -122,13 +122,13 @@
|
|
|
122
122
|
"isDynamicEntry": true
|
|
123
123
|
},
|
|
124
124
|
"../../node_modules/@shikijs/langs/dist/graphql.mjs": {
|
|
125
|
-
"file": "assets/graphql-
|
|
125
|
+
"file": "assets/graphql-CyDJk6iz.js",
|
|
126
126
|
"name": "graphql",
|
|
127
127
|
"src": "../../node_modules/@shikijs/langs/dist/graphql.mjs",
|
|
128
128
|
"isDynamicEntry": true,
|
|
129
129
|
"imports": [
|
|
130
130
|
"_javascript-D_ijBMSX.js",
|
|
131
|
-
"_app-
|
|
131
|
+
"_app-BcKKo2mS.js",
|
|
132
132
|
"index.html"
|
|
133
133
|
]
|
|
134
134
|
},
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"isDynamicEntry": true
|
|
152
152
|
},
|
|
153
153
|
"../../node_modules/@shikijs/langs/dist/html.mjs": {
|
|
154
|
-
"file": "assets/html-
|
|
154
|
+
"file": "assets/html-DfmEJESS.js",
|
|
155
155
|
"name": "html",
|
|
156
156
|
"src": "../../node_modules/@shikijs/langs/dist/html.mjs",
|
|
157
157
|
"isDynamicEntry": true,
|
|
@@ -161,12 +161,12 @@
|
|
|
161
161
|
]
|
|
162
162
|
},
|
|
163
163
|
"../../node_modules/@shikijs/langs/dist/http.mjs": {
|
|
164
|
-
"file": "assets/http-
|
|
164
|
+
"file": "assets/http-CVN_N8n2.js",
|
|
165
165
|
"name": "http",
|
|
166
166
|
"src": "../../node_modules/@shikijs/langs/dist/http.mjs",
|
|
167
167
|
"isDynamicEntry": true,
|
|
168
168
|
"imports": [
|
|
169
|
-
"_app-
|
|
169
|
+
"_app-BcKKo2mS.js",
|
|
170
170
|
"../../node_modules/@shikijs/langs/dist/xml.mjs",
|
|
171
171
|
"../../node_modules/@shikijs/langs/dist/graphql.mjs",
|
|
172
172
|
"index.html",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"isDynamicEntry": true
|
|
188
188
|
},
|
|
189
189
|
"../../node_modules/@shikijs/langs/dist/julia.mjs": {
|
|
190
|
-
"file": "assets/julia-
|
|
190
|
+
"file": "assets/julia-VEDmabGN.js",
|
|
191
191
|
"name": "julia",
|
|
192
192
|
"src": "../../node_modules/@shikijs/langs/dist/julia.mjs",
|
|
193
193
|
"isDynamicEntry": true,
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"isDynamicEntry": true
|
|
262
262
|
},
|
|
263
263
|
"../../node_modules/@shikijs/langs/dist/perl.mjs": {
|
|
264
|
-
"file": "assets/perl-
|
|
264
|
+
"file": "assets/perl-g_tPwekP.js",
|
|
265
265
|
"name": "perl",
|
|
266
266
|
"src": "../../node_modules/@shikijs/langs/dist/perl.mjs",
|
|
267
267
|
"isDynamicEntry": true,
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
]
|
|
276
276
|
},
|
|
277
277
|
"../../node_modules/@shikijs/langs/dist/php.mjs": {
|
|
278
|
-
"file": "assets/php-
|
|
278
|
+
"file": "assets/php-A4BIeElV.js",
|
|
279
279
|
"name": "php",
|
|
280
280
|
"src": "../../node_modules/@shikijs/langs/dist/php.mjs",
|
|
281
281
|
"isDynamicEntry": true,
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"../../node_modules/@shikijs/langs/dist/xml.mjs",
|
|
285
285
|
"../../node_modules/@shikijs/langs/dist/sql.mjs",
|
|
286
286
|
"_javascript-D_ijBMSX.js",
|
|
287
|
-
"_app-
|
|
287
|
+
"_app-BcKKo2mS.js",
|
|
288
288
|
"../../node_modules/@shikijs/langs/dist/css.mjs",
|
|
289
289
|
"../../node_modules/@shikijs/langs/dist/java.mjs",
|
|
290
290
|
"index.html"
|
|
@@ -315,16 +315,16 @@
|
|
|
315
315
|
"isDynamicEntry": true
|
|
316
316
|
},
|
|
317
317
|
"../../node_modules/@shikijs/langs/dist/rst.mjs": {
|
|
318
|
-
"file": "assets/rst-
|
|
318
|
+
"file": "assets/rst-B92-rlVg.js",
|
|
319
319
|
"name": "rst",
|
|
320
320
|
"src": "../../node_modules/@shikijs/langs/dist/rst.mjs",
|
|
321
321
|
"isDynamicEntry": true,
|
|
322
322
|
"imports": [
|
|
323
|
-
"_html-derivative-
|
|
323
|
+
"_html-derivative-BaRuZAr6.js",
|
|
324
324
|
"../../node_modules/@shikijs/langs/dist/cpp.mjs",
|
|
325
325
|
"../../node_modules/@shikijs/langs/dist/python.mjs",
|
|
326
326
|
"_javascript-D_ijBMSX.js",
|
|
327
|
-
"_app-
|
|
327
|
+
"_app-BcKKo2mS.js",
|
|
328
328
|
"../../node_modules/@shikijs/langs/dist/yaml.mjs",
|
|
329
329
|
"../../node_modules/@shikijs/langs/dist/cmake.mjs",
|
|
330
330
|
"../../node_modules/@shikijs/langs/dist/ruby.mjs",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
]
|
|
341
341
|
},
|
|
342
342
|
"../../node_modules/@shikijs/langs/dist/ruby.mjs": {
|
|
343
|
-
"file": "assets/ruby-
|
|
343
|
+
"file": "assets/ruby-c8J5vT5Z.js",
|
|
344
344
|
"name": "ruby",
|
|
345
345
|
"src": "../../node_modules/@shikijs/langs/dist/ruby.mjs",
|
|
346
346
|
"isDynamicEntry": true,
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"../../node_modules/@shikijs/langs/dist/graphql.mjs",
|
|
354
354
|
"../../node_modules/@shikijs/langs/dist/cpp.mjs",
|
|
355
355
|
"../../node_modules/@shikijs/langs/dist/c.mjs",
|
|
356
|
-
"_app-
|
|
356
|
+
"_app-BcKKo2mS.js",
|
|
357
357
|
"../../node_modules/@shikijs/langs/dist/lua.mjs",
|
|
358
358
|
"../../node_modules/@shikijs/langs/dist/yaml.mjs",
|
|
359
359
|
"../../node_modules/@shikijs/langs/dist/java.mjs",
|
|
@@ -388,13 +388,13 @@
|
|
|
388
388
|
"isDynamicEntry": true
|
|
389
389
|
},
|
|
390
390
|
"../../node_modules/@shikijs/langs/dist/svelte.mjs": {
|
|
391
|
-
"file": "assets/svelte-
|
|
391
|
+
"file": "assets/svelte-CPI69Rj5.js",
|
|
392
392
|
"name": "svelte",
|
|
393
393
|
"src": "../../node_modules/@shikijs/langs/dist/svelte.mjs",
|
|
394
394
|
"isDynamicEntry": true,
|
|
395
395
|
"imports": [
|
|
396
396
|
"_javascript-D_ijBMSX.js",
|
|
397
|
-
"_app-
|
|
397
|
+
"_app-BcKKo2mS.js",
|
|
398
398
|
"../../node_modules/@shikijs/langs/dist/css.mjs",
|
|
399
399
|
"index.html"
|
|
400
400
|
]
|
|
@@ -430,16 +430,16 @@
|
|
|
430
430
|
"isDynamicEntry": true
|
|
431
431
|
},
|
|
432
432
|
"../../node_modules/@shikijs/langs/dist/vue.mjs": {
|
|
433
|
-
"file": "assets/vue-
|
|
433
|
+
"file": "assets/vue-1xbTMnSE.js",
|
|
434
434
|
"name": "vue",
|
|
435
435
|
"src": "../../node_modules/@shikijs/langs/dist/vue.mjs",
|
|
436
436
|
"isDynamicEntry": true,
|
|
437
437
|
"imports": [
|
|
438
438
|
"../../node_modules/@shikijs/langs/dist/css.mjs",
|
|
439
439
|
"_javascript-D_ijBMSX.js",
|
|
440
|
-
"_app-
|
|
440
|
+
"_app-BcKKo2mS.js",
|
|
441
441
|
"../../node_modules/@shikijs/langs/dist/html.mjs",
|
|
442
|
-
"_html-derivative-
|
|
442
|
+
"_html-derivative-BaRuZAr6.js",
|
|
443
443
|
"index.html"
|
|
444
444
|
]
|
|
445
445
|
},
|
|
@@ -694,8 +694,18 @@
|
|
|
694
694
|
"file": "assets/KaTeX_Typewriter-Regular.woff2",
|
|
695
695
|
"src": "../../node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2"
|
|
696
696
|
},
|
|
697
|
-
"
|
|
698
|
-
"file": "assets/
|
|
697
|
+
"WorkspaceTerminal.tsx": {
|
|
698
|
+
"file": "assets/WorkspaceTerminal-Cv7i8bfS.js",
|
|
699
|
+
"name": "WorkspaceTerminal",
|
|
700
|
+
"src": "WorkspaceTerminal.tsx",
|
|
701
|
+
"isDynamicEntry": true,
|
|
702
|
+
"imports": [
|
|
703
|
+
"_app-BcKKo2mS.js",
|
|
704
|
+
"index.html"
|
|
705
|
+
]
|
|
706
|
+
},
|
|
707
|
+
"_app-BcKKo2mS.js": {
|
|
708
|
+
"file": "assets/app-BcKKo2mS.js",
|
|
699
709
|
"name": "app",
|
|
700
710
|
"isDynamicEntry": true,
|
|
701
711
|
"imports": [
|
|
@@ -758,7 +768,8 @@
|
|
|
758
768
|
"../../node_modules/@shikijs/langs/dist/svelte.mjs",
|
|
759
769
|
"../../node_modules/@shikijs/langs/dist/make.mjs",
|
|
760
770
|
"../../node_modules/@shikijs/langs/dist/cmake.mjs",
|
|
761
|
-
"../../node_modules/@shikijs/langs/dist/groovy.mjs"
|
|
771
|
+
"../../node_modules/@shikijs/langs/dist/groovy.mjs",
|
|
772
|
+
"WorkspaceTerminal.tsx"
|
|
762
773
|
],
|
|
763
774
|
"assets": [
|
|
764
775
|
"assets/KaTeX_AMS-Regular.woff2",
|
|
@@ -822,8 +833,8 @@
|
|
|
822
833
|
"assets/KaTeX_Typewriter-Regular.ttf"
|
|
823
834
|
]
|
|
824
835
|
},
|
|
825
|
-
"_html-derivative-
|
|
826
|
-
"file": "assets/html-derivative-
|
|
836
|
+
"_html-derivative-BaRuZAr6.js": {
|
|
837
|
+
"file": "assets/html-derivative-BaRuZAr6.js",
|
|
827
838
|
"name": "html-derivative",
|
|
828
839
|
"imports": [
|
|
829
840
|
"../../node_modules/@shikijs/langs/dist/html.mjs"
|
|
@@ -840,7 +851,7 @@
|
|
|
840
851
|
"isEntry": true,
|
|
841
852
|
"dynamicImports": [
|
|
842
853
|
"telemetry-client.ts",
|
|
843
|
-
"_app-
|
|
854
|
+
"_app-BcKKo2mS.js"
|
|
844
855
|
]
|
|
845
856
|
},
|
|
846
857
|
"style.css": {
|