@arcteninc/core 0.0.143 → 0.0.145
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/package.json +1 -1
- package/scripts/cli-sync.ts +10 -18
package/package.json
CHANGED
package/scripts/cli-sync.ts
CHANGED
|
@@ -713,24 +713,15 @@ async function main() {
|
|
|
713
713
|
const newFunctions = currentFunctions.filter(f => !previousFunctions.includes(f));
|
|
714
714
|
const removedFunctions = previousFunctions.filter(f => !currentFunctions.includes(f));
|
|
715
715
|
|
|
716
|
-
//
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
// Silent exit - no changes needed
|
|
720
|
-
if (rl) rl.close();
|
|
721
|
-
process.exit(0);
|
|
722
|
-
}
|
|
716
|
+
// Always regenerate arcten.tools.ts to pick up any classification changes in sync-state.json
|
|
717
|
+
// Only skip dashboard sync if truly no changes
|
|
718
|
+
const hasChanges = newFunctions.length > 0 || removedFunctions.length > 0;
|
|
723
719
|
|
|
720
|
+
if (!hasChanges && previousState && !options.forceClassify) {
|
|
724
721
|
if (!options.autoYes) {
|
|
725
722
|
console.log('');
|
|
726
|
-
console.log('No changes detected since last sync.');
|
|
727
|
-
|
|
728
|
-
const resync = await askYesNo('Re-sync anyway?');
|
|
729
|
-
if (!resync) {
|
|
730
|
-
console.log('Sync cancelled.');
|
|
731
|
-
if (rl) rl.close();
|
|
732
|
-
process.exit(0);
|
|
733
|
-
}
|
|
723
|
+
console.log('No function changes detected since last sync.');
|
|
724
|
+
console.log('(Will still regenerate arcten.tools.ts to apply any classification changes)');
|
|
734
725
|
}
|
|
735
726
|
}
|
|
736
727
|
|
|
@@ -779,14 +770,15 @@ async function main() {
|
|
|
779
770
|
}
|
|
780
771
|
}
|
|
781
772
|
|
|
782
|
-
// Step 5: Confirm with user (skip if auto-yes)
|
|
783
|
-
|
|
773
|
+
// Step 5: Confirm with user (skip if auto-yes or no new classifications needed)
|
|
774
|
+
const needsNewClassification = newFunctions.length > 0 || options.forceClassify;
|
|
775
|
+
if (!options.autoYes && needsNewClassification) {
|
|
784
776
|
console.log('');
|
|
785
777
|
const proceed = await askYesNo('Does this look right?');
|
|
786
778
|
|
|
787
779
|
if (!proceed) {
|
|
788
780
|
console.log('');
|
|
789
|
-
console.log('You can adjust classifications
|
|
781
|
+
console.log('You can adjust classifications in .arcten/sync-state.json and re-run sync.');
|
|
790
782
|
if (rl) rl.close();
|
|
791
783
|
process.exit(0);
|
|
792
784
|
}
|