Commit graph

143 commits

Author SHA1 Message Date
elpresidank
cd6c9107d7 refactor(ts): make maintenance scripts effect native 2026-06-11 08:25:13 -05:00
elpresidank
a7bdbb9257 refactor(ts): make client gateway effect native 2026-06-11 08:06:31 -05:00
elpresidank
174d636178 refactor(ts): remove non-client effect run boundaries 2026-06-11 07:47:44 -05:00
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
c40bd406f8 Add MCP legacy tool parity coverage 2026-06-04 08:17:49 -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
4ffa84dbe7 Use MutableHashMap for base flow registries 2026-06-04 07:53:49 -05:00
elpresidank
fba0f97723 Use MutableHashMap for workbench explain triples 2026-06-04 07:49:58 -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
069d901737 Use Effect fn for workbench random ids 2026-06-04 07:39:08 -05:00
elpresidank
157dd38df5 Use Chunk for recursive splitter results 2026-06-04 07:37:03 -05:00
elpresidank
1a29bdef9d Use Effect fn for base processor helpers 2026-06-04 07:34:14 -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
451c6dbc58 Use MutableHashSet for NATS stream cache 2026-06-04 06:33:11 -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
48710a0518 Use Ref for request response stop state 2026-06-04 06:16:03 -05:00
elpresidank
e46fc64275 Use Match for workbench dispatch 2026-06-04 06:07:20 -05:00
elpresidank
dfc79bb050 Use Match for streaming agent parser 2026-06-04 06:03:14 -05:00
elpresidank
a0d98a573b Use Match for CLI MIME detection 2026-06-04 05:56:53 -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
3378b79fbc Use Match for client callback dispatch 2026-06-04 05:44:57 -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
0862250dab Use SubscriptionRef for client connection state 2026-06-04 05:30:31 -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
71edff47ed Use Duration for messaging runtime config 2026-06-02 09:16:33 -05:00