ccfix

command
v0.152.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command ccfix is the chief-mobile browser spec's fixture (e2e/tests/chief-mobile.spec.ts): a running claude-code agent with an account failover on record, the two rows the e2e harness cannot make through a real route — a failover needs a gateway reporting a rate limit from a real runtime, and the noop driver runs none.

	DATABASE_URL=…_e2e go run ./e2e/ccfix agent <owner-id> <name> <account> <token>   → prints the agent id
	DATABASE_URL=…_e2e go run ./e2e/ccfix failover <owner-id> <name> <from> <reason> <resets-RFC3339>
	DATABASE_URL=…_e2e go run ./e2e/ccfix ask <owner-id> <name> <question> <option>…   → prints the ask id
	DATABASE_URL=…_e2e go run ./e2e/ccfix rmagent <owner-id> <name>

  - agent: a RUNNING claude-code agent on <account>, as a dispatch leaves it.
  - failover: one cc_account_failovers row (internal/ccfailover PGStore.Record
    writes the same columns) from <from> to the agent's own account.
  - ask: an OPEN attention_ask from the agent WITH its options — the row its
    /mcp attention_ask call stores (pluginfix ask stores none).
  - rmagent: deletes the agent's asks, then the agent (its failovers cascade).

🔴 IT REFUSES ANY DATABASE WHOSE NAME DOES NOT END IN "_e2e" (e2edb.Check): it writes as the login role with row-level security's scope set to all, which nothing outside a fixture may do. Every value a spec sends is invented.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL