@opencode/protocol 2.0.5 → 2.0.7

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.
package/dist/api.d.ts CHANGED
@@ -23,7 +23,7 @@ import { PersistentPtyGroup } from "./groups/persistent-pty.js";
23
23
  import { ShellGroup } from "./groups/shell.js";
24
24
  import { ReferenceGroup } from "./groups/reference.js";
25
25
  import { Authorization } from "./middleware/authorization.js";
26
- import { LocationGroup } from "./groups/location.js";
26
+ import { makeLocationGroup } from "./groups/location.js";
27
27
  import { IntegrationGroup } from "./groups/integration.js";
28
28
  import { WebSearchGroup } from "./groups/websearch.js";
29
29
  import { McpGroup } from "./groups/mcp.js";
@@ -33,11 +33,12 @@ import { WorktreeGroup } from "./groups/worktree.js";
33
33
  import { VcsGroup } from "./groups/vcs.js";
34
34
  import { MigrationGroup } from "./groups/migration.js";
35
35
  import { ConfigGroup } from "./groups/config.js";
36
- type LocationGroups<LocationId extends HttpApiMiddleware.AnyId> = HttpApiGroup.AddMiddleware<typeof LocationGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof AgentGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof PluginGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ModelGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ProviderGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof IntegrationGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof WebSearchGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof McpGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ProjectGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof FileSystemGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof CommandGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof SkillGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof RpcGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof PtyGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ShellGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ReferenceGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof VcsGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ConfigGroup, LocationId>;
36
+ type LocationGroups<LocationId extends HttpApiMiddleware.AnyId> = HttpApiGroup.AddMiddleware<typeof AgentGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof PluginGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ModelGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ProviderGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof IntegrationGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof WebSearchGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof McpGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ProjectGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof FileSystemGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof CommandGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof SkillGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof RpcGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof PtyGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ShellGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ReferenceGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof VcsGroup, LocationId> | HttpApiGroup.AddMiddleware<typeof ConfigGroup, LocationId>;
37
37
  type SessionGroups<SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService> = ReturnType<typeof makeSessionGroup<SessionLocationId, SessionLocationService, FormLocationId, FormLocationService>> | typeof MessageGroup;
38
38
  type FormGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService> = ReturnType<typeof makeFormGroup<LocationId, LocationService>>;
39
+ type LocationGroup<LocationId extends HttpApiMiddleware.AnyId, LocationService> = ReturnType<typeof makeLocationGroup<LocationId, LocationService>>;
39
40
  type MixedMiddlewareGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService> = ReturnType<typeof makePermissionGroup<LocationId, LocationService, SessionLocationId, SessionLocationService>>;
40
- type ApiGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Constraint> = typeof ServerGroup | typeof DebugGroup | typeof MigrationGroup | typeof WorktreeGroup | typeof GenerateGroup | typeof PersistentPtyGroup | typeof CredentialGroup | LocationGroups<LocationId> | FormGroups<LocationId, LocationService> | SessionGroups<SessionLocationId, SessionLocationService, FormLocationId, FormLocationService> | MixedMiddlewareGroups<LocationId, LocationService, SessionLocationId, SessionLocationService> | Event;
41
+ type ApiGroups<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Constraint> = typeof ServerGroup | typeof DebugGroup | typeof MigrationGroup | typeof WorktreeGroup | typeof GenerateGroup | typeof PersistentPtyGroup | typeof CredentialGroup | LocationGroups<LocationId> | LocationGroup<LocationId, LocationService> | FormGroups<LocationId, LocationService> | SessionGroups<SessionLocationId, SessionLocationService, FormLocationId, FormLocationService> | MixedMiddlewareGroups<LocationId, LocationService, SessionLocationId, SessionLocationService> | Event;
41
42
  type EventGroupFor<Definitions extends ReadonlyArray<Definition>> = ReturnType<typeof makeEventGroup<Definitions>>;
42
43
  export type Api<LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService, Event extends HttpApiGroup.Constraint> = HttpApi.HttpApi<"server", HttpApiGroup.AddMiddleware<HttpApiGroup.AddMiddleware<ApiGroups<LocationId, LocationService, FormLocationId, FormLocationService, SessionLocationId, SessionLocationService, Event>, Authorization>, SchemaErrorMiddleware>>;
