@opencode/server 2.2.2 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/api.d.ts +191 -1
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{workerd-ze052fvn.js → event-feed-04phqjtk.js} +17 -15
  5. package/dist/chunks/{workerd-059rbh9c.js → event-feed-059rbh9c.js} +1 -1
  6. package/dist/chunks/{workerd-zmgfywqd.js → event-feed-05c5061t.js} +1 -1
  7. package/dist/chunks/{workerd-r5696se6.js → event-feed-0e81et3m.js} +3 -3
  8. package/dist/chunks/{workerd-0pbbhyf6.js → event-feed-0ey2b45p.js} +2 -2
  9. package/dist/chunks/event-feed-0fv515j7.js +144 -0
  10. package/dist/chunks/{workerd-wqv43pj9.js → event-feed-0j6zxxn8.js} +2 -2
  11. package/dist/chunks/{workerd-zyntahe8.js → event-feed-0n4tjm17.js} +1 -1
  12. package/dist/chunks/event-feed-2wexxjwf.js +61 -0
  13. package/dist/chunks/{workerd-0q7s66m2.js → event-feed-39nnfjx1.js} +4 -4
  14. package/dist/chunks/{workerd-370cpmna.js → event-feed-4p2y0qs3.js} +2 -2
  15. package/dist/chunks/{workerd-gqq6kfhc.js → event-feed-50bbk3b2.js} +3 -3
  16. package/dist/chunks/{workerd-zhns4s2s.js → event-feed-5dbnrgeg.js} +2 -2
  17. package/dist/chunks/{workerd-7b9xm1qg.js → event-feed-7b9xm1qg.js} +1 -1
  18. package/dist/chunks/{workerd-5z5anmwp.js → event-feed-89egwzf3.js} +2 -2
  19. package/dist/chunks/{workerd-2qjvs0kv.js → event-feed-8wqj6mpn.js} +4 -4
  20. package/dist/chunks/{workerd-vtfzy3at.js → event-feed-9grnt8dc.js} +2 -2
  21. package/dist/chunks/{workerd-fvqb5t8b.js → event-feed-axe8xgk8.js} +27 -9
  22. package/dist/chunks/{workerd-yet0vexm.js → event-feed-b3bmdkga.js} +1 -1
  23. package/dist/chunks/{workerd-xpg37vzc.js → event-feed-b4mqtccx.js} +2 -2
  24. package/dist/chunks/{workerd-7cd61xtm.js → event-feed-dx89xydc.js} +2 -2
  25. package/dist/chunks/{workerd-2835150m.js → event-feed-et00mhwf.js} +2 -2
  26. package/dist/chunks/{workerd-rxyx8sa0.js → event-feed-f8r9p2vr.js} +2 -2
  27. package/dist/chunks/{workerd-wh109kze.js → event-feed-g2961dtz.js} +8 -8
  28. package/dist/chunks/{workerd-jc2vwkyw.js → event-feed-h1thjy6x.js} +2 -2
  29. package/dist/chunks/{workerd-gk0yxcp6.js → event-feed-htyf2qs7.js} +1 -1
  30. package/dist/chunks/{workerd-0e4fm4yw.js → event-feed-hx8bsq9d.js} +1 -1
  31. package/dist/chunks/{workerd-j4at0y5c.js → event-feed-j4at0y5c.js} +1 -1
  32. package/dist/chunks/{workerd-50xc6x42.js → event-feed-kg0ybx4v.js} +3 -3
  33. package/dist/chunks/{workerd-5553qfcy.js → event-feed-m119esdv.js} +3 -3
  34. package/dist/chunks/{workerd-yemng8y6.js → event-feed-m9ezm2eq.js} +6 -6
  35. package/dist/chunks/{workerd-1s3664te.js → event-feed-mzqcpmk1.js} +4 -4
  36. package/dist/chunks/{workerd-kqr36gas.js → event-feed-mzs0n5xz.js} +7 -7
  37. package/dist/chunks/{workerd-4gk9fc6f.js → event-feed-n1zdbfv7.js} +29 -4
  38. package/dist/chunks/{workerd-71pkxez6.js → event-feed-ndcq61v8.js} +35 -35
  39. package/dist/chunks/{workerd-7tewdwsb.js → event-feed-nz17qv97.js} +2 -2
  40. package/dist/chunks/{workerd-xbqm7mpj.js → event-feed-q44yktpv.js} +2 -2
  41. package/dist/chunks/{workerd-20b2yx1f.js → event-feed-qfyg9gb7.js} +7 -7
  42. package/dist/chunks/{workerd-vfkjeyp3.js → event-feed-r6xkfcdx.js} +1 -1
  43. package/dist/chunks/{workerd-f4exzdsf.js → event-feed-s62wjkvx.js} +2 -2
  44. package/dist/chunks/{workerd-skcryrty.js → event-feed-s9tkswmw.js} +2 -2
  45. package/dist/chunks/{workerd-7x1re4zg.js → event-feed-v8aqacn3.js} +2 -2
  46. package/dist/chunks/{workerd-sqxx1p54.js → event-feed-vbgqk0mr.js} +2 -2
  47. package/dist/chunks/{workerd-vvp99hc9.js → event-feed-x4b2rtcb.js} +1 -1
  48. package/dist/chunks/{workerd-7dtbad8d.js → event-feed-z3e7v67k.js} +7 -7
  49. package/dist/chunks/{workerd-74kxthdf.js → event-feed-zbe9jfhy.js} +1 -1
  50. package/dist/chunks/{workerd-z9kgby92.js → event-feed-zvbhqxt5.js} +4 -4
  51. package/dist/cors.js +1 -1
  52. package/dist/event-feed.js +5 -5
  53. package/dist/fetch.js +54 -53
  54. package/dist/handlers/agent.js +6 -6
  55. package/dist/handlers/artifact.d.ts +62 -0
  56. package/dist/handlers/artifact.js +8 -0
  57. package/dist/handlers/command.js +6 -6
  58. package/dist/handlers/config.js +6 -6
  59. package/dist/handlers/credential.d.ts +3 -1
  60. package/dist/handlers/credential.js +7 -6
  61. package/dist/handlers/debug.js +6 -6
  62. package/dist/handlers/event.js +7 -7
  63. package/dist/handlers/form.js +6 -6
  64. package/dist/handlers/fs.js +6 -6
  65. package/dist/handlers/generate.js +6 -6
  66. package/dist/handlers/integration.d.ts +5 -0
  67. package/dist/handlers/integration.js +9 -7
  68. package/dist/handlers/location.js +6 -6
  69. package/dist/handlers/mcp.js +8 -8
  70. package/dist/handlers/media.js +1 -1
  71. package/dist/handlers/message.js +7 -7
  72. package/dist/handlers/migration.js +6 -6
  73. package/dist/handlers/model.js +6 -6
  74. package/dist/handlers/permission.js +6 -6
  75. package/dist/handlers/persistent-pty.d.ts +1 -1
  76. package/dist/handlers/persistent-pty.js +11 -10
  77. package/dist/handlers/plugin.js +6 -6
  78. package/dist/handlers/project.js +6 -6
  79. package/dist/handlers/provider.js +6 -6
  80. package/dist/handlers/pty-socket.js +1 -1
  81. package/dist/handlers/pty.js +8 -8
  82. package/dist/handlers/reference.js +6 -6
  83. package/dist/handlers/rpc.js +6 -6
  84. package/dist/handlers/schedule.d.ts +30 -0
  85. package/dist/handlers/schedule.js +2 -2
  86. package/dist/handlers/server.js +9 -9
  87. package/dist/handlers/session-error.js +1 -1
  88. package/dist/handlers/session.js +7 -7
  89. package/dist/handlers/shell.js +6 -6
  90. package/dist/handlers/skill.js +6 -6
  91. package/dist/handlers/usage.js +6 -6
  92. package/dist/handlers/vcs.js +6 -6
  93. package/dist/handlers/voice.js +6 -6
  94. package/dist/handlers/websearch.js +6 -6
  95. package/dist/handlers/worktree.js +6 -6
  96. package/dist/handlers.d.ts +1 -1
  97. package/dist/handlers.js +48 -47
  98. package/dist/location.js +4 -4
  99. package/dist/media-uri.js +1 -1
  100. package/dist/middleware/authorization.js +2 -2
  101. package/dist/middleware/form-location.js +3 -3
  102. package/dist/middleware/schema-error.js +1 -1
  103. package/dist/middleware/session-location.js +3 -3
  104. package/dist/pairing.js +3 -3
  105. package/dist/process.js +57 -56
  106. package/dist/request-tracing.js +1 -1
  107. package/dist/routes.d.ts +3 -2
  108. package/dist/routes.js +51 -50
  109. package/dist/server-info.js +5 -5
  110. package/dist/service-status.js +3 -3
  111. package/dist/workerd.d.ts +4 -3
  112. package/dist/workerd.js +69 -54
  113. package/package.json +9 -9
  114. package/dist/chunks/workerd-hdwd22w5.js +0 -47
  115. /package/dist/chunks/{workerd-9rqn6x4v.js → event-feed-9rqn6x4v.js} +0 -0
  116. /package/dist/chunks/{workerd-bd8755ek.js → event-feed-bd8755ek.js} +0 -0
  117. /package/dist/chunks/{workerd-h6rt5k9s.js → event-feed-h6rt5k9s.js} +0 -0
  118. /package/dist/chunks/{workerd-n321d8vm.js → event-feed-n321d8vm.js} +0 -0
  119. /package/dist/chunks/{workerd-q4bn6dy8.js → event-feed-q4bn6dy8.js} +0 -0
  120. /package/dist/chunks/{workerd-smaf4a18.js → event-feed-smaf4a18.js} +0 -0
  121. /package/dist/chunks/{workerd-xthc02cw.js → event-feed-xthc02cw.js} +0 -0
  122. /package/dist/chunks/{workerd-yc7nft6q.js → event-feed-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@ import { LocationMiddleware } from "./location";
2
2
  import { FormLocationMiddleware } from "./middleware/form-location";
3
3
  import { SessionLocationMiddleware } from "./middleware/session-location";
4
4
  export declare const Api: import("@opencode/protocol/api").Api<LocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, FormLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, SessionLocationMiddleware, import("effect/http-api/HttpApiMiddleware").HttpApiMiddleware<import("@opencode/core/instance").Services, readonly [typeof import("@opencode/protocol/errors").InvalidRequestError, typeof import("@opencode/protocol/errors").SessionNotFoundError, typeof import("@opencode/protocol/errors").LocationNotFoundError], never>, import("effect/http-api/HttpApiGroup").HttpApiGroup<"server.event", import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
5
- readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
5
+ readonly types: import("effect/Schema").optional<import("effect/Schema").ArrayEnsure<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ("agent.updated" | "artifact.updated" | "command.updated" | "config.updated" | "credential.switched" | "credential.updated" | "filesystem.changed" | "form.cancelled" | "form.created" | "form.replied" | "installation.update-available" | "installation.updated" | "integration.updated" | "location.shutdown" | "mcp.resources.changed" | "mcp.status.changed" | "model.updated" | "models-dev.refreshed" | "permission.asked" | "permission.replied" | "persistent-pty.added" | "persistent-pty.removed" | "persistent-pty.updated" | "plugin.updated" | "project.updated" | "provider.updated" | "pty.created" | "pty.deleted" | "pty.exited" | "pty.updated" | "reference.updated" | "session.agent.selected" | "session.archived" | "session.compaction.delta" | "session.compaction.ended" | "session.compaction.failed" | "session.compaction.started" | "session.created" | "session.deleted" | "session.execution.failed" | "session.execution.interrupted" | "session.execution.started" | "session.execution.succeeded" | "session.forked" | "session.idle" | "session.inbox.cancelled" | "session.inbox.delivered" | "session.inbox.delivery.changed" | "session.inbox.enqueued" | "session.instructions.updated" | "session.metadata.updated" | "session.model.selected" | "session.moved" | "session.permissions" | "session.reasoning.delta" | "session.reasoning.ended" | "session.reasoning.started" | "session.renamed" | "session.retry.scheduled" | "session.revert.cleared" | "session.revert.committed" | "session.revert.staged" | "session.shell.ended" | "session.shell.started" | "session.skill.activated" | "session.status" | "session.step.ended" | "session.step.failed" | "session.step.started" | "session.step.streamed" | "session.synthetic" | "session.text.delta" | "session.text.ended" | "session.text.started" | "session.tool.called" | "session.tool.failed" | "session.tool.input.delta" | "session.tool.input.ended" | "session.tool.input.started" | "session.tool.progress" | "session.tool.success" | "session.unarchived" | "session.usage.updated" | "session.viewed" | "shell.created" | "shell.deleted" | "shell.exited" | "skill.updated" | "tui.command.execute" | "tui.prompt.append" | "tui.session.select" | "tui.toast.show" | "vcs.branch.updated" | "websearch.updated" | "worktree.resolved" | "worktree.updated")[]>, import("effect/Schema").TemplateLiteral<readonly ["rpc.", import("effect/Schema").String]>]>>>;
6
6
  }>>, never, never, import("effect/http-api/HttpApiSchema").StreamSse<import("effect/http-api/HttpApiSchema").SseEventFromData<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
