windmill-cli 1.648.0 → 1.649.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/main.js +33 -8
- 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.
|
|
11788
|
+
VERSION: "1.649.0",
|
|
11789
11789
|
WITH_CREDENTIALS: true,
|
|
11790
11790
|
interceptors: {
|
|
11791
11791
|
request: new Interceptors,
|
|
@@ -12431,6 +12431,8 @@ __export(exports_services_gen, {
|
|
|
12431
12431
|
getInstanceGroup: () => getInstanceGroup,
|
|
12432
12432
|
getInstanceConfig: () => getInstanceConfig,
|
|
12433
12433
|
getInputHistory: () => getInputHistory,
|
|
12434
|
+
getIndexerStatus: () => getIndexerStatus,
|
|
12435
|
+
getIndexStorageSizes: () => getIndexStorageSizes,
|
|
12434
12436
|
getHubScriptContentByPath: () => getHubScriptContentByPath,
|
|
12435
12437
|
getHubScriptByPath: () => getHubScriptByPath,
|
|
12436
12438
|
getHubRawAppById: () => getHubRawAppById,
|
|
@@ -19147,11 +19149,21 @@ var backendVersion = () => {
|
|
|
19147
19149
|
}, clearIndex = (data2) => {
|
|
19148
19150
|
return request(OpenAPI, {
|
|
19149
19151
|
method: "DELETE",
|
|
19150
|
-
url: "/
|
|
19152
|
+
url: "/indexer/delete/{idx_name}",
|
|
19151
19153
|
path: {
|
|
19152
19154
|
idx_name: data2.idxName
|
|
19153
19155
|
}
|
|
19154
19156
|
});
|
|
19157
|
+
}, getIndexStorageSizes = () => {
|
|
19158
|
+
return request(OpenAPI, {
|
|
19159
|
+
method: "GET",
|
|
19160
|
+
url: "/indexer/storage"
|
|
19161
|
+
});
|
|
19162
|
+
}, getIndexerStatus = () => {
|
|
19163
|
+
return request(OpenAPI, {
|
|
19164
|
+
method: "GET",
|
|
19165
|
+
url: "/indexer/status"
|
|
19166
|
+
});
|
|
19155
19167
|
}, listAssets = (data2) => {
|
|
19156
19168
|
return request(OpenAPI, {
|
|
19157
19169
|
method: "GET",
|
|
@@ -62967,14 +62979,27 @@ function extractWorkspaceDepsAnnotation(scriptContent, language) {
|
|
|
62967
62979
|
if (!config)
|
|
62968
62980
|
return null;
|
|
62969
62981
|
const { comment, keyword, validityRe } = config;
|
|
62970
|
-
const
|
|
62982
|
+
const extraMarkerUnderscore = `extra_${keyword}:`;
|
|
62983
|
+
const extraMarkerHyphen = `extra-${keyword}:`;
|
|
62971
62984
|
const manualMarker = `${keyword}:`;
|
|
62985
|
+
const stripComment = (l) => {
|
|
62986
|
+
if (!l.startsWith(comment))
|
|
62987
|
+
return null;
|
|
62988
|
+
return l.substring(comment.length).trimStart();
|
|
62989
|
+
};
|
|
62990
|
+
const isExtra = (l) => {
|
|
62991
|
+
const s = stripComment(l);
|
|
62992
|
+
return s !== null && (s.startsWith(extraMarkerUnderscore) || s.startsWith(extraMarkerHyphen));
|
|
62993
|
+
};
|
|
62994
|
+
const isManual = (l) => {
|
|
62995
|
+
const s = stripComment(l);
|
|
62996
|
+
return s !== null && s.startsWith(manualMarker);
|
|
62997
|
+
};
|
|
62972
62998
|
const lines = scriptContent.split(`
|
|
62973
62999
|
`);
|
|
62974
63000
|
let pos = -1;
|
|
62975
63001
|
for (let i = 0;i < lines.length; i++) {
|
|
62976
|
-
|
|
62977
|
-
if (l.startsWith(comment) && (l.includes(extraMarker) || l.includes(manualMarker))) {
|
|
63002
|
+
if (isExtra(lines[i]) || isManual(lines[i])) {
|
|
62978
63003
|
pos = i;
|
|
62979
63004
|
break;
|
|
62980
63005
|
}
|
|
@@ -62982,8 +63007,8 @@ function extractWorkspaceDepsAnnotation(scriptContent, language) {
|
|
|
62982
63007
|
if (pos === -1)
|
|
62983
63008
|
return null;
|
|
62984
63009
|
const annotationLine = lines[pos];
|
|
62985
|
-
const mode = annotationLine
|
|
62986
|
-
const marker = mode === "extra" ?
|
|
63010
|
+
const mode = isExtra(annotationLine) ? "extra" : "manual";
|
|
63011
|
+
const marker = mode === "extra" ? annotationLine.includes(extraMarkerUnderscore) ? extraMarkerUnderscore : extraMarkerHyphen : manualMarker;
|
|
62987
63012
|
const unparsed = annotationLine.replaceAll(marker, "").replaceAll(comment, "");
|
|
62988
63013
|
const external = unparsed.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
|
|
62989
63014
|
const inlineParts = [];
|
|
@@ -78349,7 +78374,7 @@ var docs_default = command29;
|
|
|
78349
78374
|
|
|
78350
78375
|
// src/main.ts
|
|
78351
78376
|
await init_context();
|
|
78352
|
-
var VERSION = "1.
|
|
78377
|
+
var VERSION = "1.649.0";
|
|
78353
78378
|
var command30 = 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("docs", docs_default).command("version --version", "Show version information").action(async (opts) => {
|
|
78354
78379
|
console.log("CLI version: " + VERSION);
|
|
78355
78380
|
try {
|