Commit Graph

62 Commits

Author SHA1 Message Date
GitHub Action
60e80732cd chore: bump version to 0.0.59 2025-08-13 12:05:05 +00:00
GitHub Action
07b322e229 chore: bump version to 0.0.58 2025-08-12 17:46:59 +00:00
GitHub Action
d74dd19b7a chore: bump version to 0.0.57 2025-08-11 22:59:13 +00:00
Louis Knight-Webb
3ed134d7d5 Deployments (#414)
* init deployment

* refactor state

* pre executor app state refactor

* deployment in app state

* clone

* fix executors

* fix dependencies

* command runner via app_state

* clippy

* remove dependency on ENVIRONMENT from command_runner

* remove dependency on ENVIRONMENT from command_runner

* build fix

* clippy

* fmt

* featues

* vscode lints for cloud

* change streaming to SSE (#338)

Remove debug logging

Cleanup streaming logic

feat: add helper function for creating SSE stream responses for stdout/stderr

* update vscode guidance

* move start

* Fix executors

* Move command executor to separate file

* Fix imports for executors

* Partial fix test_remote

* Fix

* fmt

* Clippy

* Add back GitHub cloud only routes

* cleanup and shared types

* Prepare for separate cloud crate

* Init backend-common workspace

* Update

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Projects (and sqlx)

* Tasks

* WIP

* Amp

* Backend executor structs

* Task attempts outline

* Move to crates folder

* Cleanup frontend dist

* Split out executors into separate crate

* Config and sentry

* Create deployment method helper

* Router

* Config endpoints

* Projects, analytics

* Update analytics paths when keys not provided

* Tasks, task context

* Middleware, outline task attempts

* Delete backend common

* WIP container

* WIP container

* Migrate worktree_path to container_ref (generic)

* WIP container service create

* Launch container

* Fix create task

* Create worktree

* Move logic into container

* Execution outline

* Executor selection

* Use enum_dispatch to route spawn tree

* Update route errors

* Implement child calling

* Move running executions to container

* Add streaming with history

* Drop cloud WIP

* Logs

* Logs

* Refactor container logic to execution tracker

* Chunk based streaming and cleanup

* Alex/mirgate task templates (#350)

* Re-enable task templates; migrate routes; migrate args and return types

* Refactor task template routes; consolidate list functions into get_templates with query support

* Fix get_templates function

* Implement amp executor

* Gemini WIP

* Make streaming the event store reusable

* Rewrite mutex to rwlock

* Staging for normalised logs impl

* Store custom LogMsg instead of event as more flexible

* Cleanup

* WIP newline stream for amp (tested and working, needs store impl)

* refactor: move stranded `git2` logic out of `models` (#352)

* remove legacy command_executor; move git2 logic into GitService

* remove legacy cloud runner

* put back config get route

* remove dead logic

* WIP amp normalisation

* Normalized logs now save to save msg store as raw

* Refactor auth endpoints (#355)

* Re-enable auth;Change auth to use deployment

Add auth service

Move auth logic to service

Add auth router and service integration to deployment

Refactor auth service and routes to use octocrab

Refactor auth error handling and improve token validation responses

* rename auth_router to router for consistency

* refactor: rename auth_service to auth for consistency (#356)

* Refactor filesystem endpoints (#357)

* feat: implement filesystem service with directory listing and git repo detection

* refactor: update filesystem routes; sort repos by last modfied

* Gemini executor logs normalization

* feat: add sound file serving endpoint and implement sound file loading (#358)

* Gemini executor followup (#360)

* Sync logs to db (#359)

* Exit monitor

* Outline stream logs to DB

* Outline read from the message store

* Add execution_process_logs, store logs in DB

* Stream logs from DB

* Normalized logs from DB

* Remove eronious .sqlx cache

* Remove execution process stdout and stderr

* Update execution process record on completion

* Emit session event for amp

* Update session ID when event is emitted

* Split local/common spawn fn

* Create initial executor session

* Move normalized logs into executors

* Store executor action

* Refactor updated_at to use micro seconds

* Follow up executions (#363)

* Follow up request handler scaffold
Rename coding agent initial / follow up actions

* Follow ups

* Response for follow up

* Simplify execution actions for coding agents

* fix executor selection (#362)

* refactor: move logic out of `TaskAttempt` (#361)

* re-enable /diff /pr /rebase /merge /branch-status /open-editor /delete-file endpoints

* address review comments

* remove relic

* Claude Code (#365)

* Use ApiError rather than DeploymentError type in routes (#366)

* Fix fe routes (#367)

* /api/filesystem/list -> /api/filesystem/directory

* /api/projects/:project_id/tasks -> /api/tasks

* Remove with-branch

* /api/projects/:project_id/tasks/:task_id -> /api/tasks/:task_id

* Post tasks

* Update template routes

* Update BE for github poll endpoint, FE still needs updating

* WIP freeze old types

* File picker fix

* Project types

* Solve tsc warna

* Remove constants and FE cloud mode

* Setup for /api/info refactor

* WIP config refactor

* Remove custom mapping to coding agents

* Update settings to fix code editor

* Config fix (will need further changes once attempts types migrated)

* Tmp fix types

* Config auto deserialisation

* Alex/refactor background processes (#369)

* feat: add cleanup for orphaned executions at startup

* Fix worktree cleanup; re add worktree cleanup queries

* refactor worktree cleanup for orphaned and externally deleted worktrees

* Fix compile error

* refactor: container creation lifecycle (#368)

* Consolidate worktree logic in the WorktreeManager

* move auxiliary logic into worktree manager

* fix compile error

* Rename core crate to server

* Fix npm run dev

* Fix fe routes 2 (#371)

* Migrate config paths

* Update sounds, refactor lib.rs

* Project FE types

* Branch

* Cleanup sound constants

* Template types

* Cleanup file search and other unused types

* Handle errors

* wip: basic mcp config editing (#351)

* Re-add notification service, move assets to common dir (#373)

add config to containter, add notifications into exit monitor

Refctor notification service

Refactor notifications

* Stderr support (#372)

Refactor plain-text log processing and resuse it for gemini, stderr, and potentially other executors.

* Fix fe routes 3 (#378)

* Task attempts

* Task types

* Get single task attempt endpoint

* Task attempt response

* Branch status

* More task attempt endpoints

* Task attempt children

* Events WIP

* Stream events when task, task attempt and execution process change status

* Fixes

* Cleanup logs

* Alex/refactor pr monitor (#377)

* Refactor task status updates and add PR monitoring functionality

* Add PR monitoring service and integrate it into deployment flow

Refactor GitHub token retrieval in PR creation and monitoring services

Fix github pr regex

* Fix types

* refactor: dev server logic (#374)

* reimplement start dev server logic

* robust process group killing

* Fix fe routes 4 (#383)

* Add endpoint to get execution processes

* Update types for execution process

* Further execution process type cleanup

* Wipe existing logs display

* Further process related cleanup

* Update get task attempt endpoint

* Frozen type removal

* Diff types

* Display raw logs WIP

* fix: extract session id once per execution (#386)

* Fix fe routes 5 (#387)

* Display normalized logs

* Add execution-process info endpoint

* WIP load into virtualized

* Simplified unified logs

* Raw logs also use json patch now (simplifies FE keys)

* WIP

* Fix FE rendering

* Remove timestamps

* Fix conversation height

* Cleanup entry display

* Spacing

* Mark the boundaries between different execution processes in the logs

* Deduplicate entries

* Fix replace

* Fmt

* put back stop execution process endpoint (#384)

* Fix fe routes 6 (#391)

* WIP cleanup to remove related tasks and plans

* Refactor active tab

* Remove existing diff FE logic

* Rename tab

* WIP stream file events

* WIP track FS events

* Respect gitignore

* Debounced event

* Deduplicate events

* Refactor git diff

* WIP stream diffs

* Resolve issue with unstaged changes

* Diff filter by files

* Stream ongoing changes

* Remove entries when reset and json patch safe entry ids

* Update the diff tab

* Cleanup logs

* Cleanup

* Error enum

* Update create PR attempt URL

* Follow up and open in IDE

* Fix merge

* refactor: introduce `AgentProfiles` (#388)

* automatically schedule coding agent execution after setup script

* profiles implementation

* add next_action field to ExecutorAction type

* make start_next_action generic to action type

Remove ProfilesManager and DefaultCommandBuilder structs

* store executor_action_type in the DB

* update shared types

* rename structs

* fix compile error

* Refactor remaining task routes (#389)

* Implement deletion functionality for execution processes and task attempts, including recursive deletion of associated logs.

refactor: deletion process for task attempts and associated entities

feat: Refactor task and task attempt models to remove executor field

- Removed the `executor` field from the `task_attempt` model and related queries.
- Updated the `CreateTaskAndStart` struct to encapsulate task and attempt creation.
- Modified the task creation and starting logic to accommodate the new structure.
- Adjusted SQL queries and migration scripts to reflect the removal of the executor.
- Enhanced notification service to handle executor types dynamically.
- Updated TypeScript types to align with the changes in the Rust models.

refactor: remove CreateTaskAndStart type and update related code

Add TaskAttemptWithLatestProfile and alias in frontend

Fix silent failure of sqlx builder

Remove db migration

Fix rebase errors

* Remove unneeded delete logic; move common container logic to service

* Profiles fe (#398)

* Get things compiling

* Refactor the config

* WIP fix task attempt creation

* Further config fixes

* Sounds and executors in settings

* Fix sounds

* Display profile config

* Onboarding

* Remove hardcoded agents

* Move follow up attempt params to shared

* Remove further shared types

* Remove comment (#400)

* Codex (#380)

* only trigger error message when RunReason is SetupScript (#396)

* Opencode (#385)

* Restore Gemini followups (#392)

* fix task killing (#395)

* commit changes after successful execution (#403)

* Claude-code-router (#410)

* Amp tool use (#407)

* Config upgrades (#405)

* Versioned config

* Upgrade fixes

* Save config after migration

* Scoping

* Update Executor types

* Theme types fix

* Cleanup

* Change theme selector to an enum

* Rename config schema version field

* Diff improve (#412)

* Ensure container exists

* Safe handling when ExecutorAction isn't valid JSON in DB

* Reset data when endpoint changes

* refactor: conditional notification (#408)

* conditional notification

* fix next action run_reason

* remove redundant log

* Fix GitHub auth frontend (#404)

* fix frontend github auth

* Add GitHub error handling and update dependencies

- Introduced GitHubMagicErrorStrings enum for consistent error messaging related to GitHub authentication and permissions.
- Updated the GitHubService to include a check_token method for validating tokens.
- Refactored auth and task_attempts routes to utilize the new error handling.
- Added strum_macros dependency in Cargo.toml for enum display.

* Refactor GitHub error handling and API response structure to use CreateGitHubPRErrorData

* Refactor API response handling in CreatePRDialog and update attemptsApi to return structured results

* Refactor tasksApi.createAndStart to remove projectId parameter from API call

* use SCREAMING_SNAKE_CASE for consistency

* Refactor GitHub error handling to replace CreateGitHubPRErrorData with GitHubServiceError across the codebase

* Update crates/utils/src/response.rs

Co-authored-by: Gabriel Gordon-Hall <gabriel@bloop.ai>

* Fix compile error

* Fix types

---------

Co-authored-by: Gabriel Gordon-Hall <gabriel@bloop.ai>

* Fix: (#415)

- Config location
- Serve FE from BE in prod
- Create config when doesn't exist
- Tmp disable building the MCP

* Fix dev server route (#417)

* remove legacy logic and unused crates (#418)

* update CLAUDE.md for new project structure (#420)

* fix mcp settings page (#419)

* Fix cards not updating (vibe-kanban) (#416)

* Commit changes from coding agent for task attempt 774a2cae-a763-4117-af0e-1287a043c462

* Commit changes from coding agent for task attempt 774a2cae-a763-4117-af0e-1287a043c462

* Commit changes from coding agent for task attempt 774a2cae-a763-4117-af0e-1287a043c462

* feat: update task status management in container service

* refactor: simplify notification logic and finalize context checks in LocalContainerService

* Task attempt fe fixes (#422)

* Style tweaks

* Refactor

* Fix auto scroll

* Implement stop endpoint for all execution processed in a task attempt

* Weird race condition with amp

* Remove log

* Fix follow ups

* Re-add stop task attempt endpoint (#421)

* Re-add stop task attempt endpoint; remove legacy comments for implemented functionality

* Fix kill race condition; fix state change when dev server

* Ci fixes (#425)

* Eslint fix

* Remove #[ts(export)]

* Fix tests

* Clippy

* Prettier

* Fmt

* Version downgrade

* Fix API response

* Don't treat clippy warnings as errors

* Change crate name

* Update cargo location

* Update further refs

* Reset versions

* Bump versions

* Update binary names

* Branch fix

* Prettier

* Ensure finished event sends data (#434)

* use option_env! when reading analytics vars (#435)

* remove dead logic (#436)

* update crate version across workspace (#437)

* add all crates across the workspace

* chore: bump version to 0.0.56

---------

Co-authored-by: Alex Netsch <alex@bloop.ai>
Co-authored-by: Gabriel Gordon-Hall <gabriel@bloop.ai>
Co-authored-by: Solomon <abcpro11051@disroot.org>
Co-authored-by: Gabriel Gordon-Hall <ggordonhall@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
2025-08-08 13:53:27 +01:00
GitHub Action
96978a220e chore: bump version to 0.0.56 2025-07-24 13:17:00 +00:00
Solomon
5febd6b17b Cross-platform project script UI placeholders (#322)
* Cross-platform project script UI placeholders

* Move environment info to config endpoint
2025-07-23 10:18:18 +01:00
GitHub Action
13642be67f chore: bump version to 0.0.55 2025-07-20 23:09:23 +00:00
Louis Knight-Webb
ee9005b260 Simplify dev scripts (#294)
* Update scripts

* Update FE build
2025-07-20 17:45:52 +01:00
GitHub Action
f7c01daa08 chore: bump version to 0.0.54 2025-07-20 14:43:31 +00:00
GitHub Action
f79e4aa3e2 chore: bump version to 0.0.53 2025-07-19 18:45:31 +00:00
GitHub Action
4ecce29287 chore: bump version to 0.0.52 2025-07-18 17:31:52 +00:00
GitHub Action
643d873703 chore: bump version to 0.0.51 2025-07-18 16:39:25 +00:00
GitHub Action
37e030e23c chore: bump version to 0.0.50 2025-07-17 18:26:33 +00:00
GitHub Action
a64b86e5c1 chore: bump version to 0.0.49 2025-07-16 16:17:32 +00:00
GitHub Action
b97023e226 chore: bump version to 0.0.48 2025-07-15 19:33:52 +00:00
Anastasiia Solop
2aac31ac98 Add shared types check in CI (#195)
* add check shared types check in CI

* regenerate shared types
2025-07-15 18:35:02 +02:00
GitHub Action
81239e57f7 chore: bump version to 0.0.47 2025-07-14 15:19:29 +00:00
GitHub Action
b7230006c6 chore: bump version to 0.0.46 2025-07-11 21:54:50 +00:00
GitHub Action
d26164408d chore: bump version to 0.0.45 2025-07-11 17:53:12 +00:00
GitHub Action
5c4f5dc373 chore: bump version to 0.0.44 2025-07-11 17:34:16 +00:00
Solomon
6c2d5cf616 Use a different worktree base directory for dev (#121) 2025-07-11 09:33:00 +01:00
GitHub Action
960151dbca chore: bump version to 0.0.43 2025-07-10 14:59:14 +00:00
GitHub Action
ed7c2a31ce chore: bump version to 0.0.42 2025-07-10 09:48:48 +00:00
Alex Netsch
0627cd031c Perfect! I have successfully implemented the requested feature. Here's a summary of what I accomplished: (#113)
## Summary

I added an environment variable `DISABLE_WORKTREE_ORPHAN_CLEANUP` to control worktree orphan cleanup behavior:

1. **Modified `execution_monitor.rs:252`** - Added a check at the beginning of the `cleanup_orphaned_worktrees` function that returns early if the environment variable is set, with a debug log message.

2. **Updated `package.json`** - Modified the `npm run dev` script to export `DISABLE_WORKTREE_ORPHAN_CLEANUP=1`, which disables orphan cleanup when running in development mode.

3. **Verified the implementation** - The backend builds successfully and the code correctly checks for the environment variable.

The implementation defaults to cleanup being enabled (as requested), but when `npm run dev` is run, it automatically disables the orphan cleanup to prevent worktrees from being cleaned up during development. This allows developers to work with persistent worktrees while still maintaining the cleanup functionality in production environments.
2025-07-09 17:40:28 +01:00
GitHub Action
f55ab55fc9 chore: bump version to 0.0.41 2025-07-08 18:00:53 +00:00
GitHub Action
611a126767 chore: bump version to 0.0.40 2025-07-08 16:15:16 +00:00
Anastasiia Solop
e973eef2b3 Fix version bump workflow (#95)
* tmp fix: set new version to 0.0.38

* get latest npm version and bump it instead of relying on package.json which can be out of sync

* improve cargo-edit cache

* add timestamp to tags

* chore: bump version to 0.0.40-nbump.0

* chore: bump version to 0.0.40-nbump.1

* fix tag name

* chore: bump version to 0.0.40-nbump.2

* fix double v in tag name

* chore: bump version to 0.0.40-nbump.3

---------

Co-authored-by: GitHub Action <action@github.com>
2025-07-08 14:58:59 +01:00
GitHub Action
5b9e020992 chore: bump version to 0.0.39 2025-07-08 11:41:28 +00:00
GitHub Action
fadf16eae0 chore: bump version to 0.0.38 2025-07-08 08:48:24 +00:00
Solomon
dc008b70ca perf: Share Cargo build cache across git worktrees (#60)
Use a common target directory for all worktrees to avoid recompiling the backend in every worktree directory.
2025-07-07 15:27:00 +01:00
GitHub Action
f82b6fd246 chore: bump version to 0.0.37 2025-07-07 13:15:38 +00:00
Anastasiia Solop
17ed214c62 Bump Cargo version in prerelease workflow (#77)
* bump version in Cargo.toml to match npm version

* chore: bump version to 0.0.37-ersion.0

* chore: bump version to 0.0.37-ersion.1

* bump version in Cargo.toml to match npm version

* chore: bump version to 0.0.37-ersion.2

* use node script to bump cargo version

* use cargo-edit to set version

* add cache for cargo-edit

* set cargo version same as npm

* fix cargo toml location

* fix cargo toml version

* chore: bump version to 0.0.37-ersion.3

---------

Co-authored-by: GitHub Action <action@github.com>
2025-07-04 18:27:33 +02:00
GitHub Action
d60b78c7d1 chore: bump version to 0.0.37 2025-07-04 15:32:20 +00:00
Gabriel Gordon-Hall
2c5eecc845 feat: PostHog product analytics (#58)
* wip: posthog analytics

* wip: remove posthog-rs crate; call endpoint directly

* make analytics non-blocking

* session start event

* configure analytics for release builds

* remove dev_server_stopped event

* address review comments

* simplify analytics enabled logic

* analytics on by default; send start_session when user enables analytics; new task_attempt_start event

* lower visibility of analytics logs

* chore: bump version to 0.0.37-0

* set analytics to true if previously unset

---------

Co-authored-by: GitHub Action <action@github.com>
2025-07-04 16:24:19 +01:00
Anastasiia Solop
21af641491 Fix prerelease name clash (#76)
* add branch suffix to avoid tag and release clash

* remove dashed from branch

* chore: bump version to 0.0.37-clash.0

---------

Co-authored-by: GitHub Action <action@github.com>
2025-07-04 16:33:50 +02:00
GitHub Action
ddf61a5fb1 chore: bump version to 0.0.36 2025-07-03 23:55:07 +00:00
GitHub Action
359fc56b07 chore: bump version to 0.0.35 2025-07-03 22:03:58 +00:00
Louis Knight-Webb
e21cbf3656 Bump version 2025-07-03 23:03:21 +01:00
GitHub Action
25cf76e532 chore: bump version to 0.0.33 2025-07-03 21:46:03 +00:00
Louis Knight-Webb
1b1e186a15 Asset dev fixes (#53)
* Use seed DB

* Ignore dev_assets

* Persist
2025-07-02 19:35:30 +01:00
Louis Knight-Webb
fcaf99ebf6 Dev server updates (#52)
* Start dev server on any port

* Move dev DB into project folder

* Choose free ports for dev server

* Reliability

* Both processes get env vars

* And open browser
2025-07-02 18:24:26 +01:00
GitHub Action
ee3465a867 chore: bump version to 0.0.32 2025-07-01 17:06:22 +00:00
Anastasiia Solop
4be4b0b622 Bump version automatically in pre-release workflow (#38)
* make pre-release workflow manual-only, bump version automatically

* chore: bump version to 0.0.31-bump-version-automatically.0

* update version manually in both package.json files

* roll back version

* use npm for updating version

* chore: bump version to 0.0.31

---------

Co-authored-by: GitHub Action <action@github.com>
2025-07-01 18:48:23 +02:00
Anastasiia Solop
7620ba60fa Publish to npm fixes (#36)
* provide npm token in env

* add manual trigger to publish workflow

* bump version

* accept tag name and release id from manual trigger

* log release id

* put back missing steps

* fix permissions to update release notes
2025-07-01 14:33:34 +02:00
Louis Knight-Webb
1f2075abd3 Bump version (#35) 2025-07-01 10:37:52 +01:00
Anastasiia Solop
4e5cc459bd Code signing in CI (#28)
* add code-signing

* bump version

* use key json instead of separate secrets

* sign and notarize separately

* fix typos

* fix double zipping

* skip npm zipping for mac

* zip file instead of a folder

* fix zip names

* windows fix

* minor fixes

* try to fix zipping issue

* use zip -j flag to avoid folder structure

* fix mcp binary name for linux-arm64

* normalize mcp binary name
2025-07-01 11:35:05 +02:00
Louis Knight-Webb
7817a4fc9e Update arch checm (#32) 2025-07-01 00:32:18 +01:00
Louis Knight-Webb
6f7941976b Prepare bump version 2025-06-30 16:28:01 +01:00
Louis Knight-Webb
2816bc6c69 Prepare bump version 2025-06-30 16:24:58 +01:00
Solomon
f4bfbd69c8 Support windows sound notification (#17)
* review-feedback: log current-directory fetching errors

* review-feedback: document intential fire-and-forget of sound notifications

* review-feedback: better PowerShell command pattern:

using -Command with $args[0] parameter passing instead of string interpolation.

* sync-version
2025-06-30 13:24:21 +01:00