@wovvmap/host-protocol 0.0.0-stage → 1.2.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.
@@ -0,0 +1,38 @@
1
+ import { type ViewerCommandName, type ViewerCommandArgs, type ViewerEventName, type ViewerEventPayloadMap } from '@wovvmap/contracts';
2
+ import { type HostMessageEnvelope, type AckPayload } from '../contracts/envelopes.js';
3
+ type Validation<T> = {
4
+ valid: true;
5
+ envelope: T;
6
+ } | {
7
+ valid: false;
8
+ error: string;
9
+ };
10
+ export declare function generateEnvelopeId(prefix?: string): string;
11
+ export declare function validateBaseEnvelope(value: unknown): Validation<HostMessageEnvelope>;
12
+ /** JSON arrays encode omitted arguments as null; restore optional slots and omit trailing undefined values.
13
+ * Hinglish: Optional null wapas undefined ho; selectNode(null) aur selectNodeGroup(null) clear commands same rahein. */
14
+ export declare function normalizeCommandArgs(command: ViewerCommandName, args: readonly unknown[]): unknown[];
15
+ /** Only transport shape is checked here; arguments use the shared TypeScript contract.
16
+ * Hinglish: Argument counts/rules dobara nahi likhte; runtime input types ko trust karta hai. */
17
+ export declare function validateCommandEnvelope(value: unknown): Validation<HostMessageEnvelope<unknown[]>>;
18
+ /** Domain event payloads are owned by the same shared contract as direct callbacks.
19
+ * Hinglish: Event ka format contracts me hai; codec sirf known event envelope check karta hai. */
20
+ export declare function validateEventEnvelope(value: unknown): Validation<HostMessageEnvelope>;
21
+ export declare function validateAckEnvelope(value: unknown): Validation<HostMessageEnvelope<AckPayload>>;
22
+ export declare function deserializeEnvelope(raw: unknown): HostMessageEnvelope | null;
23
+ export declare function serializeEnvelope(e: HostMessageEnvelope): string;
24
+ export declare function createCommandEnvelope<K extends ViewerCommandName>(action: K, args: ViewerCommandArgs[K], id?: string, session?: string): HostMessageEnvelope<ViewerCommandArgs[K]>;
25
+ export declare function createEventEnvelope<K extends ViewerEventName>(action: K, payload: ViewerEventPayloadMap[K], session?: string, commandId?: string): HostMessageEnvelope<ViewerEventPayloadMap[K]>;
26
+ export interface AckErrorMetadata {
27
+ readonly code?: string;
28
+ readonly details?: Record<string, unknown>;
29
+ readonly name?: string;
30
+ }
31
+ export declare function createAckEnvelope(commandId: string, success: boolean, error?: string, result?: unknown, session?: string, errorReported?: boolean, errorMeta?: AckErrorMetadata): HostMessageEnvelope<AckPayload>;
32
+ export declare function createControlEnvelope(action: 'ready' | 'contextLost' | 'contextRestored', session: string): HostMessageEnvelope<null>;
33
+ /** Session-scoped surface activity, independent from domain commands or context readiness.
34
+ * Hinglish: Native background signal sirf render surface ko mile; map ka doosra state/store nahi. */
35
+ export declare function createHostActivityEnvelope(active: boolean, session: string): HostMessageEnvelope<boolean>;
36
+ export declare function validateHostActivityEnvelope(value: unknown): Validation<HostMessageEnvelope<boolean>>;
37
+ export {};
38
+ //# sourceMappingURL=messageCodec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageCodec.d.ts","sourceRoot":"","sources":["../../src/codecs/messageCodec.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,174 @@
1
+ import { ViewerCommands, ViewerEvents, } from '@wovvmap/contracts';
2
+ import { PROTOCOL_VERSION } from '../contracts/envelopes.js';
3
+ let sequence = 0;
4
+ export function generateEnvelopeId(prefix = 'msg') {
5
+ return `${prefix}_${Date.now()}_${++sequence}`;
6
+ }
7
+ const record = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
8
+ const finite = (v) => typeof v === 'number' && Number.isFinite(v);
9
+ const string = (v) => typeof v === 'string' && v.trim() !== '';
10
+ export function validateBaseEnvelope(value) {
11
+ if (!record(value) ||
12
+ !string(value.id) ||
13
+ value.version !== PROTOCOL_VERSION ||
14
+ !string(value.action) ||
15
+ !['COMMAND', 'EVENT', 'ACK', 'CONTROL'].includes(String(value.type)) ||
16
+ !finite(value.timestamp) ||
17
+ value.timestamp <= 0 ||
18
+ !('payload' in value) ||
19
+ (value.session !== undefined && !string(value.session)) ||
20
+ (value.commandId !== undefined && !string(value.commandId)))
21
+ return { valid: false, error: 'Invalid or incompatible transport envelope' };
22
+ return { valid: true, envelope: value };
23
+ }
24
+ function trimTrailingUndefined(args) {
25
+ let end = args.length;
26
+ while (end > 0 && args[end - 1] === undefined)
27
+ end--;
28
+ return args.slice(0, end);
29
+ }
30
+ /** JSON arrays encode omitted arguments as null; restore optional slots and omit trailing undefined values.
31
+ * Hinglish: Optional null wapas undefined ho; selectNode(null) aur selectNodeGroup(null) clear commands same rahein. */
32
+ export function normalizeCommandArgs(command, args) {
33
+ return trimTrailingUndefined(args.map((value, index) => value === null &&
34
+ !((command === 'selectNode' ||
35
+ command === 'selectNodeGroup' ||
36
+ command === 'setDiscoveryFilter' ||
37
+ command === 'configureNavigation' ||
38
+ command === 'configureOffline' ||
39
+ command === 'setOrigin' ||
40
+ command === 'setDestination') &&
41
+ index === 0) &&
42
+ !(command === 'loadMall' && index === 1)
43
+ ? undefined
44
+ : value));
45
+ }
46
+ /** Only transport shape is checked here; arguments use the shared TypeScript contract.
47
+ * Hinglish: Argument counts/rules dobara nahi likhte; runtime input types ko trust karta hai. */
48
+ export function validateCommandEnvelope(value) {
49
+ const base = validateBaseEnvelope(value);
50
+ if (!base.valid)
51
+ return base;
52
+ const e = base.envelope;
53
+ if (e.type !== 'COMMAND' || !Object.hasOwn(ViewerCommands, e.action) || !Array.isArray(e.payload))
54
+ return { valid: false, error: 'Unknown command or invalid argument array' };
55
+ return {
56
+ valid: true,
57
+ envelope: { ...e, payload: normalizeCommandArgs(e.action, e.payload) },
58
+ };
59
+ }
60
+ /** Domain event payloads are owned by the same shared contract as direct callbacks.
61
+ * Hinglish: Event ka format contracts me hai; codec sirf known event envelope check karta hai. */
62
+ export function validateEventEnvelope(value) {
63
+ const base = validateBaseEnvelope(value);
64
+ if (!base.valid)
65
+ return base;
66
+ return base.envelope.type === 'EVENT' && Object.hasOwn(ViewerEvents, base.envelope.action)
67
+ ? base
68
+ : { valid: false, error: 'Unknown viewer event' };
69
+ }
70
+ export function validateAckEnvelope(value) {
71
+ const base = validateBaseEnvelope(value);
72
+ if (!base.valid)
73
+ return base;
74
+ const p = base.envelope.payload;
75
+ return base.envelope.type === 'ACK' &&
76
+ record(p) &&
77
+ string(p.commandId) &&
78
+ typeof p.success === 'boolean'
79
+ ? { valid: true, envelope: base.envelope }
80
+ : { valid: false, error: 'Invalid ACK' };
81
+ }
82
+ export function deserializeEnvelope(raw) {
83
+ try {
84
+ const value = typeof raw === 'string' ? JSON.parse(raw) : raw;
85
+ const command = validateCommandEnvelope(value);
86
+ if (command.valid)
87
+ return command.envelope;
88
+ const result = validateBaseEnvelope(value);
89
+ return result.valid ? result.envelope : null;
90
+ }
91
+ catch {
92
+ return null;
93
+ }
94
+ }
95
+ export function serializeEnvelope(e) {
96
+ return JSON.stringify(e);
97
+ }
98
+ export function createCommandEnvelope(action, args, id, session) {
99
+ return {
100
+ id: id ?? generateEnvelopeId('cmd'),
101
+ version: PROTOCOL_VERSION,
102
+ type: 'COMMAND',
103
+ action,
104
+ payload: trimTrailingUndefined(args),
105
+ timestamp: Date.now(),
106
+ session,
107
+ };
108
+ }
109
+ export function createEventEnvelope(action, payload, session, commandId) {
110
+ return {
111
+ id: generateEnvelopeId('evt'),
112
+ version: PROTOCOL_VERSION,
113
+ type: 'EVENT',
114
+ action,
115
+ payload,
116
+ timestamp: Date.now(),
117
+ session,
118
+ ...(commandId !== undefined ? { commandId } : {}),
119
+ };
120
+ }
121
+ export function createAckEnvelope(commandId, success, error, result, session, errorReported, errorMeta) {
122
+ return {
123
+ id: generateEnvelopeId('ack'),
124
+ version: PROTOCOL_VERSION,
125
+ type: 'ACK',
126
+ action: 'ack',
127
+ payload: {
128
+ commandId,
129
+ success,
130
+ error,
131
+ result,
132
+ ...(errorReported !== undefined ? { errorReported } : {}),
133
+ ...(typeof errorMeta?.code === 'string' && errorMeta.code.trim() !== ''
134
+ ? { errorCode: errorMeta.code }
135
+ : {}),
136
+ ...(errorMeta?.details &&
137
+ typeof errorMeta.details === 'object' &&
138
+ !Array.isArray(errorMeta.details)
139
+ ? { errorDetails: errorMeta.details }
140
+ : {}),
141
+ ...(typeof errorMeta?.name === 'string' && errorMeta.name.trim() !== ''
142
+ ? { errorName: errorMeta.name }
143
+ : {}),
144
+ },
145
+ timestamp: Date.now(),
146
+ session,
147
+ };
148
+ }
149
+ export function createControlEnvelope(action, session) {
150
+ return {
151
+ id: generateEnvelopeId('control'),
152
+ version: PROTOCOL_VERSION,
153
+ type: 'CONTROL',
154
+ action,
155
+ payload: null,
156
+ timestamp: Date.now(),
157
+ session,
158
+ };
159
+ }
160
+ /** Session-scoped surface activity, independent from domain commands or context readiness.
161
+ * Hinglish: Native background signal sirf render surface ko mile; map ka doosra state/store nahi. */
162
+ export function createHostActivityEnvelope(active, session) {
163
+ return { ...createControlEnvelope('ready', session), action: 'hostActivity', payload: active };
164
+ }
165
+ export function validateHostActivityEnvelope(value) {
166
+ const base = validateBaseEnvelope(value);
167
+ return base.valid &&
168
+ base.envelope.type === 'CONTROL' &&
169
+ base.envelope.action === 'hostActivity' &&
170
+ string(base.envelope.session) &&
171
+ typeof base.envelope.payload === 'boolean'
172
+ ? { valid: true, envelope: base.envelope }
173
+ : { valid: false, error: 'Invalid host activity envelope' };
174
+ }
@@ -0,0 +1,5 @@
1
+ /** Shared operation arguments, with no Native-only command aliases.
2
+ * Hinglish: Native aur future hosts same viewer registry use karte hain. */
3
+ export { ViewerCommands } from '@wovvmap/contracts';
4
+ export type { ViewerCommandName, ViewerCommandArgs } from '@wovvmap/contracts';
5
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/contracts/commands.ts"],"names":[],"mappings":"AAAA;4EAC4E;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** Shared operation arguments, with no Native-only command aliases.
2
+ * Hinglish: Native aur future hosts same viewer registry use karte hain. */
3
+ export { ViewerCommands } from '@wovvmap/contracts';
@@ -0,0 +1,29 @@
1
+ /** Versioned, correlated JSON transport. Hinglish: Har message version aur session se identify hota hai. */
2
+ export declare const PROTOCOL_VERSION: "2.0.0";
3
+ export type ProtocolVersion = typeof PROTOCOL_VERSION;
4
+ export type HostMessageType = 'COMMAND' | 'EVENT' | 'ACK' | 'CONTROL';
5
+ export interface HostMessageEnvelope<T = unknown> {
6
+ readonly id: string;
7
+ readonly version: ProtocolVersion;
8
+ readonly type: HostMessageType;
9
+ readonly action: string;
10
+ readonly payload: T;
11
+ readonly timestamp: number;
12
+ readonly session?: string;
13
+ readonly commandId?: string;
14
+ }
15
+ export interface AckPayload {
16
+ readonly commandId: string;
17
+ readonly success: boolean;
18
+ readonly result?: unknown;
19
+ readonly error?: string;
20
+ readonly errorCode?: string;
21
+ readonly errorDetails?: Record<string, unknown>;
22
+ readonly errorName?: string;
23
+ readonly errorReported?: boolean;
24
+ }
25
+ export interface ErrorPayload {
26
+ readonly code: string;
27
+ readonly message: string;
28
+ }
29
+ //# sourceMappingURL=envelopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"envelopes.d.ts","sourceRoot":"","sources":["../../src/contracts/envelopes.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAA;AACrD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AACrE,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,OAAO;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;IACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AACD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CACjC;AACD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB"}
@@ -0,0 +1,2 @@
1
+ /** Versioned, correlated JSON transport. Hinglish: Har message version aur session se identify hota hai. */
2
+ export const PROTOCOL_VERSION = '2.0.0';
@@ -0,0 +1,6 @@
1
+ /** Domain events are re-exported; transport status has a separate envelope type.
2
+ * Hinglish: Domain event names same hain; readiness sirf transport status hai. */
3
+ export { ViewerEvents } from '@wovvmap/contracts';
4
+ export type { ViewerEventName, ViewerEventPayloadMap } from '@wovvmap/contracts';
5
+ export type TransportStatus = 'ready' | 'contextLost' | 'contextRestored';
6
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/contracts/events.ts"],"names":[],"mappings":"AAAA;kFACkF;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAChF,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,aAAa,GAAG,iBAAiB,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** Domain events are re-exported; transport status has a separate envelope type.
2
+ * Hinglish: Domain event names same hain; readiness sirf transport status hai. */
3
+ export { ViewerEvents } from '@wovvmap/contracts';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file index.ts
3
+ * @description Public exports facade for @wovvmap/host-protocol.
4
+ * English: Official public entry point exporting host envelopes, commands, events, and codecs.
5
+ * Hinglish: @wovvmap/host-protocol package ka public facade jo sabhi envelopes, commands, events aur codecs export karta hai.
6
+ */
7
+ export * from './contracts/envelopes.js';
8
+ export * from './contracts/commands.js';
9
+ export * from './contracts/events.js';
10
+ export * from './codecs/messageCodec.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @file index.ts
3
+ * @description Public exports facade for @wovvmap/host-protocol.
4
+ * English: Official public entry point exporting host envelopes, commands, events, and codecs.
5
+ * Hinglish: @wovvmap/host-protocol package ka public facade jo sabhi envelopes, commands, events aur codecs export karta hai.
6
+ */
7
+ export * from './contracts/envelopes.js';
8
+ export * from './contracts/commands.js';
9
+ export * from './contracts/events.js';
10
+ export * from './codecs/messageCodec.js';
package/package.json CHANGED
@@ -1,6 +1,34 @@
1
1
  {
2
2
  "name": "@wovvmap/host-protocol",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.2.0",
4
+ "description": "Versioned iframe, WebView, and native host protocol for WovVMap.",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "default": "./dist/index.js"
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "dependencies": {
26
+ "@wovvmap/contracts": "1.2.0"
27
+ },
28
+ "scripts": {
29
+ "build": "tsc -p tsconfig.build.json",
30
+ "lint": "eslint src",
31
+ "test": "vitest run --passWithNoTests",
32
+ "typecheck": "tsc -p tsconfig.build.json --noEmit"
33
+ }
6
34
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.