ai-hist-mcp 0.15.8 → 0.16.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.
Files changed (2) hide show
  1. package/README.md +8 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -45,13 +45,13 @@ server-side; there is no org parameter. `kinds` filters `link_kind`, `since`
45
45
  bounds link event time, and `limit` (1-500, default 100) with `cursor` pages the
46
46
  links; outcomes come back whole on every page.
47
47
 
48
- Credentials come from whichever store holds a session: the native `ai-hist
49
- login` store (`RELAYHISTORY_HOME`, else `~/.agentworkforce/relayhistory`) is
50
- read first, then this SDK's own `~/.config/ai-hist/auth.json`. With more than
51
- one stage stored and no `AI_HIST_BASE_URL` naming one, the tool refuses to
52
- guess rather than answer about the wrong org.
48
+ Credentials come exclusively from the native stage store
49
+ (`$RELAYHISTORY_HOME/stages`, default `~/.agentworkforce/relayhistory/stages`).
50
+ `RELAYHISTORY_BASE_URL` takes precedence over `AI_HIST_BASE_URL`; with multiple
51
+ stages and no selection, the tool refuses to guess. Use `ai-hist login` to
52
+ create a session for the selected stage.
53
53
 
54
- A native-store session must meet the same bar the engine's `cloud` connector
54
+ A stored session must meet the same bar the engine's `cloud` connector
55
55
  applies to recall — an `rth_at_` access token, an expiry at least 60s away, and
56
56
  a recorded org for provenance. A session missing a token prefix or an org is one the
57
57
  connector itself reports as unconfigured, so the tool reports it the same way
@@ -59,9 +59,8 @@ and names the missing precondition rather than issuing a request that would
59
59
  fail. `ai-hist login` restores them.
60
60
 
61
61
  Expiry is the exception, because rotation exists to repair it: a rejected
62
- session with a refresh token is rotated once and the new pair persisted over
63
- the file it came from, in that store's own schema, so the CLI and the MCP stay
64
- in step. A pair another process rotated first is adopted rather than spending
62
+ session with a refresh token is rotated under the native stage lock and the
63
+ new pair saved atomically, so the CLI and the MCP stay in step. A pair another process rotated first is adopted rather than spending
65
64
  the one-time refresh token again. Only a session with nothing left to rotate
66
65
  reports expiry as unconfigured.
67
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-mcp",
3
- "version": "0.15.8",
3
+ "version": "0.16.0",
4
4
  "description": "Thin npx wrapper for the ai-hist stdio MCP server.",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -22,7 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "ai-hist": "0.15.8"
25
+ "ai-hist": "0.16.0"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=20"