windmill-cli 1.794.1 → 1.796.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 +236 -25
- package/package.json +1 -1
package/esm/main.js
CHANGED
|
@@ -16769,7 +16769,7 @@ var init_OpenAPI = __esm(() => {
|
|
|
16769
16769
|
PASSWORD: undefined,
|
|
16770
16770
|
TOKEN: getEnv3("WM_TOKEN"),
|
|
16771
16771
|
USERNAME: undefined,
|
|
16772
|
-
VERSION: "1.
|
|
16772
|
+
VERSION: "1.796.0",
|
|
16773
16773
|
WITH_CREDENTIALS: true,
|
|
16774
16774
|
interceptors: {
|
|
16775
16775
|
request: new Interceptors,
|
|
@@ -17083,6 +17083,7 @@ __export(exports_services_gen, {
|
|
|
17083
17083
|
clearIndex: () => clearIndex,
|
|
17084
17084
|
clearResourceHistory: () => clearResourceHistory,
|
|
17085
17085
|
closeDeploymentRequestMerged: () => closeDeploymentRequestMerged,
|
|
17086
|
+
collectExperiment: () => collectExperiment,
|
|
17086
17087
|
commitKafkaOffsets: () => commitKafkaOffsets,
|
|
17087
17088
|
compareWorkspaces: () => compareWorkspaces,
|
|
17088
17089
|
computeObjectStorageUsage: () => computeObjectStorageUsage,
|
|
@@ -17110,6 +17111,7 @@ __export(exports_services_gen, {
|
|
|
17110
17111
|
createDeploymentRequest: () => createDeploymentRequest,
|
|
17111
17112
|
createDeploymentRequestComment: () => createDeploymentRequestComment,
|
|
17112
17113
|
createEmailTrigger: () => createEmailTrigger,
|
|
17114
|
+
createEvalDataset: () => createEvalDataset,
|
|
17113
17115
|
createFlow: () => createFlow,
|
|
17114
17116
|
createFolder: () => createFolder,
|
|
17115
17117
|
createGcpTrigger: () => createGcpTrigger,
|
|
@@ -17161,6 +17163,7 @@ __export(exports_services_gen, {
|
|
|
17161
17163
|
deleteConfig: () => deleteConfig,
|
|
17162
17164
|
deleteDatatableMigration: () => deleteDatatableMigration,
|
|
17163
17165
|
deleteEmailTrigger: () => deleteEmailTrigger,
|
|
17166
|
+
deleteEvalDataset: () => deleteEvalDataset,
|
|
17164
17167
|
deleteFlowByPath: () => deleteFlowByPath,
|
|
17165
17168
|
deleteFlowConversation: () => deleteFlowConversation,
|
|
17166
17169
|
deleteFolder: () => deleteFolder,
|
|
@@ -17236,6 +17239,8 @@ __export(exports_services_gen, {
|
|
|
17236
17239
|
editWorkspaceGitSyncConfig: () => editWorkspaceGitSyncConfig,
|
|
17237
17240
|
enableDatatableMigrations: () => enableDatatableMigrations,
|
|
17238
17241
|
encryptValue: () => encryptValue,
|
|
17242
|
+
evalRunPayload: () => evalRunPayload,
|
|
17243
|
+
evalSubjectState: () => evalSubjectState,
|
|
17239
17244
|
executeComponent: () => executeComponent,
|
|
17240
17245
|
existsAmqpTrigger: () => existsAmqpTrigger,
|
|
17241
17246
|
existsApp: () => existsApp,
|
|
@@ -17264,6 +17269,7 @@ __export(exports_services_gen, {
|
|
|
17264
17269
|
existsWorkersWithTags: () => existsWorkersWithTags,
|
|
17265
17270
|
existsWorkspace: () => existsWorkspace,
|
|
17266
17271
|
exitImpersonation: () => exitImpersonation,
|
|
17272
|
+
experimentResults: () => experimentResults,
|
|
17267
17273
|
exportCompletedJobs: () => exportCompletedJobs,
|
|
17268
17274
|
exportInstallation: () => exportInstallation,
|
|
17269
17275
|
exportInstanceGroups: () => exportInstanceGroups,
|
|
@@ -17333,6 +17339,7 @@ __export(exports_services_gen, {
|
|
|
17333
17339
|
getDevWorkspace: () => getDevWorkspace,
|
|
17334
17340
|
getDraftForUser: () => getDraftForUser,
|
|
17335
17341
|
getEmailTrigger: () => getEmailTrigger,
|
|
17342
|
+
getEvalDataset: () => getEvalDataset,
|
|
17336
17343
|
getFlowAllLogs: () => getFlowAllLogs,
|
|
17337
17344
|
getFlowAllLogsStructured: () => getFlowAllLogsStructured,
|
|
17338
17345
|
getFlowAllResults: () => getFlowAllResults,
|
|
@@ -17508,7 +17515,9 @@ __export(exports_services_gen, {
|
|
|
17508
17515
|
leaveWorkspace: () => leaveWorkspace,
|
|
17509
17516
|
listAddableInstanceUsers: () => listAddableInstanceUsers,
|
|
17510
17517
|
listAiSkills: () => listAiSkills,
|
|
17518
|
+
listAiUsage: () => listAiUsage,
|
|
17511
17519
|
listAllDedicatedWithDeps: () => listAllDedicatedWithDeps,
|
|
17520
|
+
listAllExperiments: () => listAllExperiments,
|
|
17512
17521
|
listAllTgoogleTopicSubscriptions: () => listAllTgoogleTopicSubscriptions,
|
|
17513
17522
|
listAllTgoogleTopicSubscriptionsWithDefaultCredentials: () => listAllTgoogleTopicSubscriptionsWithDefaultCredentials,
|
|
17514
17523
|
listAllWorkspaceDependencies: () => listAllWorkspaceDependencies,
|
|
@@ -17551,6 +17560,8 @@ __export(exports_services_gen, {
|
|
|
17551
17560
|
listDrafts: () => listDrafts,
|
|
17552
17561
|
listDucklakes: () => listDucklakes,
|
|
17553
17562
|
listEmailTriggers: () => listEmailTriggers,
|
|
17563
|
+
listEvalCases: () => listEvalCases,
|
|
17564
|
+
listEvalDatasets: () => listEvalDatasets,
|
|
17554
17565
|
listExtJwtTokens: () => listExtJwtTokens,
|
|
17555
17566
|
listExtendedJobs: () => listExtendedJobs,
|
|
17556
17567
|
listFavoriteAssets: () => listFavoriteAssets,
|
|
@@ -17697,6 +17708,8 @@ __export(exports_services_gen, {
|
|
|
17697
17708
|
rawScriptByPathTokened: () => rawScriptByPathTokened,
|
|
17698
17709
|
readDocsPage: () => readDocsPage,
|
|
17699
17710
|
rebuildDependencyMap: () => rebuildDependencyMap,
|
|
17711
|
+
recentScorers: () => recentScorers,
|
|
17712
|
+
recordAiUsage: () => recordAiUsage,
|
|
17700
17713
|
recordDbtRunProgress: () => recordDbtRunProgress,
|
|
17701
17714
|
refreshCustomInstanceUserPwd: () => refreshCustomInstanceUserPwd,
|
|
17702
17715
|
refreshToken: () => refreshToken,
|
|
@@ -17735,6 +17748,7 @@ __export(exports_services_gen, {
|
|
|
17735
17748
|
runCodeWorkflowTask: () => runCodeWorkflowTask,
|
|
17736
17749
|
runDatatableMigrations: () => runDatatableMigrations,
|
|
17737
17750
|
runDynamicSelect: () => runDynamicSelect,
|
|
17751
|
+
runExperiment: () => runExperiment,
|
|
17738
17752
|
runFlowByPath: () => runFlowByPath,
|
|
17739
17753
|
runFlowByVersion: () => runFlowByVersion,
|
|
17740
17754
|
runFlowDependenciesAsync: () => runFlowDependenciesAsync,
|
|
@@ -17758,6 +17772,7 @@ __export(exports_services_gen, {
|
|
|
17758
17772
|
runWaitResultScriptByPath: () => runWaitResultScriptByPath,
|
|
17759
17773
|
runWaitResultScriptByPathGet: () => runWaitResultScriptByPathGet,
|
|
17760
17774
|
s3ResourceInfo: () => s3ResourceInfo,
|
|
17775
|
+
scorerDefaults: () => scorerDefaults,
|
|
17761
17776
|
searchDocs: () => searchDocs,
|
|
17762
17777
|
searchJobsIndex: () => searchJobsIndex,
|
|
17763
17778
|
searchLogsIndex: () => searchLogsIndex,
|
|
@@ -17832,6 +17847,7 @@ __export(exports_services_gen, {
|
|
|
17832
17847
|
updateConfig: () => updateConfig,
|
|
17833
17848
|
updateDraft: () => updateDraft,
|
|
17834
17849
|
updateEmailTrigger: () => updateEmailTrigger,
|
|
17850
|
+
updateEvalDataset: () => updateEvalDataset,
|
|
17835
17851
|
updateFlow: () => updateFlow,
|
|
17836
17852
|
updateFlowHistory: () => updateFlowHistory,
|
|
17837
17853
|
updateFolder: () => updateFolder,
|
|
@@ -20368,19 +20384,19 @@ var backendVersion = () => {
|
|
|
20368
20384
|
}, getResourceVersion = (data3) => {
|
|
20369
20385
|
return request(OpenAPI, {
|
|
20370
20386
|
method: "GET",
|
|
20371
|
-
url: "/w/{workspace}/resources/history/v/{
|
|
20387
|
+
url: "/w/{workspace}/resources/history/v/{id}",
|
|
20372
20388
|
path: {
|
|
20373
20389
|
workspace: data3.workspace,
|
|
20374
|
-
|
|
20390
|
+
id: data3.id
|
|
20375
20391
|
}
|
|
20376
20392
|
});
|
|
20377
20393
|
}, restoreResourceVersion = (data3) => {
|
|
20378
20394
|
return request(OpenAPI, {
|
|
20379
20395
|
method: "POST",
|
|
20380
|
-
url: "/w/{workspace}/resources/history/restore/v/{
|
|
20396
|
+
url: "/w/{workspace}/resources/history/restore/v/{id}",
|
|
20381
20397
|
path: {
|
|
20382
20398
|
workspace: data3.workspace,
|
|
20383
|
-
|
|
20399
|
+
id: data3.id
|
|
20384
20400
|
}
|
|
20385
20401
|
});
|
|
20386
20402
|
}, getResource = (data3) => {
|
|
@@ -21773,6 +21789,152 @@ var backendVersion = () => {
|
|
|
21773
21789
|
after_seq: data3.afterSeq
|
|
21774
21790
|
}
|
|
21775
21791
|
});
|
|
21792
|
+
}, listEvalDatasets = (data3) => {
|
|
21793
|
+
return request(OpenAPI, {
|
|
21794
|
+
method: "GET",
|
|
21795
|
+
url: "/w/{workspace}/ai_evals/datasets/list",
|
|
21796
|
+
path: {
|
|
21797
|
+
workspace: data3.workspace
|
|
21798
|
+
}
|
|
21799
|
+
});
|
|
21800
|
+
}, createEvalDataset = (data3) => {
|
|
21801
|
+
return request(OpenAPI, {
|
|
21802
|
+
method: "POST",
|
|
21803
|
+
url: "/w/{workspace}/ai_evals/datasets/create",
|
|
21804
|
+
path: {
|
|
21805
|
+
workspace: data3.workspace
|
|
21806
|
+
},
|
|
21807
|
+
body: data3.requestBody,
|
|
21808
|
+
mediaType: "application/json"
|
|
21809
|
+
});
|
|
21810
|
+
}, getEvalDataset = (data3) => {
|
|
21811
|
+
return request(OpenAPI, {
|
|
21812
|
+
method: "GET",
|
|
21813
|
+
url: "/w/{workspace}/ai_evals/datasets/get/{path}",
|
|
21814
|
+
path: {
|
|
21815
|
+
workspace: data3.workspace,
|
|
21816
|
+
path: data3.path
|
|
21817
|
+
}
|
|
21818
|
+
});
|
|
21819
|
+
}, updateEvalDataset = (data3) => {
|
|
21820
|
+
return request(OpenAPI, {
|
|
21821
|
+
method: "POST",
|
|
21822
|
+
url: "/w/{workspace}/ai_evals/datasets/update/{path}",
|
|
21823
|
+
path: {
|
|
21824
|
+
workspace: data3.workspace,
|
|
21825
|
+
path: data3.path
|
|
21826
|
+
},
|
|
21827
|
+
body: data3.requestBody,
|
|
21828
|
+
mediaType: "application/json"
|
|
21829
|
+
});
|
|
21830
|
+
}, deleteEvalDataset = (data3) => {
|
|
21831
|
+
return request(OpenAPI, {
|
|
21832
|
+
method: "POST",
|
|
21833
|
+
url: "/w/{workspace}/ai_evals/datasets/delete/{path}",
|
|
21834
|
+
path: {
|
|
21835
|
+
workspace: data3.workspace,
|
|
21836
|
+
path: data3.path
|
|
21837
|
+
}
|
|
21838
|
+
});
|
|
21839
|
+
}, listEvalCases = (data3) => {
|
|
21840
|
+
return request(OpenAPI, {
|
|
21841
|
+
method: "GET",
|
|
21842
|
+
url: "/w/{workspace}/ai_evals/cases/list/{path}",
|
|
21843
|
+
path: {
|
|
21844
|
+
workspace: data3.workspace,
|
|
21845
|
+
path: data3.path
|
|
21846
|
+
},
|
|
21847
|
+
query: {
|
|
21848
|
+
page: data3.page,
|
|
21849
|
+
per_page: data3.perPage
|
|
21850
|
+
}
|
|
21851
|
+
});
|
|
21852
|
+
}, evalSubjectState = (data3) => {
|
|
21853
|
+
return request(OpenAPI, {
|
|
21854
|
+
method: "GET",
|
|
21855
|
+
url: "/w/{workspace}/ai_evals/subject_state",
|
|
21856
|
+
path: {
|
|
21857
|
+
workspace: data3.workspace
|
|
21858
|
+
},
|
|
21859
|
+
query: {
|
|
21860
|
+
path: data3.path
|
|
21861
|
+
}
|
|
21862
|
+
});
|
|
21863
|
+
}, evalRunPayload = (data3) => {
|
|
21864
|
+
return request(OpenAPI, {
|
|
21865
|
+
method: "GET",
|
|
21866
|
+
url: "/w/{workspace}/ai_evals/run_payload",
|
|
21867
|
+
path: {
|
|
21868
|
+
workspace: data3.workspace
|
|
21869
|
+
},
|
|
21870
|
+
query: {
|
|
21871
|
+
job_id: data3.jobId
|
|
21872
|
+
}
|
|
21873
|
+
});
|
|
21874
|
+
}, scorerDefaults = (data3) => {
|
|
21875
|
+
return request(OpenAPI, {
|
|
21876
|
+
method: "GET",
|
|
21877
|
+
url: "/w/{workspace}/ai_evals/scorer_defaults",
|
|
21878
|
+
path: {
|
|
21879
|
+
workspace: data3.workspace
|
|
21880
|
+
}
|
|
21881
|
+
});
|
|
21882
|
+
}, recentScorers = (data3) => {
|
|
21883
|
+
return request(OpenAPI, {
|
|
21884
|
+
method: "GET",
|
|
21885
|
+
url: "/w/{workspace}/ai_evals/scorers/recent",
|
|
21886
|
+
path: {
|
|
21887
|
+
workspace: data3.workspace
|
|
21888
|
+
},
|
|
21889
|
+
query: {
|
|
21890
|
+
kind: data3.kind
|
|
21891
|
+
}
|
|
21892
|
+
});
|
|
21893
|
+
}, runExperiment = (data3) => {
|
|
21894
|
+
return request(OpenAPI, {
|
|
21895
|
+
method: "POST",
|
|
21896
|
+
url: "/w/{workspace}/ai_evals/experiments/run",
|
|
21897
|
+
path: {
|
|
21898
|
+
workspace: data3.workspace
|
|
21899
|
+
},
|
|
21900
|
+
body: data3.requestBody,
|
|
21901
|
+
mediaType: "application/json"
|
|
21902
|
+
});
|
|
21903
|
+
}, collectExperiment = (data3) => {
|
|
21904
|
+
return request(OpenAPI, {
|
|
21905
|
+
method: "POST",
|
|
21906
|
+
url: "/w/{workspace}/ai_evals/experiments/collect",
|
|
21907
|
+
path: {
|
|
21908
|
+
workspace: data3.workspace
|
|
21909
|
+
},
|
|
21910
|
+
query: {
|
|
21911
|
+
id: data3.id
|
|
21912
|
+
}
|
|
21913
|
+
});
|
|
21914
|
+
}, listAllExperiments = (data3) => {
|
|
21915
|
+
return request(OpenAPI, {
|
|
21916
|
+
method: "GET",
|
|
21917
|
+
url: "/w/{workspace}/ai_evals/experiments/list_all",
|
|
21918
|
+
path: {
|
|
21919
|
+
workspace: data3.workspace
|
|
21920
|
+
},
|
|
21921
|
+
query: {
|
|
21922
|
+
subject_path: data3.subjectPath
|
|
21923
|
+
}
|
|
21924
|
+
});
|
|
21925
|
+
}, experimentResults = (data3) => {
|
|
21926
|
+
return request(OpenAPI, {
|
|
21927
|
+
method: "GET",
|
|
21928
|
+
url: "/w/{workspace}/ai_evals/experiments/results/{path}",
|
|
21929
|
+
path: {
|
|
21930
|
+
workspace: data3.workspace,
|
|
21931
|
+
path: data3.path
|
|
21932
|
+
},
|
|
21933
|
+
query: {
|
|
21934
|
+
id: data3.id,
|
|
21935
|
+
baseline: data3.baseline
|
|
21936
|
+
}
|
|
21937
|
+
});
|
|
21776
21938
|
}, listPathAutocompletePaths = (data3) => {
|
|
21777
21939
|
return request(OpenAPI, {
|
|
21778
21940
|
method: "GET",
|
|
@@ -21837,6 +21999,29 @@ var backendVersion = () => {
|
|
|
21837
21999
|
body: data3.requestBody,
|
|
21838
22000
|
mediaType: "application/json"
|
|
21839
22001
|
});
|
|
22002
|
+
}, recordAiUsage = (data3) => {
|
|
22003
|
+
return request(OpenAPI, {
|
|
22004
|
+
method: "POST",
|
|
22005
|
+
url: "/w/{workspace}/ai/usage",
|
|
22006
|
+
path: {
|
|
22007
|
+
workspace: data3.workspace
|
|
22008
|
+
},
|
|
22009
|
+
body: data3.requestBody,
|
|
22010
|
+
mediaType: "application/json"
|
|
22011
|
+
});
|
|
22012
|
+
}, listAiUsage = (data3) => {
|
|
22013
|
+
return request(OpenAPI, {
|
|
22014
|
+
method: "GET",
|
|
22015
|
+
url: "/w/{workspace}/ai/usage",
|
|
22016
|
+
path: {
|
|
22017
|
+
workspace: data3.workspace
|
|
22018
|
+
},
|
|
22019
|
+
query: {
|
|
22020
|
+
days: data3.days,
|
|
22021
|
+
group_by: data3.groupBy,
|
|
22022
|
+
scope: data3.scope
|
|
22023
|
+
}
|
|
22024
|
+
});
|
|
21840
22025
|
}, listAiSkills = (data3) => {
|
|
21841
22026
|
return request(OpenAPI, {
|
|
21842
22027
|
method: "GET",
|
|
@@ -26635,6 +26820,7 @@ __export(exports_gen, {
|
|
|
26635
26820
|
clearIndex: () => clearIndex,
|
|
26636
26821
|
clearResourceHistory: () => clearResourceHistory,
|
|
26637
26822
|
closeDeploymentRequestMerged: () => closeDeploymentRequestMerged,
|
|
26823
|
+
collectExperiment: () => collectExperiment,
|
|
26638
26824
|
commitKafkaOffsets: () => commitKafkaOffsets,
|
|
26639
26825
|
compareWorkspaces: () => compareWorkspaces,
|
|
26640
26826
|
computeObjectStorageUsage: () => computeObjectStorageUsage,
|
|
@@ -26662,6 +26848,7 @@ __export(exports_gen, {
|
|
|
26662
26848
|
createDeploymentRequest: () => createDeploymentRequest,
|
|
26663
26849
|
createDeploymentRequestComment: () => createDeploymentRequestComment,
|
|
26664
26850
|
createEmailTrigger: () => createEmailTrigger,
|
|
26851
|
+
createEvalDataset: () => createEvalDataset,
|
|
26665
26852
|
createFlow: () => createFlow,
|
|
26666
26853
|
createFolder: () => createFolder,
|
|
26667
26854
|
createGcpTrigger: () => createGcpTrigger,
|
|
@@ -26713,6 +26900,7 @@ __export(exports_gen, {
|
|
|
26713
26900
|
deleteConfig: () => deleteConfig,
|
|
26714
26901
|
deleteDatatableMigration: () => deleteDatatableMigration,
|
|
26715
26902
|
deleteEmailTrigger: () => deleteEmailTrigger,
|
|
26903
|
+
deleteEvalDataset: () => deleteEvalDataset,
|
|
26716
26904
|
deleteFlowByPath: () => deleteFlowByPath,
|
|
26717
26905
|
deleteFlowConversation: () => deleteFlowConversation,
|
|
26718
26906
|
deleteFolder: () => deleteFolder,
|
|
@@ -26788,6 +26976,8 @@ __export(exports_gen, {
|
|
|
26788
26976
|
editWorkspaceGitSyncConfig: () => editWorkspaceGitSyncConfig,
|
|
26789
26977
|
enableDatatableMigrations: () => enableDatatableMigrations,
|
|
26790
26978
|
encryptValue: () => encryptValue,
|
|
26979
|
+
evalRunPayload: () => evalRunPayload,
|
|
26980
|
+
evalSubjectState: () => evalSubjectState,
|
|
26791
26981
|
executeComponent: () => executeComponent,
|
|
26792
26982
|
existsAmqpTrigger: () => existsAmqpTrigger,
|
|
26793
26983
|
existsApp: () => existsApp,
|
|
@@ -26816,6 +27006,7 @@ __export(exports_gen, {
|
|
|
26816
27006
|
existsWorkersWithTags: () => existsWorkersWithTags,
|
|
26817
27007
|
existsWorkspace: () => existsWorkspace,
|
|
26818
27008
|
exitImpersonation: () => exitImpersonation,
|
|
27009
|
+
experimentResults: () => experimentResults,
|
|
26819
27010
|
exportCompletedJobs: () => exportCompletedJobs,
|
|
26820
27011
|
exportInstallation: () => exportInstallation,
|
|
26821
27012
|
exportInstanceGroups: () => exportInstanceGroups,
|
|
@@ -26885,6 +27076,7 @@ __export(exports_gen, {
|
|
|
26885
27076
|
getDevWorkspace: () => getDevWorkspace,
|
|
26886
27077
|
getDraftForUser: () => getDraftForUser,
|
|
26887
27078
|
getEmailTrigger: () => getEmailTrigger,
|
|
27079
|
+
getEvalDataset: () => getEvalDataset,
|
|
26888
27080
|
getFlowAllLogs: () => getFlowAllLogs,
|
|
26889
27081
|
getFlowAllLogsStructured: () => getFlowAllLogsStructured,
|
|
26890
27082
|
getFlowAllResults: () => getFlowAllResults,
|
|
@@ -27060,7 +27252,9 @@ __export(exports_gen, {
|
|
|
27060
27252
|
leaveWorkspace: () => leaveWorkspace,
|
|
27061
27253
|
listAddableInstanceUsers: () => listAddableInstanceUsers,
|
|
27062
27254
|
listAiSkills: () => listAiSkills,
|
|
27255
|
+
listAiUsage: () => listAiUsage,
|
|
27063
27256
|
listAllDedicatedWithDeps: () => listAllDedicatedWithDeps,
|
|
27257
|
+
listAllExperiments: () => listAllExperiments,
|
|
27064
27258
|
listAllTgoogleTopicSubscriptions: () => listAllTgoogleTopicSubscriptions,
|
|
27065
27259
|
listAllTgoogleTopicSubscriptionsWithDefaultCredentials: () => listAllTgoogleTopicSubscriptionsWithDefaultCredentials,
|
|
27066
27260
|
listAllWorkspaceDependencies: () => listAllWorkspaceDependencies,
|
|
@@ -27103,6 +27297,8 @@ __export(exports_gen, {
|
|
|
27103
27297
|
listDrafts: () => listDrafts,
|
|
27104
27298
|
listDucklakes: () => listDucklakes,
|
|
27105
27299
|
listEmailTriggers: () => listEmailTriggers,
|
|
27300
|
+
listEvalCases: () => listEvalCases,
|
|
27301
|
+
listEvalDatasets: () => listEvalDatasets,
|
|
27106
27302
|
listExtJwtTokens: () => listExtJwtTokens,
|
|
27107
27303
|
listExtendedJobs: () => listExtendedJobs,
|
|
27108
27304
|
listFavoriteAssets: () => listFavoriteAssets,
|
|
@@ -27249,6 +27445,8 @@ __export(exports_gen, {
|
|
|
27249
27445
|
rawScriptByPathTokened: () => rawScriptByPathTokened,
|
|
27250
27446
|
readDocsPage: () => readDocsPage,
|
|
27251
27447
|
rebuildDependencyMap: () => rebuildDependencyMap,
|
|
27448
|
+
recentScorers: () => recentScorers,
|
|
27449
|
+
recordAiUsage: () => recordAiUsage,
|
|
27252
27450
|
recordDbtRunProgress: () => recordDbtRunProgress,
|
|
27253
27451
|
refreshCustomInstanceUserPwd: () => refreshCustomInstanceUserPwd,
|
|
27254
27452
|
refreshToken: () => refreshToken,
|
|
@@ -27287,6 +27485,7 @@ __export(exports_gen, {
|
|
|
27287
27485
|
runCodeWorkflowTask: () => runCodeWorkflowTask,
|
|
27288
27486
|
runDatatableMigrations: () => runDatatableMigrations,
|
|
27289
27487
|
runDynamicSelect: () => runDynamicSelect,
|
|
27488
|
+
runExperiment: () => runExperiment,
|
|
27290
27489
|
runFlowByPath: () => runFlowByPath,
|
|
27291
27490
|
runFlowByVersion: () => runFlowByVersion,
|
|
27292
27491
|
runFlowDependenciesAsync: () => runFlowDependenciesAsync,
|
|
@@ -27310,6 +27509,7 @@ __export(exports_gen, {
|
|
|
27310
27509
|
runWaitResultScriptByPath: () => runWaitResultScriptByPath,
|
|
27311
27510
|
runWaitResultScriptByPathGet: () => runWaitResultScriptByPathGet,
|
|
27312
27511
|
s3ResourceInfo: () => s3ResourceInfo,
|
|
27512
|
+
scorerDefaults: () => scorerDefaults,
|
|
27313
27513
|
searchDocs: () => searchDocs,
|
|
27314
27514
|
searchJobsIndex: () => searchJobsIndex,
|
|
27315
27515
|
searchLogsIndex: () => searchLogsIndex,
|
|
@@ -27384,6 +27584,7 @@ __export(exports_gen, {
|
|
|
27384
27584
|
updateConfig: () => updateConfig,
|
|
27385
27585
|
updateDraft: () => updateDraft,
|
|
27386
27586
|
updateEmailTrigger: () => updateEmailTrigger,
|
|
27587
|
+
updateEvalDataset: () => updateEvalDataset,
|
|
27387
27588
|
updateFlow: () => updateFlow,
|
|
27388
27589
|
updateFlowHistory: () => updateFlowHistory,
|
|
27389
27590
|
updateFolder: () => updateFolder,
|
|
@@ -27547,7 +27748,7 @@ var init_auth = __esm(async () => {
|
|
|
27547
27748
|
});
|
|
27548
27749
|
|
|
27549
27750
|
// src/core/constants.ts
|
|
27550
|
-
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.
|
|
27751
|
+
var WM_FORK_PREFIX = "wm-fork", VERSION = "1.796.0";
|
|
27551
27752
|
|
|
27552
27753
|
// src/utils/git.ts
|
|
27553
27754
|
var exports_git = {};
|
|
@@ -65611,7 +65812,7 @@ var init_openflow = __esm(() => {
|
|
|
65611
65812
|
openflow_default = {
|
|
65612
65813
|
openapi: "3.0.3",
|
|
65613
65814
|
info: {
|
|
65614
|
-
version: "1.
|
|
65815
|
+
version: "1.796.0",
|
|
65615
65816
|
title: "OpenFlow Spec",
|
|
65616
65817
|
contact: {
|
|
65617
65818
|
name: "Ruben Fiszel",
|
|
@@ -73852,6 +74053,7 @@ __export(exports_sync, {
|
|
|
73852
74053
|
pull: () => pull,
|
|
73853
74054
|
push: () => push4,
|
|
73854
74055
|
pushParentScriptForModule: () => pushParentScriptForModule,
|
|
74056
|
+
rawAppPathWithinFolder: () => rawAppPathWithinFolder,
|
|
73855
74057
|
readDirRecursiveWithIgnore: () => readDirRecursiveWithIgnore2,
|
|
73856
74058
|
resolveWsNameForConfigFromFlags: () => resolveWsNameForConfigFromFlags,
|
|
73857
74059
|
summarizeCaseRewrites: () => summarizeCaseRewrites,
|
|
@@ -74437,6 +74639,14 @@ async function pushFilesetParentResource(childPath, workspaceId, alreadySynced,
|
|
|
74437
74639
|
await pushResource(workspaceId, serverPath, undefined, newObj, resourceFilePath, wsSpecific ? true : undefined, true);
|
|
74438
74640
|
return { status: "pushed", resourceFilePath };
|
|
74439
74641
|
}
|
|
74642
|
+
function rawAppPathWithinFolder(baseFolder, relPath) {
|
|
74643
|
+
const resolved = path13.join(baseFolder, relPath);
|
|
74644
|
+
const rel = path13.relative(baseFolder, resolved);
|
|
74645
|
+
if (rel === "" || rel === ".." || rel.startsWith(".." + path13.sep) || path13.isAbsolute(rel)) {
|
|
74646
|
+
throw new Error(`raw app path ${JSON.stringify(relPath)} escapes the app folder ${baseFolder}`);
|
|
74647
|
+
}
|
|
74648
|
+
return resolved;
|
|
74649
|
+
}
|
|
74440
74650
|
function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, resourceTypeToIsFileset, ignoreCodebaseChanges, stripOnBehalfOf) {
|
|
74441
74651
|
let _moduleScriptPaths = null;
|
|
74442
74652
|
async function getModuleScriptPaths() {
|
|
@@ -74638,9 +74848,10 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, re
|
|
|
74638
74848
|
if (filePath.startsWith("/sql_to_apply/") || filePath === "/wmill.d.ts" || filePath === "/AGENTS.md" || filePath === "/DATATABLES.md") {
|
|
74639
74849
|
continue;
|
|
74640
74850
|
}
|
|
74851
|
+
const filePathInApp = rawAppPathWithinFolder(finalPath, filePath.replace(/^\//, ""));
|
|
74641
74852
|
yield {
|
|
74642
74853
|
isDirectory: false,
|
|
74643
|
-
path:
|
|
74854
|
+
path: filePathInApp,
|
|
74644
74855
|
async* getChildren() {},
|
|
74645
74856
|
async getContentText() {
|
|
74646
74857
|
if (typeof content !== "string") {
|
|
@@ -74693,7 +74904,7 @@ function ZipFSElement(zip, useYaml, defaultTs, resourceTypeToFormatExtension, re
|
|
|
74693
74904
|
}
|
|
74694
74905
|
yield {
|
|
74695
74906
|
isDirectory: false,
|
|
74696
|
-
path: path13.join(finalPath, APP_BACKEND_FOLDER, `${runnableId}.yaml`),
|
|
74907
|
+
path: rawAppPathWithinFolder(path13.join(finalPath, APP_BACKEND_FOLDER), `${runnableId}.yaml`),
|
|
74697
74908
|
async* getChildren() {},
|
|
74698
74909
|
async getContentText() {
|
|
74699
74910
|
return import_yaml14.stringify(simplifiedRunnable, yamlOptions);
|
|
@@ -75213,7 +75424,7 @@ function canonicalizeCaseInsensitiveKeys(localMap, remoteMap) {
|
|
|
75213
75424
|
const out = {};
|
|
75214
75425
|
const rewritten = [];
|
|
75215
75426
|
for (const [k4, v4] of Object.entries(localMap)) {
|
|
75216
|
-
const
|
|
75427
|
+
const sep6 = k4.includes("\\") ? "\\" : "/";
|
|
75217
75428
|
const segs = k4.split(/[\\/]/);
|
|
75218
75429
|
const canonSegs = [];
|
|
75219
75430
|
let node = root;
|
|
@@ -75234,7 +75445,7 @@ function canonicalizeCaseInsensitiveKeys(localMap, remoteMap) {
|
|
|
75234
75445
|
node = undefined;
|
|
75235
75446
|
}
|
|
75236
75447
|
}
|
|
75237
|
-
const canonKey = canonSegs.join(
|
|
75448
|
+
const canonKey = canonSegs.join(sep6);
|
|
75238
75449
|
if (changed && canonKey !== k4) {
|
|
75239
75450
|
out[canonKey] = v4;
|
|
75240
75451
|
rewritten.push({ from: k4, to: canonKey });
|
|
@@ -76727,11 +76938,11 @@ Run 'wmill folder add-missing' to create them locally, then push again.`;
|
|
|
76727
76938
|
}
|
|
76728
76939
|
const rules = folderRulesCache.get(folderName2);
|
|
76729
76940
|
const remotePath = change.path.replace(/\.(script|schedule|http_trigger|websocket_trigger|kafka_trigger|nats_trigger|postgres_trigger|mqtt_trigger|amqp_trigger|sqs_trigger|gcp_trigger|azure_trigger|email_trigger)\.(yaml|json)$/, "").replace(/(\.flow|__flow)\/flow\.(yaml|json)$/, "").replace(/\.(app|raw_app)(\/app\.(yaml|json))?$/, "");
|
|
76730
|
-
const
|
|
76731
|
-
if (!
|
|
76941
|
+
const relative9 = remotePath.slice(`f/${folderName2}/`.length);
|
|
76942
|
+
if (!relative9)
|
|
76732
76943
|
continue;
|
|
76733
76944
|
for (const rule of rules) {
|
|
76734
|
-
if (minimatch(
|
|
76945
|
+
if (minimatch(relative9, rule.path_glob)) {
|
|
76735
76946
|
folderDefaultAnnotations.set(change.path, rule.permissioned_as);
|
|
76736
76947
|
break;
|
|
76737
76948
|
}
|
|
@@ -77739,12 +77950,12 @@ function filterWorkspaceDependencies(rawWorkspaceDependencies, scriptContent, la
|
|
|
77739
77950
|
}
|
|
77740
77951
|
return filtered;
|
|
77741
77952
|
}
|
|
77742
|
-
async function filterWorkspaceDependenciesForScripts(scripts, rawWorkspaceDependencies, folder,
|
|
77953
|
+
async function filterWorkspaceDependenciesForScripts(scripts, rawWorkspaceDependencies, folder, sep6) {
|
|
77743
77954
|
const filtered = {};
|
|
77744
77955
|
for (const script of scripts) {
|
|
77745
77956
|
let content = script.content;
|
|
77746
77957
|
if (content.startsWith("!inline ")) {
|
|
77747
|
-
const filePath = folder +
|
|
77958
|
+
const filePath = folder + sep6 + content.replace("!inline ", "");
|
|
77748
77959
|
try {
|
|
77749
77960
|
content = await readTextFile(filePath);
|
|
77750
77961
|
} catch {
|
|
@@ -81978,7 +82189,7 @@ var init_new = __esm(async () => {
|
|
|
81978
82189
|
});
|
|
81979
82190
|
|
|
81980
82191
|
// src/commands/app/app.ts
|
|
81981
|
-
import { sep as SEP14, isAbsolute as
|
|
82192
|
+
import { sep as SEP14, isAbsolute as isAbsolute6, resolve as pathResolve, relative as pathRelative, basename as basename9 } from "node:path";
|
|
81982
82193
|
import { stat as stat10 } from "node:fs/promises";
|
|
81983
82194
|
function respecializeFields(fields) {
|
|
81984
82195
|
Object.entries(fields).forEach(([k4, v4]) => {
|
|
@@ -82179,7 +82390,7 @@ async function push5(opts, filePath, remotePath) {
|
|
|
82179
82390
|
if (!filePath) {
|
|
82180
82391
|
filePath = originalCwd;
|
|
82181
82392
|
}
|
|
82182
|
-
const absoluteFilePath =
|
|
82393
|
+
const absoluteFilePath = isAbsolute6(filePath) ? filePath : pathResolve(originalCwd, filePath);
|
|
82183
82394
|
const normalizedPath = absoluteFilePath.endsWith(SEP14) ? absoluteFilePath.slice(0, -1) : absoluteFilePath;
|
|
82184
82395
|
const dirName = basename9(normalizedPath);
|
|
82185
82396
|
const isRawAppByName = dirName.endsWith("__raw_app") || dirName.endsWith(".raw_app");
|
|
@@ -82208,7 +82419,7 @@ async function push5(opts, filePath, remotePath) {
|
|
|
82208
82419
|
}
|
|
82209
82420
|
const wmillRoot = process.cwd();
|
|
82210
82421
|
let inferred = pathRelative(wmillRoot, normalizedPath).replaceAll(SEP14, "/");
|
|
82211
|
-
if (inferred.startsWith("..") ||
|
|
82422
|
+
if (inferred.startsWith("..") || isAbsolute6(inferred)) {
|
|
82212
82423
|
error(colors.red(`Could not infer remote path: '${filePath}' is outside the wmill.yaml root (${wmillRoot}). Move the folder under the root or pass <remote_path> explicitly.`));
|
|
82213
82424
|
return;
|
|
82214
82425
|
}
|
|
@@ -82504,24 +82715,24 @@ var init_folder = __esm(async () => {
|
|
|
82504
82715
|
error(`Path '${testPath}' is not under folder '${folderName2}' (expected prefix '${prefix}')`);
|
|
82505
82716
|
return;
|
|
82506
82717
|
}
|
|
82507
|
-
const
|
|
82718
|
+
const relative10 = testPath.slice(prefix.length);
|
|
82508
82719
|
const { minimatch: minimatch2 } = await Promise.resolve().then(() => (init_esm2(), exports_esm));
|
|
82509
82720
|
for (let i5 = 0;i5 < rules.length; i5++) {
|
|
82510
82721
|
const rule = rules[i5];
|
|
82511
|
-
if (minimatch2(
|
|
82722
|
+
if (minimatch2(relative10, rule.path_glob)) {
|
|
82512
82723
|
if (opts.json) {
|
|
82513
|
-
console.log(JSON.stringify({ matched: true, rule_index: i5, rule, relative_path:
|
|
82724
|
+
console.log(JSON.stringify({ matched: true, rule_index: i5, rule, relative_path: relative10 }));
|
|
82514
82725
|
} else {
|
|
82515
82726
|
info(colors.green(`✓ Rule #${i5 + 1} matches: path_glob='${rule.path_glob}' → permissioned_as='${rule.permissioned_as}'`));
|
|
82516
|
-
info(colors.gray(` (relative path tested: '${
|
|
82727
|
+
info(colors.gray(` (relative path tested: '${relative10}')`));
|
|
82517
82728
|
}
|
|
82518
82729
|
return;
|
|
82519
82730
|
}
|
|
82520
82731
|
}
|
|
82521
82732
|
if (opts.json) {
|
|
82522
|
-
console.log(JSON.stringify({ matched: false, relative_path:
|
|
82733
|
+
console.log(JSON.stringify({ matched: false, relative_path: relative10 }));
|
|
82523
82734
|
} else {
|
|
82524
|
-
info(colors.yellow(`No rule matches path '${testPath}' (relative: '${
|
|
82735
|
+
info(colors.yellow(`No rule matches path '${testPath}' (relative: '${relative10}')`));
|
|
82525
82736
|
}
|
|
82526
82737
|
});
|
|
82527
82738
|
folder_default = command15;
|