@opencode/server 0.0.0-dev-21167 → 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/{server-info-g1bp01xw.js → cors-0cppk2bc.js} +2 -2
  5. package/dist/chunks/{server-info-7thhj788.js → cors-18nckej7.js} +4 -4
  6. package/dist/chunks/{server-info-qbrxhger.js → cors-3aej5azy.js} +1 -1
  7. package/dist/chunks/{server-info-56rkpa1p.js → cors-3atcw39t.js} +2 -2
  8. package/dist/chunks/{server-info-1ahadpvw.js → cors-4gnb9897.js} +1 -1
  9. package/dist/chunks/{server-info-djqjca21.js → cors-4t8kzarx.js} +5 -5
  10. package/dist/chunks/{server-info-gqq6kfhc.js → cors-50bbk3b2.js} +3 -3
  11. package/dist/chunks/{server-info-n9y13hgv.js → cors-5ybpxcad.js} +4 -4
  12. package/dist/chunks/{server-info-hxgz4x38.js → cors-6ypp9np2.js} +2 -2
  13. package/dist/chunks/{server-info-ksvmmk2r.js → cors-7b00qdf6.js} +1 -1
  14. package/dist/chunks/{server-info-dc18tjnc.js → cors-7j4237sy.js} +3 -3
  15. package/dist/chunks/{server-info-9h3s5d39.js → cors-9mfgjndz.js} +3 -3
  16. package/dist/chunks/{server-info-anm12x33.js → cors-anm12x33.js} +1 -1
  17. package/dist/chunks/{server-info-yet0vexm.js → cors-b3bmdkga.js} +1 -1
  18. package/dist/chunks/{server-info-9x8r11pz.js → cors-cvsqyrxn.js} +14 -14
  19. package/dist/chunks/{server-info-6ar7txcy.js → cors-dr1f0hkr.js} +5 -3
  20. package/dist/chunks/{server-info-xt7xrv1r.js → cors-eaxk76q8.js} +2 -2
  21. package/dist/chunks/{server-info-j3626vk8.js → cors-esbdfpyn.js} +2 -2
  22. package/dist/chunks/{server-info-zfjz2b4g.js → cors-ez8kk7rt.js} +1 -1
  23. package/dist/chunks/{server-info-2s3n8phw.js → cors-gsqctp76.js} +2 -2
  24. package/dist/chunks/{server-info-5bchp9s2.js → cors-gx9nwmym.js} +2 -2
  25. package/dist/chunks/{server-info-rrf9gkkq.js → cors-j1p3e665.js} +2 -2
  26. package/dist/chunks/{server-info-rys6nden.js → cors-jqrn6kzd.js} +2 -2
  27. package/dist/chunks/{server-info-k7wggcq2.js → cors-k7wggcq2.js} +1 -1
  28. package/dist/chunks/{server-info-scq1j2yg.js → cors-k8rzy6d4.js} +1 -1
  29. package/dist/chunks/{server-info-j66ekhc9.js → cors-krpsczf8.js} +2 -2
  30. package/dist/chunks/{server-info-aajxxgqb.js → cors-mahm5rvs.js} +2 -2
  31. package/dist/chunks/{server-info-4vaqgjp8.js → cors-mhfbkkb7.js} +2 -2
  32. package/dist/chunks/{server-info-y7p3rgqn.js → cors-mk2mz66m.js} +2 -2
  33. package/dist/chunks/{server-info-e2cx9grb.js → cors-n60r5keb.js} +1 -1
  34. package/dist/chunks/{server-info-n3hqkreg.js → cors-p6ct2ak8.js} +2 -2
  35. package/dist/chunks/{server-info-vy0x6yc6.js → cors-pdxytdr7.js} +2 -2
  36. package/dist/chunks/{server-info-026wrard.js → cors-q8n44kky.js} +3 -3
  37. package/dist/chunks/{server-info-a6p5pct3.js → cors-qkbqzzy8.js} +34 -34
  38. package/dist/chunks/{server-info-rbn15j6z.js → cors-rbn15j6z.js} +1 -1
  39. package/dist/chunks/{server-info-nmcxqxxx.js → cors-rc3nk1bx.js} +2 -2
  40. package/dist/chunks/{server-info-7q8ata5b.js → cors-tp1rntzw.js} +1 -1
  41. package/dist/chunks/{server-info-vg73xc24.js → cors-vbanrv0z.js} +1 -1
  42. package/dist/chunks/{server-info-g0g9ma1m.js → cors-vdtx70fv.js} +2 -2
  43. package/dist/chunks/{server-info-t7dxwnb0.js → cors-w0jn068c.js} +2 -2
  44. package/dist/chunks/{server-info-wv5twc2g.js → cors-wv5twc2g.js} +1 -1
  45. package/dist/chunks/{server-info-y5z2w8e5.js → cors-x87a18fz.js} +3 -3
  46. package/dist/chunks/{server-info-xsrtpxyd.js → cors-xsrtpxyd.js} +1 -1
  47. package/dist/chunks/{server-info-yfz2nrjq.js → cors-yfz2nrjq.js} +1 -1
  48. package/dist/chunks/{server-info-vkgak0vv.js → cors-yv9sxhn9.js} +2 -2
  49. package/dist/cors.js +1 -1
  50. package/dist/event-feed.js +3 -3
  51. package/dist/fetch.js +48 -48
  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 +1 -1
  92. package/dist/process.js +50 -50
  93. package/dist/pty-environment.js +1 -1
  94. package/dist/request-tracing.js +1 -1
  95. package/dist/routes.js +47 -47
  96. package/dist/server-info.js +1 -1
  97. package/dist/service-status.js +1 -1
  98. package/dist/workerd.js +49 -49
  99. package/package.json +8 -8
  100. /package/dist/chunks/{server-info-9rqn6x4v.js → cors-9rqn6x4v.js} +0 -0
  101. /package/dist/chunks/{server-info-erzfdgke.js → cors-erzfdgke.js} +0 -0
  102. /package/dist/chunks/{server-info-h6rt5k9s.js → cors-h6rt5k9s.js} +0 -0
  103. /package/dist/chunks/{server-info-q4bn6dy8.js → cors-q4bn6dy8.js} +0 -0
  104. /package/dist/chunks/{server-info-smaf4a18.js → cors-smaf4a18.js} +0 -0
  105. /package/dist/chunks/{server-info-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/server-info-026wrard.js";
4
- import"./chunks/server-info-yet0vexm.js";
5
- import"./chunks/server-info-1ahadpvw.js";
6
- import"./chunks/server-info-gqq6kfhc.js";
7
- import"./chunks/server-info-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/server-info-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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-026wrard.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 "./server-info-anm12x33.js";
9
+ } from "./cors-anm12x33.js";
10
10
  import {
11
11
  Service3
12
- } from "./server-info-k7wggcq2.js";
12
+ } from "./cors-k7wggcq2.js";
13
13
  import {
14
14
  Service2
15
- } from "./server-info-rbn15j6z.js";
15
+ } from "./cors-rbn15j6z.js";
16
16
 
