@circuit-llm/node 0.2.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/LICENSE +21 -0
- package/README.md +28 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +223 -0
- package/package.json +43 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Circuit LLM
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @circuit-llm/node
|
|
2
|
+
|
|
3
|
+
> Join and manage a Circuit mesh node from code: the inference-mesh control plane (register / ready / heartbeat) and the public node registry (announce / ping). The heavy GPU serving stays in the node image.
|
|
4
|
+
|
|
5
|
+
Part of the **[Circuit SDK](https://github.com/Circuit-LLM/circuit-sdk)**. [Contribute a node →](https://github.com/Circuit-LLM/circuit-sdk/blob/main/docs/contributing-a-node.md)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @circuit-llm/node
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { MeshControl, generateMeshIdentity } from '@circuit-llm/node';
|
|
17
|
+
|
|
18
|
+
const identity = generateMeshIdentity();
|
|
19
|
+
const mesh = new MeshControl({ controlUrl: 'http://control:18932', identity });
|
|
20
|
+
const { assignment } = await mesh.register({
|
|
21
|
+
endpoint: ['1.2.3.4', 5000],
|
|
22
|
+
capacityLayers: 40,
|
|
23
|
+
modelFp: 'qwen2.5-72b-awq',
|
|
24
|
+
});
|
|
25
|
+
await mesh.ready(); // …then heartbeat
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Also: `NodeRegistry` (public announce/ping) and `signMeshBody` / `verifyMeshBody`. Pair with [@circuit-llm/onchain](https://github.com/Circuit-LLM/circuit-sdk/tree/main/packages/onchain) to verify what's staked.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import { Identity } from '@circuit-llm/core';
|
|
3
|
+
|
|
4
|
+
interface MeshIdentity {
|
|
5
|
+
/** raw ed25519 public key, hex (this IS the node_id). */
|
|
6
|
+
nodeId: string;
|
|
7
|
+
/** raw ed25519 seed, hex (32 bytes) — for persistence. */
|
|
8
|
+
seedHex: string;
|
|
9
|
+
/** private KeyObject — for signing. */
|
|
10
|
+
privateKey: crypto.KeyObject;
|
|
11
|
+
}
|
|
12
|
+
declare function generateMeshIdentity(): MeshIdentity;
|
|
13
|
+
/** Reconstruct a mesh identity from its 32-byte seed (hex). */
|
|
14
|
+
declare function meshIdentityFromSeed(seedHex: string): MeshIdentity;
|
|
15
|
+
/** Stamp {node_id, ts} and attach an ed25519 `sig` over the compact sorted JSON of
|
|
16
|
+
* the body-minus-sig. `now` (unix seconds) is injectable for tests. */
|
|
17
|
+
declare function signMeshBody(identity: MeshIdentity, body: Record<string, unknown>, now?: number): Record<string, unknown>;
|
|
18
|
+
/** Server-side counterpart — verify a signed mesh body. */
|
|
19
|
+
declare function verifyMeshBody(body: Record<string, unknown>): boolean;
|
|
20
|
+
|
|
21
|
+
interface MeshControlOptions {
|
|
22
|
+
controlUrl: string;
|
|
23
|
+
/** Required to register (signs the body); ready/heartbeat/drain only need the node_id. */
|
|
24
|
+
identity?: MeshIdentity;
|
|
25
|
+
nodeId?: string;
|
|
26
|
+
fetchImpl?: typeof fetch;
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
}
|
|
29
|
+
interface RegisterParams {
|
|
30
|
+
endpoint: [string, number];
|
|
31
|
+
capacityLayers: number;
|
|
32
|
+
modelFp: string;
|
|
33
|
+
region?: string;
|
|
34
|
+
payoutWallet?: string;
|
|
35
|
+
reachability?: string;
|
|
36
|
+
orchestrator?: boolean;
|
|
37
|
+
/** Re-register for an already-loaded slot. */
|
|
38
|
+
loadedLayers?: [number, number];
|
|
39
|
+
}
|
|
40
|
+
interface RegisterResult {
|
|
41
|
+
assignment: {
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
} | null;
|
|
45
|
+
orch_index?: number | null;
|
|
46
|
+
model_fp: string;
|
|
47
|
+
session_key: string;
|
|
48
|
+
coordinator: [string, number];
|
|
49
|
+
replication: number;
|
|
50
|
+
}
|
|
51
|
+
declare class MeshControlError extends Error {
|
|
52
|
+
readonly status: number;
|
|
53
|
+
constructor(status: number, message: string);
|
|
54
|
+
}
|
|
55
|
+
declare class MeshControl {
|
|
56
|
+
readonly nodeId: string | undefined;
|
|
57
|
+
private readonly base;
|
|
58
|
+
private readonly identity?;
|
|
59
|
+
private readonly fetchImpl;
|
|
60
|
+
private readonly timeoutMs;
|
|
61
|
+
constructor(opts: MeshControlOptions);
|
|
62
|
+
/** Join the mesh. Requires an identity (signs the request). Returns the assigned
|
|
63
|
+
* slot, derived session key, etc. */
|
|
64
|
+
register(p: RegisterParams): Promise<RegisterResult>;
|
|
65
|
+
/** Mark this node READY (serving). */
|
|
66
|
+
ready(): Promise<{
|
|
67
|
+
ok?: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
/** Heartbeat. `registered:false` means the control plane forgot us → re-register. */
|
|
70
|
+
heartbeat(): Promise<{
|
|
71
|
+
ok?: boolean;
|
|
72
|
+
registered?: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
/** Gracefully leave. */
|
|
75
|
+
drain(): Promise<{
|
|
76
|
+
ok?: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
/** Current mesh topology (free). */
|
|
79
|
+
topology(): Promise<{
|
|
80
|
+
slots: unknown[];
|
|
81
|
+
coverage_ok: boolean;
|
|
82
|
+
model_fp?: string;
|
|
83
|
+
replication?: number;
|
|
84
|
+
}>;
|
|
85
|
+
health(): Promise<unknown>;
|
|
86
|
+
private requireNodeId;
|
|
87
|
+
private post;
|
|
88
|
+
private get;
|
|
89
|
+
private parse;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface NodeRegistryOptions {
|
|
93
|
+
registryUrl: string;
|
|
94
|
+
identity: Identity;
|
|
95
|
+
fetchImpl?: typeof fetch;
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
}
|
|
98
|
+
interface AnnounceParams {
|
|
99
|
+
version: string;
|
|
100
|
+
shards?: string[];
|
|
101
|
+
region?: string;
|
|
102
|
+
agentRunning?: boolean;
|
|
103
|
+
apiPort?: number | null;
|
|
104
|
+
[k: string]: unknown;
|
|
105
|
+
}
|
|
106
|
+
declare class NodeRegistry {
|
|
107
|
+
readonly nodeId: string;
|
|
108
|
+
private readonly base;
|
|
109
|
+
private readonly identity;
|
|
110
|
+
private readonly fetchImpl;
|
|
111
|
+
private readonly timeoutMs;
|
|
112
|
+
constructor(opts: NodeRegistryOptions);
|
|
113
|
+
/** Register this node; returns the registered node record. */
|
|
114
|
+
announce(p: AnnounceParams): Promise<unknown>;
|
|
115
|
+
/** Heartbeat with an optional status update. */
|
|
116
|
+
ping(update?: Record<string, unknown>): Promise<unknown>;
|
|
117
|
+
/** Remove this node's record. */
|
|
118
|
+
deregister(): Promise<unknown>;
|
|
119
|
+
/** List active peers (optionally filtered, e.g. { shard }). */
|
|
120
|
+
getPeers(filters?: Record<string, string>): Promise<unknown[]>;
|
|
121
|
+
private signedPost;
|
|
122
|
+
private parse;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { type AnnounceParams, MeshControl, MeshControlError, type MeshControlOptions, type MeshIdentity, NodeRegistry, type NodeRegistryOptions, type RegisterParams, type RegisterResult, generateMeshIdentity, meshIdentityFromSeed, signMeshBody, verifyMeshBody };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
// src/mesh-identity.ts
|
|
2
|
+
import crypto from "crypto";
|
|
3
|
+
import { stableStringify } from "@circuit-llm/core";
|
|
4
|
+
var PKCS8_PREFIX = Buffer.from("302e020100300506032b657004220420", "hex");
|
|
5
|
+
var SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
6
|
+
function rawPubHex(pub) {
|
|
7
|
+
const der = pub.export({ type: "spki", format: "der" });
|
|
8
|
+
return Buffer.from(der.subarray(der.length - 32)).toString("hex");
|
|
9
|
+
}
|
|
10
|
+
function rawSeedHex(priv) {
|
|
11
|
+
const der = priv.export({ type: "pkcs8", format: "der" });
|
|
12
|
+
return Buffer.from(der.subarray(der.length - 32)).toString("hex");
|
|
13
|
+
}
|
|
14
|
+
function generateMeshIdentity() {
|
|
15
|
+
const { publicKey, privateKey } = crypto.generateKeyPairSync("ed25519");
|
|
16
|
+
return { nodeId: rawPubHex(publicKey), seedHex: rawSeedHex(privateKey), privateKey };
|
|
17
|
+
}
|
|
18
|
+
function meshIdentityFromSeed(seedHex) {
|
|
19
|
+
const seed = Buffer.from(seedHex, "hex");
|
|
20
|
+
if (seed.length !== 32) throw new Error("ed25519 seed must be 32 bytes (64 hex chars)");
|
|
21
|
+
const privateKey = crypto.createPrivateKey({
|
|
22
|
+
key: Buffer.concat([PKCS8_PREFIX, seed]),
|
|
23
|
+
format: "der",
|
|
24
|
+
type: "pkcs8"
|
|
25
|
+
});
|
|
26
|
+
return { nodeId: rawPubHex(crypto.createPublicKey(privateKey)), seedHex, privateKey };
|
|
27
|
+
}
|
|
28
|
+
function signMeshBody(identity, body, now = Math.floor(Date.now() / 1e3)) {
|
|
29
|
+
const stamped = { ...body, node_id: identity.nodeId, ts: now };
|
|
30
|
+
const sig = crypto.sign(null, Buffer.from(stableStringify(stamped)), identity.privateKey).toString("hex");
|
|
31
|
+
return { ...stamped, sig };
|
|
32
|
+
}
|
|
33
|
+
function verifyMeshBody(body) {
|
|
34
|
+
try {
|
|
35
|
+
const sig = String(body.sig);
|
|
36
|
+
const nodeId = String(body.node_id);
|
|
37
|
+
const pub = crypto.createPublicKey({
|
|
38
|
+
key: Buffer.concat([SPKI_PREFIX, Buffer.from(nodeId, "hex")]),
|
|
39
|
+
format: "der",
|
|
40
|
+
type: "spki"
|
|
41
|
+
});
|
|
42
|
+
const rest = { ...body };
|
|
43
|
+
delete rest.sig;
|
|
44
|
+
return crypto.verify(null, Buffer.from(stableStringify(rest)), pub, Buffer.from(sig, "hex"));
|
|
45
|
+
} catch {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// src/mesh-control.ts
|
|
51
|
+
var MeshControlError = class extends Error {
|
|
52
|
+
status;
|
|
53
|
+
constructor(status, message) {
|
|
54
|
+
super(message);
|
|
55
|
+
this.name = "MeshControlError";
|
|
56
|
+
this.status = status;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var MeshControl = class {
|
|
60
|
+
nodeId;
|
|
61
|
+
base;
|
|
62
|
+
identity;
|
|
63
|
+
fetchImpl;
|
|
64
|
+
timeoutMs;
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
this.base = opts.controlUrl.replace(/\/$/, "");
|
|
67
|
+
this.identity = opts.identity;
|
|
68
|
+
this.nodeId = opts.identity?.nodeId ?? opts.nodeId;
|
|
69
|
+
this.fetchImpl = opts.fetchImpl ?? fetch;
|
|
70
|
+
this.timeoutMs = opts.timeoutMs ?? 1e4;
|
|
71
|
+
}
|
|
72
|
+
/** Join the mesh. Requires an identity (signs the request). Returns the assigned
|
|
73
|
+
* slot, derived session key, etc. */
|
|
74
|
+
async register(p) {
|
|
75
|
+
if (!this.identity) throw new Error("register requires a MeshIdentity to sign the request");
|
|
76
|
+
const body = {
|
|
77
|
+
endpoint: p.endpoint,
|
|
78
|
+
capacity_layers: p.capacityLayers,
|
|
79
|
+
model_fp: p.modelFp,
|
|
80
|
+
reachability: p.reachability ?? "public",
|
|
81
|
+
region: p.region ?? "",
|
|
82
|
+
payout_wallet: p.payoutWallet ?? "",
|
|
83
|
+
orchestrator: !!p.orchestrator
|
|
84
|
+
};
|
|
85
|
+
if (p.loadedLayers) body.loaded_layers = p.loadedLayers;
|
|
86
|
+
return this.post("/register", signMeshBody(this.identity, body));
|
|
87
|
+
}
|
|
88
|
+
/** Mark this node READY (serving). */
|
|
89
|
+
ready() {
|
|
90
|
+
return this.post("/ready", { node_id: this.requireNodeId() });
|
|
91
|
+
}
|
|
92
|
+
/** Heartbeat. `registered:false` means the control plane forgot us → re-register. */
|
|
93
|
+
heartbeat() {
|
|
94
|
+
return this.post("/heartbeat", { node_id: this.requireNodeId() });
|
|
95
|
+
}
|
|
96
|
+
/** Gracefully leave. */
|
|
97
|
+
drain() {
|
|
98
|
+
return this.post("/drain", { node_id: this.requireNodeId() });
|
|
99
|
+
}
|
|
100
|
+
/** Current mesh topology (free). */
|
|
101
|
+
topology() {
|
|
102
|
+
return this.get("/topology");
|
|
103
|
+
}
|
|
104
|
+
health() {
|
|
105
|
+
return this.get("/health");
|
|
106
|
+
}
|
|
107
|
+
requireNodeId() {
|
|
108
|
+
if (!this.nodeId) throw new Error("no node_id (pass identity or nodeId)");
|
|
109
|
+
return this.nodeId;
|
|
110
|
+
}
|
|
111
|
+
async post(path, body) {
|
|
112
|
+
const res = await this.fetchImpl(`${this.base}${path}`, {
|
|
113
|
+
method: "POST",
|
|
114
|
+
headers: { "Content-Type": "application/json" },
|
|
115
|
+
body: JSON.stringify(body),
|
|
116
|
+
signal: AbortSignal.timeout(this.timeoutMs)
|
|
117
|
+
});
|
|
118
|
+
return this.parse(res, path);
|
|
119
|
+
}
|
|
120
|
+
async get(path) {
|
|
121
|
+
const res = await this.fetchImpl(`${this.base}${path}`, { signal: AbortSignal.timeout(this.timeoutMs) });
|
|
122
|
+
return this.parse(res, path);
|
|
123
|
+
}
|
|
124
|
+
async parse(res, path) {
|
|
125
|
+
const text = await res.text();
|
|
126
|
+
let body;
|
|
127
|
+
try {
|
|
128
|
+
body = text ? JSON.parse(text) : null;
|
|
129
|
+
} catch {
|
|
130
|
+
body = text;
|
|
131
|
+
}
|
|
132
|
+
if (!res.ok) {
|
|
133
|
+
const msg = body?.error ?? `HTTP ${res.status}`;
|
|
134
|
+
throw new MeshControlError(res.status, `${path}: ${msg}`);
|
|
135
|
+
}
|
|
136
|
+
return body;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/node-registry.ts
|
|
141
|
+
import { signRequest } from "@circuit-llm/core";
|
|
142
|
+
var NodeRegistry = class {
|
|
143
|
+
nodeId;
|
|
144
|
+
base;
|
|
145
|
+
identity;
|
|
146
|
+
fetchImpl;
|
|
147
|
+
timeoutMs;
|
|
148
|
+
constructor(opts) {
|
|
149
|
+
this.base = opts.registryUrl.replace(/\/$/, "");
|
|
150
|
+
this.identity = opts.identity;
|
|
151
|
+
this.nodeId = opts.identity.nodeId;
|
|
152
|
+
this.fetchImpl = opts.fetchImpl ?? fetch;
|
|
153
|
+
this.timeoutMs = opts.timeoutMs ?? 1e4;
|
|
154
|
+
}
|
|
155
|
+
/** Register this node; returns the registered node record. */
|
|
156
|
+
async announce(p) {
|
|
157
|
+
const { version, shards, region, agentRunning, apiPort, ...extra } = p;
|
|
158
|
+
const body = {
|
|
159
|
+
nodeId: this.nodeId,
|
|
160
|
+
version,
|
|
161
|
+
shards: shards ?? ["all"],
|
|
162
|
+
region: region ?? "unknown",
|
|
163
|
+
agentRunning: agentRunning ?? false,
|
|
164
|
+
apiPort: apiPort ?? null,
|
|
165
|
+
...extra
|
|
166
|
+
};
|
|
167
|
+
const r = await this.signedPost("/api/network/nodes/announce", body);
|
|
168
|
+
return r.node ?? r;
|
|
169
|
+
}
|
|
170
|
+
/** Heartbeat with an optional status update. */
|
|
171
|
+
ping(update = {}) {
|
|
172
|
+
return this.signedPost("/api/network/nodes/ping", { nodeId: this.nodeId, ...update });
|
|
173
|
+
}
|
|
174
|
+
/** Remove this node's record. */
|
|
175
|
+
async deregister() {
|
|
176
|
+
const headers = signRequest(this.identity, {});
|
|
177
|
+
const res = await this.fetchImpl(`${this.base}/api/network/nodes/${encodeURIComponent(this.nodeId)}`, {
|
|
178
|
+
method: "DELETE",
|
|
179
|
+
headers,
|
|
180
|
+
signal: AbortSignal.timeout(this.timeoutMs)
|
|
181
|
+
});
|
|
182
|
+
return this.parse(res);
|
|
183
|
+
}
|
|
184
|
+
/** List active peers (optionally filtered, e.g. { shard }). */
|
|
185
|
+
async getPeers(filters = {}) {
|
|
186
|
+
const qs = new URLSearchParams(filters).toString();
|
|
187
|
+
const res = await this.fetchImpl(`${this.base}/api/network/nodes${qs ? `?${qs}` : ""}`, {
|
|
188
|
+
signal: AbortSignal.timeout(this.timeoutMs)
|
|
189
|
+
});
|
|
190
|
+
const r = await this.parse(res);
|
|
191
|
+
return r.nodes ?? [];
|
|
192
|
+
}
|
|
193
|
+
async signedPost(path, body) {
|
|
194
|
+
const headers = signRequest(this.identity, body);
|
|
195
|
+
const res = await this.fetchImpl(`${this.base}${path}`, {
|
|
196
|
+
method: "POST",
|
|
197
|
+
headers,
|
|
198
|
+
body: JSON.stringify(body),
|
|
199
|
+
signal: AbortSignal.timeout(this.timeoutMs)
|
|
200
|
+
});
|
|
201
|
+
return this.parse(res);
|
|
202
|
+
}
|
|
203
|
+
async parse(res) {
|
|
204
|
+
const text = await res.text();
|
|
205
|
+
let body;
|
|
206
|
+
try {
|
|
207
|
+
body = text ? JSON.parse(text) : null;
|
|
208
|
+
} catch {
|
|
209
|
+
body = text;
|
|
210
|
+
}
|
|
211
|
+
if (!res.ok) throw new Error(body?.error ?? `HTTP ${res.status}`);
|
|
212
|
+
return body;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
export {
|
|
216
|
+
MeshControl,
|
|
217
|
+
MeshControlError,
|
|
218
|
+
NodeRegistry,
|
|
219
|
+
generateMeshIdentity,
|
|
220
|
+
meshIdentityFromSeed,
|
|
221
|
+
signMeshBody,
|
|
222
|
+
verifyMeshBody
|
|
223
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@circuit-llm/node",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Circuit SDK node — join/manage a mesh node from code: the inference-mesh control plane (register/ready/heartbeat) + the public node registry (announce/ping). The heavy GPU serving stays in the node image.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"development": "./src/index.ts",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "node --experimental-strip-types --conditions=development --test test/*.test.ts",
|
|
16
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
17
|
+
"build": "tsup src/index.ts --format esm --dts --clean --out-dir dist",
|
|
18
|
+
"prepack": "tsup src/index.ts --format esm --dts --clean --out-dir dist"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@circuit-llm/core": "0.2.1"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/Circuit-LLM/circuit-sdk.git",
|
|
34
|
+
"directory": "packages/node"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/Circuit-LLM/circuit-sdk/tree/main/packages/node#readme",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/Circuit-LLM/circuit-sdk/issues"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18"
|
|
42
|
+
}
|
|
43
|
+
}
|