@levr-one/cli 0.11.10 → 0.12.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/{addHandler-DR6q5U_R.js → addHandler-BIKNXipz.js} +7 -7
- package/dist/{appendHandler-KVsJMxpX.js → appendHandler-DtxLpPu6.js} +9 -9
- package/dist/{artifact-upload-BzLxue32.js → artifact-upload-BvBSevIx.js} +2 -2
- package/dist/{attachHandler-DQpK_pVa.js → attachHandler-DXZi2ILT.js} +9 -9
- package/dist/cli.js +38 -22
- package/dist/{connect-BgQmrL_0.js → connect-DVjgyfls.js} +3 -3
- package/dist/{currentHandler-u89l068v.js → currentHandler-QhCywr3S.js} +1 -1
- package/dist/{find-workspace-T4xuXwtS.js → find-workspace-Bl4rfr73.js} +1 -1
- package/dist/{importHandler-zw5GKb-S.js → importHandler-uFdalKtw.js} +6 -6
- package/dist/inspect-B8tG9g0q.js +1122 -0
- package/dist/inspect-BzBqSBO3.js +3 -0
- package/dist/{listHandler-YA-0RkwS.js → listHandler-BW92JLCl.js} +5 -5
- package/dist/{loginHandler-DE0L1ehF.js → loginHandler-C9Oi92IY.js} +15 -11
- package/dist/{logoutHandler-S4TFYFwz.js → logoutHandler-Cf5aI1wq.js} +2 -2
- package/dist/{pushHandler-DdNyVQ5t.js → pushHandler-CXFZt3SO.js} +8 -8
- package/dist/{resolve-token-7xb7kG7h.js → resolve-token-ByZq05Us.js} +2 -2
- package/dist/{resolve-workspace-CStHisUb.js → resolve-workspace-BbK3uYQc.js} +2 -2
- package/dist/{runHandler-BFDjtxbt.js → runHandler-itaAVn4U.js} +215 -25
- package/dist/{sdk-client-DYv-0CfA.js → sdk-client-B4FMd_Fa.js} +1 -1
- package/dist/{selectHandler-Cejme5nY.js → selectHandler-D6cvq60S.js} +5 -5
- package/dist/{statusHandler-BNiWlC7e.js → statusHandler-BQXn93-r.js} +3 -3
- package/dist/{token-refresh-DeusLK8H.js → token-refresh-CJB7Qlxy.js} +1 -1
- package/package.json +1 -1
- /package/dist/{env-CdwyPHGV.js → env-CvjMSRd7.js} +0 -0
- /package/dist/{sleep-BpJ39Ypm.js → sleep-CGBHjsj5.js} +0 -0
- /package/dist/{workspace-store-CnrxyYRB.js → workspace-store-Bmw104Qa.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { configureClient } from "./sdk-client-
|
|
2
|
-
import { getApiUrl } from "./env-
|
|
3
|
-
import "./token-refresh-
|
|
4
|
-
import { resolveToken } from "./resolve-token-
|
|
5
|
-
import "./workspace-store-
|
|
6
|
-
import { fetchSites } from "./resolve-workspace-
|
|
7
|
-
import { describeWorkspaces, findWorkspaceByKeyOrName, isScopedMcpUrl, resolveMcpUrl, scopedMcpUrl, servedBySessionApi } from "./find-workspace-
|
|
1
|
+
import { configureClient } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import { getApiUrl } from "./env-CvjMSRd7.js";
|
|
3
|
+
import "./token-refresh-CJB7Qlxy.js";
|
|
4
|
+
import { resolveToken } from "./resolve-token-ByZq05Us.js";
|
|
5
|
+
import "./workspace-store-Bmw104Qa.js";
|
|
6
|
+
import { fetchSites } from "./resolve-workspace-BbK3uYQc.js";
|
|
7
|
+
import { describeWorkspaces, findWorkspaceByKeyOrName, isScopedMcpUrl, resolveMcpUrl, scopedMcpUrl, servedBySessionApi } from "./find-workspace-Bl4rfr73.js";
|
|
8
8
|
import { chmodSync, copyFileSync, existsSync, mkdirSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, delimiter, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { homedir } from "node:os";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { appendActualResult } from "./sdk-client-
|
|
2
|
-
import "./env-
|
|
3
|
-
import "./token-refresh-
|
|
4
|
-
import "./resolve-token-
|
|
5
|
-
import "./workspace-store-
|
|
6
|
-
import "./resolve-workspace-
|
|
7
|
-
import { connect } from "./connect-
|
|
8
|
-
import "./sleep-
|
|
9
|
-
import { embedMarkdown, parseTarget, uploadArtifactFile } from "./artifact-upload-
|
|
1
|
+
import { appendActualResult } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import "./env-CvjMSRd7.js";
|
|
3
|
+
import "./token-refresh-CJB7Qlxy.js";
|
|
4
|
+
import "./resolve-token-ByZq05Us.js";
|
|
5
|
+
import "./workspace-store-Bmw104Qa.js";
|
|
6
|
+
import "./resolve-workspace-BbK3uYQc.js";
|
|
7
|
+
import { connect } from "./connect-DVjgyfls.js";
|
|
8
|
+
import "./sleep-CGBHjsj5.js";
|
|
9
|
+
import { embedMarkdown, parseTarget, uploadArtifactFile } from "./artifact-upload-BvBSevIx.js";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
import { basename } from "node:path";
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { uploadAttachment } from "./sdk-client-
|
|
2
|
-
import { sleep } from "./sleep-
|
|
1
|
+
import { uploadAttachment } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import { sleep } from "./sleep-CGBHjsj5.js";
|
|
3
3
|
import { constants, promises, readlinkSync, realpathSync, statSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { appendActualResult, createComment } from "./sdk-client-
|
|
2
|
-
import "./env-
|
|
3
|
-
import "./token-refresh-
|
|
4
|
-
import "./resolve-token-
|
|
5
|
-
import "./workspace-store-
|
|
6
|
-
import "./resolve-workspace-
|
|
7
|
-
import { connect } from "./connect-
|
|
8
|
-
import "./sleep-
|
|
9
|
-
import { TargetParseError, embedMarkdown, parseTarget, uploadArtifactFile } from "./artifact-upload-
|
|
1
|
+
import { appendActualResult, createComment } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import "./env-CvjMSRd7.js";
|
|
3
|
+
import "./token-refresh-CJB7Qlxy.js";
|
|
4
|
+
import "./resolve-token-ByZq05Us.js";
|
|
5
|
+
import "./workspace-store-Bmw104Qa.js";
|
|
6
|
+
import "./resolve-workspace-BbK3uYQc.js";
|
|
7
|
+
import { connect } from "./connect-DVjgyfls.js";
|
|
8
|
+
import "./sleep-CGBHjsj5.js";
|
|
9
|
+
import { TargetParseError, embedMarkdown, parseTarget, uploadArtifactFile } from "./artifact-upload-BvBSevIx.js";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
import { basename } from "node:path";
|
|
12
12
|
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { COMPLETION_SHELLS } from "./completionHandler-O2G_WZLf.js";
|
|
3
|
+
import { gatesInspectCommand } from "./inspect-B8tG9g0q.js";
|
|
3
4
|
import { buildApplication, buildCommand, buildRouteMap, proposeCompletions, run, text_en } from "@stricli/core";
|
|
4
5
|
import chalk from "chalk";
|
|
5
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -223,7 +224,7 @@ Examples:
|
|
|
223
224
|
aliases: { y: "yes" }
|
|
224
225
|
},
|
|
225
226
|
loader: async () => {
|
|
226
|
-
const { mcpAddHandler } = await import("./addHandler-
|
|
227
|
+
const { mcpAddHandler } = await import("./addHandler-BIKNXipz.js");
|
|
227
228
|
return mcpAddHandler;
|
|
228
229
|
}
|
|
229
230
|
});
|
|
@@ -272,7 +273,7 @@ Examples:
|
|
|
272
273
|
aliases: { d: "device-code" }
|
|
273
274
|
},
|
|
274
275
|
loader: async () => {
|
|
275
|
-
const { loginHandler } = await import("./loginHandler-
|
|
276
|
+
const { loginHandler } = await import("./loginHandler-C9Oi92IY.js");
|
|
276
277
|
return loginHandler;
|
|
277
278
|
}
|
|
278
279
|
});
|
|
@@ -291,7 +292,7 @@ Examples:
|
|
|
291
292
|
},
|
|
292
293
|
parameters: {},
|
|
293
294
|
loader: async () => {
|
|
294
|
-
const { logoutHandler } = await import("./logoutHandler-
|
|
295
|
+
const { logoutHandler } = await import("./logoutHandler-Cf5aI1wq.js");
|
|
295
296
|
return logoutHandler;
|
|
296
297
|
}
|
|
297
298
|
});
|
|
@@ -311,7 +312,7 @@ Examples:
|
|
|
311
312
|
},
|
|
312
313
|
parameters: {},
|
|
313
314
|
loader: async () => {
|
|
314
|
-
const { statusHandler } = await import("./statusHandler-
|
|
315
|
+
const { statusHandler } = await import("./statusHandler-BQXn93-r.js");
|
|
315
316
|
return statusHandler;
|
|
316
317
|
}
|
|
317
318
|
});
|
|
@@ -440,7 +441,7 @@ levr attach --manifest or later uploads.`
|
|
|
440
441
|
}
|
|
441
442
|
},
|
|
442
443
|
loader: async () => {
|
|
443
|
-
const { pushHandler } = await import("./pushHandler-
|
|
444
|
+
const { pushHandler } = await import("./pushHandler-CXFZt3SO.js");
|
|
444
445
|
return pushHandler;
|
|
445
446
|
}
|
|
446
447
|
});
|
|
@@ -560,7 +561,7 @@ Examples:
|
|
|
560
561
|
}
|
|
561
562
|
},
|
|
562
563
|
loader: async () => {
|
|
563
|
-
const { importHandler } = await import("./importHandler-
|
|
564
|
+
const { importHandler } = await import("./importHandler-uFdalKtw.js");
|
|
564
565
|
return importHandler;
|
|
565
566
|
}
|
|
566
567
|
});
|
|
@@ -581,7 +582,7 @@ Examples:
|
|
|
581
582
|
},
|
|
582
583
|
parameters: {},
|
|
583
584
|
loader: async () => {
|
|
584
|
-
const { listHandler } = await import("./listHandler-
|
|
585
|
+
const { listHandler } = await import("./listHandler-BW92JLCl.js");
|
|
585
586
|
return listHandler;
|
|
586
587
|
}
|
|
587
588
|
});
|
|
@@ -619,7 +620,7 @@ Examples:
|
|
|
619
620
|
flags: {}
|
|
620
621
|
},
|
|
621
622
|
loader: async () => {
|
|
622
|
-
const { selectHandler } = await import("./selectHandler-
|
|
623
|
+
const { selectHandler } = await import("./selectHandler-D6cvq60S.js");
|
|
623
624
|
return selectHandler;
|
|
624
625
|
}
|
|
625
626
|
});
|
|
@@ -636,7 +637,7 @@ Examples:
|
|
|
636
637
|
},
|
|
637
638
|
parameters: {},
|
|
638
639
|
loader: async () => {
|
|
639
|
-
const { currentHandler } = await import("./currentHandler-
|
|
640
|
+
const { currentHandler } = await import("./currentHandler-QhCywr3S.js");
|
|
640
641
|
return currentHandler;
|
|
641
642
|
}
|
|
642
643
|
});
|
|
@@ -646,14 +647,21 @@ Examples:
|
|
|
646
647
|
const gatesRunCommand = buildCommand({
|
|
647
648
|
docs: {
|
|
648
649
|
brief: "Run a deliverable's gate commands and report the raw results",
|
|
649
|
-
fullDescription: `Verify a deliverable's gates, run every local command
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
server
|
|
656
|
-
|
|
650
|
+
fullDescription: `Verify a deliverable's gates, run every local command from the current
|
|
651
|
+
directory (run it from the repo root), and report the raw exit code and output
|
|
652
|
+
tails so the server can derive each verdict.
|
|
653
|
+
|
|
654
|
+
File checks (inspect ops, printed as \`npx @levr-one/cli gates inspect '…'\`)
|
|
655
|
+
run inside this CLI and spawn nothing. Every other command runs EXACTLY as the
|
|
656
|
+
server returned it, in /bin/bash -c (or sh).
|
|
657
|
+
|
|
658
|
+
Each command is printed before it runs; use --dry-run to read them first. A
|
|
659
|
+
dry run runs nothing locally and shows, per command, where it would run
|
|
660
|
+
(\`runs\`) and the server's approval (\`approval\`). It still calls the
|
|
661
|
+
server's verify, which records state there. A \`confirm\` approval is not
|
|
662
|
+
prompted for yet: the command runs. The server validates every local command
|
|
663
|
+
before handing it out: a command that fails its check comes back as a
|
|
664
|
+
verification error, never as a command to run.
|
|
657
665
|
|
|
658
666
|
Guided gates are listed, not run: perform them and report what you observed
|
|
659
667
|
with report_gate_results step_results[].
|
|
@@ -697,6 +705,11 @@ Examples:
|
|
|
697
705
|
kind: "boolean",
|
|
698
706
|
default: false,
|
|
699
707
|
brief: "Show detailed output"
|
|
708
|
+
},
|
|
709
|
+
ci: {
|
|
710
|
+
kind: "boolean",
|
|
711
|
+
default: false,
|
|
712
|
+
brief: "Declare this run is CI. On GitHub Actions, attach an OIDC token (audience levr:<workspace_id>); without one the server records the run as unverified"
|
|
700
713
|
}
|
|
701
714
|
},
|
|
702
715
|
aliases: {
|
|
@@ -705,7 +718,7 @@ Examples:
|
|
|
705
718
|
}
|
|
706
719
|
},
|
|
707
720
|
loader: async () => {
|
|
708
|
-
const { gatesRunHandler } = await import("./runHandler-
|
|
721
|
+
const { gatesRunHandler } = await import("./runHandler-itaAVn4U.js");
|
|
709
722
|
return gatesRunHandler;
|
|
710
723
|
}
|
|
711
724
|
});
|
|
@@ -818,7 +831,7 @@ Examples:
|
|
|
818
831
|
}
|
|
819
832
|
},
|
|
820
833
|
loader: async () => {
|
|
821
|
-
const { attachHandler } = await import("./attachHandler-
|
|
834
|
+
const { attachHandler } = await import("./attachHandler-DXZi2ILT.js");
|
|
822
835
|
return attachHandler;
|
|
823
836
|
}
|
|
824
837
|
});
|
|
@@ -894,14 +907,14 @@ Examples:
|
|
|
894
907
|
}
|
|
895
908
|
},
|
|
896
909
|
loader: async () => {
|
|
897
|
-
const { resultAppendHandler } = await import("./appendHandler-
|
|
910
|
+
const { resultAppendHandler } = await import("./appendHandler-DtxLpPu6.js");
|
|
898
911
|
return resultAppendHandler;
|
|
899
912
|
}
|
|
900
913
|
});
|
|
901
914
|
|
|
902
915
|
//#endregion
|
|
903
916
|
//#region package.json
|
|
904
|
-
var version = "0.
|
|
917
|
+
var version = "0.12.0";
|
|
905
918
|
|
|
906
919
|
//#endregion
|
|
907
920
|
//#region src/app.ts
|
|
@@ -922,7 +935,10 @@ const workspaceRoutes = buildRouteMap({
|
|
|
922
935
|
docs: { brief: "Manage workspace selection" }
|
|
923
936
|
});
|
|
924
937
|
const gatesRoutes = buildRouteMap({
|
|
925
|
-
routes: {
|
|
938
|
+
routes: {
|
|
939
|
+
inspect: gatesInspectCommand,
|
|
940
|
+
run: gatesRunCommand
|
|
941
|
+
},
|
|
926
942
|
docs: { brief: "Run a deliverable's gates and report the raw results" }
|
|
927
943
|
});
|
|
928
944
|
const resultRoutes = buildRouteMap({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { client, configureClient } from "./sdk-client-
|
|
2
|
-
import { resolveToken } from "./resolve-token-
|
|
3
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
1
|
+
import { client, configureClient } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import { resolveToken } from "./resolve-token-ByZq05Us.js";
|
|
3
|
+
import { resolveWorkspace } from "./resolve-workspace-BbK3uYQc.js";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/connect.ts
|
|
6
6
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { authGetProfileV1, client, configureClient } from "./sdk-client-
|
|
2
|
-
import { getApiUrl, getTeamId } from "./env-
|
|
3
|
-
import "./token-refresh-
|
|
4
|
-
import { resolveToken } from "./resolve-token-
|
|
5
|
-
import "./workspace-store-
|
|
6
|
-
import { resolveWorkspace } from "./resolve-workspace-
|
|
1
|
+
import { authGetProfileV1, client, configureClient } from "./sdk-client-B4FMd_Fa.js";
|
|
2
|
+
import { getApiUrl, getTeamId } from "./env-CvjMSRd7.js";
|
|
3
|
+
import "./token-refresh-CJB7Qlxy.js";
|
|
4
|
+
import { resolveToken } from "./resolve-token-ByZq05Us.js";
|
|
5
|
+
import "./workspace-store-Bmw104Qa.js";
|
|
6
|
+
import { resolveWorkspace } from "./resolve-workspace-BbK3uYQc.js";
|
|
7
7
|
import chalk from "chalk";
|
|
8
8
|
import { createReadStream } from "node:fs";
|
|
9
9
|
import { basename } from "node:path";
|