7
7
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
8
8
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -335,6 +335,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
335
335
  google: string & import("effect/Brand").Brand<"Provider.ID">;
336
336
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
337
337
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
338
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
338
339
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
339
340
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
340
341
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -357,6 +358,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
357
358
  google: string & import("effect/Brand").Brand<"Provider.ID">;
358
359
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
359
360
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
361
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
360
362
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
361
363
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
362
364
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -425,6 +427,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
425
427
  google: string & import("effect/Brand").Brand<"Provider.ID">;
426
428
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
427
429
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
430
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
428
431
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
429
432
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
430
433
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -447,6 +450,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
447
450
  google: string & import("effect/Brand").Brand<"Provider.ID">;
448
451
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
449
452
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
453
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
450
454
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
451
455
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
452
456
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -569,6 +573,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
569
573
  google: string & import("effect/Brand").Brand<"Provider.ID">;
570
574
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
571
575
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
576
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
572
577
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
573
578
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
574
579
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -592,6 +597,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
592
597
  google: string & import("effect/Brand").Brand<"Provider.ID">;
593
598
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
594
599
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
600
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
595
601
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
596
602
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
597
603
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -614,6 +620,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
614
620
  google: string & import("effect/Brand").Brand<"Provider.ID">;
615
621
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
616
622
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
623
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
617
624
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
618
625
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
619
626
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -649,6 +656,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
649
656
  google: string & import("effect/Brand").Brand<"Provider.ID">;
