@karmaniverous/jeeves-server-core 0.1.7 → 0.2.1-0
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 +4 -4
- package/dist/src/schema.d.ts +3 -0
- package/dist/src/schema.js +12 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Shared workspace package providing cryptographic utilities and API types consume
|
|
|
7
7
|
### Crypto Functions
|
|
8
8
|
|
|
9
9
|
| Function | Description |
|
|
10
|
-
|
|
10
|
+
| --- | --- |
|
|
11
11
|
| `computePathKey(seed, path)` | HMAC-SHA256 outsider key for a normalized path (32 hex chars) |
|
|
12
12
|
| `computeInsiderKey(seed)` | HMAC-SHA256 insider key derived from a seed (32 hex chars) |
|
|
13
13
|
| `computeOutsiderKeyWithExpiry(seed, path, expiry)` | HMAC-SHA256 outsider key with embedded expiration |
|
|
@@ -17,7 +17,7 @@ Shared workspace package providing cryptographic utilities and API types consume
|
|
|
17
17
|
### Config Schema
|
|
18
18
|
|
|
19
19
|
| Export | Description |
|
|
20
|
-
|
|
20
|
+
| --- | --- |
|
|
21
21
|
| `loggingConfigSchema` | Zod schema for `logging` config block (`level`, `file`, both optional) |
|
|
22
22
|
| `LoggingConfig` | Inferred TypeScript type from `loggingConfigSchema` |
|
|
23
23
|
| `jeevesConfigSchema` | Full server config Zod schema (includes `logging`, `oauth`, all other fields) |
|
|
@@ -25,14 +25,14 @@ Shared workspace package providing cryptographic utilities and API types consume
|
|
|
25
25
|
### Endpoint Catalog
|
|
26
26
|
|
|
27
27
|
| Export | Description |
|
|
28
|
-
|
|
28
|
+
| --- | --- |
|
|
29
29
|
| `EndpointEntry` | Interface describing a single API operation (method, path, description, auth flags) |
|
|
30
30
|
| `serverEndpoints` | Complete declarative catalog of all jeeves-server API endpoints (38 entries) |
|
|
31
31
|
|
|
32
32
|
### API Types
|
|
33
33
|
|
|
34
34
|
| Type | Description |
|
|
35
|
-
|
|
35
|
+
| --- | --- |
|
|
36
36
|
| `ShareRequest` / `ShareResponse` | `POST /api/share` payloads |
|
|
37
37
|
| `ShareForRequest` / `ShareForResponse` | `POST /api/util/share-for` payloads (audience-based sharing) |
|
|
38
38
|
| `AuthStatusResponse` | `GET /api/auth/status` response |
|
package/dist/src/schema.d.ts
CHANGED
|
@@ -209,6 +209,9 @@ export declare const jeevesConfigSchema: z.ZodObject<{
|
|
|
209
209
|
}, z.core.$strip>>;
|
|
210
210
|
emailTemplate: z.ZodOptional<z.ZodString>;
|
|
211
211
|
}, z.core.$strip>>;
|
|
212
|
+
eventQueue: z.ZodOptional<z.ZodString>;
|
|
213
|
+
eventQueueConcurrency: z.ZodDefault<z.ZodNumber>;
|
|
214
|
+
publicUrl: z.ZodOptional<z.ZodURL>;
|
|
212
215
|
}, z.core.$strip>;
|
|
213
216
|
/** Inferred config type */
|
|
214
217
|
export type JeevesConfig = z.infer<typeof jeevesConfigSchema>;
|
package/dist/src/schema.js
CHANGED
|
@@ -227,6 +227,18 @@ const jeevesConfigSchema = z
|
|
|
227
227
|
.default({}),
|
|
228
228
|
/** Instance branding (name, emoji, theme overrides, email template) */
|
|
229
229
|
branding: brandingSchema.optional(),
|
|
230
|
+
/** Absolute path to the durable event queue JSONL file. Cursor file is derived as eventQueue + '.cursor'. */
|
|
231
|
+
eventQueue: z
|
|
232
|
+
.string()
|
|
233
|
+
.min(1)
|
|
234
|
+
.refine((p) => p.startsWith('/') ||
|
|
235
|
+
/^[A-Za-z]:[\\/]/.test(p) ||
|
|
236
|
+
p.startsWith('\\\\'), { message: 'eventQueue must be an absolute path' })
|
|
237
|
+
.optional(),
|
|
238
|
+
/** Maximum number of event queue entries processed concurrently. Defaults to 3. */
|
|
239
|
+
eventQueueConcurrency: z.number().int().positive().default(3),
|
|
240
|
+
/** Public base URL (e.g. https://jeeves.johngalt.id). When set, API responses include full public URLs. */
|
|
241
|
+
publicUrl: z.url().optional(),
|
|
230
242
|
})
|
|
231
243
|
.superRefine((config, ctx) => {
|
|
232
244
|
// Google auth mode requires google config + sessionSecret
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jeeves",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@karmaniverous/jeeves": "
|
|
5
|
-
"zod": "^4.
|
|
4
|
+
"@karmaniverous/jeeves": "0.6.0-6",
|
|
5
|
+
"zod": "^4.6.5"
|
|
6
6
|
},
|
|
7
7
|
"description": "Shared cryptographic utilities and API types for jeeves-server packages.",
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@dotenvx/dotenvx": "^
|
|
10
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
9
|
+
"@dotenvx/dotenvx": "^2.30.0",
|
|
10
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
11
11
|
"@rollup/plugin-json": "^6.1.0",
|
|
12
12
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
13
13
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
14
14
|
"cross-env": "^10.1.0",
|
|
15
|
-
"release-it": "^
|
|
16
|
-
"rollup": "^4.
|
|
15
|
+
"release-it": "^21.1.0",
|
|
16
|
+
"rollup": "^4.63.5",
|
|
17
17
|
"tslib": "^2.8.1",
|
|
18
|
-
"vitest": "^
|
|
18
|
+
"vitest": "^5.0.2"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"postbuild": "npx rimraf dist/rollup.config.d.ts dist/rollup.config.d.ts.map",
|
|
81
81
|
"prebuild": "npx rimraf dist",
|
|
82
82
|
"release": "dotenvx run -f .env.local -- release-it",
|
|
83
|
-
"release:pre": "dotenvx run -f .env.local -- release-it --no-git.requireBranch --github.
|
|
83
|
+
"release:pre": "dotenvx run -f .env.local -- release-it --no-git.requireBranch --github.preRelease --preRelease",
|
|
84
84
|
"test": "vitest run --passWithNoTests",
|
|
85
85
|
"typecheck": "tsc --noEmit"
|
|
86
86
|
},
|
|
87
87
|
"type": "module",
|
|
88
88
|
"types": "dist/src/index.d.ts",
|
|
89
|
-
"version": "0.1
|
|
89
|
+
"version": "0.2.1-0"
|
|
90
90
|
}
|