From 5953595d50a20fc08449bf1d0c7aa6b0c0a12b81 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 25 Nov 2026 20:02:35 +0000 Subject: [PATCH 001/102] fix: hold a volume's lease through sync-back and pull it in parallel (#12667) * fix: hold a volume's lease through sync-back and apply its deletions Co-Authored-By: Claude Opus 5.5 * fix: stream volume pulls and hashes, bound uploads by bytes in flight Co-Authored-By: Claude Opus 5.5 * chore: update ee-repo-ref to 42345ff86342a5d4c1a8be2cccd031cb77ad1146 This commit updates the EE repository reference after PR #1008 was merged in windmill-ee-private. Previous ee-repo-ref: 06627e55b4c3b1e4b8eab9a0ac0e1d01d6ad0a79 New ee-repo-ref: 42345ff86342a5d4c1a8be2cccd031cb77ad1146 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: windmill-internal-app[bot] --- ...0775b6da84dd53aeca8fb9b556f969aee29a.json} | 4 +- ...6771c3a1a2a5a67dd467ed263b3501c5d279.json} | 4 +- backend/ee-repo-ref.txt | 2 +- backend/windmill-worker-volumes/src/lib.rs | 41 ++++++++++++++++++- backend/windmill-worker/src/volume_oss.rs | 3 ++ backend/windmill-worker/src/worker.rs | 40 +++++++++--------- 6 files changed, 68 insertions(+), 26 deletions(-) rename backend/.sqlx/{query-f5946a3968df859f668d6197562c10024ffc24f108ca48d5b3fa98e489d931ea.json => query-123015f4012169763ac8b16c2e4e0775b6da84dd53aeca8fb9b556f969aee29a.json} (60%) rename backend/.sqlx/{query-19c481a0d6ecd4c0dfab6973e4732c2146953253ba6062ab05b34b6b35e41f66.json => query-3339c1d01792ff181f9506b57c7e6771c3a1a2a5a67dd467ed263b3501c5d279.json} (78%) diff --git a/backend/.sqlx/query-f5946a3968df859f668d6197562c10024ffc24f108ca48d5b3fa98e489d931ea.json b/backend/.sqlx/query-123015f4012169763ac8b16c2e4e0775b6da84dd53aeca8fb9b556f969aee29a.json similarity index 60% rename from backend/.sqlx/query-f5946a3968df859f668d6197562c10024ffc24f108ca48d5b3fa98e489d931ea.json rename to backend/.sqlx/query-123015f4012169763ac8b16c2e4e0775b6da84dd53aeca8fb9b556f969aee29a.json index ca7a719231..cb94c5045b 100644 --- a/backend/.sqlx/query-f5946a3968df859f668d6197562c10024ffc24f108ca48d5b3fa98e489d931ea.json +++ b/backend/.sqlx/query-123015f4012169763ac8b16c2e4e0775b6da84dd53aeca8fb9b556f969aee29a.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "UPDATE volume\n SET size_bytes = $3, file_count = $4,\n updated_at = now(), last_used_at = now(),\n lease_until = NULL, leased_by = NULL,\n generation = generation + generation % 2\n WHERE workspace_id = $1 AND name = $2 AND leased_by = $5", + "query": "UPDATE volume\n SET size_bytes = $3, file_count = $4,\n updated_at = now(), last_used_at = now(),\n generation = generation + generation % 2\n WHERE workspace_id = $1 AND name = $2 AND leased_by = $5", "describe": { "columns": [], "parameters": { @@ -14,5 +14,5 @@ }, "nullable": [] }, - "hash": "f5946a3968df859f668d6197562c10024ffc24f108ca48d5b3fa98e489d931ea" + "hash": "123015f4012169763ac8b16c2e4e0775b6da84dd53aeca8fb9b556f969aee29a" } diff --git a/backend/.sqlx/query-19c481a0d6ecd4c0dfab6973e4732c2146953253ba6062ab05b34b6b35e41f66.json b/backend/.sqlx/query-3339c1d01792ff181f9506b57c7e6771c3a1a2a5a67dd467ed263b3501c5d279.json similarity index 78% rename from backend/.sqlx/query-19c481a0d6ecd4c0dfab6973e4732c2146953253ba6062ab05b34b6b35e41f66.json rename to backend/.sqlx/query-3339c1d01792ff181f9506b57c7e6771c3a1a2a5a67dd467ed263b3501c5d279.json index 4521496742..5f6c31d752 100644 --- a/backend/.sqlx/query-19c481a0d6ecd4c0dfab6973e4732c2146953253ba6062ab05b34b6b35e41f66.json +++ b/backend/.sqlx/query-3339c1d01792ff181f9506b57c7e6771c3a1a2a5a67dd467ed263b3501c5d279.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "UPDATE volume\n SET size_bytes = $3, file_count = $4,\n updated_at = now(), updated_by = $5, last_used_at = now(),\n lease_until = NULL, leased_by = NULL, generation = generation + generation % 2\n WHERE workspace_id = $1 AND name = $2", + "query": "UPDATE volume\n SET size_bytes = $3, file_count = $4,\n updated_at = now(), updated_by = $5, last_used_at = now(),\n lease_until = NULL, leased_by = NULL, generation = generation + generation % 2\n WHERE workspace_id = $1 AND name = $2 AND leased_by = $5", "describe": { "columns": [], "parameters": { @@ -14,5 +14,5 @@ }, "nullable": [] }, - "hash": "19c481a0d6ecd4c0dfab6973e4732c2146953253ba6062ab05b34b6b35e41f66" + "hash": "3339c1d01792ff181f9506b57c7e6771c3a1a2a5a67dd467ed263b3501c5d279" } diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index a1fc20442a..046fa30012 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -a403f3ce12fd150dd649098e61562eda1e6a4d81 +42345ff86342a5d4c1a8be2cccd031cb77ad1146 diff --git a/backend/windmill-worker-volumes/src/lib.rs b/backend/windmill-worker-volumes/src/lib.rs index f167676ea4..5fa3467e30 100644 --- a/backend/windmill-worker-volumes/src/lib.rs +++ b/backend/windmill-worker-volumes/src/lib.rs @@ -12,6 +12,41 @@ use std::path::PathBuf; pub const MAX_VOLUMES_PER_JOB: usize = 10; +/// Object requests a pull or a sync-back keeps in flight for one volume. +pub const VOLUME_TRANSFER_CONCURRENCY: usize = 16; + +/// An upload holds its whole file in memory, so a sync-back bounds the bytes of the uploads in +/// flight as well as their count: a file at least this large is uploaded alone. +pub const VOLUME_UPLOAD_BYTES_IN_FLIGHT: u64 = 256 * 1024 * 1024; + +/// Deletes `paths` concurrently, an object already gone counting as deleted. Returns how many +/// were deleted, or the first failure and how many failed: a delete is never assumed to succeed. +pub async fn delete_objects( + client: &dyn object_store::ObjectStore, + paths: Vec, +) -> Result { + use futures::StreamExt; + let results: Vec> = futures::stream::iter(paths) + .map(|path| async move { + match client.delete(&path).await { + Ok(()) | Err(object_store::Error::NotFound { .. }) => Ok(()), + Err(e) => Err(format!("{path}: {e}")), + } + }) + .buffer_unordered(VOLUME_TRANSFER_CONCURRENCY) + .collect() + .await; + let total = results.len(); + let failures: Vec = results.into_iter().filter_map(Result::err).collect(); + match failures.first() { + None => Ok(total), + Some(first) => Err(format!( + "failed to delete {} of {total} removed file(s), first: {first}", + failures.len() + )), + } +} + #[derive(Debug, Clone, Serialize, Deserialize)] pub struct FileEntry { pub size: u64, @@ -25,7 +60,10 @@ pub struct FileEntry { pub fn compute_md5_hex(data: &[u8]) -> String { use md5::{Digest, Md5}; - let result = Md5::digest(data); + md5_digest_hex(&Md5::digest(data)) +} + +pub fn md5_digest_hex(result: &[u8]) -> String { const HEX: &[u8; 16] = b"0123456789abcdef"; let mut hex = String::with_capacity(32); for &b in result.iter() { @@ -112,6 +150,7 @@ pub struct SyncStats { pub file_count: usize, pub uploaded: usize, pub skipped: usize, + pub deleted: usize, } pub fn validate_volume_name(name: &str) -> Result<(), String> { diff --git a/backend/windmill-worker/src/volume_oss.rs b/backend/windmill-worker/src/volume_oss.rs index 3736e83485..c5e32fd8e1 100644 --- a/backend/windmill-worker/src/volume_oss.rs +++ b/backend/windmill-worker/src/volume_oss.rs @@ -3,6 +3,7 @@ pub(crate) use crate::volume_ee::*; #[cfg(not(feature = "private"))] #[cfg(feature = "parquet")] +#[derive(Default)] pub(crate) struct LeaseRenewalGuard(pub Option>); #[cfg(not(feature = "private"))] @@ -94,6 +95,7 @@ pub(crate) async fn sync_volumes_sql_worker( _worker_name: &str, _conn: &windmill_common::worker::Connection, _job_succeeded: bool, + _lease_renewal: LeaseRenewalGuard, ) { } @@ -108,5 +110,6 @@ pub(crate) async fn sync_volumes_http_worker( _worker_name: &str, _conn: &windmill_common::worker::Connection, _job_succeeded: bool, + _lease_renewal: LeaseRenewalGuard, ) { } diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 2333585c90..cfddc5aa0c 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -7072,7 +7072,7 @@ mount {{ states: Vec::new(), writable: Vec::new(), client: None, - lease_renewal: crate::volume_oss::LeaseRenewalGuard(None), + lease_renewal: Default::default(), }; #[cfg(feature = "parquet")] @@ -7617,11 +7617,9 @@ mount {{ // Volume sync-back and lease release #[cfg(feature = "parquet")] if !volume_setup.states.is_empty() { - // Stop lease renewal before sync-back - volume_setup.lease_renewal.0.take().map(|h| h.abort()); - - if let Some(ref vol_client) = volume_setup.client { - if let Connection::Sql(db) = conn { + let lease_renewal = std::mem::take(&mut volume_setup.lease_renewal); + match (conn, volume_setup.client.as_ref()) { + (Connection::Sql(db), Some(vol_client)) => { Box::pin(crate::volume_oss::sync_volumes_sql_worker( &volume_setup.states, &volume_setup.writable, @@ -7632,23 +7630,25 @@ mount {{ worker_name, conn, result.is_ok(), + lease_renewal, )) .await; } - } - - if let Connection::Http(http) = conn { - Box::pin(crate::volume_oss::sync_volumes_http_worker( - &volume_setup.states, - &volume_setup.writable, - http, - &job.workspace_id, - job.id, - worker_name, - conn, - result.is_ok(), - )) - .await; + (Connection::Http(http), _) => { + Box::pin(crate::volume_oss::sync_volumes_http_worker( + &volume_setup.states, + &volume_setup.writable, + http, + &job.workspace_id, + job.id, + worker_name, + conn, + result.is_ok(), + lease_renewal, + )) + .await; + } + (Connection::Sql(_), None) => {} } // Clean up absolute-path symlinks created by setup_volume_mount_paths From 8f637d58d6654740bca41f32a3462e5951ff8f4c Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 25 Nov 2026 21:02:48 +0100 Subject: [PATCH 002/102] fix: log in on the live session when the browser sends two token cookies (#12663) * fix: authenticate on the live session when several token cookies are sent Co-Authored-By: Claude Opus 5.5 * fix: cache the duplicate session cookie pick and cap the candidates Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- backend/tests/duplicate_session_cookie.rs | 38 ++++++++++ backend/windmill-api-auth/src/auth.rs | 88 ++++++++++++++++++++--- 2 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 backend/tests/duplicate_session_cookie.rs diff --git a/backend/tests/duplicate_session_cookie.rs b/backend/tests/duplicate_session_cookie.rs new file mode 100644 index 0000000000..8122e27b6d --- /dev/null +++ b/backend/tests/duplicate_session_cookie.rs @@ -0,0 +1,38 @@ +//! A browser can send two `token` cookies: this instance's, and one a parent-domain instance set +//! with `Domain=` (app.windmill.dev on `.windmill.dev`, seen from a tenant subdomain). Safari +//! sends the host's cookie first and Chrome last, so the request must authenticate on whichever +//! is a live session here, in either order. + +use reqwest::StatusCode; +use sqlx::{Pool, Postgres}; +use windmill_test_utils::*; + +#[sqlx::test(fixtures("base"))] +async fn test_duplicate_session_cookie_uses_the_live_one(db: Pool) -> anyhow::Result<()> { + initialize_tracing().await; + + let server = ApiServer::start(db.clone()).await?; + let client = reqwest::Client::new(); + let url = format!( + "http://localhost:{}/api/workspaces/users", + server.addr.port() + ); + let status = |cookie: &'static str| { + let req = client.get(&url).header("Cookie", cookie); + async move { anyhow::Ok(req.send().await?.status()) } + }; + + assert_eq!( + status("token=FOREIGN_INSTANCE_TOKEN; token=SECRET_TOKEN").await?, + StatusCode::OK + ); + assert_eq!( + status("token=SECRET_TOKEN; token=FOREIGN_INSTANCE_TOKEN").await?, + StatusCode::OK + ); + assert_eq!( + status("token=FOREIGN_INSTANCE_TOKEN; token=OTHER_FOREIGN_TOKEN").await?, + StatusCode::UNAUTHORIZED + ); + Ok(()) +} diff --git a/backend/windmill-api-auth/src/auth.rs b/backend/windmill-api-auth/src/auth.rs index 889f1f09a0..32b31f771a 100644 --- a/backend/windmill-api-auth/src/auth.rs +++ b/backend/windmill-api-auth/src/auth.rs @@ -41,6 +41,8 @@ lazy_static::lazy_static! { pub static ref AUTH_CACHE: Cache<(String, String), ExpiringAuthCache> = Cache::new(300); // Cache for token -> email lookups (for non-workspace-member authenticated users) static ref TOKEN_EMAIL_CACHE: Cache, std::time::Instant)> = Cache::new(500); + // Joined hashes of a request's duplicate `token` cookies -> index of the live one. + static ref PICKED_SESSION_CACHE: Cache, std::time::Instant)> = Cache::new(500); } /// A token keeps its identity when a superadmin moves the account to another address, so entries @@ -956,6 +958,69 @@ async fn admit_and_record_guest_jwt(db: &DB, w_id: &str, email: &str, app_path: true } +/// Browsers send one or two; checking more would let one request try many guessed tokens +/// while `BRUTE_FORCE_COUNTER` counts a single failure. +const MAX_SESSION_COOKIES: usize = 4; + +/// The first `token` cookie values, parsed the way `Cookies` parses them, in the order sent. +fn session_cookie_values(parts: &Parts) -> Vec { + parts + .headers + .get_all(http::header::COOKIE) + .iter() + .filter_map(|h| h.to_str().ok()) + .flat_map(|h| h.split(';')) + .filter_map(|c| tower_cookies::Cookie::parse_encoded(c).ok()) + .filter(|c| c.name() == COOKIE_NAME) + .map(|c| c.value_trimmed().to_owned()) + .take(MAX_SESSION_COOKIES) + .collect() +} + +/// A browser can hold two `token` cookies for one host: this instance's, and one a parent-domain +/// instance set with `Domain=` (app.windmill.dev on `.windmill.dev`), which JS cannot clear since +/// it is HttpOnly. Browsers disagree on their order (Safari sends the host's first, Chrome last), +/// so neither position can be trusted: keep the first one that is a live session here. +async fn pick_live_session_token( + parts: &mut Parts, + state: &S, + candidates: Vec, +) -> Option { + // `Cookies::get` keeps the last duplicate: the pick when nothing can be checked. + let fallback = candidates.last().cloned(); + let Ok(Extension(cache)) = Extension::>::from_request_parts(parts, state).await + else { + return fallback; + }; + let hashes: Vec = candidates.iter().map(|t| hash_token(t)).collect(); + // A browser keeps sending the same pair on every request, so the pick is cached. A token + // revoked within the TTL can still be picked, and then fails authentication as revoked. + let key = hashes.join(","); + if let Some((picked, at)) = PICKED_SESSION_CACHE.get(&key) { + if at.elapsed().as_secs() < TOKEN_EMAIL_CACHE_TTL_SECS { + return picked.map(|i| candidates[i].clone()).or(fallback); + } + } + let live: Vec = match sqlx::query_scalar( + "SELECT h FROM unnest($1::text[]) AS h \ + WHERE EXISTS (SELECT 1 FROM token WHERE token_hash = h \ + AND (expiration > NOW() OR expiration IS NULL))", + ) + .bind(&hashes) + .fetch_all(&cache.db) + .await + { + Ok(live) => live, + Err(e) => { + tracing::error!("checking duplicate session cookies: {e:#}"); + return fallback; + } + }; + let picked = hashes.iter().position(|h| live.contains(h)); + PICKED_SESSION_CACHE.insert(key, (picked, std::time::Instant::now())); + picked.map(|i| candidates[i].clone()).or(fallback) +} + pub(crate) async fn extract_token(parts: &mut Parts, state: &S) -> Option { let auth_header = parts .headers @@ -965,14 +1030,21 @@ pub(crate) async fn extract_token(parts: &mut Parts, state: &S) let from_cookie = match auth_header { Some(x) => Some(x.to_owned()), - None => Extension::::from_request_parts(parts, state) - .await - .ok() - .and_then(|cookies| { - cookies - .get(COOKIE_NAME) - .map(|c| c.value_trimmed().to_owned()) - }), + None => { + let candidates = session_cookie_values(parts); + if candidates.len() > 1 { + pick_live_session_token(parts, state, candidates).await + } else { + Extension::::from_request_parts(parts, state) + .await + .ok() + .and_then(|cookies| { + cookies + .get(COOKIE_NAME) + .map(|c| c.value_trimmed().to_owned()) + }) + } + } }; #[derive(Deserialize)] From 5d4820d3736fa6f307fb4838e525e32c4dc24838 Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:03:05 +0100 Subject: [PATCH 003/102] =?UTF-8?q?feat:=20hand=20the=20code=20selected=20?= =?UTF-8?q?with=20=E2=8C=98K=20and=20Ctrl+L=20to=20an=20AI=20session=20(#1?= =?UTF-8?q?2661)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: hand the code selected with ⌘K and Ctrl+L to an AI session * fix: leave the composer's picks alone when resending a message stored without context --- ai_evals/README.md | 16 + .../frontend/core/global/globalEvalRunner.ts | 8 +- ai_evals/cases/global.yaml | 39 ++ ai_evals/core/types.ts | 10 + ai_evals/modes/global.ts | 1 + frontend/src/lib/components/Editor.svelte | 160 ++++---- .../src/lib/components/FlowBuilder.svelte | 21 +- .../src/lib/components/ScriptBuilder.svelte | 12 +- .../src/lib/components/ScriptEditor.svelte | 4 + .../copilot/FlowInlineScriptAIButton.svelte | 25 +- .../copilot/chat/AIChatInlineWidget.svelte | 281 +++----------- .../copilot/chat/AIChatInput.svelte | 92 ++--- .../copilot/chat/AIChatManager.svelte.ts | 365 ++++++------------ .../copilot/chat/AIChatManager.test.ts | 129 ++++++- .../copilot/chat/ContextElementBadge.svelte | 2 + .../copilot/chat/ContextManager.svelte.ts | 95 ++--- .../chat/InlinePrompt.svelte} | 52 ++- .../lib/components/copilot/chat/chatDraft.ts | 3 +- .../components/copilot/chat/chatViewHost.ts | 7 +- .../lib/components/copilot/chat/context.ts | 73 ++++ .../lib/components/copilot/chat/flow/core.ts | 33 +- .../copilot/chat/global/core.test.ts | 14 + .../components/copilot/chat/global/core.ts | 34 +- .../components/copilot/chat/script/core.ts | 96 ----- .../src/lib/components/copilot/chat/shared.ts | 54 +-- .../src/lib/components/dbt/DbtEditor.svelte | 9 + .../flows/content/FlowModuleComponent.svelte | 14 +- .../flows/map/FlowModuleSchemaMap.svelte | 8 +- .../components/raw_apps/RawAppEditor.svelte | 22 +- .../raw_apps/RawAppInlineScriptEditor.svelte | 2 + .../sessions/RawAppEditorView.svelte | 33 +- .../sessions/SessionWrapper.dom.test.ts | 35 +- .../components/sessions/SessionWrapper.svelte | 6 +- .../sessions/openInSessionContext.ts | 20 +- .../components/sessions/pageDrawerSession.ts | 6 + .../components/sessions/sessionMirrorPlan.ts | 2 +- .../sessions/sessionState.svelte.ts | 22 +- .../sessions/sessionSwitch.svelte.ts | 10 +- .../components/sessions/sessionSwitch.test.ts | 8 +- 39 files changed, 842 insertions(+), 981 deletions(-) rename frontend/src/lib/components/{raw_apps/InlineElementPrompt.svelte => copilot/chat/InlinePrompt.svelte} (51%) diff --git a/ai_evals/README.md b/ai_evals/README.md index 3c123e2579..824354a257 100644 --- a/ai_evals/README.md +++ b/ai_evals/README.md @@ -254,6 +254,22 @@ secretRequests: and the resource are created in the workspace, deployed, and the model reads the result the chat would give it. `check` is reported as is; no connection test runs. +`runtime.codeSelections` attaches code to the prompt of a global case, as the chips of code +selected in an editor do. `source` names the item (`script`, `flow`, `raw_app` or `agent`) and +optionally its `part` (a flow step, app runnable, agent tool or script module file), and +`content` is the code from `startLine` to `endLine`: + +```yaml +codeSelections: + - source: { kind: flow, path: f/evals/global/process_refund, part: calculate_total } + lang: bun + startLine: 1 + endLine: 2 + content: |- + export async function main(subtotal: number) { + return { subtotal, total: subtotal } +``` + `runtime.profile` runs a session-chat case (`sessionChat: true`) as a non-admin role instead of full access: the prompt, toolset and tool schemas are cut as production's `capabilitiesForRole` cuts them, and the workspace's `operator_settings` are seeded for the diff --git a/ai_evals/adapters/frontend/core/global/globalEvalRunner.ts b/ai_evals/adapters/frontend/core/global/globalEvalRunner.ts index f3d025626c..c7b6080d59 100644 --- a/ai_evals/adapters/frontend/core/global/globalEvalRunner.ts +++ b/ai_evals/adapters/frontend/core/global/globalEvalRunner.ts @@ -4,6 +4,7 @@ import { globalToolsFor, prepareGlobalUserMessage, } from "../../../../../frontend/src/lib/components/copilot/chat/global/core"; +import { createCodeSelection } from "../../../../../frontend/src/lib/components/copilot/chat/context"; import { assembleGlobalSystemMessage } from "../../../../../frontend/src/lib/components/copilot/chat/global/globalAssembly"; import { canBuild, @@ -46,6 +47,7 @@ import { type EvalPreviewTabFixture, } from "./evalPreviewTabs"; import type { + EvalCaseCodeSelection, EvalCaseProfile, EvalSecretRequestAnswer, ModeRunContext, @@ -145,6 +147,7 @@ export interface GlobalEvalOptions { // Start in plan mode: the gate refuses every tool without `planModeSafe`, and the two plan // tools are offered. Needs sessionChat, which is what plan mode is gated on in production. planMode?: boolean; + codeSelections?: EvalCaseCodeSelection[]; // The user's rights, resolved as a session resolves them; unset keeps full access. profile?: EvalCaseProfile; // Run the pipeline the chat drafted once it is over (`validate.pipelineRun`). @@ -286,6 +289,9 @@ export async function runGlobalEval( pipelineFolders: pipelineEditors?.folders(), }); const baseSystemMessage = assembleSystemMessage(); + const codeSelections = (options.codeSelections ?? []).map(({ source, ...selection }) => + createCodeSelection(source, selection), + ); const helpers = { ...evalArtifacts.helpers, // A standalone chat has no session: the tools that behave differently in one (a pipeline @@ -317,7 +323,7 @@ export async function runGlobalEval( isToolAvailable: (name) => (!pipelineToolNames.has(name) || (pipelineEditors?.folders().length ?? 0) > 0) && (planMode?.isToolAvailable?.(name) ?? true), - userMessage: prepareGlobalUserMessage(userPrompt, [], { + userMessage: prepareGlobalUserMessage(userPrompt, codeSelections, { ...(injectActiveEditorContext ? { workspace: workspaceRoot } : {}), activePreview: panel?.activePreview(), resourceTypeSync: await resolveResourceTypeSync(workspaceRoot, []), diff --git a/ai_evals/cases/global.yaml b/ai_evals/cases/global.yaml index 1976004840..a5093b3409 100644 --- a/ai_evals/cases/global.yaml +++ b/ai_evals/cases/global.yaml @@ -519,6 +519,45 @@ - returns subtotal, tax, and total from the updated flow logic - leaves the result as a draft only +- id: global-code-selection-names-its-item + prompt: |- + Throw an error here when the subtotal is negative. + Keep the change as a draft. + initial: ai_evals/fixtures/frontend/global/initial/current_invoice_live_flow.json + runtime: + maxTurns: 10 + codeSelections: + - source: + kind: flow + path: f/evals/global/process_refund + part: calculate_total + lang: bun + startLine: 1 + endLine: 2 + content: |- + export async function main(subtotal: number) { + return { subtotal, total: subtotal } + validate: + # The open flow's own draft, which must stay as it was, and the edited one. + draftCountExactly: 2 + requiredDrafts: + - type: flow + path: f/evals/global/process_refund + valueIncludes: + - calculate_total + - throw + forbiddenDrafts: + - type: flow + path: f/evals/global/process_invoice + toolExpect: + forbiddenToolsUsed: + - deploy_workspace_item + - delete_workspace_item + judgeChecklist: + - edits the calculate_total step of the process_refund flow, which the selected code belongs to, not the flow open in the editor + - throws when the subtotal is negative and keeps the rest of the step as it was + - leaves the result as a draft only + - id: global-test14-current-without-live-editor-asks-question prompt: |- Please update this script so it returns `ok`. diff --git a/ai_evals/core/types.ts b/ai_evals/core/types.ts index 7caa2d5fb8..e9e4d0cede 100644 --- a/ai_evals/core/types.ts +++ b/ai_evals/core/types.ts @@ -38,6 +38,8 @@ export interface EvalCaseRuntimeSpec { secretRequests?: EvalSecretRequestAnswer[]; backendPreview?: EvalCaseRuntimeBackendPreview; appContext?: EvalCaseRuntimeAppContextSpec; + // Global mode: code the user selected in an editor and attached to the prompt. + codeSelections?: EvalCaseCodeSelection[]; // Global mode: run as a session chat (preview tools + session prompt) vs the standalone chat. sessionChat?: boolean; // Global session chats: start the case in plan mode, so the workspace-changing tools are @@ -60,6 +62,14 @@ export interface EvalSecretRequestAnswer { check?: { ok: true } | { ok: false; error: string }; } +export interface EvalCaseCodeSelection { + source: { kind: "script" | "flow" | "raw_app" | "agent"; path: string; part?: string }; + lang: "bun" | "python3" | "bash" | "postgresql"; + startLine: number; + endLine: number; + content: string; +} + export interface EvalCaseProfile { operator: boolean; operatorSettings?: { diff --git a/ai_evals/modes/global.ts b/ai_evals/modes/global.ts index 71d4dae1da..cabed79045 100644 --- a/ai_evals/modes/global.ts +++ b/ai_evals/modes/global.ts @@ -55,6 +55,7 @@ export function createGlobalModeRunner( previewTabs: initial?.previewTabs, sessionChat: context.evalCase?.runtime?.sessionChat, planMode: context.evalCase?.runtime?.planMode, + codeSelections: context.evalCase?.runtime?.codeSelections, profile: context.evalCase?.runtime?.profile, pipelineRun: context.executionOnly ? undefined diff --git a/frontend/src/lib/components/Editor.svelte b/frontend/src/lib/components/Editor.svelte index da930c03f4..f1af18bf1c 100644 --- a/frontend/src/lib/components/Editor.svelte +++ b/frontend/src/lib/components/Editor.svelte @@ -112,10 +112,12 @@ import { editorPositionMap } from '$lib/utils' import { extToLang, langToExt } from '$lib/editorLangUtils' import { aiChatManager, type AIChatManager } from './copilot/chat/AIChatManager.svelte' - import type { Selection } from 'monaco-editor' import { canHavePreprocessor, getPreprocessorModuleCode } from '$lib/script_helpers' import { setMonacoTypescriptOptions } from './monacoLanguagesOptions' import { copilotInfo } from '$lib/aiStore' + import { createCodeSelection, type CodeSelection, type CodeSource } from './copilot/chat/context' + import { getOpenInSessionHandoff, withEditorFlush } from './sessions/openInSessionContext' + import { openSourceInSession } from './sessions/sessionSwitch.svelte' import { getDbSchemas } from './apps/components/display/dbtable/metadata' import { rawAppLintStore, type MonacoLintError } from './raw_apps/lintStore' import { MarkerSeverity } from 'monaco-editor' @@ -168,7 +170,10 @@ loadAsync?: boolean key?: string | undefined class?: string | undefined - moduleId?: string + /** The item an AI session is told the selected code belongs to. Unset for code of no item. */ + codeSource?: CodeSource + /** The language an AI session is told the code is in, when `scriptLang` only colours it. */ + codeSourceLang?: CodeSelection['lang'] enablePreprocessorSnippet?: boolean /** When set, enables raw app lint collection mode and reports Monaco markers to the lint store under this key */ rawAppRunnableKey?: string | undefined @@ -210,7 +215,8 @@ loadAsync = false, key = undefined, class: clazz = undefined, - moduleId = undefined, + codeSource = undefined, + codeSourceLang = undefined, enablePreprocessorSnippet = false, rawAppRunnableKey = undefined, preparedAssetsSqlQueries, @@ -282,6 +288,22 @@ const completionInfo = $derived( sessionScopedChatManager ? sessionScopedChatManager.aiInfo : $copilotInfo ) + const sessionHandoff = getOpenInSessionHandoff() + const inIframe = BROWSER && window.self !== window.top + // The item's own hand-off: one of another kind is an outer editor's. + const handoffSource = $derived.by(() => { + if (!codeSource) return undefined + const source = sessionHandoff?.source( + codeSource.kind === 'flow' ? { moduleId: codeSource.part } : undefined + ) + return source?.target?.kind === codeSource.kind ? source : undefined + }) + // The path the item's draft is stored under, which the session's tools read it by. + const codePath = $derived(handoffSource?.target?.path || codeSource?.path) + // In a session, ⌘K goes to its chat instead. + const newSessionSource = $derived( + sessionScopedChatManager || inIframe || !$copilotInfo.enabled ? undefined : handoffSource + ) // let graphqlService: MonacoGraphQLAPI | undefined = undefined let fetchedDbSchema: DBSchema | undefined = $state(undefined) @@ -398,18 +420,56 @@ } } - export function getSelectedLines(): string | undefined { - if (editor) { - const selection = editor.getSelection() - if (selection) { - const range: IRange = { - startLineNumber: selection.startLineNumber, + /** The selected lines, whole, or the cursor's line. */ + function getCodeSelection(): CodeSelection | undefined { + const selection = editor?.getSelection() + const model = editor?.getModel() + if (!selection || !model || !codeSource || !codePath || !scriptLang) return undefined + const { startLineNumber: startLine, endLineNumber, endColumn } = selection + // A selection dragged to the start of a line holds none of it. + const endLine = + endColumn === 1 && endLineNumber > startLine ? endLineNumber - 1 : endLineNumber + return createCodeSelection( + { ...codeSource, path: codePath }, + { + startLine, + endLine, + content: model.getValueInRange({ + startLineNumber: startLine, startColumn: 1, - endLineNumber: selection.endLineNumber + 1, - endColumn: 1 - } - return editor.getModel()?.getValueInRange(range) + endLineNumber: endLine, + endColumn: model.getLineMaxColumn(endLine) + }), + lang: codeSourceLang ?? (scriptLang as CodeSelection['lang']) } + ) + } + + async function sendInlinePrompt(prompt: string): Promise { + const selection = getCodeSelection() + if (!selection || !newSessionSource) return false + try { + await openSourceInSession(withEditorFlush(newSessionSource, flushPendingChanges), { + seedPrompt: prompt, + autoSend: true, + seedPick: selection + }) + } catch (e) { + sendUserToast(e instanceof Error ? e.message : String(e), true) + return false + } + closeAIInlineWidget() + return true + } + + /** Go to the session's chat, with the selected lines. Outside a session no chat is on screen. */ + function attachSelectionToChat() { + if (!sessionScopedChatManager) return + const selection = editor?.getSelection()?.isEmpty() ? undefined : getCodeSelection() + if (selection) { + sessionScopedChatManager.attachCodeSelection(selection) + } else { + sessionScopedChatManager.focusInput() } } @@ -982,8 +1042,6 @@ // Inline ai chat widget let showInlineAIChat = $state(false) - let inlineAIChatSelection: Selection | null = $state(null) - let selectedCode = $state('') export async function reviewAndApplyCode(code: string, opts?: ReviewChangesOpts) { await aiChatEditorHandler?.reviewChanges(code, opts) @@ -1618,9 +1676,6 @@ editor?.addCommand(KeyMod.CtrlCmd | KeyCode.DownArrow, function () { if (aiChatManager.pendingNewCode) { aiChatManager.scriptEditorApplyCode?.(aiChatManager.pendingNewCode) - if (showInlineAIChat) { - closeAIInlineWidget() - } } }) @@ -1649,35 +1704,16 @@ }) editor?.addCommand(KeyMod.CtrlCmd | KeyCode.KeyL, function () { - const selectedLines = getSelectedLines() - const selection = editor?.getSelection() - const hasSelection = - selection && - (selection.startLineNumber !== selection.endLineNumber || - selection.startColumn !== selection.endColumn) - // Only a session pane has a chat on screen to send the lines to. - const chat = sessionScopedChatManager - if (!chat) return - if (hasSelection && selectedLines) { - chat.addSelectedLinesToContext( - selectedLines, - selection.startLineNumber, - selection.endLineNumber, - moduleId - ) - } else { - chat.focusInput() - } + // Monaco runs a command for whichever editor has focus, this one or not. + if (editor?.hasWidgetFocus()) attachSelectionToChat() }) editor?.addCommand(KeyMod.CtrlCmd | KeyCode.KeyK, function () { - if ($copilotInfo.enabled) { - aiChatEditorHandler?.rejectAll() - if (showInlineAIChat) { - closeAIInlineWidget() - } else { - showAIInlineWidget() - } + if (!editor?.hasWidgetFocus()) return + if (newSessionSource) { + showInlineAIChat = !showInlineAIChat + } else { + attachSelectionToChat() } }) @@ -1896,30 +1932,10 @@ }) } - function showAIInlineWidget() { - if (!editor) return - - inlineAIChatSelection = editor.getSelection() - if (!inlineAIChatSelection) { - return - } - const model = editor.getModel() - selectedCode = '' - if (model) { - selectedCode = model.getValueInRange(inlineAIChatSelection) - } - showInlineAIChat = true - aiChatInlineWidget?.focusInput() - } - function closeAIInlineWidget() { showInlineAIChat = false - inlineAIChatSelection = null - selectedCode = '' } - let aiChatInlineWidget: AIChatInlineWidget | null = $state(null) - $effect(() => { const fontSize = small ? editorFontSize.small : editorFontSize.regular if (editor) { @@ -2008,9 +2024,6 @@ rejectCodeChanges() } else if ((e.ctrlKey || e.metaKey) && e.key === 'ArrowDown' && aiChatManager.pendingNewCode) { acceptCodeChanges() - if (showInlineAIChat) { - closeAIInlineWidget() - } } } $effect(() => { @@ -2250,14 +2263,15 @@ {/if} -{#if editor && $copilotInfo.enabled && aiChatEditorHandler} +{#if editor && showInlineAIChat && newSessionSource} { + closeAIInlineWidget() + if (refocus) editor?.focus() + }} /> {/if} diff --git a/frontend/src/lib/components/FlowBuilder.svelte b/frontend/src/lib/components/FlowBuilder.svelte index 6a545423f8..b0c2e57b8b 100644 --- a/frontend/src/lib/components/FlowBuilder.svelte +++ b/frontend/src/lib/components/FlowBuilder.svelte @@ -138,6 +138,7 @@ import { editInForkAllowed, editInForkLabel, openEditInFork } from '$lib/utils/editInFork' import { isCloudHosted } from '$lib/cloud' import { UserDraft } from '$lib/userDraft.svelte' + import { assertDraftSaved } from './sessions/pageDrawerSession' import { setOpenInSessionHandoff } from './sessions/openInSessionContext' import { getEditorStoragePath, setEditorStoragePath } from './editorStoragePathContext' import { useEditRights, useRoleCapabilities, useTriggerLock } from '$lib/operatorWriteRights' @@ -494,9 +495,15 @@ // discardIf baseline, safe only when there is none. async function persistDraftForSession(): Promise { await saveDraft() - if (opWorkspace && liveEditorDraftStoragePath && newFlow) { + if (!opWorkspace || !liveEditorDraftStoragePath) return + if (newFlow) { await UserDraft.forcePersist('flow', liveEditorDraftStoragePath, { workspace: opWorkspace }) } + assertDraftSaved({ + workspace: opWorkspace, + itemKind: 'flow', + path: liveEditorDraftStoragePath + }) } export function computeUnlockedSteps(flow: Flow) { @@ -1034,18 +1041,16 @@ const outerStoragePath = getEditorStoragePath() setEditorStoragePath(() => liveEditorDraftStoragePath ?? outerStoragePath?.()) - // "Open in AI session" target: the URL draft path the editor loads/saves by - // (which for a new flow differs from the live-edited friendly `$pathStore`), - // falling back to `$pathStore` in drawer mounts that carry no storage path. - const sessionTargetPath = $derived(liveEditorDraftStoragePath || $pathStore) - const aiBuilderShown = $derived(!disableAi && customUi?.topBar?.aiBuilder != false) const showFlowAiButton = $derived(aiBuilderShown && $roleCaps.flows !== 'compose') + // Targets the draft path the editor loads/saves by, which for a new flow differs from + // the live-edited friendly `$pathStore`. A drawer mount has none: its edits are in no + // draft, so leaving for a session would lose them. const sessionOpen = $derived( - sessionTargetPath + indicatorPath ? { - target: { kind: 'flow' as const, path: sessionTargetPath }, + target: { kind: 'flow' as const, path: indicatorPath }, workspaceId: opWorkspace ?? undefined, beforeOpen: persistDraftForSession } diff --git a/frontend/src/lib/components/ScriptBuilder.svelte b/frontend/src/lib/components/ScriptBuilder.svelte index 29c5b79797..ed76ca4890 100644 --- a/frontend/src/lib/components/ScriptBuilder.svelte +++ b/frontend/src/lib/components/ScriptBuilder.svelte @@ -30,6 +30,7 @@ import OpenInSessionButton, { type OpenInSessionSource } from './sessions/OpenInSessionButton.svelte' + import { assertDraftSaved } from './sessions/pageDrawerSession' import { defaultScripts, enterpriseLicense, @@ -1071,17 +1072,19 @@ // discardIf baseline, safe only when there is none. async function persistDraftForSession(): Promise { await saveDraft() - if (opWorkspace && userDraftPath && savedScript?.no_deployed === true) { + if (!opWorkspace || !userDraftPath) return + if (savedScript?.no_deployed === true) { await UserDraft.forcePersist('script', userDraftPath, { workspace: opWorkspace }) } + assertDraftSaved({ workspace: opWorkspace, itemKind: 'script', path: userDraftPath }) } const sessionOpen: OpenInSessionSource | undefined = $derived( - userDraftPath + indicatorPath ? { - // URL draft path the editor loads/saves by, not the friendly + // Draft path the editor loads/saves by, not the friendly // `script.path` (a new script's has no row → "not found"). - target: { kind: 'script', path: userDraftPath }, + target: { kind: 'script', path: indicatorPath }, workspaceId: opWorkspace ?? undefined, beforeOpen: persistDraftForSession } @@ -2404,6 +2407,7 @@ bind:this={scriptEditor} bind:schema={script.schema} path={script.path} + storagePath={indicatorPath} bind:code={script.content} timeout={script.timeout} tag={script.tag} diff --git a/frontend/src/lib/components/ScriptEditor.svelte b/frontend/src/lib/components/ScriptEditor.svelte index 95d41a182f..31c442993e 100644 --- a/frontend/src/lib/components/ScriptEditor.svelte +++ b/frontend/src/lib/components/ScriptEditor.svelte @@ -2763,6 +2763,10 @@ lineNumbersMinChars={4} folding {path} + codeSource={customUi?.editorBar?.aiGen != false && + (inSessionPane || SUPPORTED_CHAT_SCRIPT_LANGUAGES.includes(lang ?? '')) + ? { kind: 'script', path: path ?? '', part: activeModuleTab ?? undefined } + : undefined} bind:code={editorCode} bind:websocketAlive bind:this={editor} diff --git a/frontend/src/lib/components/copilot/FlowInlineScriptAIButton.svelte b/frontend/src/lib/components/copilot/FlowInlineScriptAIButton.svelte index b16f23bf00..25e7f079ef 100644 --- a/frontend/src/lib/components/copilot/FlowInlineScriptAIButton.svelte +++ b/frontend/src/lib/components/copilot/FlowInlineScriptAIButton.svelte @@ -1,15 +1,16 @@ diff --git a/frontend/src/lib/components/copilot/chat/AIChatInlineWidget.svelte b/frontend/src/lib/components/copilot/chat/AIChatInlineWidget.svelte index da1a1e26af..73ddcf1e28 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatInlineWidget.svelte +++ b/frontend/src/lib/components/copilot/chat/AIChatInlineWidget.svelte @@ -1,239 +1,74 @@ -{#snippet pendingApplyHint()} - - {getModifierKey()}↓ to apply - -{/snippet} - -{#if show} -
- {#if processing} -
- -
- {/if} - { - show = false - }} - onSendRequest={async (instructions) => { - if (!selection || processing) { - return - } - - processing = true - - try { - const reply = await aiChatManager.sendInlineRequest(instructions, selectedCode, selection) - if (reply) { - await aiChatManager.applyScriptEditorCode(reply) - } - } catch (error) { - console.error('Inline AI request failed:', error) - if (error instanceof Error) { - sendUserToast('AI request failed: ' + error.message, true) - } else { - sendUserToast('AI request failed: Unknown error', true) - } - } finally { - processing = false - } - - focusInput() - }} - showContext={false} - className="-ml-2" - bottomRightSnippet={aiChatManager.pendingNewCode ? pendingApplyHint : undefined} - loading={processing} - onCancel={() => aiChatManager.cancelInlineRequest('user pressed stop')} - disabled={processing} - /> -
-{/if} +
onClose(false) }} +> + onClose(true)} + /> +
diff --git a/frontend/src/lib/components/copilot/chat/AIChatInput.svelte b/frontend/src/lib/components/copilot/chat/AIChatInput.svelte index fa2d676590..a38a63cb15 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatInput.svelte +++ b/frontend/src/lib/components/copilot/chat/AIChatInput.svelte @@ -7,8 +7,8 @@ contextElementKey, createAttachedFileContextElement, isMentionContext, + isPickContext, isSameContextElement, - type AppDomSelectorElement, type ContextElement } from './context' import { AIMode } from './AIChatManager.svelte' @@ -85,19 +85,10 @@ onEditEnd?: () => void className?: string onClickOutside?: () => void - onSendRequest?: (instructions: string) => void showContext?: boolean - bottomRightSnippet?: Snippet /** Shows "Press Esc again to clear" next to the send button. */ clearHint?: boolean onKeyDown?: (e: KeyboardEvent) => void - // When provided, overrides `chatHost.loading` for the send/stop - // button — useful for callers driving their own request lifecycle - // (e.g. the inline ⌘K widget runs requests outside the global - // `chatHost.loading` flag). - loading?: boolean - // Called when the user clicks Stop. Defaults to `chatHost.cancel()`. - onCancel?: () => void // Observe the composer draft as it changes (the text is local state — // `chatHost.instructions` only carries programmatic prompts). Used by // sessions to persist the typed-but-unsent prompt with the session draft. @@ -144,13 +135,9 @@ onEditEnd = () => {}, className = '', onClickOutside = () => {}, - onSendRequest = undefined, showContext = true, - bottomRightSnippet, clearHint = false, onKeyDown = undefined, - loading, - onCancel, onDraftChange = undefined, initialAttachments = undefined, onAttachmentsChange = undefined, @@ -637,9 +624,7 @@ chatHost.mode === AIMode.GLOBAL ) - const domSelectorChips = $derived( - (selectedContext ?? []).filter((c): c is AppDomSelectorElement => c.type === 'app_dom_selector') - ) + const pickChips = $derived((selectedContext ?? []).filter(isPickContext)) const contextKey = contextElementKey @@ -984,6 +969,12 @@ chatManager.contextManager?.consumeMentionContext() } + /** Apart from the mentions, which an answer to a question consumes too: it carries no pick. */ + function consumePicksIfGlobal() { + if (chatHost.mode !== AIMode.GLOBAL) return + chatManager.contextManager?.consumePickContext() + } + /** `midTurn`: Ctrl/⌘+Enter, which sends a message queued behind a running turn into that * turn instead of after it (`ChatViewHost.sendQueuedMidTurn`). */ function sendRequest({ midTurn = false }: { midTurn?: boolean } = {}) { @@ -1036,6 +1027,7 @@ ) // Consumed at enqueue, not at flush: the entry above pinned them. consumeMentionsIfGlobal() + consumePicksIfGlobal() contextTextareaComponent?.clearForSend() } // With an empty composer, this marks what is already queued. @@ -1063,6 +1055,7 @@ // when given no override, and the consume below empties it. const carried = chatHost.mode === AIMode.GLOBAL ? [...selectedContext] : undefined consumeMentionsIfGlobal() + consumePicksIfGlobal() // A host that refuses the turn puts the draft back itself (see AIChatManager's // restoreToInput and FlowChatViewHost's upload failure): restoring here too // would double the text and every attachment. @@ -1072,8 +1065,7 @@ images: sent.images, files: sent.files, blobs: sent.blobs, - contextOverride: carried, - contextOverrideOrigin: carried ? 'pinned' : undefined + contextOverride: carried }) // clearForSend() pre-zaps the textarea's mention-sync so the wipe doesn't // drop `selectedContext` before the send has settled its context: the pin @@ -1086,9 +1078,6 @@ } } - // A custom `onSendRequest` consumer (e.g. the inline ⌘K widget) has no chip - // display, so it gets the fully expanded text; the default path keeps tokens - // for the conversation bubble and expands them for the LLM inside the manager. /** Enter in a plain textarea. Ctrl/⌘ sends without stopping, and that press stops here for * the same reason as in `ContextTextarea`: pages bind their own Ctrl/⌘+Enter on the window. */ function sendFromEnter(e: KeyboardEvent) { @@ -1098,14 +1087,6 @@ sendRequest({ midTurn }) } - function submitRequest(options: { midTurn?: boolean } = {}) { - if (onSendRequest) { - onSendRequest(expanded(chatDraft(draft.text, draft.pastes))) - } else { - sendRequest(options) - } - } - $effect(() => { if (editingMessageIndex !== null) { focusInput() @@ -1342,12 +1323,11 @@ - {@const isLoading = (loading ?? chatHost.loading) && !questionAnsweredBySend} + {@const isLoading = chatHost.loading && !questionAnsweredBySend} {@const emptyDraft = draft.isEmpty} + parity — mirrors the sendRequest guard. Editor copilots need content. --> {@const needsText = chatHost.requiresMessageText && draft.text.trim() === ''} @@ -1359,10 +1339,7 @@ pendingBlobs > 0 || ingestionHolds > 0 || needsText || - (emptyDraft && - (onSendRequest !== undefined || - chatHost.mode !== AIMode.GLOBAL || - selectedContext.length === 0))} + (emptyDraft && (chatHost.mode !== AIMode.GLOBAL || selectedContext.length === 0))}
@@ -1389,9 +1366,9 @@ disabled={!isLoading && sendDisabled} on:click={() => { if (isLoading) { - onCancel ? onCancel() : chatHost.cancel() + chatHost.cancel() } else if (!sendDisabled) { - submitRequest() + sendRequest() } }} /> @@ -1399,11 +1376,11 @@ {/snippet} {#snippet badgeRow()} - {@const contextChips = showContext ? selectedContext : domSelectorChips} + {@const contextChips = showContext ? selectedContext : pickChips} {#if contextChips.length > 0 || draft.files.length > 0 || pendingFiles > 0 || draft.blobs.length > 0 || pendingBlobs > 0}
{#each contextChips as element (contextKey(element))} @@ -1502,7 +1479,6 @@ !e.defaultPrevented && e.target instanceof HTMLTextAreaElement && editingMessageIndex === null && - onSendRequest === undefined && draft.isEmpty && pendingImages === 0 && pendingFiles === 0 && @@ -1515,9 +1491,8 @@ // Empty means no attachment still decoding/reading either — // recalling over an attachments-only draft would clobber it. // Textarea only — ArrowUp on the wrapper's buttons/badges must not - // mutate the composer; and main composer only — the edit input and - // custom-send consumers (inline widget) have their own history - // semantics. + // mutate the composer; and main composer only — the edit input has + // its own history semantics. if ( chatHost.queuedMessage || chatHost.queuedImages.length > 0 || @@ -1564,7 +1539,7 @@ if (disabled) { return } - submitRequest({ midTurn: withModifier }) + sendRequest({ midTurn: withModifier }) }} {disabled} {onKeyDown} @@ -1582,7 +1557,7 @@ {@render toolbarRow()} {/snippet} - {#if !bottomRightSnippet && !toolbarInBox} + {#if !toolbarInBox}
{@render sendStopButton()}
@@ -1623,11 +1598,9 @@ class={twMerge('resize-none', CHAT_INPUT_PADDING)} {disabled} > - {#if !bottomRightSnippet} -
- {@render sendStopButton()} -
- {/if} +
+ {@render sendStopButton()} +
{#if showAppContextTooltip} @@ -1681,20 +1654,13 @@ class={twMerge('resize-none', COMPOSER_FIELD_RESET, CHAT_INPUT_PADDING)} {disabled} > - {#if !bottomRightSnippet} -
- {@render sendStopButton()} -
- {/if} +
+ {@render sendStopButton()} +
{/if} {#if toolbar && !toolbarInBox}
{@render toolbar()}
{/if} - {#if bottomRightSnippet} -
- {@render bottomRightSnippet()} -
- {/if} diff --git a/frontend/src/lib/components/copilot/chat/AIChatManager.svelte.ts b/frontend/src/lib/components/copilot/chat/AIChatManager.svelte.ts index 82461684cc..a86d8e30e4 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatManager.svelte.ts +++ b/frontend/src/lib/components/copilot/chat/AIChatManager.svelte.ts @@ -47,11 +47,7 @@ import type { ChatCompletionMessageParam, ChatCompletionSystemMessageParam } from 'openai/resources/chat/completions.mjs' -import { - prepareInlineChatSystemPrompt, - prepareScriptSystemMessage, - prepareScriptTools -} from './script/core' +import { prepareScriptSystemMessage, prepareScriptTools } from './script/core' import type { ScriptLintResult } from './shared' import { navigatorTools, prepareNavigatorSystemMessage } from './navigator/core' import { loadApiTools } from './api/apiTools' @@ -127,11 +123,13 @@ import { createAppFrontendFileContextElement, flattenDatatablesToAppContextElements, isMentionContext, + isPickContext, isSameContextElement, + type CodeSelection, type ContextElement, + type PickContext, type AppDatatableElement } from './context' -import type { Selection } from 'monaco-editor' import type AIChatInput from './AIChatInput.svelte' import { prepareApiSystemMessage, prepareApiUserMessage } from './api/core' import { @@ -471,7 +469,7 @@ function refreshFreeTierUsage(workspace: string | undefined) { * context snapshot always move together so a flush can't drop one. */ type QueuedEntry = { draft: DraftSnapshot - context: ContextElement[] | undefined + context: ContextElement[] } /** Plan mode's view of the chat it runs in. A function rather than an object literal in the @@ -537,7 +535,6 @@ export class AIChatManager implements ChatViewHost { /** Markdown artifacts the copilot created for the current session. */ artifacts = new SessionArtifactsStore() abortController: AbortController | undefined = undefined - inlineAbortController: AbortController | undefined = undefined // Flag to skip Responses API if it's not available (e.g., Azure region doesn't support it) skipResponsesApi = $state(false) @@ -2881,7 +2878,8 @@ export class AIChatManager implements ChatViewHost { #takeQueue(): QueuedEntry { const taken = { draft: this.#queuedDraft.take(), - context: this.queuedContext + // Not undefined, which would send the live selection: that of the next message. + context: this.queuedContext ?? [] } this.queuedContext = undefined this.#queueSendsMidTurnIn = undefined @@ -2913,7 +2911,7 @@ export class AIChatManager implements ChatViewHost { images: queued.draft.images, files: queued.draft.files }) - if (queued.context?.length) { + if (queued.context.length) { const merged = [...queued.context] for (const c of this.queuedContext ?? []) { if (!merged.some((m) => isSameContextElement(m, c))) { @@ -2924,33 +2922,23 @@ export class AIChatManager implements ChatViewHost { } } - /** Put a draft's pinned DOM selector chips back as the live selection, so the - * restored draft and the selection stay coherent (its instruction targets the - * element it was written for). No-op when the draft pinned no DOM chips, so a - * plain-text draft leaves the live selection untouched. + /** Put a draft's pinned picks back as the live selection, so the restored draft and the + * selection stay coherent (its instruction targets what it was written for). No-op when + * the draft pinned none, so a plain-text draft leaves the live selection untouched. * * `keepExisting` when the restored text was merged into a draft the user was * already writing: that draft's own chips must survive alongside, or its - * instruction — still sitting in the composer — would be retargeted at this - * draft's element. Otherwise the restore replaces, since any chip selected - * since belongs to a draft that is being replaced too. */ - #restoreDomContext(context: ContextElement[] | undefined, keepExisting = false) { - const domChips = (context ?? []).filter((c) => c.type === 'app_dom_selector') - if (domChips.length === 0) return - const existing = keepExisting - ? (this.contextManager?.getSelectedContext().filter((c) => c.type === 'app_dom_selector') ?? - []) - : [] - this.contextManager?.clearSelectedDomElements() - // addSelectedDomElement dedups on (selector, appPath), so a chip both drafts - // share collapses to one. - for (const c of [...domChips, ...existing]) { - this.contextManager?.addSelectedDomElement(c) - } + * instruction, still sitting in the composer, would be retargeted at this + * draft's pick. Otherwise the restore replaces preview elements, since any + * selected since belongs to a draft that is being replaced too. */ + #restorePickContext(context: ContextElement[] | undefined, keepExisting = false) { + const picks = (context ?? []).filter(isPickContext) + if (picks.length === 0) return + this.contextManager?.restorePickContext(picks, keepExisting) } /** Give back the mentions a send carried when its text returns to the composer, - * so its `@` tokens still have entries to bind to. Additive, unlike the DOM + * so its `@` tokens still have entries to bind to. Additive, unlike the pick * restore above: dropping the entries this send did not carry would strand the * tokens naming them in a draft whose text now shares the same composer. * @@ -2976,7 +2964,9 @@ export class AIChatManager implements ChatViewHost { * * Gated on `sendInFlight` as well as `loading`: `loading` only rises after a * send's attachment upkeep, so between the two a click would slip past. */ - sendOrQueue(text: string, context?: ContextElement[]) { + sendOrQueue(text: string, picks: PickContext[] = []) { + // The composer's own picks stay there: they belong to the draft being written in it. + const context = [...this.#contextWithoutPicks(), ...picks] if (this.loading || this.sendInFlight || this.sendPending) { this.queueMessage(text, [], context) return @@ -2984,6 +2974,10 @@ export class AIChatManager implements ChatViewHost { void this.sendRequest({ instructions: text, contextOverride: context }) } + #contextWithoutPicks(): ContextElement[] { + return this.contextManager.getSelectedContext().filter((c) => !isPickContext(c)) + } + /** Remove the queued message and put it back into the input, images included. */ dequeueMessage() { if (!this.#hasQueuedMessage()) { @@ -2999,27 +2993,31 @@ export class AIChatManager implements ChatViewHost { // the composer targets the element the draft was written for, not whatever // is selected now. If its text was prepended onto an existing draft, that // draft's chips are kept too — both instructions now share one composer. - this.#restoreDomContext(queued.context, mergedIntoDraft) + this.#restorePickContext(queued.context, mergedIntoDraft) // The queue aggregates several enqueues into one entry and records no // originating mode, so the mode now is the closest signal available. A // recall after a mid-turn mode switch can therefore miss a restore. this.#restoreMentionContext(queued.context, this.mode) } - /** Put what the user typed back where they can see it: into the input - * when it's mounted, otherwise back into the queue so it reappears with - * the chat panel instead of being silently dropped. */ + /** Put what the user typed back where they can see it, with its picks: into the input + * when it's mounted, beside the picks there, otherwise back into the queue so it reappears + * with the chat panel instead of being silently dropped. */ private restoreToInput( text: string, images: AttachedImage[] = [], - files: AttachedTextFile[] = [] + files: AttachedTextFile[] = [], + context: ContextElement[] = [] ): boolean { if (this.aiChatInput) { - return this.aiChatInput.prependText(text, images, files) === true + const mergedIntoDraft = this.aiChatInput.prependText(text, images, files) === true + this.#restorePickContext(context, true) + return mergedIntoDraft } // Merge onto anything already queued (see #restoreQueue) — replacing would // silently drop a message queued while this one was in flight. - this.#queuedDraft.prepend({ text, images, files }) + const draft = { text, images, files, pastes: [], blobs: [] } + this.#restoreQueue({ draft, context }) return false } @@ -3593,29 +3591,28 @@ export class AIChatManager implements ChatViewHost { } } - // Roll a turn that produced nothing usable back out of the transcript and - // hand its text back to the composer for editing/resending. `restoreToInput` - // is false when a queued message is about to take over (a user cancel with - // something queued) — then the rolled-back prompt is dropped rather than - // shoved back into the input, so the handoff to the queued message is clean. - private restoreUnsentTurn = async ( - displayLenAfterUser: number, - modelLenAfterUser: number, - instructions: string, - pastes: PasteAttachment[], - restoreToInput: boolean = true, - images: AttachedImage[] = [], - files: AttachedTextFile[] = [] - ): Promise => { + /** Hand a rolled-back message back to the composer with its picks and mentions, or with none + * of them: on a draft that declined the text, they would retarget what is being written. */ + #returnToComposer( + draft: Pick, + context: ContextElement[] | undefined, + originMode: AIMode, + { replacePicks = false } = {} + ) { + const { text, pastes, images, files } = draft + if (!this.aiChatInput?.restoreInstructions(text, pastes, images, files)) return + this.#restorePickContext(context, !replacePicks) + this.#restoreMentionContext(context, originMode) + } + + // Roll a turn that produced nothing usable back out of the transcript. + #dropUnsentTurn(displayLenAfterUser: number, modelLenAfterUser: number) { this.displayMessages = this.displayMessages.slice(0, displayLenAfterUser - 1) this.messages = this.messages.slice(0, modelLenAfterUser - 1) // The rolled-back turn's files must not stay registered: the message // referencing them is gone, so leaving them would keep stale content // readable by the tools on later turns. this.#syncMessageFiles() - if (!restoreToInput) return false - // An occupied composer declines the restore and keeps its own draft. - return this.aiChatInput?.restoreInstructions(instructions, pastes, images, files) === true } // Bytes each live composer has staged toward its next send (committed @@ -3912,92 +3909,6 @@ export class AIChatManager implements ChatViewHost { } } - sendInlineRequest = async (instructions: string, selectedCode: string, selection: Selection) => { - // Validate inputs - if (!instructions.trim()) { - throw new Error('Instructions are required') - } - // Use a separate abort controller for inline requests to avoid interfering with main chat - this.inlineAbortController = new AbortController() - const lang = this.scriptEditorOptions?.lang ?? 'bun' - const selectedContext: ContextElement[] = [...this.contextManager.getSelectedContext()] - const startLine = selection.startLineNumber - const endLine = selection.endLineNumber - selectedContext.push({ - type: 'code_piece', - lang, - title: `L${startLine}-L${endLine}`, - startLine, - endLine, - content: selectedCode - }) - - const systemMessage: ChatCompletionSystemMessageParam = { - role: 'system', - content: prepareInlineChatSystemPrompt(lang, { - workflowAsCode: this.scriptEditorOptions?.workflowAsCode ?? false - }) - } - - let reply = '' - - try { - const userMessage = prepareScriptUserMessage(instructions, selectedContext) - const messages = [userMessage] - - const params = { - messages, - abortController: this.inlineAbortController, - callbacks: { - onNewToken: (token: string) => { - reply += token - }, - onMessageEnd: () => {}, - setToolStatus: () => {}, - removeToolStatus: () => {} - }, - systemMessage - } - - await this.chatRequest({ ...params }) - - // Validate we received a response - if (!reply.trim()) { - throw new Error('AI response was empty') - } - - // Try to extract new code from response - const newCodeMatch = reply.match(/([\s\S]*?)<\/new_code>/i) - if (newCodeMatch && newCodeMatch[1]) { - const code = newCodeMatch[1].trim() - if (!code) { - throw new Error('AI response contained empty code block') - } - return code - } - - // Fallback: try to take everything after the last tag - const lastNewCodeMatch = reply.match(/([\s\S]*)/i) - if (lastNewCodeMatch && lastNewCodeMatch[1]) { - const code = lastNewCodeMatch[1].trim().replace(/```/g, '') - if (!code) { - throw new Error('AI response contained empty code block') - } - return code - } - - // If no code tags found, throw error with helpful message - throw new Error('AI response did not contain valid code. Please try rephrasing your request.') - } catch (error) { - // if abort controller is aborted, don't throw an error - if (this.inlineAbortController?.signal.aborted) { - return - } - console.error('Unexpected error in sendInlineRequest:', error) - throw new Error('An unexpected error occurred. Please try again.') - } - } - // Optional pre-flight hook called once per send, after the user's message // bubble + loading indicator are shown optimistically but before the request // goes out. Sessions use this to commit/materialise the workspace (creating a @@ -4115,13 +4026,7 @@ export class AIChatManager implements ChatViewHost { return undefined } - const { draft, context = [] } = this.#takeQueue() - // Pinned at enqueue, so consumed from the live selection as any pinned send does. - for (const c of context) { - if (c.type === 'app_dom_selector') { - this.contextManager?.removeSelectedDomElement(c.selector, c.appPath) - } - } + const { draft, context } = this.#takeQueue() if (this.mode === AIMode.SCRIPT || this.mode === AIMode.FLOW) { this.contextManager?.updateContextOnRequest({}) } @@ -4175,8 +4080,7 @@ export class AIChatManager implements ChatViewHost { } // The shared manager has no chat on screen: turns render only in a session's own chat. // One started here would still stream, spend tokens and apply tool calls, entirely - // off-screen, so refuse it. `sendInlineRequest` is exempt: the ⌘K widget renders its own - // composer inside Monaco. + // off-screen, so refuse it. if (this === aiChatManager) { console.error('sendRequest called with no chat UI mounted; dropping the turn') sendUserToast('This action needs the AI chat. Start an AI session to continue.', true) @@ -4212,7 +4116,8 @@ export class AIChatManager implements ChatViewHost { this.restoreToInput( expanded(chatDraft(options.instructions ?? this.instructions, options.pastes ?? [])), options.images, - options.files + options.files, + options.contextOverride ) } sendUserToast( @@ -4248,12 +4153,6 @@ export class AIChatManager implements ChatViewHost { // contextManager. Set whenever a send settles its context ahead of the // turn: a composer submit at the click, a queued message at enqueue. contextOverride?: ContextElement[] - /** Where `contextOverride` came from. 'pinned' (default): the chips were - * selected for THIS message, so they are consumed from the live selection - * on send. 'replay': an edit/retry resending an older message's context — - * those chips were consumed long ago, and removing them again would strip - * an identical selection the user has since made in the composer. */ - contextOverrideOrigin?: 'pinned' | 'replay' /** Auto-send of a queued draft: on preflight failure the caller re-queues * it, so the composer restore must not also fire (the draft would exist * twice — queue chip and composer). */ @@ -4327,6 +4226,8 @@ export class AIChatManager implements ChatViewHost { // resolved to `/clear` or `/compact` must not strand its resend reservation. if (COMPACT_COMMAND_RE.test(trimmed) || CLEAR_COMMAND_RE.test(trimmed)) { this.#releaseOutgoingReservation(reservationKey) + // It carries no pick either. + this.#restorePickContext(options.contextOverride, true) } // `/compact`: summarize the conversation locally to free up context. if (COMPACT_COMMAND_RE.test(trimmed)) { @@ -4396,17 +4297,16 @@ export class AIChatManager implements ChatViewHost { // restore is keyed to requestedMode: a GLOBAL submit whose mode // flipped during the upkeep awaits above still gets its mentions // back, while a send that started outside GLOBAL consumed none. - const taken = - this.aiChatInput?.restoreInstructions( - this.instructions, + this.#returnToComposer( + { + text: this.instructions, pastes, - options.images ?? [], - options.files ?? [] - ) === true - if (taken) { - this.#restoreDomContext(options.contextOverride, true) - this.#restoreMentionContext(options.contextOverride, requestedMode) - } + images: options.images ?? [], + files: options.files ?? [] + }, + options.contextOverride, + requestedMode + ) } return false } @@ -4434,7 +4334,7 @@ export class AIChatManager implements ChatViewHost { // that does not write a token would break that and need one here. if (!this.instructions.trim() && files.length === 0) { sendUserToast(`${sendModel.model} can't read images. Switch to a vision model first.`, true) - if (!options.queued) this.restoreToInput('', requestedImages) + if (!options.queued) this.restoreToInput('', requestedImages, [], options.contextOverride) return false } sendUserToast( @@ -4459,7 +4359,12 @@ export class AIChatManager implements ChatViewHost { // awaits above occupies the composer, and this restore must merge // into it (or queue), never be refused by it. if (!options.queued) { - this.restoreToInput(expanded(chatDraft(this.instructions, pastes)), images, files) + this.restoreToInput( + expanded(chatDraft(this.instructions, pastes)), + images, + files, + options.contextOverride + ) } sendUserToast('This session is running in another tab. Your message was kept.', true) } @@ -4517,16 +4422,11 @@ export class AIChatManager implements ChatViewHost { console.error('AIChatManager beforeSend hook failed', e) rollbackOptimisticSend() if (!options.queued) { - // Mentions were consumed at submit, so they come back with the text or - // not at all. Only when the composer took it: it declines when the - // user has started a new draft, and restoring then would put these - // mentions on that draft and every turn after it. - const taken = - this.aiChatInput?.restoreInstructions(this.instructions, pastes, images, files) === true - if (taken) { - this.#restoreDomContext(options.contextOverride, true) - this.#restoreMentionContext(options.contextOverride, requestedMode) - } + this.#returnToComposer( + { text: this.instructions, pastes, images, files }, + options.contextOverride, + requestedMode + ) } sendUserToast( `Could not prepare the session before sending: ${ @@ -4584,14 +4484,11 @@ export class AIChatManager implements ChatViewHost { }) if (accepted === false) this.#restoreQueue(next) } else { - // Same pairing as the beforeSend catch above: mentions ride back with the - // text, only if the composer took it. - const taken = - this.aiChatInput?.restoreInstructions(this.instructions, pastes, images, files) === true - if (taken) { - this.#restoreDomContext(options.contextOverride, true) - this.#restoreMentionContext(options.contextOverride, requestedMode) - } + this.#returnToComposer( + { text: this.instructions, pastes, images, files }, + options.contextOverride, + requestedMode + ) } return true } @@ -4692,27 +4589,16 @@ export class AIChatManager implements ChatViewHost { // it belongs to whatever the user has selected since. Otherwise read the // current selection. const oldSelectedContext = - options.contextOverride ?? this.contextManager?.getSelectedContext() ?? [] - // DOM selector chips are one-shot: they ride with this message (captured in + options.contextOverride ?? + (options.synthetic + ? this.#contextWithoutPicks() + : (this.contextManager?.getSelectedContext() ?? [])) + // Pick chips are one-shot: they ride with this message (captured in // oldSelectedContext) and render above it, but must not persist in the input - // for the next turn. Clearing here leaves oldSelectedContext untouched. - if (options.contextOverrideOrigin === 'replay') { - // Edit/retry: the override is a copy of an already-sent message's - // context, consumed on its original send. The live selection belongs to - // the composer's own draft — touching it here would strip it. - } else if (options.contextOverride) { - // A pinned submit consumes only the chips it carried. Drop just those - // from the live selection (still there if the user didn't re-select); a - // newer selection made since is left intact. - for (const c of options.contextOverride) { - if (c.type === 'app_dom_selector') { - // Match appPath too: another app's live chip can share this - // selector, and dropping it would discard a newer selection. - this.contextManager?.removeSelectedDomElement(c.selector, c.appPath) - } - } - } else { - this.contextManager?.clearSelectedDomElements() + // for the next turn. Whoever pinned a snapshot has already taken them out: what + // is live then, or when the client sends, is the composer's next message's. + if (!options.contextOverride && !options.synthetic) { + this.contextManager?.consumePickContext() } if (this.mode === AIMode.SCRIPT || this.mode === AIMode.FLOW) { this.contextManager?.updateContextOnRequest(options) @@ -4793,7 +4679,7 @@ export class AIChatManager implements ChatViewHost { } : m ) - // For restoreUnsentTurn: the compact composer form (with paste tokens), + // For the restore after a rollback: the compact composer form (with paste tokens), // not the expanded LLM text, plus the rollback anchor after the user turn. const sentInstructions = this.instructions const sentPastes = pastes @@ -4872,7 +4758,7 @@ export class AIChatManager implements ChatViewHost { this.modifiedItems ? [...this.modifiedItems] : undefined ) } - // Rollback anchors for restoreUnsentTurn: captured after compaction so + // Rollback anchors for #dropUnsentTurn: captured after compaction so // they index into the (possibly compacted) stored history. The summary // path shrinks displayMessages too, so the display anchor must also be // read here, not before compaction. @@ -5107,27 +4993,16 @@ export class AIChatManager implements ChatViewHost { // about to auto-send (see the flush below) — drop the rolled-back // prompt instead of restoring it to the input so the handoff is clean. const willAutoSendQueued = this.wasCancelledByUser() && this.#hasQueuedMessage() - const textRestored = await this.restoreUnsentTurn( - displayLenAfterUser, - modelLenAfterUser, - sentInstructions, - sentPastes, - !willAutoSendQueued, - sentImages, - files - ) - // restoreUnsentTurn hands the text/pastes/images back for a resend, but - // the DOM selector chips were already consumed from the live selection - // before the request went out. Restore this turn's own chips so the - // resend keeps its element scope — replacing (not merging) any chips - // selected during the stream, so the restored draft stays coherent. - // Only when the composer actually took the text back: on a queued-message - // handoff, or when a draft typed during the stream made the composer - // decline, this prompt is dropped — restoring its chips would then - // retarget whatever draft is sitting there. - if (textRestored) { - this.#restoreDomContext(oldSelectedContext) - this.#restoreMentionContext(oldSelectedContext, requestedMode) + this.#dropUnsentTurn(displayLenAfterUser, modelLenAfterUser) + if (!willAutoSendQueued) { + // Elements picked during the stream are replaced, so that the restored + // draft stays coherent. + this.#returnToComposer( + { text: sentInstructions, pastes: sentPastes, images: sentImages, files }, + oldSelectedContext, + requestedMode, + { replacePicks: true } + ) } if (this.displayMessages.length === 0) { // saveChat no-ops on an empty transcript; the chat persisted earlier @@ -5329,15 +5204,6 @@ export class AIChatManager implements ChatViewHost { this.cancelLoadingTools() } - cancelInlineRequest = (reason?: string) => { - const cancelReason = reason ?? 'inline_cancelled' - console.log('cancelling inline request:', { - reason: cancelReason, - inlineAbortController: this.inlineAbortController - }) - this.inlineAbortController?.abort(cancelReason) - } - /** * The images of a stored user turn as the model saw them. Anything resending * a turn (retry, edit) must read them from here, never from the transcript @@ -5443,16 +5309,15 @@ export class AIChatManager implements ChatViewHost { // the element the message was about. An edit passes `editedContext` (the edit // box was seeded from this message's chips and the user may have changed // them); a bare Retry passes nothing and falls back to the original - // contextElements. `undefined` for modes that don't attach context leaves the - // live-selection behavior. An empty array is a deliberate "no context". + // contextElements. A message stored without any gets an empty array, as `undefined` + // would send the live selection, which is the composer's. this.instructions = newContent ?? userMessage.content // Prune the truncated messages' file registrations BEFORE the resend // re-registers its own — the other way around would delete the fresh rows. this.#syncMessageFiles() this.sendRequest({ pastes: pastes ?? userMessage.pastes, - contextOverride: editedContext ?? userMessage.contextElements, - contextOverrideOrigin: 'replay', + contextOverride: editedContext ?? userMessage.contextElements ?? [], images: images ?? sentImages, // The bubble copy is authoritative for files: the API message carries // only a reference (content lives in the store), so nothing ever strips @@ -5462,16 +5327,8 @@ export class AIChatManager implements ChatViewHost { }) } - addSelectedLinesToContext = ( - lines: string, - startLine: number, - endLine: number, - moduleId?: string - ) => { - if (!moduleId) { - this.changeMode(AIMode.SCRIPT) - } - this.contextManager?.addSelectedLinesToContext(lines, startLine, endLine, moduleId) + attachCodeSelection(selection: CodeSelection) { + this.contextManager.addCodeSelection(selection) this.focusInput() } diff --git a/frontend/src/lib/components/copilot/chat/AIChatManager.test.ts b/frontend/src/lib/components/copilot/chat/AIChatManager.test.ts index 8e4716d275..ff79739f1a 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatManager.test.ts +++ b/frontend/src/lib/components/copilot/chat/AIChatManager.test.ts @@ -9,6 +9,7 @@ import type { DisplayMessage } from './shared' import type { AttachedImage } from './imageUtils' import { AIChatManager, AIMode, AIAutonomyMode, aiChatManager } from './AIChatManager.svelte' import { AIWorkMode, USE_MODE_WITHDRAWN } from './workMode' +import { createAppDomSelectorElement, createCodeSelection } from './context' import { makePasteToken } from './pasteTokens' import { PLAN_MODE_MESSAGES } from './planModeMessages' import { runChatLoop } from './chatLoop' @@ -1323,6 +1324,17 @@ describe('AIChatManager user questions', () => { }) }) +function pick(content: string, line = 1) { + return createCodeSelection( + { kind: 'script', path: 'f/a/b' }, + { content, startLine: line, endLine: line, lang: 'bun' } + ) +} + +function element(selector: string) { + return createAppDomSelectorElement({ selector, appPath: 'f/app', tagName: 'div' }) +} + describe('AIChatManager queued messages', () => { const model = { provider: 'openai', model: 'gpt-4o' } @@ -1639,6 +1651,14 @@ describe('AIChatManager queued messages', () => { .filter((c) => c.type === 'app_dom_selector') .map((c) => c.selector) ).toEqual(['div.a']) + + // Nor when the message was stored without context. + seed() + delete (manager.displayMessages[0] as any).contextElements + manager.restartGeneration(0) + await vi.waitFor(() => expect(manager.displayMessages[0]).toHaveProperty('contextElements')) + expect(sentChipSelectors()).toEqual([]) + expect(cm.getSelectedContext()).toEqual([chipA]) }) // The loop, not the send, owns the vision strip: it re-applies it per iteration @@ -2528,7 +2548,7 @@ describe('AIChatManager queued messages', () => { const input = createInputMock() const manager = createManager(input) replyWith('done') - // cancel before any usable output → the rollback (restoreUnsentTurn) path + // cancel before any usable output → the rollback path mocks.runChatLoop.mockImplementationOnce(async ({ abortController }: any) => { abortController.abort('user_cancelled') throw new Error('aborted') @@ -2950,8 +2970,7 @@ describe('AIChatManager queued messages', () => { await manager.sendRequest({ instructions: 'why does this retry', - contextOverride: carried, - contextOverrideOrigin: 'pinned' + contextOverride: carried }) expect(cm.getSelectedContext()).toEqual([mention]) @@ -2975,8 +2994,7 @@ describe('AIChatManager queued messages', () => { await manager.sendRequest({ instructions: 'why does this retry', - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) expect(cm.getSelectedContext()).toEqual([mention]) @@ -2995,8 +3013,7 @@ describe('AIChatManager queued messages', () => { const pending = manager.sendRequest({ instructions: 'describe this image', images: [{ id: 'img-1', dataUrl: 'data:image/png;base64,AAAA' } as any], - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) manager.mode = AIMode.SCRIPT await pending @@ -3037,6 +3054,73 @@ describe('AIChatManager queued messages', () => { expect(chips.map((c) => c.selector)).toEqual(['div.a']) }) + it('carries code attached in a session on its next message, and only there', async () => { + replyWith('done') + const manager = createManager(createInputMock()) + manager.mode = AIMode.GLOBAL + manager.isSessionChat = true + const selection = pick('return 1', 2) + manager.listenForContextChange({}, 'parent') + manager.attachCodeSelection(selection) + // The composer's context is rebuilt whenever the page's workspace or its schemas change. + manager.listenForContextChange({}, 'parent') + manager.listenForContextChange({}, 'fork') + expect(manager.mode).toBe(AIMode.GLOBAL) + + await manager.sendRequest({ instructions: 'make it 2' }) + + const { messages } = mocks.runChatLoop.mock.calls.at(-1)![0] as any + expect(messages.at(-1).content).toContain('path: f/a/b, lines 2-2:\n```bun\nreturn 1\n```') + expect(manager.contextManager.getSelectedContext()).toEqual([]) + }) + + it('sends a queued message with its own picks and leaves the next one its own', async () => { + replyWith('done') + const manager = createManager(createInputMock()) + manager.mode = AIMode.GLOBAL + manager.queueMessage('first', [], [pick('before')]) + // The lines change and are queued again, then picked once more as they were at first. + manager.queueMessage('second', [], [pick('after')]) + manager.attachCodeSelection(pick('before')) + + await manager.sendRequest({ instructions: 'running', contextOverride: [] }) + + const { messages } = mocks.runChatLoop.mock.calls.at(-1)![0] as any + expect(messages.at(-1).content).toContain('before') + expect(messages.at(-1).content).toContain('after') + expect(manager.contextManager.getSelectedContext()).toEqual([pick('before')]) + }) + + it('leaves what is attached for the next message out of one queued without it', async () => { + replyWith('done') + const manager = createManager(createInputMock()) + manager.mode = AIMode.GLOBAL + const selection = pick('return 1', 2) + manager.queueMessage('queued') + manager.attachCodeSelection(selection) + + await manager.sendRequest({ instructions: 'running', contextOverride: [] }) + + const { messages } = mocks.runChatLoop.mock.calls.at(-1)![0] as any + expect(messages.at(-1).content).toContain('queued') + expect(messages.at(-1).content).not.toContain('SELECTED CODE') + expect(manager.contextManager.getSelectedContext()).toEqual([selection]) + }) + + it('leaves code attached in the composer there when a prompt sent past it comes back', () => { + const manager = createManager(createInputMock()) + manager.attachCodeSelection(pick('for the composer')) + manager.loading = true + manager.sendOrQueue('make it red', [element('div.prompt')]) + + manager.dequeueMessage() + + expect(manager.contextManager.getSelectedContext()).toEqual([ + element('div.prompt'), + pick('for the composer') + ]) + }) + // Restoration is only coherent when the text it belongs to actually lands in the // composer. Both cases below leave another draft sitting there, so replacing its // chips would silently retarget an instruction the user is still writing. @@ -3151,8 +3235,7 @@ describe('AIChatManager queued messages', () => { const accepted = await manager.sendRequest({ instructions: '@f/etl/sync fix this', - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) expect(accepted).toBe(false) @@ -3172,8 +3255,7 @@ describe('AIChatManager queued messages', () => { await manager.sendRequest({ instructions: '@f/etl/sync fix this', - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) expect(mocks.runChatLoop).not.toHaveBeenCalled() @@ -3214,8 +3296,7 @@ describe('AIChatManager queued messages', () => { await manager.sendRequest({ instructions: '@f/etl/sync fix this', - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) expect(manager.contextManager.getSelectedContext()).toEqual([]) @@ -3234,8 +3315,7 @@ describe('AIChatManager queued messages', () => { await manager.sendRequest({ instructions: 'fix this', - contextOverride: [mention], - contextOverrideOrigin: 'pinned' + contextOverride: [mention] }) expect(manager.contextManager.getSelectedContext()).toEqual([]) @@ -5043,6 +5123,25 @@ describe('AIChatManager cross-tab run seams', () => { expect(manager.queuedMessage).toBe('race loser') }) + it.each([ + ['at the start of the send', () => true], + // Announced during the send's own awaits. + ['once it is under way', (reads: number) => reads > 1] + ])('keeps the pick of a refused prompt, refused %s', async (_, held) => { + const manager = new AIChatManager() + manager.isSessionChat = true + manager.mode = AIMode.GLOBAL + let reads = 0 + manager.runHeldElsewhereResolver = () => held(++reads) + const selection = element('div.prompt') + + manager.sendOrQueue('make it red', [selection]) + + await vi.waitFor(() => expect(manager.queuedMessage).toBe('make it red')) + expect(mocks.runChatLoop).not.toHaveBeenCalled() + expect(manager.queuedContext).toEqual([selection]) + }) + // A synthetic (auto-resume) prompt is client-authored: a refusal must // release it rather than hand it back as a draft the user never wrote — // staged instructions would otherwise block every later auto-resume. diff --git a/frontend/src/lib/components/copilot/chat/ContextElementBadge.svelte b/frontend/src/lib/components/copilot/chat/ContextElementBadge.svelte index dd94b076ea..73d26f1906 100644 --- a/frontend/src/lib/components/copilot/chat/ContextElementBadge.svelte +++ b/frontend/src/lib/components/copilot/chat/ContextElementBadge.svelte @@ -37,6 +37,8 @@ // (the composer keeps every badge the same size). const COMPACT_TYPES = new Set([ 'app_dom_selector', + 'code_piece', + 'flow_module_code_piece', 'workspace_app', 'workspace_agent', 'workspace_script', diff --git a/frontend/src/lib/components/copilot/chat/ContextManager.svelte.ts b/frontend/src/lib/components/copilot/chat/ContextManager.svelte.ts index 18190290b5..cf7ebf58fa 100644 --- a/frontend/src/lib/components/copilot/chat/ContextManager.svelte.ts +++ b/frontend/src/lib/components/copilot/chat/ContextManager.svelte.ts @@ -4,9 +4,14 @@ import { SQLSchemaLanguages, type DBSchemas } from '$lib/stores' import { diffLines } from 'diff' import { createAppDomSelectorElement, + isCodeSelection, isMentionContext, + isPickContext, + isSameCodeRange, + isSameContextElement, + type CodeSelection, type ContextElement, - type FlowModuleElement + type PickContext } from './context' import type { FlowModule } from '$lib/gen' @@ -77,13 +82,13 @@ export default class ContextManager { this.availableContext = [] if (!workspace || (this.workspace !== undefined && this.workspace !== workspace)) { this.workspace = workspace - this.selectedContext = [] + // Code selections are of the session's own items, not of the workspace browsed. + this.selectedContext = currentlySelectedContext.filter(isCodeSelection) return } this.workspace = workspace this.selectedContext = currentlySelectedContext.filter( - (context) => - isMentionContext(context) + (context) => isMentionContext(context) || isCodeSelection(context) ) } @@ -250,11 +255,11 @@ export default class ContextManager { // Seed with the (refreshed) code block + everything else previously // selected. The filter further down validates each entry against - // newAvailableContext (and the per-type allowlist for code_piece / - // workspace_*); types that are auto-derived (diff/error/db) survive - // when they're still in availableContext, user-picked workspace refs - // survive unconditionally, and `code` is excluded from the carryover - // because we just rebuilt it. + // newAvailableContext (and the per-type allowlist for workspace_*); + // types that are auto-derived (diff/error/db) survive when they're + // still in availableContext, user-picked workspace refs survive + // unconditionally, and `code` is excluded from the carryover because + // we just rebuilt it. let newSelectedContext: ContextElement[] = [ { type: 'code', @@ -285,7 +290,6 @@ export default class ContextManager { newSelectedContext = newSelectedContext .filter( (c) => - (c.type === 'code_piece' && scriptOptions.getCode().includes(c.content)) || c.type === 'code' || // Workspace references are user-picked via @-mention and not in // availableContext; preserve so badges survive editor refreshes. @@ -336,6 +340,24 @@ export default class ContextManager { this.selectedContext = this.selectedContext.filter((c) => !isMentionContext(c)) } + consumePickContext() { + this.selectedContext = this.selectedContext.filter((c) => !isPickContext(c)) + } + + /** Put picks back with their message, beside those already selected or in place of them. + * Selected code always stays: it names its own lines, so it retargets no other message. */ + restorePickContext(picks: PickContext[], keepExisting: boolean) { + const rest = this.selectedContext.filter((c) => !isPickContext(c)) + const existing = this.selectedContext.filter( + (c) => isCodeSelection(c) || (keepExisting && isPickContext(c)) + ) + this.selectedContext = [ + ...rest, + ...picks, + ...existing.filter((c) => !picks.some((p) => isSameContextElement(p, c))) + ] + } + getAvailableContext() { return this.availableContext } @@ -344,52 +366,12 @@ export default class ContextManager { this.scriptOptions = scriptOptions } - addSelectedLinesToContext(lines: string, startLine: number, endLine: number, moduleId?: string) { - const title = moduleId ? `${moduleId} L${startLine}-L${endLine}` : `L${startLine}-L${endLine}` - if ( - !this.scriptOptions || - this.selectedContext.find( - (c) => - (c.type === 'code_piece' && c.title === title) || - (c.type === 'flow_module_code_piece' && c.id === moduleId && c.title === title) - ) - ) { - return - } - if (moduleId) { - const module = [...this.availableContext, ...this.selectedContext].find( - (c) => c.type === 'flow_module' && c.id === moduleId - ) as FlowModuleElement - if (!module) { - console.error('Module not found', moduleId) - return - } - this.selectedContext = [ - ...this.selectedContext, - { - type: 'flow_module_code_piece', - id: moduleId, - title: title, - startLine, - endLine, - content: lines, - lang: this.scriptOptions.lang, - value: module.value - } - ] - } else { - this.selectedContext = [ - ...this.selectedContext, - { - type: 'code_piece', - title: title, - startLine, - endLine, - content: lines, - lang: this.scriptOptions.lang - } - ] - } + /** Attach selected code. Lines already attached are replaced, as their code may have changed. */ + addCodeSelection(selection: CodeSelection) { + this.selectedContext = [ + ...this.selectedContext.filter((c) => !isCodeSelection(c) || !isSameCodeRange(c, selection)), + selection + ] } /** @@ -481,7 +463,6 @@ export default class ContextManager { } updateContextOnRequest(options: { removeDiff?: boolean; addBackCode?: boolean }) { - this.selectedContext = this.selectedContext.filter((c) => c.type !== 'code_piece') if (options.removeDiff) { this.selectedContext = this.selectedContext.filter((c) => c.type !== 'diff') } diff --git a/frontend/src/lib/components/raw_apps/InlineElementPrompt.svelte b/frontend/src/lib/components/copilot/chat/InlinePrompt.svelte similarity index 51% rename from frontend/src/lib/components/raw_apps/InlineElementPrompt.svelte rename to frontend/src/lib/components/copilot/chat/InlinePrompt.svelte index 721b3b4bfe..b1fde5ca90 100644 --- a/frontend/src/lib/components/raw_apps/InlineElementPrompt.svelte +++ b/frontend/src/lib/components/copilot/chat/InlinePrompt.svelte @@ -4,20 +4,19 @@ import { ArrowUp } from 'lucide-svelte' let { - x, - y, - label, - inNewSession = false, + position = undefined, + label = undefined, + ariaLabel, onSend, onClose }: { - /** Fixed-position anchor (host viewport coords), top-left of the input. */ - x: number - y: number - /** Short element label shown as the placeholder hint (e.g. "button.btn"). */ - label: string - /** Sending leaves this page for a new AI session, so the hint says so. */ - inNewSession?: boolean + /** Fixed-position anchor (host viewport coords), top-left of the input. Without one, the + * box sits where its parent puts it. */ + position?: { x: number; y: number } + /** Short name of what the prompt is about, shown as the placeholder hint. Without one, the + * hint says that sending leaves this page for a new AI session. */ + label?: string + ariaLabel: string /** Resolving to `false` keeps the box open with its text. */ onSend: (prompt: string) => void | Promise onClose: () => void @@ -27,11 +26,15 @@ let sending = $state(false) let textarea = $state(undefined) - // Focus when the anchor first appears (the element was just selected). + // Focus when the anchor first appears (its subject was just selected). $effect(() => { textarea?.focus() }) + export function focus() { + textarea?.focus() + } + async function submit() { const v = value.trim() if (!v || sending) return @@ -44,29 +47,38 @@ } - + From 4fb533389e95c629673ff1a5e1df1eee6af5f5d5 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Nov 2026 08:23:55 +0000 Subject: [PATCH 087/102] chore(main): release 1.892.0 (#12757) * chore(main): release 1.892.0 * Apply automatic changes --------- Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 + backend/Cargo.lock | 158 +++++++++--------- backend/Cargo.toml | 4 +- .../parsers/windmill-parser-wasm/Cargo.lock | 48 +++--- .../parsers/windmill-parser-wasm/Cargo.toml | 2 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- chat-sdk/package-lock.json | 4 +- chat-sdk/package.json | 2 +- cli/src/core/constants.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 2 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- windmill-yaml-validator/package-lock.json | 4 +- windmill-yaml-validator/package.json | 2 +- 22 files changed, 134 insertions(+), 126 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 44a47d1d04..7e5b0c691a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.891.0" + ".": "1.892.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6755c37142..ee0fecc1c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.892.0](https://github.com/windmill-labs/windmill/compare/v1.891.0...v1.892.0) (2026-11-30) + + +### Features + +* instance-wide IP allowlist on the Client IP settings page ([#12756](https://github.com/windmill-labs/windmill/issues/12756)) ([d62b195](https://github.com/windmill-labs/windmill/commit/d62b195f481c149dd20facaead07a92feda29d9f)) +* make client IP trust settable from the instance settings ([#12755](https://github.com/windmill-labs/windmill/issues/12755)) ([de14e74](https://github.com/windmill-labs/windmill/commit/de14e74ec0e0d461072e4c3ee21083abdec7705d)) + ## [1.891.0](https://github.com/windmill-labs/windmill/compare/v1.890.0...v1.891.0) (2026-11-29) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index e3d0137b13..c5dec119c3 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -15657,7 +15657,7 @@ dependencies = [ [[package]] name = "windmill" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-nats", @@ -15747,7 +15747,7 @@ dependencies = [ [[package]] name = "windmill-ai" -version = "1.891.0" +version = "1.892.0" dependencies = [ "async-stream", "async-trait", @@ -15782,7 +15782,7 @@ dependencies = [ [[package]] name = "windmill-alerting" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -15795,7 +15795,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "argon2", @@ -15937,7 +15937,7 @@ dependencies = [ [[package]] name = "windmill-api-agent-workers" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -15961,7 +15961,7 @@ dependencies = [ [[package]] name = "windmill-api-assets" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -15978,7 +15978,7 @@ dependencies = [ [[package]] name = "windmill-api-auth" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16006,7 +16006,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.891.0" +version = "1.892.0" dependencies = [ "reqwest 0.12.28", "serde", @@ -16016,7 +16016,7 @@ dependencies = [ [[package]] name = "windmill-api-configs" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16033,7 +16033,7 @@ dependencies = [ [[package]] name = "windmill-api-debug" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "base64 0.22.1", @@ -16055,7 +16055,7 @@ dependencies = [ [[package]] name = "windmill-api-embeddings" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16078,7 +16078,7 @@ dependencies = [ [[package]] name = "windmill-api-flow-conversations" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16094,7 +16094,7 @@ dependencies = [ [[package]] name = "windmill-api-flows" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16116,7 +16116,7 @@ dependencies = [ [[package]] name = "windmill-api-groups" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16138,7 +16138,7 @@ dependencies = [ [[package]] name = "windmill-api-inputs" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16152,7 +16152,7 @@ dependencies = [ [[package]] name = "windmill-api-integration-tests" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-nats", @@ -16188,7 +16188,7 @@ dependencies = [ [[package]] name = "windmill-api-jobs" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16214,7 +16214,7 @@ dependencies = [ [[package]] name = "windmill-api-npm-proxy" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16242,7 +16242,7 @@ dependencies = [ [[package]] name = "windmill-api-openapi" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16264,7 +16264,7 @@ dependencies = [ [[package]] name = "windmill-api-schedule" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16283,7 +16283,7 @@ dependencies = [ [[package]] name = "windmill-api-scripts" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16325,7 +16325,7 @@ dependencies = [ [[package]] name = "windmill-api-settings" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16356,7 +16356,7 @@ dependencies = [ [[package]] name = "windmill-api-sse" -version = "1.891.0" +version = "1.892.0" dependencies = [ "lazy_static", "serde", @@ -16368,7 +16368,7 @@ dependencies = [ [[package]] name = "windmill-api-users" -version = "1.891.0" +version = "1.892.0" dependencies = [ "argon2", "axum", @@ -16396,7 +16396,7 @@ dependencies = [ [[package]] name = "windmill-api-workers" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16411,7 +16411,7 @@ dependencies = [ [[package]] name = "windmill-api-workspaces" -version = "1.891.0" +version = "1.892.0" dependencies = [ "axum", "chrono", @@ -16450,7 +16450,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.891.0" +version = "1.892.0" dependencies = [ "chrono", "lazy_static", @@ -16465,7 +16465,7 @@ dependencies = [ [[package]] name = "windmill-autoscaling" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "axum", @@ -16484,7 +16484,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.891.0" +version = "1.892.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -16605,7 +16605,7 @@ dependencies = [ [[package]] name = "windmill-dep-map" -version = "1.891.0" +version = "1.892.0" dependencies = [ "chrono", "futures", @@ -16625,7 +16625,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.891.0" +version = "1.892.0" dependencies = [ "regex", "serde", @@ -16642,7 +16642,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "astral-tokio-tar", @@ -16669,7 +16669,7 @@ dependencies = [ [[package]] name = "windmill-jseval" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "futures", @@ -16686,7 +16686,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.891.0" +version = "1.892.0" dependencies = [ "itertools 0.14.0", "lazy_static", @@ -16702,7 +16702,7 @@ dependencies = [ [[package]] name = "windmill-mcp" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -16724,7 +16724,7 @@ dependencies = [ [[package]] name = "windmill-native-triggers" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -16756,7 +16756,7 @@ dependencies = [ [[package]] name = "windmill-oauth" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "arc-swap", @@ -16781,7 +16781,7 @@ dependencies = [ [[package]] name = "windmill-object-store" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-stream", @@ -16817,7 +16817,7 @@ dependencies = [ [[package]] name = "windmill-operator" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "futures", @@ -16836,7 +16836,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.891.0" +version = "1.892.0" dependencies = [ "convert_case 0.6.0", "serde", @@ -16845,7 +16845,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -16857,7 +16857,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -16869,7 +16869,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "gosyn", @@ -16881,7 +16881,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -16893,7 +16893,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -16905,7 +16905,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "nu-parser", @@ -16916,7 +16916,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16927,7 +16927,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16939,7 +16939,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -16950,7 +16950,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-recursion", @@ -16973,7 +16973,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -16985,7 +16985,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -16999,7 +16999,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -17016,7 +17016,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -17029,7 +17029,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde", @@ -17041,7 +17041,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -17059,7 +17059,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -17075,7 +17075,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -17092,7 +17092,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -17106,7 +17106,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-recursion", @@ -17144,7 +17144,7 @@ dependencies = [ [[package]] name = "windmill-runtime-nativets" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "const_format", @@ -17182,7 +17182,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.891.0" +version = "1.892.0" dependencies = [ "getrandom 0.3.4", "wasm-bindgen", @@ -17193,7 +17193,7 @@ dependencies = [ [[package]] name = "windmill-store" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-recursion", @@ -17228,7 +17228,7 @@ dependencies = [ [[package]] name = "windmill-test-utils" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17252,7 +17252,7 @@ dependencies = [ [[package]] name = "windmill-trigger" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17285,7 +17285,7 @@ dependencies = [ [[package]] name = "windmill-trigger-amqp" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17312,7 +17312,7 @@ dependencies = [ [[package]] name = "windmill-trigger-azure" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17345,7 +17345,7 @@ dependencies = [ [[package]] name = "windmill-trigger-email" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17365,7 +17365,7 @@ dependencies = [ [[package]] name = "windmill-trigger-gcp" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17399,7 +17399,7 @@ dependencies = [ [[package]] name = "windmill-trigger-http" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17436,7 +17436,7 @@ dependencies = [ [[package]] name = "windmill-trigger-kafka" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17459,7 +17459,7 @@ dependencies = [ [[package]] name = "windmill-trigger-mqtt" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17483,7 +17483,7 @@ dependencies = [ [[package]] name = "windmill-trigger-nats" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-nats", @@ -17507,7 +17507,7 @@ dependencies = [ [[package]] name = "windmill-trigger-postgres" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17542,7 +17542,7 @@ dependencies = [ [[package]] name = "windmill-trigger-sqs" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17570,7 +17570,7 @@ dependencies = [ [[package]] name = "windmill-trigger-websocket" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-trait", @@ -17596,7 +17596,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "bitflags 2.13.2", @@ -17616,7 +17616,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-once-cell", @@ -17734,7 +17734,7 @@ dependencies = [ [[package]] name = "windmill-worker-volumes" -version = "1.891.0" +version = "1.892.0" dependencies = [ "bytes", "fs4", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index c80737a5a5..f59c31c514 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.891.0" +version = "1.892.0" authors.workspace = true edition.workspace = true @@ -88,7 +88,7 @@ members = [ exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"] [workspace.package] -version = "1.891.0" +version = "1.892.0" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock index 0f4cf7582e..57f7f8d18b 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.lock +++ b/backend/parsers/windmill-parser-wasm/Cargo.lock @@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill-common" -version = "1.891.0" +version = "1.892.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -6430,7 +6430,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.891.0" +version = "1.892.0" dependencies = [ "proc-macro2", "quote", @@ -6442,7 +6442,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.891.0" +version = "1.892.0" dependencies = [ "convert_case", "serde", @@ -6451,7 +6451,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6463,7 +6463,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -6475,7 +6475,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "gosyn", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6499,7 +6499,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -6511,7 +6511,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "nu-parser", @@ -6522,7 +6522,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6533,7 +6533,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6545,7 +6545,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6556,7 +6556,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "async-recursion", @@ -6579,7 +6579,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde_json", @@ -6591,7 +6591,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6605,7 +6605,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "convert_case", @@ -6622,7 +6622,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6635,7 +6635,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde", @@ -6647,7 +6647,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6665,7 +6665,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -6681,7 +6681,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6698,7 +6698,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "getrandom 0.2.17", @@ -6730,7 +6730,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "lazy_static", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.891.0" +version = "1.892.0" dependencies = [ "anyhow", "bitflags", diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml index 666dc38a2c..5a7ccda856 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.toml +++ b/backend/parsers/windmill-parser-wasm/Cargo.toml @@ -12,7 +12,7 @@ resolver = "2" members = ["."] [workspace.package] -version = "1.891.0" +version = "1.892.0" edition = "2021" authors = ["Ruben Fiszel "] diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index 73351202cb..c6fa4ae109 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.891.0 + version: 1.892.0 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index dc2a5092a1..accf4d4274 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.891.0"; +export const VERSION = "v1.892.0"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json index 72b213799c..03531882ec 100644 --- a/chat-sdk/package-lock.json +++ b/chat-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/chat-sdk", - "version": "1.891.0", + "version": "1.892.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/chat-sdk", - "version": "1.891.0", + "version": "1.892.0", "license": "Apache-2.0", "devDependencies": { "@ai-sdk/react": "^4.0.102", diff --git a/chat-sdk/package.json b/chat-sdk/package.json index 0b913e7739..360f9b5220 100644 --- a/chat-sdk/package.json +++ b/chat-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@windmill-labs/chat-sdk", "description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app", - "version": "1.891.0", + "version": "1.892.0", "author": "Ruben Fiszel", "license": "Apache-2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme", diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts index a37a31711f..ecfacb77b2 100644 --- a/cli/src/core/constants.ts +++ b/cli/src/core/constants.ts @@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork"; // (e.g. utils.ts) can read it without importing main.ts and creating a circular // dependency (main → workspace → utils → main) that triggers a TDZ. // Re-exported from main.ts for backwards compatibility. -export const VERSION = "1.891.0"; +export const VERSION = "1.892.0"; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 0a0643db07..2e5ce88149 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/components", - "version": "1.891.0", + "version": "1.892.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/components", - "version": "1.891.0", + "version": "1.892.0", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/frontend/package.json b/frontend/package.json index 17e4b276ab..a4ef7ae9dd 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@windmill-labs/components", - "version": "1.891.0", + "version": "1.892.0", "scripts": { "dev": "vite dev", "dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev", diff --git a/lsp/Pipfile b/lsp/Pipfile index 0a947973e4..6aa4840985 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.891.0" +wmill = ">=1.892.0" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index 205556693d..250b86061c 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: '3.0.3' info: - version: 1.891.0 + version: 1.892.0 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index 264fe25d13..0308176882 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. - ModuleVersion = '1.891.0' + ModuleVersion = '1.892.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index 0807e81fdb..e906d69750 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.891.0" +version = "1.892.0" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index 18bb463466..c979a11988 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.891.0", + "version": "1.892.0", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts", "./taskParams.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index 25b726752a..6af2bb5bbe 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.891.0", + "version": "1.892.0", "author": "Ruben Fiszel", "license": "Apache 2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme", diff --git a/version.txt b/version.txt index a937c71dbc..630f528c9a 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.891.0 +1.892.0 diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json index 4bdffa8270..8067f9e36e 100644 --- a/windmill-yaml-validator/package-lock.json +++ b/windmill-yaml-validator/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-yaml-validator", - "version": "1.891.0", + "version": "1.892.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-yaml-validator", - "version": "1.891.0", + "version": "1.892.0", "license": "Apache 2.0", "dependencies": { "@stoplight/yaml": "^4.3.0", diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json index 9411516033..b6350b4104 100644 --- a/windmill-yaml-validator/package.json +++ b/windmill-yaml-validator/package.json @@ -1,6 +1,6 @@ { "name": "windmill-yaml-validator", - "version": "1.891.0", + "version": "1.892.0", "description": "YAML validator for Windmill flow, schedule, and trigger files", "main": "dist/index.js", "types": "dist/index.d.ts", From 5b6ee1001c0092576bd1e4de5c8bfdca9698aeca Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Nov 2026 09:27:57 +0000 Subject: [PATCH 088/102] feat: configurable CRAN repository url for R scripts (#12759) * feat: configurable CRAN repository url for R scripts Co-Authored-By: Claude Opus 5.5 * fix: keep mirror credentials out of the R lockfile, resolve operator secret refs Co-Authored-By: Claude Opus 5.5 * fix: mask CRAN mirror credentials in R job logs Co-Authored-By: Claude Opus 5.5 * chore: update ee-repo-ref to 20c54ad02dff7d771a1dbb820e12c57f5f9f6bf4 This commit updates the EE repository reference after PR #1029 was merged in windmill-ee-private. Previous ee-repo-ref: ab2e605929c5895002094f515c24562e03096c32 New ee-repo-ref: 20c54ad02dff7d771a1dbb820e12c57f5f9f6bf4 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: windmill-internal-app[bot] --- backend/ee-repo-ref.txt | 2 +- backend/src/main.rs | 8 +- backend/src/monitor.rs | 15 +++ .../windmill-common/src/global_settings.rs | 1 + .../windmill-common/src/instance_config.rs | 3 + backend/windmill-worker/src/r_executor.rs | 119 ++++++++++++++++-- backend/windmill-worker/src/worker.rs | 1 + .../src/lib/components/instanceSettings.ts | 10 ++ 8 files changed, 146 insertions(+), 13 deletions(-) diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index acbad8f6f0..fb746f0ddd 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -c93fbda372440a8c5559fb20d203d0f275d97289 +20c54ad02dff7d771a1dbb820e12c57f5f9f6bf4 diff --git a/backend/src/main.rs b/backend/src/main.rs index 3259094423..f86543261c 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -8,8 +8,9 @@ use anyhow::Context; use monitor::{ flush_pending_log_files_to_object_store, load_base_url, load_otel, - reload_critical_alerts_on_db_oversize, reload_delete_logs_periodically_setting, - reload_indexer_config, reload_instance_python_version_setting, reload_maven_repos_setting, + reload_cran_repo_url_setting, reload_critical_alerts_on_db_oversize, + reload_delete_logs_periodically_setting, reload_indexer_config, + reload_instance_python_version_setting, reload_maven_repos_setting, reload_maven_settings_xml_setting, reload_no_default_maven_setting, reload_nuget_config_setting, reload_powershell_repo_pat_setting, reload_powershell_repo_url_setting, reload_ruby_repos_setting, @@ -2066,6 +2067,9 @@ async fn process_notify_event( MAVEN_SETTINGS_XML_SETTING => reload_maven_settings_xml_setting(conn).await, NO_DEFAULT_MAVEN_SETTING => reload_no_default_maven_setting(conn).await, RUBY_REPOS_SETTING => reload_ruby_repos_setting(conn).await, + windmill_common::global_settings::CRAN_REPO_URL_SETTING => { + reload_cran_repo_url_setting(conn).await + } CARGO_REGISTRIES_SETTING => reload_cargo_registries_setting(conn).await, WORKSPACE_REGISTRIES_SETTING => reload_workspace_registries_setting(conn).await, HUB_API_SECRET_SETTING => reload_hub_api_secret_setting(conn).await, diff --git a/backend/src/monitor.rs b/backend/src/monitor.rs index afcec8681a..49a4a590e6 100644 --- a/backend/src/monitor.rs +++ b/backend/src/monitor.rs @@ -788,6 +788,11 @@ pub async fn initial_load( "RUBY_REPOS", windmill_worker::RUBY_REPOS.clone(), ); + pass.option_setting( + gs::CRAN_REPO_URL_SETTING, + "CRAN_REPO_URL", + windmill_worker::CRAN_REPO_URL.clone(), + ); pass.option_setting( gs::CARGO_REGISTRIES_SETTING, "CARGO_REGISTRIES", @@ -3276,6 +3281,16 @@ pub async fn reload_ruby_repos_setting(conn: &Connection) { .await; } +pub async fn reload_cran_repo_url_setting(conn: &Connection) { + reload_option_setting_with_tracing( + conn, + windmill_common::global_settings::CRAN_REPO_URL_SETTING, + "CRAN_REPO_URL", + windmill_worker::CRAN_REPO_URL.clone(), + ) + .await; +} + pub async fn reload_workspace_registries_setting(conn: &Connection) { match load_value_from_global_settings_with_conn( conn, diff --git a/backend/windmill-common/src/global_settings.rs b/backend/windmill-common/src/global_settings.rs index 8d447f2e7a..23d5d5e6a0 100644 --- a/backend/windmill-common/src/global_settings.rs +++ b/backend/windmill-common/src/global_settings.rs @@ -47,6 +47,7 @@ pub const MAVEN_REPOS_SETTING: &str = "maven_repos"; pub const MAVEN_SETTINGS_XML_SETTING: &str = "maven_settings_xml"; pub const NO_DEFAULT_MAVEN_SETTING: &str = "no_default_maven"; pub const RUBY_REPOS_SETTING: &str = "ruby_repos"; +pub const CRAN_REPO_URL_SETTING: &str = "cran_repo_url"; pub const CARGO_REGISTRIES_SETTING: &str = "cargo_registries"; pub const EXTRA_PIP_INDEX_URL_SETTING: &str = "pip_extra_index_url"; diff --git a/backend/windmill-common/src/instance_config.rs b/backend/windmill-common/src/instance_config.rs index cb4776cc93..d0923a08c6 100644 --- a/backend/windmill-common/src/instance_config.rs +++ b/backend/windmill-common/src/instance_config.rs @@ -339,6 +339,8 @@ pub struct GlobalSettings { #[serde(skip_serializing_if = "Option::is_none")] pub ruby_repos: Option, #[serde(skip_serializing_if = "Option::is_none")] + pub cran_repo_url: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub powershell_repo_url: Option, #[serde(skip_serializing_if = "Option::is_none")] pub powershell_repo_pat: Option, @@ -1216,6 +1218,7 @@ const SENSITIVE_SETTINGS: &[&str] = &[ "npmrc", "maven_repos", "ruby_repos", + "cran_repo_url", "powershell_repo_pat", "workspace_registries", "sandbox_registry_auth", diff --git a/backend/windmill-worker/src/r_executor.rs b/backend/windmill-worker/src/r_executor.rs index 4220feba91..bcf94ba603 100644 --- a/backend/windmill-worker/src/r_executor.rs +++ b/backend/windmill-worker/src/r_executor.rs @@ -10,6 +10,7 @@ use uuid::Uuid; use windmill_common::{ client::AuthedClient, error::Error, + sensitive_log_masks, utils::calculate_hash, worker::{write_file, Connection, RlangAnnotations}, }; @@ -26,11 +27,11 @@ use crate::{ }, get_proxy_envs_for_lang, get_run_proxy_envs, handle_child::{self}, - is_sandboxing_enabled, nsjail_clone_newnet, + is_sandboxing_enabled, nsjail_clone_newnet, read_ee_registry_with_workspace_override, universal_pkg_installer::{ par_install_language_dependencies_seq, DependencyGraph, InstallDeps, RequiredDependency, }, - DISABLE_NUSER, NSJAIL_AVAILABLE, NSJAIL_PATH, PATH_ENV, PROXY_ENVS, R_CACHE_DIR, + CRAN_REPO_URL, DISABLE_NUSER, NSJAIL_AVAILABLE, NSJAIL_PATH, PATH_ENV, PROXY_ENVS, R_CACHE_DIR, TRACING_PROXY_CA_CERT_PATH, WIN_ENVS, }; use windmill_common::scripts::ScriptLang; @@ -47,6 +48,38 @@ lazy_static::lazy_static! { }; } +const DEFAULT_CRAN_REPO_URL: &str = "https://cloud.r-project.org"; + +/// The CRAN mirror configured for this workspace (or instance), if any. +/// +/// renv echoes the full repository URL when a download fails, so credentials in it are +/// registered with the job's log masks before any R process sees the URL. +async fn configured_cran_repo_url(job_id: &Uuid, w_id: &str, conn: &Connection) -> Option { + let repo = read_ee_registry_with_workspace_override( + CRAN_REPO_URL.read().await.clone(), + "cran_repo_url", + "CRAN repository url", + job_id, + w_id, + conn, + ) + .await + .map(|s| s.trim().to_string())?; + if let Ok(parsed) = url::Url::parse(&repo) { + if let Some(password) = parsed.password() { + sensitive_log_masks::register_secret_for_job( + *job_id, + &format!("{}:{}", parsed.username(), password), + ); + sensitive_log_masks::register_secret_for_job(*job_id, password); + } else if !parsed.username().is_empty() { + // A bare userinfo is commonly a token. + sensitive_log_masks::register_secret_for_job(*job_id, parsed.username()); + } + } + Some(repo) +} + const NSJAIL_CONFIG_RUN_R_CONTENT: &str = include_str!("../nsjail/run.r.config.proto"); const NSJAIL_CONFIG_INSTALL_R_CONTENT: &str = include_str!("../nsjail/install.r.config.proto"); @@ -208,8 +241,14 @@ pub async fn resolve<'a>( } } - // Check cache - let req_hash = format!("r-{}", calculate_hash(&packages)); + let custom_repo = configured_cran_repo_url(job_id, w_id, conn).await; + + // A mirror resolves its own versions, so it must not share a cache entry with CRAN. + let req_hash = match &custom_repo { + Some(repo) => format!("r-{}", calculate_hash(&format!("{packages}\n#repo:{repo}"))), + None => format!("r-{}", calculate_hash(&packages)), + }; + let repo_url = custom_repo.as_deref().unwrap_or(DEFAULT_CRAN_REPO_URL); if let Some(db) = conn.as_sql() { if let Some(cached) = sqlx::query_scalar!( "SELECT lockfile FROM pip_resolution_cache WHERE hash = $1", @@ -235,7 +274,7 @@ pub async fn resolve<'a>( // Disable renv's own package cache — Windmill manages its own install cache. let resolve_script = format!( r#"options( - repos = c(CRAN = "https://cloud.r-project.org"), + repos = c(CRAN = "{repo_url}"), renv.verbose = {verbose_r}, renv.config.cache.enabled = FALSE, renv.config.restart.enabled = FALSE, @@ -247,6 +286,7 @@ suppressMessages(renv::install(prompt = FALSE)) suppressMessages(renv::snapshot(type = "implicit", prompt = FALSE)) "#, verbose_r = if verbose { "TRUE" } else { "FALSE" }, + repo_url = escape_r_double_quoted(repo_url), ); let mut file = File::create(format!("{}/resolve.r", job_dir)).await?; @@ -290,6 +330,9 @@ suppressMessages(renv::snapshot(type = "implicit", prompt = FALSE)) let mut lock_file = File::open(&lock_path).await?; let mut lock = String::new(); lock_file.read_to_string(&mut lock).await?; + if custom_repo.is_some() { + lock = strip_repo_credentials(lock); + } // Cache the lockfile if let Some(db) = conn.as_sql() { @@ -315,6 +358,41 @@ suppressMessages(renv::snapshot(type = "implicit", prompt = FALSE)) Ok(lock) } +/// `renv::snapshot` records the `repos` option in the lockfile, which is stored as the +/// script's lock and readable by anyone who can see the script: credentials in the mirror +/// URL must not reach it. `install` takes the credentialed URL from the setting instead. +fn strip_repo_credentials(lock: String) -> String { + let Ok(mut json) = serde_json::from_str::(&lock) else { + return lock; + }; + let mut changed = false; + if let Some(repos) = json + .get_mut("R") + .and_then(|r| r.get_mut("Repositories")) + .and_then(|r| r.as_array_mut()) + { + for repo in repos { + let Some(url) = repo.get("URL").and_then(|u| u.as_str()) else { + continue; + }; + let Ok(mut parsed) = url::Url::parse(url) else { + continue; + }; + if parsed.username().is_empty() && parsed.password().is_none() { + continue; + } + let _ = parsed.set_username(""); + let _ = parsed.set_password(None); + repo["URL"] = serde_json::Value::String(parsed.to_string()); + changed = true; + } + } + if !changed { + return lock; + } + serde_json::to_string_pretty(&json).unwrap_or(lock) +} + struct RenvPackage { name: String, version: String, @@ -401,7 +479,7 @@ fn parse_renv_lock(lockfile: &str) -> Result, Error> { let repo_url = repo_urls .get(repo_name) .cloned() - .unwrap_or_else(|| "https://cloud.r-project.org".to_string()); + .unwrap_or_else(|| DEFAULT_CRAN_REPO_URL.to_string()); let mut dependencies = vec![]; if let Some(imports) = pkg.get("Imports").and_then(|v| v.as_array()) { @@ -440,11 +518,15 @@ async fn install<'a>( return Ok(lib_path); } + // The configured mirror wins over the URL recorded in the lockfile, so a lockfile + // resolved against CRAN still installs on an instance that can only reach the mirror. + let custom_repo = + configured_cran_repo_url(&args.job.id, &args.job.workspace_id, args.conn).await; + #[derive(Clone, Debug)] struct RPackagePayload { pkg: String, version: String, - #[allow(dead_code)] repo_url: String, } @@ -467,7 +549,9 @@ async fn install<'a>( custom_payload: RPackagePayload { pkg: renv_pkg.name.clone(), version: renv_pkg.version.clone(), - repo_url: renv_pkg.repo_url.clone(), + repo_url: custom_repo + .clone() + .unwrap_or_else(|| renv_pkg.repo_url.clone()), }, }, renv_pkg.dependencies.clone(), @@ -535,12 +619,13 @@ async fn install<'a>( .args(&[ "-e", &format!( - r#"options(renv.verbose = {verbose_r}, renv.config.install.verbose = {install_verbose_r}, renv.config.restart.enabled = FALSE); renv::install("{pkg}@{version}", library = "{lib}", dependencies = FALSE)"#, + r#"options(repos = c(CRAN = "{repo}"), renv.verbose = {verbose_r}, renv.config.install.verbose = {install_verbose_r}, renv.config.restart.enabled = FALSE); renv::install("{pkg}@{version}", library = "{lib}", dependencies = FALSE)"#, verbose_r = verbose_r, install_verbose_r = install_verbose_r, pkg = escape_r_double_quoted(&dependency.custom_payload.pkg), version = escape_r_double_quoted(&dependency.custom_payload.version), lib = escape_r_double_quoted(&install_lib), + repo = escape_r_double_quoted(&dependency.custom_payload.repo_url), ), // install.packages fallback (no version pinning): // &format!( @@ -791,7 +876,9 @@ tryCatch({{ #[cfg(test)] mod tests { - use super::{escape_r_double_quoted, parse_renv_lock, validate_renv_package}; + use super::{ + escape_r_double_quoted, parse_renv_lock, strip_repo_credentials, validate_renv_package, + }; #[test] fn test_validate_renv_package_accepts_real() { @@ -849,4 +936,16 @@ mod tests { assert_eq!(pkgs.len(), 1); assert_eq!(pkgs[0].name, "ggplot2"); } + + #[test] + fn test_strip_repo_credentials() { + let lock = r#"{"R":{"Version":"4.4.1","Repositories":[{"Name":"CRAN","URL":"https://u:s3cret@nexus.example.com/repository/cran"}]},"Packages":{}}"#; + let stripped = strip_repo_credentials(lock.to_string()); + assert!(!stripped.contains("s3cret") && !stripped.contains("u:")); + assert!(stripped.contains("https://nexus.example.com/repository/cran")); + + let clean = + r#"{"R":{"Repositories":[{"Name":"CRAN","URL":"https://cloud.r-project.org"}]}}"#; + assert_eq!(strip_repo_credentials(clean.to_string()), clean); + } } diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index cfddc5aa0c..eb0d6df8c5 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -711,6 +711,7 @@ lazy_static::lazy_static! { .and_then(|x| x.parse::().ok()) .unwrap_or(false)); pub static ref RUBY_REPOS: Arc>>> = Arc::new(RwLock::new(None)); + pub static ref CRAN_REPO_URL: Arc>> = Arc::new(RwLock::new(None)); pub static ref CARGO_REGISTRIES: Arc>> = Arc::new(RwLock::new(None)); pub static ref WORKSPACE_REGISTRIES: Arc>> = Arc::new(RwLock::new(None)); diff --git a/frontend/src/lib/components/instanceSettings.ts b/frontend/src/lib/components/instanceSettings.ts index 14fa956dd5..4a647d7103 100644 --- a/frontend/src/lib/components/instanceSettings.ts +++ b/frontend/src/lib/components/instanceSettings.ts @@ -1170,6 +1170,16 @@ export const settings: Record = { storage: 'setting', ee_only: '' }, + { + label: 'CRAN repository URL', + description: + 'CRAN mirror R scripts resolve and install packages from, instead of https://cloud.r-project.org (e.g. a Nexus or Posit Package Manager proxy). Also settable with the CRAN_REPO_URL environment variable', + key: 'cran_repo_url', + fieldType: 'password', + placeholder: 'https://user:password@nexus.foo.com/repository/cran/', + storage: 'setting', + ee_only: '' + }, { label: 'Cargo registries', description: 'Write a .cargo/config.toml to set custom Cargo registries and credentials', From 0a4583b661cf36a30c1059c36adaf45b5b6e6765 Mon Sep 17 00:00:00 2001 From: Guilhem Date: Mon, 30 Nov 2026 11:03:40 +0100 Subject: [PATCH 089/102] fix: keep the cli login form reachable under a long admin reliance notice (#12761) * fix: keep the cli login form reachable under a long admin reliance notice * fix: wrap admin reliance folder rows on narrow screens * feat: collapse the admin reliance folder list behind its count --- .../src/lib/components/CenteredModal.svelte | 4 +- .../settings/AdminRelianceNotice.svelte | 138 +++++++++--------- 2 files changed, 75 insertions(+), 67 deletions(-) diff --git a/frontend/src/lib/components/CenteredModal.svelte b/frontend/src/lib/components/CenteredModal.svelte index 9c732eb366..4f198276ad 100644 --- a/frontend/src/lib/components/CenteredModal.svelte +++ b/frontend/src/lib/components/CenteredModal.svelte @@ -49,13 +49,15 @@ : 'h-screen'} p-4 relative bg-surface-secondary {containOverflow ? 'overflow-hidden' : 'overflow-auto'}" - class:items-center={centerVertically} style="scrollbar-gutter: stable both-edges;" bind:clientHeight={height} > +
1080 ? 'pt-28' : 'pt-12' )} diff --git a/frontend/src/lib/components/settings/AdminRelianceNotice.svelte b/frontend/src/lib/components/settings/AdminRelianceNotice.svelte index be46a7f3a8..5840bfe5b3 100644 --- a/frontend/src/lib/components/settings/AdminRelianceNotice.svelte +++ b/frontend/src/lib/components/settings/AdminRelianceNotice.svelte @@ -1,6 +1,7 @@ {#if reliance.length > 0} @@ -72,73 +78,73 @@ Workspace admin rights are off, so the token, and the jobs it starts, act as a regular member. Your admin role gives you the access below; the token will not have it.

- {#each reliance as r (r.workspace_id)} -
- {#if many} - In {r.workspace_id} - {/if} - {#if r.folders_total > 0} -
- - {r.folders_total === 1 ? 'A folder' : `${r.folders_total} folders`} - {r.folders_write ? 'you cannot write to:' : 'you are not a member of:'} - -
- {#each r.folders as folder (folder)} - - f/{folder} - - - {/each} - {#if r.folders.length > 1} - - - - {/if} + +
+ {#each reliance as r (r.workspace_id)} +
+ {#if many} + In {r.workspace_id} + {/if} + {#if r.folders_total > 0} + +
+ {#each r.folders as folder (folder)} + + f/{folder} + + + {/each} + {#if r.folders.length > 1} + + + + {/if} +
+
+ {/if} + {#if r.assets.length > 0} +
+ What the token's scripts and flows use, outside your own access: +
    + {#each r.assets as a (`${a.runnable_kind}:${a.runnable_path}:${a.kind}:${a.path}`)} +
  • + {a.runnable_path} uses {a.kind} {a.path} +
  • + {/each} +
-
- {/if} - {#if r.assets.length > 0} -
- What the token's scripts and flows use, outside your own access: -
    - {#each r.assets as a (`${a.runnable_kind}:${a.runnable_path}:${a.kind}:${a.path}`)} -
  • - {a.runnable_path} uses {a.kind} {a.path} -
  • - {/each} -
-
- {/if} - {#if r.other_users_items > 0} - - {r.other_users_items === 1 - ? "1 item in another user's space is not shared with you. Ask its owner to share it, or move it into a folder." - : `${r.other_users_items} items in other users' spaces are not shared with you. Ask their owners to share them, or move them into a folder.`} - - {/if} - {#if r.admin_only.length > 0} - - It will be refused what only an admin can do: {r.admin_only.join('; ')}. Turn on - Workspace admin rights if it needs that. - - {/if} -
- {/each} + {/if} + {#if r.other_users_items > 0} + + {r.other_users_items === 1 + ? "1 item in another user's space is not shared with you. Ask its owner to share it, or move it into a folder." + : `${r.other_users_items} items in other users' spaces are not shared with you. Ask their owners to share them, or move them into a folder.`} + + {/if} + {#if r.admin_only.length > 0} + + It will be refused what only an admin can do: {r.admin_only.join('; ')}. Turn on + Workspace admin rights if it needs that. + + {/if} +
+ {/each} +

Variables, and resources a script reads from a path built at runtime, are not checked.

From 8f155dd525abc351c752d5b14b979378181a2047 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Nov 2026 10:32:47 +0000 Subject: [PATCH 090/102] chore(main): release 1.893.0 (#12760) * chore(main): release 1.893.0 * Apply automatic changes --------- Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++ backend/Cargo.lock | 164 +++++++++--------- backend/Cargo.toml | 4 +- .../parsers/windmill-parser-wasm/Cargo.lock | 48 ++--- .../parsers/windmill-parser-wasm/Cargo.toml | 2 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- chat-sdk/package-lock.json | 4 +- chat-sdk/package.json | 2 +- cli/src/core/constants.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 2 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- windmill-yaml-validator/package-lock.json | 4 +- windmill-yaml-validator/package.json | 2 +- 22 files changed, 140 insertions(+), 130 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7e5b0c691a..540648b923 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.892.0" + ".": "1.893.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index ee0fecc1c4..5917a8b10f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.893.0](https://github.com/windmill-labs/windmill/compare/v1.892.0...v1.893.0) (2026-11-30) + + +### Features + +* configurable CRAN repository url for R scripts ([#12759](https://github.com/windmill-labs/windmill/issues/12759)) ([5b6ee10](https://github.com/windmill-labs/windmill/commit/5b6ee1001c0092576bd1e4de5c8bfdca9698aeca)) + + +### Bug Fixes + +* keep the cli login form reachable under a long admin reliance notice ([#12761](https://github.com/windmill-labs/windmill/issues/12761)) ([0a4583b](https://github.com/windmill-labs/windmill/commit/0a4583b661cf36a30c1059c36adaf45b5b6e6765)) + ## [1.892.0](https://github.com/windmill-labs/windmill/compare/v1.891.0...v1.892.0) (2026-11-30) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index c5dec119c3..d9dd335d50 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -5900,14 +5900,12 @@ dependencies = [ [[package]] name = "generator" -version = "0.8.12" +version = "0.8.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" +checksum = "66831419d9074e766421508dff218bf79d99616bc5e56e34599d3b433714a4a4" dependencies = [ - "cc", "libc", "log", - "rustversion", "windows-core 0.100.0", "windows-sys 0.61.2", ] @@ -15657,7 +15655,7 @@ dependencies = [ [[package]] name = "windmill" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-nats", @@ -15747,7 +15745,7 @@ dependencies = [ [[package]] name = "windmill-ai" -version = "1.892.0" +version = "1.893.0" dependencies = [ "async-stream", "async-trait", @@ -15782,7 +15780,7 @@ dependencies = [ [[package]] name = "windmill-alerting" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -15795,7 +15793,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "argon2", @@ -15937,7 +15935,7 @@ dependencies = [ [[package]] name = "windmill-api-agent-workers" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -15961,7 +15959,7 @@ dependencies = [ [[package]] name = "windmill-api-assets" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -15978,7 +15976,7 @@ dependencies = [ [[package]] name = "windmill-api-auth" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16006,7 +16004,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.892.0" +version = "1.893.0" dependencies = [ "reqwest 0.12.28", "serde", @@ -16016,7 +16014,7 @@ dependencies = [ [[package]] name = "windmill-api-configs" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16033,7 +16031,7 @@ dependencies = [ [[package]] name = "windmill-api-debug" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "base64 0.22.1", @@ -16055,7 +16053,7 @@ dependencies = [ [[package]] name = "windmill-api-embeddings" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16078,7 +16076,7 @@ dependencies = [ [[package]] name = "windmill-api-flow-conversations" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16094,7 +16092,7 @@ dependencies = [ [[package]] name = "windmill-api-flows" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16116,7 +16114,7 @@ dependencies = [ [[package]] name = "windmill-api-groups" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16138,7 +16136,7 @@ dependencies = [ [[package]] name = "windmill-api-inputs" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16152,7 +16150,7 @@ dependencies = [ [[package]] name = "windmill-api-integration-tests" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-nats", @@ -16188,7 +16186,7 @@ dependencies = [ [[package]] name = "windmill-api-jobs" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16214,7 +16212,7 @@ dependencies = [ [[package]] name = "windmill-api-npm-proxy" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16242,7 +16240,7 @@ dependencies = [ [[package]] name = "windmill-api-openapi" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16264,7 +16262,7 @@ dependencies = [ [[package]] name = "windmill-api-schedule" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16283,7 +16281,7 @@ dependencies = [ [[package]] name = "windmill-api-scripts" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16325,7 +16323,7 @@ dependencies = [ [[package]] name = "windmill-api-settings" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16356,7 +16354,7 @@ dependencies = [ [[package]] name = "windmill-api-sse" -version = "1.892.0" +version = "1.893.0" dependencies = [ "lazy_static", "serde", @@ -16368,7 +16366,7 @@ dependencies = [ [[package]] name = "windmill-api-users" -version = "1.892.0" +version = "1.893.0" dependencies = [ "argon2", "axum", @@ -16396,7 +16394,7 @@ dependencies = [ [[package]] name = "windmill-api-workers" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16411,7 +16409,7 @@ dependencies = [ [[package]] name = "windmill-api-workspaces" -version = "1.892.0" +version = "1.893.0" dependencies = [ "axum", "chrono", @@ -16450,7 +16448,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.892.0" +version = "1.893.0" dependencies = [ "chrono", "lazy_static", @@ -16465,7 +16463,7 @@ dependencies = [ [[package]] name = "windmill-autoscaling" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "axum", @@ -16484,7 +16482,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.892.0" +version = "1.893.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -16605,7 +16603,7 @@ dependencies = [ [[package]] name = "windmill-dep-map" -version = "1.892.0" +version = "1.893.0" dependencies = [ "chrono", "futures", @@ -16625,7 +16623,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.892.0" +version = "1.893.0" dependencies = [ "regex", "serde", @@ -16642,7 +16640,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "astral-tokio-tar", @@ -16669,7 +16667,7 @@ dependencies = [ [[package]] name = "windmill-jseval" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "futures", @@ -16686,7 +16684,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.892.0" +version = "1.893.0" dependencies = [ "itertools 0.14.0", "lazy_static", @@ -16702,7 +16700,7 @@ dependencies = [ [[package]] name = "windmill-mcp" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -16724,7 +16722,7 @@ dependencies = [ [[package]] name = "windmill-native-triggers" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -16756,7 +16754,7 @@ dependencies = [ [[package]] name = "windmill-oauth" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "arc-swap", @@ -16781,7 +16779,7 @@ dependencies = [ [[package]] name = "windmill-object-store" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-stream", @@ -16817,7 +16815,7 @@ dependencies = [ [[package]] name = "windmill-operator" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "futures", @@ -16836,7 +16834,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.892.0" +version = "1.893.0" dependencies = [ "convert_case 0.6.0", "serde", @@ -16845,7 +16843,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -16857,7 +16855,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -16869,7 +16867,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "gosyn", @@ -16881,7 +16879,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -16893,7 +16891,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -16905,7 +16903,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "nu-parser", @@ -16916,7 +16914,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16927,7 +16925,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16939,7 +16937,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -16950,7 +16948,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-recursion", @@ -16973,7 +16971,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -16985,7 +16983,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -16999,7 +16997,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -17016,7 +17014,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -17029,7 +17027,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde", @@ -17041,7 +17039,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -17059,7 +17057,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -17075,7 +17073,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -17092,7 +17090,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -17106,7 +17104,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-recursion", @@ -17144,7 +17142,7 @@ dependencies = [ [[package]] name = "windmill-runtime-nativets" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "const_format", @@ -17182,7 +17180,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.892.0" +version = "1.893.0" dependencies = [ "getrandom 0.3.4", "wasm-bindgen", @@ -17193,7 +17191,7 @@ dependencies = [ [[package]] name = "windmill-store" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-recursion", @@ -17228,7 +17226,7 @@ dependencies = [ [[package]] name = "windmill-test-utils" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17252,7 +17250,7 @@ dependencies = [ [[package]] name = "windmill-trigger" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17285,7 +17283,7 @@ dependencies = [ [[package]] name = "windmill-trigger-amqp" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17312,7 +17310,7 @@ dependencies = [ [[package]] name = "windmill-trigger-azure" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17345,7 +17343,7 @@ dependencies = [ [[package]] name = "windmill-trigger-email" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17365,7 +17363,7 @@ dependencies = [ [[package]] name = "windmill-trigger-gcp" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17399,7 +17397,7 @@ dependencies = [ [[package]] name = "windmill-trigger-http" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17436,7 +17434,7 @@ dependencies = [ [[package]] name = "windmill-trigger-kafka" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17459,7 +17457,7 @@ dependencies = [ [[package]] name = "windmill-trigger-mqtt" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17483,7 +17481,7 @@ dependencies = [ [[package]] name = "windmill-trigger-nats" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-nats", @@ -17507,7 +17505,7 @@ dependencies = [ [[package]] name = "windmill-trigger-postgres" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17542,7 +17540,7 @@ dependencies = [ [[package]] name = "windmill-trigger-sqs" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17570,7 +17568,7 @@ dependencies = [ [[package]] name = "windmill-trigger-websocket" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-trait", @@ -17596,7 +17594,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "bitflags 2.13.2", @@ -17616,7 +17614,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-once-cell", @@ -17734,7 +17732,7 @@ dependencies = [ [[package]] name = "windmill-worker-volumes" -version = "1.892.0" +version = "1.893.0" dependencies = [ "bytes", "fs4", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index f59c31c514..ac146a57d7 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.892.0" +version = "1.893.0" authors.workspace = true edition.workspace = true @@ -88,7 +88,7 @@ members = [ exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"] [workspace.package] -version = "1.892.0" +version = "1.893.0" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock index 57f7f8d18b..d346b750b8 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.lock +++ b/backend/parsers/windmill-parser-wasm/Cargo.lock @@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill-common" -version = "1.892.0" +version = "1.893.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -6430,7 +6430,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.892.0" +version = "1.893.0" dependencies = [ "proc-macro2", "quote", @@ -6442,7 +6442,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.892.0" +version = "1.893.0" dependencies = [ "convert_case", "serde", @@ -6451,7 +6451,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6463,7 +6463,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -6475,7 +6475,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "gosyn", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6499,7 +6499,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -6511,7 +6511,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "nu-parser", @@ -6522,7 +6522,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6533,7 +6533,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6545,7 +6545,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6556,7 +6556,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "async-recursion", @@ -6579,7 +6579,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde_json", @@ -6591,7 +6591,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6605,7 +6605,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "convert_case", @@ -6622,7 +6622,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6635,7 +6635,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde", @@ -6647,7 +6647,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6665,7 +6665,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -6681,7 +6681,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6698,7 +6698,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "getrandom 0.2.17", @@ -6730,7 +6730,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "lazy_static", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.892.0" +version = "1.893.0" dependencies = [ "anyhow", "bitflags", diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml index 5a7ccda856..24a94d39c4 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.toml +++ b/backend/parsers/windmill-parser-wasm/Cargo.toml @@ -12,7 +12,7 @@ resolver = "2" members = ["."] [workspace.package] -version = "1.892.0" +version = "1.893.0" edition = "2021" authors = ["Ruben Fiszel "] diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index c6fa4ae109..18207c9411 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.892.0 + version: 1.893.0 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index accf4d4274..6cae2922c3 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.892.0"; +export const VERSION = "v1.893.0"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json index 03531882ec..55da7fa1ba 100644 --- a/chat-sdk/package-lock.json +++ b/chat-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/chat-sdk", - "version": "1.892.0", + "version": "1.893.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/chat-sdk", - "version": "1.892.0", + "version": "1.893.0", "license": "Apache-2.0", "devDependencies": { "@ai-sdk/react": "^4.0.102", diff --git a/chat-sdk/package.json b/chat-sdk/package.json index 360f9b5220..d1778a85cf 100644 --- a/chat-sdk/package.json +++ b/chat-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@windmill-labs/chat-sdk", "description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app", - "version": "1.892.0", + "version": "1.893.0", "author": "Ruben Fiszel", "license": "Apache-2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme", diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts index ecfacb77b2..a307a86f3c 100644 --- a/cli/src/core/constants.ts +++ b/cli/src/core/constants.ts @@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork"; // (e.g. utils.ts) can read it without importing main.ts and creating a circular // dependency (main → workspace → utils → main) that triggers a TDZ. // Re-exported from main.ts for backwards compatibility. -export const VERSION = "1.892.0"; +export const VERSION = "1.893.0"; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 2e5ce88149..57fe9d3c98 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/components", - "version": "1.892.0", + "version": "1.893.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/components", - "version": "1.892.0", + "version": "1.893.0", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/frontend/package.json b/frontend/package.json index a4ef7ae9dd..8e1dd9f5e6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@windmill-labs/components", - "version": "1.892.0", + "version": "1.893.0", "scripts": { "dev": "vite dev", "dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev", diff --git a/lsp/Pipfile b/lsp/Pipfile index 6aa4840985..53771680f1 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.892.0" +wmill = ">=1.893.0" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index 250b86061c..2ec61cedba 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: '3.0.3' info: - version: 1.892.0 + version: 1.893.0 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index 0308176882..4b47fbd14d 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. - ModuleVersion = '1.892.0' + ModuleVersion = '1.893.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index e906d69750..47a39b41cc 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.892.0" +version = "1.893.0" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index c979a11988..cf2938c5fd 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.892.0", + "version": "1.893.0", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts", "./taskParams.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index 6af2bb5bbe..8842aa9edc 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.892.0", + "version": "1.893.0", "author": "Ruben Fiszel", "license": "Apache 2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme", diff --git a/version.txt b/version.txt index 630f528c9a..5fd1b25d68 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.892.0 +1.893.0 diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json index 8067f9e36e..f87665bf4d 100644 --- a/windmill-yaml-validator/package-lock.json +++ b/windmill-yaml-validator/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-yaml-validator", - "version": "1.892.0", + "version": "1.893.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-yaml-validator", - "version": "1.892.0", + "version": "1.893.0", "license": "Apache 2.0", "dependencies": { "@stoplight/yaml": "^4.3.0", diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json index b6350b4104..b57736c3a8 100644 --- a/windmill-yaml-validator/package.json +++ b/windmill-yaml-validator/package.json @@ -1,6 +1,6 @@ { "name": "windmill-yaml-validator", - "version": "1.892.0", + "version": "1.893.0", "description": "YAML validator for Windmill flow, schedule, and trigger files", "main": "dist/index.js", "types": "dist/index.d.ts", From d48296808effa9cb259adc891e9a6f8f4ee3b0ca Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:48:30 +0100 Subject: [PATCH 091/102] fix: give AI agent tools run locally a job span and log fields (#12684) --- backend/windmill-worker/src/ai/tools.rs | 59 ++++++++++++++++--------- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/backend/windmill-worker/src/ai/tools.rs b/backend/windmill-worker/src/ai/tools.rs index efa37c3867..9be8630868 100644 --- a/backend/windmill-worker/src/ai/tools.rs +++ b/backend/windmill-worker/src/ai/tools.rs @@ -7,6 +7,7 @@ use crate::ai::utils::{ }; use crate::common::{get_root_job_id, OccupancyMetrics}; use crate::result_processor::handle_non_flow_job_error; +use crate::worker::{create_span_with_name, log_context_for_job, record_job_span_status}; use crate::worker_flow::{ evaluate_input_transform, raw_script_to_payload, resolve_flow_step_tag, script_to_payload, JobPayloadWithTag, @@ -22,6 +23,7 @@ use std::{ sync::Arc, time::{Duration, Instant}, }; +use tracing::Instrument; use uuid::Uuid; use windmill_ai::{ai_types::OpenAIToolCall, query_builder::StreamEventSink, types::*}; use windmill_common::jobs::JobPayload; @@ -1147,27 +1149,44 @@ fn spawn_local_tool( ); let job_dir = create_job_dir(&worker_dir_spawn, tool_job.id).await; - handle_queued_job( - tool_job.clone(), - None, - None, - None, - None, - &conn_spawn, - &client_spawn, - &hostname_spawn, + let span = create_span_with_name( + &tool_job, &worker_name_spawn, - &worker_dir_spawn, - &job_dir, - None, - &base_internal_url_spawn, - job_completed_tx, - &mut occupancy_metrics_spawn, - &mut killpill_rx_spawn, - None, - None, - #[cfg(feature = "benchmark")] - &mut bench_spawn, + Some(&hostname_spawn), + "job", + ); + let log_ctx = + log_context_for_job(&tool_job, &worker_name_spawn, Some(&hostname_spawn)); + windmill_common::log_context::with_log_context( + log_ctx, + async { + let result = Box::pin(handle_queued_job( + tool_job.clone(), + None, + None, + None, + None, + &conn_spawn, + &client_spawn, + &hostname_spawn, + &worker_name_spawn, + &worker_dir_spawn, + &job_dir, + None, + &base_internal_url_spawn, + job_completed_tx, + &mut occupancy_metrics_spawn, + &mut killpill_rx_spawn, + None, + None, + #[cfg(feature = "benchmark")] + &mut bench_spawn, + )) + .await; + record_job_span_status(&result); + result + } + .instrument(span), ) .await } From a57f2df2c8b2e87d4ea329ab48ad2a0943b3d53c Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Nov 2026 12:01:24 +0000 Subject: [PATCH 092/102] fix: resolve $var: references in custom ai resource headers (#12764) Co-authored-by: Claude Opus 5.5 --- .../tests/ai_routes.rs | 66 +++++++++++++++++++ backend/windmill-api/src/ai.rs | 7 +- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/backend/windmill-api-integration-tests/tests/ai_routes.rs b/backend/windmill-api-integration-tests/tests/ai_routes.rs index c7f3900226..fb03464e97 100644 --- a/backend/windmill-api-integration-tests/tests/ai_routes.rs +++ b/backend/windmill-api-integration-tests/tests/ai_routes.rs @@ -409,3 +409,69 @@ async fn test_ai_proxy_x_resource_value(db: Pool) -> anyhow::Result<() Ok(()) } + +/// A `$var:` reference in a resource's custom headers reaches the upstream resolved. +#[sqlx::test(migrations = "../migrations", fixtures("base"))] +async fn test_ai_proxy_resolves_header_var_refs(db: Pool) -> anyhow::Result<()> { + use axum::{http::HeaderMap, http::StatusCode, routing::post, Json, Router}; + + initialize_tracing().await; + std::env::set_var("ALLOW_PRIVATE_AI_BASE_URLS", "true"); + let server = ApiServer::start(db.clone()).await?; + let port = server.addr.port(); + + let app = Router::new().fallback(post(|headers: HeaderMap| async move { + if headers + .get("x-subscription-key") + .and_then(|v| v.to_str().ok()) + == Some("sub-key") + { + Ok(Json(json!({ + "id": "chatcmpl-test", + "object": "chat.completion", + "choices": [{"message": {"role": "assistant", "content": "hello"}}] + }))) + } else { + Err(StatusCode::UNAUTHORIZED) + } + })); + let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await?; + let base_url = format!("http://127.0.0.1:{}/v1", listener.local_addr()?.port()); + tokio::spawn(async move { axum::serve(listener, app).await.unwrap() }); + + sqlx::query( + "INSERT INTO variable (workspace_id, path, value, is_secret, description, extra_perms) \ + VALUES ('test-workspace', 'f/ai/sub_key', 'sub-key', false, '', '{}'::jsonb)", + ) + .execute(&db) + .await?; + + let value = json!({ + "api_key": "sk-test", + "base_url": base_url, + "headers": { "X-Subscription-Key": "$var:f/ai/sub_key" } + }) + .to_string(); + let encoded: String = value.bytes().map(|b| format!("%{b:02X}")).collect(); + let resp = authed( + client() + .post(format!( + "http://localhost:{port}/api/w/test-workspace/ai/proxy/chat/completions" + )) + .header("X-Provider", "customai") + .header("X-Resource-Value", encoded) + .json(&json!({ + "model": "gpt-4", + "messages": [{"role": "user", "content": "hi"}] + })), + ) + .send() + .await?; + assert_2xx( + resp.status().as_u16(), + &resp.text().await?, + "a $var: reference in a custom header must be resolved", + ); + + Ok(()) +} diff --git a/backend/windmill-api/src/ai.rs b/backend/windmill-api/src/ai.rs index 996331cb9e..e5a79fc896 100644 --- a/backend/windmill-api/src/ai.rs +++ b/backend/windmill-api/src/ai.rs @@ -439,6 +439,11 @@ async fn resolve_provider_credentials( } else { resource.platform }; + let mut custom_headers = HashMap::with_capacity(resource.headers.len()); + for (name, value) in resource.headers { + let value = resolve_var(value, db, w_id, user_db.as_ref(), authed).await?; + custom_headers.insert(name, value); + } Ok(ProviderCredentials { provider: provider.clone(), @@ -455,7 +460,7 @@ async fn resolve_provider_credentials( anthropic_federation: None, vertex_workload_identity, platform, - custom_headers: resource.headers, + custom_headers, }) } AIResource::AnthropicFederated(resource) => { From e3d5b043504e6292967bcac479703d54a7d6a0ee Mon Sep 17 00:00:00 2001 From: Guilhem Date: Mon, 30 Nov 2026 15:21:06 +0100 Subject: [PATCH 093/102] fix: show a running job with a fading play ring on home and the runs page (#12671) * fix: show a play icon, not a spinner, for running items on home Co-Authored-By: Claude Opus 5.5 * fix: fade the ring of a running job's play icon on home and the runs page Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .../src/lib/components/home/RecentRunRow.svelte | 17 ++++------------- .../lib/components/runs/JobStatusIcon.svelte | 4 ++-- .../components/runs/RunningStatusIcon.svelte | 13 +++++++++++++ frontend/tailwind.config.cjs | 7 ++++++- 4 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 frontend/src/lib/components/runs/RunningStatusIcon.svelte diff --git a/frontend/src/lib/components/home/RecentRunRow.svelte b/frontend/src/lib/components/home/RecentRunRow.svelte index da716689c7..14865e6819 100644 --- a/frontend/src/lib/components/home/RecentRunRow.svelte +++ b/frontend/src/lib/components/home/RecentRunRow.svelte @@ -1,16 +1,9 @@ + + + diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs index 5c623fbadc..3feb32f1a4 100644 --- a/frontend/tailwind.config.cjs +++ b/frontend/tailwind.config.cjs @@ -552,7 +552,8 @@ const config = { 'spin-counter-clockwise': 'spin-counter-clockwise 1s linear infinite', 'zoom-in': 'zoom-in 0.25s ease-in-out', 'fade-out': 'fade-out 1s ease-in-out', - shake: 'shake 0.2s linear both' + shake: 'shake 0.2s linear both', + 'ring-fade': 'ring-fade 1.6s ease-in-out infinite' }, keyframes: { 'spin-counter-clockwise': { @@ -569,6 +570,10 @@ const config = { 'fade-out': { '0%': { opacity: '1' }, '100%': { opacity: '0' } + }, + 'ring-fade': { + '0%, 100%': { opacity: '1' }, + '50%': { opacity: '0.2' } } } } From c3b145b5b6f97833a4b7668104a497f2bbc313a7 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Mon, 30 Nov 2026 17:26:33 +0100 Subject: [PATCH 094/102] chore: build frontend from utils-internal source, move npm package (#12765) * chore: publish utils-internal under the @windmill-labs org Co-Authored-By: Claude Opus 5.5 * chore: publish utils-internal on release with trusted publishing Co-Authored-By: Claude Opus 5.5 * chore: build the frontend from utils-internal source Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .github/workflows/frontend-check.yml | 2 + .github/workflows/npm_on_release.yml | 23 +++++++ Dockerfile | 2 + cli/windmill-utils-internal/README.md | 8 ++- cli/windmill-utils-internal/package-lock.json | 4 +- cli/windmill-utils-internal/package.json | 12 +++- cli/windmill-utils-internal/src/index.ts | 2 +- docker/RHEL8/Dockerfile | 2 + docker/RHEL9/Dockerfile | 2 + frontend/package-lock.json | 7 --- frontend/package.json | 1 - frontend/scripts/fix-svelte-module-imports.js | 63 +++++++++++++------ .../lib/components/CompareWorkspaces.svelte | 2 +- .../lib/components/OnBehalfOfSelector.svelte | 2 +- .../display/dbtable/InsertRow.svelte | 2 +- frontend/src/lib/infer.ts | 2 +- frontend/src/lib/utils_workspace_deploy.ts | 2 +- frontend/svelte.config.js | 5 +- frontend/vite.config.js | 6 +- 19 files changed, 105 insertions(+), 44 deletions(-) diff --git a/.github/workflows/frontend-check.yml b/.github/workflows/frontend-check.yml index 0a70c8dd05..7574096698 100644 --- a/.github/workflows/frontend-check.yml +++ b/.github/workflows/frontend-check.yml @@ -11,6 +11,8 @@ on: - "frontend/**" # The flow chat compiles the chat SDK's source in (svelte.config.js alias). - "chat-sdk/src/**" + # Also compiled in through an alias. + - "cli/windmill-utils-internal/src/**" - ".github/workflows/frontend-check.yml" jobs: diff --git a/.github/workflows/npm_on_release.yml b/.github/workflows/npm_on_release.yml index 8ebc38391a..0d07757959 100644 --- a/.github/workflows/npm_on_release.yml +++ b/.github/workflows/npm_on_release.yml @@ -51,3 +51,26 @@ jobs: with: bun-version: latest - run: cd cli && ./build.sh && cd npm && npm publish --access public + publish_utils_internal: + runs-on: ubuntu-latest + environment: npm + permissions: + contents: read + id-token: write + defaults: + run: + working-directory: cli/windmill-utils-internal + steps: + - uses: actions/checkout@v4.4.0 + - uses: actions/setup-node@v7.1.0 + with: + node-version: "24.x" + registry-url: "https://registry.npmjs.org" + # Versioned on its own, so most releases have nothing new to publish. + - run: | + pkg=$(node -p 'const p = require("./package.json"); p.name + "@" + p.version') + if [ -n "$(npm view "$pkg" version 2>/dev/null)" ]; then + echo "$pkg is already published" + else + npm ci && npm publish + fi diff --git a/Dockerfile b/Dockerfile index 32afc8347f..5a23fad6d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,6 +83,8 @@ COPY /backend/windmill-api/build_openapi.sh /backend/windmill-api/build_openapi. COPY /system_prompts/auto-generated /system_prompts/auto-generated # The flow chat imports the chat SDK's source (svelte.config.js alias `windmill-chat`). COPY /chat-sdk/src /chat-sdk/src +# Shared with the CLI (svelte.config.js alias `windmill-utils-internal`). +COPY /cli/windmill-utils-internal/src /cli/windmill-utils-internal/src RUN cd /backend/windmill-api && . ./build_openapi.sh COPY /backend/parsers/windmill-parser-wasm/pkg/ /backend/parsers/windmill-parser-wasm/pkg/ diff --git a/cli/windmill-utils-internal/README.md b/cli/windmill-utils-internal/README.md index 2d60566621..25d75fd942 100644 --- a/cli/windmill-utils-internal/README.md +++ b/cli/windmill-utils-internal/README.md @@ -1,4 +1,4 @@ -# Windmill Utils Internal +# @windmill-labs/utils-internal Internal TypeScript utility package for Windmill development tools and scripts. @@ -32,8 +32,10 @@ npm run build ### Publishing -To publish the package: +The CLI and the frontend build from this source, so a change here needs no publish. npm only serves code outside this repo. When that needs a change, bump the version in `package.json` and `package-lock.json`: the next Windmill release publishes it (`.github/workflows/npm_on_release.yml`), and releases without a bump skip it. + +To publish without waiting for a release, as a maintainer of the npm org: ```bash ./publish.sh -``` \ No newline at end of file +``` diff --git a/cli/windmill-utils-internal/package-lock.json b/cli/windmill-utils-internal/package-lock.json index f28668938c..e94e5591cf 100644 --- a/cli/windmill-utils-internal/package-lock.json +++ b/cli/windmill-utils-internal/package-lock.json @@ -1,11 +1,11 @@ { - "name": "windmill-utils-internal", + "name": "@windmill-labs/utils-internal", "version": "1.8.6", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "windmill-utils-internal", + "name": "@windmill-labs/utils-internal", "version": "1.8.6", "license": "Apache 2.0", "devDependencies": { diff --git a/cli/windmill-utils-internal/package.json b/cli/windmill-utils-internal/package.json index 2b80f84f81..18baeaebff 100644 --- a/cli/windmill-utils-internal/package.json +++ b/cli/windmill-utils-internal/package.json @@ -1,5 +1,5 @@ { - "name": "windmill-utils-internal", + "name": "@windmill-labs/utils-internal", "version": "1.8.6", "description": "Internal utility functions for Windmill", "main": "dist/cjs/index.js", @@ -29,11 +29,19 @@ ], "author": "Ruben Fiszel", "license": "Apache 2.0", + "repository": { + "type": "git", + "url": "git+https://github.com/windmill-labs/windmill.git", + "directory": "cli/windmill-utils-internal" + }, "devDependencies": { "@types/node": "^24.2.0", "typescript": "^5.0.0" }, "files": [ "dist/**/*" - ] + ], + "publishConfig": { + "access": "public" + } } diff --git a/cli/windmill-utils-internal/src/index.ts b/cli/windmill-utils-internal/src/index.ts index d23a11e8a6..827091e557 100644 --- a/cli/windmill-utils-internal/src/index.ts +++ b/cli/windmill-utils-internal/src/index.ts @@ -1,5 +1,5 @@ /** - * @fileoverview Main entry point for windmill-utils-internal package + * @fileoverview Main entry point for the @windmill-labs/utils-internal package * * This module provides utilities for handling Windmill flows, scripts, and schemas: * - Inline script extraction and replacement diff --git a/docker/RHEL8/Dockerfile b/docker/RHEL8/Dockerfile index a7eca5fbd8..c907fa3e3b 100644 --- a/docker/RHEL8/Dockerfile +++ b/docker/RHEL8/Dockerfile @@ -35,6 +35,8 @@ COPY /backend/windmill-api/build_openapi.sh /backend/windmill-api/build_openapi. COPY /system_prompts/auto-generated /system_prompts/auto-generated # The flow chat imports the chat SDK's source (svelte.config.js alias `windmill-chat`). COPY /chat-sdk/src /chat-sdk/src +# Shared with the CLI (svelte.config.js alias `windmill-utils-internal`). +COPY /cli/windmill-utils-internal/src /cli/windmill-utils-internal/src RUN cd /backend/windmill-api && . ./build_openapi.sh COPY /backend/parsers/windmill-parser-wasm/pkg/ /backend/parsers/windmill-parser-wasm/pkg/ diff --git a/docker/RHEL9/Dockerfile b/docker/RHEL9/Dockerfile index cc972884d8..afed13e20c 100644 --- a/docker/RHEL9/Dockerfile +++ b/docker/RHEL9/Dockerfile @@ -35,6 +35,8 @@ COPY /backend/windmill-api/build_openapi.sh /backend/windmill-api/build_openapi. COPY /system_prompts/auto-generated /system_prompts/auto-generated # The flow chat imports the chat SDK's source (svelte.config.js alias `windmill-chat`). COPY /chat-sdk/src /chat-sdk/src +# Shared with the CLI (svelte.config.js alias `windmill-utils-internal`). +COPY /cli/windmill-utils-internal/src /cli/windmill-utils-internal/src RUN cd /backend/windmill-api && . ./build_openapi.sh COPY /backend/parsers/windmill-parser-wasm/pkg/ /backend/parsers/windmill-parser-wasm/pkg/ diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 57fe9d3c98..f4e4e68fa7 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -116,7 +116,6 @@ "windmill-parser-wasm-wac": "1.830.0", "windmill-parser-wasm-yaml": "1.770.0", "windmill-sql-datatype-parser-wasm": "1.512.0", - "windmill-utils-internal": "1.8.6", "xterm": "^5.3.0", "xterm-readline": "^1.1.2", "y-monaco": "^0.1.4", @@ -14147,12 +14146,6 @@ "resolved": "https://registry.npmjs.org/windmill-sql-datatype-parser-wasm/-/windmill-sql-datatype-parser-wasm-1.512.0.tgz", "integrity": "sha512-uHNL8F72/Tf96xF3hOHnPDjkEyqXw7fNjcPJiUhth9sTQkcwUIoJMOdwm8/cs+j9kKVRJ4tgNYMHEBLylazp6g==" }, - "node_modules/windmill-utils-internal": { - "version": "1.8.6", - "resolved": "https://registry.npmjs.org/windmill-utils-internal/-/windmill-utils-internal-1.8.6.tgz", - "integrity": "sha512-jzHhEZ3xSBf90zektXaAIhAu9wLo5RMtYshvjg5if8jjEJvWENd+WQzEbod8Sr+SzMUbmmF4ArefqN15f2XtHw==", - "license": "Apache 2.0" - }, "node_modules/wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index 8e1dd9f5e6..5b4862e288 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -181,7 +181,6 @@ "windmill-parser-wasm-wac": "1.830.0", "windmill-parser-wasm-yaml": "1.770.0", "windmill-sql-datatype-parser-wasm": "1.512.0", - "windmill-utils-internal": "1.8.6", "xterm": "^5.3.0", "xterm-readline": "^1.1.2", "y-monaco": "^0.1.4", diff --git a/frontend/scripts/fix-svelte-module-imports.js b/frontend/scripts/fix-svelte-module-imports.js index 1a9e18bf8e..4916a959f5 100644 --- a/frontend/scripts/fix-svelte-module-imports.js +++ b/frontend/scripts/fix-svelte-module-imports.js @@ -21,7 +21,10 @@ // `chat-sdk/src/index.ts`, which escapes the package root the same way. // Compile that entry point into the package and rewrite those imports. // -// 4. `$lib/utils` from inside `utils/`: svelte-package turns it into `./`, +// 4. Utils: the `windmill-utils-internal` alias points at +// `cli/windmill-utils-internal/src`, handled like the chat SDK. +// +// 5. `$lib/utils` from inside `utils/`: svelte-package turns it into `./`, // which is the `utils/` directory (no index) rather than `utils.js`. // Point a directory specifier with no index at its sibling module. // @@ -45,32 +48,46 @@ copyFileSync(oauthConnectSrc, oauthConnectDest) const chatSdkSrc = resolve(__dirname, '..', '..', 'chat-sdk', 'src', 'index.ts') const chatSdkDest = join(packageDir, 'chat-sdk') +const utilsSrc = resolve(__dirname, '..', '..', 'cli', 'windmill-utils-internal', 'src') +const utilsDest = join(packageDir, 'utils-internal') +const utilsModules = ['deploy', 'parse/parse-schema'] + // File arguments make tsc ignore every tsconfig and emit only what the entry // point reaches, which leaves out the React and AI SDK adapters. -execFileSync( - 'npx', - [ - 'tsc', - chatSdkSrc, - '--outDir', - chatSdkDest, - '--rootDir', - dirname(chatSdkSrc), - '--declaration', - '--target', - 'ES2021', - '--module', - 'ESNext', - '--moduleResolution', - 'bundler', - '--skipLibCheck' - ], - { stdio: 'inherit', cwd: resolve(__dirname, '..') } +function compile(entries, outDir, rootDir) { + execFileSync( + 'npx', + [ + 'tsc', + ...entries, + '--outDir', + outDir, + '--rootDir', + rootDir, + '--declaration', + '--target', + 'ES2021', + '--module', + 'ESNext', + '--moduleResolution', + 'bundler', + '--skipLibCheck' + ], + { stdio: 'inherit', cwd: resolve(__dirname, '..') } + ) +} + +compile([chatSdkSrc], chatSdkDest, dirname(chatSdkSrc)) +compile( + utilsModules.map((m) => join(utilsSrc, `${m}.ts`)), + utilsDest, + utilsSrc ) const IMPORT_SPECIFIER_RE = /(\bfrom\s*|\bimport\s*\(?\s*)(['"])(\.\.?(?:\/[^'"]*)?)\2/g const OAUTH_CONNECT_RE = /^(\.\.\/)+backend\/oauth_connect\.json$/ const CHAT_SDK_RE = /^(\.\.\/)+chat-sdk\/src\/index\.ts$/ +const UTILS_RE = /^(?:\.\.\/)+cli\/windmill-utils-internal\/src\/(.+?)(?:\.ts)?$/ const DIRECTORY_RE = /(^|\/)\.\.?$|\/$/ const ALIASED_GLOB_RE = /import\.meta\.glob(?:<[^>]*>)?\(\s*\[?\s*['"]\$/ @@ -111,6 +128,12 @@ for (const file of walk(packageDir)) { rewrittenImports++ return `${prefix}${quote}${relativeSpecifier(file, join(chatSdkDest, 'index.js'))}${quote}` } + const utilsModule = specifier.match(UTILS_RE)?.[1] + if (utilsModules.includes(utilsModule)) { + changed = true + rewrittenImports++ + return `${prefix}${quote}${relativeSpecifier(file, join(utilsDest, `${utilsModule}.js`))}${quote}` + } const target = resolve(dirname(file), specifier) // Test files ride along in the output but no consumer imports them, so an escaping // import there (e.g. `../app.html?raw`) breaks nothing. diff --git a/frontend/src/lib/components/CompareWorkspaces.svelte b/frontend/src/lib/components/CompareWorkspaces.svelte index e265c453dc..63eb92c6cd 100644 --- a/frontend/src/lib/components/CompareWorkspaces.svelte +++ b/frontend/src/lib/components/CompareWorkspaces.svelte @@ -56,7 +56,7 @@ type DeployResult } from '$lib/utils_workspace_deploy' import { asSyncDeploy } from '$lib/deployOrigin' - import { isTriggerOrScheduleKind } from 'windmill-utils-internal' + import { isTriggerOrScheduleKind } from 'windmill-utils-internal/deploy' import Tooltip from './Tooltip.svelte' import OnBehalfOfSelector, { needsOnBehalfOfSelection, diff --git a/frontend/src/lib/components/OnBehalfOfSelector.svelte b/frontend/src/lib/components/OnBehalfOfSelector.svelte index 3c903ad424..bc7c40ed2b 100644 --- a/frontend/src/lib/components/OnBehalfOfSelector.svelte +++ b/frontend/src/lib/components/OnBehalfOfSelector.svelte @@ -1,5 +1,5 @@ - - - -
- {#if s3resource.endsWith('.csv')} -
-
- - -
- -
-
-
- {/if} - {#if !disable_download && !s3resource.endsWith('.csv')} - {@const csvApiPath = appPath - ? `/w/${workspaceId}/apps_u/download_s3_parquet_file_as_csv/${appPath}?file_key=${encodeURIComponent(s3resource)}${storage ? `&storage=${storage}` : ''}${presigned ? `&${presigned}` : ''}` - : `/w/${workspaceId}/job_helpers/download_s3_parquet_file_as_csv?file_key=${encodeURIComponent(s3resource)}${storage ? `&storage=${storage}` : ''}`} - {@const csvName = (s3resource.split('/').pop() ?? 'download') + '.csv'} - {#if shouldDownloadViaClient()} - - {:else} -
CSV
- {/if} - {/if} - - {#if nbRows != undefined} -
{nbRows} rows
- {:else} - - {/if} -
- {#if error} -
{error}
-
Try changing separator to fix it
- {/if} -
-
-
- - diff --git a/frontend/src/lib/components/TaggedTextInput.svelte b/frontend/src/lib/components/TaggedTextInput.svelte index 66f968f097..be4b7c8e97 100644 --- a/frontend/src/lib/components/TaggedTextInput.svelte +++ b/frontend/src/lib/components/TaggedTextInput.svelte @@ -44,7 +44,9 @@ const currentText = getTextContent() if (currentText !== value) { updateDisplay(value) - if (!_preventCursorMoveOnNextSync) { + // Placing the caret focuses this input: never take focus from another field + // that wrote the value, such as a table's column filter. + if (!_preventCursorMoveOnNextSync && !typingElsewhere()) { restoreCursor(value.length) const cursorPos = getCursorPosition() updateCurrentTag(cursorPos) @@ -54,6 +56,15 @@ _preventCursorMoveOnNextSync = false }) + function typingElsewhere(): boolean { + const active = document.activeElement + return ( + active instanceof HTMLElement && + !contentEditableDiv.contains(active) && + active.matches('input, textarea, select, [contenteditable]:not([contenteditable="false"])') + ) + } + export function preventCursorMoveOnNextSync() { _preventCursorMoveOnNextSync = true } diff --git a/frontend/src/lib/components/apps/editor/appUtilsS3.ts b/frontend/src/lib/components/apps/editor/appUtilsS3.ts index 15353382cc..9e9228dd59 100644 --- a/frontend/src/lib/components/apps/editor/appUtilsS3.ts +++ b/frontend/src/lib/components/apps/editor/appUtilsS3.ts @@ -117,7 +117,7 @@ export async function getS3File({ // Editor/preview runs execute as the *caller* (Viewer mode), so read their // results back as the caller through the viewer-scoped `job_helpers` endpoint — - // never author-mode — consistent with DisplayResult/ParqetCsvTableRenderer. Only + // never author-mode — consistent with DisplayResult. Only // a deployed app view reads on-behalf of the author via the provenance-gated // `apps_u` endpoint. if (isEditor) { diff --git a/frontend/src/lib/components/common/fileDownload/S3ObjectTable.svelte b/frontend/src/lib/components/common/fileDownload/S3ObjectTable.svelte new file mode 100644 index 0000000000..122f618a0d --- /dev/null +++ b/frontend/src/lib/components/common/fileDownload/S3ObjectTable.svelte @@ -0,0 +1,178 @@ + + +
+ {#if isCsv || (isParquet && !s3object.disable_download)} +
+ {#if isCsv} +
+ Separator + {/if} -
+ {/snippet} + {#if wideRows} + + + {:else} +
+ {@render searchControl()} +
+ {/if} {/if} {#if keys.length > 0} @@ -475,7 +494,15 @@ {#if level === 0} - {@render viewerContent()} + {#if wideRows} + +
+ {@render viewerContent()} +
+ {:else} + {@render viewerContent()} + {/if}
{:else} {@render viewerContent()} diff --git a/system_prompts/auto-generated/prompts.ts b/system_prompts/auto-generated/prompts.ts index b5031e9c25..8bc8b7e1da 100644 --- a/system_prompts/auto-generated/prompts.ts +++ b/system_prompts/auto-generated/prompts.ts @@ -1911,6 +1911,15 @@ of the shapes below is shown as JSON. Each shape is an object with that one key (plus \`filename\` for a file, and an optional \`storage\` for \`s3\`). A result carrying any other key beside it is shown as JSON. +## Large results + +A result stored above about 90 KB is not sent with the run: the run page and the editors offer it +as a JSON download, with a Load button that draws it on request. A \`render_all\` lists up to 100 of +its elements with their type and size, counts the rest, and loads them ten at a time. To have a large result previewed without a +click, write the content to the workspace storage and return \`{ "s3": "path/to/key" }\`, which is +previewed by type; for a generated image, also keep it small (a JPEG, or fewer pixels) when it only +needs to be looked at. + ## Choosing one A chart answers a question at a glance: a trend over time (line), a comparison across categories diff --git a/system_prompts/auto-generated/skills/rich-results/SKILL.md b/system_prompts/auto-generated/skills/rich-results/SKILL.md index ec49550773..8c73970720 100644 --- a/system_prompts/auto-generated/skills/rich-results/SKILL.md +++ b/system_prompts/auto-generated/skills/rich-results/SKILL.md @@ -30,6 +30,15 @@ of the shapes below is shown as JSON. Each shape is an object with that one key (plus `filename` for a file, and an optional `storage` for `s3`). A result carrying any other key beside it is shown as JSON. +## Large results + +A result stored above about 90 KB is not sent with the run: the run page and the editors offer it +as a JSON download, with a Load button that draws it on request. A `render_all` lists up to 100 of +its elements with their type and size, counts the rest, and loads them ten at a time. To have a large result previewed without a +click, write the content to the workspace storage and return `{ "s3": "path/to/key" }`, which is +previewed by type; for a generated image, also keep it small (a JPEG, or fewer pixels) when it only +needs to be looked at. + ## Choosing one A chart answers a question at a glance: a trend over time (line), a comparison across categories diff --git a/system_prompts/base/display-results.md b/system_prompts/base/display-results.md index 17f0c5b864..aa82751ddb 100644 --- a/system_prompts/base/display-results.md +++ b/system_prompts/base/display-results.md @@ -25,6 +25,15 @@ of the shapes below is shown as JSON. Each shape is an object with that one key (plus `filename` for a file, and an optional `storage` for `s3`). A result carrying any other key beside it is shown as JSON. +## Large results + +A result stored above about 90 KB is not sent with the run: the run page and the editors offer it +as a JSON download, with a Load button that draws it on request. A `render_all` lists up to 100 of +its elements with their type and size, counts the rest, and loads them ten at a time. To have a large result previewed without a +click, write the content to the workspace storage and return `{ "s3": "path/to/key" }`, which is +previewed by type; for a generated image, also keep it small (a JPEG, or fewer pixels) when it only +needs to be looked at. + ## Choosing one A chart answers a question at a glance: a trend over time (line), a comparison across categories From e44dfe5eb6e310528eb5c5c77b52281d64140c09 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Nov 2026 21:02:22 +0000 Subject: [PATCH 100/102] chore(main): release 1.894.0 (#12763) * chore(main): release 1.894.0 * Apply automatic changes --------- Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 18 ++ backend/Cargo.lock | 187 ++++++++++-------- backend/Cargo.toml | 4 +- .../parsers/windmill-parser-wasm/Cargo.lock | 48 ++--- .../parsers/windmill-parser-wasm/Cargo.toml | 2 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- chat-sdk/package-lock.json | 4 +- chat-sdk/package.json | 2 +- cli/src/core/constants.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 2 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- windmill-yaml-validator/package-lock.json | 4 +- windmill-yaml-validator/package.json | 2 +- 22 files changed, 166 insertions(+), 133 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 540648b923..bfc609359f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.893.0" + ".": "1.894.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 5917a8b10f..b5921e9bf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [1.894.0](https://github.com/windmill-labs/windmill/compare/v1.893.0...v1.894.0) (2026-11-30) + + +### Features + +* load a large result on request, ten render_all elements at a time ([#12664](https://github.com/windmill-labs/windmill/issues/12664)) ([d1abc75](https://github.com/windmill-labs/windmill/commit/d1abc75fa6afcf60ed1948830fb90d0a3c6ece94)) +* show s3 csv and parquet results in the db table with filters ([#12712](https://github.com/windmill-labs/windmill/issues/12712)) ([8064fa8](https://github.com/windmill-labs/windmill/commit/8064fa8fb62fc30ce88777395bf69ca828374e23)) + + +### Bug Fixes + +* copy labels into forks and detect label changes in compare ([#12738](https://github.com/windmill-labs/windmill/issues/12738)) ([f79e4b6](https://github.com/windmill-labs/windmill/commit/f79e4b618dee54f25396e5b70eef9cca05781cef)) +* forward ai proxy decisions requests on output-limited models ([#12770](https://github.com/windmill-labs/windmill/issues/12770)) ([39fb7f3](https://github.com/windmill-labs/windmill/commit/39fb7f34cb206a8087d2ca05c5e6a5c108302f44)) +* give AI agent tools run locally a job span and log fields ([#12684](https://github.com/windmill-labs/windmill/issues/12684)) ([d482968](https://github.com/windmill-labs/windmill/commit/d48296808effa9cb259adc891e9a6f8f4ee3b0ca)) +* resolve $var: references in custom ai resource headers ([#12764](https://github.com/windmill-labs/windmill/issues/12764)) ([a57f2df](https://github.com/windmill-labs/windmill/commit/a57f2df2c8b2e87d4ea329ab48ad2a0943b3d53c)) +* S3 table preview and DB table search bar bugs ([#12768](https://github.com/windmill-labs/windmill/issues/12768)) ([876fbb1](https://github.com/windmill-labs/windmill/commit/876fbb1e09c9723f80603abb4c759f4e4dbefe16)) +* show a running job with a fading play ring on home and the runs page ([#12671](https://github.com/windmill-labs/windmill/issues/12671)) ([e3d5b04](https://github.com/windmill-labs/windmill/commit/e3d5b043504e6292967bcac479703d54a7d6a0ee)) + ## [1.893.0](https://github.com/windmill-labs/windmill/compare/v1.892.0...v1.893.0) (2026-11-30) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index d9dd335d50..7a50ec3c89 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -4853,7 +4853,7 @@ dependencies = [ "libc", "option-ext", "redox_users 0.5.3", - "windows-sys 0.61.2", + "windows-sys 0.101.0", ] [[package]] @@ -5076,7 +5076,7 @@ dependencies = [ "curve25519-dalek 5.1.0", "ed25519 3.0.0", "serde", - "sha2 0.11.2", + "sha2 0.11.3", "signature 3.0.0", "subtle", "zeroize", @@ -9466,7 +9466,7 @@ dependencies = [ "elliptic-curve 0.14.3", "primefield", "primeorder 0.14.0", - "sha2 0.11.2", + "sha2 0.11.3", ] [[package]] @@ -9492,7 +9492,7 @@ dependencies = [ "fiat-crypto 0.3.0", "primefield", "primeorder 0.14.0", - "sha2 0.11.2", + "sha2 0.11.3", ] [[package]] @@ -10102,7 +10102,7 @@ dependencies = [ "md-5 0.11.0", "memchr", "rand 0.10.4", - "sha2 0.11.2", + "sha2 0.11.3", "stringprep", ] @@ -12393,9 +12393,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0e5c7d67bc53f435386b2130fdc900488c5703770f6d8a4633060e34288a27" +checksum = "820083d430c52864bf834423fc988cbcf61685d6f9d22a765a64e3f6cfe3521c" dependencies = [ "cfg-if", "cpufeatures 0.3.1", @@ -15655,7 +15655,7 @@ dependencies = [ [[package]] name = "windmill" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-nats", @@ -15745,7 +15745,7 @@ dependencies = [ [[package]] name = "windmill-ai" -version = "1.893.0" +version = "1.894.0" dependencies = [ "async-stream", "async-trait", @@ -15780,7 +15780,7 @@ dependencies = [ [[package]] name = "windmill-alerting" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -15793,7 +15793,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "argon2", @@ -15935,7 +15935,7 @@ dependencies = [ [[package]] name = "windmill-api-agent-workers" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -15959,7 +15959,7 @@ dependencies = [ [[package]] name = "windmill-api-assets" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -15976,7 +15976,7 @@ dependencies = [ [[package]] name = "windmill-api-auth" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16004,7 +16004,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.893.0" +version = "1.894.0" dependencies = [ "reqwest 0.12.28", "serde", @@ -16014,7 +16014,7 @@ dependencies = [ [[package]] name = "windmill-api-configs" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16031,7 +16031,7 @@ dependencies = [ [[package]] name = "windmill-api-debug" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "base64 0.22.1", @@ -16053,7 +16053,7 @@ dependencies = [ [[package]] name = "windmill-api-embeddings" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16076,7 +16076,7 @@ dependencies = [ [[package]] name = "windmill-api-flow-conversations" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16092,7 +16092,7 @@ dependencies = [ [[package]] name = "windmill-api-flows" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16114,7 +16114,7 @@ dependencies = [ [[package]] name = "windmill-api-groups" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16136,7 +16136,7 @@ dependencies = [ [[package]] name = "windmill-api-inputs" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16150,7 +16150,7 @@ dependencies = [ [[package]] name = "windmill-api-integration-tests" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-nats", @@ -16186,7 +16186,7 @@ dependencies = [ [[package]] name = "windmill-api-jobs" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16212,7 +16212,7 @@ dependencies = [ [[package]] name = "windmill-api-npm-proxy" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16240,7 +16240,7 @@ dependencies = [ [[package]] name = "windmill-api-openapi" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16262,7 +16262,7 @@ dependencies = [ [[package]] name = "windmill-api-schedule" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16281,7 +16281,7 @@ dependencies = [ [[package]] name = "windmill-api-scripts" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16323,7 +16323,7 @@ dependencies = [ [[package]] name = "windmill-api-settings" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16354,7 +16354,7 @@ dependencies = [ [[package]] name = "windmill-api-sse" -version = "1.893.0" +version = "1.894.0" dependencies = [ "lazy_static", "serde", @@ -16366,7 +16366,7 @@ dependencies = [ [[package]] name = "windmill-api-users" -version = "1.893.0" +version = "1.894.0" dependencies = [ "argon2", "axum", @@ -16394,7 +16394,7 @@ dependencies = [ [[package]] name = "windmill-api-workers" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16409,7 +16409,7 @@ dependencies = [ [[package]] name = "windmill-api-workspaces" -version = "1.893.0" +version = "1.894.0" dependencies = [ "axum", "chrono", @@ -16448,7 +16448,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.893.0" +version = "1.894.0" dependencies = [ "chrono", "lazy_static", @@ -16463,7 +16463,7 @@ dependencies = [ [[package]] name = "windmill-autoscaling" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "axum", @@ -16482,7 +16482,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.893.0" +version = "1.894.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -16603,7 +16603,7 @@ dependencies = [ [[package]] name = "windmill-dep-map" -version = "1.893.0" +version = "1.894.0" dependencies = [ "chrono", "futures", @@ -16623,7 +16623,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.893.0" +version = "1.894.0" dependencies = [ "regex", "serde", @@ -16640,7 +16640,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "astral-tokio-tar", @@ -16667,7 +16667,7 @@ dependencies = [ [[package]] name = "windmill-jseval" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "futures", @@ -16684,7 +16684,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.893.0" +version = "1.894.0" dependencies = [ "itertools 0.14.0", "lazy_static", @@ -16700,7 +16700,7 @@ dependencies = [ [[package]] name = "windmill-mcp" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -16722,7 +16722,7 @@ dependencies = [ [[package]] name = "windmill-native-triggers" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -16754,7 +16754,7 @@ dependencies = [ [[package]] name = "windmill-oauth" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "arc-swap", @@ -16779,7 +16779,7 @@ dependencies = [ [[package]] name = "windmill-object-store" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-stream", @@ -16815,7 +16815,7 @@ dependencies = [ [[package]] name = "windmill-operator" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "futures", @@ -16834,7 +16834,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.893.0" +version = "1.894.0" dependencies = [ "convert_case 0.6.0", "serde", @@ -16843,7 +16843,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -16855,7 +16855,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -16867,7 +16867,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "gosyn", @@ -16879,7 +16879,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -16891,7 +16891,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -16903,7 +16903,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "nu-parser", @@ -16914,7 +16914,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16925,7 +16925,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16937,7 +16937,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -16948,7 +16948,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-recursion", @@ -16971,7 +16971,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -16983,7 +16983,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -16997,7 +16997,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -17014,7 +17014,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -17027,7 +17027,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde", @@ -17039,7 +17039,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -17057,7 +17057,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -17073,7 +17073,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -17090,7 +17090,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -17104,7 +17104,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-recursion", @@ -17142,7 +17142,7 @@ dependencies = [ [[package]] name = "windmill-runtime-nativets" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "const_format", @@ -17180,7 +17180,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.893.0" +version = "1.894.0" dependencies = [ "getrandom 0.3.4", "wasm-bindgen", @@ -17191,7 +17191,7 @@ dependencies = [ [[package]] name = "windmill-store" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-recursion", @@ -17226,7 +17226,7 @@ dependencies = [ [[package]] name = "windmill-test-utils" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17250,7 +17250,7 @@ dependencies = [ [[package]] name = "windmill-trigger" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17283,7 +17283,7 @@ dependencies = [ [[package]] name = "windmill-trigger-amqp" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17310,7 +17310,7 @@ dependencies = [ [[package]] name = "windmill-trigger-azure" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17343,7 +17343,7 @@ dependencies = [ [[package]] name = "windmill-trigger-email" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17363,7 +17363,7 @@ dependencies = [ [[package]] name = "windmill-trigger-gcp" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17397,7 +17397,7 @@ dependencies = [ [[package]] name = "windmill-trigger-http" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17434,7 +17434,7 @@ dependencies = [ [[package]] name = "windmill-trigger-kafka" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17457,7 +17457,7 @@ dependencies = [ [[package]] name = "windmill-trigger-mqtt" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17481,7 +17481,7 @@ dependencies = [ [[package]] name = "windmill-trigger-nats" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-nats", @@ -17505,7 +17505,7 @@ dependencies = [ [[package]] name = "windmill-trigger-postgres" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17540,7 +17540,7 @@ dependencies = [ [[package]] name = "windmill-trigger-sqs" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17568,7 +17568,7 @@ dependencies = [ [[package]] name = "windmill-trigger-websocket" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-trait", @@ -17594,7 +17594,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "bitflags 2.13.2", @@ -17614,7 +17614,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-once-cell", @@ -17732,7 +17732,7 @@ dependencies = [ [[package]] name = "windmill-worker-volumes" -version = "1.893.0" +version = "1.894.0" dependencies = [ "bytes", "fs4", @@ -17971,6 +17971,12 @@ version = "0.100.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" +[[package]] +name = "windows-link" +version = "0.101.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e57b2aae53a240c62b65069a63eaf8d5fa747f5d0d8e670c5210a98847bce4" + [[package]] name = "windows-numerics" version = "0.2.0" @@ -18111,6 +18117,15 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "windows-sys" +version = "0.101.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed2df9f5f458664c87437f6758f0d93085b06433bf66b2b84c23c19f3d2012c" +dependencies = [ + "windows-link 0.101.0", +] + [[package]] name = "windows-targets" version = "0.48.5" diff --git a/backend/Cargo.toml b/backend/Cargo.toml index ac146a57d7..91a566b9ff 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.893.0" +version = "1.894.0" authors.workspace = true edition.workspace = true @@ -88,7 +88,7 @@ members = [ exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"] [workspace.package] -version = "1.893.0" +version = "1.894.0" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock index d346b750b8..f59de64f9b 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.lock +++ b/backend/parsers/windmill-parser-wasm/Cargo.lock @@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill-common" -version = "1.893.0" +version = "1.894.0" dependencies = [ "aes-gcm", "aho-corasick", @@ -6430,7 +6430,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.893.0" +version = "1.894.0" dependencies = [ "proc-macro2", "quote", @@ -6442,7 +6442,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.893.0" +version = "1.894.0" dependencies = [ "convert_case", "serde", @@ -6451,7 +6451,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6463,7 +6463,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -6475,7 +6475,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "gosyn", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6499,7 +6499,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -6511,7 +6511,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "nu-parser", @@ -6522,7 +6522,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6533,7 +6533,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6545,7 +6545,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6556,7 +6556,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "async-recursion", @@ -6579,7 +6579,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde_json", @@ -6591,7 +6591,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6605,7 +6605,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "convert_case", @@ -6622,7 +6622,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6635,7 +6635,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde", @@ -6647,7 +6647,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6665,7 +6665,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -6681,7 +6681,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "ruff_python_ast", @@ -6698,7 +6698,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "getrandom 0.2.17", @@ -6730,7 +6730,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "lazy_static", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.893.0" +version = "1.894.0" dependencies = [ "anyhow", "bitflags", diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml index 24a94d39c4..a8701060bd 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.toml +++ b/backend/parsers/windmill-parser-wasm/Cargo.toml @@ -12,7 +12,7 @@ resolver = "2" members = ["."] [workspace.package] -version = "1.893.0" +version = "1.894.0" edition = "2021" authors = ["Ruben Fiszel "] diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index 4704016ffc..17a280c987 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.893.0 + version: 1.894.0 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index 6cae2922c3..01ee881370 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.893.0"; +export const VERSION = "v1.894.0"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json index 55da7fa1ba..336f5e4dcf 100644 --- a/chat-sdk/package-lock.json +++ b/chat-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/chat-sdk", - "version": "1.893.0", + "version": "1.894.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/chat-sdk", - "version": "1.893.0", + "version": "1.894.0", "license": "Apache-2.0", "devDependencies": { "@ai-sdk/react": "^4.0.102", diff --git a/chat-sdk/package.json b/chat-sdk/package.json index d1778a85cf..547a33e3e9 100644 --- a/chat-sdk/package.json +++ b/chat-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@windmill-labs/chat-sdk", "description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app", - "version": "1.893.0", + "version": "1.894.0", "author": "Ruben Fiszel", "license": "Apache-2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme", diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts index a307a86f3c..047a9d0517 100644 --- a/cli/src/core/constants.ts +++ b/cli/src/core/constants.ts @@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork"; // (e.g. utils.ts) can read it without importing main.ts and creating a circular // dependency (main → workspace → utils → main) that triggers a TDZ. // Re-exported from main.ts for backwards compatibility. -export const VERSION = "1.893.0"; +export const VERSION = "1.894.0"; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f4e4e68fa7..c39ae36335 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/components", - "version": "1.893.0", + "version": "1.894.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/components", - "version": "1.893.0", + "version": "1.894.0", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/frontend/package.json b/frontend/package.json index 5b4862e288..0c59bc0038 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@windmill-labs/components", - "version": "1.893.0", + "version": "1.894.0", "scripts": { "dev": "vite dev", "dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev", diff --git a/lsp/Pipfile b/lsp/Pipfile index 53771680f1..0ddb7e4341 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.893.0" +wmill = ">=1.894.0" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index 2ec61cedba..2a02b85268 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: '3.0.3' info: - version: 1.893.0 + version: 1.894.0 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index 4b47fbd14d..d5a2b2e097 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. - ModuleVersion = '1.893.0' + ModuleVersion = '1.894.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index 47a39b41cc..b5431a7f17 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.893.0" +version = "1.894.0" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index cf2938c5fd..a7ef48a8c7 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.893.0", + "version": "1.894.0", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts", "./taskParams.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index 8842aa9edc..ff75e089f5 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.893.0", + "version": "1.894.0", "author": "Ruben Fiszel", "license": "Apache 2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme", diff --git a/version.txt b/version.txt index 5fd1b25d68..f7bab15b47 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.893.0 +1.894.0 diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json index f87665bf4d..dcfee3e82e 100644 --- a/windmill-yaml-validator/package-lock.json +++ b/windmill-yaml-validator/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-yaml-validator", - "version": "1.893.0", + "version": "1.894.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-yaml-validator", - "version": "1.893.0", + "version": "1.894.0", "license": "Apache 2.0", "dependencies": { "@stoplight/yaml": "^4.3.0", diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json index b57736c3a8..f6490848f9 100644 --- a/windmill-yaml-validator/package.json +++ b/windmill-yaml-validator/package.json @@ -1,6 +1,6 @@ { "name": "windmill-yaml-validator", - "version": "1.893.0", + "version": "1.894.0", "description": "YAML validator for Windmill flow, schedule, and trigger files", "main": "dist/index.js", "types": "dist/index.d.ts", From b4ca673a2920f20b283e59dd3afc9786ee741ff2 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 1 Dec 2026 04:14:55 +0000 Subject: [PATCH 101/102] fix: run squashed loop iterations as regular jobs (#12772) * fix: run squashed loop iterations as regular jobs Co-Authored-By: Claude Opus 5.5 * test: cover squashed loops running iterations as regular jobs Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- backend/tests/dedicated_workers.rs | 20 ++++++++++++++------ backend/windmill-worker/src/worker_flow.rs | 7 +++---- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/backend/tests/dedicated_workers.rs b/backend/tests/dedicated_workers.rs index fc4ff77bb3..c69bcc4563 100644 --- a/backend/tests/dedicated_workers.rs +++ b/backend/tests/dedicated_workers.rs @@ -313,10 +313,10 @@ mod dedicated_worker_tests { Ok(()) } - /// Test flow runners: a squashed for-loop spawns dedicated subprocesses. + /// A squashed for-loop runs each iteration as a regular job, not in a shared subprocess. #[sqlx::test(fixtures("base", "dedicated_flows"))] #[serial] - async fn test_dedicated_flow_runners(db: Pool) -> anyhow::Result<()> { + async fn test_squashed_loop_runs_iterations_as_jobs(db: Pool) -> anyhow::Result<()> { initialize_tracing().await; // Reset dedicated_workers in WORKER_CONFIG to avoid pollution from previous tests. { @@ -355,8 +355,17 @@ mod dedicated_worker_tests { // for-loop over [1, 2, 3], each * 10 = [10, 20, 30] assert_eq!(job.json_result().unwrap(), json!([10, 20, 30])); - // Verify the loop iterations ran on dedicated worker subprocesses - assert_ran_on_dedicated_worker(&db, job.id, "bun").await; + let in_subprocess: i64 = sqlx::query_scalar( + "WITH RECURSIVE t(id) AS ( + SELECT $1::uuid UNION SELECT j.id FROM v2_job j JOIN t ON j.parent_job = t.id + ) + SELECT count(*) FROM job_logs l JOIN t ON l.job_id = t.id + WHERE l.logs LIKE '%dedicated worker%'", + ) + .bind(job.id) + .fetch_one(&db) + .await?; + assert_eq!(in_subprocess, 0); Ok(()) } @@ -732,8 +741,7 @@ mod dedicated_worker_tests { Ok(()) } - /// Test a squashed for-loop with a bash step (unsupported for flow runners). - /// The bash step can't spawn a flow runner, so each iteration falls back to normal execution. + /// Test a squashed for-loop with a bash step. #[sqlx::test(fixtures("base", "dedicated_flows"))] #[serial] async fn test_dedicated_flow_runners_unsupported_lang( diff --git a/backend/windmill-worker/src/worker_flow.rs b/backend/windmill-worker/src/worker_flow.rs index 300bbab070..28920820fd 100644 --- a/backend/windmill-worker/src/worker_flow.rs +++ b/backend/windmill-worker/src/worker_flow.rs @@ -6500,7 +6500,6 @@ async fn compute_next_flow_transform( FlowModuleValue::WhileloopFlow { modules, modules_node, - squash, skip_failures, failure_threshold, .. @@ -6536,7 +6535,7 @@ async fn compute_next_flow_transform( }; let next_loop_idx = flow_jobs.len(); - let start_runners = next_loop_idx == 0 && squash.unwrap_or(false); + let start_runners = false; next_loop_iteration( flow, status, @@ -6573,7 +6572,6 @@ async fn compute_next_flow_transform( modules_node, iterator, parallel, - squash, iteration_label, skip_failures, failure_threshold, @@ -6659,7 +6657,8 @@ async fn compute_next_flow_transform( ForLoopStatus::NextIteration(mut ns) => { ns.iteration_label = iteration_label; ns.failure_threshold = failure_threshold; - let start_runners = ns.index == 0 && squash.unwrap_or(false); + // A squashed loop runs each iteration as a regular job, like any other loop. + let start_runners = false; next_loop_iteration( flow, status, From b7e8b14d7efba0e02c5d41833d498c8cb0e73d62 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 1 Dec 2026 04:19:19 +0000 Subject: [PATCH 102/102] chore(main): release 1.894.1 (#12775) * chore(main): release 1.894.1 * Apply automatic changes --------- Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com> --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 + backend/Cargo.lock | 162 +++++++++--------- backend/Cargo.toml | 4 +- .../parsers/windmill-parser-wasm/Cargo.lock | 48 +++--- .../parsers/windmill-parser-wasm/Cargo.toml | 2 +- backend/windmill-api/openapi.yaml | 2 +- benchmarks/lib.ts | 2 +- chat-sdk/package-lock.json | 4 +- chat-sdk/package.json | 2 +- cli/src/core/constants.ts | 2 +- frontend/package-lock.json | 4 +- frontend/package.json | 2 +- lsp/Pipfile | 2 +- openflow.openapi.yaml | 2 +- .../WindmillClient/WindmillClient.psd1 | 2 +- python-client/wmill/pyproject.toml | 2 +- typescript-client/jsr.json | 2 +- typescript-client/package.json | 2 +- version.txt | 2 +- windmill-yaml-validator/package-lock.json | 4 +- windmill-yaml-validator/package.json | 2 +- 22 files changed, 135 insertions(+), 128 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bfc609359f..aa5035b0db 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.894.0" + ".": "1.894.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b5921e9bf8..4504f2122d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.894.1](https://github.com/windmill-labs/windmill/compare/v1.894.0...v1.894.1) (2026-12-01) + + +### Bug Fixes + +* run squashed loop iterations as regular jobs ([#12772](https://github.com/windmill-labs/windmill/issues/12772)) ([b4ca673](https://github.com/windmill-labs/windmill/commit/b4ca673a2920f20b283e59dd3afc9786ee741ff2)) + ## [1.894.0](https://github.com/windmill-labs/windmill/compare/v1.893.0...v1.894.0) (2026-11-30) diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 7a50ec3c89..93b8caccba 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -1870,9 +1870,9 @@ dependencies = [ [[package]] name = "blake3" -version = "1.8.8" +version = "1.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c0e36294adc8db531500e3f2b8ec75c4af9177271e9c6d33f93609d56e57cd" +checksum = "68fe79e887dd9b3d00ffb29973ff39df3d99b81e6fefbde49636989bd56264d6" dependencies = [ "arrayvec", "cc", @@ -15655,7 +15655,7 @@ dependencies = [ [[package]] name = "windmill" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-nats", @@ -15745,7 +15745,7 @@ dependencies = [ [[package]] name = "windmill-ai" -version = "1.894.0" +version = "1.894.1" dependencies = [ "async-stream", "async-trait", @@ -15780,7 +15780,7 @@ dependencies = [ [[package]] name = "windmill-alerting" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -15793,7 +15793,7 @@ dependencies = [ [[package]] name = "windmill-api" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "argon2", @@ -15935,7 +15935,7 @@ dependencies = [ [[package]] name = "windmill-api-agent-workers" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -15959,7 +15959,7 @@ dependencies = [ [[package]] name = "windmill-api-assets" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -15976,7 +15976,7 @@ dependencies = [ [[package]] name = "windmill-api-auth" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16004,7 +16004,7 @@ dependencies = [ [[package]] name = "windmill-api-client" -version = "1.894.0" +version = "1.894.1" dependencies = [ "reqwest 0.12.28", "serde", @@ -16014,7 +16014,7 @@ dependencies = [ [[package]] name = "windmill-api-configs" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16031,7 +16031,7 @@ dependencies = [ [[package]] name = "windmill-api-debug" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "base64 0.22.1", @@ -16053,7 +16053,7 @@ dependencies = [ [[package]] name = "windmill-api-embeddings" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16076,7 +16076,7 @@ dependencies = [ [[package]] name = "windmill-api-flow-conversations" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16092,7 +16092,7 @@ dependencies = [ [[package]] name = "windmill-api-flows" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16114,7 +16114,7 @@ dependencies = [ [[package]] name = "windmill-api-groups" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16136,7 +16136,7 @@ dependencies = [ [[package]] name = "windmill-api-inputs" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16150,7 +16150,7 @@ dependencies = [ [[package]] name = "windmill-api-integration-tests" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-nats", @@ -16186,7 +16186,7 @@ dependencies = [ [[package]] name = "windmill-api-jobs" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16212,7 +16212,7 @@ dependencies = [ [[package]] name = "windmill-api-npm-proxy" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16240,7 +16240,7 @@ dependencies = [ [[package]] name = "windmill-api-openapi" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16262,7 +16262,7 @@ dependencies = [ [[package]] name = "windmill-api-schedule" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16281,7 +16281,7 @@ dependencies = [ [[package]] name = "windmill-api-scripts" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16323,7 +16323,7 @@ dependencies = [ [[package]] name = "windmill-api-settings" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16354,7 +16354,7 @@ dependencies = [ [[package]] name = "windmill-api-sse" -version = "1.894.0" +version = "1.894.1" dependencies = [ "lazy_static", "serde", @@ -16366,7 +16366,7 @@ dependencies = [ [[package]] name = "windmill-api-users" -version = "1.894.0" +version = "1.894.1" dependencies = [ "argon2", "axum", @@ -16394,7 +16394,7 @@ dependencies = [ [[package]] name = "windmill-api-workers" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16409,7 +16409,7 @@ dependencies = [ [[package]] name = "windmill-api-workspaces" -version = "1.894.0" +version = "1.894.1" dependencies = [ "axum", "chrono", @@ -16448,7 +16448,7 @@ dependencies = [ [[package]] name = "windmill-audit" -version = "1.894.0" +version = "1.894.1" dependencies = [ "chrono", "lazy_static", @@ -16463,7 +16463,7 @@ dependencies = [ [[package]] name = "windmill-autoscaling" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "axum", @@ -16482,7 +16482,7 @@ dependencies = [ [[package]] name = "windmill-common" -version = "1.894.0" +version = "1.894.1" dependencies = [ "aes-gcm", "aho-corasick", @@ -16603,7 +16603,7 @@ dependencies = [ [[package]] name = "windmill-dep-map" -version = "1.894.0" +version = "1.894.1" dependencies = [ "chrono", "futures", @@ -16623,7 +16623,7 @@ dependencies = [ [[package]] name = "windmill-git-sync" -version = "1.894.0" +version = "1.894.1" dependencies = [ "regex", "serde", @@ -16640,7 +16640,7 @@ dependencies = [ [[package]] name = "windmill-indexer" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "astral-tokio-tar", @@ -16667,7 +16667,7 @@ dependencies = [ [[package]] name = "windmill-jseval" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "futures", @@ -16684,7 +16684,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.894.0" +version = "1.894.1" dependencies = [ "itertools 0.14.0", "lazy_static", @@ -16700,7 +16700,7 @@ dependencies = [ [[package]] name = "windmill-mcp" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -16722,7 +16722,7 @@ dependencies = [ [[package]] name = "windmill-native-triggers" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -16754,7 +16754,7 @@ dependencies = [ [[package]] name = "windmill-oauth" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "arc-swap", @@ -16779,7 +16779,7 @@ dependencies = [ [[package]] name = "windmill-object-store" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-stream", @@ -16815,7 +16815,7 @@ dependencies = [ [[package]] name = "windmill-operator" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "futures", @@ -16834,7 +16834,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.894.0" +version = "1.894.1" dependencies = [ "convert_case 0.6.0", "serde", @@ -16843,7 +16843,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -16855,7 +16855,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -16867,7 +16867,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "gosyn", @@ -16879,7 +16879,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -16891,7 +16891,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -16903,7 +16903,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "nu-parser", @@ -16914,7 +16914,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16925,7 +16925,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "itertools 0.14.0", @@ -16937,7 +16937,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "ruff_python_ast", @@ -16948,7 +16948,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-recursion", @@ -16971,7 +16971,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -16983,7 +16983,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -16997,7 +16997,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -17014,7 +17014,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -17027,7 +17027,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde", @@ -17039,7 +17039,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -17057,7 +17057,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -17073,7 +17073,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "ruff_python_ast", @@ -17090,7 +17090,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -17104,7 +17104,7 @@ dependencies = [ [[package]] name = "windmill-queue" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-recursion", @@ -17142,7 +17142,7 @@ dependencies = [ [[package]] name = "windmill-runtime-nativets" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "const_format", @@ -17180,7 +17180,7 @@ dependencies = [ [[package]] name = "windmill-sql-datatype-parser-wasm" -version = "1.894.0" +version = "1.894.1" dependencies = [ "getrandom 0.3.4", "wasm-bindgen", @@ -17191,7 +17191,7 @@ dependencies = [ [[package]] name = "windmill-store" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-recursion", @@ -17226,7 +17226,7 @@ dependencies = [ [[package]] name = "windmill-test-utils" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17250,7 +17250,7 @@ dependencies = [ [[package]] name = "windmill-trigger" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17283,7 +17283,7 @@ dependencies = [ [[package]] name = "windmill-trigger-amqp" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17310,7 +17310,7 @@ dependencies = [ [[package]] name = "windmill-trigger-azure" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17343,7 +17343,7 @@ dependencies = [ [[package]] name = "windmill-trigger-email" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17363,7 +17363,7 @@ dependencies = [ [[package]] name = "windmill-trigger-gcp" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17397,7 +17397,7 @@ dependencies = [ [[package]] name = "windmill-trigger-http" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17434,7 +17434,7 @@ dependencies = [ [[package]] name = "windmill-trigger-kafka" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17457,7 +17457,7 @@ dependencies = [ [[package]] name = "windmill-trigger-mqtt" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17481,7 +17481,7 @@ dependencies = [ [[package]] name = "windmill-trigger-nats" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-nats", @@ -17505,7 +17505,7 @@ dependencies = [ [[package]] name = "windmill-trigger-postgres" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17540,7 +17540,7 @@ dependencies = [ [[package]] name = "windmill-trigger-sqs" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17568,7 +17568,7 @@ dependencies = [ [[package]] name = "windmill-trigger-websocket" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-trait", @@ -17594,7 +17594,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "bitflags 2.13.2", @@ -17614,7 +17614,7 @@ dependencies = [ [[package]] name = "windmill-worker" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-once-cell", @@ -17732,7 +17732,7 @@ dependencies = [ [[package]] name = "windmill-worker-volumes" -version = "1.894.0" +version = "1.894.1" dependencies = [ "bytes", "fs4", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 91a566b9ff..7cc8a60b12 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windmill" -version = "1.894.0" +version = "1.894.1" authors.workspace = true edition.workspace = true @@ -88,7 +88,7 @@ members = [ exclude = ["./windmill-duckdb-ffi-internal", "./parsers/windmill-parser-wasm"] [workspace.package] -version = "1.894.0" +version = "1.894.1" authors = ["Ruben Fiszel "] edition = "2021" diff --git a/backend/parsers/windmill-parser-wasm/Cargo.lock b/backend/parsers/windmill-parser-wasm/Cargo.lock index f59de64f9b..f792a4eca6 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.lock +++ b/backend/parsers/windmill-parser-wasm/Cargo.lock @@ -6340,7 +6340,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windmill-common" -version = "1.894.0" +version = "1.894.1" dependencies = [ "aes-gcm", "aho-corasick", @@ -6430,7 +6430,7 @@ dependencies = [ [[package]] name = "windmill-macros" -version = "1.894.0" +version = "1.894.1" dependencies = [ "proc-macro2", "quote", @@ -6442,7 +6442,7 @@ dependencies = [ [[package]] name = "windmill-parser" -version = "1.894.0" +version = "1.894.1" dependencies = [ "convert_case", "serde", @@ -6451,7 +6451,7 @@ dependencies = [ [[package]] name = "windmill-parser-bash" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6463,7 +6463,7 @@ dependencies = [ [[package]] name = "windmill-parser-csharp" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -6475,7 +6475,7 @@ dependencies = [ [[package]] name = "windmill-parser-go" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "gosyn", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "windmill-parser-graphql" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6499,7 +6499,7 @@ dependencies = [ [[package]] name = "windmill-parser-java" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -6511,7 +6511,7 @@ dependencies = [ [[package]] name = "windmill-parser-nu" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "nu-parser", @@ -6522,7 +6522,7 @@ dependencies = [ [[package]] name = "windmill-parser-php" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6533,7 +6533,7 @@ dependencies = [ [[package]] name = "windmill-parser-py" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "itertools 0.14.0", @@ -6545,7 +6545,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "ruff_python_ast", @@ -6556,7 +6556,7 @@ dependencies = [ [[package]] name = "windmill-parser-py-imports" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "async-recursion", @@ -6579,7 +6579,7 @@ dependencies = [ [[package]] name = "windmill-parser-r" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde_json", @@ -6591,7 +6591,7 @@ dependencies = [ [[package]] name = "windmill-parser-ruby" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6605,7 +6605,7 @@ dependencies = [ [[package]] name = "windmill-parser-rust" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "convert_case", @@ -6622,7 +6622,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6635,7 +6635,7 @@ dependencies = [ [[package]] name = "windmill-parser-sql-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde", @@ -6647,7 +6647,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6665,7 +6665,7 @@ dependencies = [ [[package]] name = "windmill-parser-ts-asset" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "serde-wasm-bindgen", @@ -6681,7 +6681,7 @@ dependencies = [ [[package]] name = "windmill-parser-wac" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "ruff_python_ast", @@ -6698,7 +6698,7 @@ dependencies = [ [[package]] name = "windmill-parser-wasm" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "getrandom 0.2.17", @@ -6730,7 +6730,7 @@ dependencies = [ [[package]] name = "windmill-parser-yaml" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "lazy_static", @@ -6744,7 +6744,7 @@ dependencies = [ [[package]] name = "windmill-types" -version = "1.894.0" +version = "1.894.1" dependencies = [ "anyhow", "bitflags", diff --git a/backend/parsers/windmill-parser-wasm/Cargo.toml b/backend/parsers/windmill-parser-wasm/Cargo.toml index a8701060bd..bdd04317ef 100644 --- a/backend/parsers/windmill-parser-wasm/Cargo.toml +++ b/backend/parsers/windmill-parser-wasm/Cargo.toml @@ -12,7 +12,7 @@ resolver = "2" members = ["."] [workspace.package] -version = "1.894.0" +version = "1.894.1" edition = "2021" authors = ["Ruben Fiszel "] diff --git a/backend/windmill-api/openapi.yaml b/backend/windmill-api/openapi.yaml index 17a280c987..69ae832125 100644 --- a/backend/windmill-api/openapi.yaml +++ b/backend/windmill-api/openapi.yaml @@ -1,7 +1,7 @@ openapi: "3.0.3" info: - version: 1.894.0 + version: 1.894.1 title: Windmill API contact: diff --git a/benchmarks/lib.ts b/benchmarks/lib.ts index 01ee881370..07fca4ae69 100644 --- a/benchmarks/lib.ts +++ b/benchmarks/lib.ts @@ -2,7 +2,7 @@ import { sleep } from "https://deno.land/x/sleep@v1.2.1/mod.ts"; import * as windmill from "https://deno.land/x/windmill@v1.174.0/mod.ts"; import * as api from "https://deno.land/x/windmill@v1.174.0/windmill-api/index.ts"; -export const VERSION = "v1.894.0"; +export const VERSION = "v1.894.1"; export async function login(email: string, password: string): Promise { return await windmill.UserService.login({ diff --git a/chat-sdk/package-lock.json b/chat-sdk/package-lock.json index 336f5e4dcf..515c97b7ed 100644 --- a/chat-sdk/package-lock.json +++ b/chat-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/chat-sdk", - "version": "1.894.0", + "version": "1.894.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/chat-sdk", - "version": "1.894.0", + "version": "1.894.1", "license": "Apache-2.0", "devDependencies": { "@ai-sdk/react": "^4.0.102", diff --git a/chat-sdk/package.json b/chat-sdk/package.json index 547a33e3e9..298c3417e6 100644 --- a/chat-sdk/package.json +++ b/chat-sdk/package.json @@ -1,7 +1,7 @@ { "name": "@windmill-labs/chat-sdk", "description": "Build chat interfaces on Windmill flows deployed in chat mode, from any frontend or raw app", - "version": "1.894.0", + "version": "1.894.1", "author": "Ruben Fiszel", "license": "Apache-2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/chat-sdk#readme", diff --git a/cli/src/core/constants.ts b/cli/src/core/constants.ts index 047a9d0517..ff2433b834 100644 --- a/cli/src/core/constants.ts +++ b/cli/src/core/constants.ts @@ -10,4 +10,4 @@ export const WM_FORK_PREFIX = "wm-fork"; // (e.g. utils.ts) can read it without importing main.ts and creating a circular // dependency (main → workspace → utils → main) that triggers a TDZ. // Re-exported from main.ts for backwards compatibility. -export const VERSION = "1.894.0"; +export const VERSION = "1.894.1"; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index c39ae36335..af68a3651e 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "@windmill-labs/components", - "version": "1.894.0", + "version": "1.894.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@windmill-labs/components", - "version": "1.894.0", + "version": "1.894.1", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/frontend/package.json b/frontend/package.json index 0c59bc0038..df9dc37179 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "@windmill-labs/components", - "version": "1.894.0", + "version": "1.894.1", "scripts": { "dev": "vite dev", "dev:ui-builder": "mv static/ui_builder static/ui_builder.dev-disabled 2>/dev/null || true ; trap 'mv static/ui_builder.dev-disabled static/ui_builder 2>/dev/null || true' EXIT ; vite dev", diff --git a/lsp/Pipfile b/lsp/Pipfile index 0ddb7e4341..cd9d2cb8f5 100644 --- a/lsp/Pipfile +++ b/lsp/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -wmill = ">=1.894.0" +wmill = ">=1.894.1" sendgrid = "*" mysql-connector-python = "*" pymongo = "*" diff --git a/openflow.openapi.yaml b/openflow.openapi.yaml index 2a02b85268..bd5a0a34b2 100644 --- a/openflow.openapi.yaml +++ b/openflow.openapi.yaml @@ -1,7 +1,7 @@ openapi: '3.0.3' info: - version: 1.894.0 + version: 1.894.1 title: OpenFlow Spec contact: name: Ruben Fiszel diff --git a/powershell-client/WindmillClient/WindmillClient.psd1 b/powershell-client/WindmillClient/WindmillClient.psd1 index d5a2b2e097..300f32579d 100644 --- a/powershell-client/WindmillClient/WindmillClient.psd1 +++ b/powershell-client/WindmillClient/WindmillClient.psd1 @@ -12,7 +12,7 @@ RootModule = 'WindmillClient.psm1' # Version number of this module. - ModuleVersion = '1.894.0' + ModuleVersion = '1.894.1' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index b5431a7f17..781e7ec1ed 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wmill" -version = "1.894.0" +version = "1.894.1" description = "A client library for accessing Windmill server wrapping the Windmill client API" license = "Apache-2.0" homepage = "https://windmill.dev" diff --git a/typescript-client/jsr.json b/typescript-client/jsr.json index a7ef48a8c7..cc3c137c4b 100644 --- a/typescript-client/jsr.json +++ b/typescript-client/jsr.json @@ -1,6 +1,6 @@ { "name": "@windmill/windmill", - "version": "1.894.0", + "version": "1.894.1", "exports": "./src/index.ts", "publish": { "exclude": ["!src", "./s3Types.ts", "./sqlUtils.ts", "./client.ts", "./wacError.ts", "./taskParams.ts"] diff --git a/typescript-client/package.json b/typescript-client/package.json index ff75e089f5..519357529d 100644 --- a/typescript-client/package.json +++ b/typescript-client/package.json @@ -1,7 +1,7 @@ { "name": "windmill-client", "description": "Windmill SDK client for browsers and Node.js", - "version": "1.894.0", + "version": "1.894.1", "author": "Ruben Fiszel", "license": "Apache 2.0", "homepage": "https://github.com/windmill-labs/windmill/tree/main/typescript-client#readme", diff --git a/version.txt b/version.txt index f7bab15b47..577ffe58b0 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.894.0 +1.894.1 diff --git a/windmill-yaml-validator/package-lock.json b/windmill-yaml-validator/package-lock.json index dcfee3e82e..4da9a39a00 100644 --- a/windmill-yaml-validator/package-lock.json +++ b/windmill-yaml-validator/package-lock.json @@ -1,12 +1,12 @@ { "name": "windmill-yaml-validator", - "version": "1.894.0", + "version": "1.894.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "windmill-yaml-validator", - "version": "1.894.0", + "version": "1.894.1", "license": "Apache 2.0", "dependencies": { "@stoplight/yaml": "^4.3.0", diff --git a/windmill-yaml-validator/package.json b/windmill-yaml-validator/package.json index f6490848f9..f80ecff785 100644 --- a/windmill-yaml-validator/package.json +++ b/windmill-yaml-validator/package.json @@ -1,6 +1,6 @@ { "name": "windmill-yaml-validator", - "version": "1.894.0", + "version": "1.894.1", "description": "YAML validator for Windmill flow, schedule, and trigger files", "main": "dist/index.js", "types": "dist/index.d.ts",