parse-dashboard 7.3.0-alpha.42 → 7.3.0-alpha.44
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.
|
@@ -39,6 +39,7 @@ module.exports = (options) => {
|
|
|
39
39
|
const configUserPassword = options.userPassword || process.env.PARSE_DASHBOARD_USER_PASSWORD;
|
|
40
40
|
const configSSLKey = options.sslKey || process.env.PARSE_DASHBOARD_SSL_KEY;
|
|
41
41
|
const configSSLCert = options.sslCert || process.env.PARSE_DASHBOARD_SSL_CERT;
|
|
42
|
+
const configAgent = options.agent || process.env.PARSE_DASHBOARD_AGENT;
|
|
42
43
|
|
|
43
44
|
function handleSIGs(server) {
|
|
44
45
|
const signals = {
|
|
@@ -83,6 +84,21 @@ module.exports = (options) => {
|
|
|
83
84
|
}
|
|
84
85
|
];
|
|
85
86
|
}
|
|
87
|
+
// Add agent configuration from environment variables
|
|
88
|
+
if (configAgent) {
|
|
89
|
+
// If it's already an object (from JS config), use it directly
|
|
90
|
+
if (typeof configAgent === 'object') {
|
|
91
|
+
configFromCLI.data.agent = configAgent;
|
|
92
|
+
} else {
|
|
93
|
+
// Otherwise, try to parse it as JSON
|
|
94
|
+
try {
|
|
95
|
+
configFromCLI.data.agent = JSON.parse(configAgent);
|
|
96
|
+
} catch (error) {
|
|
97
|
+
console.error('Failed to parse PARSE_DASHBOARD_AGENT:', error.message);
|
|
98
|
+
process.exit(1);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
86
102
|
} else if (!configServerURL && !configMasterKey && !configAppName) {
|
|
87
103
|
configFile = path.join(__dirname, 'parse-dashboard-config.json');
|
|
88
104
|
}
|
package/README.md
CHANGED
|
@@ -213,6 +213,7 @@ PARSE_DASHBOARD_SSL_KEY: "sslKey"
|
|
|
213
213
|
PARSE_DASHBOARD_SSL_CERT: "sslCert"
|
|
214
214
|
PARSE_DASHBOARD_CONFIG: undefined // Only for reference, it must not exist
|
|
215
215
|
PARSE_DASHBOARD_COOKIE_SESSION_SECRET: undefined // set the cookie session secret, defaults to a random string. Use this option if you want sessions to work across multiple servers, or across restarts
|
|
216
|
+
PARSE_DASHBOARD_AGENT: undefined // JSON string containing the full agent configuration with models array
|
|
216
217
|
|
|
217
218
|
```
|
|
218
219
|
|
|
@@ -525,8 +526,8 @@ Parse.Cloud.define('deleteAccount', async (req) => {
|
|
|
525
526
|
|
|
526
527
|
Parse Dashboard can cache its resources such as bundles in the browser, so that opening the dashboard in another tab does not reload the dashboard resources from the server but from the local browser cache. Caching only starts after login in the dashboard.
|
|
527
528
|
|
|
528
|
-
| Parameter | Type | Optional | Default | Example | Description
|
|
529
|
-
|
|
529
|
+
| Parameter | Type | Optional | Default | Example | Description |
|
|
530
|
+
|-----------------------|---------|----------|---------|---------|----------------------------------------------------------------------------------------------------------------|
|
|
530
531
|
| `enableResourceCache` | Boolean | yes | `false` | `true` | Enables caching of dashboard resources in the browser for faster dashboard loading in additional browser tabs. |
|
|
531
532
|
|
|
532
533
|
|
|
@@ -1294,14 +1295,14 @@ To configure the AI agent for your dashboard, you need to add the `agent` config
|
|
|
1294
1295
|
}
|
|
1295
1296
|
```
|
|
1296
1297
|
|
|
1297
|
-
| Parameter
|
|
1298
|
-
|
|
1299
|
-
| `agent`
|
|
1300
|
-
| `agent.models`
|
|
1301
|
-
| `agent.models[*].name`
|
|
1302
|
-
| `agent.models[*].provider`
|
|
1303
|
-
| `agent.models[*].model`
|
|
1304
|
-
| `agent.models[*].apiKey`
|
|
1298
|
+
| Parameter | Type | Required | Description |
|
|
1299
|
+
|----------------------------|--------|----------|-------------------------------------------------------------------------------------------------------------------------------------|
|
|
1300
|
+
| `agent` | Object | Yes | The AI agent configuration object. When using the environment variable, provide the complete agent configuration as a JSON string. |
|
|
1301
|
+
| `agent.models` | Array | Yes | Array of AI model configurations available to the agent. |
|
|
1302
|
+
| `agent.models[*].name` | String | Yes | The display name for the model (e.g., `ChatGPT 4.1`). |
|
|
1303
|
+
| `agent.models[*].provider` | String | Yes | The AI provider identifier (e.g., "openai"). |
|
|
1304
|
+
| `agent.models[*].model` | String | Yes | The specific model name from the provider (e.g., `gpt-4.1`). |
|
|
1305
|
+
| `agent.models[*].apiKey` | String | Yes | The API key for authenticating with the AI provider. |
|
|
1305
1306
|
|
|
1306
1307
|
The agent will use the configured models to process natural language commands and perform database operations using the master key from your app configuration.
|
|
1307
1308
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parse-dashboard",
|
|
3
|
-
"version": "7.3.0-alpha.
|
|
3
|
+
"version": "7.3.0-alpha.44",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/parse-community/parse-dashboard"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"http-server": "14.1.1",
|
|
103
103
|
"husky": "9.1.7",
|
|
104
104
|
"jest": "30.0.4",
|
|
105
|
-
"jest-environment-jsdom": "30.0.
|
|
105
|
+
"jest-environment-jsdom": "30.0.5",
|
|
106
106
|
"madge": "8.0.0",
|
|
107
107
|
"marked": "15.0.12",
|
|
108
108
|
"null-loader": "4.0.1",
|