@slopus/happy-providers 0.0.56 → 0.0.57
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/VENDOR_ANTHROPIC_BEDROCK.md +6 -2
- package/VENDOR_CLAUDE.md +24 -14
- package/dist/core/happyProvidersVersion.d.ts +1 -1
- package/dist/core/happyProvidersVersion.js +1 -1
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.d.ts.map +1 -1
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.js +3 -1
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.js.map +1 -1
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.d.ts.map +1 -1
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.js +1 -0
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.js.map +1 -1
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ compacts mid-run; only `compact()` sends the edit with a real trigger and
|
|
|
29
29
|
The transcript must end with a user turn, a tool result, or that native compaction checkpoint.
|
|
30
30
|
Claude models from 4.6 onward reject a trailing assistant message ("This model does not support
|
|
31
31
|
assistant message prefill"), and the adapter does not add or drop a turn to work around it:
|
|
32
|
-
Opus 5.5, Sonnet 5.5, and Fable 5.1 bind each signed thinking block to the exact messages before
|
|
32
|
+
Opus 5.5, Sonnet 5.5, Fable 5.2, and Fable 5.1 bind each signed thinking block to the exact messages before
|
|
33
33
|
it, so a user turn sent with one request and missing from the next would make every later request
|
|
34
34
|
fail. A caller
|
|
35
35
|
continuing a cut-off response appends a durable system notice instead, which serializes as a
|
|
@@ -51,6 +51,7 @@ wins:
|
|
|
51
51
|
| ----------------- | ------------------------------------------------------------------------- | -------------------------- |
|
|
52
52
|
| Claude Opus 5.5 | Model card lists Mantle; in-region availability not yet documented | Commercial Bedrock regions |
|
|
53
53
|
| Claude Sonnet 5.5 | `us-gov-west-1` only; Runtime is the default | Commercial Bedrock regions |
|
|
54
|
+
| Claude Fable 5.2 | None; AWS serves it on Runtime only | Commercial Bedrock regions |
|
|
54
55
|
| Claude Fable 5.1 | None documented; Runtime is the default | Commercial Bedrock regions |
|
|
55
56
|
| Claude Sonnet 5 | `eu-north-1`, `eu-west-1`, `us-east-1` | Commercial Bedrock regions |
|
|
56
57
|
| Claude Fable 5 | `us-east-1` | Commercial Bedrock regions |
|
|
@@ -70,7 +71,10 @@ to; the SDK alone would sign the hostname without the port.
|
|
|
70
71
|
Without an endpoint, Runtime in the China partition (`cn-north-1`, `cn-northwest-1`) is reached at
|
|
71
72
|
`bedrock-runtime.<region>.amazonaws.com.cn`.
|
|
72
73
|
Fable 5.1 defaults to Runtime because AWS documents US and global inference profiles but no
|
|
73
|
-
in-region Mantle route.
|
|
74
|
+
in-region Mantle route. Fable 5.2's model card lists only the `bedrock-runtime` endpoint, with
|
|
75
|
+
`us.anthropic.claude-fable-5-2` and `global.anthropic.claude-fable-5-2` and no in-region ID, so it
|
|
76
|
+
resolves like Fable 5.1 and the catalog hides a forced Mantle route. Both Fable models require the
|
|
77
|
+
AWS account to opt in to AWS review (`aws_review` data retention) before Bedrock serves them. Opus 5.5 launched on both endpoints with the same us, eu, jp, au, and
|
|
74
78
|
global Runtime profiles as Opus 5; its Mantle ID is the bare `anthropic.claude-opus-5-5`.
|
|
75
79
|
Sonnet 5.5 also defaults to Runtime. AWS documents only its global profile,
|
|
76
80
|
`global.anthropic.claude-sonnet-5-5`, with no geo profiles, so every region resolves to that
|
package/VENDOR_CLAUDE.md
CHANGED
|
@@ -395,30 +395,40 @@ Fable 5.2 needed every step below. Each one is a separate decision; none follows
|
|
|
395
395
|
entry (context window, 400k auto-compact for 1M models) and a `CATALOG` row. Offer `off` only if
|
|
396
396
|
a raw request with disabled thinking succeeds. The first row per provider is that provider's
|
|
397
397
|
fallback default as well as the top of its picker; placement is the person's call (they put
|
|
398
|
-
Fable 5.2 first).
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
`
|
|
402
|
-
|
|
398
|
+
Fable 5.2 first). `happy-agent-base/sources/models.ts` is frozen and is not part of this.
|
|
399
|
+
5. **Bedrock.** AWS often ships a Claude model on Bedrock the same day, and Anthropic's own docs do
|
|
400
|
+
not say so. Check AWS's model card
|
|
401
|
+
(`docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-<model>.html`) for the
|
|
402
|
+
model ID, endpoints (Runtime, Mantle, or both), geo and global profiles, and any data-retention
|
|
403
|
+
opt-in. Then probe a configured Bedrock account live: `aws bedrock list-foundation-models` and
|
|
404
|
+
`aws bedrock list-inference-profiles` in its region and in `us-east-1`, plus one request on each
|
|
405
|
+
route. Never conclude "not on Bedrock" without that probe; Fable 5.2 was first left off
|
|
406
|
+
Bedrock on Anthropic's docs alone and had to ship in a follow-up release. When it is there, add
|
|
407
|
+
the model to `resolveBedrockModelId.ts`, `resolveAnthropicBedrockModelId.ts`,
|
|
408
|
+
`BEDROCK_RESOLD_MODEL_IDS`, the transport default and `BEDROCK_MANTLE_REGIONS` in
|
|
409
|
+
`agentCatalog.ts`, and the table in [VENDOR_ANTHROPIC_BEDROCK.md](VENDOR_ANTHROPIC_BEDROCK.md).
|
|
410
|
+
A model that needs an account opt-in must not become the Bedrock fallback default.
|
|
411
|
+
6. **System prompt.** Capture the CLI's own `claude_code` preset prompt for the wire ID through a
|
|
403
412
|
loopback server (the API is never contacted), write it to
|
|
404
413
|
`systemPrompt/prompts/claude/claude_<model>_system_prompt.ts`, and map it in
|
|
405
|
-
`systemPrompt/impl/systemPromptForModel.ts`.
|
|
406
|
-
`{{identity}}`
|
|
407
|
-
|
|
408
|
-
|
|
414
|
+
`systemPrompt/impl/systemPromptForModel.ts`. Follow the porting rules in
|
|
415
|
+
[`systemPrompt/AGENTS.md`](../happy-agent-modules/sources/systemPrompt/AGENTS.md): `{{identity}}`
|
|
416
|
+
first, and no Session-specific guidance, Memory, Environment, hooks, games line, or token-count
|
|
417
|
+
text. A missing mapping silently falls back to the generic prompt.
|
|
418
|
+
7. **Other model lists.** Add the model to `CLAUDE_TOOL_SEARCH_MODELS` in
|
|
409
419
|
`toolDiscovery/ToolDiscoveryModule.ts`. Check `providerScan/ProviderScanModule.ts` (verification
|
|
410
420
|
model), `auto/impl/reviewerModelForAgent.ts` (it matches `anthropic/opus-` and
|
|
411
421
|
`anthropic/fable-` prefixes), and the gym catalog assertion in
|
|
412
422
|
`happy_api_environment_onboarding_usage_matrix.test.ts`.
|
|
413
|
-
|
|
423
|
+
8. **Usage meters.** Send a real request and read every `anthropic-ratelimit-unified-*` header and
|
|
414
424
|
the OAuth usage endpoint. A new window name (as `seven_day_fable` once was) needs parsing in
|
|
415
425
|
`claudeUsageFromRateLimitInfo.ts` and `fetchClaudeProviderUsage.ts`; Fable 5.2 added none.
|
|
416
|
-
|
|
426
|
+
9. **Tools.** Read the model's "what's new" page for removed tool versions, tool-choice rules, and
|
|
417
427
|
beta headers, and the Claude Code changelog for built-in tool changes. Happy runs Claude Code
|
|
418
428
|
with only caller-owned MCP tools and ToolSearch, so most CLI tool changes do not reach it.
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
429
|
+
10. **Live test** on at least two existing accounts: a plain answer, a tool round trip, and the raw
|
|
430
|
+
parameter checks (disabled thinking, each effort, forced tool choice). Never create logins.
|
|
431
|
+
11. **Benchmarks.** The happy.engineering benchmarks page is a separate task with its own evidence
|
|
422
432
|
rules; adding a model does not update it.
|
|
423
433
|
|
|
424
434
|
## Intentional limitations
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* where a compiled binary has no `package.json` to read. A test keeps it equal to the package's own
|
|
4
4
|
* version, so a release that bumps one without the other fails before it publishes.
|
|
5
5
|
*/
|
|
6
|
-
export declare const HAPPY_PROVIDERS_VERSION = "0.0.
|
|
6
|
+
export declare const HAPPY_PROVIDERS_VERSION = "0.0.57";
|
|
7
7
|
//# sourceMappingURL=happyProvidersVersion.d.ts.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* where a compiled binary has no `package.json` to read. A test keeps it equal to the package's own
|
|
4
4
|
* version, so a release that bumps one without the other fails before it publishes.
|
|
5
5
|
*/
|
|
6
|
-
export const HAPPY_PROVIDERS_VERSION = "0.0.
|
|
6
|
+
export const HAPPY_PROVIDERS_VERSION = "0.0.57";
|
|
7
7
|
//# sourceMappingURL=happyProvidersVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAnthropicBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAEhG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,yBAAqC,GACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"resolveAnthropicBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAEhG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,yBAAqC,GACjD,MAAM,CAmDR"}
|
|
@@ -4,6 +4,7 @@ export function resolveAnthropicBedrockModelId(model, region, transport = "runti
|
|
|
4
4
|
const modelName = model.slice("anthropic/".length);
|
|
5
5
|
const base = `anthropic.claude-${modelName}`;
|
|
6
6
|
if (![
|
|
7
|
+
"fable-5-2",
|
|
7
8
|
"fable-5-1",
|
|
8
9
|
"fable-5",
|
|
9
10
|
"opus-5-5",
|
|
@@ -16,7 +17,8 @@ export function resolveAnthropicBedrockModelId(model, region, transport = "runti
|
|
|
16
17
|
}
|
|
17
18
|
if (transport === "mantle")
|
|
18
19
|
return base;
|
|
19
|
-
|
|
20
|
+
// AWS offers Fable 5.2 and Fable 5.1 through only the US geo profile and the global one.
|
|
21
|
+
if (modelName === "fable-5-2" || modelName === "fable-5-1") {
|
|
20
22
|
return region.startsWith("us-") ? `us.${base}` : `global.${base}`;
|
|
21
23
|
}
|
|
22
24
|
// AWS documents only the global profile for Sonnet 5.5; it has no geo profiles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAnthropicBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,8BAA8B,CAC1C,KAAa,EACb,MAAc,EACd,SAAS,GAA8B,SAAS;IAEhD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,oBAAoB,SAAS,EAAE,CAAC;IAC7C,IACI,CAAC;QACG,WAAW;QACX,SAAS;QACT,UAAU;QACV,QAAQ;QACR,UAAU;QACV,YAAY;QACZ,UAAU;KACb,CAAC,QAAQ,CAAC,SAAS,CAAC,EACvB,CAAC;QACC,MAAM,IAAI,KAAK,CACX,oBAAoB,KAAK,mIAAmI,CAC/J,CAAC;IACN,CAAC;IACD,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACxC,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveAnthropicBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,8BAA8B,CAC1C,KAAa,EACb,MAAc,EACd,SAAS,GAA8B,SAAS;IAEhD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,SAAS,GAAG,KAAK,C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;QAC1B,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,OAAO,UAAU,IAAI,EAAE,CAAC;IAC5B,CAAC;IACD,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3B,IAAI,MAAM,KAAK,gBAAgB,IAAI,MAAM,KAAK,gBAAgB,EAAE,CAAC;YAC7D,OAAO,MAAM,IAAI,EAAE,CAAC;QACxB,CAAC;QACD,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,OAAO,UAAU,IAAI,EAAE,CAAC;IAC5B,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAkBA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAqC;IACxD,qBAAqB,EAAE,4BAA4B;IACnD,mBAAmB,EAAE,0BAA0B;IAC/C,oBAAoB,EAAE,2BAA2B;IACjD,kBAAkB,EAAE,yBAAyB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,sBAAsB,EAAE,6BAA6B;IACrD,oBAAoB,EAAE,2BAA2B;IACjD,gBAAgB,EAAE,gBAAgB;IAClC,oBAAoB,EAAE,oBAAoB;IAC1C,kBAAkB,EAAE,kBAAkB;IACtC,mBAAmB,EAAE,mBAAmB;IACxC,qBAAqB,EAAE,qBAAqB;IAC5C,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;CACjD,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACjD,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;AACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"resolveBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAqC;IACxD,qBAAqB,EAAE,4BAA4B;IACnD,qBAAqB,EAAE,4BAA4B;IACnD,mBAAmB,EAAE,0BAA0B;IAC/C,oBAAoB,EAAE,2BAA2B;IACjD,kBAAkB,EAAE,yBAAyB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,sBAAsB,EAAE,6BAA6B;IACrD,oBAAoB,EAAE,2BAA2B;IACjD,gBAAgB,EAAE,gBAAgB;IAClC,oBAAoB,EAAE,oBAAoB;IAC1C,kBAAkB,EAAE,kBAAkB;IACtC,mBAAmB,EAAE,mBAAmB;IACxC,qBAAqB,EAAE,qBAAqB;IAC5C,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;CACjD,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACjD,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;AACjD,CAAC"}
|