windmill-components 1.695.1 → 1.698.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/dist/sharedUtils/assets/tokens/colorTokensConfig.d.ts +2 -0
- package/dist/sharedUtils/base.d.ts +1 -0
- package/dist/sharedUtils/cloud.d.ts +1 -0
- package/dist/sharedUtils/common.d.ts +111 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/count.d.ts +5 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/delete.d.ts +5 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/insert.d.ts +5 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/select.d.ts +13 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/queries/update.d.ts +11 -0
- package/dist/sharedUtils/components/apps/components/display/dbtable/utils.d.ts +95 -0
- package/dist/sharedUtils/components/apps/editor/appPolicy.d.ts +6 -0
- package/dist/sharedUtils/components/apps/editor/appUtilsCore.d.ts +7 -0
- package/dist/sharedUtils/components/apps/editor/appUtilsS3.d.ts +33 -0
- package/dist/sharedUtils/components/apps/editor/commonAppUtils.d.ts +10 -0
- package/dist/sharedUtils/components/apps/editor/component/components.d.ts +5371 -0
- package/dist/sharedUtils/components/apps/editor/component/default-codes.d.ts +3 -0
- package/dist/sharedUtils/components/apps/editor/component/index.d.ts +3 -0
- package/dist/sharedUtils/components/apps/editor/component/sets.d.ts +7 -0
- package/dist/sharedUtils/components/apps/editor/componentsPanel/componentDefaultProps.d.ts +3 -0
- package/dist/sharedUtils/components/apps/gridUtils.d.ts +14 -0
- package/dist/sharedUtils/components/apps/inputType.d.ts +178 -0
- package/dist/sharedUtils/components/apps/rx.d.ts +29 -0
- package/dist/sharedUtils/components/apps/sharedTypes.d.ts +21 -0
- package/dist/sharedUtils/components/apps/types.d.ts +274 -0
- package/dist/sharedUtils/components/assets/lib.d.ts +25 -0
- package/dist/sharedUtils/components/common/alert/model.d.ts +2 -0
- package/dist/sharedUtils/components/common/badge/model.d.ts +8 -0
- package/dist/sharedUtils/components/common/button/model.d.ts +45 -0
- package/dist/sharedUtils/components/common/fileInput/model.d.ts +1 -0
- package/dist/sharedUtils/components/common/index.d.ts +24 -0
- package/dist/sharedUtils/components/common/skeleton/model.d.ts +21 -0
- package/dist/sharedUtils/components/dbTypes.d.ts +14 -0
- package/dist/sharedUtils/components/diff_drawer.d.ts +26 -0
- package/dist/sharedUtils/components/ducklake.d.ts +1 -0
- package/dist/sharedUtils/components/flows/scheduleUtils.d.ts +7 -0
- package/dist/sharedUtils/components/icons/index.d.ts +101 -0
- package/dist/sharedUtils/components/random_positive_adjetive.d.ts +1 -0
- package/dist/sharedUtils/components/raw_apps/rawAppPolicy.d.ts +10 -0
- package/dist/sharedUtils/components/raw_apps/utils.d.ts +15 -0
- package/dist/sharedUtils/components/triggers/email/utils.d.ts +4 -0
- package/dist/sharedUtils/components/triggers/gcp/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers/http/utils.d.ts +11 -0
- package/dist/sharedUtils/components/triggers/kafka/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers/mqtt/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers/nats/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers/postgres/utils.d.ts +8 -0
- package/dist/sharedUtils/components/triggers/sqs/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers/triggers.svelte.d.ts +32 -0
- package/dist/sharedUtils/components/triggers/utils.d.ts +80 -0
- package/dist/sharedUtils/components/triggers/websocket/utils.d.ts +2 -0
- package/dist/sharedUtils/components/triggers.d.ts +20 -0
- package/dist/sharedUtils/gen/core/ApiError.d.ts +10 -0
- package/dist/sharedUtils/gen/core/ApiRequestOptions.d.ts +13 -0
- package/dist/sharedUtils/gen/core/ApiResult.d.ts +7 -0
- package/dist/sharedUtils/gen/core/CancelablePromise.d.ts +26 -0
- package/dist/sharedUtils/gen/core/OpenAPI.d.ts +27 -0
- package/dist/sharedUtils/gen/core/request.d.ts +29 -0
- package/dist/sharedUtils/gen/index.d.ts +6 -0
- package/dist/sharedUtils/gen/schemas.gen.d.ts +7036 -0
- package/dist/sharedUtils/gen/services.gen.d.ts +6047 -0
- package/dist/sharedUtils/gen/types.gen.d.ts +21881 -0
- package/dist/sharedUtils/history.svelte.d.ts +9 -0
- package/dist/sharedUtils/hub.d.ts +49 -0
- package/dist/sharedUtils/jsr.json +6 -0
- package/dist/sharedUtils/lib.d.ts +5 -0
- package/dist/sharedUtils/lib.es.js +1588 -0
- package/dist/sharedUtils/package.json +12 -0
- package/dist/sharedUtils/schema.d.ts +3 -0
- package/dist/sharedUtils/stores.d.ts +97 -0
- package/dist/sharedUtils/svelte5Utils.svelte.d.ts +80 -0
- package/dist/sharedUtils/toast.d.ts +8 -0
- package/dist/sharedUtils/utils.d.ts +265 -0
- package/package/components/AppConnectInner.svelte +38 -5
- package/package/components/CompareWorkspaces.svelte +142 -486
- package/package/components/Editor.svelte +5 -4
- package/package/components/Editor.svelte.d.ts +1 -0
- package/package/components/FilterSearchbar.svelte +3 -1
- package/package/components/FilterSearchbar.svelte.d.ts +1 -0
- package/package/components/ForkWorkspaceBanner.svelte +16 -0
- package/package/components/LogViewer.svelte +51 -60
- package/package/components/OnBehalfOfSelector.svelte +10 -7
- package/package/components/ResourceEditor.svelte +198 -311
- package/package/components/ResourceEditor.svelte.d.ts +3 -3
- package/package/components/ResourceEditorDrawer.svelte +17 -6
- package/package/components/ResourceForm.svelte +235 -0
- package/package/components/ResourceForm.svelte.d.ts +25 -0
- package/package/components/RunsPage.svelte +1 -0
- package/package/components/ScriptBuilder.svelte +1 -0
- package/package/components/ScriptEditor.svelte +10 -3
- package/package/components/ScriptEditor.svelte.d.ts +1 -0
- package/package/components/TaggedTextInput.svelte +4 -1
- package/package/components/TaggedTextInput.svelte.d.ts +2 -0
- package/package/components/VariableEditor.svelte +177 -199
- package/package/components/VariableEditor.svelte.d.ts +1 -2
- package/package/components/VariableForm.svelte +133 -0
- package/package/components/VariableForm.svelte.d.ts +22 -0
- package/package/components/WsSpecificVersions.svelte +39 -0
- package/package/components/WsSpecificVersions.svelte.d.ts +9 -0
- package/package/components/apps/components/helpers/RunnableComponent.svelte.d.ts +0 -1
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte.d.ts +1 -1
- package/package/components/common/table/AppRow.svelte +2 -1
- package/package/components/common/table/AppRow.svelte.d.ts +1 -0
- package/package/components/common/table/FlowRow.svelte +2 -1
- package/package/components/common/table/FlowRow.svelte.d.ts +1 -0
- package/package/components/common/table/RawAppRow.svelte +2 -1
- package/package/components/common/table/RawAppRow.svelte.d.ts +1 -0
- package/package/components/common/table/Row.svelte +11 -3
- package/package/components/common/table/Row.svelte.d.ts +2 -1
- package/package/components/common/table/RowIcon.svelte +18 -2
- package/package/components/common/table/RowIcon.svelte.d.ts +1 -1
- package/package/components/common/table/ScriptRow.svelte +2 -1
- package/package/components/common/table/ScriptRow.svelte.d.ts +1 -0
- package/package/components/copilot/autocomplete/Autocompletor.d.ts +3 -1
- package/package/components/copilot/autocomplete/Autocompletor.js +5 -2
- package/package/components/copilot/autocomplete/request.d.ts +1 -0
- package/package/components/copilot/autocomplete/request.js +1 -1
- package/package/components/copilot/chat/AIChatManager.svelte.js +14 -4
- package/package/components/copilot/chat/AiChatLayout.svelte +2 -0
- package/package/components/copilot/chat/ContextManager.svelte.d.ts +1 -0
- package/package/components/copilot/chat/CreatedResourceActionDrawers.svelte +129 -0
- package/package/components/copilot/chat/CreatedResourceActionDrawers.svelte.d.ts +4 -0
- package/package/components/copilot/chat/ToolExecutionDisplay.svelte +14 -6
- package/package/components/copilot/chat/ToolMessageActions.svelte +73 -0
- package/package/components/copilot/chat/ToolMessageActions.svelte.d.ts +7 -0
- package/package/components/copilot/chat/createdResourceActions.svelte.d.ts +6 -0
- package/package/components/copilot/chat/createdResourceActions.svelte.js +29 -0
- package/package/components/copilot/chat/script/core.d.ts +6 -2
- package/package/components/copilot/chat/script/core.js +13 -7
- package/package/components/copilot/chat/script/wacPrompt.test.d.ts +1 -0
- package/package/components/copilot/chat/script/wacPrompt.test.js +25 -0
- package/package/components/copilot/chat/shared.d.ts +12 -0
- package/package/components/copilot/chat/shared.test.js +23 -2
- package/package/components/copilot/chat/workspaceTools.js +34 -4
- package/package/components/flows/content/ScriptEditorDrawer.svelte +1 -0
- package/package/components/graph/wacToFlow.js +1 -1
- package/package/components/graph/wacToFlow.test.d.ts +1 -0
- package/package/components/graph/wacToFlow.test.js +17 -0
- package/package/components/home/Item.svelte +5 -1
- package/package/components/home/Item.svelte.d.ts +1 -0
- package/package/components/home/ItemsList.svelte +260 -3
- package/package/components/instanceSettings/SecretBackendConfig.svelte +457 -88
- package/package/components/runs/useJobsLoader.svelte.js +5 -11
- package/package/components/sidebar/WorkspaceMenu.svelte +19 -5
- package/package/externalDomain.d.ts +2 -0
- package/package/externalDomain.js +16 -0
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/types.gen.d.ts +0 -112
- package/package/hubPaths.json +2 -2
- package/package/system_prompts/index.d.ts +1 -1
- package/package/system_prompts/index.js +22 -3
- package/package/system_prompts/prompts.d.ts +2 -2
- package/package/system_prompts/prompts.js +6 -3
- package/package/utils_deployable.d.ts +162 -638
- package/package/utils_deployable.js +75 -143
- package/package/utils_workspace_deploy.d.ts +10 -4
- package/package/utils_workspace_deploy.js +167 -42
- package/package.json +7 -3
|
@@ -21,18 +21,12 @@ export function computeJobKinds(jobKindsCat) {
|
|
|
21
21
|
let kinds = ['deploymentcallback'];
|
|
22
22
|
return kinds.join(',');
|
|
23
23
|
}
|
|
24
|
-
else if (jobKindsCat == 'runs') {
|
|
25
|
-
let kinds = ['script', 'flow', 'singlestepflow'];
|
|
26
|
-
return kinds.join(',');
|
|
27
|
-
}
|
|
28
24
|
else {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'appscript'
|
|
35
|
-
];
|
|
25
|
+
// Default mirrors the explicit 'runs' category — top-level scripts, flows,
|
|
26
|
+
// and single-step flows. flowscript/flownode/appscript are intermediate
|
|
27
|
+
// flow children with non-null parent_job, and the loader pairs this with
|
|
28
|
+
// hasNullParent: true, so they would never match here anyway.
|
|
29
|
+
let kinds = ['script', 'flow', 'singlestepflow'];
|
|
36
30
|
return kinds.join(',');
|
|
37
31
|
}
|
|
38
32
|
}
|
|
@@ -47,6 +47,23 @@ async function toggleSwitchWorkspace(id) {
|
|
|
47
47
|
await goto('/');
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
function workspaceHref(id) {
|
|
51
|
+
const params = new URLSearchParams(page.url.searchParams);
|
|
52
|
+
params.set('workspace', id);
|
|
53
|
+
return `${page.url.pathname}?${params.toString()}`;
|
|
54
|
+
}
|
|
55
|
+
function onWorkspaceItemClick(e, workspace) {
|
|
56
|
+
if (workspace.disabled) {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// Let modifier-keyed clicks fall through so the browser can open in a new tab.
|
|
61
|
+
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
toggleSwitchWorkspace(workspace.id);
|
|
66
|
+
}
|
|
50
67
|
function getForkedWorkspace(workspaceId) {
|
|
51
68
|
if (!$userWorkspaces)
|
|
52
69
|
return undefined;
|
|
@@ -112,11 +129,8 @@ const itemClass = 'text-primary w-full flex flex-row gap-2 px-4 py-2 text-xs hov
|
|
|
112
129
|
? ''
|
|
113
130
|
: 'cursor-pointer hover:bg-surface-hover data-[highlighted]:bg-surface-hover'
|
|
114
131
|
)}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
await toggleSwitchWorkspace(workspace.id)
|
|
118
|
-
}
|
|
119
|
-
}}
|
|
132
|
+
href={workspace.disabled ? undefined : workspaceHref(workspace.id)}
|
|
133
|
+
onClick={(e) => onWorkspaceItemClick(e, workspace)}
|
|
120
134
|
{item}
|
|
121
135
|
>
|
|
122
136
|
<div class="flex items-center justify-between min-w-0 w-full">
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Optional external domain (e.g. "https://app.windmill.dev") used to build
|
|
2
|
+
// absolute URLs for user-facing links when the Windmill UI is embedded on a
|
|
3
|
+
// different host than the API. Undefined = same-origin (default behavior).
|
|
4
|
+
// Intended to be set once at boot by SDK consumers (e.g. windmill-react-sdk),
|
|
5
|
+
// before any component that builds links has rendered — there is no
|
|
6
|
+
// reactivity, so changing it after mount won't update already-rendered hrefs.
|
|
7
|
+
let externalDomain = undefined;
|
|
8
|
+
export function setExternalDomain(domain) {
|
|
9
|
+
externalDomain = domain;
|
|
10
|
+
}
|
|
11
|
+
export function withExternalDomain(path) {
|
|
12
|
+
if (!externalDomain)
|
|
13
|
+
return path;
|
|
14
|
+
const trimmed = externalDomain.replace(/\/$/, '');
|
|
15
|
+
return `${trimmed}${path.startsWith('/') ? path : `/${path}`}`;
|
|
16
|
+
}
|
|
@@ -8463,7 +8463,6 @@ export type ExecuteComponentData = {
|
|
|
8463
8463
|
path?: string;
|
|
8464
8464
|
lock?: string;
|
|
8465
8465
|
cache_ttl?: number;
|
|
8466
|
-
tag?: string;
|
|
8467
8466
|
};
|
|
8468
8467
|
id?: number;
|
|
8469
8468
|
force_viewer_static_fields?: {
|
|
@@ -11290,11 +11289,6 @@ export type SetScheduleEnabledData = {
|
|
|
11290
11289
|
*/
|
|
11291
11290
|
requestBody: {
|
|
11292
11291
|
enabled: boolean;
|
|
11293
|
-
/**
|
|
11294
|
-
* Bypass the parent-state conflict warning when enabling a schedule in a fork whose parent has the same path enabled.
|
|
11295
|
-
*
|
|
11296
|
-
*/
|
|
11297
|
-
force?: boolean;
|
|
11298
11292
|
};
|
|
11299
11293
|
workspace: string;
|
|
11300
11294
|
};
|
|
@@ -11487,11 +11481,6 @@ export type SetHttpTriggerModeData = {
|
|
|
11487
11481
|
path: string;
|
|
11488
11482
|
requestBody: {
|
|
11489
11483
|
mode: TriggerMode;
|
|
11490
|
-
/**
|
|
11491
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11492
|
-
*
|
|
11493
|
-
*/
|
|
11494
|
-
force?: boolean;
|
|
11495
11484
|
};
|
|
11496
11485
|
workspace: string;
|
|
11497
11486
|
};
|
|
@@ -11557,11 +11546,6 @@ export type SetWebsocketTriggerModeData = {
|
|
|
11557
11546
|
*/
|
|
11558
11547
|
requestBody: {
|
|
11559
11548
|
mode: TriggerMode;
|
|
11560
|
-
/**
|
|
11561
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11562
|
-
*
|
|
11563
|
-
*/
|
|
11564
|
-
force?: boolean;
|
|
11565
11549
|
};
|
|
11566
11550
|
workspace: string;
|
|
11567
11551
|
};
|
|
@@ -11639,11 +11623,6 @@ export type SetKafkaTriggerModeData = {
|
|
|
11639
11623
|
*/
|
|
11640
11624
|
requestBody: {
|
|
11641
11625
|
mode: TriggerMode;
|
|
11642
|
-
/**
|
|
11643
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11644
|
-
*
|
|
11645
|
-
*/
|
|
11646
|
-
force?: boolean;
|
|
11647
11626
|
};
|
|
11648
11627
|
workspace: string;
|
|
11649
11628
|
};
|
|
@@ -11739,11 +11718,6 @@ export type SetNatsTriggerModeData = {
|
|
|
11739
11718
|
*/
|
|
11740
11719
|
requestBody: {
|
|
11741
11720
|
mode: TriggerMode;
|
|
11742
|
-
/**
|
|
11743
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11744
|
-
*
|
|
11745
|
-
*/
|
|
11746
|
-
force?: boolean;
|
|
11747
11721
|
};
|
|
11748
11722
|
workspace: string;
|
|
11749
11723
|
};
|
|
@@ -11821,11 +11795,6 @@ export type SetSqsTriggerModeData = {
|
|
|
11821
11795
|
*/
|
|
11822
11796
|
requestBody: {
|
|
11823
11797
|
mode: TriggerMode;
|
|
11824
|
-
/**
|
|
11825
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11826
|
-
*
|
|
11827
|
-
*/
|
|
11828
|
-
force?: boolean;
|
|
11829
11798
|
};
|
|
11830
11799
|
workspace: string;
|
|
11831
11800
|
};
|
|
@@ -12093,11 +12062,6 @@ export type SetMqttTriggerModeData = {
|
|
|
12093
12062
|
*/
|
|
12094
12063
|
requestBody: {
|
|
12095
12064
|
mode: TriggerMode;
|
|
12096
|
-
/**
|
|
12097
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12098
|
-
*
|
|
12099
|
-
*/
|
|
12100
|
-
force?: boolean;
|
|
12101
12065
|
};
|
|
12102
12066
|
workspace: string;
|
|
12103
12067
|
};
|
|
@@ -12175,11 +12139,6 @@ export type SetGcpTriggerModeData = {
|
|
|
12175
12139
|
*/
|
|
12176
12140
|
requestBody: {
|
|
12177
12141
|
mode: TriggerMode;
|
|
12178
|
-
/**
|
|
12179
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12180
|
-
*
|
|
12181
|
-
*/
|
|
12182
|
-
force?: boolean;
|
|
12183
12142
|
};
|
|
12184
12143
|
workspace: string;
|
|
12185
12144
|
};
|
|
@@ -12267,11 +12226,6 @@ export type SetAzureTriggerModeData = {
|
|
|
12267
12226
|
path: string;
|
|
12268
12227
|
requestBody: {
|
|
12269
12228
|
mode: TriggerMode;
|
|
12270
|
-
/**
|
|
12271
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12272
|
-
*
|
|
12273
|
-
*/
|
|
12274
|
-
force?: boolean;
|
|
12275
12229
|
};
|
|
12276
12230
|
workspace: string;
|
|
12277
12231
|
};
|
|
@@ -12469,11 +12423,6 @@ export type SetPostgresTriggerModeData = {
|
|
|
12469
12423
|
*/
|
|
12470
12424
|
requestBody: {
|
|
12471
12425
|
mode: TriggerMode;
|
|
12472
|
-
/**
|
|
12473
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12474
|
-
*
|
|
12475
|
-
*/
|
|
12476
|
-
force?: boolean;
|
|
12477
12426
|
};
|
|
12478
12427
|
workspace: string;
|
|
12479
12428
|
};
|
|
@@ -12558,11 +12507,6 @@ export type SetEmailTriggerModeData = {
|
|
|
12558
12507
|
path: string;
|
|
12559
12508
|
requestBody: {
|
|
12560
12509
|
mode: TriggerMode;
|
|
12561
|
-
/**
|
|
12562
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12563
|
-
*
|
|
12564
|
-
*/
|
|
12565
|
-
force?: boolean;
|
|
12566
12510
|
};
|
|
12567
12511
|
workspace: string;
|
|
12568
12512
|
};
|
|
@@ -19535,7 +19479,6 @@ export type $OpenApiTs = {
|
|
|
19535
19479
|
path?: string;
|
|
19536
19480
|
lock?: string;
|
|
19537
19481
|
cache_ttl?: number;
|
|
19538
|
-
tag?: string;
|
|
19539
19482
|
};
|
|
19540
19483
|
id?: number;
|
|
19541
19484
|
force_viewer_static_fields?: {
|
|
@@ -23685,11 +23628,6 @@ export type $OpenApiTs = {
|
|
|
23685
23628
|
*/
|
|
23686
23629
|
requestBody: {
|
|
23687
23630
|
enabled: boolean;
|
|
23688
|
-
/**
|
|
23689
|
-
* Bypass the parent-state conflict warning when enabling a schedule in a fork whose parent has the same path enabled.
|
|
23690
|
-
*
|
|
23691
|
-
*/
|
|
23692
|
-
force?: boolean;
|
|
23693
23631
|
};
|
|
23694
23632
|
workspace: string;
|
|
23695
23633
|
};
|
|
@@ -24035,11 +23973,6 @@ export type $OpenApiTs = {
|
|
|
24035
23973
|
path: string;
|
|
24036
23974
|
requestBody: {
|
|
24037
23975
|
mode: TriggerMode;
|
|
24038
|
-
/**
|
|
24039
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24040
|
-
*
|
|
24041
|
-
*/
|
|
24042
|
-
force?: boolean;
|
|
24043
23976
|
};
|
|
24044
23977
|
workspace: string;
|
|
24045
23978
|
};
|
|
@@ -24168,11 +24101,6 @@ export type $OpenApiTs = {
|
|
|
24168
24101
|
*/
|
|
24169
24102
|
requestBody: {
|
|
24170
24103
|
mode: TriggerMode;
|
|
24171
|
-
/**
|
|
24172
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24173
|
-
*
|
|
24174
|
-
*/
|
|
24175
|
-
force?: boolean;
|
|
24176
24104
|
};
|
|
24177
24105
|
workspace: string;
|
|
24178
24106
|
};
|
|
@@ -24322,11 +24250,6 @@ export type $OpenApiTs = {
|
|
|
24322
24250
|
*/
|
|
24323
24251
|
requestBody: {
|
|
24324
24252
|
mode: TriggerMode;
|
|
24325
|
-
/**
|
|
24326
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24327
|
-
*
|
|
24328
|
-
*/
|
|
24329
|
-
force?: boolean;
|
|
24330
24253
|
};
|
|
24331
24254
|
workspace: string;
|
|
24332
24255
|
};
|
|
@@ -24512,11 +24435,6 @@ export type $OpenApiTs = {
|
|
|
24512
24435
|
*/
|
|
24513
24436
|
requestBody: {
|
|
24514
24437
|
mode: TriggerMode;
|
|
24515
|
-
/**
|
|
24516
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24517
|
-
*
|
|
24518
|
-
*/
|
|
24519
|
-
force?: boolean;
|
|
24520
24438
|
};
|
|
24521
24439
|
workspace: string;
|
|
24522
24440
|
};
|
|
@@ -24666,11 +24584,6 @@ export type $OpenApiTs = {
|
|
|
24666
24584
|
*/
|
|
24667
24585
|
requestBody: {
|
|
24668
24586
|
mode: TriggerMode;
|
|
24669
|
-
/**
|
|
24670
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24671
|
-
*
|
|
24672
|
-
*/
|
|
24673
|
-
force?: boolean;
|
|
24674
24587
|
};
|
|
24675
24588
|
workspace: string;
|
|
24676
24589
|
};
|
|
@@ -25199,11 +25112,6 @@ export type $OpenApiTs = {
|
|
|
25199
25112
|
*/
|
|
25200
25113
|
requestBody: {
|
|
25201
25114
|
mode: TriggerMode;
|
|
25202
|
-
/**
|
|
25203
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25204
|
-
*
|
|
25205
|
-
*/
|
|
25206
|
-
force?: boolean;
|
|
25207
25115
|
};
|
|
25208
25116
|
workspace: string;
|
|
25209
25117
|
};
|
|
@@ -25353,11 +25261,6 @@ export type $OpenApiTs = {
|
|
|
25353
25261
|
*/
|
|
25354
25262
|
requestBody: {
|
|
25355
25263
|
mode: TriggerMode;
|
|
25356
|
-
/**
|
|
25357
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25358
|
-
*
|
|
25359
|
-
*/
|
|
25360
|
-
force?: boolean;
|
|
25361
25264
|
};
|
|
25362
25265
|
workspace: string;
|
|
25363
25266
|
};
|
|
@@ -25544,11 +25447,6 @@ export type $OpenApiTs = {
|
|
|
25544
25447
|
path: string;
|
|
25545
25448
|
requestBody: {
|
|
25546
25449
|
mode: TriggerMode;
|
|
25547
|
-
/**
|
|
25548
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25549
|
-
*
|
|
25550
|
-
*/
|
|
25551
|
-
force?: boolean;
|
|
25552
25450
|
};
|
|
25553
25451
|
workspace: string;
|
|
25554
25452
|
};
|
|
@@ -25971,11 +25869,6 @@ export type $OpenApiTs = {
|
|
|
25971
25869
|
*/
|
|
25972
25870
|
requestBody: {
|
|
25973
25871
|
mode: TriggerMode;
|
|
25974
|
-
/**
|
|
25975
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25976
|
-
*
|
|
25977
|
-
*/
|
|
25978
|
-
force?: boolean;
|
|
25979
25872
|
};
|
|
25980
25873
|
workspace: string;
|
|
25981
25874
|
};
|
|
@@ -26141,11 +26034,6 @@ export type $OpenApiTs = {
|
|
|
26141
26034
|
path: string;
|
|
26142
26035
|
requestBody: {
|
|
26143
26036
|
mode: TriggerMode;
|
|
26144
|
-
/**
|
|
26145
|
-
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
26146
|
-
*
|
|
26147
|
-
*/
|
|
26148
|
-
force?: boolean;
|
|
26149
26037
|
};
|
|
26150
26038
|
workspace: string;
|
|
26151
26039
|
};
|
package/package/hubPaths.json
CHANGED
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"deprecated_gitSync_latest": "hub/28180/sync-script-to-git-repo-windmill",
|
|
28
28
|
"deprecated_gitSync_25": "hub/28183/sync-script-to-git-repo-windmill",
|
|
29
29
|
"gitSyncTest": "hub/28184/git-repo-test-read-write-windmill",
|
|
30
|
-
"gitInitRepo": "hub/
|
|
30
|
+
"gitInitRepo": "hub/28219/git-sync%3A-init-repository-windmill",
|
|
31
31
|
"slackErrorHandler": "hub/19741/workspace-or-schedule-error-handler-slack",
|
|
32
32
|
"slackErrorHandler_0": "hub/9079/workspace-or-schedule-error-handler-slack",
|
|
33
33
|
"slackErrorHandler_1": "hub/9206/workspace-or-schedule-error-handler-slack",
|
|
34
34
|
"emailErrorHandler": "hub/19795/workspace-or-error-handler-email",
|
|
35
35
|
"slackRecoveryHandler": "hub/9080/slack/schedule-recovery-handler-slack",
|
|
36
|
-
"slackSuccessHandler": "hub/
|
|
36
|
+
"slackSuccessHandler": "hub/28220/slack/schedule-success-handler-slack",
|
|
37
37
|
"teamsErrorHandler": "hub/19742/workspace-or-schedule-error-handler-teams",
|
|
38
38
|
"teamsErrorHandler_0": "hub/11598/workspace-or-schedule-error-handler-teams",
|
|
39
39
|
"teamsRecoveryHandler": "hub/11593/schedule-recovery-handler-teams",
|
|
@@ -2,4 +2,4 @@ export * from './prompts';
|
|
|
2
2
|
export declare function getScriptPrompt(language: string): string;
|
|
3
3
|
export declare function getFlowPrompt(): string;
|
|
4
4
|
export declare function getDatatableSdkReference(): string;
|
|
5
|
-
export declare function getWorkflowAsCodePrompt(): string;
|
|
5
|
+
export declare function getWorkflowAsCodePrompt(language?: string): string;
|
|
@@ -6,6 +6,10 @@ import * as prompts from './prompts';
|
|
|
6
6
|
const TS_SDK_LANGUAGES = ['bun', 'deno', 'nativets', 'bunnative'];
|
|
7
7
|
// Languages that use the Python SDK
|
|
8
8
|
const PY_SDK_LANGUAGES = ['python3'];
|
|
9
|
+
// Languages that use the TypeScript Workflow-as-Code SDK
|
|
10
|
+
const WAC_TS_SDK_LANGUAGES = ['bun'];
|
|
11
|
+
// Languages that use the Python Workflow-as-Code SDK
|
|
12
|
+
const WAC_PY_SDK_LANGUAGES = PY_SDK_LANGUAGES;
|
|
9
13
|
// Helper to combine prompts for scripts
|
|
10
14
|
export function getScriptPrompt(language) {
|
|
11
15
|
const langKey = `LANG_${language.toUpperCase()}`;
|
|
@@ -39,10 +43,25 @@ export function getDatatableSdkReference() {
|
|
|
39
43
|
].filter(Boolean).join('\n\n');
|
|
40
44
|
}
|
|
41
45
|
// Helper to combine prompts for Workflow-as-Code scripts
|
|
42
|
-
export function getWorkflowAsCodePrompt() {
|
|
46
|
+
export function getWorkflowAsCodePrompt(language) {
|
|
47
|
+
let sdkPrompt = '';
|
|
48
|
+
if (language == null) {
|
|
49
|
+
sdkPrompt = [
|
|
50
|
+
prompts.WAC_SDK_TYPESCRIPT,
|
|
51
|
+
prompts.WAC_SDK_PYTHON
|
|
52
|
+
].filter(Boolean).join('\n\n');
|
|
53
|
+
}
|
|
54
|
+
else if (WAC_TS_SDK_LANGUAGES.includes(language)) {
|
|
55
|
+
sdkPrompt = prompts.WAC_SDK_TYPESCRIPT;
|
|
56
|
+
}
|
|
57
|
+
else if (WAC_PY_SDK_LANGUAGES.includes(language)) {
|
|
58
|
+
sdkPrompt = prompts.WAC_SDK_PYTHON;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return '';
|
|
62
|
+
}
|
|
43
63
|
return [
|
|
44
64
|
prompts.WORKFLOW_AS_CODE_BASE,
|
|
45
|
-
|
|
46
|
-
prompts.WAC_SDK_PYTHON
|
|
65
|
+
sdkPrompt
|
|
47
66
|
].filter(Boolean).join('\n\n');
|
|
48
67
|
}
|