feat: add v2 task control and asynchronous isolated workers

This commit is contained in:
WHC
2026-10-20 14:46:57 +08:00
parent 143dba203b
commit d971cb02b0
26 changed files with 1590 additions and 66 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef CST_WORKTREE_H
#define CST_WORKTREE_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/* files is a JSON array of workspace-relative paths. No caller index changes. */
int cst_worktree_create(const char *workspace, const char *files, char *out,
size_t out_sz, char *err, size_t err_sz);
char *cst_worktree_diff(const char *workspace, const char *worktree, int integrate,
int *code);
int cst_worktree_path_allowed(const char *files, const char *relative_path);
#ifdef __cplusplus
}
#endif
#endif