@blockrun/clawrouter 0.8.31 → 0.9.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 +14 -12
- package/dist/cli.js +834 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +835 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -508,6 +508,24 @@ type ProxyOptions = {
|
|
|
508
508
|
* across requests within a session to prevent mid-task model switching.
|
|
509
509
|
*/
|
|
510
510
|
sessionConfig?: Partial<SessionConfig>;
|
|
511
|
+
/**
|
|
512
|
+
* Auto-compress large requests to fit within API limits.
|
|
513
|
+
* When enabled, requests approaching 200KB are automatically compressed using
|
|
514
|
+
* LLM-safe context compression (15-40% reduction).
|
|
515
|
+
* Default: true
|
|
516
|
+
*/
|
|
517
|
+
autoCompressRequests?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* Threshold in KB to trigger auto-compression (default: 180).
|
|
520
|
+
* Requests larger than this are compressed before sending.
|
|
521
|
+
* Set to 0 to compress all requests.
|
|
522
|
+
*/
|
|
523
|
+
compressionThresholdKB?: number;
|
|
524
|
+
/**
|
|
525
|
+
* Maximum request size in KB after compression (default: 200).
|
|
526
|
+
* Hard limit enforced by BlockRun API.
|
|
527
|
+
*/
|
|
528
|
+
maxRequestSizeKB?: number;
|
|
511
529
|
onReady?: (port: number) => void;
|
|
512
530
|
onError?: (error: Error) => void;
|
|
513
531
|
onPayment?: (info: {
|