Files
oh-my-pi/packages/coding-agent/src/index.ts
T
can1357 0f3cced15e refactor(edit): restructured edit tool with substring find and focused chunk rendering
- Reorganized edit tool from `patch/` to `edit/` directory with dedicated mode subdirectories (chunk, patch, hashline, replace).
- Replaced line-scoped edit operations with substring-based `find` parameter and added `replace_body` operation for preserving signatures.
- Added chunk focus modes (Expanded, Collapsed, Container) and focused rendering to display only touched chunks and adjacent siblings.
- Implemented notebook (ipynb) language support with virtual source conversion and cell-based chunk parsing.
- Enhanced chunk edit error messages with consistent checksum mismatch reporting and improved chunk selector auto-resolution.
- Extracted edit mode implementations into separate modules with improved helper functions and LSP integration for diagnostics.
2026-04-08 04:18:59 +02:00

62 lines
2.3 KiB
TypeScript

import { HookEditorComponent, HookInputComponent, HookSelectorComponent } from "./modes/components";
// Core session management
// TypeBox helper for string enums (convenience for custom tools)
// Re-export from pi-ai which uses the correct enum-based schema format
export { StringEnum } from "@oh-my-pi/pi-ai";
// Re-export TUI components for custom tool rendering
export { Container, Markdown, Spacer, Text } from "@oh-my-pi/pi-tui";
// Logging
export { getAgentDir, logger, VERSION } from "@oh-my-pi/pi-utils";
export * from "./config/keybindings";
export * from "./config/model-registry";
// Prompt templates
export type * from "./config/prompt-templates";
export * from "./config/prompt-templates";
export type { RetrySettings, SkillsSettings } from "./config/settings";
export { Settings, settings } from "./config/settings";
export * from "./edit/modes/hashline";
// Custom commands
export type * from "./extensibility/custom-commands/types";
export type * from "./extensibility/custom-tools";
// Custom tools
export * from "./extensibility/custom-tools";
export type * from "./extensibility/extensions";
// Extension types and utilities
export * from "./extensibility/extensions";
// Hook system types (legacy re-export)
// Skills
export * from "./extensibility/skills";
// Slash commands
export { type FileSlashCommand, loadSlashCommands as discoverSlashCommands } from "./extensibility/slash-commands";
export type * from "./lsp";
// Main entry point
export * from "./main";
// Run modes for programmatic SDK usage
export * from "./modes";
export * from "./modes/components";
// Theme utilities for custom tools
export * from "./modes/theme/theme";
// SDK for programmatic usage
export * from "./sdk";
export * from "./session/agent-session";
// Auth and model registry
export * from "./session/auth-storage";
// Compaction
export * from "./session/compaction";
export * from "./session/messages";
export * from "./session/session-dump-format";
export * from "./session/session-manager";
export * from "./task/executor";
export type * from "./task/types";
// Tools (detail types and utilities)
export * from "./tools";
export * from "./utils/git";
// UI components for extensions
export {
HookEditorComponent as ExtensionEditorComponent,
HookInputComponent as ExtensionInputComponent,
HookSelectorComponent as ExtensionSelectorComponent,
};