@runa-ai/runa-cli 0.7.0 → 0.7.1
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/{build-V66FAQXB.js → build-HUDIP6KU.js} +1 -1
- package/dist/{chunk-AIP6MR42.js → chunk-AFY3TX4I.js} +1 -1
- package/dist/{chunk-KWX3JHCY.js → chunk-AKZAN4BC.js} +6 -1
- package/dist/{chunk-SGJG3BKD.js → chunk-CCW3PLQY.js} +1 -1
- package/dist/{chunk-IBVVGH6X.js → chunk-EMB6IZFT.js} +17 -4
- package/dist/{ci-ZWRVWNFX.js → ci-XY6IKEDC.js} +844 -120
- package/dist/{cli-2JNBJUBB.js → cli-UZA4RBNQ.js} +13 -13
- package/dist/commands/ci/machine/actors/db/collect-schema-stats.d.ts +4 -1
- package/dist/commands/ci/machine/actors/db/production-preview.d.ts +10 -0
- package/dist/commands/ci/machine/actors/db/schema-canonical-diff.d.ts +22 -0
- package/dist/commands/ci/machine/commands/machine-runner.d.ts +2 -0
- package/dist/commands/ci/machine/formatters/sections/production-schema-status.d.ts +30 -0
- package/dist/commands/ci/machine/helpers.d.ts +8 -0
- package/dist/commands/ci/machine/machine.d.ts +57 -4
- package/dist/commands/template-check/commands/template-check.d.ts +1 -0
- package/dist/commands/template-check/contract.d.ts +1 -0
- package/dist/constants/versions.d.ts +1 -1
- package/dist/{db-XULCILOU.js → db-Q3GF7JWP.js} +78 -18
- package/dist/{env-SS66PZ4B.js → env-GMB3THRG.js} +1 -1
- package/dist/{hotfix-YA3DGLOM.js → hotfix-NDTPY2T4.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/{init-ZIL6LRFO.js → init-U4VCRHTD.js} +1 -1
- package/dist/{template-check-3P4HZXVY.js → template-check-FFJVDLBF.js} +23 -6
- package/dist/{upgrade-NUK3ZBCL.js → upgrade-7TWORWBV.js} +1 -1
- package/dist/{vuln-check-2W7N5TA2.js → vuln-check-6CMNPSBR.js} +1 -1
- package/dist/{vuln-checker-IQJ56RUV.js → vuln-checker-EJJTNDNE.js} +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module';
|
|
3
3
|
import './chunk-QDF7QXBL.js';
|
|
4
|
-
import { getSnapshotStateName, isSnapshotComplete } from './chunk-
|
|
4
|
+
import { getSnapshotStateName, isSnapshotComplete } from './chunk-EMB6IZFT.js';
|
|
5
5
|
import { guards, manifestActor, supabaseStartActor, envCheckActor, depsInstallActor, detectTurbo, detectManifestTask, detectDatabase, checkSupabaseStatus } from './chunk-2APB25TT.js';
|
|
6
6
|
import { findRepoRoot } from './chunk-3WDV32GA.js';
|
|
7
7
|
import { runLogged } from './chunk-6FAU4IGR.js';
|
|
@@ -25,10 +25,15 @@ function isLocalDatabaseUrl(url) {
|
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
function getExplicitLocalAdminUrl() {
|
|
29
|
+
const explicitAdminUrl = process.env.DATABASE_URL_ADMIN?.trim();
|
|
30
|
+
if (!explicitAdminUrl) return void 0;
|
|
31
|
+
return isLocalDatabaseUrl(explicitAdminUrl) ? explicitAdminUrl : void 0;
|
|
32
|
+
}
|
|
28
33
|
function resolveDatabaseUrl(environment) {
|
|
29
34
|
switch (environment) {
|
|
30
35
|
case "local": {
|
|
31
|
-
const url =
|
|
36
|
+
const url = getExplicitLocalAdminUrl() || getLocalDatabaseUrl();
|
|
32
37
|
if (!isLocalDatabaseUrl(url)) {
|
|
33
38
|
throw new CLIError("Local database URL appears to be a remote URL", "LOCAL_DB_URL_REMOTE", [
|
|
34
39
|
"Local operations should use the local Supabase instance",
|
|
@@ -16,7 +16,7 @@ init_esm_shims();
|
|
|
16
16
|
|
|
17
17
|
// src/constants/versions.ts
|
|
18
18
|
init_esm_shims();
|
|
19
|
-
var COMPATIBLE_TEMPLATES_VERSION = "0.
|
|
19
|
+
var COMPATIBLE_TEMPLATES_VERSION = "0.7.1";
|
|
20
20
|
var TEMPLATES_PACKAGE_NAME = "@r06-dev/runa-templates";
|
|
21
21
|
var GITHUB_PACKAGES_REGISTRY = "https://npm.pkg.github.com";
|
|
22
22
|
|
|
@@ -17,11 +17,24 @@ function getSnapshotStateName(snapshot) {
|
|
|
17
17
|
if (entries.length === 0) {
|
|
18
18
|
return "unknown";
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
function flattenState(value) {
|
|
21
|
+
if (typeof value === "string") {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
if (!value || typeof value !== "object") {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
const childEntries = Object.entries(value);
|
|
28
|
+
if (childEntries.length === 0) {
|
|
29
|
+
return "";
|
|
30
|
+
}
|
|
31
|
+
const [childKey, childValue] = childEntries[0];
|
|
32
|
+
const nested2 = flattenState(childValue);
|
|
33
|
+
return nested2 ? `${childKey}.${nested2}` : childKey;
|
|
23
34
|
}
|
|
24
|
-
|
|
35
|
+
const [parent, child] = entries[0];
|
|
36
|
+
const nested = flattenState(child);
|
|
37
|
+
return nested ? `${parent}.${nested}` : parent;
|
|
25
38
|
}
|
|
26
39
|
function isSnapshotComplete(snapshot) {
|
|
27
40
|
return snapshot.status === "done";
|