@unson/brainbase-mcp 0.10.6 → 0.10.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unson/brainbase-mcp",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
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",
@@ -336,5 +336,5 @@
336
336
  "engines": {
337
337
  "node": ">=20"
338
338
  },
339
- "gitHead": "c59d4421803804f285d34ae6dd1d766f9c0f8ee9"
339
+ "gitHead": "9b53aa137dac5126a8bd43b7a58b21b135244c88"
340
340
  }
@@ -553,9 +553,10 @@ function todayActionItems(items, now = new Date()) {
553
553
  const endOfToday = new Date(now);
554
554
  endOfToday.setHours(23, 59, 59, 999);
555
555
  return sortDenseItems(items.filter((item) => {
556
+ if (/完了|取消|キャンセル|中止|取下げ|completed|cancell?ed|done|closed/i.test(item.status ?? '')) return false;
556
557
  if (/確認待ち|要確認|承認待ち|blocked|needs.review|waiting/i.test(item.status ?? '')) return true;
557
558
  const due = Date.parse(item.dueAt ?? '');
558
- return Number.isFinite(due) && due <= endOfToday.getTime() && !/完了|done|closed/i.test(item.status ?? '');
559
+ return Number.isFinite(due) && due <= endOfToday.getTime();
559
560
  }));
560
561
  }
561
562
 
@@ -576,8 +577,8 @@ function renderDenseOverview(doc, detail, context, entities, actions = {}) {
576
577
  .slice(0, 4);
577
578
  const due = todayActionItems(tasks).slice(0, 6);
578
579
  const total = explicitSectionTotal(taskSection);
579
- const taskMetric = total === null ? '未確認' : `${total}件`;
580
- const taskNote = taskSection?.state === 'ok' ? (total === null ? `${tasks.length}件を表示` : '取得済みの総数') : '取得状態を確認中';
580
+ const taskMetric = total === null ? (taskSection?.state === 'ok' ? `${tasks.length}件表示` : '未確認') : `${total}件`;
581
+ const taskNote = taskSection?.state === 'ok' ? (total === null ? '総数は未確認' : '取得済みの総数') : '取得状態を確認中';
581
582
  const panel = makeElement(doc, 'section', { className: 'bb-pkw-dense-overview', attrs: { 'aria-label': 'プロジェクト概要' } });
582
583
  const intro = makeElement(doc, 'div', { className: 'bb-pkw-dense-intro' });
583
584
  intro.append(makeElement(doc, 'div', { className: 'bb-pkw-dense-eyebrow', text: '今日見る' }), makeElement(doc, 'h3', { text: cleanName(payload?.project?.name, 'プロジェクト') }), makeElement(doc, 'p', { className: 'bb-pkw-muted', text: '量を把握して、必要な仕事と根拠へ進みます。' }));