@getorrery/client 0.2.3 → 0.3.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/dist/channel.d.ts CHANGED
@@ -8,17 +8,12 @@
8
8
  * `connect` — one implementation of the wire for every Node client — and this
9
9
  * file gives it the AG-UI [`Frame`] type.
10
10
  */
11
- import { CLIENT_PROTOCOL, type Client, type ConnectOptions } from "@getorrery/ext";
11
+ import { CLIENT_PROTOCOL, pipePath, type Client, type ConnectOptions } from "@getorrery/ext";
12
12
  import { type Frame } from "./events.js";
13
- export { CLIENT_PROTOCOL };
13
+ export { CLIENT_PROTOCOL, pipePath };
14
14
  /** The channel to the host, with frames typed as this package's [`Frame`]. */
15
15
  export interface ClientChannel extends Omit<Client, "frames"> {
16
16
  frames(): AsyncIterable<Frame>;
17
17
  }
18
- /**
19
- * The socket a `pipe:<name>` endpoint names: `\\.\pipe\<name>` on Windows,
20
- * the socket's path elsewhere; `undefined` for any other endpoint.
21
- */
22
- export declare function pipePath(endpoint: string, platform?: string): string | undefined;
23
18
  /** Attach over `ORRERY_ENDPOINT` + `ORRERY_TOKEN`, or the `input` / `output` given. */
24
19
  export declare function connectClient(options?: ConnectOptions): Promise<ClientChannel>;
package/dist/node.js CHANGED
@@ -63,12 +63,7 @@ import {
63
63
 
64
64
  // src/channel.ts
65
65
  import net from "node:net";
66
- import { CLIENT_PROTOCOL, connect } from "@getorrery/ext";
67
- function pipePath(endpoint, platform = process.platform) {
68
- if (!endpoint.startsWith("pipe:")) return void 0;
69
- const name = endpoint.slice("pipe:".length);
70
- return platform === "win32" && !name.startsWith("\\\\") ? `\\\\.\\pipe\\${name}` : name;
71
- }
66
+ import { CLIENT_PROTOCOL, connect, pipePath } from "@getorrery/ext";
72
67
  async function connectClient(options = {}) {
73
68
  const endpoint = (options.env ?? process.env)["ORRERY_ENDPOINT"] ?? "";
74
69
  const path = options.input && options.output ? void 0 : pipePath(endpoint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getorrery/client",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "The TypeScript Orrery client SDK: an AG-UI session over a pluggable transport (HTTP+SSE, WebSocket) and a SurfaceStore. Pure data, no drawing. Browser-safe; Node-only parts in @getorrery/client/node.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "@ag-ui/client": "^1.0.0",
35
35
  "@ag-ui/core": "^1.0.0",
36
- "@getorrery/ext": "0.2.3",
37
- "@getorrery/protocol": "0.2.3"
36
+ "@getorrery/ext": "0.3.1",
37
+ "@getorrery/protocol": "0.3.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^22.10.0",