@open-mercato/ai-assistant 0.6.7-develop.6862.1.c11a64ce0a → 0.6.7-develop.6869.1.d1ce9999ea

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.
@@ -499,7 +499,7 @@ function MutationPolicySection({ agent }) {
499
499
  /* @__PURE__ */ jsxs(
500
500
  Alert,
501
501
  {
502
- variant: "info",
502
+ status: "information",
503
503
  icon: /* @__PURE__ */ jsx(ShieldAlert, { "aria-hidden": "true" }),
504
504
  "data-ai-agent-mutation-policy-notice": true,
505
505
  children: [
@@ -522,7 +522,7 @@ function MutationPolicySection({ agent }) {
522
522
  "Loading mutation policy..."
523
523
  )
524
524
  }
525
- ) : query.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-mutation-policy-load-error": true, children: [
525
+ ) : query.isError ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-mutation-policy-load-error": true, children: [
526
526
  /* @__PURE__ */ jsx(AlertTitle, { children: t(
527
527
  "ai_assistant.agents.mutation_policy.loadErrorTitle",
528
528
  "Failed to load mutation policy"
@@ -594,11 +594,11 @@ function MutationPolicySection({ agent }) {
594
594
  })
595
595
  }
596
596
  ),
597
- state.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { variant: "success", "data-ai-agent-mutation-policy-state": "success", children: [
597
+ state.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { status: "success", "data-ai-agent-mutation-policy-state": "success", children: [
598
598
  /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.agents.mutation_policy.savedTitle", "Mutation policy updated") }),
599
599
  /* @__PURE__ */ jsx(AlertDescription, { children: state.message })
600
600
  ] }) : null,
601
- state.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-mutation-policy-state": "error", children: [
601
+ state.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-mutation-policy-state": "error", children: [
602
602
  /* @__PURE__ */ jsx(AlertTitle, { children: t(
603
603
  "ai_assistant.agents.mutation_policy.errorTitle",
604
604
  "Failed to update mutation policy"
@@ -1026,7 +1026,7 @@ function AgentModelOverrideSection({ agent }) {
1026
1026
  "Loading provider catalog..."
1027
1027
  )
1028
1028
  }
1029
- ) : settingsQuery.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-model-override-load-error": true, children: [
1029
+ ) : settingsQuery.isError ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-model-override-load-error": true, children: [
1030
1030
  /* @__PURE__ */ jsx(AlertTitle, { children: t(
1031
1031
  "ai_assistant.agents.model_override.loadErrorTitle",
1032
1032
  "Failed to load provider catalog"
@@ -1204,8 +1204,8 @@ function AgentModelOverrideSection({ agent }) {
1204
1204
  )
1205
1205
  ] })
1206
1206
  ] }) : null,
1207
- state.kind === "success" ? /* @__PURE__ */ jsx(Alert, { variant: "success", "data-ai-agent-model-override-state": "success", children: /* @__PURE__ */ jsx(AlertDescription, { children: state.message }) }) : null,
1208
- state.kind === "error" ? /* @__PURE__ */ jsx(Alert, { variant: "destructive", "data-ai-agent-model-override-state": "error", children: /* @__PURE__ */ jsx(AlertDescription, { children: state.message }) }) : null,
1207
+ state.kind === "success" ? /* @__PURE__ */ jsx(Alert, { status: "success", "data-ai-agent-model-override-state": "success", children: /* @__PURE__ */ jsx(AlertDescription, { children: state.message }) }) : null,
1208
+ state.kind === "error" ? /* @__PURE__ */ jsx(Alert, { status: "error", "data-ai-agent-model-override-state": "error", children: /* @__PURE__ */ jsx(AlertDescription, { children: state.message }) }) : null,
1209
1209
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-end gap-2", children: [
1210
1210
  /* @__PURE__ */ jsxs(
1211
1211
  Button,
@@ -1399,7 +1399,7 @@ function LoopPolicySection({ agent }) {
1399
1399
  {
1400
1400
  message: t("ai_assistant.agents.loop_policy.loading", "Loading loop policy...")
1401
1401
  }
1402
- ) : query.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-loop-policy-load-error": true, children: [
1402
+ ) : query.isError ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-loop-policy-load-error": true, children: [
1403
1403
  /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.agents.loop_policy.loadErrorTitle", "Failed to load loop policy") }),
