@relayplane/proxy 0.1.10 → 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/README.md +112 -298
- package/dist/brain-client.d.ts +87 -0
- package/dist/brain-client.d.ts.map +1 -0
- package/dist/brain-client.js +205 -0
- package/dist/brain-client.js.map +1 -0
- package/dist/cli.d.ts +35 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +262 -3115
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +80 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +208 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +17 -1131
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -3096
- package/dist/index.js.map +1 -1
- package/dist/standalone-proxy.d.ts +79 -0
- package/dist/standalone-proxy.d.ts.map +1 -0
- package/dist/standalone-proxy.js +2414 -0
- package/dist/standalone-proxy.js.map +1 -0
- package/dist/telemetry.d.ts +127 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +426 -0
- package/dist/telemetry.js.map +1 -0
- package/package.json +31 -51
- package/LICENSE +0 -21
- package/dist/cli.d.mts +0 -1
- package/dist/cli.mjs +0 -3134
- package/dist/cli.mjs.map +0 -1
- package/dist/index.d.mts +0 -1141
- package/dist/index.mjs +0 -3039
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* RelayPlane Proxy Telemetry
|
|
4
|
+
*
|
|
5
|
+
* Anonymized telemetry collection for improving model routing.
|
|
6
|
+
*
|
|
7
|
+
* What we collect (exact schema):
|
|
8
|
+
* - device_id: anonymous random ID
|
|
9
|
+
* - task_type: inferred from token patterns, NOT prompt content
|
|
10
|
+
* - model: which model was used
|
|
11
|
+
* - tokens_in/out: token counts
|
|
12
|
+
* - latency_ms: response time
|
|
13
|
+
* - success: whether request succeeded
|
|
14
|
+
* - cost_usd: estimated cost
|
|
15
|
+
*
|
|
16
|
+
* What we NEVER collect:
|
|
17
|
+
* - Prompts or responses
|
|
18
|
+
* - File paths or contents
|
|
19
|
+
* - Anything that could identify you or your project
|
|
20
|
+
*
|
|
21
|
+
* @packageDocumentation
|
|
22
|
+
*/
|
|
23
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24
|
+
if (k2 === undefined) k2 = k;
|
|
25
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
26
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, k2, desc);
|
|
30
|
+
}) : (function(o, m, k, k2) {
|
|
31
|
+
if (k2 === undefined) k2 = k;
|
|
32
|
+
o[k2] = m[k];
|
|
33
|
+
}));
|
|
34
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
35
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
36
|
+
}) : function(o, v) {
|
|
37
|
+
o["default"] = v;
|
|
38
|
+
});
|
|
39
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
40
|
+
var ownKeys = function(o) {
|
|
41
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
42
|
+
var ar = [];
|
|
43
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44
|
+
return ar;
|
|
45
|
+
};
|
|
46
|
+
return ownKeys(o);
|
|
47
|
+
};
|
|
48
|
+
return function (mod) {
|
|
49
|
+
if (mod && mod.__esModule) return mod;
|
|
50
|
+
var result = {};
|
|
51
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
52
|
+
__setModuleDefault(result, mod);
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
})();
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.inferTaskType = inferTaskType;
|
|
58
|
+
exports.estimateCost = estimateCost;
|
|
59
|
+
exports.setAuditMode = setAuditMode;
|
|
60
|
+
exports.isAuditMode = isAuditMode;
|
|
61
|
+
exports.setOfflineMode = setOfflineMode;
|
|
62
|
+
exports.isOfflineMode = isOfflineMode;
|
|
63
|
+
exports.getAuditBuffer = getAuditBuffer;
|
|
64
|
+
exports.clearAuditBuffer = clearAuditBuffer;
|
|
65
|
+
exports.recordTelemetry = recordTelemetry;
|
|
66
|
+
exports.getLocalTelemetry = getLocalTelemetry;
|
|
67
|
+
exports.getTelemetryStats = getTelemetryStats;
|
|
68
|
+
exports.clearTelemetry = clearTelemetry;
|
|
69
|
+
exports.getTelemetryPath = getTelemetryPath;
|
|
70
|
+
exports.queueForUpload = queueForUpload;
|
|
71
|
+
exports.flushTelemetryToCloud = flushTelemetryToCloud;
|
|
72
|
+
exports.stopUploadTimer = stopUploadTimer;
|
|
73
|
+
exports.getPendingUploadCount = getPendingUploadCount;
|
|
74
|
+
exports.printTelemetryDisclosure = printTelemetryDisclosure;
|
|
75
|
+
const fs = __importStar(require("fs"));
|
|
76
|
+
const path = __importStar(require("path"));
|
|
77
|
+
const config_js_1 = require("./config.js");
|
|
78
|
+
/**
|
|
79
|
+
* Local telemetry store using SQLite (via Ledger)
|
|
80
|
+
*/
|
|
81
|
+
const TELEMETRY_FILE = path.join((0, config_js_1.getConfigDir)(), 'telemetry.jsonl');
|
|
82
|
+
// In-memory buffer for audit mode
|
|
83
|
+
let auditBuffer = [];
|
|
84
|
+
let auditMode = false;
|
|
85
|
+
let offlineMode = false;
|
|
86
|
+
/**
|
|
87
|
+
* Task type inference based on token patterns
|
|
88
|
+
* This infers task type from request characteristics, NOT from prompt content
|
|
89
|
+
*/
|
|
90
|
+
function inferTaskType(inputTokens, outputTokens, model, hasTools = false) {
|
|
91
|
+
// Simple heuristics based on token patterns
|
|
92
|
+
const ratio = outputTokens / Math.max(inputTokens, 1);
|
|
93
|
+
if (hasTools) {
|
|
94
|
+
return 'tool_use';
|
|
95
|
+
}
|
|
96
|
+
if (inputTokens > 10000) {
|
|
97
|
+
return 'long_context';
|
|
98
|
+
}
|
|
99
|
+
if (ratio > 5) {
|
|
100
|
+
return 'generation';
|
|
101
|
+
}
|
|
102
|
+
if (ratio < 0.3 && outputTokens < 100) {
|
|
103
|
+
return 'classification';
|
|
104
|
+
}
|
|
105
|
+
if (inputTokens < 500 && outputTokens < 500) {
|
|
106
|
+
return 'quick_task';
|
|
107
|
+
}
|
|
108
|
+
if (inputTokens > 2000 && outputTokens > 500) {
|
|
109
|
+
return 'code_review';
|
|
110
|
+
}
|
|
111
|
+
if (outputTokens > 1000) {
|
|
112
|
+
return 'content_generation';
|
|
113
|
+
}
|
|
114
|
+
return 'general';
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Estimate cost based on model and token counts
|
|
118
|
+
* Pricing as of 2024 (USD per 1M tokens)
|
|
119
|
+
*/
|
|
120
|
+
const MODEL_PRICING = {
|
|
121
|
+
// Anthropic
|
|
122
|
+
'claude-opus-4-20250514': { input: 15.0, output: 75.0 },
|
|
123
|
+
'claude-sonnet-4-20250514': { input: 3.0, output: 15.0 },
|
|
124
|
+
'claude-3-5-sonnet-20241022': { input: 3.0, output: 15.0 },
|
|
125
|
+
'claude-3-5-sonnet-20240620': { input: 3.0, output: 15.0 },
|
|
126
|
+
'claude-3-5-haiku-20241022': { input: 0.8, output: 4.0 },
|
|
127
|
+
'claude-3-opus-20240229': { input: 15.0, output: 75.0 },
|
|
128
|
+
'claude-3-sonnet-20240229': { input: 3.0, output: 15.0 },
|
|
129
|
+
'claude-3-haiku-20240307': { input: 0.25, output: 1.25 },
|
|
130
|
+
// OpenAI
|
|
131
|
+
'gpt-4o': { input: 2.5, output: 10.0 },
|
|
132
|
+
'gpt-4o-mini': { input: 0.15, output: 0.60 },
|
|
133
|
+
'gpt-4-turbo': { input: 10.0, output: 30.0 },
|
|
134
|
+
'gpt-4': { input: 30.0, output: 60.0 },
|
|
135
|
+
'gpt-3.5-turbo': { input: 0.5, output: 1.5 },
|
|
136
|
+
// Default for unknown models
|
|
137
|
+
'default': { input: 1.0, output: 3.0 },
|
|
138
|
+
};
|
|
139
|
+
function estimateCost(model, inputTokens, outputTokens) {
|
|
140
|
+
const pricing = MODEL_PRICING[model] || MODEL_PRICING['default'];
|
|
141
|
+
const inputCost = (inputTokens / 1_000_000) * pricing.input;
|
|
142
|
+
const outputCost = (outputTokens / 1_000_000) * pricing.output;
|
|
143
|
+
return Math.round((inputCost + outputCost) * 10000) / 10000; // Round to 4 decimal places
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Set audit mode - shows telemetry payload before sending
|
|
147
|
+
*/
|
|
148
|
+
function setAuditMode(enabled) {
|
|
149
|
+
auditMode = enabled;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Check if audit mode is enabled
|
|
153
|
+
*/
|
|
154
|
+
function isAuditMode() {
|
|
155
|
+
return auditMode;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Set offline mode - disables all network calls except LLM
|
|
159
|
+
*/
|
|
160
|
+
function setOfflineMode(enabled) {
|
|
161
|
+
offlineMode = enabled;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Check if offline mode is enabled
|
|
165
|
+
*/
|
|
166
|
+
function isOfflineMode() {
|
|
167
|
+
return offlineMode;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Get pending audit events
|
|
171
|
+
*/
|
|
172
|
+
function getAuditBuffer() {
|
|
173
|
+
return [...auditBuffer];
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Clear audit buffer
|
|
177
|
+
*/
|
|
178
|
+
function clearAuditBuffer() {
|
|
179
|
+
auditBuffer = [];
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Record a telemetry event
|
|
183
|
+
*/
|
|
184
|
+
function recordTelemetry(event) {
|
|
185
|
+
if (!(0, config_js_1.isTelemetryEnabled)() && !auditMode) {
|
|
186
|
+
return; // Telemetry disabled and not in audit mode
|
|
187
|
+
}
|
|
188
|
+
const fullEvent = {
|
|
189
|
+
...event,
|
|
190
|
+
device_id: (0, config_js_1.getDeviceId)(),
|
|
191
|
+
timestamp: new Date().toISOString(),
|
|
192
|
+
};
|
|
193
|
+
if (auditMode) {
|
|
194
|
+
// In audit mode, buffer events and print them
|
|
195
|
+
auditBuffer.push(fullEvent);
|
|
196
|
+
console.log('\n📊 [TELEMETRY AUDIT] The following data would be collected:');
|
|
197
|
+
console.log(JSON.stringify(fullEvent, null, 2));
|
|
198
|
+
console.log('');
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
if (!(0, config_js_1.isTelemetryEnabled)()) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
// Store locally (append to JSONL file)
|
|
205
|
+
try {
|
|
206
|
+
const configDir = (0, config_js_1.getConfigDir)();
|
|
207
|
+
if (!fs.existsSync(configDir)) {
|
|
208
|
+
fs.mkdirSync(configDir, { recursive: true });
|
|
209
|
+
}
|
|
210
|
+
fs.appendFileSync(TELEMETRY_FILE, JSON.stringify(fullEvent) + '\n');
|
|
211
|
+
}
|
|
212
|
+
catch (err) {
|
|
213
|
+
// Silently fail - telemetry should never break the proxy
|
|
214
|
+
}
|
|
215
|
+
// Queue for cloud upload (if not offline)
|
|
216
|
+
queueForUpload(fullEvent);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Get local telemetry data
|
|
220
|
+
*/
|
|
221
|
+
function getLocalTelemetry() {
|
|
222
|
+
try {
|
|
223
|
+
if (!fs.existsSync(TELEMETRY_FILE)) {
|
|
224
|
+
return [];
|
|
225
|
+
}
|
|
226
|
+
const data = fs.readFileSync(TELEMETRY_FILE, 'utf-8');
|
|
227
|
+
return data
|
|
228
|
+
.split('\n')
|
|
229
|
+
.filter(line => line.trim())
|
|
230
|
+
.map(line => JSON.parse(line));
|
|
231
|
+
}
|
|
232
|
+
catch (err) {
|
|
233
|
+
return [];
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Get telemetry stats summary
|
|
238
|
+
*/
|
|
239
|
+
function getTelemetryStats() {
|
|
240
|
+
const events = getLocalTelemetry();
|
|
241
|
+
const byModel = {};
|
|
242
|
+
const byTaskType = {};
|
|
243
|
+
let totalCost = 0;
|
|
244
|
+
let successCount = 0;
|
|
245
|
+
for (const event of events) {
|
|
246
|
+
totalCost += event.cost_usd;
|
|
247
|
+
if (event.success)
|
|
248
|
+
successCount++;
|
|
249
|
+
if (!byModel[event.model]) {
|
|
250
|
+
byModel[event.model] = { count: 0, cost: 0 };
|
|
251
|
+
}
|
|
252
|
+
byModel[event.model].count++;
|
|
253
|
+
byModel[event.model].cost += event.cost_usd;
|
|
254
|
+
if (!byTaskType[event.task_type]) {
|
|
255
|
+
byTaskType[event.task_type] = { count: 0, cost: 0 };
|
|
256
|
+
}
|
|
257
|
+
byTaskType[event.task_type].count++;
|
|
258
|
+
byTaskType[event.task_type].cost += event.cost_usd;
|
|
259
|
+
}
|
|
260
|
+
return {
|
|
261
|
+
totalEvents: events.length,
|
|
262
|
+
totalCost: Math.round(totalCost * 100) / 100,
|
|
263
|
+
byModel,
|
|
264
|
+
byTaskType,
|
|
265
|
+
successRate: events.length > 0 ? successCount / events.length : 0,
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Clear all local telemetry data
|
|
270
|
+
*/
|
|
271
|
+
function clearTelemetry() {
|
|
272
|
+
try {
|
|
273
|
+
if (fs.existsSync(TELEMETRY_FILE)) {
|
|
274
|
+
fs.unlinkSync(TELEMETRY_FILE);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
catch (err) {
|
|
278
|
+
// Silently fail
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get telemetry file path
|
|
283
|
+
*/
|
|
284
|
+
function getTelemetryPath() {
|
|
285
|
+
return TELEMETRY_FILE;
|
|
286
|
+
}
|
|
287
|
+
// ============================================
|
|
288
|
+
// CLOUD TELEMETRY UPLOAD
|
|
289
|
+
// ============================================
|
|
290
|
+
const BRAIN_API_URL = process.env.RELAYPLANE_API_URL || 'https://api.relayplane.com';
|
|
291
|
+
const UPLOAD_BATCH_SIZE = 50;
|
|
292
|
+
const UPLOAD_INTERVAL_MS = 60000; // 1 minute
|
|
293
|
+
let uploadQueue = [];
|
|
294
|
+
let uploadTimer = null;
|
|
295
|
+
/**
|
|
296
|
+
* Queue an event for cloud upload
|
|
297
|
+
*/
|
|
298
|
+
function queueForUpload(event) {
|
|
299
|
+
if (offlineMode)
|
|
300
|
+
return;
|
|
301
|
+
uploadQueue.push(event);
|
|
302
|
+
// Flush if batch is full
|
|
303
|
+
if (uploadQueue.length >= UPLOAD_BATCH_SIZE) {
|
|
304
|
+
flushTelemetryToCloud().catch(err => {
|
|
305
|
+
console.error('[Telemetry] Failed to flush batch:', err);
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
// Start periodic flush timer if not running
|
|
309
|
+
if (!uploadTimer) {
|
|
310
|
+
uploadTimer = setInterval(() => {
|
|
311
|
+
flushTelemetryToCloud().catch(err => {
|
|
312
|
+
console.error('[Telemetry] Periodic flush failed:', err);
|
|
313
|
+
});
|
|
314
|
+
}, UPLOAD_INTERVAL_MS);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Flush queued telemetry to cloud
|
|
319
|
+
*/
|
|
320
|
+
async function flushTelemetryToCloud() {
|
|
321
|
+
if (offlineMode || uploadQueue.length === 0)
|
|
322
|
+
return;
|
|
323
|
+
const apiKey = getApiKey();
|
|
324
|
+
if (!apiKey) {
|
|
325
|
+
// No API key, can't upload
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
const batch = uploadQueue.splice(0, UPLOAD_BATCH_SIZE);
|
|
329
|
+
try {
|
|
330
|
+
const response = await fetch(`${BRAIN_API_URL}/v1/telemetry`, {
|
|
331
|
+
method: 'POST',
|
|
332
|
+
headers: {
|
|
333
|
+
'Content-Type': 'application/json',
|
|
334
|
+
'Authorization': `Bearer ${apiKey}`,
|
|
335
|
+
},
|
|
336
|
+
body: JSON.stringify({
|
|
337
|
+
schemaVersion: '1.0',
|
|
338
|
+
events: batch,
|
|
339
|
+
}),
|
|
340
|
+
});
|
|
341
|
+
if (!response.ok) {
|
|
342
|
+
// Re-queue failed events
|
|
343
|
+
uploadQueue.unshift(...batch);
|
|
344
|
+
throw new Error(`Upload failed: ${response.status} ${response.statusText}`);
|
|
345
|
+
}
|
|
346
|
+
const result = await response.json();
|
|
347
|
+
if (result.success) {
|
|
348
|
+
// Successfully uploaded
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
// Partial failure - log but continue
|
|
352
|
+
console.warn('[Telemetry] Partial upload failure:', result.errors);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
catch (err) {
|
|
356
|
+
// Network error - re-queue events
|
|
357
|
+
uploadQueue.unshift(...batch);
|
|
358
|
+
throw err;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Get configured API key
|
|
363
|
+
*/
|
|
364
|
+
function getApiKey() {
|
|
365
|
+
try {
|
|
366
|
+
const configPath = path.join((0, config_js_1.getConfigDir)(), 'config.json');
|
|
367
|
+
if (fs.existsSync(configPath)) {
|
|
368
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
369
|
+
return config.apiKey || null;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
catch (err) {
|
|
373
|
+
// Ignore config read errors
|
|
374
|
+
}
|
|
375
|
+
return process.env.RELAYPLANE_API_KEY || null;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Stop upload timer (for cleanup)
|
|
379
|
+
*/
|
|
380
|
+
function stopUploadTimer() {
|
|
381
|
+
if (uploadTimer) {
|
|
382
|
+
clearInterval(uploadTimer);
|
|
383
|
+
uploadTimer = null;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Get number of events pending upload
|
|
388
|
+
*/
|
|
389
|
+
function getPendingUploadCount() {
|
|
390
|
+
return uploadQueue.length;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Print telemetry disclosure message
|
|
394
|
+
*/
|
|
395
|
+
function printTelemetryDisclosure() {
|
|
396
|
+
console.log(`
|
|
397
|
+
╭─────────────────────────────────────────────────────────────────────╮
|
|
398
|
+
│ 📊 TELEMETRY DISCLOSURE │
|
|
399
|
+
╰─────────────────────────────────────────────────────────────────────╯
|
|
400
|
+
|
|
401
|
+
RelayPlane collects anonymous telemetry to improve model routing.
|
|
402
|
+
|
|
403
|
+
What we collect:
|
|
404
|
+
• Anonymous device ID (random, not fingerprintable)
|
|
405
|
+
• Task type (inferred from token patterns, NOT your prompts)
|
|
406
|
+
• Model used, token counts, latency, success/failure
|
|
407
|
+
• Estimated cost
|
|
408
|
+
|
|
409
|
+
What we NEVER collect:
|
|
410
|
+
• Your prompts or model responses
|
|
411
|
+
• File paths or contents
|
|
412
|
+
• Anything that could identify you or your project
|
|
413
|
+
|
|
414
|
+
How to verify:
|
|
415
|
+
• Run with --audit to see exact payloads before they're sent
|
|
416
|
+
• Run with --offline to disable all telemetry transmission
|
|
417
|
+
• Full source code: https://github.com/RelayPlane/proxy
|
|
418
|
+
|
|
419
|
+
To opt out completely:
|
|
420
|
+
$ relayplane-proxy telemetry off
|
|
421
|
+
|
|
422
|
+
Learn more: https://relayplane.com/privacy
|
|
423
|
+
|
|
424
|
+
`);
|
|
425
|
+
}
|
|
426
|
+
//# sourceMappingURL=telemetry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.js","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B;IACtC,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Bb,CAAC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,76 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relayplane/proxy",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "RelayPlane
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "RelayPlane proxy server - intelligent AI model routing with observability",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
8
7
|
"bin": {
|
|
9
|
-
"relayplane-proxy": "
|
|
10
|
-
},
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.mjs",
|
|
15
|
-
"require": "./dist/index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "tsup",
|
|
20
|
-
"dev": "tsup --watch",
|
|
21
|
-
"start": "node dist/cli.js",
|
|
22
|
-
"test": "vitest run",
|
|
23
|
-
"test:watch": "vitest",
|
|
24
|
-
"lint": "eslint src --ext .ts",
|
|
25
|
-
"type-check": "tsc --noEmit",
|
|
26
|
-
"clean": "rm -rf dist"
|
|
8
|
+
"relayplane-proxy": "dist/cli.js"
|
|
27
9
|
},
|
|
28
10
|
"keywords": [
|
|
29
11
|
"relayplane",
|
|
30
|
-
"proxy",
|
|
31
12
|
"ai",
|
|
32
13
|
"llm",
|
|
14
|
+
"proxy",
|
|
33
15
|
"routing",
|
|
34
|
-
"cost-optimization",
|
|
35
16
|
"anthropic",
|
|
36
17
|
"openai",
|
|
37
18
|
"gemini",
|
|
38
|
-
"grok",
|
|
39
|
-
"moonshot",
|
|
40
|
-
"local-first",
|
|
41
19
|
"openclaw",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
20
|
+
"observability",
|
|
21
|
+
"agent-ops"
|
|
44
22
|
],
|
|
45
23
|
"author": "RelayPlane",
|
|
46
24
|
"license": "MIT",
|
|
47
|
-
"homepage": "https://relayplane.com/integrations/openclaw",
|
|
48
|
-
"repository": {
|
|
49
|
-
"type": "git",
|
|
50
|
-
"url": "https://github.com/RelayPlane/proxy.git"
|
|
51
|
-
},
|
|
52
|
-
"bugs": "https://github.com/RelayPlane/proxy/issues",
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public",
|
|
55
|
-
"registry": "https://registry.npmjs.org/"
|
|
56
|
-
},
|
|
57
|
-
"files": [
|
|
58
|
-
"dist",
|
|
59
|
-
"README.md",
|
|
60
|
-
"LICENSE"
|
|
61
|
-
],
|
|
62
25
|
"dependencies": {
|
|
63
|
-
"
|
|
64
|
-
|
|
26
|
+
"@relayplane/core": "^0.1.1"
|
|
27
|
+
},
|
|
28
|
+
"optionalDependencies": {
|
|
29
|
+
"@relayplane/ledger": "^0.1.0",
|
|
30
|
+
"@relayplane/auth-gate": "^0.1.0",
|
|
31
|
+
"@relayplane/policy-engine": "^0.1.0",
|
|
32
|
+
"@relayplane/routing-engine": "^0.1.0",
|
|
33
|
+
"@relayplane/explainability": "^0.1.0"
|
|
65
34
|
},
|
|
66
35
|
"devDependencies": {
|
|
67
|
-
"@types/better-sqlite3": "^7.6.8",
|
|
68
|
-
"@types/node": "^20.10.0",
|
|
69
|
-
"tsup": "^8.5.1",
|
|
70
36
|
"typescript": "^5.3.3",
|
|
71
37
|
"vitest": "^1.1.0"
|
|
72
38
|
},
|
|
73
39
|
"engines": {
|
|
74
40
|
"node": ">=18"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist",
|
|
47
|
+
"README.md"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc",
|
|
51
|
+
"dev": "tsc --watch",
|
|
52
|
+
"start": "node dist/cli.js",
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"test:watch": "vitest"
|
|
75
55
|
}
|
|
76
|
-
}
|
|
56
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 RelayPlane
|
|
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/dist/cli.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|