@copilotz/chat-ui 0.8.1 → 0.8.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -93,7 +93,7 @@ interface AssistantActivityBlock {
|
|
|
93
93
|
}
|
|
94
94
|
interface ChatSender {
|
|
95
95
|
/** Copilotz sender type from the message domain. */
|
|
96
|
-
type: "user" | "agent" | "tool" | "system";
|
|
96
|
+
type: "user" | "agent" | "tool" | "system" | "job";
|
|
97
97
|
/** Conversational identity: user external id, agent id, or tool owner id. */
|
|
98
98
|
id: string;
|
|
99
99
|
/** Human-readable display label. */
|
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ interface AssistantActivityBlock {
|
|
|
93
93
|
}
|
|
94
94
|
interface ChatSender {
|
|
95
95
|
/** Copilotz sender type from the message domain. */
|
|
96
|
-
type: "user" | "agent" | "tool" | "system";
|
|
96
|
+
type: "user" | "agent" | "tool" | "system" | "job";
|
|
97
97
|
/** Conversational identity: user external id, agent id, or tool owner id. */
|
|
98
98
|
id: string;
|
|
99
99
|
/** Human-readable display label. */
|
package/dist/index.js
CHANGED
|
@@ -748,7 +748,7 @@ var resolveMessageSenderDisplay = ({
|
|
|
748
748
|
compactMode = false
|
|
749
749
|
}) => {
|
|
750
750
|
const name = sender?.name?.trim() || fallbackName;
|
|
751
|
-
const isAgentLike = sender?.type === "agent" || sender?.type === "tool";
|
|
751
|
+
const isAgentLike = sender?.type === "agent" || sender?.type === "tool" || sender?.type === "job";
|
|
752
752
|
const color = sender?.color || (isAgentLike && sender?.id ? getAgentColor(sender.id) : void 0);
|
|
753
753
|
const fallbackClassName = color ? `${compactMode ? "text-[10px]" : ""}` : sender?.type === "user" ? "bg-primary text-primary-foreground" : "bg-secondary text-secondary-foreground";
|
|
754
754
|
const fallbackContent = isAgentLike ? getAgentInitials(name) : name.charAt(0).toUpperCase();
|