17
17
  // src/handlers/server.ts
18
18
  import { Duration, Effect } from "effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./server-info-026wrard.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 "./server-info-smaf4a18.js";
4
+ } from "./cors-smaf4a18.js";
5
5
  import {
6
6
  Api2
7
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.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 "./server-info-gqq6kfhc.js";
5
+ } from "./cors-50bbk3b2.js";
6
6
  import {
7
7
  Api2
8
- } from "./server-info-026wrard.js";
8
+ } from "./cors-q8n44kky.js";
9
9
  import {
10
10
  CorsConfig2,
11
11
  isAllowedRequestOrigin2
12
- } from "./server-info-q4bn6dy8.js";
12
+ } from "./cors-q4bn6dy8.js";
13
13
  import {
14
14
  Service5
15
- } from "./server-info-wv5twc2g.js";
15
+ } from "./cors-wv5twc2g.js";
16
16
  import {
17
17
  runPtySocket2
18
- } from "./server-info-h6rt5k9s.js";
18
+ } from "./cors-h6rt5k9s.js";
19
19
 
20
20
  // src/handlers/pty.ts
21
21
  import { Pty } from "@opencode/core/pty";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  missingSession2
3
- } from "./server-info-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 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
  __export
3
- } from "./server-info-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/event-feed.ts
6
6
  var exports_event_feed = {};
@@ -11,7 +11,7 @@ __export(exports_event_feed, {
11
11
  SubscriberCapacity: () => SubscriberCapacity2,
12
12
  SubscriberOverflowError: () => SubscriberOverflowError2,
13
13
  frame: () => frame2,
14
- layer: () => layer4,
14
+ layer: () => layer3,
15
15
  make: () => make4
16
16
  });
17
17
  import { Bus } from "@opencode/core/bus";
@@ -75,9 +75,9 @@ var make4 = Effect.fn("EventFeed.make")(function* (observe, options) {
75
75
  subscribe: Effect.acquireRelease(Queue.dropping(capacity).pipe(Effect.tap((queue) => Effect.sync(() => subscribers.add(queue)))), (queue) => Effect.sync(() => subscribers.delete(queue)).pipe(Effect.andThen(Queue.shutdown(queue)), Effect.asVoid)).pipe(Effect.map(Stream.fromQueue))
76
76
  });
77
77
  });
