alchemylab-opencode 2.0.0 → 2.0.3
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-ND6UHXWL.js +18 -0
- package/dist/app-runtime-ZWWQ4JTM.js +18 -0
- package/dist/chunk-2MRHL4B2.js +18 -0
- package/dist/chunk-2XWBNI3L.js +1490 -0
- package/dist/chunk-4MBUHJHY.js +22 -0
- package/dist/chunk-6MAPFAXY.js +190 -0
- package/dist/chunk-7XX6TY62.js +259 -0
- package/dist/chunk-ANF3QA3Z.js +48 -0
- package/dist/chunk-AUB2TEYJ.js +55 -0
- package/dist/chunk-AZUMH3TO.js +18 -0
- package/dist/chunk-BQ4IEPN3.js +19 -0
- package/dist/chunk-CYRZU5QM.js +33 -0
- package/dist/chunk-DGJQZN2Q.js +18 -0
- package/dist/chunk-DO2UZ6NY.js +18 -0
- package/dist/chunk-DZ6G4VSD.js +19 -0
- package/dist/chunk-EK6FQQHY.js +20 -0
- package/dist/chunk-ELPXQ32J.js +90 -0
- package/dist/chunk-F5PY52BY.js +18 -0
- package/dist/chunk-FGLPSSRK.js +19 -0
- package/dist/chunk-FV7U6PVP.js +18 -0
- package/dist/chunk-FYYAOZPU.js +18 -0
- package/dist/chunk-GDWO6EXN.js +22 -0
- package/dist/chunk-GW3ZRKAI.js +20 -0
- package/dist/chunk-IQSFXWDQ.js +18 -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-L3CE2Y3L.js +55 -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-OCWGUTZJ.js +36 -0
- package/dist/chunk-OGDRUXMJ.js +18 -0
- package/dist/chunk-OGJKLJC7.js +29 -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-RIA6SDOY.js +780 -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-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-WL33KE3H.js +920 -0
- package/dist/chunk-WPMP2ZFE.js +40 -0
- package/dist/chunk-WRTNIOI3.js +18 -0
- package/dist/chunk-WZ4237YY.js +19 -0
- package/dist/chunk-X5F46HR5.js +18 -0
- package/dist/chunk-XPS7TQZG.js +22 -0
- package/dist/chunk-XSKT4AXR.js +878 -0
- package/dist/chunk-YJPP6IQ3.js +23 -0
- package/dist/chunk-ZYQWFC55.js +22 -0
- package/dist/code-mode-H3HRSD24.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/dist-HXJTF22W.js +32 -0
- package/dist/dist-JFXI53ZF.js +22 -0
- package/dist/dist-KBYKWVT5.js +22 -0
- package/dist/dist-KGNO5AP7.js +35 -0
- package/dist/dist-KTNLTEHB.js +18 -0
- package/dist/dist-KZ5R5QM5.js +24 -0
- package/dist/{20260605042240_add_context_epoch_agent-W6IQYZXE.js → dist-LOXU6IEM.js} +5 -1
- 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-WZJ3LNRG.js +28 -0
- package/dist/dist-XAFENVUS.js +22 -0
- package/dist/dist-XPFB35TX.js +32 -0
- package/dist/dist-es-43ZM44MP.js +18 -0
- package/dist/dist-es-CH2YKBKX.js +18 -0
- package/dist/{20260428004200_add_session_path-LGW75WYA.js → dist-es-DHCTZZ2E.js} +5 -1
- package/dist/dist-es-EVVG3KDV.js +26 -0
- package/dist/dist-es-HRCONNGK.js +18 -0
- package/dist/dist-es-L2GU465G.js +18 -0
- package/dist/dist-es-RGEIM2BP.js +18 -0
- package/dist/dist-es-RZ25XEH6.js +18 -0
- package/dist/dist-es-SITTNOGV.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-7VH6D2QJ.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-GSWEOYZ5.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-XRUYBM7W.js +21 -0
- package/dist/session-4BXV4JJH.js +18 -0
- package/dist/signin-DKBWDEYP.js +18 -0
- package/dist/src-JODD73WX.js +18 -0
- package/dist/src-QJHT5SCV.js +18 -0
- package/dist/src-SMM4U63G.js +18 -0
- package/dist/src-WDYKISPD.js +20 -0
- package/dist/sso-oidc-S3P64MCY.js +18 -0
- package/dist/sts-RG44NMOQ.js +18 -0
- package/dist/token-2V62AM3G.js +18 -0
- package/dist/token-util-VXONHEUD.js +18 -0
- package/dist/unified-W3ZKZ4HG.js +18 -0
- package/dist/worktree-B2LROS2B.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-6NGO2HRS.js +0 -14
- package/dist/chunk-4K2RXRZL.js +0 -14
- package/dist/chunk-BM2C7NHL.js +0 -41
- package/dist/chunk-E47SMIVL.js +0 -186
- package/dist/chunk-OMDJ6ZZ2.js +0 -684
- package/dist/chunk-PLQOF3WF.js +0 -393
- package/dist/chunk-QRABYJKL.js +0 -14
- package/dist/chunk-RHIWAYN5.js +0 -14
- package/dist/chunk-Z5TLIUAI.js +0 -28
- package/dist/chunk-ZMHNE2MU.js +0 -865
- package/dist/chunk-ZWLTE2TM.js +0 -1455
- package/dist/code-mode-YFX4N2VN.js +0 -40
- package/dist/copilot-provider-TX4YFKJZ.js +0 -14
- package/dist/photon-VQS5F5BI.js +0 -14
- package/dist/server-TI57TGPO.js +0 -17
- package/dist/session-6RNXZNG6.js +0 -14
- package/dist/worktree-3RZQEGVC.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"./chunk-VWLJXTZ5.js";import{Bf as i}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var n={id:"20260603160727_jittery_ezekiel_stane",up(e){return i.gen(function*(){yield*e.run("DROP INDEX IF EXISTS `session_input_session_pending_seq_idx`;"),yield*e.run("CREATE INDEX IF NOT EXISTS `event_aggregate_type_seq_idx` ON `event` (`aggregate_id`,`type`,`seq`);"),yield*e.run("CREATE INDEX IF NOT EXISTS `session_input_session_pending_delivery_seq_idx` ON `session_input` (`session_id`,`promoted_seq`,`delivery`,`seq`);"),yield*e.run("CREATE INDEX IF NOT EXISTS `session_message_session_time_created_id_idx` ON `session_message` (`session_id`,`time_created`,`id`);")})}};export{n as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as s}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var n={id:"20260604172448_event_sourced_session_input",up(e){return s.gen(function*(){yield*e.run("DELETE FROM `session_input`;"),yield*e.run("DELETE FROM `session_message`;"),yield*e.run("DELETE FROM `event`;"),yield*e.run("DELETE FROM `event_sequence`;"),yield*e.run("UPDATE `session` SET `workspace_id` = NULL;"),yield*e.run("DELETE FROM `workspace`;"),yield*e.run("DROP INDEX IF EXISTS `event_aggregate_seq_idx`;"),yield*e.run("CREATE UNIQUE INDEX `event_aggregate_seq_idx` ON `event` (`aggregate_id`,`seq`);"),yield*e.run("DROP INDEX IF EXISTS `session_message_session_seq_idx`;"),yield*e.run("CREATE UNIQUE INDEX `session_message_session_seq_idx` ON `session_message` (`session_id`,`seq`);"),yield*e.run("PRAGMA foreign_keys=OFF;"),yield*e.run("\n CREATE TABLE `__new_session_input` (\n `id` text PRIMARY KEY,\n `session_id` text NOT NULL,\n `prompt` text NOT NULL,\n `delivery` text NOT NULL,\n `admitted_seq` integer NOT NULL,\n `promoted_seq` integer,\n `time_created` integer NOT NULL,\n CONSTRAINT `fk_session_input_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("DROP TABLE `session_input`;"),yield*e.run("ALTER TABLE `__new_session_input` RENAME TO `session_input`;"),yield*e.run("PRAGMA foreign_keys=ON;"),yield*e.run("CREATE INDEX `session_input_session_pending_delivery_seq_idx` ON `session_input` (`session_id`,`promoted_seq`,`delivery`,`admitted_seq`);"),yield*e.run("CREATE UNIQUE INDEX `session_input_session_admitted_seq_idx` ON `session_input` (`session_id`,`admitted_seq`);"),yield*e.run("CREATE UNIQUE INDEX `session_input_session_promoted_seq_idx` ON `session_input` (`session_id`,`promoted_seq`);")})}};export{n as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as e}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var t={id:"20260605003541_add_session_context_snapshot",up(s){return e.gen(function*(){yield*s.run("\n CREATE TABLE `session_context_epoch` (\n `session_id` text PRIMARY KEY,\n `baseline` text NOT NULL,\n `snapshot` text NOT NULL,\n `baseline_seq` integer NOT NULL,\n `replacement_seq` integer,\n `revision` integer DEFAULT 0 NOT NULL,\n CONSTRAINT `fk_session_context_epoch_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n );\n ")})}};export{t as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as t}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var a={id:"20260605042240_add_context_epoch_agent",up(e){return t.gen(function*(){yield*e.run("ALTER TABLE `session_context_epoch` ADD `agent` text DEFAULT 'build' NOT NULL;")})}};export{a as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as t}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var a={id:"20260611035744_credential",up(e){return t.gen(function*(){yield*e.run("\n CREATE TABLE `credential` (\n `id` text PRIMARY KEY,\n `connector_id` text NOT NULL,\n `method_id` text NOT NULL,\n `label` text NOT NULL,\n `value` text NOT NULL,\n `active` integer DEFAULT false NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n );\n "),yield*e.run('CREATE UNIQUE INDEX `credential_connector_active_idx` ON `credential` (`connector_id`) WHERE "credential"."active" = 1;')})}};export{a as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as t}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var r={id:"20260611192811_lush_chimera",up(e){return t.gen(function*(){yield*e.run("DROP INDEX IF EXISTS `credential_connector_active_idx`;"),yield*e.run("DROP TABLE `credential`;"),yield*e.run("\n CREATE TABLE `credential` (\n `id` text PRIMARY KEY,\n `integration_id` text,\n `label` text NOT NULL,\n `value` text NOT NULL,\n `connector_id` text,\n `method_id` text,\n `active` integer,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n );\n ")})}};export{r as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as r}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var i={id:"20260612174303_project_dir_strategy",up(e){return r.gen(function*(){yield*e.run("ALTER TABLE `project_directory` ADD `strategy` text;"),yield*e.run("PRAGMA foreign_keys=OFF;"),yield*e.run("\n CREATE TABLE `__new_project_directory` (\n `project_id` text NOT NULL,\n `directory` text NOT NULL,\n `type` text,\n `strategy` text,\n `time_created` integer NOT NULL,\n CONSTRAINT `project_directory_pk` PRIMARY KEY(`project_id`, `directory`),\n CONSTRAINT `fk_project_directory_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n );\n "),yield*e.run("INSERT INTO `__new_project_directory`(`project_id`, `directory`, `type`, `time_created`) SELECT `project_id`, `directory`, `type`, `time_created` FROM `project_directory`;"),yield*e.run("DROP TABLE `project_directory`;"),yield*e.run("ALTER TABLE `__new_project_directory` RENAME TO `project_directory`;"),yield*e.run("PRAGMA foreign_keys=ON;")})}};export{i as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as i}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var t={id:"20260622142730_simplify_session_context_epoch",up(e){return i.gen(function*(){yield*e.run("ALTER TABLE `session_context_epoch` DROP COLUMN `agent`;"),yield*e.run("ALTER TABLE `session_context_epoch` DROP COLUMN `replacement_seq`;"),yield*e.run("ALTER TABLE `session_context_epoch` DROP COLUMN `revision`;")})}};export{t as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as i}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var n={id:"20260622170816_reset_v2_session_state",up(e){return i.gen(function*(){yield*e.run("DELETE FROM `session_context_epoch`;"),yield*e.run("DELETE FROM `session_input`;"),yield*e.run("DELETE FROM `session_message`;"),yield*e.run("DELETE FROM `event`;"),yield*e.run("DELETE FROM `event_sequence`;"),yield*e.run("UPDATE `session` SET `workspace_id` = NULL WHERE `workspace_id` IS NOT NULL;"),yield*e.run("DELETE FROM `workspace`;")})}};export{n as default};
|
|
@@ -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"./chunk-VWLJXTZ5.js";import{Bf as i}from"./chunk-ELPXQ32J.js";import"./chunk-2MRHL4B2.js";var n={id:"20260622202450_simplify_session_input",up(e){return i.gen(function*(){yield*e.run("DELETE FROM `session_context_epoch`;"),yield*e.run("DELETE FROM `session_input`;"),yield*e.run("DELETE FROM `session_message`;"),yield*e.run("DELETE FROM `event`;"),yield*e.run("DELETE FROM `event_sequence`;"),yield*e.run("UPDATE `session` SET `workspace_id` = NULL WHERE `workspace_id` IS NOT NULL;"),yield*e.run("DELETE FROM `workspace`;")})}};export{n as default};
|
|
@@ -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 rt,b as Oe,c as V,d as ot,e as st,f as it,h as nt,i as at}from"./chunk-UCLPBO4I.js";import{a as yt}from"./chunk-MLFZXUGQ.js";import{m as et,n as tt}from"./chunk-FYYAOZPU.js";import{c as Ze,d as Pt}from"./chunk-V6HERYFV.js";import{h as Ot,m as ye,v as Je,w as Qe,y as Lt,z as oe}from"./chunk-DO2UZ6NY.js";import{a as H}from"./chunk-AZUMH3TO.js";import{Ad as $e,Bd as He,Ed as F,Fj as Xe,Gj as Ye,Id as I,Jc as te,Ka as Ue,Kc as re,Ke as k,Mc as ke,Md as v,Nc as je,Oa as Ge,Oc as Ve,Qc as Re,Rc as qe,Se as j,Td as Ke,Ua as Ne,d as Ie,le as B,mc as Be,nc as De,ne as D,o as Me,od as We,rb as Fe,xa as Ee,ye as ze,za as _e}from"./chunk-ELPXQ32J.js";import{a as s,d as we,g as N,h as Te}from"./chunk-2MRHL4B2.js";var ct=we(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.NodeTracerProvider=void 0;var At=yt(),bt=(tt(),Te(et)),K=H(),Le=(oe(),Te(Lt));function xt(t){if(t!==null){if(t===void 0){let e=new At.AsyncLocalStorageContextManager;e.enable(),K.context.setGlobalContextManager(e);return}t.enable(),K.context.setGlobalContextManager(t)}}s(xt,"setupContextManager");function Ct(t){if(t!==null){if(t===void 0){K.propagation.setGlobalPropagator(new Le.CompositePropagator({propagators:[new Le.W3CTraceContextPropagator,new Le.W3CBaggagePropagator]}));return}K.propagation.setGlobalPropagator(t)}}s(Ct,"setupPropagator");var Pe=class extends bt.BasicTracerProvider{static{s(this,"NodeTracerProvider")}constructor(e={}){super(e)}register(e={}){K.trace.setGlobalTracerProvider(this),xt(e.contextManager),Ct(e.propagator)}};se.NodeTracerProvider=Pe});var ut=we(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.TraceIdRatioBasedSampler=c.SimpleSpanProcessor=c.SamplingDecision=c.RandomIdGenerator=c.ParentBasedSampler=c.NoopSpanProcessor=c.InMemorySpanExporter=c.ConsoleSpanExporter=c.BatchSpanProcessor=c.BasicTracerProvider=c.AlwaysOnSampler=c.AlwaysOffSampler=c.NodeTracerProvider=void 0;var St=ct();Object.defineProperty(c,"NodeTracerProvider",{enumerable:!0,get:s(function(){return St.NodeTracerProvider},"get")});var y=(tt(),Te(et));Object.defineProperty(c,"AlwaysOffSampler",{enumerable:!0,get:s(function(){return y.AlwaysOffSampler},"get")});Object.defineProperty(c,"AlwaysOnSampler",{enumerable:!0,get:s(function(){return y.AlwaysOnSampler},"get")});Object.defineProperty(c,"BasicTracerProvider",{enumerable:!0,get:s(function(){return y.BasicTracerProvider},"get")});Object.defineProperty(c,"BatchSpanProcessor",{enumerable:!0,get:s(function(){return y.BatchSpanProcessor},"get")});Object.defineProperty(c,"ConsoleSpanExporter",{enumerable:!0,get:s(function(){return y.ConsoleSpanExporter},"get")});Object.defineProperty(c,"InMemorySpanExporter",{enumerable:!0,get:s(function(){return y.InMemorySpanExporter},"get")});Object.defineProperty(c,"NoopSpanProcessor",{enumerable:!0,get:s(function(){return y.NoopSpanProcessor},"get")});Object.defineProperty(c,"ParentBasedSampler",{enumerable:!0,get:s(function(){return y.ParentBasedSampler},"get")});Object.defineProperty(c,"RandomIdGenerator",{enumerable:!0,get:s(function(){return y.RandomIdGenerator},"get")});Object.defineProperty(c,"SamplingDecision",{enumerable:!0,get:s(function(){return y.SamplingDecision},"get")});Object.defineProperty(c,"SimpleSpanProcessor",{enumerable:!0,get:s(function(){return y.SimpleSpanProcessor},"get")});Object.defineProperty(c,"TraceIdRatioBasedSampler",{enumerable:!0,get:s(function(){return y.TraceIdRatioBasedSampler},"get")})});var _t=N(ut(),1);var ie=s(t=>t!==void 0&&!(Array.isArray(t)&&t.length===0),"isNonEmpty");var d;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(d||(d={}));var q=class{static{s(this,"NoopLogger")}emit(e){}},z=new q;var X=Symbol.for("io.opentelemetry.js.api.logs"),W=globalThis;function mt(t,e,r){return o=>o===t?e:r}s(mt,"makeGetter");var Ae=1;var be=class{static{s(this,"NoopLoggerProvider")}getLogger(e,r,o){return new q}},ne=new be;var ae=class{static{s(this,"ProxyLogger")}constructor(e,r,o,n){this._provider=e,this.name=r,this.version=o,this.options=n}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):z}};var Y=class{static{s(this,"ProxyLoggerProvider")}getLogger(e,r,o){var n;return(n=this._getDelegateLogger(e,r,o))!==null&&n!==void 0?n:new ae(this,e,r,o)}_getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:ne}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,r,o){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(e,r,o)}};var ce=class t{static{s(this,"LogsAPI")}constructor(){this._proxyLoggerProvider=new Y}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return W[X]?this.getLoggerProvider():(W[X]=mt(Ae,e,ne),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=W[X])===null||e===void 0?void 0:e.call(W,Ae))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,o){return this.getLoggerProvider().getLogger(e,r,o)}disable(){delete W[X],this._proxyLoggerProvider=new Y}};var _r=ce.getInstance();var J=N(H());Pt();oe();var S=N(H());var A=N(H());oe();var _=N(Ot());function pt(t){return xe(t,new WeakSet)}s(pt,"isLogAttributeValue");function xe(t,e){if(t==null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t instanceof Uint8Array)return!0;if(typeof t=="object"){if(e.has(t))return!1;if(e.add(t),Array.isArray(t))return t.every(o=>xe(o,e));let r=t;return r.constructor!==Object&&r.constructor!==void 0?!1:Object.values(r).every(o=>xe(o,e))}return!1}s(xe,"isLogAttributeValueInternal");var ue=class{static{s(this,"LogRecordImpl")}hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,r,o){let{timestamp:n,observedTimestamp:a,eventName:g,severityNumber:h,severityText:L,body:T,attributes:E={},exception:Z,context:i}=o,f=Date.now();if(this.hrTime=ye(n??f),this.hrTimeObserved=ye(a??f),i){let R=A.trace.getSpanContext(i);R&&A.isSpanContextValid(R)&&(this.spanContext=R)}this.severityNumber=h,this.severityText=L,this.body=T,this.resource=e.resource,this.instrumentationScope=r,this._logRecordLimits=e.logRecordLimits,this._eventName=g,this.setAttributes(E),Z!=null&&this._setException(Z)}setAttribute(e,r){if(this._isLogRecordReadonly())return this;if(e.length===0)return A.diag.warn(`Invalid attribute key: ${e}`),this;if(!pt(r))return A.diag.warn(`Invalid attribute value set for key: ${e}`),this;let o=!Object.prototype.hasOwnProperty.call(this.attributes,e);return o&&this._attributesCount>=this._logRecordLimits.attributeCountLimit?(this._droppedAttributesCount++,this._droppedAttributesCount===1&&A.diag.warn("Dropping extra attributes."),this):(this.attributes[e]=this._truncateToSize(r),o&&this._attributesCount++,this)}setAttributes(e){for(let[r,o]of Object.entries(e))this.setAttribute(r,o);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(e){let r=this._logRecordLimits.attributeValueLengthLimit;if(r<=0)return A.diag.warn(`Attribute value limit must be positive, got ${r}`),e;if(e==null)return e;if(typeof e=="string")return this._truncateToLimitUtil(e,r);if(e instanceof Uint8Array)return e;if(Array.isArray(e))return e.map(o=>this._truncateToSize(o));if(typeof e=="object"){let o={};for(let[n,a]of Object.entries(e))o[n]=this._truncateToSize(a);return o}return e}_setException(e){let r=!1;if(typeof e=="string"||typeof e=="number")Object.hasOwn(this.attributes,_.ATTR_EXCEPTION_MESSAGE)||this.setAttribute(_.ATTR_EXCEPTION_MESSAGE,String(e)),r=!0;else if(e&&typeof e=="object"){let o=e;o.code?(Object.hasOwn(this.attributes,_.ATTR_EXCEPTION_TYPE)||this.setAttribute(_.ATTR_EXCEPTION_TYPE,o.code.toString()),r=!0):o.name&&(Object.hasOwn(this.attributes,_.ATTR_EXCEPTION_TYPE)||this.setAttribute(_.ATTR_EXCEPTION_TYPE,o.name),r=!0),o.message&&(Object.hasOwn(this.attributes,_.ATTR_EXCEPTION_MESSAGE)||this.setAttribute(_.ATTR_EXCEPTION_MESSAGE,o.message),r=!0),o.stack&&(Object.hasOwn(this.attributes,_.ATTR_EXCEPTION_STACKTRACE)||this.setAttribute(_.ATTR_EXCEPTION_STACKTRACE,o.stack),r=!0)}r||A.diag.warn(`Failed to record an exception ${e}`)}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substring(0,r)}_isLogRecordReadonly(){return this._isReadonly&&A.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var me=class{static{s(this,"Logger")}instrumentationScope;_sharedState;_loggerConfig;constructor(e,r){this.instrumentationScope=e,this._sharedState=r,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(e){let r=this._loggerConfig,o=e.context||S.context.active(),n=e.severityNumber??d.UNSPECIFIED;if(n!==d.UNSPECIFIED&&n<r.minimumSeverity)return;if(r.traceBased){let g=S.trace.getSpanContext(o);if(g&&(0,S.isSpanContextValid)(g)&&!((g.traceFlags&S.TraceFlags.SAMPLED)===S.TraceFlags.SAMPLED))return}let a=new ue(this._sharedState,this.instrumentationScope,{context:o,...e});this._sharedState.activeProcessor.onEmit(a,o),a._makeReadonly()}};var pe=class{static{s(this,"NoopLogRecordProcessor")}forceFlush(){return Promise.resolve()}onEmit(e,r){}shutdown(){return Promise.resolve()}};oe();var fe=class{static{s(this,"MultiLogRecordProcessor")}processors;forceFlushTimeoutMillis;constructor(e,r){this.processors=e,this.forceFlushTimeoutMillis=r}async forceFlush(){let e=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(r=>Je(r.forceFlush(),e)))}onEmit(e,r){this.processors.forEach(o=>o.onEmit(e,r))}async shutdown(){await Promise.all(this.processors.map(e=>e.shutdown()))}};function ft(t){return`${t.name}@${t.version||""}:${t.schemaUrl||""}`}s(ft,"getInstrumentationScopeKey");var vt={disabled:!1,minimumSeverity:d.UNSPECIFIED,traceBased:!1},Ce=s(()=>({...vt}),"DEFAULT_LOGGER_CONFIGURATOR"),le=class{static{s(this,"LoggerProviderSharedState")}loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(e,r,o,n,a){this.resource=e,this.forceFlushTimeoutMillis=r,this.logRecordLimits=o,this.processors=n,n.length>0?(this.registeredLogRecordProcessors=n,this.activeProcessor=new fe(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new pe,this._loggerConfigurator=a??Ce}getLoggerConfig(e){let r=ft(e),o=this._loggerConfigs.get(r);return o||(o=this._loggerConfigurator(e),this._loggerConfigs.set(r,o),o)}};var wt="unknown",Q=class{static{s(this,"LoggerProvider")}_shutdownOnce;_sharedState;constructor(e={}){let r={resource:e.resource??Ze(),forceFlushTimeoutMillis:e.forceFlushTimeoutMillis??3e4,logRecordLimits:{attributeCountLimit:e.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:e.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:e.loggerConfigurator??Ce,processors:e.processors??[]};this._sharedState=new le(r.resource,r.forceFlushTimeoutMillis,r.logRecordLimits,r.processors,r.loggerConfigurator),this._shutdownOnce=new Qe(this._shutdown,this)}getLogger(e,r,o){if(this._shutdownOnce.isCalled)return J.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),z;e||J.diag.warn("Logger requested without instrumentation scope name.");let n=e||wt,a=`${n}@${r||""}:${o?.schemaUrl||""}`;return this._sharedState.loggers.has(a)||this._sharedState.loggers.set(a,new me({name:n,version:r,schemaUrl:o?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(a)}forceFlush(){return this._shutdownOnce.isCalled?(J.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(J.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var de=class extends Ge()("@effect/opentelemetry/Logger/OtelLoggerProvider"){static{s(this,"OtelLoggerProvider")}},Ut=s(t=>{switch(t){case"Trace":return d.TRACE;case"Debug":return d.DEBUG;case"Info":return d.INFO;case"Warn":return d.WARN;case"Error":return d.ERROR;case"Fatal":return d.FATAL;default:return d.UNSPECIFIED}},"logLevelToSeverityNumber"),Gt=v(function*(){let t=yield*de,e=yield*We,r=t.getLogger("@effect/opentelemetry");return Xe(o=>{let n={fiberId:o.fiber.id},a=Ne(o.fiber.context,Fe);Me(a)&&(n.spanId=a.spanId,n.traceId=a.traceId);for(let[T,E]of Object.entries(o.fiber.getRef(Be)))n[T]=Oe(E);let g=o.date.getTime();for(let[T,E]of o.fiber.getRef(De))n[`logSpan.${T}`]=`${g-E}ms`;let h=_e(o.message).map(Oe),L=rt(e.currentTimeNanosUnsafe());r.emit({body:h.length===1?h[0]:h,severityText:o.logLevel,severityNumber:Ut(o.logLevel),timestamp:L,observedTimestamp:L,attributes:n})})}),gt=s(t=>Ye([Gt],{mergeWithExisting:t.mergeWithExisting??!0}),"layer"),ht=s((t,e)=>re(de,v(function*(){let r=yield*V;return yield*k(I(()=>new Q({...e??void 0,processors:_e(t),resource:r})),o=>F(()=>o.forceFlush().then(()=>o.shutdown())).pipe(B,j,D(e?.shutdownTimeout??3e3)))})),"layerLoggerProvider");var w=N(H(),1);var M;(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(M||(M={}));var O;(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(O||(O={}));var b;(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(b||(b={}));var Ft="@effect/opentelemetry/Metrics",ge=class{static{s(this,"MetricProducerImpl")}resource;context;temporality;startTimes;startTimeNanos;previousExportTimeNanos;previousCounterState;previousHistogramState;previousFrequencyState;previousSummaryState;constructor(e,r,o="cumulative"){this.resource=e,this.context=r,this.temporality=o,this.startTimes=new Map,this.startTimeNanos=Tt(),this.previousExportTimeNanos=this.startTimeNanos,this.previousCounterState=new Map,this.previousHistogramState=new Map,this.previousFrequencyState=new Map,this.previousSummaryState=new Map}startTimeFor(e,r){return this.startTimes.has(e)?this.startTimes.get(e):(this.startTimes.set(e,r),r)}collect(e){let r=$e(this.context),o=Tt(),n=[],a=new Map,g=s(E=>{n.push(E),a.set(E.descriptor.name,E)},"addMetricData"),h=this.temporality==="delta",L=h?M.DELTA:M.CUMULATIVE,T=h?this.previousExportTimeNanos:this.startTimeNanos;for(let E=0,Z=r.length;E<Z;E++){let i=r[E],f=i.attributes?Ue(Object.entries(i.attributes),{},(u,[m,p])=>(u[m]=String(p),u)):{},R=Bt(i.id,i.attributes);switch(i.type){case"Counter":{let u=i.state.count,m=u;if(h){let l=this.previousCounterState.get(R);if(l!==void 0)if(typeof u=="bigint"&&typeof l=="bigint")m=u-l,m<BigInt(0)&&(m=u);else{let C=Number(u),U=Number(l);m=C-U,m<0&&(m=C)}this.previousCounterState.set(R,u)}let p=$(i,f),P={startTime:this.startTimeFor(p.name,T),endTime:o,attributes:f,value:Number(m)};a.has(i.id)?a.get(i.id).dataPoints.push(P):g({dataPointType:b.SUM,descriptor:p,isMonotonic:i.state.incremental,aggregationTemporality:L,dataPoints:[P]});break}case"Gauge":{let u=$(i,f),p={startTime:this.startTimeFor(u.name,this.startTimeNanos),endTime:o,attributes:f,value:Number(i.state.value)};a.has(i.id)?a.get(i.id).dataPoints.push(p):g({dataPointType:b.GAUGE,descriptor:u,aggregationTemporality:M.CUMULATIVE,dataPoints:[p]});break}case"Histogram":{let u=i.state.buckets.length,m={boundaries:Ee(u-1),counts:Ee(u)},p=0,x=0;for(let[G,ee]of i.state.buckets)p<u-1&&(m.boundaries[p]=G),m.counts[p]=ee-x,x=ee,p++;let P=i.state.count,l=i.state.sum,C=m.counts,U=i.state.min,he=i.state.max;if(h){let G=this.previousHistogramState.get(R);G!==void 0&&(P=i.state.count-G.count,l=i.state.sum-G.sum,C=m.counts.map((ee,Rt)=>Math.max(0,ee-(G.bucketCounts[Rt]??0)))),this.previousHistogramState.set(R,{count:i.state.count,sum:i.state.sum,bucketCounts:m.counts.slice(),min:i.state.min,max:i.state.max})}let Se=$(i,f),ve={startTime:this.startTimeFor(Se.name,T),endTime:o,attributes:f,value:{buckets:{boundaries:m.boundaries,counts:C},count:P,min:U,max:he,sum:l}};a.has(i.id)?a.get(i.id).dataPoints.push(ve):g({dataPointType:b.HISTOGRAM,descriptor:Se,aggregationTemporality:L,dataPoints:[ve]});break}case"Frequency":{let u=[],m=new Map;for(let[p,x]of i.state.occurrences){m.set(p,x);let P=x;if(h){let U=this.previousFrequencyState.get(R);if(U!==void 0){let he=U.get(p)??0;P=Math.max(0,x-he)}}let l=$(i,f),C=this.startTimeFor(l.name,T);u.push({startTime:C,endTime:o,attributes:{...f,key:p},value:P})}if(h&&this.previousFrequencyState.set(R,m),a.has(i.id))a.get(i.id).dataPoints.push(...u);else{let p=$(i,f);g({dataPointType:b.SUM,descriptor:p,aggregationTemporality:L,isMonotonic:!0,dataPoints:u})}break}case"Summary":{let u=[{startTime:T,endTime:o,attributes:{...f,quantile:"min"},value:i.state.min}];for(let[l,C]of i.state.quantiles)u.push({startTime:T,endTime:o,attributes:{...f,quantile:l.toString()},value:C??0});u.push({startTime:T,endTime:o,attributes:{...f,quantile:"max"},value:i.state.max});let m=i.state.count,p=i.state.sum;if(h){let l=this.previousSummaryState.get(R);l!==void 0&&(m=i.state.count-l.count,p=i.state.sum-l.sum),this.previousSummaryState.set(R,{count:i.state.count,sum:i.state.sum})}let x={startTime:T,endTime:o,attributes:f,value:m},P={startTime:T,endTime:o,attributes:f,value:p};if(a.has(`${i.id}_quantiles`))a.get(`${i.id}_quantiles`).dataPoints.push(...u),a.get(`${i.id}_count`).dataPoints.push(x),a.get(`${i.id}_sum`).dataPoints.push(P);else{let l=$(i,f);g({dataPointType:b.SUM,descriptor:{...l,name:`${l.name}_quantiles`},aggregationTemporality:L,isMonotonic:!1,dataPoints:u}),g({dataPointType:b.SUM,descriptor:{name:`${i.id}_count`,description:i.description??"",unit:"1",type:O.COUNTER,valueType:w.ValueType.INT,advice:{}},aggregationTemporality:L,isMonotonic:!0,dataPoints:[x]}),g({dataPointType:b.SUM,descriptor:{name:`${i.id}_sum`,description:i.description??"",unit:"1",type:O.COUNTER,valueType:w.ValueType.DOUBLE,advice:{}},aggregationTemporality:L,isMonotonic:!0,dataPoints:[P]})}break}}}return h&&(this.previousExportTimeNanos=o),Promise.resolve({resourceMetrics:{resource:this.resource,scopeMetrics:[{scope:{name:Ft},metrics:n}]},errors:[]})}},Bt=s((t,e)=>{if(e===void 0||Object.keys(e).length===0)return t;let r=Object.entries(e).sort((o,n)=>o[0].localeCompare(n[0]));return`${t}:${JSON.stringify(r)}`},"makeMetricKey"),Tt=s(()=>{let t=Date.now();return[Math.floor(t/1e3),t%1e3*1e6]},"currentHrTime"),$=s((t,e)=>{let r=e.unit??e.time_unit??"1";return{name:t.id,description:t.description??"",unit:r,type:Dt(t),valueType:kt(t),advice:{}}},"descriptorFromState"),Dt=s(t=>{switch(t.type){case"Histogram":return O.HISTOGRAM;case"Gauge":return O.OBSERVABLE_GAUGE;case"Frequency":return O.COUNTER;case"Counter":return t.state.incremental?O.COUNTER:O.UP_DOWN_COUNTER;case"Summary":return O.COUNTER}},"instrumentTypeFromSnapshot"),kt=s(t=>t.type==="Counter"?typeof t.state.count=="bigint"?w.ValueType.INT:w.ValueType.DOUBLE:t.type==="Gauge"?typeof t.state.value=="bigint"?w.ValueType.INT:w.ValueType.DOUBLE:w.ValueType.DOUBLE,"determineValueType");var jt=s(t=>v(function*(){let e=yield*V,r=yield*ze();return new ge(e,r,t)}),"makeProducer"),Vt=s((t,e,r)=>k(I(()=>{let o=e(),n=Array.isArray(o)?o:[o];return n.forEach(a=>a.setMetricProducer(t)),n}),o=>F(()=>Promise.all(o.map(n=>n.shutdown()))).pipe(B,j,D(r?.shutdownTimeout??3e3))),"registerProducer"),Et=s((t,e)=>ke(Ke(jt(e?.temporality),r=>Vt(r,t,e))),"layer");var Wt=s((t,e)=>re(nt,v(function*(){let r=yield*V;return yield*k(I(()=>new _t.NodeTracerProvider({...e??void 0,resource:r,spanProcessors:Array.isArray(t)?t:[t]})),o=>F(()=>o.forceFlush().then(()=>o.shutdown())).pipe(B,j,D(e?.shutdownTimeout??3e3)))})),"layerTracerProvider"),xo=s(t=>je(v(function*(){let e=yield*He(t)?t:I(t),r=st(e.resource&&ot(e.resource)),o=ie(e.spanProcessor)?Re(at,Wt(e.spanProcessor,{...e.tracerConfig,shutdownTimeout:e.shutdownTimeout})):te,n=ie(e.metricReader)?Et(Ie(e.metricReader),{shutdownTimeout:e.shutdownTimeout,temporality:e.metricTemporality}):te,a=ie(e.logRecordProcessor)?Re(gt({mergeWithExisting:e.loggerMergeWithExisting}),ht(e.logRecordProcessor,{...e.loggerProviderConfig,shutdownTimeout:e.shutdownTimeout})):te;return Ve(o,n,a).pipe(qe(r))})),"layer"),Co=it;export{xo as layer,Co as layerEmpty,Wt as layerTracerProvider};
|
|
@@ -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}from"./chunk-WRTNIOI3.js";import{b as t}from"./chunk-FGLPSSRK.js";import"./chunk-VXAPFOIL.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import{a as r}from"./chunk-2MRHL4B2.js";var c=r((...e)=>o(t)(...e),"createAnthropic");export{c as createAnthropic};
|
|
@@ -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{k as h,t as p,x as m}from"./chunk-4MBUHJHY.js";import{a as w}from"./chunk-AUB2TEYJ.js";import{c as d,e as n}from"./chunk-KS4WLVK5.js";import"./chunk-VXAPFOIL.js";import{k as u}from"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import{a as t,g as f}from"./chunk-2MRHL4B2.js";var g=f(w(),1);function v(r){let l=new g.GoogleAuth({scopes:["https://www.googleapis.com/auth/cloud-platform"],...r});return t(async function(){var e;let a=await(await l.getClient()).getAccessToken();return(e=a?.token)!=null?e:null},"generateAuthToken")}t(v,"createAuthTokenGenerator");var x={bash_20241022:n.bash_20241022,bash_20250124:n.bash_20250124,textEditor_20241022:n.textEditor_20241022,textEditor_20250124:n.textEditor_20250124,textEditor_20250429:n.textEditor_20250429,textEditor_20250728:n.textEditor_20250728,computer_20241022:n.computer_20241022,webSearch_20250305:n.webSearch_20250305,toolSearchRegex_20251119:n.toolSearchRegex_20251119,toolSearchBm25_20251119:n.toolSearchBm25_20251119};function b(r={}){let l=t(()=>{var o;let a=h({settingValue:r.location,environmentVariableName:"GOOGLE_VERTEX_LOCATION"}),c=h({settingValue:r.project,environmentVariableName:"GOOGLE_VERTEX_PROJECT"}),s=t(()=>a==="global"?"aiplatform.googleapis.com":a==="eu"||a==="us"?`aiplatform.${a}.rep.googleapis.com`:`${a}-aiplatform.googleapis.com`,"getHost");return(o=m(r.baseURL))!=null?o:`https://${s()}/v1/projects/${c}/locations/${a}/publishers/anthropic/models`},"getBaseURL"),i=t(o=>{var a;return new d(o,{provider:"vertex.anthropic.messages",baseURL:l(),headers:(a=r.headers)!=null?a:{},fetch:r.fetch,buildRequestUrl:t((c,s)=>`${c}/${o}:${s?"streamRawPredict":"rawPredict"}`,"buildRequestUrl"),transformRequestBody:t(c=>{let{model:s,..._}=c;return{..._,anthropic_version:"vertex-2023-10-16"}},"transformRequestBody"),supportedUrls:t(()=>({}),"supportedUrls"),supportsNativeStructuredOutput:!1,supportsStrictTools:!1})},"createChatModel"),e=t(function(o){if(new.target)throw new Error("The Anthropic model function cannot be called with the new keyword.");return i(o)},"provider");return e.specificationVersion="v3",e.languageModel=i,e.chat=i,e.messages=i,e.embeddingModel=o=>{throw new u({modelId:o,modelType:"embeddingModel"})},e.textEmbeddingModel=e.embeddingModel,e.imageModel=o=>{throw new u({modelId:o,modelType:"imageModel"})},e.tools=x,e}t(b,"createVertexAnthropic");function E(r={}){var l;let i=(l=r.generateAuthToken)!=null?l:v(r.googleAuthOptions);return b({...r,headers:t(async()=>({Authorization:`Bearer ${await i()}`,...await p(r.headers)}),"headers")})}t(E,"createVertexAnthropic2");var S=E();export{E as createVertexAnthropic,S as vertexAnthropic};
|
|
@@ -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{B as $,C as i,D as oo,F as eo,G as mo,b as F,e as B,f as D,h as I,i as T,j as O,k as W,l as w,n as G,o as J,p as Q,r as q,s as z,v as H,x as X,z as _}from"./chunk-2XWBNI3L.js";import{F as to,G as no,H as io,z as U}from"./chunk-WL33KE3H.js";import{b as K,f as Y,g as Z,w as ro}from"./chunk-6MAPFAXY.js";import{K as C,N as L,O as E,P as N,S as V,X as j,n as y}from"./chunk-XSKT4AXR.js";import"./chunk-GW3ZRKAI.js";import{R as x,g as k,i as M,q as A}from"./chunk-L3CE2Y3L.js";import{B as u,_a as v,da as c,ea as S,ha as l,kb as b,la as P,lb as R,mb as h,va as g}from"./chunk-RIA6SDOY.js";import"./chunk-QD24DLUD.js";import"./chunk-WZ4237YY.js";import"./chunk-V6FDDNGV.js";import"./chunk-QCRIXKIC.js";import"./chunk-P5RLCJUV.js";import"./chunk-LIXP4TPL.js";import"./chunk-M6E6KNLV.js";import"./chunk-NDI67DRG.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import"./chunk-K5LKDIVU.js";import"./chunk-TK5R7QUN.js";import{d as a}from"./chunk-R2GWBJEP.js";import{ha as d,pc as f,qb as s}from"./chunk-7XX6TY62.js";import"./chunk-LSC4RT5V.js";import"./chunk-V7XKKJ7X.js";import"./chunk-FV7U6PVP.js";import"./chunk-UCLPBO4I.js";import"./chunk-V6HERYFV.js";import"./chunk-DO2UZ6NY.js";import"./chunk-AZUMH3TO.js";import{r as p}from"./chunk-VWLJXTZ5.js";import{Tc as n}from"./chunk-ELPXQ32J.js";import{a as t}from"./chunk-2MRHL4B2.js";var po=i.build(d.group([l.node,f.node,s.node,g.node,P.node,v.node,R.node,M.node,A.node,to.node,y.node,no.node,F.node,io.node,N.node,E.node,B.node,L.node,D.node,x.node,u.node,I.node,k.node,h.node,b.node,T.node,w.node,G.node,J.node,W.node,X.node,Q.node,O.node,q.node,j.node,V.node,K.node,U.node,H.node,z.node,Z.node,Y.node,_.node,oo.node,ro.node,eo.node,$.node,mo.node])).pipe(n.provideMerge(i.build(a.node)),n.provideMerge(S)),r=p.make(po,{memoMap:c}),e=t(o=>C(o),"wrap"),fr={runSync(o){return r.runSync(e(o))},runPromise(o,m){return r.runPromise(e(o),m)},runPromiseExit(o,m){return r.runPromiseExit(e(o),m)},runFork(o){return r.runFork(e(o))},runCallback(o){return r.runCallback(e(o))},dispose:t(()=>r.dispose(),"dispose")};export{po as AppLayer,fr as AppRuntime};
|
|
@@ -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
|
+
var o=Object.create;var j=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var m=(b,a)=>(a=Symbol[b])?a:Symbol.for("Symbol."+b),n=b=>{throw TypeError(b)};var t=(b,a)=>j(b,"name",{value:a,configurable:!0}),u=(b=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(b,{get:(a,c)=>(typeof require<"u"?require:a)[c]}):b)(function(b){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+b+'" is not supported')});var v=(b,a)=>()=>(b&&(a=b(b=0)),a);var w=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),x=(b,a)=>{for(var c in a)j(b,c,{get:a[c],enumerable:!0})},k=(b,a,c,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let e of q(a))!s.call(b,e)&&e!==c&&j(b,e,{get:()=>a[e],enumerable:!(d=p(a,e))||d.enumerable});return b},y=(b,a,c)=>(k(b,a,"default"),c&&k(c,a,"default")),z=(b,a,c)=>(c=b!=null?o(r(b)):{},k(a||!b||!b.__esModule?j(c,"default",{value:b,enumerable:!0}):c,b)),A=b=>k(j({},"__esModule",{value:!0}),b);var B=(b,a,c)=>{if(a!=null){typeof a!="object"&&typeof a!="function"&&n("Object expected");var d,e;c&&(d=a[m("asyncDispose")]),d===void 0&&(d=a[m("dispose")],c&&(e=d)),typeof d!="function"&&n("Object not disposable"),e&&(d=function(){try{e.call(this)}catch(g){return Promise.reject(g)}}),b.push([c,d,a])}else c&&b.push([c]);return a},C=(b,a,c)=>{var d=typeof SuppressedError=="function"?SuppressedError:function(f,l,h,i){return i=Error(h),i.name="SuppressedError",i.error=f,i.suppressed=l,i},e=f=>a=c?new d(f,a,"An error was suppressed during disposal"):(c=!0,f),g=f=>{for(;f=b.pop();)try{var l=f[1]&&f[1].call(f[2]);if(f[0])return Promise.resolve(l).then(g,h=>(e(h),g()))}catch(h){e(h)}if(c)throw a};return g()};export{t as a,u as b,v as c,w as d,x as e,y as f,z as g,A as h,B as i,C as j};
|