650
657
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
651
658
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
659
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
652
660
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
653
661
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
654
662
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -672,6 +680,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
672
680
  google: string & import("effect/Brand").Brand<"Provider.ID">;
673
681
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
674
682
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
683
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
675
684
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
676
685
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
677
686
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -694,6 +703,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
694
703
  google: string & import("effect/Brand").Brand<"Provider.ID">;
695
704
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
696
705
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
706
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
697
707
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
698
708
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
699
709
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2468,6 +2478,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2468
2478
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2469
2479
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2470
2480
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2481
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2471
2482
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2472
2483
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2473
2484
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -2510,6 +2521,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2510
2521
  google: string & import("effect/Brand").Brand<"Provider.ID">;
2511
2522
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
2512
2523
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
2524
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
2513
2525
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
2514
2526
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
2515
2527
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -3874,6 +3886,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3874
3886
  google: string & import("effect/Brand").Brand<"Provider.ID">;
3875
3887
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
3876
3888
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
3889
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
3877
3890
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
3878
3891
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
3879
3892
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -3896,6 +3909,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3896
3909
  google: string & import("effect/Brand").Brand<"Provider.ID">;
3897
3910
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
3898
3911
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
3912
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
3899
3913
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
3900
3914
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
3901
3915
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -3956,6 +3970,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3956
3970
  google: string & import("effect/Brand").Brand<"Provider.ID">;
