ai-hist-mcp 0.29.0 → 0.30.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.
- package/README.md +41 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,22 +3,47 @@
|
|
|
3
3
|
Thin `npx -y ai-hist-mcp` wrapper for the local `ai-hist` MCP server.
|
|
4
4
|
It calls public SDK operations; it never opens SQLite or loads cloud auth.
|
|
5
5
|
|
|
6
|
-
Default tools cover cached search/recent/catalog/statistics, discovery/sync,
|
|
7
|
-
identity-addressed events/tool calls/file edits/
|
|
8
|
-
|
|
6
|
+
Default tools cover cached search/recent/catalog/statistics, discovery/sync, and
|
|
7
|
+
identity-addressed events/tool calls/file edits/markers/requests/usage/
|
|
8
|
+
relationships/session trees. `create_handoff` and `resume_handoff` are also
|
|
9
|
+
enabled by default: the former returns the caller's current-session pointer and
|
|
10
|
+
the latter composes a bounded continuation page containing prompts, normalized
|
|
11
|
+
events, tool calls, and file edits. Cached scopes local/remote/all do not
|
|
9
12
|
read credentials; acquisition defaults to local. Tool and file edit pages require
|
|
10
13
|
both source and session ID and use bounded deterministic cursors.
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
the
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
A Relaycast handoff is a pointer, never an inlined transcript. `create_handoff`
|
|
16
|
+
turns the caller's continuation request into the pointer's single,
|
|
17
|
+
self-describing `intent` field:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{"source":"codex","session_id":"abc","intent":"Resume this handoff: call resume_handoff(source=codex, session_id=abc) via the ai-hist MCP, then continue: continue the fix","origin_agent":"sender","origin_user":"user-id"}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Send the full result as structured delivery metadata with `kind="handoff"`, and
|
|
24
|
+
send its `intent` value unchanged as the DM text. Do not add a second text field:
|
|
25
|
+
the cloud handoff contract requires the delivery text to equal `intent`.
|
|
26
|
+
|
|
27
|
+
Before sending, call `resume_handoff` once with the new pointer and send only
|
|
28
|
+
after that workspace read succeeds. This prevents a live pointer from racing
|
|
29
|
+
ahead of Agent Relay desktop's team upload.
|
|
30
|
+
|
|
31
|
+
On receipt, the normal agent prompt is sufficient: follow the instruction in
|
|
32
|
+
`intent`, call `resume_handoff(source, session_id)` immediately, and continue
|
|
33
|
+
the original request with the returned context. Pass `next_cursor` back
|
|
34
|
+
unchanged when an additional page is needed. No installed handoff skill is
|
|
35
|
+
required. Handoffs are workspace-scoped: resume selects only the configured
|
|
36
|
+
`cloud` connector, refreshes its session observation under the currently
|
|
37
|
+
authenticated workspace, and rejects unavailable cross-workspace or
|
|
38
|
+
cross-organization sessions.
|
|
39
|
+
|
|
40
|
+
Remote acquisition is optional. Install a source plugin such as
|
|
41
|
+
`@relayhistory/provider-sources` and set `AI_HIST_PLUGIN_CONFIG` to its explicit
|
|
42
|
+
module config. Loading a configured plugin is inert and adds no tools.
|
|
43
|
+
`source_connectors` selects configured source IDs; an empty array disables
|
|
44
|
+
remote acquisition. Acquisition tools declare open-world writes.
|
|
45
|
+
|
|
46
|
+
Agent Relay desktop owns team upload and supplies the workspace-authenticated
|
|
47
|
+
`cloud` source configuration used by `resume_handoff`; the retired
|
|
48
|
+
`@relayhistory/capture` package is not required. Auto-resume is prompt-driven by
|
|
49
|
+
the self-describing `intent`; there is no handoff skill to install.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-hist-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.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.
|
|
25
|
+
"ai-hist": "0.30.0"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=20"
|