@levr-one/cli 0.12.4 → 0.12.5
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/cli.js +68 -9
- package/dist/refsHandler-DtcceTRP.js +1757 -0
- package/package.json +1 -1
- /package/dist/{addHandler-LO6SChns.js → addHandler-CAmLxnsF.js} +0 -0
- /package/dist/{appendHandler-DtxLpPu6.js → appendHandler-CUmlIX6q.js} +0 -0
- /package/dist/{currentHandler-QhCywr3S.js → currentHandler-PaLZKLGF.js} +0 -0
- /package/dist/{importHandler-uFdalKtw.js → importHandler-BhOznIQW.js} +0 -0
- /package/dist/{listHandler-BW92JLCl.js → listHandler-DjWj1D3H.js} +0 -0
- /package/dist/{pushHandler-CXFZt3SO.js → pushHandler-NvZYBz-H.js} +0 -0
- /package/dist/{runHandler-IyPhhiGs.js → runHandler-CTfUyBNW.js} +0 -0
- /package/dist/{selectHandler-D6cvq60S.js → selectHandler-CrLuGY3d.js} +0 -0
package/dist/cli.js
CHANGED
|
@@ -224,7 +224,7 @@ Examples:
|
|
|
224
224
|
aliases: { y: "yes" }
|
|
225
225
|
},
|
|
226
226
|
loader: async () => {
|
|
227
|
-
const { mcpAddHandler } = await import("./addHandler-
|
|
227
|
+
const { mcpAddHandler } = await import("./addHandler-CAmLxnsF.js");
|
|
228
228
|
return mcpAddHandler;
|
|
229
229
|
}
|
|
230
230
|
});
|
|
@@ -441,7 +441,7 @@ levr attach --manifest or later uploads.`
|
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
loader: async () => {
|
|
444
|
-
const { pushHandler } = await import("./pushHandler-
|
|
444
|
+
const { pushHandler } = await import("./pushHandler-NvZYBz-H.js");
|
|
445
445
|
return pushHandler;
|
|
446
446
|
}
|
|
447
447
|
});
|
|
@@ -561,7 +561,7 @@ Examples:
|
|
|
561
561
|
}
|
|
562
562
|
},
|
|
563
563
|
loader: async () => {
|
|
564
|
-
const { importHandler } = await import("./importHandler-
|
|
564
|
+
const { importHandler } = await import("./importHandler-BhOznIQW.js");
|
|
565
565
|
return importHandler;
|
|
566
566
|
}
|
|
567
567
|
});
|
|
@@ -582,7 +582,7 @@ Examples:
|
|
|
582
582
|
},
|
|
583
583
|
parameters: {},
|
|
584
584
|
loader: async () => {
|
|
585
|
-
const { listHandler } = await import("./listHandler-
|
|
585
|
+
const { listHandler } = await import("./listHandler-DjWj1D3H.js");
|
|
586
586
|
return listHandler;
|
|
587
587
|
}
|
|
588
588
|
});
|
|
@@ -620,7 +620,7 @@ Examples:
|
|
|
620
620
|
flags: {}
|
|
621
621
|
},
|
|
622
622
|
loader: async () => {
|
|
623
|
-
const { selectHandler } = await import("./selectHandler-
|
|
623
|
+
const { selectHandler } = await import("./selectHandler-CrLuGY3d.js");
|
|
624
624
|
return selectHandler;
|
|
625
625
|
}
|
|
626
626
|
});
|
|
@@ -637,11 +637,69 @@ Examples:
|
|
|
637
637
|
},
|
|
638
638
|
parameters: {},
|
|
639
639
|
loader: async () => {
|
|
640
|
-
const { currentHandler } = await import("./currentHandler-
|
|
640
|
+
const { currentHandler } = await import("./currentHandler-PaLZKLGF.js");
|
|
641
641
|
return currentHandler;
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
|
|
645
|
+
//#endregion
|
|
646
|
+
//#region src/commands/gates/refs.ts
|
|
647
|
+
const gatesRefsCommand = buildCommand({
|
|
648
|
+
docs: {
|
|
649
|
+
brief: "Check that a symbol is declared in a scope and referenced elsewhere",
|
|
650
|
+
fullDescription: `Find where a symbol is declared under --scope and count the references to it
|
|
651
|
+
from other modules, through the language's own tooling. This is the command a
|
|
652
|
+
symbol_referenced gate runs.
|
|
653
|
+
|
|
654
|
+
Exit code 0 when the symbol is declared in the scope and referenced from
|
|
655
|
+
outside its declaring file, 1 when it is not referenced or not found, and 2 for
|
|
656
|
+
a usage, scope or toolchain error.
|
|
657
|
+
|
|
658
|
+
--scope must be a directory (or file) inside the repository, narrower than the
|
|
659
|
+
repository root. References from test code are not counted unless
|
|
660
|
+
--include-tests is set.
|
|
661
|
+
|
|
662
|
+
Languages:
|
|
663
|
+
ts tsgo --lsp. Needs typescript and @typescript/native-preview installed
|
|
664
|
+
in the checkout.
|
|
665
|
+
rust rust-analyzer. Needs \`rustup component add rust-analyzer\`; waits for
|
|
666
|
+
indexing to finish (CODE_INTEL_RA_TIMEOUT_MS, default 300000).
|
|
667
|
+
|
|
668
|
+
Examples:
|
|
669
|
+
levr gates refs --lang ts --symbol GateDefinitionSeeder --scope packages/db-core/src
|
|
670
|
+
levr gates refs --lang rust --symbol used_helper --scope crates/core/src`
|
|
671
|
+
},
|
|
672
|
+
parameters: { flags: {
|
|
673
|
+
lang: {
|
|
674
|
+
kind: "parsed",
|
|
675
|
+
parse: String,
|
|
676
|
+
brief: "Language engine: ts or rust",
|
|
677
|
+
placeholder: "lang"
|
|
678
|
+
},
|
|
679
|
+
symbol: {
|
|
680
|
+
kind: "parsed",
|
|
681
|
+
parse: String,
|
|
682
|
+
brief: "Symbol name to resolve",
|
|
683
|
+
placeholder: "name"
|
|
684
|
+
},
|
|
685
|
+
scope: {
|
|
686
|
+
kind: "parsed",
|
|
687
|
+
parse: String,
|
|
688
|
+
brief: "Directory to search for the declaration, inside the repository",
|
|
689
|
+
placeholder: "dir"
|
|
690
|
+
},
|
|
691
|
+
"include-tests": {
|
|
692
|
+
kind: "boolean",
|
|
693
|
+
default: false,
|
|
694
|
+
brief: "Count references from test code"
|
|
695
|
+
}
|
|
696
|
+
} },
|
|
697
|
+
loader: async () => {
|
|
698
|
+
const { gatesRefsHandler } = await import("./refsHandler-DtcceTRP.js");
|
|
699
|
+
return gatesRefsHandler;
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
|
|
645
703
|
//#endregion
|
|
646
704
|
//#region src/commands/gates/run.ts
|
|
647
705
|
const gatesRunCommand = buildCommand({
|
|
@@ -718,7 +776,7 @@ Examples:
|
|
|
718
776
|
}
|
|
719
777
|
},
|
|
720
778
|
loader: async () => {
|
|
721
|
-
const { gatesRunHandler } = await import("./runHandler-
|
|
779
|
+
const { gatesRunHandler } = await import("./runHandler-CTfUyBNW.js");
|
|
722
780
|
return gatesRunHandler;
|
|
723
781
|
}
|
|
724
782
|
});
|
|
@@ -907,14 +965,14 @@ Examples:
|
|
|
907
965
|
}
|
|
908
966
|
},
|
|
909
967
|
loader: async () => {
|
|
910
|
-
const { resultAppendHandler } = await import("./appendHandler-
|
|
968
|
+
const { resultAppendHandler } = await import("./appendHandler-CUmlIX6q.js");
|
|
911
969
|
return resultAppendHandler;
|
|
912
970
|
}
|
|
913
971
|
});
|
|
914
972
|
|
|
915
973
|
//#endregion
|
|
916
974
|
//#region package.json
|
|
917
|
-
var version = "0.12.
|
|
975
|
+
var version = "0.12.5";
|
|
918
976
|
|
|
919
977
|
//#endregion
|
|
920
978
|
//#region src/app.ts
|
|
@@ -937,6 +995,7 @@ const workspaceRoutes = buildRouteMap({
|
|
|
937
995
|
const gatesRoutes = buildRouteMap({
|
|
938
996
|
routes: {
|
|
939
997
|
inspect: gatesInspectCommand,
|
|
998
|
+
refs: gatesRefsCommand,
|
|
940
999
|
run: gatesRunCommand
|
|
941
1000
|
},
|
|
942
1001
|
docs: { brief: "Run a deliverable's gates and report the raw results" }
|