@burdenoff/microfe-kadaikodi 2026.731.2 → 2026.801.1
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,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page context gathering (BOFF-3777) — captures the user's current browser
|
|
3
|
+
* context so it can be sent alongside every assistant prompt, giving the shared
|
|
4
|
+
* assistant page + entity awareness across all `/kadaikodi/*` routes.
|
|
5
|
+
*
|
|
6
|
+
* Contract note: the key MUST be `currentUrl` (NOT `activeUrl`). The agent's
|
|
7
|
+
* ALLOWED_CONTEXT_KEYS filter drops anything else, so a rename here silently
|
|
8
|
+
* removes the assistant's awareness rather than failing loudly.
|
|
9
|
+
*
|
|
10
|
+
* Only the seven allowed context keys are emitted. `userAgent` and `timestamp`
|
|
11
|
+
* are intentionally kept local and not forwarded to the agent.
|
|
12
|
+
*/
|
|
13
|
+
interface ConversationContextShape {
|
|
14
|
+
entityType?: string;
|
|
15
|
+
entityId?: string;
|
|
16
|
+
activeTab?: string;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export interface PageContext {
|
|
20
|
+
currentUrl: string;
|
|
21
|
+
currentPage: string;
|
|
22
|
+
entityType?: string;
|
|
23
|
+
entityId?: string;
|
|
24
|
+
platform: string;
|
|
25
|
+
version: string;
|
|
26
|
+
viewportSize: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function resolveKadaikodiConversationContext(pathname: string, search: string): ConversationContextShape;
|
|
29
|
+
export declare function gatherPageContext(): PageContext;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=pageContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContext.d.ts","sourceRoot":"","sources":["../../src/utils/pageContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,UAAU,wBAAwB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAwBD,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,wBAAwB,CA6B1B;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAe/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-kadaikodi",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.801.1",
|
|
4
4
|
"description": "Burdenoff Kadaikodi Microfrontend - Mobile services marketplace platform for connecting service providers with customers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|