1404
1404
  /* @__PURE__ */ jsx(AlertDescription, { children: query.error instanceof Error ? query.error.message : String(query.error) })
1405
1405
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1491,11 +1491,11 @@ function LoopPolicySection({ agent }) {
1491
1491
  )
1492
1492
  ] })
1493
1493
  ] }),
1494
- state.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { variant: "success", "data-ai-agent-loop-policy-state": "success", children: [
1494
+ state.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { status: "success", "data-ai-agent-loop-policy-state": "success", children: [
1495
1495
  /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.agents.loop_policy.savedTitle", "Loop policy updated") }),
1496
1496
  /* @__PURE__ */ jsx(AlertDescription, { children: state.message })
1497
1497
  ] }) : null,
1498
- state.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-loop-policy-state": "error", children: [
1498
+ state.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-loop-policy-state": "error", children: [
1499
1499
  /* @__PURE__ */ jsx(AlertTitle, { children: t(
1500
1500
  "ai_assistant.agents.loop_policy.errorTitle",
1501
1501
  "Failed to update loop policy"
@@ -1779,7 +1779,7 @@ function AgentDetailPanel({ agent }) {
1779
1779
  /* @__PURE__ */ jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxs(
1780
1780
  Alert,
1781
1781
  {
1782
- variant: "info",
1782
+ status: "information",
1783
1783
  icon: /* @__PURE__ */ jsx(Wand2, { "aria-hidden": "true" }),
1784
1784
  "data-ai-agent-prompt-notice": true,
1785
1785
  children: [
@@ -1791,11 +1791,11 @@ function AgentDetailPanel({ agent }) {
1791
1791
  ]
1792
1792
  }
1793
1793
  ) }),
1794
- saveState.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { variant: "success", className: "mt-3", "data-ai-agent-prompt-state": "success", children: [
1794
+ saveState.kind === "success" ? /* @__PURE__ */ jsxs(Alert, { status: "success", className: "mt-3", "data-ai-agent-prompt-state": "success", children: [
1795
1795
  /* @__PURE__ */ jsx(AlertTitle, { children: saveState.version > 0 ? t("ai_assistant.agents.override.savedTitle", "Prompt override saved") : t("ai_assistant.agents.prompt.pendingTitle", "Overrides accepted") }),
1796
1796
  /* @__PURE__ */ jsx(AlertDescription, { children: saveState.version > 0 ? `${saveState.message} ${t("ai_assistant.agents.override.versionLabel", "Version")} ${saveState.version}.` : saveState.message })
1797
1797
  ] }) : null,
1798
- saveState.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", className: "mt-3", "data-ai-agent-prompt-state": "error", children: [
1798
+ saveState.kind === "error" ? /* @__PURE__ */ jsxs(Alert, { status: "error", className: "mt-3", "data-ai-agent-prompt-state": "error", children: [
1799
1799
  /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.agents.override.errorTitle", "Failed to save prompt override") }),
1800
1800
  /* @__PURE__ */ jsx(AlertDescription, { children: saveState.message })
1801
1801
  ] }) : null,
@@ -1883,7 +1883,7 @@ function AgentDetailPanel({ agent }) {
1883
1883
  "Loading override history..."
1884
1884
  )
1885
1885
  }
1886
- ) : overrideQuery.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-override-history-error": true, children: [
1886
+ ) : overrideQuery.isError ? /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-override-history-error": true, children: [
1887
1887
  /* @__PURE__ */ jsx(AlertTitle, { children: t(
1888
1888
  "ai_assistant.agents.override.history.errorTitle",
1889
1889
  "Failed to load override history"
@@ -1974,7 +1974,7 @@ function AiAgentSettingsPageClient() {
1974
1974
  );
1975
1975
  }
1976
1976
  if (isError) {
1977
- return /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-ai-agent-settings-error": true, children: [
1977
+ return /* @__PURE__ */ jsxs(Alert, { status: "error", "data-ai-agent-settings-error": true, children: [
1978
1978
  /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.agents.loadErrorTitle", "Failed to load AI agents") }),
1979
1979
  /* @__PURE__ */ jsxs(AlertDescription, { children: [
1980
1980
  /* @__PURE__ */ jsx("span", { children: error instanceof Error ? error.message : String(error) }),