@wordrhyme/plugin 0.1.0-alpha.7 → 0.1.0-alpha.9
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/artifact.d.ts +1 -1
- package/dist/artifact.js +1 -1
- package/dist/{chunk-FOCLZY64.js → chunk-73JVDIZ7.js} +10 -1
- package/dist/chunk-73JVDIZ7.js.map +1 -0
- package/dist/{chunk-NAWUXVZQ.js → chunk-T6JK4EW3.js} +63 -3
- package/dist/chunk-T6JK4EW3.js.map +1 -0
- package/dist/{client-CKtDWayV.d.ts → client-DSV_8wW8.d.ts} +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/dev-utils.d.ts +33 -1
- package/dist/dev-utils.js +13 -1
- package/dist/{entity-extensions-gJuSTXYZ.d.ts → entity-extensions-BYc-Nwm0.d.ts} +2 -2
- package/dist/index.d.ts +44 -9
- package/dist/index.js +57 -5
- package/dist/index.js.map +1 -1
- package/dist/{manifest-CDTCsMYV.d.ts → manifest-DHyrYHR4.d.ts} +42 -0
- package/dist/react.d.ts +39 -4
- package/dist/react.js +38 -0
- package/dist/react.js.map +1 -1
- package/dist/server.d.ts +4 -4
- package/dist/trpc.d.ts +1 -1
- package/dist/{types-9v-WZ_NU.d.ts → types-USpPUB_J.d.ts} +46 -1
- package/package.json +1 -1
- package/dist/chunk-FOCLZY64.js.map +0 -1
- package/dist/chunk-NAWUXVZQ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as PluginContext, d as PluginLogger,
|
|
2
|
-
export { A as ActionContractMeta,
|
|
1
|
+
import { a as PluginContext, d as PluginLogger, e as WebPluginSiteInfo } from './types-USpPUB_J.js';
|
|
2
|
+
export { A as ActionContractMeta, f as ActionDescriptor, g as ActionInvokeRequest, h as AgentToolDescriptor, i as AiAliasDescriptor, j as AiBudget, k as AiModelCatalog, l as AiModelHint, m as AiModelListRequest, n as AiModelOption, o as AiObjectRequest, p as AiObjectResult, q as AiObjectSchema, r as AiRuntimeHandler, s as AiRuntimeHost, t as AiRuntimeInvocation, u as AiStreamEvent, v as AiTextRequest, w as AiTextResult, x as AiUsage, y as AiUsageAuthorization, z as AiUsageObservation, B as ApiPayload, E as EAuthModel, C as EAuthProvider, D as EAuthRefreshInput, F as EAuthRefreshResult, G as EAuthStatus, I as EAuthTokenResult, J as EAuthUpsertInput, K as EAuthUse, L as HookAbortError, H as HookContext, M as HookEmitOptions, b as HookHandlerOptions, N as HookPriority, c as HookTransaction, O as MARKETPLACE_PUBLISH_AUTH_METHODS, Q as MarketplaceAttestationTargetV1, R as MarketplaceExecutionErrorCode, S as MarketplaceExecutionFailureCode, T as MarketplaceOrganizationExecutionV1, U as MarketplacePlatformReadAction, V as MarketplacePublishActor, X as MarketplacePublishAuthMethod, Y as MarketplacePublisherAction, Z as MarketplaceRegistrySigningCapability, _ as OpaquePublisherCandidateV1, $ as PluginActionInvokerCapability, a0 as PluginAgentCapability, a1 as PluginAiCapability, a2 as PluginAiRuntimeCapability, a3 as PluginApisCapability, a4 as PluginArtifactCapability, a5 as PluginAssetCapability, a6 as PluginAssetCreateOptions, a7 as PluginAssetInfo, a8 as PluginAssetQuery, a9 as PluginAssetUpdateData, aa as PluginAssetVariant, ab as PluginCurrencyCapability, ac as PluginEAuthCapability, ad as PluginEntityExtensionCapability, ae as PluginEntityExtensionFilter, af as PluginFileCapability, ag as PluginFileInfo, ah as PluginFileQuery, ai as PluginFileUploadInput, aj as PluginHookCapability, ak as PluginJobOptions, al as PluginJobStatus, am as PluginMediaCapability, P as PluginMediaInfo, an as PluginMediaQuery, ao as PluginMediaUpdateData, ap as PluginMediaUploadInput, aq as PluginMediaVariant, ar as PluginMetricsAllowedLabels, as as PluginMetricsCapability, at as PluginNotificationActor, au as PluginNotificationCapability, av as PluginNotificationChannel, aw as PluginNotificationEvent, ax as PluginNotificationInput, ay as PluginNotificationResult, az as PluginNotificationSendParams, aA as PluginNotificationSendResult, aB as PluginNotificationTarget, aC as PluginNotificationTemplate, aD as PluginOrganizationMembersCapability, aE as PluginOrganizationProvisioningCapability, aF as PluginPaginatedResult, aG as PluginPermissionCapability, aH as PluginPermissionCheckContext, aI as PluginPermissionDef, aJ as PluginQueueCapability, aK as PluginScopedDb, aL as PluginSettingEntry, aM as PluginSettingOptions, aN as PluginSettingsCapability, aO as PluginStorageCapability, aP as PluginStorageProvider, aQ as PluginStorageProviderConfig, aR as PluginStorageProviderInfo, aS as PluginStorageUploadInput, aT as PluginStorageUploadResult, aU as PluginTraceCapability, aV as PluginUsageCapability, aW as PluginWebCapability, aX as ReadonlyPluginScopedDb, aY as WebPluginHead, aZ as WebPluginHeadLink, a_ as WebPluginRouteHandler, a$ as WebPluginRouteRequest, b0 as WebPluginRouteResult, b1 as WebPluginTenantInfo, b2 as WebSlotExtensionQuery, b3 as WebSlotQueryResult, W as WebSlotRemoteExtension, b4 as WebSlotRenderMode, b5 as WebSlotRenderOptions, b6 as WebSlotRenderRequest, b7 as WebSlotRenderResult, b8 as WebSlotRenderer } from './types-USpPUB_J.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { Translator } from './globalization.js';
|
|
5
5
|
export { CurrencyInfo, DEFAULT_CURRENCY, FormatPriceOptions, GlobalizationState, I18nTextField, LanguageInfo, PriceFormatter, TextDirection, TranslationMessages, bankersRound, buildGlobalizationUrl, convertCurrency, createPriceFormatter, createTranslator, findCurrency, formatCurrencyAmount, formatPrice, fromCents, getBaseCurrency, getI18nText, getTextDirection, normalizeCurrencies, normalizeCurrencyInfo, resolveCurrencyInfo, toCents, withGlobalizationHelpers } from './globalization.js';
|
|
6
6
|
export { DEFAULT_LOCALE, canonicalizeLocale, isLocale, normalizeLocale } from './locale.js';
|
|
7
7
|
export { CLIENT_TIME_ZONE_COOKIE, CLIENT_TIME_ZONE_HEADER, DEFAULT_TIME_ZONE, DateFilterInput, DateFilterRange, DateRangeResolver, FormatDateTimeOptions, canonicalizeTimeZone, formatDateTime, getClientTimeZone, getSupportedTimeZones, isValidTimeZone, normalizeTimeZone, resolveDateFilterRange, toDateTimeLocal, toUtcDateTime, toUtcDayRange } from './time.js';
|
|
8
|
-
import { P as PluginManifest } from './manifest-
|
|
9
|
-
export { A as AdminTour, b as AdminTourPlacement, c as AdminTourStep, d as AggregationStrategy, e as AutoCrudAction, f as AutoCrudActionZone, g as AutoCrudActions, h as EntityExtension, i as EntityExtensionCrudConfig, a as EntityExtensionField, E as EntityExtensionFieldType, j as EntityExtensionSlot, k as EntityExtensionUse, l as PluginCapabilities, m as PluginNotificationType, n as PluginStatus, W as WebDesignAction, o as WebDesignBlock, p as WebDesignDataSource, q as WebDesignSlot, r as WebDesignSurface, s as WebDesignTemplate, t as WebExtension, u as WebExtensionQuery, v as WebExtensionTarget, w as WebPluginRoute, x as WebSsrContractVersion, y as WebSurface, z as adminExtensionSchema, B as adminTourPlacementSchema, C as adminTourSchema, D as adminTourStepSchema, F as autoCrudActionSchema, G as autoCrudActionZoneSchema, H as autoCrudActionsSchema, I as autoCrudDataSourceSchema, J as autoCrudFieldConfigSchema, K as autoCrudFieldOptionSchema, L as dashboardTargetSchema, M as entityExtensionCrudConfigSchema, N as entityExtensionFieldSchema, O as entityExtensionSchema, Q as entityExtensionSlotSchema, R as entityExtensionUseSchema, S as navGroupTargetSchema, T as navTargetSchema, U as pluginI18nSchema, V as pluginManifestSchema, X as pluginUsesSchema, Y as routeTargetSchema, Z as settingsTargetSchema, _ as targetSchema, $ as webDesignActionSchema, a0 as webDesignBlockSchema, a1 as webDesignDataSourceSchema, a2 as webDesignSlotSchema, a3 as webDesignSurfaceSchema, a4 as webDesignTemplateSchema, a5 as webExtensionQuerySchema, a6 as webExtensionSchema, a7 as webExtensionTargetSchema, a8 as webPluginRouteSchema, a9 as webSsrContractVersionSchema, aa as webSurfaceSchema } from './manifest-
|
|
8
|
+
import { P as PluginManifest } from './manifest-DHyrYHR4.js';
|
|
9
|
+
export { A as AdminTour, b as AdminTourPlacement, c as AdminTourStep, d as AggregationStrategy, e as AutoCrudAction, f as AutoCrudActionZone, g as AutoCrudActions, h as EntityExtension, i as EntityExtensionCrudConfig, a as EntityExtensionField, E as EntityExtensionFieldType, j as EntityExtensionSlot, k as EntityExtensionUse, l as PluginCapabilities, m as PluginNotificationType, n as PluginStatus, W as WebDesignAction, o as WebDesignBlock, p as WebDesignDataSource, q as WebDesignSlot, r as WebDesignSurface, s as WebDesignTemplate, t as WebExtension, u as WebExtensionQuery, v as WebExtensionTarget, w as WebPluginRoute, x as WebSsrContractVersion, y as WebSurface, z as adminExtensionSchema, B as adminTourPlacementSchema, C as adminTourSchema, D as adminTourStepSchema, F as autoCrudActionSchema, G as autoCrudActionZoneSchema, H as autoCrudActionsSchema, I as autoCrudDataSourceSchema, J as autoCrudFieldConfigSchema, K as autoCrudFieldOptionSchema, L as dashboardTargetSchema, M as entityExtensionCrudConfigSchema, N as entityExtensionFieldSchema, O as entityExtensionSchema, Q as entityExtensionSlotSchema, R as entityExtensionUseSchema, S as navGroupTargetSchema, T as navTargetSchema, U as pluginI18nSchema, V as pluginManifestSchema, X as pluginUsesSchema, Y as routeTargetSchema, Z as settingsTargetSchema, _ as targetSchema, $ as webDesignActionSchema, a0 as webDesignBlockSchema, a1 as webDesignDataSourceSchema, a2 as webDesignSlotSchema, a3 as webDesignSurfaceSchema, a4 as webDesignTemplateSchema, a5 as webExtensionQuerySchema, a6 as webExtensionSchema, a7 as webExtensionTargetSchema, a8 as webPluginRouteSchema, a9 as webSsrContractVersionSchema, aa as webSurfaceSchema } from './manifest-DHyrYHR4.js';
|
|
10
10
|
export { c as PLUGIN_ARCHIVE_MEDIA_TYPE, d as PLUGIN_RELEASE_SCHEMA_VERSION, e as PluginRegistryCatalog, f as PluginRegistryRelease, P as PluginRelease, g as PluginReleaseFile, h as PluginSignature, i as REGISTRY_CATALOG_SIGNATURE_DOMAIN, b as RegistryCatalogPageEnvelope, R as RegistryReleaseEnvelope, a as RegistrySignature, j as canonicalRegistryCatalogPageEnvelope, k as canonicalRegistryReleaseEnvelope, p as pluginArchivePathSchema, l as pluginRegistryCatalogSchema, m as pluginRegistryReleaseSchema, n as pluginReleaseFileSchema, o as pluginReleaseSchema, q as pluginSignatureSchema, r as registryCatalogPageEnvelopeSchema, s as registryCatalogPageSignaturePayload, t as registryCatalogReleasesPayload, u as registryReleaseEnvelopeSchema, v as registryReleaseSignaturePayload, w as registrySignatureSchema } from './release-CyapqJ3z.js';
|
|
11
|
-
export { E as ENTITY_EXTENSION_VALUES_SAVE_HOOK_ID, a as EXTENSION_PROJECT_SAVE_HOOK_ID, b as EntityExtensionProjectionValue, c as EntityExtensionValueSaveHandler, d as EntityExtensionValueSavePayload, e as EntityExtensionValueSaveResult, f as entityExtensions, r as registerEntityExtensionValueSaver } from './entity-extensions-
|
|
12
|
-
export { getPluginDevPort, getPluginDevRemoteEntry, getPluginMfName } from './dev-utils.js';
|
|
13
|
-
export { D as DashboardTarget, E as ExtensionComponentMap, G as GenericTarget, N as NavGroupTarget, a as NavTarget, R as RouteTarget, S as SettingsTarget, b as SlotContext, T as Target, c as ToolbarHandlerMap, U as UIExtensionDef, d as dashboardExtension, e as defineExtension, m as multiSlotExtension, n as navExtension, r as routeExtension, s as settingsExtension } from './client-
|
|
11
|
+
export { E as ENTITY_EXTENSION_VALUES_SAVE_HOOK_ID, a as EXTENSION_PROJECT_SAVE_HOOK_ID, b as EntityExtensionProjectionValue, c as EntityExtensionValueSaveHandler, d as EntityExtensionValueSavePayload, e as EntityExtensionValueSaveResult, f as entityExtensions, r as registerEntityExtensionValueSaver } from './entity-extensions-BYc-Nwm0.js';
|
|
12
|
+
export { PluginDevRuntimeConfig, PluginPublicWebSharedName, PluginReactOptions, PluginReactSharedOptions, getPluginDevPort, getPluginDevRemoteEntry, getPluginDevRuntimeConfig, getPluginMfName, isPluginDevRemoteSelected, parsePluginList, pluginPublicWebShared, pluginReactOptions, pluginReactShared } from './dev-utils.js';
|
|
13
|
+
export { D as DashboardTarget, E as ExtensionComponentMap, G as GenericTarget, N as NavGroupTarget, a as NavTarget, R as RouteTarget, S as SettingsTarget, b as SlotContext, T as Target, c as ToolbarHandlerMap, U as UIExtensionDef, d as dashboardExtension, e as defineExtension, m as multiSlotExtension, n as navExtension, r as routeExtension, s as settingsExtension } from './client-DSV_8wW8.js';
|
|
14
14
|
import 'decimal.js';
|
|
15
15
|
|
|
16
16
|
declare const MARKETPLACE_PUBLISH_SOURCES: readonly ["web", "cli", "github-actions"];
|
|
@@ -20,6 +20,9 @@ declare const marketplacePublishSourceSchema: z.ZodEnum<{
|
|
|
20
20
|
"github-actions": "github-actions";
|
|
21
21
|
}>;
|
|
22
22
|
type MarketplacePublishSource = z.infer<typeof marketplacePublishSourceSchema>;
|
|
23
|
+
declare const MARKETPLACE_PLUGIN_ICON_MEDIA_TYPES: readonly ["image/png", "image/jpeg", "image/webp", "image/gif"];
|
|
24
|
+
declare const MARKETPLACE_PLUGIN_ICON_MAX_BYTES: number;
|
|
25
|
+
type MarketplacePluginIconMediaType = (typeof MARKETPLACE_PLUGIN_ICON_MEDIA_TYPES)[number];
|
|
23
26
|
declare const MARKETPLACE_SUBMISSION_STATUSES: readonly ["uploaded", "scanning", "review_pending", "scan_failed", "approved", "rejected"];
|
|
24
27
|
declare const marketplaceSubmissionStatusSchema: z.ZodEnum<{
|
|
25
28
|
uploaded: "uploaded";
|
|
@@ -68,13 +71,39 @@ declare const marketplacePublisherProfileResponseSchema: z.ZodObject<{
|
|
|
68
71
|
}, z.core.$strip>>;
|
|
69
72
|
}, z.core.$strip>;
|
|
70
73
|
type MarketplacePublisherProfileResponse = z.infer<typeof marketplacePublisherProfileResponseSchema>;
|
|
74
|
+
declare const marketplacePublisherCapabilitiesSchema: z.ZodObject<{
|
|
75
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
76
|
+
ownedPluginMetadata: z.ZodBoolean;
|
|
77
|
+
pluginIconUpload: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
type MarketplacePublisherCapabilities = z.infer<typeof marketplacePublisherCapabilitiesSchema>;
|
|
80
|
+
declare const marketplacePublisherCapabilitiesResponseSchema: z.ZodObject<{
|
|
81
|
+
capabilities: z.ZodObject<{
|
|
82
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
83
|
+
ownedPluginMetadata: z.ZodBoolean;
|
|
84
|
+
pluginIconUpload: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
type MarketplacePublisherCapabilitiesResponse = z.infer<typeof marketplacePublisherCapabilitiesResponseSchema>;
|
|
71
88
|
declare const marketplaceOwnedPluginInputSchema: z.ZodObject<{
|
|
72
89
|
pluginId: z.ZodString;
|
|
73
|
-
|
|
90
|
+
name: z.ZodOptional<z.ZodString>;
|
|
91
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
iconUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
93
|
+
}, z.core.$strict>;
|
|
74
94
|
type MarketplaceOwnedPluginInput = z.infer<typeof marketplaceOwnedPluginInputSchema>;
|
|
95
|
+
declare const marketplaceOwnedPluginUpdateSchema: z.ZodObject<{
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
iconUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
type MarketplaceOwnedPluginUpdate = z.infer<typeof marketplaceOwnedPluginUpdateSchema>;
|
|
75
101
|
declare const marketplaceOwnedPluginSchema: z.ZodObject<{
|
|
76
102
|
pluginId: z.ZodString;
|
|
77
103
|
publisherId: z.ZodString;
|
|
104
|
+
name: z.ZodOptional<z.ZodString>;
|
|
105
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
iconUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
78
107
|
createdAt: z.ZodISODateTime;
|
|
79
108
|
updatedAt: z.ZodISODateTime;
|
|
80
109
|
}, z.core.$strip>;
|
|
@@ -83,6 +112,9 @@ declare const marketplaceOwnedPluginsResponseSchema: z.ZodObject<{
|
|
|
83
112
|
items: z.ZodArray<z.ZodObject<{
|
|
84
113
|
pluginId: z.ZodString;
|
|
85
114
|
publisherId: z.ZodString;
|
|
115
|
+
name: z.ZodOptional<z.ZodString>;
|
|
116
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
iconUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
86
118
|
createdAt: z.ZodISODateTime;
|
|
87
119
|
updatedAt: z.ZodISODateTime;
|
|
88
120
|
}, z.core.$strip>>;
|
|
@@ -92,6 +124,9 @@ declare const marketplaceOwnedPluginResponseSchema: z.ZodObject<{
|
|
|
92
124
|
plugin: z.ZodObject<{
|
|
93
125
|
pluginId: z.ZodString;
|
|
94
126
|
publisherId: z.ZodString;
|
|
127
|
+
name: z.ZodOptional<z.ZodString>;
|
|
128
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
iconUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
95
130
|
createdAt: z.ZodISODateTime;
|
|
96
131
|
updatedAt: z.ZodISODateTime;
|
|
97
132
|
}, z.core.$strip>;
|
|
@@ -686,4 +721,4 @@ declare class ConnectorError extends Error {
|
|
|
686
721
|
declare function resolveRemoteOrigin(baseUrl: string, allowedOrigins: string[]): string;
|
|
687
722
|
declare function createWordRhymeConnector(options: ConnectorOptions): WordRhymeConnector;
|
|
688
723
|
|
|
689
|
-
export { AI_ERROR_I18N_KEYS, type ActionExecutor, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentToolDefinition, type AgentToolSource, type AiErrorCode, type AiErrorDescriptor, type AiErrorI18nKey, type AssembleOptions, ConnectorError, type ConnectorInvokeRequest, type ConnectorLocalActions, type ConnectorOptions, type LocalConnectorOptions, MARKETPLACE_PUBLISH_SOURCES, MARKETPLACE_SUBMISSION_STATUSES, type MarketplaceOwnedPlugin, type MarketplaceOwnedPluginInput, type MarketplaceOwnedPluginResponse, type MarketplaceOwnedPluginsResponse, type MarketplacePublishSource, type MarketplacePublisherError, type MarketplacePublisherProfile, type MarketplacePublisherProfileInput, type MarketplacePublisherProfileResponse, type MarketplaceReleaseAcceptedResponse, type MarketplaceSubmission, type MarketplaceSubmissionCursor, type MarketplaceSubmissionStatus, type MarketplaceSubmissionsResponse, type ModelClient, type ModelMessage, type ModelResponse, type ModelToolCall, PluginContext, PluginLogger, PluginManifest, type RemoteConnectorOptions, type RunStopReason, type ToolCallDecision, type ToolCallGateInput, type ToolCallRefusal, type ToolChannel, Translator, WebPluginSiteInfo, type WebUrlSearchParams, type WebUrlSearchValue, type WordRhymeConnector, aiErrorDescriptor, assembleTools, buildWebUrl, checkPermission, createLogger, createWordRhymeConnector, definePlugin, encodeToolResult, formatAiError, gateToolCall, hasCapability, marketplaceOwnedPluginInputSchema, marketplaceOwnedPluginResponseSchema, marketplaceOwnedPluginSchema, marketplaceOwnedPluginsResponseSchema, marketplacePublishSourceSchema, marketplacePublisherErrorSchema, marketplacePublisherProfileInputSchema, marketplacePublisherProfileResponseSchema, marketplacePublisherProfileSchema, marketplaceReleaseAcceptedResponseSchema, marketplaceSubmissionCursorSchema, marketplaceSubmissionSchema, marketplaceSubmissionStatusSchema, marketplaceSubmissionsResponseSchema, requirePermission, requiresApprovalFor, resolveRemoteOrigin, runAgent, toolNameFor };
|
|
724
|
+
export { AI_ERROR_I18N_KEYS, type ActionExecutor, type AgentRunEvent, type AgentRunOptions, type AgentRunResult, type AgentToolDefinition, type AgentToolSource, type AiErrorCode, type AiErrorDescriptor, type AiErrorI18nKey, type AssembleOptions, ConnectorError, type ConnectorInvokeRequest, type ConnectorLocalActions, type ConnectorOptions, type LocalConnectorOptions, MARKETPLACE_PLUGIN_ICON_MAX_BYTES, MARKETPLACE_PLUGIN_ICON_MEDIA_TYPES, MARKETPLACE_PUBLISH_SOURCES, MARKETPLACE_SUBMISSION_STATUSES, type MarketplaceOwnedPlugin, type MarketplaceOwnedPluginInput, type MarketplaceOwnedPluginResponse, type MarketplaceOwnedPluginUpdate, type MarketplaceOwnedPluginsResponse, type MarketplacePluginIconMediaType, type MarketplacePublishSource, type MarketplacePublisherCapabilities, type MarketplacePublisherCapabilitiesResponse, type MarketplacePublisherError, type MarketplacePublisherProfile, type MarketplacePublisherProfileInput, type MarketplacePublisherProfileResponse, type MarketplaceReleaseAcceptedResponse, type MarketplaceSubmission, type MarketplaceSubmissionCursor, type MarketplaceSubmissionStatus, type MarketplaceSubmissionsResponse, type ModelClient, type ModelMessage, type ModelResponse, type ModelToolCall, PluginContext, PluginLogger, PluginManifest, type RemoteConnectorOptions, type RunStopReason, type ToolCallDecision, type ToolCallGateInput, type ToolCallRefusal, type ToolChannel, Translator, WebPluginSiteInfo, type WebUrlSearchParams, type WebUrlSearchValue, type WordRhymeConnector, aiErrorDescriptor, assembleTools, buildWebUrl, checkPermission, createLogger, createWordRhymeConnector, definePlugin, encodeToolResult, formatAiError, gateToolCall, hasCapability, marketplaceOwnedPluginInputSchema, marketplaceOwnedPluginResponseSchema, marketplaceOwnedPluginSchema, marketplaceOwnedPluginUpdateSchema, marketplaceOwnedPluginsResponseSchema, marketplacePublishSourceSchema, marketplacePublisherCapabilitiesResponseSchema, marketplacePublisherCapabilitiesSchema, marketplacePublisherErrorSchema, marketplacePublisherProfileInputSchema, marketplacePublisherProfileResponseSchema, marketplacePublisherProfileSchema, marketplaceReleaseAcceptedResponseSchema, marketplaceSubmissionCursorSchema, marketplaceSubmissionSchema, marketplaceSubmissionStatusSchema, marketplaceSubmissionsResponseSchema, requirePermission, requiresApprovalFor, resolveRemoteOrigin, runAgent, toolNameFor };
|
package/dist/index.js
CHANGED
|
@@ -77,12 +77,18 @@ import {
|
|
|
77
77
|
webPluginRouteSchema,
|
|
78
78
|
webSsrContractVersionSchema,
|
|
79
79
|
webSurfaceSchema
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-73JVDIZ7.js";
|
|
81
81
|
import {
|
|
82
82
|
getPluginDevPort,
|
|
83
83
|
getPluginDevRemoteEntry,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
getPluginDevRuntimeConfig,
|
|
85
|
+
getPluginMfName,
|
|
86
|
+
isPluginDevRemoteSelected,
|
|
87
|
+
parsePluginList,
|
|
88
|
+
pluginPublicWebShared,
|
|
89
|
+
pluginReactOptions,
|
|
90
|
+
pluginReactShared
|
|
91
|
+
} from "./chunk-T6JK4EW3.js";
|
|
86
92
|
import {
|
|
87
93
|
DEFAULT_CURRENCY,
|
|
88
94
|
bankersRound,
|
|
@@ -140,6 +146,13 @@ var HookAbortError = class extends Error {
|
|
|
140
146
|
import { z } from "zod";
|
|
141
147
|
var MARKETPLACE_PUBLISH_SOURCES = ["web", "cli", "github-actions"];
|
|
142
148
|
var marketplacePublishSourceSchema = z.enum(MARKETPLACE_PUBLISH_SOURCES);
|
|
149
|
+
var MARKETPLACE_PLUGIN_ICON_MEDIA_TYPES = [
|
|
150
|
+
"image/png",
|
|
151
|
+
"image/jpeg",
|
|
152
|
+
"image/webp",
|
|
153
|
+
"image/gif"
|
|
154
|
+
];
|
|
155
|
+
var MARKETPLACE_PLUGIN_ICON_MAX_BYTES = 2 * 1024 * 1024;
|
|
143
156
|
var MARKETPLACE_SUBMISSION_STATUSES = [
|
|
144
157
|
"uploaded",
|
|
145
158
|
"scanning",
|
|
@@ -164,12 +177,40 @@ var marketplacePublisherProfileSchema = z.object({
|
|
|
164
177
|
var marketplacePublisherProfileResponseSchema = z.object({
|
|
165
178
|
profile: marketplacePublisherProfileSchema.nullable()
|
|
166
179
|
});
|
|
167
|
-
var
|
|
168
|
-
|
|
180
|
+
var marketplacePublisherCapabilitiesSchema = z.object({
|
|
181
|
+
schemaVersion: z.literal(1),
|
|
182
|
+
ownedPluginMetadata: z.boolean(),
|
|
183
|
+
// Optional so a newer Host remains compatible with an older Marketplace
|
|
184
|
+
// plugin during a rolling upgrade.
|
|
185
|
+
pluginIconUpload: z.boolean().optional()
|
|
169
186
|
});
|
|
187
|
+
var marketplacePublisherCapabilitiesResponseSchema = z.object({
|
|
188
|
+
capabilities: marketplacePublisherCapabilitiesSchema
|
|
189
|
+
});
|
|
190
|
+
var marketplaceOwnedPluginNameSchema = z.string().trim().min(1).max(100);
|
|
191
|
+
var marketplaceOwnedPluginDescriptionSchema = z.string().trim().max(500).nullable().optional();
|
|
192
|
+
var marketplaceOwnedPluginIconUrlSchema = z.url().max(2048).refine((value) => ["http:", "https:"].includes(new URL(value).protocol), {
|
|
193
|
+
message: "iconUrl must use HTTP or HTTPS"
|
|
194
|
+
}).nullable().optional();
|
|
195
|
+
var marketplaceOwnedPluginInputSchema = z.object({
|
|
196
|
+
pluginId: pluginManifestSchema.shape.pluginId,
|
|
197
|
+
name: marketplaceOwnedPluginNameSchema.optional(),
|
|
198
|
+
description: marketplaceOwnedPluginDescriptionSchema,
|
|
199
|
+
iconUrl: marketplaceOwnedPluginIconUrlSchema
|
|
200
|
+
}).strict();
|
|
201
|
+
var marketplaceOwnedPluginUpdateSchema = z.object({
|
|
202
|
+
name: marketplaceOwnedPluginNameSchema,
|
|
203
|
+
description: marketplaceOwnedPluginDescriptionSchema,
|
|
204
|
+
iconUrl: marketplaceOwnedPluginIconUrlSchema
|
|
205
|
+
}).strict();
|
|
170
206
|
var marketplaceOwnedPluginSchema = z.object({
|
|
171
207
|
pluginId: pluginManifestSchema.shape.pluginId,
|
|
172
208
|
publisherId: z.string().uuid(),
|
|
209
|
+
// Optional on the wire so a newer Host can continue reading an older
|
|
210
|
+
// independently deployed Marketplace plugin during a rolling upgrade.
|
|
211
|
+
name: z.string().min(1).max(160).optional(),
|
|
212
|
+
description: z.string().max(500).nullable().optional(),
|
|
213
|
+
iconUrl: z.url().max(2048).nullable().optional(),
|
|
173
214
|
createdAt: z.iso.datetime({ offset: true }),
|
|
174
215
|
updatedAt: z.iso.datetime({ offset: true })
|
|
175
216
|
});
|
|
@@ -654,6 +695,8 @@ export {
|
|
|
654
695
|
EXTENSION_PROJECT_SAVE_HOOK_ID,
|
|
655
696
|
HookAbortError,
|
|
656
697
|
HookPriority,
|
|
698
|
+
MARKETPLACE_PLUGIN_ICON_MAX_BYTES,
|
|
699
|
+
MARKETPLACE_PLUGIN_ICON_MEDIA_TYPES,
|
|
657
700
|
MARKETPLACE_PUBLISH_AUTH_METHODS,
|
|
658
701
|
MARKETPLACE_PUBLISH_SOURCES,
|
|
659
702
|
MARKETPLACE_SUBMISSION_STATUSES,
|
|
@@ -708,17 +751,22 @@ export {
|
|
|
708
751
|
getI18nText,
|
|
709
752
|
getPluginDevPort,
|
|
710
753
|
getPluginDevRemoteEntry,
|
|
754
|
+
getPluginDevRuntimeConfig,
|
|
711
755
|
getPluginMfName,
|
|
712
756
|
getSupportedTimeZones,
|
|
713
757
|
getTextDirection,
|
|
714
758
|
hasCapability,
|
|
715
759
|
isLocale,
|
|
760
|
+
isPluginDevRemoteSelected,
|
|
716
761
|
isValidTimeZone,
|
|
717
762
|
marketplaceOwnedPluginInputSchema,
|
|
718
763
|
marketplaceOwnedPluginResponseSchema,
|
|
719
764
|
marketplaceOwnedPluginSchema,
|
|
765
|
+
marketplaceOwnedPluginUpdateSchema,
|
|
720
766
|
marketplaceOwnedPluginsResponseSchema,
|
|
721
767
|
marketplacePublishSourceSchema,
|
|
768
|
+
marketplacePublisherCapabilitiesResponseSchema,
|
|
769
|
+
marketplacePublisherCapabilitiesSchema,
|
|
722
770
|
marketplacePublisherErrorSchema,
|
|
723
771
|
marketplacePublisherProfileInputSchema,
|
|
724
772
|
marketplacePublisherProfileResponseSchema,
|
|
@@ -736,9 +784,13 @@ export {
|
|
|
736
784
|
normalizeCurrencyInfo,
|
|
737
785
|
normalizeLocale,
|
|
738
786
|
normalizeTimeZone,
|
|
787
|
+
parsePluginList,
|
|
739
788
|
pluginArchivePathSchema,
|
|
740
789
|
pluginI18nSchema,
|
|
741
790
|
pluginManifestSchema,
|
|
791
|
+
pluginPublicWebShared,
|
|
792
|
+
pluginReactOptions,
|
|
793
|
+
pluginReactShared,
|
|
742
794
|
pluginRegistryCatalogSchema,
|
|
743
795
|
pluginRegistryReleaseSchema,
|
|
744
796
|
pluginReleaseFileSchema,
|