mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 03:01:56 +00:00
coding-agent: - Export loadSkillsFromDir, formatSkillsForPrompt, and related types - Refactor skills.ts to expose public API mom: - Add skills auto-discovery from workspace/skills and channel/skills - Fix skill loading to use host paths (not Docker container paths) - Update README and system prompt with SKILL.md format docs
82 lines
1.7 KiB
TypeScript
82 lines
1.7 KiB
TypeScript
// Core session management
|
|
export {
|
|
AgentSession,
|
|
type AgentSessionConfig,
|
|
type AgentSessionEvent,
|
|
type AgentSessionEventListener,
|
|
type CompactionResult,
|
|
type ModelCycleResult,
|
|
type PromptOptions,
|
|
type SessionStats,
|
|
} from "./core/agent-session.js";
|
|
// Compaction
|
|
export {
|
|
type CutPointResult,
|
|
calculateContextTokens,
|
|
compact,
|
|
DEFAULT_COMPACTION_SETTINGS,
|
|
estimateTokens,
|
|
findCutPoint,
|
|
findTurnStartIndex,
|
|
generateSummary,
|
|
getLastAssistantUsage,
|
|
shouldCompact,
|
|
} from "./core/compaction.js";
|
|
// Hook system types
|
|
export type {
|
|
AgentEndEvent,
|
|
AgentStartEvent,
|
|
BranchEvent,
|
|
BranchEventResult,
|
|
HookAPI,
|
|
HookEvent,
|
|
HookEventContext,
|
|
HookFactory,
|
|
HookUIContext,
|
|
SessionStartEvent,
|
|
SessionSwitchEvent,
|
|
ToolCallEvent,
|
|
ToolCallEventResult,
|
|
ToolResultEvent,
|
|
ToolResultEventResult,
|
|
TurnEndEvent,
|
|
TurnStartEvent,
|
|
} from "./core/hooks/index.js";
|
|
export { messageTransformer } from "./core/messages.js";
|
|
export {
|
|
type CompactionEntry,
|
|
createSummaryMessage,
|
|
getLatestCompactionEntry,
|
|
type LoadedSession,
|
|
loadSessionFromEntries,
|
|
type ModelChangeEntry,
|
|
parseSessionEntries,
|
|
type SessionEntry,
|
|
type SessionHeader,
|
|
SessionManager,
|
|
type SessionMessageEntry,
|
|
SUMMARY_PREFIX,
|
|
SUMMARY_SUFFIX,
|
|
type ThinkingLevelChangeEntry,
|
|
} from "./core/session-manager.js";
|
|
export {
|
|
type CompactionSettings,
|
|
type RetrySettings,
|
|
type Settings,
|
|
SettingsManager,
|
|
} from "./core/settings-manager.js";
|
|
// Skills
|
|
export {
|
|
formatSkillsForPrompt,
|
|
type LoadSkillsFromDirOptions,
|
|
loadSkills,
|
|
loadSkillsFromDir,
|
|
type Skill,
|
|
type SkillFrontmatter,
|
|
} from "./core/skills.js";
|
|
|
|
// Tools
|
|
export { bashTool, codingTools, editTool, readTool, writeTool } from "./core/tools/index.js";
|
|
|
|
// Main entry point
|
|
export { main } from "./main.js";
|