@opencode/schema 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.
@@ -4,11 +4,11 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
4
4
  readonly portable_shell_scanner: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5
5
  readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
6
6
  readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
7
- readonly action: Schema.Literal<"provider.use">;
7
+ readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
8
8
  readonly resource: Schema.String;
9
9
  readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
10
10
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
11
- readonly action: Schema.Literal<"provider.use">;
11
+ readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
12
12
  readonly resource: Schema.String;
13
13
  readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
14
14
  }>>>, never, never>;
@@ -3,7 +3,7 @@ import { Schema } from "effect";
3
3
  export declare const Effect: Schema.Literals<readonly ["allow", "deny"]>;
4
4
  export type Effect = typeof Effect.Type;
5
5
  export declare const Info: Schema.Struct<{
6
- readonly action: Schema.Literal<"provider.use">;
6
+ readonly action: Schema.Literals<readonly ["provider.use", "permission"]>;
7
7
  readonly resource: Schema.String;
8
8
  readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
9
9
  }>;
@@ -2,7 +2,7 @@ export * as ConfigPolicy from "./policy.js";
2
2
  import { Schema } from "effect";
3
3
  export const Effect = Schema.Literals(["allow", "deny"]);
4
4
  export const Info = Schema.Struct({
5
- action: Schema.Literal("provider.use"),
5
+ action: Schema.Literals(["provider.use", "permission"]),
6
6
  resource: Schema.String,
7
7
  effect: Effect,
8
8
  });
@@ -4,6 +4,38 @@ import { Durable } from "./durable-event-manifest.js";
4
4
  import { Event } from "./event.js";
5
5
  import { SessionEvent } from "./session-event.js";
6
6
  export declare const ServerDefinitions: readonly [Schema.Struct<{
7
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
9
+ };
10
+ readonly created: Schema.Finite;
11
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
12
+ readonly type: Schema.Literal<"location.shutdown">;
13
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
14
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
15
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
16
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
17
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
18
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
19
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
20
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
21
+ }>, never, never>;
22
+ }>>>, Schema.optionalKey<Schema.Struct<{
23
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
24
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
25
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
26
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
27
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
28
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
29
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
30
+ }>, never, never>;
31
+ }>>, never, never>;
32
+ readonly data: Schema.Struct<{}>;
33
+ }> & {
34
+ type: "location.shutdown";
35
+ durability: "ephemeral";
36
+ durable: undefined;
37
+ data: Schema.Struct<{}>;
38
+ }, Schema.Struct<{
7
39
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
8
40
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
9
41
  };
@@ -2338,6 +2370,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2338
2370
  };
2339
2371
  };
2340
2372
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2373
+ readonly started: Schema.Int;
2341
2374
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2342
2375
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2343
2376
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -2380,6 +2413,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
2380
2413
  };
2381
2414
  };
2382
2415
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
2416
+ readonly started: Schema.Int;
2383
2417
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2384
2418
  create: () => string & import("effect/Brand").Brand<"SessionID">;
2385
2419
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -5369,6 +5403,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5369
5403
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5370
5404
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5371
5405
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5406
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5372
5407
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5373
5408
  readonly key: Schema.String;
5374
5409
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5387,6 +5422,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5387
5422
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5388
5423
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5389
5424
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5425
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5390
5426
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5391
5427
  readonly key: Schema.String;
5392
5428
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5405,6 +5441,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5405
5441
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5406
5442
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5407
5443
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5444
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5408
5445
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5409
5446
  readonly key: Schema.String;
5410
5447
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5421,6 +5458,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5421
5458
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5422
5459
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5423
5460
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5461
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5424
5462
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5425
5463
  readonly key: Schema.String;
5426
5464
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5445,6 +5483,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5445
5483
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5446
5484
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5447
5485
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5486
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5448
5487
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5449
5488
  readonly key: Schema.String;
5450
5489
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5497,6 +5536,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5497
5536
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5498
5537
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5499
5538
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5539
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5500
5540
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5501
5541
  readonly key: Schema.String;
5502
5542
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5515,6 +5555,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5515
5555
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5516
5556
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5517
5557
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5558
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5518
5559
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5519
5560
  readonly key: Schema.String;
5520
5561
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5533,6 +5574,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5533
5574
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5534
5575
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5535
5576
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5577
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5536
5578
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5537
5579
  readonly key: Schema.String;
5538
5580
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5549,6 +5591,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5549
5591
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5550
5592
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5551
5593
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5594
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5552
5595
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5553
5596
  readonly key: Schema.String;
5554
5597
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -5573,6 +5616,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
5573
5616
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5574
5617
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
5575
5618
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5619
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
5576
5620
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
5577
5621
  readonly key: Schema.String;
5578
5622
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -6186,6 +6230,38 @@ export declare const isServer: (event: {
6186
6230
  readonly type: string;
6187
6231
  }) => event is ServerEvent;
6188
6232
  export declare const Definitions: readonly [Schema.Struct<{
6233
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6234
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6235
+ };
6236
+ readonly created: Schema.Finite;
6237
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6238
+ readonly type: Schema.Literal<"location.shutdown">;
6239
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6240
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6241
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6242
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6243
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6244
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6245
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6246
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6247
+ }>, never, never>;
6248
+ }>>>, Schema.optionalKey<Schema.Struct<{
6249
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6250
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6251
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6252
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6253
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6254
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6255
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6256
+ }>, never, never>;
6257
+ }>>, never, never>;
6258
+ readonly data: Schema.Struct<{}>;
6259
+ }> & {
6260
+ type: "location.shutdown";
6261
+ durability: "ephemeral";
6262
+ durable: undefined;
6263
+ data: Schema.Struct<{}>;
6264
+ }, Schema.Struct<{
6189
6265
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6190
6266
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
6191
6267
  };
