@kodycodes/cli 3.24.1 → 3.26.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/{auth-W3G4KLDL.js → auth-6TEKC6OT.js} +6 -6
- package/dist/bin.js +8 -8
- package/dist/{chunk-QPDW62FG.js → chunk-5CHUOLZS.js} +16 -16
- package/dist/chunk-AYPN57BV.js +353 -0
- package/dist/chunk-AYPN57BV.js.map +6 -0
- package/dist/{chunk-5P3JUCPN.js → chunk-BSMRQKNW.js} +2 -2
- package/dist/{chunk-4ZBF45ED.js → chunk-CJV53S22.js} +2 -2
- package/dist/{chunk-4Q5BFP2W.js → chunk-IZFIL5RB.js} +4 -4
- package/dist/{chunk-YYCR2HQJ.js → chunk-KOVGXT4D.js} +3 -3
- package/dist/{chunk-FY4SRIOG.js → chunk-MO2QBCJE.js} +3 -3
- package/dist/{chunk-62N7DN7L.js → chunk-O2TQKQ2K.js} +8 -2
- package/dist/{chunk-5TTSAZGS.js → chunk-OZMFRUJB.js} +31 -7
- package/dist/chunk-OZMFRUJB.js.map +6 -0
- package/dist/chunk-PPVTGF73.js +122 -0
- package/dist/chunk-PPVTGF73.js.map +6 -0
- package/dist/{chunk-23BQJMWJ.js → chunk-RQFL4KYZ.js} +58 -48
- package/dist/chunk-RQFL4KYZ.js.map +6 -0
- package/dist/{chunk-7JU4GNCS.js → chunk-TBR5ASIW.js} +6 -6
- package/dist/{chunk-V4SN6Y7O.js → chunk-V7YI4C3Z.js} +2 -2
- package/dist/{chunk-7K4ECID5.js → chunk-WIDA4WCP.js} +7 -7
- package/dist/{chunk-4AKERLPX.js → chunk-XAXMUIHX.js} +5 -5
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +9 -9
- package/dist/{commands-QATD3XO3.js → commands-ETXCWNJE.js} +50 -2
- package/dist/commands-ETXCWNJE.js.map +6 -0
- package/dist/{dev-command-DOA6H7AO.js → dev-command-U4A4LFE5.js} +54 -141
- package/dist/dev-command-U4A4LFE5.js.map +6 -0
- package/dist/dev-command.d.ts +4 -0
- package/dist/execution-context/client.d.ts +20 -0
- package/dist/{git-credential-IIRNXOF6.js → git-credential-PCAFBONG.js} +7 -7
- package/dist/{local-execute-ABY7E3CW.js → local-execute-PST4P6FP.js} +18 -18
- package/dist/{local-package-graph-PMZQD7WF.js → local-package-graph-ZQQZ5VVS.js} +4 -4
- package/dist/{local-package-run-MPFYWENB.js → local-package-run-ZT4TOT5J.js} +12 -12
- package/dist/local-publish-build-BMTEKLPV.js +17 -0
- package/dist/local-publish-build.d.ts +129 -0
- package/dist/{mock-dep-resolve-BKDOCAEL.js → mock-dep-resolve-NRNDAWZL.js} +2 -2
- package/dist/{mock-fetch-gateway-5K7STXZQ.js → mock-fetch-gateway-NG2VIN2I.js} +3 -3
- package/dist/{mock-local-deps-7GS6RPYL.js → mock-local-deps-4OQDWUWU.js} +6 -6
- package/dist/{mock-server-WOSXMC2L.js → mock-server-AVHUTXAL.js} +4 -4
- package/dist/{open-api-client-UMMG23WD.js → open-api-client-ZJMKTLJD.js} +5 -5
- package/dist/publish-builder-wasm/esbuild.wasm +0 -0
- package/dist/publish-builder-wasm/index_bg.wasm +0 -0
- package/dist/publish-builder.js +190931 -0
- package/dist/publish-offload-TUEW6Q2V.js +118 -0
- package/dist/publish-offload-TUEW6Q2V.js.map +6 -0
- package/dist/publish-offload.d.ts +20 -0
- package/dist/{remote-execute-YOEV6EWE.js → remote-execute-UT5FZJLH.js} +5 -5
- package/dist/{run-executor-RZVDIEHU.js → run-executor-OSEPOREK.js} +35 -4
- package/dist/run-executor-OSEPOREK.js.map +6 -0
- package/dist/{setup-git-2ZMOFHFW.js → setup-git-DMS2YZNH.js} +6 -6
- package/dist/setup-git-DMS2YZNH.js.map +6 -0
- package/dist/{whoami-QT6HKBII.js → whoami-SBJBTHX6.js} +3 -3
- package/dist/workerd-binary-KGOGFIJ2.js +24 -0
- package/dist/workerd-binary-KGOGFIJ2.js.map +6 -0
- package/dist/workerd-process-JL4WS6W5.js +12 -0
- package/dist/workerd-process-JL4WS6W5.js.map +6 -0
- package/package.json +1 -1
- package/dist/chunk-23BQJMWJ.js.map +0 -6
- package/dist/chunk-5TTSAZGS.js.map +0 -6
- package/dist/commands-QATD3XO3.js.map +0 -6
- package/dist/dev-command-DOA6H7AO.js.map +0 -6
- package/dist/run-executor-RZVDIEHU.js.map +0 -6
- /package/dist/{auth-W3G4KLDL.js.map → auth-6TEKC6OT.js.map} +0 -0
- /package/dist/{chunk-QPDW62FG.js.map → chunk-5CHUOLZS.js.map} +0 -0
- /package/dist/{chunk-5P3JUCPN.js.map → chunk-BSMRQKNW.js.map} +0 -0
- /package/dist/{chunk-4ZBF45ED.js.map → chunk-CJV53S22.js.map} +0 -0
- /package/dist/{chunk-4Q5BFP2W.js.map → chunk-IZFIL5RB.js.map} +0 -0
- /package/dist/{chunk-YYCR2HQJ.js.map → chunk-KOVGXT4D.js.map} +0 -0
- /package/dist/{chunk-FY4SRIOG.js.map → chunk-MO2QBCJE.js.map} +0 -0
- /package/dist/{chunk-62N7DN7L.js.map → chunk-O2TQKQ2K.js.map} +0 -0
- /package/dist/{chunk-7JU4GNCS.js.map → chunk-TBR5ASIW.js.map} +0 -0
- /package/dist/{chunk-V4SN6Y7O.js.map → chunk-V7YI4C3Z.js.map} +0 -0
- /package/dist/{chunk-7K4ECID5.js.map → chunk-WIDA4WCP.js.map} +0 -0
- /package/dist/{chunk-4AKERLPX.js.map → chunk-XAXMUIHX.js.map} +0 -0
- /package/dist/{git-credential-IIRNXOF6.js.map → git-credential-PCAFBONG.js.map} +0 -0
- /package/dist/{local-execute-ABY7E3CW.js.map → local-execute-PST4P6FP.js.map} +0 -0
- /package/dist/{local-package-graph-PMZQD7WF.js.map → local-package-graph-ZQQZ5VVS.js.map} +0 -0
- /package/dist/{local-package-run-MPFYWENB.js.map → local-package-run-ZT4TOT5J.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-5K7STXZQ.js.map → local-publish-build-BMTEKLPV.js.map} +0 -0
- /package/dist/{mock-dep-resolve-BKDOCAEL.js.map → mock-dep-resolve-NRNDAWZL.js.map} +0 -0
- /package/dist/{mock-local-deps-7GS6RPYL.js.map → mock-fetch-gateway-NG2VIN2I.js.map} +0 -0
- /package/dist/{mock-server-WOSXMC2L.js.map → mock-local-deps-4OQDWUWU.js.map} +0 -0
- /package/dist/{open-api-client-UMMG23WD.js.map → mock-server-AVHUTXAL.js.map} +0 -0
- /package/dist/{setup-git-2ZMOFHFW.js.map → open-api-client-ZJMKTLJD.js.map} +0 -0
- /package/dist/{remote-execute-YOEV6EWE.js.map → remote-execute-UT5FZJLH.js.map} +0 -0
- /package/dist/{whoami-QT6HKBII.js.map → whoami-SBJBTHX6.js.map} +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
type PublishBuiltTarget = {
|
|
2
|
+
target: {
|
|
3
|
+
kind: string;
|
|
4
|
+
bundleKind: 'app' | 'app-client' | 'module' | 'importable-module';
|
|
5
|
+
artifactName?: string | null;
|
|
6
|
+
entryPoint: string;
|
|
7
|
+
};
|
|
8
|
+
mainModule: string;
|
|
9
|
+
/** Tagged module bytes, exactly what Kody hashes (`workerLoaderModuleBytes`). */
|
|
10
|
+
modules: Record<string, Uint8Array>;
|
|
11
|
+
inlinedPackageIds: Array<string>;
|
|
12
|
+
};
|
|
13
|
+
type PublishBuildFileManifestEntry = {
|
|
14
|
+
path: string;
|
|
15
|
+
size: number;
|
|
16
|
+
sha256: string;
|
|
17
|
+
};
|
|
18
|
+
export type PublishBuilder = {
|
|
19
|
+
publishBuilderVersion: number;
|
|
20
|
+
/**
|
|
21
|
+
* `files` are the commit's raw blobs at repo-root paths. The builder
|
|
22
|
+
* turns them into the snapshot the server keeps (binary encoding,
|
|
23
|
+
* `.kodyignore`) and returns the manifest the server checks.
|
|
24
|
+
*/
|
|
25
|
+
buildPublishTargets(input: {
|
|
26
|
+
files: Array<{
|
|
27
|
+
path: string;
|
|
28
|
+
base64: string;
|
|
29
|
+
}>;
|
|
30
|
+
sourceRoot: string;
|
|
31
|
+
manifestPath: string;
|
|
32
|
+
rootPackageId: string;
|
|
33
|
+
userId: string;
|
|
34
|
+
baseUrl: string;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
files: Array<PublishBuildFileManifestEntry>;
|
|
37
|
+
targets: Array<PublishBuiltTarget>;
|
|
38
|
+
}>;
|
|
39
|
+
close(): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export type PublishBuildTicket = {
|
|
42
|
+
buildId: string;
|
|
43
|
+
packageId: string;
|
|
44
|
+
commit: string;
|
|
45
|
+
/** Entity source root and manifest path; default `/` and `package.json`. */
|
|
46
|
+
sourceRoot?: string;
|
|
47
|
+
manifestPath?: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
/** `…/v1/publish-builds/{buildId}` */
|
|
50
|
+
uploadUrl: string;
|
|
51
|
+
ticket: string;
|
|
52
|
+
};
|
|
53
|
+
export type LocalPublishBuildResult = {
|
|
54
|
+
buildId: string;
|
|
55
|
+
commit: string;
|
|
56
|
+
targets: number;
|
|
57
|
+
uploadedChunks: number;
|
|
58
|
+
reusedChunks: number;
|
|
59
|
+
buildMs: number;
|
|
60
|
+
};
|
|
61
|
+
/** The upload API lives on the Open API host the CLI already talks to. */
|
|
62
|
+
export declare function publishBuildUploadUrl(apiUrl: string, path: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Publish offload: build `ticket.commit` here with the worker's bundler,
|
|
65
|
+
* upload content-addressed 4 MiB chunks (skipping ones already uploaded, so
|
|
66
|
+
* a rerun resumes), then seal the build. Kody verifies and writes the
|
|
67
|
+
* registry when the publish runs with this build id.
|
|
68
|
+
*/
|
|
69
|
+
export declare function runLocalPublishBuild(input: {
|
|
70
|
+
dir: string;
|
|
71
|
+
ticket: PublishBuildTicket;
|
|
72
|
+
apiUrl: string;
|
|
73
|
+
fetchFn?: typeof fetch;
|
|
74
|
+
/** Skip the clean-tree check (context builds use a fresh clone). */
|
|
75
|
+
freshClone?: boolean;
|
|
76
|
+
loadBuilder?: () => Promise<PublishBuilder>;
|
|
77
|
+
log?: (line: string) => void;
|
|
78
|
+
}): Promise<LocalPublishBuildResult>;
|
|
79
|
+
/**
|
|
80
|
+
* Git reads `GIT_CONFIG_*` from its environment, which other local users
|
|
81
|
+
* cannot read (unlike argv), so the clone token never reaches a command
|
|
82
|
+
* line or the fetched remote URL.
|
|
83
|
+
*/
|
|
84
|
+
export declare function contextCloneGitEnv(token: string): {
|
|
85
|
+
GIT_TERMINAL_PROMPT: string;
|
|
86
|
+
GIT_CONFIG_COUNT: string;
|
|
87
|
+
GIT_CONFIG_KEY_0: string;
|
|
88
|
+
GIT_CONFIG_VALUE_0: string;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Context builds: clone one commit with the read-only, single-repo token
|
|
92
|
+
* from the run request (never the operator's CLI login), build, upload.
|
|
93
|
+
*/
|
|
94
|
+
export declare function runContextPublishBuild(input: {
|
|
95
|
+
source: {
|
|
96
|
+
buildId: string;
|
|
97
|
+
packageId: string;
|
|
98
|
+
commit: string;
|
|
99
|
+
sourceRoot?: string;
|
|
100
|
+
manifestPath?: string;
|
|
101
|
+
clone: {
|
|
102
|
+
remote: string;
|
|
103
|
+
token: string;
|
|
104
|
+
};
|
|
105
|
+
upload: {
|
|
106
|
+
path: string;
|
|
107
|
+
ticket: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
userId: string;
|
|
111
|
+
apiUrl: string;
|
|
112
|
+
fetchFn?: typeof fetch;
|
|
113
|
+
loadBuilder?: () => Promise<PublishBuilder>;
|
|
114
|
+
}): Promise<LocalPublishBuildResult>;
|
|
115
|
+
/**
|
|
116
|
+
* `kody dev check --build local`: run the same publish builder over the
|
|
117
|
+
* working tree (tracked + untracked, not ignored) without uploading, so a
|
|
118
|
+
* build problem shows up before publish.
|
|
119
|
+
*/
|
|
120
|
+
export declare function buildWorkingTreeLocally(input: {
|
|
121
|
+
dir: string;
|
|
122
|
+
packageId: string;
|
|
123
|
+
apiUrl: string;
|
|
124
|
+
loadBuilder?: () => Promise<PublishBuilder>;
|
|
125
|
+
}): Promise<{
|
|
126
|
+
targets: number;
|
|
127
|
+
buildMs: number;
|
|
128
|
+
}>;
|
|
129
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveLocalExecuteBearer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BSMRQKNW.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveScopedApiToken
|
|
7
7
|
} from "./chunk-BKUM4PLI.js";
|
|
@@ -51,4 +51,4 @@ async function tryResolveMockDepResolve(input) {
|
|
|
51
51
|
export {
|
|
52
52
|
tryResolveMockDepResolve
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=mock-dep-resolve-
|
|
54
|
+
//# sourceMappingURL=mock-dep-resolve-NRNDAWZL.js.map
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
resolveMockFetchGateway,
|
|
10
10
|
tryHandleMockGatewayFetchCall,
|
|
11
11
|
unmockedRequestError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V7YI4C3Z.js";
|
|
13
13
|
import "./chunk-LQNGII7U.js";
|
|
14
14
|
import "./chunk-42R5NM3P.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-O2TQKQ2K.js";
|
|
16
16
|
import "./chunk-NHRYNRXG.js";
|
|
17
17
|
import "./chunk-UW6AWLXX.js";
|
|
18
18
|
export {
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
tryHandleMockGatewayFetchCall,
|
|
27
27
|
unmockedRequestError
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=mock-fetch-gateway-
|
|
29
|
+
//# sourceMappingURL=mock-fetch-gateway-NG2VIN2I.js.map
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
parseKodyPackageSpecifier,
|
|
5
5
|
resolveLocalPackageModules,
|
|
6
6
|
tryLoadSelfManifest
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-EMEUJKXR.js";
|
|
7
|
+
} from "./chunk-XAXMUIHX.js";
|
|
9
8
|
import "./chunk-YBO6HUV3.js";
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EMEUJKXR.js";
|
|
11
10
|
import "./chunk-42R5NM3P.js";
|
|
11
|
+
import "./chunk-TBR5ASIW.js";
|
|
12
12
|
import "./chunk-SLHFID52.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-IZFIL5RB.js";
|
|
14
14
|
import "./chunk-BKUM4PLI.js";
|
|
15
15
|
import "./chunk-5W34SXJW.js";
|
|
16
16
|
import "./chunk-YFNQZPEP.js";
|
|
17
|
-
import "./chunk-NHRYNRXG.js";
|
|
18
17
|
import "./chunk-RE7LNPRO.js";
|
|
19
18
|
import "./chunk-NKH2L5RA.js";
|
|
19
|
+
import "./chunk-NHRYNRXG.js";
|
|
20
20
|
import "./chunk-UW6AWLXX.js";
|
|
21
21
|
export {
|
|
22
22
|
mergePackageGraphs,
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
resolveLocalPackageModules,
|
|
25
25
|
tryLoadSelfManifest
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=mock-local-deps-
|
|
27
|
+
//# sourceMappingURL=mock-local-deps-4OQDWUWU.js.map
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
mintMockApiToken,
|
|
5
5
|
startMockServer,
|
|
6
6
|
withMockServer
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MO2QBCJE.js";
|
|
8
|
+
import "./chunk-V7YI4C3Z.js";
|
|
9
9
|
import "./chunk-LQNGII7U.js";
|
|
10
10
|
import "./chunk-42R5NM3P.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-O2TQKQ2K.js";
|
|
12
12
|
import "./chunk-NHRYNRXG.js";
|
|
13
13
|
import "./chunk-UW6AWLXX.js";
|
|
14
14
|
export {
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
startMockServer,
|
|
18
18
|
withMockServer
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=mock-server-
|
|
20
|
+
//# sourceMappingURL=mock-server-AVHUTXAL.js.map
|
|
@@ -13,15 +13,15 @@ import {
|
|
|
13
13
|
openApiRequest,
|
|
14
14
|
searchWithApiToken,
|
|
15
15
|
whoamiWithApiToken
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-OZMFRUJB.js";
|
|
17
|
+
import "./chunk-IZFIL5RB.js";
|
|
18
18
|
import "./chunk-BKUM4PLI.js";
|
|
19
19
|
import "./chunk-5W34SXJW.js";
|
|
20
20
|
import "./chunk-YFNQZPEP.js";
|
|
21
|
-
import "./chunk-62N7DN7L.js";
|
|
22
|
-
import "./chunk-NHRYNRXG.js";
|
|
23
21
|
import "./chunk-RE7LNPRO.js";
|
|
24
22
|
import "./chunk-NKH2L5RA.js";
|
|
23
|
+
import "./chunk-O2TQKQ2K.js";
|
|
24
|
+
import "./chunk-NHRYNRXG.js";
|
|
25
25
|
import "./chunk-UW6AWLXX.js";
|
|
26
26
|
export {
|
|
27
27
|
OpenApiError,
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
searchWithApiToken,
|
|
39
39
|
whoamiWithApiToken
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=open-api-client-
|
|
41
|
+
//# sourceMappingURL=open-api-client-ZJMKTLJD.js.map
|
|
Binary file
|
|
Binary file
|