diff-chat 0.1.0__py3-none-any.whl

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 (91) hide show
  1. adapters/README.md +28 -0
  2. adapters/__init__.py +48 -0
  3. adapters/_base.py +102 -0
  4. adapters/_cli.py +405 -0
  5. adapters/claude.py +141 -0
  6. adapters/gemini.py +323 -0
  7. adapters/gpt.py +217 -0
  8. adapters/local.py +146 -0
  9. adapters/registry.py +33 -0
  10. api_fallback.py +189 -0
  11. app.py +827 -0
  12. app_preferences.py +205 -0
  13. archive_schema.py +142 -0
  14. attachments.py +129 -0
  15. chat_titles.py +60 -0
  16. connection_handoff.py +64 -0
  17. context_engine.py +256 -0
  18. conversation_actions.py +160 -0
  19. diff_chat-0.1.0.dist-info/METADATA +101 -0
  20. diff_chat-0.1.0.dist-info/RECORD +91 -0
  21. diff_chat-0.1.0.dist-info/WHEEL +4 -0
  22. diff_chat-0.1.0.dist-info/entry_points.txt +2 -0
  23. diff_chat-0.1.0.dist-info/licenses/LICENSE +21 -0
  24. diff_chat_assets/memory.example.md +1 -0
  25. diff_chat_assets/prompts/about_you_export.md +19 -0
  26. diff_chat_assets/settings.json +6 -0
  27. diff_chat_assets/static/about-you-parser.js +46 -0
  28. diff_chat_assets/static/about-you.js +171 -0
  29. diff_chat_assets/static/actions.css +275 -0
  30. diff_chat_assets/static/actions.js +650 -0
  31. diff_chat_assets/static/app.css +345 -0
  32. diff_chat_assets/static/app.js +1344 -0
  33. diff_chat_assets/static/attachments.js +80 -0
  34. diff_chat_assets/static/brand/favicon-32.png +0 -0
  35. diff_chat_assets/static/brand/icon.svg +11 -0
  36. diff_chat_assets/static/brand/wordmark-dark.svg +15 -0
  37. diff_chat_assets/static/brand/wordmark-light.svg +13 -0
  38. diff_chat_assets/static/characters/CREDITS.md +7 -0
  39. diff_chat_assets/static/characters/characters.css +37 -0
  40. diff_chat_assets/static/characters/claude.json +507 -0
  41. diff_chat_assets/static/characters/claude.png +0 -0
  42. diff_chat_assets/static/characters/claude.webp +0 -0
  43. diff_chat_assets/static/characters/gemini.json +54 -0
  44. diff_chat_assets/static/characters/gemini.png +0 -0
  45. diff_chat_assets/static/characters/gemini.webp +0 -0
  46. diff_chat_assets/static/characters/gpt.json +507 -0
  47. diff_chat_assets/static/characters/gpt.png +0 -0
  48. diff_chat_assets/static/characters/gpt.webp +0 -0
  49. diff_chat_assets/static/characters/local.json +387 -0
  50. diff_chat_assets/static/characters/local.png +0 -0
  51. diff_chat_assets/static/characters/local.webp +0 -0
  52. diff_chat_assets/static/characters/player.js +318 -0
  53. diff_chat_assets/static/chat-filing.js +84 -0
  54. diff_chat_assets/static/controls.js +194 -0
  55. diff_chat_assets/static/corners.css +59 -0
  56. diff_chat_assets/static/craft.css +246 -0
  57. diff_chat_assets/static/drafts.js +41 -0
  58. diff_chat_assets/static/index.html +208 -0
  59. diff_chat_assets/static/library.css +30 -0
  60. diff_chat_assets/static/library.js +181 -0
  61. diff_chat_assets/static/memory.js +81 -0
  62. diff_chat_assets/static/preference-dialog.js +21 -0
  63. diff_chat_assets/static/preferences.css +56 -0
  64. diff_chat_assets/static/session.js +46 -0
  65. diff_chat_assets/static/settings.css +111 -0
  66. diff_chat_assets/static/settings.js +463 -0
  67. diff_chat_assets/static/setup.js +238 -0
  68. diff_chat_assets/static/utility.js +64 -0
  69. diff_chat_assets/static/vendor/LICENSES.txt +531 -0
  70. diff_chat_assets/static/vendor/highlight.min.js +1262 -0
  71. diff_chat_assets/static/vendor/markdown-it.min.js +13 -0
  72. diff_chat_assets/static/vendor/plex-mono.woff2 +0 -0
  73. diff_chat_assets/static/vendor/plex-sans.woff2 +0 -0
  74. diff_launcher.py +93 -0
  75. discussion.py +239 -0
  76. history_search.py +68 -0
  77. library_manager.py +251 -0
  78. model_options.py +132 -0
  79. plan_usage.py +72 -0
  80. private_store.py +71 -0
  81. probe.py +195 -0
  82. runtime_paths.py +195 -0
  83. server_security.py +100 -0
  84. setup_status.py +123 -0
  85. shared_memory.py +189 -0
  86. storage.py +185 -0
  87. usage_budget.py +77 -0
  88. usage_claude.py +110 -0
  89. usage_codex.py +170 -0
  90. usage_gemini.py +70 -0
  91. utility_models.py +104 -0
