Skip to content

Commit 7e22397

Browse files
authored
Merge pull request #18 from CMU-17313Q/feat/thread-summarizer
Add Thread Summarizer plugin with tests and documentation This merge introduces the fully implemented Thread Summarizer feature: - Adds /api/thread-summarizer/v2/:tid REST API route - Integrates OpenAI (gpt-4o-mini) for thread summarization - Includes LRU caching and per-user cooldown - Provides automated Mocha tests (~80% coverage) - Adds UserGuide.md with usage and testing documentation
2 parents d10f20e + f21727a commit 7e22397

File tree

952 files changed

+49917
-48369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

952 files changed

+49917
-48369
lines changed

.docker/build/.gitkeep

Whitespace-only changes.

.docker/config/.gitkeep

Whitespace-only changes.

.docker/database/mongo/data/.gitkeep

Whitespace-only changes.

.docker/database/postgresql/data/.gitkeep

Whitespace-only changes.

.docker/database/redis/data/.gitkeep

Whitespace-only changes.

.docker/public/uploads/.gitkeep

Whitespace-only changes.

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
15+
cache: 'npm'
16+
17+
- name: Install
18+
run: npm ci
19+
20+
- name: Lint
21+
run: npm run lint
22+
23+
- name: Test (with coverage)
24+
run: npm test
25+
26+
# Make Coveralls non-blocking and only run if a token exists
27+
- name: Upload coverage to Coveralls (non-blocking)
28+
if: ${{ secrets.COVERALLS_REPO_TOKEN != '' && always() }}
29+
uses: coverallsapp/github-action@v2
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
path-to-lcov: ./coverage/lcov.info
33+
continue-on-error: true

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,18 @@ coverage
6868
test/files/normalise.jpg.png
6969
test/files/normalise-resized.jpg
7070
package-lock.json
71-
/package.json
71+
#/package.json
7272
*.mongodb
7373
link-plugins.sh
7474
test.sh
7575

7676
.docker/**
7777
!**/.gitkeep
7878

79-
/test/
79+
#/test/
80+
# build outputs
81+
build/
82+
dump*.rdb
83+
84+
.nyc_tmp/
85+
.nyc_cov/

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)