@atrib/revise 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 CHANGED
@@ -1,5 +1,15 @@
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 ReviseInput: z.ZodObject<{
5
+ revises: z.ZodString;
6
+ prior_position: z.ZodString;
7
+ new_position: z.ZodString;
8
+ reason: z.ZodString;
9
+ topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ context_id: z.ZodOptional<z.ZodString>;
11
+ informed_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>;
3
13
  export interface AtribReviseServer {
4
14
  /** Underlying McpServer; expose for testing or composition. */
5
15
  mcp: McpServer;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ import { handleEmit, resolveKey, } from '@atrib/emit';
25
25
  import { createSubmissionQueue, EVENT_TYPE_REVISION_URI, } from '@atrib/mcp';
26
26
  const SHA256_REF_PATTERN = /^sha256:[0-9a-f]{64}$/;
27
27
  const HEX_32_PATTERN = /^[0-9a-f]{32}$/;
28
- const ReviseInput = z.object({
28
+ export const ReviseInput = z.object({
29
29
  revises: z.string().regex(SHA256_REF_PATTERN).describe("'sha256:<64-hex>' record_hash this revision supersedes per spec §1.2.9 / D059. " +
30
30
  'REQUIRED. The target record can be any prior record (yours or another agent\'s).'),
31
31
  prior_position: z.string().min(1).max(4096).describe('One-line summary of the position being superseded. Captures what was previously held ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atrib/revise",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server for atrib. Lets agents supersede a prior signed position with a stated reason. Adds a REVISES graph edge so the contradiction is a first-class node rather than a silent edit.",
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.8.0",
14
+ "@atrib/emit": "0.9.0",
15
15
  "@atrib/mcp": "0.6.2"
16
16
  },
17
17
  "devDependencies": {