43
44
  export declare const makeApi: <const Definitions extends ReadonlyArray<Definition>, LocationId extends HttpApiMiddleware.AnyId, LocationService, FormLocationId extends HttpApiMiddleware.AnyId, FormLocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(options: {
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ import { PersistentPtyGroup } from "./groups/persistent-pty.js";
22
22
  import { ShellGroup } from "./groups/shell.js";
23
23
  import { ReferenceGroup } from "./groups/reference.js";
24
24
  import { Authorization } from "./middleware/authorization.js";
25
- import { LocationGroup } from "./groups/location.js";
25
+ import { makeLocationGroup } from "./groups/location.js";
26
26
  import { IntegrationGroup } from "./groups/integration.js";
27
27
  import { WebSearchGroup } from "./groups/websearch.js";
28
28
  import { McpGroup } from "./groups/mcp.js";
@@ -35,7 +35,7 @@ import { ConfigGroup } from "./groups/config.js";
35
35
  // Protocol owns middleware placement, while Server injects concrete keys so Core service identities stay downstream.
36
36
  const makeApiFromGroup = (eventGroup, locationMiddleware, formLocationMiddleware, sessionLocationMiddleware) => HttpApi.make("server")
37
37
  .add(ServerGroup)
38
- .add(LocationGroup.middleware(locationMiddleware))
38
+ .add(makeLocationGroup(locationMiddleware))
39
39
  .add(AgentGroup.middleware(locationMiddleware))
40
40
  .add(PluginGroup.middleware(locationMiddleware))
41
41
  .add(makeSessionGroup(sessionLocationMiddleware, formLocationMiddleware))
package/dist/client.js CHANGED
@@ -45,4 +45,4 @@ export const groupNames = {
45
45
  "server.config": "config",
46
46
  };
47
47
  export const promiseOmitEndpoints = new Set(["pty.connect", "persistentPty.connect"]);
48
- export const effectOmitEndpoints = new Set(["fs.read", "pty.connect", "persistentPty.connect"]);
48
+ export const effectOmitEndpoints = new Set(["fs.read", "fs.write", "pty.connect", "persistentPty.connect"]);
@@ -48,6 +48,38 @@ export declare const makeEventGroup: <const Definitions extends ReadonlyArray<De
48
48
  } | undefined;
49
49
  }[]])[number]>, never, never, never>, false>;
50
50
  export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpApiEndpoint.HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, never, never, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Struct<{
51
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
52
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
53
+ };
54
+ readonly created: Schema.Finite;
55
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
56
+ readonly type: Schema.Literal<"location.shutdown">;
57
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
58
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
59
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
60
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
61
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
62
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
63
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
64
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
65
+ }>, never, never>;
66
+ }>>>, Schema.optionalKey<Schema.Struct<{
67
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
68
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
69
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
70
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
71
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
72
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
73
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
74
+ }>, never, never>;
75
+ }>>, never, never>;
76
+ readonly data: Schema.Struct<{}>;
77
+ }> & {
78
+ type: "location.shutdown";
79
+ durability: "ephemeral";
80
+ durable: undefined;
81
+ data: Schema.Struct<{}>;
82
+ }, Schema.Struct<{
51
83
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
52
84
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
53
85
  };
@@ -2382,6 +2414,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2382
2414
  };
2383
2415
  };
2384
2416
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2417
+ readonly started: Schema.Int;
2385
2418
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2386
2419
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2387
2420
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2424,6 +2457,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
2424
2457
  };
2425
2458
  };
2426
2459
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2460
+ readonly started: Schema.Int;
2427
2461
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2428
2462
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2429
2463
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5413,6 +5447,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5413
5447
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5414
5448
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5415
5449
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5450
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5416
5451
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5417
5452
  readonly key: Schema.String;
5418
5453
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5431,6 +5466,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5431
5466
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5432
5467
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5433
5468
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5469
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5434
5470
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5435
5471
  readonly key: Schema.String;
5436
5472
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5449,6 +5485,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5449
5485
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5450
5486
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5451
5487
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5488
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5452
5489
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5453
5490
  readonly key: Schema.String;
5454
5491
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5465,6 +5502,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5465
5502
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5466
5503
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5467
5504
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5505
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5468
5506
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5469
5507
  readonly key: Schema.String;
5470
5508
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5489,6 +5527,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5489
5527
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5490
5528
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5491
5529
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5530
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5492
5531
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5493
5532
  readonly key: Schema.String;
5494
5533
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5541,6 +5580,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5541
5580
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5542
5581
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5543
5582
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5583
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5544
5584
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5545
5585
  readonly key: Schema.String;
5546
5586
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5559,6 +5599,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5559
5599
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5560
5600
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5561
5601
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5602
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5562
5603
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5563
5604
  readonly key: Schema.String;
5564
5605
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5577,6 +5618,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5577
5618
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5578
5619
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5579
5620
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5621
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5580
5622
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5581
5623
  readonly key: Schema.String;
