@kodycodes/cli 3.0.4 → 3.1.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/README.md +6 -3
- package/dist/{auth-FV2O77LC.js → auth-2N7CSZGJ.js} +5 -5
- package/dist/bin.js +8 -8
- package/dist/{chunk-KZ3CZL54.js → chunk-5BIXRCH7.js} +55 -3
- package/dist/chunk-5BIXRCH7.js.map +6 -0
- package/dist/{chunk-TG3SWAW3.js → chunk-FDRTJFCM.js} +2 -2
- package/dist/{chunk-PZKBPKJ2.js → chunk-FS3BGXCK.js} +2 -2
- package/dist/{chunk-PUQGDXIY.js → chunk-JNQKDAPN.js} +2 -2
- package/dist/{chunk-UZL5QBO3.js → chunk-PDDX5RJS.js} +6 -6
- package/dist/{chunk-SSBZQMVX.js → chunk-QI3ZICHR.js} +5 -5
- package/dist/chunk-TCJSXIEG.js +233 -0
- package/dist/chunk-TCJSXIEG.js.map +6 -0
- package/dist/{chunk-PIPQ2TTK.js → chunk-TGBFPYAY.js} +4 -4
- package/dist/{chunk-BS24HBMB.js → chunk-TK2Y4XD6.js} +51 -41
- package/dist/chunk-TK2Y4XD6.js.map +6 -0
- package/dist/{chunk-4NYWQWSY.js → chunk-YFDVDTNX.js} +40 -17
- package/dist/chunk-YFDVDTNX.js.map +6 -0
- package/dist/cli.js +8 -8
- package/dist/{dev-command-QGGRDTRC.js → dev-command-OUTCMZOC.js} +27 -27
- package/dist/{git-credential-6CJWVNED.js → git-credential-NTAPSLZP.js} +6 -6
- package/dist/{local-execute-ADQRK3T5.js → local-execute-6NSAVTAV.js} +12 -12
- package/dist/{local-package-graph-5N5L6NHU.js → local-package-graph-UU3XHKIM.js} +4 -2
- package/dist/local-package-graph.d.ts +6 -0
- package/dist/{local-package-run-CV4CN74S.js → local-package-run-RATCOPRD.js} +9 -9
- package/dist/{mock-dep-resolve-TTCQQEN2.js → mock-dep-resolve-FM5GKMKE.js} +6 -6
- package/dist/mock-fetch-gateway-TNK74HEP.js +1 -1
- package/dist/{mock-local-deps-IMNSSGPW.js → mock-local-deps-6I7HSHXD.js} +4 -4
- package/dist/mock-server-CJQI6B3A.js +1 -1
- package/dist/{open-api-client-42L6TM2U.js → open-api-client-7TV5SPHT.js} +3 -3
- package/dist/package-local-runtime-source.d.ts +1 -0
- package/dist/{remote-execute-J35MQTUC.js → remote-execute-XLKI7JTI.js} +3 -3
- package/dist/{setup-git-IGLLNSLA.js → setup-git-LQVUW2D4.js} +4 -4
- package/dist/skill-7B2RL273.js +38 -0
- package/dist/skill-7B2RL273.js.map +6 -0
- package/dist/skill-refresh.d.ts +2 -0
- package/dist/skill-refresh.js +20 -0
- package/dist/skill-refresh.js.map +6 -0
- package/dist/skill.d.ts +53 -11
- package/package.json +2 -2
- package/skills/kody/SKILL.md +15 -129
- package/dist/chunk-4NYWQWSY.js.map +0 -6
- package/dist/chunk-BS24HBMB.js.map +0 -6
- package/dist/chunk-KZ3CZL54.js.map +0 -6
- package/dist/skill-D74XVI6T.js +0 -61
- package/dist/skill-D74XVI6T.js.map +0 -6
- /package/dist/{auth-FV2O77LC.js.map → auth-2N7CSZGJ.js.map} +0 -0
- /package/dist/{chunk-TG3SWAW3.js.map → chunk-FDRTJFCM.js.map} +0 -0
- /package/dist/{chunk-PZKBPKJ2.js.map → chunk-FS3BGXCK.js.map} +0 -0
- /package/dist/{chunk-PUQGDXIY.js.map → chunk-JNQKDAPN.js.map} +0 -0
- /package/dist/{chunk-UZL5QBO3.js.map → chunk-PDDX5RJS.js.map} +0 -0
- /package/dist/{chunk-SSBZQMVX.js.map → chunk-QI3ZICHR.js.map} +0 -0
- /package/dist/{chunk-PIPQ2TTK.js.map → chunk-TGBFPYAY.js.map} +0 -0
- /package/dist/{dev-command-QGGRDTRC.js.map → dev-command-OUTCMZOC.js.map} +0 -0
- /package/dist/{git-credential-6CJWVNED.js.map → git-credential-NTAPSLZP.js.map} +0 -0
- /package/dist/{local-execute-ADQRK3T5.js.map → local-execute-6NSAVTAV.js.map} +0 -0
- /package/dist/{local-package-graph-5N5L6NHU.js.map → local-package-graph-UU3XHKIM.js.map} +0 -0
- /package/dist/{local-package-run-CV4CN74S.js.map → local-package-run-RATCOPRD.js.map} +0 -0
- /package/dist/{mock-dep-resolve-TTCQQEN2.js.map → mock-dep-resolve-FM5GKMKE.js.map} +0 -0
- /package/dist/{mock-local-deps-IMNSSGPW.js.map → mock-local-deps-6I7HSHXD.js.map} +0 -0
- /package/dist/{open-api-client-42L6TM2U.js.map → open-api-client-7TV5SPHT.js.map} +0 -0
- /package/dist/{remote-execute-J35MQTUC.js.map → remote-execute-XLKI7JTI.js.map} +0 -0
- /package/dist/{setup-git-IGLLNSLA.js.map → setup-git-LQVUW2D4.js.map} +0 -0
|
@@ -12,22 +12,14 @@ import {
|
|
|
12
12
|
resolveLocalPackageBinding,
|
|
13
13
|
runLocalPackageModule,
|
|
14
14
|
trustedDevHostFromHostedUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YFDVDTNX.js";
|
|
16
|
+
import "./chunk-PDDX5RJS.js";
|
|
16
17
|
import {
|
|
17
18
|
assertLocalPackageScopedSecretWriteAllowed,
|
|
18
19
|
forwardLocalGatewayFetchStream,
|
|
19
20
|
installMockFetchShimModules,
|
|
20
21
|
startLocalRuntimeBridge
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
ensureMockTarget
|
|
24
|
-
} from "./chunk-5X563FYY.js";
|
|
25
|
-
import {
|
|
26
|
-
packageMocksRelativePath,
|
|
27
|
-
resolveMockFetchGateway,
|
|
28
|
-
tryHandleMockGatewayFetchCall
|
|
29
|
-
} from "./chunk-DCQ57UXY.js";
|
|
30
|
-
import "./chunk-UZL5QBO3.js";
|
|
22
|
+
} from "./chunk-FDRTJFCM.js";
|
|
31
23
|
import {
|
|
32
24
|
BundleError,
|
|
33
25
|
bundleInputs,
|
|
@@ -36,14 +28,6 @@ import {
|
|
|
36
28
|
formatBundleDiagnostic,
|
|
37
29
|
localBundleOptions
|
|
38
30
|
} from "./chunk-7RLOLQIT.js";
|
|
39
|
-
import {
|
|
40
|
-
loadPackageManifest,
|
|
41
|
-
resolveExportModulePath,
|
|
42
|
-
resolvePackagePath
|
|
43
|
-
} from "./chunk-RAZBIC6O.js";
|
|
44
|
-
import {
|
|
45
|
-
StructuredCliError
|
|
46
|
-
} from "./chunk-XV6D6HSG.js";
|
|
47
31
|
import {
|
|
48
32
|
createRuntimeFlatAliasSource,
|
|
49
33
|
createWorkerdConfig,
|
|
@@ -54,24 +38,40 @@ import {
|
|
|
54
38
|
resolveLocalPackageGraph,
|
|
55
39
|
runSecretEnvVar,
|
|
56
40
|
writePackageModuleFiles
|
|
57
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5BIXRCH7.js";
|
|
42
|
+
import {
|
|
43
|
+
ensureMockTarget
|
|
44
|
+
} from "./chunk-5X563FYY.js";
|
|
45
|
+
import {
|
|
46
|
+
packageMocksRelativePath,
|
|
47
|
+
resolveMockFetchGateway,
|
|
48
|
+
tryHandleMockGatewayFetchCall
|
|
49
|
+
} from "./chunk-DCQ57UXY.js";
|
|
50
|
+
import {
|
|
51
|
+
loadPackageManifest,
|
|
52
|
+
resolveExportModulePath,
|
|
53
|
+
resolvePackagePath
|
|
54
|
+
} from "./chunk-RAZBIC6O.js";
|
|
55
|
+
import {
|
|
56
|
+
StructuredCliError
|
|
57
|
+
} from "./chunk-XV6D6HSG.js";
|
|
58
|
+
import "./chunk-EJXEVGWF.js";
|
|
58
59
|
import {
|
|
59
60
|
redact
|
|
60
61
|
} from "./chunk-CASGRYOF.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-TGBFPYAY.js";
|
|
62
63
|
import {
|
|
63
64
|
formatToolResult
|
|
64
65
|
} from "./chunk-46IJPEID.js";
|
|
65
|
-
import {
|
|
66
|
-
ensureWorkerdBinary,
|
|
67
|
-
userCacheDir
|
|
68
|
-
} from "./chunk-BML3W5CO.js";
|
|
69
66
|
import {
|
|
70
67
|
assertTokenSafeApiUrl,
|
|
71
68
|
callCapabilityProxy
|
|
72
69
|
} from "./chunk-CCRCEU7S.js";
|
|
70
|
+
import {
|
|
71
|
+
ensureWorkerdBinary,
|
|
72
|
+
userCacheDir
|
|
73
|
+
} from "./chunk-BML3W5CO.js";
|
|
73
74
|
import "./chunk-NHRYNRXG.js";
|
|
74
|
-
import "./chunk-EJXEVGWF.js";
|
|
75
75
|
import "./chunk-3H72XY5R.js";
|
|
76
76
|
import {
|
|
77
77
|
apiTokenEnvVar
|
|
@@ -5918,4 +5918,4 @@ export {
|
|
|
5918
5918
|
chokidar/esm/index.js:
|
|
5919
5919
|
(*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) *)
|
|
5920
5920
|
*/
|
|
5921
|
-
//# sourceMappingURL=dev-command-
|
|
5921
|
+
//# sourceMappingURL=dev-command-OUTCMZOC.js.map
|
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
gitCredentialHostFromMcpUrl,
|
|
8
8
|
resolveCliTokenLifetime,
|
|
9
9
|
setupGitDefaultScopes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JNQKDAPN.js";
|
|
11
11
|
import "./chunk-6ZYUGXVW.js";
|
|
12
12
|
import {
|
|
13
13
|
ensureOpenApiCredentials
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QI3ZICHR.js";
|
|
15
15
|
import "./chunk-CASGRYOF.js";
|
|
16
16
|
import "./chunk-GVSGNTG6.js";
|
|
17
|
+
import "./chunk-CWWHR4FH.js";
|
|
17
18
|
import {
|
|
18
19
|
callOpenApiOperation
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TGBFPYAY.js";
|
|
20
21
|
import "./chunk-46IJPEID.js";
|
|
21
|
-
import "./chunk-BML3W5CO.js";
|
|
22
22
|
import {
|
|
23
23
|
loadStoredApiToken
|
|
24
24
|
} from "./chunk-CCRCEU7S.js";
|
|
25
|
+
import "./chunk-BML3W5CO.js";
|
|
25
26
|
import "./chunk-NHRYNRXG.js";
|
|
26
|
-
import "./chunk-CWWHR4FH.js";
|
|
27
27
|
import {
|
|
28
28
|
loadCredentials
|
|
29
29
|
} from "./chunk-3H72XY5R.js";
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
parseGitCredentialInput,
|
|
168
168
|
readGitCredentialStdin
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=git-credential-
|
|
170
|
+
//# sourceMappingURL=git-credential-NTAPSLZP.js.map
|
|
@@ -4,15 +4,10 @@ import {
|
|
|
4
4
|
forwardLocalGatewayFetchStream,
|
|
5
5
|
installMockFetchShimModules,
|
|
6
6
|
startLocalRuntimeBridge
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
resolveMockFetchGateway,
|
|
10
|
-
tryHandleMockGatewayFetchCall
|
|
11
|
-
} from "./chunk-DCQ57UXY.js";
|
|
7
|
+
} from "./chunk-FDRTJFCM.js";
|
|
12
8
|
import {
|
|
13
9
|
bundleLocalUserModule
|
|
14
10
|
} from "./chunk-7RLOLQIT.js";
|
|
15
|
-
import "./chunk-XV6D6HSG.js";
|
|
16
11
|
import {
|
|
17
12
|
createLocalEntrySource,
|
|
18
13
|
createLocalRuntimeModuleSource,
|
|
@@ -27,7 +22,13 @@ import {
|
|
|
27
22
|
runSecretEnvVar,
|
|
28
23
|
runSecretHeader,
|
|
29
24
|
writePackageModuleFiles
|
|
30
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5BIXRCH7.js";
|
|
26
|
+
import {
|
|
27
|
+
resolveMockFetchGateway,
|
|
28
|
+
tryHandleMockGatewayFetchCall
|
|
29
|
+
} from "./chunk-DCQ57UXY.js";
|
|
30
|
+
import "./chunk-XV6D6HSG.js";
|
|
31
|
+
import "./chunk-EJXEVGWF.js";
|
|
31
32
|
import {
|
|
32
33
|
assertLocalExecuteNodeEngine
|
|
33
34
|
} from "./chunk-2XPH7L2P.js";
|
|
@@ -35,9 +36,6 @@ import {
|
|
|
35
36
|
redact
|
|
36
37
|
} from "./chunk-CASGRYOF.js";
|
|
37
38
|
import "./chunk-46IJPEID.js";
|
|
38
|
-
import {
|
|
39
|
-
ensureWorkerdBinary
|
|
40
|
-
} from "./chunk-BML3W5CO.js";
|
|
41
39
|
import {
|
|
42
40
|
assertTokenSafeApiUrl,
|
|
43
41
|
callCapabilityProxy,
|
|
@@ -46,8 +44,10 @@ import {
|
|
|
46
44
|
openCapabilityProxySession,
|
|
47
45
|
sessionSupportsCredentialCallMap
|
|
48
46
|
} from "./chunk-CCRCEU7S.js";
|
|
47
|
+
import {
|
|
48
|
+
ensureWorkerdBinary
|
|
49
|
+
} from "./chunk-BML3W5CO.js";
|
|
49
50
|
import "./chunk-NHRYNRXG.js";
|
|
50
|
-
import "./chunk-EJXEVGWF.js";
|
|
51
51
|
import "./chunk-3H72XY5R.js";
|
|
52
52
|
import {
|
|
53
53
|
apiTokenEnvVar
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
runLocalExecute,
|
|
397
397
|
savedPackageImportLocalResolveStatus
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=local-execute-
|
|
399
|
+
//# sourceMappingURL=local-execute-6NSAVTAV.js.map
|
|
@@ -2,6 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
LocalPackageGraphError,
|
|
4
4
|
absolutizeWorkerdPackageImports,
|
|
5
|
+
backfillLocalExecuteRuntimeShimSharedExports,
|
|
5
6
|
createPackageBindingsLiteral,
|
|
6
7
|
decodePathKey,
|
|
7
8
|
embedMergedBindingsInPrimaryShim,
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
rewriteLocalModulesToPackageFacades,
|
|
30
31
|
synthesizePackageGraphEntry,
|
|
31
32
|
writePackageModuleFiles
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5BIXRCH7.js";
|
|
33
34
|
import "./chunk-CCRCEU7S.js";
|
|
34
35
|
import "./chunk-NHRYNRXG.js";
|
|
35
36
|
import "./chunk-3H72XY5R.js";
|
|
@@ -38,6 +39,7 @@ import "./chunk-UW6AWLXX.js";
|
|
|
38
39
|
export {
|
|
39
40
|
LocalPackageGraphError,
|
|
40
41
|
absolutizeWorkerdPackageImports,
|
|
42
|
+
backfillLocalExecuteRuntimeShimSharedExports,
|
|
41
43
|
createPackageBindingsLiteral,
|
|
42
44
|
decodePathKey,
|
|
43
45
|
embedMergedBindingsInPrimaryShim,
|
|
@@ -66,4 +68,4 @@ export {
|
|
|
66
68
|
synthesizePackageGraphEntry,
|
|
67
69
|
writePackageModuleFiles
|
|
68
70
|
};
|
|
69
|
-
//# sourceMappingURL=local-package-graph-
|
|
71
|
+
//# sourceMappingURL=local-package-graph-UU3XHKIM.js.map
|
|
@@ -152,6 +152,12 @@ export declare const localExecuteGatewayFetchShimModuleName = ".__kody_virtual__
|
|
|
152
152
|
* Write package-graph modules into a workerd temp dir and return capnp entries.
|
|
153
153
|
* Shared by execute --local, local package runs, and kody dev app bundling.
|
|
154
154
|
*/
|
|
155
|
+
/**
|
|
156
|
+
* Origin package-graph shims older than the hasScope shared-export floor omit
|
|
157
|
+
* those bindings while facades still re-export them. Backfill so local workerd
|
|
158
|
+
* can link until production serves the fixed shim.
|
|
159
|
+
*/
|
|
160
|
+
export declare function backfillLocalExecuteRuntimeShimSharedExports(esModule: string): string;
|
|
155
161
|
export declare function writePackageModuleFiles(workDir: string, graph: LocalPackageGraph, writeFile: (path: string, data: string) => Promise<void>, joinPath: (...parts: string[]) => string): Promise<Array<{
|
|
156
162
|
name: string;
|
|
157
163
|
file: string;
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
packageIdMatchesLocalPackage,
|
|
5
5
|
resolveLocalPackageBinding,
|
|
6
6
|
runLocalPackageModule
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-UZL5QBO3.js";
|
|
7
|
+
} from "./chunk-YFDVDTNX.js";
|
|
8
|
+
import "./chunk-PDDX5RJS.js";
|
|
9
|
+
import "./chunk-FDRTJFCM.js";
|
|
11
10
|
import "./chunk-7RLOLQIT.js";
|
|
11
|
+
import "./chunk-5BIXRCH7.js";
|
|
12
|
+
import "./chunk-DCQ57UXY.js";
|
|
12
13
|
import "./chunk-RAZBIC6O.js";
|
|
13
14
|
import "./chunk-XV6D6HSG.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EJXEVGWF.js";
|
|
15
16
|
import "./chunk-CASGRYOF.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-TGBFPYAY.js";
|
|
17
18
|
import "./chunk-46IJPEID.js";
|
|
18
|
-
import "./chunk-BML3W5CO.js";
|
|
19
19
|
import "./chunk-CCRCEU7S.js";
|
|
20
|
+
import "./chunk-BML3W5CO.js";
|
|
20
21
|
import "./chunk-NHRYNRXG.js";
|
|
21
|
-
import "./chunk-EJXEVGWF.js";
|
|
22
22
|
import "./chunk-3H72XY5R.js";
|
|
23
23
|
import "./chunk-BTL3PJ2H.js";
|
|
24
24
|
import "./chunk-UW6AWLXX.js";
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
resolveLocalPackageBinding,
|
|
29
29
|
runLocalPackageModule
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=local-package-run-
|
|
31
|
+
//# sourceMappingURL=local-package-run-RATCOPRD.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveLocalExecuteBearer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-FS3BGXCK.js";
|
|
5
|
+
import "./chunk-QI3ZICHR.js";
|
|
6
6
|
import "./chunk-CASGRYOF.js";
|
|
7
7
|
import "./chunk-GVSGNTG6.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CWWHR4FH.js";
|
|
9
|
+
import "./chunk-TGBFPYAY.js";
|
|
9
10
|
import "./chunk-46IJPEID.js";
|
|
10
|
-
import "./chunk-BML3W5CO.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveScopedApiToken
|
|
13
13
|
} from "./chunk-CCRCEU7S.js";
|
|
14
|
+
import "./chunk-BML3W5CO.js";
|
|
14
15
|
import "./chunk-NHRYNRXG.js";
|
|
15
|
-
import "./chunk-CWWHR4FH.js";
|
|
16
16
|
import "./chunk-3H72XY5R.js";
|
|
17
17
|
import {
|
|
18
18
|
defaultApiUrl,
|
|
@@ -57,4 +57,4 @@ async function tryResolveMockDepResolve(input) {
|
|
|
57
57
|
export {
|
|
58
58
|
tryResolveMockDepResolve
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=mock-dep-resolve-
|
|
60
|
+
//# sourceMappingURL=mock-dep-resolve-FM5GKMKE.js.map
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
unmockedRequestError
|
|
15
15
|
} from "./chunk-DCQ57UXY.js";
|
|
16
16
|
import "./chunk-XV6D6HSG.js";
|
|
17
|
+
import "./chunk-EJXEVGWF.js";
|
|
17
18
|
import "./chunk-BML3W5CO.js";
|
|
18
19
|
import "./chunk-NHRYNRXG.js";
|
|
19
|
-
import "./chunk-EJXEVGWF.js";
|
|
20
20
|
import "./chunk-UW6AWLXX.js";
|
|
21
21
|
export {
|
|
22
22
|
assertOutboundAllowed,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
parseKodyPackageSpecifier,
|
|
8
8
|
resolveLocalPackageModules,
|
|
9
9
|
tryLoadSelfManifest
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PDDX5RJS.js";
|
|
11
11
|
import "./chunk-7RLOLQIT.js";
|
|
12
|
+
import "./chunk-5BIXRCH7.js";
|
|
12
13
|
import "./chunk-RAZBIC6O.js";
|
|
13
14
|
import "./chunk-XV6D6HSG.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EJXEVGWF.js";
|
|
15
16
|
import "./chunk-CCRCEU7S.js";
|
|
16
17
|
import "./chunk-NHRYNRXG.js";
|
|
17
|
-
import "./chunk-EJXEVGWF.js";
|
|
18
18
|
import "./chunk-3H72XY5R.js";
|
|
19
19
|
import "./chunk-BTL3PJ2H.js";
|
|
20
20
|
import "./chunk-UW6AWLXX.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
resolveLocalPackageModules,
|
|
28
28
|
tryLoadSelfManifest
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=mock-local-deps-
|
|
30
|
+
//# sourceMappingURL=mock-local-deps-6I7HSHXD.js.map
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from "./chunk-5X563FYY.js";
|
|
9
9
|
import "./chunk-DCQ57UXY.js";
|
|
10
10
|
import "./chunk-XV6D6HSG.js";
|
|
11
|
+
import "./chunk-EJXEVGWF.js";
|
|
11
12
|
import "./chunk-BML3W5CO.js";
|
|
12
13
|
import "./chunk-NHRYNRXG.js";
|
|
13
|
-
import "./chunk-EJXEVGWF.js";
|
|
14
14
|
import "./chunk-UW6AWLXX.js";
|
|
15
15
|
export {
|
|
16
16
|
ensureMockTarget,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
searchWithApiToken,
|
|
18
18
|
toolResultFromHttpBody,
|
|
19
19
|
whoamiWithApiToken
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TGBFPYAY.js";
|
|
21
21
|
import "./chunk-46IJPEID.js";
|
|
22
|
-
import "./chunk-BML3W5CO.js";
|
|
23
22
|
import "./chunk-CCRCEU7S.js";
|
|
23
|
+
import "./chunk-BML3W5CO.js";
|
|
24
24
|
import "./chunk-NHRYNRXG.js";
|
|
25
25
|
import "./chunk-3H72XY5R.js";
|
|
26
26
|
import "./chunk-BTL3PJ2H.js";
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
toolResultFromHttpBody,
|
|
45
45
|
whoamiWithApiToken
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=open-api-client-
|
|
47
|
+
//# sourceMappingURL=open-api-client-7TV5SPHT.js.map
|
|
@@ -13,6 +13,7 @@ export type PackageLocalContext = {
|
|
|
13
13
|
hostedUrl: string;
|
|
14
14
|
assetBasePath: string;
|
|
15
15
|
clientModuleUrl: string | null;
|
|
16
|
+
cookiePrefix: string;
|
|
16
17
|
};
|
|
17
18
|
export { localExecuteCompatibilityDate, localExecuteCompatibilityFlags, localWorkerModuleNames, runSecretEnvVar, runSecretHeader, };
|
|
18
19
|
/**
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-SLNAWWQK.js";
|
|
5
5
|
import {
|
|
6
6
|
openApiRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TGBFPYAY.js";
|
|
8
8
|
import "./chunk-46IJPEID.js";
|
|
9
|
-
import "./chunk-BML3W5CO.js";
|
|
10
9
|
import {
|
|
11
10
|
assertTokenSafeApiUrl
|
|
12
11
|
} from "./chunk-CCRCEU7S.js";
|
|
12
|
+
import "./chunk-BML3W5CO.js";
|
|
13
13
|
import "./chunk-NHRYNRXG.js";
|
|
14
14
|
import "./chunk-3H72XY5R.js";
|
|
15
15
|
import "./chunk-BTL3PJ2H.js";
|
|
@@ -122,4 +122,4 @@ export {
|
|
|
122
122
|
resolveRemoteExecuteCode,
|
|
123
123
|
runRemoteExecuteWithToken
|
|
124
124
|
};
|
|
125
|
-
//# sourceMappingURL=remote-execute-
|
|
125
|
+
//# sourceMappingURL=remote-execute-XLKI7JTI.js.map
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
setupGitConfigScopes,
|
|
38
38
|
setupGitDefaultScopes,
|
|
39
39
|
setupGitRequiredScopes
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JNQKDAPN.js";
|
|
41
41
|
import "./chunk-6ZYUGXVW.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-TGBFPYAY.js";
|
|
43
43
|
import "./chunk-46IJPEID.js";
|
|
44
|
-
import "./chunk-BML3W5CO.js";
|
|
45
44
|
import "./chunk-CCRCEU7S.js";
|
|
45
|
+
import "./chunk-BML3W5CO.js";
|
|
46
46
|
import "./chunk-NHRYNRXG.js";
|
|
47
47
|
import "./chunk-3H72XY5R.js";
|
|
48
48
|
import "./chunk-BTL3PJ2H.js";
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
setupGitDefaultScopes,
|
|
87
87
|
setupGitRequiredScopes
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=setup-git-
|
|
89
|
+
//# sourceMappingURL=setup-git-LQVUW2D4.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
agentSkillsOriginFromMcpUrl,
|
|
4
|
+
bundledSkillPath,
|
|
5
|
+
extractSkillBodyForDigest,
|
|
6
|
+
fetchHostedKodyCliSkill,
|
|
7
|
+
hostedAgentSkillsIndexPath,
|
|
8
|
+
hostedSkillFetchTimeoutMs,
|
|
9
|
+
installSkill,
|
|
10
|
+
projectSkillTargets,
|
|
11
|
+
refreshInstalledSkills,
|
|
12
|
+
scheduleDetachedSkillRefresh,
|
|
13
|
+
sha256Digest,
|
|
14
|
+
skillRefreshEntryPath,
|
|
15
|
+
userSkillTargets,
|
|
16
|
+
wrapHostedSkillBody,
|
|
17
|
+
writeFileAtomic
|
|
18
|
+
} from "./chunk-TCJSXIEG.js";
|
|
19
|
+
import "./chunk-BTL3PJ2H.js";
|
|
20
|
+
import "./chunk-UW6AWLXX.js";
|
|
21
|
+
export {
|
|
22
|
+
agentSkillsOriginFromMcpUrl,
|
|
23
|
+
bundledSkillPath,
|
|
24
|
+
extractSkillBodyForDigest,
|
|
25
|
+
fetchHostedKodyCliSkill,
|
|
26
|
+
hostedAgentSkillsIndexPath,
|
|
27
|
+
hostedSkillFetchTimeoutMs,
|
|
28
|
+
installSkill,
|
|
29
|
+
projectSkillTargets,
|
|
30
|
+
refreshInstalledSkills,
|
|
31
|
+
scheduleDetachedSkillRefresh,
|
|
32
|
+
sha256Digest,
|
|
33
|
+
skillRefreshEntryPath,
|
|
34
|
+
userSkillTargets,
|
|
35
|
+
wrapHostedSkillBody,
|
|
36
|
+
writeFileAtomic
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=skill-7B2RL273.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
refreshInstalledSkills
|
|
5
|
+
} from "./chunk-TCJSXIEG.js";
|
|
6
|
+
import "./chunk-BTL3PJ2H.js";
|
|
7
|
+
import "./chunk-UW6AWLXX.js";
|
|
8
|
+
|
|
9
|
+
// src/skill-refresh.ts
|
|
10
|
+
function readOrigin(argv) {
|
|
11
|
+
const index = argv.indexOf("--origin");
|
|
12
|
+
if (index < 0) return void 0;
|
|
13
|
+
const value = argv[index + 1];
|
|
14
|
+
return typeof value === "string" && value.trim() !== "" ? value.trim() : void 0;
|
|
15
|
+
}
|
|
16
|
+
await refreshInstalledSkills({
|
|
17
|
+
origin: readOrigin(process.argv.slice(2))
|
|
18
|
+
}).catch(() => {
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=skill-refresh.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/skill-refresh.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;AAOA,SAAS,WAAW,MAAyC;AAC5D,QAAM,QAAQ,KAAK,QAAQ,UAAU;AACrC,MAAI,QAAQ,EAAG,QAAO;AACtB,QAAM,QAAQ,KAAK,QAAQ,CAAC;AAC5B,SAAO,OAAO,UAAU,YAAY,MAAM,KAAK,MAAM,KAClD,MAAM,KAAK,IACX;AACJ;AAEA,MAAM,uBAAuB;AAAA,EAC5B,QAAQ,WAAW,QAAQ,KAAK,MAAM,CAAC,CAAC;AACzC,CAAC,EAAE,MAAM,MAAM;AAEf,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/skill.d.ts
CHANGED
|
@@ -1,18 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
path: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare function projectSkillTargets(cwd?: string): Array<{
|
|
1
|
+
import { type SpawnOptions } from 'node:child_process';
|
|
2
|
+
export declare const hostedAgentSkillsIndexPath = "/.well-known/agent-skills/index.json";
|
|
3
|
+
export type SkillTarget = {
|
|
7
4
|
host: string;
|
|
8
5
|
path: string;
|
|
9
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export declare function bundledSkillPath(): string;
|
|
8
|
+
export declare function agentSkillsOriginFromMcpUrl(mcpUrl?: string): string;
|
|
9
|
+
export declare function userSkillTargets(home?: string): Array<SkillTarget>;
|
|
10
|
+
export declare function projectSkillTargets(cwd?: string): Array<SkillTarget>;
|
|
11
|
+
export declare function sha256Digest(body: string): string;
|
|
12
|
+
export declare function wrapHostedSkillBody(body: string): string;
|
|
13
|
+
/** Body bytes that should match the hosted index digest (no local frontmatter). */
|
|
14
|
+
export declare function extractSkillBodyForDigest(fileContents: string): string;
|
|
15
|
+
/** Bound hosted skill fetches so install/refresh can fall back offline. */
|
|
16
|
+
export declare const hostedSkillFetchTimeoutMs = 5000;
|
|
17
|
+
export declare function fetchHostedKodyCliSkill(input: {
|
|
18
|
+
origin?: string;
|
|
19
|
+
fetchImpl?: typeof fetch;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
}): Promise<{
|
|
22
|
+
body: string;
|
|
23
|
+
digest: string;
|
|
24
|
+
url: string;
|
|
25
|
+
} | null>;
|
|
10
26
|
export declare function installSkill(input: {
|
|
11
27
|
project?: boolean;
|
|
12
28
|
cwd?: string;
|
|
13
29
|
home?: string;
|
|
14
30
|
sourcePath?: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
origin?: string;
|
|
32
|
+
fetchImpl?: typeof fetch;
|
|
33
|
+
}): Promise<Array<SkillTarget>>;
|
|
34
|
+
/**
|
|
35
|
+
* Refresh user-level installed skill copies when the hosted digest changed.
|
|
36
|
+
* Best-effort: missing files and network failures are ignored. Project copies
|
|
37
|
+
* are left alone so a repo that ships or commits its own skill is not rewritten
|
|
38
|
+
* by an unrelated CLI command.
|
|
39
|
+
*/
|
|
40
|
+
export declare function refreshInstalledSkills(input?: {
|
|
41
|
+
home?: string;
|
|
42
|
+
origin?: string;
|
|
43
|
+
fetchImpl?: typeof fetch;
|
|
44
|
+
}): Promise<Array<SkillTarget>>;
|
|
45
|
+
/** Write then rename so concurrent readers never see a partial skill file. */
|
|
46
|
+
export declare function writeFileAtomic(path: string, body: string): Promise<void>;
|
|
47
|
+
export declare function skillRefreshEntryPath(): string;
|
|
48
|
+
/**
|
|
49
|
+
* Spawn a detached child to refresh hosted skills so the parent CLI can exit
|
|
50
|
+
* without waiting on network I/O. Best-effort; spawn failures are ignored.
|
|
51
|
+
*/
|
|
52
|
+
type SkillRefreshChild = {
|
|
53
|
+
unref: () => void;
|
|
54
|
+
on?: (event: string, listener: (...args: Array<unknown>) => void) => unknown;
|
|
55
|
+
};
|
|
56
|
+
export declare function scheduleDetachedSkillRefresh(input?: {
|
|
57
|
+
origin?: string;
|
|
58
|
+
spawnImpl?: (command: string, args: Array<string>, options: SpawnOptions) => SkillRefreshChild;
|
|
59
|
+
}): void;
|
|
60
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodycodes/cli",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Official Kody CLI: login, secure token storage, search, and execute over the OpenAPI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "node scripts/build.mjs && tsc -p tsconfig.build.json",
|
|
24
24
|
"bench": "node scripts/bench.mjs",
|
|
25
25
|
"typecheck": "tsc --noEmit",
|
|
26
|
-
"test": "tsx --test test/*.test.ts",
|
|
26
|
+
"test": "KODY_SKIP_SKILL_REFRESH=1 KODY_SKIP_GIT_HELPER_REFRESH=1 tsx --test test/*.test.ts",
|
|
27
27
|
"validate": "npm run typecheck && npm run test && npm run build"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|