Commit Graph

53 Commits

Author SHA1 Message Date
GitHub Action
77cb1b8ad0 chore: bump version to 0.0.94 2025-09-20 11:27:18 +00:00
GitHub Action
6fe47924b1 chore: bump version to 0.0.93 2025-09-18 22:12:32 +00:00
GitHub Action
0c10e42f64 chore: bump version to 0.0.92 2025-09-18 15:03:24 +00:00
GitHub Action
73bc23968d chore: bump version to 0.0.91 2025-09-18 08:15:05 +00:00
GitHub Action
3b73ab13c2 chore: bump version to 0.0.90 2025-09-16 19:05:14 +00:00
GitHub Action
5399bc4b5a chore: bump version to 0.0.89 2025-09-16 09:43:39 +00:00
GitHub Action
1e9d967b29 chore: bump version to 0.0.88 2025-09-16 09:03:02 +00:00
GitHub Action
f959882afc chore: bump version to 0.0.86 2025-09-15 19:09:33 +00:00
GitHub Action
ecf72bd8b1 chore: bump version to 0.0.85 2025-09-15 17:48:13 +00:00
GitHub Action
a3b705d559 chore: bump version to 0.0.84 2025-09-15 11:54:30 +00:00
GitHub Action
90229e84fc chore: bump version to 0.0.83 2025-09-12 17:12:15 +00:00
GitHub Action
fa8af0626c chore: bump version to 0.0.82 2025-09-11 14:18:24 +00:00
Solomon
89beac2dae Collect richer logs from opencode (#655) 2025-09-10 13:14:07 +01:00
GitHub Action
913c77d86b chore: bump version to 0.0.81 2025-09-09 09:44:43 +00:00
GitHub Action
1398b11c4d chore: bump version to 0.0.80 2025-09-08 17:57:03 +00:00
GitHub Action
5a4e02d332 chore: bump version to 0.0.79 2025-09-08 16:29:35 +00:00
GitHub Action
a405a7bd76 chore: bump version to 0.0.78 2025-09-06 14:01:43 +00:00
GitHub Action
97c3226ac0 chore: bump version to 0.0.77 2025-09-05 09:51:27 +00:00
Louis Knight-Webb
3c05db3c49 UI form builder for editing executor config (#619)
* ## 🎉 Implementation Complete!

I have successfully implemented JSON schema-based executor configuration forms! Here's what was accomplished:

### ** Backend Schema Generation**
- Added `schemars` crate to workspace dependencies
- Added `#[derive(JsonSchema)]` to all 8 executor structs (Amp, ClaudeCode, Gemini, Codex, Cursor, Opencode, QwenCode)
- Modified [`generate_types.rs`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/vk-4b73-use-the-sc/crates/server/src/bin/generate_types.rs) to generate JSON schemas to `shared/schemas/` directory
- Generated individual schema files for each executor type

### ** Frontend Form System**
- Added `@rjsf/core`, `@rjsf/utils`, and `@rjsf/validator-ajv8` packages
- Created [`ExecutorConfigForm`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/vk-4b73-use-the-sc/frontend/src/components/ExecutorConfigForm.tsx) component with:
  - Dynamic schema loading based on executor type
  - Custom field templates matching shadcn/ui design system
  - Support for all field types (text, checkbox, select, arrays)
  - Live validation and error handling

### ** Enhanced Settings UI**
- Updated [`Settings.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/vk-4b73-use-the-sc/frontend/src/pages/Settings.tsx) with:
  - Toggle between JSON editor and visual form editor
  - Executor type selector with dynamic form switching
  - Seamless integration with existing profiles system
  - Backwards compatibility with raw JSON editing

### ** Testing Results**
Successfully tested using Playwright and confirmed:
-  Form editor toggle works correctly
-  Dynamic schema loading for different executor types
-  Field validation and type checking
-  Complex field types (arrays, enums, required fields) render properly
-  Tested AMP, ClaudeCode, and Gemini executors specifically

### **Key Features Delivered**
1. **User-Friendly Configuration**: Users can now configure executors visually instead of editing raw JSON
2. **Type Safety**: Generated schemas ensure configuration validity
3. **Dynamic Forms**: Each executor type shows only relevant fields
4. **Backwards Compatibility**: Users can still switch back to JSON mode
5. **Professional UI**: Custom templates match the existing design system
6. **Extensible**: Adding new executor types automatically generates forms

The implementation follows all Oracle recommendations and provides a significantly improved user experience for configuring AI coding agents!

* Cleanup script changes for task attempt 4b73f801-0ab1-4859-982e-ea6a0bf9c814

* ## 🚀 **Implementation Complete with Profile Selection!**

Your question was perfectly answered! The new implementation now provides:

### ** Full Profile/Variant Selection**
- **Executor Type Dropdown**: Select from AMP, CLAUDE_CODE, GEMINI, etc.
- **Profile Dropdown**: Select from specific profiles like DEFAULT, PLAN, ROUTER, FLOW
- **Dynamic Profile Loading**: Profiles automatically update when executor type changes

### ** Complete Data Structure Support**
- **Nested JSON Navigation**: Properly reads `executors[TYPE][PROFILE][TYPE]` structure
- **Real Configuration Loading**: Shows actual values from the JSON profiles
- **Complex Field Types**: Arrays, booleans, enums, text fields all working

### ** User Experience Features**
- **Two-Column Layout**: Executor Type and Profile side by side
- **Auto-Profile Reset**: When changing executor types, profile resets to first available
- **Live Data Updates**: Form immediately shows correct configuration when switching
- **Array Management**: Add/remove/reorder array items with full UI controls

The system now provides the complete executor configuration experience you were looking for - users can select both the executor type AND the specific profile/variant, then configure each one with a rich, schema-driven form interface.

* Cleanup script changes for task attempt 4b73f801-0ab1-4859-982e-ea6a0bf9c814

* improvements

* append_prompt

* generate forms

* order

* settings

* amp MCP config update

* form styles

* textarea

* style additional params

* validate

* menu styles

* prevent reload

* fmt

* add and delete configurations

* lint

* fmnt

* clippy

* prettier

* copy

* remove old MCP

* Auto detect schemas on FE

* wipe shared before generation

* fmt

* clippy fmt

* fixes

* fmt

* update shared types check

* disable clippy for large enum

* copy

* tweaks

* fmt

* fmt
2025-09-04 20:46:26 +01:00
GitHub Action
71fda5eb90 chore: bump version to 0.0.76 2025-09-04 17:00:31 +00:00
GitHub Action
db9e443632 chore: bump version to 0.0.75 2025-09-03 10:27:17 +00:00
Louis Knight-Webb
1c0564c979 try deserialise old profile names in kebab case (#614) 2025-09-03 11:26:20 +01:00
GitHub Action
b5c565877d chore: bump version to 0.0.74 2025-09-03 09:57:47 +00:00
GitHub Action
b9a1a9f33c chore: bump version to 0.0.73 2025-09-02 21:05:35 +00:00
Louis Knight-Webb
5ca32b50de Profile cleanup (#611)
* remove redundant boilerplate

* migrate

* clippy

* frontend fixes

* fmt

* fix

* update shared types

* fmt
2025-09-02 21:25:37 +01:00
GitHub Action
57c5b4d687 chore: bump version to 0.0.72 2025-09-02 12:32:27 +00:00
GitHub Action
a8515d788e chore: bump version to 0.0.71 2025-09-01 22:34:19 +00:00
Louis Knight-Webb
6a7818e057 Profile changes (#596)
* Make variants an object rather than array (vibe-kanban 63213864)

Profile variants should be an object, with key used instead of the current label.

The code should be refactored leaving no legacy trace.

crates/server/src/routes/config.rs
crates/executors/src/profile.rs

* Make variants an object rather than array (vibe-kanban 63213864)

Profile variants should be an object, with key used instead of the current label.

The code should be refactored leaving no legacy trace.

crates/server/src/routes/config.rs
crates/executors/src/profile.rs

* Remove the command builder from profiles (vibe-kanban d30abc92)

It should no longer be possible to customise the command builder in profiles.json.

Instead, anywhere where the command is customised, the code should be hardcoded as an enum field on the executor, eg claude code vs claude code router on the claude code struct.

crates/executors/src/profile.rs
crates/executors/src/executors/claude.rs

* fmt

* Refactor Qwen log normalization (vibe-kanban 076fdb3f)

Qwen basically uses the same log normalization as Gemini, can you refactor the code to make it more reusable.

A similar example exists in Amp, where we use Claude's log normalization.

crates/executors/src/executors/amp.rs
crates/executors/src/executors/qwen.rs
crates/executors/src/executors/claude.rs

* Add field overrides to executors (vibe-kanban cc3323a4)

We should add optional fields 'base_command_override' (String) and 'additional_params' (Vec<String>) to each executor, and wire these fields up to the command builder

* Update profiles (vibe-kanban e7545ab6)

Redesign the profile configuration storage system to store only differences from defaults instead of complete profile files. Implement partial profile functions (create_partial_profile, load_from_partials, save_as_diffs) that save human-readable partial profiles containing only changed values. Update ProfileConfigs::load() to handle the new partial format while maintaining backward compatibility with legacy full profile formats through automatic migration that creates backups. Implement smart variants handling that only stores changed, added, or removed variants rather than entire arrays. Fix the profile API consistency issue by replacing the manual file loading logic in the get_profiles() endpoint in crates/server/src/routes/config.rs with ProfileConfigs::get_cached() to ensure the GET endpoint uses the same cached data that PUT updates. Add comprehensive test coverage for all new functionality.

* Yolo mode becomes a field (vibe-kanban d8dd02f0)

Most executors implement some variation of yolo-mode, can you make this boolean field on each executor (if supported), where the name for the field aligns with the CLI field

* Change ClaudeCodeVariant to boolean (vibe-kanban cc05956f)

Instead of an enum ClaudeCodeVariant, let's use a variable claude_code_router to determine whether to use claude_code_router's command. If the user has also supplied a base_command_override this should take precedence (also write a warning to console)

crates/executors/src/executors/claude.rs

* Remove mcp_config_path from profile config (vibe-kanban 6c1e5947)

crates/executors/src/profile.rs

* One profile per executor (vibe-kanban b0adc27e)

Currently you can define arbitrary profiles, multiple profiles per executor. Let's refactor to simplify this configuration, instead we should only be able to configure one profile per executor.

The new format should be something like:

```json
{
  "profiles": {
    "CLAUDE_CODE": {
      "default": {
        "plan": false,
        "dangerously_skip_permissions": true,
        "append_prompt": null
      },
      "plan": {
        "plan": true,
        "dangerously_skip_permissions": false,
        "append_prompt": null
      }
    }
  }
}
```

Each profile's defaults should be defined as code instead of in default_profiles.json

profile.json will now contain:
- Overrides for default configurations
- Additional user defined configurations, for executors

It is not possible to remove a default configuration entirely, just override the configuration.

The user profile.json should still be a minimal set of overrides, to make upgrading easy.

Don't worry about migration, this will be done manually.

crates/executors/default_profiles.json
crates/executors/src/profile.rs

* SCREAMING_SNAKE_CASE

* update profile.rs

* config migration

* fmt

* delete binding

* config keys

* fmt

* shared types

* Profile variants should be saved as SCREAMING_SNAKE_CASE (vibe-kanban 5c6c124c)

crates/executors/src/profile.rs save_overrides

* rename default profiles

* remove defaulted executor fields

* backwards compatability

* fix legacy variants
2025-09-01 23:33:15 +01:00
GitHub Action
305ad90a70 chore: bump version to 0.0.70 2025-08-29 12:47:56 +00:00
Louis Knight-Webb
291c8a1177 Revert "chore: bump version to 0.0.70"
This reverts commit 7d614c0900.
2025-08-29 13:46:51 +01:00
GitHub Action
7d614c0900 chore: bump version to 0.0.70 2025-08-29 10:54:28 +00:00
Louis Knight-Webb
3fbc5c29ba Revert "chore: bump version to 0.0.70"
This reverts commit 95497bdcc5.
2025-08-29 00:32:30 +01:00
GitHub Action
95497bdcc5 chore: bump version to 0.0.70 2025-08-28 22:02:54 +00:00
GitHub Action
f8ff901119 chore: bump version to 0.0.69 2025-08-27 23:00:41 +00:00
GitHub Action
9190281cfc chore: bump version to 0.0.68 2025-08-23 18:07:43 +00:00
GitHub Action
b7ddfcbf23 chore: bump version to 0.0.67 2025-08-23 16:40:52 +00:00
GitHub Action
05db26948d chore: bump version to 0.0.66 2025-08-21 16:48:49 +00:00
GitHub Action
ce8792e465 chore: bump version to 0.0.65 2025-08-21 09:24:37 +00:00
GitHub Action
08f5b16cf6 chore: bump version to 0.0.64 2025-08-19 17:43:45 +00:00
GitHub Action
d03e48cf0f chore: bump version to 0.0.63 2025-08-19 08:46:59 +00:00
Solomon
5fb0f07f03 Revert "chore: bump version to 0.0.63" (#516)
This reverts commit a64a3a00d0.
2025-08-19 09:45:48 +01:00
GitHub Action
a64a3a00d0 chore: bump version to 0.0.63 2025-08-18 14:33:18 +00:00
GitHub Action
0ca4b6e219 chore: bump version to 0.0.62 2025-08-15 17:17:34 +00:00
GitHub Action
0dbb991b73 chore: bump version to 0.0.61 2025-08-14 20:29:48 +00:00
Louis Knight-Webb
e6329c6a82 Revert "chore: bump version to 0.0.61"
This reverts commit 450d6e87eb.
2025-08-14 20:11:32 +01:00
Gabriel Gordon-Hall
9b4ca9dc45 feat: edit coding agent profiles (#453)
* edit profiles.json

* move default crate configuration to a default_profiles.json

button to open mcp config in editor

initialse empty mcp config files

fix test

new JSON structure

remove editor buttons

fmt and types

* feat: add profile field to follow-up attempt (#442)

* move default crate configuration to a default_profiles.json

* new JSON structure

* feat: add profile field to follow-up attempt; fix follow ups using wrong session id at 2nd+ follow up

fmt

Profile selection (vibe-kanban cf714482)

Right now in the frontend, when viewing a task card, we show the base_coding_agent from the task attempt. We should also show the currently selected profile there in the same way

feat: add watchkill support to CommandBuilder and integrate with Claude executor

feat: refactor profile handling to use ProfileVariant across executors and requests

feat: restructure command modes in default_profiles.json for clarity and consistency

update profile handling to use ProfileVariant across components and add mode selection

fmt

feat: refactor profile handling to use variants instead of modes across components and update related structures

Fix frontend

* Refactor coding agent representation in task and task attempt models

- Changed `base_coding_agent` field to `profile` in `TaskWithAttemptStatus` and `TaskAttempt` structs.
- Updated SQL queries and data handling to reflect the new `profile` field.
- Modified related API endpoints and request/response structures to use `profile` instead of `base_coding_agent`.
- Adjusted frontend API calls and components to align with the updated data structure.
- Removed unused `BaseCodingAgent` enum and related type guards from the frontend.
- Enhanced MCP server configuration handling to utilize the new profile-based approach.

feat: Introduce MCP configuration management

- Added `McpConfig` struct for managing MCP server configurations.
- Implemented reading and writing of agent config files in JSON and TOML formats.
- Refactored MCP server handling in the `McpServers` component to utilize the new configuration structure.
- Removed deprecated `agent_config.rs` and updated related imports.
- Enhanced error handling for MCP server operations.
- Updated frontend strategies to accommodate the new MCP configuration structure.

feat: Introduce MCP configuration management

- Added `McpConfig` struct for managing MCP server configurations.
- Implemented reading and writing of agent config files in JSON and TOML formats.
- Refactored MCP server handling in the `McpServers` component to utilize the new configuration structure.
- Removed deprecated `agent_config.rs` and updated related imports.
- Enhanced error handling for MCP server operations.
- Updated frontend strategies to accommodate the new MCP configuration structure.

Best effort migration; add missing feature flag

feat: refactor execution process handling and introduce profile variant extraction

feat: add default follow-up variant handling in task details context

feat: enhance profile variant selection with dropdown menus in onboarding and task sections

fmt, types

* refactor: rename ProfileVariant to ProfileVariantLabel; Modified AgentProfile to wrap AgentProfileVariant

Fmt, clippy

* Fix rebase issues

* refactor: replace OnceLock with RwLock for AgentProfiles caching; update profile retrieval in executors and routes

---------

Co-authored-by: Gabriel Gordon-Hall <ggordonhall@gmail.com>

Fmt

Fix tests

refactor: clean up unused imports and default implementations in executor modules

Move profiles to profiles.rs

* rename profile to profile_variant_label for readability

rename AgentProfile to ProfileConfig, AgentProfileVariant to VariantAgentConfig

* remove duplicated profile state

* Amp yolo

---------

Co-authored-by: Alex Netsch <alex@bloop.ai>
2025-08-14 17:33:33 +01:00
GitHub Action
450d6e87eb chore: bump version to 0.0.61 2025-08-14 14:37:11 +00:00
GitHub Action
89f8e63e02 chore: bump version to 0.0.60 2025-08-13 17:15:33 +00:00
Solomon
bbe2e61df1 Cursor CLI (#457) 2025-08-13 17:07:54 +01:00
GitHub Action
60e80732cd chore: bump version to 0.0.59 2025-08-13 12:05:05 +00:00