@tangle-network/agent-knowledge 1.5.0 → 1.5.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.
Files changed (2) hide show
  1. package/AGENTS.md +17 -0
  2. package/package.json +12 -18
package/AGENTS.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  Use this package when an agent needs persistent, source-grounded knowledge that improves over time.
4
4
 
5
+ ## Repo layering — this package depends on agent-eval, never the reverse
6
+
7
+ ```
8
+ agent-knowledge (this repo) ─┐
9
+ ├──► agent-eval (substrate — the bottom)
10
+ agent-runtime ───────────────┘
11
+ ```
12
+
13
+ **Rule: agent-knowledge depends on agent-eval. agent-eval MUST NOT import from agent-knowledge.** No upward imports, no peerDependency declaration in agent-eval pointing at agent-knowledge. Substrate primitives that agent-knowledge needs (`AnalystFinding`, `RunRecord`, optimizer types, release-confidence types) live in agent-eval; this repo consumes them.
14
+
15
+ Types that stay in THIS repo because they're knowledge-domain-shaped:
16
+ - `KbStore`, `KnowledgeFragment`, `KnowledgeChange`
17
+ - `KnowledgeDiscoveryDispatcher`, source adapters (`createCornellLiiSource`, `createIrsPublicationsSource`)
18
+ - Freshness store + change-detection primitives
19
+
20
+ **The test for "where does a type live?"** — does this concept make sense WITHOUT persistent knowledge or sourced fragments? If yes, it's substrate (agent-eval). If no, it's a knowledge-domain concept (stays here).
21
+
5
22
  ## Rules
6
23
 
7
24
  - Register sources before citing them: `agent-knowledge source-add <path>`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-knowledge",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Source-grounded, eval-gated knowledge growth primitives for agents.",
5
5
  "homepage": "https://github.com/tangle-network/agent-knowledge#readme",
6
6
  "repository": {
@@ -52,36 +52,30 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "scripts": {
56
- "build": "tsup",
57
- "dev": "tsup --watch",
58
- "prepare": "tsup",
59
- "test": "vitest run",
60
- "test:watch": "vitest",
61
- "typecheck": "tsc --noEmit",
62
- "lint": "biome check src tests",
63
- "format": "biome format --write src tests"
64
- },
65
55
  "dependencies": {
66
56
  "@tangle-network/agent-eval": "^0.42.0",
67
57
  "@tangle-network/agent-runtime": "^0.25.0",
68
- "@tangle-network/sandbox": "^0.2.1",
69
58
  "zod": "^4.3.6"
70
59
  },
71
60
  "devDependencies": {
72
61
  "@biomejs/biome": "^2.4.15",
62
+ "@tangle-network/sandbox": "^0.3.0",
73
63
  "@types/node": "^25.6.0",
74
64
  "tsup": "^8.0.0",
75
65
  "typescript": "^5.7.0",
76
66
  "vitest": "^3.0.0"
77
67
  },
78
- "pnpm": {
79
- "minimumReleaseAge": 4320,
80
- "minimumReleaseAgeExclude": []
81
- },
82
68
  "engines": {
83
69
  "node": ">=20"
84
70
  },
85
71
  "license": "MIT",
86
- "packageManager": "pnpm@10.28.0"
87
- }
72
+ "scripts": {
73
+ "build": "tsup",
74
+ "dev": "tsup --watch",
75
+ "test": "vitest run",
76
+ "test:watch": "vitest",
77
+ "typecheck": "tsc --noEmit",
78
+ "lint": "biome check src tests",
79
+ "format": "biome format --write src tests"
80
+ }
81
+ }