bioscode 0.1.5

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 (142) hide show
  1. package/LICENSE +306 -0
  2. package/NOTICE +45 -0
  3. package/README.md +277 -0
  4. package/dist/auth/index.d.ts +202 -0
  5. package/dist/brand/index.d.ts +7 -0
  6. package/dist/brand/loader.d.ts +463 -0
  7. package/dist/brand/rules.d.ts +25 -0
  8. package/dist/brand/schema.d.ts +246 -0
  9. package/dist/bus/bus-event.d.ts +10 -0
  10. package/dist/bus/global.d.ts +7 -0
  11. package/dist/bus/index.d.ts +26 -0
  12. package/dist/cli/auth.d.ts +23 -0
  13. package/dist/cli/brand.d.ts +6 -0
  14. package/dist/cli/index.d.ts +1 -0
  15. package/dist/cli/ui.d.ts +26 -0
  16. package/dist/command/index.d.ts +54 -0
  17. package/dist/config/config.d.ts +6036 -0
  18. package/dist/config/index.d.ts +2 -0
  19. package/dist/config/markdown.d.ts +415 -0
  20. package/dist/constants/index.d.ts +6 -0
  21. package/dist/constants/version.d.ts +5 -0
  22. package/dist/diff/engine.d.ts +15 -0
  23. package/dist/diff/index.d.ts +8 -0
  24. package/dist/diff/types.d.ts +66 -0
  25. package/dist/file/ignore.d.ts +7 -0
  26. package/dist/flag/index.d.ts +19 -0
  27. package/dist/gateway/bridge.d.ts +11 -0
  28. package/dist/gateway/handlers/llm.d.ts +7 -0
  29. package/dist/gateway/handlers/permission.d.ts +15 -0
  30. package/dist/gateway/handlers/session.d.ts +7 -0
  31. package/dist/gateway/handlers/system.d.ts +7 -0
  32. package/dist/gateway/handlers/tool.d.ts +7 -0
  33. package/dist/gateway/index.d.ts +18 -0
  34. package/dist/gateway/protocol.d.ts +159 -0
  35. package/dist/gateway/router.d.ts +7 -0
  36. package/dist/gateway/server.d.ts +24 -0
  37. package/dist/global/index.d.ts +23 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.js +34 -0
  40. package/dist/permission/index.d.ts +2 -0
  41. package/dist/permission/permission.d.ts +172 -0
  42. package/dist/permission/types.d.ts +109 -0
  43. package/dist/project/index.d.ts +3 -0
  44. package/dist/project/instance.d.ts +33 -0
  45. package/dist/project/project.d.ts +82 -0
  46. package/dist/project/state.d.ts +4 -0
  47. package/dist/prompt/index.d.ts +5 -0
  48. package/dist/prompt/system.d.ts +29 -0
  49. package/dist/prompt/template.d.ts +24 -0
  50. package/dist/provider/index.d.ts +3 -0
  51. package/dist/provider/models.d.ts +14 -0
  52. package/dist/provider/provider.d.ts +848 -0
  53. package/dist/provider/types.d.ts +328 -0
  54. package/dist/server/index.d.ts +21 -0
  55. package/dist/server/routes/api.d.ts +2 -0
  56. package/dist/server/routes/auth.d.ts +2 -0
  57. package/dist/server/routes/events.d.ts +2 -0
  58. package/dist/server/routes/health.d.ts +2 -0
  59. package/dist/server/routes/sessions.d.ts +2 -0
  60. package/dist/server/services/agent.d.ts +40 -0
  61. package/dist/server/services/permission.d.ts +43 -0
  62. package/dist/server/sse/emitter.d.ts +57 -0
  63. package/dist/session/context-cache.d.ts +75 -0
  64. package/dist/session/context-optimization.d.ts +165 -0
  65. package/dist/session/index.d.ts +5 -0
  66. package/dist/session/llm.d.ts +68 -0
  67. package/dist/session/message-optimizer.d.ts +32 -0
  68. package/dist/session/session.d.ts +524 -0
  69. package/dist/session/title-generator.d.ts +11 -0
  70. package/dist/session/types.d.ts +713 -0
  71. package/dist/snapshot/index.d.ts +40 -0
  72. package/dist/storage/index.d.ts +1 -0
  73. package/dist/storage/storage.d.ts +34 -0
  74. package/dist/theme.d.ts +64 -0
  75. package/dist/tool/bash.d.ts +19 -0
  76. package/dist/tool/edit.d.ts +21 -0
  77. package/dist/tool/glob.d.ts +15 -0
  78. package/dist/tool/grep.d.ts +20 -0
  79. package/dist/tool/image.d.ts +22 -0
  80. package/dist/tool/index.d.ts +11 -0
  81. package/dist/tool/ls.d.ts +14 -0
  82. package/dist/tool/read.d.ts +17 -0
  83. package/dist/tool/registry.d.ts +30 -0
  84. package/dist/tool/think.d.ts +11 -0
  85. package/dist/tool/todo.d.ts +76 -0
  86. package/dist/tool/tool.d.ts +65 -0
  87. package/dist/tool/webfetch.d.ts +15 -0
  88. package/dist/tool/write.d.ts +16 -0
  89. package/dist/tui/App.d.ts +10 -0
  90. package/dist/tui/components/Header.d.ts +13 -0
  91. package/dist/tui/components/LoadingIndicator.d.ts +26 -0
  92. package/dist/tui/components/Message/AssistantMessage.d.ts +11 -0
  93. package/dist/tui/components/Message/ReasoningMessage.d.ts +21 -0
  94. package/dist/tui/components/Message/ToolCallMessage.d.ts +26 -0
  95. package/dist/tui/components/Message/UserMessage.d.ts +12 -0
  96. package/dist/tui/components/Message/index.d.ts +16 -0
  97. package/dist/tui/components/PermissionPrompt.d.ts +6 -0
  98. package/dist/tui/components/PromptInput.d.ts +33 -0
  99. package/dist/tui/components/REPL.d.ts +22 -0
  100. package/dist/tui/components/Spinner.d.ts +13 -0
  101. package/dist/tui/components/StatusBar.d.ts +13 -0
  102. package/dist/tui/components/TodoList.d.ts +17 -0
  103. package/dist/tui/components/WelcomeBox.d.ts +13 -0
  104. package/dist/tui/components/dialogs/DiagnosticsPanel.d.ts +12 -0
  105. package/dist/tui/components/dialogs/HelpPanel.d.ts +11 -0
  106. package/dist/tui/components/dialogs/ModelSelector.d.ts +14 -0
  107. package/dist/tui/components/dialogs/PermissionPrompt.d.ts +17 -0
  108. package/dist/tui/components/dialogs/SessionPicker.d.ts +20 -0
  109. package/dist/tui/components/dialogs/index.d.ts +10 -0
  110. package/dist/tui/components/diff/DiffHunk.d.ts +12 -0
  111. package/dist/tui/components/diff/DiffLine.d.ts +14 -0
  112. package/dist/tui/components/diff/DiffStats.d.ts +12 -0
  113. package/dist/tui/components/diff/DiffView.d.ts +15 -0
  114. package/dist/tui/components/diff/index.d.ts +9 -0
  115. package/dist/tui/hooks/useAnimatedLabel.d.ts +12 -0
  116. package/dist/tui/hooks/usePermission.d.ts +34 -0
  117. package/dist/tui/hooks/useTermWidth.d.ts +13 -0
  118. package/dist/tui/index.d.ts +20 -0
  119. package/dist/tui/theme.d.ts +8 -0
  120. package/dist/tui/utils/Cursor.d.ts +37 -0
  121. package/dist/tui/utils/clipboard.d.ts +3 -0
  122. package/dist/tui/utils/keypress.d.ts +39 -0
  123. package/dist/tui/utils/markdown.d.ts +13 -0
  124. package/dist/tui/utils/openContent.d.ts +22 -0
  125. package/dist/util/ascii.d.ts +22 -0
  126. package/dist/util/bell.d.ts +14 -0
  127. package/dist/util/color.d.ts +28 -0
  128. package/dist/util/context.d.ts +10 -0
  129. package/dist/util/debug.d.ts +51 -0
  130. package/dist/util/error.d.ts +294 -0
  131. package/dist/util/example-commands.d.ts +18 -0
  132. package/dist/util/filesystem.d.ts +17 -0
  133. package/dist/util/id.d.ts +24 -0
  134. package/dist/util/iife.d.ts +1 -0
  135. package/dist/util/index.d.ts +7 -0
  136. package/dist/util/lazy.d.ts +1 -0
  137. package/dist/util/log.d.ts +26 -0
  138. package/dist/util/paths.d.ts +45 -0
  139. package/dist/util/shell.d.ts +36 -0
  140. package/dist/util/timeout.d.ts +1 -0
  141. package/dist/util/wildcard.d.ts +8 -0
  142. package/package.json +87 -0
