@panaversity/ksor 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @panaversity/ksor
2
2
 
3
+ ## 0.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - ed2dce0: Fix the container serving the DEFAULT tool surface while the repository said
8
+ otherwise.
9
+
10
+ `.dockerignore` excluded all of `system/` — correct when that directory held only
11
+ the website, and wrong the moment the door's own registration moved into
12
+ `system/gateways/`. The file never reached the image, so a record that had
13
+ renamed its tools, dropped one, or written what it covers was deployed serving
14
+ none of it. Nothing went red: the door booted, `/health` was green, searches
15
+ returned cited hits, and only `tools/list` betrayed it.
16
+
17
+ It now excludes `system/site/`, and the Dockerfile copies the project rather than
18
+ naming files one at a time — which is how the door came to ship without the very
19
+ file that shapes its tool surface.
20
+
21
+ The container acceptance job now writes a customized registration before building
22
+ the image and asserts the served tool is the one that file names. Found by
23
+ deploying and looking at `tools/list`, which is the only thing that would have.
24
+
25
+ ## 0.0.24
26
+
27
+ ### Patch Changes
28
+
29
+ - cbdc4c2: The MCP tool surface is now adopter-owned code. `ksor init` emits
30
+ `system/gateways/content.ts` — ordinary `registerTool` calls with ordinary zod —
31
+ where a record sets what its tools are called, what it says it covers, what they
32
+ accept, and which of them exist at all.
33
+
34
+ Agents are the operator, and an agent pays for this surface out of its context
35
+ window twice. Measured against a live 81-document record: the three tool
36
+ definitions cost ~2,990 tokens and stay resident for the whole session, and one
37
+ `search` at the default `k=10` costs ~3,541 tokens per call. Until now a record
38
+ could change none of it. Deleting the two tools your agents never call gives back
39
+ ~1,643 tokens a session — verified live at 5,337 bytes of definitions against the
40
+ default's 11,960.
41
+
42
+ Real code rather than a config API, because models are trained on the MCP SDK and
43
+ on zod and not on our field names — and because `registerTool` lets a record add
44
+ its own tools, which no config schema could have anticipated. One import
45
+ (`@panaversity/ksor/gateway`, which re-exports `z` and `McpServer`), so a
46
+ registration stays a file: no package, no build step, nothing new in your
47
+ lockfile. It is **deletable** — without it the door serves the identical surface.
48
+
49
+ The handlers, output schemas and framework description text stay in the package,
50
+ because a hand-written handler returning fabricated hits with plausible
51
+ `stable_id`s passes every shape check there is. Your prose composes ABOVE the
52
+ framework text, never instead of it — and since that is now a template literal in
53
+ a file you own, **the door inspects its own served surface at boot** and refuses
54
+ to start when a guarantee is gone: `ksor-gateway-floor-missing`,
55
+ `ksor-gateway-no-tools`, `ksor-gateway-unloadable`.
56
+
57
+ Adds a public subpath export, `@panaversity/ksor/gateway`.
58
+
59
+ New: `docs/tool-surface.md`.
60
+
3
61
  ## 0.0.23
4
62
 
5
63
  ### Patch Changes