@declarion/react 0.42.0 → 0.44.0

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.
@@ -81,7 +81,8 @@ export interface AgentConversation {
81
81
  id: string;
82
82
  tenant_id: string;
83
83
  created_by?: string;
84
- agent_code: string;
84
+ agent_id?: string;
85
+ agent?: string;
85
86
  agent_version?: string;
86
87
  title?: string;
87
88
  context?: Record<string, unknown>;
@@ -97,7 +98,7 @@ export interface AgentConversation {
97
98
  active_instance?: string;
98
99
  }
99
100
  export declare function createConversation(input: {
100
- agent_code?: string;
101
+ agent_id?: string;
101
102
  context?: Record<string, unknown>;
102
103
  }): Promise<AgentConversation>;
103
104
  export declare function sendMessage(text: string, conversationId: string, _seq?: number): Promise<AgentMessage>;
package/dist-lib/index.js CHANGED
@@ -2734,7 +2734,7 @@ function Ra({ open: e, onClose: t, onAction: r, mode: i = "default", navigation:
2734
2734
  async function za(e) {
2735
2735
  return (await P("agent_conversation", {
2736
2736
  status: "active",
2737
- ...e.agent_code ? { agent_code: e.agent_code } : {},
2737
+ ...e.agent_id ? { agent_id: e.agent_id } : {},
2738
2738
  ...e.context ? { context: e.context } : {}
2739
2739
  })).data;
2740
2740
  }
@@ -2775,11 +2775,15 @@ async function Wa(e) {
2775
2775
  await at("agent_conversation", e, { status: "canceling" });
2776
2776
  }
2777
2777
  async function Ga() {
2778
- return (await m("agent_conversation", {
2778
+ let e = await m("agent_conversation", {
2779
2779
  sort: "updated_at:desc",
2780
2780
  page: 1,
2781
2781
  per_page: 50
2782
- })).data ?? [];
2782
+ });
2783
+ return (e.data ?? []).map((t) => ({
2784
+ ...t,
2785
+ agent: t.agent_id ? e.$refs?.agent?.[t.agent_id]?.code : void 0
2786
+ }));
2783
2787
  }
2784
2788
  async function Ka(e) {
2785
2789
  await Be("agents.rerun_message_turn", { args: { conversation_id: e } });
@@ -14816,8 +14820,7 @@ function _d({ open: e, onClose: t, conversations: r, activeId: i, onSelect: a, o
14816
14820
  }), /* @__PURE__ */ $("div", {
14817
14821
  className: "text-xs text-muted-foreground",
14818
14822
  children: [
14819
- e.agent_code,
14820
- " · ",
14823
+ e.agent ? `${e.agent} · ` : "",
14821
14824
  e.status,
14822
14825
  e.token_usage?.cost_cents ? ` · $${(e.token_usage.cost_cents / 100).toFixed(2)}` : ""
14823
14826
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",
@@ -58,33 +58,33 @@
58
58
  "@dnd-kit/sortable": "^10.0.0",
59
59
  "@dnd-kit/utilities": "^3.2.2",
60
60
  "@monaco-editor/react": "^4.7.0",
61
- "@radix-ui/react-alert-dialog": "^1.1.22",
62
- "@radix-ui/react-dialog": "^1.1.22",
63
- "@radix-ui/react-dropdown-menu": "^2.1.23",
64
- "@radix-ui/react-label": "^2.1.14",
65
- "@radix-ui/react-select": "^2.3.6",
66
- "@radix-ui/react-separator": "^1.1.14",
67
- "@radix-ui/react-slot": "^1.3.2",
61
+ "@radix-ui/react-alert-dialog": "^1.1.23",
62
+ "@radix-ui/react-dialog": "^1.1.23",
63
+ "@radix-ui/react-dropdown-menu": "^2.1.24",
64
+ "@radix-ui/react-label": "^2.1.15",
65
+ "@radix-ui/react-select": "^2.3.7",
66
+ "@radix-ui/react-separator": "^1.1.15",
67
+ "@radix-ui/react-slot": "^1.3.3",
68
68
  "@tanstack/react-query": "^5.101.4",
69
69
  "@tanstack/react-table": "^8.21.3",
70
70
  "@tanstack/react-virtual": "^3.14.8",
71
71
  "class-variance-authority": "^0.7.1",
72
72
  "clsx": "^2.1.1",
73
73
  "date-fns": "^4.4.0",
74
- "lucide-react": "^1.26.0",
74
+ "lucide-react": "^1.27.0",
75
75
  "mdast-util-to-string": "^4.0.0",
76
76
  "monaco-editor": "^0.56.0",
77
77
  "react-markdown": "^10.1.0",
78
78
  "react-router": "^8.3.0",
79
79
  "react-textarea-autosize": "^8.5.9",
80
- "recharts": "^3.10.0",
80
+ "recharts": "^3.10.1",
81
81
  "remark-breaks": "^4.0.0",
82
82
  "remark-gfm": "^4.0.1",
83
83
  "remark-parse": "^11.0.0",
84
84
  "sonner": "^2.0.7",
85
85
  "tailwind-merge": "^3.6.0",
86
86
  "unified": "^11.0.5",
87
- "vanilla-jsoneditor": "^3.12.0",
87
+ "vanilla-jsoneditor": "^3.13.0",
88
88
  "zustand": "^5.0.14"
89
89
  },
90
90
  "devDependencies": {
@@ -100,7 +100,7 @@
100
100
  "@vitejs/plugin-react": "^6.0.4",
101
101
  "@vitest/coverage-v8": "^4.1.10",
102
102
  "axe-core": "^4.12.1",
103
- "eslint": "^10.7.0",
103
+ "eslint": "^10.8.0",
104
104
  "eslint-plugin-react-hooks": "^7.1.1",
105
105
  "jsdom": "^29.1.1",
106
106
  "msw": "^2.15.0",