@callmeradical/augy 0.6.0 → 0.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.
|
@@ -181,7 +181,7 @@ async function homePullCommand(opts = {}) {
|
|
|
181
181
|
console.log(chalk.dim("Cancelled."));
|
|
182
182
|
process.exit(0);
|
|
183
183
|
}
|
|
184
|
-
const toInstall = selected;
|
|
184
|
+
const toInstall = selected.map((sk) => available.find((a) => a.name === sk.name) ?? sk);
|
|
185
185
|
let targetAgents = opts.agent?.length ? AGENTS.filter((a) => opts.agent.includes(a.id)) : detectInstalledAgents();
|
|
186
186
|
if (!opts.agent?.length) {
|
|
187
187
|
const agentResult = await multiselect({
|
|
@@ -227,7 +227,9 @@ async function homePullCommand(opts = {}) {
|
|
|
227
227
|
upsertSkill(registry, record);
|
|
228
228
|
}
|
|
229
229
|
if (authoredToInstall.length) await writeRegistry(registry);
|
|
230
|
-
const externalToInstall = toInstall.filter(
|
|
230
|
+
const externalToInstall = toInstall.filter(
|
|
231
|
+
(sk) => !sk.isAuthored && sk.source && !sk.source.includes(home.repo)
|
|
232
|
+
);
|
|
231
233
|
if (externalToInstall.length) {
|
|
232
234
|
const { tmpdir: td } = await import("os");
|
|
233
235
|
const { writeFile: wf } = await import("fs/promises");
|
package/dist/index.js
CHANGED
|
@@ -89,19 +89,19 @@ author.command("edit <name>").description("Open an existing skill in $EDITOR").a
|
|
|
89
89
|
});
|
|
90
90
|
var home = program.command("home").description("Manage a personal GitHub repo for backing up your skills manifest");
|
|
91
91
|
home.command("set <repo>").description("Set the home repo e.g. augy home set alice/my-skills").option("--path <file>", "Manifest path within the repo (default: augy.json)").option("--skills-path <dir>", "Dir for authored skills in the repo (default: skills)").action(async (repo, opts) => {
|
|
92
|
-
const { homeSetCommand } = await import("./home-
|
|
92
|
+
const { homeSetCommand } = await import("./home-P4CXRJZI.js");
|
|
93
93
|
await homeSetCommand(repo, opts);
|
|
94
94
|
});
|
|
95
95
|
home.command("push").description("Push your installed skills manifest to the home repo").action(async () => {
|
|
96
|
-
const { homePushCommand } = await import("./home-
|
|
96
|
+
const { homePushCommand } = await import("./home-P4CXRJZI.js");
|
|
97
97
|
await homePushCommand();
|
|
98
98
|
});
|
|
99
99
|
home.command("pull").description("Fetch the manifest from the home repo and sync skills").option("--dry-run", "Preview changes without applying them").option("-a, --agent <agents...>", "Target agent(s) (default: all detected)").action(async (opts) => {
|
|
100
|
-
const { homePullCommand } = await import("./home-
|
|
100
|
+
const { homePullCommand } = await import("./home-P4CXRJZI.js");
|
|
101
101
|
await homePullCommand(opts);
|
|
102
102
|
});
|
|
103
103
|
home.command("show").description("Show the current home repo configuration").action(async () => {
|
|
104
|
-
const { homeShowCommand } = await import("./home-
|
|
104
|
+
const { homeShowCommand } = await import("./home-P4CXRJZI.js");
|
|
105
105
|
await homeShowCommand();
|
|
106
106
|
});
|
|
107
107
|
program.action(async () => {
|