@atrib/annotate 0.2.0 → 0.2.1
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.d.ts +22 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import { type ResolvedKey } from '@atrib/emit';
|
|
4
|
+
export declare const Importance: z.ZodEnum<{
|
|
5
|
+
critical: "critical";
|
|
6
|
+
high: "high";
|
|
7
|
+
medium: "medium";
|
|
8
|
+
low: "low";
|
|
9
|
+
noise: "noise";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const AnnotateInput: z.ZodObject<{
|
|
12
|
+
annotates: z.ZodString;
|
|
13
|
+
importance: z.ZodEnum<{
|
|
14
|
+
critical: "critical";
|
|
15
|
+
high: "high";
|
|
16
|
+
medium: "medium";
|
|
17
|
+
low: "low";
|
|
18
|
+
noise: "noise";
|
|
19
|
+
}>;
|
|
20
|
+
summary: z.ZodString;
|
|
21
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
context_id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
informed_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
3
25
|
export interface AtribAnnotateServer {
|
|
4
26
|
/** Underlying McpServer; expose for testing or composition. */
|
|
5
27
|
mcp: McpServer;
|
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@ import { handleEmit, resolveKey, } from '@atrib/emit';
|
|
|
20
20
|
import { createSubmissionQueue, EVENT_TYPE_ANNOTATION_URI, } from '@atrib/mcp';
|
|
21
21
|
const SHA256_REF_PATTERN = /^sha256:[0-9a-f]{64}$/;
|
|
22
22
|
const HEX_32_PATTERN = /^[0-9a-f]{32}$/;
|
|
23
|
-
const Importance = z.enum(['critical', 'high', 'medium', 'low', 'noise']);
|
|
24
|
-
const AnnotateInput = z.object({
|
|
23
|
+
export const Importance = z.enum(['critical', 'high', 'medium', 'low', 'noise']);
|
|
24
|
+
export const AnnotateInput = z.object({
|
|
25
25
|
annotates: z.string().regex(SHA256_REF_PATTERN).describe("'sha256:<64-hex>' record_hash this annotation describes per spec §1.2.7 / D058. " +
|
|
26
26
|
'REQUIRED. The target record can be any prior record (yours or another agent\'s).'),
|
|
27
27
|
importance: Importance.describe('Felt importance for future-self recall ranking. ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atrib/annotate",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "MCP server for atrib. Lets agents mark a past record's importance and meaning. Adds an ANNOTATES graph edge so recall surfaces weighted annotations ahead of flat scans.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
13
13
|
"zod": "^3.25.76",
|
|
14
|
-
"@atrib/emit": "0.
|
|
14
|
+
"@atrib/emit": "0.9.0",
|
|
15
15
|
"@atrib/mcp": "0.6.2"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|