@airig/cli 0.0.6 → 0.0.7
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 +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -686,7 +686,10 @@ async function runAddLocal() {
|
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
688
|
const currentLinked = aiJson.packages["."].linked;
|
|
689
|
-
const selectable = (await listArtifacts(".ai", providers)).filter((artifact) =>
|
|
689
|
+
const selectable = (await listArtifacts(".ai", providers)).filter((artifact) => {
|
|
690
|
+
if (!currentLinked.includes(artifact)) return true;
|
|
691
|
+
return targetPathsForArtifact(artifact, providers).some((tp) => !existsSync(tp));
|
|
692
|
+
});
|
|
690
693
|
if (selectable.length === 0) {
|
|
691
694
|
console.log("No new local files found.");
|
|
692
695
|
return;
|
|
@@ -1056,7 +1059,7 @@ function formatUpdateMessage(opts) {
|
|
|
1056
1059
|
}
|
|
1057
1060
|
//#endregion
|
|
1058
1061
|
//#region src/index.ts
|
|
1059
|
-
const program = new Command("airig").description("Manage project-scoped AI Setup artifacts").version("0.0.
|
|
1062
|
+
const program = new Command("airig").description("Manage project-scoped AI Setup artifacts").version("0.0.7");
|
|
1060
1063
|
program.addCommand(publishCommand);
|
|
1061
1064
|
program.addCommand(addCommand);
|
|
1062
1065
|
program.addCommand(updateCommand);
|