@@ -0,0 +1,524 @@
1
+ import z from "zod";
2
+ import type { SessionInfo, MessageInfo, MessagePart, MessageWithParts } from "./types";
3
+ export declare namespace Session {
4
+ /**
5
+ * Check if a title is the default auto-generated title
6
+ * Matches both "Session - <timestamp>" and "New Session"
7
+ */
8
+ function isDefaultTitle(title: string): boolean;
9
+ /**
10
+ * Session events
11
+ */
12
+ const Event: {
13
+ Created: {
14
+ type: "session.created";
15
+ properties: z.ZodObject<{
16
+ info: z.ZodType<{
17
+ id: string;
18
+ directory: string;
19
+ title: string;
20
+ projectId: string;
21
+ createdAt: number;
22
+ updatedAt: number;
23
+ parentId?: string | undefined;
24
+ promptHistory?: string[] | undefined;
25
+ tokens?: {
26
+ input: number;
27
+ output: number;
28
+ } | undefined;
29
+ }, z.ZodTypeDef, {
30
+ id: string;
31
+ directory: string;
32
+ title: string;
33
+ projectId: string;
34
+ createdAt: number;
35
+ updatedAt: number;
36
+ parentId?: string | undefined;
37
+ promptHistory?: string[] | undefined;
38
+ tokens?: {
39
+ input: number;
40
+ output: number;
41
+ } | undefined;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ info: {
45
+ id: string;
46
+ directory: string;
47
+ title: string;
48
+ projectId: string;
49
+ createdAt: number;
50
+ updatedAt: number;
51
+ parentId?: string | undefined;
52
+ promptHistory?: string[] | undefined;
53
+ tokens?: {
54
+ input: number;
55
+ output: number;
56
+ } | undefined;
57
+ };
58
+ }, {
59
+ info: {
60
+ id: string;
61
+ directory: string;
62
+ title: string;
63
+ projectId: string;
64
+ createdAt: number;
65
+ updatedAt: number;
66
+ parentId?: string | undefined;
67
+ promptHistory?: string[] | undefined;
68
+ tokens?: {
69
+ input: number;
70
+ output: number;
71
+ } | undefined;
72
+ };
73
+ }>;
74
+ };
75
+ Updated: {
76
+ type: "session.updated";
77
+ properties: z.ZodObject<{
78
+ info: z.ZodType<{
79
+ id: string;
80
+ directory: string;
81
+ title: string;
82
+ projectId: string;
83
+ createdAt: number;
84
+ updatedAt: number;
85
+ parentId?: string | undefined;
86
+ promptHistory?: string[] | undefined;
87
+ tokens?: {
88
+ input: number;
89
+ output: number;
90
+ } | undefined;
91
+ }, z.ZodTypeDef, {
92
+ id: string;
93
+ directory: string;
94
+ title: string;
95
+ projectId: string;
96
+ createdAt: number;
97
+ updatedAt: number;
98
+ parentId?: string | undefined;
99
+ promptHistory?: string[] | undefined;
100
+ tokens?: {
101
+ input: number;
102
+ output: number;
103
+ } | undefined;
104
+ }>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ info: {
107
+ id: string;
108
+ directory: string;
109
+ title: string;
110
+ projectId: string;
111
+ createdAt: number;
112
+ updatedAt: number;
113
+ parentId?: string | undefined;
114
+ promptHistory?: string[] | undefined;
115
+ tokens?: {
116
+ input: number;
117
+ output: number;
118
+ } | undefined;
119
+ };
120
+ }, {
121
+ info: {
122
+ id: string;
123
+ directory: string;
124
+ title: string;
125
+ projectId: string;
126
+ createdAt: number;
127
+ updatedAt: number;
128
+ parentId?: string | undefined;
129
+ promptHistory?: string[] | undefined;
130
+ tokens?: {
131
+ input: number;
132
+ output: number;
133
+ } | undefined;
134
+ };
135
+ }>;
136
+ };
137
+ Deleted: {
138
+ type: "session.deleted";
139
+ properties: z.ZodObject<{
140
+ info: z.ZodType<{
141
+ id: string;
142
+ directory: string;
143
+ title: string;
144
+ projectId: string;
145
+ createdAt: number;
146
+ updatedAt: number;
147
+ parentId?: string | undefined;
148
+ promptHistory?: string[] | undefined;
149
+ tokens?: {
150
+ input: number;
151
+ output: number;
152
+ } | undefined;
153
+ }, z.ZodTypeDef, {
154
+ id: string;
155
+ directory: string;
156
+ title: string;
157
+ projectId: string;
158
+ createdAt: number;
159
+ updatedAt: number;
160
+ parentId?: string | undefined;
161
+ promptHistory?: string[] | undefined;
162
+ tokens?: {
163
+ input: number;
164
+ output: number;
165
+ } | undefined;
166
+ }>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ info: {
169
+ id: string;
170
+ directory: string;
171
+ title: string;
172
+ projectId: string;
173
+ createdAt: number;
174
+ updatedAt: number;
175
+ parentId?: string | undefined;
176
+ promptHistory?: string[] | undefined;
177
+ tokens?: {
178
+ input: number;
179
+ output: number;
180
+ } | undefined;
181
+ };
182
+ }, {
183
+ info: {
184
+ id: string;
185
+ directory: string;
186
+ title: string;
187
+ projectId: string;
188
+ createdAt: number;
189
+ updatedAt: number;
190
+ parentId?: string | undefined;
191
+ promptHistory?: string[] | undefined;
192
+ tokens?: {
193
+ input: number;
194
+ output: number;
195
+ } | undefined;
196
+ };
197
+ }>;
198
+ };
199
+ };
200
+ /**
201
+ * Message events
202
+ */
203
+ const MessageEvent: {
204
+ Updated: {
205
+ type: "message.updated";
206
+ properties: z.ZodObject<{
207
+ info: z.ZodType<{
208
+ id: string;
209
+ sessionId: string;
210
+ createdAt: number;
211
+ role: "system" | "user" | "assistant";
212
+ provider?: string | undefined;
213
+ model?: string | undefined;
214
+ }, z.ZodTypeDef, {
215
+ id: string;
216
+ sessionId: string;
217
+ createdAt: number;
218
+ role: "system" | "user" | "assistant";
219
+ provider?: string | undefined;
220
+ model?: string | undefined;
221
+ }>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ info: {
224
+ id: string;
225
+ sessionId: string;
226
+ createdAt: number;
227
+ role: "system" | "user" | "assistant";
228
+ provider?: string | undefined;
229
+ model?: string | undefined;
230
+ };
231
+ }, {
232
+ info: {
233
+ id: string;
234
+ sessionId: string;
235
+ createdAt: number;
236
+ role: "system" | "user" | "assistant";
237
+ provider?: string | undefined;
238
+ model?: string | undefined;
239
+ };
240
+ }>;
241
+ };
242
+ Removed: {
243
+ type: "message.removed";
244
+ properties: z.ZodObject<{
245
+ sessionId: z.ZodString;
246
+ messageId: z.ZodString;
247
+ }, "strip", z.ZodTypeAny, {
248
+ sessionId: string;
249
+ messageId: string;
250
+ }, {
251
+ sessionId: string;
252
+ messageId: string;
253
+ }>;
254
+ };
255
+ PartUpdated: {
256
+ type: "message.part.updated";
257
+ properties: z.ZodObject<{
258
+ part: z.ZodType<{
259
+ type: "text";
260
+ id: string;
261
+ sessionId: string;
262
+ content: string;
263
+ messageId: string;
264
+ sequence?: number | undefined;
265
+ } | {
266
+ type: "reasoning";
267
+ id: string;
268
+ sessionId: string;
269
+ content: string;
270
+ messageId: string;
271
+ sequence?: number | undefined;
272
+ } | {
273
+ state: "completed" | "pending" | "running" | "failed";
274
+ type: "tool-call";
275
+ id: string;
276
+ input: Record<string, any>;
277
+ sessionId: string;
278
+ toolId: string;
279
+ messageId: string;
280
+ toolName: string;
281
+ sequence?: number | undefined;
282
+ } | {
283
+ type: "tool-result";
284
+ id: string;
285
+ output: string;
286
+ sessionId: string;
287
+ messageId: string;
288
+ toolCallId: string;
289
+ input?: Record<string, any> | undefined;
290
+ sequence?: number | undefined;
291
+ toolName?: string | undefined;
292
+ metadata?: Record<string, any> | undefined;
293
+ } | {
294
+ type: "image";
295
+ id: string;
296
+ data: string;
297
+ sessionId: string;
298
+ messageId: string;
299
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
300
+ sequence?: number | undefined;
301
+ filename?: string | undefined;
302
+ }, z.ZodTypeDef, {
303
+ type: "text";
304
+ id: string;
305
+ sessionId: string;
306
+ content: string;
307
+ messageId: string;
308
+ sequence?: number | undefined;
309
+ } | {
310
+ type: "reasoning";
311
+ id: string;
312
+ sessionId: string;
313
+ content: string;
314
+ messageId: string;
315
+ sequence?: number | undefined;
316
+ } | {
317
+ state: "completed" | "pending" | "running" | "failed";
318
+ type: "tool-call";
319
+ id: string;
320
+ input: Record<string, any>;
321
+ sessionId: string;
322
+ toolId: string;
323
+ messageId: string;
324
+ toolName: string;
325
+ sequence?: number | undefined;
326
+ } | {
327
+ type: "tool-result";
328
+ id: string;
329
+ output: string;
330
+ sessionId: string;
331
+ messageId: string;
332
+ toolCallId: string;
333
+ input?: Record<string, any> | undefined;
334
+ sequence?: number | undefined;
335
+ toolName?: string | undefined;
336
+ metadata?: Record<string, any> | undefined;
337
+ } | {
338
+ type: "image";
339
+ id: string;
340
+ data: string;
341
+ sessionId: string;
342
+ messageId: string;
343
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
344
+ sequence?: number | undefined;
345
+ filename?: string | undefined;
346
+ }>;
347
+ delta: z.ZodOptional<z.ZodString>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ part: {
350
+ type: "text";
351
+ id: string;
352
+ sessionId: string;
353
+ content: string;
354
+ messageId: string;
355
+ sequence?: number | undefined;
356
+ } | {
357
+ type: "reasoning";
358
+ id: string;
359
+ sessionId: string;
360
+ content: string;
361
+ messageId: string;
362
+ sequence?: number | undefined;
363
+ } | {
364
+ state: "completed" | "pending" | "running" | "failed";
365
+ type: "tool-call";
366
+ id: string;
367
+ input: Record<string, any>;
368
+ sessionId: string;
369
+ toolId: string;
370
+ messageId: string;
371
+ toolName: string;
372
+ sequence?: number | undefined;
373
+ } | {
374
+ type: "tool-result";
375
+ id: string;
376
+ output: string;
377
+ sessionId: string;
378
+ messageId: string;
379
+ toolCallId: string;
380
+ input?: Record<string, any> | undefined;
381
+ sequence?: number | undefined;
382
+ toolName?: string | undefined;
383
+ metadata?: Record<string, any> | undefined;
384
+ } | {
385
+ type: "image";
386
+ id: string;
387
+ data: string;
388
+ sessionId: string;
389
+ messageId: string;
390
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
391
+ sequence?: number | undefined;
392
+ filename?: string | undefined;
393
+ };
394
+ delta?: string | undefined;
395
+ }, {
396
+ part: {
397
+ type: "text";
398
+ id: string;
399
+ sessionId: string;
400
+ content: string;
401
+ messageId: string;
402
+ sequence?: number | undefined;
403
+ } | {
404
+ type: "reasoning";
405
+ id: string;
406
+ sessionId: string;
407
+ content: string;
408
+ messageId: string;
409
+ sequence?: number | undefined;
410
+ } | {
411
+ state: "completed" | "pending" | "running" | "failed";
412
+ type: "tool-call";
413
+ id: string;
414
+ input: Record<string, any>;
415
+ sessionId: string;
416
+ toolId: string;
417
+ messageId: string;
418
+ toolName: string;
419
+ sequence?: number | undefined;
420
+ } | {
421
+ type: "tool-result";
422
+ id: string;
423
+ output: string;
424
+ sessionId: string;
425
+ messageId: string;
426
+ toolCallId: string;
427
+ input?: Record<string, any> | undefined;
428
+ sequence?: number | undefined;
429
+ toolName?: string | undefined;
430
+ metadata?: Record<string, any> | undefined;
431
+ } | {
432
+ type: "image";
433
+ id: string;
434
+ data: string;
435
+ sessionId: string;
436
+ messageId: string;
437
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp";
438
+ sequence?: number | undefined;
439
+ filename?: string | undefined;
440
+ };
441
+ delta?: string | undefined;
442
+ }>;
443
+ };
444
+ PartRemoved: {
445
+ type: "message.part.removed";
446
+ properties: z.ZodObject<{
447
+ sessionId: z.ZodString;
448
+ messageId: z.ZodString;
449
+ partId: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ sessionId: string;
452
+ messageId: string;
453
+ partId: string;
454
+ }, {
455
+ sessionId: string;
456
+ messageId: string;
457
+ partId: string;
458
+ }>;
459
+ };
460
+ };
461
+ /**
462
+ * Create a new session
463
+ */
464
+ function create(options?: {
465
+ title?: string;
466
+ parentId?: string;
467
+ }): Promise<SessionInfo>;
468
+ /**
469
+ * Get a session by ID
470
+ */
471
+ function get(sessionId: string): Promise<SessionInfo | undefined>;
472
+ /**
473
+ * Update a session
474
+ */
475
+ function update(sessionId: string, editor: (session: SessionInfo) => void): Promise<SessionInfo>;
476
+ /**
477
+ * Touch a session (update timestamp)
478
+ */
479
+ function touch(sessionId: string): Promise<void>;
480
+ /**
481
+ * Add a prompt to session history
482
+ * Most recent prompts are at the end of the array
483
+ */
484
+ function addPromptToHistory(sessionId: string, prompt: string): Promise<void>;
485
+ /**
486
+ * Get prompt history for a session
487
+ * Returns array with most recent prompts at the end
488
+ */
489
+ function getPromptHistory(sessionId: string): Promise<string[]>;
490
+ /**
491
+ * List all sessions for current project, sorted by updatedAt (most recent first)
492
+ */
493
+ function list(): Promise<SessionInfo[]>;
494
+ /**
495
+ * Remove a session and all its messages
496
+ */
497
+ function remove(sessionId: string): Promise<void>;
498
+ /**
499
+ * Create or update a message
500
+ */
501
+ function updateMessage(message: MessageInfo): Promise<MessageInfo>;
502
+ /**
503
+ * Remove a message
504
+ */
505
+ function removeMessage(sessionId: string, messageId: string): Promise<void>;
506
+ /**
507
+ * Create or update a message part
508
+ */
509
+ function updatePart(part: MessagePart, delta?: string): Promise<MessagePart>;
510
+ /**
511
+ * Remove a message part
512
+ */
513
+ function removePart(sessionId: string, messageId: string, partId: string): Promise<void>;
514
+ /**
515
+ * Get all messages for a session
516
+ * @param sessionId - The session ID
517
+ * @param limit - Optional limit to return only the last N messages (for performance)
518
+ */
519
+ function messages(sessionId: string, limit?: number): Promise<MessageWithParts[]>;
520
+ /**
521
+ * Get the most recent session
522
+ */
523
+ function latest(): Promise<SessionInfo | undefined>;
524
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Title Generator
3
+ *
4
+ * Generates session titles from the first 5 words of the user's message.
5
+ */
6
+ export declare namespace TitleGenerator {
7
+ /**
8
+ * Generate a title from the first 5 words of the message
9
+ */
10
+ function generateTitle(message: string): string;
11
+ }