@opencode/server 2.2.7 → 2.3.0

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 +148 -1
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{process-059rbh9c.js → auth-059rbh9c.js} +1 -1
  5. package/dist/chunks/{process-jqvq1ywe.js → auth-09kw3a77.js} +2 -2
  6. package/dist/chunks/{process-sqxx1p54.js → auth-2eaky32g.js} +2 -2
  7. package/dist/chunks/{process-wecgp61r.js → auth-3p9jwgak.js} +7 -7
  8. package/dist/chunks/{process-xpg37vzc.js → auth-4q6e7fh8.js} +2 -2
  9. package/dist/chunks/{process-gqq6kfhc.js → auth-50bbk3b2.js} +3 -3
  10. package/dist/chunks/{process-rcmctvp9.js → auth-5cpb32hf.js} +1 -1
  11. package/dist/chunks/{process-5553qfcy.js → auth-5s0wnsg4.js} +3 -3
  12. package/dist/chunks/{process-mx6chrwy.js → auth-6jfbq4sw.js} +35 -35
  13. package/dist/chunks/{process-r2veymj8.js → auth-6kawhtwy.js} +4 -4
  14. package/dist/chunks/{process-vvp99hc9.js → auth-6z9pvq7p.js} +1 -1
  15. package/dist/chunks/{process-78rcgzsr.js → auth-78rcgzsr.js} +1 -1
  16. package/dist/chunks/{process-7b9xm1qg.js → auth-7b9xm1qg.js} +1 -1
  17. package/dist/chunks/{process-p3f060n2.js → auth-8mj7kvhm.js} +2 -2
  18. package/dist/chunks/{process-amndpc82.js → auth-91858wp1.js} +2 -2
  19. package/dist/chunks/{process-zgw0abca.js → auth-a4mwssda.js} +8 -18
  20. package/dist/chunks/{process-zmgfywqd.js → auth-a8jcac9a.js} +1 -1
  21. package/dist/chunks/{process-vtfzy3at.js → auth-az0609r6.js} +2 -2
  22. package/dist/chunks/{process-yet0vexm.js → auth-b3bmdkga.js} +1 -1
  23. package/dist/chunks/{process-zgvwy66h.js → auth-bm3bken1.js} +3 -3
  24. package/dist/chunks/{process-50xc6x42.js → auth-btahnm2b.js} +3 -3
  25. package/dist/chunks/{process-0e4fm4yw.js → auth-cezwbsk5.js} +1 -1
  26. package/dist/chunks/{process-2835150m.js → auth-d0edqfxx.js} +2 -2
  27. package/dist/chunks/{process-djr0jy89.js → auth-djr0jy89.js} +1 -1
  28. package/dist/chunks/{process-e6e4kz0w.js → auth-e6e4kz0w.js} +1 -1
  29. package/dist/chunks/{process-zds85vps.js → auth-enp1bp7r.js} +1 -1
  30. package/dist/chunks/{process-xjbee3xk.js → auth-etdgpyr8.js} +18 -16
  31. package/dist/chunks/{process-7x1re4zg.js → auth-f559fakr.js} +2 -2
  32. package/dist/chunks/{process-dfxfd950.js → auth-gyryr0mf.js} +4 -4
  33. package/dist/chunks/{process-gk0yxcp6.js → auth-htyf2qs7.js} +1 -1
  34. package/dist/chunks/{process-j4at0y5c.js → auth-j4at0y5c.js} +1 -1
  35. package/dist/chunks/{process-r5696se6.js → auth-j87xz9bt.js} +3 -3
  36. package/dist/chunks/{process-7cd61xtm.js → auth-kkdkqt8j.js} +2 -2
  37. package/dist/chunks/{process-kqr36gas.js → auth-kqr36gas.js} +1 -1
  38. package/dist/chunks/{process-myqk22k5.js → auth-myqk22k5.js} +2 -2
  39. package/dist/chunks/{process-fszbw5sk.js → auth-n1423xpw.js} +4 -4
  40. package/dist/chunks/{process-xbqm7mpj.js → auth-ny1j968n.js} +2 -2
  41. package/dist/chunks/{process-w5yp0ga8.js → auth-p86kew8c.js} +2 -2
  42. package/dist/chunks/{process-5kr30cfc.js → auth-pab2cyby.js} +5 -5
  43. package/dist/chunks/{process-jc2vwkyw.js → auth-qcg3sqtb.js} +2 -2
  44. package/dist/chunks/{process-rxyx8sa0.js → auth-qd0r787n.js} +2 -2
  45. package/dist/chunks/{process-370cpmna.js → auth-rha2aq18.js} +2 -2
  46. package/dist/chunks/{process-agenqygg.js → auth-rs3v36hp.js} +2 -2
  47. package/dist/chunks/{process-t32e1bbt.js → auth-t32e1bbt.js} +1 -1
  48. package/dist/chunks/{process-skcryrty.js → auth-te8jwba1.js} +2 -2
  49. package/dist/chunks/{process-5pdfedjd.js → auth-yjbzmfhm.js} +7 -7
  50. package/dist/chunks/{process-1vxxxmgg.js → auth-yk755swr.js} +2 -2
  51. package/dist/chunks/{process-wqv43pj9.js → auth-yqhefp4s.js} +2 -2
  52. package/dist/chunks/{process-4z8yg1dv.js → auth-z9zyd4qg.js} +4 -4
  53. package/dist/chunks/{process-74kxthdf.js → auth-zcvan105.js} +1 -1
  54. package/dist/chunks/{process-f3xrm535.js → auth-zkya65ny.js} +6 -6
  55. package/dist/content-headers.js +1 -1
  56. package/dist/cors.js +1 -1
  57. package/dist/event-feed.js +5 -5
  58. package/dist/fetch.js +56 -56
  59. package/dist/handlers/agent.js +6 -6
  60. package/dist/handlers/artifact.js +3 -3
  61. package/dist/handlers/command.js +6 -6
  62. package/dist/handlers/config.js +6 -6
  63. package/dist/handlers/credential.js +7 -7
  64. package/dist/handlers/debug.js +6 -6
  65. package/dist/handlers/event.js +7 -7
  66. package/dist/handlers/form.js +6 -6
  67. package/dist/handlers/fs.js +7 -7
  68. package/dist/handlers/generate.js +6 -6
  69. package/dist/handlers/integration.js +6 -6
  70. package/dist/handlers/job.js +2 -2
  71. package/dist/handlers/location.js +6 -6
  72. package/dist/handlers/mcp.js +8 -8
  73. package/dist/handlers/media.js +2 -2
  74. package/dist/handlers/message.js +7 -7
  75. package/dist/handlers/migration.js +6 -6
  76. package/dist/handlers/model.js +6 -6
  77. package/dist/handlers/permission.js +6 -6
  78. package/dist/handlers/persistent-pty.d.ts +1 -1
  79. package/dist/handlers/persistent-pty.js +13 -13
  80. package/dist/handlers/plugin.js +6 -6
  81. package/dist/handlers/project.js +6 -6
  82. package/dist/handlers/provider.js +6 -6
  83. package/dist/handlers/pty-socket.js +1 -1
  84. package/dist/handlers/pty.js +8 -8
  85. package/dist/handlers/reference.js +6 -6
  86. package/dist/handlers/rpc.js +6 -6
  87. package/dist/handlers/schedule.js +2 -2
  88. package/dist/handlers/server.js +9 -9
  89. package/dist/handlers/session-error.js +1 -1
  90. package/dist/handlers/session.js +7 -7
  91. package/dist/handlers/shell.js +6 -6
  92. package/dist/handlers/skill.js +6 -6
  93. package/dist/handlers/usage.js +6 -6
  94. package/dist/handlers/vcs.js +6 -6
  95. package/dist/handlers/voice.js +6 -6
  96. package/dist/handlers/websearch.js +6 -6
  97. package/dist/handlers/worktree.js +6 -6
  98. package/dist/handlers.d.ts +1 -1
  99. package/dist/handlers.js +50 -50
  100. package/dist/location.js +4 -4
  101. package/dist/media-uri.js +1 -1
  102. package/dist/middleware/authorization.js +2 -2
  103. package/dist/middleware/form-location.js +3 -3
  104. package/dist/middleware/schema-error.js +1 -1
  105. package/dist/middleware/session-location.js +3 -3
  106. package/dist/pairing.js +1 -1
  107. package/dist/process.js +57 -57
  108. package/dist/request-site.js +2 -2
  109. package/dist/request-tracing.js +1 -1
  110. package/dist/routes.d.ts +3 -2
  111. package/dist/routes.js +53 -53
  112. package/dist/server-info.js +5 -5
  113. package/dist/service-status.js +1 -1
  114. package/dist/workerd.js +57 -57
  115. package/package.json +9 -9
  116. /package/dist/chunks/{process-9rqn6x4v.js → auth-9rqn6x4v.js} +0 -0
  117. /package/dist/chunks/{process-bd8755ek.js → auth-bd8755ek.js} +0 -0
  118. /package/dist/chunks/{process-q187pxxd.js → auth-q187pxxd.js} +0 -0
  119. /package/dist/chunks/{process-q4bn6dy8.js → auth-q4bn6dy8.js} +0 -0
  120. /package/dist/chunks/{process-smaf4a18.js → auth-smaf4a18.js} +0 -0
  121. /package/dist/chunks/{process-xthc02cw.js → auth-xthc02cw.js} +0 -0
  122. /package/dist/chunks/{process-yc7nft6q.js → auth-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" | "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]>]>>>;
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" | "experimental.mcp.event" | "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.first-token" | "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">;
@@ -2549,6 +2549,62 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
2549
2549
  readonly snapshot: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Snapshot.ID">>, never, never>;
