@ai-matrx/chat 0.7.0 → 0.7.1

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,5 +1,11 @@
1
1
  # @ai-matrx/chat
2
2
 
3
+ ## 0.7.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/chat/v0.7.0..npm/chat/v0.7.1 -- apps/shared/chat`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.7.0
4
10
  ### BREAKING: the exports map is explicit (no wildcards)
5
11
 
@@ -46,6 +52,8 @@
46
52
  `fetchArchivedConversations`. `ConversationListItem.deletedAt` added.
47
53
  - Consumer header is ONE row: an always-visible search field + refresh + filter. No heading text: prop
48
54
  `historyLabel` removed; `initialSearchOpen` → `autoFocusSearch`.
55
+ - `AgentRunWindow` list scope is a visible `All agents | This agent` toggle at the top of its sidebar (default
56
+ All). It used to list only the title-bar agent's chats with nothing on screen saying so.
49
57
  - `AgentRunWindow`: title is the open chat's title (else the agent's name) with no "Run" prefix; New chat is a
50
58
  quiet theme-token icon beside the sidebar toggle (`actionsLeft`), not a primary disc on the right.
51
59
 
@@ -693,6 +693,7 @@ const ConsumerView = ({
693
693
  },
694
694
  placeholder: "Search",
695
695
  "aria-label": "Search conversations",
696
+ width: "xl",
696
697
  className: "min-w-0 flex-1"
697
698
  }
698
699
  ) : /* @__PURE__ */ jsx("span", { className: "flex-1" }),
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { logFailure } from "../../../ui/expectedRefusal.js";
4
4
  import { useCallback, useEffect, useRef, useState } from "react";
5
5
  import { AlertTriangle, Brain, Loader2, RotateCw, SquarePen } from "lucide-react";
6
- import { Button } from "@ai-matrx/design-system/controls";
6
+ import { Button, SegmentedControl } from "@ai-matrx/design-system/controls";
7
7
  import { WindowPanel } from "../../../host/ui-slots.js";
8
8
  import { useAppDispatch, useAppSelector } from "../../../store/hooks.js";
9
9
  import { toast } from "../../../host/notify.js";
@@ -134,30 +134,43 @@ function AgentRunWindowSidebar({
134
134
  },
135
135
  chat.conversationId
136
136
  )) }) : null;
137
- if (!agentId || !canonicalAgentId) {
138
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-0 flex-col", children: [
139
- sessionSection,
140
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col items-center justify-center gap-2 px-3 py-10 text-center", children: [
141
- /* @__PURE__ */ jsx(Brain, { className: "h-6 w-6 text-muted-foreground opacity-25" }),
142
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Select an agent from the header to see its history." })
143
- ] })
144
- ] });
145
- }
137
+ const [listScope, setListScope] = useState("all");
138
+ const agentOnly = listScope === "agent" && !!canonicalAgentId;
139
+ const scopeToggle = /* @__PURE__ */ jsx("div", { className: "shrink-0 px-2 pt-2 pb-1", children: /* @__PURE__ */ jsx(
140
+ SegmentedControl,
141
+ {
142
+ "aria-label": "Which chats to list",
143
+ fill: true,
144
+ value: agentOnly ? "agent" : "all",
145
+ onValueChange: (next) => setListScope(next),
146
+ data: [
147
+ { value: "all", label: "All agents" },
148
+ {
149
+ value: "agent",
150
+ label: "This agent",
151
+ title: canonicalAgentId ? "Only chats with the agent in the title bar" : "Pick an agent in the title bar first",
152
+ disabled: !canonicalAgentId
153
+ }
154
+ ]
155
+ }
156
+ ) });
146
157
  return /* @__PURE__ */ jsx(
147
158
  ConversationHistorySidebar,
148
159
  {
149
160
  variant: "consumer",
150
- scopeId: `${surfaceKey ?? "agent-run-window"}:history:${canonicalAgentId}`,
151
- agentIds: [canonicalAgentId],
161
+ scopeId: agentOnly ? `${surfaceKey ?? "agent-run-window"}:history:${canonicalAgentId}` : `${surfaceKey ?? "agent-run-window"}:history:all`,
162
+ agentIds: agentOnly && canonicalAgentId ? [canonicalAgentId] : [],
152
163
  surfaceId: "agent-runner",
153
164
  activeConversationId: null,
154
165
  onOpenConversation: handleOpenConversation,
155
166
  openInPlace: true,
156
167
  surfaceKey: surfaceKey ?? void 0,
157
168
  getConversationHref,
169
+ headerSlot: scopeToggle,
158
170
  topSlot: sessionSection,
159
171
  className: "bg-transparent"
160
- }
172
+ },
173
+ agentOnly ? `agent:${canonicalAgentId}` : "all"
161
174
  );
162
175
  }