78
- var layer4 = Layer.effect(Service4, Effect.gen(function* () {
78
+ var layer3 = Layer.effect(Service4, Effect.gen(function* () {
79
79
  const bus = yield* Bus.Service;
80
80
  return yield* make4(bus.listen);
81
81
  }));
82
82
 
83
- export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer4, exports_event_feed };
83
+ export { SubscriberCapacity2, SubscriberOverflowError2, EncodingError2, Service4, frame2, make4, layer3, exports_event_feed };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-026wrard.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 "./server-info-026wrard.js";
3
+ } from "./cors-q8n44kky.js";
4
4
  import {
5
5
  CorsConfig2,
6
6
  isAllowedRequestOrigin2
7
- } from "./server-info-q4bn6dy8.js";
7
+ } from "./cors-q4bn6dy8.js";
8
8
  import {
9
9
  runPtySocket2
10
- } from "./server-info-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 "./server-info-smaf4a18.js";
3
+ } from "./cors-smaf4a18.js";
4
4
  import {
5
5
  locationErrors2,
6
6
  response2,
7
7
  sessionInfo2
8
- } from "./server-info-gqq6kfhc.js";
8
+ } from "./cors-50bbk3b2.js";
9
9
  import {
10
10
  Api2
11
- } from "./server-info-026wrard.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 "./server-info-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 "./server-info-gqq6kfhc.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
- layer3
3
- } from "./server-info-gqq6kfhc.js";
2
+ layer4
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  formLocationLayer2
6
- } from "./server-info-1ahadpvw.js";
6
+ } from "./cors-4gnb9897.js";
7
7
  import {
8
8
  sessionLocationLayer2
9
- } from "./server-info-yet0vexm.js";
9
+ } from "./cors-b3bmdkga.js";
10
10
  import {
11
11
  Api2
12
- } from "./server-info-026wrard.js";
12
+ } from "./cors-q8n44kky.js";
13
13
  import {
14
14
  Config2
15
- } from "./server-info-anm12x33.js";
15
+ } from "./cors-anm12x33.js";
16
16
  import {
17
17
  CorsConfig2
18
- } from "./server-info-q4bn6dy8.js";
18
+ } from "./cors-q4bn6dy8.js";
19
19
  import {
20
20
  layer2
21
- } from "./server-info-k7wggcq2.js";
21
+ } from "./cors-k7wggcq2.js";
22
22
  import {
23
23
  node2
24
- } from "./server-info-rbn15j6z.js";
24
+ } from "./cors-rbn15j6z.js";
25
25
  import {
26
26
  node3
27
- } from "./server-info-wv5twc2g.js";
27
+ } from "./cors-wv5twc2g.js";
28
28
  import {
29
29
  handlers2
30
- } from "./server-info-a6p5pct3.js";
30
+ } from "./cors-qkbqzzy8.js";
31
31
  import {
32
32
  authorizationLayer2
33
- } from "./server-info-yfz2nrjq.js";
33
+ } from "./cors-yfz2nrjq.js";
34
34
  import {
35
35
  schemaErrorLayer2
36
- } from "./server-info-erzfdgke.js";
36
+ } from "./cors-erzfdgke.js";
37
37
 
38
38
  // src/routes.ts
39
39
  import { Database } from "@opencode/core/database/database";
@@ -147,7 +147,7 @@ function makeRoutes(auth, options, serviceURLs, overrides, instances) {
147
147
  return serviceLayer.pipe(Layer.flatMap((context) => {
148
148
  const services = Layer.succeedContext(context);
149
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(layer3), Layer.provide(authorizationLayer2), Layer.provide(schemaErrorLayer2), Layer.provide(auth), HttpRouter.provideRequest(requestServices), Layer.provideMerge(services), Layer.provideMerge(HttpRouter.layer));
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 "./server-info-smaf4a18.js";
6
+ } from "./cors-smaf4a18.js";
7
7
  import {
8
8
  locationErrors2
9
- } from "./server-info-gqq6kfhc.js";
9
+ } from "./cors-50bbk3b2.js";
10
10
  import {
11
11
  Api2
12
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.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 "./server-info-gqq6kfhc.js";
4
+ } from "./cors-50bbk3b2.js";
5
5
  import {
6
6
  Api2
7
- } from "./server-info-026wrard.js";
7
+ } from "./cors-q8n44kky.js";
8
8
 
9
9
  // src/handlers/voice.ts
10
10
  import { Location } from "@opencode/core/location";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./server-info-9rqn6x4v.js";
3
+ } from "./cors-9rqn6x4v.js";
4
4
 
5
5
  // src/server-info.ts
6
6
  var exports_server_info = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Api2
3
- } from "./server-info-026wrard.js";
3
+ } from "./cors-q8n44kky.js";
4
4
 
5
5
  // src/handlers/project.ts
6
6
  import { Project } from "@opencode/core/project";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/skill.ts
9
9
  import { Skill } from "@opencode/core/skill";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  response2
3
- } from "./server-info-gqq6kfhc.js";
3
+ } from "./cors-50bbk3b2.js";
4
4
  import {
5
5
  Api2
6
- } from "./server-info-026wrard.js";
6
+ } from "./cors-q8n44kky.js";
7
7
 
8
8
  // src/handlers/command.ts
9
9
  import { Command } from "@opencode/core/command";