feat: finish the ai plugin (B18)

This commit is contained in:
LukeGus committed 2026-09-24 13:43:26 -05:00
1 parent 6b4d1432ab
commit 21937a6b02
193 files changed
+23429 -4244

No files matched your search

+8
View File
@@ -76,6 +76,14 @@ export function activate(app: TermixApp): void {
: null;
}) as never);
// For pickers in other plugins (the AI assistant's @-mentions): id and name.
app.registerAction("snippets.list", (async () => {
const snippets = await createSnippetsApi(app.api)
.list()
.catch(() => []);
return snippets.map((snippet) => ({ id: snippet.id, name: snippet.name }));
}) as never);
app.registerAction("snippets.execute", (async (
snippetId: number,
hostId: number,