5582
5624
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5593,6 +5635,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5593
5635
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5594
5636
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5595
5637
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5638
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5596
5639
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5597
5640
  readonly key: Schema.String;
5598
5641
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5617,6 +5660,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
5617
5660
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5618
5661
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5619
5662
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5663
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5620
5664
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5621
5665
  readonly key: Schema.String;
5622
5666
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -6279,6 +6323,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6279
6323
  }[] | undefined;
6280
6324
  readonly custom?: boolean | undefined;
6281
6325
  readonly title?: string | undefined;
6326
+ readonly hidden?: boolean | undefined;
6282
6327
  readonly when?: readonly {
6283
6328
  readonly key: string;
6284
6329
  readonly op: "eq" | "neq";
@@ -6291,6 +6336,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6291
6336
  readonly description?: string | undefined;
6292
6337
  readonly default?: number | undefined;
6293
6338
  readonly title?: string | undefined;
6339
+ readonly hidden?: boolean | undefined;
6294
6340
  readonly when?: readonly {
6295
6341
  readonly key: string;
6296
6342
  readonly op: "eq" | "neq";
@@ -6305,6 +6351,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6305
6351
  readonly description?: string | undefined;
6306
6352
  readonly default?: number | undefined;
6307
6353
  readonly title?: string | undefined;
6354
+ readonly hidden?: boolean | undefined;
6308
6355
  readonly when?: readonly {
6309
6356
  readonly key: string;
6310
6357
  readonly op: "eq" | "neq";
@@ -6319,6 +6366,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6319
6366
  readonly description?: string | undefined;
6320
6367
  readonly default?: boolean | undefined;
6321
6368
  readonly title?: string | undefined;
6369
+ readonly hidden?: boolean | undefined;
6322
6370
  readonly when?: readonly {
6323
6371
  readonly key: string;
6324
6372
  readonly op: "eq" | "neq";
@@ -6337,6 +6385,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6337
6385
  readonly default?: readonly string[] | undefined;
6338
6386
  readonly custom?: boolean | undefined;
6339
6387
  readonly title?: string | undefined;
6388
+ readonly hidden?: boolean | undefined;
6340
6389
  readonly when?: readonly {
6341
6390
  readonly key: string;
6342
6391
  readonly op: "eq" | "neq";
@@ -6368,6 +6417,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6368
6417
  }[] | undefined;
6369
6418
  readonly custom?: boolean | undefined;
6370
6419
  readonly title?: string | undefined;
6420
+ readonly hidden?: boolean | undefined;
6371
6421
  readonly when?: readonly {
6372
6422
  readonly key: string;
6373
6423
  readonly op: "eq" | "neq";
@@ -6380,6 +6430,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6380
6430
  readonly description?: string | undefined;
6381
6431
  readonly default?: number | undefined;
6382
6432
  readonly title?: string | undefined;
6433
+ readonly hidden?: boolean | undefined;
6383
6434
  readonly when?: readonly {
6384
6435
  readonly key: string;
6385
6436
  readonly op: "eq" | "neq";
@@ -6394,6 +6445,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6394
6445
  readonly description?: string | undefined;
6395
6446
  readonly default?: number | undefined;
6396
6447
  readonly title?: string | undefined;
6448
+ readonly hidden?: boolean | undefined;
6397
6449
  readonly when?: readonly {
6398
6450
  readonly key: string;
6399
6451
  readonly op: "eq" | "neq";
@@ -6408,6 +6460,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6408
6460
  readonly description?: string | undefined;
6409
6461
  readonly default?: boolean | undefined;
6410
6462
  readonly title?: string | undefined;
6463
+ readonly hidden?: boolean | undefined;
6411
6464
  readonly when?: readonly {
6412
6465
  readonly key: string;
6413
6466
  readonly op: "eq" | "neq";
@@ -6426,6 +6479,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
6426
6479
  readonly default?: readonly string[] | undefined;
6427
6480
  readonly custom?: boolean | undefined;
6428
6481
  readonly title?: string | undefined;
6482
+ readonly hidden?: boolean | undefined;
6429
6483
  readonly when?: readonly {
6430
6484
  readonly key: string;
6431
6485
  readonly op: "eq" | "neq";
@@ -7346,6 +7400,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
7346
7400
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
7347
7401
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
7348
7402
  };
7403
+ readonly started: number;
7349
7404
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
7350
7405
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
7351
7406
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
@@ -8132,6 +8187,18 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8132
8187
  readonly metadata?: {
8133
8188
  readonly [x: string]: unknown;
8134
8189
  } | undefined;
8190
+ } | {
8191
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8192
+ readonly data: {};
8193
+ readonly type: "location.shutdown";
8194
+ readonly created: number;
8195
+ readonly location?: {
8196
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
8197
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
8198
+ } | undefined;
8199
+ readonly metadata?: {
8200
+ readonly [x: string]: unknown;
8201
+ } | undefined;
8135
8202
  } | {
8136
8203
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
8137
8204
  readonly data: {
@@ -8464,6 +8531,38 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
8464
8531
  } | undefined;
8465
8532
  }>, never, never, never>, false>;
8466
8533
  export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
8534
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8535
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
8536
+ };
8537
+ readonly created: Schema.Finite;
8538
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8539
+ readonly type: Schema.Literal<"location.shutdown">;
8540
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
8541
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
8542
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
8543
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
8544
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
8545
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
8546
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
8547
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
8548
+ }>, never, never>;
8549
+ }>>>, Schema.optionalKey<Schema.Struct<{
8550
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
8551
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
8552
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
8553
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
8554
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
8555
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
8556
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
8557
+ }>, never, never>;
8558
+ }>>, never, never>;
8559
+ readonly data: Schema.Struct<{}>;
8560
+ }> & {
8561
+ type: "location.shutdown";
8562
+ durability: "ephemeral";
8563
+ durable: undefined;
8564
+ data: Schema.Struct<{}>;
8565
+ }, Schema.Struct<{
8467
8566
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8468
8567
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
8469
8568
  };
@@ -10798,6 +10897,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10798
10897
  };
10799
10898
  };
