Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ignite",
"version": "0.7.1",
"version": "0.7.2",
"private": true,
"description": "Secure JS/TS code execution in Docker with sandboxing for AI agents, untrusted code, and microservices",
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ignite/cli",
"version": "0.7.1",
"version": "0.7.2",
"type": "module",
"bin": {
"ignite": "./dist/index.js"
Expand Down
8 changes: 6 additions & 2 deletions packages/cli/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ export async function runCommand(servicePath: string, options: RunOptions): Prom

if (options.auditOutput && audit) {
const outputPath = resolve(process.cwd(), options.auditOutput);
await writeFile(outputPath, JSON.stringify(audit, null, 2));
logger.success(`Audit saved to ${outputPath}`);
try {
await writeFile(outputPath, JSON.stringify(audit, null, 2));
logger.success(`Audit saved to ${outputPath}`);
} catch (err) {
logger.error(`Failed to write audit to ${outputPath}: ${(err as Error).message}`);
}
}

if (options.json) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const program = new Command();
program
.name('ignite')
.description('Secure sandbox for AI-generated code, untrusted scripts, and JS/TS execution')
.version('0.7.1');
.version('0.7.2');

program
.command('init <name>')
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ignite/core",
"version": "0.7.1",
"version": "0.7.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/core/src/service/load-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ function validateServiceConfig(config: unknown): ServiceValidation {
infoCount: 'positive',
});

const dependencyConfig = pf['dependencies'] as Record<string, unknown> | undefined;
const warnCount = dependencyConfig?.['warnCount'];
const infoCount = dependencyConfig?.['infoCount'];
if (typeof warnCount === 'number' && typeof infoCount === 'number') {
if (infoCount >= warnCount) {
errors.push('preflight.dependencies.infoCount must be less than preflight.dependencies.warnCount');
}
}

validatePreflightSection(pf['image'], 'preflight.image', errors, {
warnMb: 'positive',
failMb: 'positive',
Expand Down
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ignite/http",
"version": "0.7.1",
"version": "0.7.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ignite/shared",
"version": "0.7.1",
"version": "0.7.2",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down