3957
3971
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
3958
3972
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
3973
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
3959
3974
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
3960
3975
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
3961
3976
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -3978,6 +3993,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3978
3993
  google: string & import("effect/Brand").Brand<"Provider.ID">;
3979
3994
  googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
3980
3995
  githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
3996
+ claudeAgent: string & import("effect/Brand").Brand<"Provider.ID">;
3981
3997
  amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
3982
3998
  azure: string & import("effect/Brand").Brand<"Provider.ID">;
3983
3999
  openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -5110,6 +5126,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5110
5126
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5111
5127
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5112
5128
  };
5129
+ readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
5113
5130
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5114
5131
  readonly size: import("effect/Schema").Struct<{
5115
5132
  readonly cols: import("effect/Schema").Int;
@@ -5144,6 +5161,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5144
5161
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5145
5162
  create: () => string & import("effect/Brand").Brand<"SessionID">;
5146
5163
  };
5164
+ readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
5147
5165
  readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5148
5166
  readonly size: import("effect/Schema").Struct<{
5149
5167
  readonly cols: import("effect/Schema").Int;
@@ -5203,6 +5221,98 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5203
5221
  ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
5204
5222
  };
5205
5223
  }>;
5224
+ }, import("effect/Schema").Struct<{
5225
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5226
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
5227
+ };
5228
+ readonly created: import("effect/Schema").Finite;
5229
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
5230
+ readonly type: import("effect/Schema").Literal<"persistent-pty.updated">;
5231
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
5232
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
5233
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5234
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5235
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5236
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5237
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5238
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5239
+ }>, never, never>;
5240
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
5241
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
5242
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5243
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5244
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5245
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5246
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5247
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5248
+ }>, never, never>;
5249
+ }>>, never, never>;
5250
+ readonly data: import("effect/Schema").Struct<{
5251
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5252
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5253
+ };
5254
+ readonly terminal: import("effect/Schema").Struct<{
5255
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5256
+ create: () => string & import("effect/Brand").Brand<"PtyID">;
5257
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
5258
+ };
5259
+ readonly title: import("effect/Schema").String;
5260
+ readonly command: import("effect/Schema").String;
5261
+ readonly args: import("effect/Schema").$Array<import("effect/Schema").String>;
5262
+ readonly cwd: import("effect/Schema").String;
5263
+ readonly status: import("effect/Schema").Literals<readonly ["running", "exited"]>;
5264
+ readonly pid: import("effect/Schema").Int;
5265
+ readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5266
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5267
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5268
+ };
5269
+ readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
5270
+ readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5271
+ readonly size: import("effect/Schema").Struct<{
5272
+ readonly cols: import("effect/Schema").Int;
5273
+ readonly rows: import("effect/Schema").Int;
5274
+ }>;
5275
+ readonly output: import("effect/Schema").Struct<{
5276
+ readonly head: import("effect/Schema").Int;
5277
+ readonly tail: import("effect/Schema").Int;
5278
+ }>;
5279
+ }>;
5280
+ }>;
5281
+ }> & {
5282
+ type: "persistent-pty.updated";
5283
+ durability: "ephemeral";
5284
+ durable: undefined;
5285
+ data: import("effect/Schema").Struct<{
5286
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5287
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5288
+ };
5289
+ readonly terminal: import("effect/Schema").Struct<{
5290
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "PtyID"> & {
5291
+ create: () => string & import("effect/Brand").Brand<"PtyID">;
5292
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
5293
+ };
5294
+ readonly title: import("effect/Schema").String;
5295
+ readonly command: import("effect/Schema").String;
5296
+ readonly args: import("effect/Schema").$Array<import("effect/Schema").String>;
5297
+ readonly cwd: import("effect/Schema").String;
5298
+ readonly status: import("effect/Schema").Literals<readonly ["running", "exited"]>;
5299
+ readonly pid: import("effect/Schema").Int;
5300
+ readonly exitCode: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
5301
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
5302
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5303
+ };
5304
+ readonly userTitle: import("effect/Schema").NullOr<import("effect/Schema").String>;
5305
+ readonly foregroundProcess: import("effect/Schema").NullOr<import("effect/Schema").String>;
5306
+ readonly size: import("effect/Schema").Struct<{
5307
+ readonly cols: import("effect/Schema").Int;
5308
+ readonly rows: import("effect/Schema").Int;
5309
+ }>;
5310
+ readonly output: import("effect/Schema").Struct<{
5311
+ readonly head: import("effect/Schema").Int;
5312
+ readonly tail: import("effect/Schema").Int;
5313
+ }>;
5314
+ }>;
5315
+ }>;
5206
5316
  }, import("effect/Schema").Struct<{
5207
5317
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5208
5318
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -5769,6 +5879,38 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
5769
5879
  durability: "ephemeral";
5770
5880
  durable: undefined;
5771
5881
  data: import("effect/Schema").Struct<{}>;
5882
+ }, import("effect/Schema").Struct<{
5883
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5884
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
5885
+ };
5886
+ readonly created: import("effect/Schema").Finite;
5887
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
5888
+ readonly type: import("effect/Schema").Literal<"artifact.updated">;
5889
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
5890
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
5891
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5892
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5893
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5894
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5895
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5896
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5897
+ }>, never, never>;
5898
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
5899
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
5900
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5901
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5902
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5903
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
5904
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
5905
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
5906
+ }>, never, never>;
5907
+ }>>, never, never>;
5908
+ readonly data: import("effect/Schema").Struct<{}>;
5909
+ }> & {
5910
+ type: "artifact.updated";
5911
+ durability: "ephemeral";
5912
+ durable: undefined;
5913
+ data: import("effect/Schema").Struct<{}>;
5772
5914
  }, import("effect/Schema").Struct<{
5773
5915
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5774
5916
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -7565,6 +7707,18 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7565
7707
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7566
7708
  } | undefined;
