@kodycodes/cli 3.22.6 → 3.22.8
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/README.md +8 -7
- package/dist/api-token-store.d.ts +0 -2
- package/dist/api-token.d.ts +5 -20
- package/dist/{auth-W5RWT6IP.js → auth-4N35PHF7.js} +8 -8
- package/dist/auth-bootstrap.d.ts +3 -18
- package/dist/bin.js +13 -14
- package/dist/bin.js.map +1 -1
- package/dist/capability-proxy.d.ts +5 -35
- package/dist/{chunk-FHLTB67D.js → chunk-2Y4VVWIL.js} +3 -3
- package/dist/chunk-2Y4VVWIL.js.map +6 -0
- package/dist/{chunk-K2G6GYKA.js → chunk-62N7DN7L.js} +1 -1
- package/dist/{chunk-K2G6GYKA.js.map → chunk-62N7DN7L.js.map} +1 -1
- package/dist/{chunk-4LAKIU3Y.js → chunk-C7GRF5V5.js} +2 -2
- package/dist/{chunk-ZUROJOJ2.js → chunk-CA7AAWGW.js} +3 -5
- package/dist/chunk-CA7AAWGW.js.map +6 -0
- package/dist/{chunk-XV6D6HSG.js → chunk-DH5RPHG6.js} +1 -2
- package/dist/chunk-DH5RPHG6.js.map +6 -0
- package/dist/{chunk-G7GRULRW.js → chunk-DHCDUGD2.js} +2 -2
- package/dist/{chunk-YQRMKXCC.js → chunk-DJ6XKQEC.js} +4 -6
- package/dist/chunk-DJ6XKQEC.js.map +6 -0
- package/dist/{chunk-SLNAWWQK.js → chunk-E4R3Y6MM.js} +1 -1
- package/dist/{chunk-SLNAWWQK.js.map → chunk-E4R3Y6MM.js.map} +1 -1
- package/dist/{chunk-DEI4SMFK.js → chunk-F34Q7D5C.js} +4 -8
- package/dist/{chunk-DEI4SMFK.js.map → chunk-F34Q7D5C.js.map} +1 -1
- package/dist/{chunk-M7PRSUCC.js → chunk-IOG54R4P.js} +1 -1
- package/dist/{chunk-M7PRSUCC.js.map → chunk-IOG54R4P.js.map} +1 -1
- package/dist/{chunk-76OYRT4A.js → chunk-LQNGII7U.js} +1 -1
- package/dist/{chunk-76OYRT4A.js.map → chunk-LQNGII7U.js.map} +1 -1
- package/dist/{chunk-RD6ZJU2N.js → chunk-LTSHQAUL.js} +5 -5
- package/dist/{chunk-2XPH7L2P.js → chunk-MIT3TUWB.js} +1 -1
- package/dist/{chunk-2XPH7L2P.js.map → chunk-MIT3TUWB.js.map} +1 -1
- package/dist/{chunk-VP2O3HLT.js → chunk-NKH2L5RA.js} +17 -1
- package/dist/chunk-NKH2L5RA.js.map +6 -0
- package/dist/{chunk-CWQVWIAQ.js → chunk-NZ7JT42A.js} +2 -2
- package/dist/{chunk-CWQVWIAQ.js.map → chunk-NZ7JT42A.js.map} +1 -1
- package/dist/{chunk-FPYLVYHC.js → chunk-OKIL5IUB.js} +58 -42
- package/dist/chunk-OKIL5IUB.js.map +6 -0
- package/dist/{chunk-2FU3OO7F.js → chunk-PQPGW43A.js} +5 -19
- package/dist/chunk-PQPGW43A.js.map +6 -0
- package/dist/{chunk-NPQ2XAK5.js → chunk-QL776E77.js} +3 -3
- package/dist/chunk-QL776E77.js.map +6 -0
- package/dist/{chunk-D6XME4RY.js → chunk-RE7LNPRO.js} +2 -5
- package/dist/{chunk-D6XME4RY.js.map → chunk-RE7LNPRO.js.map} +1 -1
- package/dist/{chunk-ZXNYKFSN.js → chunk-SX3MQHCJ.js} +5 -5
- package/dist/{chunk-ZXNYKFSN.js.map → chunk-SX3MQHCJ.js.map} +1 -1
- package/dist/{chunk-OXBMXZ6S.js → chunk-T3V6WFHI.js} +2 -2
- package/dist/{chunk-5E2HSGBZ.js → chunk-UQIY7RY4.js} +4 -5
- package/dist/chunk-UQIY7RY4.js.map +6 -0
- package/dist/{chunk-SLBG76VX.js → chunk-VA5KCKCC.js} +9 -9
- package/dist/{chunk-SLBG76VX.js.map → chunk-VA5KCKCC.js.map} +1 -1
- package/dist/{chunk-DBNNDB7I.js → chunk-WAZTX2ED.js} +9 -9
- package/dist/{chunk-DBNNDB7I.js.map → chunk-WAZTX2ED.js.map} +1 -1
- package/dist/{chunk-RPOPNWYP.js → chunk-XAXNNOEC.js} +122 -71
- package/dist/chunk-XAXNNOEC.js.map +6 -0
- package/dist/{chunk-OKM2QMOV.js → chunk-ZU5QBMXR.js} +6 -11
- package/dist/{chunk-OKM2QMOV.js.map → chunk-ZU5QBMXR.js.map} +1 -1
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +15 -14
- package/dist/{commands-MZMI3MEY.js → commands-QL2SLSIL.js} +23 -37
- package/dist/commands-QL2SLSIL.js.map +6 -0
- package/dist/credential-call-map.d.ts +0 -6
- package/dist/credential-dir.d.ts +0 -2
- package/dist/credentialed-fetch-scan.d.ts +2 -2
- package/dist/defaults.d.ts +5 -5
- package/dist/dev/dev-assets.d.ts +0 -2
- package/dist/dev/dev-bundler.d.ts +0 -5
- package/dist/dev/dev-events.d.ts +2 -2
- package/dist/dev/dev-port.d.ts +1 -1
- package/dist/dev/error-page.d.ts +2 -4
- package/dist/dev/live-reload.d.ts +2 -1
- package/dist/dev/workerd-process.d.ts +0 -1
- package/dist/{dev-command-3KA52CKG.js → dev-command-P73A4I3C.js} +36 -20
- package/dist/dev-command-P73A4I3C.js.map +6 -0
- package/dist/dev-command.d.ts +0 -9
- package/dist/execution-context/auto-update.d.ts +1 -66
- package/dist/execution-context/client.d.ts +2 -3
- package/dist/execution-context/commands.d.ts +0 -11
- package/dist/execution-context/daemon.d.ts +1 -6
- package/dist/execution-context/fs-access.d.ts +5 -4
- package/dist/execution-context/host-commands.d.ts +3 -47
- package/dist/execution-context/host-fs-bridge.d.ts +0 -2
- package/dist/execution-context/keystore.d.ts +0 -1
- package/dist/execution-context/runner-lock.d.ts +0 -8
- package/dist/execution-context/service-commands.d.ts +17 -8
- package/dist/execution-context/service.d.ts +3 -13
- package/dist/execution-context/windows-command.d.ts +0 -2
- package/dist/fetch-body-secret-resolution.d.ts +0 -1
- package/dist/{git-credential-BT363OJQ.js → git-credential-L5AR3JRT.js} +9 -9
- package/dist/help.d.ts +0 -6
- package/dist/host-catalog.d.ts +2 -5
- package/dist/host-config.d.ts +2 -3
- package/dist/{install-NTS5BOCR.js → install-24DK5RBH.js} +3 -5
- package/dist/{install-NTS5BOCR.js.map → install-24DK5RBH.js.map} +1 -1
- package/dist/install-hosts.d.ts +2 -1
- package/dist/install.d.ts +0 -5
- package/dist/invoke-passthrough.d.ts +0 -1
- package/dist/local-egress.d.ts +2 -1
- package/dist/{local-execute-BI5253MQ.js → local-execute-WDKUY2JK.js} +14 -14
- package/dist/{local-package-graph-WFDNSNOJ.js → local-package-graph-3TRAIUBT.js} +6 -18
- package/dist/local-package-graph.d.ts +0 -34
- package/dist/{local-package-run-RRELUZEM.js → local-package-run-N3O2SD3L.js} +15 -15
- package/dist/local-runtime-bridge.d.ts +2 -5
- package/dist/local-runtime-source.d.ts +0 -2
- package/dist/login-callback-page.d.ts +3 -2
- package/dist/mock/load-package-mocks.d.ts +0 -1
- package/dist/mock/mock-fetch-gateway.d.ts +0 -3
- package/dist/mock/mock-server.d.ts +0 -1
- package/dist/mock/mock-storage.d.ts +2 -2
- package/dist/mock/mock-supported.d.ts +2 -1
- package/dist/{mock-dep-resolve-G7TA4CJB.js → mock-dep-resolve-IVZOW4QE.js} +9 -9
- package/dist/{mock-fetch-gateway-QNUFNYAH.js → mock-fetch-gateway-VAGQFWVN.js} +5 -9
- package/dist/{mock-local-deps-K2NARQ7F.js → mock-local-deps-AUAWEK46.js} +9 -13
- package/dist/mock-local-deps.d.ts +0 -4
- package/dist/{mock-server-2FMSQMBT.js → mock-server-7P53AZUZ.js} +6 -8
- package/dist/node-engine.d.ts +0 -2
- package/dist/oauth-browser.d.ts +0 -3
- package/dist/{open-api-client-DJL2PE7P.js → open-api-client-QVDDK27F.js} +7 -15
- package/dist/open-api-client.d.ts +0 -6
- package/dist/{org-SGFIXD42.js → org-NWSSC7L7.js} +3 -10
- package/dist/org-NWSSC7L7.js.map +6 -0
- package/dist/org.d.ts +0 -2
- package/dist/package-collaborators.d.ts +2 -4
- package/dist/package-local-runtime-source.d.ts +2 -2
- package/dist/{package-manifest-KCLPIMOZ.js → package-manifest-AEBPXNCJ.js} +3 -3
- package/dist/package-manifest.d.ts +7 -6
- package/dist/process-info.d.ts +0 -2
- package/dist/publish-exit.d.ts +0 -11
- package/dist/{remote-execute-KUSUI6UT.js → remote-execute-PBSB32YY.js} +8 -8
- package/dist/{run-executor-4TY5KNQQ.js → run-executor-TSI7J56V.js} +16 -16
- package/dist/{setup-git-KBH7GA6E.js → setup-git-S57U4NT5.js} +8 -38
- package/dist/setup-git.d.ts +5 -59
- package/dist/{skill-IY263IXV.js → skill-QM3N6H55.js} +3 -3
- package/dist/skill-refresh.js +2 -2
- package/dist/{store-ZPBJTYRI.js → store-4G2J5DRZ.js} +3 -9
- package/dist/store.d.ts +2 -6
- package/dist/{structured-error-QYNRZZKC.js → structured-error-KS24XUSZ.js} +2 -4
- package/dist/structured-error.d.ts +2 -2
- package/dist/{whoami-SGE7VKGY.js → whoami-RUMTWBZL.js} +6 -7
- package/dist/{whoami-SGE7VKGY.js.map → whoami-RUMTWBZL.js.map} +1 -1
- package/dist/whoami.d.ts +0 -11
- package/dist/workerd-binary.d.ts +2 -3
- package/package.json +1 -1
- package/dist/chunk-2FU3OO7F.js.map +0 -6
- package/dist/chunk-5E2HSGBZ.js.map +0 -6
- package/dist/chunk-7PRJ36I5.js +0 -23
- package/dist/chunk-7PRJ36I5.js.map +0 -6
- package/dist/chunk-FHLTB67D.js.map +0 -6
- package/dist/chunk-FPYLVYHC.js.map +0 -6
- package/dist/chunk-NPQ2XAK5.js.map +0 -6
- package/dist/chunk-RPOPNWYP.js.map +0 -6
- package/dist/chunk-VP2O3HLT.js.map +0 -6
- package/dist/chunk-XV6D6HSG.js.map +0 -6
- package/dist/chunk-YQRMKXCC.js.map +0 -6
- package/dist/chunk-ZUROJOJ2.js.map +0 -6
- package/dist/commands-MZMI3MEY.js.map +0 -6
- package/dist/dev-command-3KA52CKG.js.map +0 -6
- package/dist/org-SGFIXD42.js.map +0 -6
- /package/dist/{auth-W5RWT6IP.js.map → auth-4N35PHF7.js.map} +0 -0
- /package/dist/{chunk-4LAKIU3Y.js.map → chunk-C7GRF5V5.js.map} +0 -0
- /package/dist/{chunk-G7GRULRW.js.map → chunk-DHCDUGD2.js.map} +0 -0
- /package/dist/{chunk-RD6ZJU2N.js.map → chunk-LTSHQAUL.js.map} +0 -0
- /package/dist/{chunk-OXBMXZ6S.js.map → chunk-T3V6WFHI.js.map} +0 -0
- /package/dist/{git-credential-BT363OJQ.js.map → git-credential-L5AR3JRT.js.map} +0 -0
- /package/dist/{local-execute-BI5253MQ.js.map → local-execute-WDKUY2JK.js.map} +0 -0
- /package/dist/{local-package-graph-WFDNSNOJ.js.map → local-package-graph-3TRAIUBT.js.map} +0 -0
- /package/dist/{local-package-run-RRELUZEM.js.map → local-package-run-N3O2SD3L.js.map} +0 -0
- /package/dist/{mock-dep-resolve-G7TA4CJB.js.map → mock-dep-resolve-IVZOW4QE.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-QNUFNYAH.js.map → mock-fetch-gateway-VAGQFWVN.js.map} +0 -0
- /package/dist/{mock-local-deps-K2NARQ7F.js.map → mock-local-deps-AUAWEK46.js.map} +0 -0
- /package/dist/{mock-server-2FMSQMBT.js.map → mock-server-7P53AZUZ.js.map} +0 -0
- /package/dist/{open-api-client-DJL2PE7P.js.map → open-api-client-QVDDK27F.js.map} +0 -0
- /package/dist/{package-manifest-KCLPIMOZ.js.map → package-manifest-AEBPXNCJ.js.map} +0 -0
- /package/dist/{remote-execute-KUSUI6UT.js.map → remote-execute-PBSB32YY.js.map} +0 -0
- /package/dist/{run-executor-4TY5KNQQ.js.map → run-executor-TSI7J56V.js.map} +0 -0
- /package/dist/{setup-git-KBH7GA6E.js.map → setup-git-S57U4NT5.js.map} +0 -0
- /package/dist/{skill-IY263IXV.js.map → skill-QM3N6H55.js.map} +0 -0
- /package/dist/{store-ZPBJTYRI.js.map → store-4G2J5DRZ.js.map} +0 -0
- /package/dist/{structured-error-QYNRZZKC.js.map → structured-error-KS24XUSZ.js.map} +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
OpenApiError,
|
|
4
|
-
apiOperationUsesQueryInputs,
|
|
5
|
-
apiRequestIdHeader,
|
|
6
4
|
assertApiOperationAllowed,
|
|
7
5
|
buildOpenApiHttpRequest,
|
|
8
6
|
callOpenApiOperation,
|
|
@@ -11,25 +9,21 @@ import {
|
|
|
11
9
|
formatOpenApiHttpDebugLine,
|
|
12
10
|
indexOpenApiOperations,
|
|
13
11
|
loadOpenApiOperations,
|
|
14
|
-
openApiDocumentPath,
|
|
15
12
|
openApiGet,
|
|
16
13
|
openApiRequest,
|
|
17
14
|
searchWithApiToken,
|
|
18
|
-
toolResultFromHttpBody,
|
|
19
15
|
whoamiWithApiToken
|
|
20
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F34Q7D5C.js";
|
|
21
17
|
import "./chunk-46IJPEID.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-OKIL5IUB.js";
|
|
19
|
+
import "./chunk-2Y4VVWIL.js";
|
|
20
|
+
import "./chunk-62N7DN7L.js";
|
|
25
21
|
import "./chunk-NHRYNRXG.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-RE7LNPRO.js";
|
|
23
|
+
import "./chunk-NKH2L5RA.js";
|
|
28
24
|
import "./chunk-UW6AWLXX.js";
|
|
29
25
|
export {
|
|
30
26
|
OpenApiError,
|
|
31
|
-
apiOperationUsesQueryInputs,
|
|
32
|
-
apiRequestIdHeader,
|
|
33
27
|
assertApiOperationAllowed,
|
|
34
28
|
buildOpenApiHttpRequest,
|
|
35
29
|
callOpenApiOperation,
|
|
@@ -38,11 +32,9 @@ export {
|
|
|
38
32
|
formatOpenApiHttpDebugLine,
|
|
39
33
|
indexOpenApiOperations,
|
|
40
34
|
loadOpenApiOperations,
|
|
41
|
-
openApiDocumentPath,
|
|
42
35
|
openApiGet,
|
|
43
36
|
openApiRequest,
|
|
44
37
|
searchWithApiToken,
|
|
45
|
-
toolResultFromHttpBody,
|
|
46
38
|
whoamiWithApiToken
|
|
47
39
|
};
|
|
48
|
-
//# sourceMappingURL=open-api-client-
|
|
40
|
+
//# sourceMappingURL=open-api-client-QVDDK27F.js.map
|
|
@@ -52,8 +52,6 @@ export declare class OpenApiError extends Error {
|
|
|
52
52
|
sent?: RequestSentStatus;
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
/** Path to the live OpenAPI document on the Kody API origin. */
|
|
56
|
-
export declare const openApiDocumentPath = "openapi.json";
|
|
57
55
|
/**
|
|
58
56
|
* Bootstrap redeem returns a `kody_at_…` once. Agents must use
|
|
59
57
|
* `kody auth bootstrap --code` so the token is stored and never printed.
|
|
@@ -79,8 +77,6 @@ export declare function openApiRequest(input: OpenApiClientInput & {
|
|
|
79
77
|
query?: Record<string, unknown>;
|
|
80
78
|
body?: Record<string, unknown>;
|
|
81
79
|
}): Promise<unknown>;
|
|
82
|
-
/** Response header naming one API request (set by the `api.kody.codes` edge). */
|
|
83
|
-
export declare const apiRequestIdHeader = "x-kody-request-id";
|
|
84
80
|
/**
|
|
85
81
|
* Call one Open API operation by `operationId` + flat `params`, matching the
|
|
86
82
|
* MCP `api` tool shape. Resolves method/path from `/openapi.json`.
|
|
@@ -105,7 +101,6 @@ export declare function buildOpenApiHttpRequest(input: {
|
|
|
105
101
|
query?: Record<string, unknown>;
|
|
106
102
|
body?: Record<string, unknown>;
|
|
107
103
|
};
|
|
108
|
-
export declare function apiOperationUsesQueryInputs(method: string): boolean;
|
|
109
104
|
export declare function loadOpenApiOperations(input: {
|
|
110
105
|
apiUrl?: string;
|
|
111
106
|
fetchFn?: typeof fetch;
|
|
@@ -122,7 +117,6 @@ export declare function searchWithApiToken(input: OpenApiClientInput & {
|
|
|
122
117
|
limit?: number;
|
|
123
118
|
entity?: string;
|
|
124
119
|
}): Promise<ToolCallResult>;
|
|
125
|
-
export declare function toolResultFromHttpBody(payload: unknown): ToolCallResult;
|
|
126
120
|
export declare function whoamiWithApiToken(input: OpenApiClientInput): Promise<{
|
|
127
121
|
mcpUrl?: undefined;
|
|
128
122
|
apiUrl: string;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
resolveOrgSlug
|
|
4
|
-
} from "./chunk-7PRJ36I5.js";
|
|
5
|
-
import {
|
|
6
|
-
orgEnvVar,
|
|
7
3
|
orgSlugFromFlag
|
|
8
4
|
} from "./chunk-CWWHR4FH.js";
|
|
9
5
|
import {
|
|
10
6
|
setActiveOrg
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RE7LNPRO.js";
|
|
12
8
|
import {
|
|
13
9
|
defaultMcpUrl
|
|
14
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NKH2L5RA.js";
|
|
15
11
|
import "./chunk-UW6AWLXX.js";
|
|
16
12
|
|
|
17
13
|
// src/org.ts
|
|
@@ -91,9 +87,6 @@ export {
|
|
|
91
87
|
chooseOrgInteractively,
|
|
92
88
|
formatOrgListHuman,
|
|
93
89
|
formatOrgListJson,
|
|
94
|
-
orgEnvVar,
|
|
95
|
-
orgSlugFromFlag,
|
|
96
|
-
resolveOrgSlug,
|
|
97
90
|
useOrg
|
|
98
91
|
};
|
|
99
|
-
//# sourceMappingURL=org-
|
|
92
|
+
//# sourceMappingURL=org-NWSSC7L7.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/org.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;AAAA,SAAS,uBAAuB;AAWzB,SAAS,mBAAmB,MAAgC;AAClE,MAAI,KAAK,WAAW,GAAG;AACtB,WAAO;AAAA,EACR;AACA,QAAM,QAAuB,CAAC;AAC9B,aAAW,OAAO,MAAM;AACvB,UAAM,OAAO,IAAI,SAAS,MAAM;AAChC,UAAM,UAAU,IAAI,UAAU,qBAAqB;AACnD,UAAM,KAAK,GAAG,IAAI,IAAI,IAAI,IAAI,GAAG,IAAI,SAAS,eAAe,EAAE,GAAG,OAAO,EAAE;AAAA,EAC5E;AACA,SAAO,GAAG,MAAM,KAAK,IAAI,CAAC;AAAA;AAC3B;AAEO,SAAS,kBAAkB,MAAgC;AACjE,SAAO,GAAG,KAAK;AAAA,IACd;AAAA,MACC,MAAM,KAAK,IAAI,CAAC,SAAS;AAAA,QACxB,MAAM,IAAI,UAAU,OAAO,IAAI;AAAA,QAC/B,QAAQ,IAAI;AAAA,QACZ,GAAI,IAAI,UAAU,EAAE,SAAS,KAAK,IAAI,CAAC;AAAA,MACxC,EAAE;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACD,CAAC;AAAA;AACF;AAMA,eAAsB,uBAAuB,OAKzB;AACnB,QAAM,QAAQ,MAAM,SAAS,QAAQ,QAAQ,MAAM,KAAK;AACxD,MAAI,CAAC,OAAO;AACX,UAAM,IAAI;AAAA,MACT;AAAA,IACD;AAAA,EACD;AACA,QAAM,SAAS,MAAM,KAAK,OAAO,CAAC,QAAQ,CAAC,IAAI,OAAO;AACtD,MAAI,OAAO,WAAW,GAAG;AACxB,UAAM,IAAI;AAAA,MACT;AAAA,IACD;AAAA,EACD;AACA,QAAM,SAAS,MAAM,UAAU,QAAQ;AACvC,SAAO,MAAM,2BAA2B;AACxC,SAAO,QAAQ,CAAC,KAAK,UAAU;AAC9B,UAAM,SAAS,IAAI,SAAS,cAAc;AAC1C,WAAO,MAAM,KAAK,QAAQ,CAAC,KAAK,IAAI,IAAI,GAAG,MAAM;AAAA,CAAI;AAAA,EACtD,CAAC;AACD,QAAM,KAAK,gBAAgB;AAAA,IAC1B,OAAO,MAAM,SAAS,QAAQ;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACX,CAAC;AACD,MAAI;AACH,UAAM,SAAS,MAAM,IAAI,QAAgB,CAAC,YAAY;AACrD,SAAG,SAAS,sBAAsB,CAAC,SAAS,QAAQ,KAAK,KAAK,CAAC,CAAC;AAAA,IACjE,CAAC;AACD,QAAI,CAAC,QAAQ;AACZ,YAAM,IAAI,MAAM,2BAA2B;AAAA,IAC5C;AACA,UAAM,WAAW,OAAO,MAAM;AAC9B,QACC,OAAO,UAAU,QAAQ,KACzB,YAAY,KACZ,YAAY,OAAO,QAClB;AACD,aAAO,OAAO,WAAW,CAAC,EAAG;AAAA,IAC9B;AACA,WAAO,gBAAgB,MAAM;AAAA,EAC9B,UAAE;AACD,OAAG,MAAM;AAAA,EACV;AACD;AAEO,SAAS,OACf,MACA,SAAiB,eACjB,SACA,YAC0B;AAC1B,SAAO,aAAa,QAAQ,gBAAgB,IAAI,GAAG,SAAS,UAAU;AACvE;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/org.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type ListedOrg, type MultiOrgCredentialStore, type SecretBackend, type StoreResolution } from './store.js';
|
|
2
|
-
export { orgEnvVar, orgSlugFromFlag } from './org-slug.js';
|
|
3
|
-
export { resolveOrgSlug } from './org-resolve.js';
|
|
4
2
|
export declare function formatOrgListHuman(orgs: Array<ListedOrg>): string;
|
|
5
3
|
export declare function formatOrgListJson(orgs: Array<ListedOrg>): string;
|
|
6
4
|
/**
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
* `packageCollaboratorSet`, `packageCollaboratorRemove`). They only add teams
|
|
5
5
|
* and members of the org the request is bound to (`--org`).
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare const packageCollaboratorPresets: readonly ["read", "use", "contribute", "manage"];
|
|
8
|
+
type PackageCollaboratorPreset = (typeof packageCollaboratorPresets)[number];
|
|
9
9
|
export type PackageCollaboratorAction = 'collaborators' | 'grant' | 'revoke';
|
|
10
|
-
export declare const packageCollaboratorActions: ReadonlyArray<PackageCollaboratorAction>;
|
|
11
10
|
export declare function isPackageCollaboratorAction(value: string | undefined): value is PackageCollaboratorAction;
|
|
12
11
|
export declare const packageCollaboratorUsage: string;
|
|
13
12
|
type Subject = {
|
|
@@ -77,7 +76,6 @@ type CollaboratorList = {
|
|
|
77
76
|
} | null;
|
|
78
77
|
};
|
|
79
78
|
export type CallOperation = (operationId: string, params: Record<string, unknown>) => Promise<unknown>;
|
|
80
|
-
export declare function collaboratorLabel(collaborator: PackageCollaborator): string;
|
|
81
79
|
/** Plain-text table for `kody package collaborators`. */
|
|
82
80
|
export declare function formatCollaboratorList(list: CollaboratorList): string;
|
|
83
81
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* webhook/subscription). Same CapabilityProxy bridge as local-execute, plus a
|
|
4
4
|
* real `packageContext` and mock-backed `packageStorage()` hops.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { localWorkerModuleNames, runSecretEnvVar, runSecretHeader } from './local-runtime-source.js';
|
|
7
7
|
export type PackageLocalContext = {
|
|
8
8
|
packageId: string;
|
|
9
9
|
kodyId: string;
|
|
@@ -15,7 +15,7 @@ export type PackageLocalContext = {
|
|
|
15
15
|
clientModuleUrl: string | null;
|
|
16
16
|
cookiePrefix: string;
|
|
17
17
|
};
|
|
18
|
-
export {
|
|
18
|
+
export { localWorkerModuleNames, runSecretEnvVar, runSecretHeader };
|
|
19
19
|
/**
|
|
20
20
|
* Runtime module for package-local workerd. `packageStorage()` hops through the
|
|
21
21
|
* bridge to mock `__mockPackageStorage*` (or refuses clearly on prod until the
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
loadPackageManifest,
|
|
4
4
|
resolveExportModulePath,
|
|
5
5
|
resolvePackagePath
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-DHCDUGD2.js";
|
|
7
|
+
import "./chunk-DH5RPHG6.js";
|
|
8
8
|
import "./chunk-MHN2FS4K.js";
|
|
9
9
|
import "./chunk-UW6AWLXX.js";
|
|
10
10
|
export {
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
resolveExportModulePath,
|
|
13
13
|
resolvePackagePath
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=package-manifest-
|
|
15
|
+
//# sourceMappingURL=package-manifest-AEBPXNCJ.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Read and validate the authored package.json `kody` surface used by `kody dev`.
|
|
3
3
|
*/
|
|
4
4
|
/** Mirrors `@kody-internal/shared/jobs/package-job-schedule` (kept local so published CLI `.d.ts` does not reference the private package). */
|
|
5
|
-
|
|
5
|
+
type PackageJobSchedule = {
|
|
6
6
|
type: 'cron';
|
|
7
7
|
expression: string;
|
|
8
8
|
} | {
|
|
9
9
|
type: 'interval';
|
|
10
10
|
every: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type PackageAppManifest = {
|
|
13
13
|
entry: string;
|
|
14
14
|
/** Browser entry (string form, or `entry` of the object form). */
|
|
15
15
|
client?: string;
|
|
@@ -18,13 +18,13 @@ export type PackageAppManifest = {
|
|
|
18
18
|
assets?: string;
|
|
19
19
|
};
|
|
20
20
|
/** Local-only `kody dev` settings (`package.json#kody.dev`); never published behavior. */
|
|
21
|
-
|
|
21
|
+
type PackageDevManifest = {
|
|
22
22
|
/** Shell command run from the package root before every `kody dev` build. */
|
|
23
23
|
prebuild?: string;
|
|
24
24
|
/** Root-relative path prefixes the watcher ignores (e.g. prebuild outputs). */
|
|
25
25
|
ignore: Array<string>;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
type PackageJobManifest = {
|
|
28
28
|
entry: string;
|
|
29
29
|
/** Normalized for display / check output. */
|
|
30
30
|
schedule: string;
|
|
@@ -33,12 +33,12 @@ export type PackageJobManifest = {
|
|
|
33
33
|
timezone?: string;
|
|
34
34
|
enabled?: boolean;
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
type PackageWebhookManifest = {
|
|
37
37
|
export: string;
|
|
38
38
|
description?: string;
|
|
39
39
|
inputMode?: 'request' | 'params';
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
type PackageSubscriptionManifest = {
|
|
42
42
|
handler: string;
|
|
43
43
|
description?: string;
|
|
44
44
|
filters?: unknown;
|
|
@@ -65,3 +65,4 @@ export declare function resolvePackagePath(manifest: KodyPackageManifest, relati
|
|
|
65
65
|
export declare function resolveExportModulePath(manifest: KodyPackageManifest, exportRef: string, options?: {
|
|
66
66
|
exportsOnly?: boolean;
|
|
67
67
|
}): string;
|
|
68
|
+
export {};
|
package/dist/process-info.d.ts
CHANGED
|
@@ -2,7 +2,5 @@ export type ProcessInfo = {
|
|
|
2
2
|
name: string;
|
|
3
3
|
cmd?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare function processHaystack(process: ProcessInfo): string;
|
|
6
|
-
export declare function processBaseName(process: ProcessInfo): string;
|
|
7
5
|
export declare function nameEquals(process: ProcessInfo, ...names: Array<string>): boolean;
|
|
8
6
|
export declare function haystackMatches(process: ProcessInfo, pattern: RegExp): boolean;
|
package/dist/publish-exit.d.ts
CHANGED
|
@@ -5,17 +5,6 @@
|
|
|
5
5
|
* Statuses come from `packagePublishExternalPush` /
|
|
6
6
|
* `RepoExternalPublishResult` (worker repo types + publish-external-push).
|
|
7
7
|
*/
|
|
8
|
-
/** Terminal success: tip advanced or true no-op (incl. artifacts_rebuilt). */
|
|
9
|
-
export declare const publishCliSuccessStatuses: readonly ["published", "already_published"];
|
|
10
|
-
/**
|
|
11
|
-
* Async handoff is not a refusal — the durable run is accepted. Poll
|
|
12
|
-
* workflowRunList({ workflow_id }) for the terminal publish status.
|
|
13
|
-
*/
|
|
14
|
-
export declare const publishCliAcceptedStatuses: readonly ["dispatched"];
|
|
15
|
-
export type PublishCliSuccessStatus = (typeof publishCliSuccessStatuses)[number];
|
|
16
|
-
export type PublishCliAcceptedStatus = (typeof publishCliAcceptedStatuses)[number];
|
|
17
|
-
export declare function readPublishStatus(result: unknown): string | null;
|
|
18
|
-
export declare function isPublishCliSuccessStatus(status: string | null): status is PublishCliSuccessStatus | PublishCliAcceptedStatus;
|
|
19
8
|
/** Exit 0 for published / already_published / dispatched; else 1. */
|
|
20
9
|
export declare function publishCliExitCode(result: unknown): 0 | 1;
|
|
21
10
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveExecuteInvokeCode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E4R3Y6MM.js";
|
|
5
5
|
import {
|
|
6
6
|
openApiRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F34Q7D5C.js";
|
|
8
8
|
import "./chunk-46IJPEID.js";
|
|
9
9
|
import {
|
|
10
10
|
assertTokenSafeApiUrl
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OKIL5IUB.js";
|
|
12
|
+
import "./chunk-2Y4VVWIL.js";
|
|
13
|
+
import "./chunk-62N7DN7L.js";
|
|
14
14
|
import "./chunk-NHRYNRXG.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-RE7LNPRO.js";
|
|
16
|
+
import "./chunk-NKH2L5RA.js";
|
|
17
17
|
import "./chunk-UW6AWLXX.js";
|
|
18
18
|
|
|
19
19
|
// src/remote-execute.ts
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
resolveRemoteExecuteCode,
|
|
149
149
|
runRemoteExecuteWithToken
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=remote-execute-
|
|
151
|
+
//# sourceMappingURL=remote-execute-PBSB32YY.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-NZ7JT42A.js";
|
|
3
|
+
import "./chunk-VA5KCKCC.js";
|
|
4
|
+
import "./chunk-T3V6WFHI.js";
|
|
5
|
+
import "./chunk-QL776E77.js";
|
|
6
6
|
import "./chunk-YBO6HUV3.js";
|
|
7
7
|
import {
|
|
8
8
|
egressPolicyFromGrant
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZU5QBMXR.js";
|
|
10
|
+
import "./chunk-DJ6XKQEC.js";
|
|
11
|
+
import "./chunk-LQNGII7U.js";
|
|
12
|
+
import "./chunk-DH5RPHG6.js";
|
|
13
13
|
import "./chunk-MHN2FS4K.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MIT3TUWB.js";
|
|
15
15
|
import "./chunk-CASGRYOF.js";
|
|
16
16
|
import "./chunk-46IJPEID.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-OKIL5IUB.js";
|
|
18
|
+
import "./chunk-2Y4VVWIL.js";
|
|
19
|
+
import "./chunk-62N7DN7L.js";
|
|
20
20
|
import "./chunk-NHRYNRXG.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-RE7LNPRO.js";
|
|
22
|
+
import "./chunk-NKH2L5RA.js";
|
|
23
23
|
import "./chunk-UW6AWLXX.js";
|
|
24
24
|
|
|
25
25
|
// src/execution-context/run-executor.ts
|
|
26
26
|
async function runContextRun(input) {
|
|
27
27
|
const hostCommands = input.hostCommands;
|
|
28
|
-
const { runLocalExecute } = await import("./local-execute-
|
|
28
|
+
const { runLocalExecute } = await import("./local-execute-WDKUY2JK.js");
|
|
29
29
|
let timing;
|
|
30
30
|
const result = await runLocalExecute({
|
|
31
31
|
code: input.request.source.code,
|
|
@@ -72,4 +72,4 @@ async function runContextRun(input) {
|
|
|
72
72
|
export {
|
|
73
73
|
runContextRun
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=run-executor-
|
|
75
|
+
//# sourceMappingURL=run-executor-TSI7J56V.js.map
|
|
@@ -5,48 +5,33 @@ import {
|
|
|
5
5
|
authRemoveGit,
|
|
6
6
|
authSetupGit,
|
|
7
7
|
cliExactVersionForNpx,
|
|
8
|
-
cliTokenLifetimeAliases,
|
|
9
|
-
cliVersionGt,
|
|
10
|
-
cliVersionGte,
|
|
11
8
|
cliVersionSupportsGitCredential,
|
|
12
|
-
compareCliSemver,
|
|
13
9
|
decideSetupGitToken,
|
|
14
|
-
defaultGitConfigGetRunner,
|
|
15
|
-
defaultGitConfigRunner,
|
|
16
10
|
describeKodyCredentialKind,
|
|
17
|
-
describeSetupGitUnauthorized,
|
|
18
11
|
ensureSetupGitScopes,
|
|
19
12
|
exactNpxHelperVersion,
|
|
20
|
-
fetchTokenCurrentMetadata,
|
|
21
13
|
formatAuthRemoveGitReport,
|
|
22
|
-
gitApiTokenRefreshSkewMs,
|
|
23
14
|
gitCredentialHelperCommand,
|
|
24
15
|
gitCredentialHelperNeedsRepair,
|
|
25
|
-
gitCredentialHelperPinFallbackVersion,
|
|
26
16
|
gitCredentialHostFromMcpUrl,
|
|
27
|
-
gitCredentialMinCliVersion,
|
|
28
17
|
installGitCredentialConfig,
|
|
29
18
|
isEphemeralNpxEntryPath,
|
|
30
19
|
isKodyGitCredentialHelperValue,
|
|
31
20
|
isMajorOnlyNpxHelper,
|
|
32
|
-
parseCliSemver,
|
|
33
|
-
readCliPackageVersion,
|
|
34
|
-
readVersionFromKodyBinary,
|
|
35
21
|
refreshGitCredentialHelperPinIfNeeded,
|
|
36
22
|
scopesIncludeRequired,
|
|
37
|
-
setupGitConfigScopes,
|
|
38
23
|
setupGitDefaultScopes,
|
|
39
24
|
setupGitRequiredScopes
|
|
40
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PQPGW43A.js";
|
|
41
26
|
import "./chunk-6ZYUGXVW.js";
|
|
42
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-F34Q7D5C.js";
|
|
43
28
|
import "./chunk-46IJPEID.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-OKIL5IUB.js";
|
|
30
|
+
import "./chunk-2Y4VVWIL.js";
|
|
31
|
+
import "./chunk-62N7DN7L.js";
|
|
47
32
|
import "./chunk-NHRYNRXG.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-RE7LNPRO.js";
|
|
34
|
+
import "./chunk-NKH2L5RA.js";
|
|
50
35
|
import "./chunk-UW6AWLXX.js";
|
|
51
36
|
export {
|
|
52
37
|
apiTokenNeedsRefresh,
|
|
@@ -54,37 +39,22 @@ export {
|
|
|
54
39
|
authRemoveGit,
|
|
55
40
|
authSetupGit,
|
|
56
41
|
cliExactVersionForNpx,
|
|
57
|
-
cliTokenLifetimeAliases,
|
|
58
|
-
cliVersionGt,
|
|
59
|
-
cliVersionGte,
|
|
60
42
|
cliVersionSupportsGitCredential,
|
|
61
|
-
compareCliSemver,
|
|
62
43
|
decideSetupGitToken,
|
|
63
|
-
defaultGitConfigGetRunner,
|
|
64
|
-
defaultGitConfigRunner,
|
|
65
44
|
describeKodyCredentialKind,
|
|
66
|
-
describeSetupGitUnauthorized,
|
|
67
45
|
ensureSetupGitScopes,
|
|
68
46
|
exactNpxHelperVersion,
|
|
69
|
-
fetchTokenCurrentMetadata,
|
|
70
47
|
formatAuthRemoveGitReport,
|
|
71
|
-
gitApiTokenRefreshSkewMs,
|
|
72
48
|
gitCredentialHelperCommand,
|
|
73
49
|
gitCredentialHelperNeedsRepair,
|
|
74
|
-
gitCredentialHelperPinFallbackVersion,
|
|
75
50
|
gitCredentialHostFromMcpUrl,
|
|
76
|
-
gitCredentialMinCliVersion,
|
|
77
51
|
installGitCredentialConfig,
|
|
78
52
|
isEphemeralNpxEntryPath,
|
|
79
53
|
isKodyGitCredentialHelperValue,
|
|
80
54
|
isMajorOnlyNpxHelper,
|
|
81
|
-
parseCliSemver,
|
|
82
|
-
readCliPackageVersion,
|
|
83
|
-
readVersionFromKodyBinary,
|
|
84
55
|
refreshGitCredentialHelperPinIfNeeded,
|
|
85
56
|
scopesIncludeRequired,
|
|
86
|
-
setupGitConfigScopes,
|
|
87
57
|
setupGitDefaultScopes,
|
|
88
58
|
setupGitRequiredScopes
|
|
89
59
|
};
|
|
90
|
-
//# sourceMappingURL=setup-git-
|
|
60
|
+
//# sourceMappingURL=setup-git-S57U4NT5.js.map
|
package/dist/setup-git.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ResolvedCliTokenLifetime } from './auth-bootstrap.js';
|
|
2
2
|
import { type StoredApiToken } from './api-token-store.js';
|
|
3
3
|
import { type SecretBackend, type StoreResolution } from './store.js';
|
|
4
4
|
import { which as whichOnPath } from './which.js';
|
|
@@ -23,11 +23,6 @@ export declare function gitCredentialHostFromMcpUrl(mcpUrl?: string): string;
|
|
|
23
23
|
export declare function scopesIncludeRequired(scopes: ReadonlyArray<string> | null | undefined, required?: ReadonlyArray<string>): boolean;
|
|
24
24
|
/** Ensure package:read/write are present; preserve order of the base list. */
|
|
25
25
|
export declare function ensureSetupGitScopes(base?: ReadonlyArray<string>): Array<string>;
|
|
26
|
-
export declare function fetchTokenCurrentMetadata(input: {
|
|
27
|
-
token: string;
|
|
28
|
-
apiUrl?: string;
|
|
29
|
-
fetchFn?: typeof fetch;
|
|
30
|
-
}): Promise<TokenCurrentMetadata>;
|
|
31
26
|
/**
|
|
32
27
|
* User-owned tokens (and the git helper) require `org_binding` on token
|
|
33
28
|
* metadata. Older origins omit the field — refuse rather than install a
|
|
@@ -58,10 +53,6 @@ export type GitConfigRunner = (args: ReadonlyArray<string>) => {
|
|
|
58
53
|
status: number;
|
|
59
54
|
stderr: string;
|
|
60
55
|
};
|
|
61
|
-
export declare function defaultGitConfigRunner(args: ReadonlyArray<string>): {
|
|
62
|
-
status: number;
|
|
63
|
-
stderr: string;
|
|
64
|
-
};
|
|
65
56
|
/**
|
|
66
57
|
* Install URL-scoped credential helper config from the server contract:
|
|
67
58
|
* `credential.https://<host>.helper` and `.useHttpPath true`.
|
|
@@ -76,36 +67,11 @@ export declare function installGitCredentialConfig(input: {
|
|
|
76
67
|
helperCommand: string;
|
|
77
68
|
scope: '--global' | '--local';
|
|
78
69
|
};
|
|
79
|
-
/** Refresh git HTTPS tokens this long before `expiresAt` (or when past it). */
|
|
80
|
-
export declare const gitApiTokenRefreshSkewMs: number;
|
|
81
|
-
/**
|
|
82
|
-
* First published CLI line that includes `git-credential` / `auth setup-git`.
|
|
83
|
-
* Global installs older than this must not be preferred as the helper binary.
|
|
84
|
-
*/
|
|
85
|
-
export declare const gitCredentialMinCliVersion = "1.16.0";
|
|
86
|
-
/**
|
|
87
|
-
* Fallback exact pin for local `0.0.0-semantically-released` builds. Published
|
|
88
|
-
* tarballs always carry a real x.y.z from semantic-release. Keep this at a
|
|
89
|
-
* recent published line that includes `git-credential` (not merely the
|
|
90
|
-
* minimum) so local/dev pins are not stuck on an ancient helper.
|
|
91
|
-
*/
|
|
92
|
-
export declare const gitCredentialHelperPinFallbackVersion = "1.18.0";
|
|
93
|
-
export declare function readCliPackageVersion(): string;
|
|
94
70
|
/**
|
|
95
71
|
* True when the CLI entry lives under npm's ephemeral `npx` cache
|
|
96
72
|
* (`~/.npm/_npx/…`). Those paths break after `npm cache clean`.
|
|
97
73
|
*/
|
|
98
74
|
export declare function isEphemeralNpxEntryPath(entryPath: string): boolean;
|
|
99
|
-
export type CliSemver = {
|
|
100
|
-
major: number;
|
|
101
|
-
minor: number;
|
|
102
|
-
patch: number;
|
|
103
|
-
};
|
|
104
|
-
/** Parse a leading `x.y.z` from a CLI version string (ignores prerelease tags). */
|
|
105
|
-
export declare function parseCliSemver(version: string): CliSemver | null;
|
|
106
|
-
export declare function compareCliSemver(a: CliSemver, b: CliSemver): number;
|
|
107
|
-
export declare function cliVersionGte(version: string, minimum: string): boolean;
|
|
108
|
-
export declare function cliVersionGt(version: string, other: string): boolean;
|
|
109
75
|
/** True when this CLI version knows the `git-credential` command. */
|
|
110
76
|
export declare function cliVersionSupportsGitCredential(version: string): boolean;
|
|
111
77
|
/**
|
|
@@ -118,14 +84,6 @@ export declare function cliExactVersionForNpx(packageVersion: string): string;
|
|
|
118
84
|
/** Whether a stored API token should be reminted for git HTTPS. */
|
|
119
85
|
export declare function apiTokenNeedsRefresh(stored: Pick<StoredApiToken, 'expiresAt'> | null | undefined, nowMs?: number, skewMs?: number): boolean;
|
|
120
86
|
export type KodyVersionReader = (binPath: string) => string | null;
|
|
121
|
-
/**
|
|
122
|
-
* Read `kody --version` (or `node entry --version`) stdout. Returns null on
|
|
123
|
-
* failure so callers can skip preferring an unverifiable binary.
|
|
124
|
-
*
|
|
125
|
-
* Always sets `KODY_SKIP_GIT_HELPER_REFRESH=1` so a nested CLI does not re-enter
|
|
126
|
-
* pin refresh (which itself may spawn `--version` — an 8s recursive stall).
|
|
127
|
-
*/
|
|
128
|
-
export declare function readVersionFromKodyBinary(binPath: string, args?: ReadonlyArray<string>): string | null;
|
|
129
87
|
/**
|
|
130
88
|
* Helper argv for git config. Prefer a global `kody` only when its version
|
|
131
89
|
* supports `git-credential`; else a non-npx entry path; else
|
|
@@ -166,11 +124,6 @@ export type GitConfigGetRunner = (args: ReadonlyArray<string>) => {
|
|
|
166
124
|
stdout: string;
|
|
167
125
|
stderr: string;
|
|
168
126
|
};
|
|
169
|
-
export declare function defaultGitConfigGetRunner(args: ReadonlyArray<string>): {
|
|
170
|
-
status: number;
|
|
171
|
-
stdout: string;
|
|
172
|
-
stderr: string;
|
|
173
|
-
};
|
|
174
127
|
/**
|
|
175
128
|
* Best-effort: if a Kody HTTPS credential helper is installed but stale,
|
|
176
129
|
* rewrite it to {@link gitCredentialHelperCommand}. Silent — safe to call
|
|
@@ -192,17 +145,10 @@ export declare function refreshGitCredentialHelperPinIfNeeded(input?: {
|
|
|
192
145
|
/** Forwarded to {@link gitCredentialHelperNeedsRepair}. Default false. */
|
|
193
146
|
probeBinaryVersion?: boolean;
|
|
194
147
|
}): boolean;
|
|
195
|
-
export type SetupGitCredentialSource = 'flag' | 'stored';
|
|
196
148
|
/**
|
|
197
149
|
* Name the kind of credential without echoing it. Only the prefix is read.
|
|
198
150
|
*/
|
|
199
151
|
export declare function describeKodyCredentialKind(token: string): string;
|
|
200
|
-
/** Actionable copy for a 401 from GET /v1/tokens/current during setup-git. */
|
|
201
|
-
export declare function describeSetupGitUnauthorized(input: {
|
|
202
|
-
apiUrl: string;
|
|
203
|
-
token: string;
|
|
204
|
-
source: SetupGitCredentialSource;
|
|
205
|
-
}): string;
|
|
206
152
|
export type AuthSetupGitResult = {
|
|
207
153
|
host: string;
|
|
208
154
|
helperCommand: string;
|
|
@@ -237,9 +183,9 @@ export declare function authSetupGit(input: {
|
|
|
237
183
|
helperCommand?: string;
|
|
238
184
|
}): Promise<AuthSetupGitResult>;
|
|
239
185
|
/** Git config scopes `setup-git` may write (never `--system`). */
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
186
|
+
declare const setupGitConfigScopes: readonly ["--global", "--local"];
|
|
187
|
+
type GitConfigScope = (typeof setupGitConfigScopes)[number];
|
|
188
|
+
type RemovedGitConfigEntry = {
|
|
243
189
|
scope: GitConfigScope;
|
|
244
190
|
key: string;
|
|
245
191
|
value: string;
|
|
@@ -280,4 +226,4 @@ export declare function authRemoveGit(input: {
|
|
|
280
226
|
}): Promise<AuthRemoveGitResult>;
|
|
281
227
|
/** Human-readable lines for `kody auth remove-git` (always prints something). */
|
|
282
228
|
export declare function formatAuthRemoveGitReport(result: AuthRemoveGitResult): string;
|
|
283
|
-
export {
|
|
229
|
+
export {};
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
userSkillTargets,
|
|
16
16
|
wrapHostedSkillBody,
|
|
17
17
|
writeFileAtomic
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-C7GRF5V5.js";
|
|
19
|
+
import "./chunk-NKH2L5RA.js";
|
|
20
20
|
import "./chunk-UW6AWLXX.js";
|
|
21
21
|
export {
|
|
22
22
|
agentSkillsOriginFromMcpUrl,
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
wrapHostedSkillBody,
|
|
36
36
|
writeFileAtomic
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=skill-
|
|
38
|
+
//# sourceMappingURL=skill-QM3N6H55.js.map
|
package/dist/skill-refresh.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
refreshInstalledSkills
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-C7GRF5V5.js";
|
|
6
|
+
import "./chunk-NKH2L5RA.js";
|
|
7
7
|
import "./chunk-UW6AWLXX.js";
|
|
8
8
|
|
|
9
9
|
// src/skill-refresh.ts
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
createKeyringBackend,
|
|
7
7
|
deleteCredentials,
|
|
8
8
|
fileStorePath,
|
|
9
|
-
listOrgSlugs,
|
|
10
9
|
listStoredOrgs,
|
|
11
10
|
loadCredentialStore,
|
|
12
11
|
loadCredentials,
|
|
@@ -14,15 +13,13 @@ import {
|
|
|
14
13
|
migrateV1ToMultiOrg,
|
|
15
14
|
parseCredentialStore,
|
|
16
15
|
parseCredentials,
|
|
17
|
-
pickCredentialsFromStore,
|
|
18
16
|
promotePendingOrg,
|
|
19
17
|
resolveBackend,
|
|
20
|
-
saveCredentialStore,
|
|
21
18
|
saveCredentials,
|
|
22
19
|
secretServiceKeyringOptions,
|
|
23
20
|
setActiveOrg
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-RE7LNPRO.js";
|
|
22
|
+
import "./chunk-NKH2L5RA.js";
|
|
26
23
|
import "./chunk-UW6AWLXX.js";
|
|
27
24
|
export {
|
|
28
25
|
accountForMcpUrl,
|
|
@@ -31,7 +28,6 @@ export {
|
|
|
31
28
|
createKeyringBackend,
|
|
32
29
|
deleteCredentials,
|
|
33
30
|
fileStorePath,
|
|
34
|
-
listOrgSlugs,
|
|
35
31
|
listStoredOrgs,
|
|
36
32
|
loadCredentialStore,
|
|
37
33
|
loadCredentials,
|
|
@@ -39,12 +35,10 @@ export {
|
|
|
39
35
|
migrateV1ToMultiOrg,
|
|
40
36
|
parseCredentialStore,
|
|
41
37
|
parseCredentials,
|
|
42
|
-
pickCredentialsFromStore,
|
|
43
38
|
promotePendingOrg,
|
|
44
39
|
resolveBackend,
|
|
45
|
-
saveCredentialStore,
|
|
46
40
|
saveCredentials,
|
|
47
41
|
secretServiceKeyringOptions,
|
|
48
42
|
setActiveOrg
|
|
49
43
|
};
|
|
50
|
-
//# sourceMappingURL=store-
|
|
44
|
+
//# sourceMappingURL=store-4G2J5DRZ.js.map
|