@guru-ai-product/ai-product-kit 0.2.251117191453 → 0.2.251117192248

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
@@ -284,19 +284,50 @@ function mergeAgentsContent(existingContent, newTemplate) {
284
284
  function parseTemplate(template) {
285
285
  const parts = {};
286
286
 
287
- const projectOverviewMatch = template.match(/# Project Overview\s*\n([\s\S]*?)(?=\n## Conventions|<skills_system|$)/);
288
- if (projectOverviewMatch) {
289
- parts.projectOverview = `# Project Overview\n${projectOverviewMatch[1].trim()}`;
287
+ const projectOverviewIndex = template.indexOf('# Project Overview');
288
+ 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
+ }
290
302
  }
291
303
 
292
- const conventionsMatch = template.match(/## Conventions\s*\n([\s\S]*?)(?=\n## Skills Bundle Access|<skills_system|$)/);
293
- if (conventionsMatch) {
294
- parts.conventions = `## Conventions\n${conventionsMatch[1].trim()}`;
304
+ const conventionsIndex = template.indexOf('## Conventions');
305
+ 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
+ }
295
319
  }
296
320
 
297
- const skillsBundleAccessMatch = template.match(/## Skills Bundle Access\s*\n([\s\S]*?)(?=<skills_system|$)/);
298
- if (skillsBundleAccessMatch) {
299
- parts.skillsBundleAccess = `## Skills Bundle Access\n${skillsBundleAccessMatch[1].trim()}`;
321
+ const skillsBundleAccessIndex = template.indexOf('## Skills Bundle Access');
322
+ 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();
330
+ }
300
331
  }
301
332
 
302
333
  const skillsSystemMatch = template.match(/<skills_system[\s\S]*?<\/skills_system>/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guru-ai-product/ai-product-kit",
3
- "version": "0.2.251117191453",
3
+ "version": "0.2.251117192248",
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |
7
7
  | `scripts/check_agents.sh` | 2025-11-13T09:03:47.702Z |
8
8
  | `skill.ini` | 2025-11-13T09:47:02.793Z |
9
9
  | `SKILL.md` | 2025-11-13T10:06:33.764Z |
10
- | `template/AGENTS_TEMPLATE.md` | 2025-11-17T11:14:53.842Z |
10
+ | `template/AGENTS_TEMPLATE.md` | 2025-11-17T11:22:48.804Z |
@@ -1,6 +1,6 @@
1
1
  # GURU AI Snapshot
2
2
 
3
- Last refreshed: 2025-11-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
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-17T11:14:53.954Z
3
+ Last refreshed: 2025-11-17T11:22:48.910Z
4
4
 
5
5
  | File | Last Modified (UTC) |
6
6
  | --- | --- |