7567
7709
  readonly data: {};
7710
+ } | {
7711
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7712
+ readonly created: number;
7713
+ readonly metadata?: {
7714
+ readonly [x: string]: unknown;
7715
+ } | undefined;
7716
+ readonly type: "artifact.updated";
7717
+ readonly location?: {
7718
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7719
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7720
+ } | undefined;
7721
+ readonly data: {};
7568
7722
  } | {
7569
7723
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7570
7724
  readonly created: number;
@@ -8044,6 +8198,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8044
8198
  readonly pid: number;
8045
8199
  readonly exitCode?: number | undefined;
8046
8200
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8201
+ readonly userTitle: string | null;
8047
8202
  readonly foregroundProcess: string | null;
8048
8203
  readonly size: {
8049
8204
  readonly cols: number;
@@ -8070,6 +8225,41 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
8070
8225
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8071
8226
  readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
8072
8227
  };
8228
+ } | {
8229
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8230
+ readonly created: number;
8231
+ readonly metadata?: {
8232
+ readonly [x: string]: unknown;
8233
+ } | undefined;
8234
+ readonly type: "persistent-pty.updated";
8235
+ readonly location?: {
8236
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8237
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8238
+ } | undefined;
8239
+ readonly data: {
8240
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8241
+ readonly terminal: {
8242
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
8243
+ readonly title: string;
8244
+ readonly command: string;
8245
+ readonly args: readonly string[];
8246
+ readonly cwd: string;
8247
+ readonly status: "exited" | "running";
8248
+ readonly pid: number;
8249
+ readonly exitCode?: number | undefined;
8250
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
8251
+ readonly userTitle: string | null;
8252
+ readonly foregroundProcess: string | null;
8253
+ readonly size: {
8254
+ readonly cols: number;
8255
+ readonly rows: number;
8256
+ };
8257
+ readonly output: {
8258
+ readonly head: number;
8259
+ readonly tail: number;
8260
+ };
8261
+ };
8262
+ };
8073
8263
  } | {
8074
8264
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8075
8265
  readonly created: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/workerd-r5696se6.js";
4
- import"./chunks/workerd-gk0yxcp6.js";
5
- import"./chunks/workerd-yet0vexm.js";
6
- import"./chunks/workerd-gqq6kfhc.js";
7
- import"./chunks/workerd-smaf4a18.js";
3
+ } from "./chunks/event-feed-0e81et3m.js";
4
+ import"./chunks/event-feed-b3bmdkga.js";
5
+ import"./chunks/event-feed-htyf2qs7.js";
6
+ import"./chunks/event-feed-50bbk3b2.js";
7
+ import"./chunks/event-feed-smaf4a18.js";
8
8
  export {
9
9
  Api2 as Api
10
10
  };
