@opencode/server 0.0.0-dev-21173 → 0.0.0-dev-21176

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 (105) hide show
  1. package/dist/api.d.ts +138 -0
  2. package/dist/api.js +5 -5
  3. package/dist/auth.js +1 -1
  4. package/dist/chunks/{request-tracing-8137b89p.js → cors-0cppk2bc.js} +2 -2
  5. package/dist/chunks/{request-tracing-hp0wqg6j.js → cors-18nckej7.js} +8 -8
  6. package/dist/chunks/{request-tracing-h8ws5ssa.js → cors-3aej5azy.js} +1 -1
  7. package/dist/chunks/{request-tracing-vb5yx5r0.js → cors-3atcw39t.js} +2 -2
  8. package/dist/chunks/{request-tracing-4hhhes7w.js → cors-4gnb9897.js} +1 -1
  9. package/dist/chunks/{request-tracing-c8t3608j.js → cors-4t8kzarx.js} +7 -7
  10. package/dist/chunks/{request-tracing-b56hqv74.js → cors-50bbk3b2.js} +3 -3
  11. package/dist/chunks/{request-tracing-5ybpxcad.js → cors-5ybpxcad.js} +1 -1
  12. package/dist/chunks/{request-tracing-4dv9a668.js → cors-6ypp9np2.js} +2 -2
  13. package/dist/chunks/{request-tracing-z6sxg6td.js → cors-7b00qdf6.js} +1 -1
  14. package/dist/chunks/{request-tracing-tavn74n1.js → cors-7j4237sy.js} +3 -3
  15. package/dist/chunks/{request-tracing-33prfkkd.js → cors-9mfgjndz.js} +3 -3
  16. package/dist/chunks/{request-tracing-anm12x33.js → cors-anm12x33.js} +1 -1
  17. package/dist/chunks/{request-tracing-j4zqsxgy.js → cors-b3bmdkga.js} +1 -1
  18. package/dist/chunks/{request-tracing-sz5hysd1.js → cors-cvsqyrxn.js} +19 -19
  19. package/dist/chunks/{request-tracing-rxaz4xsm.js → cors-dr1f0hkr.js} +5 -3
  20. package/dist/chunks/{request-tracing-yehasrps.js → cors-eaxk76q8.js} +2 -2
  21. package/dist/chunks/{request-tracing-vbzm2jgm.js → cors-esbdfpyn.js} +2 -2
  22. package/dist/chunks/{request-tracing-5zsr2h86.js → cors-ez8kk7rt.js} +1 -1
  23. package/dist/chunks/{request-tracing-43r48nqn.js → cors-gsqctp76.js} +2 -2
  24. package/dist/chunks/{request-tracing-97eb2r3v.js → cors-gx9nwmym.js} +2 -2
  25. package/dist/chunks/{request-tracing-ssyxw8nc.js → cors-j1p3e665.js} +2 -2
  26. package/dist/chunks/{request-tracing-686p2xfa.js → cors-jqrn6kzd.js} +2 -2
  27. package/dist/chunks/{request-tracing-9very778.js → cors-k7wggcq2.js} +7 -7
  28. package/dist/chunks/{request-tracing-0d864bga.js → cors-k8rzy6d4.js} +1 -1
  29. package/dist/chunks/{request-tracing-bx47k33v.js → cors-krpsczf8.js} +2 -2
  30. package/dist/chunks/{request-tracing-ptey1p5v.js → cors-mahm5rvs.js} +2 -2
  31. package/dist/chunks/{request-tracing-ftaz8n62.js → cors-mhfbkkb7.js} +2 -2
  32. package/dist/chunks/{request-tracing-rntbwr87.js → cors-mk2mz66m.js} +2 -2
  33. package/dist/chunks/{request-tracing-08x9tjee.js → cors-n60r5keb.js} +1 -1
  34. package/dist/chunks/{request-tracing-zessacar.js → cors-p6ct2ak8.js} +2 -2
  35. package/dist/chunks/{request-tracing-c3bz0j9c.js → cors-pdxytdr7.js} +2 -2
  36. package/dist/chunks/{request-tracing-9snwnvf8.js → cors-q8n44kky.js} +3 -3
  37. package/dist/chunks/{request-tracing-mfq8e8pj.js → cors-qkbqzzy8.js} +32 -32
  38. package/dist/chunks/{request-tracing-kr61w04k.js → cors-rbn15j6z.js} +8 -8
  39. package/dist/chunks/{request-tracing-qbh90c1d.js → cors-rc3nk1bx.js} +2 -2
  40. package/dist/chunks/{request-tracing-7vd5668a.js → cors-tp1rntzw.js} +1 -1
  41. package/dist/chunks/{request-tracing-rf01ee6q.js → cors-vbanrv0z.js} +1 -1
  42. package/dist/chunks/{request-tracing-cv0ajwc9.js → cors-vdtx70fv.js} +2 -2
  43. package/dist/chunks/{request-tracing-4d1eemzq.js → cors-w0jn068c.js} +2 -2
  44. package/dist/chunks/{request-tracing-bkk2wfbz.js → cors-wv5twc2g.js} +8 -8
  45. package/dist/chunks/{request-tracing-xsfckjjz.js → cors-x87a18fz.js} +6 -6
  46. package/dist/chunks/{request-tracing-5w24ch67.js → cors-xsrtpxyd.js} +4 -4
  47. package/dist/chunks/{request-tracing-yfz2nrjq.js → cors-yfz2nrjq.js} +1 -1
  48. package/dist/chunks/{request-tracing-ewe1fzkk.js → cors-yv9sxhn9.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +1 -1
  51. package/dist/fetch.js +50 -50
  52. package/dist/handlers/agent.js +6 -6
  53. package/dist/handlers/command.js +6 -6
  54. package/dist/handlers/config.js +6 -6
  55. package/dist/handlers/credential.js +6 -6
  56. package/dist/handlers/debug.js +6 -6
  57. package/dist/handlers/event.js +7 -7
  58. package/dist/handlers/form.js +6 -6
  59. package/dist/handlers/fs.js +6 -6
  60. package/dist/handlers/generate.js +6 -6
  61. package/dist/handlers/integration.js +6 -6
  62. package/dist/handlers/location.js +6 -6
  63. package/dist/handlers/mcp.js +6 -6
  64. package/dist/handlers/message.js +6 -6
  65. package/dist/handlers/migration.js +6 -6
  66. package/dist/handlers/model.js +6 -6
  67. package/dist/handlers/permission.js +6 -6
  68. package/dist/handlers/persistent-pty.js +8 -8
  69. package/dist/handlers/plugin.js +6 -6
  70. package/dist/handlers/project.js +6 -6
  71. package/dist/handlers/provider.js +6 -6
  72. package/dist/handlers/pty-socket.js +1 -1
  73. package/dist/handlers/pty.js +9 -9
  74. package/dist/handlers/reference.js +6 -6
  75. package/dist/handlers/rpc.js +6 -6
  76. package/dist/handlers/server.js +9 -9
  77. package/dist/handlers/session-error.js +1 -1
  78. package/dist/handlers/session.js +6 -6
  79. package/dist/handlers/shell.js +6 -6
  80. package/dist/handlers/skill.js +6 -6
  81. package/dist/handlers/vcs.js +6 -6
  82. package/dist/handlers/voice.js +6 -6
  83. package/dist/handlers/websearch.js +6 -6
  84. package/dist/handlers/worktree.js +6 -6
  85. package/dist/handlers.js +44 -44
  86. package/dist/location.js +4 -4
  87. package/dist/middleware/authorization.js +2 -2
  88. package/dist/middleware/form-location.js +3 -3
  89. package/dist/middleware/schema-error.js +1 -1
  90. package/dist/middleware/session-location.js +3 -3
  91. package/dist/pairing.js +5 -5
  92. package/dist/process.js +52 -52
  93. package/dist/pty-environment.js +7 -7
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +5 -5
  97. package/dist/service-status.js +3 -3
  98. package/dist/workerd.js +51 -51
  99. package/package.json +8 -8
  100. /package/dist/chunks/{request-tracing-9rqn6x4v.js → cors-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{request-tracing-erzfdgke.js → cors-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{request-tracing-h6rt5k9s.js → cors-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{request-tracing-q4bn6dy8.js → cors-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{request-tracing-smaf4a18.js → cors-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{request-tracing-yc7nft6q.js → cors-yc7nft6q.js} +0 -0
package/dist/api.d.ts CHANGED
@@ -1011,6 +1011,106 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
1011
1011
  };
1012
1012
  readonly idle: import("effect/Schema").Finite;
1013
1013
  }>;
1014
+ }, import("effect/Schema").Struct<{
1015
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1016
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1017
+ };
1018
+ readonly created: import("effect/Schema").Finite;
1019
+ 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>;
1020
+ readonly type: import("effect/Schema").Literal<"session.archived">;
1021
+ readonly durable: import("effect/Schema").Struct<{
1022
+ readonly aggregateID: import("effect/Schema").String;
1023
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
1024
+ 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>;
1025
+ }>;
1026
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
1027
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1028
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1029
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1030
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1031
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1032
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1033
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1034
+ }>, never, never>;
1035
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1036
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1037
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1038
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1039
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1040
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1041
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1042
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1043
+ }>, never, never>;
1044
+ }>>, never, never>;
1045
+ readonly data: import("effect/Schema").Struct<{
1046
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1047
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1048
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1049
+ };
1050
+ }>;
1051
+ }> & {
1052
+ type: "session.archived";
1053
+ durability: "durable";
1054
+ durable: {
1055
+ readonly version: number;
1056
+ readonly aggregate: string;
1057
+ };
1058
+ data: import("effect/Schema").Struct<{
1059
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1060
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1061
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1062
+ };
1063
+ }>;
1064
+ }, import("effect/Schema").Struct<{
1065
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1066
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
1067
+ };
1068
+ readonly created: import("effect/Schema").Finite;
1069
+ 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>;
1070
+ readonly type: import("effect/Schema").Literal<"session.unarchived">;
1071
+ readonly durable: import("effect/Schema").Struct<{
1072
+ readonly aggregateID: import("effect/Schema").String;
1073
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
1074
+ 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>;
1075
+ }>;
1076
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
1077
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1078
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1079
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1080
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1081
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1082
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1083
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1084
+ }>, never, never>;
1085
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
1086
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
1087
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1088
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1089
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1090
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
1091
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
1092
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
1093
+ }>, never, never>;
1094
+ }>>, never, never>;
1095
+ readonly data: import("effect/Schema").Struct<{
1096
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1097
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1098
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1099
+ };
1100
+ }>;
1101
+ }> & {
1102
+ type: "session.unarchived";
1103
+ durability: "durable";
1104
+ durable: {
1105
+ readonly version: number;
1106
+ readonly aggregate: string;
1107
+ };
1108
+ data: import("effect/Schema").Struct<{
1109
+ sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1110
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1111
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1112
+ };
1113
+ }>;
1014
1114
  }, import("effect/Schema").Struct<{
1015
1115
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
1016
1116
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6623,6 +6723,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6623
6723
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
6624
6724
  readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6625
6725
  };
