@unson/brainbase-mcp 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/judgment-frame.d.ts +49 -4
- package/dist/judgment-frame.js +145 -8
- package/dist/judgment-model-outcome.d.ts +96 -0
- package/dist/judgment-model-outcome.js +216 -0
- package/dist/meeting-source-connection.d.ts +265 -0
- package/dist/meeting-source-connection.js +702 -0
- package/dist/meeting-source-reader.d.ts +18 -0
- package/dist/meeting-source-reader.js +31 -0
- package/package.json +6 -2
- package/ui/judgment-history.css +4 -0
- package/ui/judgment-history.js +5 -1
|
@@ -123,3 +123,21 @@ export declare function readProviderSummary(input: {
|
|
|
123
123
|
meetingId: string;
|
|
124
124
|
now?: () => Date;
|
|
125
125
|
}): Promise<MeetingSourceSummaryResult>;
|
|
126
|
+
export type MeetingSourceTranscriptProbe = {
|
|
127
|
+
status: 'readable';
|
|
128
|
+
segmentCount: number;
|
|
129
|
+
} | {
|
|
130
|
+
status: 'unavailable';
|
|
131
|
+
failure: MeetingSourceFailure;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Reads only the first transcript page, to check that the connection may read
|
|
135
|
+
* full transcripts. A Tactiq probe spends one read of the hourly budget.
|
|
136
|
+
*/
|
|
137
|
+
export declare function probeTranscript(input: {
|
|
138
|
+
provider: MeetingSourceProvider;
|
|
139
|
+
callTool: MeetingSourceCallTool;
|
|
140
|
+
meetingId: string;
|
|
141
|
+
budget?: TactiqTranscriptBudget;
|
|
142
|
+
now?: () => Date;
|
|
143
|
+
}): Promise<MeetingSourceTranscriptProbe>;
|
|
@@ -111,6 +111,37 @@ export async function readProviderSummary(input) {
|
|
|
111
111
|
return { status: 'unavailable', failure: await classifyFailure(error, input.provider, input.callTool, 'meeting', now()) };
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Reads only the first transcript page, to check that the connection may read
|
|
116
|
+
* full transcripts. A Tactiq probe spends one read of the hourly budget.
|
|
117
|
+
*/
|
|
118
|
+
export async function probeTranscript(input) {
|
|
119
|
+
const now = input.now ?? (() => new Date());
|
|
120
|
+
if (input.provider === 'tactiq') {
|
|
121
|
+
const slot = (input.budget ?? createTactiqTranscriptBudget()).tryAcquire(input.meetingId, now());
|
|
122
|
+
if (!slot.ok) {
|
|
123
|
+
return {
|
|
124
|
+
status: 'unavailable',
|
|
125
|
+
failure: { reason: 'rate_limited', scope: 'connection', message: 'Tactiq transcript read limit reached for this hour', retryAt: slot.retryAt },
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
try {
|
|
130
|
+
if (input.provider === 'plaud') {
|
|
131
|
+
const payload = asRecord(await invoke(input.callTool, 'get_transcript', { file_id: input.meetingId, block: 'transaction', limit: 10 }));
|
|
132
|
+
if (!payload || !Array.isArray(payload.segments))
|
|
133
|
+
throw new UnexpectedShapeError('Plaud get_transcript returned no segments');
|
|
134
|
+
return { status: 'readable', segmentCount: payload.segments.length };
|
|
135
|
+
}
|
|
136
|
+
const payload = asRecord(await invoke(input.callTool, 'get_transcript', { meetingId: input.meetingId, page: 1 }));
|
|
137
|
+
if (!payload || !Array.isArray(payload.entries))
|
|
138
|
+
throw new UnexpectedShapeError('Tactiq get_transcript returned no entries');
|
|
139
|
+
return { status: 'readable', segmentCount: payload.entries.length };
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
return { status: 'unavailable', failure: await classifyFailure(error, input.provider, input.callTool, 'meeting', now()) };
|
|
143
|
+
}
|
|
144
|
+
}
|
|
114
145
|
// ---------------------------------------------------------------------------
|
|
115
146
|
// Plaud
|
|
116
147
|
async function listPlaud(callTool, since, until, utcOffsetMinutes, pageSize) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unson/brainbase-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Local-first Brainbase judgment OS that lets supported AI agents reuse a user's approved goals, priorities, decisions, and judgment criteria.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -135,6 +135,10 @@
|
|
|
135
135
|
"types": "./dist/meeting-minutes-lineage-adapters.d.ts",
|
|
136
136
|
"import": "./dist/meeting-minutes-lineage-adapters.js"
|
|
137
137
|
},
|
|
138
|
+
"./meeting-source-connection": {
|
|
139
|
+
"types": "./dist/meeting-source-connection.d.ts",
|
|
140
|
+
"import": "./dist/meeting-source-connection.js"
|
|
141
|
+
},
|
|
138
142
|
"./meeting-source-reader": {
|
|
139
143
|
"types": "./dist/meeting-source-reader.d.ts",
|
|
140
144
|
"import": "./dist/meeting-source-reader.js"
|
|
@@ -427,5 +431,5 @@
|
|
|
427
431
|
"engines": {
|
|
428
432
|
"node": ">=20"
|
|
429
433
|
},
|
|
430
|
-
"gitHead": "
|
|
434
|
+
"gitHead": "8b9b0e51e70847db4ed540d10c79655d0fd6e050"
|
|
431
435
|
}
|
package/ui/judgment-history.css
CHANGED
package/ui/judgment-history.js
CHANGED
|
@@ -1089,7 +1089,11 @@ function appendNormalFeedbackComposer(doc, record, {
|
|
|
1089
1089
|
function renderNormalRail(doc, rail, row, detail, onClose, options = {}) {
|
|
1090
1090
|
if (!rail) return;
|
|
1091
1091
|
rail.replaceChildren();
|
|
1092
|
-
|
|
1092
|
+
// The home row keeps the canonical raw record so the selected references
|
|
1093
|
+
// remain readable while the detail request is pending or unavailable.
|
|
1094
|
+
// Once the detail readback succeeds, its normalized record takes priority.
|
|
1095
|
+
const homeRecord = row?.mode === 'normal' ? normalizeNormalRecord(row.record) : null;
|
|
1096
|
+
const record = detail ?? homeRecord ?? row;
|
|
1093
1097
|
rail.append(workspaceRailHead(doc, {
|
|
1094
1098
|
kicker: `${NORMAL_ENTRYPOINT_LABELS[record.entrypoint] ?? '入口不明'}の判断`,
|
|
1095
1099
|
title: text(record.judgment?.summary) || '判断内容は未記録',
|