@atrib/summarize 0.4.7 → 0.4.9
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/dist/index.js +1 -1
- package/dist/prompt.js +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ const SummarizeInput = z.object({
|
|
|
28
28
|
record_hashes: z.array(z.string().regex(SHA256_REF_PATTERN)).optional().describe("Explicit list of 'sha256:<64-hex>' record hashes to summarize. Records not " +
|
|
29
29
|
"in the local mirror are silently skipped (use trace to inspect dangling)."),
|
|
30
30
|
focus: z.string().min(1).max(2000).optional().describe('Optional steering for the synthesis (e.g. "what decisions did I make", ' +
|
|
31
|
-
'"why did I revise X", "
|
|
31
|
+
'"why did I revise X", "which claims shaped the outcome"). Defaults to a ' +
|
|
32
32
|
'general "summarize what the agent did and why" focus.'),
|
|
33
33
|
max_records: z.number().int().min(1).max(200).optional().describe('Cap on records fed to the LLM, default 50. Records beyond the cap (after ' +
|
|
34
34
|
'sorting by timestamp ascending) are skipped and counted in records_skipped. ' +
|
package/dist/prompt.js
CHANGED
|
@@ -9,7 +9,7 @@ Each record has:
|
|
|
9
9
|
Your job: produce a coherent narrative across the records that surfaces:
|
|
10
10
|
- What the agent was doing (decisions, observations, revisions)
|
|
11
11
|
- What informed what (causal chains via informed_by)
|
|
12
|
-
- What
|
|
12
|
+
- What shaped the outcome vs what was incidental
|
|
13
13
|
- Honest gaps (when records are impoverished, say so; do not invent semantics)
|
|
14
14
|
|
|
15
15
|
Cite specific records by short hash (first 12 chars of record_hash) when making claims.
|
|
@@ -38,7 +38,7 @@ export function buildUserMessage(records, focus) {
|
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
40
|
lines.push(`# Default focus`);
|
|
41
|
-
lines.push('Summarize what the agent did and why, surfacing the
|
|
41
|
+
lines.push('Summarize what the agent did and why, surfacing the decisions that shaped the work and the causal chain.');
|
|
42
42
|
}
|
|
43
43
|
return lines.join('\n');
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atrib/summarize",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "MCP server for atrib. Synthesizes a narrative across N records via an OpenAI-compatible LLM so agents read context, not raw record bytes.",
|
|
5
5
|
"author": "atrib <hello@atrib.dev>",
|
|
6
6
|
"keywords": [
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
27
27
|
"zod": "^3.25.76",
|
|
28
|
-
"@atrib/mcp": "0.
|
|
28
|
+
"@atrib/mcp": "0.16.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^25.9.1",
|
|
32
|
-
"tsx": "^4.22.
|
|
32
|
+
"tsx": "^4.22.4",
|
|
33
33
|
"typescript": "^6.0.3",
|
|
34
|
-
"vitest": "^4.1.
|
|
34
|
+
"vitest": "^4.1.8"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist"
|