Commit Graph

36 Commits

Author SHA1 Message Date
Innei
8a5048f067 feat(ai): add deep reading model and controller method
- Introduced `AIDeepReadingModel` to define the structure for deep reading responses.
- Added `getDeepReading` method in `AIController` to fetch deep reading data for a given article ID.
- Updated imports in `ai.ts` to include the new deep reading model.

Signed-off-by: Innei <tukon479@gmail.com>
2025-05-06 00:27:18 +08:00
Innei
13f4a0cc5a chore: sort asc controller
Signed-off-by: Innei <i@innei.in>
2024-09-14 20:31:55 +08:00
Innei
26b2b4f134 feat: reader for comment and like action (#2122)
* init

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* feat: reader like activity

Signed-off-by: Innei <i@innei.in>

* feat: add comment

Signed-off-by: Innei <i@innei.in>

* feat: comment reader

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-09-14 20:26:18 +08:00
Innei
f7bce0279a fix: transform case and export client type
Signed-off-by: Innei <i@innei.in>
2024-09-02 16:52:52 +08:00
Innei
33c48f743f feat: add reader id for presence
Signed-off-by: Innei <i@innei.in>
2024-09-02 16:16:17 +08:00
Innei
817b81a983 chore: format
Signed-off-by: Innei <i@innei.in>
2024-08-16 12:30:06 +08:00
Innei
f8909bd8c9 feat: ai writer helper module
Signed-off-by: Innei <i@innei.in>
2024-05-04 22:04:36 +08:00
Innei
e5ac04a650 chore: lint with sxzz config
Signed-off-by: Innei <i@innei.in>
2024-04-29 16:00:20 +08:00
Innei
5a028c82e3 feat: add getLastYearPublication api
Signed-off-by: Innei <i@innei.in>
2024-04-26 23:24:47 +08:00
Innei
c989a2a7b0 feat: ai module (#1649)
* fix: pass `truncate`

Signed-off-by: Innei <i@innei.in>

* feat: add openai summary

Signed-off-by: Innei <i@innei.in>

* feat: ai list api

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-04-26 19:52:11 +08:00
Innei
924e7e4b5b fix: pass truncate
Signed-off-by: Innei <i@innei.in>
2024-04-25 22:45:00 +08:00
Innei
45e7cf83a8 feat: add truncate for post list
Signed-off-by: Innei <i@innei.in>
2024-04-24 12:07:43 +08:00
Innei
b4726adfd8 feat: add recent activity api
Signed-off-by: Innei <i@innei.in>
2024-04-12 21:08:03 +08:00
Innei
5a2b2debc4 fix: add hide for note list api
Signed-off-by: Innei <i@innei.in>
2024-04-12 00:35:01 +08:00
Innei
97f10b4a1d feat: add get one recently api
Signed-off-by: Innei <i@innei.in>
2024-04-03 11:41:18 +08:00
Innei
d0f7c2d5af fix(api-client): bypass ts property
Signed-off-by: Innei <i@innei.in>
2024-03-29 21:17:13 +08:00
Innei
aeb85099b5 refactor: get database writing model
Signed-off-by: Innei <i@innei.in>
2024-02-20 20:15:36 +08:00
Innei
6745194197 refactor!: rename note model field and fix exposure of hidden data
Signed-off-by: Innei <i@innei.in>
2024-02-15 22:29:51 +08:00
Innei
c639c57f48 fix: api model 2024-02-14 22:13:55 +08:00
Innei
4683b697ce feat: add api sdk for this
Signed-off-by: Innei <i@innei.in>
2024-02-14 22:04:24 +08:00
Innei
267632be94 feat: support socket room and add activity presence (#1445)
* feat: room init

Signed-off-by: Innei <i@innei.in>

* feat: web gateway hooks

Signed-off-by: Innei <i@innei.in>

* perf: debounce update event

Signed-off-by: Innei <i@innei.in>

* fix: socket online more accurate

* fix: singleton

* feat: add more hooks

* fix: set metadata on socket

* feat: api-client update

Signed-off-by: Innei <i@innei.in>

* update

Signed-off-by: Innei <i@innei.in>

* feat: add ip

Signed-off-by: Innei <i@innei.in>

* refactor: event

Signed-off-by: Innei <i@innei.in>

* fix: test

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
2024-02-11 19:01:08 +08:00
Innei
05eda82e3b fix: ack path 2023-10-21 15:36:17 +08:00
Innei
dd9caa0a12 chore: remove deprecated routes 2023-10-21 15:32:23 +08:00
Innei
08dc741c6c feat(api-client): add ack controller
Signed-off-by: Innei <i@innei.in>
2023-10-21 15:01:08 +08:00
Innei
4132babb4f fix: post data wrapped 2023-08-06 22:45:40 +08:00
Innei
44ab9dc273 feat: add api client for activity controller 2023-08-06 19:24:00 +08:00
Innei
fbcf2cc53f fix: test case
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-17 09:38:52 +08:00
Innei
b22666694a chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2023-06-10 16:36:14 +08:00
Innei
8f028a9ac2 fix(api-client): subscribe post body instend of params
Signed-off-by: Innei <tukon479@gmail.com>
2023-02-14 20:23:15 +08:00
Innei
35e18646e5 fix(subscribe): provide toC allow_type
Signed-off-by: Innei <tukon479@gmail.com>
2023-02-13 23:20:26 +08:00
Innei
1b80adb02c feat(subscribe): add feature list toggle
Signed-off-by: Innei <tukon479@gmail.com>
2023-02-13 22:50:00 +08:00
c8667ec5e2 feat: newsletter subscribe (#968)
* feat: subscribe newsletter

Signed-off-by: Innei <tukon479@gmail.com>

* feat(subscribe): send email

Signed-off-by: Innei <tukon479@gmail.com>

* fix(template): email template override

Signed-off-by: Innei <tukon479@gmail.com>

* fix: newsletter template props

Signed-off-by: Innei <tukon479@gmail.com>

* fix: get master inside

Signed-off-by: Innei <tukon479@gmail.com>

* feat: add sort

Signed-off-by: Innei <tukon479@gmail.com>

* feat(api-client): add subscribe controller

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2023-02-13 15:15:13 +08:00
Innei
9e82b8fc28 fix(api-client): add enum to exports
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-23 21:33:33 +08:00
Innei
b44bb411f0 feat(api-client): add attitude method
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-23 15:20:55 +08:00
Innei
1073c67646 feat: add liked for post and note model
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-22 18:07:40 +08:00
Innei
a281f45ab4 feat: move api-client as core's monorepo
Signed-off-by: Innei <tukon479@gmail.com>
2022-12-20 21:26:21 +08:00