trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
53 lines • 1.97 kB
TypeScript
/**
* Agent Scaffold Writer
*
* Writes the agent context directory (.trellis/agents/) during `trellis init`.
* Produces AGENTS.md (human + AI readable), agent-context.json (machine
* readable), and stub directories for skills and workflows.
*
* The agent config is named `agent-context.json` (not `config.json`) to avoid
* collision with `.trellis/config.json` which stores engine configuration.
*
* @module trellis/scaffold/write
*/
import type { ProjectContext } from './infer.js';
import type { UserProfile } from './profile.js';
export interface AgentScaffoldConfig {
domain: string | null;
ecosystem: string | null;
tools: string[];
ontologies: string[];
generatedAt: string;
confidence: string;
}
export interface ScaffoldInput {
profile: UserProfile | null;
context: ProjectContext;
}
export type IdeType = 'cursor' | 'devin' | 'claude' | 'copilot' | 'codex' | 'gemini' | 'none';
export type WorkspaceFootprint = 'minimal' | 'standard' | 'full';
export type FrameworkType = 'react' | 'vue' | 'svelte' | 'next' | 'nuxt' | 'remotion' | 'expo' | 'bun' | 'node' | 'cli' | 'library' | 'animation' | 'games' | 'none';
export interface IdeScaffoldInput {
ide: IdeType;
footprint: WorkspaceFootprint;
framework: FrameworkType;
plugins: string[];
rootPath: string;
context: ProjectContext;
profile: UserProfile | null;
}
/**
* Write the full agent scaffold into .trellis/agents/.
*
* @param rootPath - Absolute path to the repository root
* @param input - Profile and inferred project context
*/
export declare function writeAgentScaffold(rootPath: string, input: ScaffoldInput): void;
/**
* Write IDE-specific dotfolder scaffolds.
*
* @param rootPath - Absolute path to the repository root
* @param input - IDE type, footprint, plugins, context, and profile
*/
export declare function writeIdeScaffold(rootPath: string, input: IdeScaffoldInput): void;
//# sourceMappingURL=write.d.ts.map