pi-webapp 0.1.24 → 0.1.26

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.
@@ -11,7 +11,8 @@
11
11
  Gatekeeper 仍可能拦截;`spctl --assess` 拒绝此包是预期限制,不等于打包签名校验失败。
12
12
  - SHA-256 只核对发行文件;临时签名只检查包是否符合当前签名,不验证开发者身份,
13
13
  二者都不能证明软件安全。只邀请明确知情、愿意信任项目的测试用户。
14
- - 当前主分支没有桌面自动更新器。测试包从 Release 下载、校验后手动安装。
14
+ - 桌面更新菜单可下载、校验并交给 Finder 手动安装 macOS arm64 测试包;不会自动安装 ad-hoc 包。
15
+ Intel macOS、Windows/Linux 的更新菜单打开官方 Releases,选择匹配的安装包。
15
16
 
16
17
  ## 测试用户安装步骤
17
18
 
@@ -56,14 +57,14 @@ Web 版,或从可信源码构建运行,不必购买开发者会员。
56
57
 
57
58
  - 默认 `mac.identity` 为 `-`;证书自动发现保持关闭。
58
59
  正式签名须由有权限的操作员显式配置 `CSC_NAME`,不得把 ad-hoc 宣称为发布者签名。
59
- - electron-builder 在生成 DMG **之前**,自内向外签署嵌套代码并做 strict 验证。
60
+ - electron-builder 在生成 DMG/ZIP **之前**,自内向外签署嵌套代码并做 strict 验证。
60
61
  默认 hardened runtime 及 Electron 所需 JIT/library-validation entitlements 由固定版本
61
62
  electron-builder 提供;不得在签名后改写应用资源。
62
63
  - `npm run desktop:package` 与发布准备均拒绝未封装资源或签名校验失败的应用。
63
64
  `desktop-release.json` 的 `signing` 记录 `type` 和 `verified`;兼容字段 `unsigned: true`
64
65
  表示**没有发布者身份**,即使 ad-hoc 完整性校验通过也保持为 true。
65
- - 打包命令还会只读挂载 DMG,自动校验其中实际应用的 deep/strict 签名。
66
- 当前主分支保持 DMG 分发,不为此引入 ZIP 更新包或自动更新器。
66
+ - 打包命令还会只读挂载 DMG、解压 ZIP,自动校验其中实际应用的 deep/strict 签名。
67
+ 四平台发布清单可包含 macOS arm64 的可选更新 ZIP;没有发布者身份时仍只走 DMG 手动安装。
67
68
  执行 packaged smoke(含 PTY/浏览器共享后台)。
68
69
  这些检查不能替代“浏览器下载 → Finder 安装 → 用户明确同意”的隔离场景人工验收。
69
70
  - 每次交付递增 `desktop/release.json` 的构建号、重新生成校验和。
package/docs/desktop.md CHANGED
@@ -65,7 +65,7 @@ intentionally rejected by the wrapper: using the current machine's Node/native
65
65
  modules in another platform's installer would create a broken application. Use
66
66
  native runners for each target. `desktop.yml` remains a manual cross-platform
67
67
  packaging/artifact workflow. The separate `desktop-release.yml` below handles
68
- verified macOS arm64 prereleases, not every main push.
68
+ verified four-platform prereleases, not every main push.
69
69
 
70
70
  The embedded runtime never automatically launches a second browser for its Web
71
71
  page: the shared browser opener honors `PI_WEBAPP_AUTO_OPEN=0` and desktop runtime
@@ -94,8 +94,8 @@ testing. No certificate is needed: `mac.identity` defaults to `-`; an authorized
94
94
  operator may explicitly select `CSC_NAME` for Developer ID signing. Certificate
95
95
  discovery stays disabled. Windows/Linux's unsigned release paths are unchanged.
96
96
 
97
- Electron-builder signs nested code before creating the DMG. Packaging verifies
98
- the app and the read-only mounted DMG; release preparation requires deep/strict
97
+ Electron-builder signs nested code before creating the DMG/ZIP. Packaging verifies
98
+ the app, the read-only mounted DMG, and the extracted ZIP; release preparation requires deep/strict
99
99
  verification and a complete resource seal on both macOS architectures. macOS
100
100
  receipts record `signing: { type: "ad-hoc" | "developer-id", verified: true }`;
101
101
  `unsigned: true` means **no publisher identity**, including valid ad-hoc signatures.
