Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
0d5e433
draft
centdix Oct 23, 2025
3418b8a
Phase 1: Remove deprecated granular flow AI tools
centdix Oct 28, 2025
1e19380
use minified json
centdix Oct 28, 2025
9b543e2
use openflow in system prompt
centdix Oct 28, 2025
3838cb5
handle inputs
centdix Oct 28, 2025
1351d55
cleaning
centdix Oct 28, 2025
9526b93
cleaning
centdix Nov 1, 2025
2b17f8e
diffmode in flowgraph
centdix Nov 1, 2025
756a928
remove acceptrejectmodule
centdix Nov 3, 2025
0398eeb
use new diff mode
centdix Nov 3, 2025
e91e878
cleaning
centdix Nov 3, 2025
79663d3
better props
centdix Nov 3, 2025
ab1d99b
better logic
centdix Nov 3, 2025
e37924f
cleaning
centdix Nov 3, 2025
a4e85ed
accept reject logic
centdix Nov 3, 2025
089c6e1
use get set
centdix Nov 4, 2025
e4a632c
draft manager
centdix Nov 4, 2025
33d4b0d
use diff manager
centdix Nov 7, 2025
7e9b67c
draft
centdix Nov 7, 2025
609fc63
Refactor flowDiffManager to be instance-based with auto-computation
centdix Nov 7, 2025
283dbd4
Refactor FlowGraphV2 to own diffManager instance
centdix Nov 7, 2025
848a049
Update FlowModuleSchemaMap to use FlowGraphV2's diffManager
centdix Nov 7, 2025
5db469d
Update FlowAIChat to use flowModuleSchemaMap's diffManager
centdix Nov 7, 2025
002d886
Verify FlowGraphDiffViewer compatibility with refactored architecture
centdix Nov 7, 2025
0019081
Update graph components to use diffManager instead of callbacks
centdix Nov 7, 2025
36a79cc
Fix removed modules not showing in diff viewer
centdix Nov 7, 2025
d1b1892
Simplify accept/reject logic by removing actions instead of toggling …
centdix Nov 7, 2025
6dd7636
cleaning
centdix Nov 7, 2025
6fecbff
Merge branch 'main' into fg/flowchat
centdix Nov 9, 2025
7a5886b
fix logic
centdix Nov 9, 2025
6e39ce7
make diff drawer part of manager
centdix Nov 9, 2025
3bc1d10
accept submodules
centdix Nov 9, 2025
0267ffd
fixes
centdix Nov 18, 2025
af72ea9
Phase 4: Add checkAndApplyChanges() helper to flowDiffManager
centdix Nov 18, 2025
0b86336
Phase 2: Simplify acceptModule() - only modify mergedFlow
centdix Nov 18, 2025
2f553b0
Phase 3: Simplify rejectModule() - only modify mergedFlow
centdix Nov 18, 2025
3c7db1a
Phase 5: Verify acceptAll/rejectAll work with new architecture
centdix Nov 18, 2025
0234c8a
Phase 6: Remove FlowGraphV2 reactive effect that updates afterFlow
centdix Nov 18, 2025
27081bc
Phase 7: Update FlowAIChat setFlowYaml to use diffManager
centdix Nov 18, 2025
3ce9d4e
Fix linter warnings
centdix Nov 18, 2025
1cbfe5e
Update plan document with implementation status
centdix Nov 18, 2025
74dfb29
Add comprehensive implementation summary document
centdix Nov 18, 2025
756f3ae
Show pending modules in editor panel
centdix Nov 18, 2025
653ae6f
Add implementation summary for show pending modules feature
centdix Nov 18, 2025
c669850
fix
centdix Nov 18, 2025
c87bfcd
shorter system prompt
centdix Nov 18, 2025
4422380
Fix Input schema diff mode issues
centdix Nov 18, 2025
c054d4b
Disable delete and move buttons when in pending mode
centdix Nov 18, 2025
3970809
no move or delte when reviewing
centdix Nov 18, 2025
2da7b24
use context
centdix Nov 18, 2025
4ec0265
inline script reduction
centdix Nov 23, 2025
4b14a1e
use json
centdix Nov 23, 2025
f1f4805
rollback to direct modif
centdix Nov 25, 2025
0f97a63
Merge branch 'main' into fg/flowchat
centdix Nov 25, 2025
024d49e
fix merge
centdix Nov 25, 2025
dd4e07d
cleaning
centdix Nov 25, 2025
64d5ab3
fix reject removed
centdix Nov 25, 2025
21e248c
add set step code tool
centdix Nov 25, 2025
be4b3b8
better prompt
centdix Nov 25, 2025
fe95008
add back relevant tools
centdix Nov 25, 2025
4e6ce1a
add back accept reject
centdix Nov 25, 2025
9ce6c01
use edit mode for pending
centdix Nov 26, 2025
d58f607
fix input
centdix Nov 26, 2025
607449e
remove unneeded effect
centdix Nov 26, 2025
c04d5d5
cleaner + bug fix
centdix Nov 26, 2025
ae3509e
fix failure and preprocessor
centdix Nov 26, 2025
d238580
fix show diff for failure module
centdix Nov 26, 2025
d0ba24f
fix accept reject on failre module
centdix Nov 26, 2025
4259d8c
no auto add module to context
centdix Nov 26, 2025
9ad2bfb
cleaning
centdix Nov 26, 2025
2ee41b9
add back effect
centdix Nov 26, 2025
249257a
cleaning
centdix Nov 27, 2025
a247abd
fix multiple setflowjson
centdix Nov 27, 2025
52ba160
track effectivemoduleactions for graph rendering
centdix Nov 27, 2025
e42125d
nit prompt
centdix Nov 27, 2025
e6f0934
styling
centdix Nov 27, 2025
bfe4467
rm md files
centdix Nov 27, 2025
cb131ab
rm flake copy
centdix Nov 27, 2025
66cc99a
cleaning
centdix Nov 27, 2025
adb4611
fix z index
centdix Nov 27, 2025
bf6183f
fix revert
centdix Nov 27, 2025
7251762
only change before after
centdix Nov 28, 2025
50fc267
use add remove modify tools
centdix Nov 28, 2025
6df1530
input + failure + preproc tools
centdix Nov 28, 2025
b783498
parsing issues
centdix Nov 28, 2025
5f678ad
nit
centdix Nov 28, 2025
9b5144f
use raw schema for tools
centdix Nov 28, 2025
bf244e5
resolve ref for gemini
centdix Nov 28, 2025
bcf214f
fix schema
centdix Nov 28, 2025
c53b0ca
show test on graph
centdix Nov 28, 2025
e5cfe9c
much cleaner logic
centdix Nov 29, 2025
be6b1ef
ignore empty assets
centdix Nov 29, 2025
641714e
Remove debug console.log statements from production code
centdix Nov 29, 2025
b41b6ab
Remove debug $inspect calls from FlowGraphV2
centdix Nov 29, 2025
78996d1
Add error logging to setFlowJson before re-throwing
centdix Nov 29, 2025
5b85506
Standardize null/undefined handling to prefer null
centdix Nov 29, 2025
1cb75e1
Remove debug console.log from AI tool functions
centdix Nov 29, 2025
93523ae
Extract special module IDs to constants
centdix Nov 29, 2025
39b257e
Add cleanup for diffDrawer reference on unmount
centdix Nov 29, 2025
a62ba5b
Use structuredClone instead of JSON.parse(JSON.stringify())
centdix Nov 29, 2025
834cd53
Cache module lookups in reconstructMergedFlow
centdix Nov 29, 2025
b889543
Revert "Use structuredClone instead of JSON.parse(JSON.stringify())"
centdix Nov 29, 2025
d482a1c
cleaning
centdix Nov 29, 2025
2cb2ac4
allow delete
centdix Nov 29, 2025
cbe246a
better openflow for ai agents + truncate system prompt
centdix Nov 29, 2025
4af56ee
handle ai agent tools
centdix Nov 29, 2025
1ab213c
fix set code for tool
centdix Nov 29, 2025
99f2a17
fix wrong cancel request called
centdix Nov 29, 2025
821336f
mark tool calls as canceled
centdix Nov 29, 2025
9d28d54
get lang instructions
centdix Nov 29, 2025
63c0e1b
Merge branch 'main' into fg/flowchat
centdix Nov 29, 2025
000b304
use streamiing args
centdix Nov 29, 2025
cb1b5f7
give db url to claude
centdix Nov 29, 2025
b2ac763
fix revert
centdix Nov 29, 2025
581f6b8
save and clear when leaving editor
centdix Nov 29, 2025
a97622a
keep whitespace in user message
centdix Nov 29, 2025
89e30f8
uniformize colors
centdix Nov 29, 2025
5f7f98d
fix diff button
centdix Nov 30, 2025
0ce52f9
remove db from backend claude
centdix Nov 30, 2025
460713a
remove move module tool
centdix Nov 30, 2025
69fbb29
no failure and preprocessor
centdix Nov 30, 2025
b7cab21
fix error given to llm
centdix Nov 30, 2025
ac33597
fix z index
centdix Nov 30, 2025
aeebc10
fix ts errors
centdix Nov 30, 2025
5590e5c
cleaning
centdix Nov 30, 2025
9120016
fix add module logic
centdix Dec 1, 2025
7da37a5
fix(copilot): add 'tools' to branchPath description for aiagent conta…
centdix Dec 1, 2025
0534f92
fix(copilot): correct AI agent tool IDs and summaries documentation
centdix Dec 1, 2025
212f1ad
fix(copilot): remove reference to non-existent set_flow_json tool
centdix Dec 1, 2025
5aadae4
fix(copilot): clarify inspect_inline_script is read-only
centdix Dec 1, 2025
14e0252
fix(copilot): clarify afterId behavior for AI agent tools
centdix Dec 1, 2025
425dce0
refactor(copilot): remove unused id param from get_instructions_for_c…
centdix Dec 1, 2025
a71e930
docs(copilot): add result format to search_scripts tool description
centdix Dec 1, 2025
0e2c221
docs(copilot): add result format to resource_type tool description
centdix Dec 1, 2025
b3d2e91
nit
centdix Dec 1, 2025
016c655
Add support for adding branches to branchall/branchone via add_module
centdix Dec 1, 2025
03a463c
nit
centdix Dec 1, 2025
886632b
add remove branch tool
centdix Dec 1, 2025
ff570b7
check all ids for duplicates
centdix Dec 1, 2025
d4ace5d
no dup
centdix Dec 1, 2025
65ec209
nit
centdix Dec 1, 2025
d8e2b63
cleaning
centdix Dec 1, 2025
bb3fd8d
fix dup ids
centdix Dec 1, 2025
f9ebcef
split core.ts
centdix Dec 3, 2025
082efd0
only mount diff drawer if useful
centdix Dec 3, 2025
092e91e
remove wrong logic
centdix Dec 3, 2025
775875b
update exprs
centdix Dec 3, 2025
aeb160f
fix
centdix Dec 3, 2025
b56fc92
chore(flow): Add unit tests to flow diff manager (#7291)
centdix Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ When implementing new features in Windmill, follow these best practices:

- Backend (Rust): @backend/rust-best-practices.mdc + @backend/summarized_schema.txt
- Frontend (Svelte 5): @frontend/svelte5-best-practices.mdc

## Querying the Database

To query the database directly, use psql with the following connection string:

```bash
psql postgres://postgres:changeme@localhost:5432/windmill
```

This can be helpful for:

- Inspecting database state during development
- Testing queries before implementing them in Rust
- Debugging data-related issues
13 changes: 0 additions & 13 deletions backend/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,3 @@

1. Update database schema with migration if necessary
2. Update backend/windmill-api/openapi.yaml after modifying API endpoints

## Querying the Database

To query the database directly, use psql with the following connection string:

```bash
psql postgres://postgres:changeme@localhost:5432/windmill
```

This can be helpful for:
- Inspecting database state during development
- Testing queries before implementing them in Rust
- Debugging data-related issues
52 changes: 52 additions & 0 deletions frontend/minifiedOpenflowJson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env bash

set -e

# Script to generate minified OpenFlow JSON for frontend AI system prompt
script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source_file="${script_dirpath}/../windmill-yaml-validator/src/gen/openflow.json"
output_dirpath="${script_dirpath}/src/lib/components/copilot/chat/flow"
output_file="${output_dirpath}/openFlow.json"

echo "Generating minified OpenFlow JSON..."

# Validate source file exists
if [ ! -f "${source_file}" ]; then
echo "Error: Source file not found: ${source_file}"
echo "Please run windmill-yaml-validator/gen_openflow_schema.sh first"
exit 1
fi

# Create output directory if it doesn't exist
mkdir -p "${output_dirpath}"

# Minify JSON by removing all whitespace
node -e "
const fs = require('fs');
const sourceFile = '${source_file}';
const outputFile = '${output_file}';

try {
const schema = JSON.parse(fs.readFileSync(sourceFile, 'utf8'));

// Minify: stringify without spaces
const minified = JSON.stringify(schema);

fs.writeFileSync(outputFile, minified);

const originalSize = fs.statSync(sourceFile).size;
const minifiedSize = fs.statSync(outputFile).size;
const savings = ((originalSize - minifiedSize) / originalSize * 100).toFixed(1);

console.log(' Minified OpenFlow JSON generated successfully');
console.log(' Original size: ' + (originalSize / 1024).toFixed(1) + ' KB');
console.log(' Minified size: ' + (minifiedSize / 1024).toFixed(1) + ' KB');
console.log(' Savings: ' + savings + '%');
console.log(' Output: ' + outputFile);
} catch (e) {
console.error('Error minifying JSON:', e.message);
process.exit(1);
}
"

echo "Done!"
Loading
Loading