windmill-cli 1.799.0 → 1.800.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/esm/main.js +97 -40
  2. 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.799.0",
16772
+ VERSION: "1.800.1",
16773
16773
  WITH_CREDENTIALS: true,
16774
16774
  interceptors: {
16775
16775
  request: new Interceptors,
@@ -27786,7 +27786,7 @@ var init_auth = __esm(async () => {
27786
27786
  });
27787
27787
 
27788
27788
  // src/core/constants.ts
27789
- var WM_FORK_PREFIX = "wm-fork", VERSION = "1.799.0";
27789
+ var WM_FORK_PREFIX = "wm-fork", VERSION = "1.800.1";
27790
27790
 
27791
27791
  // src/utils/git.ts
27792
27792
  var exports_git = {};
@@ -65853,7 +65853,7 @@ var init_openflow = __esm(() => {
65853
65853
  openflow_default = {
65854
65854
  openapi: "3.0.3",
65855
65855
  info: {
65856
- version: "1.799.0",
65856
+ version: "1.800.1",
65857
65857
  title: "OpenFlow Spec",
65858
65858
  contact: {
65859
65859
  name: "Ruben Fiszel",
@@ -73327,17 +73327,15 @@ async function readDirRecursive(dir, rel = "", out = {}) {
73327
73327
  }
73328
73328
  return out;
73329
73329
  }
73330
- async function diffSharedUi(workspace) {
73331
- const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
73332
- if (!fs11.existsSync(localDir)) {
73333
- return [];
73334
- }
73335
- const files = await readDirRecursive(localDir);
73336
- let remote = {};
73330
+ async function fetchSharedUi(workspace) {
73337
73331
  try {
73338
73332
  const got = await getSharedUi({ workspace });
73339
- remote = got.files ?? {};
73340
- } catch {}
73333
+ return got.files ?? {};
73334
+ } catch {
73335
+ return;
73336
+ }
73337
+ }
73338
+ function sharedUiChanges(files, remote, keepDeleted) {
73341
73339
  const changes = [];
73342
73340
  for (const [rel, content] of Object.entries(files)) {
73343
73341
  const p4 = `${SHARED_UI_DIR}/${rel}`;
@@ -73347,24 +73345,54 @@ async function diffSharedUi(workspace) {
73347
73345
  changes.push({ type: "edited", path: p4, before: remote[rel], after: content });
73348
73346
  }
73349
73347
  }
73350
- for (const rel of Object.keys(remote)) {
73351
- if (!Object.hasOwn(files, rel)) {
73352
- changes.push({ type: "deleted", path: `${SHARED_UI_DIR}/${rel}` });
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
+ }
73353
73353
  }
73354
73354
  }
73355
73355
  return changes;
73356
73356
  }
73357
- async function pushSharedUi(workspace) {
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) {
73358
73370
  const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
73359
73371
  if (!fs11.existsSync(localDir)) {
73360
73372
  return false;
73361
73373
  }
73362
- const diff2 = await diffSharedUi(workspace);
73363
- if (diff2.length === 0) {
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) {
73364
73381
  info(colors.gray("Shared UI folder up to date"));
73365
73382
  return false;
73366
73383
  }
73367
- const files = await readDirRecursive(localDir);
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
+ }
73368
73396
  await updateSharedUi({
73369
73397
  workspace,
73370
73398
  requestBody: { files }
@@ -73372,7 +73400,7 @@ async function pushSharedUi(workspace) {
73372
73400
  info(colors.green(`Pushed ${Object.keys(files).length} file(s) to shared UI folder`));
73373
73401
  return true;
73374
73402
  }
73375
- async function pullSharedUi(workspace) {
73403
+ async function pullSharedUi(workspace, keepDeleted) {
73376
73404
  const localDir = path11.join(process.cwd(), SHARED_UI_DIR);
73377
73405
  let got;
73378
73406
  try {
@@ -73399,14 +73427,16 @@ async function pullSharedUi(workspace) {
73399
73427
  fs11.writeFileSync(full, content, "utf-8");
73400
73428
  }
73401
73429
  }
73402
- const known = new Set(Object.keys(files));
73403
- const local = await readDirRecursive(localDir);
73404
- for (const rel of Object.keys(local)) {
73405
- if (!known.has(rel)) {
73406
- const full = path11.join(localDir, rel);
73407
- try {
73408
- fs11.unlinkSync(full);
73409
- } catch {}
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
+ }
73410
73440
  }
73411
73441
  }
73412
73442
  info(colors.green(`Pulled ${Object.keys(files).length} file(s) into ui/`));
@@ -74077,6 +74107,7 @@ __export(exports_sync, {
74077
74107
  countDatatableMigrationRecords: () => countDatatableMigrationRecords,
74078
74108
  dedupeLockfilesOnDisk: () => dedupeLockfilesOnDisk,
74079
74109
  default: () => sync_default,
74110
+ dropDeletions: () => dropDeletions,
74080
74111
  elementsToMap: () => elementsToMap,
74081
74112
  extractFieldsForRawApps: () => extractFieldsForRawApps,
74082
74113
  extractInlineScriptsForApps: () => extractInlineScriptsForApps,
@@ -75896,6 +75927,19 @@ function countDatatableMigrationRecords(changes) {
75896
75927
  function untrackedDatatableMigrationDeletions(changes, recorded) {
75897
75928
  return changes.filter((c5) => c5.name === "deleted" && isDatatableMigrationPath(c5.path) && !(recorded.kind === "known" && recorded.paths.has(c5.path)));
75898
75929
  }
75930
+ function removesDbtDescriptor(change) {
75931
+ return isDbtDescriptorPath(change.path) && (change.name === "added" && change.content === "" || change.name === "edited" && change.after === "");
75932
+ }
75933
+ function dropDeletions(changes, keptOn) {
75934
+ const isDeletion = (c5) => c5.name === "deleted" || keptOn === "local" && removesDbtDescriptor(c5);
75935
+ const deletions = changes.filter(isDeletion);
75936
+ if (deletions.length === 0)
75937
+ return;
75938
+ const kept = changes.filter((c5) => !isDeletion(c5));
75939
+ changes.length = 0;
75940
+ changes.push(...kept);
75941
+ 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`)));
75942
+ }
75899
75943
  async function addModuleParentToChanged(p4, tracker) {
75900
75944
  if (isModuleEntryMetadata(p4)) {
75901
75945
  try {
@@ -76153,6 +76197,9 @@ async function pull(opts) {
76153
76197
  const remote = ZipFSElement(zipFile, !opts.json, opts.defaultTs ?? "bun", resourceTypeToFormatExtension, resourceTypeToIsFileset, true, parseSyncBehavior(opts.syncBehavior) >= 1);
76154
76198
  const local = !opts.stateful ? await FSFSElement(process.cwd(), codebases, true) : await FSFSElement(path13.join(process.cwd(), ".wmill"), [], true);
76155
76199
  const { changes, localMap } = await compareDynFSElement(remote, local, await ignoreF(opts), opts.json ?? false, opts, false, codebases, true, specificItems, wsNameForFiles, true, await isCaseInsensitiveFilesystem(process.cwd()));
76200
+ if (opts.keepDeleted) {
76201
+ dropDeletions(changes, "local");
76202
+ }
76156
76203
  info(`remote (${workspace.name}) -> local: ${changes.length} changes to apply`);
76157
76204
  if (wsSpecificMerge.serverItems && wsSpecificMerge.serverItems.length > 0) {
76158
76205
  const changedPaths = new Set(changes.map((c5) => c5.path));
@@ -76210,7 +76257,7 @@ async function pull(opts) {
76210
76257
  }
76211
76258
  const target = path13.join(process.cwd(), targetPath);
76212
76259
  const stateTarget = path13.join(process.cwd(), ".wmill", targetPath);
76213
- if (isDbtDescriptorPath(change.path) && (change.name === "added" && change.content === "" || change.name === "edited" && change.after === "")) {
76260
+ if (removesDbtDescriptor(change)) {
76214
76261
  await rm3(target, { force: true });
76215
76262
  if (opts.stateful) {
76216
76263
  await rm3(stateTarget, { force: true });
@@ -76372,10 +76419,12 @@ Done! All ${changes.length} changes applied locally and wmill-lock.yaml updated.
76372
76419
  warn(colors.yellow(`Could not auto-fill missing lockfile entries: ${e4 instanceof Error ? e4.message : e4}`));
76373
76420
  }
76374
76421
  }
76375
- try {
76376
- await pullSharedUi(workspace.workspaceId);
76377
- } catch (e4) {
76378
- warn(`Failed to pull shared UI folder: ${e4}`);
76422
+ if (!opts.dryRun) {
76423
+ try {
76424
+ await pullSharedUi(workspace.workspaceId, opts.keepDeleted);
76425
+ } catch (e4) {
76426
+ warn(`Failed to pull shared UI folder: ${e4}`);
76427
+ }
76379
76428
  }
76380
76429
  }
76381
76430
  async function dedupeLockfilesOnDisk(args) {
@@ -76487,6 +76536,9 @@ function prettyChanges(changes, specificItems, branchOverride, folderDefaultAnno
76487
76536
  function removeSuffix(str, suffix) {
76488
76537
  return str.slice(0, str.length - suffix.length);
76489
76538
  }
76539
+ function syncPushDestructiveWarning(keepDeleted) {
76540
+ 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.";
76541
+ }
76490
76542
  async function checkServerLockJobs(workspaceId, sinceIso, changedPaths) {
76491
76543
  const belongsToPush = (scriptPath) => !!scriptPath && changedPaths.some((p4) => p4 === scriptPath || p4.startsWith(scriptPath + "."));
76492
76544
  const listJobs2 = async (path14) => {
@@ -76662,6 +76714,9 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
76662
76714
  if (unconvertedTree) {
76663
76715
  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.`));
76664
76716
  }
76717
+ if (opts.keepDeleted) {
76718
+ dropDeletions(changes, "remote");
76719
+ }
76665
76720
  const autoRegenerate = !!opts.autoMetadata;
76666
76721
  const staleScripts = [];
76667
76722
  const staleFlows = [];
@@ -76827,7 +76882,7 @@ Push aborted: ${lockIssues.length} script(s) missing locks.`));
76827
76882
  }
76828
76883
  if (opts.dryRun) {
76829
76884
  try {
76830
- for (const c5 of await diffSharedUi(workspace.workspaceId)) {
76885
+ for (const c5 of await diffSharedUi(workspace.workspaceId, opts.keepDeleted)) {
76831
76886
  if (c5.type === "added") {
76832
76887
  changes.push({ name: "added", path: c5.path, content: "" });
76833
76888
  } else if (c5.type === "deleted") {
@@ -76949,7 +77004,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
76949
77004
  } : {}
76950
77005
  })),
76951
77006
  total: changes.length,
76952
- ...changes.length > 0 ? { warning: SYNC_PUSH_DESTRUCTIVE_WARNING } : {}
77007
+ ...changes.length > 0 ? { warning: syncPushDestructiveWarning(opts.keepDeleted) } : {}
76953
77008
  };
76954
77009
  console.log(JSON.stringify(result, null, 2));
76955
77010
  return;
@@ -76996,7 +77051,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
76996
77051
  if (opts.dryRun) {
76997
77052
  info(colors.gray(`Dry run complete.`));
76998
77053
  warn(colors.yellow(`
76999
- ⚠ ${SYNC_PUSH_DESTRUCTIVE_WARNING}`));
77054
+ ⚠ ${syncPushDestructiveWarning(opts.keepDeleted)}`));
77000
77055
  return;
77001
77056
  }
77002
77057
  let permissionedAsContext = undefined;
@@ -77577,7 +77632,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
77577
77632
  }
77578
77633
  }
77579
77634
  try {
77580
- await pushSharedUi(workspace.workspaceId);
77635
+ await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
77581
77636
  } catch (e4) {
77582
77637
  warn(`Failed to push shared UI folder: ${e4}`);
77583
77638
  }
@@ -77636,7 +77691,7 @@ Done! All ${changes.length} changes pushed to the remote workspace ${workspace.w
77636
77691
  let sharedUiPushed = false;
77637
77692
  if (!opts.dryRun) {
77638
77693
  try {
77639
- sharedUiPushed = await pushSharedUi(workspace.workspaceId);
77694
+ sharedUiPushed = await pushSharedUi(workspace.workspaceId, opts.keepDeleted);
77640
77695
  } catch (e4) {
77641
77696
  warn(`Failed to push shared UI folder: ${e4}`);
77642
77697
  }
@@ -77680,7 +77735,7 @@ var import_yaml14, branchDeprecationWarned = false, yamlOptions, _caseInsensitiv
77680
77735
  }
77681
77736
  }, isWhitelisted = (p4) => {
77682
77737
  return p4 == "." + SEP9 || p4 == "" || p4 == "u" || p4 == "f" || p4 == "g" || p4 == "ui" || p4 == "users" || p4 == "groups" || p4 == "dependencies" || p4 == SHARED_LOCK_DIR || p4 == "migrations";
77683
- }, SYNC_PUSH_DESTRUCTIVE_WARNING = "`wmill sync push` is destructive: applying it deploys these changes to the remote workspace and overwrites 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.", command8, sync_default;
77738
+ }, command8, sync_default;
77684
77739
  var init_sync = __esm(async () => {
77685
77740
  init_client();
77686
77741
  init_colors2();
@@ -77727,7 +77782,7 @@ var init_sync = __esm(async () => {
77727
77782
  aliasDuplicateObjects: false,
77728
77783
  singleQuote: true
77729
77784
  };
77730
- 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);
77785
+ 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);
77731
77786
  sync_default = command8;
77732
77787
  });
77733
77788
 
@@ -95219,6 +95274,7 @@ sync local with a remote workspaces or the opposite (push or pull)
95219
95274
  - \`--include-groups\` - Include syncing groups
95220
95275
  - \`--include-settings\` - Include syncing workspace settings
95221
95276
  - \`--include-key\` - Include workspace encryption key
95277
+ - \`--keep-deleted\` - Do not delete local files for items that no longer exist on the remote workspace. Only adds and updates.
95222
95278
  - \`--skip-branch-validation\` - Skip git branch validation and prompts
95223
95279
  - \`--json-output\` - Output results in JSON format
95224
95280
  - \`-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
@@ -95250,6 +95306,7 @@ sync local with a remote workspaces or the opposite (push or pull)
95250
95306
  - \`--include-settings\` - Include syncing workspace settings
95251
95307
  - \`--include-key\` - Include workspace encryption key
95252
95308
  - \`--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.
95309
+ - \`--keep-deleted\` - Do not delete remote items that no longer exist locally. Only adds and updates.
95253
95310
  - \`--skip-branch-validation\` - Skip git branch validation and prompts
95254
95311
  - \`--json-output\` - Output results in JSON format
95255
95312
  - \`-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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.799.0",
3
+ "version": "1.800.1",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",