feat(chat): Plaza 一键发布 + publication RPC 错误映射 #5

Merged
tkmind merged 3 commits from feature/rpc-publication-errors into main 2026-07-05 12:01:44 +00:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit 8755928405 - Show all commits
+5
View File
@@ -1,6 +1,11 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { slugFromPageTitle } from './mindspace-chat-plaza.mjs';
import { MINDSPACE_SERVER_ADAPTER_BINDINGS } from './mindspace-server-adapter-contract.mjs';
test('adapter contract exposes findPageBySourceMessage for quick plaza', () => {
assert.ok(MINDSPACE_SERVER_ADAPTER_BINDINGS.pageService.includes('findPageBySourceMessage'));
});
test('slugFromPageTitle falls back to page when title has no ascii', () => {
assert.equal(slugFromPageTitle('春江花月夜', '1c99b83b-0454-474f-a5d2-129d34506a32'), 'page-1c99b83b');
+1
View File
@@ -30,6 +30,7 @@ export const MINDSPACE_SERVER_ADAPTER_BINDINGS = Object.freeze({
'deletePage',
'findPageByRelativePath',
'findPageBySourceAsset',
'findPageBySourceMessage',
'getDeletePreview',
'getPage',
'listPages',