@upoch/guard 0.1.0 → 0.1.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/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { Guard } from "./guard.ts";
3
- export declare const VERSION = "0.1.0";
3
+ export declare const VERSION = "0.1.1";
4
4
  export declare const INSTRUCTIONS = "Upoch Guard saves verifiable checkpoints of your work on Robinhood Chain, so a crash, a bad prompt or a bad trade can be recovered from the last good state.\n\nWhen to use it:\n- At the start of a task, call upoch_restore. If a run was interrupted, continue from the returned state and do not repeat its completed actions.\n- After meaningful progress, call upoch_checkpoint with the state you would need to continue (plan, step, positions, results so far). Not after every small step: each checkpoint is an on-chain transaction.\n- Before a consequential external action (a swap, a transfer, a deployment), call upoch_record_action with status \"planned\" and then upoch_checkpoint with kind \"before_action\". After it settles, record it again as \"confirmed\" (with its transaction hash) or \"failed\".\n- If something went wrong (a bad trade, a bad instruction, corrupted state), use upoch_history to find the last good checkpoint and upoch_rollback to go back to it and continue. Rolling back restores your state; it does not undo on-chain transactions, so check the actions it lists.\n- When the task is finished, call upoch_complete.\n\nNever put private keys, seed phrases, passwords or API tokens in the state, notes or actions: checkpoints are permanent. Upoch refuses state that looks like it contains them. Setup (keys, registration, funding) is done by the user in their own terminal with the upoch command; never run \"upoch init\", \"upoch register\", \"upoch key\" or \"upoch export-owner\" yourself.";
5
5
  export declare function createServer(guard: Guard | (() => Guard)): McpServer;
package/dist/server.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { z } from "zod";
5
5
  import { Guard, GuardError } from "./guard.js";
6
- export const VERSION = "0.1.0";
6
+ export const VERSION = "0.1.1";
7
7
  export const INSTRUCTIONS = `Upoch Guard saves verifiable checkpoints of your work on Robinhood Chain, so a crash, a bad prompt or a bad trade can be recovered from the last good state.
8
8
 
9
9
  When to use it:
package/dist/setup.js CHANGED
@@ -46,7 +46,7 @@ function clients(config, key, provider) {
46
46
  return { n, account, pub: createPublicClient({ chain, transport }), wallet: createWalletClient({ chain, transport, account }) };
47
47
  }
48
48
  function metadataURI(config) {
49
- const json = JSON.stringify({ name: config.agentName, agentType: "MCP agent (Upoch Guard)", description: `Checkpointed with Upoch Guard. Agent id ${config.agentId}.` });
49
+ const json = JSON.stringify({ name: config.agentName, agentType: "AI agent (Upoch Guard)", description: `Checkpointed with Upoch Guard. Agent id ${config.agentId}.` });
50
50
  const uri = `data:application/json;base64,${Buffer.from(json).toString("base64")}`;
51
51
  if (uri.length > 512)
52
52
  throw new Error("the agent name is too long for the on-chain metadata (512 bytes)");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upoch/guard",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Upoch Guard: verifiable checkpoints, recovery and rollback for AI agents on Robinhood Chain. The upoch command and the engine behind the Upoch framework plugins.",
5
5
  "keywords": [
6
6
  "upoch",
@@ -15,7 +15,7 @@
15
15
  "license": "MIT",
16
16
  "type": "module",
17
17
  "bin": {
18
- "upoch": "./dist/cli.js"
18
+ "upoch": "dist/cli.js"
19
19
  },
20
20
  "main": "./dist/index.js",
21
21
  "types": "./dist/index.d.ts",