alchemylab-opencode 1.0.26 → 2.0.1

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.
Files changed (123) hide show
  1. package/NODE_COMPAT.md +23 -174
  2. package/dist/20260127222353_familiar_lady_ursula-KV747FJX.js +14 -0
  3. package/dist/{chunk-LTCXIXYM.js → 20260211171708_add_project_commands-GDOHPDPF.js} +3 -1
  4. package/dist/20260213144116_wakeful_the_professor-ZVDD54AK.js +14 -0
  5. package/dist/20260225215848_workspace-ZMSOZSPA.js +14 -0
  6. package/dist/20260227213759_add_session_workspace_id-ROENWPKA.js +14 -0
  7. package/dist/20260228203230_blue_harpoon-IW3Z4TQZ.js +14 -0
  8. package/dist/20260303231226_add_workspace_fields-OUVZMNAG.js +14 -0
  9. package/dist/20260309230000_move_org_to_state-NOXAPU5V.js +14 -0
  10. package/dist/20260312043431_session_message_cursor-DJ4T3T4R.js +14 -0
  11. package/dist/20260323234822_events-72GIKJ2A.js +14 -0
  12. package/dist/20260410174513_workspace-name-JXSWFBJN.js +14 -0
  13. package/dist/20260413175956_chief_energizer-4HEWZ6U3.js +14 -0
  14. package/dist/20260423070820_add_icon_url_override-X5SHFGTI.js +14 -0
  15. package/dist/20260427172553_slow_nightmare-PS5T2AH2.js +14 -0
  16. package/dist/{chunk-PWFRMDDF.js → 20260428004200_add_session_path-LGW75WYA.js} +3 -0
  17. package/dist/{valibot--1zFm7rT-FSYJNYJ6.js → 20260501142318_next_venus-J3TLVXZ6.js} +3 -1
  18. package/dist/20260504145000_add_sync_owner-3R52GB4C.js +14 -0
  19. package/dist/20260507164347_add_workspace_time-JHDRCZAR.js +14 -0
  20. package/dist/20260510033149_session_usage-UGBVOXZB.js +53 -0
  21. package/dist/20260511000411_data_migration_state-FB4LBFSE.js +14 -0
  22. package/dist/20260511173437_session-metadata-T2XHGWHS.js +14 -0
  23. package/dist/20260601010001_normalize_storage_paths-5MAY5GT3.js +14 -0
  24. package/dist/{chunk-YRY5Y3QL.js → 20260601202201_amazing_prowler-PET224YG.js} +3 -1
  25. package/dist/20260602002951_lowly_union_jack-PG6XDMGL.js +14 -0
  26. package/dist/20260602182828_add_project_directories-ZCH2ACGG.js +14 -0
  27. package/dist/20260603001617_session_message_projection_indexes-XVLJTUF2.js +14 -0
  28. package/dist/20260603040000_session_message_projection_order-XG6RACZQ.js +14 -0
  29. package/dist/20260603141458_session_input_inbox-K2VQ7V6E.js +14 -0
  30. package/dist/20260603160727_jittery_ezekiel_stane-WKJLRDO7.js +14 -0
  31. package/dist/20260604172448_event_sourced_session_input-NTXOECR7.js +14 -0
  32. package/dist/20260605003541_add_session_context_snapshot-DXMQEXMT.js +14 -0
  33. package/dist/{zod-Bwrt9trS-HVDOFWRP.js → 20260605042240_add_context_epoch_agent-W6IQYZXE.js} +3 -1
  34. package/dist/20260611035744_credential-XTMSYTJD.js +14 -0
  35. package/dist/20260611192811_lush_chimera-XPLIQMJD.js +14 -0
  36. package/dist/20260612174303_project_dir_strategy-FR2NGQKK.js +14 -0
  37. package/dist/20260622142730_simplify_session_context_epoch-NTQZR3RE.js +14 -0
  38. package/dist/20260622170816_reset_v2_session_state-5JPHJTZG.js +14 -0
  39. package/dist/20260622202450_simplify_session_input-2EXF2HMV.js +14 -0
  40. package/dist/app-runtime-HQBOCDV5.js +14 -0
  41. package/dist/chunk-4FEBIOI5.js +865 -0
  42. package/dist/chunk-4K2RXRZL.js +14 -0
  43. package/dist/chunk-4RFMKEKM.js +1455 -0
  44. package/dist/chunk-BM2C7NHL.js +41 -0
  45. package/dist/chunk-MKEMZFJI.js +393 -0
  46. package/dist/chunk-OMDJ6ZZ2.js +684 -0
  47. package/dist/chunk-OWMG4NNF.js +186 -0
  48. package/dist/chunk-QRABYJKL.js +14 -0
  49. package/dist/chunk-RHIWAYN5.js +14 -0
  50. package/dist/{arktype-aI7TBD0R-TFNARRIP.js → chunk-VURLSDCB.js} +3 -1
  51. package/dist/chunk-Z5TLIUAI.js +28 -0
  52. package/dist/code-mode-7BQJUARW.js +40 -0
  53. package/dist/copilot-provider-TX4YFKJZ.js +14 -0
  54. package/dist/photon-VQS5F5BI.js +14 -0
  55. package/dist/pty.node-Y3N2XKYG.js +14 -0
  56. package/dist/run.js +3 -1
  57. package/dist/serve.js +3 -1
  58. package/dist/server-BFUQR7MX.js +17 -0
  59. package/dist/session-6RNXZNG6.js +14 -0
  60. package/dist/{chunk-2ANK3QEN.js → worktree-QHQHX3SG.js} +3 -1
  61. package/package.json +83 -50
  62. package/patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch +164 -0
  63. package/patches/@ai-sdk%2Fanthropic@3.0.111.patch +528 -0
  64. package/patches/@ai-sdk%2Fgoogle@3.0.73.patch +69 -0
  65. package/patches/@ai-sdk%2Fgroq@3.0.31.patch +79 -0
  66. package/patches/@ai-sdk%2Fmistral@3.0.51.patch +714 -0
  67. package/patches/@ai-sdk%2Fopenai-compatible@2.0.41.patch +39 -0
  68. package/patches/@ai-sdk%2Fopenai@3.0.88.patch +280 -0
  69. package/patches/@ai-sdk%2Fxai@3.0.139.patch +296 -0
  70. package/patches/@modelcontextprotocol%2Fsdk@1.29.0.patch +647 -0
  71. package/patches/@npmcli%2Fagent@4.0.2.patch +13 -0
  72. package/patches/@silvia-odwyer%2Fphoton-node@0.3.4.patch +285 -0
  73. package/patches/effect@4.0.0-beta.83.patch +57 -0
  74. package/patches/gcp-metadata@8.1.2.patch +14 -0
  75. package/patches/pacote@21.5.0.patch +18 -0
  76. package/postinstall.cjs +146 -0
  77. package/dist/chunk-5P5WLADX.js +0 -18
  78. package/dist/chunk-7KKA6WBY.js +0 -12
  79. package/dist/chunk-A7EXZZPC.js +0 -12
  80. package/dist/chunk-CZVKIDQZ.js +0 -12
  81. package/dist/chunk-FXLFZ5DL.js +0 -12
  82. package/dist/chunk-G752V4OP.js +0 -2187
  83. package/dist/chunk-GBXMNWYD.js +0 -18
  84. package/dist/chunk-IR6PDN4W.js +0 -13
  85. package/dist/chunk-M4CB72HE.js +0 -13
  86. package/dist/chunk-MBZTOEAD.js +0 -12
  87. package/dist/default-u_dwuiYb-652AQZKX.js +0 -12
  88. package/dist/effect-QlVUlMFu-JVYEXAZL.js +0 -12
  89. package/dist/log-MVJ7H4K5.js +0 -12
  90. package/dist/pty.node-X2EITEZ4.js +0 -12
  91. package/dist/registry-ISXIFNPG.js +0 -12
  92. package/dist/run-AUCA7EKA.js +0 -20
  93. package/dist/run-service-MT3LOWLS.js +0 -12
  94. package/dist/schema-YWIVP7UR.js +0 -12
  95. package/dist/server-PIYRZLBG.js +0 -12
  96. package/dist/session-ACBIJ2VE.js +0 -12
  97. package/dist/share-next-MPGA7EO4.js +0 -12
  98. package/dist/sury-CWZTCd75-3YHH6KVI.js +0 -12
  99. package/dist/typebox-Dei93FPO-GLI7OCTY.js +0 -12
  100. package/dist/valibot-D_HTw1Gn-E5NKVIOV.js +0 -12
  101. package/dist/worktree-E4DGSBLJ.js +0 -12
  102. package/dist/zod-DSgpEGAE-DSH6V7MG.js +0 -12
  103. package/packages/opencode/migration/20260127222353_familiar_lady_ursula/migration.sql +0 -90
  104. package/packages/opencode/migration/20260127222353_familiar_lady_ursula/snapshot.json +0 -796
  105. package/packages/opencode/migration/20260211171708_add_project_commands/migration.sql +0 -1
  106. package/packages/opencode/migration/20260211171708_add_project_commands/snapshot.json +0 -806
  107. package/packages/opencode/migration/20260213144116_wakeful_the_professor/migration.sql +0 -11
  108. package/packages/opencode/migration/20260213144116_wakeful_the_professor/snapshot.json +0 -897
  109. package/packages/opencode/migration/20260225215848_workspace/migration.sql +0 -7
  110. package/packages/opencode/migration/20260225215848_workspace/snapshot.json +0 -959
  111. package/packages/opencode/migration/20260227213759_add_session_workspace_id/migration.sql +0 -2
  112. package/packages/opencode/migration/20260227213759_add_session_workspace_id/snapshot.json +0 -983
  113. package/packages/opencode/migration/20260228203230_blue_harpoon/migration.sql +0 -17
  114. package/packages/opencode/migration/20260228203230_blue_harpoon/snapshot.json +0 -1102
  115. package/packages/opencode/migration/20260303231226_add_workspace_fields/migration.sql +0 -5
  116. package/packages/opencode/migration/20260303231226_add_workspace_fields/snapshot.json +0 -1013
  117. package/packages/opencode/migration/20260309230000_move_org_to_state/migration.sql +0 -3
  118. package/packages/opencode/migration/20260309230000_move_org_to_state/snapshot.json +0 -1156
  119. package/packages/opencode/migration/20260312043431_session_message_cursor/migration.sql +0 -4
  120. package/packages/opencode/migration/20260312043431_session_message_cursor/snapshot.json +0 -1168
  121. package/packages/opencode/migration/20260323234822_events/migration.sql +0 -13
  122. package/packages/opencode/migration/20260323234822_events/snapshot.json +0 -1271
  123. package/packages/opencode/migration/20260409000000_add_session_metadata/migration.sql +0 -1
