@runa-ai/runa-cli 0.9.0 → 0.10.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/{chunk-GKBE7EIE.js → chunk-OXQISY3J.js} +1 -1
- package/dist/{chunk-YRNQEJQW.js → chunk-QDOR3GTD.js} +1 -1
- package/dist/{ci-S5KSBECX.js → ci-FLTJ2UXB.js} +2 -2
- package/dist/{cli-TJZCAMB2.js → cli-THEA6T7N.js} +5 -5
- package/dist/{db-D2OLJDYW.js → db-IDKQ44VX.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{template-check-BDFMT6ZO.js → template-check-VNNQQXCX.js} +10 -0
- package/dist/{vuln-check-5NUTETPW.js → vuln-check-JRPMUHLF.js} +1 -1
- package/dist/{vuln-checker-UV342N66.js → vuln-checker-Q7LSHUHJ.js} +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ import { resolveDatabaseUrl, resolveDatabaseTarget } from './chunk-WGRVAGSR.js';
|
|
|
4
4
|
import { verifyPgSchemaDiffBinary, verifyDatabaseConnection, freeConnectionSlotsForPgSchemaDiff, executePgSchemaDiffPlan, detectDropTableStatements, analyzeDeclarativeDependencyContract, DB_APPLY_CHECK_MODE_CONTRACT_NOTE, formatDeclarativeDependencyViolation, summarizeDeclarativeDependencyWarnings, MAX_DETAILED_DECLARATIVE_WARNINGS, formatDeclarativeDependencyWarning, detectPgSchemaDiffVersion, STATEMENT_IDX_REGEX, hasUnparsedHazardHints, collectSqlFiles, splitSqlStatements, PG_SCHEMA_DIFF_APPLY_TIMEOUT_MS, HAZARD_REGEX, PUBLIC_SCHEMA, FUNCTION_DEFINITION_RE } from './chunk-ZWDWFMOX.js';
|
|
5
5
|
import { splitPlpgsqlStatementsWithOffsets, extractExecuteExpressions, extractStaticSqlFromExpression } from './chunk-Y5ANTCKE.js';
|
|
6
6
|
import { loadEnvFiles } from './chunk-IWVXI5O4.js';
|
|
7
|
-
import { CLI_VERSION } from './chunk-
|
|
7
|
+
import { CLI_VERSION } from './chunk-OXQISY3J.js';
|
|
8
8
|
import { generateTablesManifest } from './chunk-URWDB7YL.js';
|
|
9
9
|
import { parsePostgresUrl, buildPsqlEnv, buildPsqlArgs, stripSqlComments, psqlSyncQuery, blankDollarQuotedBodies, psqlSyncBatch, psqlSyncFile } from './chunk-A6A7JIRD.js';
|
|
10
10
|
import { init_local_supabase, buildLocalDatabaseUrl } from './chunk-QSEF4T3Y.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
import { normalizeDatabaseUrlForDdl, parseBoolish, enhanceConnectionError, isIdempotentRoleHazard, detectAppSchemas, formatSchemasForSql, getDbPlanArtifactPath, runDbApply } from './chunk-
|
|
3
|
+
import { normalizeDatabaseUrlForDdl, parseBoolish, enhanceConnectionError, isIdempotentRoleHazard, detectAppSchemas, formatSchemasForSql, getDbPlanArtifactPath, runDbApply } from './chunk-QDOR3GTD.js';
|
|
4
4
|
import './chunk-WGRVAGSR.js';
|
|
5
5
|
import './chunk-ZWDWFMOX.js';
|
|
6
6
|
import './chunk-UHDAYPHH.js';
|
|
7
7
|
import './chunk-Y5ANTCKE.js';
|
|
8
8
|
import './chunk-IWVXI5O4.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-OXQISY3J.js';
|
|
10
10
|
import './chunk-B7C7CLW2.js';
|
|
11
11
|
import './chunk-QDF7QXBL.js';
|
|
12
12
|
import { getSnapshotStateName, getSnapshotStatePaths, isSnapshotComplete } from './chunk-XVNDDHAF.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
3
|
import { enableNonInteractiveMode } from './chunk-6Y3LAUGL.js';
|
|
4
4
|
import { getRequestedCommandNameFromArgv } from './chunk-UWWSAPDR.js';
|
|
5
|
-
import { CLI_VERSION, HAS_ADMIN_COMMAND } from './chunk-
|
|
5
|
+
import { CLI_VERSION, HAS_ADMIN_COMMAND } from './chunk-OXQISY3J.js';
|
|
6
6
|
import { emitDefaultSuccessIfNeeded } from './chunk-WJXC4MVY.js';
|
|
7
7
|
import { parseOutputFormat, setOutputFormat, getOutputFormatFromEnv } from './chunk-HKUWEGUX.js';
|
|
8
8
|
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
@@ -462,11 +462,11 @@ async function registerFocusedStatusUtilityCommand(program, requested) {
|
|
|
462
462
|
return false;
|
|
463
463
|
}
|
|
464
464
|
async function registerCiCommand(program) {
|
|
465
|
-
const { ciCommand } = await import('./ci-
|
|
465
|
+
const { ciCommand } = await import('./ci-FLTJ2UXB.js');
|
|
466
466
|
program.addCommand(ciCommand);
|
|
467
467
|
}
|
|
468
468
|
async function registerDbCommand(program) {
|
|
469
|
-
const { dbCommand } = await import('./db-
|
|
469
|
+
const { dbCommand } = await import('./db-IDKQ44VX.js');
|
|
470
470
|
program.addCommand(dbCommand);
|
|
471
471
|
}
|
|
472
472
|
async function registerServicesCommand(program) {
|
|
@@ -498,11 +498,11 @@ async function registerWorkflowCommand(program) {
|
|
|
498
498
|
program.addCommand(workflowCommand);
|
|
499
499
|
}
|
|
500
500
|
async function registerVulnCheckCommand(program) {
|
|
501
|
-
const { vulnCheckCommand } = await import('./vuln-check-
|
|
501
|
+
const { vulnCheckCommand } = await import('./vuln-check-JRPMUHLF.js');
|
|
502
502
|
program.addCommand(vulnCheckCommand);
|
|
503
503
|
}
|
|
504
504
|
async function registerTemplateCheckCommand(program) {
|
|
505
|
-
const { templateCheckCommand } = await import('./template-check-
|
|
505
|
+
const { templateCheckCommand } = await import('./template-check-VNNQQXCX.js');
|
|
506
506
|
program.addCommand(templateCheckCommand);
|
|
507
507
|
}
|
|
508
508
|
async function registerSessionCommands(program) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
3
|
import { detectDatabaseStack, getStackPaths } from './chunk-MILCC3B6.js';
|
|
4
4
|
import { categorizeRisks, detectSchemaRisks } from './chunk-PAWNJA3N.js';
|
|
5
|
-
import { isExecaError, resolveDbPreviewEnvironment, buildDbPlanCommandLabel, runDbApply, buildDbApplyCliError, DbPlanOutputSchema, parseDbPreviewProfile, DEFAULT_DB_PREVIEW_PROFILE, getDbPreviewModeLabel, buildDbPreviewCommandLabel, isCompareOnlyPreviewProfile, DbApplyOutputSchema, applyCommand, getDbPreviewIdempotentSchemaCount, classifyDbSyncCommandFailure, getDbSyncFallbackSuggestions, detectAppSchemas, normalizeDatabaseUrlForDdl, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, reviewDeclarativeDependencyWarnings, logDeclarativeDependencyWarnings, buildDeclarativeDependencyWarningFailureLines, parsePlanOutput, validateDependencyOrder, getBoundaryPolicy, resolveProductionApplyStrictMode, findDeclarativeRiskAllowlistMatch, assertBoundaryPolicyUsable, assertBoundaryPolicyQualityGate, formatSchemasForSql, findDirectoryPlacementAllowlistMatch, formatAllowlistMetadata, assessPlanSize, formatPlanSizeSummary, extractFunctionOwnershipDefinition } from './chunk-
|
|
5
|
+
import { isExecaError, resolveDbPreviewEnvironment, buildDbPlanCommandLabel, runDbApply, buildDbApplyCliError, DbPlanOutputSchema, parseDbPreviewProfile, DEFAULT_DB_PREVIEW_PROFILE, getDbPreviewModeLabel, buildDbPreviewCommandLabel, isCompareOnlyPreviewProfile, DbApplyOutputSchema, applyCommand, getDbPreviewIdempotentSchemaCount, classifyDbSyncCommandFailure, getDbSyncFallbackSuggestions, detectAppSchemas, normalizeDatabaseUrlForDdl, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, reviewDeclarativeDependencyWarnings, logDeclarativeDependencyWarnings, buildDeclarativeDependencyWarningFailureLines, parsePlanOutput, validateDependencyOrder, getBoundaryPolicy, resolveProductionApplyStrictMode, findDeclarativeRiskAllowlistMatch, assertBoundaryPolicyUsable, assertBoundaryPolicyQualityGate, formatSchemasForSql, findDirectoryPlacementAllowlistMatch, formatAllowlistMetadata, assessPlanSize, formatPlanSizeSummary, extractFunctionOwnershipDefinition } from './chunk-QDOR3GTD.js';
|
|
6
6
|
import './chunk-ZZOXM6Q4.js';
|
|
7
7
|
import { createError } from './chunk-JQXOVCOP.js';
|
|
8
8
|
import { resolveDatabaseUrl, resolveDatabaseTarget, tryResolveDatabaseUrl } from './chunk-WGRVAGSR.js';
|
|
@@ -11,7 +11,7 @@ import { analyzeDeclarativeDependencyContract, formatDeclarativeDependencyViolat
|
|
|
11
11
|
import './chunk-UHDAYPHH.js';
|
|
12
12
|
import './chunk-Y5ANTCKE.js';
|
|
13
13
|
import { loadEnvFiles } from './chunk-IWVXI5O4.js';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-OXQISY3J.js';
|
|
15
15
|
import { diagnoseSupabaseStart } from './chunk-AAIE4F2U.js';
|
|
16
16
|
import { validateUserFilePath, filterSafePaths, resolveSafePath } from './chunk-B7C7CLW2.js';
|
|
17
17
|
import { runMachine } from './chunk-QDF7QXBL.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
3
|
import { getRequestedCommandNameFromArgv } from './chunk-UWWSAPDR.js';
|
|
4
|
-
import { CLI_VERSION } from './chunk-
|
|
4
|
+
import { CLI_VERSION } from './chunk-OXQISY3J.js';
|
|
5
5
|
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
6
6
|
import { realpathSync } from 'fs';
|
|
7
7
|
import { fileURLToPath } from 'url';
|
|
@@ -36,7 +36,7 @@ async function getProgram(options) {
|
|
|
36
36
|
};
|
|
37
37
|
const nextKey = getProgramCacheKey(resolvedOptions);
|
|
38
38
|
if (!programInstance || programCacheKey !== nextKey) {
|
|
39
|
-
const { createProgram } = await import('./cli-
|
|
39
|
+
const { createProgram } = await import('./cli-THEA6T7N.js');
|
|
40
40
|
programInstance = await createProgram(resolvedOptions);
|
|
41
41
|
programCacheKey = nextKey;
|
|
42
42
|
}
|
|
@@ -60,7 +60,7 @@ async function runCliFromProcessArgv() {
|
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
const { setupSignalHandlers } = await import('./signal-handler-DO3OANW5.js');
|
|
63
|
-
const { executeProgram } = await import('./cli-
|
|
63
|
+
const { executeProgram } = await import('./cli-THEA6T7N.js');
|
|
64
64
|
setupSignalHandlers();
|
|
65
65
|
const options = getProgramLoadOptions(argv);
|
|
66
66
|
const program = await getProgram(options);
|
|
@@ -124,6 +124,9 @@ var RUNA_ONLY_FILES = [
|
|
|
124
124
|
// SDK package publishing (npmjs)
|
|
125
125
|
".github/workflows/runa-templates.yml",
|
|
126
126
|
// Template validation (pj-repos don't have templates)
|
|
127
|
+
// === runa-repo Specific Config ===
|
|
128
|
+
"config/vitest/vitest.config.workflows.ts",
|
|
129
|
+
// Workflow test config (runa-repo only)
|
|
127
130
|
// === runa-repo Specific Scripts ===
|
|
128
131
|
"packages/database/scripts/db-sync-partition.ts",
|
|
129
132
|
// Partition defense (TODO: add to template)
|
|
@@ -223,6 +226,13 @@ var TEMPLATE_ONLY_FILES = [
|
|
|
223
226
|
// Server client
|
|
224
227
|
"apps/web/lib/supabase/env.ts",
|
|
225
228
|
// Environment resolution
|
|
229
|
+
"apps/web/app/(protected)/observability/actions.ts",
|
|
230
|
+
// Observability starter
|
|
231
|
+
"apps/web/app/(protected)/observability/page.tsx",
|
|
232
|
+
"apps/web/app/(protected)/observability/alerts/page.tsx",
|
|
233
|
+
"apps/web/app/(protected)/observability/issues/page.tsx",
|
|
234
|
+
"apps/web/app/(protected)/observability/issues/[id]/page.tsx",
|
|
235
|
+
"apps/web/app/(protected)/observability/monitors/page.tsx",
|
|
226
236
|
// === packages/api-client (pj-repo starter) ===
|
|
227
237
|
"packages/api-client/package.json",
|
|
228
238
|
"packages/api-client/tsconfig.json",
|
|
@@ -71,7 +71,7 @@ var vulnCheckCommand = new Command("vuln-check").description("Run comprehensive
|
|
|
71
71
|
const logger = createCLILogger("vuln-check");
|
|
72
72
|
const isJsonMode = getOutputFormatFromEnv() === "json" || options.format === "json";
|
|
73
73
|
try {
|
|
74
|
-
const { VulnChecker } = await import('./vuln-checker-
|
|
74
|
+
const { VulnChecker } = await import('./vuln-checker-Q7LSHUHJ.js');
|
|
75
75
|
const categoryMap = {
|
|
76
76
|
code: ["injection", "auth", "crypto"],
|
|
77
77
|
deps: ["dependency"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
import { CLI_VERSION } from './chunk-
|
|
3
|
+
import { CLI_VERSION } from './chunk-OXQISY3J.js';
|
|
4
4
|
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
5
5
|
import { glob } from 'glob';
|
|
6
6
|
import { exec } from 'child_process';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runa-ai/runa-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "AI-powered DevOps CLI",
|
|
6
6
|
"type": "module",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"typescript": "5.9.3",
|
|
57
57
|
"xstate": "5.28.0",
|
|
58
58
|
"zod": "4.3.6",
|
|
59
|
-
"@runa-ai/runa
|
|
60
|
-
"@runa-ai/runa": "0.
|
|
59
|
+
"@runa-ai/runa": "0.10.0",
|
|
60
|
+
"@runa-ai/runa-xstate-test-plugin": "0.10.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20.0.0"
|