@@ -107,9 +107,39 @@ manual, app-scoped trust exception for a known test build. Never disable OS
107
107
  security globally. Public distribution needs authorized signing/notarization;
108
108
  local packaging success is not proof of downloaded first-launch acceptance.
109
109
 
110
- For now, install a newer desktop package to upgrade; if replacing a running
111
- desktop-owned runtime, first finish tasks and stop that owned service. A desktop
112
- attached to an external Web service can simply close without stopping the service.
110
+ Use **pi → 检查桌面更新…** (also available in connection recovery). Checks run
111
+ once after a successful connection unless `PI_WEBAPP_DESKTOP_UPDATE_CHECK=manual`.
112
+ The native updater uses the latest 100 official GitHub Releases, including labeled
113
+ prereleases, not npm's `latest`. Drafts, downgrades, and other architectures are
114
+ rejected. Schema-1 receipts and schema-2 four-platform bundles are supported;
115
+ aggregate metadata must agree with the selected macOS arm64 receipt and its assets.
116
+
117
+ - Downloads need consent, are streamed into private temporary files, are bounded
118
+ to 2 GiB / 15 minutes, and verify the exact byte count and SHA-256. Only fixed
119
+ official GitHub URLs and release-asset redirects are accepted. Progress uses
120
+ the OS window indicator; **取消桌面更新下载** aborts and cleans partial files.
121
+ - An ad-hoc/unsigned current app or target, or a manifest without an update ZIP,
122
+ only downloads a checked DMG and reveals it in Finder for **manual installation**.
123
+ Checksums do not prove publisher identity; Gatekeeper is not bypassed.
124
+ - A publisher-signed current app and target ZIP still require a separate
125
+ **安装并重启** confirmation before Squirrel.Mac sees an update. The native
126
+ updater verifies the installed signing identity; a token-bound private loopback
127
+ feed serves only the checked ZIP. Deferring consent does not stage a native
128
+ update. Native failure/timeout requires restarting the desktop before retrying.
129
+ - A live bundled runtime (owned or attached), unknown backend, or startup in
130
+ progress blocks installation. Finish all tasks and terminals, stop the bundled
131
+ service from its original entry, and retry from the still-open desktop. The
132
+ updater never stops tasks or writes launcher/restart metadata. External npm
133
+ backends stay running and are checked again for replacement before installation.
134
+ A staged native update is guarded on normal exit too, because Squirrel may
135
+ apply it then. Failed checks leave the original app and background work intact.
136
+
137
+ Automatic installation is limited to publisher-signed macOS arm64 applications;
138
+ Intel macOS, Windows/Linux, and source runs open official Releases instead.
139
+ Actual signed replacement still needs signed old/new applications and separate
140
+ release QA; unit tests and ad-hoc smoke do not certify it. Existing desktop builds
141
+ without this updater need one manual upgrade. Public signing/notarization remains
142
+ separately authorized; the wrapper does not discover certificates automatically.
113
143
  Desktop-managed backends reject the Web/npm update and restart paths,
114
144
  so the UI cannot overwrite the bundled runtime. A desktop window attached to an
115
145
  existing npm-managed backend preserves that backend's original update behavior.
@@ -138,8 +168,9 @@ keeps its existing name; this rename is for the native desktop application.
138
168
 
