@sporhq/spor 0.21.1 → 0.22.0

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.
@@ -2,7 +2,7 @@
2
2
  "name": "spor",
3
3
  "displayName": "Spor Context Compiler",
4
4
  "description": "Maintains a typed, versioned knowledge graph and compiles compact briefings from it: session-start injection, per-prompt relevance digests, capture at discovery, end-of-session distillation, decision queue.",
5
- "version": "0.21.1",
5
+ "version": "0.22.0",
6
6
  "author": {
7
7
  "name": "losthammer"
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spor",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "Maintains a typed, versioned knowledge graph and compiles compact briefings from it: session-start injection, per-prompt relevance digests, capture at discovery, end-of-session distillation, decision queue.",
5
5
  "author": {
6
6
  "name": "Spor",
package/API.md CHANGED
@@ -69,6 +69,21 @@ neighbor → neighbor); `render_lens` lineage lenses trace why a node exists,
69
69
  and `render_lens` with no `lens_id` returns the lens catalog (the discovery
70
70
  step before rendering).
71
71
 
72
+ **Per-viewer language register** (task-spor-viewer-register-adaptation): when
73
+ the authenticated viewer's person node carries a free-text `register:` field
74
+ (GRAPH.md "person" — role + preferred language style), the server renders it
75
+ on two channels so the host's model adapts how it explains graph content to
76
+ that user. (1) The initialize `instructions` gain a trailing **`AUDIENCE`**
77
+ section quoting the field; (2) the conversational read tools — `query_graph`,
78
+ `get_node`, `explore_graph`, `show_queue` — prepend one line to their TEXT
79
+ content: `Audience note — how to communicate with this user: <register>`.
80
+ Both channels because host support for instructions is uneven. The preamble
81
+ is presentation-only: `structuredContent` is never touched, `isError` results
82
+ are exempt, and content is never filtered or reordered by it. The field is
83
+ capped at 500 chars on render; agent-scoped identities (dispatch tokens) get
84
+ neither channel — the register describes the human reader. Absent the field,
85
+ both channels are byte-identical to before.
86
+
72
87
  ### `query_graph`
73
88
 
74
89
  The compiler over the wire. Input:
@@ -46,7 +46,7 @@ scalar, free-text prose): how to communicate with this user — their role and
46
46
  preferred language style, e.g. `register: Non-technical founder. Plain
47
47
  everyday language, no graph jargon; use node titles, never raw ids.` Consumers
48
48
  that render graph content *to* this person (the server's MCP instructions
49
- block and conversational tool-result preambles; API.md §5) surface it verbatim
49
+ block and conversational tool-result preambles; API.md §2) surface it verbatim
50
50
  so the model adapts its language to the reader
51
51
  (task-spor-viewer-register-adaptation). Free text on purpose — the model
52
52
  follows prose directly, so no enum→instruction translation table exists to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sporhq/spor",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "description": "Spor — a shared memory substrate for teams and agents. Decisions, their reasons, and the traces they leave. Knowledge-graph context compiler: session-start briefings, per-prompt digests, capture at discovery, end-of-session distillation, decision queue.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Anthony Allen",