10800
10899
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10900
+ readonly started: Schema.Int;
10801
10901
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10802
10902
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10803
10903
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10840,6 +10940,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
10840
10940
  };
10841
10941
  };
10842
10942
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
10943
+ readonly started: Schema.Int;
10843
10944
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10844
10945
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10845
10946
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13829,6 +13930,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13829
13930
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13830
13931
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13831
13932
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13933
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13832
13934
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13833
13935
  readonly key: Schema.String;
13834
13936
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13847,6 +13949,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13847
13949
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13848
13950
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13849
13951
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13952
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13850
13953
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13851
13954
  readonly key: Schema.String;
13852
13955
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13865,6 +13968,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13865
13968
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13866
13969
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13867
13970
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13971
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13868
13972
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13869
13973
  readonly key: Schema.String;
13870
13974
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13881,6 +13985,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13881
13985
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13882
13986
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13883
13987
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13988
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13884
13989
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13885
13990
  readonly key: Schema.String;
13886
13991
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13905,6 +14010,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13905
14010
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13906
14011
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13907
14012
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14013
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13908
14014
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13909
14015
  readonly key: Schema.String;
13910
14016
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13957,6 +14063,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13957
14063
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13958
14064
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13959
14065
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14066
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13960
14067
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13961
14068
  readonly key: Schema.String;
13962
14069
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13975,6 +14082,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13975
14082
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13976
14083
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13977
14084
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14085
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13978
14086
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13979
14087
  readonly key: Schema.String;
13980
14088
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13993,6 +14101,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
13993
14101
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13994
14102
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13995
14103
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14104
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
13996
14105
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
13997
14106
  readonly key: Schema.String;
13998
14107
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -14009,6 +14118,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14009
14118
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14010
14119
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14011
14120
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14121
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14012
14122
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
14013
14123
  readonly key: Schema.String;
14014
14124
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -14033,6 +14143,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
14033
14143
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14034
14144
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
14035
14145
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14146
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
14036
14147
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
14037
14148
  readonly key: Schema.String;
14038
14149
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -31,6 +31,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
31
31
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
32
32
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
33
33
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
34
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
34
35
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
35
36
  readonly key: Schema.String;
36
37
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -49,6 +50,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
49
50
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
50
51
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
51
52
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
53
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
52
54
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
53
55
  readonly key: Schema.String;
54
56
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -67,6 +69,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
67
69
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
68
70
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
69
71
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
72
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
70
73
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
71
74
  readonly key: Schema.String;
72
75
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -83,6 +86,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
83
86
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
84
87
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
85
88
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
89
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
86
90
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
87
91
  readonly key: Schema.String;
88
92
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -107,6 +111,7 @@ export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId,
107
111
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
108
112
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
109
113
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
114
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
110
115
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
111
116
  readonly key: Schema.String;
112
117
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -33,4 +33,16 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
33
33
  readonly path: Schema.brand<Schema.String, "RelativePath">;
34
34
  readonly type: Schema.Literals<readonly ["file", "directory"]>;
35
35
  }>>;
