windmill-cli 1.716.0 → 1.717.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 +14 -27
  2. package/package.json +2 -2
package/esm/main.js CHANGED
@@ -16772,7 +16772,7 @@ var init_OpenAPI = __esm(() => {
16772
16772
  PASSWORD: undefined,
16773
16773
  TOKEN: getEnv3("WM_TOKEN"),
16774
16774
  USERNAME: undefined,
16775
- VERSION: "1.716.0",
16775
+ VERSION: "1.717.1",
16776
16776
  WITH_CREDENTIALS: true,
16777
16777
  interceptors: {
16778
16778
  request: new Interceptors,
@@ -25289,7 +25289,7 @@ var init_auth = __esm(async () => {
25289
25289
  });
25290
25290
 
25291
25291
  // src/core/constants.ts
25292
- var WM_FORK_PREFIX = "wm-fork", VERSION = "1.716.0";
25292
+ var WM_FORK_PREFIX = "wm-fork", VERSION = "1.717.1";
25293
25293
 
25294
25294
  // src/utils/git.ts
25295
25295
  var exports_git = {};
@@ -26943,13 +26943,6 @@ function isFolderResourcePathAnyFormat(p) {
26943
26943
  }
26944
26944
  return false;
26945
26945
  }
26946
- function isRawAppBackendPath(filePath) {
26947
- const suffixes = getFolderSuffixes();
26948
- const normalizedPath = filePath.replaceAll(SEP2, "/");
26949
- const escapedSuffix = suffixes.raw_app.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
26950
- const pattern = new RegExp(`${escapedSuffix}/backend/`);
26951
- return pattern.test(normalizedPath);
26952
- }
26953
26946
  function isAppInlineScriptPath(filePath) {
26954
26947
  const suffixes = getFolderSuffixes();
26955
26948
  const normalizedPath = filePath.replaceAll(SEP2, "/");
@@ -63694,9 +63687,6 @@ import { sep as SEP6 } from "node:path";
63694
63687
  import * as path7 from "node:path";
63695
63688
  import fs8 from "node:fs";
63696
63689
  import { execSync as execSync4 } from "node:child_process";
63697
- function isRawAppBackendPath2(filePath) {
63698
- return isRawAppBackendPath(filePath);
63699
- }
63700
63690
  function isAppInlineScriptPath2(filePath) {
63701
63691
  return isAppInlineScriptPath(filePath);
63702
63692
  }
@@ -63779,7 +63769,7 @@ async function handleScriptMetadata(path8, workspace, alreadySynced, message, ra
63779
63769
  }
63780
63770
  async function handleFile(path8, workspace, alreadySynced, message, opts, rawWorkspaceDependencies, codebases, permissionedAsContext) {
63781
63771
  const moduleEntryPoint = isModuleEntryPoint(path8);
63782
- if (!isAppInlineScriptPath2(path8) && !isFlowInlineScriptPath2(path8) && !isRawAppBackendPath2(path8) && (!isScriptModulePath(path8) || moduleEntryPoint) && exts.some((exts2) => path8.endsWith(exts2))) {
63772
+ if (!isAppInlineScriptPath2(path8) && !isFlowInlineScriptPath2(path8) && !isRawAppPath(path8) && (!isScriptModulePath(path8) || moduleEntryPoint) && exts.some((exts2) => path8.endsWith(exts2))) {
63783
63773
  if (alreadySynced.includes(path8)) {
63784
63774
  return true;
63785
63775
  }
@@ -68144,7 +68134,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
68144
68134
  await pushFilesetParentResource(change.path, workspace.workspaceId, alreadySynced, cachedWsNameForPush, specificItems);
68145
68135
  continue;
68146
68136
  }
68147
- if (change.path.endsWith(".script.json") || change.path.endsWith(".script.yaml") || change.path.endsWith(".lock") || isFileResource(change.path)) {
68137
+ if (!isRawAppFile(change.path) && (change.path.endsWith(".script.json") || change.path.endsWith(".script.yaml") || change.path.endsWith(".lock") || isFileResource(change.path))) {
68148
68138
  continue;
68149
68139
  } else if (await handleFile(change.path, workspace, alreadySynced, opts.message, opts, rawWorkspaceDependencies, codebases, permissionedAsContext)) {
68150
68140
  continue;
@@ -86135,8 +86125,8 @@ import path21 from "node:path";
86135
86125
  import process22 from "node:process";
86136
86126
  function buildManagedTsconfig() {
86137
86127
  const paths = {};
86138
- for (const [alias, dir] of Object.entries(WORKSPACE_IMPORT_ALIASES)) {
86139
- paths[`${alias}/*`] = [`./${dir}/*`];
86128
+ for (const dir of WORKSPACE_IMPORT_DIRS) {
86129
+ paths[`/${dir}/*`] = [`./${dir}/*`];
86140
86130
  }
86141
86131
  return {
86142
86132
  compilerOptions: {
@@ -86210,7 +86200,7 @@ async function refreshManagedTsconfig(defaultTs, mode) {
86210
86200
  const co = parsed.compilerOptions;
86211
86201
  const paths = co && typeof co === "object" && !Array.isArray(co) ? co.paths : undefined;
86212
86202
  if (paths && typeof paths === "object" && !Array.isArray(paths) && Object.keys(paths).length > 0) {
86213
- return "defines its own `compilerOptions.paths` (TS won't merge ours in via " + '`extends`); add "$f/*": ["./f/*"] and "$u/*": ["./u/*"] to it';
86203
+ return "defines its own `compilerOptions.paths` (TS won't merge ours in via " + '`extends`); add "/f/*": ["./f/*"] and "/u/*": ["./u/*"] to it';
86214
86204
  }
86215
86205
  const ext2 = parsed.extends;
86216
86206
  const managed2 = `./${MANAGED_TSCONFIG}`;
@@ -86231,8 +86221,8 @@ async function refreshManagedTsconfig(defaultTs, mode) {
86231
86221
  }
86232
86222
  async function refreshManagedDenoImportMap(mode) {
86233
86223
  const imports = {};
86234
- for (const [alias, dir] of Object.entries(WORKSPACE_IMPORT_ALIASES)) {
86235
- imports[`${alias}/`] = `./${dir}/`;
86224
+ for (const dir of WORKSPACE_IMPORT_DIRS) {
86225
+ imports[`/${dir}/`] = `./${dir}/`;
86236
86226
  }
86237
86227
  writeFileSync7(path21.join(process22.cwd(), MANAGED_IMPORT_MAP), JSON.stringify({ imports }, null, 2) + `
86238
86228
  `);
@@ -86280,7 +86270,7 @@ async function ensureUserReferencesManaged(opts) {
86280
86270
  try {
86281
86271
  parsed = JSON.parse(text);
86282
86272
  } catch {
86283
- warn(`${existingName} couldn't be auto-edited (it may contain comments). Add ${opts.hint} ` + `to pick up wmill's recommended settings (incl. $f//$u/ import aliases).`);
86273
+ warn(`${existingName} couldn't be auto-edited (it may contain comments). Add ${opts.hint} ` + `to pick up wmill's recommended settings (incl. workspace /f/, /u/ import resolution).`);
86284
86274
  return;
86285
86275
  }
86286
86276
  if (opts.legacyFormats?.some((fmt) => deepEqual2(parsed, fmt))) {
@@ -86292,7 +86282,7 @@ async function ensureUserReferencesManaged(opts) {
86292
86282
  const next = JSON.parse(JSON.stringify(parsed));
86293
86283
  const wired = opts.wire(next);
86294
86284
  if (wired !== true) {
86295
- warn(`${existingName}: ${wired}. Add ${opts.hint} manually to pick up wmill's ` + `recommended settings (incl. $f//$u/ import aliases).`);
86285
+ warn(`${existingName}: ${wired}. Add ${opts.hint} manually to pick up wmill's ` + `recommended settings (incl. workspace /f/, /u/ import resolution).`);
86296
86286
  return;
86297
86287
  }
86298
86288
  const consent = opts.mode.assumeYes ? true : opts.mode.interactive ? await Confirm.prompt({
@@ -86300,7 +86290,7 @@ async function ensureUserReferencesManaged(opts) {
86300
86290
  default: true
86301
86291
  }) : false;
86302
86292
  if (!consent) {
86303
- info(colors.gray(`Left ${existingName} unchanged — add ${opts.hint} when ready to enable ` + `$f//$u/ import aliases (or re-run \`wmill refresh tsconfig\`).`));
86293
+ info(colors.gray(`Left ${existingName} unchanged — add ${opts.hint} when ready to enable ` + `workspace /f/, /u/ import resolution (or re-run \`wmill refresh tsconfig\`).`));
86304
86294
  return;
86305
86295
  }
86306
86296
  writeFileSync7(existing, JSON.stringify(next, null, 2) + `
@@ -86353,7 +86343,7 @@ function emitTsconfigWarning(message) {
86353
86343
  process22.stderr.write(`${colors.yellow(message)}
86354
86344
  `);
86355
86345
  }
86356
- var WORKSPACE_IMPORT_ALIASES, MANAGED_TSCONFIG = "tsconfig.wmill.json", MANAGED_IMPORT_MAP = "import_map.wmill.json", MANAGED_NOTICE, TSCONFIG_HASH_PREFIX = "// wmill-tsconfig-hash: ", TSCONFIG_HASH_REGEX, LEGACY_GENERATED_TSCONFIGS, command30, tsconfig_default;
86346
+ var WORKSPACE_IMPORT_DIRS, MANAGED_TSCONFIG = "tsconfig.wmill.json", MANAGED_IMPORT_MAP = "import_map.wmill.json", MANAGED_NOTICE, TSCONFIG_HASH_PREFIX = "// wmill-tsconfig-hash: ", TSCONFIG_HASH_REGEX, LEGACY_GENERATED_TSCONFIGS, command30, tsconfig_default;
86357
86347
  var init_tsconfig = __esm(async () => {
86358
86348
  init_colors2();
86359
86349
  init_mod3();
@@ -86362,10 +86352,7 @@ var init_tsconfig = __esm(async () => {
86362
86352
  init_confirm(),
86363
86353
  init_conf()
86364
86354
  ]);
86365
- WORKSPACE_IMPORT_ALIASES = {
86366
- $f: "f",
86367
- $u: "u"
86368
- };
86355
+ WORKSPACE_IMPORT_DIRS = ["f", "u"];
86369
86356
  MANAGED_NOTICE = "// Managed by wmill — regenerated by `wmill init` / `wmill refresh tsconfig`.\n" + `// Do not edit; put your overrides in tsconfig.json (which extends this file).
86370
86357
  `;
86371
86358
  TSCONFIG_HASH_REGEX = /^\/\/ wmill-tsconfig-hash: ([0-9a-f]{12})/m;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.716.0",
3
+ "version": "1.717.1",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "esbuild": "0.28.0",
20
20
  "windmill-parser-wasm-py": "1.693.1",
21
- "windmill-parser-wasm-ts": "1.714.0",
21
+ "windmill-parser-wasm-ts": "1.695.0",
22
22
  "windmill-parser-wasm-regex": "1.692.0",
23
23
  "windmill-parser-wasm-go": "1.510.1",
24
24
  "windmill-parser-wasm-php": "1.647.1",