repoburg 1.2.10 → 1.2.12
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/CODEMAP.md +7 -6
- package/backend/dist/src/app.controller.d.ts +0 -1
- package/backend/dist/src/app.module.js +3 -0
- package/backend/dist/src/app.module.js.map +1 -1
- package/backend/dist/src/app.service.d.ts +0 -1
- package/backend/dist/src/app.service.js +0 -9
- package/backend/dist/src/app.service.js.map +1 -1
- package/backend/dist/src/context-snippets/context-snippets.module.js +2 -0
- package/backend/dist/src/context-snippets/context-snippets.module.js.map +1 -1
- package/backend/dist/src/context-snippets/context-snippets.service.d.ts +3 -1
- package/backend/dist/src/context-snippets/context-snippets.service.js +14 -3
- package/backend/dist/src/context-snippets/context-snippets.service.js.map +1 -1
- package/backend/dist/src/context-templates/context-templates.module.js +2 -0
- package/backend/dist/src/context-templates/context-templates.module.js.map +1 -1
- package/backend/dist/src/context-templates/context-templates.service.d.ts +3 -1
- package/backend/dist/src/context-templates/context-templates.service.js +11 -2
- package/backend/dist/src/context-templates/context-templates.service.js.map +1 -1
- package/backend/dist/src/core-entities/custom-variable.entity.d.ts +6 -0
- package/backend/dist/src/core-entities/custom-variable.entity.js +33 -0
- package/backend/dist/src/core-entities/custom-variable.entity.js.map +1 -0
- package/backend/dist/src/core-entities/index.d.ts +1 -0
- package/backend/dist/src/core-entities/index.js +1 -0
- package/backend/dist/src/core-entities/index.js.map +1 -1
- package/backend/dist/src/custom-variables/custom-variables.controller.d.ts +12 -0
- package/backend/dist/src/custom-variables/custom-variables.controller.js +80 -0
- package/backend/dist/src/custom-variables/custom-variables.controller.js.map +1 -0
- package/backend/dist/src/custom-variables/custom-variables.module.d.ts +2 -0
- package/backend/dist/src/custom-variables/custom-variables.module.js +26 -0
- package/backend/dist/src/custom-variables/custom-variables.module.js.map +1 -0
- package/backend/dist/src/custom-variables/custom-variables.service.d.ts +13 -0
- package/backend/dist/src/custom-variables/custom-variables.service.js +60 -0
- package/backend/dist/src/custom-variables/custom-variables.service.js.map +1 -0
- package/backend/dist/src/custom-variables/dto/custom-variable.dto.d.ts +10 -0
- package/backend/dist/src/custom-variables/dto/custom-variable.dto.js +52 -0
- package/backend/dist/src/custom-variables/dto/custom-variable.dto.js.map +1 -0
- package/backend/dist/src/seeding/custom-variable-seeding.service.d.ts +7 -0
- package/backend/dist/src/seeding/custom-variable-seeding.service.js +64 -0
- package/backend/dist/src/seeding/custom-variable-seeding.service.js.map +1 -0
- package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.d.ts +1 -1
- package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js +7 -1
- package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js.map +1 -1
- package/backend/dist/src/seeding/data/custom-variables/default-plan-mode.d.ts +3 -0
- package/backend/dist/src/seeding/data/custom-variables/default-plan-mode.js +7 -0
- package/backend/dist/src/seeding/data/custom-variables/default-plan-mode.js.map +1 -0
- package/backend/dist/src/seeding/seeding.module.js +4 -0
- package/backend/dist/src/seeding/seeding.module.js.map +1 -1
- package/backend/dist/src/seeding/seeding.service.d.ts +3 -1
- package/backend/dist/src/seeding/seeding.service.js +6 -2
- package/backend/dist/src/seeding/seeding.service.js.map +1 -1
- package/backend/dist/src/session-inputs/session-input-context.service.d.ts +3 -1
- package/backend/dist/src/session-inputs/session-input-context.service.js +11 -2
- package/backend/dist/src/session-inputs/session-input-context.service.js.map +1 -1
- package/backend/dist/src/session-inputs/session-inputs.module.js +2 -0
- package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/daemon/dist/index.js +0 -2
- package/package.json +1 -1
- package/platform-cli.js +2 -65
package/daemon/dist/index.js
CHANGED
|
@@ -12,7 +12,6 @@ const serviceManager_1 = require("./serviceManager");
|
|
|
12
12
|
const services_1 = __importDefault(require("./api/services"));
|
|
13
13
|
const auth_1 = __importDefault(require("./api/auth"));
|
|
14
14
|
const registry_1 = __importDefault(require("./api/registry"));
|
|
15
|
-
const system_1 = __importDefault(require("./api/system"));
|
|
16
15
|
const PORT = 9998;
|
|
17
16
|
async function main() {
|
|
18
17
|
await serviceManager_1.serviceManager.connect();
|
|
@@ -29,7 +28,6 @@ async function main() {
|
|
|
29
28
|
app.use('/services', services_1.default);
|
|
30
29
|
app.use('/auth', (0, auth_1.default)(wss));
|
|
31
30
|
app.use('/registry', registry_1.default);
|
|
32
|
-
app.use('/system', system_1.default);
|
|
33
31
|
app.get('/health', (req, res) => {
|
|
34
32
|
res.status(200).json({ status: 'ok' });
|
|
35
33
|
});
|
package/package.json
CHANGED
package/platform-cli.js
CHANGED
|
@@ -35,8 +35,7 @@ const handleApiError = async (error) => {
|
|
|
35
35
|
|
|
36
36
|
program
|
|
37
37
|
.name('repoburg')
|
|
38
|
-
.description('CLI to manage the Repoburg Platform Daemon and services.')
|
|
39
|
-
.version(packageJson.version);
|
|
38
|
+
.description('CLI to manage the Repoburg Platform Daemon and services.');
|
|
40
39
|
|
|
41
40
|
program
|
|
42
41
|
.command('list')
|
|
@@ -374,66 +373,4 @@ program
|
|
|
374
373
|
}
|
|
375
374
|
});
|
|
376
375
|
|
|
377
|
-
program
|
|
378
|
-
.command('update')
|
|
379
|
-
.description('Update the Repoburg platform to the latest version.')
|
|
380
|
-
.action(async () => {
|
|
381
|
-
const { default: chalk } = await import('chalk');
|
|
382
|
-
const { default: ora } = await import('ora');
|
|
383
|
-
|
|
384
|
-
const runCommand = (command, args) => {
|
|
385
|
-
return new Promise((resolve, reject) => {
|
|
386
|
-
const spinner = ora(`Running \`${command} ${args.join(' ')}\`...`).start();
|
|
387
|
-
const child = spawn(command, args, { stdio: 'pipe', shell: true });
|
|
388
|
-
let output = '';
|
|
389
|
-
|
|
390
|
-
child.stdout.on('data', (data) => {
|
|
391
|
-
output += data.toString();
|
|
392
|
-
});
|
|
393
|
-
child.stderr.on('data', (data) => {
|
|
394
|
-
output += data.toString();
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
child.on('close', (code) => {
|
|
398
|
-
if (code === 0) {
|
|
399
|
-
spinner.succeed(`Command \`${command} ${args.join(' ')}\` finished.`);
|
|
400
|
-
resolve();
|
|
401
|
-
} else {
|
|
402
|
-
spinner.fail(`Command \`${command} ${args.join(' ')}\` failed with code ${code}.`);
|
|
403
|
-
console.error(chalk.gray(output));
|
|
404
|
-
reject(new Error(`Command failed`));
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
child.on('error', (err) => {
|
|
408
|
-
spinner.fail(`Failed to execute command.`);
|
|
409
|
-
reject(err);
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
try {
|
|
415
|
-
console.log(chalk.cyan('Stopping any running services before update...'));
|
|
416
|
-
try {
|
|
417
|
-
// We don't care about the result, just that we tried to stop them.
|
|
418
|
-
await axios.post(`${DAEMON_BASE_URL}/services/remove-all`);
|
|
419
|
-
console.log(chalk.cyan('Services stopped.'));
|
|
420
|
-
} catch (error) {
|
|
421
|
-
if (error.request && !error.response) { // Daemon not running
|
|
422
|
-
console.log(chalk.yellow('Daemon not reachable, skipping service stop.'));
|
|
423
|
-
} else {
|
|
424
|
-
console.warn(chalk.yellow('Could not stop services, continuing with update...'));
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
await runCommand('npm', ['i', '-g', 'repoburg@latest']);
|
|
429
|
-
|
|
430
|
-
console.log(chalk.green.bold('\n✓ Repoburg update complete!'));
|
|
431
|
-
console.log(chalk.cyan('Please restart the Repoburg Daemon via the desktop application to apply the changes.'));
|
|
432
|
-
|
|
433
|
-
} catch (error) {
|
|
434
|
-
console.error(chalk.red('\nUpdate process failed:'), error.message);
|
|
435
|
-
process.exit(1);
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
|
|
439
|
-
program.parse(process.argv);
|
|
376
|
+
program.parse(process.argv);
|