mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
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
48 lines
1.7 KiB
JSON
48 lines
1.7 KiB
JSON
{
|
|
"name": "@hapi/protocol",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./apiTypes": "./src/apiTypes.ts",
|
|
"./messages": "./src/messages.ts",
|
|
"./slashCommands": "./src/slashCommands.ts",
|
|
"./buildInfo": "./src/buildInfo.ts",
|
|
"./conversationHistory": "./src/conversationHistory.ts",
|
|
"./modes": "./src/modes.ts",
|
|
"./peerSpawnDefaults": "./src/peerSpawnDefaults.ts",
|
|
"./rpcMethods": "./src/rpcMethods.ts",
|
|
"./runnerCapabilities": "./src/runnerCapabilities.ts",
|
|
"./schemas": "./src/schemas.ts",
|
|
"./sessionCitation": "./src/sessionCitation.ts",
|
|
"./peerParentStamp": "./src/peerParentStamp.ts",
|
|
"./sessionExport": "./src/sessionExport.ts",
|
|
"./sessionLifecycle": "./src/sessionLifecycle.ts",
|
|
"./types": "./src/types.ts",
|
|
"./voice": "./src/voice.ts",
|
|
"./voicePickerCatalog": "./src/voicePickerCatalog.ts",
|
|
"./voice-personality": "./src/voicePersonality.ts",
|
|
"./usage": "./src/usage.ts",
|
|
"./settingsFileLock": "./src/settingsFileLock.ts",
|
|
"./agentCliSpawnLease": "./src/agentCliSpawnLease.ts"
|
|
},
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"test": "bun test"
|
|
},
|
|
"dependencies": {
|
|
"mdast-util-from-markdown": "^2.0.2",
|
|
"mdast-util-gfm": "^3.1.0",
|
|
"mdast-util-to-string": "^4.0.0",
|
|
"micromark-extension-gfm": "^3.0.0",
|
|
"proper-lockfile": "^4.1.2",
|
|
"zod": "^4.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/proper-lockfile": "^4.1.4"
|
|
}
|
|
}
|