@salesforce/platform-sdk 10.10.1 → 10.10.3
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/README.md
CHANGED
|
@@ -85,7 +85,7 @@ analytics.dispose();
|
|
|
85
85
|
|
|
86
86
|
## Telemetry transport
|
|
87
87
|
|
|
88
|
-
`createTelemetryTransport` buffers `o11y` envelopes and uploads them via the `
|
|
88
|
+
`createTelemetryTransport` buffers `o11y` envelopes and uploads them via the `telemetry_upload` tool exposed by the host `ChatSDK`. Use it directly when you want batching independent of `createAnalytics`.
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
91
|
import { createTelemetryTransport, getChatSDK } from "@salesforce/platform-sdk";
|
|
@@ -107,7 +107,7 @@ Behavior:
|
|
|
107
107
|
|
|
108
108
|
- **Buffering.** Up to `maxBufferSize` bytes. On overflow the oldest entries are evicted and `onError` fires with `reason: "buffer_overflow"` and a `droppedCount`.
|
|
109
109
|
- **Automatic flush.** On `flushInterval`, on `visibilitychange` → hidden, on `pagehide`, and on `dispose()`.
|
|
110
|
-
- **Upload path.** Each flush calls `sdk.callTool({ toolName: "
|
|
110
|
+
- **Upload path.** Each flush calls `sdk.callTool({ toolName: "telemetry_upload", params: { inputs: [{ envelopes }] } })`. If the call rejects, `onError` fires with `reason: "tool_call_failed"`.
|
|
111
111
|
|
|
112
112
|
## Advanced: `registerTelemetryUploader`
|
|
113
113
|
|
package/dist/data/index.js
CHANGED
|
@@ -196,7 +196,7 @@ class ie {
|
|
|
196
196
|
})).structuredContent;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const ce = "X-SFDC-Client-Name", ue = "X-SFDC-Client-Version", he = "@salesforce/platform-sdk", le = "10.10.
|
|
199
|
+
const ce = "X-SFDC-Client-Name", ue = "X-SFDC-Client-Version", he = "@salesforce/platform-sdk", le = "10.10.3", de = (t) => {
|
|
200
200
|
let e = y(ce, he, t);
|
|
201
201
|
return e = y(ue, le, e), u(e);
|
|
202
202
|
}, pe = "X-CSRF-Token";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { MCPAppsChatSDK as D, createChatSDK as K, getChatSDK as g, getChatSDKSyn
|
|
|
6
6
|
import { MCPAppsViewSDK as A, createViewSDK as n, getViewSDK as C, getViewSDKSync as w, resetViewSDK as E } from "./view/index.js";
|
|
7
7
|
import { createDataSDK as _, gql as d } from "./data/index.js";
|
|
8
8
|
import { createLightningSDK as y } from "./lightning/index.js";
|
|
9
|
-
import { c as M } from "./transport-
|
|
9
|
+
import { c as M } from "./transport-CdXFRgRc.js";
|
|
10
10
|
import { T as u, r as L } from "./TelemetryUploader-DKkdppe9.js";
|
|
11
11
|
import { A as b, I as v, P as F, c as U, v as Y } from "./analytics-BVtlA4LT.js";
|
|
12
12
|
export {
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-adapter.d.ts","sourceRoot":"","sources":["../../src/telemetry/tool-adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-adapter.d.ts","sourceRoot":"","sources":["../../src/telemetry/tool-adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAShD,UAAU,uBAAuB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;CACrD;AAED,qBAAa,oBAAoB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IACzC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAA6C;IACtE,OAAO,CAAC,OAAO,CAA+C;IAC9D,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAIrC;IAEF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAE7B;gBAEU,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,2BAA2B;IAUvF,KAAK,IAAI,IAAI;IAab,OAAO,IAAI,IAAI;CAcf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/platform-sdk",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.3",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@conduit-client/service-pubsub": "3.19.6",
|
|
108
108
|
"@conduit-client/service-retry": "3.19.6",
|
|
109
109
|
"@conduit-client/utils": "3.19.6",
|
|
110
|
-
"@salesforce/jsonrpc": "^10.10.
|
|
110
|
+
"@salesforce/jsonrpc": "^10.10.3",
|
|
111
111
|
"@sf-embedding/sf-embedding-bridge": "2.2.1-rc.4"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|