@axiom-lattice/core 7.0.0 → 7.0.2

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/dist/index.mjs CHANGED
@@ -10693,6 +10693,9 @@ async function hasModelLatticeForTenant(tenantId2, modelKey) {
10693
10693
  }
10694
10694
  return modelLatticeManager.hasLatticeWithTenant("default", modelKey);
10695
10695
  }
10696
+ function hasModelLatticeForTenantSync(tenantId2, modelKey) {
10697
+ return modelLatticeManager.hasLatticeWithTenant(tenantId2, modelKey) || modelLatticeManager.hasLatticeWithTenant("default", modelKey);
10698
+ }
10696
10699
  function listModelLatticesForTenant(tenantId2) {
10697
10700
  const byKey = /* @__PURE__ */ new Map();
10698
10701
  for (const lattice of modelLatticeManager.getAllLatticesByTenant("default")) {
@@ -36545,9 +36548,9 @@ var LatticeEvalProject = class {
36545
36548
  const tenantId2 = this.project.lattice_server_config.tenant_id || "default";
36546
36549
  const judgeModelKey = resolveJudgeModelKey(
36547
36550
  this.project.judge_agent_config.modelKey,
36548
- modelLatticeManager.getAllLatticesByTenant(tenantId2)
36551
+ listModelLatticesForTenant(tenantId2)
36549
36552
  );
36550
- if (!modelLatticeManager.hasLatticeWithTenant(tenantId2, judgeModelKey)) {
36553
+ if (!hasModelLatticeForTenantSync(tenantId2, judgeModelKey)) {
36551
36554
  throw new Error(
36552
36555
  `Judge model "${judgeModelKey}" not found. Register it first or provide a valid modelKey.`
36553
36556
  );
@@ -50055,6 +50058,7 @@ export {
50055
50058
  hasChunkBuffer,
50056
50059
  hasDelegatedWorkerToken,
50057
50060
  hasModelLatticeForTenant,
50061
+ hasModelLatticeForTenantSync,
50058
50062
  hasRuntimeCapabilityPolicy,
50059
50063
  installPluginHost,
50060
50064
  invokeResident,