@@ -8,5 +8,7 @@ if (typeof globalThis.Bun === 'undefined') {
8
8
  }
9
9
  if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
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);
11
13
 
12
- import{a as t}from"./chunk-FXLFZ5DL.js";import{b as n}from"./chunk-CZVKIDQZ.js";import{a as e}from"./chunk-MBZTOEAD.js";function p(){return async(a,o)=>t(await n(a,o.options),o)}e(p,"getToOpenAPISchemaFn");export{p as a};
14
+ import"./chunk-RHIWAYN5.js";import{Effect as r}from"effect";var a={id:"20260601202201_amazing_prowler",up(i){return r.gen(function*(){yield*i.run("DROP TABLE `permission`;")})}};export{a as default};
@@ -0,0 +1,14 @@
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 r={id:"20260602002951_lowly_union_jack",up(e){return i.gen(function*(){yield*e.run("\n CREATE TABLE `permission` (\n `id` text PRIMARY KEY,\n `project_id` text NOT NULL,\n `action` text NOT NULL,\n `resource` text NOT NULL,\n `time_created` integer NOT NULL,\n `time_updated` integer 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("CREATE UNIQUE INDEX `permission_project_action_resource_idx` ON `permission` (`project_id`,`action`,`resource`);")})}};export{r as default};
@@ -0,0 +1,14 @@
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:"20260602182828_add_project_directories",up(t){return e.gen(function*(){yield*t.run("\n CREATE TABLE `project_directory` (\n `project_id` text NOT NULL,\n `directory` text NOT NULL,\n `type` text NOT NULL,\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 ")})}};export{i as default};
@@ -0,0 +1,14 @@
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 s}from"effect";var _={id:"20260603001617_session_message_projection_indexes",up(e){return s.gen(function*(){yield*e.run("DROP INDEX IF EXISTS `session_message_session_idx`;"),yield*e.run("DROP INDEX IF EXISTS `session_message_session_type_idx`;"),yield*e.run("CREATE INDEX `event_aggregate_seq_idx` ON `event` (`aggregate_id`,`seq`);"),yield*e.run("CREATE INDEX `session_message_session_time_created_id_idx` ON `session_message` (`session_id`,`time_created`,`id`);"),yield*e.run("CREATE INDEX `session_message_session_type_time_created_id_idx` ON `session_message` (`session_id`,`type`,`time_created`,`id`);")})}};export{_ as default};
@@ -0,0 +1,14 @@
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 n={id:"20260603040000_session_message_projection_order",up(s){return e.gen(function*(){yield*s.run("DELETE FROM `session_message`;"),yield*s.run("ALTER TABLE `session_message` ADD COLUMN `seq` integer NOT NULL;"),yield*s.run("DROP INDEX IF EXISTS `session_message_session_type_time_created_id_idx`;"),yield*s.run("CREATE INDEX `session_message_session_seq_idx` ON `session_message` (`session_id`,`seq`);"),yield*s.run("CREATE INDEX `session_message_session_type_seq_idx` ON `session_message` (`session_id`,`type`,`seq`);")})}};export{n as default};
@@ -0,0 +1,14 @@
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 t={id:"20260603141458_session_input_inbox",up(i){return e.gen(function*(){yield*i.run("\n CREATE TABLE `session_input` (\n `seq` integer PRIMARY KEY AUTOINCREMENT,\n `id` text NOT NULL UNIQUE,\n `session_id` text NOT NULL,\n `prompt` text NOT NULL,\n `delivery` text 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*i.run("CREATE INDEX `session_input_session_pending_seq_idx` ON `session_input` (`session_id`,`promoted_seq`,`seq`);")})}};export{t as default};
@@ -0,0 +1,14 @@
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 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,14 @@
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 s}from"effect";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,14 @@
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 s}from"effect";var t={id:"20260605003541_add_session_context_snapshot",up(e){return s.gen(function*(){yield*e.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};
@@ -8,5 +8,7 @@ if (typeof globalThis.Bun === 'undefined') {
8
8
  }
9
9
  if (typeof globalThis.__name === 'undefined') { globalThis.__name = (t, n) => { Object.defineProperty(t, 'name', { value: n, configurable: true }); return t; }; }
10
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);
11
13
 
12
- import{a as t}from"./chunk-CZVKIDQZ.js";import{a as n}from"./chunk-MBZTOEAD.js";var c=new t("zod v4");async function d(){return async(r,e)=>{let o;if("_zod"in r)try{o=(await import("zod/v4/core")).toJSONSchema}catch{throw c}else try{o=(await import("zod-to-json-schema")).zodToJsonSchema}catch{throw new t("zod-to-json-schema")}return o(r,e)}}n(d,"getToJsonSchemaFn");export{d as default};
14
+ import"./chunk-RHIWAYN5.js";import{Effect as e}from"effect";var a={id:"20260605042240_add_context_epoch_agent",up(t){return e.gen(function*(){yield*t.run("ALTER TABLE `session_context_epoch` ADD `agent` text DEFAULT 'build' NOT NULL;")})}};export{a as default};
@@ -0,0 +1,14 @@
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 t}from"effect";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,14 @@
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 t}from"effect";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,14 @@
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 r}from"effect";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,14 @@
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 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,14 @@
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 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,14 @@
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 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,14 @@
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{B as Z,C as n,D as _,F as oo,G as ro,b as x,e as E,f as N,h as B,i as D,j as V,k as j,l as O,n as W,o as w,p as G,r as Q,s as U,v as q,x as H,z as Y}from"./chunk-4RFMKEKM.js";import"./chunk-VURLSDCB.js";import{E as eo,F as mo,G as to,y as J}from"./chunk-MKEMZFJI.js";import"./chunk-4K2RXRZL.js";import{N as A,c as g,e as b,m as R}from"./chunk-Z5TLIUAI.js";import{b as z,f as K,g as X,w as $}from"./chunk-OWMG4NNF.js";import{D as T,n as S,r as h,u as C,v as F,w as L,y as I}from"./chunk-4FEBIOI5.js";import{c as s}from"./chunk-QRABYJKL.js";import{B as f,Sa as P,Wa as v,Xa as k,Ya as M,da as a,ea as u,ha as c,la as l,na as y}from"./chunk-OMDJ6ZZ2.js";import{Ma as d,P as p,a as i}from"./chunk-BM2C7NHL.js";import{a as t}from"./chunk-RHIWAYN5.js";import{Layer as no,ManagedRuntime as io}from"effect";var po=n.build(i.group([c.node,d.node,p.node,y.node,l.node,P.node,k.node,b.node,R.node,eo.node,S.node,mo.node,x.node,to.node,L.node,F.node,E.node,C.node,N.node,A.node,f.node,B.node,g.node,M.node,v.node,D.node,O.node,W.node,w.node,j.node,H.node,G.node,V.node,Q.node,T.node,I.node,z.node,J.node,q.node,U.node,X.node,K.node,Y.node,_.node,$.node,oo.node,Z.node,ro.node])).pipe(no.provideMerge(n.build(s.node)),no.provideMerge(u)),r=io.make(po,{memoMap:a}),e=t(o=>h(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};