alchemylab-opencode 2.0.1 → 2.0.4
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/NODE_COMPAT.md +8 -1
- package/dist/20260127222353_familiar_lady_ursula-YYOFSQD5.js +18 -0
- package/dist/20260211171708_add_project_commands-3GKQTPBZ.js +18 -0
- package/dist/20260213144116_wakeful_the_professor-ROO7OAVL.js +18 -0
- package/dist/20260225215848_workspace-V2OZTNFF.js +18 -0
- package/dist/20260227213759_add_session_workspace_id-GVDWAXKM.js +18 -0
- package/dist/20260228203230_blue_harpoon-Z5QP2II5.js +18 -0
- package/dist/20260303231226_add_workspace_fields-QOVAFN7W.js +18 -0
- package/dist/20260309230000_move_org_to_state-RQURSDZD.js +18 -0
- package/dist/20260312043431_session_message_cursor-VBISKDXL.js +18 -0
- package/dist/20260323234822_events-PILJHLNA.js +18 -0
- package/dist/20260410174513_workspace-name-63YCZ5NS.js +18 -0
- package/dist/20260413175956_chief_energizer-NMAZYGDO.js +18 -0
- package/dist/20260423070820_add_icon_url_override-RAJCVNEP.js +18 -0
- package/dist/20260427172553_slow_nightmare-ULYYZLR4.js +18 -0
- package/dist/20260428004200_add_session_path-U4WO2TGE.js +18 -0
- package/dist/20260501142318_next_venus-6BCYATSC.js +18 -0
- package/dist/20260504145000_add_sync_owner-RGVHV6LN.js +18 -0
- package/dist/20260507164347_add_workspace_time-GE6UHNPM.js +18 -0
- package/dist/{20260510033149_session_usage-UGBVOXZB.js → 20260510033149_session_usage-7XHCFVKY.js} +5 -1
- package/dist/20260511000411_data_migration_state-2EGZKFLB.js +18 -0
- package/dist/20260511173437_session-metadata-K322YY33.js +18 -0
- package/dist/20260601010001_normalize_storage_paths-VZDTY366.js +18 -0
- package/dist/{20260225215848_workspace-ZMSOZSPA.js → 20260601202201_amazing_prowler-YT6PLK3L.js} +5 -1
- package/dist/{20260228203230_blue_harpoon-IW3Z4TQZ.js → 20260602002951_lowly_union_jack-6VLQTBVB.js} +5 -1
- package/dist/20260602182828_add_project_directories-TVSRD25A.js +18 -0
- package/dist/20260603001617_session_message_projection_indexes-PHKTF6HK.js +18 -0
- package/dist/{20260622170816_reset_v2_session_state-5JPHJTZG.js → 20260603040000_session_message_projection_order-7RTV2POG.js} +5 -1
- package/dist/20260603141458_session_input_inbox-RSBWABG7.js +18 -0
- package/dist/20260603160727_jittery_ezekiel_stane-DXBLLRVV.js +18 -0
- package/dist/20260604172448_event_sourced_session_input-H6Z3JEBD.js +18 -0
- package/dist/20260605003541_add_session_context_snapshot-6FDPM2TK.js +18 -0
- package/dist/20260605042240_add_context_epoch_agent-C2OF2UKR.js +18 -0
- package/dist/20260611035744_credential-YNZ47FSH.js +18 -0
- package/dist/20260611192811_lush_chimera-E357VI6P.js +18 -0
- package/dist/20260612174303_project_dir_strategy-VUGGK42O.js +18 -0
- package/dist/20260622142730_simplify_session_context_epoch-UYGXZ5BX.js +18 -0
- package/dist/20260622170816_reset_v2_session_state-EILLPCJQ.js +18 -0
- package/dist/20260622202450_simplify_session_input-Y65GDGBO.js +18 -0
- package/dist/NodeSdk-AGMQWBHH.js +18 -0
- package/dist/anthropic-45OFTLAW.js +18 -0
- package/dist/anthropic-FVULF7C3.js +18 -0
- package/dist/app-runtime-LDQWNGWP.js +18 -0
- package/dist/chunk-2JE3QYG6.js +18 -0
- package/dist/chunk-2MRHL4B2.js +18 -0
- package/dist/chunk-4GJE6OMN.js +190 -0
- package/dist/chunk-4MBUHJHY.js +22 -0
- package/dist/chunk-5BLZCAU6.js +55 -0
- package/dist/chunk-7XX6TY62.js +259 -0
- package/dist/chunk-ANF3QA3Z.js +48 -0
- package/dist/chunk-AZUMH3TO.js +18 -0
- package/dist/chunk-B74WSFN4.js +878 -0
- package/dist/chunk-BQ4IEPN3.js +19 -0
- package/dist/chunk-CYRZU5QM.js +33 -0
- package/dist/chunk-DADVNQTM.js +1490 -0
- package/dist/chunk-DO2UZ6NY.js +18 -0
- package/dist/chunk-DWEYXIQI.js +780 -0
- package/dist/chunk-EK6FQQHY.js +20 -0
- package/dist/chunk-ELPXQ32J.js +90 -0
- package/dist/chunk-FGLPSSRK.js +19 -0
- package/dist/chunk-FOHYZ7MJ.js +55 -0
- package/dist/chunk-FV7U6PVP.js +18 -0
- package/dist/chunk-FYYAOZPU.js +18 -0
- package/dist/chunk-G7PFO5HG.js +920 -0
- package/dist/chunk-GDWO6EXN.js +22 -0
- package/dist/chunk-GW3ZRKAI.js +20 -0
- package/dist/chunk-IYUSBBGY.js +35 -0
- package/dist/chunk-JPOFLMNH.js +18 -0
- package/dist/{chunk-VURLSDCB.js → chunk-K5LKDIVU.js} +4 -0
- package/dist/chunk-KS4WLVK5.js +19 -0
- package/dist/chunk-LIXP4TPL.js +18 -0
- package/dist/chunk-LSC4RT5V.js +36 -0
- package/dist/chunk-M5A6NFHQ.js +28 -0
- package/dist/chunk-M6E6KNLV.js +30 -0
- package/dist/chunk-MLFZXUGQ.js +18 -0
- package/dist/chunk-NDI67DRG.js +31 -0
- package/dist/chunk-NGT6LCW6.js +18 -0
- package/dist/chunk-OCWGUTZJ.js +36 -0
- package/dist/chunk-OGDRUXMJ.js +18 -0
- package/dist/chunk-OGJKLJC7.js +29 -0
- package/dist/chunk-OT2YNR56.js +19 -0
- package/dist/chunk-OUVSKG2H.js +19 -0
- package/dist/chunk-P5RLCJUV.js +18 -0
- package/dist/chunk-Q3WIUQXB.js +18 -0
- package/dist/{20260227213759_add_session_workspace_id-ROENWPKA.js → chunk-QCRIXKIC.js} +5 -1
- package/dist/chunk-QD24DLUD.js +18 -0
- package/dist/chunk-R2GWBJEP.js +18 -0
- package/dist/chunk-RPAXSOGH.js +18 -0
- package/dist/chunk-TK5R7QUN.js +18 -0
- package/dist/chunk-TNQWZFIZ.js +28 -0
- package/dist/chunk-UCLPBO4I.js +18 -0
- package/dist/chunk-UPEPL4I2.js +18 -0
- package/dist/chunk-V6FDDNGV.js +117 -0
- package/dist/chunk-V6HERYFV.js +18 -0
- package/dist/chunk-V7XKKJ7X.js +24 -0
- package/dist/chunk-VHDYUBBS.js +23 -0
- package/dist/chunk-VWLJXTZ5.js +18 -0
- package/dist/chunk-VXAPFOIL.js +22 -0
- package/dist/chunk-WKZYINC7.js +29 -0
- package/dist/chunk-WPMP2ZFE.js +40 -0
- package/dist/chunk-WRTNIOI3.js +18 -0
- package/dist/chunk-X5F46HR5.js +18 -0
- package/dist/chunk-XPS7TQZG.js +22 -0
- package/dist/chunk-YJPP6IQ3.js +23 -0
- package/dist/chunk-ZYQWFC55.js +22 -0
- package/dist/code-mode-YYOGD36U.js +502 -0
- package/dist/copilot-provider-QVMLQZZC.js +18 -0
- package/dist/dist-5NQOHNPL.js +18 -0
- package/dist/dist-7CT3XCNN.js +32 -0
- package/dist/dist-CL46WFZG.js +18 -0
- package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-CYBRID2F.js} +5 -1
- package/dist/dist-HXJTF22W.js +32 -0
- package/dist/dist-JFXI53ZF.js +22 -0
- package/dist/dist-KBYKWVT5.js +22 -0
- package/dist/dist-KM5HCPZX.js +35 -0
- package/dist/dist-KTNLTEHB.js +18 -0
- package/dist/dist-KZ5R5QM5.js +24 -0
- package/dist/dist-NLXUYBW7.js +32 -0
- package/dist/dist-O4DF72J2.js +22 -0
- package/dist/dist-PH4MEGVR.js +22 -0
- package/dist/{20260511000411_data_migration_state-FB4LBFSE.js → dist-QJPOJCLB.js} +5 -1
- package/dist/dist-QYH62TCJ.js +22 -0
- package/dist/{20260303231226_add_workspace_fields-OUVZMNAG.js → dist-RIC4WKHC.js} +5 -1
- package/dist/dist-T776XKTM.js +22 -0
- package/dist/dist-TCE5MKZQ.js +23 -0
- package/dist/dist-TH2Q44RX.js +50 -0
- package/dist/dist-VV5FV5RT.js +101 -0
- package/dist/dist-XAFENVUS.js +22 -0
- package/dist/dist-XPFB35TX.js +32 -0
- package/dist/dist-YUH4RKR5.js +28 -0
- package/dist/dist-es-43ZM44MP.js +18 -0
- package/dist/dist-es-6PLFRCS4.js +18 -0
- package/dist/dist-es-G5UIJOU7.js +26 -0
- package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-HYIIGUNX.js} +5 -1
- package/dist/dist-es-L2GU465G.js +18 -0
- package/dist/dist-es-LSR2QCFZ.js +18 -0
- package/dist/dist-es-RGEIM2BP.js +18 -0
- package/dist/dist-es-SITTNOGV.js +18 -0
- package/dist/dist-es-W5GYOX6F.js +18 -0
- package/dist/esm-NN5W7YCL.js +18 -0
- package/dist/esm-XWJSHYHG.js +18 -0
- package/dist/getMachineId-bsd-L5I5TZ5I.js +18 -0
- package/dist/getMachineId-darwin-YB7KG37W.js +19 -0
- package/dist/getMachineId-linux-EL47KXX7.js +18 -0
- package/dist/getMachineId-unsupported-QOWPEBPN.js +18 -0
- package/dist/getMachineId-win-HCRYRDFJ.js +18 -0
- package/dist/lib-ZP7Q6A3E.js +199 -0
- package/dist/loadCognitoIdentity-EWT55EI7.js +18 -0
- package/dist/loadSso-AGOUE6RL.js +18 -0
- package/dist/{20260213144116_wakeful_the_professor-ZVDD54AK.js → loadSts-RH5L3PIX.js} +5 -1
- package/dist/mantle-IJXDXT4M.js +25 -0
- package/dist/mime-types-46EO4HOZ.js +18 -0
- package/dist/multipart-parser-KZWMKXA4.js +19 -0
- package/dist/{20260211171708_add_project_commands-GDOHPDPF.js → open-7KXTRM37.js} +5 -1
- package/dist/openai-ZOJI6I5R.js +18 -0
- package/dist/p-map-CYL6ILJW.js +18 -0
- package/dist/photon-W56QZY4L.js +18 -0
- package/dist/{20260423070820_add_icon_url_override-X5SHFGTI.js → pkce-VT4ITJTB.js} +5 -1
- package/dist/{pty.node-Y3N2XKYG.js → pty.node-IWULXXG6.js} +5 -1
- package/dist/run.js +5 -1
- package/dist/serve.js +143 -1
- package/dist/server-LVIHYOCY.js +21 -0
- package/dist/session-6OPJNJMK.js +18 -0
- package/dist/signin-OCIW23YM.js +18 -0
- package/dist/src-3NCXEROI.js +18 -0
- package/dist/src-LXWGIUZH.js +18 -0
- package/dist/src-WDYKISPD.js +20 -0
- package/dist/src-YAAFIGTW.js +18 -0
- package/dist/sso-oidc-OMMKINFE.js +18 -0
- package/dist/sts-MWK22JIX.js +18 -0
- package/dist/token-QPO3OAGS.js +18 -0
- package/dist/token-util-YGPCEEPO.js +18 -0
- package/dist/unified-W3ZKZ4HG.js +18 -0
- package/dist/worktree-32M5MTFE.js +18 -0
- package/package.json +40 -40
- package/postinstall.cjs +4 -2
- package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +0 -14
- package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +0 -14
- package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +0 -14
- package/dist/20260323234822_events-72GIKJ2A.js +0 -14
- package/dist/20260410174513_workspace-name-JXSWFBJN.js +0 -14
- package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +0 -14
- package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +0 -14
- package/dist/20260501142318_next_venus-J3TLVXZ6.js +0 -14
- package/dist/20260504145000_add_sync_owner-3R52GB4C.js +0 -14
- package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +0 -14
- package/dist/20260511173437_session-metadata-T2XHGWHS.js +0 -14
- package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +0 -14
- package/dist/20260601202201_amazing_prowler-PET224YG.js +0 -14
- package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +0 -14
- package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +0 -14
- package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +0 -14
- package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +0 -14
- package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +0 -14
- package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +0 -14
- package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +0 -14
- package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +0 -14
- package/dist/20260611035744_credential-XTMSYTJD.js +0 -14
- package/dist/20260611192811_lush_chimera-XPLIQMJD.js +0 -14
- package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +0 -14
- package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +0 -14
- package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +0 -14
- package/dist/app-runtime-HQBOCDV5.js +0 -14
- package/dist/chunk-4FEBIOI5.js +0 -865
- package/dist/chunk-4K2RXRZL.js +0 -14
- package/dist/chunk-4RFMKEKM.js +0 -1455
- package/dist/chunk-BM2C7NHL.js +0 -41
- package/dist/chunk-MKEMZFJI.js +0 -393
- package/dist/chunk-OMDJ6ZZ2.js +0 -684
- package/dist/chunk-OWMG4NNF.js +0 -186
- package/dist/chunk-QRABYJKL.js +0 -14
- package/dist/chunk-RHIWAYN5.js +0 -14
- package/dist/chunk-Z5TLIUAI.js +0 -28
- package/dist/code-mode-7BQJUARW.js +0 -40
- package/dist/copilot-provider-TX4YFKJZ.js +0 -14
- package/dist/photon-VQS5F5BI.js +0 -14
- package/dist/server-BFUQR7MX.js +0 -17
- package/dist/session-6RNXZNG6.js +0 -14
- package/dist/worktree-QHQHX3SG.js +0 -14
- package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +0 -164
- package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +0 -528
- package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +0 -69
- package/patches/@ai-sdk%2Fgroq@3.0.31.patch +0 -79
- package/patches/@ai-sdk%2Fmistral@3.0.51.patch +0 -714
- package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +0 -39
- package/patches/@ai-sdk%2Fopenai@3.0.88.patch +0 -280
- package/patches/@ai-sdk%2Fxai@3.0.139.patch +0 -296
- package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +0 -647
- package/patches/@npmcli%2Fagent@4.0.2.patch +0 -13
- package/patches/effect@4.0.0-beta.83.patch +0 -57
- package/patches/gcp-metadata@8.1.2.patch +0 -14
- package/patches/pacote@21.5.0.patch +0 -18
package/dist/session-6RNXZNG6.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
if (typeof globalThis.Bun === 'undefined') {
|
|
3
|
-
globalThis.Bun = {
|
|
4
|
-
version: '0.0.0-node-compat',
|
|
5
|
-
stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
|
|
6
|
-
which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
|
|
10
|
-
if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
|
|
11
|
-
import { createRequire as __alchemyCreateRequire } from 'node:module';
|
|
12
|
-
const require = __alchemyCreateRequire(import.meta.url);
|
|
13
|
-
|
|
14
|
-
import{A as n,B as o,C as p,D as q,E as r,F as s,G as t,H as u,I as v,J as w,K as x,L as y,M as z,N as A,n as a,o as b,p as c,q as d,r as e,s as f,t as g,u as h,v as i,w as j,x as k,y as l,z as m}from"./chunk-Z5TLIUAI.js";import"./chunk-OMDJ6ZZ2.js";import"./chunk-BM2C7NHL.js";import"./chunk-RHIWAYN5.js";export{d as ArchivedTimestamp,w as BusyError,l as ChildrenInput,i as CreateInput,t as Event,j as ForkInput,k as GetInput,h as GlobalInfo,f as Info,s as MessagesInput,e as Metadata,g as ProjectInfo,m as RemoveInput,x as Service,A as Session,o as SetArchivedInput,p as SetMetadataInput,q as SetPermissionInput,r as SetRevertInput,n as SetTitleInput,b as fromRow,v as getUsage,a as isDefaultTitle,z as node,u as plan,c as toRow,y as use};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Built by esbuild from opencode-server source
|
|
2
|
-
if (typeof globalThis.Bun === 'undefined') {
|
|
3
|
-
globalThis.Bun = {
|
|
4
|
-
version: '0.0.0-node-compat',
|
|
5
|
-
stdin: { async text() { const chunks = []; for await (const c of process.stdin) chunks.push(c); return Buffer.concat(chunks).toString(); } },
|
|
6
|
-
which(cmd) { try { return require('child_process').execFileSync('which', [cmd], { encoding: 'utf8' }).trim(); } catch { return null; } },
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
|
|
10
|
-
if (typeof globalThis.__export === 'undefined') { globalThis.__export = (t, a) => { for (const k in a) Object.defineProperty(t, k, { get: a[k], enumerable: true }); }; }
|
|
11
|
-
import { createRequire as __alchemyCreateRequire } from 'node:module';
|
|
12
|
-
const require = __alchemyCreateRequire(import.meta.url);
|
|
13
|
-
|
|
14
|
-
import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i,r as j,s as k,t as l,u as m,v as n,w as o}from"./chunk-OWMG4NNF.js";import"./chunk-4FEBIOI5.js";import"./chunk-QRABYJKL.js";import"./chunk-OMDJ6ZZ2.js";import"./chunk-BM2C7NHL.js";import"./chunk-RHIWAYN5.js";export{h as CreateFailedError,c as CreateInput,a as Event,b as Info,l as ListFailedError,g as NameGenerationFailedError,f as NotGitError,j as RemoveFailedError,d as RemoveInput,k as ResetFailedError,e as ResetInput,m as Service,i as StartCommandFailedError,o as Worktree,n as node};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
diff --git a/dist/index.d.mts b/dist/index.d.mts
|
|
2
|
-
index d194ae227fd1223ba44c8c5157b1bb72b1bab273..db7fdb1b6f4e617baa40539ccef718735d2e9e81 100644
|
|
3
|
-
--- a/dist/index.d.mts
|
|
4
|
-
+++ b/dist/index.d.mts
|
|
5
|
-
@@ -51,6 +51,7 @@ declare const amazonBedrockLanguageModelOptions: z.ZodObject<{
|
|
6
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodLiteral<"disabled">, z.ZodLiteral<"adaptive">]>>;
|
|
7
|
-
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
maxReasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
+ none: "none";
|
|
10
|
-
low: "low";
|
|
11
|
-
medium: "medium";
|
|
12
|
-
high: "high";
|
|
13
|
-
@@ -61,6 +62,12 @@ declare const amazonBedrockLanguageModelOptions: z.ZodObject<{
|
|
14
|
-
omitted: "omitted";
|
|
15
|
-
summarized: "summarized";
|
|
16
|
-
}>>;
|
|
17
|
-
+ blockBinding: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
+ prefixMismatchBehavior: z.ZodEnum<{
|
|
19
|
-
+ error: "error";
|
|
20
|
-
+ drop_block: "drop_block";
|
|
21
|
-
+ }>;
|
|
22
|
-
+ }, z.core.$strip>>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
anthropicBeta: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
-
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
diff --git a/dist/index.d.ts b/dist/index.d.ts
|
|
27
|
-
index d194ae227fd1223ba44c8c5157b1bb72b1bab273..db7fdb1b6f4e617baa40539ccef718735d2e9e81 100644
|
|
28
|
-
--- a/dist/index.d.ts
|
|
29
|
-
+++ b/dist/index.d.ts
|
|
30
|
-
@@ -51,6 +51,7 @@ declare const amazonBedrockLanguageModelOptions: z.ZodObject<{
|
|
31
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"enabled">, z.ZodLiteral<"disabled">, z.ZodLiteral<"adaptive">]>>;
|
|
32
|
-
budgetTokens: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
maxReasoningEffort: z.ZodOptional<z.ZodEnum<{
|
|
34
|
-
+ none: "none";
|
|
35
|
-
low: "low";
|
|
36
|
-
medium: "medium";
|
|
37
|
-
high: "high";
|
|
38
|
-
@@ -61,6 +62,12 @@ declare const amazonBedrockLanguageModelOptions: z.ZodObject<{
|
|
39
|
-
omitted: "omitted";
|
|
40
|
-
summarized: "summarized";
|
|
41
|
-
}>>;
|
|
42
|
-
+ blockBinding: z.ZodOptional<z.ZodObject<{
|
|
43
|
-
+ prefixMismatchBehavior: z.ZodEnum<{
|
|
44
|
-
+ error: "error";
|
|
45
|
-
+ drop_block: "drop_block";
|
|
46
|
-
+ }>;
|
|
47
|
-
+ }, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
anthropicBeta: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
-
serviceTier: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
diff --git a/dist/index.js b/dist/index.js
|
|
52
|
-
index 2047c91971c23f72dd3cd0c069614f37a30e45f3..ede62d091e3d17fd6130e77a6a209ee0af2a7c20 100644
|
|
53
|
-
--- a/dist/index.js
|
|
54
|
-
+++ b/dist/index.js
|
|
55
|
-
@@ -94,8 +94,11 @@ var amazonBedrockLanguageModelOptions = import_v4.z.object({
|
|
56
|
-
import_v4.z.literal("adaptive")
|
|
57
|
-
]).optional(),
|
|
58
|
-
budgetTokens: import_v4.z.number().optional(),
|
|
59
|
-
- maxReasoningEffort: import_v4.z.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
60
|
-
- display: import_v4.z.enum(["omitted", "summarized"]).optional()
|
|
61
|
-
+ maxReasoningEffort: import_v4.z.enum(["none", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
62
|
-
+ display: import_v4.z.enum(["omitted", "summarized"]).optional(),
|
|
63
|
-
+ blockBinding: import_v4.z.object({
|
|
64
|
-
+ prefixMismatchBehavior: import_v4.z.enum(["error", "drop_block"])
|
|
65
|
-
+ }).optional()
|
|
66
|
-
}).optional(),
|
|
67
|
-
/**
|
|
68
|
-
* Anthropic beta features to enable
|
|
69
|
-
@@ -1020,6 +1023,10 @@ var BedrockChatLanguageModel = class {
|
|
70
|
-
...additionalTools
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
+ const thinkingBlockBinding = isAnthropicModel && isThinkingEnabled ? (bedrockOptions.reasoningConfig == null ? void 0 : bedrockOptions.reasoningConfig.blockBinding) : void 0;
|
|
74
|
-
+ if (thinkingBlockBinding != null) {
|
|
75
|
-
+ betas.add("thinking-binding-controls-2026-08-01");
|
|
76
|
-
+ }
|
|
77
|
-
if (betas.size > 0 || bedrockOptions.anthropicBeta) {
|
|
78
|
-
const existingBetas = (_g = bedrockOptions.anthropicBeta) != null ? _g : [];
|
|
79
|
-
const mergedBetas = betas.size > 0 ? [...existingBetas, ...Array.from(betas)] : existingBetas;
|
|
80
|
-
@@ -1050,7 +1057,12 @@ var BedrockChatLanguageModel = class {
|
|
81
|
-
...bedrockOptions.additionalModelRequestFields,
|
|
82
|
-
thinking: {
|
|
83
|
-
type: "enabled",
|
|
84
|
-
- budget_tokens: thinkingBudget
|
|
85
|
-
+ budget_tokens: thinkingBudget,
|
|
86
|
-
+ ...thinkingBlockBinding != null && {
|
|
87
|
-
+ block_binding: {
|
|
88
|
-
+ prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
|
|
89
|
-
+ }
|
|
90
|
-
+ }
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
} else if (thinkingType === "adaptive") {
|
|
94
|
-
@@ -1058,7 +1070,12 @@ var BedrockChatLanguageModel = class {
|
|
95
|
-
...bedrockOptions.additionalModelRequestFields,
|
|
96
|
-
thinking: {
|
|
97
|
-
type: "adaptive",
|
|
98
|
-
- ...thinkingDisplay != null && { display: thinkingDisplay }
|
|
99
|
-
+ ...thinkingDisplay != null && { display: thinkingDisplay },
|
|
100
|
-
+ ...thinkingBlockBinding != null && {
|
|
101
|
-
+ block_binding: {
|
|
102
|
-
+ prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
|
|
103
|
-
+ }
|
|
104
|
-
+ }
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
diff --git a/dist/index.mjs b/dist/index.mjs
|
|
109
|
-
index 5a669504cb3b21f20788956bc9c22529c1498c35..bcbcd768759a4e412657795d6db75e21d4e64c09 100644
|
|
110
|
-
--- a/dist/index.mjs
|
|
111
|
-
+++ b/dist/index.mjs
|
|
112
|
-
@@ -83,8 +83,11 @@ var amazonBedrockLanguageModelOptions = z.object({
|
|
113
|
-
z.literal("adaptive")
|
|
114
|
-
]).optional(),
|
|
115
|
-
budgetTokens: z.number().optional(),
|
|
116
|
-
- maxReasoningEffort: z.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
117
|
-
- display: z.enum(["omitted", "summarized"]).optional()
|
|
118
|
-
+ maxReasoningEffort: z.enum(["none", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
119
|
-
+ display: z.enum(["omitted", "summarized"]).optional(),
|
|
120
|
-
+ blockBinding: z.object({
|
|
121
|
-
+ prefixMismatchBehavior: z.enum(["error", "drop_block"])
|
|
122
|
-
+ }).optional()
|
|
123
|
-
}).optional(),
|
|
124
|
-
/**
|
|
125
|
-
* Anthropic beta features to enable
|
|
126
|
-
@@ -1024,6 +1027,10 @@ var BedrockChatLanguageModel = class {
|
|
127
|
-
...additionalTools
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
+ const thinkingBlockBinding = isAnthropicModel && isThinkingEnabled ? (bedrockOptions.reasoningConfig == null ? void 0 : bedrockOptions.reasoningConfig.blockBinding) : void 0;
|
|
131
|
-
+ if (thinkingBlockBinding != null) {
|
|
132
|
-
+ betas.add("thinking-binding-controls-2026-08-01");
|
|
133
|
-
+ }
|
|
134
|
-
if (betas.size > 0 || bedrockOptions.anthropicBeta) {
|
|
135
|
-
const existingBetas = (_g = bedrockOptions.anthropicBeta) != null ? _g : [];
|
|
136
|
-
const mergedBetas = betas.size > 0 ? [...existingBetas, ...Array.from(betas)] : existingBetas;
|
|
137
|
-
@@ -1054,7 +1061,12 @@ var BedrockChatLanguageModel = class {
|
|
138
|
-
...bedrockOptions.additionalModelRequestFields,
|
|
139
|
-
thinking: {
|
|
140
|
-
type: "enabled",
|
|
141
|
-
- budget_tokens: thinkingBudget
|
|
142
|
-
+ budget_tokens: thinkingBudget,
|
|
143
|
-
+ ...thinkingBlockBinding != null && {
|
|
144
|
-
+ block_binding: {
|
|
145
|
-
+ prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
|
|
146
|
-
+ }
|
|
147
|
-
+ }
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
} else if (thinkingType === "adaptive") {
|
|
151
|
-
@@ -1062,7 +1074,12 @@ var BedrockChatLanguageModel = class {
|
|
152
|
-
...bedrockOptions.additionalModelRequestFields,
|
|
153
|
-
thinking: {
|
|
154
|
-
type: "adaptive",
|
|
155
|
-
- ...thinkingDisplay != null && { display: thinkingDisplay }
|
|
156
|
-
+ ...thinkingDisplay != null && { display: thinkingDisplay },
|
|
157
|
-
+ ...thinkingBlockBinding != null && {
|
|
158
|
-
+ block_binding: {
|
|
159
|
-
+ prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
|
|
160
|
-
+ }
|
|
161
|
-
+ }
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
}
|