@launch77/cli 1.4.3 → 1.5.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 +19 -0
- package/dist/cli.js +1 -4
- package/dist/cli.js.map +1 -1
- package/dist/infrastructure/npm-package.d.ts +42 -0
- package/dist/infrastructure/npm-package.d.ts.map +1 -0
- package/dist/infrastructure/npm-package.js +46 -0
- package/dist/infrastructure/npm-package.js.map +1 -0
- package/dist/infrastructure/package-resolver.d.ts +117 -0
- package/dist/infrastructure/package-resolver.d.ts.map +1 -0
- package/dist/infrastructure/package-resolver.js +170 -0
- package/dist/infrastructure/package-resolver.js.map +1 -0
- package/dist/infrastructure/package-resolver.test.d.ts +2 -0
- package/dist/infrastructure/package-resolver.test.d.ts.map +1 -0
- package/dist/infrastructure/package-resolver.test.js +251 -0
- package/dist/infrastructure/package-resolver.test.js.map +1 -0
- package/dist/infrastructure/template.d.ts +0 -1
- package/dist/infrastructure/template.d.ts.map +1 -1
- package/dist/infrastructure/template.js.map +1 -1
- package/dist/modules/app/commands/create-app.d.ts.map +1 -1
- package/dist/modules/app/commands/create-app.js +14 -15
- package/dist/modules/app/commands/create-app.js.map +1 -1
- package/dist/modules/app/commands/delete-app.js +1 -1
- package/dist/modules/app/commands/delete-app.js.map +1 -1
- package/dist/modules/app/commands/validate-manifest.d.ts.map +1 -1
- package/dist/modules/app/commands/validate-manifest.js +0 -1
- package/dist/modules/app/commands/validate-manifest.js.map +1 -1
- package/dist/modules/app/index.d.ts +1 -2
- package/dist/modules/app/index.d.ts.map +1 -1
- package/dist/modules/app/index.js +0 -1
- package/dist/modules/app/index.js.map +1 -1
- package/dist/modules/app/lib/app-template-resolver.d.ts +14 -0
- package/dist/modules/app/lib/app-template-resolver.d.ts.map +1 -0
- package/dist/modules/app/lib/app-template-resolver.js +51 -0
- package/dist/modules/app/lib/app-template-resolver.js.map +1 -0
- package/dist/modules/app/lib/manifest-schema.d.ts +0 -7
- package/dist/modules/app/lib/manifest-schema.d.ts.map +1 -1
- package/dist/modules/app/lib/manifest-schema.js +0 -2
- package/dist/modules/app/lib/manifest-schema.js.map +1 -1
- package/dist/modules/app/services/app-svc.d.ts +2 -1
- package/dist/modules/app/services/app-svc.d.ts.map +1 -1
- package/dist/modules/app/services/app-svc.js +77 -12
- package/dist/modules/app/services/app-svc.js.map +1 -1
- package/dist/modules/app/services/manifest-svc.d.ts +2 -2
- package/dist/modules/app/services/manifest-svc.d.ts.map +1 -1
- package/dist/modules/app/services/manifest-svc.js +9 -50
- package/dist/modules/app/services/manifest-svc.js.map +1 -1
- package/dist/modules/app/types/app-types.d.ts +2 -5
- package/dist/modules/app/types/app-types.d.ts.map +1 -1
- package/dist/modules/app/types/app-types.js +1 -4
- package/dist/modules/app/types/app-types.js.map +1 -1
- package/dist/modules/catalog/commands/scan.js +3 -3
- package/dist/modules/catalog/commands/scan.js.map +1 -1
- package/dist/modules/catalog/services/catalog-svc.d.ts +2 -2
- package/dist/modules/catalog/services/catalog-svc.d.ts.map +1 -1
- package/dist/modules/catalog/services/catalog-svc.js +2 -2
- package/dist/modules/catalog/services/catalog-svc.js.map +1 -1
- package/dist/modules/deploy/commands/deploy-init-action.d.ts.map +1 -1
- package/dist/modules/deploy/commands/deploy-init-action.js +21 -20
- package/dist/modules/deploy/commands/deploy-init-action.js.map +1 -1
- package/dist/modules/deploy/commands/deploy-logs-action.d.ts.map +1 -1
- package/dist/modules/deploy/commands/deploy-logs-action.js +16 -13
- package/dist/modules/deploy/commands/deploy-logs-action.js.map +1 -1
- package/dist/modules/deploy/commands/deploy-status-action.d.ts.map +1 -1
- package/dist/modules/deploy/commands/deploy-status-action.js +16 -13
- package/dist/modules/deploy/commands/deploy-status-action.js.map +1 -1
- package/dist/modules/plugin/lib/plugin-resolver.d.ts +10 -72
- package/dist/modules/plugin/lib/plugin-resolver.d.ts.map +1 -1
- package/dist/modules/plugin/lib/plugin-resolver.js +23 -115
- package/dist/modules/plugin/lib/plugin-resolver.js.map +1 -1
- package/dist/modules/plugin/lib/plugin-resolver.test.js +45 -39
- package/dist/modules/plugin/lib/plugin-resolver.test.js.map +1 -1
- package/dist/modules/plugin/services/plugin-svc.d.ts +2 -0
- package/dist/modules/plugin/services/plugin-svc.d.ts.map +1 -1
- package/dist/modules/plugin/services/plugin-svc.js +24 -19
- package/dist/modules/plugin/services/plugin-svc.js.map +1 -1
- package/dist/modules/plugin/services/plugin-svc.test.js +12 -6
- package/dist/modules/plugin/services/plugin-svc.test.js.map +1 -1
- package/dist/templates/plugin/package.json.hbs +1 -1
- package/dist/templates/plugin/plugin.json.hbs +1 -3
- package/dist/utils/validation.d.ts +3 -7
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +7 -31
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
- package/src/cli.ts +1 -4
- package/src/infrastructure/npm-package.ts +73 -0
- package/src/infrastructure/package-resolver.test.ts +313 -0
- package/src/infrastructure/package-resolver.ts +223 -0
- package/src/infrastructure/template.ts +0 -1
- package/src/modules/app/commands/create-app.ts +14 -18
- package/src/modules/app/commands/delete-app.ts +1 -1
- package/src/modules/app/commands/validate-manifest.ts +0 -1
- package/src/modules/app/index.ts +1 -2
- package/src/modules/app/lib/app-template-resolver.ts +56 -0
- package/src/modules/app/lib/manifest-schema.ts +0 -5
- package/src/modules/app/services/app-svc.ts +89 -13
- package/src/modules/app/services/manifest-svc.ts +8 -57
- package/src/modules/app/types/app-types.ts +2 -9
- package/src/modules/catalog/commands/scan.ts +3 -3
- package/src/modules/catalog/services/catalog-svc.ts +4 -4
- package/src/modules/deploy/commands/deploy-init-action.ts +23 -20
- package/src/modules/deploy/commands/deploy-logs-action.ts +19 -13
- package/src/modules/deploy/commands/deploy-status-action.ts +19 -13
- package/src/modules/plugin/lib/plugin-resolver.test.ts +48 -39
- package/src/modules/plugin/lib/plugin-resolver.ts +22 -141
- package/src/modules/plugin/services/plugin-svc.test.ts +12 -6
- package/src/modules/plugin/services/plugin-svc.ts +27 -18
- package/src/utils/validation.ts +10 -38
- package/templates/plugin/package.json.hbs +1 -1
- package/templates/plugin/plugin.json.hbs +1 -3
- package/dist/modules/app/commands/generate-manifest.d.ts +0 -3
- package/dist/modules/app/commands/generate-manifest.d.ts.map +0 -1
- package/dist/modules/app/commands/generate-manifest.js +0 -62
- package/dist/modules/app/commands/generate-manifest.js.map +0 -1
- package/dist/modules/startup/commands/create-startup.d.ts +0 -3
- package/dist/modules/startup/commands/create-startup.d.ts.map +0 -1
- package/dist/modules/startup/commands/create-startup.js +0 -43
- package/dist/modules/startup/commands/create-startup.js.map +0 -1
- package/dist/modules/startup/errors/startup-errors.d.ts +0 -13
- package/dist/modules/startup/errors/startup-errors.d.ts.map +0 -1
- package/dist/modules/startup/errors/startup-errors.js +0 -25
- package/dist/modules/startup/errors/startup-errors.js.map +0 -1
- package/dist/modules/startup/index.d.ts +0 -5
- package/dist/modules/startup/index.d.ts.map +0 -1
- package/dist/modules/startup/index.js +0 -7
- package/dist/modules/startup/index.js.map +0 -1
- package/dist/modules/startup/services/startup-service.d.ts +0 -7
- package/dist/modules/startup/services/startup-service.d.ts.map +0 -1
- package/dist/modules/startup/services/startup-service.js +0 -43
- package/dist/modules/startup/services/startup-service.js.map +0 -1
- package/dist/modules/startup/types/startup-types.d.ts +0 -8
- package/dist/modules/startup/types/startup-types.d.ts.map +0 -1
- package/dist/modules/startup/types/startup-types.js +0 -2
- package/dist/modules/startup/types/startup-types.js.map +0 -1
- package/dist/modules/startup/utils/startup-validators.d.ts +0 -8
- package/dist/modules/startup/utils/startup-validators.d.ts.map +0 -1
- package/dist/modules/startup/utils/startup-validators.js +0 -17
- package/dist/modules/startup/utils/startup-validators.js.map +0 -1
- package/dist/templates/startup/apps/.gitkeep +0 -8
- package/dist/utils/monorepo.d.ts +0 -19
- package/dist/utils/monorepo.d.ts.map +0 -1
- package/dist/utils/monorepo.js +0 -100
- package/dist/utils/monorepo.js.map +0 -1
- package/src/modules/app/commands/generate-manifest.ts +0 -75
- package/src/modules/startup/commands/create-startup.ts +0 -53
- package/src/modules/startup/errors/startup-errors.ts +0 -23
- package/src/modules/startup/index.ts +0 -11
- package/src/modules/startup/services/startup-service.ts +0 -57
- package/src/modules/startup/types/startup-types.ts +0 -8
- package/src/modules/startup/utils/startup-validators.ts +0 -19
- package/src/utils/monorepo.ts +0 -137
- package/templates/startup/apps/.gitkeep +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @launch77/cli
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1517d3e: Remove startup module and generate-manifest commandAdd dynamic app template support from npmSimplify plugin/app metadata (derive from package.json)Enforce version requirements
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1517d3e]
|
|
12
|
+
- @launch77/plugin-runtime@0.3.0
|
|
13
|
+
|
|
14
|
+
## 1.4.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 1504a6d: Added support for creating apps from tempaltes published in npm
|
|
19
|
+
- Updated dependencies [1504a6d]
|
|
20
|
+
- @launch77/plugin-runtime@0.2.3
|
|
21
|
+
|
|
3
22
|
## 1.4.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
-
import { createAppCommand, deleteAppCommand,
|
|
3
|
+
import { createAppCommand, deleteAppCommand, validateManifestCommand } from './modules/app/index.js';
|
|
4
4
|
import { scanCommand, createGenerateCommand } from './modules/catalog/index.js';
|
|
5
5
|
import { deployInitCommand, deployLogsCommand, deployStatusCommand } from './modules/deploy/index.js';
|
|
6
6
|
import { gitConnectCommand } from './modules/git/index.js';
|
|
7
7
|
import { pluginInstallCommand, pluginCreateCommand } from './modules/plugin/index.js';
|
|
8
8
|
import { releaseInitCommand } from './modules/release/index.js';
|
|
9
|
-
import { createStartupCommand } from './modules/startup/index.js';
|
|
10
9
|
import { getPackageVersion } from './utils/version.js';
|
|
11
10
|
import { initWorkspaceCommand } from './modules/workspace/index.js';
|
|
12
11
|
const program = new Command()
|
|
@@ -15,10 +14,8 @@ const program = new Command()
|
|
|
15
14
|
.version(getPackageVersion(import.meta.url));
|
|
16
15
|
// Register module commands
|
|
17
16
|
program.addCommand(initWorkspaceCommand());
|
|
18
|
-
program.addCommand(createStartupCommand());
|
|
19
17
|
program.addCommand(createAppCommand());
|
|
20
18
|
program.addCommand(deleteAppCommand());
|
|
21
|
-
program.addCommand(generateManifestCommand());
|
|
22
19
|
program.addCommand(validateManifestCommand());
|
|
23
20
|
program.addCommand(pluginInstallCommand());
|
|
24
21
|
program.addCommand(pluginCreateCommand());
|
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,uBAAuB,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,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AACpG,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAC/E,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,oBAAo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@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for downloading an npm package
|
|
3
|
+
*/
|
|
4
|
+
export interface DownloadNpmPackageOptions {
|
|
5
|
+
/** The npm package name to download */
|
|
6
|
+
packageName: string;
|
|
7
|
+
/** The workspace root directory where node_modules will be */
|
|
8
|
+
workspaceRoot: string;
|
|
9
|
+
/** Optional logger function for status messages */
|
|
10
|
+
logger?: (message: string) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Result of downloading an npm package
|
|
14
|
+
*/
|
|
15
|
+
export interface DownloadNpmPackageResult {
|
|
16
|
+
/** Full path to the downloaded package in node_modules */
|
|
17
|
+
packagePath: string;
|
|
18
|
+
/** The package name that was downloaded */
|
|
19
|
+
packageName: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Download and install an npm package to workspace node_modules
|
|
23
|
+
*
|
|
24
|
+
* This function:
|
|
25
|
+
* - Runs `npm install {packageName} --save-dev` in the workspace root
|
|
26
|
+
* - Adds the package to workspace package.json devDependencies
|
|
27
|
+
* - Returns the path to the installed package in node_modules
|
|
28
|
+
*
|
|
29
|
+
* @param options - Download options
|
|
30
|
+
* @returns The path to the installed package
|
|
31
|
+
* @throws NpmInstallationError if the download fails
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* const result = await downloadNpmPackage({
|
|
35
|
+
* packageName: '@launch77-shared/plugin-release',
|
|
36
|
+
* workspaceRoot: '/path/to/workspace',
|
|
37
|
+
* logger: (msg) => console.log(msg)
|
|
38
|
+
* })
|
|
39
|
+
* // result.packagePath: '/path/to/workspace/node_modules/@launch77-shared/plugin-release'
|
|
40
|
+
*/
|
|
41
|
+
export declare function downloadNpmPackage(options: DownloadNpmPackageOptions): Promise<DownloadNpmPackageResult>;
|
|
42
|
+
//# sourceMappingURL=npm-package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-package.d.ts","sourceRoot":"","sources":["../../src/infrastructure/npm-package.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,mDAAmD;IACnD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAA;IACnB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAwB9G"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as path from 'path';
|
|
2
|
+
import { execa } from 'execa';
|
|
3
|
+
import { NpmInstallationError } from '../modules/plugin/errors/plugin-errors.js';
|
|
4
|
+
/**
|
|
5
|
+
* Download and install an npm package to workspace node_modules
|
|
6
|
+
*
|
|
7
|
+
* This function:
|
|
8
|
+
* - Runs `npm install {packageName} --save-dev` in the workspace root
|
|
9
|
+
* - Adds the package to workspace package.json devDependencies
|
|
10
|
+
* - Returns the path to the installed package in node_modules
|
|
11
|
+
*
|
|
12
|
+
* @param options - Download options
|
|
13
|
+
* @returns The path to the installed package
|
|
14
|
+
* @throws NpmInstallationError if the download fails
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const result = await downloadNpmPackage({
|
|
18
|
+
* packageName: '@launch77-shared/plugin-release',
|
|
19
|
+
* workspaceRoot: '/path/to/workspace',
|
|
20
|
+
* logger: (msg) => console.log(msg)
|
|
21
|
+
* })
|
|
22
|
+
* // result.packagePath: '/path/to/workspace/node_modules/@launch77-shared/plugin-release'
|
|
23
|
+
*/
|
|
24
|
+
export async function downloadNpmPackage(options) {
|
|
25
|
+
const { packageName, workspaceRoot, logger } = options;
|
|
26
|
+
if (logger) {
|
|
27
|
+
logger(`Installing from npm: ${packageName}...`);
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
// Install the npm package to the workspace
|
|
31
|
+
await execa('npm', ['install', packageName, '--save-dev'], {
|
|
32
|
+
cwd: workspaceRoot,
|
|
33
|
+
stdio: 'pipe', // Capture output for clean logging
|
|
34
|
+
});
|
|
35
|
+
// Return path to installed package in node_modules
|
|
36
|
+
const packagePath = path.join(workspaceRoot, 'node_modules', packageName);
|
|
37
|
+
return {
|
|
38
|
+
packagePath,
|
|
39
|
+
packageName,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
throw new NpmInstallationError(packageName, error instanceof Error ? error : undefined);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=npm-package.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-package.js","sourceRoot":"","sources":["../../src/infrastructure/npm-package.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAwBhF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,OAAkC;IACzE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAEtD,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,CAAC,wBAAwB,WAAW,KAAK,CAAC,CAAA;IAClD,CAAC;IAED,IAAI,CAAC;QACH,2CAA2C;QAC3C,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE;YACzD,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,MAAM,EAAE,mCAAmC;SACnD,CAAC,CAAA;QAEF,mDAAmD;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,EAAE,WAAW,CAAC,CAAA;QAEzE,OAAO;YACL,WAAW;YACX,WAAW;SACZ,CAAA;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,oBAAoB,CAAC,WAAW,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACzF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ValidationResult } from '@launch77/plugin-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Base interface for package resolution results
|
|
4
|
+
*/
|
|
5
|
+
export interface PackageResolution {
|
|
6
|
+
/** The source of the package */
|
|
7
|
+
source: 'local' | 'npm';
|
|
8
|
+
/** The resolved name/package to use */
|
|
9
|
+
resolvedName: string;
|
|
10
|
+
/** The local path if source is 'local' */
|
|
11
|
+
localPath?: string;
|
|
12
|
+
/** The npm package name if source is 'npm' */
|
|
13
|
+
npmPackage?: string;
|
|
14
|
+
/** The version from package.json (required for local packages, undefined for npm until installed) */
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Abstract base class for resolving Launch77 packages
|
|
19
|
+
*
|
|
20
|
+
* Provides generic resolution logic for finding packages in:
|
|
21
|
+
* 1. Local workspace directory (e.g., plugins/, app-templates/)
|
|
22
|
+
* 2. npm packages with configured prefix (e.g., @launch77-shared/plugin-*, @launch77-shared/app-template-*)
|
|
23
|
+
*
|
|
24
|
+
* Concrete implementations must provide:
|
|
25
|
+
* - Folder name for local resolution
|
|
26
|
+
* - Package prefix for npm resolution
|
|
27
|
+
* - Verification logic to validate local packages
|
|
28
|
+
*/
|
|
29
|
+
export declare abstract class PackageResolver {
|
|
30
|
+
/**
|
|
31
|
+
* Get the local folder name where packages of this type are stored
|
|
32
|
+
* @example 'plugins' or 'app-templates'
|
|
33
|
+
*/
|
|
34
|
+
protected abstract getFolderName(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Get the npm package prefix for unscoped packages
|
|
37
|
+
* @example '@launch77-shared/plugin-' or '@launch77-shared/app-template-'
|
|
38
|
+
*/
|
|
39
|
+
protected abstract getPackagePrefix(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Verify that a local package is valid and complete
|
|
42
|
+
* @param localPath - The local directory path to verify
|
|
43
|
+
* @returns true if the package is valid, false otherwise
|
|
44
|
+
*/
|
|
45
|
+
protected abstract verify(localPath: string): Promise<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Validate package input name
|
|
48
|
+
*
|
|
49
|
+
* Accepts:
|
|
50
|
+
* - Unscoped names (e.g., "release", "my-package")
|
|
51
|
+
* - Scoped npm packages (e.g., "@ibm/package-name")
|
|
52
|
+
*
|
|
53
|
+
* Rejects:
|
|
54
|
+
* - Invalid formats
|
|
55
|
+
* - Empty strings
|
|
56
|
+
* - Names with invalid characters
|
|
57
|
+
*
|
|
58
|
+
* @param name - The package name to validate
|
|
59
|
+
* @returns ValidationResult with isValid and optional error message
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* validateInput('release') // { isValid: true }
|
|
63
|
+
* validateInput('@ibm/analytics') // { isValid: true }
|
|
64
|
+
* validateInput('@invalid') // { isValid: false, error: '...' }
|
|
65
|
+
*/
|
|
66
|
+
validateInput(name: string): ValidationResult;
|
|
67
|
+
/**
|
|
68
|
+
* Convert an unscoped package name to an npm package name
|
|
69
|
+
*
|
|
70
|
+
* Rules:
|
|
71
|
+
* - Unscoped names: prefix with configured package prefix
|
|
72
|
+
* - Scoped names: use as-is
|
|
73
|
+
*
|
|
74
|
+
* @param name - The package name (must be validated first)
|
|
75
|
+
* @returns The npm package name
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* toNpmPackageName('release') // '@launch77-shared/plugin-release' (for PluginResolver)
|
|
79
|
+
* toNpmPackageName('@ibm/analytics') // '@ibm/analytics'
|
|
80
|
+
*/
|
|
81
|
+
toNpmPackageName(name: string): string;
|
|
82
|
+
/**
|
|
83
|
+
* Read version from package.json
|
|
84
|
+
* @param packagePath - The path to the package directory
|
|
85
|
+
* @returns The version string from package.json
|
|
86
|
+
* @throws If package.json doesn't exist, can't be read, or is missing the version field
|
|
87
|
+
*/
|
|
88
|
+
private readVersion;
|
|
89
|
+
/**
|
|
90
|
+
* Resolve package location from name
|
|
91
|
+
*
|
|
92
|
+
* Resolution order:
|
|
93
|
+
* 1. Check local workspace directory (configured by getFolderName())
|
|
94
|
+
* 2. Verify local package is valid (using verify())
|
|
95
|
+
* 3. Fall back to npm package name (with configured prefix)
|
|
96
|
+
* 4. Read version from package.json (if available)
|
|
97
|
+
*
|
|
98
|
+
* @param name - The package name to resolve
|
|
99
|
+
* @param workspaceRoot - The workspace root directory
|
|
100
|
+
* @returns PackageResolution with source, resolved location, and version
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* // Local package found
|
|
104
|
+
* await resolveLocation('my-package', '/workspace')
|
|
105
|
+
* // { source: 'local', resolvedName: 'my-package', localPath: '/workspace/plugins/my-package', version: '1.0.0' }
|
|
106
|
+
*
|
|
107
|
+
* // Not found locally, resolve to npm
|
|
108
|
+
* await resolveLocation('release', '/workspace')
|
|
109
|
+
* // { source: 'npm', resolvedName: 'release', npmPackage: '@launch77-shared/plugin-release' }
|
|
110
|
+
*
|
|
111
|
+
* // Scoped package always resolves to npm
|
|
112
|
+
* await resolveLocation('@ibm/analytics', '/workspace')
|
|
113
|
+
* // { source: 'npm', resolvedName: '@ibm/analytics', npmPackage: '@ibm/analytics' }
|
|
114
|
+
*/
|
|
115
|
+
resolveLocation(name: string, workspaceRoot: string): Promise<PackageResolution>;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=package-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-resolver.d.ts","sourceRoot":"","sources":["../../src/infrastructure/package-resolver.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAEhE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,gCAAgC;IAChC,MAAM,EAAE,OAAO,GAAG,KAAK,CAAA;IACvB,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;;;;GAWG;AACH,8BAAsB,eAAe;IACnC;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,aAAa,IAAI,MAAM;IAE1C;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,IAAI,MAAM;IAE7C;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAE9D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;IA8B7C;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAYtC;;;;;OAKG;YACW,WAAW;IAkBzB;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAyCvF"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import * as path from 'path';
|
|
2
|
+
import { parsePluginName, isValidNpmPackageName } from '@launch77/plugin-runtime';
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
|
+
/**
|
|
5
|
+
* Abstract base class for resolving Launch77 packages
|
|
6
|
+
*
|
|
7
|
+
* Provides generic resolution logic for finding packages in:
|
|
8
|
+
* 1. Local workspace directory (e.g., plugins/, app-templates/)
|
|
9
|
+
* 2. npm packages with configured prefix (e.g., @launch77-shared/plugin-*, @launch77-shared/app-template-*)
|
|
10
|
+
*
|
|
11
|
+
* Concrete implementations must provide:
|
|
12
|
+
* - Folder name for local resolution
|
|
13
|
+
* - Package prefix for npm resolution
|
|
14
|
+
* - Verification logic to validate local packages
|
|
15
|
+
*/
|
|
16
|
+
export class PackageResolver {
|
|
17
|
+
/**
|
|
18
|
+
* Validate package input name
|
|
19
|
+
*
|
|
20
|
+
* Accepts:
|
|
21
|
+
* - Unscoped names (e.g., "release", "my-package")
|
|
22
|
+
* - Scoped npm packages (e.g., "@ibm/package-name")
|
|
23
|
+
*
|
|
24
|
+
* Rejects:
|
|
25
|
+
* - Invalid formats
|
|
26
|
+
* - Empty strings
|
|
27
|
+
* - Names with invalid characters
|
|
28
|
+
*
|
|
29
|
+
* @param name - The package name to validate
|
|
30
|
+
* @returns ValidationResult with isValid and optional error message
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* validateInput('release') // { isValid: true }
|
|
34
|
+
* validateInput('@ibm/analytics') // { isValid: true }
|
|
35
|
+
* validateInput('@invalid') // { isValid: false, error: '...' }
|
|
36
|
+
*/
|
|
37
|
+
validateInput(name) {
|
|
38
|
+
if (!name || name.trim().length === 0) {
|
|
39
|
+
return {
|
|
40
|
+
isValid: false,
|
|
41
|
+
error: 'Package name cannot be empty',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const trimmedName = name.trim();
|
|
45
|
+
// Parse the name to determine type and validate
|
|
46
|
+
//TODO: move/rename parsePluginName() to parsePackageName()
|
|
47
|
+
const parsed = parsePluginName(trimmedName);
|
|
48
|
+
if (!parsed.isValid) {
|
|
49
|
+
return {
|
|
50
|
+
isValid: false,
|
|
51
|
+
error: parsed.error,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
// If it's scoped, it must be a valid npm package name
|
|
55
|
+
if (parsed.type === 'scoped') {
|
|
56
|
+
return isValidNpmPackageName(trimmedName);
|
|
57
|
+
}
|
|
58
|
+
// Unscoped names are valid for both local and npm
|
|
59
|
+
return { isValid: true };
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Convert an unscoped package name to an npm package name
|
|
63
|
+
*
|
|
64
|
+
* Rules:
|
|
65
|
+
* - Unscoped names: prefix with configured package prefix
|
|
66
|
+
* - Scoped names: use as-is
|
|
67
|
+
*
|
|
68
|
+
* @param name - The package name (must be validated first)
|
|
69
|
+
* @returns The npm package name
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* toNpmPackageName('release') // '@launch77-shared/plugin-release' (for PluginResolver)
|
|
73
|
+
* toNpmPackageName('@ibm/analytics') // '@ibm/analytics'
|
|
74
|
+
*/
|
|
75
|
+
toNpmPackageName(name) {
|
|
76
|
+
const trimmedName = name.trim();
|
|
77
|
+
// If already scoped, use as-is
|
|
78
|
+
if (trimmedName.startsWith('@')) {
|
|
79
|
+
return trimmedName;
|
|
80
|
+
}
|
|
81
|
+
// Otherwise, convert using configured prefix
|
|
82
|
+
return `${this.getPackagePrefix()}${trimmedName}`;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Read version from package.json
|
|
86
|
+
* @param packagePath - The path to the package directory
|
|
87
|
+
* @returns The version string from package.json
|
|
88
|
+
* @throws If package.json doesn't exist, can't be read, or is missing the version field
|
|
89
|
+
*/
|
|
90
|
+
async readVersion(packagePath) {
|
|
91
|
+
const packageJsonPath = path.join(packagePath, 'package.json');
|
|
92
|
+
try {
|
|
93
|
+
const packageJson = await fs.readJson(packageJsonPath);
|
|
94
|
+
if (!packageJson.version) {
|
|
95
|
+
throw new Error(`Invalid package structure: package.json at ${packagePath} is missing required version field. ` + `All Launch77 packages must include a valid package.json with a version field.`);
|
|
96
|
+
}
|
|
97
|
+
return packageJson.version;
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
// Re-throw our own error messages
|
|
101
|
+
if (error instanceof Error && error.message.includes('Invalid package structure')) {
|
|
102
|
+
throw error;
|
|
103
|
+
}
|
|
104
|
+
// File not found or invalid JSON
|
|
105
|
+
throw new Error(`Invalid package structure: package.json not found or invalid at ${packagePath}. ` + `All Launch77 packages must include a valid package.json with a version field.`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Resolve package location from name
|
|
110
|
+
*
|
|
111
|
+
* Resolution order:
|
|
112
|
+
* 1. Check local workspace directory (configured by getFolderName())
|
|
113
|
+
* 2. Verify local package is valid (using verify())
|
|
114
|
+
* 3. Fall back to npm package name (with configured prefix)
|
|
115
|
+
* 4. Read version from package.json (if available)
|
|
116
|
+
*
|
|
117
|
+
* @param name - The package name to resolve
|
|
118
|
+
* @param workspaceRoot - The workspace root directory
|
|
119
|
+
* @returns PackageResolution with source, resolved location, and version
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* // Local package found
|
|
123
|
+
* await resolveLocation('my-package', '/workspace')
|
|
124
|
+
* // { source: 'local', resolvedName: 'my-package', localPath: '/workspace/plugins/my-package', version: '1.0.0' }
|
|
125
|
+
*
|
|
126
|
+
* // Not found locally, resolve to npm
|
|
127
|
+
* await resolveLocation('release', '/workspace')
|
|
128
|
+
* // { source: 'npm', resolvedName: 'release', npmPackage: '@launch77-shared/plugin-release' }
|
|
129
|
+
*
|
|
130
|
+
* // Scoped package always resolves to npm
|
|
131
|
+
* await resolveLocation('@ibm/analytics', '/workspace')
|
|
132
|
+
* // { source: 'npm', resolvedName: '@ibm/analytics', npmPackage: '@ibm/analytics' }
|
|
133
|
+
*/
|
|
134
|
+
async resolveLocation(name, workspaceRoot) {
|
|
135
|
+
const trimmedName = name.trim();
|
|
136
|
+
const parsed = parsePluginName(trimmedName);
|
|
137
|
+
// If scoped, always use npm (local packages are never scoped)
|
|
138
|
+
if (parsed.type === 'scoped') {
|
|
139
|
+
return {
|
|
140
|
+
source: 'npm',
|
|
141
|
+
resolvedName: trimmedName,
|
|
142
|
+
npmPackage: trimmedName,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
// Check local workspace directory
|
|
146
|
+
const localPath = path.join(workspaceRoot, this.getFolderName(), trimmedName);
|
|
147
|
+
const localExists = await fs.pathExists(localPath);
|
|
148
|
+
if (localExists) {
|
|
149
|
+
// Verify it's a valid package
|
|
150
|
+
const isValid = await this.verify(localPath);
|
|
151
|
+
if (isValid) {
|
|
152
|
+
const version = await this.readVersion(localPath);
|
|
153
|
+
return {
|
|
154
|
+
source: 'local',
|
|
155
|
+
resolvedName: trimmedName,
|
|
156
|
+
localPath,
|
|
157
|
+
version,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// Not found locally or invalid, resolve to npm package
|
|
162
|
+
const npmPackage = this.toNpmPackageName(trimmedName);
|
|
163
|
+
return {
|
|
164
|
+
source: 'npm',
|
|
165
|
+
resolvedName: trimmedName,
|
|
166
|
+
npmPackage,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=package-resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-resolver.js","sourceRoot":"","sources":["../../src/infrastructure/package-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,EAAE,MAAM,UAAU,CAAA;AAoBzB;;;;;;;;;;;GAWG;AACH,MAAM,OAAgB,eAAe;IAoBnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,CAAC,IAAY;QACxB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC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ACT,OAAO;iBACR,CAAA;YACH,CAAC;QACH,CAAC;QAED,uDAAuD;QACvD,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAA;QAErD,OAAO;YACL,MAAM,EAAE,KAAK;YACb,YAAY,EAAE,WAAW;YACzB,UAAU;SACX,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-resolver.test.d.ts","sourceRoot":"","sources":["../../src/infrastructure/package-resolver.test.ts"],"names":[],"mappings":""}
|