blink 1.1.23 → 1.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/browser/agent/client/index.cjs +1 -1
  2. package/dist/browser/agent/client/index.d.cts +1 -1
  3. package/dist/browser/agent/client/index.d.ts +1 -1
  4. package/dist/browser/agent/client/index.js +1 -1
  5. package/dist/browser/{index-C-Slllhb.d.ts → index-BXZCP58f.d.ts} +51 -0
  6. package/dist/browser/{index-DSU-sZKL.d.cts → index-orp-VO8g.d.cts} +51 -0
  7. package/dist/browser/react/index.browser.cjs +1 -1
  8. package/dist/browser/react/index.browser.d.cts +16 -2
  9. package/dist/browser/react/index.browser.d.ts +16 -2
  10. package/dist/browser/react/index.browser.js +1 -1
  11. package/dist/cli/{chat-CAtArOPl.js → chat-CYrdzv1d.js} +1 -1
  12. package/dist/cli/chat-manager-B3eOpIG8.js +21 -0
  13. package/dist/cli/connect-Bpv7PF3y.js +1 -0
  14. package/dist/cli/{dev-DwwSnzeH.js → dev-BYcnkDFn.js} +23 -29
  15. package/dist/cli/{getMachineId-bsd-0cOO_RKK.js → getMachineId-bsd-BECgXpZb.js} +1 -1
  16. package/dist/cli/{getMachineId-bsd-BDrKPt3B.js → getMachineId-bsd-BgAyii4H.js} +1 -1
  17. package/dist/cli/{getMachineId-bsd-BJ3yH7j4.js → getMachineId-bsd-Cc73dhdJ.js} +1 -1
  18. package/dist/cli/{getMachineId-bsd-BpxYEV3F.js → getMachineId-bsd-DJn61I3m.js} +1 -1
  19. package/dist/cli/{getMachineId-bsd-CHVQhSq2.js → getMachineId-bsd-Doah6QJP.js} +1 -1
  20. package/dist/cli/getMachineId-bsd-aoAkh_W6.js +1 -0
  21. package/dist/cli/getMachineId-bsd-iPOb0TqF.js +1 -0
  22. package/dist/cli/getMachineId-bsd-io5tPlFg.js +1 -0
  23. package/dist/cli/{getMachineId-darwin-0AdOS_kz.js → getMachineId-darwin-BMnMBte0.js} +1 -1
  24. package/dist/cli/{getMachineId-darwin-CJ2gOzlU.js → getMachineId-darwin-BP9BSYcd.js} +1 -1
  25. package/dist/cli/{getMachineId-darwin-BeAdNwpL.js → getMachineId-darwin-Bs3mlKrs.js} +1 -1
  26. package/dist/cli/{getMachineId-darwin-C8-xkmnZ.js → getMachineId-darwin-D-l4_nyT.js} +1 -1
  27. package/dist/cli/{getMachineId-darwin-BaA8JJgE.js → getMachineId-darwin-DFronuaU.js} +1 -1
  28. package/dist/cli/getMachineId-darwin-DJO6fOdc.js +2 -0
  29. package/dist/cli/getMachineId-darwin-DlRRGl6M.js +2 -0
  30. package/dist/cli/getMachineId-darwin-Wp0usMIp.js +2 -0
  31. package/dist/cli/{getMachineId-linux-BQISLgy5.js → getMachineId-linux-B2r_HEgX.js} +1 -1
  32. package/dist/cli/{getMachineId-linux-Bg5YnekM.js → getMachineId-linux-Bj52Hdvy.js} +1 -1
  33. package/dist/cli/{getMachineId-linux-Boq-GGfA.js → getMachineId-linux-C9o1dYwI.js} +1 -1
  34. package/dist/cli/{getMachineId-linux-C9BHlxRm.js → getMachineId-linux-CGcBOg7J.js} +1 -1
  35. package/dist/cli/getMachineId-linux-CV2HmJXY.js +1 -0
  36. package/dist/cli/getMachineId-linux-Cv44Y8ZY.js +1 -0
  37. package/dist/cli/getMachineId-linux-CzNEh3DJ.js +1 -0
  38. package/dist/cli/getMachineId-linux-_RiwpX2J.js +1 -0
  39. package/dist/cli/{getMachineId-unsupported-4qhSqb7w.js → getMachineId-unsupported-BtmyS2eg.js} +1 -1
  40. package/dist/cli/{getMachineId-unsupported-BsEK_LG9.js → getMachineId-unsupported-C8az6JKm.js} +1 -1
  41. package/dist/cli/{getMachineId-unsupported-C6cVb167.js → getMachineId-unsupported-CBS2qXAs.js} +1 -1
  42. package/dist/cli/{getMachineId-unsupported-CqJy0sqq.js → getMachineId-unsupported-Cu0DvxaU.js} +1 -1
  43. package/dist/cli/getMachineId-unsupported-Dni2ujA-.js +1 -0
  44. package/dist/cli/getMachineId-unsupported-MPNVP8rP.js +1 -0
  45. package/dist/cli/getMachineId-unsupported-mBJd3oBN.js +1 -0
  46. package/dist/cli/getMachineId-unsupported-rdNf8ej6.js +1 -0
  47. package/dist/cli/{getMachineId-win-4Psd7Tlr.js → getMachineId-win-BCAO7ld1.js} +1 -1
  48. package/dist/cli/{getMachineId-win-BzRwVWue.js → getMachineId-win-BDQszRKi.js} +1 -1
  49. package/dist/cli/{getMachineId-win-BA0Li8oF.js → getMachineId-win-BOnF6rL7.js} +1 -1
  50. package/dist/cli/{getMachineId-win-BvGLfEpq.js → getMachineId-win-BOuIHcz_.js} +1 -1
  51. package/dist/cli/getMachineId-win-BQ_C7kS3.js +1 -0
  52. package/dist/cli/getMachineId-win-Bw0-Mlkn.js +1 -0
  53. package/dist/cli/getMachineId-win-DrJTv2qi.js +1 -0
  54. package/dist/cli/{getMachineId-win-C4wjvjxC.js → getMachineId-win-pnMl0wak.js} +1 -1
  55. package/dist/cli/index.js +3 -3
  56. package/dist/cli/{init-em410TZP.js → init-CAbtPm4f.js} +1 -1
  57. package/dist/cli/run-DYgfawiE.js +1 -0
  58. package/dist/cli/setup-slack-app-C9L0iIDZ.js +1 -0
  59. package/dist/cli/{token-BdYp2nw_.js → token-Bk68OrJt.js} +1 -1
  60. package/dist/cli/{token-util-KdD-UX1l.js → token-util-BKLboTb2.js} +1 -1
  61. package/dist/cli/token-util-Dui5nOLw.js +1 -0
  62. package/dist/cli/undici-mM2IfLwA.js +1 -0
  63. package/dist/cli/usingCtx-B1FpoePI.js +1 -0
  64. package/dist/node/react/index.node.cjs +89 -89
  65. package/dist/node/react/index.node.d.cts +83 -3
  66. package/dist/node/react/index.node.d.ts +83 -3
  67. package/dist/node/react/index.node.js +47 -47
  68. package/package.json +4 -2
  69. package/dist/cli/chat-manager-GWR_v50X.js +0 -21
  70. package/dist/cli/connect-DWScpJzS.js +0 -1
  71. package/dist/cli/getMachineId-bsd-BrJwIGYU.js +0 -1
  72. package/dist/cli/getMachineId-bsd-C6osJ6-S.js +0 -1
  73. package/dist/cli/getMachineId-bsd-DeIJ5F9l.js +0 -1
  74. package/dist/cli/getMachineId-darwin-CYvRIQbp.js +0 -2
  75. package/dist/cli/getMachineId-darwin-DWSKszGZ.js +0 -2
  76. package/dist/cli/getMachineId-darwin-wYLDmdQt.js +0 -2
  77. package/dist/cli/getMachineId-linux-D0cDy6Ik.js +0 -1
  78. package/dist/cli/getMachineId-linux-DgyKUIyK.js +0 -1
  79. package/dist/cli/getMachineId-linux-DnzutOBC.js +0 -1
  80. package/dist/cli/getMachineId-linux-nBO1QX9q.js +0 -1
  81. package/dist/cli/getMachineId-unsupported-DQBLgw4s.js +0 -1
  82. package/dist/cli/getMachineId-unsupported-DTFeADdG.js +0 -1
  83. package/dist/cli/getMachineId-unsupported-DgVzHx1H.js +0 -1
  84. package/dist/cli/getMachineId-unsupported-TE5qi9PD.js +0 -1
  85. package/dist/cli/getMachineId-win-DXCyELQJ.js +0 -1
  86. package/dist/cli/getMachineId-win-hHwtD9GX.js +0 -1
  87. package/dist/cli/getMachineId-win-lhgCxX3y.js +0 -1
  88. package/dist/cli/run-CZZ6WAdr.js +0 -1
  89. package/dist/cli/setup-slack-app-DagQxNol.js +0 -1
  90. package/dist/cli/token-util-C9doIH9w.js +0 -1
  91. package/dist/cli/undici-Bm_EanIy.js +0 -1
  92. /package/dist/cli/{connect-BCK40kvG.js → connect-DIUub9Pr.js} +0 -0
  93. /package/dist/cli/{devtools-DsAYEmyP.js → devtools-DqYysfX1.js} +0 -0
  94. /package/dist/cli/{esm-C_RXU0lI.js → esm-CYkSi8_o.js} +0 -0
  95. /package/dist/cli/{execAsync-BOPj9Mml.js → execAsync-9jtK4I3l.js} +0 -0
  96. /package/dist/cli/{execAsync-Bv4jTnD3.js → execAsync-B4_pEoEJ.js} +0 -0
  97. /package/dist/cli/{execAsync-CyP3Ojec.js → execAsync-BdK7RB6d.js} +0 -0
  98. /package/dist/cli/{execAsync-DHh3DKKp.js → execAsync-Bjxs-bO2.js} +0 -0
  99. /package/dist/cli/{execAsync-DdLzES9n.js → execAsync-CM_C8SBr.js} +0 -0
  100. /package/dist/cli/{execAsync-Dv6XOE2I.js → execAsync-CNFaXJjR.js} +0 -0
  101. /package/dist/cli/{execAsync-Dwktgsum.js → execAsync-Dl3hbWiU.js} +0 -0
  102. /package/dist/cli/{execAsync-qNF4iDpO.js → execAsync-qGIZ8XA8.js} +0 -0
  103. /package/dist/cli/{init-templates-By3gx42M.js → init-templates-BgcZAdJh.js} +0 -0
  104. /package/dist/cli/{login-BDP8JC4X.js → login-Bu2acoVp.js} +0 -0
  105. /package/dist/cli/{token-error-COQY18OP.js → token-error-CGIVaIg6.js} +0 -0
  106. /package/dist/cli/{undici-CRntNDHY.js → undici-BiTrd9-R.js} +0 -0