2550
2550
  readonly started: import("effect/Schema").Int;
2551
2551
  }>;
2552
+ }, import("effect/Schema").Struct<{
2553
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
2554
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
2555
+ };
2556
+ readonly created: import("effect/Schema").Finite;
2557
+ 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>;
2558
+ readonly type: import("effect/Schema").Literal<"session.step.first-token">;
2559
+ readonly durable: import("effect/Schema").Struct<{
2560
+ readonly aggregateID: import("effect/Schema").String;
2561
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
2562
+ readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
2563
+ }>;
2564
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
2565
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
2566
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
2567
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2568
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2569
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
2570
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2571
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2572
+ }>, never, never>;
2573
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
2574
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
2575
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
2576
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2577
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2578
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
2579
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2580
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2581
+ }>, never, never>;
2582
+ }>>, never, never>;
2583
+ readonly data: import("effect/Schema").Struct<{
2584
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2585
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
2586
+ };
2587
+ readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2588
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2589
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2590
+ };
2591
+ }>;
2592
+ }> & {
2593
+ type: "session.step.first-token";
2594
+ durability: "durable";
2595
+ durable: {
2596
+ readonly version: number;
2597
+ readonly aggregate: string;
2598
+ };
2599
+ data: import("effect/Schema").Struct<{
2600
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
2601
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
2602
+ };
2603
+ readonly assistantMessageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
2604
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2605
+ fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2606
+ };
2607
+ }>;
2552
2608
  }, import("effect/Schema").Struct<{
2553
2609
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
2554
2610
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6381,6 +6437,56 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6381
6437
  data: import("effect/Schema").Struct<{
6382
6438
  readonly server: import("effect/Schema").String;
6383
6439
  }>;
6440
+ }, import("effect/Schema").Struct<{
6441
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6442
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6443
+ };
6444
+ readonly created: import("effect/Schema").Finite;
6445
+ 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>;
6446
+ readonly type: import("effect/Schema").Literal<"experimental.mcp.event">;
6447
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
6448
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
6449
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
6450
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6451
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6452
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
6453
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6454
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6455
+ }>, never, never>;
6456
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
6457
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
6458
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
6459
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6460
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6461
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
6462
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6463
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6464
+ }>, never, never>;
6465
+ }>>, never, never>;
6466
+ readonly data: import("effect/Schema").Struct<{
6467
+ readonly id: import("effect/Schema").String;
6468
+ readonly server: import("effect/Schema").String;
6469
+ readonly name: import("effect/Schema").String;
6470
+ readonly eventId: import("effect/Schema").String;
6471
+ readonly timestamp: import("effect/Schema").String;
6472
+ readonly data: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
6473
+ readonly cursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
6474
+ readonly truncated: import("effect/Schema").optional<import("effect/Schema").Boolean>;
6475
+ }>;
6476
+ }> & {
6477
+ type: "experimental.mcp.event";
6478
+ durability: "ephemeral";
6479
+ durable: undefined;
6480
+ data: import("effect/Schema").Struct<{
6481
+ readonly id: import("effect/Schema").String;
6482
+ readonly server: import("effect/Schema").String;
6483
+ readonly name: import("effect/Schema").String;
6484
+ readonly eventId: import("effect/Schema").String;
6485
+ readonly timestamp: import("effect/Schema").String;
6486
+ readonly data: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
6487
+ readonly cursor: import("effect/Schema").NullOr<import("effect/Schema").String>;
6488
+ readonly truncated: import("effect/Schema").optional<import("effect/Schema").Boolean>;
6489
+ }>;
6384
6490
  }, import("effect/Schema").Struct<{
6385
6491
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
6386
6492
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -7355,6 +7461,26 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7355
7461
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
7356
7462
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
7357
7463
  };
