@paroicms/site-generator-plugin 0.28.0 → 0.28.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Anthropic from "@anthropic-ai/sdk";
|
|
2
2
|
import { Mistral } from "@mistralai/mistralai";
|
|
3
|
-
import {
|
|
3
|
+
import { readOrCreateSecretSync } from "@paroicms/internal-server-lib";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
export function createRawContext(service, options) {
|
|
6
6
|
const { cn, logNextQuery, pluginConf, debugDir } = options;
|
|
@@ -12,7 +12,7 @@ export function createRawContext(service, options) {
|
|
|
12
12
|
return {
|
|
13
13
|
cn,
|
|
14
14
|
logNextQuery,
|
|
15
|
-
jwtSecret:
|
|
15
|
+
jwtSecret: readOrCreateSecretSync(join(service.registeredSite.dataDir, "site-generator-secret.txt")),
|
|
16
16
|
pluginConf,
|
|
17
17
|
debugDir,
|
|
18
18
|
sitesDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/site-generator-plugin",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.2",
|
|
4
4
|
"description": "ParoiCMS Site Generator Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@anthropic-ai/sdk": "~0.70.1",
|
|
32
32
|
"@mistralai/mistralai": "~1.10.0",
|
|
33
|
-
"@paroicms/script-lib": "0.3.
|
|
33
|
+
"@paroicms/script-lib": "0.3.11",
|
|
34
34
|
"arktype": "~2.1.27",
|
|
35
35
|
"jsonwebtoken": "~9.0.2",
|
|
36
36
|
"knex": "~3.1.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@paroicms/public-server-lib": "0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@paroicms/internal-anywhere-lib": "1.
|
|
47
|
-
"@paroicms/internal-server-lib": "1.
|
|
48
|
-
"@paroicms/public-server-lib": "0.49.
|
|
46
|
+
"@paroicms/internal-anywhere-lib": "1.36.1",
|
|
47
|
+
"@paroicms/internal-server-lib": "1.23.1",
|
|
48
|
+
"@paroicms/public-server-lib": "0.49.2",
|
|
49
49
|
"@types/node": "~24.10.1",
|
|
50
50
|
"marked": "~17.0.1",
|
|
51
51
|
"nodemon": "~3.1.11",
|