windmill-cli 1.657.1 → 1.658.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.
Files changed (2) hide show
  1. package/esm/main.js +26 -11
  2. package/package.json +1 -1
package/esm/main.js CHANGED
@@ -11785,7 +11785,7 @@ var init_OpenAPI = __esm(() => {
11785
11785
  PASSWORD: undefined,
11786
11786
  TOKEN: getEnv2("WM_TOKEN"),
11787
11787
  USERNAME: undefined,
11788
- VERSION: "1.657.1",
11788
+ VERSION: "1.658.0",
11789
11789
  WITH_CREDENTIALS: true,
11790
11790
  interceptors: {
11791
11791
  request: new Interceptors,
@@ -31128,7 +31128,7 @@ end
31128
31128
 
31129
31129
  // src/utils/script_common.ts
31130
31130
  function languageNeedsLock(language) {
31131
- return workspaceDependenciesLanguages.some((l) => l.language === language) || language === "deno" || language === "rust" || language === "ansible";
31131
+ return workspaceDependenciesLanguages.some((l) => l.language === language) && language !== "powershell" || language === "deno" || language === "rust" || language === "ansible";
31132
31132
  }
31133
31133
  function inferContentTypeFromFilePath(contentPath, defaultTs) {
31134
31134
  if (contentPath.endsWith(".py")) {
@@ -31187,7 +31187,8 @@ var init_script_common = __esm(() => {
31187
31187
  { language: "bun", filename: "package.json" },
31188
31188
  { language: "python3", filename: "requirements.in" },
31189
31189
  { language: "php", filename: "composer.json" },
31190
- { language: "go", filename: "go.mod" }
31190
+ { language: "go", filename: "go.mod" },
31191
+ { language: "powershell", filename: "modules.json" }
31191
31192
  ];
31192
31193
  });
31193
31194
 
@@ -60606,7 +60607,9 @@ async function generateFlowLockInternal(folder, dryRun, workspace, opts, justUpd
60606
60607
  await replaceInlineScripts([flowValue.value.preprocessor_module], fileReader, exports_log, folder + SEP7, SEP7, changedScripts);
60607
60608
  }
60608
60609
  flowValue.value = await updateFlow2(workspace, flowValue.value, remote_path, filteredDeps);
60609
- const lockAssigner = newPathAssigner(opts.defaultTs ?? "bun");
60610
+ const lockAssigner = newPathAssigner(opts.defaultTs ?? "bun", {
60611
+ skipInlineScriptSuffix: getNonDottedPaths()
60612
+ });
60610
60613
  const inlineScripts = extractInlineScripts(flowValue.value.modules, {}, SEP7, opts.defaultTs, lockAssigner);
60611
60614
  if (flowValue.value.failure_module) {
60612
60615
  inlineScripts.push(...extractInlineScripts([flowValue.value.failure_module], {}, SEP7, opts.defaultTs, lockAssigner));
@@ -63266,7 +63269,7 @@ async function fetchScriptLock(workspace, scriptContent, language, remotePath, r
63266
63269
  }
63267
63270
  }
63268
63271
  async function updateScriptLock(workspace, scriptContent, language, remotePath, metadataContent, rawWorkspaceDependencies) {
63269
- if (!(workspaceDependenciesLanguages.some((l) => l.language == language) || language == "deno" || language == "rust" || language == "ansible")) {
63272
+ if (!(workspaceDependenciesLanguages.some((l) => l.language == language) && language !== "powershell" || language == "deno" || language == "rust" || language == "ansible")) {
63270
63273
  return;
63271
63274
  }
63272
63275
  if (Object.keys(rawWorkspaceDependencies).length > 0) {
@@ -63610,7 +63613,8 @@ var init_metadata = __esm(async () => {
63610
63613
  bun: { comment: "//", keyword: "package_json" },
63611
63614
  nativets: { comment: "//", keyword: "package_json" },
63612
63615
  go: { comment: "//", keyword: "go_mod" },
63613
- php: { comment: "//", keyword: "composer_json" }
63616
+ php: { comment: "//", keyword: "composer_json" },
63617
+ powershell: { comment: "#", keyword: "modules_json" }
63614
63618
  };
63615
63619
  lockCache = new Map;
63616
63620
  });
@@ -76521,10 +76525,10 @@ description: MUST use when creating flows.
76521
76525
 
76522
76526
  ## CLI Commands
76523
76527
 
76524
- Create a folder ending with \`.flow\` and add a YAML file with the flow definition.
76525
- For rawscript modules, use \`!inline path/to/script.ts\` for the content key.
76528
+ Create a folder ending with \`{{FLOW_SUFFIX}}\` and add a \`flow.yaml\` file with the flow definition.
76529
+ For rawscript modules, use \`!inline path/to/script.ts\` for the content key. {{INLINE_SCRIPT_NAMING}}
76526
76530
  After writing, tell the user they can run:
76527
- - \`wmill flow generate-locks <path_to_flow_folder> --yes\` - Generate lock files for the specific flow you modified (e.g. \`wmill flow generate-locks f/my_folder/my_flow.flow --yes\`)
76531
+ - \`wmill flow generate-locks <path_to_flow_folder> --yes\` - Generate lock files for the specific flow you modified (e.g. \`wmill flow generate-locks f/my_folder/my_flow{{FLOW_SUFFIX}} --yes\`)
76528
76532
  - \`wmill sync push\` - Deploy to Windmill
76529
76533
 
76530
76534
  Do NOT run these commands yourself. Instead, inform the user that they should run them.
@@ -76660,7 +76664,7 @@ This interactive command creates a complete app structure with your choice of fr
76660
76664
  ## App Structure
76661
76665
 
76662
76666
  \`\`\`
76663
- my_app.raw_app/
76667
+ my_app{{RAW_APP_SUFFIX}}/
76664
76668
  ├── AGENTS.md # AI agent instructions (auto-generated)
76665
76669
  ├── DATATABLES.md # Database schemas (run 'wmill app generate-agents' to refresh)
76666
76670
  ├── raw_app.yaml # App configuration (summary, path, data settings)
@@ -78772,6 +78776,12 @@ Current Git branch: ${colors.bold(currentBranch)}`));
78772
78776
  }
78773
78777
  }
78774
78778
  }
78779
+ let nonDottedPaths = true;
78780
+ try {
78781
+ const { readConfigFile: readConfigFile2 } = await init_conf().then(() => exports_conf);
78782
+ const config = await readConfigFile2();
78783
+ nonDottedPaths = config.nonDottedPaths ?? true;
78784
+ } catch {}
78775
78785
  try {
78776
78786
  const skills_base_dir = ".claude/skills";
78777
78787
  const skillsReference = SKILLS.map((s) => `- \`${skills_base_dir}/${s.name}/SKILL.md\` - ${s.description}`).join(`
@@ -78792,6 +78802,11 @@ Current Git branch: ${colors.bold(currentBranch)}`));
78792
78802
  await mkdir8(skillDir, { recursive: true });
78793
78803
  let skillContent = SKILL_CONTENT[skill.name];
78794
78804
  if (skillContent) {
78805
+ if (nonDottedPaths) {
78806
+ skillContent = skillContent.replaceAll("{{FLOW_SUFFIX}}", "__flow").replaceAll("{{APP_SUFFIX}}", "__app").replaceAll("{{RAW_APP_SUFFIX}}", "__raw_app").replaceAll("{{INLINE_SCRIPT_NAMING}}", "Inline script files should NOT include `.inline_script.` in their names (e.g. use `a.ts`, not `a.inline_script.ts`).");
78807
+ } else {
78808
+ skillContent = skillContent.replaceAll("{{FLOW_SUFFIX}}", ".flow").replaceAll("{{APP_SUFFIX}}", ".app").replaceAll("{{RAW_APP_SUFFIX}}", ".raw_app").replaceAll("{{INLINE_SCRIPT_NAMING}}", "Inline script files use the `.inline_script.` naming convention (e.g. `a.inline_script.ts`).");
78809
+ }
78795
78810
  const schemaMappings = SCHEMA_MAPPINGS[skill.name];
78796
78811
  if (schemaMappings && schemaMappings.length > 0) {
78797
78812
  const schemaDocs = schemaMappings.map((mapping) => {
@@ -79241,7 +79256,7 @@ var docs_default = command30;
79241
79256
 
79242
79257
  // src/main.ts
79243
79258
  await init_context();
79244
- var VERSION = "1.657.1";
79259
+ var VERSION = "1.658.0";
79245
79260
  var command31 = new Command().name("wmill").action(() => info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`)).description("Windmill CLI").globalOption("--workspace <workspace:string>", "Specify the target workspace. This overrides the default workspace.").globalOption("--debug --verbose", "Show debug/verbose logs").globalOption("--show-diffs", "Show diff informations when syncing (may show sensitive informations)").globalOption("--token <token:string>", "Specify an API token. This will override any stored token.").globalOption("--base-url <baseUrl:string>", "Specify the base URL of the API. If used, --token and --workspace are required and no local remote/workspace already set will be used.").globalOption("--config-dir <configDir:string>", "Specify a custom config directory. Overrides WMILL_CONFIG_DIR environment variable and default ~/.config location.").env("HEADERS <headers:string>", `Specify headers to use for all requests. e.g: "HEADERS='h1: v1, h2: v2'"`).version(VERSION).versionOption(false).command("init", init_default).command("app", app_default).command("flow", flow_default).command("script", script_default).command("workspace", workspace_default).command("resource", resource_default).command("resource-type", resource_type_default).command("user", user_default).command("variable", variable_default).command("hub", hub_default).command("folder", folder_default).command("schedule", schedule_default).command("trigger", trigger_default).command("dev", dev_default2).command("sync", sync_default).command("lint", lint_default).command("gitsync-settings", gitsync_settings_default).command("instance", instance_default).command("worker-groups", worker_groups_default).command("workers", workers_default).command("queues", queues_default).command("dependencies", dependencies_default).command("jobs", jobs_default).command("generate-metadata", generate_metadata_default).command("docs", docs_default).command("version --version", "Show version information").action(async (opts) => {
79246
79261
  console.log("CLI version: " + VERSION);
79247
79262
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.657.1",
3
+ "version": "1.658.0",
4
4
  "description": "CLI for Windmill",
5
5
  "license": "Apache 2.0",
6
6
  "type": "module",