@indexnetwork/protocol 14.2.1-rc.472.1 → 14.2.3-rc.474.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
@@ -20,6 +20,51 @@ went 6.7.1 → 8.0.2 with no 7.x in between because the whole 7.x line shipped a
20
20
  prereleases between the two promotions. To track every change, read `rc`; to
21
21
  pin a supported release, use `latest`.
22
22
 
23
+ ## 14.2.2 - 2026-08-16
24
+
25
+ No public API change: all 443 exported symbols are byte-identical to 14.2.1.
26
+ Test layout only; no test changed meaning.
27
+
28
+ ### Changed
29
+
30
+ - One `tests/` directory per capability. Six directories nested a level deeper
31
+ (`intents/application/tests`, `opportunities/{discriminator,outcome,negotiation-evidence}/tests`,
32
+ `questions/{domain,ports}/tests`) merged into their capability's own, taking
33
+ the nested count from 13 to 7 and the total from 27 to 21.
34
+
35
+ The seven that remain are all under `shared/`, which has no capability root —
36
+ merging them would produce a single 40-file directory mixing model config,
37
+ HyDE, schemas, and observability. One `tests/` per shared module is the
38
+ consistent reading of the same rule there.
39
+
40
+ - Moved the two specs that sat outside any `tests/` directory
41
+ (`opportunities/delivery-card.cache.spec.ts`, `shared/agent/model-signal.spec.ts`)
42
+ into their module's `tests/`.
43
+
44
+ - Renamed the four `.test.ts` files to `.spec.ts`, against 211 already using
45
+ that suffix. The runner still discovers both, so this is convention only.
46
+
47
+ ### Removed
48
+
49
+ - All 12 test `tsconfig.json` files. They were **not** load-bearing: 9 of the 21
50
+ `tests/` directories never had one, and the build, the isolated test runner,
51
+ and `tsc` all pass without them — the build excludes tests by both
52
+ `**/tests/**` and `**/*.spec.ts`, and Bun does not read them.
53
+
54
+ `networks/tests/tsconfig.json` had been extending `../../tsconfig.json`, which
55
+ resolves to `src/tsconfig.json` and does not exist — `tsc` reports TS5083 and
56
+ silently falls back to defaults, dropping `esModuleInterop`. It had been
57
+ broken with nothing to notice.
58
+
59
+ ### Note
60
+
61
+ Colocating every spec beside its subject was considered and rejected on
62
+ evidence: only 155 of 215 specs (72%) name a single source module. The other 60
63
+ are cross-module behaviour tests — `negotiation.continuation.spec.ts`,
64
+ `introducer-gating-lifecycle.spec.ts`, `negotiation.seat-rules.spec.ts` — and
65
+ filing those next to one arbitrary module they partly exercise would be worse
66
+ than leaving them grouped.
67
+
23
68
  ## 14.2.1 - 2026-08-16
24
69
 
25
70
  No public API change: all 443 exported symbols are byte-identical to 14.2.0.
@@ -243,6 +288,9 @@ No public API change: all 441 exported symbols are byte-identical to 13.2.0, and
243
288
 
244
289
  ## [Unreleased]
245
290
 
291
+ ### Changed
292
+ - Move the opportunity-presentation review checklist into `src/opportunity/AGENTS.md` and repoint the `opportunity.safe-presentation.ts` and `discriminator.adjustments.ts` comments at it. Comment-only; no runtime change.
293
+
246
294
  ### Removed
247
295
 
248
296
  - **Breaking (14.0.0):** remove the `orchestrator` chat persona. `ORCHESTRATOR_PERSONA_ID` and `ORCHESTRATOR_PERSONA` are gone from the public API, and the orchestrator system prompt (`buildSystemContent`) and its conditional prompt-module registry are deleted. `ChatPersonaLoopBehaviors.hallucinationRecovery` is retained — it is opted into by the onboarding, signal and negotiator personas, not just the removed one.
@@ -13,7 +13,7 @@
13
13
  * dismissal-driven reversal removes them.
14
14
  * - `detail` carries the template chip text built from the user's OWN answer
15
15
  * ("Hands-on builders vs advisors: you chose Advisor") — never LLM
16
- * reasoning (review-opportunity-presentation).
16
+ * reasoning (see `packages/protocol/src/opportunity/AGENTS.md`).
17
17
  */
18
18
  import { POOL_ADJUSTMENT_FACTOR_OTHER, POOL_ADJUSTMENT_FACTOR_UNKNOWN, POOL_ADJUSTMENT_FLOOR } from "./discriminator.env.js";
19
19
  /** Reads valid adjustments, optionally narrowed to one recipient + intent. */
@@ -16,8 +16,8 @@
16
16
  * Surfaces choose *policy* (send a sanitized fallback vs skip entirely) via
17
17
  * `allowFallback`; they no longer choose (or forget) sanitization steps.
18
18
  *
19
- * See `.agents/skills/review-opportunity-presentation/SKILL.md` for the review
20
- * checklist this module exists to satisfy.
19
+ * See `packages/protocol/src/opportunity/AGENTS.md` for the review checklist this
20
+ * module exists to satisfy.
21
21
  */
22
22
  /** Default max length for fallback summaries (matches presenter internal fallback). */
23
23
  export declare const SAFE_FALLBACK_MAX_CHARS = 300;
@@ -16,8 +16,8 @@
16
16
  * Surfaces choose *policy* (send a sanitized fallback vs skip entirely) via
17
17
  * `allowFallback`; they no longer choose (or forget) sanitization steps.
18
18
  *
19
- * See `.agents/skills/review-opportunity-presentation/SKILL.md` for the review
20
- * checklist this module exists to satisfy.
19
+ * See `packages/protocol/src/opportunity/AGENTS.md` for the review checklist this
20
+ * module exists to satisfy.
21
21
  */
22
22
  import { truncateAtBoundary, viewerCentricCardSummary } from "./opportunity.presentation.js";
23
23
  import { stripUnsupportedOpportunityClaims } from "../../shared/utils/claim-safety.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "14.2.1-rc.472.1",
3
+ "version": "14.2.3-rc.474.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",