package/dist/auth.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  verifySession2,
8
8
  sessionCookieName2,
9
9
  exports_auth
10
- } from "./chunks/workerd-j4at0y5c.js";
10
+ } from "./chunks/event-feed-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,36 +1,36 @@
1
1
  import {
2
- layer3
3
- } from "./workerd-gqq6kfhc.js";
2
+ layer4
3
+ } from "./event-feed-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./workerd-gk0yxcp6.js";
6
+ } from "./event-feed-htyf2qs7.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./workerd-yet0vexm.js";
9
+ } from "./event-feed-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./workerd-r5696se6.js";
12
+ } from "./event-feed-0e81et3m.js";
13
13
  import {
14
14
  Config2
15
- } from "./workerd-j4at0y5c.js";
15
+ } from "./event-feed-j4at0y5c.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./workerd-q4bn6dy8.js";
18
+ } from "./event-feed-q4bn6dy8.js";
19
19
  import {
20
- layer4
21
- } from "./workerd-7dtbad8d.js";
20
+ layer2
21
+ } from "./event-feed-z3e7v67k.js";
22
22
  import {
23
23
  node2
24
- } from "./workerd-kqr36gas.js";
24
+ } from "./event-feed-mzs0n5xz.js";
25
25
  import {
26
26
  handlers2
27
- } from "./workerd-71pkxez6.js";
27
+ } from "./event-feed-ndcq61v8.js";
28
28
  import {
29
29
  authorizationLayer2
30
- } from "./workerd-7b9xm1qg.js";
30
+ } from "./event-feed-7b9xm1qg.js";
31
31
  import {
32
32
  schemaErrorLayer2
33
- } from "./workerd-bd8755ek.js";
33
+ } from "./event-feed-bd8755ek.js";
34
34
 
