@atrib/revise 0.2.26 → 0.2.28

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 CHANGED
@@ -63,6 +63,8 @@ Or run as a one-off subprocess via `pnpm --filter @atrib/revise start`.
63
63
  - `ATRIB_AUTOCHAIN_SOURCE`: optional cross-producer chain inheritance source.
64
64
  - `ATRIB_LOG_ENDPOINT`: log.atrib.dev override (e.g. for self-hosted log nodes).
65
65
  - `ATRIB_CONTEXT_ID`: default context_id per [D078](https://github.com/creatornader/atrib/blob/main/DECISIONS.md#d078-mcp-servers-honor-atrib_context_id-env-as-context_id-default).
66
+ - `ATRIB_LOCAL_SUBSTRATE_ENDPOINT` + `ATRIB_LOCAL_SUBSTRATE_MODE=shadow`: opt-in P042 local-substrate shadow probe inherited from `@atrib/emit`. The revision is still signed, mirrored, and queued locally.
67
+ - `ATRIB_LOCAL_SUBSTRATE_TIMEOUT_MS`: optional timeout for that shadow probe.
66
68
 
67
69
  ## Relationship to @atrib/emit
68
70
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { z } from 'zod';
3
- import { type ResolvedKey } from '@atrib/emit';
3
+ import { type EmitLocalSubstrateShadowOptions, type ResolvedKey } from '@atrib/emit';
4
4
  export declare const ReviseInput: z.ZodObject<{
5
5
  revises: z.ZodString;
6
6
  prior_position: z.ZodString;
@@ -21,6 +21,11 @@ export interface CreateAtribReviseServerOptions {
21
21
  key?: ResolvedKey;
22
22
  /** Override the log endpoint (defaults to env or @atrib/mcp default). */
23
23
  logEndpoint?: string | undefined;
24
+ /**
25
+ * Optional long-lived-agent local substrate shadow probe. `undefined` reads
26
+ * opt-in env config; `false` disables env config for this server.
27
+ */
28
+ localSubstrate?: EmitLocalSubstrateShadowOptions | false | undefined;
24
29
  }
25
30
  /**
26
31
  * Wire up the atrib-revise MCP server with one `atrib-revise` tool.
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@
21
21
  // §1.6), and the revision adds a REVISES graph edge that supersedes it.
22
22
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
23
23
  import { z } from 'zod';
24
- import { handleEmit, resolveKey, } from '@atrib/emit';
24
+ import { resolveEmitLocalSubstrateShadowFromEnv, 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}$/;
@@ -54,6 +54,13 @@ export async function createAtribReviseServer(options = {}) {
54
54
  const key = options.key ?? (await resolveKey());
55
55
  const logEndpoint = options.logEndpoint ?? process.env['ATRIB_LOG_ENDPOINT'];
56
56
  const queue = createSubmissionQueue(logEndpoint);
57
+ const localSubstrate = options.localSubstrate === false
58
+ ? undefined
59
+ : (options.localSubstrate ??
60
+ resolveEmitLocalSubstrateShadowFromEnv({
61
+ producer: 'atrib-revise',
62
+ transport: 'stdio-mcp-server',
63
+ }));
57
64
  const mcp = new McpServer({ name: 'atrib-revise', version: '0.1.0' });
58
65
  mcp.registerTool('atrib-revise', {
59
66
  description: 'Supersede a prior position with a stated reason. Cognitive primitive #3 of ' +
@@ -81,6 +88,7 @@ export async function createAtribReviseServer(options = {}) {
81
88
  key,
82
89
  queue,
83
90
  producer: 'atrib-revise',
91
+ localSubstrate,
84
92
  });
85
93
  const out = {
86
94
  record_hash: result.record_hash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atrib/revise",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
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
  "author": "atrib <hello@atrib.dev>",
6
6
  "keywords": [
@@ -25,8 +25,8 @@
25
25
  "dependencies": {
26
26
  "@modelcontextprotocol/sdk": "^1.29.0",
27
27
  "zod": "^3.25.76",
28
- "@atrib/emit": "0.14.17",
29
- "@atrib/mcp": "0.17.2"
28
+ "@atrib/emit": "0.14.19",
29
+ "@atrib/mcp": "0.17.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^25.9.2",