6726
+ } | {
6727
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6728
+ readonly created: number;
6729
+ readonly metadata?: {
6730
+ readonly [x: string]: unknown;
6731
+ } | undefined;
6732
+ readonly type: "session.archived";
6733
+ readonly durable: {
6734
+ readonly aggregateID: string;
6735
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6736
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6737
+ };
6738
+ readonly location?: {
6739
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
6740
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
6741
+ } | undefined;
6742
+ readonly data: {
6743
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6744
+ };
6626
6745
  } | {
6627
6746
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6628
6747
  readonly created: number;
@@ -7702,6 +7821,25 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7702
7821
  readonly [x: string]: unknown;
7703
7822
  } | undefined;
7704
7823
  };
7824
+ } | {
7825
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7826
+ readonly created: number;
7827
+ readonly metadata?: {
7828
+ readonly [x: string]: unknown;
7829
+ } | undefined;
7830
+ readonly type: "session.unarchived";
7831
+ readonly durable: {
7832
+ readonly aggregateID: string;
7833
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
7834
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
7835
+ };
7836
+ readonly location?: {
7837
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
7838
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
7839
+ } | undefined;
7840
+ readonly data: {
7841
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
7842
+ };
7705
7843
  } | {
7706
7844
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
7707
7845
  readonly created: number;
package/dist/api.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Api2
3
- } from "./chunks/request-tracing-9snwnvf8.js";
4
- import"./chunks/request-tracing-j4zqsxgy.js";
5
- import"./chunks/request-tracing-4hhhes7w.js";
6
- import"./chunks/request-tracing-b56hqv74.js";
7
- import"./chunks/request-tracing-smaf4a18.js";
3
+ } from "./chunks/cors-q8n44kky.js";
4
+ import"./chunks/cors-b3bmdkga.js";
5
+ import"./chunks/cors-4gnb9897.js";
6
+ import"./chunks/cors-50bbk3b2.js";
7
+ import"./chunks/cors-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/request-tracing-anm12x33.js";
10
+ } from "./chunks/cors-anm12x33.js";
11
11
  export {
12
12
  Config2 as Config,
13
13
  SESSION_TTL_SECONDS2 as SESSION_TTL_SECONDS,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/plugin.ts
9
9
  import { Plugin } from "@opencode/core/plugin";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./cors-q8n44kky.js";
4
4
  import {
5
5
  SESSION_TTL_SECONDS2,
6
6
  Config2,
7
7
  issueSession2,
8
8
  sessionCookieName2
9
- } from "./request-tracing-anm12x33.js";
10
- import {
11
- Service5
12
- } from "./request-tracing-9very778.js";
9
+ } from "./cors-anm12x33.js";
13
10
  import {
14
11
  Service3
15
- } from "./request-tracing-kr61w04k.js";
12
+ } from "./cors-k7wggcq2.js";
13
+ import {
14
+ Service2
15
+ } from "./cors-rbn15j6z.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -21,10 +21,10 @@ import { HttpApiBuilder } from "effect/http-api";
21
21
  import { PersistentPty } from "@opencode/core/persistent-pty";
