@guru-ai-product/ai-product-kit 0.2.251118173511 → 0.2.251118174440

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/bin/setup.js CHANGED
@@ -281,9 +281,15 @@ function mergeAgentsContent(existingContent, newTemplate) {
281
281
  return parts.join('\n\n').trim() + '\n';
282
282
  }
283
283
 
284
+ function findProjectOverviewIndex(text) {
285
+ const h2Index = text.indexOf('## Project Overview');
286
+ if (h2Index !== -1) return h2Index;
287
+ return text.indexOf('# Project Overview');
288
+ }
289
+
284
290
  function parseTemplate(template) {
285
291
  const parts = {};
286
- const projectOverviewIndex = template.indexOf('# Project Overview');
292
+ const projectOverviewIndex = findProjectOverviewIndex(template);
287
293
  const conventionsIndex = template.indexOf('## Conventions');
288
294
  const skillsBundleAccessIndex = template.indexOf('## Skills Bundle Access');
289
295
  let skillsSystemIndex = template.indexOf('<skills_system priority');
@@ -335,7 +341,7 @@ function parseTemplate(template) {
335
341
  function parseExistingContent(content) {
336
342
  const parts = {};
337
343
 
338
- const projectOverviewStart = content.search(/# Project Overview/);
344
+ const projectOverviewStart = content.search(/##? Project Overview/);
339
345
  if (projectOverviewStart === -1) {
340
346
  const beforeConventions = content.split(/## Conventions|<skills_system/)[0].trim();
341
347
  if (beforeConventions) {
@@ -348,9 +354,11 @@ function parseExistingContent(content) {
348
354
  parts.beforeProjectOverview = content.substring(0, projectOverviewStart).trim();
349
355
  }
350
356
 
351
- const projectOverviewMatch = content.substring(projectOverviewStart).match(/# Project Overview\s*\n([\s\S]*?)(?=\n## Conventions|<skills_system|$)/);
357
+ const projectOverviewMatch = content
358
+ .substring(projectOverviewStart)
359
+ .match(/((?:##|#) Project Overview\s*\n[\s\S]*?)(?=\n## Conventions|<skills_system|$)/);
352
360
  if (projectOverviewMatch) {
353
- parts.projectOverview = `# Project Overview\n${projectOverviewMatch[1].trim()}`;
361
+ parts.projectOverview = projectOverviewMatch[1].trim();
354
362
  }
355
363
 
356
364
  const ruleCommentMatch = content.match(/<!-- rule:[\s\S]*?-->/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guru-ai-product/ai-product-kit",
3
- "version": "0.2.251118173511",
3
+ "version": "0.2.251118174440",
4
4
  "description": "Sync the AI Product Kit Skill bundle through npx without cloning the repository.",
5
5
  "bin": {
6
6
  "ai-product-kit": "bin/setup.js",
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,10 +1,10 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
7
7
  | `scripts/check_agents.sh` | 2025-11-13T09:03:47.000Z |
8
8
  | `skill.ini` | 2025-11-13T09:47:02.000Z |
9
9
  | `SKILL.md` | 2025-11-17T13:24:45.000Z |
10
- | `template/AGENTS_TEMPLATE.md` | 2025-11-18T09:35:11.826Z |
10
+ | `template/AGENTS_TEMPLATE.md` | 2025-11-18T09:44:40.639Z |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,10 +1,10 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
7
- | `SKILL.md` | 2025-11-17T13:24:35.000Z |
7
+ | `SKILL.md` | 2025-11-18T09:41:53.000Z |
8
8
  | `template/1_产品定位与分析.md` | 2025-11-17T06:49:33.000Z |
9
9
  | `template/2_功能需求.md` | 2025-11-17T06:49:38.000Z |
10
10
  | `template/3_商业化策略.md` | 2025-11-17T06:43:53.000Z |
@@ -696,6 +696,8 @@ graph TD
696
696
  - **备选方案**:如果项目中没有 `docs` 文件夹,则在项目根目录下创建 `requirements` 文件夹
697
697
  - 在 `requirements` 文件夹下创建版本文件夹(默认为 `v1.0.0`)
698
698
  - 将所有需求文档文件放置在对应的版本文件夹下
699
+ - **Draft 输出要求**:所有草稿类文档(如 `Draft_产品需求草稿.md`、`Draft_用户旅程草稿.md`)必须存放在对应版本文件夹内的 `draft/` 子文件夹中,例如 `skills/aipk_requirements-documentation/v1.0.0/draft/`
700
+ - **版本命名规范**:版本文件夹必须使用 `vX.X.X` 的语义化格式(`X` 为数字,例如 `v0.0.0`、`v1.2.0`),禁止出现 `v1` 或 `version1` 等非标准命名,方便后续自动化脚本识别
699
701
 
700
702
  **文件夹结构初始化流程**:
701
703
 
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:35:11.934Z
3
+ Last refreshed: 2025-11-18T09:44:40.735Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |