ai_co_discuss 0.2.95 → 0.2.97
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.
- package/backend/admin.py +6 -1
- package/backend/runtime.py +426 -416
- package/backend/schema.sql +6 -0
- package/backend/server.py +2372 -2359
- package/docs/deployment.md +3 -3
- package/docs/en/deployment.md +3 -3
- package/package.json +3 -2
- package/runner/admin_account.mjs +66 -0
- package/runner/codiscuss.mjs +3 -0
- package/runner/discussion_launch.mjs +3 -0
- package/runner/free_runner.mjs +4 -3
- package/web/app.js +41 -29
- package/web/markdown.js +5 -5
- package/web/modern.css +1 -1
- package/web/modern.js +2185 -2043
package/backend/schema.sql
CHANGED
|
@@ -161,6 +161,12 @@ CREATE TABLE IF NOT EXISTS admin_sessions (
|
|
|
161
161
|
token_hash TEXT PRIMARY KEY,
|
|
162
162
|
created_at INTEGER NOT NULL
|
|
163
163
|
);
|
|
164
|
+
-- One-time registration token from `codiscuss admin token` on the deploying computer; cleared once the administrator registers.
|
|
165
|
+
CREATE TABLE IF NOT EXISTS admin_setup (
|
|
166
|
+
id INTEGER PRIMARY KEY CHECK(id=1),
|
|
167
|
+
token_hash TEXT NOT NULL,
|
|
168
|
+
created_at INTEGER NOT NULL
|
|
169
|
+
);
|
|
164
170
|
|
|
165
171
|
-- Free collaboration rooms. Rooms without a row are brainstorm rooms and keep every rule below.
|
|
166
172
|
CREATE TABLE IF NOT EXISTS room_modes (
|