@airig/cli 0.0.6 → 0.0.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.
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -409,6 +409,10 @@ const PROVIDER_REGISTRY = {
|
|
|
409
409
|
source: ".ai/.claude/commands",
|
|
410
410
|
target: ".claude/commands"
|
|
411
411
|
},
|
|
412
|
+
{
|
|
413
|
+
source: ".ai/.claude/hooks",
|
|
414
|
+
target: ".claude/hooks"
|
|
415
|
+
},
|
|
412
416
|
{
|
|
413
417
|
source: ".ai/skills",
|
|
414
418
|
target: ".claude/skills"
|
|
@@ -686,7 +690,10 @@ async function runAddLocal() {
|
|
|
686
690
|
return;
|
|
687
691
|
}
|
|
688
692
|
const currentLinked = aiJson.packages["."].linked;
|
|
689
|
-
const selectable = (await listArtifacts(".ai", providers)).filter((artifact) =>
|
|
693
|
+
const selectable = (await listArtifacts(".ai", providers)).filter((artifact) => {
|
|
694
|
+
if (!currentLinked.includes(artifact)) return true;
|
|
695
|
+
return targetPathsForArtifact(artifact, providers).some((tp) => !existsSync(tp));
|
|
696
|
+
});
|
|
690
697
|
if (selectable.length === 0) {
|
|
691
698
|
console.log("No new local files found.");
|
|
692
699
|
return;
|
|
@@ -1056,7 +1063,7 @@ function formatUpdateMessage(opts) {
|
|
|
1056
1063
|
}
|
|
1057
1064
|
//#endregion
|
|
1058
1065
|
//#region src/index.ts
|
|
1059
|
-
const program = new Command("airig").description("Manage project-scoped AI Setup artifacts").version("0.0.
|
|
1066
|
+
const program = new Command("airig").description("Manage project-scoped AI Setup artifacts").version("0.0.9");
|
|
1060
1067
|
program.addCommand(publishCommand);
|
|
1061
1068
|
program.addCommand(addCommand);
|
|
1062
1069
|
program.addCommand(updateCommand);
|