22
22
  import { UnauthorizedError } from "@opencode/protocol/errors";
23
23
  var ServerHandler2 = HttpApiBuilder.group(Api2, "server.server", (handlers) => Effect.gen(function* () {
24
- const pairing = yield* Service3;
24
+ const pairing = yield* Service2;
25
25
  const auth = yield* Config2;
26
26
  return handlers.handle("server.info", () => Effect.gen(function* () {
27
- const info = yield* Service5;
27
+ const info = yield* Service3;
28
28
  return {
29
29
  version: info.app.version ?? "unknown",
30
30
  pid: process.pid ?? 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./cors-q8n44kky.js";
4
4
 
5
5
  // src/handlers/location.ts
6
6
  import { Location } from "@opencode/core/location";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  missingSession2,
3
3
  failedMessageDecode2
4
- } from "./request-tracing-smaf4a18.js";
4
+ } from "./cors-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./cors-q8n44kky.js";
8
8
 
9
9
  // src/handlers/message.ts
10
10
  import { SessionMessage } from "@opencode/core/session/message";
@@ -2,7 +2,7 @@ import {
2
2
  locationErrors2,
3
3
  sessionInfo2,
4
4
  requestRef2
5
- } from "./request-tracing-b56hqv74.js";
5
+ } from "./cors-50bbk3b2.js";
6
6
 
7
7
  // src/middleware/form-location.ts
8
8
  import { Instance } from "@opencode/core/instance/service";
@@ -2,20 +2,20 @@ import {
2
2
  locationErrors2,
3
3
  response2,
4
4
  requestRef2
5
- } from "./request-tracing-b56hqv74.js";
5
+ } from "./cors-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./request-tracing-9snwnvf8.js";
8
+ } from "./cors-q8n44kky.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./request-tracing-q4bn6dy8.js";
12
+ } from "./cors-q4bn6dy8.js";
13
13
  import {
14
- Service2
15
- } from "./request-tracing-bkk2wfbz.js";
14
+ Service5
15
+ } from "./cors-wv5twc2g.js";
16
16
  import {
17
17
  runPtySocket2
18
- } from "./request-tracing-h6rt5k9s.js";
18
+ } from "./cors-h6rt5k9s.js";
19
19
 
20
20
  // src/handlers/pty.ts
21
21
  import { Pty } from "@opencode/core/pty";
@@ -41,7 +41,7 @@ var PtyHandler2 = HttpApiBuilder.group(Api2, "server.pty", (handlers) => Effect.
41
41
  const locations = yield* LocationServiceMap.Service;
42
42
  const tickets = yield* PtyTicket.Service;
43
43
  const cors = yield* CorsConfig2;
44
- const environment = yield* Service2;
44
+ const environment = yield* Service5;
45
45
  return handlers.handle("pty.list", Effect.fn(function* () {
46
46
  const pty = yield* Pty.Service;
47
47
  return yield* response2(pty.list());
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./cors-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 layer5 = 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 layer5 = Layer.effect(LocationMiddleware2, Effect.gen(function* () {
67
67
  }));
68
68
  }));
69
69
 
70
- export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer5 };
70
+ export { LocationMiddleware2, locationErrors2, awaitPlugins2, response2, sessionInfo2, requestRef2, layer4 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/shell.ts
9
9
  import { Shell } from "@opencode/core/shell";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./cors-q8n44kky.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
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./cors-q8n44kky.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./request-tracing-q4bn6dy8.js";
7
+ } from "./cors-q4bn6dy8.js";
8
8
  import {
9
9
  runPtySocket2
10
- } from "./request-tracing-h6rt5k9s.js";
10
+ } from "./cors-h6rt5k9s.js";
11
11
 