36
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.write", "POST", "/api/experimental/fs/write", never, Schema.toCodecStringTree<Schema.Struct<{
37
+ readonly path: Schema.String;
38
+ readonly location: Schema.optional<Schema.Struct<{
39
+ readonly directory: Schema.optional<Schema.String>;
40
+ }>>;
41
+ }>>, Schema.toCodecJson<Schema.Uint8Array>, never, Schema.toCodecJson<Schema.Struct<{
42
+ readonly location: Schema.Struct<{
43
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
44
+ }>;
45
+ readonly data: Schema.Struct<{
46
+ readonly path: Schema.brand<Schema.String, "AbsolutePath">;
47
+ }>;
36
48
  }>>, never, never, never>, false>;
package/dist/groups/fs.js CHANGED
@@ -11,6 +11,12 @@ const ListQuery = Schema.Struct({
11
11
  description: "An absolute path or a path relative to the requested location. Defaults to the location directory.",
12
12
  }),
13
13
  });
14
+ const WriteQuery = Schema.Struct({
15
+ ...LocationQuery.fields,
16
+ path: Schema.String.annotate({
17
+ description: "An absolute path or a path relative to the requested location. Missing parent directories are created.",
18
+ }),
19
+ });
14
20
  const FindQuery = Schema.Struct({
15
21
  ...LocationQuery.fields,
16
22
  query: FileSystem.FindInput.fields.query,
@@ -48,6 +54,17 @@ export const FileSystemGroup = HttpApiGroup.make("server.fs")
48
54
  identifier: "fs.find",
49
55
  summary: "Find files",
50
56
  description: "Find recursively ranked filesystem entries relative to the requested location.",
57
+ })))
58
+ .add(HttpApiEndpoint.post("fs.write", "/api/experimental/fs/write", {
59
+ query: WriteQuery,
60
+ payload: Schema.Uint8Array.pipe(HttpApiSchema.asUint8Array()),
61
+ success: Location.response(FileSystem.Write),
62
+ })
63
+ .annotateMerge(locationQueryOpenApi)
64
+ .annotateMerge(OpenApi.annotations({
65
+ identifier: "experimental.fs.write",
66
+ summary: "Write file",
67
+ description: "Write the raw request body to an absolute path or a path relative to the requested location, creating parent directories, and return the resolved absolute path. Unlike read, the target is not confined to the location. Experimental: may change without compatibility guarantees.",
51
68
  })))
