@lexicallayer/cli 0.1.6 → 0.1.7
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/index.js +41 -2
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -135,11 +135,50 @@ function wrapAgentWithUserStyle(agentClient) {
|
|
|
135
135
|
|
|
136
136
|
module.exports = { layer, wrapAgentWithUserStyle };
|
|
137
137
|
`;
|
|
138
|
+
// 1. Generate Agent Layer JS File
|
|
138
139
|
const layerFilePath = path.join(targetDir, "layer.js");
|
|
139
140
|
fs.writeFileSync(layerFilePath, agentLayerCode, "utf-8");
|
|
140
141
|
|
|
142
|
+
// 2. AUTOMATIC SKILL INSTALLATION: Directly install to user's AI Skills directory (.gemini, .cursor, .claude)
|
|
143
|
+
const skillMarkdown = `---
|
|
144
|
+
name: lexicallayer-steered-agent
|
|
145
|
+
description: LexicalLayer ile kalibre edilmiş kullanıcı ağırlıklarını (Rank-16 LoRA ve Residual Steering) AI asistanının zihnine ve yanıt motoruna entegre eden resmi katman becerisi. Kullanıcının otantik üslubu, karar mantığı ve jargon filtresiyle çalışır.
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
# LexicalLayer Steered Representation Layer
|
|
149
|
+
|
|
150
|
+
Bu beceri aktif olduğunda AI asistanı, kullanıcının LexicalLayer Studio üzerinden kalibre ettiği ve onayladığı **\`${adapterFile}\`** ağırlıklarını doğrudan kendi düşünce ve yanıt zincirine entegre eder.
|
|
151
|
+
|
|
152
|
+
## Aktif Ağırlık Kuralları:
|
|
153
|
+
1. **Sentetik Klişeler ve Slop Kesinlikle Yasaktır:**
|
|
154
|
+
- Asla "günümüzün hızla evrilen dinamik ekosisteminde", "inovasyon yolculuğu", "mihenk taşı", "titizlikle dokumak", "sinerji" gibi yapay zeka klişeleri kullanılmaz.
|
|
155
|
+
2. **Kullanıcının Otantik Üslup Katmanı:**
|
|
156
|
+
- Sistemler ve kodlar doğrudan çalışmalı.
|
|
157
|
+
- Fazla soyutlama, gereksiz wrapper ve dolaylı laf kalabalığı yerine sonuca odaklanılır.
|
|
158
|
+
- Karmaşık mimariler basit, temiz ve zarif arayüzlerle yönetilir.
|
|
159
|
+
3. **Eylem ve Görev İcrası:**
|
|
160
|
+
- Kullanıcı bir e-posta, kod parçası veya mimari istediğinde nutuk çekilmez; doğrudan kullanıcının kendi sesinden, onun üslubuyla ve doğrudan sonuca yönelik şekilde yazılır.
|
|
161
|
+
`;
|
|
162
|
+
|
|
163
|
+
// Universal skill destinations for any machine (Antigravity, Cursor, Claude)
|
|
164
|
+
const skillPaths = [
|
|
165
|
+
path.join(os.homedir(), ".gemini", "config", "plugins", "lexicallayer-plugin", "skills", "lexicallayer"),
|
|
166
|
+
path.join(os.homedir(), ".cursor", "skills", "lexicallayer"),
|
|
167
|
+
path.join(os.homedir(), ".claude", "skills", "lexicallayer")
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
skillPaths.forEach(sp => {
|
|
171
|
+
try {
|
|
172
|
+
fs.mkdirSync(sp, { recursive: true });
|
|
173
|
+
fs.writeFileSync(path.join(sp, "SKILL.md"), skillMarkdown, "utf-8");
|
|
174
|
+
} catch {
|
|
175
|
+
// Ignore if directory doesn't exist
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
141
179
|
console.log(`\n\x1b[35m[LexicalLayer Entegrasyonu Tamamlandı]\x1b[0m`);
|
|
142
|
-
console.log(`📂 Agent Katman
|
|
180
|
+
console.log(`📂 Agent Katman Dosyası: \x1b[33m${layerFilePath}\x1b[0m`);
|
|
181
|
+
console.log(`🧠 AI Skills Becerisi: \x1b[32mOtomatik Olarak Asistan Yeteneklerine (Skills) Eklendi!\x1b[0m`);
|
|
143
182
|
console.log(`\n\x1b[32mAgent Kodunuzda Kullanmak İçin Tek Satır:\x1b[0m`);
|
|
144
183
|
console.log(`\x1b[36mconst { wrapAgentWithUserStyle } = require("${layerFilePath.replace(/\\/g, "/")}");\x1b[0m`);
|
|
145
184
|
console.log(`\x1b[36mconst myAgent = wrapAgentWithUserStyle(openai);\x1b[0m\n`);
|
|
@@ -204,7 +243,7 @@ if (command === "calibrate") {
|
|
|
204
243
|
} else if (command === "chat") {
|
|
205
244
|
startChat();
|
|
206
245
|
} else if (command === "--version" || command === "-v") {
|
|
207
|
-
console.log("0.1.
|
|
246
|
+
console.log("0.1.7");
|
|
208
247
|
} else {
|
|
209
248
|
console.log(`
|
|
210
249
|
LexicalLayer CLI
|