windmill-cli 1.657.1 → 1.657.2
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/main.js +20 -7
- 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.
|
|
11788
|
+
VERSION: "1.657.2",
|
|
11789
11789
|
WITH_CREDENTIALS: true,
|
|
11790
11790
|
interceptors: {
|
|
11791
11791
|
request: new Interceptors,
|
|
@@ -60606,7 +60606,9 @@ async function generateFlowLockInternal(folder, dryRun, workspace, opts, justUpd
|
|
|
60606
60606
|
await replaceInlineScripts([flowValue.value.preprocessor_module], fileReader, exports_log, folder + SEP7, SEP7, changedScripts);
|
|
60607
60607
|
}
|
|
60608
60608
|
flowValue.value = await updateFlow2(workspace, flowValue.value, remote_path, filteredDeps);
|
|
60609
|
-
const lockAssigner = newPathAssigner(opts.defaultTs ?? "bun"
|
|
60609
|
+
const lockAssigner = newPathAssigner(opts.defaultTs ?? "bun", {
|
|
60610
|
+
skipInlineScriptSuffix: getNonDottedPaths()
|
|
60611
|
+
});
|
|
60610
60612
|
const inlineScripts = extractInlineScripts(flowValue.value.modules, {}, SEP7, opts.defaultTs, lockAssigner);
|
|
60611
60613
|
if (flowValue.value.failure_module) {
|
|
60612
60614
|
inlineScripts.push(...extractInlineScripts([flowValue.value.failure_module], {}, SEP7, opts.defaultTs, lockAssigner));
|
|
@@ -76521,10 +76523,10 @@ description: MUST use when creating flows.
|
|
|
76521
76523
|
|
|
76522
76524
|
## CLI Commands
|
|
76523
76525
|
|
|
76524
|
-
Create a folder ending with
|
|
76525
|
-
For rawscript modules, use \`!inline path/to/script.ts\` for the content key.
|
|
76526
|
+
Create a folder ending with \`{{FLOW_SUFFIX}}\` and add a \`flow.yaml\` file with the flow definition.
|
|
76527
|
+
For rawscript modules, use \`!inline path/to/script.ts\` for the content key. {{INLINE_SCRIPT_NAMING}}
|
|
76526
76528
|
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
|
|
76529
|
+
- \`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
76530
|
- \`wmill sync push\` - Deploy to Windmill
|
|
76529
76531
|
|
|
76530
76532
|
Do NOT run these commands yourself. Instead, inform the user that they should run them.
|
|
@@ -76660,7 +76662,7 @@ This interactive command creates a complete app structure with your choice of fr
|
|
|
76660
76662
|
## App Structure
|
|
76661
76663
|
|
|
76662
76664
|
\`\`\`
|
|
76663
|
-
my_app
|
|
76665
|
+
my_app{{RAW_APP_SUFFIX}}/
|
|
76664
76666
|
├── AGENTS.md # AI agent instructions (auto-generated)
|
|
76665
76667
|
├── DATATABLES.md # Database schemas (run 'wmill app generate-agents' to refresh)
|
|
76666
76668
|
├── raw_app.yaml # App configuration (summary, path, data settings)
|
|
@@ -78772,6 +78774,12 @@ Current Git branch: ${colors.bold(currentBranch)}`));
|
|
|
78772
78774
|
}
|
|
78773
78775
|
}
|
|
78774
78776
|
}
|
|
78777
|
+
let nonDottedPaths = true;
|
|
78778
|
+
try {
|
|
78779
|
+
const { readConfigFile: readConfigFile2 } = await init_conf().then(() => exports_conf);
|
|
78780
|
+
const config = await readConfigFile2();
|
|
78781
|
+
nonDottedPaths = config.nonDottedPaths ?? true;
|
|
78782
|
+
} catch {}
|
|
78775
78783
|
try {
|
|
78776
78784
|
const skills_base_dir = ".claude/skills";
|
|
78777
78785
|
const skillsReference = SKILLS.map((s) => `- \`${skills_base_dir}/${s.name}/SKILL.md\` - ${s.description}`).join(`
|
|
@@ -78792,6 +78800,11 @@ Current Git branch: ${colors.bold(currentBranch)}`));
|
|
|
78792
78800
|
await mkdir8(skillDir, { recursive: true });
|
|
78793
78801
|
let skillContent = SKILL_CONTENT[skill.name];
|
|
78794
78802
|
if (skillContent) {
|
|
78803
|
+
if (nonDottedPaths) {
|
|
78804
|
+
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`).");
|
|
78805
|
+
} else {
|
|
78806
|
+
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`).");
|
|
78807
|
+
}
|
|
78795
78808
|
const schemaMappings = SCHEMA_MAPPINGS[skill.name];
|
|
78796
78809
|
if (schemaMappings && schemaMappings.length > 0) {
|
|
78797
78810
|
const schemaDocs = schemaMappings.map((mapping) => {
|
|
@@ -79241,7 +79254,7 @@ var docs_default = command30;
|
|
|
79241
79254
|
|
|
79242
79255
|
// src/main.ts
|
|
79243
79256
|
await init_context();
|
|
79244
|
-
var VERSION = "1.657.
|
|
79257
|
+
var VERSION = "1.657.2";
|
|
79245
79258
|
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
79259
|
console.log("CLI version: " + VERSION);
|
|
79247
79260
|
try {
|