@lexicallayer/cli 0.1.7 → 0.1.9

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 +35 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -161,8 +161,20 @@ Bu beceri aktif olduğunda AI asistanı, kullanıcının LexicalLayer Studio üz
161
161
  `;
162
162
 
163
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
+
164
176
  const skillPaths = [
165
- path.join(os.homedir(), ".gemini", "config", "plugins", "lexicallayer-plugin", "skills", "lexicallayer"),
177
+ path.join(geminiPluginDir, "skills", "lexicallayer"),
166
178
  path.join(os.homedir(), ".cursor", "skills", "lexicallayer"),
167
179
  path.join(os.homedir(), ".claude", "skills", "lexicallayer")
168
180
  ];
@@ -176,6 +188,27 @@ Bu beceri aktif olduğunda AI asistanı, kullanıcının LexicalLayer Studio üz
176
188
  }
177
189
  });
178
190
 
191
+ // Universal global assistant rule injection (Antigravity GEMINI.md, Cursor, Claude)
192
+ const ruleSnippet = `\n\n# [LEXICALLAYER ACTIVE STEERED REPRESENTATION LAYER]\n# Adapter: ${adapterFile} (Rank-16 LoRA + Residual Steering)\n1. SENTETİK SLOP VE KLİŞELER KESİNLİKLE YASAKTIR:\n - Asla yapay zeka klişeleri veya boş kurumsal jargon kullanma.\n2. KULLANICININ OTANTİK DÜŞÜNCE VE ÜSLUP KATMANI:\n - Sistemler ve kodlar doğrudan çalışmalı.\n - Fazla soyutlama ve dolaylı anlatım yerine doğrudan sonuca odaklan.\n - Karmaşık mimarileri basit, temiz ve yalın arayüzlerle yönet.\n3. ELEŞTİREL VE NET YAKLAŞIM:\n - Doğrudan ve net cevap ver; nutuk çekme.\n`;
193
+
194
+ const globalRuleFiles = [
195
+ path.join(os.homedir(), ".gemini", "GEMINI.md"),
196
+ path.join(os.homedir(), ".cursorrules"),
197
+ path.join(os.homedir(), ".claude", "CLAUDE.md")
198
+ ];
199
+
200
+ globalRuleFiles.forEach(rf => {
201
+ try {
202
+ let existing = "";
203
+ if (fs.existsSync(rf)) {
204
+ existing = fs.readFileSync(rf, "utf-8");
205
+ }
206
+ if (!existing.includes("[LEXICALLAYER ACTIVE STEERED REPRESENTATION LAYER]")) {
207
+ fs.writeFileSync(rf, existing + ruleSnippet, "utf-8");
208
+ }
209
+ } catch {}
210
+ });
211
+
179
212
  console.log(`\n\x1b[35m[LexicalLayer Entegrasyonu Tamamlandı]\x1b[0m`);
180
213
  console.log(`📂 Agent Katman Dosyası: \x1b[33m${layerFilePath}\x1b[0m`);
181
214
  console.log(`🧠 AI Skills Becerisi: \x1b[32mOtomatik Olarak Asistan Yeteneklerine (Skills) Eklendi!\x1b[0m`);
@@ -243,7 +276,7 @@ if (command === "calibrate") {
243
276
  } else if (command === "chat") {
244
277
  startChat();
245
278
  } else if (command === "--version" || command === "-v") {
246
- console.log("0.1.7");
279
+ console.log("0.1.9");
247
280
  } else {
248
281
  console.log(`
249
282
  LexicalLayer CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexicallayer/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "LexicalLayer CLI - Representation engineering and authentic weight calibration for AI agents",
5
5
  "main": "bin/index.js",
6
6
  "bin": {