@@ -1,9 +1,59 @@
1
1
  import { ID, UIOptions, UIOptionsSchema } from "../index.node-CFw4ITad.cjs";
2
2
  import { BuildLog, BuildResult } from "../index-DYOqnOdZ.cjs";
3
3
  import { UIMessage, UIMessageChunk } from "ai";
4
+ import * as react0 from "react";
4
5
 
6
+ //#region src/local/rw-lock.d.ts
7
+ declare class ReadLock {
8
+ private onRelease;
9
+ constructor(onRelease: () => void);
10
+ [Symbol.dispose](): void;
11
+ }
12
+ declare class WriteLock {
13
+ private onRelease;
14
+ constructor(onRelease: () => void);
15
+ [Symbol.dispose](): void;
16
+ }
17
+ /**
18
+ * RWLock is a read/write lock that allows multiple concurrent readers
19
+ * or a single writer. Writers wait for all readers to finish before acquiring
20
+ * the lock.
21
+ *
22
+ * This is designed for in-memory, single-process synchronization using the
23
+ * explicit resource management pattern (Symbol.dispose).
24
+ *
25
+ * Example usage:
26
+ * ```typescript
27
+ * const lock = new RWLock();
28
+ *
29
+ * // Multiple readers can acquire the lock concurrently
30
+ * using readLock = await lock.read();
31
+ * // ... do read operations ...
32
+ *
33
+ * // Writers wait for all readers to finish
34
+ * using writeLock = await lock.write();
35
+ * // ... do write operations ...
36
+ * ```
37
+ */
38
+ declare class RWLock {
39
+ private _lock;
40
+ /**
41
+ * Acquire a read lock. Multiple readers can hold the lock concurrently.
42
+ * If a writer is waiting, new readers will wait until the writer completes.
43
+ *
44
+ * The lock is automatically released when the returned object is disposed.
45
+ */
46
+ read(): Promise<ReadLock>;
47
+ /**
48
+ * Acquire a write lock. Waits for all readers to finish before acquiring.
49
+ * Only one writer can hold the lock at a time.
50
+ *
51
+ * The lock is automatically released when the returned object is disposed.
52
+ */
53
+ write(): Promise<WriteLock>;
54
+ }
55
+ //#endregion
5
56
  //#region src/agent/client/index.d.ts
