@lexicallayer/cli 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/bin/index.js +53 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -135,11 +135,62 @@ 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 geminiPluginDir = path.join(os.homedir(), ".gemini", "config", "plugins", "lexicallayer-plugin");
165
+ try {
166
+ fs.mkdirSync(geminiPluginDir, { recursive: true });
167
+ fs.writeFileSync(path.join(geminiPluginDir, "plugin.json"), JSON.stringify({
168
+ name: "lexicallayer-plugin",
169
+ version: "0.1.0",
170
+ description: "LexicalLayer User-Steered Representation Layer Plugin",
171
+ author: { name: "LexicalLayer" },
172
+ license: "Apache-2.0"
173
+ }, null, 2), "utf-8");
174
+ } catch {}
175
+
176
+ const skillPaths = [
177
+ path.join(geminiPluginDir, "skills", "lexicallayer"),
178
+ path.join(os.homedir(), ".cursor", "skills", "lexicallayer"),
179
+ path.join(os.homedir(), ".claude", "skills", "lexicallayer")
180
+ ];
181
+
182
+ skillPaths.forEach(sp => {
183
+ try {
184
+ fs.mkdirSync(sp, { recursive: true });
185
+ fs.writeFileSync(path.join(sp, "SKILL.md"), skillMarkdown, "utf-8");
186
+ } catch {
187
+ // Ignore if directory doesn't exist
188
+ }
189
+ });
190
+
141
191
  console.log(`\n\x1b[35m[LexicalLayer Entegrasyonu Tamamlandı]\x1b[0m`);
142
- console.log(`📂 Agent Katman Dosyanız Hazırlandı: \x1b[33m${layerFilePath}\x1b[0m`);
192
+ console.log(`📂 Agent Katman Dosyası: \x1b[33m${layerFilePath}\x1b[0m`);
193
+ console.log(`🧠 AI Skills Becerisi: \x1b[32mOtomatik Olarak Asistan Yeteneklerine (Skills) Eklendi!\x1b[0m`);
143
194
  console.log(`\n\x1b[32mAgent Kodunuzda Kullanmak İçin Tek Satır:\x1b[0m`);
144
195
  console.log(`\x1b[36mconst { wrapAgentWithUserStyle } = require("${layerFilePath.replace(/\\/g, "/")}");\x1b[0m`);
145
196
  console.log(`\x1b[36mconst myAgent = wrapAgentWithUserStyle(openai);\x1b[0m\n`);
@@ -204,7 +255,7 @@ if (command === "calibrate") {
204
255
  } else if (command === "chat") {
205
256
  startChat();
206
257
  } else if (command === "--version" || command === "-v") {
207
- console.log("0.1.6");
258
+ console.log("0.1.8");
208
259
  } else {
209
260
  console.log(`
210
261
  LexicalLayer CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexicallayer/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "LexicalLayer CLI - Representation engineering and authentic weight calibration for AI agents",
5
5
  "main": "bin/index.js",
6
6
  "bin": {