@ryuenn3123/agentic-senior-core 6.6.0 → 6.6.1
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/gemini-extension.json
CHANGED
|
@@ -87,6 +87,21 @@ async function pathExists(filePath) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
async function copyDirRecursive(src, dest, ignoreNames = []) {
|
|
91
|
+
await fs.mkdir(dest, { recursive: true });
|
|
92
|
+
const entries = await fs.readdir(src, { withFileTypes: true });
|
|
93
|
+
for (const entry of entries) {
|
|
94
|
+
if (ignoreNames.includes(entry.name)) continue;
|
|
95
|
+
const srcPath = path.join(src, entry.name);
|
|
96
|
+
const destPath = path.join(dest, entry.name);
|
|
97
|
+
if (entry.isDirectory()) {
|
|
98
|
+
await copyDirRecursive(srcPath, destPath, ignoreNames);
|
|
99
|
+
} else {
|
|
100
|
+
await fs.copyFile(srcPath, destPath);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
async function generateAdapter(targetDirectory, adapterKey) {
|
|
91
106
|
const adapter = ADAPTER_TARGETS[adapterKey];
|
|
92
107
|
if (!adapter) {
|
|
@@ -130,6 +145,11 @@ async function generateAdapter(targetDirectory, adapterKey) {
|
|
|
130
145
|
await fs.copyFile(pluginSource, pluginTarget);
|
|
131
146
|
}
|
|
132
147
|
}
|
|
148
|
+
const skillsSource = path.join(REPOSITORY_ROOT, '.agents', 'plugins', 'agentic-senior-core', 'skills');
|
|
149
|
+
const localSkillsTarget = path.join(targetDirectory, '.kilo', 'skills');
|
|
150
|
+
if (await pathExists(skillsSource)) {
|
|
151
|
+
await copyDirRecursive(skillsSource, localSkillsTarget);
|
|
152
|
+
}
|
|
133
153
|
if (adapter.legacyTargetPath) {
|
|
134
154
|
const legacyTarget = path.join(targetDirectory, adapter.legacyTargetPath);
|
|
135
155
|
await fs.mkdir(path.dirname(legacyTarget), { recursive: true });
|
|
@@ -227,6 +227,12 @@ async function installKiloGlobal(target) {
|
|
|
227
227
|
await fs.copyFile(pluginSource, pluginTarget);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
const skillsSource = path.join(REPOSITORY_ROOT, '.agents', 'plugins', 'agentic-senior-core', 'skills');
|
|
231
|
+
const globalSkillsTarget = path.join(HOME, '.kilo', 'skills');
|
|
232
|
+
if (await pathExists(skillsSource)) {
|
|
233
|
+
await copyDirRecursive(skillsSource, globalSkillsTarget);
|
|
234
|
+
}
|
|
235
|
+
|
|
230
236
|
if (process.env.APPDATA) {
|
|
231
237
|
const appDataKiloPlugin = path.join(process.env.APPDATA, 'kilo', 'plugin', 'agentic-senior-core.js');
|
|
232
238
|
const appDataKiloRules = path.join(process.env.APPDATA, 'kilo', 'rules', 'agentic-senior-core.md');
|
|
@@ -240,7 +246,7 @@ async function installKiloGlobal(target) {
|
|
|
240
246
|
} catch (_) {}
|
|
241
247
|
}
|
|
242
248
|
|
|
243
|
-
console.log(` ${target.label}: ${rulesTarget} & ${
|
|
249
|
+
console.log(` ${target.label}: ${rulesTarget}, ${pluginTarget} & ${globalSkillsTarget} ... OK`);
|
|
244
250
|
return true;
|
|
245
251
|
}
|
|
246
252
|
|
package/package.json
CHANGED
package/plugin.yaml
CHANGED