kaven-cli 0.4.0 → 0.4.2-alpha.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/README.md +181 -207
- package/dist/EnvManager-NMS3NMIE.js +15 -0
- package/dist/MarketplaceClient-YCFH2VU4.js +1 -0
- package/dist/chunk-JHLQ46NG.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +243 -289
- package/dist/tier-table-DQMPQSI2.js +6 -0
- package/package.json +26 -10
- package/dist/commands/auth/login.js +0 -122
- package/dist/commands/auth/logout.js +0 -23
- package/dist/commands/auth/whoami.js +0 -36
- package/dist/commands/cache/index.js +0 -43
- package/dist/commands/config/features.js +0 -1026
- package/dist/commands/config/index.js +0 -95
- package/dist/commands/index.js +0 -2
- package/dist/commands/init/index.js +0 -197
- package/dist/commands/init-ci/index.js +0 -153
- package/dist/commands/license/index.js +0 -10
- package/dist/commands/license/status.js +0 -44
- package/dist/commands/license/tier-table.js +0 -46
- package/dist/commands/marketplace/browse.js +0 -186
- package/dist/commands/marketplace/install.js +0 -263
- package/dist/commands/marketplace/list.js +0 -122
- package/dist/commands/module/activate.js +0 -206
- package/dist/commands/module/add.js +0 -69
- package/dist/commands/module/doctor.js +0 -175
- package/dist/commands/module/publish.js +0 -258
- package/dist/commands/module/remove.js +0 -58
- package/dist/commands/telemetry/view.js +0 -27
- package/dist/commands/upgrade/check.js +0 -162
- package/dist/commands/upgrade/index.js +0 -185
- package/dist/core/AuthService.js +0 -222
- package/dist/core/CacheManager.js +0 -154
- package/dist/core/ConfigManager.js +0 -166
- package/dist/core/EnvManager.js +0 -196
- package/dist/core/ErrorRecovery.js +0 -192
- package/dist/core/LicenseService.js +0 -83
- package/dist/core/ManifestParser.js +0 -52
- package/dist/core/MarkerService.js +0 -62
- package/dist/core/ModuleDoctor.js +0 -451
- package/dist/core/ModuleInstaller.js +0 -169
- package/dist/core/ProjectInitializer.js +0 -166
- package/dist/core/RegistryResolver.js +0 -95
- package/dist/core/SchemaActivator.js +0 -270
- package/dist/core/ScriptRunner.js +0 -73
- package/dist/core/SignatureVerifier.js +0 -75
- package/dist/core/index.js +0 -2
- package/dist/infrastructure/Container.js +0 -37
- package/dist/infrastructure/MarketplaceClient.js +0 -399
- package/dist/infrastructure/TelemetryBuffer.js +0 -73
- package/dist/infrastructure/TransactionalFileSystem.js +0 -77
- package/dist/infrastructure/errors.js +0 -63
- package/dist/infrastructure/index.js +0 -2
- package/dist/types/auth.js +0 -2
- package/dist/types/manifest.js +0 -45
- package/dist/types/markers.js +0 -10
- package/dist/types/marketplace.js +0 -2
package/dist/types/manifest.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModuleManifestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const DependencySchema = zod_1.z.object({
|
|
6
|
-
npm: zod_1.z.array(zod_1.z.string()).default([]),
|
|
7
|
-
peerModules: zod_1.z.array(zod_1.z.string()).default([]),
|
|
8
|
-
kavenVersion: zod_1.z.string().default(">=0.1.0"),
|
|
9
|
-
});
|
|
10
|
-
const FileSetSchema = zod_1.z.object({
|
|
11
|
-
source: zod_1.z.string(),
|
|
12
|
-
dest: zod_1.z.string(),
|
|
13
|
-
});
|
|
14
|
-
const FilesSchema = zod_1.z.object({
|
|
15
|
-
backend: zod_1.z.array(FileSetSchema).default([]),
|
|
16
|
-
frontend: zod_1.z.array(FileSetSchema).default([]),
|
|
17
|
-
database: zod_1.z.array(FileSetSchema).default([]),
|
|
18
|
-
});
|
|
19
|
-
const InjectionSchema = zod_1.z.object({
|
|
20
|
-
file: zod_1.z.string(),
|
|
21
|
-
anchor: zod_1.z.string(),
|
|
22
|
-
code: zod_1.z.string(),
|
|
23
|
-
moduleName: zod_1.z.string().optional(),
|
|
24
|
-
});
|
|
25
|
-
const ScriptsSchema = zod_1.z.object({
|
|
26
|
-
postInstall: zod_1.z.string().nullable().default(null),
|
|
27
|
-
preRemove: zod_1.z.string().nullable().default(null),
|
|
28
|
-
});
|
|
29
|
-
const EnvVarSchema = zod_1.z.object({
|
|
30
|
-
key: zod_1.z.string(),
|
|
31
|
-
required: zod_1.z.boolean().default(false),
|
|
32
|
-
example: zod_1.z.string().optional(),
|
|
33
|
-
});
|
|
34
|
-
exports.ModuleManifestSchema = zod_1.z.object({
|
|
35
|
-
name: zod_1.z.string().min(1),
|
|
36
|
-
version: zod_1.z.string().regex(/^\d+\.\d+\.\d+$/),
|
|
37
|
-
description: zod_1.z.string().optional(),
|
|
38
|
-
author: zod_1.z.string().default("Kaven"),
|
|
39
|
-
license: zod_1.z.string().default("Proprietary"),
|
|
40
|
-
dependencies: DependencySchema,
|
|
41
|
-
files: FilesSchema,
|
|
42
|
-
injections: zod_1.z.array(InjectionSchema),
|
|
43
|
-
scripts: ScriptsSchema,
|
|
44
|
-
env: zod_1.z.array(EnvVarSchema).default([]),
|
|
45
|
-
});
|
package/dist/types/markers.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createMarker = createMarker;
|
|
4
|
-
function createMarker(moduleName) {
|
|
5
|
-
return {
|
|
6
|
-
moduleName,
|
|
7
|
-
beginMarker: `// [KAVEN_MODULE:${moduleName} BEGIN]`,
|
|
8
|
-
endMarker: `// [KAVEN_MODULE:${moduleName} END]`,
|
|
9
|
-
};
|
|
10
|
-
}
|