@fayz-ai/core 0.14.0 → 0.16.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/dist/access/engine.d.ts +31 -1
- package/dist/access/engine.d.ts.map +1 -1
- package/dist/access/index.d.ts +1 -1
- package/dist/access/index.d.ts.map +1 -1
- package/dist/access/index.js +24 -3
- package/dist/access/index.js.map +1 -1
- package/dist/app/app-config.d.ts +101 -0
- package/dist/app/app-config.d.ts.map +1 -0
- package/dist/app/service-client.d.ts +69 -0
- package/dist/app/service-client.d.ts.map +1 -0
- package/dist/{chunk-S5FOFKR4.js → chunk-2ZAUJVYP.js} +103 -24
- package/dist/chunk-2ZAUJVYP.js.map +1 -0
- package/dist/{chunk-KFBEKFII.js → chunk-BCI743RH.js} +37 -4
- package/dist/chunk-BCI743RH.js.map +1 -0
- package/dist/{chunk-IKZR3WSK.js → chunk-KJUD6JA5.js} +3 -3
- package/dist/{chunk-IKZR3WSK.js.map → chunk-KJUD6JA5.js.map} +1 -1
- package/dist/{chunk-7GJTLBG3.js → chunk-OHH26S4N.js} +3 -3
- package/dist/{chunk-7GJTLBG3.js.map → chunk-OHH26S4N.js.map} +1 -1
- package/dist/chunk-RCMFU3RZ.js +13 -0
- package/dist/chunk-RCMFU3RZ.js.map +1 -0
- package/dist/{chunk-RRYFXUQX.js → chunk-UMIZDILP.js} +7 -3
- package/dist/chunk-UMIZDILP.js.map +1 -0
- package/dist/{chunk-X4FRQR2R.js → chunk-ZIB6Y7TE.js} +153 -8
- package/dist/chunk-ZIB6Y7TE.js.map +1 -0
- package/dist/data/archetype.d.ts +5 -0
- package/dist/data/archetype.d.ts.map +1 -1
- package/dist/data/cached.d.ts +17 -2
- package/dist/data/cached.d.ts.map +1 -1
- package/dist/data/index.d.ts +1 -0
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +2 -2
- package/dist/data/missing-objects.d.ts +14 -0
- package/dist/data/missing-objects.d.ts.map +1 -0
- package/dist/data/offline.d.ts +10 -1
- package/dist/data/offline.d.ts.map +1 -1
- package/dist/data/resolve.d.ts.map +1 -1
- package/dist/data/supabase.d.ts +5 -0
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/data/unit-scope.d.ts +48 -0
- package/dist/data/unit-scope.d.ts.map +1 -0
- package/dist/events/envelope.d.ts.map +1 -1
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/log.d.ts.map +1 -1
- package/dist/events/useDataVersion.d.ts +28 -0
- package/dist/events/useDataVersion.d.ts.map +1 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/shell-translations.en.d.ts.map +1 -1
- package/dist/i18n/shell-translations.pt-br.d.ts.map +1 -1
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +653 -45
- package/dist/index.js.map +1 -1
- package/dist/integrations/index.js +2 -2
- package/dist/lib/debug.d.ts +12 -0
- package/dist/lib/debug.d.ts.map +1 -0
- package/dist/lib/unit.d.ts +20 -0
- package/dist/lib/unit.d.ts.map +1 -0
- package/dist/manifest/index.d.ts +45 -0
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest/integration-surface.d.ts +16 -0
- package/dist/manifest/integration-surface.d.ts.map +1 -0
- package/dist/messaging/index.d.ts +5 -2
- package/dist/messaging/index.d.ts.map +1 -1
- package/dist/messaging/phone.d.ts +32 -0
- package/dist/messaging/phone.d.ts.map +1 -0
- package/dist/messaging/provider-template.d.ts +122 -0
- package/dist/messaging/provider-template.d.ts.map +1 -0
- package/dist/messaging/registry.d.ts +12 -1
- package/dist/messaging/registry.d.ts.map +1 -1
- package/dist/messaging/types.d.ts +32 -0
- package/dist/messaging/types.d.ts.map +1 -1
- package/dist/plugin/index.js +1 -1
- package/dist/plugin/runtime.d.ts.map +1 -1
- package/dist/search/engine.d.ts.map +1 -1
- package/dist/{shell-translations.pt-br-PTOWYXNA.js → shell-translations.pt-br-HD4F3QKU.js} +118 -7
- package/dist/shell-translations.pt-br-HD4F3QKU.js.map +1 -0
- package/dist/testing/index.js +3 -3
- package/dist/types/agents.d.ts +97 -0
- package/dist/types/agents.d.ts.map +1 -0
- package/dist/types/analytics.d.ts +15 -0
- package/dist/types/analytics.d.ts.map +1 -1
- package/dist/types/auth.d.ts +9 -0
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/crud.d.ts +38 -0
- package/dist/types/crud.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/org.d.ts +10 -0
- package/dist/types/org.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +97 -0
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-KFBEKFII.js.map +0 -1
- package/dist/chunk-RRYFXUQX.js.map +0 -1
- package/dist/chunk-S5FOFKR4.js.map +0 -1
- package/dist/chunk-X4FRQR2R.js.map +0 -1
- package/dist/shell-translations.pt-br-PTOWYXNA.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CONNECTIONS_TABLE, CONNECTOR_CATEGORIES, ConnectionSettingsError, ConnectorRuntimeTokenUnavailableError, RequestBlockedError, RequestPlaneError, SYNC_RUNS_TABLE, assertSettingsAllowed, buyerIdempotencyKey, connectionKey, connectionRuns, connectionSettings, connectionStatus, connectorDirection, connectorEntities, connectorGrantScopes, connectorPermissions, connectorPlanes, connectorRuntimeToken, connectorSettings, connectorSubscribes, connectorSubscribesTo, createConnectionStore, createRpcEffectLedger, eventKeyMatches, getConnectorRuntimeTokenSource, grants, groupedPermissions, hasRequestPlane, hasSensitivePermission, invocationPlane, isConnectorCategory, isDataPermission, isEventPermission, isSettingSet, listConnections, missingRequiredSettings, permissionActions, permissionsWrite, preferredPlane, requestPlaneSpec, runEffect, runRequest, setConnectorRuntimeTokenSource, settingsStatus, setupStatusDetail, sortedPermissions, withAfterHooks } from '../chunk-
|
|
1
|
+
export { CONNECTIONS_TABLE, CONNECTOR_CATEGORIES, ConnectionSettingsError, ConnectorRuntimeTokenUnavailableError, RequestBlockedError, RequestPlaneError, SYNC_RUNS_TABLE, assertSettingsAllowed, buyerIdempotencyKey, connectionKey, connectionRuns, connectionSettings, connectionStatus, connectorDirection, connectorEntities, connectorGrantScopes, connectorPermissions, connectorPlanes, connectorRuntimeToken, connectorSettings, connectorSubscribes, connectorSubscribesTo, createConnectionStore, createRpcEffectLedger, eventKeyMatches, getConnectorRuntimeTokenSource, grants, groupedPermissions, hasRequestPlane, hasSensitivePermission, invocationPlane, isConnectorCategory, isDataPermission, isEventPermission, isSettingSet, listConnections, missingRequiredSettings, permissionActions, permissionsWrite, preferredPlane, requestPlaneSpec, runEffect, runRequest, setConnectorRuntimeTokenSource, settingsStatus, setupStatusDetail, sortedPermissions, withAfterHooks } from '../chunk-OHH26S4N.js';
|
|
2
2
|
export { CONNECTOR_RUNTIME_TOKEN_HEADER, ConnectorHttpError, RateLimitExceededError, advanceWindow, backoffDelay, classify, createRateLimiter, cursorCompleteness, fetchWithRetry, isExpiring, paginate, parseRetryAfter, reconcileMirror, serializeCursor, sliceWindow, statusNeedsBody } from '../chunk-ED6NBH6U.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-BCI743RH.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type LogFn = (message: string, ...data: unknown[]) => void;
|
|
2
|
+
export interface DebugLogger extends LogFn {
|
|
3
|
+
/** Amber, for the recoverable: a fallback taken, a retry scheduled. */
|
|
4
|
+
warn: LogFn;
|
|
5
|
+
/** Red, for the broken: a refused write, a dead letter, a bad contract. */
|
|
6
|
+
error: LogFn;
|
|
7
|
+
/** True when this scope currently prints — guard expensive payload builds. */
|
|
8
|
+
readonly enabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function createDebug(scope: string): DebugLogger;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/lib/debug.ts"],"names":[],"mappings":"AAmBA,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;AAE1D,MAAM,WAAW,WAAY,SAAQ,KAAK;IACxC,uEAAuE;IACvE,IAAI,EAAE,KAAK,CAAA;IACX,2EAA2E;IAC3E,KAAK,EAAE,KAAK,CAAA;IACZ,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AA4CD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAetD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function setActiveUnitId(id: string | undefined): void;
|
|
2
|
+
/**
|
|
3
|
+
* The unit the UI is currently narrowed to, or `undefined` for all of them.
|
|
4
|
+
*
|
|
5
|
+
* Returns `undefined` whenever unit mode is off, which is what makes every
|
|
6
|
+
* downstream seam a no-op on a tenant that does not use units — none of them
|
|
7
|
+
* has to know the flag exists.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getActiveUnitId(): string | undefined;
|
|
10
|
+
/** Whether this tenant works with units at all. Mirrors `tenants.unit_scoping_enabled`. */
|
|
11
|
+
export declare function setUnitMode(on: boolean): void;
|
|
12
|
+
export declare function isUnitMode(): boolean;
|
|
13
|
+
export declare function subscribeActiveUnit(listener: () => void): () => void;
|
|
14
|
+
/** The active unit, re-rendering when it resolves or changes. */
|
|
15
|
+
export declare function useActiveUnitId(): string | undefined;
|
|
16
|
+
/** Whether the tenant works with units, re-rendering on change. */
|
|
17
|
+
export declare function useUnitMode(): boolean;
|
|
18
|
+
/** Drop everything on sign-out / tenant switch, so no unit survives into another org. */
|
|
19
|
+
export declare function resetActiveUnit(): void;
|
|
20
|
+
//# sourceMappingURL=unit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../src/lib/unit.ts"],"names":[],"mappings":"AA+BA,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAI5D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAEpD;AAED,2FAA2F;AAC3F,wBAAgB,WAAW,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAI7C;AAED,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAGpE;AAED,iEAAiE;AACjE,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAEpD;AAED,mEAAmE;AACnE,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,yFAAyF;AACzF,wBAAgB,eAAe,IAAI,IAAI,CAKtC"}
|
package/dist/manifest/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AgentRole } from '../types/agents';
|
|
1
2
|
import type { EntityDef } from '../types/crud';
|
|
2
3
|
import type { LocaleConfig } from '../types/i18n';
|
|
3
4
|
import type { PermissionsConfig, FeatureDeclaration } from '../types/permissions';
|
|
@@ -110,6 +111,24 @@ export interface AIToolContract {
|
|
|
110
111
|
requiresConfirmation?: boolean;
|
|
111
112
|
pluginId?: string;
|
|
112
113
|
category?: string;
|
|
114
|
+
/** Staff role that carries it — resolved (tool's own, else its plugin's).
|
|
115
|
+
* Absent means shared by every agent. */
|
|
116
|
+
role?: AgentRole;
|
|
117
|
+
}
|
|
118
|
+
/** JSON-safe projection of an {@link AgentStaffDef}. Behaviour-free: prose and
|
|
119
|
+
* the hiring key, no components. */
|
|
120
|
+
export interface AgentStaffContract {
|
|
121
|
+
role: AgentRole;
|
|
122
|
+
name: string;
|
|
123
|
+
title: string;
|
|
124
|
+
avatar?: string;
|
|
125
|
+
goal?: string;
|
|
126
|
+
backstory?: string;
|
|
127
|
+
instructions?: string;
|
|
128
|
+
host?: boolean;
|
|
129
|
+
included?: boolean;
|
|
130
|
+
/** Entitlement feature that hires this agent (`assistant.<role>` by default). */
|
|
131
|
+
feature?: string;
|
|
113
132
|
}
|
|
114
133
|
/** A tenant-scoped pool RPC the server-plane executor may call. Canonical
|
|
115
134
|
* definition lives with the plugin types (plugins declare these). */
|
|
@@ -129,11 +148,15 @@ export interface AgentDomainKnowledge {
|
|
|
129
148
|
}>;
|
|
130
149
|
}
|
|
131
150
|
export interface AgentContract {
|
|
151
|
+
/** The app's single face, kept for every consumer that predates `staff`.
|
|
152
|
+
* With a cast, this mirrors its host — an old reader still gets a name. */
|
|
132
153
|
persona?: {
|
|
133
154
|
name?: string;
|
|
134
155
|
systemPrompt?: string;
|
|
135
156
|
icon?: string;
|
|
136
157
|
};
|
|
158
|
+
/** The named agents this app employs, two to four. See {@link AgentStaffDef}. */
|
|
159
|
+
staff?: AgentStaffContract[];
|
|
137
160
|
/** When 'server', surfaces stop shipping data-tool executors: the broker
|
|
138
161
|
* executes reads/writes server-plane and the surface only handles
|
|
139
162
|
* client-plane tools. Flipped per app — no lockstep release. */
|
|
@@ -150,6 +173,26 @@ export interface AgentContract {
|
|
|
150
173
|
rpcs?: AgentRpcDeclaration[];
|
|
151
174
|
domainKnowledge?: AgentDomainKnowledge;
|
|
152
175
|
}
|
|
176
|
+
/** What the app's code declares: an entity key and what may be done with it. */
|
|
177
|
+
export interface SharedEntityDeclaration {
|
|
178
|
+
/** Key of an entity in `agent.entities`. The table is read from there. */
|
|
179
|
+
entity: string;
|
|
180
|
+
/** `read` is the floor. Deleting another product's records is not expressible. */
|
|
181
|
+
operations: Array<'read' | 'create' | 'update'>;
|
|
182
|
+
/** Written for the person on the consent screen, not for the integrator. */
|
|
183
|
+
reason: string;
|
|
184
|
+
}
|
|
185
|
+
/** The emitted form: the declaration with its table resolved at emit, so the
|
|
186
|
+
* platform reads one structure instead of joining two. */
|
|
187
|
+
export interface SharedEntity extends SharedEntityDeclaration {
|
|
188
|
+
label: string;
|
|
189
|
+
table: string;
|
|
190
|
+
schema?: string;
|
|
191
|
+
tenantIdColumn?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface IntegrationSurface {
|
|
194
|
+
entities: SharedEntity[];
|
|
195
|
+
}
|
|
153
196
|
export interface AppManifest {
|
|
154
197
|
manifestVersion: number;
|
|
155
198
|
id: string;
|
|
@@ -170,6 +213,8 @@ export interface AppManifest {
|
|
|
170
213
|
limitDeclarations?: LimitDeclaration[];
|
|
171
214
|
/** v3: the agent contract — see the section comment above. */
|
|
172
215
|
agent?: AgentContract;
|
|
216
|
+
/** What another app may reach when a member of this org consents. */
|
|
217
|
+
integrationSurface?: IntegrationSurface;
|
|
173
218
|
/** sha256 of the canonical serialization (excluding this field). */
|
|
174
219
|
contractHash?: string;
|
|
175
220
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC9F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAgBnD,eAAO,MAAM,wBAAwB,IA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AA;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;8EAC0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IACzC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;oFACgF;IAChF,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAQD,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACtC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,WAAW,KAAK,WAAW,CAAA;AAgC/D,yFAAyF;AACzF,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,iBAAiB,GAAG,IAAI,CAE1F;AAQD;qDACqD;AACrD,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAkB/D;AAED;iEACiE;AACjE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,CA2EzD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EntityContract, IntegrationSurface, SharedEntityDeclaration } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* Declarations → the emitted surface, with each entity's table resolved from
|
|
4
|
+
* the agent contract.
|
|
5
|
+
*
|
|
6
|
+
* Every refusal here is a mistake that would otherwise be SILENT. A misspelled
|
|
7
|
+
* entity key shares nothing and reads as a working integration; a shared entity
|
|
8
|
+
* that is not tenant-scoped hands a stranger every organization in the pool,
|
|
9
|
+
* because the tenant predicate the platform AND-s in has no column to bind to.
|
|
10
|
+
* Both are cheap to catch at emit and expensive to notice in production.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveIntegrationSurface(declarations: SharedEntityDeclaration[], entities: EntityContract[]): IntegrationSurface;
|
|
13
|
+
/** True when anything here can be written, which is what decides whether the
|
|
14
|
+
* consent screen may offer `write` at all. */
|
|
15
|
+
export declare function surfaceAllowsWrites(surface: IntegrationSurface): boolean;
|
|
16
|
+
//# sourceMappingURL=integration-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-surface.d.ts","sourceRoot":"","sources":["../../src/manifest/integration-surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAgB,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAExG;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,uBAAuB,EAAE,EACvC,QAAQ,EAAE,cAAc,EAAE,GACzB,kBAAkB,CAqDpB;AAED;+CAC+C;AAC/C,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAExE"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export type { MessageChannel, MessageKind, MessageDefault, MessageDefaultsDef, MessageTemplate, UpsertMessageTemplateInput, ResolvedMessage, } from './types';
|
|
2
|
-
export { registerMessageDefaults, getMessageDefaults, clearMessageDefaults, renderMessageTemplate, resolveMessages, resolveMessage, getEventsWithoutMessages, loadMessageOverrides, MESSAGE_TEMPLATES_TABLE, } from './registry';
|
|
1
|
+
export type { MessageChannel, MessageKind, MessageDefault, MessageDefaultsDef, MessageTemplate, UpsertMessageTemplateInput, ResolvedMessage, MessageAction, MessageActionId, MessageActionKind, } from './types';
|
|
2
|
+
export { registerMessageDefaults, getMessageDefaults, clearMessageDefaults, renderMessageTemplate, resolveMessages, resolveMessage, getEventsWithoutMessages, loadMessageOverrides, MESSAGE_TEMPLATES_TABLE, normalizeMessageActions, } from './registry';
|
|
3
|
+
export type { ProviderTemplateCategory, ProviderTemplateComponent, CompiledProviderTemplate, CompileProviderTemplateInput, CompileProviderTemplateResult, ProviderTemplateErrorCode, } from './provider-template';
|
|
4
|
+
export { compileProviderTemplate, providerTemplateName, positionalVariables, placementRuleApplies, shortHash, PROVIDER_TEMPLATE_LANGUAGE, MAX_QUICK_REPLY_BUTTONS, MAX_TEMPLATE_VARIABLES, DEFAULT_LEAD_PADDING, DEFAULT_TRAIL_PADDING, } from './provider-template';
|
|
5
|
+
export { normalizeBrPhoneToE164, brNationalNumber, brPhoneSuffixKey, BR_COUNTRY_CALLING_CODE, BR_MATCH_SUFFIX_LENGTH, } from './phone';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAC/D,eAAe,EAAE,0BAA0B,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAC/D,eAAe,EAAE,0BAA0B,EAAE,eAAe,EAC5D,aAAa,EAAE,eAAe,EAAE,iBAAiB,GAClD,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,uBAAuB,EAAE,kBAAkB,EAAE,oBAAoB,EACjE,qBAAqB,EAAE,eAAe,EAAE,cAAc,EACtD,wBAAwB,EAAE,oBAAoB,EAAE,uBAAuB,EACvE,uBAAuB,GACxB,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,wBAAwB,EAAE,yBAAyB,EAAE,wBAAwB,EAC7E,4BAA4B,EAAE,6BAA6B,EAAE,yBAAyB,GACvF,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,uBAAuB,EAAE,oBAAoB,EAAE,mBAAmB,EAClE,oBAAoB,EAAE,SAAS,EAC/B,0BAA0B,EAAE,uBAAuB,EAAE,sBAAsB,EAC3E,oBAAoB,EAAE,qBAAqB,GAC5C,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,sBAAsB,EAAE,gBAAgB,EAAE,gBAAgB,EAC1D,uBAAuB,EAAE,sBAAsB,GAChD,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Brazil. The only country code this module knows how to repair. */
|
|
2
|
+
export declare const BR_COUNTRY_CALLING_CODE = "55";
|
|
3
|
+
/**
|
|
4
|
+
* How many trailing digits identify a line no matter how it was written.
|
|
5
|
+
*
|
|
6
|
+
* Eight, because that is what survives every variation above: the area code can
|
|
7
|
+
* be missing, the country code can be missing, and the mobile 9 can be missing,
|
|
8
|
+
* but the last eight digits of a Brazilian line are the same in all four
|
|
9
|
+
* spellings. Nine would break on exactly the ambiguity this exists to bridge.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BR_MATCH_SUFFIX_LENGTH = 8;
|
|
12
|
+
/**
|
|
13
|
+
* The number as `+55DDDNNNNNNNNN`, or `null` when the input cannot be one.
|
|
14
|
+
*
|
|
15
|
+
* `null` and not a throw, and not a best-effort string: the caller's next move
|
|
16
|
+
* is to refuse the send with the number named, and a function that returns
|
|
17
|
+
* something plausible for `'a combinar'` would send a booking confirmation into
|
|
18
|
+
* the void and report success.
|
|
19
|
+
*
|
|
20
|
+
* A number that already carries a DIFFERENT country code passes through
|
|
21
|
+
* untouched when it is a valid E.164 — a foreign customer's line is not a
|
|
22
|
+
* malformed Brazilian one, and "repairing" it would be the worst kind of wrong.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeBrPhoneToE164(input: string | null | undefined): string | null;
|
|
25
|
+
/** The national part of a normalized number — what the structured recipient wants. */
|
|
26
|
+
export declare function brNationalNumber(e164: string | null | undefined): string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The key two spellings of one line agree on. For matching a stored contact
|
|
29
|
+
* against the number an inbound message arrived from — never for sending.
|
|
30
|
+
*/
|
|
31
|
+
export declare function brPhoneSuffixKey(input: string | null | undefined): string | null;
|
|
32
|
+
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../src/messaging/phone.ts"],"names":[],"mappings":"AAyBA,qEAAqE;AACrE,eAAO,MAAM,uBAAuB,OAAO,CAAA;AAE3C;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAA;AAoBvC;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAqCtF;AAED,sFAAsF;AACtF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAK/E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAGhF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { EventField } from '../events/types';
|
|
2
|
+
import type { MessageAction, MessageChannel } from './types';
|
|
3
|
+
/** Meta's three, and the only three Tyxter accepts. */
|
|
4
|
+
export type ProviderTemplateCategory = 'marketing' | 'utility' | 'authentication';
|
|
5
|
+
/** The one language this product writes in. A second one is a second template. */
|
|
6
|
+
export declare const PROVIDER_TEMPLATE_LANGUAGE = "pt_BR";
|
|
7
|
+
/** Meta renders at most three reply buttons; the fourth is silently dropped. */
|
|
8
|
+
export declare const MAX_QUICK_REPLY_BUTTONS = 3;
|
|
9
|
+
/**
|
|
10
|
+
* What goes in front of a body that opens on a variable, and behind one that
|
|
11
|
+
* closes on it.
|
|
12
|
+
*
|
|
13
|
+
* Padding rather than refusing, because the text is the tenant's and the rule
|
|
14
|
+
* is Meta's: a body ending `— {{business_name}}` is good copy that Meta will
|
|
15
|
+
* not take. A period is the smallest edit that keeps the sentence intact; a
|
|
16
|
+
* greeting is the smallest one that can open a message without changing tone.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DEFAULT_LEAD_PADDING = "Ol\u00E1! ";
|
|
19
|
+
export declare const DEFAULT_TRAIL_PADDING = " At\u00E9 breve!";
|
|
20
|
+
export interface CompileProviderTemplateInput {
|
|
21
|
+
/** Domain event this text reacts to, e.g. `agenda.booking_created`. */
|
|
22
|
+
eventKey: string;
|
|
23
|
+
channel: MessageChannel;
|
|
24
|
+
/** The catalog body, with NAMED merge fields. */
|
|
25
|
+
body: string;
|
|
26
|
+
/** The event's own field descriptors — where each variable's example comes from. */
|
|
27
|
+
fields?: EventField[];
|
|
28
|
+
/** Channel-neutral actions; reply actions become QUICK_REPLY buttons. */
|
|
29
|
+
actions?: MessageAction[];
|
|
30
|
+
/**
|
|
31
|
+
* `marketing` templates are a different Meta category with different pacing
|
|
32
|
+
* and consent rules. Filing one as `utility` is what gets a WABA's quality
|
|
33
|
+
* rating cut, so the kind decides the category rather than a constant.
|
|
34
|
+
*/
|
|
35
|
+
kind?: 'transactional' | 'marketing';
|
|
36
|
+
/** Set for a tenant's own version of a product template; absent = the product default. */
|
|
37
|
+
tenantId?: string;
|
|
38
|
+
leadPadding?: string;
|
|
39
|
+
trailPadding?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ProviderTemplateComponent {
|
|
42
|
+
type: 'BODY' | 'BUTTONS';
|
|
43
|
+
text?: string;
|
|
44
|
+
example?: {
|
|
45
|
+
body_text: string[][];
|
|
46
|
+
};
|
|
47
|
+
buttons?: {
|
|
48
|
+
type: 'QUICK_REPLY';
|
|
49
|
+
text: string;
|
|
50
|
+
}[];
|
|
51
|
+
}
|
|
52
|
+
export interface CompiledProviderTemplate {
|
|
53
|
+
/** `^[a-z0-9_]+$`, unique per (name, language) inside the Tyxter environment. */
|
|
54
|
+
name: string;
|
|
55
|
+
language: typeof PROVIDER_TEMPLATE_LANGUAGE;
|
|
56
|
+
category: ProviderTemplateCategory;
|
|
57
|
+
components: ProviderTemplateComponent[];
|
|
58
|
+
/**
|
|
59
|
+
* Ordered field names: index 0 is `{{1}}`. This is what a send needs to turn
|
|
60
|
+
* `{customer_name: 'Maria'}` into `{'1': 'Maria'}`, and it is stored beside
|
|
61
|
+
* the approved template because an approved template is immutable — the map
|
|
62
|
+
* that produced it can never be recomputed from a body that has since moved.
|
|
63
|
+
*/
|
|
64
|
+
variableMap: string[];
|
|
65
|
+
/** Which button index carries which action. Index is Meta's, zero-based. */
|
|
66
|
+
actionsMap: {
|
|
67
|
+
index: number;
|
|
68
|
+
id: MessageAction['id'];
|
|
69
|
+
kind: MessageAction['kind'];
|
|
70
|
+
}[];
|
|
71
|
+
/** The positional body exactly as submitted — what a diff compares against. */
|
|
72
|
+
bodySnapshot: string;
|
|
73
|
+
/** True when Meta's placement rule forced copy in that was not written by hand. */
|
|
74
|
+
padded: {
|
|
75
|
+
lead: boolean;
|
|
76
|
+
trail: boolean;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export type CompileProviderTemplateResult = {
|
|
80
|
+
ok: true;
|
|
81
|
+
template: CompiledProviderTemplate;
|
|
82
|
+
} | {
|
|
83
|
+
ok: false;
|
|
84
|
+
code: ProviderTemplateErrorCode;
|
|
85
|
+
message: string;
|
|
86
|
+
detail?: string;
|
|
87
|
+
};
|
|
88
|
+
export type ProviderTemplateErrorCode = 'empty_body' | 'unknown_variable' | 'named_placeholder_left' | 'too_many_variables';
|
|
89
|
+
/** Meta's ceiling on body variables. Past it the template is rejected on review. */
|
|
90
|
+
export declare const MAX_TEMPLATE_VARIABLES = 10;
|
|
91
|
+
/**
|
|
92
|
+
* A Tyxter-legal template name for this (event × channel × owner).
|
|
93
|
+
*
|
|
94
|
+
* `^[a-z0-9_]+$` is the pattern the API enforces, so the dot in
|
|
95
|
+
* `agenda.booking_created` cannot survive. The tenant suffix is a hash and not
|
|
96
|
+
* the uuid because the uuid does not fit the 512-char name next to anything
|
|
97
|
+
* else and, more to the point, a template name is visible in Meta's Business
|
|
98
|
+
* Manager — a tenant id there is an internal identifier on someone else's
|
|
99
|
+
* screen.
|
|
100
|
+
*/
|
|
101
|
+
export declare function providerTemplateName(eventKey: string, tenantId?: string): string;
|
|
102
|
+
/**
|
|
103
|
+
* FNV-1a, 32-bit, base36. Not a cryptographic hash and not asked to be: it only
|
|
104
|
+
* has to keep two tenants' names apart inside one project, and it has to be the
|
|
105
|
+
* same in a browser, in Deno and in a test without importing anything.
|
|
106
|
+
*/
|
|
107
|
+
export declare function shortHash(value: string): string;
|
|
108
|
+
/** Whether Meta's "no variable at either edge" rule applies to this category. */
|
|
109
|
+
export declare function placementRuleApplies(category: ProviderTemplateCategory): boolean;
|
|
110
|
+
export declare function compileProviderTemplate(input: CompileProviderTemplateInput): CompileProviderTemplateResult;
|
|
111
|
+
/**
|
|
112
|
+
* Values for a send, keyed the way `POST /v1/messages` wants them.
|
|
113
|
+
*
|
|
114
|
+
* The map is read from the APPROVED template's stored `variable_map`, never
|
|
115
|
+
* recomputed from today's body: the template Meta approved is immutable, and a
|
|
116
|
+
* body edited since would silently renumber the variables of a message already
|
|
117
|
+
* in flight. A field the caller did not send becomes an empty string rather
|
|
118
|
+
* than a missing key — Meta refuses a send whose parameter count does not match
|
|
119
|
+
* the template, so a hole has to be a value.
|
|
120
|
+
*/
|
|
121
|
+
export declare function positionalVariables(variableMap: string[], values: Record<string, string | number | null | undefined>): Record<string, string>;
|
|
122
|
+
//# sourceMappingURL=provider-template.d.ts.map
|
|
@@ -0,0 +1 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wBAAwB,GAAG,OAAO,CAIhF;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,4BAA4B,GAClC,6BAA6B,CA6I/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EAAE,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,GACzD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import type { MessageChannel, MessageDefaultsDef, MessageTemplate, ResolvedMessage } from './types';
|
|
1
|
+
import type { MessageAction, MessageChannel, MessageDefaultsDef, MessageTemplate, ResolvedMessage } from './types';
|
|
2
2
|
import type { ResolvedDomainEvent } from '../types/plugins';
|
|
3
3
|
export declare function registerMessageDefaults(defs: MessageDefaultsDef[]): void;
|
|
4
4
|
export declare function getMessageDefaults(): MessageDefaultsDef[];
|
|
5
5
|
export declare function clearMessageDefaults(): void;
|
|
6
|
+
/**
|
|
7
|
+
* Actions out of whatever a jsonb column holds.
|
|
8
|
+
*
|
|
9
|
+
* `null` and a malformed value are two different answers: null means "no row
|
|
10
|
+
* said anything, use the catalog", while a row holding junk means somebody
|
|
11
|
+
* customised it into a shape nothing can render — and rendering a button whose
|
|
12
|
+
* id is not in the closed set would send a payload the reply handler cannot
|
|
13
|
+
* match to any action, which reads to the customer as a button that does
|
|
14
|
+
* nothing. So junk collapses to an empty list, not to the default.
|
|
15
|
+
*/
|
|
16
|
+
export declare function normalizeMessageActions(value: unknown): MessageAction[] | null;
|
|
6
17
|
/**
|
|
7
18
|
* Substitutes the merge fields. Lives beside the catalog because PREVIEW and
|
|
8
19
|
* SEND must agree: a screen doing its own `replace` approves one text and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/messaging/registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,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AgB,eAAe,CAC7B,SAAS,EAAE,eAAe,EAAE,EAC5B,MAAM,EAAE,mBAAmB,EAAE,GAC5B,eAAe,EAAE,CAkCnB;AAED,2EAA2E;AAC3E,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,cAAc,EACvB,SAAS,EAAE,eAAe,EAAE,EAC5B,MAAM,EAAE,mBAAmB,EAAE,GAC5B,eAAe,GAAG,IAAI,CAGxB;AAED;2CAC2C;AAC3C,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAE7F;AAUD,eAAO,MAAM,uBAAuB,8BAA8B,CAAA;AAElE;oEACoE;AACpE,wBAAsB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAyBxF"}
|
|
@@ -6,10 +6,37 @@ export type MessageChannel = 'email' | 'whatsapp' | 'sms' | 'push' | 'webchat';
|
|
|
6
6
|
* initiative — the distinction that decides whether sending needs consent.
|
|
7
7
|
*/
|
|
8
8
|
export type MessageKind = 'transactional' | 'marketing';
|
|
9
|
+
/**
|
|
10
|
+
* What the person can DO with the message, beyond reading it.
|
|
11
|
+
*
|
|
12
|
+
* Channel-neutral by construction: an id, a label and what kind of answer it
|
|
13
|
+
* produces. No provider vocabulary — WhatsApp renders these as QUICK_REPLY
|
|
14
|
+
* buttons (packages/core/src/messaging/provider-template.ts), a future channel
|
|
15
|
+
* may render them as links, and neither fact belongs in the catalog.
|
|
16
|
+
*
|
|
17
|
+
* The id is what comes BACK. It is carried in the button payload with the
|
|
18
|
+
* subject it acts on, which is what lets a reply update the right booking
|
|
19
|
+
* instead of guessing from the words the customer typed.
|
|
20
|
+
*/
|
|
21
|
+
export type MessageActionId = 'confirm' | 'cancel' | 'pay';
|
|
22
|
+
/** `reply` answers the message; `payment` asks for money and needs a rail behind it. */
|
|
23
|
+
export type MessageActionKind = 'reply' | 'payment';
|
|
24
|
+
export interface MessageAction {
|
|
25
|
+
id: MessageActionId;
|
|
26
|
+
/** What the button says. pt-BR, ≤ 20 characters — Meta truncates past that. */
|
|
27
|
+
label: string;
|
|
28
|
+
kind: MessageActionKind;
|
|
29
|
+
}
|
|
9
30
|
export interface MessageDefault {
|
|
10
31
|
/** Only meaningful on channels with a subject (email). */
|
|
11
32
|
subject?: string;
|
|
12
33
|
body: string;
|
|
34
|
+
/**
|
|
35
|
+
* Declared per CHANNEL and not per event: e-mail has no buttons, and an event
|
|
36
|
+
* that offers Confirmar on WhatsApp must not grow a dangling action on a
|
|
37
|
+
* channel that cannot render one.
|
|
38
|
+
*/
|
|
39
|
+
actions?: MessageAction[];
|
|
13
40
|
}
|
|
14
41
|
/**
|
|
15
42
|
* The default text a module suggests for an event. Registered separately from
|
|
@@ -40,6 +67,8 @@ export interface MessageTemplate {
|
|
|
40
67
|
body: string | null;
|
|
41
68
|
/** Name given when duplicating. Null = the event's title. */
|
|
42
69
|
name: string | null;
|
|
70
|
+
/** Null = use the catalog default. An empty array is a CHOICE: no buttons. */
|
|
71
|
+
actions: MessageAction[] | null;
|
|
43
72
|
updatedAt: string;
|
|
44
73
|
}
|
|
45
74
|
export interface UpsertMessageTemplateInput {
|
|
@@ -49,6 +78,7 @@ export interface UpsertMessageTemplateInput {
|
|
|
49
78
|
subject?: string | null;
|
|
50
79
|
body?: string | null;
|
|
51
80
|
name?: string | null;
|
|
81
|
+
actions?: MessageAction[] | null;
|
|
52
82
|
}
|
|
53
83
|
/** Event + channel + text, resolved — what the screen shows. */
|
|
54
84
|
export interface ResolvedMessage {
|
|
@@ -59,6 +89,8 @@ export interface ResolvedMessage {
|
|
|
59
89
|
enabled: boolean;
|
|
60
90
|
subject: string;
|
|
61
91
|
body: string;
|
|
92
|
+
/** The buttons this message goes out with. Empty = none. */
|
|
93
|
+
actions: MessageAction[];
|
|
62
94
|
/** true when the text was rewritten — the list flags it. */
|
|
63
95
|
customized: boolean;
|
|
64
96
|
/** Merge fields, derived from the event payload. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/messaging/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAc3D,0DAA0D;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;AAE9E;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,WAAW,CAAA;AAEvD,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/messaging/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAc3D,0DAA0D;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;AAE9E;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,WAAW,CAAA;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAA;AAE1D,wFAAwF;AACxF,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAA;AAEnD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,eAAe,CAAA;IACnB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,EAAE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Ae;IAC9B,KAAK,EAAE,mBAAmB,CAAA;IAC1B,IAAI,EAAE,WAAW,CAAA;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAA;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,4DAA4D;IAC5D,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,4DAA4D;IAC5D,UAAU,EAAE,OAAO,CAAA;IACnB,oDAAoD;IACpD,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB"}
|
package/dist/plugin/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PluginRuntimeProvider, definePlugin, getWidgetsForZone, resolvePluginRuntime, usePluginRuntime, usePluginRuntimeOptional } from '../chunk-
|
|
1
|
+
export { PluginRuntimeProvider, definePlugin, getWidgetsForZone, resolvePluginRuntime, usePluginRuntime, usePluginRuntimeOptional } from '../chunk-UMIZDILP.js';
|
|
2
2
|
import '../chunk-EWKX4VUM.js';
|
|
3
3
|
import '../chunk-CU64QI4A.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/plugin/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,oBAAoB,EAKpB,gBAAgB,EAEhB,oBAAoB,EACpB,mBAAmB,EAMnB,uBAAuB,EACvB,gBAAgB,EAEjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAI1D;8DAC8D;AAC9D,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAEnC;+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AAO,MAAM,qBAAqB,sCAAgC,CAAA;AAElE,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAED,wBAAgB,wBAAwB,IAAI,aAAa,GAAG,IAAI,CAE/D;AAED,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAElF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/search/engine.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EAGd,MAAM,SAAS,CAAA;AAQhB,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/search/engine.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,kBAAkB,EAGlB,aAAa,EAGd,MAAM,SAAS,CAAA;AAQhB,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,IAAI,CAAA;AA0BjC,mCAAmC;AACnC,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAEnE;AAED,wBAAgB,sBAAsB,IAAI,OAAO,GAAG,IAAI,CAEvD;AAyOD,wEAAwE;AACxE,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AA8MD;uEACuE;AACvE,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,kBAAkB,CAAC,CAkF7B"}
|