dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Authorizing AI agents with OPA: the real Rego policy, compiled to Wasm, running in the browser.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
An interactive explainer. Pick one of five scenarios, each an AI agent trying to call a tool on someone's behalf, and follow the request through a flow graph:
Every verdict on the page comes from the real Rego policy in policy/authz.rego, compiled to WebAssembly and evaluated in your browser with @open-policy-agent/opa-wasm. Nothing is hard-coded in TypeScript and nothing is sent to a server. Click the OPA node to see the policy block by block, with the value each line resolved to.
The policy has four layers and three outcomes:檢視完整 README ↗Live: agents.shiben.dev
An interactive explainer. Pick one of five scenarios, each an AI agent trying to call a tool on someone's behalf, and follow the request through a flow graph:
Person → (Untrusted input) → Agent → Tool call → Gateway ⇅ OPA → Tool runs | Human approval | Blocked + logged
Every verdict on the page comes from the real Rego policy in policy/authz.rego, compiled to WebAssembly and evaluated in your browser with @open-policy-agent/opa-wasm. Nothing is hard-coded in TypeScript and nothing is sent to a server. Click the OPA node to see the policy block by block, with the value each line resolved to.
| Path | What it is |
|---|---|
policy/authz.rego | The policy. Single source of truth for the UI, the tests and the expected verdicts. |
policy/data.json | Agents, users, tools, limits, org domain. Loaded into the Wasm at runtime with setData. |
policy/authz_test.rego | opa test suite: scenario-driven tests plus edge cases. |
scenarios/scenarios.json | The 5 scenarios: display metadata, OPA input, expected verdict. Read by both opa test and the UI. |
scripts/build-policy.sh | fmt → check --strict → test → build -t wasm, then writes public/policy.wasm and public/test-summary.json. |
public/policy.wasm | Generated and committed. CI fails if it is stale. |
lib/opa.ts | Fetches /policy.wasm once, loads data.json, evaluate(input) → PolicyResult. No fallback logic. |
lib/trace.ts | Formats result.evidence and result.checks against the Rego source lines. No authorization logic. |
components/ | Scenario picker, flow graph, detail views, OPA Evaluate and Build tabs. |
The policy has four layers and three outcomes:
decision is allow, needs_approval or deny, and defaults to deny. The Wasm entrypoint is agent/authz/result, which also returns checks, failed and evidence so the UI never has to recompute a decision.
Requires Node 22+ and pnpm 10.
pnpm install
pnpm dev
pnpm test # Vitest: all scenarios through public/policy.wasm, trace ↔ Rego source sync
pnpm typecheck
pnpm build
Change policy/authz.rego, policy/data.json or scenarios/scenarios.json.
Rebuild and test with the pinned OPA version (the script refuses any other version, because a different compiler can emit a different Wasm):
pnpm policy # uses `opa` on your PATH
OPA=/path/to/opa pnpm policy # or point at a specific binary
Commit public/policy.wasm and public/test-summary.json along with your change.
No TypeScript change is needed for a data or policy change to show up in the UI. For example, lower limits.payment_inr below 40000 and the "Web page sets the amount" scenario flips from NEEDS APPROVAL to DENY. If a new display needs a value the policy doesn't return, add it to evidence in Rego rather than computing it in lib/trace.ts.
| Tool | Version | Notes |
|---|---|---|
| OPA CLI | 1.21.1 | Pinned in scripts/build-policy.sh and .github/workflows/policy.yml. Wasm ABI 1.3. |
@open-policy-agent/opa-wasm | 1.10.0 | Latest release. Confirmed to load and evaluate Wasm built by OPA 1.21.1 (see tests/opa.test.ts). |
| Next.js | 16.4.0 | App Router, static output. |
pnpm audit reports one moderate advisory in sprintf-js, pulled in by opa-wasm for the sprintf builtin. That builtin isn't reachable from the compiled entrypoint here, and there is no patched release yet.
.github/workflows/policy.yml has two jobs:
scripts/build-policy.sh, then git diff --exit-code public/. The deployed Wasm is always the tested one.pnpm typecheck, pnpm test, pnpm build.Vercel project agents-opa, connected to this repo, building with the Next.js preset. Vercel has no OPA binary, which is why the Wasm is committed. Domain: agents.shiben.dev (Vercel DNS). No analytics, no cookies.
All names and domains in the data are fictional; .example is reserved for exactly this.