163
176
  function AgentRunWindowNewRunButton({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/chat",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "THE one AI Matrx person-to-agent chat system: the full chat (running agents, conversations, tool calls, streaming, context, surfaces, voice) as explicit per-module subpaths @ai-matrx/chat/<domain>/<module> (no wildcards: scripts/public-modules.json) over a host contract (/host, /host/react) whose only required value is a db. One chat, one renderer: the old kernel entries (., /external-store, /matrx, /react, /tools, styles.css, tokens.css) are retired.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -480,6 +480,11 @@
480
480
  "import": "./dist/agents/components/conversation-actions/rename/ConversationRenameDialogHost.js",
481
481
  "default": "./dist/agents/components/conversation-actions/rename/ConversationRenameDialogHost.js"
482
482
  },
483
+ "./agents/components/conversation-history/AgentConversationList": {
484
+ "types": "./dist/agents/components/conversation-history/AgentConversationList.d.ts",
485
+ "import": "./dist/agents/components/conversation-history/AgentConversationList.js",
486
+ "default": "./dist/agents/components/conversation-history/AgentConversationList.js"
487
+ },
483
488
  "./agents/components/conversation-history/ConversationHistorySidebar": {
484
489
  "types": "./dist/agents/components/conversation-history/ConversationHistorySidebar.d.ts",
485
490
  "import": "./dist/agents/components/conversation-history/ConversationHistorySidebar.js",
@@ -3831,6 +3836,41 @@
3831
3836
  "import": "./dist/tool-call-visualization/components/toolCardUiSession.js",
3832
3837
  "default": "./dist/tool-call-visualization/components/toolCardUiSession.js"
3833
3838
  },
3839
+ "./tool-call-visualization/configured-rows/ConfiguredToolRow": {
3840
+ "types": "./dist/tool-call-visualization/configured-rows/ConfiguredToolRow.d.ts",
3841
+ "import": "./dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js",
3842
+ "default": "./dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js"
3843
+ },
3844
+ "./tool-call-visualization/configured-rows/CopyToolButton": {
3845
+ "types": "./dist/tool-call-visualization/configured-rows/CopyToolButton.d.ts",
3846
+ "import": "./dist/tool-call-visualization/configured-rows/CopyToolButton.js",
3847
+ "default": "./dist/tool-call-visualization/configured-rows/CopyToolButton.js"
3848
+ },
3849
+ "./tool-call-visualization/configured-rows/ToolProgressView": {
3850
+ "types": "./dist/tool-call-visualization/configured-rows/ToolProgressView.d.ts",
3851
+ "import": "./dist/tool-call-visualization/configured-rows/ToolProgressView.js",
3852
+ "default": "./dist/tool-call-visualization/configured-rows/ToolProgressView.js"
3853
+ },
3854
+ "./tool-call-visualization/configured-rows/register": {
3855
+ "types": "./dist/tool-call-visualization/configured-rows/register.d.ts",
3856
+ "import": "./dist/tool-call-visualization/configured-rows/register.js",
3857
+ "default": "./dist/tool-call-visualization/configured-rows/register.js"
3858
+ },
3859
+ "./tool-call-visualization/configured-rows/registries": {
3860
+ "types": "./dist/tool-call-visualization/configured-rows/registries.d.ts",
3861
+ "import": "./dist/tool-call-visualization/configured-rows/registries.js",
3862
+ "default": "./dist/tool-call-visualization/configured-rows/registries.js"
3863
+ },
3864
+ "./tool-call-visualization/configured-rows/transforms": {
3865
+ "types": "./dist/tool-call-visualization/configured-rows/transforms.d.ts",
3866
+ "import": "./dist/tool-call-visualization/configured-rows/transforms.js",
3867
+ "default": "./dist/tool-call-visualization/configured-rows/transforms.js"
3868
+ },
3869
+ "./tool-call-visualization/configured-rows/types": {
3870
+ "types": "./dist/tool-call-visualization/configured-rows/types.d.ts",
3871
+ "import": "./dist/tool-call-visualization/configured-rows/types.js",
3872
+ "default": "./dist/tool-call-visualization/configured-rows/types.js"
3873
+ },
3834
3874
  "./tool-call-visualization/db-renderer/fetchToolRendererRow": {
3835
3875
  "types": "./dist/tool-call-visualization/db-renderer/fetchToolRendererRow.d.ts",
3836
3876
  "import": "./dist/tool-call-visualization/db-renderer/fetchToolRendererRow.js",
@@ -4628,23 +4668,23 @@
4628
4668
  "zod": "^4.6.5",
4629
4669
  "@ai-matrx/agents": "latest",
4630
4670
  "@ai-matrx/alchemy": "latest",
4631
- "@ai-matrx/associations": "latest",
4632
4671
  "@ai-matrx/browser-audio": "latest",
4633
4672
  "@ai-matrx/canvas": "latest",
4634
4673
  "@ai-matrx/content-ir": "latest",
4635
- "@ai-matrx/content-ir-react": "latest",
4674
+ "@ai-matrx/associations": "latest",
4636
4675
  "@ai-matrx/data": "latest",
4637
4676
  "@ai-matrx/design-system": "latest",
4638
4677
  "@ai-matrx/diff": "latest",
4639
- "@ai-matrx/icons": "latest",
4640
4678
  "@ai-matrx/kit": "latest",
4641
- "@ai-matrx/media": "latest",
4642
4679
  "@ai-matrx/print": "latest",
4643
- "@ai-matrx/records": "latest",
4680
+ "@ai-matrx/icons": "latest",
4644
4681
  "@ai-matrx/realtime": "latest",
4682
+ "@ai-matrx/records": "latest",
4645
4683
  "@ai-matrx/records-ui": "latest",
4646
4684
  "@ai-matrx/rich-content": "latest",
4647
- "@ai-matrx/rich-editor": "latest"
4685
+ "@ai-matrx/media": "latest",
4686
+ "@ai-matrx/rich-editor": "latest",
4687
+ "@ai-matrx/content-ir-react": "latest"
4648
4688
  },
4649
4689
  "devDependencies": {
4650
4690
  "@arethetypeswrong/cli": "^0.18.5",
@@ -4762,5 +4802,5 @@
4762
4802
  "check:side-effects": "node ../scripts/check-side-effects-listed.mjs . && node ../scripts/check-side-effects-listed.mjs --self-test",
4763
4803
  "check:public-surface": "node ./scripts/sync-public-surface.mjs --check && node ./scripts/sync-public-surface.mjs --self-test"
4764
4804
  },
4765
- "gitHead": "5c8ccea93390e2e507cc848eb9a00c84e4e695e8"
4805
+ "gitHead": "e676f281641751cab0ba3dfa141b212816fc7e5e"
4766
4806
  }