@indexnetwork/protocol 11.2.1 → 12.0.0-rc.461.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/CHANGELOG.md CHANGED
@@ -52,6 +52,19 @@ pin a supported release, use `latest`.
52
52
 
53
53
  ## [Unreleased]
54
54
 
55
+ ### Changed
56
+
57
+ - Keep canonical `get_enrichment_run` and `cancel_enrichment_run` in the fast
58
+ runtime timeout class after retiring their profile-run aliases.
59
+
60
+ ### Removed
61
+
62
+ - Remove the seven deprecated REST/chat `*_user_profile` and `*_profile_run`
63
+ tool aliases. Canonical `*_user_context` and `*_enrichment_run` tools remain;
64
+ the aliases were already absent from MCP, and current first-party clients use
65
+ the canonical names. This is a breaking direct Tool API change and is recorded
66
+ as protocol 12.0.0.
67
+
55
68
  ### Added
56
69
  - Full standalone Hermes capability policy (11.2.0): the `hermes-agent` principal has an explicit six-action MCP/REST policy while the existing `hermes-negotiator` principal remains restricted to its four scheduled negotiation handlers. Both policies default deny and preserve one-shot, generation-fenced negotiation authority.
57
70
 
@@ -4,10 +4,9 @@ import type { OpportunityOwnerApprovalDeps } from '../../../opportunity/ports/op
4
4
  export interface CreateToolRegistryOptions {
5
5
  /**
6
6
  * Tool-surface profile. The default `'rest'` profile (direct HTTP Tool API)
7
- * exposes the full tool set — contact/Gmail tools, `scrape_url`, and the
8
- * deprecated profile/profile-run compatibility aliases. The restricted
9
- * `'mcp'` profile omits exactly those surfaces (IND-596/597/598); their
10
- * non-MCP implementations remain intact for REST and chat.
7
+ * exposes contact/Gmail tools and `scrape_url`. The restricted `'mcp'`
8
+ * profile omits those surfaces (IND-596/597). Retired profile/profile-run
9
+ * compatibility aliases are absent from both profiles (IND-373/598).
11
10
  */
12
11
  surface?: ToolSurface;
13
12
  }
@@ -75,35 +75,6 @@ export function createToolRegistry(deps, options = {}) {
75
75
  if (deps.chatSession) {
76
76
  createChatTools(dt, deps);
77
77
  }
78
- // Deprecated tool-name aliases (IND-371). The canonical implementations are
79
- // registered under their *_user_context / *_enrichment_run names; the legacy
80
- // *_user_profile / *_profile_run names are retained as thin aliases that
81
- // delegate to the exact same handler + schema so existing direct HTTP Tool
82
- // API clients keep working. These aliases are NOT exposed on the MCP surface
83
- // (IND-598) — MCP callers must use the canonical names.
84
- if (!isMcpSurface) {
85
- const DEPRECATED_TOOL_ALIASES = [
86
- ["read_user_profiles", "read_user_contexts"],
87
- ["create_user_profile", "create_user_context"],
88
- ["update_user_profile", "update_user_context"],
89
- ["confirm_user_profile", "confirm_user_context"],
90
- ["preview_user_profile", "preview_user_context"],
91
- ["get_profile_run", "get_enrichment_run"],
92
- ["cancel_profile_run", "cancel_enrichment_run"],
93
- ];
94
- for (const [oldName, canonicalName] of DEPRECATED_TOOL_ALIASES) {
95
- const canonical = registry.get(canonicalName);
96
- if (!canonical) {
97
- logger.warn('Cannot register deprecated alias: canonical tool not found', { alias: oldName, canonicalName });
98
- continue;
99
- }
100
- registry.set(oldName, {
101
- ...canonical,
102
- name: oldName,
103
- description: `[DEPRECATED — use \`${canonicalName}\` instead; this alias is retained for backward compatibility and will be removed.] ${canonical.description}`,
104
- });
105
- }
106
- }
107
78
  logger.verbose('Tool registry created', { toolCount: registry.size, surface: options.surface ?? 'rest' });
108
79
  return registry;
109
80
  }
@@ -21,8 +21,8 @@ const FAST_TOOLS = new Set([
21
21
  "delete_network_membership",
22
22
  "confirm_opportunity_delivery",
23
23
  "read_docs",
24
- "get_profile_run",
25
- "cancel_profile_run",
24
+ "get_enrichment_run",
25
+ "cancel_enrichment_run",
26
26
  "remove_contact",
27
27
  "read_own_agent",
28
28
  "register_agent",
@@ -35,16 +35,10 @@ const FAST_TOOLS = new Set([
35
35
  ]);
36
36
  const INTERACTIVE_TOOLS = new Set(["ask_user_question"]);
37
37
  const ASYNC_CANDIDATE_TOOLS = new Set([
38
- // Canonical *_user_context names (IND-371)
39
38
  "read_user_contexts",
40
39
  "preview_user_context",
41
40
  "create_user_context",
42
41
  "update_user_context",
43
- // Deprecated *_user_profile aliases (kept until IND-373 retires them)
44
- "read_user_profiles",
45
- "preview_user_profile",
46
- "create_user_profile",
47
- "update_user_profile",
48
42
  "create_intent",
49
43
  "update_intent",
50
44
  "scrape_url",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "11.2.1",
3
+ "version": "12.0.0-rc.461.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",