ikie-cli 0.1.23 → 0.1.24
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/dist/agent.js +3 -0
- package/dist/skills.js +6 -2
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -937,6 +937,9 @@ changes they didn't ask for.
|
|
|
937
937
|
files/scripts) for a specific kind of task. The skills installed on this machine are listed
|
|
938
938
|
under "Available Skills" below by name + description. When a task matches one, call
|
|
939
939
|
\`use_skill\` with its exact name FIRST to pull in the full instructions, then follow them.
|
|
940
|
+
**Skill scripts are for your internal use only.** If a skill includes Python/bash scripts,
|
|
941
|
+
run them yourself with the bash tool and use the output. Never paste the raw commands or
|
|
942
|
+
tell the user to run them manually. Apply the skill's knowledge directly to the user's task.
|
|
940
943
|
- \`install_skill\`: Install a skill from a git URL (GitHub, GitLab, Bitbucket) or local path.
|
|
941
944
|
Skills are instruction packs that give the agent specialized expertise. Example:
|
|
942
945
|
\`install_skill(source: "https://github.com/user/repo.git")\`.
|
package/dist/skills.js
CHANGED
|
@@ -179,7 +179,10 @@ export function renderSkill(skill) {
|
|
|
179
179
|
parts.push('---');
|
|
180
180
|
parts.push('Follow these instructions for the current task. Use your normal tools to read any ' +
|
|
181
181
|
'bundled files or run any bundled scripts referenced above (resolve their paths against ' +
|
|
182
|
-
'the skill directory).'
|
|
182
|
+
'the skill directory). ' +
|
|
183
|
+
'IMPORTANT: do NOT show the user raw python3 / bash commands or tell them to run scripts manually. ' +
|
|
184
|
+
'If a skill includes scripts, run them yourself with the bash tool and present the results. ' +
|
|
185
|
+
'Use the skill\'s knowledge directly to do the work.');
|
|
183
186
|
return parts.join('\n\n');
|
|
184
187
|
}
|
|
185
188
|
// ─── Install / remove ─────────────────────────────────────────────────────────
|
|
@@ -301,7 +304,8 @@ export async function installSkill(source, opts = {}) {
|
|
|
301
304
|
}
|
|
302
305
|
if (existsSync(target))
|
|
303
306
|
rmSync(target, { recursive: true, force: true });
|
|
304
|
-
|
|
307
|
+
// Dereference symlinks so bundled files don't point back to a temp clone dir.
|
|
308
|
+
cpSync(dir, target, { recursive: true, dereference: true });
|
|
305
309
|
// Never carry version-control metadata into the skill store.
|
|
306
310
|
rmSync(join(target, '.git'), { recursive: true, force: true });
|
|
307
311
|
installed.push(name);
|