52
69
  .annotateMerge(OpenApi.annotations({
53
70
  title: "filesystem",
@@ -40,6 +40,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
40
40
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
41
41
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
42
42
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
43
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
43
44
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
44
45
  readonly key: Schema.String;
45
46
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -58,6 +59,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
58
59
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
59
60
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
60
61
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
62
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
61
63
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
62
64
  readonly key: Schema.String;
63
65
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -76,6 +78,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
76
78
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
77
79
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
78
80
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
81
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
79
82
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
80
83
  readonly key: Schema.String;
81
84
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -92,6 +95,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
92
95
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
93
96
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
94
97
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
98
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
95
99
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
96
100
  readonly key: Schema.String;
97
101
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -116,6 +120,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
116
120
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
117
121
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
118
122
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
123
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
119
124
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
120
125
  readonly key: Schema.String;
121
126
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -153,6 +158,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
153
158
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
154
159
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
155
160
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
161
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
156
162
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
157
163
  readonly key: Schema.String;
158
164
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -171,6 +177,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
171
177
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
172
178
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
173
179
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
180
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
174
181
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
175
182
  readonly key: Schema.String;
176
183
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -189,6 +196,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
189
196
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
190
197
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
191
198
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
199
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
192
200
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
193
201
  readonly key: Schema.String;
194
202
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -205,6 +213,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
205
213
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
206
214
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
207
215
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
216
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
208
217
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
209
218
  readonly key: Schema.String;
210
219
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -229,6 +238,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
229
238
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
230
239
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
231
240
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
241
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
232
242
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
233
243
  readonly key: Schema.String;
234
244
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -275,6 +285,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
275
285
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
276
286
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
277
287
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
288
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
278
289
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
279
290
  readonly key: Schema.String;
280
291
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -293,6 +304,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
293
304
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
294
305
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
295
306
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
307
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
296
308
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
297
309
  readonly key: Schema.String;
298
310
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -311,6 +323,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
311
323
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
312
324
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
313
325
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
326
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
314
327
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
315
328
  readonly key: Schema.String;
316
329
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -327,6 +340,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
327
340
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
328
341
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
329
342
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
343
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
330
344
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
331
345
  readonly key: Schema.String;
332
346
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -351,6 +365,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
351
365
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
352
366
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
353
367
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
368
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
354
369
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
355
370
  readonly key: Schema.String;
356
371
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -388,6 +403,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
388
403
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
389
404
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
390
405
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
406
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
391
407
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
392
408
  readonly key: Schema.String;
393
409
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -406,6 +422,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
406
422
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
407
423
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
408
424
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
425
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
409
426
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
410
427
  readonly key: Schema.String;
411
428
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -424,6 +441,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
424
441
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
425
442
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
426
443
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
444
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
427
445
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
428
446
  readonly key: Schema.String;
429
447
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -440,6 +458,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
440
458
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
441
459
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
442
460
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
461
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
443
462
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
444
463
  readonly key: Schema.String;
445
464
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -464,6 +483,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
464
483
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
465
484
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
466
485
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
486
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
467
487
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
468
488
  readonly key: Schema.String;
469
489
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -535,6 +555,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
535
555
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
536
556
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
537
557
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
558
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
538
559
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
539
560
  readonly key: Schema.String;
540
561
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -553,6 +574,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
553
574
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
554
575
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
555
576
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
577
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
556
578
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
557
579
  readonly key: Schema.String;
558
580
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -571,6 +593,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
571
593
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
572
594
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
573
595
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
596
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
574
597
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
575
598
  readonly key: Schema.String;
576
599
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -587,6 +610,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
587
610
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
588
611
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
589
612
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
613
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
590
614
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
591
615
  readonly key: Schema.String;
592
616
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -611,6 +635,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
611
635
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
612
636
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
613
637
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
638
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
614
639
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
615
640
  readonly key: Schema.String;
616
641
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -648,6 +673,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
648
673
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
649
674
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
650
675
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
676
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
651
677
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
652
678
  readonly key: Schema.String;
653
679
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -666,6 +692,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
666
692
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
667
693
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
668
694
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
695
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
669
696
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
670
697
  readonly key: Schema.String;
671
698
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -684,6 +711,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
684
711
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
685
712
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
686
713
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
714
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
687
715
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
688
716
  readonly key: Schema.String;
689
717
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -700,6 +728,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
700
728
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
701
729
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
702
730
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
731
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
703
732
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
704
733
  readonly key: Schema.String;
705
734
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -724,6 +753,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
724
753
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
725
754
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
726
755
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
756
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
727
757
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
728
758
  readonly key: Schema.String;
729
759
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -770,6 +800,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
770
800
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
771
801
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
772
802
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
803
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
773
804
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
774
805
  readonly key: Schema.String;
775
806
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -788,6 +819,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
788
819
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
789
820
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
790
821
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
822
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
791
823
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
792
824
  readonly key: Schema.String;
793
825
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -806,6 +838,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
806
838
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
807
839
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
808
840
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
841
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
809
842
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
810
843
  readonly key: Schema.String;
811
844
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -822,6 +855,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
822
855
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
823
856
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
824
857
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
858
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
825
859
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
826
860
  readonly key: Schema.String;
827
861
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -846,6 +880,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
846
880
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
847
881
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
848
882
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
883
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
849
884
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
850
885
  readonly key: Schema.String;
851
886
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -883,6 +918,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
883
918
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
884
919
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
885
920
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
921
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
886
922
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
887
923
  readonly key: Schema.String;
888
924
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -901,6 +937,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
901
937
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
902
938
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
903
939
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
940
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
904
941
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
905
942
  readonly key: Schema.String;
906
943
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -919,6 +956,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
919
956
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
920
957
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
921
958
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
959
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
922
960
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
923
961
  readonly key: Schema.String;
924
962
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -935,6 +973,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
935
973
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
936
974
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
937
975
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
976
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
938
977
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
939
978
  readonly key: Schema.String;
940
979
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -959,6 +998,7 @@ export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integra
959
998
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
960
999
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
961
1000
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
1001
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
962
1002
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
963
1003
  readonly key: Schema.String;
964
1004
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -1,12 +1,13 @@
1
- import { Schema } from "effect";
2
- import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
1
+ import { Context, Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/unstable/httpapi";
3
+ import { ServiceUnavailableError } from "../errors.js";
3
4
  export declare const LocationQuery: Schema.Struct<{
4
5
  readonly location: Schema.optional<Schema.Struct<{
5
6
  readonly directory: Schema.optional<Schema.String>;
6
7
  }>>;
7
8
  }>;
8
- export declare const locationQueryOpenApi: import("effect/Context").Context<never>;
9
- export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", never, Schema.toCodecStringTree<Schema.Struct<{
9
+ export declare const locationQueryOpenApi: Context.Context<never>;
10
+ export declare const makeLocationGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.location", HttpApiEndpoint.HttpApiEndpoint<"location.get", "GET", "/api/location", never, Schema.toCodecStringTree<Schema.Struct<{
10
11
  readonly location: Schema.optional<Schema.Struct<{
11
12
  readonly directory: Schema.optional<Schema.String>;
12
13
  }>>;
@@ -19,4 +20,4 @@ export declare const LocationGroup: HttpApiGroup.HttpApiGroup<"server.location",
19
20
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
20
21
  readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
21
22
  }>;
22
- }>>, never, never, never>, false>;
23
+ }>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"location.reload", "POST", "/api/location/reload", never, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never>, false>;
@@ -1,6 +1,7 @@
1
1
  import { Location } from "@opencode/schema/location";
2
- import { Schema } from "effect";
3
- import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
2
+ import { Context, Schema } from "effect";
3
+ import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
4
+ import { ServiceUnavailableError } from "../errors.js";
4
5
  export const LocationQuery = Schema.Struct({
5
6
  location: Schema.optional(Schema.Struct({
6
7
  directory: Schema.optional(Schema.String),
@@ -19,15 +20,26 @@ export const locationQueryOpenApi = OpenApi.annotations({
19
20
  };
20
21
  },
21
22
  });
22
- export const LocationGroup = HttpApiGroup.make("server.location")
23
+ // Middleware is applied per endpoint: reload acts on every loaded location and
24
+ // must not boot the caller's location first.
25
+ export const makeLocationGroup = (locationMiddleware) => HttpApiGroup.make("server.location")
23
26
  .add(HttpApiEndpoint.get("location.get", "/api/location", {
24
27
  query: LocationQuery,
25
28
  success: Location.PublicInfo,
26
29
  })
30
+ .middleware(locationMiddleware)
27
31
  .annotateMerge(locationQueryOpenApi)
28
32
  .annotateMerge(OpenApi.annotations({
29
33
  identifier: "location.get",
30
34
  summary: "Get location",
31
35
  description: "Resolve the requested location or the server default location.",
36
+ })))
37
+ .add(HttpApiEndpoint.post("location.reload", "/api/location/reload", {
38
+ success: HttpApiSchema.NoContent,
39
+ error: ServiceUnavailableError,
40
+ }).annotateMerge(OpenApi.annotations({
41
+ identifier: "location.reload",
42
+ summary: "Reload configuration",
43
+ description: "Shut down and rebuild every loaded location. Pending permissions and forms are cancelled; running sessions continue with fresh services at the next step boundary. Emits location.shutdown for client recovery and responds once all replacement builds settle.",
32
44
  })))
33
45
  .annotateMerge(OpenApi.annotations({ title: "location" }));
@@ -1,13 +1,19 @@
1
1
  import { Schema } from "effect";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
3
- export declare const ServerStatus: Schema.Struct<{
3
+ export declare const ServerInfo: Schema.Struct<{
4
4
  readonly version: Schema.String;
5
5
  readonly pid: Schema.Int;
6
6
  readonly urls: Schema.$Array<Schema.String>;
7
+ readonly paths: Schema.Struct<{
8
+ readonly tmp: Schema.String;
9
+ }>;
7
10
  }>;
8
- export type ServerStatus = typeof ServerStatus.Type;
9
- export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.status", "GET", "/api/status", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
11
+ export type ServerInfo = typeof ServerInfo.Type;
12
+ export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.info", "GET", "/api/info", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
10
13
  readonly version: Schema.String;
11
14
  readonly pid: Schema.Int;
12
15
  readonly urls: Schema.$Array<Schema.String>;
16
+ readonly paths: Schema.Struct<{
17
+ readonly tmp: Schema.String;
18
+ }>;
13
19
  }>>, never, never, never>, false>;
@@ -1,17 +1,20 @@
1
1
  import { Schema } from "effect";
2
2
  import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
3
- export const ServerStatus = Schema.Struct({
3
+ export const ServerInfo = Schema.Struct({
4
4
  version: Schema.String,
5
5
  // 0 means the runtime has no OS process identity (e.g. workerd).
6
6
  pid: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
7
7
  urls: Schema.Array(Schema.String),
8
- }).annotate({ identifier: "ServerStatus" });
8
+ paths: Schema.Struct({
9
+ tmp: Schema.String,
10
+ }),
11
+ }).annotate({ identifier: "ServerInfo" });
9
12
  export const ServerGroup = HttpApiGroup.make("server.server")
10
- .add(HttpApiEndpoint.get("server.status", "/api/status", {
11
- success: ServerStatus,
13
+ .add(HttpApiEndpoint.get("server.info", "/api/info", {
14
+ success: ServerInfo,
12
15
  }).annotateMerge(OpenApi.annotations({
13
- identifier: "server.status",
14
- summary: "Get server status",
15
- description: "Return the server identity, connection URLs, and readiness status.",
16
+ identifier: "server.info",
17
+ summary: "Get server info",
18
+ description: "Return the server identity, connection URLs, paths, and readiness status.",
16
19
  })))
17
20
  .annotateMerge(OpenApi.annotations({ title: "server" }));
@@ -6552,6 +6552,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6552
6552
  };
6553
6553
  };
6554
6554
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
6555
+ readonly started: Schema.Int;
6555
6556
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6556
6557
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6557
6558
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -6594,6 +6595,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
6594
6595
  };
6595
6596
  };
6596
6597
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
6598
+ readonly started: Schema.Int;
6597
6599
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6598
6600
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6599
6601
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -9314,6 +9316,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
9314
9316
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
9315
9317
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
9316
9318
  };
9319
+ readonly started: number;
9317
9320
  readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
9318
9321
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
9319
9322
  readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
@@ -10643,6 +10646,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10643
10646
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10644
10647
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10645
10648
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10649
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10646
10650
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10647
10651
  readonly key: Schema.String;
10648
10652
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10661,6 +10665,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10661
10665
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10662
10666
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10663
10667
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10668
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10664
10669
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10665
10670
  readonly key: Schema.String;
10666
10671
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10679,6 +10684,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10679
10684
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10680
10685
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10681
10686
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10687
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10682
10688
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10683
10689
  readonly key: Schema.String;
10684
10690
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10695,6 +10701,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10695
10701
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10696
10702
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10697
10703
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10704
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10698
10705
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10699
10706
  readonly key: Schema.String;
10700
10707
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10719,6 +10726,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10719
10726
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10720
10727
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10721
10728
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10729
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10722
10730
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10723
10731
  readonly key: Schema.String;
10724
10732
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10772,6 +10780,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10772
10780
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10773
10781
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10774
10782
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10783
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10775
10784
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10776
10785
  readonly key: Schema.String;
10777
10786
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10790,6 +10799,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10790
10799
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10791
10800
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10792
10801
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10802
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10793
10803
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10794
10804
  readonly key: Schema.String;
10795
10805
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10808,6 +10818,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10808
10818
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10809
10819
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10810
10820
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10821
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10811
10822
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10812
10823
  readonly key: Schema.String;
10813
10824
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10824,6 +10835,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10824
10835
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10825
10836
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10826
10837
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10838
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10827
10839
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10828
10840
  readonly key: Schema.String;
10829
10841
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10848,6 +10860,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10848
10860
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10849
10861
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10850
10862
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10863
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10851
10864
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10852
10865
  readonly key: Schema.String;
10853
10866
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10888,6 +10901,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10888
10901
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10889
10902
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10890
10903
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10904
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10891
10905
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10892
10906
  readonly key: Schema.String;
10893
10907
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10906,6 +10920,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10906
10920
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10907
10921
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10908
10922
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10923
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10909
10924
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10910
10925
  readonly key: Schema.String;
10911
10926
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10924,6 +10939,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10924
10939
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10925
10940
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10926
10941
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10942
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10927
10943
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10928
10944
  readonly key: Schema.String;
10929
10945
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10940,6 +10956,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10940
10956
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10941
10957
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10942
10958
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10959
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10943
10960
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10944
10961
  readonly key: Schema.String;
10945
10962
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -10964,6 +10981,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
10964
10981
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10965
10982
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10966
10983
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10984
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
10967
10985
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
10968
10986
  readonly key: Schema.String;
10969
10987
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11024,6 +11042,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11024
11042
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11025
11043
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11026
11044
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11045
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11027
11046
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11028
11047
  readonly key: Schema.String;
11029
11048
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11042,6 +11061,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11042
11061
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11043
11062
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11044
11063
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11064
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11045
11065
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11046
11066
  readonly key: Schema.String;
11047
11067
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11060,6 +11080,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11060
11080
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11061
11081
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11062
11082
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11083
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11063
11084
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11064
11085
  readonly key: Schema.String;
11065
11086
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11076,6 +11097,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11076
11097
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11077
11098
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11078
11099
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11100
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11079
11101
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11080
11102
  readonly key: Schema.String;
11081
11103
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11100,6 +11122,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
11100
11122
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11101
11123
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11102
11124
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11125
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11103
11126
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11104
11127
  readonly key: Schema.String;
11105
11128
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/protocol",
4
- "version": "2.0.5",
4
+ "version": "2.0.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "typecheck": "tsgo --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@opencode/schema": "2.0.5",
35
+ "@opencode/schema": "2.0.7",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {