@databricks-solutions/lakebase-scm-utils 0.2.41 → 0.2.43
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/scripts/github/index.cjs +3 -1
- package/dist/scripts/github/index.js +3 -1
- package/dist/scripts/github/pr.cli.cjs +3 -1
- package/dist/scripts/github/pr.cli.js +3 -1
- package/dist/scripts/index.cjs +84 -21
- package/dist/scripts/index.d.cts +1 -1
- package/dist/scripts/index.d.ts +1 -1
- package/dist/scripts/index.js +76 -15
- package/dist/scripts/lakebase/branch.cli.cjs +3 -1
- package/dist/scripts/lakebase/branch.cli.js +3 -1
- package/dist/scripts/lakebase/ci-app-endpoint.cli.cjs +3 -1
- package/dist/scripts/lakebase/ci-app-endpoint.cli.js +3 -1
- package/dist/scripts/lakebase/ci-resolve-branch.cli.cjs +5 -3
- package/dist/scripts/lakebase/ci-resolve-branch.cli.js +5 -3
- package/dist/scripts/lakebase/collapse-heads.cli.cjs +5 -3
- package/dist/scripts/lakebase/collapse-heads.cli.js +5 -3
- package/dist/scripts/lakebase/cut-backup.cli.cjs +3 -1
- package/dist/scripts/lakebase/cut-backup.cli.js +3 -1
- package/dist/scripts/lakebase/cut-tier.cli.cjs +3 -1
- package/dist/scripts/lakebase/cut-tier.cli.js +3 -1
- package/dist/scripts/lakebase/detect-language.cli.cjs +5 -3
- package/dist/scripts/lakebase/detect-language.cli.js +5 -3
- package/dist/scripts/lakebase/doctor.cli.cjs +5 -3
- package/dist/scripts/lakebase/doctor.cli.js +5 -3
- package/dist/scripts/lakebase/get-connection.cli.cjs +5 -3
- package/dist/scripts/lakebase/get-connection.cli.js +5 -3
- package/dist/scripts/lakebase/index.cjs +84 -21
- package/dist/scripts/lakebase/index.d.cts +21 -1
- package/dist/scripts/lakebase/index.d.ts +21 -1
- package/dist/scripts/lakebase/index.js +76 -15
- package/dist/scripts/lakebase/infra-runner.cli.cjs +5 -3
- package/dist/scripts/lakebase/infra-runner.cli.js +5 -3
- package/dist/scripts/lakebase/new-migration.cli.cjs +5 -3
- package/dist/scripts/lakebase/new-migration.cli.js +5 -3
- package/dist/scripts/lakebase/schema-diff.cli.cjs +5 -3
- package/dist/scripts/lakebase/schema-diff.cli.js +5 -3
- package/dist/scripts/lakebase/schema-migrate.cli.cjs +5 -3
- package/dist/scripts/lakebase/schema-migrate.cli.js +5 -3
- package/dist/scripts/lakebase/scm-abandon-feature.cli.cjs +37 -1
- package/dist/scripts/lakebase/scm-abandon-feature.cli.js +37 -1
- package/dist/scripts/lakebase/scm-adopt-state.cli.cjs +37 -1
- package/dist/scripts/lakebase/scm-adopt-state.cli.js +37 -1
- package/dist/scripts/lakebase/scm-claim-feature.cli.cjs +45 -9
- package/dist/scripts/lakebase/scm-claim-feature.cli.js +39 -3
- package/dist/scripts/lakebase/scm-cleanup.cli.cjs +3 -1
- package/dist/scripts/lakebase/scm-cleanup.cli.js +3 -1
- package/dist/scripts/lakebase/scm-doctor.cli.cjs +56 -29
- package/dist/scripts/lakebase/scm-doctor.cli.js +50 -23
- package/dist/scripts/lakebase/scm-feature-branch.cli.cjs +1 -0
- package/dist/scripts/lakebase/scm-feature-branch.cli.js +1 -0
- package/dist/scripts/lakebase/scm-merge.cli.cjs +61 -9
- package/dist/scripts/lakebase/scm-merge.cli.js +55 -3
- package/dist/scripts/lakebase/scm-prepare-pr.cli.cjs +34 -0
- package/dist/scripts/lakebase/scm-prepare-pr.cli.js +34 -0
- package/dist/scripts/lakebase/scm-reconcile-tier.cli.cjs +6 -3
- package/dist/scripts/lakebase/scm-reconcile-tier.cli.js +6 -3
- package/dist/scripts/lakebase/scm-recover-orphans.cli.cjs +37 -1
- package/dist/scripts/lakebase/scm-recover-orphans.cli.js +37 -1
- package/dist/scripts/lakebase/scm-state.cli.cjs +5 -4
- package/dist/scripts/lakebase/scm-state.cli.js +4 -3
- package/dist/scripts/lakebase/scm-wait-ci.cli.cjs +34 -0
- package/dist/scripts/lakebase/scm-wait-ci.cli.js +34 -0
- package/dist/scripts/util/index.cjs +5 -3
- package/dist/scripts/util/index.js +5 -3
- package/package.json +1 -1
- package/scripts/lakebase/databricks-cli.ts +7 -1
- package/scripts/lakebase/enable-e2e.ts +19 -3
- package/scripts/lakebase/scm-doctor.ts +1 -12
- package/scripts/lakebase/scm-merge.ts +36 -0
- package/scripts/lakebase/scm-workflow-state.ts +49 -0
- package/templates/project/common/.github/workflows/merge.yml +17 -6
- package/templates/project/common/.github/workflows/pr.yml +17 -6
- package/templates/project/common/.gitignore.base +8 -0
- package/templates/project/common/scripts/run-tests.sh +18 -1
- package/templates/project/python/tests/__pycache__/conftest.cpython-314.pyc +0 -0
- package/templates/project/python/tests/conftest.py +10 -3
|
@@ -8544,7 +8544,9 @@ function resolveProfile(opts) {
|
|
|
8544
8544
|
function buildInvocation(args, opts) {
|
|
8545
8545
|
const base = opts.env ?? process.env;
|
|
8546
8546
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
8547
|
-
const env =
|
|
8547
|
+
const env = { ...base };
|
|
8548
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
8549
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
8548
8550
|
const profile = resolveProfile(opts);
|
|
8549
8551
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
8550
8552
|
return { argv, env, profile };
|
|
@@ -8503,7 +8503,9 @@ function resolveProfile(opts) {
|
|
|
8503
8503
|
function buildInvocation(args, opts) {
|
|
8504
8504
|
const base = opts.env ?? process.env;
|
|
8505
8505
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
8506
|
-
const env =
|
|
8506
|
+
const env = { ...base };
|
|
8507
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
8508
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
8507
8509
|
const profile = resolveProfile(opts);
|
|
8508
8510
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
8509
8511
|
return { argv, env, profile };
|
|
@@ -8228,7 +8228,9 @@ function resolveProfile(opts) {
|
|
|
8228
8228
|
function buildInvocation(args, opts) {
|
|
8229
8229
|
const base = opts.env ?? process.env;
|
|
8230
8230
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
8231
|
-
const env =
|
|
8231
|
+
const env = { ...base };
|
|
8232
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
8233
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
8232
8234
|
const profile = resolveProfile(opts);
|
|
8233
8235
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
8234
8236
|
return { argv, env, profile };
|
|
@@ -8229,7 +8229,9 @@ function resolveProfile(opts) {
|
|
|
8229
8229
|
function buildInvocation(args, opts) {
|
|
8230
8230
|
const base = opts.env ?? process.env;
|
|
8231
8231
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
8232
|
-
const env =
|
|
8232
|
+
const env = { ...base };
|
|
8233
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
8234
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
8233
8235
|
const profile = resolveProfile(opts);
|
|
8234
8236
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
8235
8237
|
return { argv, env, profile };
|
package/dist/scripts/index.cjs
CHANGED
|
@@ -79135,6 +79135,7 @@ __export(scripts_exports, {
|
|
|
79135
79135
|
isCliEntry: () => isCliEntry,
|
|
79136
79136
|
isDirty: () => isDirty,
|
|
79137
79137
|
isForeignFeatureClaim: () => isForeignFeatureClaim,
|
|
79138
|
+
isGitTracked: () => isGitTracked,
|
|
79138
79139
|
isLongRunningTierBranch: () => isLongRunningTierBranch,
|
|
79139
79140
|
isLtsJavaVersion: () => isLtsJavaVersion,
|
|
79140
79141
|
isPrereleaseBootVersion: () => isPrereleaseBootVersion,
|
|
@@ -79192,6 +79193,7 @@ __export(scripts_exports, {
|
|
|
79192
79193
|
readTargets: () => readTargets,
|
|
79193
79194
|
readWorkflowState: () => readWorkflowState,
|
|
79194
79195
|
rebaseBranch: () => rebaseBranch,
|
|
79196
|
+
reconcileTierToOrigin: () => reconcileTierToOrigin,
|
|
79195
79197
|
recoverOrphans: () => recoverOrphans,
|
|
79196
79198
|
release: () => release,
|
|
79197
79199
|
removeRemote: () => removeRemote,
|
|
@@ -86443,7 +86445,9 @@ function resolveProfile(opts) {
|
|
|
86443
86445
|
function buildInvocation(args, opts) {
|
|
86444
86446
|
const base = opts.env ?? process.env;
|
|
86445
86447
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
86446
|
-
const env =
|
|
86448
|
+
const env = { ...base };
|
|
86449
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
86450
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
86447
86451
|
const profile = resolveProfile(opts);
|
|
86448
86452
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
86449
86453
|
return { argv, env, profile };
|
|
@@ -88895,8 +88899,8 @@ var PKG_NAME = "@databricks-solutions/lakebase-scm-utils";
|
|
|
88895
88899
|
var cached;
|
|
88896
88900
|
function substrateSelfVersion() {
|
|
88897
88901
|
if (cached !== void 0) return cached;
|
|
88898
|
-
if ("0.2.
|
|
88899
|
-
cached = "0.2.
|
|
88902
|
+
if ("0.2.43".length > 0) {
|
|
88903
|
+
cached = "0.2.43";
|
|
88900
88904
|
return cached;
|
|
88901
88905
|
}
|
|
88902
88906
|
cached = "unknown";
|
|
@@ -91762,12 +91766,27 @@ function runTestsE2eBlock() {
|
|
|
91762
91766
|
' export VITE_PROXY_TARGET="http://127.0.0.1:${E2E_BACKEND_PORT}"',
|
|
91763
91767
|
' echo "Local E2E free-port: backend :$E2E_BACKEND_PORT / client :$E2E_CLIENT_PORT"',
|
|
91764
91768
|
"fi",
|
|
91769
|
+
// Stale-server hygiene (issue #197): CI=1 on the Playwright invocations below
|
|
91770
|
+
// forces EVERY config vintage's reuseExistingServer guard OFF (old `!CI` and
|
|
91771
|
+
// new `!!BASE_URL` alike), so the verify never reuses a stale server bound to
|
|
91772
|
+
// an unmigrated branch (the false-500 misdiagnosis). A lingering uvicorn/vite
|
|
91773
|
+
// on the conventional default ports still serves STALE schema to anything
|
|
91774
|
+
// that reaches it, so clear it (TERM, not KILL) before the boot - never when
|
|
91775
|
+
// the caller pre-set the ports (the deploy gate owns that server; BASE_URL).
|
|
91776
|
+
'if [ -z "${BASE_URL:-}" ] && command -v lsof >/dev/null 2>&1; then',
|
|
91777
|
+
' for p in "${E2E_BACKEND_PORT:-8000}" "${E2E_CLIENT_PORT:-5173}"; do',
|
|
91778
|
+
' if lsof -iTCP:"$p" -sTCP:LISTEN -n -P >/dev/null 2>&1; then',
|
|
91779
|
+
' echo "Local E2E: clearing a stale listener on :$p before the webServer boot"',
|
|
91780
|
+
' lsof -ti tcp:"$p" 2>/dev/null | xargs kill 2>/dev/null || true',
|
|
91781
|
+
" fi",
|
|
91782
|
+
" done",
|
|
91783
|
+
"fi",
|
|
91765
91784
|
'if [ -f "$REPO_ROOT/playwright.config.ts" ] || [ -f "$REPO_ROOT/playwright.config.js" ]; then',
|
|
91766
91785
|
' echo "Running Playwright E2E tests..."',
|
|
91767
91786
|
' if [ -f "$REPO_ROOT/package.json" ] && command -v npm >/dev/null 2>&1; then',
|
|
91768
|
-
' (cd "$REPO_ROOT" && npm run test:e2e)',
|
|
91787
|
+
' (cd "$REPO_ROOT" && CI=1 npm run test:e2e)',
|
|
91769
91788
|
" else",
|
|
91770
|
-
' (cd "$REPO_ROOT" && npx --yes playwright test)',
|
|
91789
|
+
' (cd "$REPO_ROOT" && CI=1 npx --yes playwright test)',
|
|
91771
91790
|
" fi",
|
|
91772
91791
|
// Python E2E: pytest-playwright + the shipped tests/e2e/conftest.py
|
|
91773
91792
|
// (live_server). Gated on the conftest + pyproject so it only fires for a
|
|
@@ -91806,7 +91825,8 @@ function runTestsE2eBlock() {
|
|
|
91806
91825
|
'if [ -f "$REPO_ROOT/client/playwright.config.ts" ] || [ -f "$REPO_ROOT/client/playwright.config.js" ] || [ -f "$REPO_ROOT/client/playwright.config.mjs" ]; then',
|
|
91807
91826
|
' echo "Running client Playwright E2E tests..."',
|
|
91808
91827
|
' (cd "$REPO_ROOT/client" && npx --yes playwright install chromium)',
|
|
91809
|
-
|
|
91828
|
+
// CI=1: no server reuse on any config vintage (see the stale-server note above).
|
|
91829
|
+
' (cd "$REPO_ROOT/client" && CI=1 npx --yes playwright test --pass-with-no-tests)',
|
|
91810
91830
|
"fi",
|
|
91811
91831
|
""
|
|
91812
91832
|
].join("\n");
|
|
@@ -92298,6 +92318,39 @@ async function syncCiSecrets(args) {
|
|
|
92298
92318
|
init_cjs_shims();
|
|
92299
92319
|
var fs18 = __toESM(require("fs"), 1);
|
|
92300
92320
|
var path15 = __toESM(require("path"), 1);
|
|
92321
|
+
var import_node_child_process9 = require("child_process");
|
|
92322
|
+
function isGitTracked(projectDir, rel) {
|
|
92323
|
+
try {
|
|
92324
|
+
(0, import_node_child_process9.execFileSync)("git", ["ls-files", "--error-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
92325
|
+
return true;
|
|
92326
|
+
} catch {
|
|
92327
|
+
return false;
|
|
92328
|
+
}
|
|
92329
|
+
}
|
|
92330
|
+
function ensureWorkflowStateUntracked(projectDir) {
|
|
92331
|
+
const rel = ".lakebase/workflow-state.json";
|
|
92332
|
+
try {
|
|
92333
|
+
if (isGitTracked(projectDir, rel)) {
|
|
92334
|
+
(0, import_node_child_process9.execFileSync)("git", ["rm", "--cached", "--quiet", "--ignore-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
92335
|
+
}
|
|
92336
|
+
} catch {
|
|
92337
|
+
}
|
|
92338
|
+
try {
|
|
92339
|
+
const gitignore = path15.join(projectDir, ".gitignore");
|
|
92340
|
+
const existing = fs18.existsSync(gitignore) ? fs18.readFileSync(gitignore, "utf8") : "";
|
|
92341
|
+
if (!existing.split("\n").some((l) => l.trim() === rel)) {
|
|
92342
|
+
const sep4 = existing === "" || existing.endsWith("\n") ? "" : "\n";
|
|
92343
|
+
fs18.appendFileSync(
|
|
92344
|
+
gitignore,
|
|
92345
|
+
`${sep4}# Runtime SCM claim state (per working tree): a branch checkout must never restore
|
|
92346
|
+
# a stale committed claim over the live one (issue #203 / Finding 28).
|
|
92347
|
+
${rel}
|
|
92348
|
+
`
|
|
92349
|
+
);
|
|
92350
|
+
}
|
|
92351
|
+
} catch {
|
|
92352
|
+
}
|
|
92353
|
+
}
|
|
92301
92354
|
var SCM_STATES = [
|
|
92302
92355
|
"scaffold-complete",
|
|
92303
92356
|
"feature-claimed",
|
|
@@ -92350,6 +92403,7 @@ function writeWorkflowState(projectDir, state) {
|
|
|
92350
92403
|
throw new Error(`Refusing to write invalid SCM state:
|
|
92351
92404
|
${summary}`);
|
|
92352
92405
|
}
|
|
92406
|
+
ensureWorkflowStateUntracked(projectDir);
|
|
92353
92407
|
const dir = path15.join(projectDir, ".lakebase");
|
|
92354
92408
|
fs18.mkdirSync(dir, { recursive: true });
|
|
92355
92409
|
const target = stateFilePath(projectDir);
|
|
@@ -93315,7 +93369,7 @@ var path20 = __toESM(require("path"), 1);
|
|
|
93315
93369
|
|
|
93316
93370
|
// scripts/lakebase/schema-migrate-runners/alembic.ts
|
|
93317
93371
|
init_cjs_shims();
|
|
93318
|
-
var
|
|
93372
|
+
var import_node_child_process10 = require("child_process");
|
|
93319
93373
|
var fs22 = __toESM(require("fs"), 1);
|
|
93320
93374
|
var path19 = __toESM(require("path"), 1);
|
|
93321
93375
|
function resolveAlembicBin(projectDir) {
|
|
@@ -93337,7 +93391,7 @@ function spawnAlembic(projectDir, args, dsn) {
|
|
|
93337
93391
|
const env = { ...process.env };
|
|
93338
93392
|
env.PYTHONPATH = [projectDir, process.env.PYTHONPATH].filter(Boolean).join(path19.delimiter);
|
|
93339
93393
|
if (dsn) env.DATABASE_URL = dsn;
|
|
93340
|
-
const child = (0,
|
|
93394
|
+
const child = (0, import_node_child_process10.spawn)(bin, args, {
|
|
93341
93395
|
cwd: projectDir,
|
|
93342
93396
|
env,
|
|
93343
93397
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -93699,7 +93753,7 @@ var path22 = __toESM(require("path"), 1);
|
|
|
93699
93753
|
|
|
93700
93754
|
// scripts/lakebase/schema-migrate-runners/flyway.ts
|
|
93701
93755
|
init_cjs_shims();
|
|
93702
|
-
var
|
|
93756
|
+
var import_node_child_process11 = require("child_process");
|
|
93703
93757
|
var path21 = __toESM(require("path"), 1);
|
|
93704
93758
|
function dsnToFlywayEnv(dsn) {
|
|
93705
93759
|
const u = new URL(dsn);
|
|
@@ -93715,7 +93769,7 @@ function migrationsLocation(projectDir) {
|
|
|
93715
93769
|
function runFlyway(ctx, args) {
|
|
93716
93770
|
const { url, user, password } = dsnToFlywayEnv(ctx.dsn);
|
|
93717
93771
|
return new Promise((resolve2, reject) => {
|
|
93718
|
-
const child = (0,
|
|
93772
|
+
const child = (0, import_node_child_process11.spawn)(
|
|
93719
93773
|
"flyway",
|
|
93720
93774
|
["-outputType=json", `-locations=${migrationsLocation(ctx.projectDir)}`, ...args],
|
|
93721
93775
|
{
|
|
@@ -93952,7 +94006,7 @@ var path24 = __toESM(require("path"), 1);
|
|
|
93952
94006
|
|
|
93953
94007
|
// scripts/lakebase/schema-migrate-runners/knex.ts
|
|
93954
94008
|
init_cjs_shims();
|
|
93955
|
-
var
|
|
94009
|
+
var import_node_child_process12 = require("child_process");
|
|
93956
94010
|
var fs25 = __toESM(require("fs"), 1);
|
|
93957
94011
|
var path23 = __toESM(require("path"), 1);
|
|
93958
94012
|
var KNEXFILE_VARIANTS = ["knexfile.js", "knexfile.ts", "knexfile.mjs", "knexfile.cjs"];
|
|
@@ -93974,7 +94028,7 @@ function spawnKnex(projectDir, args, dsn) {
|
|
|
93974
94028
|
);
|
|
93975
94029
|
return;
|
|
93976
94030
|
}
|
|
93977
|
-
const child = (0,
|
|
94031
|
+
const child = (0, import_node_child_process12.spawn)("npx", ["--no-install", "knex", "--knexfile", knexfile, ...args], {
|
|
93978
94032
|
cwd: projectDir,
|
|
93979
94033
|
env: dsn ? { ...process.env, DATABASE_URL: dsn } : { ...process.env },
|
|
93980
94034
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -95135,6 +95189,20 @@ function pickRunUrl(pr) {
|
|
|
95135
95189
|
|
|
95136
95190
|
// scripts/lakebase/scm-merge.ts
|
|
95137
95191
|
init_cjs_shims();
|
|
95192
|
+
async function reconcileTierToOrigin(args) {
|
|
95193
|
+
const { cwd, tier } = args;
|
|
95194
|
+
try {
|
|
95195
|
+
const head = await getCurrentBranch({ cwd });
|
|
95196
|
+
if (head === tier) {
|
|
95197
|
+
await exec2(`git pull --ff-only`, { cwd, timeout: 3e4 });
|
|
95198
|
+
} else {
|
|
95199
|
+
await exec2(`git fetch origin ${shellEscape2(`${tier}:${tier}`)}`, { cwd, timeout: 3e4 });
|
|
95200
|
+
}
|
|
95201
|
+
return null;
|
|
95202
|
+
} catch (err) {
|
|
95203
|
+
return `local reconcile of ${tier} to origin/${tier} failed: ${err instanceof Error ? err.message : String(err)}. Reconcile it by hand (git checkout ${tier} && git pull --ff-only).`;
|
|
95204
|
+
}
|
|
95205
|
+
}
|
|
95138
95206
|
var ScmMergeError = class extends Error {
|
|
95139
95207
|
constructor(message, code) {
|
|
95140
95208
|
super(message);
|
|
@@ -95260,6 +95328,8 @@ async function mergeFeature(args) {
|
|
|
95260
95328
|
}
|
|
95261
95329
|
} else {
|
|
95262
95330
|
headAfter = head || current.branch;
|
|
95331
|
+
const reconcileWarning = await reconcileTierToOrigin({ cwd: args.projectDir, tier: switchTo });
|
|
95332
|
+
if (reconcileWarning) warnings.push(reconcileWarning);
|
|
95263
95333
|
}
|
|
95264
95334
|
if (headAfter !== current.branch) {
|
|
95265
95335
|
try {
|
|
@@ -95641,7 +95711,6 @@ function parentForTopology(t2, defaultLeaf) {
|
|
|
95641
95711
|
// scripts/lakebase/scm-doctor.ts
|
|
95642
95712
|
init_cjs_shims();
|
|
95643
95713
|
var fs30 = __toESM(require("fs"), 1);
|
|
95644
|
-
var import_node_child_process12 = require("child_process");
|
|
95645
95714
|
var path28 = __toESM(require("path"), 1);
|
|
95646
95715
|
var FEATURE_PREFIX = "feature/";
|
|
95647
95716
|
var TIER_LEAFS2 = DEFAULT_PROTECTED_TIER_NAMES;
|
|
@@ -95659,14 +95728,6 @@ function readEnv(projectDir) {
|
|
|
95659
95728
|
function leafOf2(b) {
|
|
95660
95729
|
return b.name.split("/").pop() ?? b.name;
|
|
95661
95730
|
}
|
|
95662
|
-
function isGitTracked(projectDir, rel) {
|
|
95663
|
-
try {
|
|
95664
|
-
(0, import_node_child_process12.execFileSync)("git", ["ls-files", "--error-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
95665
|
-
return true;
|
|
95666
|
-
} catch {
|
|
95667
|
-
return false;
|
|
95668
|
-
}
|
|
95669
|
-
}
|
|
95670
95731
|
function worstOf(a, b) {
|
|
95671
95732
|
const order = ["ok", "warn", "fail"];
|
|
95672
95733
|
return order[Math.max(order.indexOf(a), order.indexOf(b))];
|
|
@@ -97802,6 +97863,7 @@ function withProxyEnv(base = {}) {
|
|
|
97802
97863
|
isCliEntry,
|
|
97803
97864
|
isDirty,
|
|
97804
97865
|
isForeignFeatureClaim,
|
|
97866
|
+
isGitTracked,
|
|
97805
97867
|
isLongRunningTierBranch,
|
|
97806
97868
|
isLtsJavaVersion,
|
|
97807
97869
|
isPrereleaseBootVersion,
|
|
@@ -97859,6 +97921,7 @@ function withProxyEnv(base = {}) {
|
|
|
97859
97921
|
readTargets,
|
|
97860
97922
|
readWorkflowState,
|
|
97861
97923
|
rebaseBranch,
|
|
97924
|
+
reconcileTierToOrigin,
|
|
97862
97925
|
recoverOrphans,
|
|
97863
97926
|
release,
|
|
97864
97927
|
removeRemote,
|
package/dist/scripts/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CreateRepoOptions, GITHUB_SCOPES, GitHubAuthDiagnosis, GitHubAuthSource, GitHubRepoError, GitHubRunnerError, GitHubSecretsError, RepoRunner, VsCodeSessionOptions, createRegistrationToken, createRepo, deleteRepo, deleteRunner, diagnoseGitHubAuth, getActionsEnabled, getCurrentUser, getRepoFullName, getRunnerIdByName, getRunnerStatus, listRepoRunners, listSecretNames, repoExists, resolveGitHubToken, setRepoSecret, setRepoSecrets, tryGhAuthToken, tryVsCodeSession } from './github/index.cjs';
|
|
2
2
|
export { C as CreatePullRequestArgs, F as FastForwardBranchArgs, G as GitHubPullRequestError, M as MergePairedPullRequestArgs, a as MergePairedPullRequestResult, b as MergePullRequestArgs, c as MergePullRequestResult, P as PullRequestCheck, d as PullRequestFile, e as PullRequestInfo, f as PullRequestReview, W as WorkflowRunSummary, g as createPullRequest, h as fastForwardBranch, i as getPullRequest, j as getPullRequestComments, k as getPullRequestFiles, l as getPullRequestReviews, m as listIssueComments, n as listWorkflowRuns, o as mergePairedPullRequest, p as mergePullRequest } from '../pr-D3CteJaf.cjs';
|
|
3
|
-
export { AbandonFeatureArgs, AbandonFeatureResult, AddE2eToRunTestsScriptArgs, AddE2eToRunTestsScriptResult, AddInfraToPackageJsonArgs, AddInfraToPackageJsonResult, AddInfraToRunTestsScriptArgs, AddInfraToRunTestsScriptResult, AddPlaywrightToPackageJsonArgs, AddPlaywrightToPackageJsonResult, AddPythonE2eDepsArgs, AddPythonE2eDepsResult, AdoptLakebaseProjectArgs, AdoptLakebaseProjectResult, AdoptStateArgs, AdoptStateResult, AppServicePrincipal, AppliedSchemaMigration, ApplySchemaMigrationsArgs, ApplySchemaMigrationsResult, BranchLookupOpts, BranchMetadata, CONVENTION_TIER_DEFAULTS, CatalogExistsArgs, CheckoutMode, CheckoutPairedArgs, CheckoutPairedResult, ClaimFeatureBranchArgs, ClaimFeatureBranchResult, ClaimedOrphan, ClientFramework, CommandDriftReport, CommandFileEntry, CommandFileStatus, ConnectionArgs, ConsortSetupHooks, CreateBranchArgs, CreateConventionBranchArgs, CreateConventionPairedBranchArgs, CreateLongRunningBranchArgs, CreateLongRunningBranchResult, CreatePairedBranchArgs, CreatePairedBranchResult, CreateProjectArgs, CreateProjectResult, CutBackupArgs, CutBackupResult, DEFAULT_PROTECTED_TIER_NAMES, DatabricksProfile, DeleteAppEndpointArgs, DeleteAppEndpointResult, DeleteBranchArgs, DeletePairedBranchArgs, DeletePairedBranchResult, DeployClaudeCommandsOptions, DeployClaudeCommandsResult, DeployEnvExampleArgs, DeployLanguageProjectArgs, DeploySpringStarterArgs, DeployTarget, DeployTargetsConfig, DetectCommandDriftArgs, DetectScaffoldedDriftArgs, DetectWorkflowDriftArgs, DoctorArgs, DoctorFinding, DoctorReport, DoctorSeverity, DsnArgs, DsnResult, EnableE2eForProjectArgs, EnableE2eForProjectResult, EnableInfraForProjectArgs, EnableInfraForProjectResult, EndpointInfo, EnsureAppEndpointArgs, EnsureAppEndpointResult, EnsureEndpointArgs, EnsureLakebaseSecretAuthArgs, EnsureLakebaseSecretAuthResult, EnsureProfilePinnedArgs, EnsureProfilePinnedResult, EnsureSchemaAndVolumeArgs, EnsureSchemaAndVolumeResult, FIXABLE_FINDING_IDS, FixFindingArgs, FixFindingResult, FixableFindingId, GateInvariant, GateStatus, GenerateAppYamlOptions, GenerateMavenProjectOptions, GetAppEndpointArgs, GetAppEndpointResult, GetAppServicePrincipalArgs, GetCiAppEndpointArgs, GetCiAppEndpointResult, GetConnectionArgs, GetCredentialArgs, GetEndpointArgs, GetSchemaDiffArgs, GrantLakebasePermissionArgs, GrantLakebasePermissionResult, GrantUcCatalogPermissionArgs, GrantUcCatalogPermissionResult, HealthDoctorReport, HookVerification, InfraCheckResult, InfraSuiteResult, InitWorkflowStateArgs, InitializrMetadata, InitializrNetworkError, InitializrParseError, InstallPlaywrightArgs, InstallPlaywrightOptions, InstallPlaywrightResult, LakebaseBranchError, LakebaseBranchInfo, LakebaseBranchTtlTooLongError, LakebasePermissionLevel, LakebaseProjectArgs, LakebaseProjectError, LakebaseProjectInfo, LakebaseProjectMetadata, ListSchemaMigrationsArgs, MIGRATION_DEFAULTS, MergeArgs, MergePairedArgs, MergePairedResult, MergeResult, MigrationDefaults, MigrationLanguage, MigrationLayout, ModifiedSchemaObject, NODE_E2E_TEMPLATE_FILES, OrphanCandidate, PLAYWRIGHT_TEMPLATE_FILES, PLAYWRIGHT_TEST_VERSION_RANGE, PYTEST_BDD_VERSION_RANGE, PYTEST_PLAYWRIGHT_VERSION_RANGE, PYTHON_E2E_TEMPLATE_FILES, PendingSchemaMigration, PoolArgs, PreflightResult, PreparePrArgs, PreparePrResult, ProgressCallback, ProjectLanguage, PropagateCredentialsArgs, PropagateCredentialsResult, ProtectedBranchCommitError, QueryBranchSchemaArgs, RecoverOrphansArgs, RecoverOrphansResult, ReleaseArgs, ReleaseResult, RemoveRunnerArgs, ResolveDatabricksHostArgs, ResolveMigrationLayoutArgs, RollbackDeployArgs, RollbackDeployResult, RollbackOptions, RollbackSchemaMigrationArgs, RollbackSchemaMigrationResult, RunDoctorDeps, RunInfraSuiteArgs, RunPlaywrightInstallArgs, RunPlaywrightInstallResult, RunnerInfo, RunnerReportFn, RunnerType, SCM_STATES, STATE_FILE_REL, ScaffoldAllArgs, ScaffoldOptions, ScaffoldReportFn, ScaffoldStaticAllArgs, ScaffoldStaticAllResult, ScaffoldedDriftReport, SchemaColumn, SchemaDiffResult, SchemaMigrationError, SchemaMigrationFile, SchemaMigrationLanguage, SchemaMigrationStatusArgs, SchemaMigrationStatusResult, SchemaMigrationToolName, SchemaObject, SchemaQueryRow, ScmAbandonError, ScmAdoptError, ScmClaimError, ScmDoctorFixError, ScmMergeError, ScmPreparePrError, ScmRecoverError, ScmState, ScmWaitCiError, ScmWorkflowState, SetupRunnerArgs, SftddSetupHooks, SpringInitializrClient, SpringJvmLanguage, StaleBranchFinding, SyncEnvArgs, SyncEnvResult, TableSchema, TierTopology, TryCreateCatalogArgs, TryCreateCatalogResult, UcCatalogPermission, UpdateEnvConnectionArgs, UpdateWorkflowsArgs, UpdateWorkflowsResult, UploadDirectoryArgs, UploadDirectoryResult, ValidateAppOptions, ValidateAppResult, ValidationError, ValidationResult, WaitCiArgs, WaitCiResult, WaitForBranchAuthReadyArgs, WaitForBranchReadyArgs, WorkflowDriftReport, WorkflowFileStatus, WorkflowFileUpdate, WorkflowStatus, WorkflowUpdateOutcome, WorkflowVerification, WriteEnvFileArgs, WritePlaywrightTemplatesArgs, WritePlaywrightTemplatesResult, _testMakeBrownfieldFixture, abandonFeatureBranch, addE2eToRunTestsScript, addInfraToPackageJson, addInfraToRunTestsScript, addPlaywrightToPackageJson, adoptLakebaseProject, adoptScmState, applySchemaMigrations, assertAdoptionPreflight, assertCleanForFork, assertCommitTargetNotProtected, assertCreatedProjectReady, buildPostgresUrl, buildSchemaQuery, cacheProjectRetention, catalogExists, catalogExplorerUrl, checkDatabricksAuth, checkoutPaired, claimFeatureBranch, clearRetentionCache, compileMigrationPattern, connectionApplicationName, createBranch, createFeaturePairedBranch, createLakebaseProject, createLongRunningBranch, createPairedBranch, createPerfPairedBranch, createProject, createTestPairedBranch, createUatPairedBranch, cutBackup, databricksAuthPrereqMessage, deleteAppEndpoint, deleteBranch, deleteLakebaseProject, deletePairedBranch, deployClaudeAgents, deployClaudeCommands, deployClaudeSettings, deployClaudeSkills, deployClientProject, deployDeployTargets, deployEnv, deployEnvExample, deployGitignore, deployLanguageProject, deployScripts, deploySpringStarter, deployVscodeSettings, deployWorkflows, deriveCiAppName, describeGates, detectCommandDrift, detectLanguage, detectLanguageAt, detectScaffoldedDrift, detectWorkflowDrift, dirIsEmpty, enableE2eForProject, enableInfraForProject, endpointPath, ensureAppEndpoint, ensureCachedArchive, ensureEndpoint, ensureLakebaseSecretAuth, ensureProfilePinned, ensurePythonBddDeps, ensurePythonE2eDeps, ensureSchemaAndVolume, extractPullNumber, featureBranchName, findDefaultBranchName, findHistoryRetentionDuration, fixFinding, formatJUnit, formatSchemaDiffAsMarkdown, generateAppYaml, getAppEndpoint, getAppServicePrincipal, getBranchByName, getCachedProjectRetention, getCiAppEndpoint, getConnection, getCredential, getDefaultBranch, getDefaultBranchId, getDefaultBranchName, getEndpoint, getProjectInfo, getProjectRetentionDuration, getRunnerInfo, getSchemaDiff, getTargetNames, grantLakebasePermission, grantUcCatalogPermission, inferTierTopology, initWorkflowState, installHooks, installPlaywright, isAllSchemas, isForeignFeatureClaim, isLongRunningTierBranch, isLtsJavaVersion, isPrereleaseBootVersion, isRunning, isTier, isTtlTooLongError, kitWarmWarning, listAppDeployments, listBranches, listSchemaMigrations, mergeFeature, mergePaired, minLakebaseTtl, mintCredential, normalizeHost, normalizeTierName, parseHostFromAuthDescribe, parseLakebaseTtl, parseTargetsYaml, patchWorkflowsForRunnerType, preparePr, projectPath, propagateCredentials, protectedTierNamesFromEnv, pushFailureHint, queryBranchSchema, queryBranchTables, readEnvVar, readTargets, readWorkflowState, recoverOrphans, release, removeRunner, resolveBranchId, resolveBranchPath, resolveCurrentUser, resolveDatabricksHost, resolveEndpointHost, resolveFeatureStartPoint, resolveJavaHome, resolveLatestBootVersion, resolveLatestLtsJavaVersion, resolveMigrationLanguage, resolveMigrationLayout, resolveParentBranch, resolveProfileForHost, resolveProfileForHostSync, resolveProtectedTierNames, rollbackDeploy, rollbackSchemaMigration, runDoctor, runHealthDoctor, runInfraSuite, runPlaywrightInstall, runnerDir, runnerName, sanitizeFeatureSlug, scaffoldAll, scaffoldStaticAll, schemaMigrationStatus, schemaObjectName, selectProfileForHost, setupRunner, stateFilePath, stopRunner, substituteScmUtilsVersion, substrateVersion, syncEnvToCurrentBranch, tierBranchNames, toolForLanguage, tryCreateCatalog, updateEnvConnection, updateWorkflows, uploadDirectory, validateApp, validateCreateInputs, validateWorkflowState, verifyHooks, verifyProject, verifyWorkflows, waitForBranchAuthReady, waitForBranchReady, waitForCi, warmAndVerifyKit, withLakebaseRollback, workflowStateFileExists, writeEnvFile, writePlaywrightTemplates, writeTargets, writeWorkflowState } from './lakebase/index.cjs';
|
|
3
|
+
export { AbandonFeatureArgs, AbandonFeatureResult, AddE2eToRunTestsScriptArgs, AddE2eToRunTestsScriptResult, AddInfraToPackageJsonArgs, AddInfraToPackageJsonResult, AddInfraToRunTestsScriptArgs, AddInfraToRunTestsScriptResult, AddPlaywrightToPackageJsonArgs, AddPlaywrightToPackageJsonResult, AddPythonE2eDepsArgs, AddPythonE2eDepsResult, AdoptLakebaseProjectArgs, AdoptLakebaseProjectResult, AdoptStateArgs, AdoptStateResult, AppServicePrincipal, AppliedSchemaMigration, ApplySchemaMigrationsArgs, ApplySchemaMigrationsResult, BranchLookupOpts, BranchMetadata, CONVENTION_TIER_DEFAULTS, CatalogExistsArgs, CheckoutMode, CheckoutPairedArgs, CheckoutPairedResult, ClaimFeatureBranchArgs, ClaimFeatureBranchResult, ClaimedOrphan, ClientFramework, CommandDriftReport, CommandFileEntry, CommandFileStatus, ConnectionArgs, ConsortSetupHooks, CreateBranchArgs, CreateConventionBranchArgs, CreateConventionPairedBranchArgs, CreateLongRunningBranchArgs, CreateLongRunningBranchResult, CreatePairedBranchArgs, CreatePairedBranchResult, CreateProjectArgs, CreateProjectResult, CutBackupArgs, CutBackupResult, DEFAULT_PROTECTED_TIER_NAMES, DatabricksProfile, DeleteAppEndpointArgs, DeleteAppEndpointResult, DeleteBranchArgs, DeletePairedBranchArgs, DeletePairedBranchResult, DeployClaudeCommandsOptions, DeployClaudeCommandsResult, DeployEnvExampleArgs, DeployLanguageProjectArgs, DeploySpringStarterArgs, DeployTarget, DeployTargetsConfig, DetectCommandDriftArgs, DetectScaffoldedDriftArgs, DetectWorkflowDriftArgs, DoctorArgs, DoctorFinding, DoctorReport, DoctorSeverity, DsnArgs, DsnResult, EnableE2eForProjectArgs, EnableE2eForProjectResult, EnableInfraForProjectArgs, EnableInfraForProjectResult, EndpointInfo, EnsureAppEndpointArgs, EnsureAppEndpointResult, EnsureEndpointArgs, EnsureLakebaseSecretAuthArgs, EnsureLakebaseSecretAuthResult, EnsureProfilePinnedArgs, EnsureProfilePinnedResult, EnsureSchemaAndVolumeArgs, EnsureSchemaAndVolumeResult, FIXABLE_FINDING_IDS, FixFindingArgs, FixFindingResult, FixableFindingId, GateInvariant, GateStatus, GenerateAppYamlOptions, GenerateMavenProjectOptions, GetAppEndpointArgs, GetAppEndpointResult, GetAppServicePrincipalArgs, GetCiAppEndpointArgs, GetCiAppEndpointResult, GetConnectionArgs, GetCredentialArgs, GetEndpointArgs, GetSchemaDiffArgs, GrantLakebasePermissionArgs, GrantLakebasePermissionResult, GrantUcCatalogPermissionArgs, GrantUcCatalogPermissionResult, HealthDoctorReport, HookVerification, InfraCheckResult, InfraSuiteResult, InitWorkflowStateArgs, InitializrMetadata, InitializrNetworkError, InitializrParseError, InstallPlaywrightArgs, InstallPlaywrightOptions, InstallPlaywrightResult, LakebaseBranchError, LakebaseBranchInfo, LakebaseBranchTtlTooLongError, LakebasePermissionLevel, LakebaseProjectArgs, LakebaseProjectError, LakebaseProjectInfo, LakebaseProjectMetadata, ListSchemaMigrationsArgs, MIGRATION_DEFAULTS, MergeArgs, MergePairedArgs, MergePairedResult, MergeResult, MigrationDefaults, MigrationLanguage, MigrationLayout, ModifiedSchemaObject, NODE_E2E_TEMPLATE_FILES, OrphanCandidate, PLAYWRIGHT_TEMPLATE_FILES, PLAYWRIGHT_TEST_VERSION_RANGE, PYTEST_BDD_VERSION_RANGE, PYTEST_PLAYWRIGHT_VERSION_RANGE, PYTHON_E2E_TEMPLATE_FILES, PendingSchemaMigration, PoolArgs, PreflightResult, PreparePrArgs, PreparePrResult, ProgressCallback, ProjectLanguage, PropagateCredentialsArgs, PropagateCredentialsResult, ProtectedBranchCommitError, QueryBranchSchemaArgs, RecoverOrphansArgs, RecoverOrphansResult, ReleaseArgs, ReleaseResult, RemoveRunnerArgs, ResolveDatabricksHostArgs, ResolveMigrationLayoutArgs, RollbackDeployArgs, RollbackDeployResult, RollbackOptions, RollbackSchemaMigrationArgs, RollbackSchemaMigrationResult, RunDoctorDeps, RunInfraSuiteArgs, RunPlaywrightInstallArgs, RunPlaywrightInstallResult, RunnerInfo, RunnerReportFn, RunnerType, SCM_STATES, STATE_FILE_REL, ScaffoldAllArgs, ScaffoldOptions, ScaffoldReportFn, ScaffoldStaticAllArgs, ScaffoldStaticAllResult, ScaffoldedDriftReport, SchemaColumn, SchemaDiffResult, SchemaMigrationError, SchemaMigrationFile, SchemaMigrationLanguage, SchemaMigrationStatusArgs, SchemaMigrationStatusResult, SchemaMigrationToolName, SchemaObject, SchemaQueryRow, ScmAbandonError, ScmAdoptError, ScmClaimError, ScmDoctorFixError, ScmMergeError, ScmPreparePrError, ScmRecoverError, ScmState, ScmWaitCiError, ScmWorkflowState, SetupRunnerArgs, SftddSetupHooks, SpringInitializrClient, SpringJvmLanguage, StaleBranchFinding, SyncEnvArgs, SyncEnvResult, TableSchema, TierTopology, TryCreateCatalogArgs, TryCreateCatalogResult, UcCatalogPermission, UpdateEnvConnectionArgs, UpdateWorkflowsArgs, UpdateWorkflowsResult, UploadDirectoryArgs, UploadDirectoryResult, ValidateAppOptions, ValidateAppResult, ValidationError, ValidationResult, WaitCiArgs, WaitCiResult, WaitForBranchAuthReadyArgs, WaitForBranchReadyArgs, WorkflowDriftReport, WorkflowFileStatus, WorkflowFileUpdate, WorkflowStatus, WorkflowUpdateOutcome, WorkflowVerification, WriteEnvFileArgs, WritePlaywrightTemplatesArgs, WritePlaywrightTemplatesResult, _testMakeBrownfieldFixture, abandonFeatureBranch, addE2eToRunTestsScript, addInfraToPackageJson, addInfraToRunTestsScript, addPlaywrightToPackageJson, adoptLakebaseProject, adoptScmState, applySchemaMigrations, assertAdoptionPreflight, assertCleanForFork, assertCommitTargetNotProtected, assertCreatedProjectReady, buildPostgresUrl, buildSchemaQuery, cacheProjectRetention, catalogExists, catalogExplorerUrl, checkDatabricksAuth, checkoutPaired, claimFeatureBranch, clearRetentionCache, compileMigrationPattern, connectionApplicationName, createBranch, createFeaturePairedBranch, createLakebaseProject, createLongRunningBranch, createPairedBranch, createPerfPairedBranch, createProject, createTestPairedBranch, createUatPairedBranch, cutBackup, databricksAuthPrereqMessage, deleteAppEndpoint, deleteBranch, deleteLakebaseProject, deletePairedBranch, deployClaudeAgents, deployClaudeCommands, deployClaudeSettings, deployClaudeSkills, deployClientProject, deployDeployTargets, deployEnv, deployEnvExample, deployGitignore, deployLanguageProject, deployScripts, deploySpringStarter, deployVscodeSettings, deployWorkflows, deriveCiAppName, describeGates, detectCommandDrift, detectLanguage, detectLanguageAt, detectScaffoldedDrift, detectWorkflowDrift, dirIsEmpty, enableE2eForProject, enableInfraForProject, endpointPath, ensureAppEndpoint, ensureCachedArchive, ensureEndpoint, ensureLakebaseSecretAuth, ensureProfilePinned, ensurePythonBddDeps, ensurePythonE2eDeps, ensureSchemaAndVolume, extractPullNumber, featureBranchName, findDefaultBranchName, findHistoryRetentionDuration, fixFinding, formatJUnit, formatSchemaDiffAsMarkdown, generateAppYaml, getAppEndpoint, getAppServicePrincipal, getBranchByName, getCachedProjectRetention, getCiAppEndpoint, getConnection, getCredential, getDefaultBranch, getDefaultBranchId, getDefaultBranchName, getEndpoint, getProjectInfo, getProjectRetentionDuration, getRunnerInfo, getSchemaDiff, getTargetNames, grantLakebasePermission, grantUcCatalogPermission, inferTierTopology, initWorkflowState, installHooks, installPlaywright, isAllSchemas, isForeignFeatureClaim, isGitTracked, isLongRunningTierBranch, isLtsJavaVersion, isPrereleaseBootVersion, isRunning, isTier, isTtlTooLongError, kitWarmWarning, listAppDeployments, listBranches, listSchemaMigrations, mergeFeature, mergePaired, minLakebaseTtl, mintCredential, normalizeHost, normalizeTierName, parseHostFromAuthDescribe, parseLakebaseTtl, parseTargetsYaml, patchWorkflowsForRunnerType, preparePr, projectPath, propagateCredentials, protectedTierNamesFromEnv, pushFailureHint, queryBranchSchema, queryBranchTables, readEnvVar, readTargets, readWorkflowState, reconcileTierToOrigin, recoverOrphans, release, removeRunner, resolveBranchId, resolveBranchPath, resolveCurrentUser, resolveDatabricksHost, resolveEndpointHost, resolveFeatureStartPoint, resolveJavaHome, resolveLatestBootVersion, resolveLatestLtsJavaVersion, resolveMigrationLanguage, resolveMigrationLayout, resolveParentBranch, resolveProfileForHost, resolveProfileForHostSync, resolveProtectedTierNames, rollbackDeploy, rollbackSchemaMigration, runDoctor, runHealthDoctor, runInfraSuite, runPlaywrightInstall, runnerDir, runnerName, sanitizeFeatureSlug, scaffoldAll, scaffoldStaticAll, schemaMigrationStatus, schemaObjectName, selectProfileForHost, setupRunner, stateFilePath, stopRunner, substituteScmUtilsVersion, substrateVersion, syncEnvToCurrentBranch, tierBranchNames, toolForLanguage, tryCreateCatalog, updateEnvConnection, updateWorkflows, uploadDirectory, validateApp, validateCreateInputs, validateWorkflowState, verifyHooks, verifyProject, verifyWorkflows, waitForBranchAuthReady, waitForBranchReady, waitForCi, warmAndVerifyKit, withLakebaseRollback, workflowStateFileExists, writeEnvFile, writePlaywrightTemplates, writeTargets, writeWorkflowState } from './lakebase/index.cjs';
|
|
4
4
|
export { AddRemoteArgs, AheadBehind, AmendArgs, BranchesAtCommitArgs, CheckoutBranchArgs, CloneRepoArgs, CommitAllArgs, CommitAndPushArgs, CommitArgs, CommitFilesArgs, CreateTagArgs, CreateWorktreeArgs, CwdOnlyArgs, DeleteLocalBranchArgs, DeleteRemoteBranchArgs, DeleteRemoteTagArgs, DeleteTagArgs, DiffFilesArgs, DiscardAllChangesArgs, FetchArgs, FileChangeShort, GetFileAtRefArgs, GetMergeBaseArgs, GitBranchInfo, HasRemoteBranchArgs, IsDirtyArgs, ListLocalBranchesArgs, ListMigrationsOnBranchArgs, ListRemoteBranchesArgs, LogRawArgs, MergeBranchArgs, MergeCommit, NearestParent, OutgoingIncomingArgs, ProtectedBranchError, PublishBranchArgs, PullFromArgs, PushCurrentBranchForPrArgs, PushToArgs, RebaseBranchArgs, RecentMergesArgs, RemoveRemoteArgs, RemoveWorktreeArgs, RenameBranchArgs, ResolveNearestParentArgs, ShaArgs, StashIndexArgs, StashWithMessageArgs, UndoLastCommitArgs, WorkflowScopeError, abortRebase, addRemote, checkoutBranch, checkoutDetached, cherryPick, cloneRepo, commit, commitAll, commitAllIfChanged, commitAllSignedOff, commitAmend, commitAndPush, commitSignedOff, createTag, createWorktree, deleteLocalBranch, deleteRemoteBranch, deleteRemoteTag, deleteTag, discardAllChanges, fetch, getAheadBehind, getBranchesAtCommit, getCommitFiles, getCurrentBranch, getDiffFiles, getFileAtRef, getGitHubUrl, getIncomingCommits, getLogRaw, getLogShortstat, getMergeBase, getNearestParentName, getOutgoingCommits, getOwnerRepo, getRecentMerges, getRepoRoot, gitBranchExists, gitInit, hasRemoteBranch, hasUpstream, isDirty, isRebasing, listLocalBranches, listMigrationsOnBranch, listRemoteBranches, listRemotes, listTags, listWorktrees, mergeBranch, publishBranch, pull, pullFrom, pullRebase, push, pushCurrentBranchForPr, pushTo, rebaseBranch, removeRemote, removeWorktree, renameBranch, resolveDefaultBranch, resolveNearestParent, revert, stash, stashApply, stashDrop, stashDropAll, stashIncludeUntracked, stashList, stashPop, stashStaged, sync, undoLastCommit } from './git/index.cjs';
|
|
5
5
|
export { CopyDirSubstitutedArgs, LAKEBASE_BRANCH_NAME_MAX, OwnerRepo, PROXY_ENV_KEYS, PollProbeDone, PollProbePending, PollProbeResult, PollUntilArgs, PollUntilDoneResult, PollUntilResult, PollUntilTimeoutResult, SyncCiSecretsArgs, copyDirSubstituted, delay, extractZipToDir, formatOwnerRepo, isCliEntry, parseOwnerRepo, patchPomForLakebase, pollUntil, pollUntilDefined, proxyEnvSubset, sanitizeArtifactId, sanitizeBranchName, syncCiSecrets, withProxyEnv } from './util/index.cjs';
|
|
6
6
|
export { C as CwdOnly, E as ExecOptions, e as exec, s as shq } from '../exec-CwxSWhlz.cjs';
|
package/dist/scripts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CreateRepoOptions, GITHUB_SCOPES, GitHubAuthDiagnosis, GitHubAuthSource, GitHubRepoError, GitHubRunnerError, GitHubSecretsError, RepoRunner, VsCodeSessionOptions, createRegistrationToken, createRepo, deleteRepo, deleteRunner, diagnoseGitHubAuth, getActionsEnabled, getCurrentUser, getRepoFullName, getRunnerIdByName, getRunnerStatus, listRepoRunners, listSecretNames, repoExists, resolveGitHubToken, setRepoSecret, setRepoSecrets, tryGhAuthToken, tryVsCodeSession } from './github/index.js';
|
|
2
2
|
export { C as CreatePullRequestArgs, F as FastForwardBranchArgs, G as GitHubPullRequestError, M as MergePairedPullRequestArgs, a as MergePairedPullRequestResult, b as MergePullRequestArgs, c as MergePullRequestResult, P as PullRequestCheck, d as PullRequestFile, e as PullRequestInfo, f as PullRequestReview, W as WorkflowRunSummary, g as createPullRequest, h as fastForwardBranch, i as getPullRequest, j as getPullRequestComments, k as getPullRequestFiles, l as getPullRequestReviews, m as listIssueComments, n as listWorkflowRuns, o as mergePairedPullRequest, p as mergePullRequest } from '../pr-D3CteJaf.js';
|
|
3
|
-
export { AbandonFeatureArgs, AbandonFeatureResult, AddE2eToRunTestsScriptArgs, AddE2eToRunTestsScriptResult, AddInfraToPackageJsonArgs, AddInfraToPackageJsonResult, AddInfraToRunTestsScriptArgs, AddInfraToRunTestsScriptResult, AddPlaywrightToPackageJsonArgs, AddPlaywrightToPackageJsonResult, AddPythonE2eDepsArgs, AddPythonE2eDepsResult, AdoptLakebaseProjectArgs, AdoptLakebaseProjectResult, AdoptStateArgs, AdoptStateResult, AppServicePrincipal, AppliedSchemaMigration, ApplySchemaMigrationsArgs, ApplySchemaMigrationsResult, BranchLookupOpts, BranchMetadata, CONVENTION_TIER_DEFAULTS, CatalogExistsArgs, CheckoutMode, CheckoutPairedArgs, CheckoutPairedResult, ClaimFeatureBranchArgs, ClaimFeatureBranchResult, ClaimedOrphan, ClientFramework, CommandDriftReport, CommandFileEntry, CommandFileStatus, ConnectionArgs, ConsortSetupHooks, CreateBranchArgs, CreateConventionBranchArgs, CreateConventionPairedBranchArgs, CreateLongRunningBranchArgs, CreateLongRunningBranchResult, CreatePairedBranchArgs, CreatePairedBranchResult, CreateProjectArgs, CreateProjectResult, CutBackupArgs, CutBackupResult, DEFAULT_PROTECTED_TIER_NAMES, DatabricksProfile, DeleteAppEndpointArgs, DeleteAppEndpointResult, DeleteBranchArgs, DeletePairedBranchArgs, DeletePairedBranchResult, DeployClaudeCommandsOptions, DeployClaudeCommandsResult, DeployEnvExampleArgs, DeployLanguageProjectArgs, DeploySpringStarterArgs, DeployTarget, DeployTargetsConfig, DetectCommandDriftArgs, DetectScaffoldedDriftArgs, DetectWorkflowDriftArgs, DoctorArgs, DoctorFinding, DoctorReport, DoctorSeverity, DsnArgs, DsnResult, EnableE2eForProjectArgs, EnableE2eForProjectResult, EnableInfraForProjectArgs, EnableInfraForProjectResult, EndpointInfo, EnsureAppEndpointArgs, EnsureAppEndpointResult, EnsureEndpointArgs, EnsureLakebaseSecretAuthArgs, EnsureLakebaseSecretAuthResult, EnsureProfilePinnedArgs, EnsureProfilePinnedResult, EnsureSchemaAndVolumeArgs, EnsureSchemaAndVolumeResult, FIXABLE_FINDING_IDS, FixFindingArgs, FixFindingResult, FixableFindingId, GateInvariant, GateStatus, GenerateAppYamlOptions, GenerateMavenProjectOptions, GetAppEndpointArgs, GetAppEndpointResult, GetAppServicePrincipalArgs, GetCiAppEndpointArgs, GetCiAppEndpointResult, GetConnectionArgs, GetCredentialArgs, GetEndpointArgs, GetSchemaDiffArgs, GrantLakebasePermissionArgs, GrantLakebasePermissionResult, GrantUcCatalogPermissionArgs, GrantUcCatalogPermissionResult, HealthDoctorReport, HookVerification, InfraCheckResult, InfraSuiteResult, InitWorkflowStateArgs, InitializrMetadata, InitializrNetworkError, InitializrParseError, InstallPlaywrightArgs, InstallPlaywrightOptions, InstallPlaywrightResult, LakebaseBranchError, LakebaseBranchInfo, LakebaseBranchTtlTooLongError, LakebasePermissionLevel, LakebaseProjectArgs, LakebaseProjectError, LakebaseProjectInfo, LakebaseProjectMetadata, ListSchemaMigrationsArgs, MIGRATION_DEFAULTS, MergeArgs, MergePairedArgs, MergePairedResult, MergeResult, MigrationDefaults, MigrationLanguage, MigrationLayout, ModifiedSchemaObject, NODE_E2E_TEMPLATE_FILES, OrphanCandidate, PLAYWRIGHT_TEMPLATE_FILES, PLAYWRIGHT_TEST_VERSION_RANGE, PYTEST_BDD_VERSION_RANGE, PYTEST_PLAYWRIGHT_VERSION_RANGE, PYTHON_E2E_TEMPLATE_FILES, PendingSchemaMigration, PoolArgs, PreflightResult, PreparePrArgs, PreparePrResult, ProgressCallback, ProjectLanguage, PropagateCredentialsArgs, PropagateCredentialsResult, ProtectedBranchCommitError, QueryBranchSchemaArgs, RecoverOrphansArgs, RecoverOrphansResult, ReleaseArgs, ReleaseResult, RemoveRunnerArgs, ResolveDatabricksHostArgs, ResolveMigrationLayoutArgs, RollbackDeployArgs, RollbackDeployResult, RollbackOptions, RollbackSchemaMigrationArgs, RollbackSchemaMigrationResult, RunDoctorDeps, RunInfraSuiteArgs, RunPlaywrightInstallArgs, RunPlaywrightInstallResult, RunnerInfo, RunnerReportFn, RunnerType, SCM_STATES, STATE_FILE_REL, ScaffoldAllArgs, ScaffoldOptions, ScaffoldReportFn, ScaffoldStaticAllArgs, ScaffoldStaticAllResult, ScaffoldedDriftReport, SchemaColumn, SchemaDiffResult, SchemaMigrationError, SchemaMigrationFile, SchemaMigrationLanguage, SchemaMigrationStatusArgs, SchemaMigrationStatusResult, SchemaMigrationToolName, SchemaObject, SchemaQueryRow, ScmAbandonError, ScmAdoptError, ScmClaimError, ScmDoctorFixError, ScmMergeError, ScmPreparePrError, ScmRecoverError, ScmState, ScmWaitCiError, ScmWorkflowState, SetupRunnerArgs, SftddSetupHooks, SpringInitializrClient, SpringJvmLanguage, StaleBranchFinding, SyncEnvArgs, SyncEnvResult, TableSchema, TierTopology, TryCreateCatalogArgs, TryCreateCatalogResult, UcCatalogPermission, UpdateEnvConnectionArgs, UpdateWorkflowsArgs, UpdateWorkflowsResult, UploadDirectoryArgs, UploadDirectoryResult, ValidateAppOptions, ValidateAppResult, ValidationError, ValidationResult, WaitCiArgs, WaitCiResult, WaitForBranchAuthReadyArgs, WaitForBranchReadyArgs, WorkflowDriftReport, WorkflowFileStatus, WorkflowFileUpdate, WorkflowStatus, WorkflowUpdateOutcome, WorkflowVerification, WriteEnvFileArgs, WritePlaywrightTemplatesArgs, WritePlaywrightTemplatesResult, _testMakeBrownfieldFixture, abandonFeatureBranch, addE2eToRunTestsScript, addInfraToPackageJson, addInfraToRunTestsScript, addPlaywrightToPackageJson, adoptLakebaseProject, adoptScmState, applySchemaMigrations, assertAdoptionPreflight, assertCleanForFork, assertCommitTargetNotProtected, assertCreatedProjectReady, buildPostgresUrl, buildSchemaQuery, cacheProjectRetention, catalogExists, catalogExplorerUrl, checkDatabricksAuth, checkoutPaired, claimFeatureBranch, clearRetentionCache, compileMigrationPattern, connectionApplicationName, createBranch, createFeaturePairedBranch, createLakebaseProject, createLongRunningBranch, createPairedBranch, createPerfPairedBranch, createProject, createTestPairedBranch, createUatPairedBranch, cutBackup, databricksAuthPrereqMessage, deleteAppEndpoint, deleteBranch, deleteLakebaseProject, deletePairedBranch, deployClaudeAgents, deployClaudeCommands, deployClaudeSettings, deployClaudeSkills, deployClientProject, deployDeployTargets, deployEnv, deployEnvExample, deployGitignore, deployLanguageProject, deployScripts, deploySpringStarter, deployVscodeSettings, deployWorkflows, deriveCiAppName, describeGates, detectCommandDrift, detectLanguage, detectLanguageAt, detectScaffoldedDrift, detectWorkflowDrift, dirIsEmpty, enableE2eForProject, enableInfraForProject, endpointPath, ensureAppEndpoint, ensureCachedArchive, ensureEndpoint, ensureLakebaseSecretAuth, ensureProfilePinned, ensurePythonBddDeps, ensurePythonE2eDeps, ensureSchemaAndVolume, extractPullNumber, featureBranchName, findDefaultBranchName, findHistoryRetentionDuration, fixFinding, formatJUnit, formatSchemaDiffAsMarkdown, generateAppYaml, getAppEndpoint, getAppServicePrincipal, getBranchByName, getCachedProjectRetention, getCiAppEndpoint, getConnection, getCredential, getDefaultBranch, getDefaultBranchId, getDefaultBranchName, getEndpoint, getProjectInfo, getProjectRetentionDuration, getRunnerInfo, getSchemaDiff, getTargetNames, grantLakebasePermission, grantUcCatalogPermission, inferTierTopology, initWorkflowState, installHooks, installPlaywright, isAllSchemas, isForeignFeatureClaim, isLongRunningTierBranch, isLtsJavaVersion, isPrereleaseBootVersion, isRunning, isTier, isTtlTooLongError, kitWarmWarning, listAppDeployments, listBranches, listSchemaMigrations, mergeFeature, mergePaired, minLakebaseTtl, mintCredential, normalizeHost, normalizeTierName, parseHostFromAuthDescribe, parseLakebaseTtl, parseTargetsYaml, patchWorkflowsForRunnerType, preparePr, projectPath, propagateCredentials, protectedTierNamesFromEnv, pushFailureHint, queryBranchSchema, queryBranchTables, readEnvVar, readTargets, readWorkflowState, recoverOrphans, release, removeRunner, resolveBranchId, resolveBranchPath, resolveCurrentUser, resolveDatabricksHost, resolveEndpointHost, resolveFeatureStartPoint, resolveJavaHome, resolveLatestBootVersion, resolveLatestLtsJavaVersion, resolveMigrationLanguage, resolveMigrationLayout, resolveParentBranch, resolveProfileForHost, resolveProfileForHostSync, resolveProtectedTierNames, rollbackDeploy, rollbackSchemaMigration, runDoctor, runHealthDoctor, runInfraSuite, runPlaywrightInstall, runnerDir, runnerName, sanitizeFeatureSlug, scaffoldAll, scaffoldStaticAll, schemaMigrationStatus, schemaObjectName, selectProfileForHost, setupRunner, stateFilePath, stopRunner, substituteScmUtilsVersion, substrateVersion, syncEnvToCurrentBranch, tierBranchNames, toolForLanguage, tryCreateCatalog, updateEnvConnection, updateWorkflows, uploadDirectory, validateApp, validateCreateInputs, validateWorkflowState, verifyHooks, verifyProject, verifyWorkflows, waitForBranchAuthReady, waitForBranchReady, waitForCi, warmAndVerifyKit, withLakebaseRollback, workflowStateFileExists, writeEnvFile, writePlaywrightTemplates, writeTargets, writeWorkflowState } from './lakebase/index.js';
|
|
3
|
+
export { AbandonFeatureArgs, AbandonFeatureResult, AddE2eToRunTestsScriptArgs, AddE2eToRunTestsScriptResult, AddInfraToPackageJsonArgs, AddInfraToPackageJsonResult, AddInfraToRunTestsScriptArgs, AddInfraToRunTestsScriptResult, AddPlaywrightToPackageJsonArgs, AddPlaywrightToPackageJsonResult, AddPythonE2eDepsArgs, AddPythonE2eDepsResult, AdoptLakebaseProjectArgs, AdoptLakebaseProjectResult, AdoptStateArgs, AdoptStateResult, AppServicePrincipal, AppliedSchemaMigration, ApplySchemaMigrationsArgs, ApplySchemaMigrationsResult, BranchLookupOpts, BranchMetadata, CONVENTION_TIER_DEFAULTS, CatalogExistsArgs, CheckoutMode, CheckoutPairedArgs, CheckoutPairedResult, ClaimFeatureBranchArgs, ClaimFeatureBranchResult, ClaimedOrphan, ClientFramework, CommandDriftReport, CommandFileEntry, CommandFileStatus, ConnectionArgs, ConsortSetupHooks, CreateBranchArgs, CreateConventionBranchArgs, CreateConventionPairedBranchArgs, CreateLongRunningBranchArgs, CreateLongRunningBranchResult, CreatePairedBranchArgs, CreatePairedBranchResult, CreateProjectArgs, CreateProjectResult, CutBackupArgs, CutBackupResult, DEFAULT_PROTECTED_TIER_NAMES, DatabricksProfile, DeleteAppEndpointArgs, DeleteAppEndpointResult, DeleteBranchArgs, DeletePairedBranchArgs, DeletePairedBranchResult, DeployClaudeCommandsOptions, DeployClaudeCommandsResult, DeployEnvExampleArgs, DeployLanguageProjectArgs, DeploySpringStarterArgs, DeployTarget, DeployTargetsConfig, DetectCommandDriftArgs, DetectScaffoldedDriftArgs, DetectWorkflowDriftArgs, DoctorArgs, DoctorFinding, DoctorReport, DoctorSeverity, DsnArgs, DsnResult, EnableE2eForProjectArgs, EnableE2eForProjectResult, EnableInfraForProjectArgs, EnableInfraForProjectResult, EndpointInfo, EnsureAppEndpointArgs, EnsureAppEndpointResult, EnsureEndpointArgs, EnsureLakebaseSecretAuthArgs, EnsureLakebaseSecretAuthResult, EnsureProfilePinnedArgs, EnsureProfilePinnedResult, EnsureSchemaAndVolumeArgs, EnsureSchemaAndVolumeResult, FIXABLE_FINDING_IDS, FixFindingArgs, FixFindingResult, FixableFindingId, GateInvariant, GateStatus, GenerateAppYamlOptions, GenerateMavenProjectOptions, GetAppEndpointArgs, GetAppEndpointResult, GetAppServicePrincipalArgs, GetCiAppEndpointArgs, GetCiAppEndpointResult, GetConnectionArgs, GetCredentialArgs, GetEndpointArgs, GetSchemaDiffArgs, GrantLakebasePermissionArgs, GrantLakebasePermissionResult, GrantUcCatalogPermissionArgs, GrantUcCatalogPermissionResult, HealthDoctorReport, HookVerification, InfraCheckResult, InfraSuiteResult, InitWorkflowStateArgs, InitializrMetadata, InitializrNetworkError, InitializrParseError, InstallPlaywrightArgs, InstallPlaywrightOptions, InstallPlaywrightResult, LakebaseBranchError, LakebaseBranchInfo, LakebaseBranchTtlTooLongError, LakebasePermissionLevel, LakebaseProjectArgs, LakebaseProjectError, LakebaseProjectInfo, LakebaseProjectMetadata, ListSchemaMigrationsArgs, MIGRATION_DEFAULTS, MergeArgs, MergePairedArgs, MergePairedResult, MergeResult, MigrationDefaults, MigrationLanguage, MigrationLayout, ModifiedSchemaObject, NODE_E2E_TEMPLATE_FILES, OrphanCandidate, PLAYWRIGHT_TEMPLATE_FILES, PLAYWRIGHT_TEST_VERSION_RANGE, PYTEST_BDD_VERSION_RANGE, PYTEST_PLAYWRIGHT_VERSION_RANGE, PYTHON_E2E_TEMPLATE_FILES, PendingSchemaMigration, PoolArgs, PreflightResult, PreparePrArgs, PreparePrResult, ProgressCallback, ProjectLanguage, PropagateCredentialsArgs, PropagateCredentialsResult, ProtectedBranchCommitError, QueryBranchSchemaArgs, RecoverOrphansArgs, RecoverOrphansResult, ReleaseArgs, ReleaseResult, RemoveRunnerArgs, ResolveDatabricksHostArgs, ResolveMigrationLayoutArgs, RollbackDeployArgs, RollbackDeployResult, RollbackOptions, RollbackSchemaMigrationArgs, RollbackSchemaMigrationResult, RunDoctorDeps, RunInfraSuiteArgs, RunPlaywrightInstallArgs, RunPlaywrightInstallResult, RunnerInfo, RunnerReportFn, RunnerType, SCM_STATES, STATE_FILE_REL, ScaffoldAllArgs, ScaffoldOptions, ScaffoldReportFn, ScaffoldStaticAllArgs, ScaffoldStaticAllResult, ScaffoldedDriftReport, SchemaColumn, SchemaDiffResult, SchemaMigrationError, SchemaMigrationFile, SchemaMigrationLanguage, SchemaMigrationStatusArgs, SchemaMigrationStatusResult, SchemaMigrationToolName, SchemaObject, SchemaQueryRow, ScmAbandonError, ScmAdoptError, ScmClaimError, ScmDoctorFixError, ScmMergeError, ScmPreparePrError, ScmRecoverError, ScmState, ScmWaitCiError, ScmWorkflowState, SetupRunnerArgs, SftddSetupHooks, SpringInitializrClient, SpringJvmLanguage, StaleBranchFinding, SyncEnvArgs, SyncEnvResult, TableSchema, TierTopology, TryCreateCatalogArgs, TryCreateCatalogResult, UcCatalogPermission, UpdateEnvConnectionArgs, UpdateWorkflowsArgs, UpdateWorkflowsResult, UploadDirectoryArgs, UploadDirectoryResult, ValidateAppOptions, ValidateAppResult, ValidationError, ValidationResult, WaitCiArgs, WaitCiResult, WaitForBranchAuthReadyArgs, WaitForBranchReadyArgs, WorkflowDriftReport, WorkflowFileStatus, WorkflowFileUpdate, WorkflowStatus, WorkflowUpdateOutcome, WorkflowVerification, WriteEnvFileArgs, WritePlaywrightTemplatesArgs, WritePlaywrightTemplatesResult, _testMakeBrownfieldFixture, abandonFeatureBranch, addE2eToRunTestsScript, addInfraToPackageJson, addInfraToRunTestsScript, addPlaywrightToPackageJson, adoptLakebaseProject, adoptScmState, applySchemaMigrations, assertAdoptionPreflight, assertCleanForFork, assertCommitTargetNotProtected, assertCreatedProjectReady, buildPostgresUrl, buildSchemaQuery, cacheProjectRetention, catalogExists, catalogExplorerUrl, checkDatabricksAuth, checkoutPaired, claimFeatureBranch, clearRetentionCache, compileMigrationPattern, connectionApplicationName, createBranch, createFeaturePairedBranch, createLakebaseProject, createLongRunningBranch, createPairedBranch, createPerfPairedBranch, createProject, createTestPairedBranch, createUatPairedBranch, cutBackup, databricksAuthPrereqMessage, deleteAppEndpoint, deleteBranch, deleteLakebaseProject, deletePairedBranch, deployClaudeAgents, deployClaudeCommands, deployClaudeSettings, deployClaudeSkills, deployClientProject, deployDeployTargets, deployEnv, deployEnvExample, deployGitignore, deployLanguageProject, deployScripts, deploySpringStarter, deployVscodeSettings, deployWorkflows, deriveCiAppName, describeGates, detectCommandDrift, detectLanguage, detectLanguageAt, detectScaffoldedDrift, detectWorkflowDrift, dirIsEmpty, enableE2eForProject, enableInfraForProject, endpointPath, ensureAppEndpoint, ensureCachedArchive, ensureEndpoint, ensureLakebaseSecretAuth, ensureProfilePinned, ensurePythonBddDeps, ensurePythonE2eDeps, ensureSchemaAndVolume, extractPullNumber, featureBranchName, findDefaultBranchName, findHistoryRetentionDuration, fixFinding, formatJUnit, formatSchemaDiffAsMarkdown, generateAppYaml, getAppEndpoint, getAppServicePrincipal, getBranchByName, getCachedProjectRetention, getCiAppEndpoint, getConnection, getCredential, getDefaultBranch, getDefaultBranchId, getDefaultBranchName, getEndpoint, getProjectInfo, getProjectRetentionDuration, getRunnerInfo, getSchemaDiff, getTargetNames, grantLakebasePermission, grantUcCatalogPermission, inferTierTopology, initWorkflowState, installHooks, installPlaywright, isAllSchemas, isForeignFeatureClaim, isGitTracked, isLongRunningTierBranch, isLtsJavaVersion, isPrereleaseBootVersion, isRunning, isTier, isTtlTooLongError, kitWarmWarning, listAppDeployments, listBranches, listSchemaMigrations, mergeFeature, mergePaired, minLakebaseTtl, mintCredential, normalizeHost, normalizeTierName, parseHostFromAuthDescribe, parseLakebaseTtl, parseTargetsYaml, patchWorkflowsForRunnerType, preparePr, projectPath, propagateCredentials, protectedTierNamesFromEnv, pushFailureHint, queryBranchSchema, queryBranchTables, readEnvVar, readTargets, readWorkflowState, reconcileTierToOrigin, recoverOrphans, release, removeRunner, resolveBranchId, resolveBranchPath, resolveCurrentUser, resolveDatabricksHost, resolveEndpointHost, resolveFeatureStartPoint, resolveJavaHome, resolveLatestBootVersion, resolveLatestLtsJavaVersion, resolveMigrationLanguage, resolveMigrationLayout, resolveParentBranch, resolveProfileForHost, resolveProfileForHostSync, resolveProtectedTierNames, rollbackDeploy, rollbackSchemaMigration, runDoctor, runHealthDoctor, runInfraSuite, runPlaywrightInstall, runnerDir, runnerName, sanitizeFeatureSlug, scaffoldAll, scaffoldStaticAll, schemaMigrationStatus, schemaObjectName, selectProfileForHost, setupRunner, stateFilePath, stopRunner, substituteScmUtilsVersion, substrateVersion, syncEnvToCurrentBranch, tierBranchNames, toolForLanguage, tryCreateCatalog, updateEnvConnection, updateWorkflows, uploadDirectory, validateApp, validateCreateInputs, validateWorkflowState, verifyHooks, verifyProject, verifyWorkflows, waitForBranchAuthReady, waitForBranchReady, waitForCi, warmAndVerifyKit, withLakebaseRollback, workflowStateFileExists, writeEnvFile, writePlaywrightTemplates, writeTargets, writeWorkflowState } from './lakebase/index.js';
|
|
4
4
|
export { AddRemoteArgs, AheadBehind, AmendArgs, BranchesAtCommitArgs, CheckoutBranchArgs, CloneRepoArgs, CommitAllArgs, CommitAndPushArgs, CommitArgs, CommitFilesArgs, CreateTagArgs, CreateWorktreeArgs, CwdOnlyArgs, DeleteLocalBranchArgs, DeleteRemoteBranchArgs, DeleteRemoteTagArgs, DeleteTagArgs, DiffFilesArgs, DiscardAllChangesArgs, FetchArgs, FileChangeShort, GetFileAtRefArgs, GetMergeBaseArgs, GitBranchInfo, HasRemoteBranchArgs, IsDirtyArgs, ListLocalBranchesArgs, ListMigrationsOnBranchArgs, ListRemoteBranchesArgs, LogRawArgs, MergeBranchArgs, MergeCommit, NearestParent, OutgoingIncomingArgs, ProtectedBranchError, PublishBranchArgs, PullFromArgs, PushCurrentBranchForPrArgs, PushToArgs, RebaseBranchArgs, RecentMergesArgs, RemoveRemoteArgs, RemoveWorktreeArgs, RenameBranchArgs, ResolveNearestParentArgs, ShaArgs, StashIndexArgs, StashWithMessageArgs, UndoLastCommitArgs, WorkflowScopeError, abortRebase, addRemote, checkoutBranch, checkoutDetached, cherryPick, cloneRepo, commit, commitAll, commitAllIfChanged, commitAllSignedOff, commitAmend, commitAndPush, commitSignedOff, createTag, createWorktree, deleteLocalBranch, deleteRemoteBranch, deleteRemoteTag, deleteTag, discardAllChanges, fetch, getAheadBehind, getBranchesAtCommit, getCommitFiles, getCurrentBranch, getDiffFiles, getFileAtRef, getGitHubUrl, getIncomingCommits, getLogRaw, getLogShortstat, getMergeBase, getNearestParentName, getOutgoingCommits, getOwnerRepo, getRecentMerges, getRepoRoot, gitBranchExists, gitInit, hasRemoteBranch, hasUpstream, isDirty, isRebasing, listLocalBranches, listMigrationsOnBranch, listRemoteBranches, listRemotes, listTags, listWorktrees, mergeBranch, publishBranch, pull, pullFrom, pullRebase, push, pushCurrentBranchForPr, pushTo, rebaseBranch, removeRemote, removeWorktree, renameBranch, resolveDefaultBranch, resolveNearestParent, revert, stash, stashApply, stashDrop, stashDropAll, stashIncludeUntracked, stashList, stashPop, stashStaged, sync, undoLastCommit } from './git/index.js';
|
|
5
5
|
export { CopyDirSubstitutedArgs, LAKEBASE_BRANCH_NAME_MAX, OwnerRepo, PROXY_ENV_KEYS, PollProbeDone, PollProbePending, PollProbeResult, PollUntilArgs, PollUntilDoneResult, PollUntilResult, PollUntilTimeoutResult, SyncCiSecretsArgs, copyDirSubstituted, delay, extractZipToDir, formatOwnerRepo, isCliEntry, parseOwnerRepo, patchPomForLakebase, pollUntil, pollUntilDefined, proxyEnvSubset, sanitizeArtifactId, sanitizeBranchName, syncCiSecrets, withProxyEnv } from './util/index.js';
|
|
6
6
|
export { C as CwdOnly, E as ExecOptions, e as exec, s as shq } from '../exec-CwxSWhlz.js';
|
package/dist/scripts/index.js
CHANGED
|
@@ -8617,7 +8617,9 @@ function resolveProfile(opts) {
|
|
|
8617
8617
|
function buildInvocation(args, opts) {
|
|
8618
8618
|
const base = opts.env ?? process.env;
|
|
8619
8619
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
8620
|
-
const env =
|
|
8620
|
+
const env = { ...base };
|
|
8621
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
8622
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
8621
8623
|
const profile = resolveProfile(opts);
|
|
8622
8624
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
8623
8625
|
return { argv, env, profile };
|
|
@@ -9700,8 +9702,8 @@ var PKG_NAME = "@databricks-solutions/lakebase-scm-utils";
|
|
|
9700
9702
|
var cached;
|
|
9701
9703
|
function substrateSelfVersion() {
|
|
9702
9704
|
if (cached !== void 0) return cached;
|
|
9703
|
-
if ("0.2.
|
|
9704
|
-
cached = "0.2.
|
|
9705
|
+
if ("0.2.43".length > 0) {
|
|
9706
|
+
cached = "0.2.43";
|
|
9705
9707
|
return cached;
|
|
9706
9708
|
}
|
|
9707
9709
|
cached = "unknown";
|
|
@@ -12567,12 +12569,27 @@ function runTestsE2eBlock() {
|
|
|
12567
12569
|
' export VITE_PROXY_TARGET="http://127.0.0.1:${E2E_BACKEND_PORT}"',
|
|
12568
12570
|
' echo "Local E2E free-port: backend :$E2E_BACKEND_PORT / client :$E2E_CLIENT_PORT"',
|
|
12569
12571
|
"fi",
|
|
12572
|
+
// Stale-server hygiene (issue #197): CI=1 on the Playwright invocations below
|
|
12573
|
+
// forces EVERY config vintage's reuseExistingServer guard OFF (old `!CI` and
|
|
12574
|
+
// new `!!BASE_URL` alike), so the verify never reuses a stale server bound to
|
|
12575
|
+
// an unmigrated branch (the false-500 misdiagnosis). A lingering uvicorn/vite
|
|
12576
|
+
// on the conventional default ports still serves STALE schema to anything
|
|
12577
|
+
// that reaches it, so clear it (TERM, not KILL) before the boot - never when
|
|
12578
|
+
// the caller pre-set the ports (the deploy gate owns that server; BASE_URL).
|
|
12579
|
+
'if [ -z "${BASE_URL:-}" ] && command -v lsof >/dev/null 2>&1; then',
|
|
12580
|
+
' for p in "${E2E_BACKEND_PORT:-8000}" "${E2E_CLIENT_PORT:-5173}"; do',
|
|
12581
|
+
' if lsof -iTCP:"$p" -sTCP:LISTEN -n -P >/dev/null 2>&1; then',
|
|
12582
|
+
' echo "Local E2E: clearing a stale listener on :$p before the webServer boot"',
|
|
12583
|
+
' lsof -ti tcp:"$p" 2>/dev/null | xargs kill 2>/dev/null || true',
|
|
12584
|
+
" fi",
|
|
12585
|
+
" done",
|
|
12586
|
+
"fi",
|
|
12570
12587
|
'if [ -f "$REPO_ROOT/playwright.config.ts" ] || [ -f "$REPO_ROOT/playwright.config.js" ]; then',
|
|
12571
12588
|
' echo "Running Playwright E2E tests..."',
|
|
12572
12589
|
' if [ -f "$REPO_ROOT/package.json" ] && command -v npm >/dev/null 2>&1; then',
|
|
12573
|
-
' (cd "$REPO_ROOT" && npm run test:e2e)',
|
|
12590
|
+
' (cd "$REPO_ROOT" && CI=1 npm run test:e2e)',
|
|
12574
12591
|
" else",
|
|
12575
|
-
' (cd "$REPO_ROOT" && npx --yes playwright test)',
|
|
12592
|
+
' (cd "$REPO_ROOT" && CI=1 npx --yes playwright test)',
|
|
12576
12593
|
" fi",
|
|
12577
12594
|
// Python E2E: pytest-playwright + the shipped tests/e2e/conftest.py
|
|
12578
12595
|
// (live_server). Gated on the conftest + pyproject so it only fires for a
|
|
@@ -12611,7 +12628,8 @@ function runTestsE2eBlock() {
|
|
|
12611
12628
|
'if [ -f "$REPO_ROOT/client/playwright.config.ts" ] || [ -f "$REPO_ROOT/client/playwright.config.js" ] || [ -f "$REPO_ROOT/client/playwright.config.mjs" ]; then',
|
|
12612
12629
|
' echo "Running client Playwright E2E tests..."',
|
|
12613
12630
|
' (cd "$REPO_ROOT/client" && npx --yes playwright install chromium)',
|
|
12614
|
-
|
|
12631
|
+
// CI=1: no server reuse on any config vintage (see the stale-server note above).
|
|
12632
|
+
' (cd "$REPO_ROOT/client" && CI=1 npx --yes playwright test --pass-with-no-tests)',
|
|
12615
12633
|
"fi",
|
|
12616
12634
|
""
|
|
12617
12635
|
].join("\n");
|
|
@@ -13103,6 +13121,39 @@ async function syncCiSecrets(args) {
|
|
|
13103
13121
|
init_esm_shims();
|
|
13104
13122
|
import * as fs17 from "fs";
|
|
13105
13123
|
import * as path16 from "path";
|
|
13124
|
+
import { execFileSync as execFileSync6 } from "child_process";
|
|
13125
|
+
function isGitTracked(projectDir, rel) {
|
|
13126
|
+
try {
|
|
13127
|
+
execFileSync6("git", ["ls-files", "--error-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
13128
|
+
return true;
|
|
13129
|
+
} catch {
|
|
13130
|
+
return false;
|
|
13131
|
+
}
|
|
13132
|
+
}
|
|
13133
|
+
function ensureWorkflowStateUntracked(projectDir) {
|
|
13134
|
+
const rel = ".lakebase/workflow-state.json";
|
|
13135
|
+
try {
|
|
13136
|
+
if (isGitTracked(projectDir, rel)) {
|
|
13137
|
+
execFileSync6("git", ["rm", "--cached", "--quiet", "--ignore-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
13138
|
+
}
|
|
13139
|
+
} catch {
|
|
13140
|
+
}
|
|
13141
|
+
try {
|
|
13142
|
+
const gitignore = path16.join(projectDir, ".gitignore");
|
|
13143
|
+
const existing = fs17.existsSync(gitignore) ? fs17.readFileSync(gitignore, "utf8") : "";
|
|
13144
|
+
if (!existing.split("\n").some((l) => l.trim() === rel)) {
|
|
13145
|
+
const sep4 = existing === "" || existing.endsWith("\n") ? "" : "\n";
|
|
13146
|
+
fs17.appendFileSync(
|
|
13147
|
+
gitignore,
|
|
13148
|
+
`${sep4}# Runtime SCM claim state (per working tree): a branch checkout must never restore
|
|
13149
|
+
# a stale committed claim over the live one (issue #203 / Finding 28).
|
|
13150
|
+
${rel}
|
|
13151
|
+
`
|
|
13152
|
+
);
|
|
13153
|
+
}
|
|
13154
|
+
} catch {
|
|
13155
|
+
}
|
|
13156
|
+
}
|
|
13106
13157
|
var SCM_STATES = [
|
|
13107
13158
|
"scaffold-complete",
|
|
13108
13159
|
"feature-claimed",
|
|
@@ -13155,6 +13206,7 @@ function writeWorkflowState(projectDir, state) {
|
|
|
13155
13206
|
throw new Error(`Refusing to write invalid SCM state:
|
|
13156
13207
|
${summary}`);
|
|
13157
13208
|
}
|
|
13209
|
+
ensureWorkflowStateUntracked(projectDir);
|
|
13158
13210
|
const dir = path16.join(projectDir, ".lakebase");
|
|
13159
13211
|
fs17.mkdirSync(dir, { recursive: true });
|
|
13160
13212
|
const target = stateFilePath(projectDir);
|
|
@@ -15940,6 +15992,20 @@ function pickRunUrl(pr) {
|
|
|
15940
15992
|
|
|
15941
15993
|
// scripts/lakebase/scm-merge.ts
|
|
15942
15994
|
init_esm_shims();
|
|
15995
|
+
async function reconcileTierToOrigin(args) {
|
|
15996
|
+
const { cwd, tier } = args;
|
|
15997
|
+
try {
|
|
15998
|
+
const head = await getCurrentBranch({ cwd });
|
|
15999
|
+
if (head === tier) {
|
|
16000
|
+
await exec2(`git pull --ff-only`, { cwd, timeout: 3e4 });
|
|
16001
|
+
} else {
|
|
16002
|
+
await exec2(`git fetch origin ${shellEscape2(`${tier}:${tier}`)}`, { cwd, timeout: 3e4 });
|
|
16003
|
+
}
|
|
16004
|
+
return null;
|
|
16005
|
+
} catch (err) {
|
|
16006
|
+
return `local reconcile of ${tier} to origin/${tier} failed: ${err instanceof Error ? err.message : String(err)}. Reconcile it by hand (git checkout ${tier} && git pull --ff-only).`;
|
|
16007
|
+
}
|
|
16008
|
+
}
|
|
15943
16009
|
var ScmMergeError = class extends Error {
|
|
15944
16010
|
constructor(message, code) {
|
|
15945
16011
|
super(message);
|
|
@@ -16065,6 +16131,8 @@ async function mergeFeature(args) {
|
|
|
16065
16131
|
}
|
|
16066
16132
|
} else {
|
|
16067
16133
|
headAfter = head || current.branch;
|
|
16134
|
+
const reconcileWarning = await reconcileTierToOrigin({ cwd: args.projectDir, tier: switchTo });
|
|
16135
|
+
if (reconcileWarning) warnings.push(reconcileWarning);
|
|
16068
16136
|
}
|
|
16069
16137
|
if (headAfter !== current.branch) {
|
|
16070
16138
|
try {
|
|
@@ -16446,7 +16514,6 @@ function parentForTopology(t, defaultLeaf) {
|
|
|
16446
16514
|
// scripts/lakebase/scm-doctor.ts
|
|
16447
16515
|
init_esm_shims();
|
|
16448
16516
|
import * as fs29 from "fs";
|
|
16449
|
-
import { execFileSync as execFileSync6 } from "child_process";
|
|
16450
16517
|
import * as path29 from "path";
|
|
16451
16518
|
var FEATURE_PREFIX = "feature/";
|
|
16452
16519
|
var TIER_LEAFS2 = DEFAULT_PROTECTED_TIER_NAMES;
|
|
@@ -16464,14 +16531,6 @@ function readEnv(projectDir) {
|
|
|
16464
16531
|
function leafOf2(b) {
|
|
16465
16532
|
return b.name.split("/").pop() ?? b.name;
|
|
16466
16533
|
}
|
|
16467
|
-
function isGitTracked(projectDir, rel) {
|
|
16468
|
-
try {
|
|
16469
|
-
execFileSync6("git", ["ls-files", "--error-unmatch", "--", rel], { cwd: projectDir, stdio: "ignore" });
|
|
16470
|
-
return true;
|
|
16471
|
-
} catch {
|
|
16472
|
-
return false;
|
|
16473
|
-
}
|
|
16474
|
-
}
|
|
16475
16534
|
function worstOf(a, b) {
|
|
16476
16535
|
const order = ["ok", "warn", "fail"];
|
|
16477
16536
|
return order[Math.max(order.indexOf(a), order.indexOf(b))];
|
|
@@ -18606,6 +18665,7 @@ export {
|
|
|
18606
18665
|
isCliEntry,
|
|
18607
18666
|
isDirty,
|
|
18608
18667
|
isForeignFeatureClaim,
|
|
18668
|
+
isGitTracked,
|
|
18609
18669
|
isLongRunningTierBranch,
|
|
18610
18670
|
isLtsJavaVersion,
|
|
18611
18671
|
isPrereleaseBootVersion,
|
|
@@ -18663,6 +18723,7 @@ export {
|
|
|
18663
18723
|
readTargets,
|
|
18664
18724
|
readWorkflowState,
|
|
18665
18725
|
rebaseBranch,
|
|
18726
|
+
reconcileTierToOrigin,
|
|
18666
18727
|
recoverOrphans,
|
|
18667
18728
|
release,
|
|
18668
18729
|
removeRemote,
|
|
@@ -77780,7 +77780,9 @@ function resolveProfile(opts) {
|
|
|
77780
77780
|
function buildInvocation(args, opts) {
|
|
77781
77781
|
const base = opts.env ?? process.env;
|
|
77782
77782
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
77783
|
-
const env =
|
|
77783
|
+
const env = { ...base };
|
|
77784
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
77785
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
77784
77786
|
const profile = resolveProfile(opts);
|
|
77785
77787
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
77786
77788
|
return { argv, env, profile };
|
|
@@ -263,7 +263,9 @@ function resolveProfile(opts) {
|
|
|
263
263
|
function buildInvocation(args, opts) {
|
|
264
264
|
const base = opts.env ?? process.env;
|
|
265
265
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
266
|
-
const env =
|
|
266
|
+
const env = { ...base };
|
|
267
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
268
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
267
269
|
const profile = resolveProfile(opts);
|
|
268
270
|
const argv = profile && !opts.noProfile && !args.includes("--profile") ? [...args, "--profile", profile] : args;
|
|
269
271
|
return { argv, env, profile };
|
|
@@ -201,7 +201,9 @@ function resolveProfile(opts) {
|
|
|
201
201
|
function buildInvocation(args2, opts) {
|
|
202
202
|
const base = opts.env ?? process.env;
|
|
203
203
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
204
|
-
const env =
|
|
204
|
+
const env = { ...base };
|
|
205
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
206
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
205
207
|
const profile = resolveProfile(opts);
|
|
206
208
|
const argv = profile && !opts.noProfile && !args2.includes("--profile") ? [...args2, "--profile", profile] : args2;
|
|
207
209
|
return { argv, env, profile };
|
|
@@ -178,7 +178,9 @@ function resolveProfile(opts) {
|
|
|
178
178
|
function buildInvocation(args2, opts) {
|
|
179
179
|
const base = opts.env ?? process.env;
|
|
180
180
|
const trimmedHost = effectiveHost(opts)?.replace(/\/+$/, "");
|
|
181
|
-
const env =
|
|
181
|
+
const env = { ...base };
|
|
182
|
+
if (trimmedHost) env.DATABRICKS_HOST = trimmedHost;
|
|
183
|
+
delete env.DATABRICKS_WORKSPACE_ID;
|
|
182
184
|
const profile = resolveProfile(opts);
|
|
183
185
|
const argv = profile && !opts.noProfile && !args2.includes("--profile") ? [...args2, "--profile", profile] : args2;
|
|
184
186
|
return { argv, env, profile };
|