@ai-matrx/agents 0.59.168 → 0.59.170
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/CHANGELOG.md +6 -1
- package/dist/content-transfer/index.cjs +2 -1
- package/dist/content-transfer/index.js +2 -1
- package/dist/content-transfer/react/index.cjs +2 -1
- package/dist/content-transfer/react/index.js +2 -1
- package/dist/mandates/index.cjs +5 -4
- package/dist/mandates/index.d.cts +8 -7
- package/dist/mandates/index.d.ts +8 -7
- package/dist/mandates/index.js +5 -4
- package/dist/models/index.cjs +7 -7
- package/dist/models/index.js +7 -7
- package/dist/models/react/index.cjs +2 -2
- package/dist/models/react/index.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
- **`toolPriceText` returns null for a zero-cost tool instead of "Free" (2026-10-18, law 14: no "Free").** Positive hints still read "N pts". Consumer action: none (callers already handle null).
|
|
6
6
|
|
|
7
|
-
## 0.59.
|
|
7
|
+
## 0.59.170
|
|
8
8
|
|
|
9
9
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
10
10
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/matrx-agents/src`.
|
|
11
11
|
|
|
12
|
+
## 0.59.168
|
|
13
|
+
|
|
14
|
+
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 5535e3bb42 cae8c2b935 -- apps/shared/matrx-agents/src`
|
|
15
|
+
has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
|
|
16
|
+
|
|
12
17
|
## 0.59.167
|
|
13
18
|
|
|
14
19
|
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff b25bc946cc 5535e3bb42 -- apps/shared/matrx-agents/src`
|
|
@@ -651,6 +651,7 @@ var MANDATE_KEYS = {
|
|
|
651
651
|
table__column_fill_image: "table.column_fill_image",
|
|
652
652
|
tasks__triage: "tasks.triage",
|
|
653
653
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
654
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
654
655
|
tools__summarize_content: "tools.summarize_content",
|
|
655
656
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
656
657
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -702,7 +703,7 @@ var MANDATE_KEYS = {
|
|
|
702
703
|
*/
|
|
703
704
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
704
705
|
/**
|
|
705
|
-
* @deprecated retiring since 0.59.
|
|
706
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
706
707
|
* aidream. It leaves this union once no snapshot within the last
|
|
707
708
|
* 3 published versions still carries it as active.
|
|
708
709
|
*/
|
|
@@ -628,6 +628,7 @@ var MANDATE_KEYS = {
|
|
|
628
628
|
table__column_fill_image: "table.column_fill_image",
|
|
629
629
|
tasks__triage: "tasks.triage",
|
|
630
630
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
631
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
631
632
|
tools__summarize_content: "tools.summarize_content",
|
|
632
633
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
633
634
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -679,7 +680,7 @@ var MANDATE_KEYS = {
|
|
|
679
680
|
*/
|
|
680
681
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
681
682
|
/**
|
|
682
|
-
* @deprecated retiring since 0.59.
|
|
683
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
683
684
|
* aidream. It leaves this union once no snapshot within the last
|
|
684
685
|
* 3 published versions still carries it as active.
|
|
685
686
|
*/
|
|
@@ -604,6 +604,7 @@ var MANDATE_KEYS = {
|
|
|
604
604
|
table__column_fill_image: "table.column_fill_image",
|
|
605
605
|
tasks__triage: "tasks.triage",
|
|
606
606
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
607
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
607
608
|
tools__summarize_content: "tools.summarize_content",
|
|
608
609
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
609
610
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -655,7 +656,7 @@ var MANDATE_KEYS = {
|
|
|
655
656
|
*/
|
|
656
657
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
657
658
|
/**
|
|
658
|
-
* @deprecated retiring since 0.59.
|
|
659
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
659
660
|
* aidream. It leaves this union once no snapshot within the last
|
|
660
661
|
* 3 published versions still carries it as active.
|
|
661
662
|
*/
|
|
@@ -576,6 +576,7 @@ var MANDATE_KEYS = {
|
|
|
576
576
|
table__column_fill_image: "table.column_fill_image",
|
|
577
577
|
tasks__triage: "tasks.triage",
|
|
578
578
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
579
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
579
580
|
tools__summarize_content: "tools.summarize_content",
|
|
580
581
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
581
582
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -627,7 +628,7 @@ var MANDATE_KEYS = {
|
|
|
627
628
|
*/
|
|
628
629
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
629
630
|
/**
|
|
630
|
-
* @deprecated retiring since 0.59.
|
|
631
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
631
632
|
* aidream. It leaves this union once no snapshot within the last
|
|
632
633
|
* 3 published versions still carries it as active.
|
|
633
634
|
*/
|
package/dist/mandates/index.cjs
CHANGED
|
@@ -47,9 +47,9 @@ module.exports = __toCommonJS(mandates_exports);
|
|
|
47
47
|
|
|
48
48
|
// mandates/keys.generated.ts
|
|
49
49
|
var MANDATE_KEYS_META = {
|
|
50
|
-
aidreamRevision: "
|
|
50
|
+
aidreamRevision: "9c0ddc1922e20d3ed7a453bab664f9a79f4078bb",
|
|
51
51
|
generatorVersion: "1.0.0",
|
|
52
|
-
packageVersion: "0.59.
|
|
52
|
+
packageVersion: "0.59.170",
|
|
53
53
|
retireWindow: 3
|
|
54
54
|
};
|
|
55
55
|
var MANDATE_KEYS = {
|
|
@@ -614,6 +614,7 @@ var MANDATE_KEYS = {
|
|
|
614
614
|
table__column_fill_image: "table.column_fill_image",
|
|
615
615
|
tasks__triage: "tasks.triage",
|
|
616
616
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
617
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
617
618
|
tools__summarize_content: "tools.summarize_content",
|
|
618
619
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
619
620
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -665,7 +666,7 @@ var MANDATE_KEYS = {
|
|
|
665
666
|
*/
|
|
666
667
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
667
668
|
/**
|
|
668
|
-
* @deprecated retiring since 0.59.
|
|
669
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
669
670
|
* aidream. It leaves this union once no snapshot within the last
|
|
670
671
|
* 3 published versions still carries it as active.
|
|
671
672
|
*/
|
|
@@ -692,7 +693,7 @@ var MANDATE_KEYS = {
|
|
|
692
693
|
var ALL_MANDATE_KEYS = Object.values(MANDATE_KEYS);
|
|
693
694
|
var RETIRING_MANDATE_KEYS = {
|
|
694
695
|
"brand_discovery.offering_roles": "0.59.0",
|
|
695
|
-
"coding_session.managed_translation_reference": "0.59.
|
|
696
|
+
"coding_session.managed_translation_reference": "0.59.170",
|
|
696
697
|
"pdf.content_cleaner": "0.59.0",
|
|
697
698
|
"sms.owner_beta": "0.59.0",
|
|
698
699
|
"voice.owner_beta": "0.59.0"
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* from the IN-PROCESS mandate declarations — the same `declared_mandates()` the
|
|
7
7
|
* boot sync writes to the database from. There is no hand list anywhere.
|
|
8
8
|
*
|
|
9
|
-
* aidream revision:
|
|
9
|
+
* aidream revision: 9c0ddc1922e20d3ed7a453bab664f9a79f4078bb
|
|
10
10
|
* generator version: 1.0.0
|
|
11
|
-
* package version: 0.59.
|
|
12
|
-
* active keys:
|
|
11
|
+
* package version: 0.59.170
|
|
12
|
+
* active keys: 606
|
|
13
13
|
* retiring keys: 5
|
|
14
14
|
*
|
|
15
15
|
* THE IDENTIFIER RULE: every `.` in a key becomes `__`, any character outside
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*/
|
|
20
20
|
/** Where this module came from — surfaced so a report can name the exact build. */
|
|
21
21
|
declare const MANDATE_KEYS_META: {
|
|
22
|
-
readonly aidreamRevision: "
|
|
22
|
+
readonly aidreamRevision: "9c0ddc1922e20d3ed7a453bab664f9a79f4078bb";
|
|
23
23
|
readonly generatorVersion: "1.0.0";
|
|
24
|
-
readonly packageVersion: "0.59.
|
|
24
|
+
readonly packageVersion: "0.59.170";
|
|
25
25
|
readonly retireWindow: 3;
|
|
26
26
|
};
|
|
27
27
|
/** Every declared mandate key, by THE IDENTIFIER RULE. */
|
|
@@ -587,6 +587,7 @@ declare const MANDATE_KEYS: {
|
|
|
587
587
|
readonly table__column_fill_image: "table.column_fill_image";
|
|
588
588
|
readonly tasks__triage: "tasks.triage";
|
|
589
589
|
readonly tool_viz__component_generator: "tool_viz.component_generator";
|
|
590
|
+
readonly tools__describe_to_form: "tools.describe_to_form";
|
|
590
591
|
readonly tools__summarize_content: "tools.summarize_content";
|
|
591
592
|
readonly transcript_studio__document_edit: "transcript_studio.document_edit";
|
|
592
593
|
readonly transcript_studio__scribe_live: "transcript_studio.scribe_live";
|
|
@@ -638,7 +639,7 @@ declare const MANDATE_KEYS: {
|
|
|
638
639
|
*/
|
|
639
640
|
readonly brand_discovery__offering_roles: "brand_discovery.offering_roles";
|
|
640
641
|
/**
|
|
641
|
-
* @deprecated retiring since 0.59.
|
|
642
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
642
643
|
* aidream. It leaves this union once no snapshot within the last
|
|
643
644
|
* 3 published versions still carries it as active.
|
|
644
645
|
*/
|
|
@@ -669,7 +670,7 @@ declare const ALL_MANDATE_KEYS: readonly MandateKey[];
|
|
|
669
670
|
/** Keys still in the union but no longer declared (two-phase retire, phase 1). */
|
|
670
671
|
declare const RETIRING_MANDATE_KEYS: {
|
|
671
672
|
readonly "brand_discovery.offering_roles": "0.59.0";
|
|
672
|
-
readonly "coding_session.managed_translation_reference": "0.59.
|
|
673
|
+
readonly "coding_session.managed_translation_reference": "0.59.170";
|
|
673
674
|
readonly "pdf.content_cleaner": "0.59.0";
|
|
674
675
|
readonly "sms.owner_beta": "0.59.0";
|
|
675
676
|
readonly "voice.owner_beta": "0.59.0";
|
package/dist/mandates/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* from the IN-PROCESS mandate declarations — the same `declared_mandates()` the
|
|
7
7
|
* boot sync writes to the database from. There is no hand list anywhere.
|
|
8
8
|
*
|
|
9
|
-
* aidream revision:
|
|
9
|
+
* aidream revision: 9c0ddc1922e20d3ed7a453bab664f9a79f4078bb
|
|
10
10
|
* generator version: 1.0.0
|
|
11
|
-
* package version: 0.59.
|
|
12
|
-
* active keys:
|
|
11
|
+
* package version: 0.59.170
|
|
12
|
+
* active keys: 606
|
|
13
13
|
* retiring keys: 5
|
|
14
14
|
*
|
|
15
15
|
* THE IDENTIFIER RULE: every `.` in a key becomes `__`, any character outside
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*/
|
|
20
20
|
/** Where this module came from — surfaced so a report can name the exact build. */
|
|
21
21
|
declare const MANDATE_KEYS_META: {
|
|
22
|
-
readonly aidreamRevision: "
|
|
22
|
+
readonly aidreamRevision: "9c0ddc1922e20d3ed7a453bab664f9a79f4078bb";
|
|
23
23
|
readonly generatorVersion: "1.0.0";
|
|
24
|
-
readonly packageVersion: "0.59.
|
|
24
|
+
readonly packageVersion: "0.59.170";
|
|
25
25
|
readonly retireWindow: 3;
|
|
26
26
|
};
|
|
27
27
|
/** Every declared mandate key, by THE IDENTIFIER RULE. */
|
|
@@ -587,6 +587,7 @@ declare const MANDATE_KEYS: {
|
|
|
587
587
|
readonly table__column_fill_image: "table.column_fill_image";
|
|
588
588
|
readonly tasks__triage: "tasks.triage";
|
|
589
589
|
readonly tool_viz__component_generator: "tool_viz.component_generator";
|
|
590
|
+
readonly tools__describe_to_form: "tools.describe_to_form";
|
|
590
591
|
readonly tools__summarize_content: "tools.summarize_content";
|
|
591
592
|
readonly transcript_studio__document_edit: "transcript_studio.document_edit";
|
|
592
593
|
readonly transcript_studio__scribe_live: "transcript_studio.scribe_live";
|
|
@@ -638,7 +639,7 @@ declare const MANDATE_KEYS: {
|
|
|
638
639
|
*/
|
|
639
640
|
readonly brand_discovery__offering_roles: "brand_discovery.offering_roles";
|
|
640
641
|
/**
|
|
641
|
-
* @deprecated retiring since 0.59.
|
|
642
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
642
643
|
* aidream. It leaves this union once no snapshot within the last
|
|
643
644
|
* 3 published versions still carries it as active.
|
|
644
645
|
*/
|
|
@@ -669,7 +670,7 @@ declare const ALL_MANDATE_KEYS: readonly MandateKey[];
|
|
|
669
670
|
/** Keys still in the union but no longer declared (two-phase retire, phase 1). */
|
|
670
671
|
declare const RETIRING_MANDATE_KEYS: {
|
|
671
672
|
readonly "brand_discovery.offering_roles": "0.59.0";
|
|
672
|
-
readonly "coding_session.managed_translation_reference": "0.59.
|
|
673
|
+
readonly "coding_session.managed_translation_reference": "0.59.170";
|
|
673
674
|
readonly "pdf.content_cleaner": "0.59.0";
|
|
674
675
|
readonly "sms.owner_beta": "0.59.0";
|
|
675
676
|
readonly "voice.owner_beta": "0.59.0";
|
package/dist/mandates/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// mandates/keys.generated.ts
|
|
2
2
|
var MANDATE_KEYS_META = {
|
|
3
|
-
aidreamRevision: "
|
|
3
|
+
aidreamRevision: "9c0ddc1922e20d3ed7a453bab664f9a79f4078bb",
|
|
4
4
|
generatorVersion: "1.0.0",
|
|
5
|
-
packageVersion: "0.59.
|
|
5
|
+
packageVersion: "0.59.170",
|
|
6
6
|
retireWindow: 3
|
|
7
7
|
};
|
|
8
8
|
var MANDATE_KEYS = {
|
|
@@ -567,6 +567,7 @@ var MANDATE_KEYS = {
|
|
|
567
567
|
table__column_fill_image: "table.column_fill_image",
|
|
568
568
|
tasks__triage: "tasks.triage",
|
|
569
569
|
tool_viz__component_generator: "tool_viz.component_generator",
|
|
570
|
+
tools__describe_to_form: "tools.describe_to_form",
|
|
570
571
|
tools__summarize_content: "tools.summarize_content",
|
|
571
572
|
transcript_studio__document_edit: "transcript_studio.document_edit",
|
|
572
573
|
transcript_studio__scribe_live: "transcript_studio.scribe_live",
|
|
@@ -618,7 +619,7 @@ var MANDATE_KEYS = {
|
|
|
618
619
|
*/
|
|
619
620
|
brand_discovery__offering_roles: "brand_discovery.offering_roles",
|
|
620
621
|
/**
|
|
621
|
-
* @deprecated retiring since 0.59.
|
|
622
|
+
* @deprecated retiring since 0.59.170 — no longer declared in
|
|
622
623
|
* aidream. It leaves this union once no snapshot within the last
|
|
623
624
|
* 3 published versions still carries it as active.
|
|
624
625
|
*/
|
|
@@ -645,7 +646,7 @@ var MANDATE_KEYS = {
|
|
|
645
646
|
var ALL_MANDATE_KEYS = Object.values(MANDATE_KEYS);
|
|
646
647
|
var RETIRING_MANDATE_KEYS = {
|
|
647
648
|
"brand_discovery.offering_roles": "0.59.0",
|
|
648
|
-
"coding_session.managed_translation_reference": "0.59.
|
|
649
|
+
"coding_session.managed_translation_reference": "0.59.170",
|
|
649
650
|
"pdf.content_cleaner": "0.59.0",
|
|
650
651
|
"sms.owner_beta": "0.59.0",
|
|
651
652
|
"voice.owner_beta": "0.59.0"
|
package/dist/models/index.cjs
CHANGED
|
@@ -1796,7 +1796,7 @@ function memoryLine(v, device, fits) {
|
|
|
1796
1796
|
const share = device.fit_fraction < 1 && fits === false ? ` (models may use ${formatMemoryBytes(device.memory_bytes * device.fit_fraction)} of it)` : "";
|
|
1797
1797
|
return `Needs ${formatMemoryBytes(need)}; this computer has ${formatMemoryBytes(device.memory_bytes)}${share}`;
|
|
1798
1798
|
}
|
|
1799
|
-
function judge(v,
|
|
1799
|
+
function judge(v, device, runtimes, checkFormat) {
|
|
1800
1800
|
const out = (code, reasons, candidate = null) => ({ variant: v, usable: code === null, reasons, code, candidate });
|
|
1801
1801
|
const d = v.discovery;
|
|
1802
1802
|
if (d?.problems.length) return out("incomplete", [...d.problems, memoryLine(v, device, null)]);
|
|
@@ -1845,7 +1845,7 @@ function asCandidate(j) {
|
|
|
1845
1845
|
function judgeAll(model, want, device, runtimes) {
|
|
1846
1846
|
const checkFormat = runtimes.length > 0 || device !== null;
|
|
1847
1847
|
const list = want.variant_policy === "exact" ? model.variants.filter((x) => x.key === want.variant_key) : model.variants;
|
|
1848
|
-
return list.map((v) => judge(v,
|
|
1848
|
+
return list.map((v) => judge(v, device, runtimes, checkFormat));
|
|
1849
1849
|
}
|
|
1850
1850
|
function rankVariants(model, want, device, runtimes) {
|
|
1851
1851
|
const judged = judgeAll(model, want, device, runtimes);
|
|
@@ -2041,15 +2041,15 @@ var MAX_COUNT = 1e6;
|
|
|
2041
2041
|
var MAX_STRING = 64 * 1024 * 1024;
|
|
2042
2042
|
var MAX_DIMS = 8;
|
|
2043
2043
|
var Cursor = class {
|
|
2044
|
+
buf = new Uint8Array(0);
|
|
2045
|
+
base = 0;
|
|
2046
|
+
read;
|
|
2047
|
+
size;
|
|
2048
|
+
pos = 0;
|
|
2044
2049
|
constructor(read, size) {
|
|
2045
2050
|
this.read = read;
|
|
2046
2051
|
this.size = size;
|
|
2047
2052
|
}
|
|
2048
|
-
read;
|
|
2049
|
-
size;
|
|
2050
|
-
buf = new Uint8Array(0);
|
|
2051
|
-
base = 0;
|
|
2052
|
-
pos = 0;
|
|
2053
2053
|
async need(n) {
|
|
2054
2054
|
if (this.pos + n > this.size) throw new GgufError("the file ends inside its header");
|
|
2055
2055
|
if (this.pos + n > MAX_HEADER) throw new GgufError("its header is larger than any real model's");
|
package/dist/models/index.js
CHANGED
|
@@ -1657,7 +1657,7 @@ function memoryLine(v, device, fits) {
|
|
|
1657
1657
|
const share = device.fit_fraction < 1 && fits === false ? ` (models may use ${formatMemoryBytes(device.memory_bytes * device.fit_fraction)} of it)` : "";
|
|
1658
1658
|
return `Needs ${formatMemoryBytes(need)}; this computer has ${formatMemoryBytes(device.memory_bytes)}${share}`;
|
|
1659
1659
|
}
|
|
1660
|
-
function judge(v,
|
|
1660
|
+
function judge(v, device, runtimes, checkFormat) {
|
|
1661
1661
|
const out = (code, reasons, candidate = null) => ({ variant: v, usable: code === null, reasons, code, candidate });
|
|
1662
1662
|
const d = v.discovery;
|
|
1663
1663
|
if (d?.problems.length) return out("incomplete", [...d.problems, memoryLine(v, device, null)]);
|
|
@@ -1706,7 +1706,7 @@ function asCandidate(j) {
|
|
|
1706
1706
|
function judgeAll(model, want, device, runtimes) {
|
|
1707
1707
|
const checkFormat = runtimes.length > 0 || device !== null;
|
|
1708
1708
|
const list = want.variant_policy === "exact" ? model.variants.filter((x) => x.key === want.variant_key) : model.variants;
|
|
1709
|
-
return list.map((v) => judge(v,
|
|
1709
|
+
return list.map((v) => judge(v, device, runtimes, checkFormat));
|
|
1710
1710
|
}
|
|
1711
1711
|
function rankVariants(model, want, device, runtimes) {
|
|
1712
1712
|
const judged = judgeAll(model, want, device, runtimes);
|
|
@@ -1902,15 +1902,15 @@ var MAX_COUNT = 1e6;
|
|
|
1902
1902
|
var MAX_STRING = 64 * 1024 * 1024;
|
|
1903
1903
|
var MAX_DIMS = 8;
|
|
1904
1904
|
var Cursor = class {
|
|
1905
|
+
buf = new Uint8Array(0);
|
|
1906
|
+
base = 0;
|
|
1907
|
+
read;
|
|
1908
|
+
size;
|
|
1909
|
+
pos = 0;
|
|
1905
1910
|
constructor(read, size) {
|
|
1906
1911
|
this.read = read;
|
|
1907
1912
|
this.size = size;
|
|
1908
1913
|
}
|
|
1909
|
-
read;
|
|
1910
|
-
size;
|
|
1911
|
-
buf = new Uint8Array(0);
|
|
1912
|
-
base = 0;
|
|
1913
|
-
pos = 0;
|
|
1914
1914
|
async need(n) {
|
|
1915
1915
|
if (this.pos + n > this.size) throw new GgufError("the file ends inside its header");
|
|
1916
1916
|
if (this.pos + n > MAX_HEADER) throw new GgufError("its header is larger than any real model's");
|
|
@@ -2308,7 +2308,7 @@ function memoryLine(v, device, fits) {
|
|
|
2308
2308
|
const share = device.fit_fraction < 1 && fits === false ? ` (models may use ${formatMemoryBytes(device.memory_bytes * device.fit_fraction)} of it)` : "";
|
|
2309
2309
|
return `Needs ${formatMemoryBytes(need)}; this computer has ${formatMemoryBytes(device.memory_bytes)}${share}`;
|
|
2310
2310
|
}
|
|
2311
|
-
function judge(v,
|
|
2311
|
+
function judge(v, device, runtimes, checkFormat) {
|
|
2312
2312
|
const out = (code, reasons, candidate = null) => ({ variant: v, usable: code === null, reasons, code, candidate });
|
|
2313
2313
|
const d = v.discovery;
|
|
2314
2314
|
if (d?.problems.length) return out("incomplete", [...d.problems, memoryLine(v, device, null)]);
|
|
@@ -2357,7 +2357,7 @@ function asCandidate(j) {
|
|
|
2357
2357
|
function judgeAll(model, want, device, runtimes) {
|
|
2358
2358
|
const checkFormat = runtimes.length > 0 || device !== null;
|
|
2359
2359
|
const list = want.variant_policy === "exact" ? model.variants.filter((x) => x.key === want.variant_key) : model.variants;
|
|
2360
|
-
return list.map((v) => judge(v,
|
|
2360
|
+
return list.map((v) => judge(v, device, runtimes, checkFormat));
|
|
2361
2361
|
}
|
|
2362
2362
|
function rankVariants(model, want, device, runtimes) {
|
|
2363
2363
|
const judged = judgeAll(model, want, device, runtimes);
|
|
@@ -2290,7 +2290,7 @@ function memoryLine(v, device, fits) {
|
|
|
2290
2290
|
const share = device.fit_fraction < 1 && fits === false ? ` (models may use ${formatMemoryBytes(device.memory_bytes * device.fit_fraction)} of it)` : "";
|
|
2291
2291
|
return `Needs ${formatMemoryBytes(need)}; this computer has ${formatMemoryBytes(device.memory_bytes)}${share}`;
|
|
2292
2292
|
}
|
|
2293
|
-
function judge(v,
|
|
2293
|
+
function judge(v, device, runtimes, checkFormat) {
|
|
2294
2294
|
const out = (code, reasons, candidate = null) => ({ variant: v, usable: code === null, reasons, code, candidate });
|
|
2295
2295
|
const d = v.discovery;
|
|
2296
2296
|
if (d?.problems.length) return out("incomplete", [...d.problems, memoryLine(v, device, null)]);
|
|
@@ -2339,7 +2339,7 @@ function asCandidate(j) {
|
|
|
2339
2339
|
function judgeAll(model, want, device, runtimes) {
|
|
2340
2340
|
const checkFormat = runtimes.length > 0 || device !== null;
|
|
2341
2341
|
const list = want.variant_policy === "exact" ? model.variants.filter((x) => x.key === want.variant_key) : model.variants;
|
|
2342
|
-
return list.map((v) => judge(v,
|
|
2342
|
+
return list.map((v) => judge(v, device, runtimes, checkFormat));
|
|
2343
2343
|
}
|
|
2344
2344
|
function rankVariants(model, want, device, runtimes) {
|
|
2345
2345
|
const judged = judgeAll(model, want, device, runtimes);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/agents",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.170",
|
|
4
4
|
"description": "Portable AI Matrx agent stream protocol, event projection, and safe result-presentation primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -540,5 +540,5 @@
|
|
|
540
540
|
"verify:tarball": "node ./scripts/verify-tarball.mjs",
|
|
541
541
|
"typegen:self-test": "node scripts/typegen/drop-guard.self-test.mjs && node scripts/typegen/check-api-types-fresh.mjs --self-test"
|
|
542
542
|
},
|
|
543
|
-
"gitHead": "
|
|
543
|
+
"gitHead": "9c0ddc1922e20d3ed7a453bab664f9a79f4078bb"
|
|
544
544
|
}
|