← Commit history
Publish 1.0.11
6 files changed
+19−16
SKILL.md+2@@ -22,6 +22,8 @@ What every search DOES need is an **Adom identity**, because Adom attributes eac Backend resolution, in order: `--api` / `$JLCPCB_API` if set, then a local `adom-jlcpcb serve` on `127.0.0.1`, then **Adom's hosted backend at `https://jlcpcb-wela51osctvp.adom.cloud`**. It never falls back to calling JLCPCB directly. +A local backend counts only when its `/health` reports a JLCPCB catalogue. Another program on port 8774 (the Fusion 360 bridge add-in listens there) is skipped, and `health` says that server is not a JLCPCB backend instead of OK. If `search` ever returns `HTTP 404: {"error": "Not found"}`, check that `$JLCPCB_API` is not pointing at another program.+ If a search fails with **"this needs your ADOM identity, not a vendor API key"**, the machine presented no valid Adom token. The fix is signing in to Adom or setting `ADOM_API_KEY`. It is never a vendor key. If it fails with **"could not verify your identity right now"**, that is an Adom-side outage, not the user's credential: retry shortly. `GET /health` and `GET /usage` on the backend stay open without a credential so monitoring keeps working. `GET /usage?day=YYYY-MM-DD` returns that day's searches by user (`searches_by_owner`), separate from monitoring traffic.
bin/adom-jlcpcb⋯ 1 unchanged line ⋯
package.json+2−2@@ -1,7 +1,7 @@ { "slug": "adom-jlcpcb",- "version": "1.0.10",- "changelog": "1.0.10: skill cleanup: shorter description, the installed skill path corrected to ~/.claude/skills/adom-jlcpcb/, the release skill hidden from the model and moved off the retired adom-desktop CLI to adom-bridge.",+ "version": "1.0.11",+ "changelog": "A local backend counts only when its /health reports a JLCPCB catalogue, so the Fusion bridge add-in on port 8774 no longer captures every search (HTTP 404); health no longer says OK for another program (adom/adom-jlcpcb#4).", "type": "app", "description": "Check the JLCPCB / LCSC parts library before you fab \u2014 Basic vs Extended tier, LCSC stock and assembly pricing, so you avoid surprise feeder-setup fees. CLI, a Hydrogen app, and a shared backend.", "dependencies": {},
page.json+2−2@@ -4,8 +4,8 @@ "slug": "adom-jlcpcb", "title": "JLCPCB Parts Library", "brief": "Check the JLCPCB / LCSC parts library before you fab — Basic vs Extended tier, LCSC stock and assembly pricing, so you avoid surprise feeder-setup fees. CLI, a Hydrogen app, and a shared backend.",- "version": "1.0.10",- "changelog": "1.0.10: skill cleanup: shorter description, the installed skill path corrected to ~/.claude/skills/adom-jlcpcb/, the release skill hidden from the model and moved off the retired adom-desktop CLI to adom-bridge.",+ "version": "1.0.11",+ "changelog": "A local backend counts only when its /health reports a JLCPCB catalogue, so the Fusion bridge add-in on port 8774 no longer captures every search (HTTP 404); health no longer says OK for another program (adom/adom-jlcpcb#4).", "install": { "binary_name": "adom-jlcpcb", "install_dir": "",
skills/adom-jlcpcb-build/SKILL.md+11−12@@ -1,7 +1,6 @@ --- name: adom-jlcpcb-build description: Build and release a new version of adom-jlcpcb. Use when the user says "release adom-jlcpcb", "publish adom-jlcpcb", "cut a new adom-jlcpcb version", "bump adom-jlcpcb", "ship adom-jlcpcb", or "push adom-jlcpcb to the wiki".-disable-model-invocation: true --- # Release adom-jlcpcb@@ -11,7 +10,7 @@ A release syncs five places to the same version X.Y.Z: ## Steps -1. **Bump**: decide X.Y.Z (semver). Then:+1. **Bump** — decide X.Y.Z (semver). Then: ```bash echo "X.Y.Z" > VERSION sed -i 's/^version = .*/version = "X.Y.Z"/' Cargo.toml@@ -28,7 +27,7 @@ A release syncs five places to the same version X.Y.Z: 3. **Ralph loop the UI** (per app-creator): open in pup, drive a real search, screenshot, check `/console` for errors. ```bash JLCPCB_API=<backend> adom-jlcpcb app --no-tab &- adom-bridge browser_open_window '{"sessionId":"jlcpcb","profile":"jlcpcb","url":"http://127.0.0.1:8892"}'+ adom-desktop browser_open_window '{"sessionId":"jlcpcb","profile":"jlcpcb","url":"http://127.0.0.1:8892"}' # drive a search, screenshot, verify 0 console errors ``` @@ -40,15 +39,15 @@ A release syncs five places to the same version X.Y.Z: ``` Runs: git commit + tag `vX.Y.Z`, `git push origin main --tags`, `gh release create`, `adom-wiki asset upload` (replaces the prior `docker_binary`), `adom-wiki page update`, and a final curl of the wiki binary to check `--version` returns X.Y.Z. -6. **Service container picks it up automatically**: `service/watchdog.sh` runs every 2 min, `git fetch`es origin/main, and rebuilds + restarts when HEAD moves. Verify within ~5 min:+6. **Service container picks it up automatically** — `service/watchdog.sh` runs every 2 min, `git fetch`es origin/main, and rebuilds + restarts when HEAD moves. Verify within ~5 min: ```bash curl -s https://jlcpcb-<slug>.adom.cloud/health | jq '.version' # → "X.Y.Z" ``` -7. **Verify on a fresh user container** (optional, but catches regressions):+7. **Verify on a fresh user container** (optional, but catches install regressions): ```bash # on a fresh container:- node ~/adom-wiki pkg install # Tier A block fetches from wiki+ adompkg install --refresh # Tier A block fetches from the registry adom-jlcpcb --version # → "adom-jlcpcb X.Y.Z" ``` @@ -58,19 +57,19 @@ A release syncs five places to the same version X.Y.Z: - [ ] Wiki page at `apps/adom-jlcpcb` renders the new `install_hint` one-liner - [ ] User has seen a working screenshot of the webview - [ ] No console errors via `GET /console`-- [ ] `adom-wiki pkg install` Tier A block still works (pulls + installs the new version)-- [ ] **Brand audit, in-app icons are monochrome white.** Run:+- [ ] `adompkg install --refresh` still pulls + installs the new version (Tier A)+- [ ] **Brand audit — in-app icons are monochrome white.** Run: ``` grep -nE 'fill="#00b8b0"|stroke="#00b8b0"|color: var\(--accent\)' src/app/*.html src/app/*.svg 2>/dev/null ``` Expected result: empty, OR only the text-color rules (`.jlcpcb-pn`, `<a>`, focus-rings) on non-SVG elements. Any match on an `<svg>` or- a `.logo` / `.icon` class CSS rule is a bug, the brand skill+ a `.logo` / `.icon` class CSS rule is a bug — the brand skill requires monochrome white for in-app icons. See `app-creator` §1b and §Checklist. ## Notes -- **Never skip the ralph loop**: a green `cargo build` is not proof the UI works. Fonts, search, card rendering must be seen working.-- **Wiki upload is idempotent**: `adom-wiki asset upload --asset-type docker_binary` replaces the prior binary for this app automatically.-- **Version discipline is load-bearing**: `refresh-wiki-catalog.mjs` uses semver comparison to surface stale installs; inconsistent versions silently break that.+- **Never skip the ralph loop** — a green `cargo build` is not proof the UI works. Fonts, search, card rendering must be seen working.+- **Wiki upload is idempotent** — `adom-wiki asset upload --asset-type docker_binary` replaces the prior binary for this app automatically.+- **Version discipline is load-bearing** — `refresh-wiki-catalog.mjs` uses semver comparison to surface stale installs; inconsistent versions silently break that.
skills/adom-jlcpcb/SKILL.md+2@@ -22,6 +22,8 @@ What every search DOES need is an **Adom identity**, because Adom attributes eac Backend resolution, in order: `--api` / `$JLCPCB_API` if set, then a local `adom-jlcpcb serve` on `127.0.0.1`, then **Adom's hosted backend at `https://jlcpcb-wela51osctvp.adom.cloud`**. It never falls back to calling JLCPCB directly. +A local backend counts only when its `/health` reports a JLCPCB catalogue. Another program on port 8774 (the Fusion 360 bridge add-in listens there) is skipped, and `health` says that server is not a JLCPCB backend instead of OK. If `search` ever returns `HTTP 404: {"error": "Not found"}`, check that `$JLCPCB_API` is not pointing at another program.+ If a search fails with **"this needs your ADOM identity, not a vendor API key"**, the machine presented no valid Adom token. The fix is signing in to Adom or setting `ADOM_API_KEY`. It is never a vendor key. If it fails with **"could not verify your identity right now"**, that is an Adom-side outage, not the user's credential: retry shortly. `GET /health` and `GET /usage` on the backend stay open without a credential so monitoring keeps working. `GET /usage?day=YYYY-MM-DD` returns that day's searches by user (`searches_by_owner`), separate from monitoring traffic.