@o11y-one/sdk 0.1.2 → 0.1.4
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 +5 -1
- package/dist/api.d.ts +15 -0
- package/dist/api.js +15 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -9,11 +9,15 @@ generated [`@o11y-one/api-agentic`](../gen-ts-agentic) package.
|
|
|
9
9
|
pnpm add @o11y-one/sdk
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
That is the only package to install. The generated service descriptors,
|
|
13
|
+
message schemas and enums are re-exported from `@o11y-one/sdk/api`, so you
|
|
14
|
+
never import `@o11y-one/api-agentic` directly.
|
|
15
|
+
|
|
12
16
|
## Use
|
|
13
17
|
|
|
14
18
|
```ts
|
|
15
19
|
import { O11yClient, classify } from "@o11y-one/sdk";
|
|
16
|
-
import { AgenticEvaluationService } from "@o11y-one/api
|
|
20
|
+
import { AgenticEvaluationService } from "@o11y-one/sdk/api";
|
|
17
21
|
|
|
18
22
|
const o11y = new O11yClient({
|
|
19
23
|
baseUrl: "https://grpc.o11y.one",
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@o11y-one/sdk/api` — the generated API surface, re-exported.
|
|
3
|
+
*
|
|
4
|
+
* Service descriptors, message schemas and enums come from the generated
|
|
5
|
+
* `@o11y-one/api-agentic`. Re-exporting them here lets a project install
|
|
6
|
+
* `@o11y-one/sdk` alone and still name everything the wire needs, without
|
|
7
|
+
* importing a package it never declared (which pnpm and Yarn PnP refuse).
|
|
8
|
+
*
|
|
9
|
+
* Every generated module is listed; test/api.test.js fails if one is missing.
|
|
10
|
+
*/
|
|
11
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/agent_run_pb";
|
|
12
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/artifact_pb";
|
|
13
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/evaluation_pb";
|
|
14
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/trace_view_pb";
|
|
15
|
+
export * from "@o11y-one/api-agentic/o11y_one/common/v1/common_pb";
|
package/dist/api.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@o11y-one/sdk/api` — the generated API surface, re-exported.
|
|
3
|
+
*
|
|
4
|
+
* Service descriptors, message schemas and enums come from the generated
|
|
5
|
+
* `@o11y-one/api-agentic`. Re-exporting them here lets a project install
|
|
6
|
+
* `@o11y-one/sdk` alone and still name everything the wire needs, without
|
|
7
|
+
* importing a package it never declared (which pnpm and Yarn PnP refuse).
|
|
8
|
+
*
|
|
9
|
+
* Every generated module is listed; test/api.test.js fails if one is missing.
|
|
10
|
+
*/
|
|
11
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/agent_run_pb";
|
|
12
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/artifact_pb";
|
|
13
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/evaluation_pb";
|
|
14
|
+
export * from "@o11y-one/api-agentic/o11y_one/agentic/v1/trace_view_pb";
|
|
15
|
+
export * from "@o11y-one/api-agentic/o11y_one/common/v1/common_pb";
|
package/dist/client.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare function createTransport(options: ClientOptions): Transport;
|
|
|
88
88
|
*
|
|
89
89
|
* ```ts
|
|
90
90
|
* import { O11yClient } from "@o11y-one/sdk";
|
|
91
|
-
* import { AgenticEvaluationService } from "@o11y-one/api
|
|
91
|
+
* import { AgenticEvaluationService } from "@o11y-one/sdk/api";
|
|
92
92
|
*
|
|
93
93
|
* const o11y = new O11yClient({ baseUrl, credential: process.env.O11Y_API_KEY });
|
|
94
94
|
* const evals = o11y.service(AgenticEvaluationService);
|
package/dist/client.js
CHANGED
|
@@ -86,7 +86,7 @@ export function createTransport(options) {
|
|
|
86
86
|
*
|
|
87
87
|
* ```ts
|
|
88
88
|
* import { O11yClient } from "@o11y-one/sdk";
|
|
89
|
-
* import { AgenticEvaluationService } from "@o11y-one/api
|
|
89
|
+
* import { AgenticEvaluationService } from "@o11y-one/sdk/api";
|
|
90
90
|
*
|
|
91
91
|
* const o11y = new O11yClient({ baseUrl, credential: process.env.O11Y_API_KEY });
|
|
92
92
|
* const evals = o11y.service(AgenticEvaluationService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o11y-one/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Hand-written client wrapper over @o11y-one/api-agentic: transport construction, credential injection, and the O11y One error taxonomy.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./api": {
|
|
14
|
+
"types": "./dist/api.d.ts",
|
|
15
|
+
"default": "./dist/api.js"
|
|
12
16
|
}
|
|
13
17
|
},
|
|
14
18
|
"files": [
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
"@connectrpc/connect": "^2.2.0",
|
|
20
24
|
"@connectrpc/connect-node": "^2.2.0",
|
|
21
25
|
"@connectrpc/connect-web": "^2.2.0",
|
|
22
|
-
"@o11y-one/api-agentic": "0.1.
|
|
26
|
+
"@o11y-one/api-agentic": "0.1.4"
|
|
23
27
|
},
|
|
24
28
|
"devDependencies": {
|
|
25
29
|
"typescript": "^7.0.2"
|