@coze-arch/cli 0.0.19-alpha.502ddf → 0.0.19-alpha.ad1979
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/lib/__templates__/expo/.coze +0 -1
- package/lib/__templates__/expo/package.json +1 -2
- package/lib/__templates__/nextjs/.coze +0 -1
- package/lib/__templates__/nextjs/package.json +1 -3
- package/lib/__templates__/nuxt-vue/.coze +0 -1
- package/lib/__templates__/nuxt-vue/app/pages/index.vue +0 -6
- package/lib/__templates__/nuxt-vue/nuxt.config.ts +2 -2
- package/lib/__templates__/nuxt-vue/package.json +2 -9
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +10 -790
- package/lib/__templates__/pi-agent/AGENTS.md +2 -7
- package/lib/__templates__/pi-agent/README.md +0 -2
- package/lib/__templates__/pi-agent/docs/project-overview.md +15 -9
- package/lib/__templates__/pi-agent/docs/user/getting-started.md +4 -3
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-asr/SKILL.md +10 -4
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-asr/scripts/asr.mjs +9 -0
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-image-gen/SKILL.md +18 -6
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-image-gen/scripts/gen.mjs +9 -0
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-tts/SKILL.md +37 -9
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-tts/scripts/tts.mjs +9 -0
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-video-gen/SKILL.md +30 -17
- package/lib/__templates__/pi-agent/pi-resources/skills/coze-video-gen/scripts/gen.mjs +9 -0
- package/lib/__templates__/pi-agent/src/config.ts +19 -60
- package/lib/__templates__/pi-agent/src/core.ts +0 -1
- package/lib/__templates__/pi-agent/src/dashboard/api/docs.ts +204 -0
- package/lib/__templates__/pi-agent/src/dashboard/index.ts +4 -39
- package/lib/__templates__/pi-agent/src/dashboard/server.ts +12 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/components/app-layout.tsx +15 -1
- package/lib/__templates__/pi-agent/src/dashboard/web/src/main.tsx +6 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/pages/channels-page.tsx +188 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/pages/chat-page.tsx +11 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/pages/docs-page.tsx +65 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/pages/models-page.tsx +122 -0
- package/lib/__templates__/pi-agent/src/dashboard/web/src/pages/overview-page.tsx +72 -268
- package/lib/__templates__/pi-agent/src/dashboard/web/src/styles.css +91 -0
- package/lib/__templates__/pi-agent/tests/config.test.ts +1 -63
- package/lib/__templates__/pi-agent/tests/dashboard-docs-api.test.ts +125 -0
- package/lib/__templates__/taro/.coze +0 -1
- package/lib/__templates__/taro/package.json +1 -1
- package/lib/__templates__/vite/.coze +0 -1
- package/lib/__templates__/vite/package.json +1 -3
- package/lib/cli.js +814 -100
- package/package.json +1 -1
- package/lib/__templates__/expo/.cozeproj/scripts/validate.sh +0 -8
- package/lib/__templates__/nextjs/scripts/validate.sh +0 -10
- package/lib/__templates__/nuxt-vue/eslint.config.mjs +0 -25
- package/lib/__templates__/nuxt-vue/scripts/validate.sh +0 -10
- package/lib/__templates__/taro/.cozeproj/scripts/validate.sh +0 -8
- package/lib/__templates__/vite/scripts/validate.sh +0 -10
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"preinstall": "npx only-allow pnpm",
|
|
10
10
|
"lint:client": "npm run lint --prefix ./client",
|
|
11
11
|
"lint:server": "npm run lint --prefix ./server",
|
|
12
|
-
"lint:all": "npm run lint --prefix ./client; npm run lint --prefix ./server"
|
|
13
|
-
"validate": "pnpm run --parallel '/^(lint:client|lint:server)$/'"
|
|
12
|
+
"lint:all": "npm run lint --prefix ./client; npm run lint --prefix ./server"
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {},
|
|
16
15
|
"devDependencies": {},
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
"dev": "bash ./scripts/dev.sh",
|
|
8
8
|
"preinstall": "npx only-allow pnpm",
|
|
9
9
|
"lint": "eslint",
|
|
10
|
-
"lint:build": "eslint . --quiet",
|
|
11
10
|
"start": "bash ./scripts/start.sh",
|
|
12
|
-
"ts-check": "tsc -p tsconfig.json"
|
|
13
|
-
"validate": "pnpm run --parallel '/^(ts-check|lint:build)$/'"
|
|
11
|
+
"ts-check": "tsc -p tsconfig.json"
|
|
14
12
|
},
|
|
15
13
|
"dependencies": {
|
|
16
14
|
"@aws-sdk/client-s3": "^3.958.0",
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
// 显式声明多词组件名,否则 index.vue 会命中 vue/multi-word-component-names,导致 lint 报错。
|
|
3
|
-
defineOptions({
|
|
4
|
-
name: 'LandingPage',
|
|
5
|
-
});
|
|
6
|
-
</script>
|
|
7
1
|
<template>
|
|
8
2
|
<div class="flex min-h-screen items-center justify-center">
|
|
9
3
|
<main class="flex w-full max-w-3xl flex-col items-center justify-center px-16 py-32">
|
|
@@ -9,8 +9,7 @@ export default defineNuxtConfig({
|
|
|
9
9
|
compatibilityDate: '2025-07-15',
|
|
10
10
|
// Disable devtools in CI/test environments (prevents hanging in headless mode)
|
|
11
11
|
devtools: {
|
|
12
|
-
enabled:
|
|
13
|
-
process.env.CI !== 'true' && process.env.COZE_PROJECT_ENV !== 'PROD',
|
|
12
|
+
enabled: process.env.CI !== 'true' && process.env.COZE_PROJECT_ENV !== 'PROD',
|
|
14
13
|
},
|
|
15
14
|
telemetry: false,
|
|
16
15
|
|
|
@@ -80,6 +79,7 @@ export default defineNuxtConfig({
|
|
|
80
79
|
// Vite configuration (similar to Next.js allowedDevOrigins)
|
|
81
80
|
vite: {
|
|
82
81
|
server: {
|
|
82
|
+
host: '0.0.0.0',
|
|
83
83
|
cors: {
|
|
84
84
|
origin: ['*.dev.coze.site'],
|
|
85
85
|
credentials: true,
|
|
@@ -8,12 +8,8 @@
|
|
|
8
8
|
"dev": "bash ./scripts/dev.sh",
|
|
9
9
|
"generate": "nuxt generate",
|
|
10
10
|
"preinstall": "npx only-allow pnpm",
|
|
11
|
-
"lint": "eslint .",
|
|
12
|
-
"lint:build": "eslint . --quiet",
|
|
13
11
|
"preview": "nuxt preview",
|
|
14
|
-
"start": "bash ./scripts/start.sh"
|
|
15
|
-
"ts-check": "nuxi typecheck",
|
|
16
|
-
"validate": "pnpm run --parallel '/^(ts-check|lint:build)$/'"
|
|
12
|
+
"start": "bash ./scripts/start.sh"
|
|
17
13
|
},
|
|
18
14
|
"dependencies": {
|
|
19
15
|
"@nuxt/image": "^1.8.1",
|
|
@@ -27,13 +23,10 @@
|
|
|
27
23
|
"@types/node": "^20",
|
|
28
24
|
"autoprefixer": "^10.4.20",
|
|
29
25
|
"coze-coding-dev-sdk": "^0.7.16",
|
|
30
|
-
"eslint": "^9",
|
|
31
|
-
"eslint-plugin-vue": "^10",
|
|
32
26
|
"only-allow": "^1.2.2",
|
|
33
27
|
"postcss": "^8.4.49",
|
|
34
28
|
"tailwindcss": "^3.4.17",
|
|
35
|
-
"typescript": "^5"
|
|
36
|
-
"typescript-eslint": "^8"
|
|
29
|
+
"typescript": "^5"
|
|
37
30
|
},
|
|
38
31
|
"packageManager": "pnpm@9.0.0",
|
|
39
32
|
"engines": {
|