@launch77/cli 1.5.0 → 1.7.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.
- package/CHANGELOG.md +12 -0
- package/dist/cli.js +17 -14
- package/dist/cli.js.map +1 -1
- package/dist/infrastructure/template.d.ts +5 -1
- package/dist/infrastructure/template.d.ts.map +1 -1
- package/dist/infrastructure/template.js +11 -1
- package/dist/infrastructure/template.js.map +1 -1
- package/dist/modules/app/commands/create-app.d.ts +1 -1
- package/dist/modules/app/commands/create-app.js +1 -1
- package/dist/modules/app/commands/delete-app.d.ts +1 -1
- package/dist/modules/app/commands/delete-app.js +1 -1
- package/dist/modules/app/index.d.ts +2 -3
- package/dist/modules/app/index.d.ts.map +1 -1
- package/dist/modules/app/index.js +2 -3
- package/dist/modules/app/index.js.map +1 -1
- package/dist/modules/catalog/commands/generate.d.ts +1 -1
- package/dist/modules/catalog/commands/generate.d.ts.map +1 -1
- package/dist/modules/catalog/commands/generate.js +1 -1
- package/dist/modules/catalog/commands/generate.js.map +1 -1
- package/dist/modules/catalog/commands/scan.d.ts +1 -1
- package/dist/modules/catalog/commands/scan.d.ts.map +1 -1
- package/dist/modules/catalog/commands/scan.js +1 -1
- package/dist/modules/catalog/commands/scan.js.map +1 -1
- package/dist/modules/library/commands/create-library.d.ts +3 -0
- package/dist/modules/library/commands/create-library.d.ts.map +1 -0
- package/dist/modules/library/commands/create-library.js +61 -0
- package/dist/modules/library/commands/create-library.js.map +1 -0
- package/dist/modules/library/commands/delete-library.d.ts +3 -0
- package/dist/modules/library/commands/delete-library.d.ts.map +1 -0
- package/dist/modules/library/commands/delete-library.js +111 -0
- package/dist/modules/library/commands/delete-library.js.map +1 -0
- package/dist/modules/library/errors/library-errors.d.ts +7 -0
- package/dist/modules/library/errors/library-errors.d.ts.map +1 -0
- package/dist/modules/library/errors/library-errors.js +13 -0
- package/dist/modules/library/errors/library-errors.js.map +1 -0
- package/dist/modules/library/index.d.ts +7 -0
- package/dist/modules/library/index.d.ts.map +1 -0
- package/dist/modules/library/index.js +9 -0
- package/dist/modules/library/index.js.map +1 -0
- package/dist/modules/library/services/library-create-svc.d.ts +17 -0
- package/dist/modules/library/services/library-create-svc.d.ts.map +1 -0
- package/dist/modules/library/services/library-create-svc.js +51 -0
- package/dist/modules/library/services/library-create-svc.js.map +1 -0
- package/dist/modules/library/services/library-svc.d.ts +9 -0
- package/dist/modules/library/services/library-svc.d.ts.map +1 -0
- package/dist/modules/library/services/library-svc.js +38 -0
- package/dist/modules/library/services/library-svc.js.map +1 -0
- package/dist/modules/library/types/library-types.d.ts +16 -0
- package/dist/modules/library/types/library-types.d.ts.map +1 -0
- package/dist/modules/library/types/library-types.js +2 -0
- package/dist/modules/library/types/library-types.js.map +1 -0
- package/dist/modules/plugin/commands/delete-plugin.d.ts +3 -0
- package/dist/modules/plugin/commands/delete-plugin.d.ts.map +1 -0
- package/dist/modules/plugin/commands/delete-plugin.js +113 -0
- package/dist/modules/plugin/commands/delete-plugin.js.map +1 -0
- package/dist/modules/plugin/errors/plugin-errors.d.ts +12 -0
- package/dist/modules/plugin/errors/plugin-errors.d.ts.map +1 -1
- package/dist/modules/plugin/errors/plugin-errors.js +18 -0
- package/dist/modules/plugin/errors/plugin-errors.js.map +1 -1
- package/dist/modules/plugin/index.d.ts +1 -0
- package/dist/modules/plugin/index.d.ts.map +1 -1
- package/dist/modules/plugin/index.js +1 -0
- package/dist/modules/plugin/index.js.map +1 -1
- package/dist/modules/plugin/services/plugin-svc.d.ts +5 -1
- package/dist/modules/plugin/services/plugin-svc.d.ts.map +1 -1
- package/dist/modules/plugin/services/plugin-svc.js +34 -1
- package/dist/modules/plugin/services/plugin-svc.js.map +1 -1
- package/dist/modules/plugin/types/plugin-types.d.ts +6 -0
- package/dist/modules/plugin/types/plugin-types.d.ts.map +1 -1
- package/dist/templates/library/README.md.hbs +80 -0
- package/dist/templates/library/package.json.hbs +31 -0
- package/dist/templates/library/src/index.d.ts.hbs +14 -0
- package/dist/templates/library/src/index.js +11 -0
- package/dist/templates/library/tsconfig.json +31 -0
- package/package.json +1 -1
- package/src/cli.ts +17 -14
- package/src/infrastructure/template.ts +14 -1
- package/src/modules/app/commands/create-app.ts +1 -1
- package/src/modules/app/commands/delete-app.ts +1 -1
- package/src/modules/app/index.ts +2 -3
- package/src/modules/catalog/commands/generate.ts +1 -1
- package/src/modules/catalog/commands/scan.ts +1 -1
- package/src/modules/library/commands/create-library.ts +70 -0
- package/src/modules/library/commands/delete-library.ts +126 -0
- package/src/modules/library/errors/library-errors.ts +13 -0
- package/src/modules/library/index.ts +13 -0
- package/src/modules/library/services/library-create-svc.ts +75 -0
- package/src/modules/library/services/library-svc.ts +50 -0
- package/src/modules/library/types/library-types.ts +18 -0
- package/src/modules/plugin/commands/delete-plugin.ts +128 -0
- package/src/modules/plugin/errors/plugin-errors.ts +20 -0
- package/src/modules/plugin/index.ts +1 -0
- package/src/modules/plugin/services/plugin-svc.ts +43 -2
- package/src/modules/plugin/types/plugin-types.ts +8 -0
- package/templates/library/README.md.hbs +80 -0
- package/templates/library/package.json.hbs +31 -0
- package/templates/library/src/index.d.ts.hbs +14 -0
- package/templates/library/src/index.js +11 -0
- package/templates/library/tsconfig.json +31 -0
- package/dist/modules/app/commands/validate-manifest.d.ts +0 -3
- package/dist/modules/app/commands/validate-manifest.d.ts.map +0 -1
- package/dist/modules/app/commands/validate-manifest.js +0 -67
- package/dist/modules/app/commands/validate-manifest.js.map +0 -1
- package/src/modules/app/commands/validate-manifest.ts +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @launch77/cli
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a282a71: Added command to delete libraries
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 231f581: Added new delete commands, removed uneccessary commands around manifest files, and commented out commands for deploying until we come back and fix issues here
|
|
14
|
+
|
|
3
15
|
## 1.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cli.js
CHANGED
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { deployInitCommand, deployLogsCommand, deployStatusCommand } from './modules/deploy/index.js'
|
|
3
|
+
import { appCreateCommand, appDeleteCommand } from './modules/app/index.js';
|
|
4
|
+
// import { catalogScanCommand, catalogGenerateCommand } from './modules/catalog/index.js'
|
|
5
|
+
// import { deployInitCommand, deployLogsCommand, deployStatusCommand } from './modules/deploy/index.js'
|
|
6
6
|
import { gitConnectCommand } from './modules/git/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { libraryCreateCommand, libraryDeleteCommand } from './modules/library/index.js';
|
|
8
|
+
import { pluginInstallCommand, pluginCreateCommand, pluginDeleteCommand } from './modules/plugin/index.js';
|
|
8
9
|
import { releaseInitCommand } from './modules/release/index.js';
|
|
9
|
-
import { getPackageVersion } from './utils/version.js';
|
|
10
10
|
import { initWorkspaceCommand } from './modules/workspace/index.js';
|
|
11
|
+
import { getPackageVersion } from './utils/version.js';
|
|
11
12
|
const program = new Command()
|
|
12
13
|
.name('launch77')
|
|
13
14
|
.description('Launch77 Platform CLI')
|
|
14
15
|
.version(getPackageVersion(import.meta.url));
|
|
15
16
|
// Register module commands
|
|
16
17
|
program.addCommand(initWorkspaceCommand());
|
|
17
|
-
program.addCommand(
|
|
18
|
-
program.addCommand(
|
|
19
|
-
program.addCommand(
|
|
20
|
-
program.addCommand(
|
|
18
|
+
program.addCommand(appCreateCommand());
|
|
19
|
+
program.addCommand(appDeleteCommand());
|
|
20
|
+
program.addCommand(libraryCreateCommand());
|
|
21
|
+
program.addCommand(libraryDeleteCommand());
|
|
21
22
|
program.addCommand(pluginCreateCommand());
|
|
22
|
-
program.addCommand(
|
|
23
|
-
program.addCommand(
|
|
23
|
+
program.addCommand(pluginDeleteCommand());
|
|
24
|
+
program.addCommand(pluginInstallCommand());
|
|
25
|
+
// program.addCommand(catalogGenerateCommand())
|
|
26
|
+
// program.addCommand(catalogScanCommand())
|
|
24
27
|
// Git commands
|
|
25
28
|
program.addCommand(gitConnectCommand());
|
|
26
29
|
// Release commands
|
|
27
30
|
program.addCommand(releaseInitCommand());
|
|
28
31
|
// Deploy commands
|
|
29
|
-
program.addCommand(deployInitCommand())
|
|
30
|
-
program.addCommand(deployStatusCommand())
|
|
31
|
-
program.addCommand(deployLogsCommand())
|
|
32
|
+
// program.addCommand(deployInitCommand())
|
|
33
|
+
// program.addCommand(deployStatusCommand())
|
|
34
|
+
// program.addCommand(deployLogsCommand())
|
|
32
35
|
program.parse();
|
|
33
36
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC3E,0FAA0F;AAC1F,wGAAwG;AACxG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1G,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE;KAC1B,IAAI,CAAC,UAAU,CAAC;KAChB,WAAW,CAAC,uBAAuB,CAAC;KACpC,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9C,2BAA2B;AAC3B,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA;AAC1C,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAA;AACtC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAAA;AACtC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA;AAC1C,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA;AAC1C,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAA;AACzC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAA;AACzC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA;AAC1C,+CAA+C;AAC/C,2CAA2C;AAE3C,eAAe;AACf,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAA;AAEvC,mBAAmB;AACnB,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAA;AAExC,kBAAkB;AAClB,0CAA0C;AAC1C,4CAA4C;AAC5C,0CAA0C;AAE1C,OAAO,CAAC,KAAK,EAAE,CAAA"}
|
|
@@ -9,7 +9,6 @@ export interface TemplateContext {
|
|
|
9
9
|
export declare function processTemplate(templatePath: string, destinationPath: string, context: TemplateContext): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* Get the path to a template directory
|
|
12
|
-
* Templates are always in dist/app-templates/ (copied during build)
|
|
13
12
|
*/
|
|
14
13
|
export declare function getTemplatePath(templateName: string): string;
|
|
15
14
|
/**
|
|
@@ -17,6 +16,11 @@ export declare function getTemplatePath(templateName: string): string;
|
|
|
17
16
|
* Plugin templates are in dist/templates/ (copied during build)
|
|
18
17
|
*/
|
|
19
18
|
export declare function getPluginTemplatePath(templateName: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Get the path to a library template directory
|
|
21
|
+
* Library templates are in dist/templates/ (copied during build)
|
|
22
|
+
*/
|
|
23
|
+
export declare function getLibraryTemplatePath(templateName: string): string;
|
|
20
24
|
/**
|
|
21
25
|
* Check if a template exists
|
|
22
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/infrastructure/template.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CACrD;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B5H;AAED
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/infrastructure/template.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CACrD;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B5H;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAQ5D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAQlE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAQnE;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG3E"}
|
|
@@ -34,7 +34,6 @@ export async function processTemplate(templatePath, destinationPath, context) {
|
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Get the path to a template directory
|
|
37
|
-
* Templates are always in dist/app-templates/ (copied during build)
|
|
38
37
|
*/
|
|
39
38
|
export function getTemplatePath(templateName) {
|
|
40
39
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -54,6 +53,17 @@ export function getPluginTemplatePath(templateName) {
|
|
|
54
53
|
const baseDir = path.join(__dirname, '../templates');
|
|
55
54
|
return path.join(baseDir, templateName);
|
|
56
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Get the path to a library template directory
|
|
58
|
+
* Library templates are in dist/templates/ (copied during build)
|
|
59
|
+
*/
|
|
60
|
+
export function getLibraryTemplatePath(templateName) {
|
|
61
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
62
|
+
const __dirname = path.dirname(__filename);
|
|
63
|
+
// From dist/infrastructure/ to dist/templates/
|
|
64
|
+
const baseDir = path.join(__dirname, '../templates');
|
|
65
|
+
return path.join(baseDir, templateName);
|
|
66
|
+
}
|
|
57
67
|
/**
|
|
58
68
|
* Check if a template exists
|
|
59
69
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/infrastructure/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAC5B,OAAO,EAAE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C,SAAS,EAAE,cAAc,CAAC,CAAA;IAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,YAAoB;IACzD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACjD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAE1C,+CAA+C;IAC/C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;IAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,YAAoB;IACvD,MAAM,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC,CAAA;IAClD,OAAO,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;AACpC,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Command } from 'commander';
|
|
|
5
5
|
import ora from 'ora';
|
|
6
6
|
import { detectLaunch77Context } from '@launch77/plugin-runtime';
|
|
7
7
|
import { AppService } from '../services/app-svc.js';
|
|
8
|
-
export function
|
|
8
|
+
export function appCreateCommand() {
|
|
9
9
|
const command = new Command('app:create')
|
|
10
10
|
.argument('<template>', 'App template name (e.g., webapp, api, marketing-site)')
|
|
11
11
|
.argument('<app-name>', 'Name of the application')
|
|
@@ -6,7 +6,7 @@ import inquirer from 'inquirer';
|
|
|
6
6
|
import ora from 'ora';
|
|
7
7
|
import { detectLaunch77Context } from '@launch77/plugin-runtime';
|
|
8
8
|
import { AppService } from '../services/app-svc.js';
|
|
9
|
-
export function
|
|
9
|
+
export function appDeleteCommand() {
|
|
10
10
|
const command = new Command('app:delete')
|
|
11
11
|
.argument('<app-name>', 'Name of the app to delete')
|
|
12
12
|
.description('Delete an app from the workspace (requires confirmation)')
|
|
@@ -3,7 +3,6 @@ export { ManifestService } from './services/manifest-svc.js';
|
|
|
3
3
|
export type { CreateAppRequest, CreateAppResult, DeleteAppRequest, DeleteAppResult } from './types/app-types.js';
|
|
4
4
|
export type { AppManifest, DeploymentConfig } from './lib/manifest-schema.js';
|
|
5
5
|
export { AppAlreadyExistsError, AppNotFoundError, InvalidAppNameError, TemplateNotFoundError, ManifestNotFoundError, InvalidManifestError } from './errors/app-errors.js';
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { validateManifestCommand } from './commands/validate-manifest.js';
|
|
6
|
+
export { appCreateCommand } from './commands/create-app.js';
|
|
7
|
+
export { appDeleteCommand } from './commands/delete-app.js';
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAChH,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAG7E,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAGzK,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAChH,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAG7E,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAGzK,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -4,7 +4,6 @@ export { ManifestService } from './services/manifest-svc.js';
|
|
|
4
4
|
// Errors
|
|
5
5
|
export { AppAlreadyExistsError, AppNotFoundError, InvalidAppNameError, TemplateNotFoundError, ManifestNotFoundError, InvalidManifestError } from './errors/app-errors.js';
|
|
6
6
|
// Commands
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export { validateManifestCommand } from './commands/validate-manifest.js';
|
|
7
|
+
export { appCreateCommand } from './commands/create-app.js';
|
|
8
|
+
export { appDeleteCommand } from './commands/delete-app.js';
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/app/index.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAM5D,SAAS;AACT,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEzK,WAAW;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/app/index.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAM5D,SAAS;AACT,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEzK,WAAW;AACX,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/generate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAanC;;GAEG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/generate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAanC;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAqBhD"}
|
|
@@ -11,7 +11,7 @@ import { printQualityReport } from '../utils/quality-reporter.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* Create the catalog:generate command
|
|
13
13
|
*/
|
|
14
|
-
export function
|
|
14
|
+
export function catalogGenerateCommand() {
|
|
15
15
|
const command = new Command('catalog:generate')
|
|
16
16
|
.description('Generate catalog metadata for a component library')
|
|
17
17
|
.option('-l, --library <path>', 'Library directory path', process.cwd())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/generate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,KAAK,CAAA;AAErB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAQjE;;GAEG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/generate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAA;AAEvB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,KAAK,CAAA;AAErB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAQjE;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,CAAC;SAC5C,WAAW,CAAC,mDAAmD,CAAC;SAChE,MAAM,CAAC,sBAAsB,EAAE,wBAAwB,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;SACvE,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;SACtE,MAAM,CAAC,aAAa,EAAE,yDAAyD,CAAC;SAChF,MAAM,CAAC,KAAK,EAAE,OAAwB,EAAE,EAAE;QACzC,IAAI,CAAC;YACH,MAAM,e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AAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IACpE,CAAC;IAED,OAAO,CAAC,GAAG,EAAE,CAAA;AACf,CAAC"}
|
|
@@ -5,5 +5,5 @@ import { Command } from 'commander';
|
|
|
5
5
|
* Scans UI components, libraries, plugins, and utilities from the Launch77 monorepo
|
|
6
6
|
* and generates a machine-readable catalog for AI discovery.
|
|
7
7
|
*/
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function catalogScanCommand(): Command;
|
|
9
9
|
//# sourceMappingURL=scan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC;;;;;GAKG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAmC5C"}
|
|
@@ -8,7 +8,7 @@ import { CatalogService } from '../services/catalog-svc.js';
|
|
|
8
8
|
* Scans UI components, libraries, plugins, and utilities from the Launch77 monorepo
|
|
9
9
|
* and generates a machine-readable catalog for AI discovery.
|
|
10
10
|
*/
|
|
11
|
-
export function
|
|
11
|
+
export function catalogScanCommand() {
|
|
12
12
|
const command = new Command('catalog:scan')
|
|
13
13
|
.description('Scan Launch77 artifacts and generate catalog.json')
|
|
14
14
|
.option('--no-strict', 'Skip validation errors and generate catalog anyway')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/modules/catalog/commands/scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW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AAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YAEtE,IAAI,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC,CAAA;gBACzE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC,CAAA;YAC1G,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,OAAO,IAAI,CAAC,CAAC,CAAA;YACrD,CAAC;YAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjB,CAAC;IACH,CAAC,CAAC,CAAA;IAEJ,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-library.d.ts","sourceRoot":"","sources":["../../../../src/modules/library/commands/create-library.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMnC,wBAAgB,oBAAoB,IAAI,OAAO,CA2D9C"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { Command } from 'commander';
|
|
5
|
+
import ora from 'ora';
|
|
6
|
+
import { detectLaunch77Context } from '@launch77/plugin-runtime';
|
|
7
|
+
import { LibraryCreateService } from '../services/library-create-svc.js';
|
|
8
|
+
export function libraryCreateCommand() {
|
|
9
|
+
const command = new Command('library:create')
|
|
10
|
+
.argument('<library-name>', 'Name of the library to create (e.g., ui, marketing-ui)')
|
|
11
|
+
.option('-d, --description <description>', 'Library description')
|
|
12
|
+
.description('Create a new library from template')
|
|
13
|
+
.action(async (libraryName, options) => {
|
|
14
|
+
try {
|
|
15
|
+
console.log(chalk.blue(`\n📚 Creating library: ${libraryName}\n`));
|
|
16
|
+
// Detect context
|
|
17
|
+
const context = await detectLaunch77Context(process.cwd());
|
|
18
|
+
// Create library service
|
|
19
|
+
const libraryCreateService = new LibraryCreateService();
|
|
20
|
+
// Create library
|
|
21
|
+
const spinner = ora('Generating library structure...').start();
|
|
22
|
+
let result;
|
|
23
|
+
try {
|
|
24
|
+
result = await libraryCreateService.createLibrary({
|
|
25
|
+
libraryName,
|
|
26
|
+
description: options.description,
|
|
27
|
+
}, context);
|
|
28
|
+
spinner.succeed('Library structure generated');
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
spinner.fail('Failed to generate library structure');
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
// Success message
|
|
35
|
+
const relativePath = path.relative(process.cwd(), result.libraryPath);
|
|
36
|
+
const displayPath = relativePath.startsWith('..') ? result.libraryPath : relativePath;
|
|
37
|
+
console.log(chalk.green(`\n✅ Library created successfully at ${displayPath}`));
|
|
38
|
+
// Next steps
|
|
39
|
+
console.log(chalk.white('\n' + '─'.repeat(60) + '\n'));
|
|
40
|
+
console.log(chalk.cyan('📋 Next Steps:\n'));
|
|
41
|
+
const cdPath = path.relative(process.cwd(), result.libraryPath);
|
|
42
|
+
console.log(chalk.gray('1. Navigate to your library directory:'));
|
|
43
|
+
console.log(chalk.cyan(` cd ${cdPath}\n`));
|
|
44
|
+
console.log(chalk.gray('2. Add your library code to src/\n'));
|
|
45
|
+
console.log(chalk.gray('3. Update package.json with proper exports and dependencies\n'));
|
|
46
|
+
console.log(chalk.gray('4. Configure build system if needed (tsup, tsc, etc.)\n'));
|
|
47
|
+
console.log(chalk.gray('5. Add README.md documentation\n'));
|
|
48
|
+
console.log(chalk.gray('6. Run type checking:'));
|
|
49
|
+
console.log(chalk.cyan(' npm run typecheck\n'));
|
|
50
|
+
console.log(chalk.gray('7. Build your library:'));
|
|
51
|
+
console.log(chalk.cyan(' npm run build\n'));
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
55
|
+
console.error(chalk.red('Error:'), message);
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return command;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=create-library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-library.js","sourceRoot":"","sources":["../../../../src/modules/library/commands/create-library.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,KAAK,CAAA;AAErB,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAExE,MAAM,UAAU,oBAAoB;IAClC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,gBAAgB,CAAC;SAC1C,QAAQ,CAAC,gBAAgB,EAAE,wDAAwD,CAAC;SACpF,MAAM,CAAC,iCAAiC,EAAE,qBAAqB,CAAC;SAChE,WAAW,CAAC,oCAAoC,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,WAAmB,EAAE,OAAO,EAAE,EAAE;QAC7C,IAAI,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,WAAW,IAAI,CAAC,CAAC,CAAA;YAElE,iBAAiB;YACjB,MAAM,OAAO,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;YAE1D,yBAAyB;YACzB,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAA;YAEvD,iBAAiB;YACjB,MAAM,OAAO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AAgB,oBAAoB,IAAI,OAAO,CAkH9C"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
import { Command } from 'commander';
|
|
5
|
+
import inquirer from 'inquirer';
|
|
6
|
+
import ora from 'ora';
|
|
7
|
+
import { detectLaunch77Context } from '@launch77/plugin-runtime';
|
|
8
|
+
import { LibraryService } from '../services/library-svc.js';
|
|
9
|
+
export function libraryDeleteCommand() {
|
|
10
|
+
const command = new Command('library:delete')
|
|
11
|
+
.argument('<library-name>', 'Name of the library to delete')
|
|
12
|
+
.description('Delete a library from the workspace (requires confirmation)')
|
|
13
|
+
.action(async (libraryName) => {
|
|
14
|
+
try {
|
|
15
|
+
console.log(chalk.yellow(`\n⚠️ WARNING: You are about to delete the library '${libraryName}'\n`));
|
|
16
|
+
// Detect context
|
|
17
|
+
const context = await detectLaunch77Context(process.cwd());
|
|
18
|
+
// Create library service
|
|
19
|
+
const libraryService = new LibraryService();
|
|
20
|
+
// Get library path for display (before deletion)
|
|
21
|
+
const libraryPath = path.join(context.workspaceRoot, 'libraries', libraryName);
|
|
22
|
+
// Display what will be deleted
|
|
23
|
+
console.log(chalk.red('Library location:'), libraryPath);
|
|
24
|
+
console.log(chalk.red('\nThis will permanently delete:'));
|
|
25
|
+
console.log(chalk.gray(' • All source code and configuration files'));
|
|
26
|
+
console.log(chalk.gray(' • All node_modules (will be cleaned from monorepo)'));
|
|
27
|
+
console.log(chalk.gray(' • All build artifacts'));
|
|
28
|
+
console.log(chalk.yellow('\n⚠️ Important notes:'));
|
|
29
|
+
console.log(chalk.gray(' • Check if other packages depend on this library'));
|
|
30
|
+
console.log(chalk.gray(' • If published to npm, you may want to deprecate/unpublish it manually'));
|
|
31
|
+
console.log(chalk.gray(' • Update import statements in dependent packages manually'));
|
|
32
|
+
console.log(chalk.red('\n⚠️ THIS ACTION CANNOT BE UNDONE!\n'));
|
|
33
|
+
// First confirmation: Type library name
|
|
34
|
+
const { confirmName } = await inquirer.prompt([
|
|
35
|
+
{
|
|
36
|
+
type: 'input',
|
|
37
|
+
name: 'confirmName',
|
|
38
|
+
message: `Type the library name to confirm:`,
|
|
39
|
+
validate: (input) => {
|
|
40
|
+
if (input === libraryName) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
return `Please type '${libraryName}' exactly to confirm`;
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
]);
|
|
47
|
+
if (confirmName !== libraryName) {
|
|
48
|
+
console.log(chalk.gray('\n✖ Deletion cancelled\n'));
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
// Second confirmation: Type DELETE
|
|
52
|
+
const { confirmDelete } = await inquirer.prompt([
|
|
53
|
+
{
|
|
54
|
+
type: 'input',
|
|
55
|
+
name: 'confirmDelete',
|
|
56
|
+
message: 'Type DELETE (all caps) to confirm permanent deletion:',
|
|
57
|
+
validate: (input) => {
|
|
58
|
+
if (input === 'DELETE') {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
return 'Please type DELETE (all caps) to confirm';
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
if (confirmDelete !== 'DELETE') {
|
|
66
|
+
console.log(chalk.gray('\n✖ Deletion cancelled\n'));
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
// Delete the library
|
|
70
|
+
const deleteSpinner = ora('Deleting library directory...').start();
|
|
71
|
+
try {
|
|
72
|
+
await libraryService.deleteLibrary({ libraryName }, context);
|
|
73
|
+
deleteSpinner.succeed('Library directory deleted');
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
deleteSpinner.fail('Failed to delete library directory');
|
|
77
|
+
throw error;
|
|
78
|
+
}
|
|
79
|
+
// Update dependencies
|
|
80
|
+
const installSpinner = ora('Updating workspace dependencies...').start();
|
|
81
|
+
try {
|
|
82
|
+
// This is already done by library service, just show spinner for consistency
|
|
83
|
+
installSpinner.succeed('Dependencies updated (package-lock.json cleaned)');
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
installSpinner.fail('Failed to update dependencies');
|
|
87
|
+
console.log(chalk.yellow('\n⚠️ You may need to run "npm install" manually at the workspace root\n'));
|
|
88
|
+
}
|
|
89
|
+
// Success message
|
|
90
|
+
console.log(chalk.green(`\n✅ Library '${libraryName}' has been deleted\n`));
|
|
91
|
+
// Reminder about cleanup
|
|
92
|
+
console.log(chalk.yellow('📝 Remember to:'));
|
|
93
|
+
console.log(chalk.gray(' • Check and update dependent packages (remove from dependencies)'));
|
|
94
|
+
console.log(chalk.gray(' • Update import statements in code that used this library'));
|
|
95
|
+
console.log(chalk.gray(' • Consider deprecating/unpublishing from npm if published'));
|
|
96
|
+
console.log();
|
|
97
|
+
// Reminder about Git
|
|
98
|
+
console.log(chalk.yellow('📝 Remember to commit the deletion:'));
|
|
99
|
+
console.log(chalk.gray(' git add -A'));
|
|
100
|
+
console.log(chalk.gray(` git commit -m "Remove ${libraryName} library"`));
|
|
101
|
+
console.log();
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
105
|
+
console.error(chalk.red('Error:'), message);
|
|
106
|
+
process.exit(1);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
return command;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=delete-library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-library.js","sourceRoot":"","sources":["../../../../src/modules/library/commands/delete-library.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,QAAQ,MAAM,UAAU,CAAA;AAC/B,OAAO,GAAG,MAA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AAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,8DAA8D,CAAC,CAAC,CAAA;YACvF,OAAO,CAAC,GAAG,EAAE,CAAA;YAEb,qBAAqB;YACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC,CAAA;YAChE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAA;YACxC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,4BAA4B,WAAW,WAAW,CAAC,CAAC,CAAA;YAC3E,OAAO,CAAC,GAAG,EAAE,CAAA;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACtE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAA;YAC3C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QACjB,CAAC;IACH,CAAC,CAAC,CAAA;IAEJ,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-errors.d.ts","sourceRoot":"","sources":["../../../../src/modules/library/errors/library-errors.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;CAItD;AAED,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class LibraryNotFoundError extends Error {
|
|
2
|
+
constructor(libraryName, expectedPath) {
|
|
3
|
+
super(`Library '${libraryName}' does not exist.\n\n` + `Expected location: ${expectedPath}\n\n` + `Available libraries:\n` + ` cd libraries/\n` + ` ls`);
|
|
4
|
+
this.name = 'LibraryNotFoundError';
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export class InvalidLibraryNameError extends Error {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = 'InvalidLibraryNameError';
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=library-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-errors.js","sourceRoot":"","sources":["../../../../src/modules/library/errors/library-errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,WAAmB,EAAE,YAAoB;QACnD,KAAK,CAAC,YAAY,WAAW,uBAAuB,GAAG,sBAAsB,YAAY,MAAM,GAAG,wBAAwB,GAAG,mBAAmB,GAAG,MAAM,CAAC,CAAA;QAC1J,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAA;IACpC,CAAC;CACF;AAED,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAA;IACvC,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LibraryService } from './services/library-svc.js';
|
|
2
|
+
export { LibraryCreateService } from './services/library-create-svc.js';
|
|
3
|
+
export type { CreateLibraryRequest, CreateLibraryResult, DeleteLibraryRequest, DeleteLibraryResult } from './types/library-types.js';
|
|
4
|
+
export { LibraryNotFoundError, InvalidLibraryNameError } from './errors/library-errors.js';
|
|
5
|
+
export { libraryCreateCommand } from './commands/create-library.js';
|
|
6
|
+
export { libraryDeleteCommand } from './commands/delete-library.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/library/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAGvE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAGpI,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAG1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Services
|
|
2
|
+
export { LibraryService } from './services/library-svc.js';
|
|
3
|
+
export { LibraryCreateService } from './services/library-create-svc.js';
|
|
4
|
+
// Errors
|
|
5
|
+
export { LibraryNotFoundError, InvalidLibraryNameError } from './errors/library-errors.js';
|
|
6
|
+
// Commands
|
|
7
|
+
export { libraryCreateCommand } from './commands/create-library.js';
|
|
8
|
+
export { libraryDeleteCommand } from './commands/delete-library.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/library/index.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAKvE,SAAS;AACT,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAE1F,WAAW;AACX,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Launch77Context } from '@launch77/plugin-runtime';
|
|
2
|
+
export interface CreateLibraryRequest {
|
|
3
|
+
libraryName: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CreateLibraryResult {
|
|
7
|
+
libraryName: string;
|
|
8
|
+
libraryPath: string;
|
|
9
|
+
packageName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class LibraryCreateService {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new library from template
|
|
14
|
+
*/
|
|
15
|
+
createLibrary(request: CreateLibraryRequest, context: Launch77Context): Promise<CreateLibraryResult>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=library-create-svc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-create-svc.d.ts","sourceRoot":"","sources":["../../../../src/modules/library/services/library-create-svc.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE/D,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,oBAAoB;IAC/B;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAiD3G"}
|