Add experimental app-server project APIs (#38940)

## What changed

- Add SQLite-backed `project/list`, `project/read`, `project/create`,
  `project/import`, `project/update`, `project/move`, and `project/delete`
  endpoints with ordered roots, metadata, manual positioning, pagination, and
  idempotent creation.
- Add project assignment to thread start, metadata updates, list filtering,
  and fork inheritance. Project deletion clears assignments without deleting
  threads.
- Emit `project/changed` and `thread/project/updated` notifications after
  committed changes, and export the new protocol schemas and TypeScript types.

## Testing

- Cover project lifecycle and ordering, idempotency, atomic imports, cursor and
  filter validation, thread assignment, deletion, and fork inheritance.

GitOrigin-RevId: 47ae621be01ab8ef70a74a629fb29a5c5709ea33
This commit is contained in:
Anton Panasenko authored and copyberry committed 2026-08-17 04:01:37 +00:00
1 parent 1f41cc5d92
commit 3b4569a920
107 files changed
+4210 -52

No files matched your search

+8
View File
@@ -496,6 +496,7 @@ impl RolloutRecorder {
/*relation_filter*/ None,
archived,
/*section*/ None,
/*project_id*/ None,
search_term,
)
.await
@@ -606,6 +607,7 @@ impl RolloutRecorder {
/*relation_filter*/ None,
archived,
/*section*/ None,
/*project_id*/ None,
search_term,
)
.await;
@@ -636,6 +638,7 @@ impl RolloutRecorder {
/*relation_filter*/ None,
archived,
/*section*/ None,
/*project_id*/ None,
search_term,
)
.await
@@ -677,6 +680,7 @@ impl RolloutRecorder {
/*relation_filter*/ None,
archived,
/*section*/ None,
/*project_id*/ None,
search_term,
)
.await
@@ -757,6 +761,7 @@ impl RolloutRecorder {
/*relation_filter*/ None,
/*archived*/ false,
/*section*/ None,
/*project_id*/ None,
/*search_term*/ None,
)
.await
@@ -1265,6 +1270,7 @@ fn fill_missing_thread_item_metadata(item: &mut ThreadItem, state_item: ThreadIt
first_user_message,
preview,
section,
project_id,
cwd,
git_branch,
git_sha,
@@ -1288,6 +1294,7 @@ fn fill_missing_thread_item_metadata(item: &mut ThreadItem, state_item: ThreadIt
item.preview = preview;
}
item.section = section;
item.project_id = project_id;
if item.cwd.is_none() {
item.cwd = cwd;
}
@@ -2001,6 +2008,7 @@ fn thread_item_from_state_metadata(
first_user_message: item.first_user_message,
preview: item.preview,
section: item.section,
project_id: item.project_id,
cwd: Some(item.cwd),
git_branch: item.git_branch,
git_sha: item.git_sha,