@@ -8520,6 +8596,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8520
8596
  };
8521
8597
  };
8522
8598
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
8599
+ readonly started: Schema.Int;
8523
8600
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8524
8601
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8525
8602
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8562,6 +8639,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8562
8639
  };
8563
8640
  };
8564
8641
  readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
8642
+ readonly started: Schema.Int;
8565
8643
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8566
8644
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8567
8645
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -11623,6 +11701,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11623
11701
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11624
11702
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11625
11703
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11704
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11626
11705
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11627
11706
  readonly key: Schema.String;
11628
11707
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11641,6 +11720,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11641
11720
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11642
11721
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11643
11722
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11723
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11644
11724
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11645
11725
  readonly key: Schema.String;
11646
11726
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11659,6 +11739,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11659
11739
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11660
11740
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11661
11741
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11742
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11662
11743
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11663
11744
  readonly key: Schema.String;
11664
11745
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11675,6 +11756,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11675
11756
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11676
11757
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11677
11758
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11759
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11678
11760
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11679
11761
  readonly key: Schema.String;
11680
11762
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11699,6 +11781,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11699
11781
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11700
11782
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11701
11783
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11784
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11702
11785
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11703
11786
  readonly key: Schema.String;
11704
11787
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11751,6 +11834,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11751
11834
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11752
11835
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11753
11836
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11837
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11754
11838
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11755
11839
  readonly key: Schema.String;
11756
11840
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11769,6 +11853,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11769
11853
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11770
11854
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11771
11855
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11856
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11772
11857
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11773
11858
  readonly key: Schema.String;
11774
11859
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11787,6 +11872,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11787
11872
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11788
11873
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11789
11874
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11875
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11790
11876
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11791
11877
  readonly key: Schema.String;
11792
11878
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11803,6 +11889,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11803
11889
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11804
11890
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11805
11891
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11892
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11806
11893
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11807
11894
  readonly key: Schema.String;
11808
11895
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -11827,6 +11914,7 @@ export declare const Definitions: readonly [Schema.Struct<{
11827
11914
  readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11828
11915
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
11829
11916
  readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11917
+ readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
11830
11918
  readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
11831
11919
  readonly key: Schema.String;
11832
11920
  readonly op: Schema.Literals<readonly ["eq", "neq"]>;
@@ -13,6 +13,7 @@ import { InstallationEvent } from "./installation-event.js";
13
13
  import { Integration } from "./integration.js";
14
14
  import { LegacyEventV1 } from "./legacy-event.js";
15
15
  import { LspEvent } from "./lsp-event.js";
16
+ import { LocationEvent } from "./location-event.js";
16
17
  import { McpEvent } from "./mcp-event.js";
17
18
  import { Model } from "./model.js";
18
19
  import { ModelsDev } from "./models-dev.js";
@@ -36,7 +37,7 @@ import { WorkspaceEvent } from "./workspace-event.js";
36
37
  import { WorktreeEvent } from "./worktree-event.js";
37
38
  import { WebSearch } from "./websearch.js";
38
39
  const coreDefinitions = Event.inventory(...SessionEvent.Definitions);
39
- const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Provider.Event.Definitions, ...Model.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
40
+ const foundationDefinitions = Event.inventory(...LocationEvent.Definitions, ...ModelsDev.Event.Definitions, ...Credential.Event.Definitions, ...Integration.Event.Definitions, ...Provider.Event.Definitions, ...Model.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
40
41
  const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...Project.Event.Definitions, ...Worktree.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...PersistentPty.Event.Definitions, ...Shell.Event.Definitions, ...Form.Event.Definitions, ...WebSearch.Event.Definitions);
41
42
  export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions,
42
43
  // Current events the TUI consumes from the public stream.
@@ -116,3 +116,8 @@ declare const FindInput_base: Schema.Class<FindInput, Schema.Struct<{
116
116
  }>, {}>;
117
117
  export declare class FindInput extends FindInput_base {
118
118
  }
119
+ export interface Write extends Schema.Schema.Type<typeof Write> {
120
+ }
121
+ export declare const Write: Schema.Struct<{
122
+ readonly path: Schema.brand<Schema.String, "AbsolutePath">;
123
+ }>;
@@ -2,7 +2,7 @@ export * as FileSystem from "./filesystem.js";
2
2
  import { Schema } from "effect";
3
3
  import { optional } from "./schema.js";
4
4
  import { ephemeral, inventory } from "./event.js";
5
- import { NonNegativeInt, PositiveInt, RelativePath } from "./schema.js";
5
+ import { AbsolutePath, NonNegativeInt, PositiveInt, RelativePath } from "./schema.js";
6
6
  const Changed = ephemeral({
7
7
  type: "filesystem.changed",
8
8
  schema: {
@@ -33,3 +33,6 @@ export class FindInput extends Schema.Class("FileSystem.FindInput")({
33
33
  limit: PositiveInt.pipe(optional),
34
34
  }) {
35
35
  }
36
+ export const Write = Schema.Struct({
37
+ path: AbsolutePath,
38
+ }).annotate({ identifier: "FileSystem.Write" });