@barivia/barsom-mcp 0.23.2 → 0.23.3

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/shared.js CHANGED
@@ -39,7 +39,7 @@ function newRequestId() {
39
39
  * X-Barsom-Client-Version so the server can annotate tool guidance with the
40
40
  * wrapper version each action requires. Keep in sync with package.json on bump.
41
41
  */
42
- export const CLIENT_VERSION = "0.23.2";
42
+ export const CLIENT_VERSION = "0.23.3";
43
43
  /** User-facing links; keep aligned with barivia.se / api.barivia.se. */
44
44
  export const PUBLIC_SITE_ORIGIN = "https://barivia.se";
45
45
  /** Self-serve account dashboard (manage plan, billing, and API keys). */
@@ -19,6 +19,26 @@ export function isKernelTrainingComplete(data, status) {
19
19
  export function teCurveLabel(base) {
20
20
  return `${base} (panel)`;
21
21
  }
22
+ /**
23
+ * Detect FLooP jobs for chart axis/labels.
24
+ * Do NOT infer from "ordering-only curves" — mesh_convergence / train_som often use
25
+ * epochs=[N,0], so convergence_errors is empty while ordering has many batch points.
26
+ */
27
+ export function isFloopJob(data) {
28
+ const phase = String(data.training_progress_phase ?? data.progress_phase ?? "").toLowerCase();
29
+ if (phase === "floop")
30
+ return true;
31
+ const jt = String(data.job_type ?? "").toLowerCase();
32
+ if (jt.includes("floop"))
33
+ return true;
34
+ const rc = data.run_config;
35
+ if (rc && typeof rc === "object") {
36
+ const model = String(rc.model ?? "").toLowerCase();
37
+ if (model.includes("floop"))
38
+ return true;
39
+ }
40
+ return false;
41
+ }
22
42
  export function formatCurveSourceNote(data) {
23
43
  const src = data.training_curve_source_batches;
24
44
  const parts = [];