12
12
  // src/handlers/persistent-pty.ts
13
13
  import { PersistentPty } from "@opencode/core/persistent-pty";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./request-tracing-smaf4a18.js";
3
+ } from "./cors-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./request-tracing-b56hqv74.js";
8
+ } from "./cors-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./request-tracing-9snwnvf8.js";
11
+ } from "./cors-q8n44kky.js";
12
12
 
13
13
  // src/handlers/permission.ts
14
14
  import { Instance } from "@opencode/core/instance/service";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./request-tracing-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/auth.ts
6
6
  var exports_auth = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  sessionInfo2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./cors-50bbk3b2.js";
5
5
 
6
6
  // src/middleware/session-location.ts
7
7
  import { Instance } from "@opencode/core/instance/service";
@@ -1,39 +1,39 @@
1
1
  import {
2
- layer5
3
- } from "./request-tracing-b56hqv74.js";
2
+ layer4
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./request-tracing-4hhhes7w.js";
6
+ } from "./cors-4gnb9897.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./request-tracing-j4zqsxgy.js";
9
+ } from "./cors-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-9snwnvf8.js";
12
+ } from "./cors-q8n44kky.js";
13
13
  import {
14
14
  Config2
15
- } from "./request-tracing-anm12x33.js";
15
+ } from "./cors-anm12x33.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./request-tracing-q4bn6dy8.js";
19
- import {
20
- layer4
21
- } from "./request-tracing-9very778.js";
18
+ } from "./cors-q4bn6dy8.js";
22
19
  import {
23
- node3
24
- } from "./request-tracing-kr61w04k.js";
20
+ layer2
21
+ } from "./cors-k7wggcq2.js";
25
22
  import {
26
23
  node2
27
- } from "./request-tracing-bkk2wfbz.js";
24
+ } from "./cors-rbn15j6z.js";
25
+ import {
26
+ node3
27
+ } from "./cors-wv5twc2g.js";
28
28
  import {
29
29
  handlers2
30
- } from "./request-tracing-mfq8e8pj.js";
30
+ } from "./cors-qkbqzzy8.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./request-tracing-yfz2nrjq.js";
33
+ } from "./cors-yfz2nrjq.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./request-tracing-erzfdgke.js";
36
+ } from "./cors-erzfdgke.js";
37
37
 
38
38
  // src/routes.ts
39
39
  import { Database } from "@opencode/core/database/database";
@@ -92,8 +92,8 @@ var applicationServiceNodes = [
92
92
  PersistentPty.node,
93
93
  Credential.node,
94
94
  WellKnown.node,
95
- node2,
96
95
  node3,
96
+ node2,
97
97
  LocationServiceMap.node,
98
98
  LocationActivity.node,
99
99
  SessionRestart.node,
@@ -146,8 +146,8 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
146
146
  })) : build(overrides);
147
147
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
148
  const services = Layer.succeedContext(context);
149
- 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));
150
- 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(layer5), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
149
+ 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));
150
+ 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));
151
151
  return Layer.merge(api, V1Migration.layer.pipe(Layer.provide(services)));
152
152
  }));
153
153
  }
@@ -3,13 +3,13 @@ import {
3
3
  missingMessage2,
4
4
  failedMessageDecode2,
5
5
  failedSnapshot2
6
- } from "./request-tracing-smaf4a18.js";
6
+ } from "./cors-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./request-tracing-b56hqv74.js";
9
+ } from "./cors-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./request-tracing-9snwnvf8.js";
12
+ } from "./cors-q8n44kky.js";
13
13
 
14
14
  // src/handlers/session.ts
15
15
  import { Session } from "@opencode/core/session";
@@ -138,6 +138,8 @@ var SessionHandler2 = HttpApiBuilder.group(Api2, "server.session", (handlers) =>
138
138
  yield* session.setMetadata({ sessionID: ctx.params.sessionID, metadata: ctx.payload.metadata }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
139
139
  if (ctx.payload.permissions !== undefined)
140
140
  yield* session.setPermissions({ sessionID: ctx.params.sessionID, permissions: ctx.payload.permissions }).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
141
+ if (ctx.payload.archived !== undefined)
142
+ yield* (ctx.payload.archived ? session.archive : session.unarchive)(ctx.params.sessionID).pipe(Effect.catchTag("Session.NotFoundError", missingSession2));
141
143
  return HttpApiSchema.NoContent.make();
142
144
  })).handle("session.move", Effect.fn(function* (ctx) {
143
145
  yield* session.move({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/reference.ts
9
9
  import { Reference } from "@opencode/core/reference";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  requestRef2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/debug.ts
9
9
  import { LocationServiceMap } from "@opencode/core/location-service-map";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./request-tracing-9snwnvf8.js";
3
+ } from "./cors-q8n44kky.js";
4
4
 
5
5
  // src/handlers/config.ts
6
6
  import { Config } from "@opencode/core/config";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/form.ts
9
9
  import { Form } from "@opencode/core/form";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/provider.ts
9
9
  import { Provider } from "@opencode/core/provider";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./request-tracing-b56hqv74.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./request-tracing-9snwnvf8.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/fs.ts
9
9
  import { FileSystem } from "@opencode/core/filesystem";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  locationErrors2,
3
3
  awaitPlugins2
4
- } from "./request-tracing-b56hqv74.js";
4
+ } from "./cors-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./request-tracing-9snwnvf8.js";
7
+ } from "./cors-q8n44kky.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";