@principles/workbuddy-adapter 0.4.0 → 0.4.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.
@@ -201,7 +201,9 @@ export function decodeWorkbuddyInput(raw) {
201
201
  // consumedOptionalString's fail-loud: SPEC §8.6 forbids metadata failure
202
202
  // from blocking the host conversation, and a bad model string degrades to
203
203
  // the legacy budget instead of erroring the hook. Dynamic support is
204
- // therefore catalog-unambiguous-match-only — never a guessed capacity.
204
+ // therefore name-only: the id is derived ONLY when every catalog entry for
205
+ // that id agrees on one window (`pi_catalog_model_id`); a contradiction
206
+ // falls back with `catalog_ambiguous_model_id` — never a guessed capacity.
205
207
  const rawModel = own(raw, 'model');
206
208
  const modelId = typeof rawModel === 'string' && rawModel.trim().length > 0 ? rawModel : undefined;
207
209
  const modelContext = modelId !== undefined ? { modelId } : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/workbuddy-adapter",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "WorkBuddy host adapter for Principles Disciple — implements the HostAdapter interface for WorkBuddy's Git Bash command-hook model (ADR-0020 third host, SPEC workbuddy-host-adapter v0.3.0).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,8 +42,8 @@
42
42
  "lint": "eslint \"src/**/*.ts\""
43
43
  },
44
44
  "dependencies": {
45
- "@principles/core": "^2.1.0",
46
- "@principles/host-runtime": "^0.15.0",
45
+ "@principles/core": "^2.1.1",
46
+ "@principles/host-runtime": "^0.15.1",
47
47
  "@principles/install-layout": "^0.4.1"
48
48
  },
49
49
  "devDependencies": {
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "d3355465b090daf098581cdb4c174634fe1e5279"
64
+ "gitHead": "32312b70d5b4f8a661949680fe765e91077e5c16"
65
65
  }