Files
hapi/package.json
T
AnanovoandGitHub 82c5c00a38 feat(web,hub): add opt-in search for session message content (#1598)
Adds an opt-in content search over session messages, alongside the
existing metadata search. An FTS5 index covers visible user and assistant
prose; the sidebar gains a scope toggle, and selecting a result opens the
matching message rather than the session tail.

Search scope is a two-state toggle rather than a dropdown: a 48x48 target
matching the clear endcap, distinct glyphs for session details vs message
text, tooltips naming the real scopes, and the active mode kept on the
collapsed chip (tiann/hapi#2081).

Dogfooded on a live 1178-session fleet. The scope toggle and reading
forward from a search result were both click-tested on that install —
the latter walking six bounded pages through a 1,507-message session and
stopping correctly at the session head.

The per-commit history does not survive this squash; the review trail —
including which commit closed which finding — is on the PR threads.

Fixes #1554
Fixes #2081
2026-11-02 15:20:45 +00:00

55 lines
2.8 KiB
JSON

{
"name": "hapi",
"private": true,
"workspaces": [
"cli",
"shared",
"hub",
"web",
"website",
"docs",
"relay"
],
"packageManager": "bun@1.4.4",
"scripts": {
"build:site": "bun run --cwd website build && bun run --cwd docs docs:build && cp -r docs/.vitepress/dist website/dist/public/docs",
"dev": "bun run --parallel dev:hub dev:web",
"build": "bun run build:cli && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && bun run build:hub",
"build:cli": "bun run typecheck:cli",
"build:single-exe": "bun run download:tunwg && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone)",
"build:single-exe:all": "bun run download:tunwg && bun run build:web && (cd hub && bun run generate:embedded-web-assets) && (cd cli && bun run build:exe:allinone:all)",
"download:tunwg": "bun run hub/scripts/download-tunwg.ts",
"build:hub": "cd hub && bun run build",
"build:web": "cd web && bun run build",
"dev:hub": "cd hub && bun run dev",
"dev:web": "cd web && bun run dev",
"typecheck": "bun run --parallel typecheck:cli typecheck:web typecheck:hub typecheck:relay",
"typecheck:cli": "cd cli && bun run typecheck",
"typecheck:hub": "cd hub && bun run typecheck",
"typecheck:relay": "cd relay && bun run typecheck",
"typecheck:web": "cd web && bun run typecheck",
"test": "bun run test:cli && bun run test:hub && bun run test:web && bun run test:shared && bun run test:relay",
"test:cli": "cd cli && bun run test",
"test:cli:integration": "cd cli && bun run test:integration",
"test:hub": "cd hub && bun run test",
"test:relay": "cd relay && bun run test",
"test:web": "cd web && bun run test",
"test:shared": "cd shared && bun run test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:mermaid-lightbox:playwright": "timeout 600 node scripts/dev/mermaid-lightbox-playwright.mjs",
"test:mermaid-lightbox:live": "timeout 900 env HAPI_LIVE=1 playwright test -c web/playwright.live.config.ts",
"test:session-content-search:live": "timeout 900 env HAPI_LIVE=1 playwright test -c web/playwright.content-search.live.config.ts",
"seed:mermaid-lightbox:session": "bun run scripts/dev/mermaid-lightbox-seed-session-db.ts",
"gen:fixtures": "cd web && bun scripts/generate-fixtures.ts",
"clean-session": "bun run hub/scripts/cleanup-sessions.ts",
"release-all": "cd cli && bun run release-all"
},
"devDependencies": {
"@playwright/test": "^1.61.0",
"playwright": "1.61.0",
"react-devtools-core": "^7.0.1",
"vite-plugin-pwa": "^1.2.0"
}
}