Kirill Dubovitskiy
597d1d262a
refactor: separate session-alive and machine-alive socket events
...
- Remove SessionAliveEvent type and simplify event handling
- session-alive now only handles session heartbeats (requires sid)
- Add new machine-alive event for daemon heartbeats (requires machineId)
- Remove type field and coupling between session and machine events
- Add proper TypeScript types instead of using 'any'
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 21:51:18 -07:00
Kirill Dubovitskiy
a4bc4d34e8
feat: Add machine persistence to database
...
• Add Machine model to Prisma schema
• Create /v1/machines endpoints for CRUD operations
• Persist machine metadata and track active status
• Update socket handlers for machine-scoped connections
• Convert ephemeral machine status to database persistence
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 03:30:23 -07:00
Kirill Dubovitskiy
5e06cc3947
wip: generate short lived token on the backend to send to the frontend for realtime session creation
2025-08-06 03:35:11 -07:00
Kirill Dubovitskiy
c37d749d7a
feat: daemon - machine scoped sessions added
2025-08-05 02:13:22 -07:00
Steve Korshakov
4f0b4fecaf
fix: fix updatedAt
2025-08-04 18:58:19 -07:00
Steve Korshakov
bc27d1a973
ref: remove last message
2025-08-04 18:27:24 -07:00
Steve Korshakov
c0cc33cfc6
ref: change root response
2025-08-02 23:09:10 -07:00
Steve Korshakov
1065d22de7
fix: trying to fix message ordering
2025-07-28 23:53:28 -07:00
Steve Korshakov
506b7a41ba
ref: improve types
2025-07-27 14:04:24 -07:00
Steve Korshakov
28b5f91542
feat: add settings
2025-07-26 14:19:29 -07:00
Steve Korshakov
2a32adec3e
feat: add settingsVersion
2025-07-26 13:52:22 -07:00
Steve Korshakov
c865d359b8
feat: add account settings
2025-07-26 13:51:22 -07:00
Steve Korshakov
93b48e6e62
fix: wrap handlers in try catch to avoid crashing the server on db issues
2025-07-26 13:31:15 -07:00
Steve Korshakov
b656562e56
ref: remove updates
2025-07-26 02:24:05 -07:00
Steve Korshakov
6c0428c9d3
ref: remove transactions
2025-07-26 02:00:25 -07:00
Steve Korshakov
ae95f70372
wip: working on redis queue
2025-07-26 01:16:22 -07:00
Steve Korshakov
c8c83eaa8b
fix: fix server
2025-07-25 23:42:31 -07:00
Steve Korshakov
3d3a6b40da
fix: fix redis
2025-07-25 23:06:36 -07:00
Steve Korshakov
4bf0801ed9
wip: add redis
2025-07-25 22:41:09 -07:00
Steve Korshakov
2f853017ee
fix: fix deadlock
2025-07-24 22:21:18 -07:00
Steve Korshakov
e07e79ae2f
feat: usage collection
2025-07-21 00:50:07 -07:00
Kirill Dubovitskiy
fdc91050f7
chore: correct local env referenced in dev script
2025-07-20 13:51:58 -07:00
Kirill Dubovitskiy
df51dab7ab
chore: correct .env for development used in debug config
2025-07-19 17:47:12 -07:00
Kirill Dubovitskiy
9cf6b979da
devx: easier way to run the server + debugger
2025-07-19 00:02:26 -07:00
Kirill Dubovitskiy
40b98cdc17
fix: actually shut down server on ctrl+c
2025-07-19 00:02:26 -07:00
Steve Korshakov
7dcb7f30af
fix: missing account id in response
2025-07-18 23:33:44 -07:00
Steve Korshakov
c17aaf25cb
fix: fix localId
2025-07-18 23:02:35 -07:00
Steve Korshakov
4e14898e97
feat: add scoped auth
2025-07-18 21:48:33 -07:00
Steve Korshakov
f5118557d9
ref: add nice readme to backend
2025-07-18 00:03:23 -07:00
Steve Korshakov
93c55df649
feat: add push tokens
2025-07-17 20:31:18 -07:00
Steve Korshakov
332ad7b91c
ref: implement localId on server side
2025-07-17 20:21:19 -07:00
Steve Korshakov
bed3f87cba
feat: add localId
2025-07-17 20:18:35 -07:00
Kirill Dubovitskiy
0b3017ef1b
fix: distinguish between session / user scoped (mobile) connections
2025-07-17 02:28:19 -07:00
Steve Korshakov
1ace32e5c3
feat: add ping
2025-07-16 22:37:28 -07:00
Kirill Dubovitskiy
652f435307
devx: docker compose for starting postgres
2025-07-15 21:59:15 -07:00
Steve Korshakov
ec3c1ed147
feat: add rpc logging
2025-07-14 20:28:25 -07:00
Steve Korshakov
1f9bf24af3
feat: add rpc call between sockets
2025-07-14 19:41:15 -07:00
Steve Korshakov
e2854faaa8
feat: add update state
2025-07-14 19:21:39 -07:00
Steve Korshakov
0ccdef14ff
feat: add metadata version, agent state, version, add netadata change
2025-07-14 18:47:47 -07:00
Steve Korshakov
51f3656554
fix: fix not sending whole ephemeral update
2025-07-13 21:49:19 -07:00
Steve Korshakov
bff8fdef77
feat: support thinking status
2025-07-13 21:33:38 -07:00
Steve Korshakov
751f306531
fix: fix timeouts
2025-07-13 21:06:48 -07:00
Steve Korshakov
65b4df7343
fix: fix missing metadata
2025-07-13 21:02:31 -07:00
Steve Korshakov
d2a35ca842
feat: add session online states
2025-07-13 20:31:41 -07:00
Steve Korshakov
5aa597186a
feat: add metadata field to session
2025-07-13 20:11:44 -07:00
Steve Korshakov
98d14fc1d6
ref: revert update types
2025-07-13 15:12:55 -07:00
Steve Korshakov
58e5d13fee
fix: fix update types
2025-07-13 15:05:05 -07:00
Steve Korshakov
ff59c1c8b3
ref: change message update message
2025-07-13 13:55:10 -07:00
Steve Korshakov
4853e0ed52
feat: new session update
2025-07-13 13:18:01 -07:00
Steve Korshakov
b0735b28a3
ref: move message sending to socket
2025-07-13 13:04:49 -07:00