@lemonppt/cli 0.1.6 → 0.1.7
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/SKILL.md +15 -15
- package/dist/index.js +5 -1
- package/package.json +5 -5
package/SKILL.md
CHANGED
|
@@ -124,25 +124,25 @@ Agent 选页时只需指定 `role`,系统会根据角色自动挑选合适版
|
|
|
124
124
|
|
|
125
125
|
| role | 用途 | 可用版式 |
|
|
126
126
|
|---|---|---|
|
|
127
|
-
| `cover` | 封面 | `cover_v1` |
|
|
127
|
+
| `cover` | 封面 | `cover_v1`, `cover_v2` |
|
|
128
128
|
| `tableOfContents` | 目录 | `table_of_contents_v1` |
|
|
129
|
-
| `metric` | 关键指标 | `metric_v1`, `metric_v2` |
|
|
130
|
-
| `stats` |
|
|
129
|
+
| `metric` | 关键指标 | `metric_v1`, `metric_v2`, `metric_v3` |
|
|
130
|
+
| `stats` | 统计 | `stats_v1`, `stats_v2` |
|
|
131
131
|
| `chart` | 数据图表 | `chart_v1`, `chart_v2` |
|
|
132
|
-
| `comparison` | 对比 | `comparison_v1`, `comparison_v2` |
|
|
133
|
-
| `pricing` | 价格方案 | `pricing_v1` |
|
|
134
|
-
| `process` | 流程步骤 | `process_v1`, `process_v2` |
|
|
135
|
-
| `timeline` | 时间线 | `timeline_v1` |
|
|
136
|
-
| `roadmap` | 路线图 | `roadmap_v1` |
|
|
137
|
-
| `quote` | 金句引用 | `quote_v1`, `quote_v2` |
|
|
138
|
-
| `testimonial` | 客户评价 | `testimonial_v1`, `testimonial_v2` |
|
|
139
|
-
| `content` | 内容页 | `content_v1`, `content_v2`, `content_v3`, `split_v1` |
|
|
132
|
+
| `comparison` | 对比 | `comparison_v1`, `comparison_v2`, `comparison_v3` |
|
|
133
|
+
| `pricing` | 价格方案 | `pricing_v1`, `pricing_v2` |
|
|
134
|
+
| `process` | 流程步骤 | `process_v1`, `process_v2`, `process_v3` |
|
|
135
|
+
| `timeline` | 时间线 | `timeline_v1`, `timeline_v2`, `timeline_v3` |
|
|
136
|
+
| `roadmap` | 路线图 | `roadmap_v1`, `roadmap_v2` |
|
|
137
|
+
| `quote` | 金句引用 | `quote_v1`, `quote_v2`, `quote_v3` |
|
|
138
|
+
| `testimonial` | 客户评价 | `testimonial_v1`, `testimonial_v2`, `testimonial_v3` |
|
|
139
|
+
| `content` | 内容页 | `content_v1`, `content_v2`, `content_v3`, `content_v4`, `split_v1` |
|
|
140
140
|
| `faq` | 问答 | `faq_v1` |
|
|
141
|
-
| `feature` | 产品特性 | `feature_v1` |
|
|
142
|
-
| `team` | 团队介绍 | `team_v1` |
|
|
141
|
+
| `feature` | 产品特性 | `feature_v1`, `feature_v2`, `feature_v3` |
|
|
142
|
+
| `team` | 团队介绍 | `team_v1`, `team_v2` |
|
|
143
143
|
| `partners` | 合作伙伴墙 | `partners_v1` |
|
|
144
|
-
| `image` |
|
|
145
|
-
| `gallery` | 图片画廊 | `gallery_v1`, `gallery_v2` |
|
|
144
|
+
| `image` | 图片 | `image_v1`, `image_v2` |
|
|
145
|
+
| `gallery` | 图片画廊 | `gallery_v1`, `gallery_v2`, `gallery_v3` |
|
|
146
146
|
| `swot` | SWOT 分析 | `swot_v1` |
|
|
147
147
|
| `pest` | PEST 分析 | `pest_v1` |
|
|
148
148
|
| `closing` | 结尾页 | `closing_v1`, `closing_v2` |
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { generateGoal } from '@lemonppt/agent-prompts';
|
|
|
5
5
|
import { normalizeDeckGoal } from '@lemonppt/core';
|
|
6
6
|
import { exportDeckToPdf, exportDeckToPptx, renderDeck, } from '@lemonppt/renderer';
|
|
7
7
|
import { getTheme } from '@lemonppt/themes';
|
|
8
|
-
import { copyFile, mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
8
|
+
import { copyFile, cp, mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
9
9
|
import path from 'node:path';
|
|
10
10
|
import { fileURLToPath } from 'node:url';
|
|
11
11
|
function resolveTheme(themeId) {
|
|
@@ -18,6 +18,10 @@ async function copyThemeAssets(themeId, assetsDir) {
|
|
|
18
18
|
const cssSource = resolvePackagePath('@lemonppt/themes', 'src', theme, 'styles.css');
|
|
19
19
|
const cssDest = path.join(assetsDir, `${theme}.css`);
|
|
20
20
|
await copyFile(cssSource, cssDest);
|
|
21
|
+
// 复制字体资源,使 @font-face 引用在输出目录中可用
|
|
22
|
+
const fontsSource = resolvePackagePath('@lemonppt/renderer', 'assets', 'fonts');
|
|
23
|
+
const fontsDest = path.join(assetsDir, 'fonts');
|
|
24
|
+
await cp(fontsSource, fontsDest, { recursive: true, force: true });
|
|
21
25
|
}
|
|
22
26
|
function resolvePackagePath(pkg, ...segments) {
|
|
23
27
|
const mainUrl = import.meta.resolve(pkg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemonppt/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/lemonforme/lemonPPT#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lemonppt/agent-prompts": "0.1.
|
|
34
|
-
"@lemonppt/
|
|
35
|
-
"@lemonppt/
|
|
36
|
-
"@lemonppt/
|
|
33
|
+
"@lemonppt/agent-prompts": "0.1.7",
|
|
34
|
+
"@lemonppt/themes": "0.1.7",
|
|
35
|
+
"@lemonppt/core": "0.1.7",
|
|
36
|
+
"@lemonppt/renderer": "0.1.7"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.0.0",
|