Timothy Jaeryang Baek
6fce92aa12
chore: format
2026-06-01 13:56:55 -07:00
Timothy Jaeryang Baek
d8b5b9fa79
refac
2026-05-21 15:29:49 +04:00
Algorithm5838
ae48838b04
fix: tag composite pk in migration ( #24722 )
2026-05-15 09:31:27 +09:00
Timothy Jaeryang Baek and Classic298
9263b7568e
refac
...
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com >
2026-05-14 14:12:42 +09:00
Timothy Jaeryang Baek
73d2065227
fix: legacy peewee tables fk
2026-05-14 14:06:46 +09:00
Timothy Jaeryang Baek
d7cfc1e46a
refac
2026-05-14 14:06:32 +09:00
Timothy Jaeryang Baek
9717ada92f
refac
2026-05-14 14:05:28 +09:00
Timothy Jaeryang Baek
9a8969ca93
refac
2026-05-14 13:49:50 +09:00
Timothy Jaeryang Baek
2e1b671e8d
refac
2026-05-14 13:49:15 +09:00
Timothy Jaeryang Baek
db2b3d7fd8
refac
2026-05-14 13:46:54 +09:00
Timothy Jaeryang Baek
1004dad274
refac
2026-05-14 13:46:36 +09:00
Timothy Jaeryang Baek
ee3b14233a
refac
2026-05-14 13:46:23 +09:00
Timothy Jaeryang Baek
dc0f8ae6f2
refac
2026-05-14 13:46:08 +09:00
Timothy Jaeryang Baek
1b9d22e324
refac
2026-05-14 13:45:59 +09:00
Timothy Jaeryang Baek
98d3b23085
refac
2026-05-14 13:45:39 +09:00
Timothy Jaeryang Baek
6b1df94bf9
refac
2026-05-14 13:45:31 +09:00
Timothy Jaeryang Baek
95840e307a
refac
2026-05-14 13:45:21 +09:00
Timothy Jaeryang Baek
6df09a4039
refac
2026-05-14 13:45:12 +09:00
Timothy Jaeryang Baek
459b1c3fda
refac
2026-05-14 13:45:05 +09:00
Timothy Jaeryang Baek
bd9f82d5a6
refac
2026-05-14 13:44:50 +09:00
Timothy Jaeryang Baek
f0e88dadc8
refac
2026-05-14 13:08:53 +09:00
Timothy Jaeryang Baek
81f611fb73
refac
2026-05-14 03:06:37 +09:00
Timothy Jaeryang Baek
c2cbc47ca7
feat: knowledge directory
2026-05-13 22:37:53 +09:00
Timothy Jaeryang Baek
6d0295588e
refac: modernize type annotations (PEP 604 / PEP 585)
2026-05-12 17:10:15 +09:00
Timothy Jaeryang Baek
2c2d06c31b
refac: deprecate peewee migration layer
...
The Alembic init migration (7e5b5dc7342b) already creates the
equivalent schema. Peewee migrations are no longer needed for
any version >= 0.3.6.
2026-05-12 03:45:59 +09:00
Timothy Jaeryang Baek
7bcc0e2e5c
chore: format
2026-05-09 15:25:27 +09:00
Timothy Jaeryang Baek
38a382ef88
refac
2026-05-09 06:23:51 +09:00
Timothy Jaeryang Baek
33e588cf09
refac
2026-05-09 04:39:44 +09:00
Timothy Jaeryang Baek
37eba1c5a6
chore: format
2026-04-19 22:45:54 +09:00
Timothy Jaeryang Baek
4a5401b417
refac
2026-04-19 21:48:27 +09:00
Timothy Jaeryang Baek
8d739e2aba
feat: calendar
2026-04-19 19:15:05 +09:00
Timothy Jaeryang Baek
4113b15a60
chore: format
2026-04-17 14:28:18 +09:00
Timothy Jaeryang Baek
2e52ad8ff2
refac: shared chat
2026-04-17 10:16:32 +09:00
Timothy Jaeryang Baek
ecd74f220c
refac
2026-04-14 17:22:54 -05:00
Timothy Jaeryang Baek
0c5399ca53
refac
2026-04-01 18:26:46 -05:00
Timothy Jaeryang Baek
c8ef5a4f38
chore: format
2026-04-01 04:36:02 -05:00
Timothy Jaeryang Baek
0638b9f56c
refac
2026-04-01 04:00:18 -05:00
Timothy Jaeryang Baek
e6f38f52c8
feat: automation
2026-03-31 23:36:01 -05:00
Timothy Jaeryang Baek
bcb71bb520
feat: tasks
2026-03-29 18:01:04 -05:00
Timothy Jaeryang Baek
de3317e26b
refac
2026-03-17 17:58:01 -05:00
Classic298
06657b8109
fix: handle non-dict history/messages in chat_message migration ( #22588 )
...
Some databases contain chat records where 'history' or 'messages' are
stored as lists instead of dicts. This causes an AttributeError
('list' object has no attribute 'items') during the
8452d01d26d7_add_chat_message_table migration.
Add isinstance checks to skip chat records with unexpected data shapes
gracefully, matching the existing pattern used for individual message
validation.
2026-03-11 14:24:21 -05:00
Timothy Jaeryang Baek
3ceaa107ab
chore: format
2026-03-07 20:14:32 -06:00
Classic298
b4f340806a
fix: migration streaming/batching ( #21542 )
...
* fix: normalize usage tokens + migration streaming/batching
- Migration: replace .fetchall() with yield_per streaming, replace per-message INSERT+SAVEPOINT with batched inserts (5k/batch) with fallback to row-by-row on error, add progress logging
- Write path: call normalize_usage() in upsert_message() before saving to ensure input_tokens/output_tokens always present
- Read path: analytics queries now COALESCE across input_tokens/prompt_tokens and output_tokens/completion_tokens so historical data with OpenAI-format keys is visible
* fix: restore defensive timestamp conversion in migration
Re-add try/except around int(float(timestamp)) that was accidentally dropped. Without this, a non-numeric timestamp string would cause a TypeError on the subsequent comparison, breaking the entire upgrade.
* revert: remove changes to chat_messages.py
2026-03-07 19:08:11 -05:00
Timothy Jaeryang Baek and Nil Puig
499ca282e5
refac
...
Co-Authored-By: Nil Puig <244631886+npuigm@users.noreply.github.com >
2026-02-28 17:08:41 -06:00
Timothy Jaeryang Baek
d1d1efe212
refac: scim
2026-02-13 14:27:11 -06:00
Timothy Jaeryang Baek
f376d4f378
chore: format
2026-02-11 16:24:11 -06:00
Timothy Jaeryang Baek
27944cf7ca
refac
2026-02-11 14:26:56 -06:00
Timothy Jaeryang Baek
3fabc085cc
feat: skills migration
2026-02-11 03:58:28 -06:00
Timothy Jaeryang Baek
68c77295bd
refac
2026-02-09 13:31:59 -06:00
Timothy Jaeryang Baek
9be85b6d3c
refac: access control migration
2026-02-07 19:07:49 -06:00