@ketrics/ketrics-cli 0.4.0 → 0.6.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/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +15 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/create.d.ts +1 -0
- package/dist/src/commands/create.d.ts.map +1 -1
- package/dist/src/commands/create.js +44 -13
- package/dist/src/commands/create.js.map +1 -1
- package/dist/src/commands/update.d.ts +13 -0
- package/dist/src/commands/update.d.ts.map +1 -0
- package/dist/src/commands/update.js +78 -0
- package/dist/src/commands/update.js.map +1 -0
- package/dist/src/services/local-template-service.d.ts +52 -0
- package/dist/src/services/local-template-service.d.ts.map +1 -0
- package/dist/src/services/local-template-service.js +216 -0
- package/dist/src/services/local-template-service.js.map +1 -0
- package/dist/src/services/remote-template-service.d.ts +41 -0
- package/dist/src/services/remote-template-service.d.ts.map +1 -0
- package/dist/src/services/remote-template-service.js +232 -0
- package/dist/src/services/remote-template-service.js.map +1 -0
- package/dist/src/services/template-cache-service.d.ts +44 -0
- package/dist/src/services/template-cache-service.d.ts.map +1 -0
- package/dist/src/services/template-cache-service.js +193 -0
- package/dist/src/services/template-cache-service.js.map +1 -0
- package/dist/src/services/template-service.d.ts +25 -31
- package/dist/src/services/template-service.d.ts.map +1 -1
- package/dist/src/services/template-service.js +136 -132
- package/dist/src/services/template-service.js.map +1 -1
- package/dist/src/types/index.d.ts +46 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +5 -1
- package/templates/HelloWorld/.claude/skills/ketrics-app/BACKEND_REFERENCE.md +693 -0
- package/templates/HelloWorld/.claude/skills/ketrics-app/CONFIG_AND_DEPLOY.md +278 -0
- package/templates/HelloWorld/.claude/skills/ketrics-app/FRONTEND_REFERENCE.md +325 -0
- package/templates/HelloWorld/.claude/skills/ketrics-app/SKILL.md +348 -0
- package/templates/HelloWorld/.env.example +20 -0
- package/templates/HelloWorld/.github/workflows/deploy.yml +51 -0
- package/templates/HelloWorld/backend/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Template Service
|
|
3
|
+
* Template Service (Orchestrator)
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Coordinates between remote and local template sources.
|
|
6
|
+
* Strategy: remote-first with cache, falling back to bundled local templates.
|
|
6
7
|
*/
|
|
7
8
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
9
|
if (k2 === undefined) k2 = k;
|
|
@@ -37,178 +38,181 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
38
|
return result;
|
|
38
39
|
};
|
|
39
40
|
})();
|
|
41
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
42
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
|
+
};
|
|
40
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.createDirectory = exports.directoryExists = void 0;
|
|
41
46
|
exports.getAvailableTemplates = getAvailableTemplates;
|
|
42
47
|
exports.getTemplate = getTemplate;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
48
|
+
exports.copyTemplateToDestination = copyTemplateToDestination;
|
|
49
|
+
exports.applyCustomizations = applyCustomizations;
|
|
45
50
|
exports.getTemplateFiles = getTemplateFiles;
|
|
46
|
-
exports.
|
|
47
|
-
exports.directoryExists = directoryExists;
|
|
48
|
-
exports.createDirectory = createDirectory;
|
|
51
|
+
exports.clearCache = clearCache;
|
|
49
52
|
const fs = __importStar(require("fs"));
|
|
50
53
|
const path = __importStar(require("path"));
|
|
54
|
+
const semver_1 = __importDefault(require("semver"));
|
|
55
|
+
const logger_1 = require("../utils/logger");
|
|
56
|
+
const version_1 = require("../version");
|
|
57
|
+
const localTemplateService = __importStar(require("./local-template-service"));
|
|
58
|
+
const remoteTemplateService = __importStar(require("./remote-template-service"));
|
|
59
|
+
const cacheService = __importStar(require("./template-cache-service"));
|
|
51
60
|
/**
|
|
52
|
-
* Get
|
|
61
|
+
* Get available templates, preferring remote with local fallback.
|
|
53
62
|
*/
|
|
54
|
-
function
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const srcPath = path.join(__dirname, '../../../templates');
|
|
59
|
-
if (fs.existsSync(distPath)) {
|
|
60
|
-
return distPath;
|
|
63
|
+
async function getAvailableTemplates(options) {
|
|
64
|
+
// If --local flag, skip remote entirely
|
|
65
|
+
if (options.local) {
|
|
66
|
+
return localTemplateService.getAvailableTemplates();
|
|
61
67
|
}
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
try {
|
|
69
|
+
const templates = await getRemoteTemplates(options.refresh);
|
|
70
|
+
return templates;
|
|
64
71
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const templates = [];
|
|
73
|
-
const entries = fs.readdirSync(templatesDir, { withFileTypes: true });
|
|
74
|
-
for (const entry of entries) {
|
|
75
|
-
if (!entry.isDirectory())
|
|
76
|
-
continue;
|
|
77
|
-
const templatePath = path.join(templatesDir, entry.name);
|
|
78
|
-
const configPath = path.join(templatePath, 'ketrics.config.json');
|
|
79
|
-
// Skip if no ketrics.config.json
|
|
80
|
-
if (!fs.existsSync(configPath))
|
|
81
|
-
continue;
|
|
82
|
-
try {
|
|
83
|
-
const configContent = fs.readFileSync(configPath, 'utf-8');
|
|
84
|
-
const config = JSON.parse(configContent);
|
|
85
|
-
templates.push({
|
|
72
|
+
catch (error) {
|
|
73
|
+
// Try stale cache (any age)
|
|
74
|
+
const staleManifest = cacheService.getCachedManifest();
|
|
75
|
+
if (staleManifest) {
|
|
76
|
+
logger_1.logger.warn('Could not fetch remote templates. Using cached templates.');
|
|
77
|
+
const filtered = filterCompatibleTemplates(staleManifest.templates);
|
|
78
|
+
return filtered.map((entry) => ({
|
|
86
79
|
name: entry.name,
|
|
87
|
-
path:
|
|
88
|
-
description:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
path: cacheService.getCachedTemplatePath(entry.name),
|
|
81
|
+
description: entry.description,
|
|
82
|
+
source: 'remote',
|
|
83
|
+
minCliVersion: entry.minCliVersion,
|
|
84
|
+
minSdkVersion: entry.minSdkVersion,
|
|
85
|
+
tags: entry.tags,
|
|
86
|
+
}));
|
|
94
87
|
}
|
|
88
|
+
// Fall back to bundled templates
|
|
89
|
+
logger_1.logger.warn('Could not fetch remote templates. Using bundled templates.');
|
|
90
|
+
return localTemplateService.getAvailableTemplates();
|
|
95
91
|
}
|
|
96
|
-
return templates;
|
|
97
92
|
}
|
|
98
93
|
/**
|
|
99
94
|
* Get a specific template by name
|
|
100
95
|
*/
|
|
101
|
-
function getTemplate(name) {
|
|
102
|
-
const templates = getAvailableTemplates();
|
|
96
|
+
async function getTemplate(name, options) {
|
|
97
|
+
const templates = await getAvailableTemplates(options);
|
|
103
98
|
return templates.find((t) => t.name === name);
|
|
104
99
|
}
|
|
105
100
|
/**
|
|
106
|
-
*
|
|
101
|
+
* Copy a template to the destination directory.
|
|
102
|
+
* For remote templates: downloads, extracts, and copies from tarball.
|
|
103
|
+
* For local templates: copies from bundled directory.
|
|
107
104
|
*/
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
async function copyTemplateToDestination(template, destDir) {
|
|
106
|
+
if (template.source === 'local') {
|
|
107
|
+
localTemplateService.copyTemplate(template, destDir);
|
|
108
|
+
// Try to read template.json from the copied files
|
|
109
|
+
return remoteTemplateService.readTemplateConfig(destDir);
|
|
113
110
|
}
|
|
114
|
-
//
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
// Remote template: download tarball, extract the specific template
|
|
112
|
+
const repoDir = await remoteTemplateService.downloadAndExtractTarball();
|
|
113
|
+
try {
|
|
114
|
+
// Find the manifest entry for this template
|
|
115
|
+
const manifestPath = path.join(repoDir, 'templates.json');
|
|
116
|
+
const manifestContent = fs.readFileSync(manifestPath, 'utf-8');
|
|
117
|
+
const manifest = JSON.parse(manifestContent);
|
|
118
|
+
const entry = manifest.templates.find((t) => t.name === template.name);
|
|
119
|
+
if (!entry) {
|
|
120
|
+
throw new Error(`Template "${template.name}" not found in downloaded repository`);
|
|
121
|
+
}
|
|
122
|
+
// Read template.json for ignore patterns and placeholders
|
|
123
|
+
const templateSrcDir = path.join(repoDir, entry.path);
|
|
124
|
+
const templateConfig = remoteTemplateService.readTemplateConfig(templateSrcDir);
|
|
125
|
+
const ignorePatterns = templateConfig?.ignore || [];
|
|
126
|
+
// Extract template to destination
|
|
127
|
+
remoteTemplateService.extractTemplate(repoDir, entry, destDir, ignorePatterns);
|
|
128
|
+
// Cache the template for offline use
|
|
129
|
+
cacheService.cacheTemplate(template.name, destDir);
|
|
130
|
+
return templateConfig;
|
|
117
131
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
132
|
+
finally {
|
|
133
|
+
// Clean up the temporary tarball extraction directory
|
|
134
|
+
remoteTemplateService.cleanupTmpDir(path.dirname(repoDir));
|
|
121
135
|
}
|
|
122
|
-
return {
|
|
123
|
-
valid: errors.length === 0,
|
|
124
|
-
errors,
|
|
125
|
-
};
|
|
126
136
|
}
|
|
127
137
|
/**
|
|
128
|
-
*
|
|
138
|
+
* Apply customizations to a copied template.
|
|
139
|
+
* Uses template.json placeholders if available, falls back to hardcoded updateAppName.
|
|
129
140
|
*/
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
function applyCustomizations(projectDir, appName, templateConfig) {
|
|
142
|
+
if (templateConfig && templateConfig.placeholders) {
|
|
143
|
+
remoteTemplateService.applyPlaceholders(projectDir, templateConfig, {
|
|
144
|
+
APP_NAME: appName,
|
|
145
|
+
});
|
|
134
146
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const destPath = path.join(dest, entry.name);
|
|
139
|
-
if (entry.isDirectory()) {
|
|
140
|
-
copyDirRecursive(srcPath, destPath);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
fs.copyFileSync(srcPath, destPath);
|
|
144
|
-
}
|
|
147
|
+
else {
|
|
148
|
+
// Fallback to the hardcoded approach for templates without template.json
|
|
149
|
+
localTemplateService.updateAppName(projectDir, appName);
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
function copyTemplate(template, destDir) {
|
|
151
|
-
copyDirRecursive(template.path, destDir);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Get files that will be copied from template
|
|
153
|
+
* Get the list of files in a template (for display purposes)
|
|
155
154
|
*/
|
|
156
155
|
function getTemplateFiles(template) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
files.push(relPath);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
156
|
+
if (template.source === 'local') {
|
|
157
|
+
return localTemplateService.getTemplateFiles(template);
|
|
158
|
+
}
|
|
159
|
+
// For remote templates, the path points to the cached or extracted dir
|
|
160
|
+
if (fs.existsSync(template.path)) {
|
|
161
|
+
const templateConfig = remoteTemplateService.readTemplateConfig(template.path);
|
|
162
|
+
const ignorePatterns = templateConfig?.ignore || [];
|
|
163
|
+
return remoteTemplateService.getTemplateFilesFromDir(template.path, ignorePatterns);
|
|
170
164
|
}
|
|
171
|
-
|
|
172
|
-
return files;
|
|
165
|
+
return [];
|
|
173
166
|
}
|
|
174
167
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* Updates the name field in:
|
|
178
|
-
* - ketrics.config.json
|
|
179
|
-
* - frontend/package.json
|
|
180
|
-
* - backend/package.json
|
|
168
|
+
* Clear the template cache
|
|
181
169
|
*/
|
|
182
|
-
function
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
{ path: path.join(projectDir, 'frontend', 'package.json'), field: 'name' },
|
|
186
|
-
{ path: path.join(projectDir, 'backend', 'package.json'), field: 'name' },
|
|
187
|
-
];
|
|
188
|
-
for (const file of filesToUpdate) {
|
|
189
|
-
if (!fs.existsSync(file.path))
|
|
190
|
-
continue;
|
|
191
|
-
try {
|
|
192
|
-
const content = fs.readFileSync(file.path, 'utf-8');
|
|
193
|
-
const json = JSON.parse(content);
|
|
194
|
-
json[file.field] = appName;
|
|
195
|
-
fs.writeFileSync(file.path, JSON.stringify(json, null, 2) + '\n', 'utf-8');
|
|
196
|
-
}
|
|
197
|
-
catch {
|
|
198
|
-
// Skip files that can't be parsed
|
|
199
|
-
}
|
|
200
|
-
}
|
|
170
|
+
function clearCache() {
|
|
171
|
+
cacheService.clearCache();
|
|
172
|
+
logger_1.logger.success('Template cache cleared.');
|
|
201
173
|
}
|
|
202
174
|
/**
|
|
203
|
-
*
|
|
175
|
+
* Re-export utilities needed by create command
|
|
204
176
|
*/
|
|
205
|
-
|
|
206
|
-
|
|
177
|
+
var local_template_service_1 = require("./local-template-service");
|
|
178
|
+
Object.defineProperty(exports, "directoryExists", { enumerable: true, get: function () { return local_template_service_1.directoryExists; } });
|
|
179
|
+
Object.defineProperty(exports, "createDirectory", { enumerable: true, get: function () { return local_template_service_1.createDirectory; } });
|
|
180
|
+
// ---- Internal helpers ----
|
|
181
|
+
/**
|
|
182
|
+
* Fetch remote templates, using cache when appropriate.
|
|
183
|
+
*/
|
|
184
|
+
async function getRemoteTemplates(forceRefresh) {
|
|
185
|
+
let manifest;
|
|
186
|
+
if (!forceRefresh && cacheService.isCacheFresh()) {
|
|
187
|
+
manifest = cacheService.getCachedManifest();
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
manifest = await remoteTemplateService.fetchManifest();
|
|
191
|
+
cacheService.saveCachedManifest(manifest);
|
|
192
|
+
}
|
|
193
|
+
const compatibleEntries = filterCompatibleTemplates(manifest.templates);
|
|
194
|
+
return compatibleEntries.map((entry) => ({
|
|
195
|
+
name: entry.name,
|
|
196
|
+
path: cacheService.getCachedTemplatePath(entry.name),
|
|
197
|
+
description: entry.description,
|
|
198
|
+
source: 'remote',
|
|
199
|
+
minCliVersion: entry.minCliVersion,
|
|
200
|
+
minSdkVersion: entry.minSdkVersion,
|
|
201
|
+
tags: entry.tags,
|
|
202
|
+
}));
|
|
207
203
|
}
|
|
208
204
|
/**
|
|
209
|
-
*
|
|
205
|
+
* Filter out templates that require a newer CLI version.
|
|
210
206
|
*/
|
|
211
|
-
function
|
|
212
|
-
|
|
207
|
+
function filterCompatibleTemplates(entries) {
|
|
208
|
+
const compatible = [];
|
|
209
|
+
for (const entry of entries) {
|
|
210
|
+
if (entry.minCliVersion && !semver_1.default.gte(version_1.VERSION, entry.minCliVersion)) {
|
|
211
|
+
logger_1.logger.warn(`Template '${entry.name}' requires CLI v${entry.minCliVersion}+ (you have v${version_1.VERSION}). Skipping.`);
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
compatible.push(entry);
|
|
215
|
+
}
|
|
216
|
+
return compatible;
|
|
213
217
|
}
|
|
214
218
|
//# sourceMappingURL=template-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-service.js","sourceRoot":"","sources":["../../../src/services/template-service.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"template-service.js","sourceRoot":"","sources":["../../../src/services/template-service.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBH,sDAiCC;AAKD,kCAMC;AAOD,8DAwCC;AAMD,kDAaC;AAKD,4CAaC;AAKD,gCAGC;AA3JD,u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AAI,OAAO,EAAE,CAAC;QAC5B,IAAI,KAAK,CAAC,aAAa,IAAI,CAAC,gBAAM,CAAC,GAAG,CAAC,iBAAO,EAAE,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;YACrE,eAAM,CAAC,IAAI,CACT,aAAa,KAAK,CAAC,IAAI,mBAAmB,KAAK,CAAC,aAAa,gBAAgB,iBAAO,cAAc,CACnG,CAAC;YACF,SAAS;QACX,CAAC;QACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -122,6 +122,9 @@ export interface DeployOptions {
|
|
|
122
122
|
*/
|
|
123
123
|
export interface CreateOptions {
|
|
124
124
|
template?: string;
|
|
125
|
+
refresh?: boolean;
|
|
126
|
+
local?: boolean;
|
|
127
|
+
clearCache?: boolean;
|
|
125
128
|
}
|
|
126
129
|
/**
|
|
127
130
|
* Template information
|
|
@@ -130,6 +133,49 @@ export interface TemplateInfo {
|
|
|
130
133
|
name: string;
|
|
131
134
|
path: string;
|
|
132
135
|
description: string;
|
|
136
|
+
source: 'remote' | 'local';
|
|
137
|
+
minCliVersion?: string;
|
|
138
|
+
minSdkVersion?: string;
|
|
139
|
+
tags?: string[];
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Remote template manifest (templates.json)
|
|
143
|
+
*/
|
|
144
|
+
export interface TemplateManifest {
|
|
145
|
+
version: number;
|
|
146
|
+
templates: TemplateManifestEntry[];
|
|
147
|
+
}
|
|
148
|
+
export interface TemplateManifestEntry {
|
|
149
|
+
name: string;
|
|
150
|
+
description: string;
|
|
151
|
+
path: string;
|
|
152
|
+
minCliVersion: string;
|
|
153
|
+
minSdkVersion: string;
|
|
154
|
+
tags: string[];
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Template customization config (template.json inside each template)
|
|
158
|
+
*/
|
|
159
|
+
export interface TemplateConfig {
|
|
160
|
+
displayName: string;
|
|
161
|
+
description: string;
|
|
162
|
+
author: string;
|
|
163
|
+
sdkVersion: string;
|
|
164
|
+
placeholders: Record<string, TemplatePlaceholder>;
|
|
165
|
+
ignore: string[];
|
|
166
|
+
}
|
|
167
|
+
export interface TemplatePlaceholder {
|
|
168
|
+
description: string;
|
|
169
|
+
files: string[];
|
|
170
|
+
jsonField?: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Cached manifest with timestamp
|
|
174
|
+
*/
|
|
175
|
+
export interface CachedManifest {
|
|
176
|
+
manifest: TemplateManifest;
|
|
177
|
+
fetchedAt: number;
|
|
178
|
+
cliVersion: string;
|
|
133
179
|
}
|
|
134
180
|
/**
|
|
135
181
|
* Zod schema for run file validation (*.info.json)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,aAAa,CAAC;IACvB,GAAG,EAAE,SAAS,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EA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,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACrC,CAAC,CAAC;AAIH;;GAEG;AACU,QAAA,kBAAkB,GAAG,uBAAe,CAAC,MAAM,CAAC;IACvD,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,gDAAgD,CAAC;IACvF,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,iDAAiD,CAAC;CACvF,CAAC,CAAC"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ketrics/ketrics-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "CLI tool for deploying applications to Ketrics platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -30,11 +30,15 @@
|
|
|
30
30
|
"dotenv": "^16.3.1",
|
|
31
31
|
"glob": "^10.3.0",
|
|
32
32
|
"ora": "^5.4.1",
|
|
33
|
+
"semver": "^7.7.4",
|
|
34
|
+
"tar": "^7.5.9",
|
|
33
35
|
"zod": "^3.22.4"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"@types/archiver": "^6.0.2",
|
|
37
39
|
"@types/node": "^20.10.0",
|
|
40
|
+
"@types/semver": "^7.7.1",
|
|
41
|
+
"@types/tar": "^6.1.13",
|
|
38
42
|
"ts-node": "^1.7.1",
|
|
39
43
|
"typescript": "^5.3.3"
|
|
40
44
|
},
|