mirror of
https://github.com/tanweai/pua.git
synced 2026-08-29 02:02:20 +08:00
0672b260b3
Summary: - Filter UserPromptSubmit prompts inside the hook and soften hook wording so normal first-attempt prompts stay silent and frustration prompts read as user-installed productivity context. - Add offline mode, remove stop-feedback /tmp plugin-root rendezvous, and add feedback endpoint body caps, origin checks, and D1-backed rate limiting. - Add diagnosis-first discipline, Huawei military-order mode, Codex subcommand alias skills, a lightweight pi adapter, and Trae prompt/rule files. - Clarify ambiguous 下场 wording, add FAQ guidance, and bump manifests to v3.3.0. Rationale: - Open issues covered over-aggressive hooks, model refusal, closed-network usage, Codex subcommands, Pi/Trae support, feedback abuse, ambiguous lifecycle wording, Huawei tone, and the misleading-traceback blind spot. - The fixes convert ad-hoc prompt pressure into mechanical gates: script-level trigger filtering, offline config gates, endpoint abuse controls, and static regression checks. Tests: - for f in hooks/*.sh scripts/*.sh evals/*.sh; do bash -n "$f"; done - bash evals/test-windows-python-hooks.sh - bash evals/test-yaml-frontmatter.sh - bash evals/test-release-consistency.sh - bash evals/test-agent-governance.sh - bash evals/test-pua-loop-hook.sh - bash evals/test-integrity-guard.sh - bash evals/test-issue-regressions.sh - bash evals/test-behavior.sh - bash evals/run-trigger-test.sh - ./landing/node_modules/.bin/tsc -p pi/pua/tsconfig.json --noEmit - npm -C landing run build - git diff --check - python3 JSON parse check for plugin and hook manifests Co-authored-by: Codex <codex@openai.com>