mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
refactor: Update .gitignore and enhance error handling in feature-loader
Changes: - Removed specific compiled file patterns from .gitignore to simplify ignore rules. - Modified error handling in feature-loader.ts to rethrow errors instead of keeping original paths, preventing potential broken references. - Added ".js" extensions to import statements in types package for ESM compliance. Benefits: ✅ Cleaner .gitignore for better maintainability ✅ Improved error handling logic in feature-loader ✅ Consistent import paths for ESM compatibility All tests passing.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@automaker/types",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "Shared type definitions for AutoMaker",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -13,7 +13,7 @@ export type {
|
||||
InstallationStatus,
|
||||
ValidationResult,
|
||||
ModelDefinition,
|
||||
} from './provider';
|
||||
} from './provider.js';
|
||||
|
||||
// Feature types
|
||||
export type {
|
||||
@@ -21,7 +21,7 @@ export type {
|
||||
FeatureImagePath,
|
||||
FeatureStatus,
|
||||
PlanningMode,
|
||||
} from './feature';
|
||||
} from './feature.js';
|
||||
|
||||
// Session types
|
||||
export type {
|
||||
@@ -29,43 +29,43 @@ export type {
|
||||
SessionListItem,
|
||||
CreateSessionParams,
|
||||
UpdateSessionParams,
|
||||
} from './session';
|
||||
} from './session.js';
|
||||
|
||||
// Error types
|
||||
export type {
|
||||
ErrorType,
|
||||
ErrorInfo,
|
||||
} from './error';
|
||||
} from './error.js';
|
||||
|
||||
// Image types
|
||||
export type {
|
||||
ImageData,
|
||||
ImageContentBlock,
|
||||
} from './image';
|
||||
} from './image.js';
|
||||
|
||||
// Model types and constants
|
||||
export {
|
||||
CLAUDE_MODEL_MAP,
|
||||
DEFAULT_MODELS,
|
||||
type ModelAlias,
|
||||
} from './model';
|
||||
} from './model.js';
|
||||
|
||||
// Event types
|
||||
export type {
|
||||
EventType,
|
||||
EventCallback,
|
||||
} from './event';
|
||||
} from './event.js';
|
||||
|
||||
// Spec types
|
||||
export type {
|
||||
SpecOutput,
|
||||
} from './spec';
|
||||
} from './spec.js';
|
||||
export {
|
||||
specOutputSchema,
|
||||
} from './spec';
|
||||
} from './spec.js';
|
||||
|
||||
// Enhancement types
|
||||
export type {
|
||||
EnhancementMode,
|
||||
EnhancementExample,
|
||||
} from './enhancement';
|
||||
} from './enhancement.js';
|
||||
|
||||
Reference in New Issue
Block a user