@introspection-sdk/introspection-browser 0.6.0 → 0.6.2

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @introspection-sdk/introspection-browser@0.6.0 build /home/runner/work/introspection-js-sdk/introspection-js-sdk/packages/introspection-browser
2
+ > @introspection-sdk/introspection-browser@0.6.2 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.resolveByName("support-agent")`) and supplies the Data
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.
@@ -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 name
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 name
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
  *
@@ -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?: string;
16
+ runtime_id?: Uuid;
17
17
  /** Named recipe agent, when no `runtime_id` is pinned. */
18
18
  agent_name?: string;
19
19
  title?: string;
@@ -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;AACjE,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,MAAM,CAAC;IACpB,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"}
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.6.0",
3
+ "version": "0.6.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Introspection observability SDK for the browser",
6
6
  "engines": {
@@ -23,16 +23,16 @@
23
23
  "@types/node": "^22.20.0",
24
24
  "eslint": "^9.39.4",
25
25
  "typescript": "5.9.3",
26
- "@repo/eslint-config": "0.0.0",
27
- "@repo/typescript-config": "0.0.0"
26
+ "@repo/typescript-config": "0.0.0",
27
+ "@repo/eslint-config": "0.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@opentelemetry/api": "^1.9.1",
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/types": "0.6.0",
35
- "@introspection-sdk/http": "0.6.0"
34
+ "@introspection-sdk/types": "0.6.2",
35
+ "@introspection-sdk/http": "0.6.2"
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 name
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?: string;
22
+ runtime_id?: Uuid;
23
23
  /** Named recipe agent, when no `runtime_id` is pinned. */
24
24
  agent_name?: string;
25
25
  title?: string;