35
35
  // src/routes.ts
36
36
  import { Database } from "@opencode/core/database/database";
@@ -55,6 +55,7 @@ import { SessionTransfer } from "@opencode/core/session/transfer";
55
55
  import { InstructionEntry } from "@opencode/core/session/instruction-entry";
56
56
  import { ShellSelect } from "@opencode/core/shell/select";
57
57
  import { Job } from "@opencode/core/job";
58
+ import { KV } from "@opencode/core/kv";
58
59
  import { Mcp } from "@opencode/core/mcp/index";
59
60
  import { Global } from "@opencode/util/global";
60
61
  import { FSUtil } from "@opencode/util/fs-util";
@@ -77,6 +78,7 @@ var applicationServiceNodes = [
77
78
  Global.node,
78
79
  FSUtil.node,
79
80
  Database.node,
81
+ KV.node,
80
82
  Bus.node,
81
83
  EventLogger.node,
82
84
  httpClient,
@@ -151,8 +153,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
151
153
  })) : build(overrides);
152
154
  return serviceLayer.pipe(Layer.flatMap((context) => {
153
155
  const services = Layer.succeedContext(context);
154
- const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer4(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
155
- const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
156
+ const requestServices = Layer.merge(Layer.succeedContext(Context.pick(Database.Service, Credential.Service, PermissionSaved.Service, PluginUpdate.Service, Project.Service, WellKnown.Service)(context)), layer2(serviceURLs, Context.get(context, Global.Service).tmp, options.app));
157
+ const api = HttpApiBuilder.layer(Api2, { openapiPath: "/openapi.json" }).pipe(Layer.provide(handlers2.pipe(Layer.provide(services), Layer.provide(Layer.succeed(CorsConfig2, options)))), Layer.provide(formLocationLayer2), Layer.provide(sessionLocationLayer2), Layer.provide(layer4), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
156
158
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
157
159
  }));
158
160
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./workerd-smaf4a18.js";
3
+ } from "./event-feed-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./workerd-r5696se6.js";
3
+ } from "./event-feed-0e81et3m.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LocationMiddleware2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./event-feed-50bbk3b2.js";
4
4
  import {
5
5
  FormLocationMiddleware2
6
- } from "./workerd-gk0yxcp6.js";
6
+ } from "./event-feed-htyf2qs7.js";
7
7
  import {
8
8
  SessionLocationMiddleware2
9
- } from "./workerd-yet0vexm.js";
9
+ } from "./event-feed-b3bmdkga.js";
10
10
 
11
11
  // src/api.ts
12
12
  import { makeDefaultApi } from "@opencode/protocol/api";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./workerd-gqq6kfhc.js";
3
+ } from "./event-feed-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./workerd-r5696se6.js";
6
+ } from "./event-feed-0e81et3m.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";