windmill-cli 1.763.1-gitsync.0 → 1.764.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 +12 -34
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -17354,7 +17354,6 @@ __export(exports_services_gen, {
|
|
|
17354
17354
|
listDataTables: () => listDataTables,
|
|
17355
17355
|
listDataTableTables: () => listDataTableTables,
|
|
17356
17356
|
listDataTableSchemas: () => listDataTableSchemas,
|
|
17357
|
-
listDataMetrics: () => listDataMetrics,
|
|
17358
17357
|
listCustomInstanceDbs: () => listCustomInstanceDbs,
|
|
17359
17358
|
listConversationMessages: () => listConversationMessages,
|
|
17360
17359
|
listContextualVariables: () => listContextualVariables,
|
|
@@ -19214,23 +19213,6 @@ var backendVersion = () => {
|
|
|
19214
19213
|
workspace: data3.workspace
|
|
19215
19214
|
}
|
|
19216
19215
|
});
|
|
19217
|
-
}, listDataMetrics = (data3) => {
|
|
19218
|
-
return request(OpenAPI, {
|
|
19219
|
-
method: "GET",
|
|
19220
|
-
url: "/w/{workspace}/data_metrics/list",
|
|
19221
|
-
path: {
|
|
19222
|
-
workspace: data3.workspace
|
|
19223
|
-
},
|
|
19224
|
-
query: {
|
|
19225
|
-
table: data3.table,
|
|
19226
|
-
path_prefix: data3.pathPrefix,
|
|
19227
|
-
per_page: data3.perPage,
|
|
19228
|
-
cursor_table: data3.cursorTable,
|
|
19229
|
-
cursor_kind: data3.cursorKind,
|
|
19230
|
-
cursor_name: data3.cursorName,
|
|
19231
|
-
cursor_script: data3.cursorScript
|
|
19232
|
-
}
|
|
19233
|
-
});
|
|
19234
19216
|
}, listDataTables = (data3) => {
|
|
19235
19217
|
return request(OpenAPI, {
|
|
19236
19218
|
method: "GET",
|
|
@@ -26111,7 +26093,6 @@ __export(exports_gen, {
|
|
|
26111
26093
|
listDataTables: () => listDataTables,
|
|
26112
26094
|
listDataTableTables: () => listDataTableTables,
|
|
26113
26095
|
listDataTableSchemas: () => listDataTableSchemas,
|
|
26114
|
-
listDataMetrics: () => listDataMetrics,
|
|
26115
26096
|
listCustomInstanceDbs: () => listCustomInstanceDbs,
|
|
26116
26097
|
listConversationMessages: () => listConversationMessages,
|
|
26117
26098
|
listContextualVariables: () => listContextualVariables,
|
|
@@ -26699,7 +26680,7 @@ var init_auth = __esm(async () => {
|
|
|
26699
26680
|
});
|
|
26700
26681
|
|
|
26701
26682
|
// src/core/constants.ts
|
|
26702
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
26683
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.764.0";
|
|
26703
26684
|
|
|
26704
26685
|
// src/utils/git.ts
|
|
26705
26686
|
var exports_git = {};
|
|
@@ -26800,20 +26781,18 @@ function computeGitSyncDeployBranch(params) {
|
|
|
26800
26781
|
groupByFolder,
|
|
26801
26782
|
clonedBranchName
|
|
26802
26783
|
} = params;
|
|
26803
|
-
|
|
26804
|
-
if (isForkWorkspace(workspaceId, parentWorkspaceId) && !(isDevWorkspace && useIndividualBranch)) {
|
|
26784
|
+
if (isForkWorkspace(workspaceId, parentWorkspaceId)) {
|
|
26805
26785
|
return forkBranchName(workspaceId, clonedBranchName, devWorkspaceLabel);
|
|
26806
26786
|
}
|
|
26807
|
-
const fallback = isDevWorkspace ? forkBranchName(workspaceId, clonedBranchName, devWorkspaceLabel) : null;
|
|
26808
26787
|
if (items.length === 0)
|
|
26809
|
-
return
|
|
26788
|
+
return null;
|
|
26810
26789
|
const first = items[0];
|
|
26811
26790
|
if (!useIndividualBranch || first.path_type === "user" || first.path_type === "group") {
|
|
26812
|
-
return
|
|
26791
|
+
return null;
|
|
26813
26792
|
}
|
|
26814
|
-
const ref = first.path
|
|
26793
|
+
const ref = first.path ?? first.parent_path;
|
|
26815
26794
|
if (!ref)
|
|
26816
|
-
return
|
|
26795
|
+
return null;
|
|
26817
26796
|
return groupByFolder ? `wm_deploy/${workspaceId}/${ref.split("/").slice(0, 2).join("__")}` : `wm_deploy/${workspaceId}/${first.path_type}/${ref.replaceAll("/", "__")}`;
|
|
26818
26797
|
}
|
|
26819
26798
|
function composeGitSyncCommitHeader(items) {
|
|
@@ -49223,7 +49202,7 @@ var require_zipEntries = __commonJS((exports, module) => {
|
|
|
49223
49202
|
if (this.centralDirRecords !== this.files.length) {
|
|
49224
49203
|
if (this.centralDirRecords !== 0 && this.files.length === 0) {
|
|
49225
49204
|
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
49226
|
-
}
|
|
49205
|
+
}
|
|
49227
49206
|
}
|
|
49228
49207
|
},
|
|
49229
49208
|
readEndOfCentral: function() {
|
|
@@ -57657,7 +57636,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
57657
57636
|
var error2 = generateError(state, message);
|
|
57658
57637
|
if (state.onWarning) {
|
|
57659
57638
|
state.onWarning.call(null, error2);
|
|
57660
|
-
}
|
|
57639
|
+
}
|
|
57661
57640
|
}
|
|
57662
57641
|
var directiveHandlers = {
|
|
57663
57642
|
YAML: function handleYamlDirective(state, name, args) {
|
|
@@ -58195,7 +58174,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
58195
58174
|
} else if (detectedIndent) {
|
|
58196
58175
|
sc.value += common3.repeat(`
|
|
58197
58176
|
`, emptyLines + 1);
|
|
58198
|
-
}
|
|
58177
|
+
}
|
|
58199
58178
|
detectedIndent = true;
|
|
58200
58179
|
emptyLines = 0;
|
|
58201
58180
|
captureStart = state.position;
|
|
@@ -69631,9 +69610,8 @@ async function pull(opts) {
|
|
|
69631
69610
|
}
|
|
69632
69611
|
const clonedBranchName = getCurrentGitBranch() ?? "main";
|
|
69633
69612
|
const targetIsFork = isForkWorkspace(workspace.workspaceId, opts.parentWorkspaceId);
|
|
69634
|
-
const
|
|
69635
|
-
const
|
|
69636
|
-
const groupByFolder = forceOffPromotion ? false : !!opts.groupByFolder;
|
|
69613
|
+
const useIndividualBranch = targetIsFork ? false : !!opts.useIndividualBranch;
|
|
69614
|
+
const groupByFolder = targetIsFork ? false : !!opts.groupByFolder;
|
|
69637
69615
|
const parentBranch = opts.parentDevWorkspaceLabel ? opts.parentDevWorkspaceLabel : opts.parentWorkspaceId && isForkWorkspace(opts.parentWorkspaceId) ? computeGitSyncDeployBranch({
|
|
69638
69616
|
workspaceId: opts.parentWorkspaceId,
|
|
69639
69617
|
items: deployItems,
|
|
@@ -69914,7 +69892,7 @@ async function gitDeploy(opts) {
|
|
|
69914
69892
|
}
|
|
69915
69893
|
}
|
|
69916
69894
|
const isFork = isForkWorkspace(opts.workspace ?? "", opts.parentWorkspaceId);
|
|
69917
|
-
const useIndividualBranch = isFork
|
|
69895
|
+
const useIndividualBranch = isFork ? false : !!opts.useIndividualBranch;
|
|
69918
69896
|
const includes = deriveGitSyncDeployIncludes(items, useIndividualBranch);
|
|
69919
69897
|
const promotion = useIndividualBranch && !opts.promotion ? getCurrentGitBranch() ?? undefined : opts.promotion;
|
|
69920
69898
|
await pull({
|