rotifex 0.1.4 → 0.1.6

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ![banner](https://raw.githubusercontent.com/Grigary-C-Antony/Rotifex/master/banner-1.png)
2
2
 
3
- # Rotifex — Complete Documentation Source
3
+ # Rotifex
4
4
 
5
- > This file is the single source of truth for generating full product documentation.
6
- > It is structured for compatibility with Docusaurus, Mintlify, GitBook, and similar systems.
5
+ > open the documentaion at [Docs](https://rotifex-docs.vercel.app/)
7
6
 
8
7
  ---
8
+
9
9
  ## Installation
10
10
 
11
11
  ```bash
@@ -26,9 +26,9 @@ npx rotifex start
26
26
 
27
27
  ## Commands
28
28
 
29
- | Command | Description |
30
- | --------- | ------------------------------------ |
31
- | `start` | Start the Rotifex development server |
29
+ | Command | Description |
30
+ | ------- | ------------------------------------ |
31
+ | `start` | Start the Rotifex development server |
32
32
 
33
33
  ## Table of Contents
34
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rotifex",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Rotifex — a modern CLI toolkit for project scaffolding, development, and migrations.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +1,4 @@
1
1
  import { makeAuthController } from './auth.controller.js';
2
- import { ensureAuthSchema } from './auth.service.js';
3
2
 
4
3
  /**
5
4
  * Auth route group — registered under the root prefix.
@@ -15,9 +14,6 @@ import { ensureAuthSchema } from './auth.service.js';
15
14
  * @param {{ db: import('../db/adapters/base.js').DatabaseAdapter }} opts
16
15
  */
17
16
  export async function authRoutes(app, { db }) {
18
- // Ensure the password_hash column exists on the users table.
19
- ensureAuthSchema(db);
20
-
21
17
  const ctrl = makeAuthController(db);
22
18
 
23
19
  app.post('/auth/register', (req, reply) => ctrl.register(req, reply));
@@ -10,6 +10,7 @@ import { healthRoutes } from './routes/health.js';
10
10
  import { fileRoutes } from './routes/files.js';
11
11
  import { adminRoutes } from './routes/admin.js';
12
12
  import { authRoutes } from '../auth/auth.routes.js';
13
+ import { ensureAuthSchema } from '../auth/auth.service.js';
13
14
  import { aiRoutes } from '../ai/ai.routes.js';
14
15
  import { agentRoutes } from '../ai/agent.routes.js';
15
16
  import { registerJwtMiddleware } from '../auth/jwt.middleware.js';
@@ -70,6 +71,9 @@ export async function createServer(config) {
70
71
  // ── Dynamic REST Engine ─────────────────────────────────────────────
71
72
  bootstrapEngine(app, db);
72
73
 
74
+ // Ensure password_hash column exists on the users table now that it's created.
75
+ ensureAuthSchema(db);
76
+
73
77
  // ── File Storage ────────────────────────────────────────────────────
74
78
  const storage = new StorageManager(db, config.storage);
75
79
  storage.init();