agnosticui-cli 2.0.0-alpha.5 → 2.0.0-alpha.7

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.
package/dist/cli.js CHANGED
@@ -1,43 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * AgnosticUI CLI - Main entry point
4
- *
5
- * Package Resolution Strategy:
6
- * ============================
7
- *
8
- * The CLI uses a two-tier approach to locate the AgnosticUI core library:
9
- *
10
- * 1. Local Development (Priority):
11
- * - Checks for: ../../dist/agnosticui-local-v2.0.0-alpha.tar.gz
12
- * - Built via: ./scripts/build-local-tarball.sh
13
- * - Used for: Testing changes before publishing
14
- *
15
- * 2. Production (NPM Registry):
16
- * - Downloads: agnosticui-core@{version} from NPM
17
- * - Command: npm pack agnosticui-core@alpha (or latest, or specific version)
18
- * - Used for: Production installations after publishing
19
- *
20
- * Package Naming:
21
- * - Local tarball: agnosticui-local-v*.tar.gz
22
- * - NPM package: agnosticui-core
23
- * - This CLI: agnosticui-cli
24
- *
25
- * Note: The different naming prevents confusion between local dev builds
26
- * and published NPM packages.
27
- *
28
- * See: v2/cli/README.md "Testing After NPM Publication" for verification steps.
29
4
  */
30
5
  import { Command } from 'commander';
31
6
  import { init } from './commands/init.js';
32
7
  import { add } from './commands/add.js';
33
- import { remove } from './commands/remove.js';
34
8
  import { list } from './commands/list.js';
35
9
  import { sync } from './commands/sync.js';
36
10
  const program = new Command();
37
11
  program
38
12
  .name('ag')
39
13
  .description('AgnosticUI Local - The UI kit that lives in your codebase')
40
- .version('2.0.0-alpha.5');
14
+ .version('2.0.0-alpha.1');
41
15
  // ag init command
42
16
  program
43
17
  .command('init')
@@ -45,13 +19,11 @@ program
45
19
  .option('-f, --framework <framework>', 'Framework to use (react, vue, lit, svelte)')
46
20
  .option('-p, --components-path <path>', 'Path where components will be generated')
47
21
  .option('-t, --tarball <path>', 'Path to local tarball (for development)')
48
- .option('-v, --version <version>', 'NPM version to download (e.g., alpha, latest, 2.0.0)', 'alpha')
49
22
  .action(async (options) => {
50
23
  await init({
51
24
  framework: options.framework,
52
25
  componentsPath: options.componentsPath,
53
26
  tarball: options.tarball,
54
- version: options.version,
55
27
  });
56
28
  });
57
29
  // ag add command
@@ -64,16 +36,6 @@ program
64
36
  force: options.force,
65
37
  });
66
38
  });
67
- // ag remove command
68
- program
69
- .command('remove <components...>')
70
- .description('Remove component(s) from your project')
71
- .option('--force', 'Skip confirmation prompt')
72
- .action(async (components, options) => {
73
- await remove(components, {
74
- force: options.force,
75
- });
76
- });
77
39
  // ag list command
78
40
  program
79
41
  .command('list')
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,IAAI,CAAC;KACV,WAAW,CAAC,2DAA2D,CAAC;KACxE,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5B,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,6CAA6C,CAAC;KAC1D,MAAM,CAAC,6BAA6B,EAAE,4CAA4C,CAAC;KACnF,MAAM,CAAC,8BAA8B,EAAE,yCAAyC,CAAC;KACjF,MAAM,CAAC,sBAAsB,EAAE,yCAAyC,CAAC;KACzE,MA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CAAC;AAEL,iBAAiB;AACjB,OAAO;KACJ,OAAO,CAAC,qBAAqB,CAAC;KAC9B,WAAW,CAAC,kCAAkC,CAAC;KAC/C,MAAM,CAAC,SAAS,EAAE,+BAA+B,CAAC;KAClD,MAAM,CAAC,KAAK,EAAE,UAAoB,EAAE,OAAO,EAAE,EAAE;IAC9C,MAAM,GAAG,CAAC,UAAU,EAAE;QACpB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,2BAA2B,CAAC;KACxC,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,IAAI,EAAE,CAAC;AACf,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,uCAAuC,CAAC;KACpD,MAAM,CAAC,sBAAsB,EAAE,oCAAoC,CAAC;KACpE,MAAM,CAAC,SAAS,EAAE,4BAA4B,CAAC;KAC/C,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,IAAI,CAAC;QACT,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,mBAAmB,CAAC;AAe/D,wBAAsB,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAiN3F"}
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../src/commands/add.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,mBAAmB,CAAC;AAgB/D,wBAAsB,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsJ3F"}