@nocobase/cli 2.1.0-rc.1 → 2.1.0-rc.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.
- package/dist/lib/api-client.js +335 -0
- package/dist/lib/api-command-compat.js +641 -0
- package/dist/lib/app-health.js +139 -0
- package/dist/lib/app-managed-resources.js +337 -0
- package/dist/lib/app-public-path.js +80 -0
- package/dist/lib/app-runtime.js +189 -0
- package/dist/lib/auth-store.js +528 -0
- package/dist/lib/backup.js +171 -0
- package/dist/lib/bootstrap.js +409 -0
- package/dist/lib/build-config.js +18 -0
- package/dist/lib/builtin-db.js +86 -0
- package/dist/lib/cli-config.js +569 -0
- package/dist/lib/cli-entry-error.js +52 -0
- package/dist/lib/cli-home.js +47 -0
- package/dist/lib/cli-locale.js +141 -0
- package/dist/lib/command-discovery.js +39 -0
- package/dist/lib/command-log.js +284 -0
- package/dist/lib/db-connection-check.js +219 -0
- package/dist/lib/docker-env-file.js +60 -0
- package/dist/lib/docker-image.js +37 -0
- package/dist/lib/docker-log-stream.js +45 -0
- package/dist/lib/env-auth.js +963 -0
- package/dist/lib/env-command-config.js +45 -0
- package/dist/lib/env-config.js +108 -0
- package/dist/lib/env-guard.js +61 -0
- package/dist/lib/env-paths.js +101 -0
- package/dist/lib/env-proxy.js +1325 -0
- package/dist/lib/generated-command.js +203 -0
- package/dist/lib/http-request.js +49 -0
- package/dist/lib/inquirer-theme.js +17 -0
- package/dist/lib/inquirer.js +243 -0
- package/dist/lib/managed-env-file.js +101 -0
- package/dist/lib/managed-init-env.js +32 -0
- package/dist/lib/naming.js +70 -0
- package/dist/lib/object-utils.js +76 -0
- package/dist/lib/openapi.js +62 -0
- package/dist/lib/plugin-import.js +279 -0
- package/dist/lib/plugin-storage.js +64 -0
- package/dist/lib/post-processors.js +23 -0
- package/dist/lib/prompt-catalog-core.js +186 -0
- package/dist/lib/prompt-catalog-terminal.js +374 -0
- package/dist/lib/prompt-catalog.js +10 -0
- package/dist/lib/prompt-validators.js +278 -0
- package/dist/lib/prompt-web-ui.js +2234 -0
- package/dist/lib/proxy-caddy.js +274 -0
- package/dist/lib/proxy-nginx.js +330 -0
- package/dist/lib/resource-command.js +357 -0
- package/dist/lib/resource-request.js +104 -0
- package/dist/lib/run-npm.js +429 -0
- package/dist/lib/runtime-env-vars.js +32 -0
- package/dist/lib/runtime-generator.js +498 -0
- package/dist/lib/runtime-store.js +56 -0
- package/dist/lib/self-manager.js +301 -0
- package/dist/lib/session-id.js +17 -0
- package/dist/lib/session-integration.js +703 -0
- package/dist/lib/session-store.js +118 -0
- package/dist/lib/skills-manager.js +438 -0
- package/dist/lib/source-publish.js +326 -0
- package/dist/lib/source-registry.js +188 -0
- package/dist/lib/startup-update.js +309 -0
- package/dist/lib/ui.js +159 -0
- package/package.json +6 -1
- package/assets/env-proxy/nginx/app.conf.tpl +0 -23
- package/assets/env-proxy/nginx/nocobase.conf.tpl +0 -5
- package/assets/env-proxy/nginx/snippets/dist-location.conf +0 -5
- package/assets/env-proxy/nginx/snippets/gzip.conf +0 -17
- package/assets/env-proxy/nginx/snippets/log-format-http.conf +0 -13
- package/assets/env-proxy/nginx/snippets/maps-http.conf +0 -14
- package/assets/env-proxy/nginx/snippets/mime-types.conf +0 -98
- package/assets/env-proxy/nginx/snippets/proxy-location.conf +0 -17
- package/assets/env-proxy/nginx/snippets/spa-location.conf +0 -6
- package/assets/env-proxy/nginx/snippets/uploads-location.conf +0 -21
- package/scripts/build.mjs +0 -34
- package/scripts/clean.mjs +0 -9
- package/tsconfig.json +0 -19
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
add_header Cache-Control "public" always;
|
|
2
|
-
add_header X-Content-Type-Options "nosniff" always;
|
|
3
|
-
|
|
4
|
-
access_log off;
|
|
5
|
-
autoindex off;
|
|
6
|
-
|
|
7
|
-
# Force potentially renderable uploaded files to download.
|
|
8
|
-
location ~* \.(?:htm|html|svg|svgz|xhtml)$ {
|
|
9
|
-
add_header Cache-Control "public" always;
|
|
10
|
-
add_header X-Content-Type-Options "nosniff" always;
|
|
11
|
-
add_header Content-Disposition "attachment" always;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
# Let Markdown files render as plain Markdown text.
|
|
15
|
-
location ~* \.md$ {
|
|
16
|
-
default_type text/markdown;
|
|
17
|
-
|
|
18
|
-
add_header Cache-Control "public" always;
|
|
19
|
-
add_header X-Content-Type-Options "nosniff" always;
|
|
20
|
-
add_header Content-Disposition "inline" always;
|
|
21
|
-
}
|
package/scripts/build.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { copyFileSync, mkdirSync, readdirSync, rmSync } from 'node:fs';
|
|
2
|
-
import { createRequire } from 'node:module';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { spawnSync } from 'node:child_process';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
8
|
-
const scriptsDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const packageRoot = path.resolve(scriptsDir, '..');
|
|
10
|
-
const distDir = path.join(packageRoot, 'dist');
|
|
11
|
-
const srcLocaleDir = path.join(packageRoot, 'src', 'locale');
|
|
12
|
-
const distLocaleDir = path.join(distDir, 'locale');
|
|
13
|
-
const tscBin = require.resolve('typescript/bin/tsc');
|
|
14
|
-
|
|
15
|
-
rmSync(distDir, { recursive: true, force: true });
|
|
16
|
-
|
|
17
|
-
const compile = spawnSync(process.execPath, [tscBin, '-p', path.join(packageRoot, 'tsconfig.json')], {
|
|
18
|
-
cwd: packageRoot,
|
|
19
|
-
stdio: 'inherit',
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
if (compile.status !== 0) {
|
|
23
|
-
process.exit(compile.status ?? 1);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
mkdirSync(distLocaleDir, { recursive: true });
|
|
27
|
-
|
|
28
|
-
for (const entry of readdirSync(srcLocaleDir, { withFileTypes: true })) {
|
|
29
|
-
if (!entry.isFile() || !entry.name.endsWith('.json')) {
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
copyFileSync(path.join(srcLocaleDir, entry.name), path.join(distLocaleDir, entry.name));
|
|
34
|
-
}
|
package/scripts/clean.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { rmSync } from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
|
|
5
|
-
const scriptsDir = path.dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
const packageRoot = path.resolve(scriptsDir, '..');
|
|
7
|
-
const distDir = path.join(packageRoot, 'dist');
|
|
8
|
-
|
|
9
|
-
rmSync(distDir, { recursive: true, force: true });
|
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"moduleResolution": "NodeNext",
|
|
6
|
-
"rewriteRelativeImportExtensions": true,
|
|
7
|
-
"rootDir": "src",
|
|
8
|
-
"outDir": "dist",
|
|
9
|
-
"declaration": false,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"types": ["node"],
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"strict": false
|
|
16
|
-
},
|
|
17
|
-
"include": ["src/**/*.ts"],
|
|
18
|
-
"exclude": ["src/**/__tests__/**"]
|
|
19
|
-
}
|