hub-index-stale-banner.test.mjs
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠ breaking
1 day ago
| 1 | /** |
| 2 | * Contract: Hub shows a client-side hint when vault edits may have outpaced Meaning (semantic) search until Re-index. |
| 3 | */ |
| 4 | import { readFileSync } from 'node:fs'; |
| 5 | import { fileURLToPath } from 'node:url'; |
| 6 | import { dirname, join } from 'node:path'; |
| 7 | import test from 'node:test'; |
| 8 | import assert from 'node:assert/strict'; |
| 9 | |
| 10 | const root = join(dirname(fileURLToPath(import.meta.url)), '..'); |
| 11 | const hubJs = readFileSync(join(root, 'web/hub/hub.js'), 'utf8'); |
| 12 | const hubHtml = readFileSync(join(root, 'web/hub/index.html'), 'utf8'); |
| 13 | |
| 14 | test('Hub index-stale banner: markup + JS wiring', () => { |
| 15 | assert.match(hubHtml, /id="hub-index-stale-banner"/); |
| 16 | assert.match(hubHtml, /id="hub-index-stale-run"/); |
| 17 | assert.match(hubHtml, /id="hub-index-stale-dismiss"/); |
| 18 | assert.match(hubJs, /HUB_SEMANTIC_INDEX_STALE_PREFIX/); |
| 19 | assert.match(hubJs, /function hubMarkSemanticIndexStale\b/); |
| 20 | assert.match(hubJs, /function hubClearSemanticIndexStale\b/); |
| 21 | assert.match(hubJs, /function hubRefreshIndexStaleBanner\b/); |
| 22 | assert.match(hubJs, /hubClearSemanticIndexStale\(\)/); |
| 23 | }); |
File History
2 commits
sha256:65ccb454656ea5acdea0a10e559b78bcde1eb6ff753ecc2911bc99d1c3d7cadd
feat(calendar): enforce agent context tiers in retrieval AP…
Human
minor
⚠
1 day ago
sha256:9103f98c89257ed2b01c237cea895dabb3e85ea337dccb1161c175e4422355b6
docs: accept Calendar Events v0 spec with Phase 0 security …
Human
1 day ago