feat: add client side skills (#1320)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-03-10 13:18:14 -07:00
committed by GitHub
parent 87312720d5
commit e82a2d33f8
25 changed files with 377 additions and 151 deletions

View File

@@ -73,13 +73,16 @@ export function createCommandRunner({
onCommandFinished,
}: RunnerDeps) {
function getHandle(id: string, input: string): CommandHandle {
// biome-ignore lint/style/noNonNullAssertion: forward-reference pattern — overwritten synchronously below. null! preferred over no-ops to crash loudly if invariant breaks.
const uninitialized = (): never => {
throw new Error("CommandHandle callback used before initialization");
};
const handle: CommandHandle = {
id,
input,
update: null!,
finish: null!,
fail: null!,
update: uninitialized,
finish: uninitialized,
fail: uninitialized,
};
const update = (updateData: CommandUpdate) => {