@kodycodes/cli 3.48.2 → 3.48.3
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/bin.js +2 -2
- package/dist/{chunk-W3SWZ2H3.js → chunk-645NFYN7.js} +2 -2
- package/dist/{chunk-BSAKCRKF.js → chunk-7VADD4PC.js} +15 -15
- package/dist/{chunk-N3SOM5K7.js → chunk-HSK5RTKW.js} +2 -2
- package/dist/{chunk-NEKHUQBP.js → chunk-LC735HNV.js} +31 -3
- package/dist/chunk-LC735HNV.js.map +6 -0
- package/dist/{chunk-WRAODHNT.js → chunk-N7OET3ZJ.js} +2 -2
- package/dist/{chunk-JNV2UNXK.js → chunk-NX7LHJCY.js} +2 -2
- package/dist/{chunk-FS5G5OLI.js → chunk-TCMGDX6G.js} +2224 -43
- package/dist/chunk-TCMGDX6G.js.map +6 -0
- package/dist/cli.js +2 -2
- package/dist/{commands-YBZ46QGW.js → commands-X57ZBQEB.js} +3 -3
- package/dist/{dev-command-OGSCIUGC.js → dev-command-W2QZDMJ5.js} +6 -6
- package/dist/{dev-command-OGSCIUGC.js.map → dev-command-W2QZDMJ5.js.map} +1 -1
- package/dist/{execute-local-package-6SG766AL.js → execute-local-package-7RKGYQJH.js} +4 -4
- package/dist/execution-context/auto-update.d.ts +1 -2
- package/dist/{local-execute-7OREOF4I.js → local-execute-HW3TTD2O.js} +2 -2
- package/dist/{local-kody-SBAHFMWX.js → local-kody-CQKB3DEO.js} +3 -3
- package/dist/{local-package-run-NM5GGXZK.js → local-package-run-2FJVA2TR.js} +3 -3
- package/dist/{mock-fetch-gateway-4QF3YC3R.js → mock-fetch-gateway-TA7F7KE7.js} +2 -2
- package/dist/{mock-server-CH77JMJE.js → mock-server-MYZOM6B6.js} +3 -3
- package/dist/publish-builder.js +304 -15
- package/dist/{run-app-check-MCRBG5FA.js → run-app-check-32FDTDCR.js} +3 -3
- package/dist/{run-executor-RL4ZYOSJ.js → run-executor-SXXXNNAV.js} +2 -2
- package/package.json +3 -1
- package/dist/chunk-FS5G5OLI.js.map +0 -6
- package/dist/chunk-NEKHUQBP.js.map +0 -6
- /package/dist/{chunk-W3SWZ2H3.js.map → chunk-645NFYN7.js.map} +0 -0
- /package/dist/{chunk-BSAKCRKF.js.map → chunk-7VADD4PC.js.map} +0 -0
- /package/dist/{chunk-N3SOM5K7.js.map → chunk-HSK5RTKW.js.map} +0 -0
- /package/dist/{chunk-WRAODHNT.js.map → chunk-N7OET3ZJ.js.map} +0 -0
- /package/dist/{chunk-JNV2UNXK.js.map → chunk-NX7LHJCY.js.map} +0 -0
- /package/dist/{commands-YBZ46QGW.js.map → commands-X57ZBQEB.js.map} +0 -0
- /package/dist/{execute-local-package-6SG766AL.js.map → execute-local-package-7RKGYQJH.js.map} +0 -0
- /package/dist/{local-execute-7OREOF4I.js.map → local-execute-HW3TTD2O.js.map} +0 -0
- /package/dist/{local-kody-SBAHFMWX.js.map → local-kody-CQKB3DEO.js.map} +0 -0
- /package/dist/{local-package-run-NM5GGXZK.js.map → local-package-run-2FJVA2TR.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-4QF3YC3R.js.map → mock-fetch-gateway-TA7F7KE7.js.map} +0 -0
- /package/dist/{mock-server-CH77JMJE.js.map → mock-server-MYZOM6B6.js.map} +0 -0
- /package/dist/{run-app-check-MCRBG5FA.js.map → run-app-check-32FDTDCR.js.map} +0 -0
- /package/dist/{run-executor-RL4ZYOSJ.js.map → run-executor-SXXXNNAV.js.map} +0 -0
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
packageIdMatchesLocalPackage,
|
|
5
5
|
resolveLocalPackageBinding,
|
|
6
6
|
runLocalPackageModule
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HSK5RTKW.js";
|
|
8
8
|
import "./chunk-5ZVLKSON.js";
|
|
9
9
|
import "./chunk-7DTONYR5.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-LC735HNV.js";
|
|
11
11
|
import "./chunk-LQNGII7U.js";
|
|
12
12
|
import "./chunk-VHOKL4CU.js";
|
|
13
13
|
import "./chunk-RESUUV2F.js";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
resolveLocalPackageBinding,
|
|
33
33
|
runLocalPackageModule
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=local-package-run-
|
|
35
|
+
//# sourceMappingURL=local-package-run-2FJVA2TR.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveMockFetchGateway,
|
|
10
10
|
tryHandleMockGatewayFetchCall,
|
|
11
11
|
unmockedRequestError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LC735HNV.js";
|
|
13
13
|
import "./chunk-LQNGII7U.js";
|
|
14
14
|
import "./chunk-42R5NM3P.js";
|
|
15
15
|
import "./chunk-VHYJU2U2.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
tryHandleMockGatewayFetchCall,
|
|
27
27
|
unmockedRequestError
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=mock-fetch-gateway-
|
|
29
|
+
//# sourceMappingURL=mock-fetch-gateway-TA7F7KE7.js.map
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
mintMockApiToken,
|
|
5
5
|
startMockServer,
|
|
6
6
|
withMockServer
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NX7LHJCY.js";
|
|
8
|
+
import "./chunk-LC735HNV.js";
|
|
9
9
|
import "./chunk-LQNGII7U.js";
|
|
10
10
|
import "./chunk-42R5NM3P.js";
|
|
11
11
|
import "./chunk-VHYJU2U2.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
startMockServer,
|
|
18
18
|
withMockServer
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=mock-server-
|
|
20
|
+
//# sourceMappingURL=mock-server-MYZOM6B6.js.map
|
package/dist/publish-builder.js
CHANGED
|
@@ -11844,7 +11844,7 @@ kody.emits topic "${topic}" must use the scoped form "@scope/topic.name" with a
|
|
|
11844
11844
|
if (topicScope !== packageScope) {
|
|
11845
11845
|
throw new Error(
|
|
11846
11846
|
`Invalid ${input3.manifestPath ?? packageManifestPath}:
|
|
11847
|
-
kody.emits topic "${topic}" must use the package scope "@${packageScope}".`
|
|
11847
|
+
kody.emits topic "${topic}" must use the package scope "@${packageScope}" (for example "@${packageScope}/${topic.slice(topic.indexOf("/") + 1)}").`
|
|
11848
11848
|
);
|
|
11849
11849
|
}
|
|
11850
11850
|
if (emittedEvent.payloadSchema !== void 0) {
|
|
@@ -27270,12 +27270,20 @@ const __kodyResolveRelativeUrl = (pathname, integration) => {
|
|
|
27270
27270
|
}
|
|
27271
27271
|
return new URL(\`\${normalizedBase}\${pathname}\`);
|
|
27272
27272
|
};
|
|
27273
|
+
const __kodyIsUnderApiBaseUrl = (url, integration) => {
|
|
27274
|
+
if (!integration.apiBaseUrl) return false;
|
|
27275
|
+
const base = new URL(integration.apiBaseUrl);
|
|
27276
|
+
if (url.origin !== base.origin) return false;
|
|
27277
|
+
const basePath = base.pathname.replace(/\\/+$/, '');
|
|
27278
|
+
return (
|
|
27279
|
+
!basePath ||
|
|
27280
|
+
url.pathname === basePath ||
|
|
27281
|
+
url.pathname.startsWith(\`\${basePath}/\`)
|
|
27282
|
+
);
|
|
27283
|
+
};
|
|
27273
27284
|
const __kodyGetRelativePathFromRequest = (input, integration) => {
|
|
27274
27285
|
const requestUrl = new URL(input.url);
|
|
27275
|
-
|
|
27276
|
-
if (normalizedBase && requestUrl.href.startsWith(normalizedBase)) {
|
|
27277
|
-
return null;
|
|
27278
|
-
}
|
|
27286
|
+
if (__kodyIsUnderApiBaseUrl(requestUrl, integration)) return null;
|
|
27279
27287
|
const runtimeOrigin = __kodyGetRuntimeOrigin();
|
|
27280
27288
|
if (!runtimeOrigin || requestUrl.origin !== runtimeOrigin) {
|
|
27281
27289
|
return null;
|
|
@@ -27350,15 +27358,23 @@ const __kodySlackAuthErrorCodes = new Set([
|
|
|
27350
27358
|
'invalid_auth',
|
|
27351
27359
|
'not_authed',
|
|
27352
27360
|
]);
|
|
27353
|
-
const
|
|
27354
|
-
const lower = String(
|
|
27355
|
-
return lower
|
|
27361
|
+
const __kodyIsSlackHost = (host) => {
|
|
27362
|
+
const lower = String(host ?? '').trim().toLowerCase();
|
|
27363
|
+
return lower === 'slack.com' || lower.endsWith('.slack.com');
|
|
27364
|
+
};
|
|
27365
|
+
const __kodyApiBaseHost = (apiBaseUrl) => {
|
|
27366
|
+
if (!apiBaseUrl) return '';
|
|
27367
|
+
try {
|
|
27368
|
+
return new URL(apiBaseUrl).hostname;
|
|
27369
|
+
} catch {
|
|
27370
|
+
return '';
|
|
27371
|
+
}
|
|
27356
27372
|
};
|
|
27357
27373
|
const __kodyIsSlackIntegration = (integration) => {
|
|
27358
27374
|
if (String(integration?.name ?? '').startsWith('slack')) return true;
|
|
27359
|
-
if (
|
|
27375
|
+
if (__kodyIsSlackHost(__kodyApiBaseHost(integration?.apiBaseUrl))) return true;
|
|
27360
27376
|
return (integration?.requiredHosts ?? []).some((host) =>
|
|
27361
|
-
|
|
27377
|
+
__kodyIsSlackHost(host),
|
|
27362
27378
|
);
|
|
27363
27379
|
};
|
|
27364
27380
|
const __kodyIsSlackFilesHtmlLoginResponse = (response, contentType) => {
|
|
@@ -28975,12 +28991,47 @@ var init_server_timing = __esm({
|
|
|
28975
28991
|
|
|
28976
28992
|
// ../worker/src/request-context.ts
|
|
28977
28993
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
28978
|
-
|
|
28994
|
+
function getRequestContext(request) {
|
|
28995
|
+
if (request) {
|
|
28996
|
+
const byRequest = requestContexts.get(request);
|
|
28997
|
+
if (byRequest) return byRequest;
|
|
28998
|
+
}
|
|
28999
|
+
return requestContextStorage.getStore();
|
|
29000
|
+
}
|
|
29001
|
+
function memoizePerRequest(input3) {
|
|
29002
|
+
const { isFresh } = input3;
|
|
29003
|
+
const load = isFresh ? () => input3.load().then((value) => isFresh(value) ? value : input3.load()) : input3.load;
|
|
29004
|
+
const context = getRequestContext(input3.request);
|
|
29005
|
+
if (!context) return load();
|
|
29006
|
+
const pending = context.memo.get(input3.key);
|
|
29007
|
+
if (pending) {
|
|
29008
|
+
if (!isFresh) return pending;
|
|
29009
|
+
return pending.then(
|
|
29010
|
+
(value) => isFresh(value) ? value : reloadMemo(context.memo, input3.key, load)
|
|
29011
|
+
);
|
|
29012
|
+
}
|
|
29013
|
+
return reloadMemo(context.memo, input3.key, load);
|
|
29014
|
+
}
|
|
29015
|
+
function memoizeReadPerRequest(input3) {
|
|
29016
|
+
const method = getRequestContext()?.request.method;
|
|
29017
|
+
if (method !== "GET" && method !== "HEAD") return input3.load();
|
|
29018
|
+
return memoizePerRequest(input3);
|
|
29019
|
+
}
|
|
29020
|
+
function reloadMemo(memo3, key, load) {
|
|
29021
|
+
const loading = load();
|
|
29022
|
+
memo3.set(key, loading);
|
|
29023
|
+
loading.catch(() => {
|
|
29024
|
+
if (memo3.get(key) === loading) memo3.delete(key);
|
|
29025
|
+
});
|
|
29026
|
+
return loading;
|
|
29027
|
+
}
|
|
29028
|
+
var requestContextStorage, requestContexts;
|
|
28979
29029
|
var init_request_context = __esm({
|
|
28980
29030
|
"../worker/src/request-context.ts"() {
|
|
28981
29031
|
"use strict";
|
|
28982
29032
|
init_server_timing();
|
|
28983
29033
|
requestContextStorage = new AsyncLocalStorage();
|
|
29034
|
+
requestContexts = /* @__PURE__ */ new WeakMap();
|
|
28984
29035
|
}
|
|
28985
29036
|
});
|
|
28986
29037
|
|
|
@@ -29228,6 +29279,15 @@ var init_registry = __esm({
|
|
|
29228
29279
|
hypothesis: "A shared file workspace lets teams complete more useful agent work."
|
|
29229
29280
|
}
|
|
29230
29281
|
},
|
|
29282
|
+
{
|
|
29283
|
+
key: "d1-replica-reads",
|
|
29284
|
+
removeWhen: "Factory plan plan_b06be7edb75a49ef ships replica reads to everyone or drops them; delete the flag and its rollout read.",
|
|
29285
|
+
reviewBy: "2027-02-01",
|
|
29286
|
+
defaultEnabled: false,
|
|
29287
|
+
description: "Browser page GET and HEAD loads read the app database from the nearest D1 read replica; every other request reads the primary. Only the global switch and rollout percent apply (audience and per-user or per-org overrides are ignored), and a change takes up to 30 seconds to reach every Worker instance."
|
|
29288
|
+
// Intentionally no successMetric: judged by the d1 Server-Timing
|
|
29289
|
+
// fields per region, which no usage event stream records.
|
|
29290
|
+
},
|
|
29231
29291
|
{
|
|
29232
29292
|
key: "demo-indicator",
|
|
29233
29293
|
reviewBy: "2027-05-19",
|
|
@@ -29356,6 +29416,7 @@ var init_service = __esm({
|
|
|
29356
29416
|
init_audiences();
|
|
29357
29417
|
init_registry();
|
|
29358
29418
|
init_execution_scope();
|
|
29419
|
+
init_request_context();
|
|
29359
29420
|
init_live_sql();
|
|
29360
29421
|
}
|
|
29361
29422
|
});
|
|
@@ -43264,6 +43325,12 @@ function mapEntitySourceRow(row) {
|
|
|
43264
43325
|
return { ...parsed, user_id: userId };
|
|
43265
43326
|
}
|
|
43266
43327
|
async function getEntitySourceById(db, id) {
|
|
43328
|
+
return await memoizeReadPerRequest({
|
|
43329
|
+
key: `entity-source:${id}`,
|
|
43330
|
+
load: () => readEntitySourceById(db, id)
|
|
43331
|
+
});
|
|
43332
|
+
}
|
|
43333
|
+
async function readEntitySourceById(db, id) {
|
|
43267
43334
|
const result = await db.prepare(
|
|
43268
43335
|
`SELECT * FROM entity_sources WHERE id = ?${andLiveDeletedAtSql()}`
|
|
43269
43336
|
).bind(id).first();
|
|
@@ -43288,6 +43355,7 @@ var externalReconcileGraceMs;
|
|
|
43288
43355
|
var init_entity_sources = __esm({
|
|
43289
43356
|
"../worker/src/repo/entity-sources.ts"() {
|
|
43290
43357
|
"use strict";
|
|
43358
|
+
init_request_context();
|
|
43291
43359
|
init_chunk();
|
|
43292
43360
|
init_d1_retry2();
|
|
43293
43361
|
init_repo_session_index_client();
|
|
@@ -43327,7 +43395,8 @@ function assertSafeCloudflareApiV4Path(path) {
|
|
|
43327
43395
|
"path must start with `/client/v4/` \u2014 see https://developers.cloudflare.com/fundamentals/api/how-to/make-api-calls/"
|
|
43328
43396
|
);
|
|
43329
43397
|
}
|
|
43330
|
-
|
|
43398
|
+
const [pathname = ""] = trimmed.split("?", 1);
|
|
43399
|
+
if (pathname.split("/").some((segment2) => dotSegmentPattern.test(segment2))) {
|
|
43331
43400
|
throw new Error("path must not contain `..` segments.");
|
|
43332
43401
|
}
|
|
43333
43402
|
if (/[\s#]/.test(trimmed)) {
|
|
@@ -43364,10 +43433,11 @@ function createCloudflareRestClient(env) {
|
|
|
43364
43433
|
fetcher: env.CLOUDFLARE_API_MOCK
|
|
43365
43434
|
});
|
|
43366
43435
|
}
|
|
43367
|
-
var CloudflareApiError, defaultUserAgent, defaultBaseUrl, CloudflareRestClient;
|
|
43436
|
+
var dotSegmentPattern, CloudflareApiError, defaultUserAgent, defaultBaseUrl, CloudflareRestClient;
|
|
43368
43437
|
var init_cloudflare_rest_client = __esm({
|
|
43369
43438
|
"../worker/src/mcp/cloudflare/cloudflare-rest-client.ts"() {
|
|
43370
43439
|
"use strict";
|
|
43440
|
+
dotSegmentPattern = /^(?:\.|%2e){1,2}$/i;
|
|
43371
43441
|
CloudflareApiError = class extends Error {
|
|
43372
43442
|
status;
|
|
43373
43443
|
constructor(message, options) {
|
|
@@ -46219,6 +46289,33 @@ var require_constants = __commonJS({
|
|
|
46219
46289
|
9007199254740991;
|
|
46220
46290
|
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
46221
46291
|
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
46292
|
+
var WHITESPACE_CHARACTERS = [
|
|
46293
|
+
" ",
|
|
46294
|
+
"\n",
|
|
46295
|
+
"\v",
|
|
46296
|
+
"\f",
|
|
46297
|
+
"\r",
|
|
46298
|
+
" ",
|
|
46299
|
+
"\xA0",
|
|
46300
|
+
"\u1680",
|
|
46301
|
+
"\u2000",
|
|
46302
|
+
"\u2001",
|
|
46303
|
+
"\u2002",
|
|
46304
|
+
"\u2003",
|
|
46305
|
+
"\u2004",
|
|
46306
|
+
"\u2005",
|
|
46307
|
+
"\u2006",
|
|
46308
|
+
"\u2007",
|
|
46309
|
+
"\u2008",
|
|
46310
|
+
"\u2009",
|
|
46311
|
+
"\u200A",
|
|
46312
|
+
"\u2028",
|
|
46313
|
+
"\u2029",
|
|
46314
|
+
"\u202F",
|
|
46315
|
+
"\u205F",
|
|
46316
|
+
"\u3000",
|
|
46317
|
+
"\uFEFF"
|
|
46318
|
+
];
|
|
46222
46319
|
var RELEASE_TYPES = [
|
|
46223
46320
|
"major",
|
|
46224
46321
|
"premajor",
|
|
@@ -46233,6 +46330,7 @@ var require_constants = __commonJS({
|
|
|
46233
46330
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
46234
46331
|
MAX_SAFE_BUILD_LENGTH,
|
|
46235
46332
|
MAX_SAFE_INTEGER: MAX_SAFE_INTEGER2,
|
|
46333
|
+
WHITESPACE_CHARACTERS,
|
|
46236
46334
|
RELEASE_TYPES,
|
|
46237
46335
|
SEMVER_SPEC_VERSION,
|
|
46238
46336
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
@@ -47133,6 +47231,197 @@ var require_lrucache = __commonJS({
|
|
|
47133
47231
|
}
|
|
47134
47232
|
});
|
|
47135
47233
|
|
|
47234
|
+
// ../../node_modules/semver/internal/trim-comparator-whitespace.js
|
|
47235
|
+
var require_trim_comparator_whitespace = __commonJS({
|
|
47236
|
+
"../../node_modules/semver/internal/trim-comparator-whitespace.js"(exports, module) {
|
|
47237
|
+
"use strict";
|
|
47238
|
+
var {
|
|
47239
|
+
MAX_LENGTH,
|
|
47240
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
47241
|
+
WHITESPACE_CHARACTERS
|
|
47242
|
+
} = require_constants();
|
|
47243
|
+
var whitespace = new Uint8Array(65536);
|
|
47244
|
+
for (const char of WHITESPACE_CHARACTERS) {
|
|
47245
|
+
whitespace[char.charCodeAt(0)] = 1;
|
|
47246
|
+
}
|
|
47247
|
+
var isWhitespace2 = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
|
|
47248
|
+
var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace2(char);
|
|
47249
|
+
var isDigit3 = (char) => char !== void 0 && char >= "0" && char <= "9";
|
|
47250
|
+
var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
|
|
47251
|
+
var isIdentifierCharacter = (char) => isDigit3(char) || isLetter(char) || char === "-";
|
|
47252
|
+
var isVersionStart = (char) => isDigit3(char) || char === "x" || char === "X" || char === "*";
|
|
47253
|
+
var findDigitsEndIndex = (range, start, limit, digitRuns) => {
|
|
47254
|
+
if (!isDigit3(range[start])) {
|
|
47255
|
+
return start;
|
|
47256
|
+
}
|
|
47257
|
+
if (start >= digitRuns.start && start < digitRuns.end) {
|
|
47258
|
+
return Math.min(start + limit, digitRuns.end);
|
|
47259
|
+
}
|
|
47260
|
+
if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) {
|
|
47261
|
+
return Math.min(start + limit, digitRuns.previousEnd);
|
|
47262
|
+
}
|
|
47263
|
+
let end = start + 1;
|
|
47264
|
+
while (isDigit3(range[end])) {
|
|
47265
|
+
end++;
|
|
47266
|
+
}
|
|
47267
|
+
digitRuns.previousStart = digitRuns.start;
|
|
47268
|
+
digitRuns.previousEnd = digitRuns.end;
|
|
47269
|
+
digitRuns.start = start;
|
|
47270
|
+
digitRuns.end = end;
|
|
47271
|
+
return Math.min(start + limit, end);
|
|
47272
|
+
};
|
|
47273
|
+
var findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
|
|
47274
|
+
if (!loose && range[start] === "0") {
|
|
47275
|
+
return start + 1;
|
|
47276
|
+
}
|
|
47277
|
+
return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
|
|
47278
|
+
};
|
|
47279
|
+
var findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
|
|
47280
|
+
const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
|
|
47281
|
+
if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
|
|
47282
|
+
let end = digitsEnd + 1;
|
|
47283
|
+
const limit = end + MAX_SAFE_BUILD_LENGTH;
|
|
47284
|
+
while (end < limit && isIdentifierCharacter(range[end])) {
|
|
47285
|
+
end++;
|
|
47286
|
+
}
|
|
47287
|
+
return end;
|
|
47288
|
+
}
|
|
47289
|
+
return findVersionNumberEndIndex(range, start, loose, digitRuns);
|
|
47290
|
+
};
|
|
47291
|
+
var findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
|
|
47292
|
+
const hyphen = range[start] === "-";
|
|
47293
|
+
if (!loose && !hyphen) {
|
|
47294
|
+
return start;
|
|
47295
|
+
}
|
|
47296
|
+
const identifierStart = start + (hyphen ? 1 : 0);
|
|
47297
|
+
let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
|
|
47298
|
+
if (end === identifierStart) {
|
|
47299
|
+
if (!loose || !hyphen) {
|
|
47300
|
+
return start;
|
|
47301
|
+
}
|
|
47302
|
+
end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
|
|
47303
|
+
}
|
|
47304
|
+
while (range[end] === ".") {
|
|
47305
|
+
const next2 = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
|
|
47306
|
+
if (next2 === end + 1) {
|
|
47307
|
+
break;
|
|
47308
|
+
}
|
|
47309
|
+
end = next2;
|
|
47310
|
+
}
|
|
47311
|
+
return end;
|
|
47312
|
+
};
|
|
47313
|
+
var findBuildIdentifierEndIndex = (range, start) => {
|
|
47314
|
+
let end = start;
|
|
47315
|
+
while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) {
|
|
47316
|
+
end++;
|
|
47317
|
+
}
|
|
47318
|
+
return end;
|
|
47319
|
+
};
|
|
47320
|
+
var findBuildEndIndex = (range, start) => {
|
|
47321
|
+
if (range[start] !== "+") {
|
|
47322
|
+
return start;
|
|
47323
|
+
}
|
|
47324
|
+
let end = findBuildIdentifierEndIndex(range, start + 1);
|
|
47325
|
+
if (end === start + 1) {
|
|
47326
|
+
return start;
|
|
47327
|
+
}
|
|
47328
|
+
while (range[end] === ".") {
|
|
47329
|
+
const next2 = findBuildIdentifierEndIndex(range, end + 1);
|
|
47330
|
+
if (next2 === end + 1) {
|
|
47331
|
+
break;
|
|
47332
|
+
}
|
|
47333
|
+
end = next2;
|
|
47334
|
+
}
|
|
47335
|
+
return end;
|
|
47336
|
+
};
|
|
47337
|
+
var findLooseFullVersionEndIndex = (range, start, digitRuns) => {
|
|
47338
|
+
let end = start;
|
|
47339
|
+
for (let component = 0; component < 3; component++) {
|
|
47340
|
+
const next2 = findVersionNumberEndIndex(range, end, true, digitRuns);
|
|
47341
|
+
if (next2 === end) {
|
|
47342
|
+
return start;
|
|
47343
|
+
}
|
|
47344
|
+
end = next2;
|
|
47345
|
+
if (component < 2) {
|
|
47346
|
+
if (range[end] !== ".") {
|
|
47347
|
+
return start;
|
|
47348
|
+
}
|
|
47349
|
+
end++;
|
|
47350
|
+
}
|
|
47351
|
+
}
|
|
47352
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns);
|
|
47353
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
47354
|
+
};
|
|
47355
|
+
var findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
|
|
47356
|
+
if (isDigit3(range[start])) {
|
|
47357
|
+
return findVersionNumberEndIndex(range, start, false, digitRuns);
|
|
47358
|
+
}
|
|
47359
|
+
return isVersionStart(range[start]) ? start + 1 : start;
|
|
47360
|
+
};
|
|
47361
|
+
var findPartialVersionEndIndex = (range, start, digitRuns) => {
|
|
47362
|
+
let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
|
|
47363
|
+
for (let component = 0; component < 2; component++) {
|
|
47364
|
+
if (range[end] !== ".") {
|
|
47365
|
+
return end;
|
|
47366
|
+
}
|
|
47367
|
+
const next2 = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
|
|
47368
|
+
if (next2 === end + 1) {
|
|
47369
|
+
return end;
|
|
47370
|
+
}
|
|
47371
|
+
end = next2;
|
|
47372
|
+
}
|
|
47373
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns);
|
|
47374
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
47375
|
+
};
|
|
47376
|
+
var findVersionEndIndex = (range, start, digitRuns) => {
|
|
47377
|
+
const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
|
|
47378
|
+
return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
|
|
47379
|
+
};
|
|
47380
|
+
var findRemovableWhitespaceIndex = (range, matchStart2) => {
|
|
47381
|
+
let position = matchStart2;
|
|
47382
|
+
if (isWhitespace2(range[position])) {
|
|
47383
|
+
position++;
|
|
47384
|
+
}
|
|
47385
|
+
if (range[position] === "<" || range[position] === ">") {
|
|
47386
|
+
position++;
|
|
47387
|
+
}
|
|
47388
|
+
if (range[position] === "=") {
|
|
47389
|
+
position++;
|
|
47390
|
+
}
|
|
47391
|
+
return isWhitespace2(range[position]) ? position : -1;
|
|
47392
|
+
};
|
|
47393
|
+
var trimComparatorWhitespace = (range) => {
|
|
47394
|
+
let result = "";
|
|
47395
|
+
let copyFrom = 0;
|
|
47396
|
+
let cursor = 0;
|
|
47397
|
+
const digitRuns = { start: -1, end: -1, previousStart: -1, previousEnd: -1 };
|
|
47398
|
+
while (cursor < range.length) {
|
|
47399
|
+
const matchStart2 = cursor;
|
|
47400
|
+
if (range[cursor] === "<" || range[cursor] === ">") {
|
|
47401
|
+
cursor++;
|
|
47402
|
+
} else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
|
|
47403
|
+
cursor++;
|
|
47404
|
+
continue;
|
|
47405
|
+
}
|
|
47406
|
+
while (cursor < range.length && isVersionPrefix(range[cursor])) {
|
|
47407
|
+
cursor++;
|
|
47408
|
+
}
|
|
47409
|
+
if (!isVersionStart(range[cursor])) {
|
|
47410
|
+
continue;
|
|
47411
|
+
}
|
|
47412
|
+
const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart2);
|
|
47413
|
+
if (whitespacePosition !== -1) {
|
|
47414
|
+
result += range.slice(copyFrom, whitespacePosition);
|
|
47415
|
+
copyFrom = whitespacePosition + 1;
|
|
47416
|
+
}
|
|
47417
|
+
cursor = findVersionEndIndex(range, cursor, digitRuns);
|
|
47418
|
+
}
|
|
47419
|
+
return result + range.slice(copyFrom);
|
|
47420
|
+
};
|
|
47421
|
+
module.exports = trimComparatorWhitespace;
|
|
47422
|
+
}
|
|
47423
|
+
});
|
|
47424
|
+
|
|
47136
47425
|
// ../../node_modules/semver/classes/range.js
|
|
47137
47426
|
var require_range = __commonJS({
|
|
47138
47427
|
"../../node_modules/semver/classes/range.js"(exports, module) {
|
|
@@ -47214,7 +47503,7 @@ var require_range = __commonJS({
|
|
|
47214
47503
|
const hr = loose ? re[t4.HYPHENRANGELOOSE] : re[t4.HYPHENRANGE];
|
|
47215
47504
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
47216
47505
|
debug("hyphen replace", range);
|
|
47217
|
-
range = range
|
|
47506
|
+
range = trimComparatorWhitespace(range);
|
|
47218
47507
|
debug("comparator trim", range);
|
|
47219
47508
|
range = range.replace(re[t4.TILDETRIM], tildeTrimReplace);
|
|
47220
47509
|
debug("tilde trim", range);
|
|
@@ -47284,11 +47573,11 @@ var require_range = __commonJS({
|
|
|
47284
47573
|
var Comparator = require_comparator();
|
|
47285
47574
|
var debug = require_debug();
|
|
47286
47575
|
var SemVer = require_semver();
|
|
47576
|
+
var trimComparatorWhitespace = require_trim_comparator_whitespace();
|
|
47287
47577
|
var {
|
|
47288
47578
|
safeRe: re,
|
|
47289
47579
|
src,
|
|
47290
47580
|
t: t4,
|
|
47291
|
-
comparatorTrimReplace,
|
|
47292
47581
|
tildeTrimReplace,
|
|
47293
47582
|
caretTrimReplace
|
|
47294
47583
|
} = require_re();
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
localKodyStateDir,
|
|
4
4
|
localKodyStateDirEnvVar
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N7OET3ZJ.js";
|
|
6
6
|
import {
|
|
7
7
|
devStatusPath,
|
|
8
8
|
findRunningDevServer
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import "./chunk-5ZVLKSON.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureCachedNpmPackages
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LC735HNV.js";
|
|
17
17
|
import "./chunk-LQNGII7U.js";
|
|
18
18
|
import "./chunk-VHOKL4CU.js";
|
|
19
19
|
import "./chunk-RESUUV2F.js";
|
|
@@ -866,4 +866,4 @@ async function runLighthouse(input) {
|
|
|
866
866
|
export {
|
|
867
867
|
runAppCheck
|
|
868
868
|
};
|
|
869
|
-
//# sourceMappingURL=run-app-check-
|
|
869
|
+
//# sourceMappingURL=run-app-check-32FDTDCR.js.map
|
|
@@ -38,7 +38,7 @@ async function runContextRun(input) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
const hostCommands = input.hostCommands;
|
|
41
|
-
const { runLocalExecute } = await import("./local-execute-
|
|
41
|
+
const { runLocalExecute } = await import("./local-execute-HW3TTD2O.js");
|
|
42
42
|
let timing;
|
|
43
43
|
const result = await runLocalExecute({
|
|
44
44
|
code: source.code,
|
|
@@ -90,4 +90,4 @@ async function runContextRun(input) {
|
|
|
90
90
|
export {
|
|
91
91
|
runContextRun
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=run-executor-
|
|
93
|
+
//# sourceMappingURL=run-executor-SXXXNNAV.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodycodes/cli",
|
|
3
|
-
"version": "3.48.
|
|
3
|
+
"version": "3.48.3",
|
|
4
4
|
"description": "Official Kody CLI: login, secure token storage, search, and execute over the OpenAPI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -61,12 +61,14 @@
|
|
|
61
61
|
"@inquirer/checkbox": "^5.2.2",
|
|
62
62
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
63
63
|
"@types/node": "^24.5.2",
|
|
64
|
+
"@types/semver": "^7.8.0",
|
|
64
65
|
"add-mcp": "^2.4.0",
|
|
65
66
|
"chokidar": "^4.0.3",
|
|
66
67
|
"es-module-lexer": "^3.0.3",
|
|
67
68
|
"msw": "3.0.3",
|
|
68
69
|
"oauth4webapi": "^3.8.6",
|
|
69
70
|
"publish-builder-typescript-libs": "npm:typescript@6.0.2",
|
|
71
|
+
"semver": "^7.8.6",
|
|
70
72
|
"tsx": "^4.20.5",
|
|
71
73
|
"typescript": "^5.9.2"
|
|
72
74
|
}
|