40 lines
1014 B
JavaScript
40 lines
1014 B
JavaScript
import { readFileSync } from 'node:fs';
|
|
import { join, resolve } from 'node:path';
|
|
import { dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const rootDir = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
const pkg = JSON.parse(readFileSync(join(rootDir, 'package.json'), 'utf8'));
|
|
|
|
console.log(JSON.stringify({
|
|
project: '智念AIGC平台',
|
|
appId: 'zhinian-web-studio',
|
|
packageName: pkg.name,
|
|
version: pkg.version,
|
|
runtime: 'Next.js Web',
|
|
webOnly: true,
|
|
primaryRoutes: [
|
|
'/',
|
|
'/create',
|
|
'/assets',
|
|
'/image-edit',
|
|
'/settings'
|
|
],
|
|
imageCapabilities: [
|
|
'image.generate',
|
|
'image.inpaint',
|
|
'image.upscale'
|
|
],
|
|
videoCapabilities: [
|
|
'video.generate'
|
|
],
|
|
promptFlow: [
|
|
'unified image/video create studio',
|
|
'single prompt box',
|
|
'single compact upload entry',
|
|
'@图片/@视频/@音频 references',
|
|
'material thumbnails in chips and @ suggestions',
|
|
'shared prompt assembly for image and video'
|
|
]
|
|
}, null, 2));
|