@guru-ai-product/ai-product-kit 0.2.251118170658 → 0.2.251118174220

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
@@ -283,54 +283,43 @@ function mergeAgentsContent(existingContent, newTemplate) {
283
283
 
284
284
  function parseTemplate(template) {
285
285
  const parts = {};
286
-
287
286
  const projectOverviewIndex = template.indexOf('# Project Overview');
287
+ const conventionsIndex = template.indexOf('## Conventions');
288
+ const skillsBundleAccessIndex = template.indexOf('## Skills Bundle Access');
289
+ let skillsSystemIndex = template.indexOf('<skills_system priority');
290
+ if (skillsSystemIndex === -1) {
291
+ skillsSystemIndex = template.indexOf('<skills_system');
292
+ }
293
+
288
294
  if (projectOverviewIndex !== -1) {
289
- const afterProjectOverview = template.substring(projectOverviewIndex);
290
- const conventionsIndex = afterProjectOverview.indexOf('\n## Conventions');
291
- if (conventionsIndex !== -1) {
292
- parts.projectOverview = afterProjectOverview.substring(0, conventionsIndex).trim();
293
- } else {
294
- const skillsSystemTagMatch = afterProjectOverview.match(/<skills_system[\s>]/);
295
- if (skillsSystemTagMatch) {
296
- const skillsSystemTagIndex = afterProjectOverview.indexOf(skillsSystemTagMatch[0]);
297
- parts.projectOverview = afterProjectOverview.substring(0, skillsSystemTagIndex).trim();
298
- } else {
299
- parts.projectOverview = afterProjectOverview.trim();
300
- }
301
- }
295
+ const projectEnd =
296
+ conventionsIndex !== -1
297
+ ? conventionsIndex
298
+ : skillsSystemIndex !== -1
299
+ ? skillsSystemIndex
300
+ : template.length;
301
+ parts.projectOverview = template.substring(projectOverviewIndex, projectEnd).trim();
302
302
  }
303
303
 
304
- const conventionsIndex = template.indexOf('## Conventions');
305
304
  if (conventionsIndex !== -1) {
306
- const afterConventions = template.substring(conventionsIndex);
307
- const skillsBundleAccessIndex = afterConventions.indexOf('\n## Skills Bundle Access');
308
- if (skillsBundleAccessIndex !== -1) {
309
- parts.conventions = afterConventions.substring(0, skillsBundleAccessIndex).trim();
310
- } else {
311
- const skillsSystemTagMatch = afterConventions.match(/<skills_system[\s>]/);
312
- if (skillsSystemTagMatch) {
313
- const skillsSystemTagIndex = afterConventions.indexOf(skillsSystemTagMatch[0]);
314
- parts.conventions = afterConventions.substring(0, skillsSystemTagIndex).trim();
315
- } else {
316
- parts.conventions = afterConventions.trim();
317
- }
318
- }
305
+ const conventionsEnd =
306
+ skillsBundleAccessIndex !== -1
307
+ ? skillsBundleAccessIndex
308
+ : skillsSystemIndex !== -1
309
+ ? skillsSystemIndex
310
+ : template.length;
311
+ parts.conventions = template.substring(conventionsIndex, conventionsEnd).trim();
319
312
  }
320
313
 
321
- const skillsBundleAccessIndex = template.indexOf('## Skills Bundle Access');
322
314
  if (skillsBundleAccessIndex !== -1) {
323
- const afterSkillsBundleAccess = template.substring(skillsBundleAccessIndex);
324
- const skillsSystemTagMatch = afterSkillsBundleAccess.match(/<skills_system[\s>]/);
325
- if (skillsSystemTagMatch) {
326
- const skillsSystemTagIndex = afterSkillsBundleAccess.indexOf(skillsSystemTagMatch[0]);
327
- parts.skillsBundleAccess = afterSkillsBundleAccess.substring(0, skillsSystemTagIndex).trim();
328
- } else {
329
- parts.skillsBundleAccess = afterSkillsBundleAccess.trim();
315
+ let bundleEnd = skillsSystemIndex !== -1 ? skillsSystemIndex : template.length;
316
+ if (bundleEnd <= skillsBundleAccessIndex) {
317
+ bundleEnd = template.length;
330
318
  }
319
+ parts.skillsBundleAccess = template.substring(skillsBundleAccessIndex, bundleEnd).trim();
331
320
  }
332
321
 
333
- const skillsSystemMatch = template.match(/<skills_system[\s\S]*?<\/skills_system>/);
322
+ const skillsSystemMatch = template.match(/<skills_system[^>]*priority[\s\S]*?<\/skills_system>/);
334
323
  if (skillsSystemMatch) {
335
324
  parts.skillsSystem = skillsSystemMatch[0];
336
325
  }
@@ -1,6 +1,6 @@
1
1
  <!-- Shared base for AGENTS templates (do not edit sections added by automation) -->
2
2
 
3
- # Project Overview
3
+ ## Project Overview
4
4
 
5
5
  Write a concise overview of your project here. Keep it brief and scannable.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guru-ai-product/ai-product-kit",
3
- "version": "0.2.251118170658",
3
+ "version": "0.2.251118174220",
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.434Z |
10
+ | `template/AGENTS_TEMPLATE.md` | 2025-11-18T09:42:20.387Z |
@@ -1,6 +1,6 @@
1
1
  <!-- Shared base for AGENTS templates (do not edit sections added by automation) -->
2
2
 
3
- # Project Overview
3
+ ## Project Overview
4
4
 
5
5
  Write a concise overview of your project here. Keep it brief and scannable.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-18T09:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
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:06:58.518Z
3
+ Last refreshed: 2025-11-18T09:42:20.501Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |