41 lines
No EOL
1.6 KiB
TypeScript
41 lines
No EOL
1.6 KiB
TypeScript
/**
|
|
* Metadata stored in agent.yaml -- DisClaw-specific fields only.
|
|
* Identity, personality, and instructions now live in CLAUDE.md,
|
|
* which Claude Code reads automatically.
|
|
*/
|
|
export interface AgentIdentity {
|
|
name: string;
|
|
display_name: string;
|
|
role: string;
|
|
channel_id: string;
|
|
}
|
|
/**
|
|
* Loads agent.yaml from the workspace folder and returns the parsed identity.
|
|
* Re-read on every call so edits take effect immediately.
|
|
*/
|
|
export declare function loadAgentIdentity(workspacePath: string): AgentIdentity;
|
|
/**
|
|
* Creates the agent.yaml file for a new agent workspace.
|
|
* This file contains only DisClaw routing metadata.
|
|
* All identity/personality/instructions go in CLAUDE.md.
|
|
*/
|
|
export declare function createAgentYaml(workspacePath: string, name: string, role: string, channelId: string): void;
|
|
/**
|
|
* Creates the CLAUDE.md file that serves as the agent's identity.
|
|
* Claude Code reads this file automatically when invoked with cwd
|
|
* set to the workspace directory. This is the primary identity mechanism.
|
|
*/
|
|
export declare function createClaudeMd(workspacePath: string, name: string, role: string): void;
|
|
/**
|
|
* Creates the .claude/ directory structure for a workspace.
|
|
* This provides per-agent Claude Code configuration.
|
|
*/
|
|
export declare function createClaudeConfig(workspacePath: string): void;
|
|
/**
|
|
* Sets up a complete agent workspace with all required files:
|
|
* - agent.yaml (DisClaw metadata)
|
|
* - CLAUDE.md (agent identity for Claude Code)
|
|
* - .claude/ directory structure
|
|
*/
|
|
export declare function setupAgentWorkspace(workspacePath: string, name: string, role: string, channelId: string): void;
|
|
//# sourceMappingURL=identity.d.ts.map
|