Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

docs: harden agent guidance with hotfix runbook and risk-area invariants

Tw93430d09c01baf
diff --git a/.agents/skills/github-ops/SKILL.md b/.agents/skills/github-ops/SKILL.md
index 168cb655..ac31ff89 100644
--- a/.agents/skills/github-ops/SKILL.md
+++ b/.agents/skills/github-ops/SKILL.md
@@ -1,7 +1,7 @@
---
name: github-ops
description: GitHub issue, PR, and release operations via gh CLI. Not for code review or release builds.
-version: 1.1.0
+version: 1.2.0
allowed-tools:
- Bash
- Read
@@ -72,15 +72,15 @@ gh release view V3.10.0
gh run list --workflow=release.yml
gh run list --workflow=npm-publish.yml
-# Watch a running CI job
-gh run watch
+# Poll a running CI job (structured status; never pipe `gh run watch` to tail/head, pipes swallow the exit code)
+gh run view <run-id> --json status,conclusion
# View CI run logs
gh run view <run-id> --log
-# Verify npm registry state after publish
+# Verify npm registry state after publish (gitHead ties the package to the intended commit)
+npm view pake-cli@<version> version gitHead dist.tarball --json
npm view pake-cli version
-npm view pake-cli@<version> dist.tarball
```
## CI / Workflow Operations
diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md
index 7172e9ab..44f81ef4 100644
--- a/.agents/skills/release/SKILL.md
+++ b/.agents/skills/release/SKILL.md
@@ -1,7 +1,7 @@
---
name: release
description: Prepare, validate, and publish a Pake release. Not for version bumps without release intent.
-version: 1.4.0
+version: 1.5.0
allowed-tools:
- Bash
- Read
@@ -51,7 +51,7 @@ If the bump push is rejected, the contributors bot pushed `chore: update contrib
### Post-Tag Verification
1. [ ] Confirm CI triggered: `gh run list --workflow=release.yml`
-2. [ ] Watch CI status: `gh run watch`
+2. [ ] Poll CI status: `gh run view <run-id> --json status,conclusion` (never pipe `gh run watch` or build output to `tail`/`head`; pipes swallow the real exit code and misreport failures as green)
3. [ ] Verify GitHub Release was created: `gh release view VX.X.X --json tagName,url,assets`
4. [ ] Fill the GitHub Release title and body from the template in **GitHub Release Notes** below. CI's `create-release` step only makes a bare placeholder (title = `VX.X.X`, empty body); do not leave it bare.
5. [ ] Confirm npm workflow exists and is active: `gh workflow list --all | grep "Publish npm Package"`
@@ -72,6 +72,20 @@ Keep release surfaces separate in the final status:
Do not collapse these into "released" without naming which surface was verified. If GitHub Release assets are visible while `gh run list` still reports the release workflow as queued or in progress, trust `gh release view` for asset state and report the workflow state separately.
+## 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.
+
+1. [ ] Bump all four version files, rebuild `dist/cli.js` (`pnpm run cli:build`), stage with `git add -f dist/cli.js`
+2. [ ] Run the pre-release gates that apply: `npx vitest run` and `pnpm run release:check`
+3. [ ] Commit `chore: bump version to VX.Y.Z` and push `main`
+4. [ ] Dispatch: `gh workflow run npm-publish.yml --ref main`
+5. [ ] Poll: `gh run view <run-id> --json status,conclusion`
+6. [ ] Verify: `npm view [email protected] version gitHead dist.tarball --json` (gitHead must match the bump commit) and `npm view pake-cli version` for the `latest` pointer
+7. [ ] Issue closeout per AGENTS.md; if the fix lives in the Rust template, tell users to rebuild their app after upgrading, because upgrading the CLI alone does not update already-built apps
+
+Skip list, do not do these for a hotfix: no `V*` tag, no GitHub Release or notes, no release reactions, no Docker. App-release surfaces stay untouched until the next `V*` release bundles the fix.
+
## 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).
diff --git a/.claude/rules/rust.md b/.claude/rules/rust.md
index 3d018650..009bf629 100644
--- a/.claude/rules/rust.md
+++ b/.claude/rules/rust.md
@@ -1,6 +1,6 @@
# Pake Rust + Tauri Rules
-> Pake-specific Rust + Tauri rules. Standard Rust hygiene is assumed: `?` over `unwrap()`, `cargo clippy` clean, `cargo fmt` before commit.
+> Pake-specific Rust + Tauri rules. Standard Rust hygiene is assumed: `?` over `unwrap()`, `cargo clippy` clean, `cargo fmt` before commit. The `dist/cli.js` rebuild rule and CN mirror policy live in AGENTS.md (Current Risk Areas / Network Mirror Behavior) and are not repeated here.
## Pake-Specific
@@ -23,16 +23,6 @@
- No `tauriConf: any` or other untyped config bags. Use `PakeTauriConfig`.
- Window options live in `bin/helpers/cli-program.ts`, `bin/types.ts`, `bin/defaults.ts`, `bin/helpers/merge.ts`. Adding an option means touching all four plus `schema/pake.schema.json` and `docs/cli-usage*.md`. Forgetting any is a regression; the schema half is caught by `tests/unit/config-file.test.ts`.
-### Network mirrors
-
-- CN mirror switching is **explicit opt-in** via `PAKE_USE_CN_MIRROR=1`. Do not reintroduce automatic CN-domain detection.
-- Behavior owners: `bin/utils/mirror.ts` and `bin/builders/BaseBuilder.ts`. Keep docs and tests aligned.
-
-### dist/cli.js
-
-- `dist/cli.js` is a tracked build artifact (declared in `package.json` `files`).
-- Any change under `bin/` must rebuild with `pnpm run cli:build` and commit the regenerated `dist/cli.js` alongside the source change.
-
### Platform sensitivity
- WebKit compositing on Linux/Wayland is platform-sensitive. Don't change defaults without testing on the affected platform or documenting the risk.
diff --git a/AGENTS.md b/AGENTS.md
index 998e7f35..50d76bde 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -110,6 +110,8 @@ Execution rules:
- Release state can be split. npm Trusted Publishing can succeed before the popular-app release workflow finishes, and GitHub Release assets can exist while a workflow run still shows queued or in progress. Report each surface explicitly.
- Local app builds and test runs mutate tracked files as build state: `src-tauri/pake.json`, `src-tauri/tauri.conf.json`, `src-tauri/tauri.macos.conf.json`, and regenerated icons under `src-tauri/png/` and `src-tauri/icons/`. Before committing, `git restore` whatever you did not intentionally change; never let a feature or release commit absorb this churn.
- Per-app optional fields in `default_app_list.json` consumed by workflows must get their defaults in the jq read step of `release.yml`, not in Actions expressions: GitHub expressions cast both `null` and `false` to `0`, so `matrix.config.x != false` cannot express "default true" and silently flips every app missing the field.
+- Windows taskbar icons can register blank when an autostarted app launches before Explorer's icon cache is ready (#1323). Every hidden-to-visible path for the main window (tray show/click, activation shortcut, single-instance activation, initial delayed show) must call `reapply_window_icon` from `src-tauri/src/app/window.rs`; adding a new `window.show()` path without it regresses the bug.
+- `.github/workflows/pake-cli.yaml` and `single-app.yaml` are public build surfaces that external users trigger from their own forks (see `docs/github-actions-usage*.md`). Changes there ship to outside users on push to `main`, independent of `V*` releases; treat them like public API, not internal CI.
## Platform-Specific Development