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

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.251118173511",
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.826Z |
@@ -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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
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:35:11.934Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |