windmill-cli 1.617.2 → 1.617.3

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.
@@ -32,7 +32,7 @@ export const OpenAPI = {
32
32
  PASSWORD: undefined,
33
33
  TOKEN: getEnv("WM_TOKEN"),
34
34
  USERNAME: undefined,
35
- VERSION: '1.617.2',
35
+ VERSION: '1.617.3',
36
36
  WITH_CREDENTIALS: true,
37
37
  interceptors: {
38
38
  request: new Interceptors(),
@@ -6,6 +6,7 @@ import * as wmill from "../../../gen/services.gen.js";
6
6
  import { generateAgentsDocumentation } from "../sync/sync.js";
7
7
  import path from "node:path";
8
8
  import * as fs from "node:fs";
9
+ import { getFolderSuffix, hasFolderSuffix, loadNonDottedPathsSetting, } from "../../utils/resource_folders.js";
9
10
  /**
10
11
  * Generates DATATABLES.md content from remote workspace datatable schemas.
11
12
  * This file focuses on schema information. For full instructions, see AGENTS.md.
@@ -185,12 +186,14 @@ async function generateAgents(opts, appFolder) {
185
186
  ? appFolder
186
187
  : path.join(cwd, appFolder);
187
188
  }
188
- // Ensure we're in a .raw_app folder or targeting one
189
+ // Load nonDottedPaths setting before using folder suffix functions
190
+ await loadNonDottedPathsSetting();
191
+ // Ensure we're in a raw_app folder or targeting one
189
192
  const dirName = path.basename(targetDir);
190
- if (!dirName.endsWith(".raw_app")) {
191
- // Check if current directory is a .raw_app folder
192
- if (!path.basename(cwd).endsWith(".raw_app") && !appFolder) {
193
- log.error(colors.red("Error: Must be run inside a .raw_app folder or specify one as argument."));
193
+ if (!hasFolderSuffix(dirName, "raw_app")) {
194
+ // Check if current directory is a raw_app folder
195
+ if (!hasFolderSuffix(path.basename(cwd), "raw_app") && !appFolder) {
196
+ log.error(colors.red(`Error: Must be run inside a ${getFolderSuffix("raw_app")} folder or specify one as argument.`));
194
197
  log.info(colors.gray("Usage: wmill app generate-agents [app_folder]"));
195
198
  dntShim.Deno.exit(1);
196
199
  }
@@ -7,7 +7,7 @@ import { colors, Command, log, yamlParseFile } from "../../../deps.js";
7
7
  import { createBundle } from "./bundle.js";
8
8
  import { APP_BACKEND_FOLDER } from "./app_metadata.js";
9
9
  import { loadRunnablesFromBackend } from "./raw_apps.js";
10
- import { getFolderSuffix, hasFolderSuffix, } from "../../utils/resource_folders.js";
10
+ import { getFolderSuffix, hasFolderSuffix, loadNonDottedPathsSetting, } from "../../utils/resource_folders.js";
11
11
  /**
12
12
  * Validates the structure of raw_app.yaml
13
13
  */
@@ -132,6 +132,8 @@ async function lintRawApp(appDir, opts) {
132
132
  * Main lint command
133
133
  */
134
134
  async function lint(opts, appFolder) {
135
+ // Load nonDottedPaths setting before using folder suffix functions
136
+ await loadNonDottedPathsSetting();
135
137
  const targetDir = appFolder ?? process.cwd();
136
138
  log.info(colors.bold.blue(`\nšŸ” Linting raw app: ${targetDir}\n`));
137
139
  const result = await lintRawApp(targetDir, opts);
package/esm/src/main.js CHANGED
@@ -40,7 +40,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
40
40
  // console.error(JSON.stringify(event.error, null, 4));
41
41
  // }
42
42
  // });
43
- export const VERSION = "1.617.2";
43
+ export const VERSION = "1.617.3";
44
44
  // Re-exported from constants.ts to maintain backwards compatibility
45
45
  export { WM_FORK_PREFIX } from "./core/constants.js";
46
46
  const command = new Command()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.617.2",
3
+ "version": "1.617.3",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"generate_agents.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/generate_agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AA+IvE;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,UAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CAiEf;AAgDD,QAAA,MAAM,OAAO;;;;;;mBAGmB,CAAC;AAEjC,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"generate_agents.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/generate_agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AAoJvE;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,UAAQ,GACb,OAAO,CAAC,IAAI,CAAC,CAiEf;AAmDD,QAAA,MAAM,OAAO;;;;;;mBAGmB,CAAC;AAEjC,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/lint.ts"],"names":[],"mappings":"AAMA,OAAO,EAAU,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AAgOvE,QAAA,MAAM,OAAO;;;;;;;;mBAIS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/app/lint.ts"],"names":[],"mappings":"AAMA,OAAO,EAAU,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AAoOvE,QAAA,MAAM,OAAO;;;;;;;;mBAIS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
22
22
  import { pull, push } from "./commands/sync/sync.js";
23
23
  import { add as workspaceAdd } from "./commands/workspace/workspace.js";
24
24
  export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
25
- export declare const VERSION = "1.617.2";
25
+ export declare const VERSION = "1.617.3";
26
26
  export { WM_FORK_PREFIX } from "./core/constants.js";
27
27
  declare const command: Command<{
28
28
  workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;