mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-04 12:50:37 +01:00
- Ordinary turns: wrap permission prompts as AcpPermissionRequest so normalizeAcpxPermission works in interactive approval flows; fail closed on unconfirmed model selection or read-only plan mode (and abort on mid-session plan-mode drift); preserve existing antigravity-session.json when startup or restore fails. - Runtime host & sandbox: stage managed Antigravity Google credentials for both ordinary and /swarm turns; apply schemaPatternDialect="re2" to all Antigravity CLI turns; persist AGY_CLI_FORCE_FILE_TOKEN_STORAGE and AGY_CLI_DISABLE_AUTO_UPDATE in runtime-sandbox allowlist. - Auth, credentials & model discovery: support verifying client-secret-less consumer credentials without a pre-existing antigravity-cli token file via prompt-free agy acp refresh with durable directory-synced writeback; include CLI token and cli.log in codex-credentials crash-scrub cleanup intent and quarantine; ensure model discovery durably saves rotated tokens before removing the temporary CLI token in both normal and delayed-cleanup paths. - Transport deduplication: extract shared AntigravityAcpConnection, EventQueue, and usage helpers into antigravity-acp-connection.ts with explicit timer cleanup on failure. - Update profile-compatibility.test.ts (PROFILE_VERSIONS.antigravity = 3), server/UI test expectations, and add regression tests for all fixes. Tested: - pnpm --filter @paperclipai/paperclip-runner typecheck (TS + Rust) - tsc -p packages/paperclip-runner/tsconfig.test.json --noEmit - 11 paperclip-runner vitest suites (556/556 passed) + codex-credentials (42/42) - server & UI vitest suites (antigravity-swarm.db 52/52, routes/qual/UI 110/110) - Live darwin-arm64 E2E against real agy 1.5.19 (login, credential staging, ordinary turn + HTTP MCP + setModel + resume, and /swarm with helper hand-in) Co-Authored-By: Paperclip <noreply@paperclip.ing>