@haven_ai/sdk 0.0.0-dev.202609081624.80eb8ab → 0.0.0-dev.202609111355.ac865fd

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/dist/index.cjs CHANGED
@@ -3184,7 +3184,8 @@ var HavenClient = class {
3184
3184
  * Sign a payment's `sign_data` with the correct scheme for its rail.
3185
3185
  *
3186
3186
  * Dispatching on the server-provided scheme means a caller never has to
3187
- * know which rail an account is on; an unknown scheme is a hard error,
3187
+ * know which rail an account is on; an unknown scheme — or an absent one,
3188
+ * since the legacy AllowanceModule rail retired (#2850) — is a hard error,
3188
3189
  * never a guessed signature. The session rail's 'eip191_userop' is retired
3189
3190
  * (#834) — the backend refuses those intents with HTTP 410 before any
3190
3191
  * sign_data reaches a client, so encountering it here is a hard error too.
@@ -3218,7 +3219,9 @@ var HavenClient = class {
3218
3219
  return signSettlementDelegationTypedData(this.delegateKey, signData.typed_data);
3219
3220
  }
3220
3221
  if (scheme === void 0) {
3221
- return signHash(this.delegateKey, signData.hash);
3222
+ throw new HavenSigningError(
3223
+ "sign_data.signature_scheme is required \u2014 the legacy AllowanceModule rail that signed the bare hash is retired (#2850). Refusing to guess a signing scheme."
3224
+ );
3222
3225
  }
3223
3226
  throw new HavenSigningError(
3224
3227
  `Unknown sign_data.signature_scheme '${scheme}' \u2014 refusing to guess a signing scheme. Update @haven_ai/sdk.`
@@ -3348,8 +3351,10 @@ var HavenClient = class {
3348
3351
  * allowance/budget summary a settle response carries.
3349
3352
  *
3350
3353
  * #1310/#1311 parity: this is the ONE home for logic that was duplicated
3351
- * verbatim in `packages/mcp-server/src/tools.ts` and `packages/mcp/src/tools.ts`
3352
- * (both hosted and local `haven_get_payment_status` handlers) — extracted
3354
+ * verbatim in the hosted and local `haven_get_payment_status` handlers —
3355
+ * `packages/mcp-server/src/tools/state-direct-recovery.ts` since #2809 (it
3356
+ * was `packages/mcp-server/src/tools.ts` when this was written) and
3357
+ * `packages/mcp/src/tools.ts` — extracted
3353
3358
  * here because both packages already depend on `@haven_ai/sdk` and call
3354
3359
  * methods on a `HavenClient` instance, so this needed no new dependency
3355
3360
  * edge. `funded_but_unsettled` is deliberately excluded: that phase means