windmill-cli 1.617.2 ā 1.618.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/gen/core/OpenAPI.js +1 -1
- package/esm/src/commands/app/generate_agents.js +8 -5
- package/esm/src/commands/app/lint.js +3 -1
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/src/commands/app/generate_agents.d.ts.map +1 -1
- package/types/src/commands/app/lint.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -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
|
-
//
|
|
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
|
|
191
|
-
// Check if current directory is a
|
|
192
|
-
if (!path.basename(cwd)
|
|
193
|
-
log.error(colors.red(
|
|
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.
|
|
43
|
+
export const VERSION = "1.618.0";
|
|
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 +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;
|
|
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;
|
|
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"}
|
package/types/src/main.d.ts
CHANGED
|
@@ -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.
|
|
25
|
+
export declare const VERSION = "1.618.0";
|
|
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;
|