{"_id":"@agentproto/workspace-brain","_rev":"12-26676a546184080ac3f57c86df8bd4a9","name":"@agentproto/workspace-brain","dist-tags":{"latest":"0.4.10"},"versions":{"0.2.0":{"name":"@agentproto/workspace-brain","version":"0.2.0","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.2.0","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"9223fa53d139b4ca3d2003c43d3208d2f4b389da","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.2.0.tgz","fileCount":6,"integrity":"sha512-dfsCSfUei9IqbAW6J8JkeEeiKIck3RxJqBpCrvQptX5LTOWl1H0uzjnnwuboEPVyUcAPRuiKsSdUcki+lcbEPQ==","signatures":[{"sig":"MEUCIGmuDuaci9l889H5s869fLptdDzXfI6VA7SVt2UXhmzrAiEA+5IY17w0FwJTrfRF6TILqakoekvOxHKg5p0E7xdvTGg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":106995},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/505a917fd44ea8e290125d60c992512d/agentproto-workspace-brain-0.2.0.tgz","_integrity":"sha512-dfsCSfUei9IqbAW6J8JkeEeiKIck3RxJqBpCrvQptX5LTOWl1H0uzjnnwuboEPVyUcAPRuiKsSdUcki+lcbEPQ==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@agentproto/corpus":"0.5.1","@agentproto/knowledge-engine":"0.2.0","@agentproto/adapter-knowledge-files":"0.2.2","@agentproto/adapter-knowledge-qdrant":"0.2.1","@agentproto/adapter-knowledge-gbrain-doc":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.2.0_1786492017265_0.7709673439344655","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@agentproto/workspace-brain","version":"0.2.1","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.2.1","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"0ff3cfa62fb7c9992e19a2ed3f7f2721d69fda00","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.2.1.tgz","fileCount":6,"integrity":"sha512-ap8KX8dhBubOTQ7qh9f06c8de4Tv7OV1cc+FMXIxCXt1+5TBEcmiuZWniF3hGldQkJnobskg2VKOo7/B8F3GQw==","signatures":[{"sig":"MEUCIFKsGT8kRPX9SWxPsgQulRJiExUMSc1Tp3ZcS0Q7Y9ZCAiEAzMp2K9R6hoG4sMCZJbG09yNg7QAQ6ULbsKNGE2oRcOE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":109939},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.2.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/95dd30d90dd124a75009722aba490d8d/agentproto-workspace-brain-0.2.1.tgz","_integrity":"sha512-ap8KX8dhBubOTQ7qh9f06c8de4Tv7OV1cc+FMXIxCXt1+5TBEcmiuZWniF3hGldQkJnobskg2VKOo7/B8F3GQw==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.1","dependencies":{"zod":"^4.4.3","@agentproto/corpus":"0.5.1","@agentproto/knowledge-engine":"0.2.0","@agentproto/adapter-knowledge-files":"0.2.2","@agentproto/adapter-knowledge-qdrant":"0.2.1","@agentproto/adapter-knowledge-gbrain-doc":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.2.1_1786671159235_0.22879580787526144","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agentproto/workspace-brain","version":"0.3.0","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.3.0","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"40895c0caf57d4ab841fc462244eb667b25b30bc","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.3.0.tgz","fileCount":6,"integrity":"sha512-1QfLDo0d3MSpLG7r7OKUXAeMQIWLhSWkK2VUo2W+21/b9OI3gTPHVE9xPSGY4NfKFvgY4BjCcKY4f1Hl4ZkLdw==","signatures":[{"sig":"MEQCIAZsfl8M4F7d7GFS5nAqKk6Eiv08pCp18FUp2SQqESIkAiAhtO5u/LmKCAkmuN/ByGWJU2aVsleYgxRZ79ym7pHBGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":139654},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.3.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/58ff98a002d7bf2f0c8da0ada95dcd92/agentproto-workspace-brain-0.3.0.tgz","_integrity":"sha512-1QfLDo0d3MSpLG7r7OKUXAeMQIWLhSWkK2VUo2W+21/b9OI3gTPHVE9xPSGY4NfKFvgY4BjCcKY4f1Hl4ZkLdw==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@agentproto/corpus":"0.5.1","@agentproto/knowledge-engine":"0.2.0","@agentproto/adapter-knowledge-files":"0.2.2","@agentproto/adapter-knowledge-qdrant":"0.2.1","@agentproto/adapter-knowledge-gbrain-doc":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.3.0_1786763395897_0.16250919936248254","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@agentproto/workspace-brain","version":"0.4.1","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.1","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"50069109e294b658a174cb6d94a6e97b31b0a1c1","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.1.tgz","fileCount":6,"integrity":"sha512-+zIJxC0n+7x4CEF7IeK1huitcA7N4HS+S3FCgNOH0U19do72zjGP/OcP0xazmGIS5/0Jq0arGRhS5Sd1ATzXJw==","signatures":[{"sig":"MEUCIAnep+n5hV9PCGz0wTC07F7uqbnjq8Hq5IL4FyrEy5jaAiEApLlNqrQEjVC5XufXwN+JO1Eq3BO9ei1vEVBn1PHKGc0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151106},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/04c0423daa4ef0b94b7766010a70d82c/agentproto-workspace-brain-0.4.1.tgz","_integrity":"sha512-+zIJxC0n+7x4CEF7IeK1huitcA7N4HS+S3FCgNOH0U19do72zjGP/OcP0xazmGIS5/0Jq0arGRhS5Sd1ATzXJw==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.5.4","@agentproto/corpus":"0.6.0","@agentproto/knowledge-engine":"0.2.1","@agentproto/adapter-knowledge-files":"0.2.4","@agentproto/adapter-knowledge-qdrant":"0.2.2","@agentproto/adapter-knowledge-gbrain-doc":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.1_1788280202239_0.08142681676909813","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@agentproto/workspace-brain","version":"0.4.2","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.2","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"218d605657543f60bb326c3ea0a3f3b3352b6d14","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.2.tgz","fileCount":6,"integrity":"sha512-pGDTXW1z5DZWHsFF4S6jrdOAv7wwpGlr/4WKX2NKd0IX9PGhRRI6YVPP2sSuHQdEx0JEa8hQEMJwvGj9Se6Ceg==","signatures":[{"sig":"MEYCIQCh/lliesSUU5OUBI6UoKdegyJShmA8X8tv/byTd5iUNAIhAISDL224tvOSvu1mO2lqUadt5gTzoH0ejHTuy5MemLQR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151106},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/c1ea049177339cf8ad61b728537c9272/agentproto-workspace-brain-0.4.2.tgz","_integrity":"sha512-pGDTXW1z5DZWHsFF4S6jrdOAv7wwpGlr/4WKX2NKd0IX9PGhRRI6YVPP2sSuHQdEx0JEa8hQEMJwvGj9Se6Ceg==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.5.4","@agentproto/corpus":"0.7.0","@agentproto/knowledge-engine":"0.2.1","@agentproto/adapter-knowledge-files":"0.2.5","@agentproto/adapter-knowledge-qdrant":"0.2.2","@agentproto/adapter-knowledge-gbrain-doc":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0-alpha.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.2_1788359002460_0.0780224997193435","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@agentproto/workspace-brain","version":"0.4.3","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.3","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"b71bbc1dd013d727579c5a8f1e664c67e2dc2f0a","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.3.tgz","fileCount":6,"integrity":"sha512-RKsnA22OTX1Y7Gh5NNd39K3CSo4Q1kGTf1YEb6NJ4yZSe2RNFfIAeAJ0+XOjFhgYnIYHMN19tHNA22DxkTb9ZQ==","signatures":[{"sig":"MEQCIFbYOy7JV6XYI0HWaZtNRHjcwkL9KK+ym0dk9+C1BdFYAiAwx9lHJmO5IRvLBlscU81DmCQq1LI3bLDTw2T8MsyinA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151098},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.3.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/40a4470f3e8e44c47510038d5223870f/agentproto-workspace-brain-0.4.3.tgz","_integrity":"sha512-RKsnA22OTX1Y7Gh5NNd39K3CSo4Q1kGTf1YEb6NJ4yZSe2RNFfIAeAJ0+XOjFhgYnIYHMN19tHNA22DxkTb9ZQ==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.5.4","@agentproto/corpus":"0.7.1","@agentproto/knowledge-engine":"0.2.1","@agentproto/adapter-knowledge-files":"0.2.6","@agentproto/adapter-knowledge-qdrant":"0.2.2","@agentproto/adapter-knowledge-gbrain-doc":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","typescript":"^5.9.3","@types/node":"^25.6.2","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.3_1788654522521_0.09382441402078534","host":"s3://npm-registry-packages-npm-production"}},"0.4.5":{"name":"@agentproto/workspace-brain","version":"0.4.5","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.5","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"83c5182eac67d0c729ea01f933090248dfe15348","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.5.tgz","fileCount":6,"integrity":"sha512-k+pwdySuAW4MhVRHvNkr0oAgCQry+IFAJjq+beh6MLpNzoAFUX1TQm9Vu+m2ScTgUjGJyBtGHisgJowbYdPMrQ==","signatures":[{"sig":"MEUCIQD+F70FFbJFgxP0Td0k433Du2FLrmNVYtKhfL1hbGiRSgIgHr/YJu2ZkZtBy0vp7b0vTUwUUd9DqMHVvd7nEtZ5vJM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151098},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.5.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/20563fcd5cc9c79432003cc6a8f78ccf/agentproto-workspace-brain-0.4.5.tgz","_integrity":"sha512-k+pwdySuAW4MhVRHvNkr0oAgCQry+IFAJjq+beh6MLpNzoAFUX1TQm9Vu+m2ScTgUjGJyBtGHisgJowbYdPMrQ==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.5.4","@agentproto/corpus":"0.7.3","@agentproto/knowledge-engine":"0.2.2","@agentproto/adapter-knowledge-files":"0.2.8","@agentproto/adapter-knowledge-qdrant":"0.2.3","@agentproto/adapter-knowledge-gbrain-doc":"0.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.5_1788960725479_0.7840607586258623","host":"s3://npm-registry-packages-npm-production"}},"0.4.6":{"name":"@agentproto/workspace-brain","version":"0.4.6","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.6","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"c0947f69e0b890dec682550ce38404e76074f299","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.6.tgz","fileCount":6,"integrity":"sha512-TpFjBpA7VKoou1Nq2MvtcXTp54gmsvjAu2YfRj9xFrINpwF01S8jy06z3SFhrmCRRSK39FrYx5GRLkFX4iP94Q==","signatures":[{"sig":"MEUCIAUFul8NPYZQ1KJAvfBy2hTE7gfJQBwLkBA/YcIDWqy6AiEA83MQR74VZmJ5GxgYwgarYBMeeyW2p91XXni+oTgfuDQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151098},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.6.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/689790b61c65eea543021bbdd3c14626/agentproto-workspace-brain-0.4.6.tgz","_integrity":"sha512-TpFjBpA7VKoou1Nq2MvtcXTp54gmsvjAu2YfRj9xFrINpwF01S8jy06z3SFhrmCRRSK39FrYx5GRLkFX4iP94Q==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.5","@agentproto/corpus":"0.8.0","@agentproto/knowledge-engine":"0.2.3","@agentproto/adapter-knowledge-files":"0.2.9","@agentproto/adapter-knowledge-qdrant":"0.2.4","@agentproto/adapter-knowledge-gbrain-doc":"0.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.6_1789642912903_0.45788625847663034","host":"s3://npm-registry-packages-npm-production"}},"0.4.7":{"name":"@agentproto/workspace-brain","version":"0.4.7","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.7","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"d799ece8570887ace9e17b30a50370ae784403d1","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.7.tgz","fileCount":6,"integrity":"sha512-TlEHbWAZ70wtRqqEC7yKAOj1cI7pDbn3+2pH0YapApT0pC/DEFlrM37xQAHqq4UfTizrSTsqLCP541mfpeBKmg==","signatures":[{"sig":"MEUCICFgGCkhgXr8RmaVqGO0DPFoaAZjFX2Y5BqLDvvPZ2vlAiEAmJrl9szDcNUikuCxJsGC9WJ/sFs4e0d5B/+rHmMKz4E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDCpQAGwreyRCI7lwTzpyIESktPb9Db37KEYf4vDCLOYAIhAMPmTTqnWjl+Mh6kn+u1/5k8xGKKfV1fwb0d65iqcpew","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151099},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.7.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/35c85cc616bb15845ec607c1683f6345/agentproto-workspace-brain-0.4.7.tgz","_integrity":"sha512-TlEHbWAZ70wtRqqEC7yKAOj1cI7pDbn3+2pH0YapApT0pC/DEFlrM37xQAHqq4UfTizrSTsqLCP541mfpeBKmg==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.5","@agentproto/corpus":"0.8.0","@agentproto/knowledge-engine":"0.2.3","@agentproto/adapter-knowledge-files":"0.2.10","@agentproto/adapter-knowledge-qdrant":"0.2.5","@agentproto/adapter-knowledge-gbrain-doc":"0.2.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.7_1790069054700_0.7375993796517242","host":"s3://npm-registry-packages-npm-production"}},"0.4.8":{"name":"@agentproto/workspace-brain","version":"0.4.8","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.8","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"d88eb44e9cc3a387d89c587b369043f05ab6ac4d","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.8.tgz","fileCount":6,"integrity":"sha512-4qRtPWd2mDwWKtzaNjoj8knhMlFkEVUoAQ5VZDIzZAL0ssaEu4zrwL7+6zq6Ye/1rd9b1v9BC8nMFrPdi3B0pA==","signatures":[{"sig":"MEUCIDBR+bW4UrhLWKjySBSKYCrDybasFxN5IjDeUMvuI192AiEAt0zgOmFPWgQMCWFTWcfyJfxJ9DCTbyew7Bu4AriEFp4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCc7PG2DHOiQgyC1QxA2xq+dB7DdpFvyA1ouD/LaZIH8wIgSwQ2/fn+u/H9FsSfFR0mKc/Ome0cZ/1Iq752ynJFxi8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151099},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.8.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/a31491463ac7ead969197d749167a533/agentproto-workspace-brain-0.4.8.tgz","_integrity":"sha512-4qRtPWd2mDwWKtzaNjoj8knhMlFkEVUoAQ5VZDIzZAL0ssaEu4zrwL7+6zq6Ye/1rd9b1v9BC8nMFrPdi3B0pA==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.5","@agentproto/corpus":"0.8.1","@agentproto/knowledge-engine":"0.2.4","@agentproto/adapter-knowledge-files":"0.2.11","@agentproto/adapter-knowledge-qdrant":"0.2.6","@agentproto/adapter-knowledge-gbrain-doc":"0.2.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.8_1790477194516_0.1612466693576491","host":"s3://npm-registry-packages-npm-production"}},"0.4.9":{"name":"@agentproto/workspace-brain","version":"0.4.9","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"license":"Apache-2.0","_id":"@agentproto/workspace-brain@0.4.9","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"homepage":"https://agentproto.sh","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"b1ce3530725c905918fd99b68bad9e53edeff2e8","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.9.tgz","fileCount":6,"integrity":"sha512-ld6fdTjhtI7lZygRoUzXE6AoGJ+WS0RQ+6xg0wEGJbzmivA1WaOUKNyvXcHczCVhY5q7lhZ4fe8FspCowKQFcQ==","signatures":[{"sig":"MEUCIDIGiz4A8IGELYkP30fi8ydNMKu1NAS+hmxdYiHFjUq1AiEA+ZBg49UyAi7Joo8fNKLlY/Yde0vUHkZWGjH27yYzeT0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQD+H/0npMLewqv6fiDY7bQH80sWwkAcl3G5D7GQvFEdWAIgacpFOCjDFiSJhJ50lcrbVE4vgBcWJ2GHoXOOtUkn43Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151099},"main":"dist/index.mjs","type":"module","_from":"file:agentproto-workspace-brain-0.4.9.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"_resolved":"/tmp/0168692a13ef06a10a3ea43b9b5662c0/agentproto-workspace-brain-0.4.9.tgz","_integrity":"sha512-ld6fdTjhtI7lZygRoUzXE6AoGJ+WS0RQ+6xg0wEGJbzmivA1WaOUKNyvXcHczCVhY5q7lhZ4fe8FspCowKQFcQ==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.5","@agentproto/corpus":"0.8.2","@agentproto/knowledge-engine":"0.2.5","@agentproto/adapter-knowledge-files":"0.2.12","@agentproto/adapter-knowledge-qdrant":"0.2.7","@agentproto/adapter-knowledge-gbrain-doc":"0.2.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/workspace-brain_0.4.9_1790702485765_0.7906883105778855","host":"s3://npm-registry-packages-npm-production"}},"0.4.10":{"_id":"@agentproto/workspace-brain@0.4.10","bugs":{"url":"https://github.com/agentproto/ts/issues"},"dist":{"shasum":"d773a1fdc3472e8e4ebbb7bf3e58c4936e9014ee","tarball":"https://registry.npmjs.org/@agentproto/workspace-brain/-/workspace-brain-0.4.10.tgz","fileCount":6,"integrity":"sha512-lZA/yThkmQ/TlpBzdfBc9bO2WeGiyYy0e89X3b5geY3FahVSfvW2wDHHpmPC8PGdDJ8aYwgoDseyy+ngnIyh7A==","signatures":[{"sig":"MEUCIQDLoVkK7H2RHF+by/G5M+YEeAZ/Ae9SABSJQzIbJSQ9SgIgDEhLvzml+ynsDDgX742hz0tHFTUPQof/24CTfHxlxqk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID9/CSk3Z16y9ehzn+DWlukhlwOFoeYs3CxCoExWW0jpAiACVN2bKLjUOYDbSVOpZW40CeDDg51MKvx4yvzSfmX85Q=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentproto%2fworkspace-brain@0.4.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151100},"main":"dist/index.mjs","name":"@agentproto/workspace-brain","type":"module","_from":"file:agentproto-workspace-brain-0.4.10.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20.9.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"license":"Apache-2.0","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","test:watch":"vitest","check-types":"tsc --noEmit"},"version":"0.4.10","_npmUser":{"name":"agentiknet","email":"jeremy@agentik.net"},"homepage":"https://agentproto.sh","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"_resolved":"/tmp/a6f7ab91d8c20be04165d491073d7655/agentproto-workspace-brain-0.4.10.tgz","_integrity":"sha512-lZA/yThkmQ/TlpBzdfBc9bO2WeGiyYy0e89X3b5geY3FahVSfvW2wDHHpmPC8PGdDJ8aYwgoDseyy+ngnIyh7A==","repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"_npmVersion":"10.9.8","description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","directories":{},"maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.6.5","@agentproto/corpus":"0.8.2","@agentproto/knowledge-engine":"0.2.6","@agentproto/adapter-knowledge-files":"0.2.13","@agentproto/adapter-knowledge-qdrant":"0.2.8","@agentproto/adapter-knowledge-gbrain-doc":"0.2.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.7","typescript":"^5.9.3","@types/node":"^25.9.5","@agentproto/tooling":"0.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/workspace-brain_0.4.10_1790733155024_0.8754865909657343"}}},"time":{"created":"2026-08-11T23:46:57.086Z","modified":"2026-09-30T01:52:35.585Z","0.2.0":"2026-08-11T23:46:57.391Z","0.2.1":"2026-08-14T01:32:39.378Z","0.3.0":"2026-08-15T03:09:56.060Z","0.4.1":"2026-09-01T16:30:02.391Z","0.4.2":"2026-09-02T14:23:22.607Z","0.4.3":"2026-09-06T00:28:42.639Z","0.4.5":"2026-09-09T13:32:05.711Z","0.4.6":"2026-09-17T11:01:53.032Z","0.4.7":"2026-09-22T09:24:14.790Z","0.4.8":"2026-09-27T02:46:34.599Z","0.4.9":"2026-09-29T17:21:25.865Z","0.4.10":"2026-09-30T01:52:35.109Z"},"bugs":{"url":"https://github.com/agentproto/ts/issues"},"license":"Apache-2.0","homepage":"https://agentproto.sh","keywords":["agentproto","workspace","brain","knowledge","conversation","retrieval","bm25","rag"],"repository":{"url":"git+https://github.com/agentproto/ts.git","type":"git","directory":"packages/workspace-brain"},"description":"A per-workspace 'brain': indexes the conversations of a workspace's agent sessions into a queryable knowledge store (BM25 by default, or any federated combination of the knowledge adapters) so downstream agents can recall what a workspace's sessions did. ","maintainers":[{"name":"agentiknet","email":"jeremy@agentik.net"}],"readme":"# @agentproto/workspace-brain\n\nA **brain per workspace**: indexes the conversations of a workspace's agent\nsessions into a queryable knowledge store so downstream agents can recall what\nthat workspace's sessions actually did.\n\nPhase 1 makes conversations **queryable** — nothing smarter yet. Every time a\ndaemon session exits, its transcript is ingested into a per-workspace BM25\nindex; an agent can then ask `workspace_brain_query` and get ranked hits over\neverything that workspace has worked on.\n\nThis package is **pure engine** — it does not read a real conversation store.\nThe bridge between a session's exported transcript and the corpus\n`ConversationSourcePort` is injected via `BrainConfig.readSession`, so the same\nengine runs over any source of transcripts (the daemon wires it to\n`CONVERSATION_STORES` + the `events.jsonl` fallback in\n`packages/runtime/src/workspace-brains.ts`).\n\n## Layout\n\n```\n~/.agentproto/workspaces/<slug>/brain/\n├── brain-state.json          # which sessions were ingested or skipped (atomic, never corrupts)\n└── knowledge/\n    └── sources/              # one markdown chunk per ingested chunk\n        ├── sess-abc123.md    # chunk 0 of a session (or a pre-chunking session)\n        ├── sess-abc123#1.md  # chunk 1 of a long session\n        └── sess-def456.md\n```\n\nThe `knowledge/` directory is exactly what `@agentproto/adapter-knowledge-files`'\n`FilesKnowledgeAdapter` indexes with BM25 (zero deps, no embeddings, no API key).\n\nLong transcripts are split into **turn-bounded chunks** (default ~3.5 KB) so\neach chunk ranks independently and query snippets land near the matched\npassage. Chunk 0 keeps the bare session id, so a single-chunk session (the\ncommon case) writes to the same path the pre-chunking pipeline used. A session\nwith no readable transcript or an empty transcript is recorded as a **skip** in\n`brain-state.json` so `pendingSessions` converges instead of retrying forever —\nit's not a tombstone; an explicit re-ingest or later successful ingest clears\nit.\n\n## What's here\n\n- `types.ts` — `BrainStateRecord`, `BrainStateSkip`, `BrainStats`, `BrainConfig`.\n- `brain-state.ts` — atomic read/write of `brain-state.json` (tmp+rename, like\n  the workspace-bucket snapshot writer; a corrupt file reads back as empty).\n  Also records skipped sessions.\n- `session-source-port.ts` — `BrainSessionSourcePort`, a corpus\n  `ConversationSourcePort` that turns an injected exported transcript into\n  `ConversationTurn`s.\n- `chunking.ts` — turn-bounded transcript chunking (`chunkTurns`, `chunkUri`,\n  `renderChunkMarkdown`) with a default `DEFAULT_CHUNK_MAX_BYTES` ceiling\n  (~3.5 KB).\n- `ingest-pipeline.ts` — the import loop: enumerate sessions → flatten turns →\n  chunk → markdown per chunk → `provider.ingest()` (which also invalidates the\n  BM25 cache).\n- `brain-manager.ts` — the orchestrator: lazily creates the `FilesKnowledgeAdapter`\n  rooted at `brain/knowledge/`, exposes `ingestSession` / `ingestPending` /\n  `status` / `getProvider`.\n\n## Usage\n\n```ts\nimport { createBrainManager } from \"@agentproto/workspace-brain\"\n\nconst manager = createBrainManager({\n  workspace: \"agentik-studio\",\n  brainDir: \"/Users/you/.agentproto/workspaces/agentik-studio/brain\",\n  readSession: async (sessionId) => await loadSessionTranscript(sessionId),\n  listSessionRefs: async () => await listSessionIds(),\n})\n\nawait manager.ingestSession(\"sess-abc123\")\nconst result = await manager.getProvider().query({ query: \"what did we do about auth?\", topK: 5 })\n```\n","readmeFilename":"README.md"}