fix(khala): address review #132 — reuse nerve-core Result, RETURNING for appendMessage, configurable timeout

- Remove duplicate result.ts, import Result/ok/err from @uncaged/nerve-core
- appendMessage uses INSERT...RETURNING instead of INSERT+SELECT
- CloudRole.timeoutSeconds: per-role timeout (defaults to 300s)
- TODO comments for rate limiting and capacity sensing
This commit is contained in:
2026-04-25 04:53:07 +00:00
parent 8e4f191f3f
commit 45fdf3ff9f
11 changed files with 22 additions and 26 deletions
+3
View File
@@ -86,6 +86,9 @@ importers:
packages/khala:
dependencies:
'@uncaged/nerve-core':
specifier: workspace:*
version: link:../core
hono:
specifier: ^4.7.0
version: 4.12.15