@kodycodes/cli 3.48.4 → 3.48.5
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/publish-builder.js +58 -16
- package/package.json +1 -1
package/dist/publish-builder.js
CHANGED
|
@@ -11179,7 +11179,7 @@ function packageMachineNeedsFor(needs, name) {
|
|
|
11179
11179
|
const entry = needs && Object.hasOwn(needs, name) ? needs[name] : void 0;
|
|
11180
11180
|
return entry === void 0 ? [] : Array.isArray(entry) ? entry : [entry];
|
|
11181
11181
|
}
|
|
11182
|
-
var kodyPackageIdPattern, packageJobScheduleSchema, packageJobDefinitionSchema, packageAppClientExternalSchema, packageAppClientDefinitionSchema, packageCredentialSlotNamePattern, packageAppCapabilityNamePattern, mcpToolCapabilitySegment, packageMcpToolCapabilityNamePattern, packageCapabilityDeclarationsSchema, packageAppVisitorNeedKeyPattern, packageAppVisitorNeedSchema, packageAppAnonymousRealtimeModes, packageAppDefinitionSchema, packageSecretMountDefinitionSchema, packageSecretProviderIdPattern, packageSecretProviderSchema, packageCredentialKindValues, secretProviderSlotKind, packageCredentialSlotKindValues, ownerCredentialForVisitorsValueMessage, packageCredentialSlotSchema, packageCredentialsSchema, secretProviderSlotPackagePattern, secretProviderSlotOnlyFields, packageSubscriptionDefinitionSchema, httpFieldNamePattern2, webhookSignedPayloadValues, webhookTimestampFormatValues, packageWebhookHmacVerificationSchema, packageWebhookUrlSecretVerificationSchema, packageWebhookVerificationSchema, webhookChallengeParamKeySchema, webhookChallengeWhenValueSchema, packageWebhookSubscriptionChallengeSchema, packageWebhookChallengeSchema, webhookTimestampFormatSchema, packageWebhookReplaySchema, webhookInputModeValues, webhookMaxRateLimitPerMinute, packageWebhookDefinitionSchema, packageWebhooksSchema, packageEmittedEventDefinitionSchema, packageExportConditionSchema, packageExportTargetSchema, scopedPackageNamePattern, kodyPackageDependencySchema, kodyPackageDependencyWildcard, kodyPackageDependenciesSchema, KODY_DESCRIPTION_MAX_LENGTH, kodyDescriptionTooLongPhrase, packagePublishDefinitionSchema, packageMachineNeedNamePattern, maxPackageMachineNeeds, machineNeedDescription, packageMachineNeedSchema, packageMachineNeedListSchema, packageMachineNeedEntrySchema, packageMachineNeedsSchema, authoredPackageKodySchema, authoredPackageJsonSchema;
|
|
11182
|
+
var kodyPackageIdPattern, packageJobScheduleSchema, packageJobDefinitionSchema, packageAppClientExternalSchema, packageAppClientDefinitionSchema, packageCredentialSlotNamePattern, packageAppCapabilityNamePattern, mcpToolCapabilitySegment, packageMcpToolCapabilityNamePattern, packageCapabilityDeclarationsSchema, packageAppVisitorNeedKeyPattern, packageAppVisitorNeedSchema, packageAppAnonymousRealtimeModes, packageAppPathSchema, packageAppDefinitionSchema, packageSecretMountDefinitionSchema, packageSecretProviderIdPattern, packageSecretProviderSchema, packageCredentialKindValues, secretProviderSlotKind, packageCredentialSlotKindValues, ownerCredentialForVisitorsValueMessage, packageCredentialSlotSchema, packageCredentialsSchema, secretProviderSlotPackagePattern, secretProviderSlotOnlyFields, packageSubscriptionDefinitionSchema, httpFieldNamePattern2, webhookSignedPayloadValues, webhookTimestampFormatValues, packageWebhookHmacVerificationSchema, packageWebhookUrlSecretVerificationSchema, packageWebhookVerificationSchema, webhookChallengeParamKeySchema, webhookChallengeWhenValueSchema, packageWebhookSubscriptionChallengeSchema, packageWebhookChallengeSchema, webhookTimestampFormatSchema, packageWebhookReplaySchema, webhookInputModeValues, webhookMaxRateLimitPerMinute, packageWebhookDefinitionSchema, packageWebhooksSchema, packageEmittedEventDefinitionSchema, packageExportConditionSchema, packageExportTargetSchema, scopedPackageNamePattern, kodyPackageDependencySchema, kodyPackageDependencyWildcard, kodyPackageDependenciesSchema, KODY_DESCRIPTION_MAX_LENGTH, kodyDescriptionTooLongPhrase, packagePublishDefinitionSchema, packageMachineNeedNamePattern, maxPackageMachineNeeds, machineNeedDescription, packageMachineNeedSchema, packageMachineNeedListSchema, packageMachineNeedEntrySchema, packageMachineNeedsSchema, authoredPackageKodySchema, authoredPackageJsonSchema;
|
|
11183
11183
|
var init_types = __esm({
|
|
11184
11184
|
"../worker/src/package-registry/types.ts"() {
|
|
11185
11185
|
"use strict";
|
|
@@ -11255,6 +11255,7 @@ var init_types = __esm({
|
|
|
11255
11255
|
}
|
|
11256
11256
|
);
|
|
11257
11257
|
packageAppAnonymousRealtimeModes = ["receive", "two-way"];
|
|
11258
|
+
packageAppPathSchema = external_exports.string().trim().max(512).regex(/^\/(?!\/)[^\s\\]*$/, "Use a path inside the app, like /menubar.");
|
|
11258
11259
|
packageAppDefinitionSchema = external_exports.object({
|
|
11259
11260
|
/**
|
|
11260
11261
|
* Server entry bundled for the package-app isolate. The default export
|
|
@@ -11309,6 +11310,19 @@ var init_types = __esm({
|
|
|
11309
11310
|
*/
|
|
11310
11311
|
realtime: external_exports.strictObject({
|
|
11311
11312
|
anonymous: external_exports.enum(packageAppAnonymousRealtimeModes).optional()
|
|
11313
|
+
}).optional(),
|
|
11314
|
+
/**
|
|
11315
|
+
* Kody desktop app install settings. `icon` is a path the app serves (like
|
|
11316
|
+
* `/icons/icon-512.png`) used for the launcher instead of `.kody/icon`.
|
|
11317
|
+
* `menuBar` is a page the desktop app offers as a menu-bar popover after
|
|
11318
|
+
* install, once the person grants the menu bar permission.
|
|
11319
|
+
*/
|
|
11320
|
+
desktop: external_exports.strictObject({
|
|
11321
|
+
icon: packageAppPathSchema.optional(),
|
|
11322
|
+
menuBar: external_exports.strictObject({
|
|
11323
|
+
path: packageAppPathSchema,
|
|
11324
|
+
tooltip: external_exports.string().trim().min(1).max(120).optional()
|
|
11325
|
+
}).optional()
|
|
11312
11326
|
}).optional()
|
|
11313
11327
|
});
|
|
11314
11328
|
packageSecretMountDefinitionSchema = external_exports.object({
|
|
@@ -29388,6 +29402,15 @@ var init_registry = __esm({
|
|
|
29388
29402
|
description: "Global switch (audience and rollout are ignored) for the issue #4129 30-day safety window before allowed-packages enforcement cutover. While on and inside the window, nothing is refused for a self-authored or adopted package that a user credential's non-empty allowed-packages list leaves out. The use is allowed with a log line (credential_allowed_packages_safety_window_allow) and keeps its would-block marker; the allowed-packages list is never written, so an owner's removal sticks. The owner is never notified. From cutover the rule is strict whether or not this flag is on. Delete the flag and gate sites once the window has closed."
|
|
29389
29403
|
// Intentionally no successMetric: a credential authority boundary, not
|
|
29390
29404
|
// a product experiment; the readout is the safety_window_allow log lines and would-block markers.
|
|
29405
|
+
},
|
|
29406
|
+
{
|
|
29407
|
+
key: "desktop-install-package-apps",
|
|
29408
|
+
removeWhen: "Installing package apps as desktop apps is on for everyone, or we drop it; delete the flag and every gate site.",
|
|
29409
|
+
reviewBy: "2027-02-25",
|
|
29410
|
+
defaultEnabled: false,
|
|
29411
|
+
description: "Install package apps as desktop apps: the Install control on package pages and hosted apps, per-app windows and OS launchers in the Kody desktop shell, kody://app links, and the permissioned app desktop bridge. Off by default; dogfood with org overrides. Anonymous visitors always see it off. When off, Install is hidden, kody://app install links are ignored, and installed app windows get no desktop bridge."
|
|
29412
|
+
// Intentionally no successMetric yet: no usage event records installs.
|
|
29413
|
+
// Add one when install is instrumented.
|
|
29391
29414
|
}
|
|
29392
29415
|
];
|
|
29393
29416
|
featureFlagKeys = featureFlagDefinitions.map((definition) => definition.key);
|
|
@@ -31764,6 +31787,37 @@ var init_published_source_files = __esm({
|
|
|
31764
31787
|
}
|
|
31765
31788
|
});
|
|
31766
31789
|
|
|
31790
|
+
// ../worker/src/concurrency.ts
|
|
31791
|
+
async function mapWithConcurrency(items, concurrency, mapper) {
|
|
31792
|
+
if (items.length === 0) return [];
|
|
31793
|
+
const limit = Math.max(1, Math.min(Math.floor(concurrency), items.length));
|
|
31794
|
+
const results = Array.from({ length: items.length });
|
|
31795
|
+
let nextIndex = 0;
|
|
31796
|
+
await Promise.all(
|
|
31797
|
+
Array.from({ length: limit }, async () => {
|
|
31798
|
+
while (nextIndex < items.length) {
|
|
31799
|
+
const index = nextIndex;
|
|
31800
|
+
nextIndex += 1;
|
|
31801
|
+
results[index] = await mapper(items[index]);
|
|
31802
|
+
}
|
|
31803
|
+
})
|
|
31804
|
+
);
|
|
31805
|
+
return results;
|
|
31806
|
+
}
|
|
31807
|
+
var init_concurrency = __esm({
|
|
31808
|
+
"../worker/src/concurrency.ts"() {
|
|
31809
|
+
"use strict";
|
|
31810
|
+
}
|
|
31811
|
+
});
|
|
31812
|
+
|
|
31813
|
+
// ../worker/src/kv-delete.ts
|
|
31814
|
+
var init_kv_delete = __esm({
|
|
31815
|
+
"../worker/src/kv-delete.ts"() {
|
|
31816
|
+
"use strict";
|
|
31817
|
+
init_concurrency();
|
|
31818
|
+
}
|
|
31819
|
+
});
|
|
31820
|
+
|
|
31767
31821
|
// ../worker/src/package-runtime/linked-artifact-store.ts
|
|
31768
31822
|
function linkedArtifactSourceKvPrefix(sourceId) {
|
|
31769
31823
|
return `${linkedArtifactStorePrefix}:v${linkedArtifactStoreVersion}:${sourceId}:`;
|
|
@@ -31882,6 +31936,7 @@ var init_linked_artifact_store = __esm({
|
|
|
31882
31936
|
"../worker/src/package-runtime/linked-artifact-store.ts"() {
|
|
31883
31937
|
"use strict";
|
|
31884
31938
|
init_sha256();
|
|
31939
|
+
init_kv_delete();
|
|
31885
31940
|
init_module_graph_paths();
|
|
31886
31941
|
linkedArtifactStorePrefix = "linked-artifact";
|
|
31887
31942
|
linkedArtifactStoreVersion = 1;
|
|
@@ -202449,6 +202504,7 @@ var init_community_icon = __esm({
|
|
|
202449
202504
|
init_data_cache();
|
|
202450
202505
|
init_deletion_state();
|
|
202451
202506
|
init_kv_cachified();
|
|
202507
|
+
init_kv_delete();
|
|
202452
202508
|
init_artifact_file();
|
|
202453
202509
|
init_entity_sources();
|
|
202454
202510
|
init_icon_fit();
|
|
@@ -203819,21 +203875,6 @@ var init_published_bundle_artifact_inputs = __esm({
|
|
|
203819
203875
|
});
|
|
203820
203876
|
|
|
203821
203877
|
// ../worker/src/package-runtime/published-bundle-artifacts.ts
|
|
203822
|
-
async function mapWithConcurrency(items, concurrency, mapper) {
|
|
203823
|
-
if (items.length === 0) return;
|
|
203824
|
-
const limit = Math.max(1, Math.min(concurrency, items.length));
|
|
203825
|
-
let nextIndex = 0;
|
|
203826
|
-
async function worker() {
|
|
203827
|
-
while (nextIndex < items.length) {
|
|
203828
|
-
const index = nextIndex;
|
|
203829
|
-
nextIndex += 1;
|
|
203830
|
-
const item = items[index];
|
|
203831
|
-
if (item === void 0) return;
|
|
203832
|
-
await mapper(item);
|
|
203833
|
-
}
|
|
203834
|
-
}
|
|
203835
|
-
await Promise.all(Array.from({ length: limit }, () => worker()));
|
|
203836
|
-
}
|
|
203837
203878
|
function publishedBundleLoadIdentityKey(input3) {
|
|
203838
203879
|
return publishedBundleArtifactIdentityKey({
|
|
203839
203880
|
sourceId: input3.sourceId,
|
|
@@ -203965,6 +204006,7 @@ var publishedPackageArtifactRebuildConcurrency;
|
|
|
203965
204006
|
var init_published_bundle_artifacts = __esm({
|
|
203966
204007
|
"../worker/src/package-runtime/published-bundle-artifacts.ts"() {
|
|
203967
204008
|
"use strict";
|
|
204009
|
+
init_concurrency();
|
|
203968
204010
|
init_linked_artifact_store();
|
|
203969
204011
|
init_pre_binding_artifact_repair();
|
|
203970
204012
|
init_published_runtime_artifacts();
|