@adea-ai/tool-sdk 1.4.5 → 1.5.0

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
@@ -496,5 +496,9 @@ export interface ToolExecutor {
496
496
  readonly output: unknown;
497
497
  readonly artifactRefs?: readonly string[];
498
498
  }>;
499
+ observe?(request: ToolExecutionRequest, version: ToolVersion): Promise<{
500
+ readonly output: unknown;
501
+ readonly artifactRefs?: readonly string[];
502
+ } | undefined>;
499
503
  }
500
504
  export declare const packageName = "tool-sdk";
package/dist/index.js CHANGED
@@ -88,11 +88,6 @@ export const ToolSourceSchema = z
88
88
  sourceToolName: z.string().min(1).max(256),
89
89
  sourceToolVersion: z.string().min(1).max(128).optional(),
90
90
  schemaDigest: DigestSchema,
91
- /**
92
- * Pre-cutover digest of the same discovery snapshot (#612): the gateway
93
- * recomputes both forms so versions registered before the code-point
94
- * cutover still execute without spurious MCP_SCHEMA_CHANGED.
95
- */
96
91
  legacySchemaDigest: DigestSchema.optional(),
97
92
  discoveredAt: TimestampSchema,
98
93
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/tool-sdk",
3
- "version": "1.4.5",
3
+ "version": "1.5.0",
4
4
  "description": "Tool definition schemas for the Control Plane: ownership, executors, risk classes, approval modes, idempotency, retry policies, and limits.",
5
5
  "keywords": [
6
6
  "agents",
@@ -41,7 +41,7 @@
41
41
  "test": "bun test src"
42
42
  },
43
43
  "dependencies": {
44
- "@adea-ai/contracts": "^1.23.1",
44
+ "@adea-ai/contracts": "^2.0.0",
45
45
  "zod": "4.6.6"
46
46
  },
47
47
  "engines": {