mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-12 20:07:31 +00:00
34 new golden chat fixtures generated from the web pipeline, plus a machine-generated modes catalog: - Claude output: away_summary/microcompact_boundary/compact_boundary system subtypes, <task-notification> summary extraction, multi-block assistant message with an array-of-parts (text+image) tool_result - AgentEvent union completed: switch/message/error/title-changed(+dedupe)/ limit-warning(pipe text)/api-error folding/turn-duration/compact-summary/ abort-restore/unknown-type passthrough; thread-goal updated+cleared (silent) - Permission lifecycle via agentState.completedRequests: approved_for_session (mode+allowTools), denied with reason, canceled, AskUserQuestion flat answers, request_user_input nested answers (all with explicit createdAt) - Sidechain: Task tool_use with parentToolUseId-grouped subagent children - codex family: error, context_compacted, generated-image, review JSON, thread-goal messages, CodexBash call/result pair, exploration tool group - cli-output: cli-origin command block + stdout merge - agy flavor (output envelope): agy_message, agy_tool_action run_command mapping; cursor ACP plan snapshot (copilot skipped: identical codex shapes) - generator now also emits shared/fixtures/catalogs/modes.json from shared/src/modes.ts (per-flavor permission modes with labels/tones); self-conformance test covers it; README documents the catalogs contract
28 lines
872 B
TypeScript
28 lines
872 B
TypeScript
import type { FixtureCase } from '../fixtureTypes'
|
|
import { claudeOutputCases } from './claudeOutput'
|
|
import { codexCases } from './codex'
|
|
import { eventCases } from './events'
|
|
import { userCases } from './user'
|
|
import { truncationCases } from './truncation'
|
|
import { permissionCases } from './permissions'
|
|
import { toolGroupCases } from './toolGroups'
|
|
import { sidechainCases } from './sidechain'
|
|
import { cliOutputCases } from './cliOutput'
|
|
import { agyCases } from './agy'
|
|
import { cursorCases } from './cursor'
|
|
|
|
/** Batches 1 + 2. Each case becomes shared/fixtures/chat/<name>.json. */
|
|
export const fixtureCases: FixtureCase[] = [
|
|
...claudeOutputCases,
|
|
...codexCases,
|
|
...eventCases,
|
|
...userCases,
|
|
...truncationCases,
|
|
...permissionCases,
|
|
...toolGroupCases,
|
|
...sidechainCases,
|
|
...cliOutputCases,
|
|
...agyCases,
|
|
...cursorCases
|
|
]
|