@ai-matrx/agents 0.59.142 → 0.59.144

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 CHANGED
@@ -1,10 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ## 0.59.142
3
+ ## 0.59.144
4
4
 
5
5
  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.
6
6
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/matrx-agents/src`.
7
7
 
8
+ ## 0.59.142
9
+
10
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff ec7de99183 fc9a7aa43e -- apps/shared/matrx-agents/src`
11
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
12
+
13
+ ## 0.59.141
14
+
15
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 115d07b8f3 ec7de99183 -- apps/shared/matrx-agents/src`
16
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
17
+
8
18
  ## 0.59.138
9
19
 
10
20
  Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff eab7a68c6e 83e05302e5 -- apps/shared/matrx-agents/src`
@@ -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: "fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7",
50
+ aidreamRevision: "95a286343b1aae1f7f02cb1d0df48d9b58c8537c",
51
51
  generatorVersion: "1.0.0",
52
- packageVersion: "0.59.142",
52
+ packageVersion: "0.59.144",
53
53
  retireWindow: 3
54
54
  };
55
55
  var MANDATE_KEYS = {
@@ -6,9 +6,9 @@
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: fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7
9
+ * aidream revision: 95a286343b1aae1f7f02cb1d0df48d9b58c8537c
10
10
  * generator version: 1.0.0
11
- * package version: 0.59.142
11
+ * package version: 0.59.144
12
12
  * active keys: 598
13
13
  * retiring keys: 3
14
14
  *
@@ -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: "fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7";
22
+ readonly aidreamRevision: "95a286343b1aae1f7f02cb1d0df48d9b58c8537c";
23
23
  readonly generatorVersion: "1.0.0";
24
- readonly packageVersion: "0.59.142";
24
+ readonly packageVersion: "0.59.144";
25
25
  readonly retireWindow: 3;
26
26
  };
27
27
  /** Every declared mandate key, by THE IDENTIFIER RULE. */
@@ -6,9 +6,9 @@
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: fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7
9
+ * aidream revision: 95a286343b1aae1f7f02cb1d0df48d9b58c8537c
10
10
  * generator version: 1.0.0
11
- * package version: 0.59.142
11
+ * package version: 0.59.144
12
12
  * active keys: 598
13
13
  * retiring keys: 3
14
14
  *
@@ -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: "fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7";
22
+ readonly aidreamRevision: "95a286343b1aae1f7f02cb1d0df48d9b58c8537c";
23
23
  readonly generatorVersion: "1.0.0";
24
- readonly packageVersion: "0.59.142";
24
+ readonly packageVersion: "0.59.144";
25
25
  readonly retireWindow: 3;
26
26
  };
27
27
  /** Every declared mandate key, by THE IDENTIFIER RULE. */
@@ -1,8 +1,8 @@
1
1
  // mandates/keys.generated.ts
2
2
  var MANDATE_KEYS_META = {
3
- aidreamRevision: "fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7",
3
+ aidreamRevision: "95a286343b1aae1f7f02cb1d0df48d9b58c8537c",
4
4
  generatorVersion: "1.0.0",
5
- packageVersion: "0.59.142",
5
+ packageVersion: "0.59.144",
6
6
  retireWindow: 3
7
7
  };
8
8
  var MANDATE_KEYS = {
@@ -44,7 +44,6 @@ __export(models_exports, {
44
44
  catalogForApp: () => catalogForApp,
45
45
  classConfigKey: () => classConfigKey,
46
46
  collapseTiersByClass: () => collapseTiersByClass,
47
- compareVersions: () => compareVersions,
48
47
  costRatingTier: () => costRatingTier,
49
48
  costRatingWord: () => costRatingWord,
50
49
  createModelCatalog: () => createModelCatalog,
@@ -1689,6 +1688,7 @@ function resetSuccessionLogForTests() {
1689
1688
  }
1690
1689
 
1691
1690
  // models/local.ts
1691
+ var import_versions = require("@ai-matrx/kit/versions");
1692
1692
  function isLocalModelCatalog(value) {
1693
1693
  if (!value || typeof value !== "object") return false;
1694
1694
  const v = value;
@@ -1728,19 +1728,10 @@ function fitsThisComputer(memoryBytes, hw, fitFraction, smallBytes = 1024 ** 3)
1728
1728
  if (accelerated) return "yes";
1729
1729
  return need <= smallBytes ? "yes" : "slow";
1730
1730
  }
1731
- function compareVersions(a, b) {
1732
- const pa = a.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
1733
- const pb = b.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
1734
- for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
1735
- const d = (pa[i] ?? 0) - (pb[i] ?? 0);
1736
- if (d) return d;
1737
- }
1738
- return 0;
1739
- }
1740
1731
  function appAllows(minApp, appVersion) {
1741
1732
  if (!minApp) return true;
1742
1733
  if (!appVersion) return false;
1743
- return compareVersions(appVersion, minApp) >= 0;
1734
+ return (0, import_versions.compareVersions)(appVersion, minApp, { tail: "numeric" }) >= 0;
1744
1735
  }
1745
1736
  function requiredArtifacts(variant, uses) {
1746
1737
  return variant.artifacts.filter((a) => a.required_for.includes("core") || a.required_for.some((u) => uses.includes(u)));
@@ -1117,8 +1117,6 @@ interface NoSelection {
1117
1117
  code: "no_variant" | "os_arch" | "app_version" | "runtime_missing" | "not_compatible" | "does_not_fit" | "exact_missing";
1118
1118
  reason: string;
1119
1119
  }
1120
- /** Compare dotted versions numerically; a missing side is treated as 0. */
1121
- declare function compareVersions(a: string, b: string): number;
1122
1120
  /** The files of a variant a device fetches for these uses: every `core` file plus any whose uses overlap. Optional files (empty required_for) never. */
1123
1121
  declare function requiredArtifacts(variant: LocalVariant, uses: readonly ArtifactUse[]): LocalArtifact[];
1124
1122
  /**
@@ -1518,4 +1516,4 @@ declare function curatedList<T extends CuratedModel>(models: readonly T[], { off
1518
1516
  offeredOnly: boolean;
1519
1517
  }): T[];
1520
1518
 
1521
- export { type AdminOffering, type AdminPricingBand, type ArtifactUse, type AuditCapabilitiesRecord, CHAT_DEFAULT_MODEL_KNOB, CONTENT_TYPES, type CapabilitiesParseContext, type CatalogModel, type CatalogTier, type CompatStatus, type ContentType, type CuratedCatalogClient, type CuratedModel, type CuratedPresentation, type CuratedVariant, DEFAULT_CAPABILITIES, type DecidedBy, type DeviceGraphics, type DeviceHardware, type DiscoveryAmbiguity, type DiscoveryArtifact, type DiscoveryMedia, type DiscoveryResult, type DiscoveryRuntime, type DiscoverySource, type DiscoveryVariant, EMPTY_MODEL_RECORDS, FEATURE_BUCKETS, FEATURE_BUCKET_ORDER, FEATURE_KEYS, FILE_TYPE_QUANT, type FeatureBucket, type FeatureBucketMeta, type FeatureKey, GgufError, type GgufHeader, type GgufRead, type GgufTensor, type GroupedFeatures, type HardwareClass, type HardwareClasses, type HeaderFlag, type HeaderJudgement, type HeaderRefusal, INPUT_MODALITIES, INTERACTION_MODES, type Interaction, type InteractionMode, type LocalArtifact, type LocalCompatRow, type LocalModel, type LocalModelCatalog, type LocalPresentation, type LocalRuntime, type LocalRuntimeBuild, type LocalVariant, MAX_SUCCESSION_HOPS, MODEL_FAVORITE_ENTITY_TYPE, type Modality, type ModelCapabilities, type ModelCatalog, type ModelCatalogClient, type ModelCatalogConfig, type ModelCatalogErrorSink, type ModelCatalogPgError, type ModelCatalogPgResult, type ModelCatalogQuery, type ModelCatalogState, type ModelCatalogVariant, type ModelCatalogVariantState, type ModelClassConfig, type ModelClassEntry, type ModelClassIndex, type ModelDiagnosticEntry, type ModelDiagnosticsSink, type ModelFavorites, type ModelFavoritesCache, type ModelFavoritesClient, type ModelFavoritesConfig, type ModelFavoritesErrorSink, type ModelFavoritesState, type ModelFetchScope, type ModelFileHandle, type ModelFit, type ModelIdentityRow, type ModelJson, type ModelOfferingRow, type ModelOption, type ModelOptionWithLifecycle, type ModelRecord, type ModelRecordFetchType, type ModelRecords, type ModelRecordsClient, type ModelRecordsConfig, type ModelRecordsState, type ModelSelectionPurpose, type ModelSetEnv, type ModelSetFacts, type ModelSetValidation, type NoSelection, OUTPUT_MODALITIES, type OrderedLike, type PreferredModelChoice, type PreferredModelChoicePorts, type PriceTier, type RankedVariant, SERVICE_LABEL, SERVICE_LABEL_PLURAL, type SelectDevice, type Selection, type ShardName, type SuccessionIndex, type SuccessionNode, TOP_TIER_COST_RATING, TOP_TIER_LOCKED_TITLE, type VariantDiscovery, type Want, acceptsTextInstructions, buildModelClassIndex, buildSuccessionIndex, catalogForApp, classConfigKey, collapseTiersByClass, compareVersions, costRatingTier, costRatingWord, createModelCatalog, createModelFavorites, createModelRecords, curatedList, displayOrderOf, favoriteIdsEqual, fetchCuratedModels, findNonCanonicalCapabilityValues, fitsMemory, fitsThisComputer, formatMemoryBytes, fromDiscovery, ggufEngine, ggufFacts, groupFeatures, hardwareClassesOf, hasCompatibleDecisionInteraction, isContentType, isConversationalModelCapability, isDecisionModelCapability, isFeatureKey, isHelperGguf, isInteractionMode, isLocalModelCatalog, isManagedAgentModelCapability, isProjectorName, isSupersedable, isTopTierRating, judgeHeaderFacts, mergeAuditRecordIntoCapabilities, missingShards, modelClassKnobFor, modelClassName, modelClassPinOf, modelsForSelectionPurpose, normalizeArch, normalizeModel, normalizeModels, normalizeOs, normalizePromptSettings, orderCatalogGroups, orderCatalogModels, outputFormatControlKey, parseCapabilities, pickProjector, priceTierRating, quantFromName, rankVariants, readGgufHeader, reconcileModelFavoriteIds, reportModelDiagnostic, requireCanonicalCapabilities, requiredArtifacts, resetSuccessionLogForTests, resolvePreferredModelChoice, resolveSuccessor, selectActiveModels, selectActiveModelsReady, selectAllModelOptions, selectAllModels, selectAllModelsReady, selectDeprecatedModels, selectDeprecatedModelsReady, selectModelById, selectModelClassConfig, selectModelClassName, selectModelControls, selectModelDetailError, selectModelFetchType, selectModelFullyLoaded, selectModelIdentityById, selectModelIdentityLookupStatus, selectModelLabelById, selectModelLabelWithClass, selectModelNameById, selectModelOptions, selectVariant, serviceCountLabel, setModelDiagnosticsSink, shapeCuratedModels, shardFileName, shardName, speedRatingLabel, speedRatingWord, splitSetProblems, toAuditRecord, validateModelSet, withModelClass };
1519
+ export { type AdminOffering, type AdminPricingBand, type ArtifactUse, type AuditCapabilitiesRecord, CHAT_DEFAULT_MODEL_KNOB, CONTENT_TYPES, type CapabilitiesParseContext, type CatalogModel, type CatalogTier, type CompatStatus, type ContentType, type CuratedCatalogClient, type CuratedModel, type CuratedPresentation, type CuratedVariant, DEFAULT_CAPABILITIES, type DecidedBy, type DeviceGraphics, type DeviceHardware, type DiscoveryAmbiguity, type DiscoveryArtifact, type DiscoveryMedia, type DiscoveryResult, type DiscoveryRuntime, type DiscoverySource, type DiscoveryVariant, EMPTY_MODEL_RECORDS, FEATURE_BUCKETS, FEATURE_BUCKET_ORDER, FEATURE_KEYS, FILE_TYPE_QUANT, type FeatureBucket, type FeatureBucketMeta, type FeatureKey, GgufError, type GgufHeader, type GgufRead, type GgufTensor, type GroupedFeatures, type HardwareClass, type HardwareClasses, type HeaderFlag, type HeaderJudgement, type HeaderRefusal, INPUT_MODALITIES, INTERACTION_MODES, type Interaction, type InteractionMode, type LocalArtifact, type LocalCompatRow, type LocalModel, type LocalModelCatalog, type LocalPresentation, type LocalRuntime, type LocalRuntimeBuild, type LocalVariant, MAX_SUCCESSION_HOPS, MODEL_FAVORITE_ENTITY_TYPE, type Modality, type ModelCapabilities, type ModelCatalog, type ModelCatalogClient, type ModelCatalogConfig, type ModelCatalogErrorSink, type ModelCatalogPgError, type ModelCatalogPgResult, type ModelCatalogQuery, type ModelCatalogState, type ModelCatalogVariant, type ModelCatalogVariantState, type ModelClassConfig, type ModelClassEntry, type ModelClassIndex, type ModelDiagnosticEntry, type ModelDiagnosticsSink, type ModelFavorites, type ModelFavoritesCache, type ModelFavoritesClient, type ModelFavoritesConfig, type ModelFavoritesErrorSink, type ModelFavoritesState, type ModelFetchScope, type ModelFileHandle, type ModelFit, type ModelIdentityRow, type ModelJson, type ModelOfferingRow, type ModelOption, type ModelOptionWithLifecycle, type ModelRecord, type ModelRecordFetchType, type ModelRecords, type ModelRecordsClient, type ModelRecordsConfig, type ModelRecordsState, type ModelSelectionPurpose, type ModelSetEnv, type ModelSetFacts, type ModelSetValidation, type NoSelection, OUTPUT_MODALITIES, type OrderedLike, type PreferredModelChoice, type PreferredModelChoicePorts, type PriceTier, type RankedVariant, SERVICE_LABEL, SERVICE_LABEL_PLURAL, type SelectDevice, type Selection, type ShardName, type SuccessionIndex, type SuccessionNode, TOP_TIER_COST_RATING, TOP_TIER_LOCKED_TITLE, type VariantDiscovery, type Want, acceptsTextInstructions, buildModelClassIndex, buildSuccessionIndex, catalogForApp, classConfigKey, collapseTiersByClass, costRatingTier, costRatingWord, createModelCatalog, createModelFavorites, createModelRecords, curatedList, displayOrderOf, favoriteIdsEqual, fetchCuratedModels, findNonCanonicalCapabilityValues, fitsMemory, fitsThisComputer, formatMemoryBytes, fromDiscovery, ggufEngine, ggufFacts, groupFeatures, hardwareClassesOf, hasCompatibleDecisionInteraction, isContentType, isConversationalModelCapability, isDecisionModelCapability, isFeatureKey, isHelperGguf, isInteractionMode, isLocalModelCatalog, isManagedAgentModelCapability, isProjectorName, isSupersedable, isTopTierRating, judgeHeaderFacts, mergeAuditRecordIntoCapabilities, missingShards, modelClassKnobFor, modelClassName, modelClassPinOf, modelsForSelectionPurpose, normalizeArch, normalizeModel, normalizeModels, normalizeOs, normalizePromptSettings, orderCatalogGroups, orderCatalogModels, outputFormatControlKey, parseCapabilities, pickProjector, priceTierRating, quantFromName, rankVariants, readGgufHeader, reconcileModelFavoriteIds, reportModelDiagnostic, requireCanonicalCapabilities, requiredArtifacts, resetSuccessionLogForTests, resolvePreferredModelChoice, resolveSuccessor, selectActiveModels, selectActiveModelsReady, selectAllModelOptions, selectAllModels, selectAllModelsReady, selectDeprecatedModels, selectDeprecatedModelsReady, selectModelById, selectModelClassConfig, selectModelClassName, selectModelControls, selectModelDetailError, selectModelFetchType, selectModelFullyLoaded, selectModelIdentityById, selectModelIdentityLookupStatus, selectModelLabelById, selectModelLabelWithClass, selectModelNameById, selectModelOptions, selectVariant, serviceCountLabel, setModelDiagnosticsSink, shapeCuratedModels, shardFileName, shardName, speedRatingLabel, speedRatingWord, splitSetProblems, toAuditRecord, validateModelSet, withModelClass };
@@ -1117,8 +1117,6 @@ interface NoSelection {
1117
1117
  code: "no_variant" | "os_arch" | "app_version" | "runtime_missing" | "not_compatible" | "does_not_fit" | "exact_missing";
1118
1118
  reason: string;
1119
1119
  }
1120
- /** Compare dotted versions numerically; a missing side is treated as 0. */
1121
- declare function compareVersions(a: string, b: string): number;
1122
1120
  /** The files of a variant a device fetches for these uses: every `core` file plus any whose uses overlap. Optional files (empty required_for) never. */
1123
1121
  declare function requiredArtifacts(variant: LocalVariant, uses: readonly ArtifactUse[]): LocalArtifact[];
1124
1122
  /**
@@ -1518,4 +1516,4 @@ declare function curatedList<T extends CuratedModel>(models: readonly T[], { off
1518
1516
  offeredOnly: boolean;
1519
1517
  }): T[];
1520
1518
 
1521
- export { type AdminOffering, type AdminPricingBand, type ArtifactUse, type AuditCapabilitiesRecord, CHAT_DEFAULT_MODEL_KNOB, CONTENT_TYPES, type CapabilitiesParseContext, type CatalogModel, type CatalogTier, type CompatStatus, type ContentType, type CuratedCatalogClient, type CuratedModel, type CuratedPresentation, type CuratedVariant, DEFAULT_CAPABILITIES, type DecidedBy, type DeviceGraphics, type DeviceHardware, type DiscoveryAmbiguity, type DiscoveryArtifact, type DiscoveryMedia, type DiscoveryResult, type DiscoveryRuntime, type DiscoverySource, type DiscoveryVariant, EMPTY_MODEL_RECORDS, FEATURE_BUCKETS, FEATURE_BUCKET_ORDER, FEATURE_KEYS, FILE_TYPE_QUANT, type FeatureBucket, type FeatureBucketMeta, type FeatureKey, GgufError, type GgufHeader, type GgufRead, type GgufTensor, type GroupedFeatures, type HardwareClass, type HardwareClasses, type HeaderFlag, type HeaderJudgement, type HeaderRefusal, INPUT_MODALITIES, INTERACTION_MODES, type Interaction, type InteractionMode, type LocalArtifact, type LocalCompatRow, type LocalModel, type LocalModelCatalog, type LocalPresentation, type LocalRuntime, type LocalRuntimeBuild, type LocalVariant, MAX_SUCCESSION_HOPS, MODEL_FAVORITE_ENTITY_TYPE, type Modality, type ModelCapabilities, type ModelCatalog, type ModelCatalogClient, type ModelCatalogConfig, type ModelCatalogErrorSink, type ModelCatalogPgError, type ModelCatalogPgResult, type ModelCatalogQuery, type ModelCatalogState, type ModelCatalogVariant, type ModelCatalogVariantState, type ModelClassConfig, type ModelClassEntry, type ModelClassIndex, type ModelDiagnosticEntry, type ModelDiagnosticsSink, type ModelFavorites, type ModelFavoritesCache, type ModelFavoritesClient, type ModelFavoritesConfig, type ModelFavoritesErrorSink, type ModelFavoritesState, type ModelFetchScope, type ModelFileHandle, type ModelFit, type ModelIdentityRow, type ModelJson, type ModelOfferingRow, type ModelOption, type ModelOptionWithLifecycle, type ModelRecord, type ModelRecordFetchType, type ModelRecords, type ModelRecordsClient, type ModelRecordsConfig, type ModelRecordsState, type ModelSelectionPurpose, type ModelSetEnv, type ModelSetFacts, type ModelSetValidation, type NoSelection, OUTPUT_MODALITIES, type OrderedLike, type PreferredModelChoice, type PreferredModelChoicePorts, type PriceTier, type RankedVariant, SERVICE_LABEL, SERVICE_LABEL_PLURAL, type SelectDevice, type Selection, type ShardName, type SuccessionIndex, type SuccessionNode, TOP_TIER_COST_RATING, TOP_TIER_LOCKED_TITLE, type VariantDiscovery, type Want, acceptsTextInstructions, buildModelClassIndex, buildSuccessionIndex, catalogForApp, classConfigKey, collapseTiersByClass, compareVersions, costRatingTier, costRatingWord, createModelCatalog, createModelFavorites, createModelRecords, curatedList, displayOrderOf, favoriteIdsEqual, fetchCuratedModels, findNonCanonicalCapabilityValues, fitsMemory, fitsThisComputer, formatMemoryBytes, fromDiscovery, ggufEngine, ggufFacts, groupFeatures, hardwareClassesOf, hasCompatibleDecisionInteraction, isContentType, isConversationalModelCapability, isDecisionModelCapability, isFeatureKey, isHelperGguf, isInteractionMode, isLocalModelCatalog, isManagedAgentModelCapability, isProjectorName, isSupersedable, isTopTierRating, judgeHeaderFacts, mergeAuditRecordIntoCapabilities, missingShards, modelClassKnobFor, modelClassName, modelClassPinOf, modelsForSelectionPurpose, normalizeArch, normalizeModel, normalizeModels, normalizeOs, normalizePromptSettings, orderCatalogGroups, orderCatalogModels, outputFormatControlKey, parseCapabilities, pickProjector, priceTierRating, quantFromName, rankVariants, readGgufHeader, reconcileModelFavoriteIds, reportModelDiagnostic, requireCanonicalCapabilities, requiredArtifacts, resetSuccessionLogForTests, resolvePreferredModelChoice, resolveSuccessor, selectActiveModels, selectActiveModelsReady, selectAllModelOptions, selectAllModels, selectAllModelsReady, selectDeprecatedModels, selectDeprecatedModelsReady, selectModelById, selectModelClassConfig, selectModelClassName, selectModelControls, selectModelDetailError, selectModelFetchType, selectModelFullyLoaded, selectModelIdentityById, selectModelIdentityLookupStatus, selectModelLabelById, selectModelLabelWithClass, selectModelNameById, selectModelOptions, selectVariant, serviceCountLabel, setModelDiagnosticsSink, shapeCuratedModels, shardFileName, shardName, speedRatingLabel, speedRatingWord, splitSetProblems, toAuditRecord, validateModelSet, withModelClass };
1519
+ export { type AdminOffering, type AdminPricingBand, type ArtifactUse, type AuditCapabilitiesRecord, CHAT_DEFAULT_MODEL_KNOB, CONTENT_TYPES, type CapabilitiesParseContext, type CatalogModel, type CatalogTier, type CompatStatus, type ContentType, type CuratedCatalogClient, type CuratedModel, type CuratedPresentation, type CuratedVariant, DEFAULT_CAPABILITIES, type DecidedBy, type DeviceGraphics, type DeviceHardware, type DiscoveryAmbiguity, type DiscoveryArtifact, type DiscoveryMedia, type DiscoveryResult, type DiscoveryRuntime, type DiscoverySource, type DiscoveryVariant, EMPTY_MODEL_RECORDS, FEATURE_BUCKETS, FEATURE_BUCKET_ORDER, FEATURE_KEYS, FILE_TYPE_QUANT, type FeatureBucket, type FeatureBucketMeta, type FeatureKey, GgufError, type GgufHeader, type GgufRead, type GgufTensor, type GroupedFeatures, type HardwareClass, type HardwareClasses, type HeaderFlag, type HeaderJudgement, type HeaderRefusal, INPUT_MODALITIES, INTERACTION_MODES, type Interaction, type InteractionMode, type LocalArtifact, type LocalCompatRow, type LocalModel, type LocalModelCatalog, type LocalPresentation, type LocalRuntime, type LocalRuntimeBuild, type LocalVariant, MAX_SUCCESSION_HOPS, MODEL_FAVORITE_ENTITY_TYPE, type Modality, type ModelCapabilities, type ModelCatalog, type ModelCatalogClient, type ModelCatalogConfig, type ModelCatalogErrorSink, type ModelCatalogPgError, type ModelCatalogPgResult, type ModelCatalogQuery, type ModelCatalogState, type ModelCatalogVariant, type ModelCatalogVariantState, type ModelClassConfig, type ModelClassEntry, type ModelClassIndex, type ModelDiagnosticEntry, type ModelDiagnosticsSink, type ModelFavorites, type ModelFavoritesCache, type ModelFavoritesClient, type ModelFavoritesConfig, type ModelFavoritesErrorSink, type ModelFavoritesState, type ModelFetchScope, type ModelFileHandle, type ModelFit, type ModelIdentityRow, type ModelJson, type ModelOfferingRow, type ModelOption, type ModelOptionWithLifecycle, type ModelRecord, type ModelRecordFetchType, type ModelRecords, type ModelRecordsClient, type ModelRecordsConfig, type ModelRecordsState, type ModelSelectionPurpose, type ModelSetEnv, type ModelSetFacts, type ModelSetValidation, type NoSelection, OUTPUT_MODALITIES, type OrderedLike, type PreferredModelChoice, type PreferredModelChoicePorts, type PriceTier, type RankedVariant, SERVICE_LABEL, SERVICE_LABEL_PLURAL, type SelectDevice, type Selection, type ShardName, type SuccessionIndex, type SuccessionNode, TOP_TIER_COST_RATING, TOP_TIER_LOCKED_TITLE, type VariantDiscovery, type Want, acceptsTextInstructions, buildModelClassIndex, buildSuccessionIndex, catalogForApp, classConfigKey, collapseTiersByClass, costRatingTier, costRatingWord, createModelCatalog, createModelFavorites, createModelRecords, curatedList, displayOrderOf, favoriteIdsEqual, fetchCuratedModels, findNonCanonicalCapabilityValues, fitsMemory, fitsThisComputer, formatMemoryBytes, fromDiscovery, ggufEngine, ggufFacts, groupFeatures, hardwareClassesOf, hasCompatibleDecisionInteraction, isContentType, isConversationalModelCapability, isDecisionModelCapability, isFeatureKey, isHelperGguf, isInteractionMode, isLocalModelCatalog, isManagedAgentModelCapability, isProjectorName, isSupersedable, isTopTierRating, judgeHeaderFacts, mergeAuditRecordIntoCapabilities, missingShards, modelClassKnobFor, modelClassName, modelClassPinOf, modelsForSelectionPurpose, normalizeArch, normalizeModel, normalizeModels, normalizeOs, normalizePromptSettings, orderCatalogGroups, orderCatalogModels, outputFormatControlKey, parseCapabilities, pickProjector, priceTierRating, quantFromName, rankVariants, readGgufHeader, reconcileModelFavoriteIds, reportModelDiagnostic, requireCanonicalCapabilities, requiredArtifacts, resetSuccessionLogForTests, resolvePreferredModelChoice, resolveSuccessor, selectActiveModels, selectActiveModelsReady, selectAllModelOptions, selectAllModels, selectAllModelsReady, selectDeprecatedModels, selectDeprecatedModelsReady, selectModelById, selectModelClassConfig, selectModelClassName, selectModelControls, selectModelDetailError, selectModelFetchType, selectModelFullyLoaded, selectModelIdentityById, selectModelIdentityLookupStatus, selectModelLabelById, selectModelLabelWithClass, selectModelNameById, selectModelOptions, selectVariant, serviceCountLabel, setModelDiagnosticsSink, shapeCuratedModels, shardFileName, shardName, speedRatingLabel, speedRatingWord, splitSetProblems, toAuditRecord, validateModelSet, withModelClass };
@@ -1549,6 +1549,7 @@ function resetSuccessionLogForTests() {
1549
1549
  }
1550
1550
 
1551
1551
  // models/local.ts
1552
+ import { compareVersions } from "@ai-matrx/kit/versions";
1552
1553
  function isLocalModelCatalog(value) {
1553
1554
  if (!value || typeof value !== "object") return false;
1554
1555
  const v = value;
@@ -1588,19 +1589,10 @@ function fitsThisComputer(memoryBytes, hw, fitFraction, smallBytes = 1024 ** 3)
1588
1589
  if (accelerated) return "yes";
1589
1590
  return need <= smallBytes ? "yes" : "slow";
1590
1591
  }
1591
- function compareVersions(a, b) {
1592
- const pa = a.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
1593
- const pb = b.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
1594
- for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
1595
- const d = (pa[i] ?? 0) - (pb[i] ?? 0);
1596
- if (d) return d;
1597
- }
1598
- return 0;
1599
- }
1600
1592
  function appAllows(minApp, appVersion) {
1601
1593
  if (!minApp) return true;
1602
1594
  if (!appVersion) return false;
1603
- return compareVersions(appVersion, minApp) >= 0;
1595
+ return compareVersions(appVersion, minApp, { tail: "numeric" }) >= 0;
1604
1596
  }
1605
1597
  function requiredArtifacts(variant, uses) {
1606
1598
  return variant.artifacts.filter((a) => a.required_for.includes("core") || a.required_for.some((u) => uses.includes(u)));
@@ -2317,7 +2309,6 @@ export {
2317
2309
  catalogForApp,
2318
2310
  classConfigKey,
2319
2311
  collapseTiersByClass,
2320
- compareVersions,
2321
2312
  costRatingTier,
2322
2313
  costRatingWord,
2323
2314
  createModelCatalog,
@@ -2256,6 +2256,7 @@ var import_design_system2 = require("@ai-matrx/design-system");
2256
2256
  var import_controls2 = require("@ai-matrx/design-system/controls");
2257
2257
 
2258
2258
  // models/local.ts
2259
+ var import_versions = require("@ai-matrx/kit/versions");
2259
2260
  function normalizeArch(arch) {
2260
2261
  const a = (arch ?? "").toLowerCase();
2261
2262
  if (a === "arm64" || a === "aarch64") return "arm64";
@@ -2271,19 +2272,10 @@ function fitsMemory(memoryBytes, totalMemoryBytes, fitFraction) {
2271
2272
  if (!(fitFraction > 0 && fitFraction <= 1)) throw new Error(`fitsMemory: fitFraction ${fitFraction} is not in (0, 1] (the knob value is broken)`);
2272
2273
  return memoryBytes <= totalMemoryBytes * fitFraction;
2273
2274
  }
2274
- function compareVersions(a, b) {
2275
- const pa = a.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
2276
- const pb = b.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
2277
- for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
2278
- const d = (pa[i] ?? 0) - (pb[i] ?? 0);
2279
- if (d) return d;
2280
- }
2281
- return 0;
2282
- }
2283
2275
  function appAllows(minApp, appVersion) {
2284
2276
  if (!minApp) return true;
2285
2277
  if (!appVersion) return false;
2286
- return compareVersions(appVersion, minApp) >= 0;
2278
+ return (0, import_versions.compareVersions)(appVersion, minApp, { tail: "numeric" }) >= 0;
2287
2279
  }
2288
2280
  function signatureMatches(row, v) {
2289
2281
  return row.format === v.format && row.quant === v.quant && row.architecture === v.architecture && row.chat_template_kind === v.chat_template_kind;
@@ -2238,6 +2238,7 @@ import { Avatar, AvatarFallback, AvatarImage, Collapsible, CollapsibleContent, C
2238
2238
  import { Badge, Button, Field, SearchField, Select, Tabs } from "@ai-matrx/design-system/controls";
2239
2239
 
2240
2240
  // models/local.ts
2241
+ import { compareVersions } from "@ai-matrx/kit/versions";
2241
2242
  function normalizeArch(arch) {
2242
2243
  const a = (arch ?? "").toLowerCase();
2243
2244
  if (a === "arm64" || a === "aarch64") return "arm64";
@@ -2253,19 +2254,10 @@ function fitsMemory(memoryBytes, totalMemoryBytes, fitFraction) {
2253
2254
  if (!(fitFraction > 0 && fitFraction <= 1)) throw new Error(`fitsMemory: fitFraction ${fitFraction} is not in (0, 1] (the knob value is broken)`);
2254
2255
  return memoryBytes <= totalMemoryBytes * fitFraction;
2255
2256
  }
2256
- function compareVersions(a, b) {
2257
- const pa = a.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
2258
- const pb = b.split(/[.+-]/).map((x) => Number.parseInt(x, 10) || 0);
2259
- for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
2260
- const d = (pa[i] ?? 0) - (pb[i] ?? 0);
2261
- if (d) return d;
2262
- }
2263
- return 0;
2264
- }
2265
2257
  function appAllows(minApp, appVersion) {
2266
2258
  if (!minApp) return true;
2267
2259
  if (!appVersion) return false;
2268
- return compareVersions(appVersion, minApp) >= 0;
2260
+ return compareVersions(appVersion, minApp, { tail: "numeric" }) >= 0;
2269
2261
  }
2270
2262
  function signatureMatches(row, v) {
2271
2263
  return row.format === v.format && row.quant === v.quant && row.architecture === v.architecture && row.chat_template_kind === v.chat_template_kind;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/agents",
3
- "version": "0.59.142",
3
+ "version": "0.59.144",
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",
@@ -489,13 +489,13 @@
489
489
  "sideEffects": false,
490
490
  "dependencies": {
491
491
  "@ai-matrx/alchemy": "latest",
492
- "@ai-matrx/api": "latest",
493
- "@ai-matrx/associations": "latest",
494
492
  "@ai-matrx/content-ir": "latest",
493
+ "@ai-matrx/associations": "latest",
495
494
  "@ai-matrx/data": "latest",
496
495
  "@ai-matrx/design-system": "latest",
497
- "@ai-matrx/kit": "latest",
498
- "@ai-matrx/icons": "latest"
496
+ "@ai-matrx/api": "latest",
497
+ "@ai-matrx/icons": "latest",
498
+ "@ai-matrx/kit": "latest"
499
499
  },
500
500
  "peerDependencies": {
501
501
  "react": ">=18.0.0",
@@ -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": "fc9a7aa43ed8cc5dcb8b48fa353520a4cc24eae7"
543
+ "gitHead": "95a286343b1aae1f7f02cb1d0df48d9b58c8537c"
544
544
  }