./scripts/haiku.integration.test.ts |
Integration test that spawns a real Copilot Haiku session to verify end-to-end agent invocation and output parsing. |
./scripts/run-sample.test.ts |
Vitest test runner for all sample agents; stubs the Copilot SDK and synthesises shape-conforming output from each agent's <output_schema> block. |
./skills/rig/engines/anthropic.ts |
Anthropic engine adapter wrapping the @anthropic-ai/sdk client to expose an AgentFactory-compatible interface for rig agents. |
./skills/rig/engines/codex.ts |
Codex engine adapter wrapping @openai/codex-sdk threads to provide an AgentFactory for rig agents. |
./skills/rig/engines/gemini.ts |
Gemini engine adapter that spawns a child Copilot CLI process over stdio and bridges it into the rig AgentFactory interface. |
./skills/rig/engines/pi.ts |
Pi engine adapter wrapping @earendil-works/pi-agent-core to provide an alternative AgentFactory backend. |
./skills/rig/engines/utils.ts |
Shared utility helpers (tool schema conversion, debug logging) used by multiple engine adapters. |
./skills/rig/globals.ts |
Module-level ambient workflow context helpers (call, pipeline, parallel) imported from "rig/globals". |
./skills/rig/rig.ts |
Core runtime: exports agent, workflow, schema helpers (s.*), prompt intents (p.*), engine factories, and the launcher CLI entry point. |
./src/engines/anthropic.test.ts |
Unit tests for the Anthropic engine adapter, verifying session creation, prompt forwarding, and cleanup. |
./src/engines/codex.test.ts |
Unit tests for the Codex engine adapter covering thread lifecycle and response parsing. |
./src/engines/copilot.test.ts |
Unit tests for the Copilot engine factory, covering URI resolution, multi-provider config, and connection-token handling. |
./src/engines/gemini.test.ts |
Unit tests for the Gemini engine adapter verifying stdio transport and session teardown. |
./src/engines/pi.test.ts |
Unit tests for the Pi engine adapter checking tool registration and message routing. |
./src/launcher-default-engine.test.ts |
Tests for the launcher's default engine selection logic across different environment-variable combinations. |
./src/launcher.fixture.ts |
Shared test fixture that loads the launcher module and tracks how many times it has been imported. |
./src/launcher.stdin-ambient.fixture.ts |
Fixture demonstrating the ambient workflow context pattern with phase and log helpers consumed from stdin. |
./src/launcher.stdin-default-prompt.fixture.ts |
Fixture providing a default PromptBuilder export read from stdin to test the launcher's string-mode code path. |
./src/launcher.stdin-default-string.fixture.ts |
Fixture exporting a plain string default to exercise the launcher's string-passthrough output path. |
./src/launcher.stdin-json.fixture.ts |
Fixture exporting an agent with structured JSON input to test the launcher's JSON stdin coercion logic. |
Global Summary
Rig is a minimal TypeScript multi-agent harness providing declarative agent construction with typed input/output schemas, prompt intents, and pluggable engine backends (Copilot, Anthropic, Codex, Gemini, Pi). The core runtime lives in
skills/rig/rig.ts; engine adapters are inskills/rig/engines/; vitest-based unit and sample tests cover agent definition, invocation, validation, and launcher CLI behaviour.Individual File Summaries
./scripts/haiku.integration.test.ts./scripts/run-sample.test.ts<output_schema>block../skills/rig/engines/anthropic.ts@anthropic-ai/sdkclient to expose anAgentFactory-compatible interface for rig agents../skills/rig/engines/codex.ts@openai/codex-sdkthreads to provide anAgentFactoryfor rig agents../skills/rig/engines/gemini.tsAgentFactoryinterface../skills/rig/engines/pi.ts@earendil-works/pi-agent-coreto provide an alternativeAgentFactorybackend../skills/rig/engines/utils.ts./skills/rig/globals.tscall,pipeline,parallel) imported from"rig/globals"../skills/rig/rig.tsagent,workflow, schema helpers (s.*), prompt intents (p.*), engine factories, and the launcher CLI entry point../src/engines/anthropic.test.ts./src/engines/codex.test.ts./src/engines/copilot.test.ts./src/engines/gemini.test.ts./src/engines/pi.test.ts./src/launcher-default-engine.test.ts./src/launcher.fixture.ts./src/launcher.stdin-ambient.fixture.tsphaseandloghelpers consumed from stdin../src/launcher.stdin-default-prompt.fixture.ts./src/launcher.stdin-default-string.fixture.ts./src/launcher.stdin-json.fixture.ts