Commit graph

93 commits

Author SHA1 Message Date
elpresidank
be2370ee7b feat(ts): complete schema-first phase 2 2026-06-11 07:37:59 -05:00
elpresidank
0746d7ffd5 feat(ts): add real quality gates — Biome lint + effect-law ratchet + class inventory
- biome.json (2.4.16, linter-only) wired as "lint" in all six packages
- scripts/check-effect-laws.ts: Effect-native law enforcement encoding the
  adapted beep-effect effect-first/schema-first laws (no native JSON/switch/
  sort/fetch/timers, no process.env, no throw new, no Effect.run* outside
  boundaries, no Schema-suffixed constants, no node:fs/path, AST-based
  pure-data interface detection per law 38/39)
- ratcheting baseline allowlist (95 entries / 290 findings) that must shrink
  to documented exemptions only; stale counts fail the gate
- root lint chains turbo lint + law check + native-class inventory
- fix all 163 initial Biome findings: import-type style, templates, two `any`s,
  ten non-null assertions (librarian getService gate, A.matchRight in atoms,
  ensureNode returning nodes, main.tsx mount guard)

Gates: lint, check:tsgo, build, test (force, 11 tasks) all green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 06:40:01 -05:00
elpresidank
cf12defcd8 refactor(ts): complete legacy host removal — drop fastify/commander/zod, delete MCP SDK server, remove ManagedRuntime facades
Finishes the remaining EFFECT_NATIVE_REWRITE_PLAN stages in one verified slice:
- fastify, @fastify/websocket, commander, zod removed from all package manifests
- legacy @modelcontextprotocol/sdk stdio server deleted; effect/unstable/ai McpServer is canonical
- no ManagedRuntime or Effect.runPromise program facades remain in production source
- gateway server/rpc-contract and client rpc/socket moved onto Effect v4 native http/rpc/socket layers

Gates (force-run, no cache): check:tsgo, build, test (96 tests / 11 tasks) all green.
Native-class inventory: zero blocking production classes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 06:29:29 -05:00
elpresidank
a26463afc1 fix(ts): close effect native review blockers 2026-06-06 11:01:17 -05:00
elpresidank
b6759e75df refactor(ts): make port effect native 2026-06-06 10:33:10 -05:00
elpresidank
2868ced2d3 Relax flow spec return types 2026-06-04 09:06:28 -05:00
elpresidank
976e7ecfc5 Use Predicate and FileSystem in final Effect cleanup 2026-06-04 08:33:31 -05:00
elpresidank
c48927b7c5 Use tagged errors in tests 2026-06-04 08:10:09 -05:00
elpresidank
c4500f216e Use MutableHashMap for librarian state 2026-06-04 08:02:20 -05:00
elpresidank
338232efa8 Use MutableHashMap for prompt templates 2026-06-04 07:46:43 -05:00
elpresidank
7d77a5c1de Use MutableHashMap for collection manager 2026-06-04 07:41:19 -05:00
elpresidank
157dd38df5 Use Chunk for recursive splitter results 2026-06-04 07:37:03 -05:00
elpresidank
4032d15d96 Use Effect fn for Ollama embeddings 2026-06-04 07:21:30 -05:00
elpresidank
d939e6523c Use Effect fn for RAG helpers 2026-06-04 07:11:00 -05:00
elpresidank
935ded616c Use Effect collections for RPC protocol clients 2026-06-04 07:07:20 -05:00
elpresidank
5a945af345 Validate RPC protocol frames with Schema 2026-06-04 07:04:15 -05:00
elpresidank
67b5e0dd5b Use HashMap for flow manager state 2026-06-04 06:53:21 -05:00
elpresidank
9eaa1a2c1e Use Effect fn for FalkorDB helpers 2026-06-04 06:44:34 -05:00
elpresidank
d6edd14e4c Use Effect fn for librarian helpers 2026-06-04 06:40:56 -05:00
elpresidank
749f75715d Use HashMap for knowledge core state 2026-06-04 06:36:30 -05:00
elpresidank
6ba4cf3b32 Use Effect fn for config service helpers 2026-06-04 06:31:28 -05:00
elpresidank
3890a598b5 Use Effect fn for knowledge core helpers 2026-06-04 06:28:27 -05:00
elpresidank
475bc3cb6c Use HashMap for config service state 2026-06-04 06:22:35 -05:00
elpresidank
dfc79bb050 Use Match for streaming agent parser 2026-06-04 06:03:14 -05:00
elpresidank
89f9d63b88 Use Match for agent service dispatch 2026-06-04 05:53:58 -05:00
elpresidank
21620cbf8d Remove MCP transport type assertion 2026-06-04 05:50:30 -05:00
elpresidank
664aef44a7 Use Match for Effect AI stream parts 2026-06-04 05:38:08 -05:00
elpresidank
3a256096f8 Use HashSet for gateway term service sets 2026-06-04 05:34:15 -05:00
elpresidank
68cbcde1f6 Use Match for flow manager operations 2026-06-04 05:20:03 -05:00
elpresidank
213222bb42 Use Match for librarian operation dispatch 2026-06-04 05:16:14 -05:00
elpresidank
8d5edfae9a Use Match for config operations 2026-06-02 10:00:56 -05:00
elpresidank
66e1009671 Use Match for knowledge core operations 2026-06-02 09:45:29 -05:00
elpresidank
47221d6ab5 Normalize FlowManager effects with Effect.fn 2026-06-02 09:41:32 -05:00
elpresidank
7f9541e4fa Use Effect collections in gateway dispatcher 2026-06-02 09:32:21 -05:00
elpresidank
d19167b566 Use MutableHashSet for Qdrant collection caches 2026-06-02 09:21:19 -05:00
elpresidank
09d34fb4d4 Normalize term translation with Effect Match 2026-06-02 09:11:33 -05:00
elpresidank
0fb10aca73 Migrate metrics to Effect primitives 2026-06-02 08:52:29 -05:00
elpresidank
39db6d8235 Use tagged errors for dispatch RPC 2026-06-02 08:41:36 -05:00
elpresidank
1d45307387 Migrate Claude provider to Effect AI 2026-06-02 08:36:55 -05:00
elpresidank
24a2447cc3 Use Effect primitives for AI and response fanout 2026-06-02 08:26:50 -05:00
elpresidank
1218e827d4 Fail pending request responses on stop 2026-06-02 06:19:32 -05:00
elpresidank
89ef3dbbbf Harden gateway dispatcher effects 2026-06-02 05:14:58 -05:00
elpresidank
fe4f5777c9 Make text completion provider layers effectful 2026-06-02 05:09:15 -05:00
elpresidank
f7f29c4df9 Handle gateway RPC socket causes in Effect 2026-06-02 04:42:32 -05:00
elpresidank
32fc7ea32d Share text completion stream helpers 2026-06-02 04:33:48 -05:00
elpresidank
9d3f745fb0 Make Ollama embeddings layer effectful 2026-06-02 04:24:14 -05:00
elpresidank
8287e1cf93 Add fakeable Qdrant Effect services 2026-06-02 04:10:03 -05:00
elpresidank
d38ce475fd Scope FalkorDB triples clients 2026-06-02 03:55:39 -05:00
elpresidank
ce5838db1d Add Effect-native gateway streaming path 2026-06-02 03:43:21 -05:00
elpresidank
44110c5bb4 Add typed flow spec accessors 2026-06-02 03:23:23 -05:00