7464
+ } | {
7465
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7466
+ readonly created: number;
7467
+ readonly metadata?: {
7468
+ readonly [x: string]: unknown;
7469
+ } | undefined;
7470
+ readonly type: "session.step.first-token";
7471
+ readonly durable: {
7472
+ readonly aggregateID: string;
7473
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7474
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7475
+ };
7476
+ readonly location?: {
7477
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7478
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7479
+ } | undefined;
7480
+ readonly data: {
7481
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7482
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7483
+ };
7358
7484
  } | {
7359
7485
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7360
7486
  readonly created: number;
@@ -7783,6 +7909,27 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7783
7909
  readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
7784
7910
  readonly credentialID: string & import("effect/Brand").Brand<"Credential.ID">;
7785
7911
  };
7912
+ } | {
7913
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7914
+ readonly created: number;
7915
+ readonly metadata?: {
7916
+ readonly [x: string]: unknown;
7917
+ } | undefined;
7918
+ readonly type: "experimental.mcp.event";
7919
+ readonly location?: {
7920
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7921
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7922
+ } | undefined;
7923
+ readonly data: {
7924
+ readonly id: string;
7925
+ readonly server: string;
7926
+ readonly name: string;
7927
+ readonly eventId: string;
7928
+ readonly timestamp: string;
7929
+ readonly data: import("effect/Schema").Json;
7930
+ readonly cursor: string | null;
7931
+ readonly truncated?: boolean | undefined;
7932
+ };
7786
7933
  } | {
7787
7934
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7788
7935
  readonly created: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/process-r5696se6.js";
4
- import"./chunks/process-gk0yxcp6.js";
5
- import"./chunks/process-yet0vexm.js";
6
- import"./chunks/process-gqq6kfhc.js";
7
- import"./chunks/process-smaf4a18.js";
3
+ } from "./chunks/auth-j87xz9bt.js";
4
+ import"./chunks/auth-htyf2qs7.js";
5
+ import"./chunks/auth-b3bmdkga.js";
6
+ import"./chunks/auth-50bbk3b2.js";
7
+ import"./chunks/auth-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/process-j4at0y5c.js";
10
+ } from "./chunks/auth-j4at0y5c.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./process-smaf4a18.js";
3
+ } from "./auth-smaf4a18.js";
4
4
 
