entroly-wasm 1.0.72 → 1.0.75
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/js/cli.js +1 -1
- package/package.json +1 -1
- package/pkg/entroly_wasm.d.ts +0 -11
- package/pkg/entroly_wasm.js +0 -5
- package/pkg/entroly_wasm_bg.wasm +0 -0
package/js/cli.js
CHANGED
|
@@ -225,7 +225,7 @@ function cmdDemo() {
|
|
|
225
225
|
const result = engine.optimize(80, 'fix the authentication bug');
|
|
226
226
|
const optimized = result.total_tokens || 0;
|
|
227
227
|
|
|
228
|
-
console.log(` ${C.GREEN}With Entroly:${C.RESET} ${optimized} tokens →
|
|
228
|
+
console.log(` ${C.GREEN}With Entroly:${C.RESET} ${optimized} tokens → budget-optimized subset`);
|
|
229
229
|
console.log(` ${C.GRAY} Cost: $${(optimized * 0.000015).toFixed(6)}/call${C.RESET}`);
|
|
230
230
|
console.log(` ${C.GREEN} Saved: ${totalTokens - optimized} tokens (${Math.round((1 - optimized / totalTokens) * 100)}% reduction)${C.RESET}`);
|
|
231
231
|
console.log();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "entroly-wasm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
4
4
|
"description": "WebAssembly Context Assurance for AI agents: reduce avoidable token usage with local evidence selection, receipts, exact recovery, and verification.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
package/pkg/entroly_wasm.d.ts
CHANGED
|
@@ -207,21 +207,10 @@ export function classify_query_transition(prev_hash: bigint, current_query: stri
|
|
|
207
207
|
|
|
208
208
|
export function optimize_task_profiles(episodes_json: string): any;
|
|
209
209
|
|
|
210
|
-
/**
|
|
211
|
-
* Expand a query into its retrieval vocabulary; returns a sorted JSON array.
|
|
212
|
-
*/
|
|
213
210
|
export function qccr_expand_query(query: string): string;
|
|
214
211
|
|
|
215
|
-
/**
|
|
216
|
-
* Rank files; returns a JSON array of `[index, score]` pairs, best-first.
|
|
217
|
-
*/
|
|
218
212
|
export function qccr_rank_files(sources: string[], texts: string[], query: string, overrides_json: string): string;
|
|
219
213
|
|
|
220
|
-
/**
|
|
221
|
-
* Full QCCR selection (rank + sentence-MMR + emit + trim). `fragments_json`
|
|
222
|
-
* is a JSON array of `{source, content}`; `preferred_json` is the optional
|
|
223
|
-
* file order (or "[]"); returns a JSON array of selected fragments.
|
|
224
|
-
*/
|
|
225
214
|
export function qccr_select(fragments_json: string, token_budget: number, query: string, overrides_json: string, preferred_json: string): string;
|
|
226
215
|
|
|
227
216
|
export function reward_weighted_optimize(episodes_json: string, current_weights_json: string): any;
|
package/pkg/entroly_wasm.js
CHANGED
|
@@ -489,7 +489,6 @@ function optimize_task_profiles(episodes_json) {
|
|
|
489
489
|
exports.optimize_task_profiles = optimize_task_profiles;
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* Expand a query into its retrieval vocabulary; returns a sorted JSON array.
|
|
493
492
|
* @param {string} query
|
|
494
493
|
* @returns {string}
|
|
495
494
|
*/
|
|
@@ -510,7 +509,6 @@ function qccr_expand_query(query) {
|
|
|
510
509
|
exports.qccr_expand_query = qccr_expand_query;
|
|
511
510
|
|
|
512
511
|
/**
|
|
513
|
-
* Rank files; returns a JSON array of `[index, score]` pairs, best-first.
|
|
514
512
|
* @param {string[]} sources
|
|
515
513
|
* @param {string[]} texts
|
|
516
514
|
* @param {string} query
|
|
@@ -540,9 +538,6 @@ function qccr_rank_files(sources, texts, query, overrides_json) {
|
|
|
540
538
|
exports.qccr_rank_files = qccr_rank_files;
|
|
541
539
|
|
|
542
540
|
/**
|
|
543
|
-
* Full QCCR selection (rank + sentence-MMR + emit + trim). `fragments_json`
|
|
544
|
-
* is a JSON array of `{source, content}`; `preferred_json` is the optional
|
|
545
|
-
* file order (or "[]"); returns a JSON array of selected fragments.
|
|
546
541
|
* @param {string} fragments_json
|
|
547
542
|
* @param {number} token_budget
|
|
548
543
|
* @param {string} query
|
package/pkg/entroly_wasm_bg.wasm
CHANGED
|
Binary file
|