@indigoai-us/hq-cloud 6.13.5 → 6.14.0
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/bin/sync-runner-company.d.ts +1 -0
- package/dist/bin/sync-runner-company.d.ts.map +1 -1
- package/dist/bin/sync-runner-company.js +41 -2
- package/dist/bin/sync-runner-company.js.map +1 -1
- package/dist/bin/sync-runner-watch-loop.d.ts +9 -1
- package/dist/bin/sync-runner-watch-loop.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-loop.js +75 -50
- package/dist/bin/sync-runner-watch-loop.js.map +1 -1
- package/dist/bin/sync-runner-watch-routes.d.ts +3 -0
- package/dist/bin/sync-runner-watch-routes.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-routes.js +52 -1
- package/dist/bin/sync-runner-watch-routes.js.map +1 -1
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js +10 -0
- package/dist/bin/sync-runner.js.map +1 -1
- package/dist/bin/sync-runner.test.js +597 -45
- package/dist/bin/sync-runner.test.js.map +1 -1
- package/package.json +1 -1
- package/src/bin/sync-runner-company.ts +61 -2
- package/src/bin/sync-runner-watch-loop.ts +105 -54
- package/src/bin/sync-runner-watch-routes.ts +57 -1
- package/src/bin/sync-runner.test.ts +697 -50
- package/src/bin/sync-runner.ts +11 -0
package/src/bin/sync-runner.ts
CHANGED
|
@@ -723,6 +723,8 @@ interface ParsedArgs {
|
|
|
723
723
|
* mode (single-company runs never visit the personal target).
|
|
724
724
|
*/
|
|
725
725
|
skipPersonal: boolean;
|
|
726
|
+
/** Repeatable company/personal-relative path scope for push-only passes. */
|
|
727
|
+
scopePaths: string[];
|
|
726
728
|
/**
|
|
727
729
|
* Bounded wait (seconds) for the per-root operation lock when another op is
|
|
728
730
|
* already running. `0` → refuse immediately (pre-wait behavior); omitted →
|
|
@@ -742,6 +744,7 @@ function parseArgs(argv: string[]): ParsedArgs | { error: string } {
|
|
|
742
744
|
let watch = false;
|
|
743
745
|
let pollRemoteMs: number | undefined;
|
|
744
746
|
let skipPersonal = false;
|
|
747
|
+
const scopePaths: string[] = [];
|
|
745
748
|
let eventPush = false;
|
|
746
749
|
let lockTimeoutSec: number | undefined;
|
|
747
750
|
|
|
@@ -817,6 +820,12 @@ function parseArgs(argv: string[]): ParsedArgs | { error: string } {
|
|
|
817
820
|
// @getindigo.ai identities for the first release.
|
|
818
821
|
eventPush = true;
|
|
819
822
|
break;
|
|
823
|
+
case "--scope-path": {
|
|
824
|
+
const val = argv[++i];
|
|
825
|
+
if (!val) return { error: "--scope-path requires a value" };
|
|
826
|
+
scopePaths.push(val);
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
820
829
|
case "--lock-timeout": {
|
|
821
830
|
const val = argv[++i];
|
|
822
831
|
if (!val) return { error: "--lock-timeout requires a value (seconds)" };
|
|
@@ -867,6 +876,7 @@ function parseArgs(argv: string[]): ParsedArgs | { error: string } {
|
|
|
867
876
|
watch,
|
|
868
877
|
pollRemoteMs,
|
|
869
878
|
skipPersonal,
|
|
879
|
+
scopePaths,
|
|
870
880
|
eventPush,
|
|
871
881
|
lockTimeoutSec,
|
|
872
882
|
};
|
|
@@ -1219,6 +1229,7 @@ export async function runRunner(
|
|
|
1219
1229
|
shareFn,
|
|
1220
1230
|
resolveDeletePolicy,
|
|
1221
1231
|
emit,
|
|
1232
|
+
scopePaths: parsed.scopePaths,
|
|
1222
1233
|
});
|
|
1223
1234
|
const { errors, allConflicts } = fanout;
|
|
1224
1235
|
const rollup = rollupAllComplete(plan, fanout.stateByCompany);
|