agent-enderun 1.10.0 → 1.10.2

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/README.md CHANGED
@@ -37,13 +37,15 @@ Yapay zeka kodlama yardımcıları (Claude Code, Gemini CLI, Grok Build vb.) gel
37
37
 
38
38
  ---
39
39
 
40
- ### 💎 Stratejik Platform Sinerjisi (Dört Büyük Güç)
40
+ ### 💎 Stratejik Platform Sinerjisi (Altı Büyük Güç)
41
41
 
42
42
  Agent Enderun, sektörün öncüsü olan yapay zeka ekosistemlerini bir araya getirerek her birine stratejik bir rol atar:
43
43
  * **🚀 Claude Code (Operasyonel Cerrahi):** **Saha Mühendisi**. Kod tabanındaki otonom ve milimetrik cerrahi düzenlemeleri (Surgical Edits) gerçekleştirir.
44
44
  * **♊ Gemini & Vertex AI (Komuta İstihbaratı):** **Stratejik Karar Merkezi**. Proje geçmişini, mimari kararları analiz eder ve yüksek seviyeli stratejik yönlendirmeler yapar.
45
45
  * **🛸 Antigravity (İç Disiplin & Akademi):** **Askeri Akademi**. İç standartları, anayasal uyumu korumak amacıyla izole edilmiş, yüksek disiplinli geliştirme ve test ortamı sağlar.
46
46
  * **🤖 Grok / X.ai (Otonom Keşif Kanadı):** **Deneysel Keşif**. Gelecek vizyonlu otonom protokolleri test eder ve yapay zeka güdümlü geliştirme sınırlarını zorlar.
47
+ * **✍️ Cursor (Uygulayıcı / Geliştirici):** **Kod İşçisi**. IDE entegrasyonu ile kod yazma, düzeltme ve yeniden düzenleme görevlerinde etkili.
48
+ * **💡 Codex (GitHub Copilot - Kod Asistanı):** **Yardımcı Geliştirici**. VSCode entegrasyonu ile kod tamamlama, öneriler ve hızlı prototiplemede destek.
47
49
 
48
50
  ---
49
51
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import fs from "fs";
4
4
  import path from "path";
5
+ import yaml from "js-yaml";
5
6
 
6
7
  /**
7
8
  * AL-compatible agent folder names across all adapters (after init).
@@ -43,24 +44,19 @@ function detectFrameworkDir() {
43
44
  */
44
45
  function parseFrontmatter(content) {
45
46
  const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---/);
46
- const fm = {};
47
47
  if (match) {
48
- match[1].split("\n").forEach(line => {
49
- const [key, ...val] = line.split(":");
50
- if (key && val.length) {
51
- let value = val.join(":").trim();
52
- if (value.startsWith("[") && value.endsWith("]")) {
53
- value = value.slice(1, -1).split(",").map(s => s.trim().replace(/"/g, ""));
54
- } else if (value.startsWith("\"") && value.endsWith("\"")) {
55
- value = value.slice(1, -1);
56
- }
57
- fm[key.trim()] = value;
58
- }
59
- });
48
+ try {
49
+ const fm = yaml.load(match[1]);
50
+ return fm || {};
51
+ } catch (e) {
52
+ // Fallback to simpler parsing or handle error
53
+ console.error("Error parsing YAML frontmatter:", e);
54
+ return {};
55
+ }
60
56
  }
61
-
62
57
  // Also parse from HTML comments in the body as fallback to bypass strict frontmatter checks
63
58
  const commentMatches = content.matchAll(/<!--\s*(\w+)\s*:\s*(.*?)\s*-->/g);
59
+ const fmFromComments = {};
64
60
  for (const m of commentMatches) {
65
61
  let value = m[2].trim();
66
62
  if (value.startsWith("[") && value.endsWith("]")) {
@@ -68,10 +64,10 @@ function parseFrontmatter(content) {
68
64
  } else if (value.startsWith("\"") && value.endsWith("\"")) {
69
65
  value = value.slice(1, -1);
70
66
  }
71
- fm[m[1]] = value;
67
+ fmFromComments[m[1]] = value;
72
68
  }
73
69
 
74
- return Object.keys(fm).length > 0 ? fm : null;
70
+ return Object.keys(fmFromComments).length > 0 ? fmFromComments : null;
75
71
  }
76
72
 
77
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-enderun",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "The Supreme AI Governance & Autonomous Orchestration Framework for Enterprise Development. Acts as a Corporate AI Management Assistant.",
5
5
  "author": "Yusuf BEKAR",
6
6
  "license": "MIT",
@@ -73,9 +73,9 @@
73
73
  "initializedAt": "2026-06-04T18:51:28.970Z",
74
74
  "frameworkDir": ".gemini"
75
75
  },
76
-
77
76
  "dependencies": {
78
77
  "chalk": "^5.6.2",
78
+ "js-yaml": "^4.2.0",
79
79
  "zod": "^3.24.2"
80
80
  }
81
81
  }