@auto-engineer/frontend-implementer 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +0,0 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { fileURLToPath } from 'url';
4
- import type { CliManifest } from '@auto-engineer/cli/manifest-types';
5
- import { implementClientManifest } from './commands/implement-client';
6
-
7
- // Get version from package.json
8
- const getVersion = (): string => {
9
- try {
10
- const __filename = fileURLToPath(import.meta.url);
11
- const __dirname = path.dirname(__filename);
12
- // In dev: src/cli-manifest.ts -> ../../package.json
13
- // In dist: dist/cli-manifest.js -> ../package.json
14
- const possiblePaths = [
15
- path.join(__dirname, '..', 'package.json'), // dist build
16
- path.join(__dirname, '..', '..', 'package.json'), // dev/src
17
- ];
18
-
19
- for (const packageJsonPath of possiblePaths) {
20
- if (fs.existsSync(packageJsonPath)) {
21
- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')) as { version: string };
22
- return packageJson.version;
23
- }
24
- }
25
- } catch {
26
- // Fall through
27
- }
28
- return 'unknown';
29
- };
30
-
31
- export const CLI_MANIFEST: CliManifest = {
32
- category: '@auto-engineer/frontend-implementer',
33
- version: getVersion(),
34
- commands: {
35
- 'implement:client': implementClientManifest,
36
- },
37
- };