windmill-cli 1.798.1 → 1.800.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/main.js +132 -54
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16769,7 +16769,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16769
16769
|
PASSWORD: undefined,
|
|
16770
16770
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16771
16771
|
USERNAME: undefined,
|
|
16772
|
-
VERSION: "1.
|
|
16772
|
+
VERSION: "1.800.0",
|
|
16773
16773
|
WITH_CREDENTIALS: true,
|
|
16774
16774
|
interceptors: {
|
|
16775
16775
|
request: new Interceptors,
|
|
@@ -17303,6 +17303,7 @@ __export(exports_services_gen, {
|
|
|
17303
17303
|
getAuditLogsS3BackfillStatus: () => getAuditLogsS3BackfillStatus,
|
|
17304
17304
|
getAuditLogsS3Status: () => getAuditLogsS3Status,
|
|
17305
17305
|
getAzureTrigger: () => getAzureTrigger,
|
|
17306
|
+
getBillableSeats: () => getBillableSeats,
|
|
17306
17307
|
getCapture: () => getCapture,
|
|
17307
17308
|
getCaptureConfigs: () => getCaptureConfigs,
|
|
17308
17309
|
getCiTestResults: () => getCiTestResults,
|
|
@@ -19030,6 +19031,14 @@ var backendVersion = () => {
|
|
|
19030
19031
|
workspace: data3.workspace
|
|
19031
19032
|
}
|
|
19032
19033
|
});
|
|
19034
|
+
}, getBillableSeats = (data3) => {
|
|
19035
|
+
return request(OpenAPI, {
|
|
19036
|
+
method: "GET",
|
|
19037
|
+
url: "/w/{workspace}/workspaces/billable_seats",
|
|
19038
|
+
path: {
|
|
19039
|
+
workspace: data3.workspace
|
|
19040
|
+
}
|
|
19041
|
+
});
|
|
19033
19042
|
}, getPremiumInfo = (data3) => {
|
|
19034
19043
|
return request(OpenAPI, {
|
|
19035
19044
|
method: "GET",
|
|
@@ -27066,6 +27075,7 @@ __export(exports_gen, {
|
|
|
27066
27075
|
getAuditLogsS3BackfillStatus: () => getAuditLogsS3BackfillStatus,
|
|
27067
27076
|
getAuditLogsS3Status: () => getAuditLogsS3Status,
|
|
27068
27077
|
getAzureTrigger: () => getAzureTrigger,
|
|
27078
|
+
getBillableSeats: () => getBillableSeats,
|
|
27069
27079
|
getCapture: () => getCapture,
|
|
27070
27080
|
getCaptureConfigs: () => getCaptureConfigs,
|
|
27071
27081
|
getCiTestResults: () => getCiTestResults,
|
|
@@ -27776,7 +27786,7 @@ var init_auth = __esm(async () => {
|
|
|
27776
27786
|
});
|
|
27777
27787
|
|
|
27778
27788
|
// src/core/constants.ts
|
|
27779
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
27789
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.800.0";
|
|
27780
27790
|
|
|
27781
27791
|
// src/utils/git.ts
|
|
27782
27792
|
var exports_git = {};
|
|
@@ -65843,7 +65853,7 @@ var init_openflow = __esm(() => {
|
|
|
65843
65853
|
openflow_default = {
|
|
65844
65854
|
openapi: "3.0.3",
|
|
65845
65855
|
info: {
|
|
65846
|
-
version: "1.
|
|
65856
|
+
version: "1.800.0",
|
|
65847
65857
|
title: "OpenFlow Spec",
|
|
65848
65858
|
contact: {
|
|
65849
65859
|
name: "Ruben Fiszel",
|
|
@@ -68182,7 +68192,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68182
68192
|
},
|
|
68183
68193
|
error_handler_path: {
|
|
68184
68194
|
type: "string",
|
|
68185
|
-
description: "Path to a script
|
|
68195
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
68186
68196
|
},
|
|
68187
68197
|
error_handler_args: {
|
|
68188
68198
|
type: "object",
|
|
@@ -68411,7 +68421,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68411
68421
|
},
|
|
68412
68422
|
error_handler_path: {
|
|
68413
68423
|
type: "string",
|
|
68414
|
-
description: "Path to a script
|
|
68424
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
68415
68425
|
},
|
|
68416
68426
|
error_handler_args: {
|
|
68417
68427
|
type: "object",
|
|
@@ -68595,7 +68605,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68595
68605
|
},
|
|
68596
68606
|
error_handler_path: {
|
|
68597
68607
|
type: "string",
|
|
68598
|
-
description: "Path to a script
|
|
68608
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
68599
68609
|
},
|
|
68600
68610
|
error_handler_args: {
|
|
68601
68611
|
type: "object",
|
|
@@ -68733,7 +68743,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68733
68743
|
},
|
|
68734
68744
|
error_handler_path: {
|
|
68735
68745
|
type: "string",
|
|
68736
|
-
description: "Path to a script
|
|
68746
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
68737
68747
|
},
|
|
68738
68748
|
error_handler_args: {
|
|
68739
68749
|
type: "object",
|
|
@@ -68859,7 +68869,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68859
68869
|
},
|
|
68860
68870
|
error_handler_path: {
|
|
68861
68871
|
type: "string",
|
|
68862
|
-
description: "Path to a script
|
|
68872
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
68863
68873
|
},
|
|
68864
68874
|
error_handler_args: {
|
|
68865
68875
|
type: "object",
|
|
@@ -68997,7 +69007,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
68997
69007
|
},
|
|
68998
69008
|
error_handler_path: {
|
|
68999
69009
|
type: "string",
|
|
69000
|
-
description: "Path to a script
|
|
69010
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
69001
69011
|
},
|
|
69002
69012
|
error_handler_args: {
|
|
69003
69013
|
type: "object",
|
|
@@ -69283,7 +69293,7 @@ Frontend appends a \`*\` to the displayed name.
|
|
|
69283
69293
|
},
|
|
69284
69294
|
error_handler_path: {
|
|
69285
69295
|
type: "string",
|
|
69286
|
-
description: "Path to a script
|
|
69296
|
+
description: "Path to a script to run when the triggered job fails. A bare path, without the script/ or flow/ prefix a schedule error handler takes; it cannot be a flow."
|
|
69287
69297
|
},
|
|
69288
69298
|
error_handler_args: {
|
|
69289
69299
|
type: "object",
|
|
@@ -73317,17 +73327,15 @@ async function readDirRecursive(dir, rel = "", out = {}) {
|
|
|
73317
73327
|
}
|
|
73318
73328
|
return out;
|
|
73319
73329
|
}
|
|
73320
|
-
async function
|
|
73321
|
-
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73322
|
-
if (!fs11.existsSync(localDir)) {
|
|
73323
|
-
return [];
|
|
73324
|
-
}
|
|
73325
|
-
const files = await readDirRecursive(localDir);
|
|
73326
|
-
let remote = {};
|
|
73330
|
+
async function fetchSharedUi(workspace) {
|
|
73327
73331
|
try {
|
|
73328
73332
|
const got = await getSharedUi({ workspace });
|
|
73329
|
-
|
|
73330
|
-
} catch {
|
|
73333
|
+
return got.files ?? {};
|
|
73334
|
+
} catch {
|
|
73335
|
+
return;
|
|
73336
|
+
}
|
|
73337
|
+
}
|
|
73338
|
+
function sharedUiChanges(files, remote, keepDeleted) {
|
|
73331
73339
|
const changes = [];
|
|
73332
73340
|
for (const [rel, content] of Object.entries(files)) {
|
|
73333
73341
|
const p4 = `${SHARED_UI_DIR}/${rel}`;
|
|
@@ -73337,24 +73345,54 @@ async function diffSharedUi(workspace) {
|
|
|
73337
73345
|
changes.push({ type: "edited", path: p4, before: remote[rel], after: content });
|
|
73338
73346
|
}
|
|
73339
73347
|
}
|
|
73340
|
-
|
|
73341
|
-
|
|
73342
|
-
|
|
73348
|
+
if (!keepDeleted) {
|
|
73349
|
+
for (const rel of Object.keys(remote)) {
|
|
73350
|
+
if (!Object.hasOwn(files, rel)) {
|
|
73351
|
+
changes.push({ type: "deleted", path: `${SHARED_UI_DIR}/${rel}` });
|
|
73352
|
+
}
|
|
73343
73353
|
}
|
|
73344
73354
|
}
|
|
73345
73355
|
return changes;
|
|
73346
73356
|
}
|
|
73347
|
-
async function
|
|
73357
|
+
async function diffSharedUi(workspace, keepDeleted) {
|
|
73358
|
+
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73359
|
+
if (!fs11.existsSync(localDir)) {
|
|
73360
|
+
return [];
|
|
73361
|
+
}
|
|
73362
|
+
const files = await readDirRecursive(localDir);
|
|
73363
|
+
const remote = await fetchSharedUi(workspace);
|
|
73364
|
+
if (remote === undefined && keepDeleted) {
|
|
73365
|
+
return [];
|
|
73366
|
+
}
|
|
73367
|
+
return sharedUiChanges(files, remote ?? {}, keepDeleted);
|
|
73368
|
+
}
|
|
73369
|
+
async function pushSharedUi(workspace, keepDeleted) {
|
|
73348
73370
|
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73349
73371
|
if (!fs11.existsSync(localDir)) {
|
|
73350
73372
|
return false;
|
|
73351
73373
|
}
|
|
73352
|
-
const
|
|
73353
|
-
|
|
73374
|
+
const files = await readDirRecursive(localDir);
|
|
73375
|
+
const remote = await fetchSharedUi(workspace);
|
|
73376
|
+
if (remote === undefined && keepDeleted) {
|
|
73377
|
+
warn(colors.yellow("Could not read the shared UI folder from the remote; skipping its push so --keep-deleted does not clear it."));
|
|
73378
|
+
return false;
|
|
73379
|
+
}
|
|
73380
|
+
if (sharedUiChanges(files, remote ?? {}, keepDeleted).length === 0) {
|
|
73354
73381
|
info(colors.gray("Shared UI folder up to date"));
|
|
73355
73382
|
return false;
|
|
73356
73383
|
}
|
|
73357
|
-
|
|
73384
|
+
if (keepDeleted) {
|
|
73385
|
+
for (const [rel, content] of Object.entries(remote)) {
|
|
73386
|
+
if (!Object.hasOwn(files, rel)) {
|
|
73387
|
+
Object.defineProperty(files, rel, {
|
|
73388
|
+
value: content,
|
|
73389
|
+
writable: true,
|
|
73390
|
+
enumerable: true,
|
|
73391
|
+
configurable: true
|
|
73392
|
+
});
|
|
73393
|
+
}
|
|
73394
|
+
}
|
|
73395
|
+
}
|
|
73358
73396
|
await updateSharedUi({
|
|
73359
73397
|
workspace,
|
|
73360
73398
|
requestBody: { files }
|
|
@@ -73362,7 +73400,7 @@ async function pushSharedUi(workspace) {
|
|
|
73362
73400
|
info(colors.green(`Pushed ${Object.keys(files).length} file(s) to shared UI folder`));
|
|
73363
73401
|
return true;
|
|
73364
73402
|
}
|
|
73365
|
-
async function pullSharedUi(workspace) {
|
|
73403
|
+
async function pullSharedUi(workspace, keepDeleted) {
|
|
73366
73404
|
const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
|
|
73367
73405
|
let got;
|
|
73368
73406
|
try {
|
|
@@ -73389,14 +73427,16 @@ async function pullSharedUi(workspace) {
|
|
|
73389
73427
|
fs11.writeFileSync(full, content, "utf-8");
|
|
73390
73428
|
}
|
|
73391
73429
|
}
|
|
73392
|
-
|
|
73393
|
-
|
|
73394
|
-
|
|
73395
|
-
|
|
73396
|
-
|
|
73397
|
-
|
|
73398
|
-
|
|
73399
|
-
|
|
73430
|
+
if (!keepDeleted) {
|
|
73431
|
+
const known = new Set(Object.keys(files));
|
|
73432
|
+
const local = await readDirRecursive(localDir);
|
|
73433
|
+
for (const rel of Object.keys(local)) {
|
|
73434
|
+
if (!known.has(rel)) {
|
|
73435
|
+
const full = path11.join(localDir, rel);
|
|
73436
|
+
try {
|
|
73437
|
+
fs11.unlinkSync(full);
|
|
73438
|
+
} catch {}
|
|
73439
|
+
}
|
|
73400
73440
|
}
|
|
73401
73441
|
}
|
|
73402
73442
|
info(colors.green(`Pulled ${Object.keys(files).length} file(s) into ui/`));
|
|
@@ -75886,6 +75926,15 @@ function countDatatableMigrationRecords(changes) {
|
|
|
75886
75926
|
function untrackedDatatableMigrationDeletions(changes, recorded) {
|
|
75887
75927
|
return changes.filter((c5) => c5.name === "deleted" && isDatatableMigrationPath(c5.path) && !(recorded.kind === "known" && recorded.paths.has(c5.path)));
|
|
75888
75928
|
}
|
|
75929
|
+
function dropDeletions(changes, keptOn) {
|
|
75930
|
+
const deletions = changes.filter((c5) => c5.name === "deleted");
|
|
75931
|
+
if (deletions.length === 0)
|
|
75932
|
+
return;
|
|
75933
|
+
const kept = changes.filter((c5) => c5.name !== "deleted");
|
|
75934
|
+
changes.length = 0;
|
|
75935
|
+
changes.push(...kept);
|
|
75936
|
+
info(colors.yellow(`--keep-deleted: keeping ${deletions.length} item(s) that exist only ` + (keptOn === "local" ? `on disk instead of deleting them locally` : `on the remote instead of deleting them from the workspace`)));
|
|
75937
|
+
}
|
|
75889
75938
|
async function addModuleParentToChanged(p4, tracker) {
|
|
75890
75939
|
if (isModuleEntryMetadata(p4)) {
|
|
75891
75940
|
try {
|
|
@@ -76143,6 +76192,9 @@ async function pull(opts) {
|
|
|
76143
76192
|
const remote = ZipFSElement(zipFile, !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, resourceTypeToIsFileset, true, parseSyncBehavior(opts.syncBehavior) >= 1);
|
|
76144
76193
|
const local = !opts.stateful ? await FSFSElement(process.cwd(), codebases, true) : await FSFSElement(path13.join(process.cwd(), ".wmill"), [], true);
|
|
76145
76194
|
const { changes, localMap } = await compareDynFSElement(remote, local, await ignoreF(opts), opts.json ?? false, opts, false, codebases, true, specificItems, wsNameForFiles, true, await isCaseInsensitiveFilesystem(process.cwd()));
|
|
76195
|
+
if (opts.keepDeleted) {
|
|
76196
|
+
dropDeletions(changes, "local");
|
|
76197
|
+
}
|
|
76146
76198
|
info(`remote (${workspace.name}) -> local: ${changes.length} changes to apply`);
|
|
76147
76199
|
if (wsSpecificMerge.serverItems && wsSpecificMerge.serverItems.length > 0) {
|
|
76148
76200
|
const changedPaths = new Set(changes.map((c5) => c5.path));
|
|
@@ -76362,10 +76414,12 @@ Done! All ${changes.length} changes applied locally and wmill-lock.yaml updated.
|
|
|
76362
76414
|
warn(colors.yellow(`Could not auto-fill missing lockfile entries: ${e4 instanceof Error ? e4.message : e4}`));
|
|
76363
76415
|
}
|
|
76364
76416
|
}
|
|
76365
|
-
|
|
76366
|
-
|
|
76367
|
-
|
|
76368
|
-
|
|
76417
|
+
if (!opts.dryRun) {
|
|
76418
|
+
try {
|
|
76419
|
+
await pullSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
76420
|
+
} catch (e4) {
|
|
76421
|
+
warn(`Failed to pull shared UI folder: ${e4}`);
|
|
76422
|
+
}
|
|
76369
76423
|
}
|
|
76370
76424
|
}
|
|
76371
76425
|
async function dedupeLockfilesOnDisk(args) {
|
|
@@ -76477,6 +76531,9 @@ function prettyChanges(changes, specificItems, branchOverride, folderDefaultAnno
|
|
|
76477
76531
|
function removeSuffix(str, suffix) {
|
|
76478
76532
|
return str.slice(0, str.length - suffix.length);
|
|
76479
76533
|
}
|
|
76534
|
+
function syncPushDestructiveWarning(keepDeleted) {
|
|
76535
|
+
return "`wmill sync push` is destructive: applying it deploys these changes to the remote workspace and overwrites " + (keepDeleted ? "remote items that differ from local" : "or deletes remote items that differ from or are absent locally") + " — this is not automatically reversible. If you are an AI agent, do NOT run `wmill sync push` (without --dry-run) until the user has explicitly confirmed this deploy, unless your custom instructions explicitly allow bypassing that confirmation.";
|
|
76536
|
+
}
|
|
76480
76537
|
async function checkServerLockJobs(workspaceId, sinceIso, changedPaths) {
|
|
76481
76538
|
const belongsToPush = (scriptPath) => !!scriptPath && changedPaths.some((p4) => p4 === scriptPath || p4.startsWith(scriptPath + "."));
|
|
76482
76539
|
const listJobs2 = async (path14) => {
|
|
@@ -76652,6 +76709,9 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
|
|
|
76652
76709
|
if (unconvertedTree) {
|
|
76653
76710
|
warn(colors.yellow(`dedupeLockfiles is on but this checkout still holds one lockfile per script. Run 'wmill generate-metadata' (or pull) to convert it — until then every script reads as changed.`));
|
|
76654
76711
|
}
|
|
76712
|
+
if (opts.keepDeleted) {
|
|
76713
|
+
dropDeletions(changes, "remote");
|
|
76714
|
+
}
|
|
76655
76715
|
const autoRegenerate = !!opts.autoMetadata;
|
|
76656
76716
|
const staleScripts = [];
|
|
76657
76717
|
const staleFlows = [];
|
|
@@ -76817,7 +76877,7 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
|
|
|
76817
76877
|
}
|
|
76818
76878
|
if (opts.dryRun) {
|
|
76819
76879
|
try {
|
|
76820
|
-
for (const c5 of await diffSharedUi(workspace.workspaceId)) {
|
|
76880
|
+
for (const c5 of await diffSharedUi(workspace.workspaceId, opts.keepDeleted)) {
|
|
76821
76881
|
if (c5.type === "added") {
|
|
76822
76882
|
changes.push({ name: "added", path: c5.path, content: "" });
|
|
76823
76883
|
} else if (c5.type === "deleted") {
|
|
@@ -76939,7 +76999,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
76939
76999
|
} : {}
|
|
76940
77000
|
})),
|
|
76941
77001
|
total: changes.length,
|
|
76942
|
-
...changes.length > 0 ? { warning:
|
|
77002
|
+
...changes.length > 0 ? { warning: syncPushDestructiveWarning(opts.keepDeleted) } : {}
|
|
76943
77003
|
};
|
|
76944
77004
|
console.log(JSON.stringify(result, null, 2));
|
|
76945
77005
|
return;
|
|
@@ -76986,7 +77046,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
76986
77046
|
if (opts.dryRun) {
|
|
76987
77047
|
info(colors.gray(`Dry run complete.`));
|
|
76988
77048
|
warn(colors.yellow(`
|
|
76989
|
-
⚠ ${
|
|
77049
|
+
⚠ ${syncPushDestructiveWarning(opts.keepDeleted)}`));
|
|
76990
77050
|
return;
|
|
76991
77051
|
}
|
|
76992
77052
|
let permissionedAsContext = undefined;
|
|
@@ -77567,7 +77627,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
77567
77627
|
}
|
|
77568
77628
|
}
|
|
77569
77629
|
try {
|
|
77570
|
-
await pushSharedUi(workspace.workspaceId);
|
|
77630
|
+
await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
77571
77631
|
} catch (e4) {
|
|
77572
77632
|
warn(`Failed to push shared UI folder: ${e4}`);
|
|
77573
77633
|
}
|
|
@@ -77626,7 +77686,7 @@ Done! All ${changes.length} changes pushed to the remote workspace ${workspace.w
|
|
|
77626
77686
|
let sharedUiPushed = false;
|
|
77627
77687
|
if (!opts.dryRun) {
|
|
77628
77688
|
try {
|
|
77629
|
-
sharedUiPushed = await pushSharedUi(workspace.workspaceId);
|
|
77689
|
+
sharedUiPushed = await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
|
|
77630
77690
|
} catch (e4) {
|
|
77631
77691
|
warn(`Failed to push shared UI folder: ${e4}`);
|
|
77632
77692
|
}
|
|
@@ -77670,7 +77730,7 @@ var import_yaml14, branchDeprecationWarned = false, yamlOptions, _caseInsensitiv
|
|
|
77670
77730
|
}
|
|
77671
77731
|
}, isWhitelisted = (p4) => {
|
|
77672
77732
|
return p4 == "." + SEP9 || p4 == "" || p4 == "u" || p4 == "f" || p4 == "g" || p4 == "ui" || p4 == "users" || p4 == "groups" || p4 == "dependencies" || p4 == SHARED_LOCK_DIR || p4 == "migrations";
|
|
77673
|
-
},
|
|
77733
|
+
}, command8, sync_default;
|
|
77674
77734
|
var init_sync = __esm(async () => {
|
|
77675
77735
|
init_client();
|
|
77676
77736
|
init_colors2();
|
|
@@ -77717,7 +77777,7 @@ var init_sync = __esm(async () => {
|
|
|
77717
77777
|
aliasDuplicateObjects: false,
|
|
77718
77778
|
singleQuote: true
|
|
77719
77779
|
};
|
|
77720
|
-
command8 = new Command().description("sync local with a remote workspaces or the opposite (push or pull)").action(() => info("2 actions available, pull and push. Use -h to display help.")).command("pull").description("Pull any remote changes and apply them locally.").option("--yes", "Pull without needing confirmation").option("--dry-run", "Show changes that would be pulled without actually pushing").option("--plain-secrets", "Pull secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--promotion <branch:string>", "Use promotionOverrides from the specified branch instead of regular overrides").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").action(pull).command("push").description("Push any local changes and apply them remotely.").option("--yes", "Push without needing confirmation").option("--dry-run", "Show changes that would be pushed without actually pushing").option("--plain-secrets", "Push secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-reencrypt-on-key-change", "When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push").option("--parallel <number>", "Number of changes to process in parallel").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").option("--lint", "Run lint validation before pushing").option("--locks-required", "Fail if scripts or flow inline scripts that need locks have no locks").option("--auto-metadata", "Automatically regenerate stale metadata (locks and schemas) before pushing").option("--accept-overriding-permissioned-as-with-self", "Accept that items with a different permissioned_as will be updated with your own user").action(push4).command("git-deploy").hidden().description("Internal git-sync deployment-callback step (used by the git-sync hub script). Runs inside an existing clone: switches to the wm_deploy/fork branch when applicable, pulls workspace content, then commits and pushes.").option("--repository <repo:string>", "Repository resource path (e.g. u/user/repo)").option("--git-deploy-items <json:string>", "JSON array of {path_type,path,parent_path,commit_msg} being deployed").option("--use-individual-branch", "Push each deployed object to its own wm_deploy/<workspace>/<...> branch").option("--group-by-folder", "With --use-individual-branch, group deployed objects per folder branch").option("--only-create-branch", "Only create/push the deploy branch, skip pulling and committing files").option("--parent-workspace-id <id:string>", "Parent workspace id, used to root a fork-of-a-fork branch").option("--dev-workspace-label <label:string>", "Environment label of a dev workspace (dev, staging, uat, ...); its deploys go to that branch").option("--parent-dev-workspace-label <label:string>", "Environment label of the parent dev workspace; roots a fork-of-dev branch on it").option("--skip-secrets", "Skip syncing only secrets variables").option("--git-committer-email <email:string>", "Committer email for the deploy commit (GPG-signed repos pass the GPG key email; defaults to WM_EMAIL)").option("--git-committer-name <name:string>", "Committer name for the deploy commit (defaults to WM_USERNAME)").action(gitDeploy);
|
|
77780
|
+
command8 = new Command().description("sync local with a remote workspaces or the opposite (push or pull)").action(() => info("2 actions available, pull and push. Use -h to display help.")).command("pull").description("Pull any remote changes and apply them locally.").option("--yes", "Pull without needing confirmation").option("--dry-run", "Show changes that would be pulled without actually pushing").option("--plain-secrets", "Pull secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--keep-deleted", "Do not delete local files for items that no longer exist on the remote workspace. Only adds and updates.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account. Overrides wmill.yaml excludes").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--promotion <branch:string>", "Use promotionOverrides from the specified branch instead of regular overrides").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").action(pull).command("push").description("Push any local changes and apply them remotely.").option("--yes", "Push without needing confirmation").option("--dry-run", "Show changes that would be pushed without actually pushing").option("--plain-secrets", "Push secrets as plain text").option("--json", "Use JSON instead of YAML").option("--skip-variables", "Skip syncing variables (including secrets)").option("--skip-secrets", "Skip syncing only secrets variables").option("--include-secrets", "Include secrets in sync (overrides skipSecrets in wmill.yaml)").option("--skip-resources", "Skip syncing resources").option("--skip-resource-types", "Skip syncing resource types").option("--skip-scripts", "Skip syncing scripts").option("--skip-flows", "Skip syncing flows").option("--skip-apps", "Skip syncing apps").option("--skip-folders", "Skip syncing folders").option("--skip-workspace-dependencies", "Skip syncing workspace dependencies").option("--include-schedules", "Include syncing schedules").option("--include-triggers", "Include syncing triggers").option("--include-users", "Include syncing users").option("--include-groups", "Include syncing groups").option("--include-settings", "Include syncing workspace settings").option("--include-key", "Include workspace encryption key").option("--skip-reencrypt-on-key-change", "When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.").option("--keep-deleted", "Do not delete remote items that no longer exist locally. Only adds and updates.").option("--skip-branch-validation", "Skip git branch validation and prompts").option("--json-output", "Output results in JSON format").option("-i --includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)").option("-e --excludes <patterns:file[]>", "Comma separated patterns to specify which file to NOT take into account.").option("--extra-includes <patterns:file[]>", "Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Useful to still take wmill.yaml into account and act as a second pattern to satisfy").option("--message <message:string>", "Include a message that will be added to all scripts/flows/apps updated during this push").option("--parallel <number>", "Number of changes to process in parallel").option("--repository <repo:string>", "Specify repository path (e.g., u/user/repo) when multiple repositories exist").option("--branch, --env <branch:string>", "[Deprecated: use --workspace] Override the current git branch/environment").option("--lint", "Run lint validation before pushing").option("--locks-required", "Fail if scripts or flow inline scripts that need locks have no locks").option("--auto-metadata", "Automatically regenerate stale metadata (locks and schemas) before pushing").option("--accept-overriding-permissioned-as-with-self", "Accept that items with a different permissioned_as will be updated with your own user").action(push4).command("git-deploy").hidden().description("Internal git-sync deployment-callback step (used by the git-sync hub script). Runs inside an existing clone: switches to the wm_deploy/fork branch when applicable, pulls workspace content, then commits and pushes.").option("--repository <repo:string>", "Repository resource path (e.g. u/user/repo)").option("--git-deploy-items <json:string>", "JSON array of {path_type,path,parent_path,commit_msg} being deployed").option("--use-individual-branch", "Push each deployed object to its own wm_deploy/<workspace>/<...> branch").option("--group-by-folder", "With --use-individual-branch, group deployed objects per folder branch").option("--only-create-branch", "Only create/push the deploy branch, skip pulling and committing files").option("--parent-workspace-id <id:string>", "Parent workspace id, used to root a fork-of-a-fork branch").option("--dev-workspace-label <label:string>", "Environment label of a dev workspace (dev, staging, uat, ...); its deploys go to that branch").option("--parent-dev-workspace-label <label:string>", "Environment label of the parent dev workspace; roots a fork-of-dev branch on it").option("--skip-secrets", "Skip syncing only secrets variables").option("--git-committer-email <email:string>", "Committer email for the deploy commit (GPG-signed repos pass the GPG key email; defaults to WM_EMAIL)").option("--git-committer-name <name:string>", "Committer name for the deploy commit (defaults to WM_USERNAME)").action(gitDeploy);
|
|
77721
77781
|
sync_default = command8;
|
|
77722
77782
|
});
|
|
77723
77783
|
|
|
@@ -95209,6 +95269,7 @@ sync local with a remote workspaces or the opposite (push or pull)
|
|
|
95209
95269
|
- \`--include-groups\` - Include syncing groups
|
|
95210
95270
|
- \`--include-settings\` - Include syncing workspace settings
|
|
95211
95271
|
- \`--include-key\` - Include workspace encryption key
|
|
95272
|
+
- \`--keep-deleted\` - Do not delete local files for items that no longer exist on the remote workspace. Only adds and updates.
|
|
95212
95273
|
- \`--skip-branch-validation\` - Skip git branch validation and prompts
|
|
95213
95274
|
- \`--json-output\` - Output results in JSON format
|
|
95214
95275
|
- \`-i --includes <patterns:file[]>\` - Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string). Overrides wmill.yaml includes
|
|
@@ -95240,6 +95301,7 @@ sync local with a remote workspaces or the opposite (push or pull)
|
|
|
95240
95301
|
- \`--include-settings\` - Include syncing workspace settings
|
|
95241
95302
|
- \`--include-key\` - Include workspace encryption key
|
|
95242
95303
|
- \`--skip-reencrypt-on-key-change\` - When the pushed encryption key differs from the remote, do NOT re-encrypt existing remote secrets. Only safe if they are already encrypted with the new key (e.g. workspace/instance migration). Default is to re-encrypt.
|
|
95304
|
+
- \`--keep-deleted\` - Do not delete remote items that no longer exist locally. Only adds and updates.
|
|
95243
95305
|
- \`--skip-branch-validation\` - Skip git branch validation and prompts
|
|
95244
95306
|
- \`--json-output\` - Output results in JSON format
|
|
95245
95307
|
- \`-i --includes <patterns:file[]>\` - Comma separated patterns to specify which file to take into account (among files that are compatible with windmill). Patterns can include * (any string until '/') and ** (any string)
|
|
@@ -95623,7 +95685,9 @@ properties:
|
|
|
95623
95685
|
at once (1-65535)
|
|
95624
95686
|
error_handler_path:
|
|
95625
95687
|
type: string
|
|
95626
|
-
description: Path to a script
|
|
95688
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
95689
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
95690
|
+
be a flow.
|
|
95627
95691
|
error_handler_args:
|
|
95628
95692
|
type: object
|
|
95629
95693
|
description: The arguments to pass to the script or flow
|
|
@@ -96073,7 +96137,9 @@ properties:
|
|
|
96073
96137
|
as JSON
|
|
96074
96138
|
error_handler_path:
|
|
96075
96139
|
type: string
|
|
96076
|
-
description: Path to a script
|
|
96140
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96141
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96142
|
+
be a flow.
|
|
96077
96143
|
error_handler_args:
|
|
96078
96144
|
type: object
|
|
96079
96145
|
description: The arguments to pass to the script or flow
|
|
@@ -96240,7 +96306,9 @@ properties:
|
|
|
96240
96306
|
endpoint.
|
|
96241
96307
|
error_handler_path:
|
|
96242
96308
|
type: string
|
|
96243
|
-
description: Path to a script
|
|
96309
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96310
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96311
|
+
be a flow.
|
|
96244
96312
|
error_handler_args:
|
|
96245
96313
|
type: object
|
|
96246
96314
|
description: The arguments to pass to the script or flow
|
|
@@ -96364,7 +96432,9 @@ properties:
|
|
|
96364
96432
|
- v5
|
|
96365
96433
|
error_handler_path:
|
|
96366
96434
|
type: string
|
|
96367
|
-
description: Path to a script
|
|
96435
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96436
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96437
|
+
be a flow.
|
|
96368
96438
|
error_handler_args:
|
|
96369
96439
|
type: object
|
|
96370
96440
|
description: The arguments to pass to the script or flow
|
|
@@ -96460,7 +96530,9 @@ properties:
|
|
|
96460
96530
|
description: Array of NATS subjects to subscribe to
|
|
96461
96531
|
error_handler_path:
|
|
96462
96532
|
type: string
|
|
96463
|
-
description: Path to a script
|
|
96533
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96534
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96535
|
+
be a flow.
|
|
96464
96536
|
error_handler_args:
|
|
96465
96537
|
type: object
|
|
96466
96538
|
description: The arguments to pass to the script or flow
|
|
@@ -96550,7 +96622,9 @@ properties:
|
|
|
96550
96622
|
description: Name of the PostgreSQL logical replication slot to use
|
|
96551
96623
|
error_handler_path:
|
|
96552
96624
|
type: string
|
|
96553
|
-
description: Path to a script
|
|
96625
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96626
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96627
|
+
be a flow.
|
|
96554
96628
|
error_handler_args:
|
|
96555
96629
|
type: object
|
|
96556
96630
|
description: The arguments to pass to the script or flow
|
|
@@ -96797,7 +96871,9 @@ properties:
|
|
|
96797
96871
|
description: Array of SQS message attribute names to include with each message
|
|
96798
96872
|
error_handler_path:
|
|
96799
96873
|
type: string
|
|
96800
|
-
description: Path to a script
|
|
96874
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
96875
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
96876
|
+
be a flow.
|
|
96801
96877
|
error_handler_args:
|
|
96802
96878
|
type: object
|
|
96803
96879
|
description: The arguments to pass to the script or flow
|
|
@@ -96996,7 +97072,9 @@ properties:
|
|
|
96996
97072
|
The extracted value replaces {{state}} in the heartbeat message.
|
|
96997
97073
|
error_handler_path:
|
|
96998
97074
|
type: string
|
|
96999
|
-
description: Path to a script
|
|
97075
|
+
description: Path to a script to run when the triggered job fails. A bare path,
|
|
97076
|
+
without the script/ or flow/ prefix a schedule error handler takes; it cannot
|
|
97077
|
+
be a flow.
|
|
97000
97078
|
error_handler_args:
|
|
97001
97079
|
type: object
|
|
97002
97080
|
description: The arguments to pass to the script or flow
|