add kiro skills

This commit is contained in:
Rongsong Shen 2026-05-21 03:41:57 +00:00
parent e5fde7b55f
commit 86fe35e671
53 changed files with 8406 additions and 166 deletions

View file

@ -82,19 +82,23 @@ static int copy_worker(worker_t* dst, xce_worker_t* src)
static int override_worker(worker_t* dst, xce_worker_t* w)
{
#define XCE_WORKER_ADMIN_MASK \
(XCE_WORKER_LOCKEDU | XCE_WORKER_CLOSED | XCE_WORKER_HIDDEN | XCE_WORKER_CLOSED_BY_ADMIN)
#define XCE_WORKER_ADMIN_MASK \
(XCE_WORKER_LOCKEDU | XCE_WORKER_CLOSED | XCE_WORKER_HIDDEN \
| XCE_WORKER_CLOSED_BY_ADMIN)
uint32_t admin_status = 0;
int rc = 0;
int idx;
admin_status = dst->host.status & XCE_WORKER_ADMIN_MASK;
idx = dst->idx;
kill_worker(dst);
rc = copy_worker(dst, w);
if (rc >= 0) {
dst->host.status |= admin_status;
dst->ep = NULL;
dst->ep = NULL;
dst->idx = idx;
}
return rc;
@ -231,6 +235,8 @@ static worker_t* makeWorker_(var workermgr, xce_worker_t* w)
errno = -rc;
return NULL;
}
worker->idx = rc;
}
}