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
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{A as j,B as k,C as l,D as m,E as n,F as o,G as p,H as q,I as r,J as s,K as t,L as u,M as v,N as w,O as x,P as y,Q as z,R as A,r as a,s as b,t as c,u as d,v as e,w as f,x as g,y as h,z as i}from"./chunk-FOHYZ7MJ.js";import"./chunk-DWEYXIQI.js";import"./chunk-OUVSKG2H.js";import"./chunk-QCRIXKIC.js";import"./chunk-P5RLCJUV.js";import"./chunk-NDI67DRG.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import"./chunk-7XX6TY62.js";import"./chunk-LSC4RT5V.js";import"./chunk-V7XKKJ7X.js";import"./chunk-FV7U6PVP.js";import"./chunk-AZUMH3TO.js";import"./chunk-VWLJXTZ5.js";import"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.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};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{d as Ke,e as Ye}from"./chunk-IYUSBBGY.js";import{b as Xe,c as Qe}from"./chunk-EK6FQQHY.js";import{a as Le,b as je,c as Ge}from"./chunk-OCWGUTZJ.js";import{d as be,e as z,f as He,g as Ve,h as We,i as ze,j as Be}from"./chunk-CYRZU5QM.js";import{a as s,d as qe,g as Ue,h as Fe}from"./chunk-2MRHL4B2.js";var xe=qe(o=>{var{awsEndpointFunctions:Je,emitWarningIfUnsupportedVersion:Ze,createDefaultUserAgentProvider:et,NODE_APP_ID_CONFIG_OPTIONS:tt,getAwsRegionExtensionConfiguration:nt,resolveAwsRegionExtensionConfiguration:st,resolveUserAgentConfig:ot,resolveHostHeaderConfig:rt,getUserAgentPlugin:it,getHostHeaderPlugin:at,getLoggerPlugin:ct,getRecursionDetectionPlugin:ut}=Ge(),{NoAuthSigner:dt,getHttpAuthSchemeEndpointRuleSetPlugin:pt,DefaultIdentityProviderConfig:ht,getHttpSigningPlugin:gt}=je(),{normalizeProvider:re,getSmithyContext:lt,ServiceException:Et,NoOpLogger:mt,emitWarningIfUnsupportedVersion:At,loadConfigsForDefaultMode:St,getDefaultExtensionConfiguration:_t,resolveDefaultRuntimeConfig:Ot,Client:ie,makeBuilder:It,createAggregatedClient:Ct}=z(),{Command:Rt}=z();o.$Command=Rt;o.__Client=ie;var{resolveDefaultsModeConfig:Tt,loadConfig:A,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:vt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ft,NODE_REGION_CONFIG_OPTIONS:Pt,NODE_REGION_CONFIG_FILE_OPTIONS:kt,resolveRegionConfig:yt}=He(),{BinaryDecisionDiagram:xt,EndpointCache:Dt,decideEndpoint:wt,customEndpointFunctions:Nt,resolveEndpointConfig:$t,getEndpointPlugin:Mt}=Ve(),{parseUrl:qt,getHttpHandlerExtensionConfiguration:Ut,resolveHttpHandlerRuntimeConfig:Ft,getContentLengthPlugin:bt}=Be(),{DEFAULT_RETRY_MODE:Ht,NODE_RETRY_MODE_CONFIG_OPTIONS:Vt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Wt,resolveRetryConfig:zt,getRetryPlugin:Bt}=Le(),{TypeRegistry:ae,getSchemaSerdePlugin:Lt}=be(),{resolveAwsSdkSigV4Config:jt,AwsSdkSigV4Signer:Gt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Kt}=Ke(),{toUtf8:Xt,fromUtf8:Qt,toBase64:Yt,fromBase64:Jt,calculateBodyLength:Zt}=We(),{streamCollector:en,NodeHttpHandler:tn}=(Qe(),Fe(Xe)),{AwsRestJsonProtocol:nn}=Ye(),{Sha256:sn}=ze(),on=s(async(e,t,r)=>({operation:lt(t).operation,region:await re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");function rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:s((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}s(rn,"createAwsAuthSigv4HttpAuthOption");function an(e){return{schemeId:"smithy.api#noAuth"}}s(an,"createSmithyApiNoAuthHttpAuthOption");var cn=s(e=>{let t=[];return e.operation==="CreateOAuth2Token"?t.push(an()):t.push(rn(e)),t},"defaultSigninHttpAuthSchemeProvider"),un=s(e=>{let t=jt(e);return Object.assign(t,{authSchemePreference:re(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),dn=s(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),pn={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},hn="3.997.47",gn={version:hn},l="ref",h=-1,B=!1,S=!0,L="isSet",_="booleanEquals",j="coalesce",b="PartitionResult",p="stringEquals",$="getAttr",G="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",K={[l]:"Endpoint"},g={fn:$,argv:[{[l]:b},"name"]},ce={[l]:"Region"},X={[l]:b},C={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},a={},Q=[ce],Y={conditions:[[L,Q],[_,[{fn:j,argv:[{[l]:"IsControlPlane"},B]},S]],[L,[K]],["aws.partition",Q,b],[_,[{[l]:"UseFIPS"},S]],[p,[g,"aws"]],[_,[{fn:j,argv:[{[l]:"IsOAuthEndpoint"},B]},S]],[_,[{[l]:"UseDualStack"},S]],[p,[g,"aws-cn"]],[p,[ce,"us-gov-west-1"]],[p,[g,"aws-us-gov"]],[_,[{fn:$,argv:[X,"supportsFIPS"]},S]],[p,[g,"aws-iso"]],[p,[g,"aws-iso-b"]],[p,[g,"aws-iso-f"]],[p,[g,"aws-iso-e"]],[p,[g,"aws-eusc"]],[_,[{fn:$,argv:[X,"supportsDualStack"]},S]]],results:[[h],["https://signin.{Region}.api.aws",C],["https://signin.{Region}.api.amazonwebservices.com.cn",C],[G,C],[h,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",C],["https://{Region}.signin.aws.amazon.com",a],["https://{Region}.signin.amazonaws.cn",a],["https://{Region}.signin.amazonaws-us-gov.com",a],["https://{Region}.signin.c2shome.ic.gov",a],["https://{Region}.signin.sc2shome.sgov.gov",a],["https://{Region}.signin.csphome.hci.ic.gov",a],["https://{Region}.signin.csphome.adc-e.uk",a],["https://{Region}.signin.amazonaws-eusc.eu",a],["https://signin-fips.amazonaws-us-gov.com",a],["https://{Region}.signin-fips.amazonaws-us-gov.com",a],["https://{Region}.signin.{PartitionResult#dnsSuffix}",a],[h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[K,a],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",a],[h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",a],[h,"FIPS is enabled but this partition does not support FIPS"],[G,a],[h,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",a],[h,"Invalid Configuration: Missing Region"]]},ln=2,n=1e8,En=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,n+27,6,n+4,n+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,n+7,13,10,n+8,14,12,n+9,15,13,n+10,16,14,n+11,17,15,n+12,18,16,n+13,n+16,6,n+5,20,7,21,n+6,17,n+24,n+25,6,n+4,23,7,27,24,9,n+14,25,10,n+15,26,11,n+22,n+23,11,28,n+21,17,n+20,n+21,2,35,30,3,39,31,4,32,n+27,6,n+4,33,7,n+27,34,9,n+14,n+27,3,39,36,4,38,37,7,n+18,n+19,6,n+4,n+17,5,n+1,40,8,n+2,n+3]),mn=xt.from(En,ln,Y.conditions,Y.results),An=new Dt({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),Sn=s((e,t={})=>An.get(e,()=>wt(mn,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Nt.aws=Je;var E=class e extends Et{static{s(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},R=class e extends E{static{s(this,"AccessDeniedException")}static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},T=class e extends E{static{s(this,"InternalServerException")}static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},v=class e extends E{static{s(this,"TooManyRequestsError")}static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(t){super({name:"TooManyRequestsError",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},f=class e extends E{static{s(this,"ValidationException")}static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(t){super({name:"ValidationException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},_n="AccessDeniedException",On="AccessToken",In="CreateOAuth2Token",Cn="CreateOAuth2TokenRequest",Rn="CreateOAuth2TokenRequestBody",Tn="CreateOAuth2TokenResponseBody",vn="CreateOAuth2TokenResponse",fn="CreateOAuth2TokenWithIAM",Pn="CreateOAuth2TokenWithIAMRequest",kn="CreateOAuth2TokenWithIAMResponse",yn="InternalServerException",xn="OAuthAccessToken",Dn="RefreshToken",wn="TooManyRequestsError",Nn="ValidationException",J="accessKeyId",M="accessToken",$n="access_token",H="client",Z="clientId",ee="codeVerifier",Mn="code",m="error",q="expiresIn",qn="expires_in",U="grantType",Un="grant_type",ue="http",V="httpError",te="idToken",i="jsonName",w="message",Fn="resource",P="refreshToken",ne="redirectUri",de="smithy.ts.sdk.synthetic.com.amazonaws.signin",se="secretAccessKey",oe="sessionToken",bn="server",Hn="tokenInput",Vn="tokenOutput",F="tokenType",Wn="token_type",c="com.amazonaws.signin",pe=new ae(de),he=[-3,de,"SigninServiceException",0,[],[]];pe.registerError(he,E);var O=new ae(c),ge=[-3,c,_n,{[m]:H},[m,w],[0,0],2];O.registerError(ge,R);var le=[-3,c,yn,{[m]:bn,[V]:500},[m,w],[0,0],2];O.registerError(le,T);var Ee=[-3,c,wn,{[m]:H,[V]:429},[m,w],[0,0],2];O.registerError(Ee,v);var me=[-3,c,Nn,{[m]:H,[V]:400},[m,w],[0,0],2];O.registerError(me,f);var Ae=[pe,O],zn=[0,c,xn,8,0],Se=[0,c,Dn,8,0],_e=[3,c,On,8,[J,se,oe],[[0,{[i]:J}],[0,{[i]:se}],[0,{[i]:oe}]],3],Oe=[3,c,Cn,0,[Hn],[[()=>Ie,16]],1],Ie=[3,c,Rn,0,[Z,U,Mn,ne,ee,P],[[0,{[i]:Z}],[0,{[i]:U}],0,[0,{[i]:ne}],[0,{[i]:ee}],[()=>Se,{[i]:P}]],2],Ce=[3,c,vn,0,[Vn],[[()=>Re,16]],1],Re=[3,c,Tn,0,[M,F,q,P,te],[[()=>_e,{[i]:M}],[0,{[i]:F}],[1,{[i]:q}],[()=>Se,{[i]:P}],[0,{[i]:te}]],4],Te=[3,c,Pn,0,[U,Fn],[[0,{[i]:Un}],0],2],ve=[3,c,kn,0,[M,F,q],[[()=>zn,{[i]:$n}],[0,{[i]:Wn}],[1,{[i]:qn}]],3],fe=[9,c,In,{[ue]:["POST","/v1/token",200]},()=>Oe,()=>Ce],Pe=[9,c,fn,{[ue]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>Te,()=>ve],Bn=s(e=>({apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Jt,base64Encoder:e?.base64Encoder??Yt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Sn,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??cn,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:s(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Gt},{schemeId:"smithy.api#noAuth",identityProvider:s(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new dt}],logger:e?.logger??new mt,protocol:e?.protocol??nn,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Ae,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",sha256:e?.sha256??sn,urlParser:e?.urlParser??qt,utf8Decoder:e?.utf8Decoder??Qt,utf8Encoder:e?.utf8Encoder??Xt}),"getRuntimeConfig$1"),Ln=s(e=>{At(process.version);let t=Tt(e),r=s(()=>t().then(St),"defaultConfigProvider"),d=Bn(e);Ze(process.version);let u={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??A(Kt,u),bodyLengthChecker:e?.bodyLengthChecker??Zt,defaultUserAgentProvider:e?.defaultUserAgentProvider??et({serviceId:d.serviceId,clientVersion:gn.version}),maxAttempts:e?.maxAttempts??A(Wt,e),region:e?.region??A(Pt,{...kt,...u}),requestHandler:tn.create(e?.requestHandler??r),retryMode:e?.retryMode??A({...Vt,default:s(async()=>(await r()).retryMode||Ht,"default")},e),streamCollector:e?.streamCollector??en,useDualstackEndpoint:e?.useDualstackEndpoint??A(ft,u),useFipsEndpoint:e?.useFipsEndpoint??A(vt,u),userAgentAppId:e?.userAgentAppId??A(tt,u)}},"getRuntimeConfig"),jn=s(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,d=e.credentials;return{setHttpAuthScheme(u){let I=t.findIndex(N=>N.schemeId===u.schemeId);I===-1?t.push(u):t.splice(I,1,u)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(u){r=u},httpAuthSchemeProvider(){return r},setCredentials(u){d=u},credentials(){return d}}},"getHttpAuthExtensionConfiguration"),Gn=s(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig"),Kn=s((e,t)=>{let r=Object.assign(nt(e),_t(e),Ut(e),jn(e));return t.forEach(d=>d.configure(r)),Object.assign(e,st(r),Ot(r),Ft(r),Gn(r))},"resolveRuntimeExtensions"),k=class extends ie{static{s(this,"SigninClient")}config;constructor(...[t]){let r=Ln(t||{});super(r),this.initConfig=r;let d=dn(r),u=ot(d),I=zt(u),N=yt(I),De=rt(N),we=$t(De),Ne=un(we),$e=Kn(Ne,t?.extensions||[]);this.config=$e,this.middlewareStack.use(Lt(this.config)),this.middlewareStack.use(it(this.config)),this.middlewareStack.use(Bt(this.config)),this.middlewareStack.use(bt(this.config)),this.middlewareStack.use(at(this.config)),this.middlewareStack.use(ct(this.config)),this.middlewareStack.use(ut(this.config)),this.middlewareStack.use(pt(this.config,{httpAuthSchemeParametersProvider:on,identityProviderConfigProvider:s(async Me=>new ht({"aws.auth#sigv4":Me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(gt(this.config))}destroy(){super.destroy()}},ke=It(pn,"Signin","SigninClient",Mt),Xn={IsControlPlane:{type:"staticContextParams",value:!1}},Qn={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},ye=s((e,t,r,d)=>[],"_mw0"),y=class extends ke(Xn,ye,"CreateOAuth2Token",fe){static{s(this,"CreateOAuth2TokenCommand")}},x=class extends ke(Qn,ye,"CreateOAuth2TokenWithIAM",Pe){static{s(this,"CreateOAuth2TokenWithIAMCommand")}},Yn={CreateOAuth2TokenCommand:y,CreateOAuth2TokenWithIAMCommand:x},D=class extends k{static{s(this,"Signin")}};Ct(Yn,D);var Jn={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};o.AccessDeniedException=R;o.AccessDeniedException$=ge;o.AccessToken$=_e;o.CreateOAuth2Token$=fe;o.CreateOAuth2TokenCommand=y;o.CreateOAuth2TokenRequest$=Oe;o.CreateOAuth2TokenRequestBody$=Ie;o.CreateOAuth2TokenResponse$=Ce;o.CreateOAuth2TokenResponseBody$=Re;o.CreateOAuth2TokenWithIAM$=Pe;o.CreateOAuth2TokenWithIAMCommand=x;o.CreateOAuth2TokenWithIAMRequest$=Te;o.CreateOAuth2TokenWithIAMResponse$=ve;o.InternalServerException=T;o.InternalServerException$=le;o.OAuth2ErrorCode=Jn;o.Signin=D;o.SigninClient=k;o.SigninServiceException=E;o.SigninServiceException$=he;o.TooManyRequestsError=v;o.TooManyRequestsError$=Ee;o.ValidationException=f;o.ValidationException$=me;o.errorTypeRegistries=Ae});var W=Ue(xe()),ts=W.default,{$Command:ns,__Client:ss,AccessDeniedException:os,AccessDeniedException$:rs,AccessToken$:is,CreateOAuth2Token$:as,CreateOAuth2TokenCommand:cs,CreateOAuth2TokenRequest$:us,CreateOAuth2TokenRequestBody$:ds,CreateOAuth2TokenResponse$:ps,CreateOAuth2TokenResponseBody$:hs,CreateOAuth2TokenWithIAM$:gs,CreateOAuth2TokenWithIAMCommand:ls,CreateOAuth2TokenWithIAMRequest$:Es,CreateOAuth2TokenWithIAMResponse$:ms,InternalServerException:As,InternalServerException$:Ss,OAuth2ErrorCode:_s,Signin:Os,SigninClient:Is,SigninServiceException:Cs,SigninServiceException$:Rs,TooManyRequestsError:Ts,TooManyRequestsError$:vs,ValidationException:fs,ValidationException$:Ps,errorTypeRegistries:ks}=W;export{ns as $Command,os as AccessDeniedException,rs as AccessDeniedException$,is as AccessToken$,as as CreateOAuth2Token$,cs as CreateOAuth2TokenCommand,us as CreateOAuth2TokenRequest$,ds as CreateOAuth2TokenRequestBody$,ps as CreateOAuth2TokenResponse$,hs as CreateOAuth2TokenResponseBody$,gs as CreateOAuth2TokenWithIAM$,ls as CreateOAuth2TokenWithIAMCommand,Es as CreateOAuth2TokenWithIAMRequest$,ms as CreateOAuth2TokenWithIAMResponse$,As as InternalServerException,Ss as InternalServerException$,_s as OAuth2ErrorCode,Os as Signin,Is as SigninClient,Cs as SigninServiceException,Rs as SigninServiceException$,Ts as TooManyRequestsError,vs as TooManyRequestsError$,fs as ValidationException,Ps as ValidationException$,ss as __Client,ts as default,ks as errorTypeRegistries};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as n}from"./chunk-5BLZCAU6.js";import{g as t}from"./chunk-2MRHL4B2.js";var e=t(n()),l=e.default,{gcpMetadata:o,gaxios:i,AuthClient:C,DEFAULT_UNIVERSE:a,Compute:u,GCPEnv:A,IAMAuth:r,IdTokenClient:s,JWTAccess:c,JWT:E,Impersonated:h,CodeChallengeMethod:d,OAuth2Client:T,ClientAuthentication:g,LoginTicket:p,UserRefreshClient:x,AwsClient:U,AwsRequestSigner:m,IdentityPoolClient:I,ExternalAccountClient:R,BaseExternalAccountClient:P,DownscopedClient:_,PluggableAuthClient:f,ExecutableError:w,EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE:D,ExternalAccountAuthorizedUserClient:L,PassThroughClient:M,auth:N,GoogleAuth:O}=e;export{C as AuthClient,U as AwsClient,m as AwsRequestSigner,P as BaseExternalAccountClient,g as ClientAuthentication,d as CodeChallengeMethod,u as Compute,a as DEFAULT_UNIVERSE,_ as DownscopedClient,D as EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE,w as ExecutableError,L as ExternalAccountAuthorizedUserClient,R as ExternalAccountClient,A as GCPEnv,O as GoogleAuth,r as IAMAuth,s as IdTokenClient,I as IdentityPoolClient,h as Impersonated,E as JWT,c as JWTAccess,p as LoginTicket,T as OAuth2Client,M as PassThroughClient,f as PluggableAuthClient,x as UserRefreshClient,N as auth,l as default,i as gaxios,o as gcpMetadata};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a}from"./chunk-MLFZXUGQ.js";import"./chunk-AZUMH3TO.js";import{g as t}from"./chunk-2MRHL4B2.js";var o=t(a()),e=o.default,{AsyncHooksContextManager:n,AsyncLocalStorageContextManager:r}=o;export{n as AsyncHooksContextManager,r as AsyncLocalStorageContextManager,e as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as q,b as ze,c as Ne,d as z,e as fe,f as ce,g as De,h as Me,i as We,j as Ve,k as Ge}from"./chunk-ANF3QA3Z.js";import{a as i,c as g}from"./chunk-2MRHL4B2.js";function Ke(r){if(!/^data:/i.test(r))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');r=r.replace(/\r?\n/g,"");let e=r.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let t=r.substring(5,e).split(";"),n="",o=!1,s=t[0]||"text/plain",a=s;for(let x=1;x<t.length;x++)t[x]==="base64"?o=!0:t[x]&&(a+=`;${t[x]}`,t[x].indexOf("charset=")===0&&(n=t[x].substring(8)));!t[0]&&!n.length&&(a+=";charset=US-ASCII",n="US-ASCII");let l=o?"base64":"ascii",u=unescape(r.substring(e+1)),f=Buffer.from(u,l);return f.type=s,f.typeFull=a,f.charset=n,f}var le,ue=g(()=>{i(Ke,"dataUriToBuffer");le=Ke});var v,W=g(()=>{v=class extends Error{static{i(this,"FetchBaseError")}constructor(e,t){super(e),Error.captureStackTrace(this,this.constructor),this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}});var m,ee=g(()=>{W();m=class extends v{static{i(this,"FetchError")}constructor(e,t,n){super(e,t),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall)}}});var V,re,N,he,de,pe,G=g(()=>{V=Symbol.toStringTag,re=i(r=>typeof r=="object"&&typeof r.append=="function"&&typeof r.delete=="function"&&typeof r.get=="function"&&typeof r.getAll=="function"&&typeof r.has=="function"&&typeof r.set=="function"&&typeof r.sort=="function"&&r[V]==="URLSearchParams","isURLSearchParameters"),N=i(r=>r&&typeof r=="object"&&typeof r.arrayBuffer=="function"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.constructor=="function"&&/^(Blob|File)$/.test(r[V]),"isBlob"),he=i(r=>typeof r=="object"&&(r[V]==="AbortSignal"||r[V]==="EventTarget"),"isAbortSignal"),de=i((r,e)=>{let t=new URL(e).hostname,n=new URL(r).hostname;return t===n||t.endsWith(`.${n}`)},"isDomainOrSubdomain"),pe=i((r,e)=>{let t=new URL(e).protocol,n=new URL(r).protocol;return t===n},"isSameProtocol")});import B,{PassThrough as me}from"node:stream";import{types as ye,deprecate as oe,promisify as Ye}from"node:util";import{Buffer as S}from"node:buffer";async function te(r){if(r[y].disturbed)throw new TypeError(`body used already for: ${r.url}`);if(r[y].disturbed=!0,r[y].error)throw r[y].error;let{body:e}=r;if(e===null)return S.alloc(0);if(!(e instanceof B))return S.alloc(0);let t=[],n=0;try{for await(let o of e){if(r.size>0&&n+o.length>r.size){let s=new m(`content size at ${r.url} over limit: ${r.size}`,"max-size");throw e.destroy(s),s}n+=o.length,t.push(o)}}catch(o){throw o instanceof v?o:new m(`Invalid response body while trying to fetch ${r.url}: ${o.message}`,"system",o)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return t.every(o=>typeof o=="string")?S.from(t.join("")):S.concat(t,n)}catch(o){throw new m(`Could not create Buffer from response body for ${r.url}: ${o.message}`,"system",o)}else throw new m(`Premature close of server response while trying to fetch ${r.url}`)}var Je,y,P,k,_e,K,ge,we,Y=g(()=>{ze();ce();ee();W();G();Je=Ye(B.pipeline),y=Symbol("Body internals"),P=class{static{i(this,"Body")}constructor(e,{size:t=0}={}){let n=null;e===null?e=null:re(e)?e=S.from(e.toString()):N(e)||S.isBuffer(e)||(ye.isAnyArrayBuffer(e)?e=S.from(e):ArrayBuffer.isView(e)?e=S.from(e.buffer,e.byteOffset,e.byteLength):e instanceof B||(e instanceof z?(e=fe(e),n=e.type.split("=")[1]):e=S.from(String(e))));let o=e;S.isBuffer(e)?o=B.Readable.from(e):N(e)&&(o=B.Readable.from(e.stream())),this[y]={body:e,stream:o,boundary:n,disturbed:!1,error:null},this.size=t,e instanceof B&&e.on("error",s=>{let a=s instanceof v?s:new m(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[y].error=a})}get body(){return this[y].stream}get bodyUsed(){return this[y].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:t,byteLength:n}=await te(this);return e.slice(t,t+n)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let n=new z,o=new URLSearchParams(await this.text());for(let[s,a]of o)n.append(s,a);return n}let{toFormData:t}=await import("./multipart-parser-KZWMKXA4.js");return t(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[y].body&&this[y].body.type||"",t=await this.arrayBuffer();return new q([t],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await te(this);return new TextDecoder().decode(e)}buffer(){return te(this)}};P.prototype.buffer=oe(P.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(P.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:oe(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});i(te,"consumeBody");k=i((r,e)=>{let t,n,{body:o}=r[y];if(r.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof B&&typeof o.getBoundary!="function"&&(t=new me({highWaterMark:e}),n=new me({highWaterMark:e}),o.pipe(t),o.pipe(n),r[y].stream=t,o=n),o},"clone"),_e=oe(r=>r.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),K=i((r,e)=>r===null?null:typeof r=="string"?"text/plain;charset=UTF-8":re(r)?"application/x-www-form-urlencoded;charset=UTF-8":N(r)?r.type||null:S.isBuffer(r)||ye.isAnyArrayBuffer(r)||ArrayBuffer.isView(r)?null:r instanceof z?`multipart/form-data; boundary=${e[y].boundary}`:r&&typeof r.getBoundary=="function"?`multipart/form-data;boundary=${_e(r)}`:r instanceof B?null:"text/plain;charset=UTF-8","extractContentType"),ge=i(r=>{let{body:e}=r[y];return e===null?0:N(e)?e.size:S.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},"getTotalBytes"),we=i(async(r,{body:e})=>{e===null?r.end():await Je(e,r)},"writeToStream")});import{types as be}from"node:util";import _ from"node:http";function Se(r=[]){return new w(r.reduce((e,t,n,o)=>(n%2===0&&e.push(o.slice(n,n+2)),e),[]).filter(([e,t])=>{try{return J(e),ne(e,String(t)),!0}catch{return!1}}))}var J,ne,w,Z=g(()=>{J=typeof _.validateHeaderName=="function"?_.validateHeaderName:r=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(r)){let e=new TypeError(`Header name must be a valid HTTP token [${r}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},ne=typeof _.validateHeaderValue=="function"?_.validateHeaderValue:(r,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let t=new TypeError(`Invalid character in header content ["${r}"]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_CHAR"}),t}},w=class r extends URLSearchParams{static{i(this,"Headers")}constructor(e){let t=[];if(e instanceof r){let n=e.raw();for(let[o,s]of Object.entries(n))t.push(...s.map(a=>[o,a]))}else if(e!=null)if(typeof e=="object"&&!be.isBoxedPrimitive(e)){let n=e[Symbol.iterator];if(n==null)t.push(...Object.entries(e));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");t=[...e].map(o=>{if(typeof o!="object"||be.isBoxedPrimitive(o))throw new TypeError("Each header pair must be an iterable object");return[...o]}).map(o=>{if(o.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...o]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return t=t.length>0?t.map(([n,o])=>(J(n),ne(n,String(o)),[String(n).toLowerCase(),String(o)])):void 0,super(t),new Proxy(this,{get(n,o,s){switch(o){case"append":case"set":return(a,l)=>(J(a),ne(a,String(l)),URLSearchParams.prototype[o].call(n,String(a).toLowerCase(),String(l)));case"delete":case"has":case"getAll":return a=>(J(a),URLSearchParams.prototype[o].call(n,String(a).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,o,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let t=this.getAll(e);if(t.length===0)return null;let n=t.join(", ");return/^content-encoding$/i.test(e)&&(n=n.toLowerCase()),n}forEach(e,t=void 0){for(let n of this.keys())Reflect.apply(e,t,[this.get(n),n,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,t)=>(e[t]=this.getAll(t),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,t)=>{let n=this.getAll(t);return t==="host"?e[t]=n[0]:e[t]=n.length>1?n:n[0],e},{})}};Object.defineProperties(w.prototype,["get","entries","forEach","values"].reduce((r,e)=>(r[e]={enumerable:!0},r),{}));i(Se,"fromRawHeaders")});var Ze,Q,se=g(()=>{Ze=new Set([301,302,303,307,308]),Q=i(r=>Ze.has(r),"isRedirect")});var R,T,Te=g(()=>{Z();Y();se();R=Symbol("Response internals"),T=class r extends P{static{i(this,"Response")}constructor(e=null,t={}){super(e,t);let n=t.status!=null?t.status:200,o=new w(t.headers);if(e!==null&&!o.has("Content-Type")){let s=K(e,this);s&&o.append("Content-Type",s)}this[R]={type:"default",url:t.url,status:n,statusText:t.statusText||"",headers:o,counter:t.counter,highWaterMark:t.highWaterMark}}get type(){return this[R].type}get url(){return this[R].url||""}get status(){return this[R].status}get ok(){return this[R].status>=200&&this[R].status<300}get redirected(){return this[R].counter>0}get statusText(){return this[R].statusText}get headers(){return this[R].headers}get highWaterMark(){return this[R].highWaterMark}clone(){return new r(k(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,t=302){if(!Q(t))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new r(null,{headers:{location:new URL(e).toString()},status:t})}static error(){let e=new r(null,{status:0,statusText:""});return e[R].type="error",e}static json(e=void 0,t={}){let n=JSON.stringify(e);if(n===void 0)throw new TypeError("data is not JSON serializable");let o=new w(t&&t.headers);return o.has("content-type")||o.set("content-type","application/json"),new r(n,{...t,headers:o})}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(T.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})});var Re,xe=g(()=>{Re=i(r=>{if(r.search)return r.search;let e=r.href.length-1,t=r.hash||(r.href[e]==="#"?"#":"");return r.href[e-t.length]==="?"?"?":""},"getSearch")});import{isIP as Qe}from"node:net";function Ee(r,e=!1){return r==null||(r=new URL(r),/^(about|blob|data):$/.test(r.protocol))?"no-referrer":(r.username="",r.password="",r.hash="",e&&(r.pathname="",r.search=""),r)}function Ue(r){if(!Pe.has(r))throw new TypeError(`Invalid referrerPolicy: ${r}`);return r}function Xe(r){if(/^(http|ws)s:$/.test(r.protocol))return!0;let e=r.host.replace(/(^\[)|(]$)/g,""),t=Qe(e);return t===4&&/^127\./.test(e)||t===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:r.host==="localhost"||r.host.endsWith(".localhost")?!1:r.protocol==="file:"}function O(r){return/^about:(blank|srcdoc)$/.test(r)||r.protocol==="data:"||/^(blob|filesystem):$/.test(r.protocol)?!0:Xe(r)}function ve(r,{referrerURLCallback:e,referrerOriginCallback:t}={}){if(r.referrer==="no-referrer"||r.referrerPolicy==="")return null;let n=r.referrerPolicy;if(r.referrer==="about:client")return"no-referrer";let o=r.referrer,s=Ee(o),a=Ee(o,!0);s.toString().length>4096&&(s=a),e&&(s=e(s)),t&&(a=t(a));let l=new URL(r.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return a;case"unsafe-url":return s;case"strict-origin":return O(s)&&!O(l)?"no-referrer":a.toString();case"strict-origin-when-cross-origin":return s.origin===l.origin?s:O(s)&&!O(l)?"no-referrer":a;case"same-origin":return s.origin===l.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===l.origin?s:a;case"no-referrer-when-downgrade":return O(s)&&!O(l)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function Be(r){let e=(r.get("referrer-policy")||"").split(/[,\s]+/),t="";for(let n of e)n&&Pe.has(n)&&(t=n);return t}var Pe,Le,ie=g(()=>{i(Ee,"stripURLForUseAsAReferrer");Pe=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),Le="strict-origin-when-cross-origin";i(Ue,"validateReferrerPolicy");i(Xe,"isOriginPotentiallyTrustworthy");i(O,"isUrlPotentiallyTrustworthy");i(ve,"determineRequestsReferrer");i(Be,"parseReferrerPolicyFromHeader")});import{format as je}from"node:url";import{deprecate as qe}from"node:util";var h,D,er,$,Ae,Ce=g(()=>{Z();Y();G();xe();ie();h=Symbol("Request internals"),D=i(r=>typeof r=="object"&&typeof r[h]=="object","isRequest"),er=qe(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),$=class r extends P{static{i(this,"Request")}constructor(e,t={}){let n;if(D(e)?n=new URL(e.url):(n=new URL(e),e={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let o=t.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(o)&&(o=o.toUpperCase()),!D(t)&&"data"in t&&er(),(t.body!=null||D(e)&&e.body!==null)&&(o==="GET"||o==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=t.body?t.body:D(e)&&e.body!==null?k(e):null;super(s,{size:t.size||e.size||0});let a=new w(t.headers||e.headers||{});if(s!==null&&!a.has("Content-Type")){let f=K(s,this);f&&a.set("Content-Type",f)}let l=D(e)?e.signal:null;if("signal"in t&&(l=t.signal),l!=null&&!he(l))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let u=t.referrer==null?e.referrer:t.referrer;if(u==="")u="no-referrer";else if(u){let f=new URL(u);u=/^about:(\/\/)?client$/.test(f)?"client":f}else u=void 0;this[h]={method:o,redirect:t.redirect||e.redirect||"follow",headers:a,parsedURL:n,signal:l,referrer:u},this.follow=t.follow===void 0?e.follow===void 0?20:e.follow:t.follow,this.compress=t.compress===void 0?e.compress===void 0?!0:e.compress:t.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent,this.highWaterMark=t.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=t.referrerPolicy||e.referrerPolicy||""}get method(){return this[h].method}get url(){return je(this[h].parsedURL)}get headers(){return this[h].headers}get redirect(){return this[h].redirect}get signal(){return this[h].signal}get referrer(){if(this[h].referrer==="no-referrer")return"";if(this[h].referrer==="client")return"about:client";if(this[h].referrer)return this[h].referrer.toString()}get referrerPolicy(){return this[h].referrerPolicy}set referrerPolicy(e){this[h].referrerPolicy=Ue(e)}clone(){return new r(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties($.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});Ae=i(r=>{let{parsedURL:e}=r[h],t=new w(r[h].headers);t.has("Accept")||t.set("Accept","*/*");let n=null;if(r.body===null&&/^(post|put)$/i.test(r.method)&&(n="0"),r.body!==null){let l=ge(r);typeof l=="number"&&!Number.isNaN(l)&&(n=String(l))}n&&t.set("Content-Length",n),r.referrerPolicy===""&&(r.referrerPolicy=Le),r.referrer&&r.referrer!=="no-referrer"?r[h].referrer=ve(r):r[h].referrer="no-referrer",r[h].referrer instanceof URL&&t.set("Referer",r.referrer),t.has("User-Agent")||t.set("User-Agent","node-fetch"),r.compress&&!t.has("Accept-Encoding")&&t.set("Accept-Encoding","gzip, deflate, br");let{agent:o}=r;typeof o=="function"&&(o=o(e));let s=Re(e),a={path:e.pathname+s,method:r.method,headers:t[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:r.insecureHTTPParser,agent:o};return{parsedURL:e,options:a}},"getNodeRequestOptions")});var X,$e=g(()=>{W();X=class extends v{static{i(this,"AbortError")}constructor(e,t="aborted"){super(e,t)}}});import rr from"node:http";import tr from"node:https";import H from"node:zlib";import Fe,{PassThrough as ke,pipeline as I}from"node:stream";import{Buffer as j}from"node:buffer";async function Oe(r,e){return new Promise((t,n)=>{let o=new $(r,e),{parsedURL:s,options:a}=Ae(o);if(!or.has(s.protocol))throw new TypeError(`node-fetch cannot load ${r}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let c=le(o.url),L=new T(c,{headers:{"Content-Type":c.typeFull}});t(L);return}let l=(s.protocol==="https:"?tr:rr).request,{signal:u}=o,f=null,x=i(()=>{let c=new X("The operation was aborted.");n(c),o.body&&o.body instanceof Fe.Readable&&o.body.destroy(c),!(!f||!f.body)&&f.body.emit("error",c)},"abort");if(u&&u.aborted){x();return}let M=i(()=>{x(),C()},"abortAndFinalize"),A=l(s.toString(),a);u&&u.addEventListener("abort",M);let C=i(()=>{A.abort(),u&&u.removeEventListener("abort",M)},"finalize");A.on("error",c=>{n(new m(`request to ${o.url} failed, reason: ${c.message}`,"system",c)),C()}),nr(A,c=>{f&&f.body&&f.body.destroy(c)}),process.version<"v14"&&A.on("socket",c=>{let L;c.prependListener("end",()=>{L=c._eventsCount}),c.prependListener("close",d=>{if(f&&L<c._eventsCount&&!d){let U=new Error("Premature close");U.code="ERR_STREAM_PREMATURE_CLOSE",f.body.emit("error",U)}})}),A.on("response",c=>{A.setTimeout(0);let L=Se(c.rawHeaders);if(Q(c.statusCode)){let p=L.get("Location"),E=null;try{E=p===null?null:new URL(p,o.url)}catch{if(o.redirect!=="manual"){n(new m(`uri requested responds with an invalid redirect URL: ${p}`,"invalid-redirect")),C();return}}switch(o.redirect){case"error":n(new m(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),C();return;case"manual":break;case"follow":{if(E===null)break;if(o.counter>=o.follow){n(new m(`maximum redirect reached at: ${o.url}`,"max-redirect")),C();return}let b={headers:new w(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:k(o),signal:o.signal,size:o.size,referrer:o.referrer,referrerPolicy:o.referrerPolicy};if(!de(o.url,E)||!pe(o.url,E))for(let Ie of["authorization","www-authenticate","cookie","cookie2"])b.headers.delete(Ie);if(c.statusCode!==303&&o.body&&e.body instanceof Fe.Readable){n(new m("Cannot follow redirect with body being a readable stream","unsupported-redirect")),C();return}(c.statusCode===303||(c.statusCode===301||c.statusCode===302)&&o.method==="POST")&&(b.method="GET",b.body=void 0,b.headers.delete("content-length"));let ae=Be(L);ae&&(b.referrerPolicy=ae),t(Oe(new $(E,b))),C();return}default:return n(new TypeError(`Redirect option '${o.redirect}' is not a valid value of RequestRedirect`))}}u&&c.once("end",()=>{u.removeEventListener("abort",M)});let d=I(c,new ke,p=>{p&&n(p)});process.version<"v12.10"&&c.on("aborted",M);let U={url:o.url,status:c.statusCode,statusText:c.statusMessage,headers:L,size:o.size,counter:o.counter,highWaterMark:o.highWaterMark},F=L.get("Content-Encoding");if(!o.compress||o.method==="HEAD"||F===null||c.statusCode===204||c.statusCode===304){f=new T(d,U),t(f);return}let He={flush:H.Z_SYNC_FLUSH,finishFlush:H.Z_SYNC_FLUSH};if(F==="gzip"||F==="x-gzip"){d=I(d,H.createGunzip(He),p=>{p&&n(p)}),f=new T(d,U),t(f);return}if(F==="deflate"||F==="x-deflate"){let p=I(c,new ke,E=>{E&&n(E)});p.once("data",E=>{(E[0]&15)===8?d=I(d,H.createInflate(),b=>{b&&n(b)}):d=I(d,H.createInflateRaw(),b=>{b&&n(b)}),f=new T(d,U),t(f)}),p.once("end",()=>{f||(f=new T(d,U),t(f))});return}if(F==="br"){d=I(d,H.createBrotliDecompress(),p=>{p&&n(p)}),f=new T(d,U),t(f);return}f=new T(d,U),t(f)}),we(A,o).catch(n)})}function nr(r,e){let t=j.from(`0\r
|
|
19
|
+
\r
|
|
20
|
+
`),n=!1,o=!1,s;r.on("response",a=>{let{headers:l}=a;n=l["transfer-encoding"]==="chunked"&&!l["content-length"]}),r.on("socket",a=>{let l=i(()=>{if(n&&!o){let f=new Error("Premature close");f.code="ERR_STREAM_PREMATURE_CLOSE",e(f)}},"onSocketClose"),u=i(f=>{o=j.compare(f.slice(-5),t)===0,!o&&s&&(o=j.compare(s.slice(-3),t.slice(0,3))===0&&j.compare(f.slice(-2),t.slice(3))===0),s=f},"onData");a.prependListener("close",l),a.on("data",u),r.on("close",()=>{a.removeListener("close",l),a.removeListener("data",u)})})}var or,sr=g(()=>{ue();Y();Te();Z();Ce();ee();$e();se();ce();G();ie();Ge();or=new Set(["data:","http:","https:"]);i(Oe,"fetch");i(nr,"fixResponseChunkedTransferBadEnding")});sr();export{X as AbortError,q as Blob,m as FetchError,Ne as File,z as FormData,w as Headers,$ as Request,T as Response,Me as blobFrom,De as blobFromSync,Oe as default,We as fileFrom,Ve as fileFromSync,Q as isRedirect};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as t}from"./chunk-AZUMH3TO.js";import{g as a}from"./chunk-2MRHL4B2.js";var e=a(t()),r=e.default,{baggageEntryMetadataFromString:o,createContextKey:i,ROOT_CONTEXT:n,DiagConsoleLogger:d,DiagLogLevel:p,createNoopMeter:T,ValueType:c,defaultTextMapGetter:g,defaultTextMapSetter:l,ProxyTracer:S,ProxyTracerProvider:s,SamplingDecision:I,SpanKind:x,SpanStatusCode:D,TraceFlags:N,createTraceState:m,isSpanContextValid:C,isValidTraceId:V,isValidSpanId:u,INVALID_SPANID:A,INVALID_TRACEID:L,INVALID_SPAN_CONTEXT:f,context:y,diag:P,metrics:_,propagation:E,trace:M}=e;export{d as DiagConsoleLogger,p as DiagLogLevel,A as INVALID_SPANID,f as INVALID_SPAN_CONTEXT,L as INVALID_TRACEID,S as ProxyTracer,s as ProxyTracerProvider,n as ROOT_CONTEXT,I as SamplingDecision,x as SpanKind,D as SpanStatusCode,N as TraceFlags,c as ValueType,o as baggageEntryMetadataFromString,y as context,i as createContextKey,T as createNoopMeter,m as createTraceState,r as default,g as defaultTextMapGetter,l as defaultTextMapSetter,P as diag,C as isSpanContextValid,u as isValidSpanId,V as isValidTraceId,_ as metrics,E as propagation,M as trace};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{d as Ue,e as ze}from"./chunk-IYUSBBGY.js";import{b as Ne,c as be}from"./chunk-EK6FQQHY.js";import{a as $e,b as we,c as ke}from"./chunk-OCWGUTZJ.js";import{d as Oe,e as G,f as Ae,g as De,h as Te,i as ye,j as Re}from"./chunk-CYRZU5QM.js";import{a as n,d as fe,g as Ce,h as Pe}from"./chunk-2MRHL4B2.js";var ge=fe(r=>{var{awsEndpointFunctions:qe,emitWarningIfUnsupportedVersion:Fe,createDefaultUserAgentProvider:Ge,NODE_APP_ID_CONFIG_OPTIONS:He,getAwsRegionExtensionConfiguration:Me,resolveAwsRegionExtensionConfiguration:je,resolveUserAgentConfig:Ke,resolveHostHeaderConfig:Ve,getUserAgentPlugin:Le,getHostHeaderPlugin:Be,getLoggerPlugin:We,getRecursionDetectionPlugin:Ye}=ke(),{NoAuthSigner:Je,getHttpAuthSchemeEndpointRuleSetPlugin:Xe,DefaultIdentityProviderConfig:Qe,getHttpSigningPlugin:Ze}=we(),{normalizeProvider:V,getSmithyContext:et,ServiceException:tt,NoOpLogger:rt,emitWarningIfUnsupportedVersion:nt,loadConfigsForDefaultMode:ot,getDefaultExtensionConfiguration:it,resolveDefaultRuntimeConfig:st,Client:L,makeBuilder:ct,createAggregatedClient:at}=G(),{Command:dt}=G();r.$Command=dt;r.__Client=L;var{resolveDefaultsModeConfig:pt,loadConfig:S,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:ut,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:lt,NODE_REGION_CONFIG_OPTIONS:Et,NODE_REGION_CONFIG_FILE_OPTIONS:ht,resolveRegionConfig:St}=Ae(),{BinaryDecisionDiagram:gt,EndpointCache:mt,decideEndpoint:xt,customEndpointFunctions:_t,resolveEndpointConfig:It,getEndpointPlugin:vt}=De(),{parseUrl:ft,getHttpHandlerExtensionConfiguration:Ct,resolveHttpHandlerRuntimeConfig:Pt,getContentLengthPlugin:Ot}=Re(),{DEFAULT_RETRY_MODE:At,NODE_RETRY_MODE_CONFIG_OPTIONS:Dt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Tt,resolveRetryConfig:yt,getRetryPlugin:Rt}=$e(),{TypeRegistry:B,getSchemaSerdePlugin:$t}=Oe(),{resolveAwsSdkSigV4Config:wt,AwsSdkSigV4Signer:kt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Ut}=Ue(),{toUtf8:Nt,fromUtf8:bt,toBase64:zt,fromBase64:qt,calculateBodyLength:Ft}=Te(),{streamCollector:Gt,NodeHttpHandler:Ht}=(be(),Pe(Ne)),{AwsRestJsonProtocol:Mt}=ze(),{Sha256:jt}=ye(),Kt=n(async(e,t,s)=>({operation:et(t).operation,region:await V(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");function Vt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:n((t,s)=>({signingProperties:{config:t,context:s}}),"propertiesExtractor")}}n(Vt,"createAwsAuthSigv4HttpAuthOption");function Lt(e){return{schemeId:"smithy.api#noAuth"}}n(Lt,"createSmithyApiNoAuthHttpAuthOption");var Bt=n(e=>{let t=[];return e.operation==="CreateToken"?t.push(Lt()):t.push(Vt(e)),t},"defaultSSOOIDCHttpAuthSchemeProvider"),Wt=n(e=>{let t=wt(e);return Object.assign(t,{authSchemePreference:V(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),Yt=n(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),Jt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Xt="3.997.47",Qt={version:Xt},x="ref",g=-1,I=!0,H="isSet",W="PartitionResult",v="booleanEquals",z="getAttr",M={[x]:"Endpoint"},q={[x]:W},m={},j=[{[x]:"Region"}],K={conditions:[[H,[M]],[H,j],["aws.partition",j,W],[v,[{[x]:"UseFIPS"},I]],[v,[{[x]:"UseDualStack"},I]],[v,[{fn:z,argv:[q,"supportsDualStack"]},I]],[v,[{fn:z,argv:[q,"supportsFIPS"]},I]],["stringEquals",[{fn:z,argv:[q,"name"]},"aws-us-gov"]]],results:[[g],[g,"Invalid Configuration: FIPS and custom endpoint are not supported"],[g,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[M,m],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",m],[g,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",m],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",m],[g,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",m],[g,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",m],[g,"Invalid Configuration: Missing Region"]]},Zt=2,d=1e8,er=new Int32Array([-1,1,-1,0,13,3,1,4,d+12,2,5,d+12,3,8,6,4,7,d+11,5,d+9,d+10,4,11,9,6,10,d+8,7,d+6,d+7,5,12,d+5,6,d+4,d+5,3,d+1,14,4,d+2,d+3]),tr=gt.from(er,Zt,K.conditions,K.results),rr=new mt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),nr=n((e,t={})=>rr.get(e,()=>xt(tr,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");_t.aws=qe;var a=class e extends tt{static{n(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},f=class e extends a{static{n(this,"AccessDeniedException")}static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},C=class e extends a{static{n(this,"AuthorizationPendingException")}static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},P=class e extends a{static{n(this,"ExpiredTokenException")}static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},O=class e extends a{static{n(this,"InternalServerException")}static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},A=class e extends a{static{n(this,"InvalidClientException")}static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},D=class e extends a{static{n(this,"InvalidGrantException")}static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},T=class e extends a{static{n(this,"InvalidRequestException")}static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},y=class e extends a{static{n(this,"InvalidScopeException")}static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},R=class e extends a{static{n(this,"SlowDownException")}static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(t){super({name:"SlowDownException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},$=class e extends a{static{n(this,"UnauthorizedClientException")}static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},w=class e extends a{static{n(this,"UnsupportedGrantTypeException")}static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},or="AccessDeniedException",ir="AuthorizationPendingException",sr="AccessToken",cr="ClientSecret",ar="CreateToken",dr="CreateTokenRequest",pr="CreateTokenResponse",ur="CodeVerifier",lr="ExpiredTokenException",Er="InvalidClientException",hr="InvalidGrantException",Sr="InvalidRequestException",gr="InternalServerException",mr="InvalidScopeException",xr="IdToken",_r="RefreshToken",Ir="SlowDownException",vr="UnauthorizedClientException",fr="UnsupportedGrantTypeException",Cr="accessToken",h="client",Pr="clientId",Or="clientSecret",Ar="codeVerifier",Dr="code",Tr="deviceCode",o="error",yr="expiresIn",l="error_description",Rr="grantType",$r="http",E="httpError",wr="idToken",Y="reason",J="refreshToken",kr="redirectUri",X="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",Ur="scope",Nr="server",br="tokenType",i="com.amazonaws.ssooidc",Q=new B(X),Z=[-3,X,"SSOOIDCServiceException",0,[],[]];Q.registerError(Z,a);var p=new B(i),ee=[-3,i,or,{[o]:h,[E]:400},[o,Y,l],[0,0,0]];p.registerError(ee,f);var te=[-3,i,ir,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(te,C);var re=[-3,i,lr,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(re,P);var ne=[-3,i,gr,{[o]:Nr,[E]:500},[o,l],[0,0]];p.registerError(ne,O);var oe=[-3,i,Er,{[o]:h,[E]:401},[o,l],[0,0]];p.registerError(oe,A);var ie=[-3,i,hr,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(ie,D);var se=[-3,i,Sr,{[o]:h,[E]:400},[o,Y,l],[0,0,0]];p.registerError(se,T);var ce=[-3,i,mr,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(ce,y);var ae=[-3,i,Ir,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(ae,R);var de=[-3,i,vr,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(de,$);var pe=[-3,i,fr,{[o]:h,[E]:400},[o,l],[0,0]];p.registerError(pe,w);var ue=[Q,p],zr=[0,i,sr,8,0],qr=[0,i,cr,8,0],Fr=[0,i,ur,8,0],Gr=[0,i,xr,8,0],le=[0,i,_r,8,0],Ee=[3,i,dr,0,[Pr,Or,Rr,Tr,Dr,J,Ur,kr,Ar],[0,[()=>qr,0],0,0,0,[()=>le,0],64,0,[()=>Fr,0]],3],he=[3,i,pr,0,[Cr,br,yr,J,wr],[[()=>zr,0],0,1,[()=>le,0],[()=>Gr,0]]],Se=[9,i,ar,{[$r]:["POST","/token",200]},()=>Ee,()=>he],Hr=n(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??qt,base64Encoder:e?.base64Encoder??zt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??nr,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Bt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:n(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new kt},{schemeId:"smithy.api#noAuth",identityProvider:n(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Je}],logger:e?.logger??new rt,protocol:e?.protocol??Mt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:ue,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??jt,urlParser:e?.urlParser??ft,utf8Decoder:e?.utf8Decoder??bt,utf8Encoder:e?.utf8Encoder??Nt}),"getRuntimeConfig$1"),Mr=n(e=>{nt(process.version);let t=pt(e),s=n(()=>t().then(ot),"defaultConfigProvider"),u=Hr(e);Fe(process.version);let c={profile:e?.profile,logger:u.logger};return{...u,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??S(Ut,c),bodyLengthChecker:e?.bodyLengthChecker??Ft,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ge({serviceId:u.serviceId,clientVersion:Qt.version}),maxAttempts:e?.maxAttempts??S(Tt,e),region:e?.region??S(Et,{...ht,...c}),requestHandler:Ht.create(e?.requestHandler??s),retryMode:e?.retryMode??S({...Dt,default:n(async()=>(await s()).retryMode||At,"default")},e),streamCollector:e?.streamCollector??Gt,useDualstackEndpoint:e?.useDualstackEndpoint??S(lt,c),useFipsEndpoint:e?.useFipsEndpoint??S(ut,c),userAgentAppId:e?.userAgentAppId??S(He,c)}},"getRuntimeConfig"),jr=n(e=>{let t=e.httpAuthSchemes,s=e.httpAuthSchemeProvider,u=e.credentials;return{setHttpAuthScheme(c){let _=t.findIndex(b=>b.schemeId===c.schemeId);_===-1?t.push(c):t.splice(_,1,c)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(c){s=c},httpAuthSchemeProvider(){return s},setCredentials(c){u=c},credentials(){return u}}},"getHttpAuthExtensionConfiguration"),Kr=n(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig"),Vr=n((e,t)=>{let s=Object.assign(Me(e),it(e),Ct(e),jr(e));return t.forEach(u=>u.configure(s)),Object.assign(e,je(s),st(s),Pt(s),Kr(s))},"resolveRuntimeExtensions"),k=class extends L{static{n(this,"SSOOIDCClient")}config;constructor(...[t]){let s=Mr(t||{});super(s),this.initConfig=s;let u=Yt(s),c=Ke(u),_=yt(c),b=St(_),me=Ve(b),xe=It(me),_e=Wt(xe),Ie=Vr(_e,t?.extensions||[]);this.config=Ie,this.middlewareStack.use($t(this.config)),this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(Rt(this.config)),this.middlewareStack.use(Ot(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Xe(this.config,{httpAuthSchemeParametersProvider:Kt,identityProviderConfigProvider:n(async ve=>new Qe({"aws.auth#sigv4":ve.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Ze(this.config))}destroy(){super.destroy()}},Lr=ct(Jt,"AWSSSOOIDCService","SSOOIDCClient",vt),Br={},Wr=n((e,t,s,u)=>[],"_mw0"),U=class extends Lr(Br,Wr,"CreateToken",Se){static{n(this,"CreateTokenCommand")}},Yr={CreateTokenCommand:U},N=class extends k{static{n(this,"SSOOIDC")}};at(Yr,N);var Jr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Xr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};r.AccessDeniedException=f;r.AccessDeniedException$=ee;r.AccessDeniedExceptionReason=Jr;r.AuthorizationPendingException=C;r.AuthorizationPendingException$=te;r.CreateToken$=Se;r.CreateTokenCommand=U;r.CreateTokenRequest$=Ee;r.CreateTokenResponse$=he;r.ExpiredTokenException=P;r.ExpiredTokenException$=re;r.InternalServerException=O;r.InternalServerException$=ne;r.InvalidClientException=A;r.InvalidClientException$=oe;r.InvalidGrantException=D;r.InvalidGrantException$=ie;r.InvalidRequestException=T;r.InvalidRequestException$=se;r.InvalidRequestExceptionReason=Xr;r.InvalidScopeException=y;r.InvalidScopeException$=ce;r.SSOOIDC=N;r.SSOOIDCClient=k;r.SSOOIDCServiceException=a;r.SSOOIDCServiceException$=Z;r.SlowDownException=R;r.SlowDownException$=ae;r.UnauthorizedClientException=$;r.UnauthorizedClientException$=de;r.UnsupportedGrantTypeException=w;r.UnsupportedGrantTypeException$=pe;r.errorTypeRegistries=ue});var F=Ce(ge()),en=F.default,{$Command:tn,__Client:rn,AccessDeniedException:nn,AccessDeniedException$:on,AccessDeniedExceptionReason:sn,AuthorizationPendingException:cn,AuthorizationPendingException$:an,CreateToken$:dn,CreateTokenCommand:pn,CreateTokenRequest$:un,CreateTokenResponse$:ln,ExpiredTokenException:En,ExpiredTokenException$:hn,InternalServerException:Sn,InternalServerException$:gn,InvalidClientException:mn,InvalidClientException$:xn,InvalidGrantException:_n,InvalidGrantException$:In,InvalidRequestException:vn,InvalidRequestException$:fn,InvalidRequestExceptionReason:Cn,InvalidScopeException:Pn,InvalidScopeException$:On,SSOOIDC:An,SSOOIDCClient:Dn,SSOOIDCServiceException:Tn,SSOOIDCServiceException$:yn,SlowDownException:Rn,SlowDownException$:$n,UnauthorizedClientException:wn,UnauthorizedClientException$:kn,UnsupportedGrantTypeException:Un,UnsupportedGrantTypeException$:Nn,errorTypeRegistries:bn}=F;export{tn as $Command,nn as AccessDeniedException,on as AccessDeniedException$,sn as AccessDeniedExceptionReason,cn as AuthorizationPendingException,an as AuthorizationPendingException$,dn as CreateToken$,pn as CreateTokenCommand,un as CreateTokenRequest$,ln as CreateTokenResponse$,En as ExpiredTokenException,hn as ExpiredTokenException$,Sn as InternalServerException,gn as InternalServerException$,mn as InvalidClientException,xn as InvalidClientException$,_n as InvalidGrantException,In as InvalidGrantException$,vn as InvalidRequestException,fn as InvalidRequestException$,Cn as InvalidRequestExceptionReason,Pn as InvalidScopeException,On as InvalidScopeException$,An as SSOOIDC,Dn as SSOOIDCClient,Tn as SSOOIDCServiceException,yn as SSOOIDCServiceException$,Rn as SlowDownException,$n as SlowDownException$,wn as UnauthorizedClientException,kn as UnauthorizedClientException$,Un as UnsupportedGrantTypeException,Nn as UnsupportedGrantTypeException$,rn as __Client,en as default,bn as errorTypeRegistries};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as t}from"./chunk-X5F46HR5.js";import"./chunk-IYUSBBGY.js";import"./chunk-EK6FQQHY.js";import"./chunk-OCWGUTZJ.js";import"./chunk-CYRZU5QM.js";import{g as o}from"./chunk-2MRHL4B2.js";var e=o(t()),i=e.default,{$Command:n,__Client:s,AssumeRole$:c,AssumeRoleCommand:l,AssumeRoleRequest$:r,AssumeRoleResponse$:d,AssumeRoleWithWebIdentity$:m,AssumeRoleWithWebIdentityCommand:a,AssumeRoleWithWebIdentityRequest$:p,AssumeRoleWithWebIdentityResponse$:u,AssumedRoleUser$:x,Credentials$:E,ExpiredTokenException:R,ExpiredTokenException$:$,IDPCommunicationErrorException:y,IDPCommunicationErrorException$:I,IDPRejectedClaimException:P,IDPRejectedClaimException$:T,InvalidIdentityTokenException:C,InvalidIdentityTokenException$:D,MalformedPolicyDocumentException:A,MalformedPolicyDocumentException$:S,PackedPolicyTooLargeException:W,PackedPolicyTooLargeException$:f,PolicyDescriptorType$:g,ProvidedContext$:b,RegionDisabledException:k,RegionDisabledException$:v,STS:h,STSClient:j,STSServiceException:q,STSServiceException$:L,Tag$:M,decorateDefaultCredentialProvider:_,errorTypeRegistries:U,getDefaultRoleAssumer:w,getDefaultRoleAssumerWithWebIdentity:z}=e;export{n as $Command,c as AssumeRole$,l as AssumeRoleCommand,r as AssumeRoleRequest$,d as AssumeRoleResponse$,m as AssumeRoleWithWebIdentity$,a as AssumeRoleWithWebIdentityCommand,p as AssumeRoleWithWebIdentityRequest$,u as AssumeRoleWithWebIdentityResponse$,x as AssumedRoleUser$,E as Credentials$,R as ExpiredTokenException,$ as ExpiredTokenException$,y as IDPCommunicationErrorException,I as IDPCommunicationErrorException$,P as IDPRejectedClaimException,T as IDPRejectedClaimException$,C as InvalidIdentityTokenException,D as InvalidIdentityTokenException$,A as MalformedPolicyDocumentException,S as MalformedPolicyDocumentException$,W as PackedPolicyTooLargeException,f as PackedPolicyTooLargeException$,g as PolicyDescriptorType$,b as ProvidedContext$,k as RegionDisabledException,v as RegionDisabledException$,h as STS,j as STSClient,q as STSServiceException,L as STSServiceException$,M as Tag$,s as __Client,_ as decorateDefaultCredentialProvider,i as default,U as errorTypeRegistries,w as getDefaultRoleAssumer,z as getDefaultRoleAssumerWithWebIdentity};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{a as O,c as j}from"./chunk-P5RLCJUV.js";import{a as i,c as u,d as _,g as d}from"./chunk-2MRHL4B2.js";var k=_((g,l)=>{"use strict";var c=Object.defineProperty,v=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,m=i((t,e)=>{for(var o in e)c(t,o,{get:e[o],enumerable:!0})},"__export"),w=i((t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of T(e))!y.call(t,r)&&r!==o&&c(t,r,{get:i(()=>e[r],"get"),enumerable:!(n=v(e,r))||n.enumerable});return t},"__copyProps"),I=i(t=>w(c({},"__esModule",{value:!0}),t),"__toCommonJS"),s={};m(s,{refreshToken:i(()=>h,"refreshToken")});l.exports=I(s);var f=O(),a=j();async function h(t){let e=t?.project,o=t?.team;if(!e&&!o){let r=(0,a.findProjectInfo)();e=r.projectId,o=r.teamId}else if(!e||!o){let r=(0,a.findProjectInfo)();e=e??r.projectId,o=o??r.teamId}if(!e)throw new f.VercelOidcTokenError("Failed to refresh OIDC token: No project specified. Try re-linking your project with `vc link`");let n=(0,a.loadToken)(e);if(!n||(0,a.isExpired)((0,a.getTokenPayload)(n.token),t?.expirationBufferMs)){let r=await(0,a.getVercelToken)({expirationBufferMs:t?.expirationBufferMs});if(n=await(0,a.getVercelOidcToken)(r,e,o),!n)throw new f.VercelOidcTokenError("Failed to refresh OIDC token");(0,a.saveToken)(n,e)}process.env.VERCEL_OIDC_TOKEN=n.token}i(h,"refreshToken")});var p,b,E,P=u(()=>{p=d(k()),b=p.default,{refreshToken:E}=p});P();export{b as default,E as refreshToken};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{c as r}from"./chunk-P5RLCJUV.js";import{c as o,g as t}from"./chunk-2MRHL4B2.js";var e,n,c,d,l,s,i,k,T,f,p,a=o(()=>{e=t(r()),n=e.default,{assertVercelOidcTokenResponse:c,findProjectInfo:d,getTokenPayload:l,getVercelDataDir:s,getVercelOidcToken:i,getVercelToken:k,isExpired:T,loadToken:f,saveToken:p}=e});a();export{c as assertVercelOidcTokenResponse,n as default,d as findProjectInfo,l as getTokenPayload,s as getVercelDataDir,i as getVercelOidcToken,k as getVercelToken,T as isExpired,f as loadToken,p as saveToken};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
import{f as t}from"./chunk-TNQWZFIZ.js";import"./chunk-GDWO6EXN.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import{a as e}from"./chunk-2MRHL4B2.js";var i=e(a=>t({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...a||{}}),"createUnified"),n=i();export{i as createUnified,n as unified};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
import { fileURLToPath as __alchemyFileURLToPath } from 'node:url';
|
|
14
|
+
import { dirname as __alchemyDirname } from 'node:path';
|
|
15
|
+
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
|
+
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
|
+
|
|
18
|
+
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-4GJE6OMN.js";import"./chunk-B74WSFN4.js";import"./chunk-GW3ZRKAI.js";import"./chunk-DWEYXIQI.js";import"./chunk-OUVSKG2H.js";import"./chunk-QCRIXKIC.js";import"./chunk-P5RLCJUV.js";import"./chunk-NDI67DRG.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import"./chunk-R2GWBJEP.js";import"./chunk-7XX6TY62.js";import"./chunk-LSC4RT5V.js";import"./chunk-V7XKKJ7X.js";import"./chunk-FV7U6PVP.js";import"./chunk-AZUMH3TO.js";import"./chunk-VWLJXTZ5.js";import"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemylab-opencode",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "OpenCode server runtime for AlchemyLab",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,11 +13,31 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist/**/*.js",
|
|
15
15
|
"dist/**/*.wasm",
|
|
16
|
-
"patches
|
|
16
|
+
"patches/@silvia-odwyer%2Fphoton-node@*.patch",
|
|
17
17
|
"postinstall.cjs",
|
|
18
18
|
"NODE_COMPAT.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@lydell/node-pty": "1.2.0-beta.12",
|
|
22
|
+
"@parcel/watcher": "2.5.1",
|
|
23
|
+
"@silvia-odwyer/photon-node": "0.3.4"
|
|
24
|
+
},
|
|
25
|
+
"trustedDependencies": [
|
|
26
|
+
"esbuild",
|
|
27
|
+
"node-pty"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=22.16 <23 || >=24"
|
|
31
|
+
},
|
|
32
|
+
"overrides": {
|
|
33
|
+
"effect": "4.0.0-beta.83",
|
|
34
|
+
"zod": "4.1.8",
|
|
35
|
+
"@ai-sdk/anthropic": "3.0.111",
|
|
36
|
+
"@ai-sdk/provider": "3.0.16",
|
|
37
|
+
"open": "11.0.4",
|
|
38
|
+
"@npmcli/agent": "4.0.2"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
21
41
|
"@agentclientprotocol/sdk": "0.21.0",
|
|
22
42
|
"@ai-sdk/alibaba": "1.0.17",
|
|
23
43
|
"@ai-sdk/amazon-bedrock": "4.0.166",
|
|
@@ -43,8 +63,8 @@
|
|
|
43
63
|
"@effect/opentelemetry": "4.0.0-beta.83",
|
|
44
64
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
45
65
|
"@effect/platform-node-shared": "4.0.0-beta.83",
|
|
66
|
+
"@ff-labs/fff-bun": "0.9.4",
|
|
46
67
|
"@gitlab/opencode-gitlab-auth": "1.3.3",
|
|
47
|
-
"@lydell/node-pty": "1.2.0-beta.12",
|
|
48
68
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
49
69
|
"@npmcli/arborist": "9.4.0",
|
|
50
70
|
"@npmcli/config": "10.8.1",
|
|
@@ -55,24 +75,37 @@
|
|
|
55
75
|
"@opentelemetry/exporter-trace-otlp-http": "0.214.0",
|
|
56
76
|
"@opentelemetry/sdk-trace-base": "2.6.1",
|
|
57
77
|
"@opentelemetry/sdk-trace-node": "2.6.1",
|
|
58
|
-
"@parcel/watcher": "2.5.1",
|
|
59
|
-
"@silvia-odwyer/photon-node": "0.3.4",
|
|
60
78
|
"@smithy/eventstream-codec": "4.2.14",
|
|
61
79
|
"@smithy/util-utf8": "4.2.2",
|
|
62
80
|
"@standard-schema/spec": "1.0.0",
|
|
81
|
+
"@tsconfig/bun": "1.0.9",
|
|
82
|
+
"@tsconfig/node22": "22.0.2",
|
|
83
|
+
"@types/bun": "1.3.13",
|
|
84
|
+
"@types/cross-spawn": "6.0.6",
|
|
85
|
+
"@types/mime-types": "3.0.1",
|
|
86
|
+
"@types/node": "24.12.2",
|
|
87
|
+
"@types/npm-package-arg": "6.1.4",
|
|
88
|
+
"@types/npmcli__arborist": "6.3.3",
|
|
89
|
+
"@types/semver": "7.7.1",
|
|
90
|
+
"@types/turndown": "5.0.5",
|
|
91
|
+
"@types/which": "3.0.4",
|
|
63
92
|
"@types/ws": "8.18.1",
|
|
93
|
+
"@types/yargs": "17.0.33",
|
|
94
|
+
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
64
95
|
"@zip.js/zip.js": "2.7.62",
|
|
65
96
|
"acorn": "8.15.0",
|
|
66
97
|
"ai": "6.0.168",
|
|
67
98
|
"ai-gateway-provider": "3.2.0",
|
|
68
99
|
"aws4fetch": "1.0.20",
|
|
69
100
|
"bonjour-service": "1.3.0",
|
|
101
|
+
"bun-pty": "0.4.8",
|
|
70
102
|
"chokidar": "4.0.3",
|
|
71
103
|
"cross-spawn": "7.0.6",
|
|
72
104
|
"decimal.js": "10.5.0",
|
|
73
105
|
"diff": "8.0.2",
|
|
74
106
|
"drizzle-orm": "1.0.0-rc.2",
|
|
75
107
|
"effect": "4.0.0-beta.83",
|
|
108
|
+
"esbuild": "^0.28.0",
|
|
76
109
|
"fuzzysort": "3.1.0",
|
|
77
110
|
"gitlab-ai-provider": "6.19.0",
|
|
78
111
|
"glob": "13.0.5",
|
|
@@ -94,49 +127,16 @@
|
|
|
94
127
|
"semver": "7.7.4",
|
|
95
128
|
"strip-ansi": "7.1.2",
|
|
96
129
|
"turndown": "7.2.0",
|
|
130
|
+
"typescript": "5.8.2",
|
|
97
131
|
"ulid": "3.0.1",
|
|
98
132
|
"undici": "7.24.7",
|
|
99
133
|
"venice-ai-sdk-provider": "2.1.1",
|
|
100
134
|
"vscode-jsonrpc": "8.2.1",
|
|
135
|
+
"vscode-languageserver-types": "3.17.5",
|
|
101
136
|
"which": "6.0.1",
|
|
102
137
|
"ws": "8.21.0",
|
|
103
138
|
"xdg-basedir": "5.1.0",
|
|
104
139
|
"yargs": "18.0.0",
|
|
105
140
|
"zod": "4.1.8"
|
|
106
|
-
},
|
|
107
|
-
"trustedDependencies": [
|
|
108
|
-
"esbuild",
|
|
109
|
-
"node-pty"
|
|
110
|
-
],
|
|
111
|
-
"engines": {
|
|
112
|
-
"node": ">=22.16 <23 || >=24"
|
|
113
|
-
},
|
|
114
|
-
"overrides": {
|
|
115
|
-
"effect": "4.0.0-beta.83",
|
|
116
|
-
"zod": "4.1.8",
|
|
117
|
-
"@ai-sdk/anthropic": "3.0.111",
|
|
118
|
-
"@ai-sdk/provider": "3.0.16",
|
|
119
|
-
"open": "11.0.4",
|
|
120
|
-
"@npmcli/agent": "4.0.2"
|
|
121
|
-
},
|
|
122
|
-
"devDependencies": {
|
|
123
|
-
"@ff-labs/fff-bun": "0.9.4",
|
|
124
|
-
"@tsconfig/bun": "1.0.9",
|
|
125
|
-
"@tsconfig/node22": "22.0.2",
|
|
126
|
-
"@types/bun": "1.3.13",
|
|
127
|
-
"@types/cross-spawn": "6.0.6",
|
|
128
|
-
"@types/mime-types": "3.0.1",
|
|
129
|
-
"@types/node": "24.12.2",
|
|
130
|
-
"@types/npm-package-arg": "6.1.4",
|
|
131
|
-
"@types/npmcli__arborist": "6.3.3",
|
|
132
|
-
"@types/semver": "7.7.1",
|
|
133
|
-
"@types/turndown": "5.0.5",
|
|
134
|
-
"@types/which": "3.0.4",
|
|
135
|
-
"@types/yargs": "17.0.33",
|
|
136
|
-
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
137
|
-
"bun-pty": "0.4.8",
|
|
138
|
-
"esbuild": "^0.28.0",
|
|
139
|
-
"typescript": "5.8.2",
|
|
140
|
-
"vscode-languageserver-types": "3.17.5"
|
|
141
141
|
}
|
|
142
142
|
}
|
package/postinstall.cjs
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
// 1. Dependency patches (alchemy fork, since 1.18). Upstream OpenCode patches
|
|
5
5
|
// several dependencies through bun's patchedDependencies (patches/*.patch,
|
|
6
6
|
// git diffs relative to the package root: the AI SDK providers, the MCP SDK,
|
|
7
|
-
// effect, gcp-metadata, pacote, @npmcli/agent, photon-node).
|
|
8
|
-
//
|
|
7
|
+
// effect, gcp-metadata, pacote, @npmcli/agent, photon-node). Since 2.0.3 the
|
|
8
|
+
// build bundles every dependency but the native ones, so in this folder the
|
|
9
|
+
// patches are applied before the build and ship inside the bundle; a user's
|
|
10
|
+
// install has only photon-node's patch to apply. They are applied with the
|
|
9
11
|
// `diff` package's applyPatch, to every installed copy of the package under
|
|
10
12
|
// the install's node_modules (a user's install has no lock, so a provider
|
|
11
13
|
// can carry its own nested copy, at another version). A copy at another
|
|
@@ -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"./chunk-RHIWAYN5.js";import{Effect as i}from"effect";var s={id:"20260127222353_familiar_lady_ursula",up(e){return i.gen(function*(){yield*e.run("\n CREATE TABLE `project` (\n `id` text PRIMARY KEY,\n `worktree` text NOT NULL,\n `vcs` text,\n `name` text,\n `icon_url` text,\n `icon_color` text,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `time_initialized` integer,\n `sandboxes` text NOT NULL\n );\n "),yield*e.run("\n CREATE TABLE `message` (\n `id` text PRIMARY KEY,\n `session_id` text NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `data` text NOT NULL,\n CONSTRAINT `fk_message_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("\n CREATE TABLE `part` (\n `id` text PRIMARY KEY,\n `message_id` text NOT NULL,\n `session_id` text NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `data` text NOT NULL,\n CONSTRAINT `fk_part_message_id_message_id_fk` FOREIGN KEY (`message_id`) REFERENCES `message`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("\n CREATE TABLE `permission` (\n `project_id` text PRIMARY KEY,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `data` text NOT NULL,\n CONSTRAINT `fk_permission_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("\n CREATE TABLE `session` (\n `id` text PRIMARY KEY,\n `project_id` text NOT NULL,\n `parent_id` text,\n `slug` text NOT NULL,\n `directory` text NOT NULL,\n `title` text NOT NULL,\n `version` text NOT NULL,\n `share_url` text,\n `summary_additions` integer,\n `summary_deletions` integer,\n `summary_files` integer,\n `summary_diffs` text,\n `revert` text,\n `permission` text,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `time_compacting` integer,\n `time_archived` integer,\n CONSTRAINT `fk_session_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("\n CREATE TABLE `todo` (\n `session_id` text NOT NULL,\n `content` text NOT NULL,\n `status` text NOT NULL,\n `priority` text NOT NULL,\n `position` integer NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n CONSTRAINT `todo_pk` PRIMARY KEY(`session_id`, `position`),\n CONSTRAINT `fk_todo_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("\n CREATE TABLE `session_share` (\n `session_id` text PRIMARY KEY,\n `id` text NOT NULL,\n `secret` text NOT NULL,\n `url` text NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n CONSTRAINT `fk_session_share_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("CREATE INDEX `message_session_idx` ON `message` (`session_id`);"),yield*e.run("CREATE INDEX `part_message_idx` ON `part` (`message_id`);"),yield*e.run("CREATE INDEX `part_session_idx` ON `part` (`session_id`);"),yield*e.run("CREATE INDEX `session_project_idx` ON `session` (`project_id`);"),yield*e.run("CREATE INDEX `session_parent_idx` ON `session` (`parent_id`);"),yield*e.run("CREATE INDEX `todo_session_idx` ON `todo` (`session_id`);")})}};export{s as default};
|
|
@@ -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"./chunk-RHIWAYN5.js";import{Effect as e}from"effect";var i={id:"20260309230000_move_org_to_state",up(t){return e.gen(function*(){yield*t.run("ALTER TABLE `account_state` ADD `active_org_id` text;"),yield*t.run("UPDATE `account_state` SET `active_org_id` = (SELECT `selected_org_id` FROM `account` WHERE `account`.`id` = `account_state`.`active_account_id`);"),yield*t.run("ALTER TABLE `account` DROP COLUMN `selected_org_id`;")})}};export{i as default};
|
|
@@ -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"./chunk-RHIWAYN5.js";import{Effect as i}from"effect";var a={id:"20260312043431_session_message_cursor",up(e){return i.gen(function*(){yield*e.run("DROP INDEX IF EXISTS `message_session_idx`;"),yield*e.run("DROP INDEX IF EXISTS `part_message_idx`;"),yield*e.run("CREATE INDEX `message_session_time_created_id_idx` ON `message` (`session_id`,`time_created`,`id`);"),yield*e.run("CREATE INDEX `part_message_id_id_idx` ON `part` (`message_id`,`id`);")})}};export{a as default};
|