@introspection-sdk/introspection-browser 0.5.9 → 0.6.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.
- package/.turbo/turbo-build.log +1 -1
- package/README.md +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/tasks.d.ts +2 -2
- package/dist/api/tasks.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/index.ts +1 -1
- package/src/api/tasks.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @introspection-sdk/introspection-browser@0.
|
|
2
|
+
> @introspection-sdk/introspection-browser@0.6.1 build /home/runner/work/introspection-js-sdk/introspection-js-sdk/packages/introspection-browser
|
|
3
3
|
> tsc
|
|
4
4
|
|
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ customer web origins.
|
|
|
47
47
|
`authorization_code`, or `client_credentials`. The IdP secret never leaves
|
|
48
48
|
the backend. The backend returns **`{ token, runtimeId, dpUrl }`**: it
|
|
49
49
|
resolves the runtime id server-side (e.g. with the Node SDK's
|
|
50
|
-
`client.runtimes.
|
|
50
|
+
`client.runtimes.resolve("support-agent")`) and supplies the Data
|
|
51
51
|
Plane URL, so the SPA needs no Introspection config of its own.
|
|
52
52
|
2. `client.connect()` redeems the token at the **Data Plane**
|
|
53
53
|
`POST /v1/oauth/exchange` for the HttpOnly `intro_dp_session` cookie.
|
package/dist/api/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Separate from the package's default telemetry export so apps only pull
|
|
7
7
|
* in what they use.
|
|
8
8
|
*
|
|
9
|
-
* The browser talks only to the Data Plane. Resolving a runtime by
|
|
9
|
+
* The browser talks only to the Data Plane. Resolving a runtime by slug
|
|
10
10
|
* (a Control Plane call) stays on your backend, which hands the browser a
|
|
11
11
|
* short-lived access token plus the resolved `runtime_id`.
|
|
12
12
|
*
|
package/dist/api/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Separate from the package's default telemetry export so apps only pull
|
|
7
7
|
* in what they use.
|
|
8
8
|
*
|
|
9
|
-
* The browser talks only to the Data Plane. Resolving a runtime by
|
|
9
|
+
* The browser talks only to the Data Plane. Resolving a runtime by slug
|
|
10
10
|
* (a Control Plane call) stays on your backend, which hands the browser a
|
|
11
11
|
* short-lived access token plus the resolved `runtime_id`.
|
|
12
12
|
*
|
package/dist/api/tasks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunIdentityInput } from "@introspection-sdk/types";
|
|
1
|
+
import type { RunIdentityInput, Uuid } from "@introspection-sdk/types";
|
|
2
2
|
import { RunHandle, TaskRunsClient, TasksClient as SharedTasksClient, type ResourceHttpClient } from "@introspection-sdk/http";
|
|
3
3
|
/**
|
|
4
4
|
* Body for creating a task directly against the DP from the browser.
|
|
@@ -13,7 +13,7 @@ import { RunHandle, TaskRunsClient, TasksClient as SharedTasksClient, type Resou
|
|
|
13
13
|
export interface CreateTaskParams {
|
|
14
14
|
prompt?: string;
|
|
15
15
|
/** Pin the task to a specific recipe runtime. */
|
|
16
|
-
runtime_id?:
|
|
16
|
+
runtime_id?: Uuid;
|
|
17
17
|
/** Named recipe agent, when no `runtime_id` is pinned. */
|
|
18
18
|
agent_name?: string;
|
|
19
19
|
title?: string;
|
package/dist/api/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/api/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/api/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EACL,SAAS,EACT,cAAc,EACd,WAAW,IAAI,iBAAiB,EAChC,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;CAChB;AAYD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,iBAAiB,CAChD,gBAAgB,EAChB,eAAe,CAChB;gBACa,IAAI,EAAE,kBAAkB;CAGrC;AAED,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@introspection-sdk/introspection-browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Introspection observability SDK for the browser",
|
|
6
6
|
"engines": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@opentelemetry/api-logs": "^0.219.0",
|
|
32
32
|
"@opentelemetry/sdk-logs": "^0.219.0",
|
|
33
33
|
"@opentelemetry/exporter-logs-otlp-http": "^0.219.0",
|
|
34
|
-
"@introspection-sdk/
|
|
35
|
-
"@introspection-sdk/
|
|
34
|
+
"@introspection-sdk/types": "0.6.1",
|
|
35
|
+
"@introspection-sdk/http": "0.6.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"lint": "eslint . --max-warnings 0",
|
package/src/api/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Separate from the package's default telemetry export so apps only pull
|
|
7
7
|
* in what they use.
|
|
8
8
|
*
|
|
9
|
-
* The browser talks only to the Data Plane. Resolving a runtime by
|
|
9
|
+
* The browser talks only to the Data Plane. Resolving a runtime by slug
|
|
10
10
|
* (a Control Plane call) stays on your backend, which hands the browser a
|
|
11
11
|
* short-lived access token plus the resolved `runtime_id`.
|
|
12
12
|
*
|
package/src/api/tasks.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunIdentityInput } from "@introspection-sdk/types";
|
|
1
|
+
import type { RunIdentityInput, Uuid } from "@introspection-sdk/types";
|
|
2
2
|
import {
|
|
3
3
|
RunHandle,
|
|
4
4
|
TaskRunsClient,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
export interface CreateTaskParams {
|
|
20
20
|
prompt?: string;
|
|
21
21
|
/** Pin the task to a specific recipe runtime. */
|
|
22
|
-
runtime_id?:
|
|
22
|
+
runtime_id?: Uuid;
|
|
23
23
|
/** Named recipe agent, when no `runtime_id` is pinned. */
|
|
24
24
|
agent_name?: string;
|
|
25
25
|
title?: string;
|