Commit 17818ea
authored
feat: desktop app with auto-update, telemetry, release pipeline, and site showcase (#80)
## Related Issue
No issue — the desktop app work was planned directly on this branch; the
problem is explained below.
## Problem
Pythinker had no desktop distribution. The Electron shell on this branch
needed the remaining production pieces: a 1:1 port of the reference
desktop design (sidebar, collapse choreography, typography), a way to
ship and update installed apps, operational telemetry, and a public
landing spot on the site. Separately, resolving questions/approvals
wrote events to the session journal that the schema could not read back,
which bricked session loading with error 50001.
## What changed
- **Protocol fix:** register the seven question/approval lifecycle
events in the event schema and drop the unchecked casts at the publish
sites; journals containing them now validate (regression-tested against
real journal shapes).
- **Desktop web UI:** reference sidebar (workspaces header,
search/filter, inset session rows, settings footer), 90px collapsed rail
hosting the macOS traffic lights, phased collapse/expand animation,
empty-state halo, and the reference typography (system UI stack + SF
Mono-led code stack) gated to `data-desktop-platform` so browser builds
are unaffected.
- **Auto-update:** electron-updater with a GitHub Releases feed, on by
default, persisted setting, sandboxed preload bridge, and a Settings
"Desktop app" section with the toggle, manual check, and
restart-to-update.
- **Telemetry:** desktop lifecycle and update-lifecycle events through
the existing telemetry package; crash handlers and quit-time flush; no
content, paths, or titles in properties.
- **Release pipeline:** `desktop-release.yml` publishes DMG + ZIP +
`latest-mac.yml` on `desktop-v*` tags (the updater feed);
signing/notarization secrets optional.
- **Site:** "Pythinker Desktop" showcase section with a webm loop,
reduced-motion fallback, and a download CTA.
- Workspace hygiene: desktop dev-dependency versions aligned with the
root pins; flake `pnpmDeps` hash refreshed and validated with a clean
`nix build .#pythinker-code`.
Verified by: package builds/typechecks, desktop vitest (47), web tests
(261), protocol (508) and server (502) suites, site build, YAML parse of
the workflow, and the pre-push full gate.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] I have linked a related issue, or explained the problem above.
- [x] I have added tests that prove my feature works.
- [x] Ran `gen-changesets` skill, or this PR needs no changeset.
- [ ] Ran `gen-docs` skill, or this PR needs no doc update.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a desktop app with macOS packaging, auto-updates, splash screen,
system tray controls, and resilient session lifecycle management.
* Added desktop update controls for automatic checks, manual checks, and
restart-to-install.
* Added sidebar search, workspace controls, collapsible navigation,
refreshed colors, typography, and animated mascot states.
* Added desktop app showcase content and download guidance to the
website.
* Added support for Node.js 20 and newer.
* Added question, approval, and prompt lifecycle events.
* **Bug Fixes**
* Improved handling of invalid sessions and journal events.
* Prevented duplicated streamed messages and restored paragraph breaks.
* Clarified update notices with warning styling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 26f3d18 commit 17818ea
97 files changed
Lines changed: 5682 additions & 218 deletions
File tree
- .changeset
- .github/workflows
- apps
- desktop
- build
- resources
- splash
- tray
- runtime-host
- scripts
- src
- tests
- pythinker-code
- src
- tui
- components/chrome
- test
- cli
- tui/components
- pythinker-web
- public/brand
- src
- api/daemon
- components
- composables
- i18n/locales/en
- test
- site
- public
- src
- packages
- agent-core
- src
- services/prompt
- session/store
- test/session
- node-sdk/test
- protocol/src
- __tests__
- rest
- server
- src/services
- approval
- question
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments