Agent runtime tool surface expanded with domain-specific host tools
Kaji's agent runtime tool surface was restructured from a monolithic host tool registry into a modular per-domain tool architecture. Each domain gets its own tool module with dedicated type definitions, making the bridge easier to extend and maintain.
- Added KajiAgentBasicHostTools and definitions for core host operations
- Added KajiAgentCodeGraphHostTools and definitions for CodeGraph query, status, and visualization
- Added KajiAgentCodeGraphStatusTool for dedicated CodeGraph status checking
- Added KajiAgentFFFHostTools and definitions for FFF-based file and text search tools
- Added KajiAgentWorkspaceContext and KajiAgentWorkspacePathResolver for workspace-aware tool execution
- Added KajiAgentHostToolCatalog for unified registration and discovery across all host tool domains
- Added KajiAgentSubagentInlineLayout and KajiAgentTodoIndicator for inline subagent rendering and todo display
- Added KajiAgentTranscriptToolUpdater for updating tool call transcript entries
- Updated coding agent shim script paths for the new tool architecture
Native addon staged and validated in release builds
The built Kaji Agent Runtime bundle (kaji-agent-runtime.mjs) is now staged as a native addon inside the Xcode project before the Swift build, and validated for presence and integrity. The release workflow includes it in the release artifact.
- Added stage-kaji-agent-native-addon.sh to copy and validate the bundled runtime
- Updated build-release.sh to stage the native addon before the Swift build
- Updated the release workflow to include the native addon in the release artifact
- Updated smoke-release-app.sh to validate the native addon inside the bundled app
Comprehensive test coverage for tool runtime
36 new test files were added across the agent runtime tool surface, covering timeline appliers, extension request parsing, URI resolution, pending RPC handling, error gating, readiness controllers, runtime state snapshots, todo write/update, and workspace path resolution.
- Added KajiAgentAssistantTimelineApplierTests, KajiAgentToolTimelineApplierTests, KajiAgentTranscriptRestorerTests
- Added KajiAgentExtensionRequestParserTests, KajiAgentHostURIResolverTests, KajiAgentPendingRPCTests
- Added KajiAgentRuntimeErrorGateTests, KajiAgentRuntimeReadinessControllerTests, KajiAgentRuntimeStateSnapshotTests
- Added KajiAgentTodoWriteUpdateTests, KajiAgentWorkspacePathResolverTests
- Bumped Kaji to 0.2.5