@@ -0,0 +1,507 @@
1
+ {
2
+ "version": 1,
3
+ "character": "claude",
4
+ "frameSize": [
5
+ 256,
6
+ 256
7
+ ],
8
+ "baseline": 232,
9
+ "atlas": {
10
+ "width": 1536,
11
+ "height": 2560,
12
+ "webp": "claude.webp",
13
+ "png": "claude.png"
14
+ },
15
+ "states": {
16
+ "idle": {
17
+ "fps": 2,
18
+ "loop": true,
19
+ "staticFrame": 3,
20
+ "portrait": [
21
+ 74,
22
+ 81,
23
+ 142,
24
+ 142
25
+ ],
26
+ "frames": [
27
+ [
28
+ 0,
29
+ 0,
30
+ 256,
31
+ 256
32
+ ],
33
+ [
34
+ 256,
35
+ 0,
36
+ 256,
37
+ 256
38
+ ],
39
+ [
40
+ 512,
41
+ 0,
42
+ 256,
43
+ 256
44
+ ],
45
+ [
46
+ 768,
47
+ 0,
48
+ 256,
49
+ 256
50
+ ],
51
+ [
52
+ 1024,
53
+ 0,
54
+ 256,
55
+ 256
56
+ ],
57
+ [
58
+ 1280,
59
+ 0,
60
+ 256,
61
+ 256
62
+ ]
63
+ ]
64
+ },
65
+ "thinking": {
66
+ "fps": 4,
67
+ "loop": true,
68
+ "staticFrame": 3,
69
+ "portrait": [
70
+ 74,
71
+ 79,
72
+ 142,
73
+ 142
74
+ ],
75
+ "frames": [
76
+ [
77
+ 0,
78
+ 256,
79
+ 256,
80
+ 256
81
+ ],
82
+ [
83
+ 256,
84
+ 256,
85
+ 256,
86
+ 256
87
+ ],
88
+ [
89
+ 512,
90
+ 256,
91
+ 256,
92
+ 256
93
+ ],
94
+ [
95
+ 768,
96
+ 256,
97
+ 256,
98
+ 256
99
+ ],
100
+ [
101
+ 1024,
102
+ 256,
103
+ 256,
104
+ 256
105
+ ],
106
+ [
107
+ 1280,
108
+ 256,
109
+ 256,
110
+ 256
111
+ ]
112
+ ]
113
+ },
114
+ "writing": {
115
+ "fps": 7,
116
+ "loop": true,
117
+ "staticFrame": 3,
118
+ "portrait": [
119
+ 75,
120
+ 93,
121
+ 118,
122
+ 118
123
+ ],
124
+ "frames": [
125
+ [
126
+ 0,
127
+ 512,
128
+ 256,
129
+ 256
130
+ ],
131
+ [
132
+ 256,
133
+ 512,
134
+ 256,
135
+ 256
136
+ ],
137
+ [
138
+ 512,
139
+ 512,
140
+ 256,
141
+ 256
142
+ ],
143
+ [
144
+ 768,
145
+ 512,
146
+ 256,
147
+ 256
148
+ ],
149
+ [
150
+ 1024,
151
+ 512,
152
+ 256,
153
+ 256
154
+ ],
155
+ [
156
+ 1280,
157
+ 512,
158
+ 256,
159
+ 256
160
+ ]
161
+ ]
162
+ },
163
+ "done": {
164
+ "fps": 7,
165
+ "loop": false,
166
+ "staticFrame": 3,
167
+ "portrait": [
168
+ 74,
169
+ 79,
170
+ 142,
171
+ 142
172
+ ],
173
+ "frames": [
174
+ [
175
+ 0,
176
+ 768,
177
+ 256,
178
+ 256
179
+ ],
180
+ [
181
+ 256,
182
+ 768,
183
+ 256,
184
+ 256
185
+ ],
186
+ [
187
+ 512,
188
+ 768,
189
+ 256,
190
+ 256
191
+ ],
192
+ [
193
+ 768,
194
+ 768,
195
+ 256,
196
+ 256
197
+ ],
198
+ [
199
+ 1024,
200
+ 768,
201
+ 256,
202
+ 256
203
+ ],
204
+ [
205
+ 1280,
206
+ 768,
207
+ 256,
208
+ 256
209
+ ]
210
+ ]
211
+ },
212
+ "agree": {
213
+ "fps": 6,
214
+ "loop": false,
215
+ "staticFrame": 3,
216
+ "portrait": [
217
+ 74,
218
+ 85,
219
+ 142,
220
+ 142
221
+ ],
222
+ "frames": [
223
+ [
224
+ 0,
225
+ 1024,
226
+ 256,
227
+ 256
228
+ ],
229
+ [
230
+ 256,
231
+ 1024,
232
+ 256,
233
+ 256
234
+ ],
235
+ [
236
+ 512,
237
+ 1024,
238
+ 256,
239
+ 256
240
+ ],
241
+ [
242
+ 768,
243
+ 1024,
244
+ 256,
245
+ 256
246
+ ],
247
+ [
248
+ 1024,
249
+ 1024,
250
+ 256,
251
+ 256
252
+ ],
253
+ [
254
+ 1280,
255
+ 1024,
256
+ 256,
257
+ 256
258
+ ]
259
+ ]
260
+ },
261
+ "disagree": {
262
+ "fps": 7,
263
+ "loop": false,
264
+ "staticFrame": 3,
265
+ "portrait": [
266
+ 74,
267
+ 80,
268
+ 142,
269
+ 142
270
+ ],
271
+ "frames": [
272
+ [
273
+ 0,
274
+ 1280,
275
+ 256,
276
+ 256
277
+ ],
278
+ [
279
+ 256,
280
+ 1280,
281
+ 256,
282
+ 256
283
+ ],
284
+ [
285
+ 512,
286
+ 1280,
287
+ 256,
288
+ 256
289
+ ],
290
+ [
291
+ 768,
292
+ 1280,
293
+ 256,
294
+ 256
295
+ ],
296
+ [
297
+ 1024,
298
+ 1280,
299
+ 256,
300
+ 256
301
+ ],
302
+ [
303
+ 1280,
304
+ 1280,
305
+ 256,
306
+ 256
307
+ ]
308
+ ]
309
+ },
310
+ "waiting": {
311
+ "fps": 3,
312
+ "loop": true,
313
+ "staticFrame": 3,
314
+ "portrait": [
315
+ 74,
316
+ 80,
317
+ 142,
318
+ 142
319
+ ],
320
+ "frames": [
321
+ [
322
+ 0,
323
+ 1536,
324
+ 256,
325
+ 256
326
+ ],
327
+ [
328
+ 256,
329
+ 1536,
330
+ 256,
331
+ 256
332
+ ],
333
+ [
334
+ 512,
335
+ 1536,
336
+ 256,
337
+ 256
338
+ ],
339
+ [
340
+ 768,
341
+ 1536,
342
+ 256,
343
+ 256
344
+ ],
345
+ [
346
+ 1024,
347
+ 1536,
348
+ 256,
349
+ 256
350
+ ],
351
+ [
352
+ 1280,
353
+ 1536,
354
+ 256,
355
+ 256
356
+ ]
357
+ ]
358
+ },
359
+ "stopped": {
360
+ "fps": 8,
361
+ "loop": false,
362
+ "staticFrame": 3,
363
+ "portrait": [
364
+ 74,
365
+ 80,
366
+ 142,
367
+ 142
368
+ ],
369
+ "frames": [
370
+ [
371
+ 0,
372
+ 1792,
373
+ 256,
374
+ 256
375
+ ],
376
+ [
377
+ 256,
378
+ 1792,
379
+ 256,
380
+ 256
381
+ ],
382
+ [
383
+ 512,
384
+ 1792,
385
+ 256,
386
+ 256
387
+ ],
388
+ [
389
+ 768,
390
+ 1792,
391
+ 256,
392
+ 256
393
+ ],
394
+ [
395
+ 1024,
396
+ 1792,
397
+ 256,
398
+ 256
399
+ ],
400
+ [
401
+ 1280,
402
+ 1792,
403
+ 256,
404
+ 256
405
+ ]
406
+ ]
407
+ },
408
+ "error": {
409
+ "fps": 2,
410
+ "loop": true,
411
+ "staticFrame": 3,
412
+ "portrait": [
413
+ 74,
414
+ 80,
415
+ 142,
416
+ 142
417
+ ],
418
+ "frames": [
419
+ [
420
+ 0,
421
+ 2048,
422
+ 256,
423
+ 256
424
+ ],
425
+ [
426
+ 256,
427
+ 2048,
428
+ 256,
429
+ 256
430
+ ],
431
+ [
432
+ 512,
433
+ 2048,
434
+ 256,
435
+ 256
436
+ ],
437
+ [
438
+ 768,
439
+ 2048,
440
+ 256,
441
+ 256
442
+ ],
443
+ [
444
+ 1024,
445
+ 2048,
446
+ 256,
447
+ 256
448
+ ],
449
+ [
450
+ 1280,
451
+ 2048,
452
+ 256,
453
+ 256
454
+ ]
455
+ ]
456
+ },
457
+ "sleep": {
458
+ "fps": 1.5,
459
+ "loop": true,
460
+ "staticFrame": 3,
461
+ "portrait": [
462
+ 74,
463
+ 88,
464
+ 142,
465
+ 142
466
+ ],
467
+ "frames": [
468
+ [
469
+ 0,
470
+ 2304,
471
+ 256,
472
+ 256
473
+ ],
474
+ [
475
+ 256,
476
+ 2304,
477
+ 256,
478
+ 256
479
+ ],
480
+ [
481
+ 512,
482
+ 2304,
483
+ 256,
484
+ 256
485
+ ],
486
+ [
487
+ 768,
488
+ 2304,
489
+ 256,
490
+ 256
491
+ ],
492
+ [
493
+ 1024,
494
+ 2304,
495
+ 256,
496
+ 256
497
+ ],
498
+ [
499
+ 1280,
500
+ 2304,
501
+ 256,
502
+ 256
503
+ ]
504
+ ]
505
+ }
506
+ }
507
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "version": 1,
3
+ "character": "gemini",
4
+ "frameSize": [
5
+ 256,
6
+ 256
7
+ ],
8
+ "baseline": 232,
9
+ "atlas": {
10
+ "width": 1024,
11
+ "height": 256,
12
+ "webp": "gemini.webp",
13
+ "png": "gemini.png"
14
+ },
15
+ "states": {
16
+ "idle": {
17
+ "fps": 2.5,
18
+ "loop": true,
19
+ "staticFrame": 0,
20
+ "portrait": [
21
+ 0,
22
+ 0,
23
+ 256,
24
+ 256
25
+ ],
26
+ "frames": [
27
+ [
28
+ 0,
29
+ 0,
30
+ 256,
31
+ 256
32
+ ],
33
+ [
34
+ 256,
35
+ 0,
36
+ 256,
37
+ 256
38
+ ],
39
+ [
40
+ 512,
41
+ 0,
42
+ 256,
43
+ 256
44
+ ],
45
+ [
46
+ 768,
47
+ 0,
48
+ 256,
49
+ 256
50
+ ]
51
+ ]
52
+ }
53
+ }
54
+ }