@foldkit/devtools 0.169.0-canary.1f6776fa7ece → 0.169.0-canary.7ee214268c60

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The in-browser DevTools overlay for [Foldkit](https://foldkit.dev).
4
4
 
5
- The overlay displays every Message flowing through your app and lets you inspect the Model, Message, Commands, and Mounts at any point in time. Time-travel mode rewinds the UI to any past Model, Inspect mode browses snapshots without pausing the app, and Block drill-in scopes the Message list to a nested module. It renders inside a shadow DOM, so it won't interfere with your styles or layout.
5
+ The overlay displays every Message flowing through your app and lets you inspect the Model, Message, Commands, and Mounts at any point in time. Time-travel mode rewinds the UI to any past Model, Inspect mode browses snapshots without pausing the app, and Submodel drill-in scopes the Message list to a nested module. It renders inside a shadow DOM, so it won't interfere with your styles or layout.
6
6
 
7
7
  ## Installation
8
8
 
@@ -21,30 +21,24 @@ yarn add --dev @foldkit/devtools
21
21
  With `@foldkit/vite-plugin`, installing this package as a development dependency is enough to mount the overlay during development. The plugin leaves it out of production builds:
22
22
 
23
23
  ```typescript
24
- // src/entry.ts
25
- import { Program, Runtime } from 'foldkit'
24
+ import { Runtime } from 'foldkit'
26
25
 
27
- import { ApplicationBlock } from './application'
28
-
29
- const program = Program.make({
30
- block: ApplicationBlock,
31
- container: document.getElementById('root'),
32
- devTools: { dispatch: true },
26
+ const application = Runtime.makeApplication({
27
+ // ...
28
+ devTools: {
29
+ Message,
30
+ },
33
31
  })
34
32
 
35
- Runtime.run(program)
33
+ Runtime.run(application)
36
34
  ```
37
35
 
38
- The application root is an ordinary Block created with `Block.makeDefinition('Application', { Model, Message })`. Author its implementation through `ApplicationComposition`. Call `prepareBlock` inside a private `prepare` function, then export `ApplicationBlock` with its matching `FromAssembly` annotation and `Block.assemble(prepare)`. Pass that Block to `Program.make` in the entry point.
39
-
40
- The `devTools` configuration is optional. Development inspection is enabled by default, while external Message dispatch is disabled. Set `dispatch: true` when the [DevTools MCP server](https://foldkit.dev/ai/mcp) should discover and dispatch the completed root Block's Messages. Foldkit derives that Schema from `ApplicationBlock`, including the generated envelopes for registered child Blocks.
36
+ The `devTools` configuration is optional unless you need settings such as `Message`, `position`, or `excludeFromHistory`. Recording and the WebSocket bridge that the [DevTools MCP server](https://foldkit.dev/ai/mcp) connects to live in Foldkit's core Runtime.
41
37
 
42
38
  To include the overlay in production, move `@foldkit/devtools` to regular `dependencies` and set `show: 'Always'`. The dependency section is the build-time opt-in, and `show` controls whether the Runtime mounts it:
43
39
 
44
40
  ```typescript
45
- const program = Program.make({
46
- block: ApplicationBlock,
47
- container,
41
+ const application = Runtime.makeApplication({
48
42
  // ...
49
43
  devTools: {
50
44
  show: 'Always',
@@ -1 +1 @@
1
- {"version":3,"file":"optionExtensions.d.ts","sources":["../../src/internal/optionExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,IAAI,EAAE;IACjB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACvD,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAGpD,CAAA"}
1
+ {"version":3,"file":"optionExtensions.d.ts","sourceRoot":"","sources":["../../src/internal/optionExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEzC,eAAO,MAAM,IAAI,EAAE;IACjB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACvD,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;CAGpD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-styles.d.ts","sources":["../src/overlay-styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,yuhBAq3BzB,CAAA"}
1
+ {"version":3,"file":"overlay-styles.d.ts","sourceRoot":"","sources":["../src/overlay-styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,yuhBAq3BzB,CAAA"}
package/dist/overlay.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { Context, Effect, HashSet, Layer, Option, Schema, SubscriptionRef } from 'effect';
2
- import { KeyValueStore } from 'effect/persistence';
1
+ import { Context, Effect, HashSet, Option, Schema, SubscriptionRef } from 'effect';
2
+ import * as Command from 'foldkit/command';
3
3
  import { type CommandRecord, type DevToolsStore, type MountRecord, type StoreState } from 'foldkit/devtools-host';
4
4
  import type { DevToolsMode, DevToolsPosition } from 'foldkit/runtime';
5
5
  declare const StoreService_base: Context.ServiceClass<StoreService, "foldkit/DevToolsStore", Readonly<{
6
6
  recordInit: (model: unknown, commands: ReadonlyArray<CommandRecord>, mountStarts?: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
7
7
  recordMessage: (message: Readonly<{
8
8
  _tag: string;
9
- }>, modelBeforeUpdate: unknown, modelAfterUpdate: unknown, commands: ReadonlyArray<CommandRecord>, isModelChanged: boolean) => Effect.Effect<number>;
10
- recordResolvedCommand: (id: number, blockPath: ReadonlyArray<string>) => Effect.Effect<void>;
9
+ }>, modelBeforeUpdate: unknown, modelAfterUpdate: unknown, commands: ReadonlyArray<CommandRecord>, isModelChanged: boolean) => Effect.Effect<void>;
10
+ recordResolvedCommand: (id: number, submodelPath: ReadonlyArray<string>) => Effect.Effect<void>;
11
11
  updateLatestModel: (model: unknown) => Effect.Effect<void>;
12
12
  attachRenderedMounts: (mountStarts: ReadonlyArray<MountRecord>, mountEnds: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
13
13
  getModelAtIndex: (index: number) => Effect.Effect<unknown>;
@@ -26,106 +26,19 @@ declare class StoreService extends StoreService_base {
26
26
  declare const ShadowRootService_base: Context.ServiceClass<ShadowRootService, "foldkit/DevToolsShadowRoot", ShadowRoot>;
27
27
  declare class ShadowRootService extends ShadowRootService_base {
28
28
  }
29
- export declare const LockScroll: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/LockScroll", {
29
+ export declare const LockScroll: Command.CommandDefinitionNoArgs<"LockScroll", Effect.Effect<{
30
30
  readonly _tag: "CompletedLockScroll";
31
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/LockScroll", Effect.Effect<{
32
- readonly _tag: "CompletedLockScroll";
33
- }, never, import("foldkit/command").Handler<"Application/LockScroll", void, {
34
- readonly _tag: "CompletedLockScroll";
35
- }>>> & Readonly<{
36
- toLayer: import("foldkit/command").ToLayer<"Application/LockScroll", void, {
37
- readonly _tag: "CompletedLockScroll";
38
- }>;
39
- }>)) & Readonly<{
40
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/LockScroll", void, {
41
- readonly _tag: "CompletedLockScroll";
42
- }>, never, never>;
43
- }> & Readonly<{
44
- toLayer: import("foldkit/command").ToLayer<"Application/LockScroll", void, {
45
- readonly _tag: "CompletedLockScroll";
46
- }>;
47
- }>;
48
- export declare const UnlockScroll: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/UnlockScroll", {
49
- readonly _tag: "CompletedUnlockScroll";
50
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/UnlockScroll", Effect.Effect<{
31
+ }, never, never>>;
32
+ export declare const UnlockScroll: Command.CommandDefinitionNoArgs<"UnlockScroll", Effect.Effect<{
51
33
  readonly _tag: "CompletedUnlockScroll";
52
- }, never, import("foldkit/command").Handler<"Application/UnlockScroll", void, {
53
- readonly _tag: "CompletedUnlockScroll";
54
- }>>> & Readonly<{
55
- toLayer: import("foldkit/command").ToLayer<"Application/UnlockScroll", void, {
56
- readonly _tag: "CompletedUnlockScroll";
57
- }>;
58
- }>)) & Readonly<{
59
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/UnlockScroll", void, {
60
- readonly _tag: "CompletedUnlockScroll";
61
- }>, never, never>;
62
- }> & Readonly<{
63
- toLayer: import("foldkit/command").ToLayer<"Application/UnlockScroll", void, {
64
- readonly _tag: "CompletedUnlockScroll";
65
- }>;
66
- }>;
67
- export declare const PersistDevToolsState: (import("foldkit/command").DefinitionWithArgs<"Application/PersistDevToolsState", {
68
- isOpen: Schema.Boolean;
69
- isFlattened: Schema.Boolean;
70
- }, Pick<{
71
- readonly isOpen: boolean;
72
- readonly isFlattened: boolean;
73
- }, "isFlattened" | "isOpen">, Effect.Effect<{
74
- readonly _tag: "CompletedPersistDevToolsState";
75
- }, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
76
- readonly isOpen: boolean;
77
- readonly isFlattened: boolean;
78
- }, {
79
- readonly _tag: "CompletedPersistDevToolsState";
80
- }>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/PersistDevToolsState", {
34
+ }, never, never>>;
35
+ export declare const PersistDevToolsState: Command.CommandDefinitionWithArgs<"PersistDevToolsState", {
81
36
  isOpen: Schema.Boolean;
82
37
  isFlattened: Schema.Boolean;
83
38
  }, Effect.Effect<{
84
39
  readonly _tag: "CompletedPersistDevToolsState";
85
- }, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
86
- readonly isOpen: boolean;
87
- readonly isFlattened: boolean;
88
- }, {
89
- readonly _tag: "CompletedPersistDevToolsState";
90
- }>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/PersistDevToolsState", {
91
- isOpen: Schema.Boolean;
92
- isFlattened: Schema.Boolean;
93
- }, {
94
- readonly _tag: "CompletedPersistDevToolsState";
95
- }>) & Readonly<{
96
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/PersistDevToolsState", {
97
- readonly isOpen: boolean;
98
- readonly isFlattened: boolean;
99
- }, {
100
- readonly _tag: "CompletedPersistDevToolsState";
101
- }>, never, KeyValueStore.KeyValueStore>;
102
- }> & Readonly<{
103
- toLayer: import("foldkit/command").ToLayer<"Application/PersistDevToolsState", {
104
- readonly isOpen: boolean;
105
- readonly isFlattened: boolean;
106
- }, {
107
- readonly _tag: "CompletedPersistDevToolsState";
108
- }>;
109
- }>;
110
- export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWithArgs<"Application/JumpToAndInspect", {
111
- index: Schema.Number;
112
- }, Pick<{
113
- readonly index: number;
114
- }, "index">, Effect.Effect<{
115
- readonly _tag: "ReceivedInspectedState";
116
- readonly model: unknown;
117
- readonly maybeMessage: Option.Option<unknown>;
118
- readonly changedPaths: HashSet.HashSet<string>;
119
- readonly affectedPaths: HashSet.HashSet<string>;
120
- }, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
121
- readonly index: number;
122
- }, {
123
- readonly _tag: "ReceivedInspectedState";
124
- readonly model: unknown;
125
- readonly maybeMessage: Option.Option<unknown>;
126
- readonly changedPaths: HashSet.HashSet<string>;
127
- readonly affectedPaths: HashSet.HashSet<string>;
128
- }>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/JumpToAndInspect", {
40
+ }, never, never>>;
41
+ export declare const JumpToAndInspect: Command.CommandDefinitionWithArgs<"JumpToAndInspect", {
129
42
  index: Schema.Number;
130
43
  }, Effect.Effect<{
131
44
  readonly _tag: "ReceivedInspectedState";
@@ -133,62 +46,8 @@ export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWith
133
46
  readonly maybeMessage: Option.Option<unknown>;
134
47
  readonly changedPaths: HashSet.HashSet<string>;
135
48
  readonly affectedPaths: HashSet.HashSet<string>;
136
- }, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
137
- readonly index: number;
138
- }, {
139
- readonly _tag: "ReceivedInspectedState";
140
- readonly model: unknown;
141
- readonly maybeMessage: Option.Option<unknown>;
142
- readonly changedPaths: HashSet.HashSet<string>;
143
- readonly affectedPaths: HashSet.HashSet<string>;
144
- }>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/JumpToAndInspect", {
145
- index: Schema.Number;
146
- }, {
147
- readonly _tag: "ReceivedInspectedState";
148
- readonly model: unknown;
149
- readonly maybeMessage: Option.Option<unknown>;
150
- readonly changedPaths: HashSet.HashSet<string>;
151
- readonly affectedPaths: HashSet.HashSet<string>;
152
- }>) & Readonly<{
153
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/JumpToAndInspect", {
154
- readonly index: number;
155
- }, {
156
- readonly _tag: "ReceivedInspectedState";
157
- readonly model: unknown;
158
- readonly maybeMessage: Option.Option<unknown>;
159
- readonly changedPaths: HashSet.HashSet<string>;
160
- readonly affectedPaths: HashSet.HashSet<string>;
161
- }>, never, StoreService>;
162
- }> & Readonly<{
163
- toLayer: import("foldkit/command").ToLayer<"Application/JumpToAndInspect", {
164
- readonly index: number;
165
- }, {
166
- readonly _tag: "ReceivedInspectedState";
167
- readonly model: unknown;
168
- readonly maybeMessage: Option.Option<unknown>;
169
- readonly changedPaths: HashSet.HashSet<string>;
170
- readonly affectedPaths: HashSet.HashSet<string>;
171
- }>;
172
- }>;
173
- export declare const InspectState: (import("foldkit/command").DefinitionWithArgs<"Application/InspectState", {
174
- index: Schema.Number;
175
- }, Pick<{
176
- readonly index: number;
177
- }, "index">, Effect.Effect<{
178
- readonly _tag: "ReceivedInspectedState";
179
- readonly model: unknown;
180
- readonly maybeMessage: Option.Option<unknown>;
181
- readonly changedPaths: HashSet.HashSet<string>;
182
- readonly affectedPaths: HashSet.HashSet<string>;
183
- }, never, import("foldkit/command").Handler<"Application/InspectState", {
184
- readonly index: number;
185
- }, {
186
- readonly _tag: "ReceivedInspectedState";
187
- readonly model: unknown;
188
- readonly maybeMessage: Option.Option<unknown>;
189
- readonly changedPaths: HashSet.HashSet<string>;
190
- readonly affectedPaths: HashSet.HashSet<string>;
191
- }>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/InspectState", {
49
+ }, never, StoreService>>;
50
+ export declare const InspectState: Command.CommandDefinitionWithArgs<"InspectState", {
192
51
  index: Schema.Number;
193
52
  }, Effect.Effect<{
194
53
  readonly _tag: "ReceivedInspectedState";
@@ -196,307 +55,44 @@ export declare const InspectState: (import("foldkit/command").DefinitionWithArgs
196
55
  readonly maybeMessage: Option.Option<unknown>;
197
56
  readonly changedPaths: HashSet.HashSet<string>;
198
57
  readonly affectedPaths: HashSet.HashSet<string>;
199
- }, never, import("foldkit/command").Handler<"Application/InspectState", {
200
- readonly index: number;
201
- }, {
202
- readonly _tag: "ReceivedInspectedState";
203
- readonly model: unknown;
204
- readonly maybeMessage: Option.Option<unknown>;
205
- readonly changedPaths: HashSet.HashSet<string>;
206
- readonly affectedPaths: HashSet.HashSet<string>;
207
- }>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/InspectState", {
208
- index: Schema.Number;
209
- }, {
210
- readonly _tag: "ReceivedInspectedState";
211
- readonly model: unknown;
212
- readonly maybeMessage: Option.Option<unknown>;
213
- readonly changedPaths: HashSet.HashSet<string>;
214
- readonly affectedPaths: HashSet.HashSet<string>;
215
- }>) & Readonly<{
216
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/InspectState", {
217
- readonly index: number;
218
- }, {
219
- readonly _tag: "ReceivedInspectedState";
220
- readonly model: unknown;
221
- readonly maybeMessage: Option.Option<unknown>;
222
- readonly changedPaths: HashSet.HashSet<string>;
223
- readonly affectedPaths: HashSet.HashSet<string>;
224
- }>, never, StoreService>;
225
- }> & Readonly<{
226
- toLayer: import("foldkit/command").ToLayer<"Application/InspectState", {
227
- readonly index: number;
228
- }, {
229
- readonly _tag: "ReceivedInspectedState";
230
- readonly model: unknown;
231
- readonly maybeMessage: Option.Option<unknown>;
232
- readonly changedPaths: HashSet.HashSet<string>;
233
- readonly affectedPaths: HashSet.HashSet<string>;
234
- }>;
235
- }>;
236
- export declare const InspectLatest: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/InspectLatest", {
237
- readonly _tag: "ReceivedInspectedState";
238
- readonly model: unknown;
239
- readonly maybeMessage: Option.Option<unknown>;
240
- readonly changedPaths: HashSet.HashSet<string>;
241
- readonly affectedPaths: HashSet.HashSet<string>;
242
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/InspectLatest", Effect.Effect<{
243
- readonly _tag: "ReceivedInspectedState";
244
- readonly model: unknown;
245
- readonly maybeMessage: Option.Option<unknown>;
246
- readonly changedPaths: HashSet.HashSet<string>;
247
- readonly affectedPaths: HashSet.HashSet<string>;
248
- }, never, import("foldkit/command").Handler<"Application/InspectLatest", void, {
58
+ }, never, StoreService>>;
59
+ export declare const InspectLatest: Command.CommandDefinitionNoArgs<"InspectLatest", Effect.Effect<{
249
60
  readonly _tag: "ReceivedInspectedState";
250
61
  readonly model: unknown;
251
62
  readonly maybeMessage: Option.Option<unknown>;
252
63
  readonly changedPaths: HashSet.HashSet<string>;
253
64
  readonly affectedPaths: HashSet.HashSet<string>;
254
- }>>> & Readonly<{
255
- toLayer: import("foldkit/command").ToLayer<"Application/InspectLatest", void, {
256
- readonly _tag: "ReceivedInspectedState";
257
- readonly model: unknown;
258
- readonly maybeMessage: Option.Option<unknown>;
259
- readonly changedPaths: HashSet.HashSet<string>;
260
- readonly affectedPaths: HashSet.HashSet<string>;
261
- }>;
262
- }>)) & Readonly<{
263
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/InspectLatest", void, {
264
- readonly _tag: "ReceivedInspectedState";
265
- readonly model: unknown;
266
- readonly maybeMessage: Option.Option<unknown>;
267
- readonly changedPaths: HashSet.HashSet<string>;
268
- readonly affectedPaths: HashSet.HashSet<string>;
269
- }>, never, StoreService>;
270
- }> & Readonly<{
271
- toLayer: import("foldkit/command").ToLayer<"Application/InspectLatest", void, {
272
- readonly _tag: "ReceivedInspectedState";
273
- readonly model: unknown;
274
- readonly maybeMessage: Option.Option<unknown>;
275
- readonly changedPaths: HashSet.HashSet<string>;
276
- readonly affectedPaths: HashSet.HashSet<string>;
277
- }>;
278
- }>;
279
- export declare const Resume: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/Resume", {
280
- readonly _tag: "CompletedResume";
281
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/Resume", Effect.Effect<{
282
- readonly _tag: "CompletedResume";
283
- }, never, import("foldkit/command").Handler<"Application/Resume", void, {
65
+ }, never, StoreService>>;
66
+ export declare const Resume: Command.CommandDefinitionNoArgs<"Resume", Effect.Effect<{
284
67
  readonly _tag: "CompletedResume";
285
- }>>> & Readonly<{
286
- toLayer: import("foldkit/command").ToLayer<"Application/Resume", void, {
287
- readonly _tag: "CompletedResume";
288
- }>;
289
- }>)) & Readonly<{
290
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/Resume", void, {
291
- readonly _tag: "CompletedResume";
292
- }>, never, StoreService>;
293
- }> & Readonly<{
294
- toLayer: import("foldkit/command").ToLayer<"Application/Resume", void, {
295
- readonly _tag: "CompletedResume";
296
- }>;
297
- }>;
298
- export declare const Clear: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/Clear", {
68
+ }, never, StoreService>>;
69
+ export declare const Clear: Command.CommandDefinitionNoArgs<"Clear", Effect.Effect<{
299
70
  readonly _tag: "CompletedClear";
300
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/Clear", Effect.Effect<{
301
- readonly _tag: "CompletedClear";
302
- }, never, import("foldkit/command").Handler<"Application/Clear", void, {
303
- readonly _tag: "CompletedClear";
304
- }>>> & Readonly<{
305
- toLayer: import("foldkit/command").ToLayer<"Application/Clear", void, {
306
- readonly _tag: "CompletedClear";
307
- }>;
308
- }>)) & Readonly<{
309
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/Clear", void, {
310
- readonly _tag: "CompletedClear";
311
- }>, never, StoreService>;
312
- }> & Readonly<{
313
- toLayer: import("foldkit/command").ToLayer<"Application/Clear", void, {
314
- readonly _tag: "CompletedClear";
315
- }>;
316
- }>;
317
- export declare const CopyPayloadToClipboard: (import("foldkit/command").DefinitionWithArgs<"Application/CopyPayloadToClipboard", {
318
- targetId: Schema.String;
319
- requestId: Schema.Number;
320
- payload: Schema.Unknown;
321
- }, Pick<{
322
- readonly targetId: string;
323
- readonly requestId: number;
324
- readonly payload: unknown;
325
- }, "payload" | "requestId" | "targetId">, Effect.Effect<{
326
- readonly _tag: "FailedCopyPayloadToClipboard";
327
- readonly targetId: string;
328
- readonly requestId: number;
329
- } | {
330
- readonly _tag: "SucceededCopyPayloadToClipboard";
331
- readonly targetId: string;
332
- readonly requestId: number;
333
- }, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
334
- readonly targetId: string;
335
- readonly requestId: number;
336
- readonly payload: unknown;
337
- }, {
338
- readonly _tag: "FailedCopyPayloadToClipboard";
339
- readonly targetId: string;
340
- readonly requestId: number;
341
- } | {
342
- readonly _tag: "SucceededCopyPayloadToClipboard";
343
- readonly targetId: string;
344
- readonly requestId: number;
345
- }>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/CopyPayloadToClipboard", {
71
+ }, never, StoreService>>;
72
+ export declare const CopyPayloadToClipboard: Command.CommandDefinitionWithArgs<"CopyPayloadToClipboard", {
346
73
  targetId: Schema.String;
347
74
  requestId: Schema.Number;
348
75
  payload: Schema.Unknown;
349
76
  }, Effect.Effect<{
350
- readonly _tag: "FailedCopyPayloadToClipboard";
351
- readonly targetId: string;
352
- readonly requestId: number;
353
- } | {
354
77
  readonly _tag: "SucceededCopyPayloadToClipboard";
355
78
  readonly targetId: string;
356
79
  readonly requestId: number;
357
- }, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
358
- readonly targetId: string;
359
- readonly requestId: number;
360
- readonly payload: unknown;
361
- }, {
362
- readonly _tag: "FailedCopyPayloadToClipboard";
363
- readonly targetId: string;
364
- readonly requestId: number;
365
80
  } | {
366
- readonly _tag: "SucceededCopyPayloadToClipboard";
367
- readonly targetId: string;
368
- readonly requestId: number;
369
- }>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/CopyPayloadToClipboard", {
370
- targetId: Schema.String;
371
- requestId: Schema.Number;
372
- payload: Schema.Unknown;
373
- }, {
374
81
  readonly _tag: "FailedCopyPayloadToClipboard";
375
82
  readonly targetId: string;
376
83
  readonly requestId: number;
377
- } | {
378
- readonly _tag: "SucceededCopyPayloadToClipboard";
379
- readonly targetId: string;
380
- readonly requestId: number;
381
- }>) & Readonly<{
382
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
383
- readonly targetId: string;
384
- readonly requestId: number;
385
- readonly payload: unknown;
386
- }, {
387
- readonly _tag: "FailedCopyPayloadToClipboard";
388
- readonly targetId: string;
389
- readonly requestId: number;
390
- } | {
391
- readonly _tag: "SucceededCopyPayloadToClipboard";
392
- readonly targetId: string;
393
- readonly requestId: number;
394
- }>, never, never>;
395
- }> & Readonly<{
396
- toLayer: import("foldkit/command").ToLayer<"Application/CopyPayloadToClipboard", {
397
- readonly targetId: string;
398
- readonly requestId: number;
399
- readonly payload: unknown;
400
- }, {
401
- readonly _tag: "FailedCopyPayloadToClipboard";
402
- readonly targetId: string;
403
- readonly requestId: number;
404
- } | {
405
- readonly _tag: "SucceededCopyPayloadToClipboard";
406
- readonly targetId: string;
407
- readonly requestId: number;
408
- }>;
409
- }>;
410
- /** Provides the DevTools clipboard Command handler. */
411
- export declare const CopyPayloadToClipboardLayer: Layer.Layer<import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
412
- readonly targetId: string;
413
- readonly requestId: number;
414
- readonly payload: unknown;
415
- }, {
416
- readonly _tag: "FailedCopyPayloadToClipboard";
417
- readonly targetId: string;
418
- readonly requestId: number;
419
- } | {
420
- readonly _tag: "SucceededCopyPayloadToClipboard";
421
- readonly targetId: string;
422
- readonly requestId: number;
423
- }>, never, never>;
424
- export declare const WaitBeforeHidingCopyIndicator: (import("foldkit/command").DefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
425
- targetId: Schema.String;
426
- requestId: Schema.Number;
427
- }, Pick<{
428
- readonly targetId: string;
429
- readonly requestId: number;
430
- }, "requestId" | "targetId">, Effect.Effect<{
431
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
432
- readonly targetId: string;
433
- readonly requestId: number;
434
- }, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
435
- readonly targetId: string;
436
- readonly requestId: number;
437
- }, {
438
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
439
- readonly targetId: string;
440
- readonly requestId: number;
441
- }>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/WaitBeforeHidingCopyIndicator", {
84
+ }, never, never>>;
85
+ export declare const WaitBeforeHidingCopyIndicator: Command.CommandDefinitionWithArgs<"WaitBeforeHidingCopyIndicator", {
442
86
  targetId: Schema.String;
443
87
  requestId: Schema.Number;
444
88
  }, Effect.Effect<{
445
89
  readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
446
90
  readonly targetId: string;
447
91
  readonly requestId: number;
448
- }, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
449
- readonly targetId: string;
450
- readonly requestId: number;
451
- }, {
452
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
453
- readonly targetId: string;
454
- readonly requestId: number;
455
- }>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
456
- targetId: Schema.String;
457
- requestId: Schema.Number;
458
- }, {
459
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
460
- readonly targetId: string;
461
- readonly requestId: number;
462
- }>) & Readonly<{
463
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
464
- readonly targetId: string;
465
- readonly requestId: number;
466
- }, {
467
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
468
- readonly targetId: string;
469
- readonly requestId: number;
470
- }>, never, never>;
471
- }> & Readonly<{
472
- toLayer: import("foldkit/command").ToLayer<"Application/WaitBeforeHidingCopyIndicator", {
473
- readonly targetId: string;
474
- readonly requestId: number;
475
- }, {
476
- readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
477
- readonly targetId: string;
478
- readonly requestId: number;
479
- }>;
480
- }>;
481
- export declare const ScrollToTop: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/ScrollToTop", {
482
- readonly _tag: "CompletedScrollToTop";
483
- }> | (import("foldkit/command").DefinitionNoArgs<"Application/ScrollToTop", Effect.Effect<{
484
- readonly _tag: "CompletedScrollToTop";
485
- }, never, import("foldkit/command").Handler<"Application/ScrollToTop", void, {
92
+ }, never, never>>;
93
+ export declare const ScrollToTop: Command.CommandDefinitionNoArgs<"ScrollToTop", Effect.Effect<{
486
94
  readonly _tag: "CompletedScrollToTop";
487
- }>>> & Readonly<{
488
- toLayer: import("foldkit/command").ToLayer<"Application/ScrollToTop", void, {
489
- readonly _tag: "CompletedScrollToTop";
490
- }>;
491
- }>)) & Readonly<{
492
- layer: Layer.Layer<import("foldkit/command").Handler<"Application/ScrollToTop", void, {
493
- readonly _tag: "CompletedScrollToTop";
494
- }>, never, ShadowRootService>;
495
- }> & Readonly<{
496
- toLayer: import("foldkit/command").ToLayer<"Application/ScrollToTop", void, {
497
- readonly _tag: "CompletedScrollToTop";
498
- }>;
499
- }>;
95
+ }, never, ShadowRootService>>;
500
96
  export declare const createOverlay: (store: DevToolsStore, position: DevToolsPosition, mode: DevToolsMode, maybeBanner: Option.Option<string>) => Effect.Effect<void, never, import("effect/Scope").Scope>;
501
97
  export {};
502
98
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,EACP,KAAK,EAGL,MAAM,EAIN,MAAM,EAGN,eAAe,EAGhB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CA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