@runa-ai/runa-cli 0.10.4 → 0.10.5
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-WIT46HVC.js → chunk-FZONYKNR.js} +1 -1
- package/dist/{chunk-AYYHYZU7.js → chunk-TXXGDJYB.js} +1 -1
- package/dist/{chunk-OUMW5LKJ.js → chunk-WHVJ4JMQ.js} +1 -1
- package/dist/{ci-Q4PLRFPB.js → ci-WOP7K7MS.js} +3 -3
- package/dist/{cli-LS2THG3F.js → cli-4HI3D2II.js} +4 -4
- package/dist/{db-MB3LQIGI.js → db-DO6L72RR.js} +45 -26
- package/dist/{helpers-PDT3WQNF.js → helpers-RHAZLOLQ.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{vuln-check-JSPRI5ZY.js → vuln-check-OE4KSASO.js} +1 -1
- package/dist/{vuln-checker-H3VJY5WX.js → vuln-checker-LMHRSMYY.js} +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
import { acquireAdvisoryLock, releaseAdvisoryLock, checkPasswordSecurity, setRolePasswords, handleFreshDbCase, detectAppSchemas, tryReuseDbPlanArtifact, cleanPartitionAclsForPgSchemaDiff, parsePlanOutput, bootstrapTempDbFromSource, isNoChangePlanOutput, handleHazardsWithContext, getIdempotentProtectedTables, getIdempotentProtectedObjects, validateDependencyOrder, getTableRowEstimates, verifyDataIntegrity, parseExpectedPartitions, queryActualPartitions, detectPartitionDrift, formatPartitionWarnings, detectPlannerSchemas, buildTargetFingerprint, normalizeDatabaseUrlForDdl, DbApplyOutputSchema, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, prefilterPartitionStubs, needsShadowDb, cleanupOrphanShadowDatabases, createShadowDbWithExtensions, createPlanAnalysisSession, analyzePlanStatement, checkDataCompatibility, displayDataCompatibilityResults, filterCheckModePlanStatements, buildCheckModePlanSummary, displayCheckModeResults, backupIdempotentTables, buildAllowedHazards, executePlanSqlWithRetry, persistDbPlanArtifact, stripLeadingSetStatements, calculateBackoffDelay, sleep, getTransactionStrategy, wrapInTransaction, isLockTimeoutError, maskDbCredentials, normalizeFunctionDefinitionAst, DbPreviewProfileSchema } from './chunk-
|
|
3
|
+
import { acquireAdvisoryLock, releaseAdvisoryLock, checkPasswordSecurity, setRolePasswords, handleFreshDbCase, detectAppSchemas, tryReuseDbPlanArtifact, cleanPartitionAclsForPgSchemaDiff, parsePlanOutput, bootstrapTempDbFromSource, isNoChangePlanOutput, handleHazardsWithContext, getIdempotentProtectedTables, getIdempotentProtectedObjects, validateDependencyOrder, getTableRowEstimates, verifyDataIntegrity, parseExpectedPartitions, queryActualPartitions, detectPartitionDrift, formatPartitionWarnings, detectPlannerSchemas, buildTargetFingerprint, normalizeDatabaseUrlForDdl, DbApplyOutputSchema, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, prefilterPartitionStubs, needsShadowDb, cleanupOrphanShadowDatabases, createShadowDbWithExtensions, createPlanAnalysisSession, analyzePlanStatement, checkDataCompatibility, displayDataCompatibilityResults, filterCheckModePlanStatements, buildCheckModePlanSummary, displayCheckModeResults, backupIdempotentTables, buildAllowedHazards, executePlanSqlWithRetry, persistDbPlanArtifact, stripLeadingSetStatements, calculateBackoffDelay, sleep, getTransactionStrategy, wrapInTransaction, isLockTimeoutError, maskDbCredentials, normalizeFunctionDefinitionAst, DbPreviewProfileSchema } from './chunk-WHVJ4JMQ.js';
|
|
4
4
|
import { resolveDatabaseUrl, resolveDatabaseTarget } from './chunk-ZDETCPCE.js';
|
|
5
5
|
import { verifyPgSchemaDiffBinary, verifyDatabaseConnection, freeConnectionSlotsForPgSchemaDiff, executePgSchemaDiffPlan, detectDropTableStatements, analyzeDeclarativeDependencyContract, DB_APPLY_CHECK_MODE_CONTRACT_NOTE, formatDeclarativeDependencyViolation, summarizeDeclarativeDependencyWarnings, MAX_DETAILED_DECLARATIVE_WARNINGS, formatDeclarativeDependencyWarning } from './chunk-HWR5NUUZ.js';
|
|
6
6
|
import { generateTablesManifest } from './chunk-O3M7A73M.js';
|
|
@@ -4,7 +4,7 @@ import { splitPlpgsqlStatementsWithOffsets, extractExecuteExpressions, extractSt
|
|
|
4
4
|
import { resolveDatabaseUrl } from './chunk-ZDETCPCE.js';
|
|
5
5
|
import { PUBLIC_SCHEMA, splitSqlStatements, executePgSchemaDiffPlan, STATEMENT_IDX_REGEX, hasUnparsedHazardHints, FUNCTION_DEFINITION_RE, collectSqlFiles, detectPgSchemaDiffVersion, HAZARD_REGEX, PG_SCHEMA_DIFF_APPLY_TIMEOUT_MS } from './chunk-HWR5NUUZ.js';
|
|
6
6
|
import { parsePostgresUrl, buildPsqlEnv, buildPsqlArgs, blankDollarQuotedBodies, stripSqlComments, psqlSyncQuery, psqlSyncBatch, psqlSyncFile } from './chunk-A6A7JIRD.js';
|
|
7
|
-
import { CLI_VERSION } from './chunk-
|
|
7
|
+
import { CLI_VERSION } from './chunk-FZONYKNR.js';
|
|
8
8
|
import { init_esm_shims } from './chunk-VRXHCR5K.js';
|
|
9
9
|
import { spawn, spawnSync } from 'child_process';
|
|
10
10
|
import { createCLILogger, CommandOutcomeSchema, normalizeDatabaseUrlForDdl, wrapPlanSqlForExecution } from '@runa-ai/runa';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
import { runDbApply } from './chunk-
|
|
4
|
-
import { normalizeDatabaseUrlForDdl, parseBoolish, enhanceConnectionError, isIdempotentRoleHazard, detectAppSchemas, formatSchemasForSql, getDbPlanArtifactPath } from './chunk-
|
|
3
|
+
import { runDbApply } from './chunk-TXXGDJYB.js';
|
|
4
|
+
import { normalizeDatabaseUrlForDdl, parseBoolish, enhanceConnectionError, isIdempotentRoleHazard, detectAppSchemas, formatSchemasForSql, getDbPlanArtifactPath } from './chunk-WHVJ4JMQ.js';
|
|
5
5
|
import './chunk-EZ46JIEO.js';
|
|
6
6
|
import './chunk-ZDETCPCE.js';
|
|
7
7
|
import './chunk-HWR5NUUZ.js';
|
|
@@ -10,7 +10,7 @@ import { createInitialSummary, resolveMode, appendGithubStepSummary, buildCiProd
|
|
|
10
10
|
import './chunk-O3M7A73M.js';
|
|
11
11
|
import { parsePostgresUrl, buildPsqlArgs, buildPsqlEnv, psqlSyncQuery } from './chunk-A6A7JIRD.js';
|
|
12
12
|
import './chunk-IWVXI5O4.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-FZONYKNR.js';
|
|
14
14
|
import './chunk-B7C7CLW2.js';
|
|
15
15
|
import './chunk-QDF7QXBL.js';
|
|
16
16
|
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-FZONYKNR.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-WOP7K7MS.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-DO6L72RR.js');
|
|
470
470
|
program.addCommand(dbCommand);
|
|
471
471
|
}
|
|
472
472
|
async function registerServicesCommand(program) {
|
|
@@ -498,7 +498,7 @@ 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-OE4KSASO.js');
|
|
502
502
|
program.addCommand(vulnCheckCommand);
|
|
503
503
|
}
|
|
504
504
|
async function registerTemplateCheckCommand(program) {
|
|
@@ -3,8 +3,8 @@ import { createRequire } from 'module';
|
|
|
3
3
|
import { createError } from './chunk-NIS77243.js';
|
|
4
4
|
import { detectDatabaseStack, getStackPaths } from './chunk-MILCC3B6.js';
|
|
5
5
|
import { categorizeRisks, detectSchemaRisks } from './chunk-XVGMGFKF.js';
|
|
6
|
-
import { isExecaError, resolveDbPreviewEnvironment, buildDbPlanCommandLabel, runDbApply, buildDbApplyCliError, parseDbPreviewProfile, DEFAULT_DB_PREVIEW_PROFILE, getDbPreviewModeLabel, buildDbPreviewCommandLabel, isCompareOnlyPreviewProfile, applyCommand, getDbPreviewIdempotentSchemaCount, classifyDbSyncCommandFailure, getDbSyncFallbackSuggestions, reviewDeclarativeDependencyWarnings, logDeclarativeDependencyWarnings, buildDeclarativeDependencyWarningFailureLines, getBoundaryPolicy, resolveProductionApplyStrictMode, findDeclarativeRiskAllowlistMatch, assertBoundaryPolicyUsable, assertBoundaryPolicyQualityGate, findDirectoryPlacementAllowlistMatch, formatAllowlistMetadata, assessPlanSize, formatPlanSizeSummary } from './chunk-
|
|
7
|
-
import { DbPlanOutputSchema, DbApplyOutputSchema, detectAppSchemas, normalizeDatabaseUrlForDdl, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, parsePlanOutput, validateDependencyOrder, formatSchemasForSql, FUNCTION_ACL_RECONCILIATION_RELATIVE_PATH, functionAclManifestHasEntries, validateFunctionAclMigration, isManagedFunctionAclFileContentStale, renderFunctionAclFile, buildFunctionAclManifestFromSqlFiles, buildFunctionAclIdempotentTouchMetadata, stableSorted, normalizePolicyCommand, normalizeFileList, extractFunctionOwnershipDefinition, SECURITY_DEFINER_RE, MANAGED_BOUNDARY_SCHEMAS, currentIsoTimestamp, makeGraphVersion, GENERATOR_VERSION, MAX_SCHEMA_GUIDANCE_TARGETS_PER_FILE, QUALIFIED_SQL_OBJECT_RE, SEARCH_PATH_LOCK_RE, TRIGGER_GUIDANCE_SUPPRESSED_FUNCTIONS, SQL_EXTENSION_IDENTIFIER_PATTERN, SQL_IDENTIFIER_PATTERN } from './chunk-
|
|
6
|
+
import { isExecaError, resolveDbPreviewEnvironment, buildDbPlanCommandLabel, runDbApply, buildDbApplyCliError, parseDbPreviewProfile, DEFAULT_DB_PREVIEW_PROFILE, getDbPreviewModeLabel, buildDbPreviewCommandLabel, isCompareOnlyPreviewProfile, applyCommand, getDbPreviewIdempotentSchemaCount, classifyDbSyncCommandFailure, getDbSyncFallbackSuggestions, reviewDeclarativeDependencyWarnings, logDeclarativeDependencyWarnings, buildDeclarativeDependencyWarningFailureLines, getBoundaryPolicy, resolveProductionApplyStrictMode, findDeclarativeRiskAllowlistMatch, assertBoundaryPolicyUsable, assertBoundaryPolicyQualityGate, findDirectoryPlacementAllowlistMatch, formatAllowlistMetadata, assessPlanSize, formatPlanSizeSummary } from './chunk-TXXGDJYB.js';
|
|
7
|
+
import { DbPlanOutputSchema, DbApplyOutputSchema, detectAppSchemas, normalizeDatabaseUrlForDdl, analyzeDuplicateFunctionOwnership, formatDuplicateFunctionOwnershipFinding, parsePlanOutput, validateDependencyOrder, formatSchemasForSql, FUNCTION_ACL_RECONCILIATION_RELATIVE_PATH, functionAclManifestHasEntries, validateFunctionAclMigration, isManagedFunctionAclFileContentStale, renderFunctionAclFile, buildFunctionAclManifestFromSqlFiles, buildFunctionAclIdempotentTouchMetadata, stableSorted, normalizePolicyCommand, normalizeFileList, extractFunctionOwnershipDefinition, SECURITY_DEFINER_RE, MANAGED_BOUNDARY_SCHEMAS, currentIsoTimestamp, makeGraphVersion, GENERATOR_VERSION, MAX_SCHEMA_GUIDANCE_TARGETS_PER_FILE, QUALIFIED_SQL_OBJECT_RE, SEARCH_PATH_LOCK_RE, TRIGGER_GUIDANCE_SUPPRESSED_FUNCTIONS, SQL_EXTENSION_IDENTIFIER_PATTERN, SQL_IDENTIFIER_PATTERN } from './chunk-WHVJ4JMQ.js';
|
|
8
8
|
import './chunk-EZ46JIEO.js';
|
|
9
9
|
import { resolveDatabaseUrl, resolveDatabaseTarget, tryResolveDatabaseUrl } from './chunk-ZDETCPCE.js';
|
|
10
10
|
export { resolveDatabaseUrl, tryResolveDatabaseUrl } from './chunk-ZDETCPCE.js';
|
|
@@ -14,7 +14,7 @@ import { writeEnvLocalBridge, removeEnvLocalBridge } from './chunk-KUH3G522.js';
|
|
|
14
14
|
import { extractSchemaTablesAndEnums, fetchDbTablesAndEnums, extractTablesFromIdempotentSql, extractDynamicTablePatternsFromIdempotentSql, diffSchema, getSqlParserUtils, buildTablePatternMatcher } from './chunk-O3M7A73M.js';
|
|
15
15
|
import { psqlExec, psqlQuery, blankDollarQuotedBodies, stripSqlComments, parsePostgresUrl, buildPsqlArgs, buildPsqlEnv } from './chunk-A6A7JIRD.js';
|
|
16
16
|
import { loadEnvFiles } from './chunk-IWVXI5O4.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-FZONYKNR.js';
|
|
18
18
|
import { diagnoseSupabaseStart } from './chunk-AAIE4F2U.js';
|
|
19
19
|
import { validateUserFilePath, filterSafePaths, resolveSafePath } from './chunk-B7C7CLW2.js';
|
|
20
20
|
import { runMachine } from './chunk-QDF7QXBL.js';
|
|
@@ -5510,30 +5510,49 @@ function reconcileRuntimeTableNode(params) {
|
|
|
5510
5510
|
];
|
|
5511
5511
|
}
|
|
5512
5512
|
const contradictions = [];
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5513
|
+
const declarativeFks = normalizeFkSet(params.tableNode.outboundForeignKeys);
|
|
5514
|
+
if (declarativeFks.length > 0) {
|
|
5515
|
+
const runtimeFkSet = new Set(normalizeFkSet(params.runtimeTable.foreignKeys ?? []));
|
|
5516
|
+
const missingFks = declarativeFks.filter((fk) => !runtimeFkSet.has(fk));
|
|
5517
|
+
if (missingFks.length > 0) {
|
|
5518
|
+
contradictions.push({
|
|
5519
|
+
code: "RUNTIME_FK_MISMATCH",
|
|
5520
|
+
target: params.tableNode.qualifiedName,
|
|
5521
|
+
details: `Declarative foreign key(s) missing from runtime: ${missingFks.join(", ")}`
|
|
5522
|
+
});
|
|
5523
|
+
}
|
|
5519
5524
|
}
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
)
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5525
|
+
const declarativePolicies = normalizeNameSet(
|
|
5526
|
+
params.tableNode.policies.map((policy) => policy.name)
|
|
5527
|
+
);
|
|
5528
|
+
if (declarativePolicies.length > 0) {
|
|
5529
|
+
const runtimePolicySet = new Set(
|
|
5530
|
+
normalizeNameSet((params.runtimeTable.rlsPolicies ?? []).map((policy) => policy.name))
|
|
5531
|
+
);
|
|
5532
|
+
const missingPolicies = declarativePolicies.filter((p) => !runtimePolicySet.has(p));
|
|
5533
|
+
if (missingPolicies.length > 0) {
|
|
5534
|
+
contradictions.push({
|
|
5535
|
+
code: "RUNTIME_POLICY_MISMATCH",
|
|
5536
|
+
target: params.tableNode.qualifiedName,
|
|
5537
|
+
details: `Declarative RLS policy(s) missing from runtime: ${missingPolicies.join(", ")}`
|
|
5538
|
+
});
|
|
5539
|
+
}
|
|
5528
5540
|
}
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
)
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5541
|
+
const declarativeTriggers = normalizeNameSet(
|
|
5542
|
+
params.tableNode.triggers.map((trigger) => trigger.name)
|
|
5543
|
+
);
|
|
5544
|
+
if (declarativeTriggers.length > 0) {
|
|
5545
|
+
const runtimeTriggerSet = new Set(
|
|
5546
|
+
normalizeNameSet((params.runtimeTable.triggers ?? []).map((trigger) => trigger.name))
|
|
5547
|
+
);
|
|
5548
|
+
const missingTriggers = declarativeTriggers.filter((t) => !runtimeTriggerSet.has(t));
|
|
5549
|
+
if (missingTriggers.length > 0) {
|
|
5550
|
+
contradictions.push({
|
|
5551
|
+
code: "RUNTIME_TRIGGER_MISMATCH",
|
|
5552
|
+
target: params.tableNode.qualifiedName,
|
|
5553
|
+
details: `Declarative trigger(s) missing from runtime: ${missingTriggers.join(", ")}`
|
|
5554
|
+
});
|
|
5555
|
+
}
|
|
5537
5556
|
}
|
|
5538
5557
|
return contradictions;
|
|
5539
5558
|
}
|
|
@@ -8454,7 +8473,7 @@ async function resolveTempDbDsnForProductionCheck(targetDir) {
|
|
|
8454
8473
|
if (envDsn) return envDsn;
|
|
8455
8474
|
try {
|
|
8456
8475
|
const { buildLocalDatabaseUrl: buildLocalDatabaseUrl2 } = await import('./local-supabase-KTTC3O2L.js');
|
|
8457
|
-
const { verifyDatabaseConnection } = await import('./helpers-
|
|
8476
|
+
const { verifyDatabaseConnection } = await import('./helpers-RHAZLOLQ.js');
|
|
8458
8477
|
const localDsn = buildLocalDatabaseUrl2(targetDir);
|
|
8459
8478
|
await verifyDatabaseConnection(localDsn, { maxRetries: 0 });
|
|
8460
8479
|
return localDsn;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
|
-
export { ALLOWED_DDL_PREFIXES, BASE_DELAY_MS, BLOCKED_SQL_PATTERNS, DEFAULT_MAX_DELAY_MS, DbPlanArtifactSchema, MAX_RETRIES, MIGRATION_LOCK_ID, acquireAdvisoryLock, backupIdempotentTables, bootstrapTempDbFromSource, buildAllowedHazards, buildCheckConstraintQuery, buildCheckModePlanSummary, buildNotNullQuery, buildTargetFingerprint, buildTempDbBootstrapStatements, buildTypeCastQuery, buildUniqueQuery, calculateBackoffDelay, checkDataCompatibility, checkPasswordSecurity, cleanPartitionAclsForPgSchemaDiff, cleanupOrphanShadowDatabases, createShadowDbWithExtensions, detectPartitionDrift, detectPlannerSchemas, displayCheckModeResults, displayDataCompatibilityResults, displayHazardsWithContext, executePlanSqlWithRetry, filterCheckModePlanStatements, filterFalsePositiveHazards, filterIdempotentProtectedStatements, formatPartitionWarnings, getDbPlanArtifactPath, getIdempotentProtectedObjects, getIdempotentProtectedTables, getIdempotentRoles, getTableRowEstimates, getTransactionStrategy, handleFreshDbCase, handleHazardsWithContext, handleProductionAuthzProtection, handleProductionDataProtection, hasAppTables, hasTransactionIncompatibleContent, hasTransactionIncompatibleStatements, isDropStatementForProtectedObject, isIdempotentManagedAuthzStatement, isIdempotentManagedRlsStatement, isIdempotentRoleHazard, isLockTimeoutError, isNoChangePlanOutput, isValidIdentifier, maskDbCredentials, needsShadowDb, parseAddCheck, parseAddUnique, parseAlterType, parseCreateUniqueIndex, parseDbCredentials, parseExpectedPartitions, parseHazardsWithContext, parsePlanOutput, parseSetNotNull, persistDbPlanArtifact, prefilterPartitionStubs, qualifiedTable, queryActualPartitions, quoteIdent, releaseAdvisoryLock, reorderRawSqlDependencies, resetIdempotentRolesCache, resetManagedAuthzCache, setRolePasswords, sleep, stripLeadingSessionStatements, tryReuseDbPlanArtifact, validateDependencyOrder, validateDependencyOrderFromRawSql, validatePlanForExecution, validateStatementTypes, verifyDataIntegrity, wrapInTransaction } from './chunk-
|
|
3
|
+
export { ALLOWED_DDL_PREFIXES, BASE_DELAY_MS, BLOCKED_SQL_PATTERNS, DEFAULT_MAX_DELAY_MS, DbPlanArtifactSchema, MAX_RETRIES, MIGRATION_LOCK_ID, acquireAdvisoryLock, backupIdempotentTables, bootstrapTempDbFromSource, buildAllowedHazards, buildCheckConstraintQuery, buildCheckModePlanSummary, buildNotNullQuery, buildTargetFingerprint, buildTempDbBootstrapStatements, buildTypeCastQuery, buildUniqueQuery, calculateBackoffDelay, checkDataCompatibility, checkPasswordSecurity, cleanPartitionAclsForPgSchemaDiff, cleanupOrphanShadowDatabases, createShadowDbWithExtensions, detectPartitionDrift, detectPlannerSchemas, displayCheckModeResults, displayDataCompatibilityResults, displayHazardsWithContext, executePlanSqlWithRetry, filterCheckModePlanStatements, filterFalsePositiveHazards, filterIdempotentProtectedStatements, formatPartitionWarnings, getDbPlanArtifactPath, getIdempotentProtectedObjects, getIdempotentProtectedTables, getIdempotentRoles, getTableRowEstimates, getTransactionStrategy, handleFreshDbCase, handleHazardsWithContext, handleProductionAuthzProtection, handleProductionDataProtection, hasAppTables, hasTransactionIncompatibleContent, hasTransactionIncompatibleStatements, isDropStatementForProtectedObject, isIdempotentManagedAuthzStatement, isIdempotentManagedRlsStatement, isIdempotentRoleHazard, isLockTimeoutError, isNoChangePlanOutput, isValidIdentifier, maskDbCredentials, needsShadowDb, parseAddCheck, parseAddUnique, parseAlterType, parseCreateUniqueIndex, parseDbCredentials, parseExpectedPartitions, parseHazardsWithContext, parsePlanOutput, parseSetNotNull, persistDbPlanArtifact, prefilterPartitionStubs, qualifiedTable, queryActualPartitions, quoteIdent, releaseAdvisoryLock, reorderRawSqlDependencies, resetIdempotentRolesCache, resetManagedAuthzCache, setRolePasswords, sleep, stripLeadingSessionStatements, tryReuseDbPlanArtifact, validateDependencyOrder, validateDependencyOrderFromRawSql, validatePlanForExecution, validateStatementTypes, verifyDataIntegrity, wrapInTransaction } from './chunk-WHVJ4JMQ.js';
|
|
4
4
|
import './chunk-EZ46JIEO.js';
|
|
5
5
|
import './chunk-ZDETCPCE.js';
|
|
6
6
|
export { PG_SCHEMA_DIFF_APPLY_TIMEOUT_MS, detectDropTableStatements, detectPartitionPrivilegeError, executePgSchemaDiffPlan, formatPartitionPrivilegeHint, freeConnectionSlotsForPgSchemaDiff, startConnectionCleanupDaemon, stopConnectionCleanupDaemon, verifyDatabaseConnection, verifyPgSchemaDiffBinary } from './chunk-HWR5NUUZ.js';
|
|
7
7
|
import './chunk-47BG6DRP.js';
|
|
8
8
|
export { blankDollarQuotedBodies } from './chunk-A6A7JIRD.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-FZONYKNR.js';
|
|
10
10
|
import './chunk-II7VYQEM.js';
|
|
11
11
|
import './chunk-NOXYPVMZ.js';
|
|
12
12
|
import './chunk-F2AQ3EYJ.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-FZONYKNR.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-4HI3D2II.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-4HI3D2II.js');
|
|
64
64
|
setupSignalHandlers();
|
|
65
65
|
const options = getProgramLoadOptions(argv);
|
|
66
66
|
const program = await getProgram(options);
|
|
@@ -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-LMHRSMYY.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-FZONYKNR.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.10.
|
|
3
|
+
"version": "0.10.5",
|
|
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.10.
|
|
59
|
+
"@runa-ai/runa": "0.10.5",
|
|
60
|
+
"@runa-ai/runa-xstate-test-plugin": "0.10.5"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20.0.0"
|