6
-
7
57
  interface ClientOptions {
8
58
  readonly baseUrl: string;
9
59
  readonly headers?: Record<string, string>;
@@ -15,6 +65,7 @@ type CapabilitiesResponse = Awaited<ReturnType<Client["capabilities"]>>;
15
65
  declare class Client {
16
66
  readonly baseUrl: string;
17
67
  private readonly client;
68
+ readonly agentLock: RWLock;
18
69
  constructor(options: ClientOptions);
19
70
  /**
20
71
  * chat starts chatting with the agent.
@@ -123,6 +174,19 @@ interface UseAuth {
123
174
  */
124
175
  declare function useAuth(options?: UseAuthOptions): UseAuth;
125
176
  //#endregion
177
+ //#region src/react/use-logger.d.ts
178
+ type Source = "system" | "agent";
179
+ type PrintLog = (level: "error" | "log", source: Source, ...message: unknown[]) => Promise<void>;
180
+ declare class Logger {
181
+ private printLog;
182
+ constructor(printLog: PrintLog);
183
+ setPrintLog(printLog: PrintLog): void;
184
+ error(source: Source, ...message: [unknown, ...unknown[]]): void;
185
+ log(source: Source, ...message: [unknown, ...unknown[]]): void;
186
+ flush(): Promise<void>;
187
+ }
188
+ declare const LoggerContext: react0.Context<Logger | undefined>;
189
+ //#endregion
126
190
  //#region src/react/use-bundler.d.ts
127
191
  type BundlerStatus = "building" | "success" | "error";
128
192
  interface BundlerContext {
@@ -134,6 +198,7 @@ interface BundlerContext {
134
198
  }
135
199
  interface UseBundlerOptions {
136
200
  readonly directory: string;
201
+ readonly logger: Logger;
137
202
  readonly onBuildStart?: () => void;
138
203
  readonly onBuildSuccess?: (result: BuildResult & {
139
204
  duration: number;
@@ -203,6 +268,7 @@ interface ChatState {
203
268
  readonly streamingMessage?: StoredMessage;
204
269
  readonly loading: boolean;
205
270
  readonly queuedMessages: StoredMessage[];
271
+ readonly queuedLogs: StoredMessage[];
206
272
  }
207
273
  interface ChatManagerOptions {
208
274
  readonly chatId?: ID;
@@ -239,6 +305,7 @@ declare class ChatManager {
239
305
  private streamingMessage;
240
306
  private status;
241
307
  private queue;
308
+ private logQueue;
242
309
  private abortController;
243
310
  private isProcessingQueue;
244
311
  private listeners;
@@ -262,6 +329,16 @@ declare class ChatManager {
262
329
  */
263
330
  upsertMessages(messages: UIMessage[], lock?: LockedStoreEntry<StoredChat>): Promise<void>;
264
331
  deleteMessages(ids: string[]): Promise<void>;
332
+ queueLogMessage({
333
+ message: logMessage,
334
+ level,
335
+ source
336
+ }: {
337
+ message: string;
338
+ level: "error" | "log";
339
+ source: Source;
340
+ }): Promise<void>;
341
+ private flushLogQueue;
265
342
  /**
266
343
  * Send a message to the agent
267
344
  */
@@ -312,6 +389,7 @@ interface UseChatOptions {
312
389
  interface UseChat extends ChatState {
313
390
  readonly sendMessage: (message: StoredMessage) => Promise<void>;
314
391
  readonly upsertMessage: (message: StoredMessage) => Promise<void>;
392
+ readonly queueLogMessage: ChatManager["queueLogMessage"];
315
393
  readonly deleteMessage: (id: string) => Promise<void>;
316
394
  readonly stopStreaming: () => void;
317
395
  readonly resetChat: () => Promise<void>;
@@ -348,6 +426,7 @@ declare function createLocalServer(options: CreateLocalServerOptions): {
348
426
  type DevMode = "run" | "edit";
349
427
  interface UseDevModeOptions {
350
428
  readonly directory: string;
429
+ readonly logger: Logger;
351
430
  readonly onBuildStart?: () => void;
352
431
  readonly onBuildSuccess?: (result: {
353
432
  duration: number;
@@ -424,6 +503,7 @@ interface UseDevhookOptions {
424
503
  readonly disabled?: boolean;
425
504
  readonly onRequest: (request: Request) => Promise<Response>;
426
505
  readonly directory: string;
506
+ readonly logger: Logger;
427
507
  }
428
508
  declare function useDevhook(options: UseDevhookOptions): {
429
509
  id: string | undefined;
@@ -432,7 +512,7 @@ declare function useDevhook(options: UseDevhookOptions): {
432
512
  };
433
513
  //#endregion
434
514
  //#region src/react/use-dotenv.d.ts
435
- declare function useDotenv(directory: string, name?: string): Record<string, string>;
515
+ declare function useDotenv(directory: string, logger: Logger, name?: string): Record<string, string>;
436
516
  //#endregion
437
517
  //#region src/react/use-edit-agent.d.ts
438
518
  interface UseEditAgentOptions {
@@ -473,4 +553,4 @@ declare function useOptions({
473
553
  error: Error | undefined;
474
554
  };
475
555
  //#endregion
476
- export { useAgent, useAuth, useBundler, useChat, useDevMode, useDevhook, useDotenv, useEditAgent, useOptions };
556
+ export { Logger, LoggerContext, useAgent, useAuth, useBundler, useChat, useDevMode, useDevhook, useDotenv, useEditAgent, useOptions };
@@ -1,9 +1,59 @@
1
1
  import { ID, UIOptions, UIOptionsSchema } from "../index.node-D5_czyKY.js";
2
2
  import { BuildLog, BuildResult } from "../index-B4OXlWm3.js";
3
3
  import { UIMessage, UIMessageChunk } from "ai";
4
+ import * as react0 from "react";
4
5
 
6
+ //#region src/local/rw-lock.d.ts
7
+ declare class ReadLock {
8
+ private onRelease;
9
+ constructor(onRelease: () => void);
10
+ [Symbol.dispose](): void;
11
+ }
12
+ declare class WriteLock {
13
+ private onRelease;
14
+ constructor(onRelease: () => void);
15
+ [Symbol.dispose](): void;
16
+ }
17
+ /**
18
+ * RWLock is a read/write lock that allows multiple concurrent readers
19
+ * or a single writer. Writers wait for all readers to finish before acquiring
20
+ * the lock.
21
+ *
22
+ * This is designed for in-memory, single-process synchronization using the
23
+ * explicit resource management pattern (Symbol.dispose).
24
+ *
25
+ * Example usage:
26
+ * ```typescript
27
+ * const lock = new RWLock();
28
+ *
29
+ * // Multiple readers can acquire the lock concurrently
30
+ * using readLock = await lock.read();
31
+ * // ... do read operations ...
32
+ *
33
+ * // Writers wait for all readers to finish
34
+ * using writeLock = await lock.write();
35
+ * // ... do write operations ...
36
+ * ```
37
+ */
38
+ declare class RWLock {
39
+ private _lock;
40
+ /**
41
+ * Acquire a read lock. Multiple readers can hold the lock concurrently.
42
+ * If a writer is waiting, new readers will wait until the writer completes.
43
+ *
44
+ * The lock is automatically released when the returned object is disposed.
45
+ */
46
+ read(): Promise<ReadLock>;
47
+ /**
48
+ * Acquire a write lock. Waits for all readers to finish before acquiring.
49
+ * Only one writer can hold the lock at a time.
50
+ *
51
+ * The lock is automatically released when the returned object is disposed.
52
+ */
53
+ write(): Promise<WriteLock>;
54
+ }
55
+ //#endregion
5
56
  //#region src/agent/client/index.d.ts
6
-
7
57
  interface ClientOptions {
8
58
  readonly baseUrl: string;
9
59
  readonly headers?: Record<string, string>;
@@ -15,6 +65,7 @@ type CapabilitiesResponse = Awaited<ReturnType<Client["capabilities"]>>;
15
65
  declare class Client {
16
66
  readonly baseUrl: string;
17
67
  private readonly client;
68
+ readonly agentLock: RWLock;
18
69
  constructor(options: ClientOptions);
19
70
  /**
20
71
  * chat starts chatting with the agent.
@@ -123,6 +174,19 @@ interface UseAuth {
123
174
  */
124
175
  declare function useAuth(options?: UseAuthOptions): UseAuth;
125
176
  //#endregion
177
+ //#region src/react/use-logger.d.ts
178
+ type Source = "system" | "agent";
179
+ type PrintLog = (level: "error" | "log", source: Source, ...message: unknown[]) => Promise<void>;
180
+ declare class Logger {
181
+ private printLog;
182
+ constructor(printLog: PrintLog);
183
+ setPrintLog(printLog: PrintLog): void;
184
+ error(source: Source, ...message: [unknown, ...unknown[]]): void;
185
+ log(source: Source, ...message: [unknown, ...unknown[]]): void;
186
+ flush(): Promise<void>;
187
+ }
188
+ declare const LoggerContext: react0.Context<Logger | undefined>;
189
+ //#endregion
126
190
  //#region src/react/use-bundler.d.ts
127
191
  type BundlerStatus = "building" | "success" | "error";
128
192
  interface BundlerContext {
@@ -134,6 +198,7 @@ interface BundlerContext {
134
198
  }
135
199
  interface UseBundlerOptions {
136
200
  readonly directory: string;
201
+ readonly logger: Logger;
137
202
  readonly onBuildStart?: () => void;
138
203
  readonly onBuildSuccess?: (result: BuildResult & {
139
204
  duration: number;
@@ -203,6 +268,7 @@ interface ChatState {
203
268
  readonly streamingMessage?: StoredMessage;
204
269
  readonly loading: boolean;
205
270
  readonly queuedMessages: StoredMessage[];
271
+ readonly queuedLogs: StoredMessage[];
206
272
  }
207
273
  interface ChatManagerOptions {
208
274
  readonly chatId?: ID;
@@ -239,6 +305,7 @@ declare class ChatManager {
239
305
  private streamingMessage;
240
306
  private status;
241
307
  private queue;
308
+ private logQueue;
242
309
  private abortController;
243
310
  private isProcessingQueue;
244
311
  private listeners;
@@ -262,6 +329,16 @@ declare class ChatManager {
262
329
  */
263
330
  upsertMessages(messages: UIMessage[], lock?: LockedStoreEntry<StoredChat>): Promise<void>;
264
331
  deleteMessages(ids: string[]): Promise<void>;
332
+ queueLogMessage({
333
+ message: logMessage,
334
+ level,
335
+ source
336
+ }: {
337
+ message: string;
338
+ level: "error" | "log";
339
+ source: Source;
340
+ }): Promise<void>;
341
+ private flushLogQueue;
265
342
  /**
266
343
  * Send a message to the agent
267
344
  */
@@ -312,6 +389,7 @@ interface UseChatOptions {
312
389
  interface UseChat extends ChatState {
313
390
  readonly sendMessage: (message: StoredMessage) => Promise<void>;
314
391
  readonly upsertMessage: (message: StoredMessage) => Promise<void>;
392
+ readonly queueLogMessage: ChatManager["queueLogMessage"];
315
393
  readonly deleteMessage: (id: string) => Promise<void>;
316
394
  readonly stopStreaming: () => void;
317
395
  readonly resetChat: () => Promise<void>;
@@ -348,6 +426,7 @@ declare function createLocalServer(options: CreateLocalServerOptions): {
348
426
  type DevMode = "run" | "edit";
349
427
  interface UseDevModeOptions {
350
428
  readonly directory: string;
429
+ readonly logger: Logger;
351
430
  readonly onBuildStart?: () => void;
352
431
  readonly onBuildSuccess?: (result: {
353
432
  duration: number;
@@ -424,6 +503,7 @@ interface UseDevhookOptions {
424
503
  readonly disabled?: boolean;
425
504
  readonly onRequest: (request: Request) => Promise<Response>;
426
505
  readonly directory: string;
506
+ readonly logger: Logger;
427
507
  }
428
508
  declare function useDevhook(options: UseDevhookOptions): {
429
509
  id: string | undefined;
@@ -432,7 +512,7 @@ declare function useDevhook(options: UseDevhookOptions): {
432
512
  };
433
513
  //#endregion
434
514
  //#region src/react/use-dotenv.d.ts
435
- declare function useDotenv(directory: string, name?: string): Record<string, string>;
515
+ declare function useDotenv(directory: string, logger: Logger, name?: string): Record<string, string>;
436
516
  //#endregion
437
517
  //#region src/react/use-edit-agent.d.ts
438
518
  interface UseEditAgentOptions {
@@ -473,4 +553,4 @@ declare function useOptions({
473
553
  error: Error | undefined;
474
554
  };
475
555
  //#endregion
476
- export { useAgent, useAuth, useBundler, useChat, useDevMode, useDevhook, useDotenv, useEditAgent, useOptions };
556
+ export { Logger, LoggerContext, useAgent, useAuth, useBundler, useChat, useDevMode, useDevhook, useDotenv, useEditAgent, useOptions };