@anchrd/intel-api 0.7.0 → 0.10.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.
@@ -0,0 +1,15 @@
1
+ -- #208 (D30): an agent's tools are whole MCP servers its owner delegated from the owner's own
2
+ -- portal connection. Nothing about that selection is stored here — it lives in the agent's
3
+ -- definition, versioned in R2 like the rest of the document.
4
+ --
5
+ -- What this file adds is the one lookup the run path needs and `0014` did not provide: a call
6
+ -- arrives authenticated as a Gate Application, and Intel has to answer "which agent is that"
7
+ -- before it may read anybody's portal token. `0014` indexed `node_id` only (it is the primary
8
+ -- key), so the reverse question was a table scan on every delegated tool call.
9
+ --
10
+ -- ⚠️ UNIQUE, not just an index. Two agents sharing one Application would make the lookup ambiguous
11
+ -- and would hand one agent the other's delegation — the same class of hole `AGENT_APPLICATION_KEYS`
12
+ -- refuses a doubly listed id for (D27). The constraint is what makes "one Application per agent"
13
+ -- a fact of the database rather than a promise of the code that writes it.
14
+ CREATE UNIQUE INDEX agent_applications_application_idx
15
+ ON agent_applications(application_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/intel-api",
3
- "version": "0.7.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -43,9 +43,9 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@anchrd/gate-sdk": "^0.7.0",
46
- "@anchrd/intel-contract": "^0.5.0",
46
+ "@anchrd/intel-contract": "^0.7.0",
47
+ "@cfworker/json-schema": "^4.1.1",
47
48
  "@modelcontextprotocol/sdk": "^1.30.0",
48
- "ajv": "^8.20.0",
49
49
  "fflate": "^0.8.3",
50
50
  "hono": "^4.12.32",
51
51
  "openid-client": "^6.8.4",