Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
docs: fix stale skill facts
youxi798777dd552ade5
diff --git a/.agents/skills/bugs/SKILL.md b/.agents/skills/bugs/SKILL.mdindex 45ce1e57..ebc0c4fd 100644--- a/.agents/skills/bugs/SKILL.md+++ b/.agents/skills/bugs/SKILL.md@@ -22,17 +22,17 @@ Aim it at a boundary, not at a file.Name the area and the depth. A whole-repo sweep with no budget produces speculation; pick one hotspot and go deep. Start from the Hotspot Map in `AGENTS.md` (Current Risk Areas + table below) rather than inventing a scope.-| Hotspot | Primary paths | Locked tests (examples) |-| -------------------------- | -------------------------------------------------------- | -------------------------------------------------------------- |-| Link / download heuristics | `src-tauri/src/inject/event.js` | `event-link-guard.test.js`, `download-http-status.test.ts` |-| Download success semantics | `src-tauri/src/app/invoke.rs`, `window.rs` `on_download` | `download-http-status.test.ts` |-| Menu / focused window | `src-tauri/src/app/menu.rs` | `menu-focused-window.test.ts` |-| Startup visibility | `src-tauri/src/lib.rs`, `setup.rs` | `startup-window-reveal.test.ts` |-| Auth / popup | `inject/auth.js`, `inject/event.js` | `auth-sso-patterns.test.js`, `new-window-macos.test.js` |-| Clipboard | `inject/event.js` | `event-clipboard-shortcuts.test.js` |-| Multi-window / icon | `window.rs`, `setup.rs` | `window-icon-reapply.test.ts`, `startup-window-reveal.test.ts` |-| Platform fake capability | `cert.rs`, proxy, WebKit flags in `lib.rs` | `macos-proxy-feature.test.ts`, Linux flag unit tests |-| CLI / config contract | `bin/`, `schema/pake.schema.json` | `config-file.test.ts`, `cli-options.test.ts` |+| Hotspot | Primary paths | Locked tests (examples) |+| -------------------------- | -------------------------------------------------------- | --------------------------------------------------------------------------------- |+| Link / download heuristics | `src-tauri/src/inject/event.js` | `event-link-guard.test.js`, `download-http-status.test.ts` |+| Download success semantics | `src-tauri/src/app/invoke.rs`, `window.rs` `on_download` | `download-http-status.test.ts` |+| Menu / focused window | `src-tauri/src/app/menu.rs` | `menu-focused-window.test.ts` |+| Startup visibility | `src-tauri/src/lib.rs`, `setup.rs` | `startup-window-reveal.test.ts` |+| Auth / popup | `inject/auth.js`, `inject/event.js` | `auth-sso-patterns.test.js`, `new-window-macos.test.js` |+| Clipboard | `inject/event.js` | `event-clipboard-shortcuts.test.js` |+| Multi-window / icon | `window.rs`, `setup.rs` | `window-icon-reapply.test.ts`, `startup-window-reveal.test.ts` |+| Platform fake capability | `auth.rs`, proxy, WebKit flags in `lib.rs` | `macos-proxy-feature.test.ts`, `lib.rs` `linux_webkit_safe_mode_*` (`cargo test`) |+| CLI / config contract | `bin/`, `schema/pake.schema.json` | `config-file.test.ts`, `cli-options.test.ts` |The AGENTS.md Hotspot Map third column is regression risk, not an open-bug list. Confirm against Current Risk Areas and the tests above before treating a row as a live defect.@@ -45,7 +45,7 @@ git log --pretty=format:'%h %s%n%b' --grep='^fix' -i -- <path> | head -200Bugs recur by shape within a module. Two signals worth acting on:-- A fix chain of three or more commits each "completing" the previous one means a fourth sibling is probably still out there. Real chains here: download path heuristics (`/releases/` → `/assets/` → next SPA root), startup reveal (blank → about:blank → user cancel), menu target (`"pake"` hardcode → focused window → remaining hardcodes).+- A fix chain of three or more commits each "completing" the previous one means a fourth sibling is probably still out there. Real chains here: download path heuristics (`/releases/`, then `/assets/`, then the next SPA root), startup reveal (blank, then about:blank, then user cancel), menu target (`"pake"` hardcode, then focused window, then remaining hardcodes).- A commit body that says the prior fix was incomplete means that pattern's grep was under-run once already. Re-run it.## 3. Sweep the boundaries, in this order@@ -61,10 +61,10 @@ Highest historical yield first. For each, read the matching Risk Areas note in `| Startup vs user control | Can page-load or fallback re-show a window the user already hid? Latch every user visibility path. | `lib.rs`, `setup.rs` || Auth / popup | Does macOS auth still crash, strand about:blank, or open the system browser for SSO? Apple Sign-In stays native popup. | `auth.js`, `event.js` || Clipboard | Does keydown steal native paste (images/files)? Is fallback gated on trusted keyup + TTL? | `event.js` |-| Platform capability | Is this flag real on WKWebView / WebView2 / WebKitGTK, or a Chromium-only no-op? | `cert.rs`, `window.rs`, `lib.rs` |+| Platform capability | Is this flag real on WKWebView / WebView2 / WebKitGTK, or a Chromium-only no-op? | `auth.rs`, `window.rs`, `lib.rs` || Config dual track | Can a config file smuggle a value the CLI flag rejects? | `bin/helpers/merge.ts`, schema |-For generic shapes (fail-open guards, recovery gated on the artifact it restores, watchdog tuned only to the fast path), invoke `/hunt` Recurring Failure mode. Do not re-derive that catalog here.+For generic shapes (fail-open guards, recovery gated on the artifact it restores, watchdog tuned only to the fast path), use `/hunt` and load its `references/failure-patterns.md` catalog. Do not re-derive that catalog here.## 4. Confirm before reportingdiff --git a/.agents/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.mdindex fcd29ad1..b3704dd7 100644--- a/.agents/skills/code-review/SKILL.md+++ b/.agents/skills/code-review/SKILL.md@@ -17,7 +17,7 @@ Use Waza `/check` for the generic review method. This adapter adds Pake-specific## Pake-Specific Hard Stops- [ ] Changes under `bin/` rebuild and commit `dist/cli.js` with `pnpm run cli:build`.-- [ ] Changes to package metadata embedded by Rollup (`package.json` name/version/repository/bin/scripts/exports) rebuild and commit `dist/cli.js`.+- [ ] Any `package.json` change (Rollup inlines the whole manifest, dependency bumps included) rebuilds and commits `dist/cli.js`.- [ ] Release version bumps keep `package.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock`, and `src-tauri/tauri.conf.json` in sync.- [ ] npm release workflow changes preserve Trusted Publishing: `.github/workflows/npm-publish.yml`, `id-token: write`, canonical `git+https://github.com/tw93/Pake.git`, and `scripts/check-release-version.mjs`.- [ ] Release/status changes keep npm registry, GitHub Release/assets, workflow run state, and issue closeout as separate truth surfaces.@@ -52,4 +52,4 @@ pnpm run cli:build## Review Output Format-Follow Waza `/check`: findings first, ordered by severity, with tight file/line references. Keep summaries brief.+Follow Waza `/check`: findings first, ordered by severity, with tight file/line references.diff --git a/.agents/skills/github-ops/SKILL.md b/.agents/skills/github-ops/SKILL.mdindex 8c186112..3261b449 100644--- a/.agents/skills/github-ops/SKILL.md+++ b/.agents/skills/github-ops/SKILL.md@@ -17,7 +17,7 @@ Always use `gh` CLI and query live state before acting. Never assume state from## Project Facts-- Repo: `tw93/Pake`. Workflows: `release.yml` (`V*` tag, builds app assets), `npm-publish.yml` (npm Trusted Publishing; also `workflow_dispatch` from `main` for npm-only hotfixes), `quality-and-test.yml` (push CI), `pake-cli.yaml` / `single-app.yaml` (public build surfaces external users trigger from forks).+- Repo: `tw93/Pake`. Workflows: `release.yml` (`V*` tag, builds app assets), `npm-publish.yml` (npm Trusted Publishing; also `workflow_dispatch` from `main` for npm-only hotfixes), `quality-and-test.yml` (push and PR CI), `pake-cli.yaml` / `single-app.yaml` (public build surfaces external users trigger from forks).- Poll CI with `gh run view <run-id> --json status,conclusion`. Never pipe `gh run watch` or build output through `tail`/`head`; pipes swallow the real exit code and misreport failures as green.- Verify npm state with `npm view pake-cli@<version> version gitHead dist.tarball --json`; `gitHead` ties the published package to the intended commit. Check the `latest` pointer separately with `npm view pake-cli version`; it can point at a different commit than the fix under review.- Inline PR review comments live at `gh api repos/tw93/Pake/pulls/<n>/comments`; `gh pr view` does not show them.diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.mdindex 18533940..3a9703b5 100644--- a/.agents/skills/release/SKILL.md+++ b/.agents/skills/release/SKILL.md@@ -18,10 +18,10 @@ Use this skill when preparing or executing a Pake release.Four files must be updated in sync, never update one without the others:-- `package.json` → `"version"`-- `src-tauri/Cargo.toml` → `version` under `[package]`-- `src-tauri/Cargo.lock` → `version` for package `pake`-- `src-tauri/tauri.conf.json` → `"version"`+- `package.json`: `"version"`+- `src-tauri/Cargo.toml`: `version` under `[package]`+- `src-tauri/Cargo.lock`: `version` for package `pake`+- `src-tauri/tauri.conf.json`: `"version"`## Release Checklist@@ -32,7 +32,7 @@ Four files must be updated in sync, never update one without the others:3. [ ] Confirm the version is not already on npm: `npm view [email protected] version` should return 404 before publishing4. [ ] Update all four version files above5. [ ] Run `pnpm run format`, must pass cleanly-6. [ ] Run `pnpm test`, must pass cleanly. If the release workflow step fails with `pnpm install ... exit code 1` against the CN mirror, re-run once; a single transient flake is acceptable, two consecutive failures is not.+6. [ ] Run `pnpm test`, must pass cleanly. If this step fails at the suite's `pnpm install pake-cli@latest` (run in `/tmp`) with exit code 1 against a mirror, re-run once; a single transient flake is acceptable, two consecutive failures is not.7. [ ] Run `pnpm run cli:build`, Rollup + TS must pass (catches type errors that `format` misses).8. [ ] Run `pnpm run release:check`, verifies version sync, package contents, and npm dry-run9. [ ] Re-read `git status --short --branch -uall`, `git diff`, and `git diff --cached`. Restore only known build-churn paths that were clean in the frozen baseline and whose new diff is provably generated by this run. If ownership is ambiguous, leave the live checkout untouched and repeat the release preparation in an isolated worktree; do not absorb unrelated churn into the release commit.@@ -75,12 +75,12 @@ Do not collapse these into "released" without naming which surface was verified.## npm-Only Hotfix (no tag)-For CLI or Rust-template fixes that must reach npm fast without an app release. Precedent: 3.15.0 and 3.15.2 shipped this way; the version number is still consumed, so the next `V*` tag skips over it.+For CLI or Rust-template fixes that must reach npm fast without an app release. Precedent: 3.15.0, 3.15.2 through 3.15.5, and 3.15.7 shipped this way; the version number is still consumed, so the next `V*` tag skips over it.1. [ ] Bump all four version files, rebuild `dist/cli.js` with `pnpm run cli:build`, stage the version files, and stage the ignored artifact with `git add -f dist/cli.js`2. [ ] Run `pnpm run release:check`. For a Rust-template fix, also run the narrow current-platform Rust check before pushing. Do not run `npx vitest run` separately because `release:check` already includes it.3. [ ] Commit `chore: bump version to VX.Y.Z` and push `main`-4. [ ] Record the exact commit selected for publishing with `git rev-parse HEAD`. Find its Quality & Testing run with `gh run list --workflow=quality-and-test.yml --commit <publish-sha> --limit 3 --json databaseId,headSha,status,conclusion`. Wait until that exact SHA is `completed` with `conclusion: success`. For Rust-template changes, confirm the Windows real Tauri build job passed before publishing.+4. [ ] Record the exact commit selected for publishing with `git rev-parse HEAD`. Find its Quality & Testing run with `gh run list --workflow=quality-and-test.yml --commit <publish-sha> --limit 3 --json databaseId,headSha,status,conclusion`. Wait until that exact SHA is `completed` with `conclusion: success`. For Rust-template changes, confirm the `Full Tauri Build (windows-latest)` job passed before publishing.5. [ ] Dispatch with both gates: `gh workflow run npm-publish.yml --ref main -f expected_sha=<publish-sha> -f quality_run_id=<quality-run-id>`. If `main` moved, select the new exact head and wait for its own successful Quality run instead of publishing against stale evidence.6. [ ] Poll the npm workflow with `gh run view <run-id> --json headSha,status,conclusion`; its `headSha` must match `<publish-sha>`.7. [ ] Verify `npm view [email protected] version gitHead dist.tarball --json`; `gitHead` must match `<publish-sha>`. Check `npm view pake-cli version` separately for the `latest` pointer.@@ -90,7 +90,7 @@ Skip list, do not do these for a hotfix: no `V*` tag, no GitHub Release or notes## GitHub Release Notes-CI only creates a bare placeholder release. Every published release must be edited to match the house format, or it looks broken next to the others. Before writing notes, run `gh release view <previous release>` and treat its structure as the hard template, title codename included. Two failure modes to avoid: a bare version title with no codename, and a body missing the logo header / star line / repo footer (see `V3.11.10` and `V3.12.0`, both fixed after the fact).+CI only creates a bare placeholder release. Every published release must be edited to match the house format, or it looks broken next to the others. Before writing notes, run `gh release view <previous release>` and treat its structure as the hard template, title codename included. Two failure modes to avoid: a bare version title with no codename, and a body missing the logo header / star line / repo footer.### Title format