139
169
  Download builds from **[GitHub Releases](https://github.com/chengzhiyi/pi-webapp/releases)**,
140
170
  not the npm package, source ZIP or an expired Actions artifact. The current
141
- release channel only offers tested macOS Apple Silicon DMGs; Windows/Linux and
142
- Intel macOS need their own acceptance before becoming release targets.
171
+ build-8 channel offers macOS arm64/Intel, Windows x64, and Linux x64 test installers.
172
+ Use each release's actual asset list and acceptance notes, not matrix configuration
173
+ alone, to determine support.
143
174
 
144
175
  `.github/workflows/desktop-release.yml` supports:
145
176
 
@@ -158,7 +189,7 @@ its independent npm pipeline may write another version. Increment the desktop
158
189
  build number for each delivered rebuild. Tag creation/release is an intentional
159
190
  publication action, not part of an ordinary main commit.
160
191
 
161
- The candidate build-6 pipeline adds four **native** targets:
192
+ The release pipeline uses four **native** targets:
162
193
 
163
194
  | Target | Runner | Installer payload tested |
164
195
  | --- | --- | --- |
@@ -175,22 +206,23 @@ build 7. ARM Windows/Linux and other targets are not implicitly supported.
175
206
 
176
207
  A read-only aggregation job requires **all four** verified receipts from the
177
208
  same source/version/build/Pi pair. It collects four installers, SHA256SUMS,
178
- `desktop-release.json` (schema 2, per-target runtime and smoke evidence), and
179
- release-notes.md. A missing/failed target prevents the complete release; matrix
209
+ `desktop-release.json` (schema 2, per-target runtime and smoke evidence), optional
210
+ macOS arm64 updater ZIP, and release-notes.md. Updater menu smoke is required on
211
+ every target; the download/handoff smoke is required only on supported macOS arm64. A missing/failed target prevents the complete release; matrix
180
212
  entries alone are not an acceptance claim. Build-only runs also exercise this
181
213
  aggregation, but never create a public Release.
182
214
 
183
215
  Only the final Ubuntu publish job gets `contents: write`, with no npm installation
184
216
  or app execution. It checks the bundle, creates a **draft prerelease**, uploads
185
- four installers plus checksums and metadata, downloads all six assets to verify
186
- their bytes, then publishes with `latest=false`. An interrupted upload stays a
217
+ four installers, any declared updater ZIP, checksums and metadata, downloads all
218
+ declared assets to verify their bytes, then publishes with `latest=false`. An interrupted upload stays a
187
219
  draft; retries may repair it. Published assets are never clobbered: a retry only
188
220
  succeeds if every downloaded file is byte-identical. Conflicting source/tag or
189
221
  bytes fail rather than replacing a public download.
190
222
 
191
- The original public build 5 remains macOS-arm64-only with Pi 0.87.1. Do not
192
- advertise candidate target support or point users to candidate installer links
193
- until native jobs pass and that new build has actually been published.
223
+ The original public build 5 remains macOS-arm64-only with Pi 0.87.1. Build 8
224
+ provides four-platform installers with Pi 1.3.0. Never advertise a new candidate's
225
+ support or download URLs until native jobs pass and it has actually been published.
194
226
 
195
227
  The packing wrapper deliberately retains `--publish never`: explicit CI Release
196
228
  upload owns publication. The manual cross-platform package workflow remains
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-webapp",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "description": "A browser interface for Pi with live chat, workspaces, models, and attachments",
6
6
  "repository": {
@@ -15,13 +15,14 @@
15
15
  "pi-webapp": "./bin/pi-webapp.mjs"
16
16
  },
17
17
  "pi": {
18
- "image": "https://cdn.jsdelivr.net/npm/pi-webapp@0.1.24/assets/cover-webapp.png",
18
+ "image": "https://cdn.jsdelivr.net/npm/pi-webapp@0.1.26/assets/cover-webapp.png",
19
19
  "extensions": [
20
20
  "./dist/extension.js"
21
21
  ]
22
22
  },
23
23
  "files": [
24
24
  "assets/cover-webapp.png",
25
+ "assets/readme",
25
26
  "bin",
26
27
  "dist",
27
28
  "web/dist",
@@ -122,13 +122,13 @@
122
122
  "isDynamicEntry": true
123
123
  },
124
124
  "../../node_modules/@shikijs/langs/dist/graphql.mjs": {
125
- "file": "assets/graphql-BjSnAUKM.js",
125
+ "file": "assets/graphql-CM8br3eP.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-uZ4wCYr8.js",
131
+ "_app-DGAHiflJ.js",
132
132
  "index.html"
133
133
  ]
134
134
  },
@@ -161,12 +161,12 @@
161
161
  ]
162
162
  },
163
163
  "../../node_modules/@shikijs/langs/dist/http.mjs": {
164
- "file": "assets/http-B7mqrZ_R.js",
164
+ "file": "assets/http-Dl6CKe_K.js",
165
165
  "name": "http",
166
166
  "src": "../../node_modules/@shikijs/langs/dist/http.mjs",
167
167
  "isDynamicEntry": true,
168
168
  "imports": [
169
- "_app-uZ4wCYr8.js",
169
+ "_app-DGAHiflJ.js",
170
170
  "../../node_modules/@shikijs/langs/dist/xml.mjs",
171
171
  "../../node_modules/@shikijs/langs/dist/graphql.mjs",
172
172
  "index.html",
@@ -275,7 +275,7 @@
275
275
  ]
276
276
  },
277
277
  "../../node_modules/@shikijs/langs/dist/php.mjs": {
278
- "file": "assets/php-Cvwc1Xta.js",
278
+ "file": "assets/php-Bk_hkz6U.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-uZ4wCYr8.js",
287
+ "_app-DGAHiflJ.js",
288
288
  "../../node_modules/@shikijs/langs/dist/css.mjs",
289
289
  "../../node_modules/@shikijs/langs/dist/java.mjs",
290
290
  "index.html"
@@ -315,7 +315,7 @@
315
315
  "isDynamicEntry": true
316
316
  },
317
317
  "../../node_modules/@shikijs/langs/dist/rst.mjs": {
318
- "file": "assets/rst-DutdH0pA.js",
318
+ "file": "assets/rst-L1NMAHRS.js",
319
319
  "name": "rst",
320
320
  "src": "../../node_modules/@shikijs/langs/dist/rst.mjs",
321
321
  "isDynamicEntry": true,
@@ -324,7 +324,7 @@
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-uZ4wCYr8.js",
327
+ "_app-DGAHiflJ.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-Bpvk-Mco.js",
343
+ "file": "assets/ruby-CT2Et3Md.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-uZ4wCYr8.js",
356
+ "_app-DGAHiflJ.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-CPcJi_Ee.js",
391
+ "file": "assets/svelte-gqLIvd6P.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-uZ4wCYr8.js",
397
+ "_app-DGAHiflJ.js",
398
398
  "../../node_modules/@shikijs/langs/dist/css.mjs",
399
399
  "index.html"
400
400
  ]
@@ -430,14 +430,14 @@
430
430
  "isDynamicEntry": true
431
431
  },
432
432
  "../../node_modules/@shikijs/langs/dist/vue.mjs": {
433
- "file": "assets/vue-s7ynYl37.js",
433
+ "file": "assets/vue-9dlEQDyH.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-uZ4wCYr8.js",
440
+ "_app-DGAHiflJ.js",
441
441
  "../../node_modules/@shikijs/langs/dist/html.mjs",
442
442
  "_html-derivative-C2Epw9Yg.js",
443
443
  "index.html"
@@ -704,37 +704,37 @@
704
704
  ]
705
705
  },
706
706
  "../../src/plugins/builtin/files/client/plugin.tsx": {
707
- "file": "assets/plugin-DK_rN4N5.js",
707
+ "file": "assets/plugin-BPPaJeXM.js",
708
708
  "name": "plugin",
709
709
  "src": "../../src/plugins/builtin/files/client/plugin.tsx",
710
710
  "isDynamicEntry": true,
711
711
  "imports": [
712
- "_app-uZ4wCYr8.js",
712
+ "_app-DGAHiflJ.js",
713
713
  "index.html"
714
714
  ]
715
715
  },
716
716
  "../../src/plugins/builtin/git/client/plugin.tsx": {
717
- "file": "assets/plugin-BB8YECov.js",
717
+ "file": "assets/plugin-C7GyvZv1.js",
718
718
  "name": "plugin",
719
719
  "src": "../../src/plugins/builtin/git/client/plugin.tsx",
720
720
  "isDynamicEntry": true,
721
721
  "imports": [
722
- "_app-uZ4wCYr8.js",
722
+ "_app-DGAHiflJ.js",
723
723
  "index.html"
724
724
  ]
725
725
  },
726
726
  "../../src/plugins/builtin/terminal/client/plugin.tsx": {
727
- "file": "assets/plugin-Bs3cPDKk.js",
727
+ "file": "assets/plugin-BBQh2TKb.js",
728
728
  "name": "plugin",
729
729
  "src": "../../src/plugins/builtin/terminal/client/plugin.tsx",
730
730
  "isDynamicEntry": true,
731
731
  "imports": [
732
- "_app-uZ4wCYr8.js",
732
+ "_app-DGAHiflJ.js",
733
733
  "index.html"
734
734
  ]
735
735
  },
736
- "_app-uZ4wCYr8.js": {
737
- "file": "assets/app-uZ4wCYr8.js",
736
+ "_app-DGAHiflJ.js": {
737
+ "file": "assets/app-DGAHiflJ.js",
738
738
  "name": "app",
739
739
  "isDynamicEntry": true,
740
740
  "imports": [
@@ -882,7 +882,7 @@
882
882
  "isEntry": true,
883
883
  "dynamicImports": [
884
884
  "../../src/host/client/telemetry-client.ts",
885
- "_app-uZ4wCYr8.js"
885
+ "_app-DGAHiflJ.js"
886
886
  ]
887
887
  },
888
888
  "style.css": {