5
5
  // src/handlers/schedule.ts
6
6
  import { Permission } from "@opencode/core/permission";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./process-gqq6kfhc.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./process-r5696se6.js";
6
+ } from "./auth-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/usage.ts
9
9
  import { UsageLimits } from "@opencode/core/usage-limits";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./process-gqq6kfhc.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./process-r5696se6.js";
6
+ } from "./auth-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  __export
3
- } from "./process-9rqn6x4v.js";
3
+ } from "./auth-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
7
7
  __export(exports_event_feed, {
8
8
  EncodingError: () => EncodingError2,
9
9
  EventFeed: () => exports_event_feed,
10
- Service: () => Service4,
10
+ Service: () => Service3,
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer4,
14
+ layer: () => layer2,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -30,7 +30,7 @@ class EncodingError2 extends Schema.TaggedError()("EventFeed.EncodingError", {
30
30
  }) {
31
31
  }
32
32
 
33
- class Service4 extends Context.Service()("@opencode/server/EventFeed") {
33
+ class Service3 extends Context.Service()("@opencode/server/EventFeed") {
34
34
  }
35
35
  function frame2(event) {
36
36
  return `data: ${JSON.stringify(event)}
@@ -72,13 +72,13 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
72
72
  });
73
73
  const unsubscribe = yield* observe(publish);
74
74
  yield* Effect.addFinalizer(() => unsubscribe);
75
- return Service4.of({
75
+ return Service3.of({
76
76
  subscribe: (types) => Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.set(queue, types?.length ? new Set(types) : undefined)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
77
77
  });
78
78
  });
79
- var layer4 = Layer.effect(Service4, Effect.gen(function* () {
79
+ var layer2 = Layer.effect(Service3, Effect.gen(function* () {
80
80
  const bus = yield* Bus.Service;
81
81
  return yield* make4(bus.listen);
82
82
  }));
83
83
 
84
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
84
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service3, frame2, make4, layer2, exports_event_feed };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./process-gqq6kfhc.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./process-r5696se6.js";
6
+ } from "./auth-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./process-smaf4a18.js";
3
+ } from "./auth-smaf4a18.js";
4
4
 
5
5
  // src/location.ts
6
6
  import { FileSystem } from "@opencode/core/filesystem";
@@ -59,7 +59,7 @@ function decode(input) {
59
59
  return input;
60
60
  }
61
61
  }
62
- var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
62
+ var layer4 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
63
63
  const locations = yield* LocationServiceMap.Service;
64
64
  return LocationMiddleware2.of((effect) => Effect.gen(function* () {
65
65
  const request = yield* HttpServerRequest.HttpServerRequest;
@@ -67,4 +67,4 @@ var layer3 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer3 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./process-r5696se6.js";
3
+ } from "./auth-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/rpc.ts
6
6
  import { Rpc } from "@opencode/core/rpc";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./process-smaf4a18.js";
4
+ } from "./auth-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./process-r5696se6.js";
7
+ } from "./auth-j87xz9bt.js";
8
8
  import {
9
9
  wantsMediaRefs2
10
- } from "./process-xthc02cw.js";
10
+ } from "./auth-xthc02cw.js";
11
11
 
12
12
  // src/handlers/message.ts
13
13
  import { SessionMessage } from "@opencode/core/session/message";
@@ -1,105 +1,105 @@
1
1
  import {
2
2
  GenerateHandler2
3
- } from "./process-wqv43pj9.js";
3
+ } from "./auth-yqhefp4s.js";
4
4
  import {
5
5
  VoiceHandler2
6
- } from "./process-2835150m.js";
6
+ } from "./auth-d0edqfxx.js";
7
7
  import {
8
8
  MessageHandler2
9
- } from "./process-5553qfcy.js";
9
+ } from "./auth-5s0wnsg4.js";
10
10
  import {
11
11
  ModelHandler2
12
- } from "./process-370cpmna.js";
12
+ } from "./auth-rha2aq18.js";
13
13
  import {
14
14
  ProviderHandler2
15
- } from "./process-vtfzy3at.js";
15
+ } from "./auth-az0609r6.js";
16
16
  import {
17
17
  SessionHandler2
18
- } from "./process-dfxfd950.js";
18
+ } from "./auth-gyryr0mf.js";
19
19
  import {
20
20
  PermissionHandler2
21
- } from "./process-50xc6x42.js";
21
+ } from "./auth-btahnm2b.js";
22
22
  import {
23
23
  FileSystemHandler2
24
- } from "./process-zgvwy66h.js";
24
+ } from "./auth-bm3bken1.js";
25
25
  import {
26
26
  FormHandler2
27
- } from "./process-7x1re4zg.js";
27
+ } from "./auth-f559fakr.js";
28
28
  import {
29
29
  CommandHandler2
30
- } from "./process-xpg37vzc.js";
30
+ } from "./auth-4q6e7fh8.js";
31
31
  import {
32
32
  SkillHandler2
33
- } from "./process-xbqm7mpj.js";
33
+ } from "./auth-ny1j968n.js";
34
34
  import {
35
35
  RpcHandler2
36
- } from "./process-rcmctvp9.js";
36
+ } from "./auth-5cpb32hf.js";
37
37
  import {
38
- layer4
39
- } from "./process-wecgp61r.js";
38
+ layer2
39
+ } from "./auth-3p9jwgak.js";
40
40
  import {
41
41
  EventHandler2
42
- } from "./process-fszbw5sk.js";
42
+ } from "./auth-n1423xpw.js";
43
43
  import {
44
44
  AgentHandler2
45
- } from "./process-p3f060n2.js";
45
+ } from "./auth-8mj7kvhm.js";
46
46
  import {
47
47
  PluginHandler2
48
- } from "./process-sqxx1p54.js";
48
+ } from "./auth-2eaky32g.js";
49
49
  import {
50
50
  ServerHandler2
51
- } from "./process-f3xrm535.js";
51
+ } from "./auth-zkya65ny.js";
52
52
  import {
53
53
  DebugHandler2
54
- } from "./process-jc2vwkyw.js";
54
+ } from "./auth-qcg3sqtb.js";
55
55
  import {
56
56
  PtyHandler2
57
- } from "./process-r2veymj8.js";
57
+ } from "./auth-6kawhtwy.js";
58
58
  import {
59
59
  PersistentPtyHandler2
60
- } from "./process-zgw0abca.js";
60
+ } from "./auth-a4mwssda.js";
61
61
  import {
62
62
  ShellHandler2
63
- } from "./process-rxyx8sa0.js";
63
+ } from "./auth-qd0r787n.js";
64
64
  import {
65
65
  ReferenceHandler2
66
- } from "./process-skcryrty.js";
66
+ } from "./auth-te8jwba1.js";
67
67
  import {
68
68
  LocationHandler2
69
- } from "./process-74kxthdf.js";
69
+ } from "./auth-zcvan105.js";
70
70
  import {
71
71
  IntegrationHandler2
72
- } from "./process-amndpc82.js";
72
+ } from "./auth-91858wp1.js";
73
73
  import {
74
74
  WebSearchHandler2
75
- } from "./process-7cd61xtm.js";
75
+ } from "./auth-kkdkqt8j.js";
76
76
  import {
77
77
  UsageHandler2
78
- } from "./process-jqvq1ywe.js";
78
+ } from "./auth-09kw3a77.js";
79
79
  import {
80
80
  McpHandler2
81
- } from "./process-4z8yg1dv.js";
81
+ } from "./auth-z9zyd4qg.js";
82
82
  import {
83
83
  CredentialHandler2
84
- } from "./process-1vxxxmgg.js";
84
+ } from "./auth-yk755swr.js";
85
85
  import {
86
86
  ProjectHandler2
87
- } from "./process-zmgfywqd.js";
87
+ } from "./auth-a8jcac9a.js";
88
88
  import {
89
89
  WorktreeHandler2
90
- } from "./process-zds85vps.js";
90
+ } from "./auth-enp1bp7r.js";
91
91
  import {
92
92
  VcsHandler2
93
- } from "./process-agenqygg.js";
93
+ } from "./auth-rs3v36hp.js";
94
94
  import {
95
95
  MigrationHandler2
96
- } from "./process-vvp99hc9.js";
96
+ } from "./auth-6z9pvq7p.js";
97
97
  import {
98
98
  ConfigHandler2
99
- } from "./process-0e4fm4yw.js";
99
+ } from "./auth-cezwbsk5.js";
100
100
 
101
101
  // src/handlers.ts
102
102
  import { Layer } from "effect";
103
- var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer4)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
103
+ var handlers2 = Layer.mergeAll(ServerHandler2, DebugHandler2, MigrationHandler2, LocationHandler2, AgentHandler2, PluginHandler2, SessionHandler2, MessageHandler2, ModelHandler2, GenerateHandler2, VoiceHandler2, ProviderHandler2, IntegrationHandler2, WebSearchHandler2, UsageHandler2, McpHandler2, CredentialHandler2, ProjectHandler2, FormHandler2, PermissionHandler2, FileSystemHandler2, CommandHandler2, SkillHandler2, RpcHandler2, EventHandler2.pipe(Layer.provide(layer2)), PtyHandler2, PersistentPtyHandler2, ShellHandler2, ReferenceHandler2, WorktreeHandler2, VcsHandler2, ConfigHandler2);
104
104
 
105
105
  export { handlers2 };
@@ -2,18 +2,18 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./process-gqq6kfhc.js";
5
+ } from "./auth-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./process-r5696se6.js";
8
+ } from "./auth-j87xz9bt.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./process-q4bn6dy8.js";
12
+ } from "./auth-q4bn6dy8.js";
13
13
  import {
14
14
  runPtySocket2,
15
15
  holdLocation2
16
- } from "./process-q187pxxd.js";
16
+ } from "./auth-q187pxxd.js";
17
17
 
18
18
  // src/handlers/pty.ts
19
19
  import { Pty } from "@opencode/core/pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./process-r5696se6.js";
3
+ } from "./auth-j87xz9bt.js";
4
4
 
5
5
  // src/handlers/migration.ts
6
6
  import { V1Migration } from "@opencode/core/database/v1-migration";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./process-smaf4a18.js";
3
+ } from "./auth-smaf4a18.js";
4
4
 
5
5
  // src/handlers/job.ts
6
6
  import { Job } from "@opencode/core/job";
@@ -4,7 +4,7 @@ import {
4
4
  authorized2,
5
5
  verifySession2,
6
6
  sessionCookieName2
7
- } from "./process-j4at0y5c.js";
7
+ } from "./auth-j4at0y5c.js";
8
8
 
9
9
  // src/middleware/authorization.ts
10
10
  import { UnauthorizedError } from "@opencode/protocol/errors";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./process-gqq6kfhc.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./process-r5696se6.js";
6
+ } from "./auth-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/agent.ts
9
9
  import { Agent } from "@opencode/core/agent";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./process-gqq6kfhc.js";
3
+ } from "./auth-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./process-r5696se6.js";
6
+ } from "./auth-j87xz9bt.js";
7
7
 
8
8
  // src/handlers/integration.ts
9
9
  import { Integration } from "@opencode/core/integration";