@ai-matrx/chat 0.7.31 → 0.7.32
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.32
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/chat/v0.7.31..npm/chat/v0.7.32 -- apps/shared/chat`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.7.31
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -20,7 +20,7 @@ export declare function surfaceNameForKind(kind: WorkingDocumentKind): string;
|
|
|
20
20
|
export declare function sourceFeatureForKind(kind: WorkingDocumentKind): SourceFeature;
|
|
21
21
|
/** `UnifiedAgentContextMenu` prop bundle for a document kind. */
|
|
22
22
|
export declare function workingDocumentContextMenuProps(kind: WorkingDocumentKind): {
|
|
23
|
-
sourceFeature: "action_request_continuation" | "action_request_credential" | "action_request_one_time_code" | "action_request_park" | "action_request_resolve" | "admin" | "agent" | "agent-app" | "agent-builder" | "agent-comparison" | "agent-factory" | "agent-generator" | "agent-runner" | "agent-service" | "agent-studio" | "agent_blocks" | "agent_call" | "agent_factory.copy_probe" | "agent_factory.tool_probe" | "agent_flow_v1" | "agent_foundry_v1" | "agent_run" | "agent_structure_builder" | "agent_tool" | "agent_usage_sync" | "agents-other" | "ai-results" | "ai_judge" | "analysis-studio" | "auto_ingest" | "auto_ingest_ner" | "background_agent" | "billing" | "browser_handoff_delegate" | "browser_handoff_resolve" | "browser_session_health" | "builtin_agent" | "builtin_categorize" | "canvas" | "chat" | "chat-canary" | "claude-code" | "clean_pdf_extracted_content" | "client-unmapped" | "cloud_browser.local_login_learning" | "cms" | "code-editor" | "codex" | "coding_session_bridge.backfill" | "coding_session_native" | "coding_session_reply" | "communications.sms" | "conductor" | "content-extractor" | "content_plan_acceptance" | "content_plan_cms_fill" | "content_plan_cms_fill_preview" | "content_plan_deepen" | "content_plan_generate" | "content_processing" | "content_processing.research_landing" | "content_processing.transcript_landing" | "content_processing_upload_hook" | "context-parity" | "context_compare_answer" | "context_follow_listener" | "context_summary" | "conversation" | "conversation_context" | "conversation_crash_recovery" | "conversation_fork" | "conversation_resume" | "coverage" | "crawl_run" | "crm" | "crm.media_list_refresh" | "crm.media_list_research" | "crm.party_kind" | "crm.personalization" | "cursor" | "deep_research_v1" | "deferred_claim_recovery" | "dictionary" | "distillation_coherence" | "doc_verify" | "documents" | "education-analytics" | "education-assessment" | "education-fastfire" | "education-flashcards" | "education-ingest" | "education-media-reconcile" | "education-mindmap" | "education-planner" | "education-tutor" | "education_card_image_generator" | "education_card_image_prompt_writer" | "education_card_image_qc_judge" | "education_card_image_rot" | "education_card_image_web_source" | "education_card_images" | "education_study_pack" | "education_study_pack_v2" | "endpoint_family_sweep" | "external_url_change" | "files" | "fork_and_run" | "google_workspace.approval_replay" | "group_chat_cadence" | "hindsight" | "hindsight/crystallization" | "hindsight/wire_replay" | "hindsight_replay" | "hindsight_replay_worker" | "hindsight_shadow_recompilation" | "hr" | "human_decisions" | "image-studio" | "incident-assurance" | "internal" | "judge" | "kg_clustering_namer" | "legal" | "local_proxy" | "mandate_candidate_review" | "mandates.batch_lane" | "manual" | "marketing" | "masterwork" | "masterwork_audition_elicitation_vanilla" | "masterwork_audition_outcome_vanilla" | "masterwork_audition_unfolding_vanilla" | "masterwork_audition_vanilla" | "masterwork_bench_a2" | "masterwork_bench_extract" | "masterwork_bench_judge" | "masterwork_bench_panel" | "masterwork_build" | "masterwork_recovery" | "media_catalog" | "media_heal" | "meet:after_meeting_workflow" | "mermaid-workbench" | "messages" | "ner" | "news_monitor" | "notes" | "notify_listener" | "outcome_attribution" | "outreach" | "page_extraction" | "page_extraction_retry" | "pdf-cleaner" | "pdf-extractor" | "pdf-widgets" | "personal-staff" | "personal_staff_workspace_listener" | "platform_checks" | "platform_checks_drain" | "podcasts" | "print" | "product_capture_intake" | "product_capture_research" | "projects" | "prompt" | "proof_run:content_plan_family_grounding" | "proof_run:news_self_validating" | "provenance" | "provider_outage" | "rag" | "rag-search" | "rag.page_clean" | "rag_chunk_contextualizer" | "rag_hyde_generator" | "rag_pdf_page_cleaner" | "rag_query_expander" | "reachability" | "realtime" | "realtime_tool" | "registry_ingestion.pass" | "request_snapshot_blob" | "reroute" | "research" | "research_condenser_1" | "research_condenser_2" | "research_refresh_dispatch" | "row_history" | "scanner" | "scheduled" | "schema_coerce" | "scraper" | "scratchpad" | "screen_tool_run" | "seo" | "seo.engine_schedule_dispatcher" | "seo.keyword_place_backfill" | "seo.page_analysis" | "seo.rank_schedule" | "seo_analysis_sweep" | "seo_keyword_research" | "server-door" | "server-run" | "sharing" | "sms-assistant" | "sms-outbound" | "socket_compat" | "source_intelligence" | "staff-inbox-driver" | "suggestion_sweep" | "summarize_content" | "sweep_listener" | "system" | "tasks" | "test.agent_factory.intake" | "tool-call-visualization" | "tool-testing" | "transcription" | "udt" | "vision_interview" | "vision_interview_tracker" | "voice-agent" | "vscode" | "web-capture" | "web_crawl_crash_resume" | "web_crawl_schedule_dispatch" | "web_research" | "web_url_announce" | "whole_value_follower" | "workflow_decision_fallback" | "workflow_extract_sweep" | "workflow_holder_proof" | "workflow_node_test" | "workflow_plan_assist" | "workflow_recovery_advisor" | "workflow_recovery_push" | "workflow_recovery_resolve" | "workflow_run" | "workflow_run_assists" | "workflow_worker" | "working-document" | "youtube_research_processing" | "youtube_transcription";
|
|
23
|
+
sourceFeature: "action_request_continuation" | "action_request_credential" | "action_request_one_time_code" | "action_request_park" | "action_request_resolve" | "admin" | "agent" | "agent-app" | "agent-builder" | "agent-comparison" | "agent-factory" | "agent-generator" | "agent-mail" | "agent-runner" | "agent-service" | "agent-studio" | "agent_blocks" | "agent_call" | "agent_factory.copy_probe" | "agent_factory.tool_probe" | "agent_flow_v1" | "agent_foundry_v1" | "agent_run" | "agent_structure_builder" | "agent_tool" | "agent_usage_sync" | "agents-other" | "ai-results" | "ai_judge" | "analysis-studio" | "auto_ingest" | "auto_ingest_ner" | "background_agent" | "billing" | "browser_handoff_delegate" | "browser_handoff_resolve" | "browser_session_health" | "builtin_agent" | "builtin_categorize" | "canvas" | "chat" | "chat-canary" | "claude-code" | "clean_pdf_extracted_content" | "client-unmapped" | "cloud_browser.local_login_learning" | "cms" | "code-editor" | "codex" | "coding_session_bridge.backfill" | "coding_session_native" | "coding_session_reply" | "communications.sms" | "conductor" | "content-extractor" | "content_plan_acceptance" | "content_plan_cms_fill" | "content_plan_cms_fill_preview" | "content_plan_deepen" | "content_plan_generate" | "content_processing" | "content_processing.research_landing" | "content_processing.transcript_landing" | "content_processing_upload_hook" | "context-parity" | "context_compare_answer" | "context_follow_listener" | "context_summary" | "conversation" | "conversation_context" | "conversation_crash_recovery" | "conversation_fork" | "conversation_resume" | "coverage" | "crawl_run" | "crm" | "crm.media_list_refresh" | "crm.media_list_research" | "crm.party_kind" | "crm.personalization" | "cursor" | "deep_research_v1" | "deferred_claim_recovery" | "dictionary" | "distillation_coherence" | "doc_verify" | "documents" | "education-analytics" | "education-assessment" | "education-fastfire" | "education-flashcards" | "education-ingest" | "education-kit-outline" | "education-media-reconcile" | "education-mindmap" | "education-planner" | "education-tutor" | "education_card_image_generator" | "education_card_image_prompt_writer" | "education_card_image_qc_judge" | "education_card_image_rot" | "education_card_image_web_source" | "education_card_images" | "education_study_pack" | "education_study_pack_v2" | "endpoint_family_sweep" | "external_url_change" | "files" | "fork_and_run" | "google_workspace.approval_replay" | "group_chat_cadence" | "hindsight" | "hindsight/crystallization" | "hindsight/wire_replay" | "hindsight_replay" | "hindsight_replay_worker" | "hindsight_shadow_recompilation" | "hr" | "human_decisions" | "image-studio" | "incident-assurance" | "internal" | "judge" | "kg_clustering_namer" | "legal" | "local_proxy" | "mandate_candidate_review" | "mandates.batch_lane" | "manual" | "marketing" | "masterwork" | "masterwork_audition_elicitation_vanilla" | "masterwork_audition_outcome_vanilla" | "masterwork_audition_unfolding_vanilla" | "masterwork_audition_vanilla" | "masterwork_bench_a2" | "masterwork_bench_extract" | "masterwork_bench_judge" | "masterwork_bench_panel" | "masterwork_build" | "masterwork_recovery" | "media_catalog" | "media_heal" | "meet:after_meeting_workflow" | "mermaid-workbench" | "messages" | "ner" | "news_monitor" | "notes" | "notify_listener" | "outcome_attribution" | "outreach" | "page_extraction" | "page_extraction_retry" | "pdf-cleaner" | "pdf-extractor" | "pdf-widgets" | "personal-staff" | "personal_staff_workspace_listener" | "platform_checks" | "platform_checks_drain" | "podcasts" | "print" | "product_capture_intake" | "product_capture_research" | "projects" | "prompt" | "proof_run:content_plan_family_grounding" | "proof_run:news_self_validating" | "provenance" | "provider_outage" | "rag" | "rag-search" | "rag.page_clean" | "rag_chunk_contextualizer" | "rag_hyde_generator" | "rag_pdf_page_cleaner" | "rag_query_expander" | "reachability" | "realtime" | "realtime_tool" | "registry_ingestion.pass" | "request_snapshot_blob" | "reroute" | "research" | "research_condenser_1" | "research_condenser_2" | "research_refresh_dispatch" | "row_history" | "scanner" | "scheduled" | "schema_coerce" | "scraper" | "scratchpad" | "screen_tool_run" | "seo" | "seo.engine_schedule_dispatcher" | "seo.keyword_place_backfill" | "seo.page_analysis" | "seo.rank_schedule" | "seo_analysis_sweep" | "seo_keyword_research" | "server-door" | "server-run" | "sharing" | "sms-assistant" | "sms-outbound" | "socket_compat" | "source_intelligence" | "staff-inbox-driver" | "suggestion_sweep" | "summarize_content" | "sweep_listener" | "system" | "tasks" | "test.agent_factory.intake" | "tool-call-visualization" | "tool-testing" | "transcription" | "udt" | "vision_interview" | "vision_interview_tracker" | "voice-agent" | "vscode" | "web-capture" | "web_crawl_crash_resume" | "web_crawl_schedule_dispatch" | "web_research" | "web_url_announce" | "whole_value_follower" | "workflow_decision_fallback" | "workflow_extract_sweep" | "workflow_holder_proof" | "workflow_node_test" | "workflow_plan_assist" | "workflow_recovery_advisor" | "workflow_recovery_push" | "workflow_recovery_resolve" | "workflow_run" | "workflow_run_assists" | "workflow_worker" | "working-document" | "youtube_research_processing" | "youtube_transcription";
|
|
24
24
|
surfaceName: string;
|
|
25
25
|
isEditable: true;
|
|
26
26
|
enabledPlacements: ("ai-action" | "content-block" | "quick-action")[];
|
|
@@ -117,6 +117,7 @@ function serviceProxy(key) {
|
|
|
117
117
|
{},
|
|
118
118
|
{
|
|
119
119
|
get: (_t, prop) => {
|
|
120
|
+
if (typeof prop === "symbol" || prop === "$$typeof" || prop === "__esModule" || prop === "then") return void 0;
|
|
120
121
|
const service = source.get(key);
|
|
121
122
|
const member = service?.[prop];
|
|
122
123
|
return typeof member === "function" ? member.bind(service) : member;
|
|
@@ -6,6 +6,7 @@ import { TextInputDialog } from "@ai-matrx/design-system";
|
|
|
6
6
|
import { useAppDispatch, useAppSelector } from "../../store/hooks.js";
|
|
7
7
|
import { useMandateSet } from "../../mandates/useMandateSet.js";
|
|
8
8
|
import { fetchConversationHistory } from "../../agents/redux/conversation-history/thunks.js";
|
|
9
|
+
import { setScopeLanes } from "../../agents/redux/conversation-history/slice.js";
|
|
9
10
|
import { renameConversation } from "../../agents/redux/conversation-list/conversation-row-actions.thunks.js";
|
|
10
11
|
import { ChatRoomClient } from "../../agents/components/chat/ChatRoomClient.js";
|
|
11
12
|
import { ChatRoomSkeleton } from "../../agents/components/chat/ChatRoomSkeleton.js";
|
|
@@ -35,6 +36,7 @@ const SPACE_ALL = "all";
|
|
|
35
36
|
const SPACE_PINNED = "pinned";
|
|
36
37
|
const SPACE_MANAGE = "manage";
|
|
37
38
|
const STARTER_LABEL = "Starter";
|
|
39
|
+
const THREAD_LANES = ["chat"];
|
|
38
40
|
const DEFAULT_HREFS = {
|
|
39
41
|
agent: (id) => `/agents/${id}`,
|
|
40
42
|
editAgent: (id) => `/agents/${id}/build`,
|
|
@@ -157,7 +159,10 @@ function useAgentsMessengerSource(options = {}) {
|
|
|
157
159
|
return [...ids];
|
|
158
160
|
}, [roster.agents, person.threads]);
|
|
159
161
|
const loadThreads = useCallback(
|
|
160
|
-
(agentId, replace = true) =>
|
|
162
|
+
(agentId, replace = true) => {
|
|
163
|
+
dispatch(setScopeLanes({ scopeId: scopeIdOf(agentId), lanes: [...THREAD_LANES] }));
|
|
164
|
+
return dispatch(fetchConversationHistory({ scopeId: scopeIdOf(agentId), agentIds: [agentId], pageSize: PAGE_SIZE, replace }));
|
|
165
|
+
},
|
|
161
166
|
[dispatch]
|
|
162
167
|
);
|
|
163
168
|
const threadKey = threadAgentIds.join(",");
|
|
@@ -187,17 +192,17 @@ function useAgentsMessengerSource(options = {}) {
|
|
|
187
192
|
const [space, setSpace] = useState(SPACE_ALL);
|
|
188
193
|
const [manageOpen, setManageOpen] = useState(false);
|
|
189
194
|
const [renaming, setRenaming] = useState(null);
|
|
195
|
+
const pinnedThreadIds = useMemo(() => new Set(person.threads.keys()), [person.threads]);
|
|
190
196
|
const currentThreadOf = useCallback(
|
|
191
197
|
(agentId) => {
|
|
192
198
|
const choice = choices[agentId];
|
|
193
199
|
if (choice) return choice.conversationId;
|
|
194
200
|
const scope = scopes[scopeIdOf(agentId)];
|
|
195
201
|
if (!scope || scope.status === "idle" || scope.status === "loading" && scope.items.length === 0) return void 0;
|
|
196
|
-
return scope.items
|
|
202
|
+
return scope.items.find((t) => !pinnedThreadIds.has(t.conversationId))?.conversationId ?? null;
|
|
197
203
|
},
|
|
198
|
-
[choices, scopes]
|
|
204
|
+
[choices, scopes, pinnedThreadIds]
|
|
199
205
|
);
|
|
200
|
-
const pinnedThreadIds = useMemo(() => new Set(person.threads.keys()), [person.threads]);
|
|
201
206
|
const openAgentThread = useCallback(
|
|
202
207
|
(agentId, conversationId) => {
|
|
203
208
|
setManageOpen(false);
|
|
@@ -91,7 +91,8 @@ function orderRows({ roster, threadsByAgent, pinnedThreads }) {
|
|
|
91
91
|
row: {
|
|
92
92
|
kind: "agent",
|
|
93
93
|
agentId: agent.agentId,
|
|
94
|
-
|
|
94
|
+
// A pinned thread has its own row, so the agent row previews its latest OTHER thread.
|
|
95
|
+
latest: threadsByAgent.get(agent.agentId)?.find((t) => !pinnedThreads.has(t.conversationId)) ?? null,
|
|
95
96
|
pinned: agent.pinned
|
|
96
97
|
}
|
|
97
98
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/chat",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.32",
|
|
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",
|
|
@@ -4716,15 +4716,15 @@
|
|
|
4716
4716
|
"server-only": "^0.0.1",
|
|
4717
4717
|
"uuid": "^14.0.2",
|
|
4718
4718
|
"zod": "^4.6.5",
|
|
4719
|
+
"@ai-matrx/agents": "latest",
|
|
4720
|
+
"@ai-matrx/alchemy": "latest",
|
|
4719
4721
|
"@ai-matrx/associations": "latest",
|
|
4720
4722
|
"@ai-matrx/browser-audio": "latest",
|
|
4721
|
-
"@ai-matrx/canvas": "latest",
|
|
4722
4723
|
"@ai-matrx/content-ir": "latest",
|
|
4723
4724
|
"@ai-matrx/content-ir-react": "latest",
|
|
4724
|
-
"@ai-matrx/alchemy": "latest",
|
|
4725
4725
|
"@ai-matrx/data": "latest",
|
|
4726
|
-
"@ai-matrx/agents": "latest",
|
|
4727
4726
|
"@ai-matrx/design-system": "latest",
|
|
4727
|
+
"@ai-matrx/diff": "latest",
|
|
4728
4728
|
"@ai-matrx/icons": "latest",
|
|
4729
4729
|
"@ai-matrx/kit": "latest",
|
|
4730
4730
|
"@ai-matrx/media": "latest",
|
|
@@ -4735,7 +4735,7 @@
|
|
|
4735
4735
|
"@ai-matrx/records-ui": "latest",
|
|
4736
4736
|
"@ai-matrx/rich-content": "latest",
|
|
4737
4737
|
"@ai-matrx/rich-editor": "latest",
|
|
4738
|
-
"@ai-matrx/
|
|
4738
|
+
"@ai-matrx/canvas": "latest"
|
|
4739
4739
|
},
|
|
4740
4740
|
"devDependencies": {
|
|
4741
4741
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
@@ -4854,5 +4854,5 @@
|
|
|
4854
4854
|
"check:side-effects": "node ../scripts/check-side-effects-listed.mjs . && node ../scripts/check-side-effects-listed.mjs --self-test",
|
|
4855
4855
|
"check:public-surface": "node ./scripts/sync-public-surface.mjs --check && node ./scripts/sync-public-surface.mjs --self-test"
|
|
4856
4856
|
},
|
|
4857
|
-
"gitHead": "
|
|
4857
|
+
"gitHead": "c7124c3f07049b86a193524040ff19d1aef7b9a4"
|
|
4858
4858
|
}
|