windmill-cli 1.777.1 → 1.778.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 +54 -5
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16784,7 +16784,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16784
16784
|
PASSWORD: undefined,
|
|
16785
16785
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16786
16786
|
USERNAME: undefined,
|
|
16787
|
-
VERSION: "1.
|
|
16787
|
+
VERSION: "1.778.0",
|
|
16788
16788
|
WITH_CREDENTIALS: true,
|
|
16789
16789
|
interceptors: {
|
|
16790
16790
|
request: new Interceptors,
|
|
@@ -17263,6 +17263,7 @@ __export(exports_services_gen, {
|
|
|
17263
17263
|
nativeKubernetesAutoscalingHealthcheck: () => nativeKubernetesAutoscalingHealthcheck,
|
|
17264
17264
|
moveS3File: () => moveS3File,
|
|
17265
17265
|
moveCapturesAndConfigs: () => moveCapturesAndConfigs,
|
|
17266
|
+
mintPreviewSdkToken: () => mintPreviewSdkToken,
|
|
17266
17267
|
migrateSecretsToVault: () => migrateSecretsToVault,
|
|
17267
17268
|
migrateSecretsToDatabase: () => migrateSecretsToDatabase,
|
|
17268
17269
|
migrateSecretsToAzureKv: () => migrateSecretsToAzureKv,
|
|
@@ -17302,6 +17303,7 @@ __export(exports_services_gen, {
|
|
|
17302
17303
|
listTokensOfScript: () => listTokensOfScript,
|
|
17303
17304
|
listTokensOfFlow: () => listTokensOfFlow,
|
|
17304
17305
|
listTokens: () => listTokens,
|
|
17306
|
+
listStoredFilesPaged: () => listStoredFilesPaged,
|
|
17305
17307
|
listStoredFiles: () => listStoredFiles,
|
|
17306
17308
|
listSqsTriggers: () => listSqsTriggers,
|
|
17307
17309
|
listSharedUi: () => listSharedUi,
|
|
@@ -20601,6 +20603,9 @@ var backendVersion = () => {
|
|
|
20601
20603
|
url: "/apps_u/embed_token_by_custom_path/{custom_path}",
|
|
20602
20604
|
path: {
|
|
20603
20605
|
custom_path: data3.customPath
|
|
20606
|
+
},
|
|
20607
|
+
query: {
|
|
20608
|
+
sdk_consent: data3.sdkConsent
|
|
20604
20609
|
}
|
|
20605
20610
|
});
|
|
20606
20611
|
}, getHubScriptContentByPath = (data3) => {
|
|
@@ -21835,6 +21840,16 @@ var backendVersion = () => {
|
|
|
21835
21840
|
raw_app: data3.rawApp
|
|
21836
21841
|
}
|
|
21837
21842
|
});
|
|
21843
|
+
}, mintPreviewSdkToken = (data3) => {
|
|
21844
|
+
return request(OpenAPI, {
|
|
21845
|
+
method: "POST",
|
|
21846
|
+
url: "/w/{workspace}/apps/preview_sdk_token",
|
|
21847
|
+
path: {
|
|
21848
|
+
workspace: data3.workspace
|
|
21849
|
+
},
|
|
21850
|
+
body: data3.requestBody,
|
|
21851
|
+
mediaType: "application/json"
|
|
21852
|
+
});
|
|
21838
21853
|
}, getAppEmbedTokenByPath = (data3) => {
|
|
21839
21854
|
return request(OpenAPI, {
|
|
21840
21855
|
method: "GET",
|
|
@@ -21842,6 +21857,9 @@ var backendVersion = () => {
|
|
|
21842
21857
|
path: {
|
|
21843
21858
|
workspace: data3.workspace,
|
|
21844
21859
|
path: data3.path
|
|
21860
|
+
},
|
|
21861
|
+
query: {
|
|
21862
|
+
sdk_consent: data3.sdkConsent
|
|
21845
21863
|
}
|
|
21846
21864
|
});
|
|
21847
21865
|
}, getAppLiteByPath = (data3) => {
|
|
@@ -21909,6 +21927,9 @@ var backendVersion = () => {
|
|
|
21909
21927
|
path: {
|
|
21910
21928
|
workspace: data3.workspace,
|
|
21911
21929
|
secret: data3.secret
|
|
21930
|
+
},
|
|
21931
|
+
query: {
|
|
21932
|
+
sdk_consent: data3.sdkConsent
|
|
21912
21933
|
}
|
|
21913
21934
|
});
|
|
21914
21935
|
}, getPublicResource = (data3) => {
|
|
@@ -25511,6 +25532,22 @@ var backendVersion = () => {
|
|
|
25511
25532
|
max_keys: data3.maxKeys,
|
|
25512
25533
|
marker: data3.marker,
|
|
25513
25534
|
prefix: data3.prefix,
|
|
25535
|
+
search: data3.search,
|
|
25536
|
+
storage: data3.storage,
|
|
25537
|
+
s3_resource_path: data3.s3ResourcePath
|
|
25538
|
+
}
|
|
25539
|
+
});
|
|
25540
|
+
}, listStoredFilesPaged = (data3) => {
|
|
25541
|
+
return request(OpenAPI, {
|
|
25542
|
+
method: "GET",
|
|
25543
|
+
url: "/w/{workspace}/job_helpers/list_stored_files_paged",
|
|
25544
|
+
path: {
|
|
25545
|
+
workspace: data3.workspace
|
|
25546
|
+
},
|
|
25547
|
+
query: {
|
|
25548
|
+
prefix: data3.prefix,
|
|
25549
|
+
max_keys: data3.maxKeys,
|
|
25550
|
+
page_token: data3.pageToken,
|
|
25514
25551
|
storage: data3.storage,
|
|
25515
25552
|
s3_resource_path: data3.s3ResourcePath
|
|
25516
25553
|
}
|
|
@@ -26568,6 +26605,7 @@ __export(exports_gen, {
|
|
|
26568
26605
|
nativeKubernetesAutoscalingHealthcheck: () => nativeKubernetesAutoscalingHealthcheck,
|
|
26569
26606
|
moveS3File: () => moveS3File,
|
|
26570
26607
|
moveCapturesAndConfigs: () => moveCapturesAndConfigs,
|
|
26608
|
+
mintPreviewSdkToken: () => mintPreviewSdkToken,
|
|
26571
26609
|
migrateSecretsToVault: () => migrateSecretsToVault,
|
|
26572
26610
|
migrateSecretsToDatabase: () => migrateSecretsToDatabase,
|
|
26573
26611
|
migrateSecretsToAzureKv: () => migrateSecretsToAzureKv,
|
|
@@ -26607,6 +26645,7 @@ __export(exports_gen, {
|
|
|
26607
26645
|
listTokensOfScript: () => listTokensOfScript,
|
|
26608
26646
|
listTokensOfFlow: () => listTokensOfFlow,
|
|
26609
26647
|
listTokens: () => listTokens,
|
|
26648
|
+
listStoredFilesPaged: () => listStoredFilesPaged,
|
|
26610
26649
|
listStoredFiles: () => listStoredFiles,
|
|
26611
26650
|
listSqsTriggers: () => listSqsTriggers,
|
|
26612
26651
|
listSharedUi: () => listSharedUi,
|
|
@@ -27187,8 +27226,13 @@ var init_gen = __esm(() => {
|
|
|
27187
27226
|
// src/core/client.ts
|
|
27188
27227
|
var exports_client = {};
|
|
27189
27228
|
__export(exports_client, {
|
|
27190
|
-
setClient: () => setClient
|
|
27229
|
+
setClient: () => setClient,
|
|
27230
|
+
markRequestsAsSyncOrigin: () => markRequestsAsSyncOrigin
|
|
27191
27231
|
});
|
|
27232
|
+
function markRequestsAsSyncOrigin() {
|
|
27233
|
+
const existing = typeof OpenAPI.HEADERS === "object" ? OpenAPI.HEADERS : {};
|
|
27234
|
+
OpenAPI.HEADERS = { ...existing, "X-Windmill-Deploy-Origin": "sync" };
|
|
27235
|
+
}
|
|
27192
27236
|
function setClient(token, baseUrl2) {
|
|
27193
27237
|
if (baseUrl2 === undefined) {
|
|
27194
27238
|
baseUrl2 = process.env["BASE_INTERNAL_URL"] ?? process.env["BASE_URL"] ?? "http://localhost:8000";
|
|
@@ -27289,7 +27333,7 @@ var init_auth = __esm(async () => {
|
|
|
27289
27333
|
});
|
|
27290
27334
|
|
|
27291
27335
|
// src/core/constants.ts
|
|
27292
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
27336
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.778.0";
|
|
27293
27337
|
|
|
27294
27338
|
// src/utils/git.ts
|
|
27295
27339
|
var exports_git = {};
|
|
@@ -29977,6 +30021,9 @@ Deploying ${colors.bold(String(selectedDiffs.length))} item(s)...`);
|
|
|
29977
30021
|
});
|
|
29978
30022
|
const workspaceFrom = direction === "to-parent" ? forkWorkspaceId : parentWorkspaceId;
|
|
29979
30023
|
const workspaceTo = direction === "to-parent" ? parentWorkspaceId : forkWorkspaceId;
|
|
30024
|
+
if (direction === "to-fork") {
|
|
30025
|
+
markRequestsAsSyncOrigin();
|
|
30026
|
+
}
|
|
29980
30027
|
let successCount = 0;
|
|
29981
30028
|
let failCount = 0;
|
|
29982
30029
|
const deployedMigrations = [];
|
|
@@ -61503,7 +61550,7 @@ var init_openflow = __esm(() => {
|
|
|
61503
61550
|
openflow_default = {
|
|
61504
61551
|
openapi: "3.0.3",
|
|
61505
61552
|
info: {
|
|
61506
|
-
version: "1.
|
|
61553
|
+
version: "1.778.0",
|
|
61507
61554
|
title: "OpenFlow Spec",
|
|
61508
61555
|
contact: {
|
|
61509
61556
|
name: "Ruben Fiszel",
|
|
@@ -71502,6 +71549,7 @@ async function checkServerLockJobs(workspaceId, sinceIso, changedPaths) {
|
|
|
71502
71549
|
async function push4(opts) {
|
|
71503
71550
|
if (opts.jsonOutput)
|
|
71504
71551
|
setSilent(true);
|
|
71552
|
+
markRequestsAsSyncOrigin();
|
|
71505
71553
|
const originalCliOpts = { ...opts };
|
|
71506
71554
|
opts = await mergeConfigWithConfigFile(opts);
|
|
71507
71555
|
if (originalCliOpts.includeSecrets) {
|
|
@@ -72145,7 +72193,7 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
72145
72193
|
await writeFile7(stateTarget, change.content, "utf-8");
|
|
72146
72194
|
}
|
|
72147
72195
|
} else if (change.name === "deleted") {
|
|
72148
|
-
if (change.path.endsWith(".lock") && !isDbtModulePath(change.path)) {
|
|
72196
|
+
if (!isRawAppFile(change.path) && change.path.endsWith(".lock") && !isDbtModulePath(change.path)) {
|
|
72149
72197
|
continue;
|
|
72150
72198
|
}
|
|
72151
72199
|
if (isScriptModulePath(change.path)) {
|
|
@@ -72563,6 +72611,7 @@ var import_yaml12, branchDeprecationWarned = false, yamlOptions, _caseInsensitiv
|
|
|
72563
72611
|
return p == "." + SEP9 || p == "" || p == "u" || p == "f" || p == "g" || p == "ui" || p == "users" || p == "groups" || p == "dependencies" || p == "migrations";
|
|
72564
72612
|
}, SYNC_PUSH_DESTRUCTIVE_WARNING = "`wmill sync push` is destructive: applying it deploys these changes to the remote workspace and overwrites or deletes remote items that differ from or are absent locally — this is not automatically reversible. If you are an AI agent, do NOT run `wmill sync push` (without --dry-run) until the user has explicitly confirmed this deploy, unless your custom instructions explicitly allow bypassing that confirmation.", command8, sync_default;
|
|
72565
72613
|
var init_sync = __esm(async () => {
|
|
72614
|
+
init_client();
|
|
72566
72615
|
init_colors2();
|
|
72567
72616
|
init_mod3();
|
|
72568
72617
|
init_log();
|