feat: expand live chat and work server tools

This commit is contained in:
2026-04-30 11:40:02 +09:00
parent 42ae640470
commit 2df0ba30cb
112 changed files with 15241 additions and 996 deletions

View File

@@ -8,6 +8,7 @@ import {
textMemoNoteCreateSchema,
textMemoNoteImportSchema,
textMemoNoteUpdateSchema,
updateTextMemoLayoutFeatureDescription,
updateTextMemoNote,
} from '../services/text-memo-service.js';
@@ -17,6 +18,7 @@ function resolveClientId(headers: Record<string, unknown>) {
export async function registerTextMemoRoutes(app: FastifyInstance) {
app.get('/api/text-memo/notes', async (request) => {
await updateTextMemoLayoutFeatureDescription().catch(() => false);
const items = await listTextMemoNotes(resolveClientId(request.headers));
return {
ok: true,
@@ -27,6 +29,7 @@ export async function registerTextMemoRoutes(app: FastifyInstance) {
app.post('/api/text-memo/notes', async (request) => {
const payload = textMemoNoteCreateSchema.parse(request.body ?? {});
const item = await createTextMemoNote(resolveClientId(request.headers), payload);
await updateTextMemoLayoutFeatureDescription().catch(() => false);
return {
ok: true,
@@ -37,6 +40,7 @@ export async function registerTextMemoRoutes(app: FastifyInstance) {
app.post('/api/text-memo/notes/import', async (request) => {
const payload = textMemoNoteImportSchema.parse(request.body ?? {});
const items = await importTextMemoNotes(resolveClientId(request.headers), payload);
await updateTextMemoLayoutFeatureDescription().catch(() => false);
return {
ok: true,
@@ -55,6 +59,8 @@ export async function registerTextMemoRoutes(app: FastifyInstance) {
});
}
await updateTextMemoLayoutFeatureDescription().catch(() => false);
return {
ok: true,
item,
@@ -71,6 +77,8 @@ export async function registerTextMemoRoutes(app: FastifyInstance) {
});
}
await updateTextMemoLayoutFeatureDescription().catch(() => false);
return {
ok: true,
};