@jini-ai/admin 0.7.3-next.3 → 0.7.3-next.4
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/react/kit-chat-component-types.d.ts +4 -0
- package/dist/shell/components/AssistantDock/DockChatPane.d.ts +6 -3
- package/dist/shell/components/AssistantDock/DockChatPane.js +5 -2
- package/dist/shell/components/AssistantDock/DockCleanupHeader.d.ts +23 -14
- package/dist/shell/components/AssistantDock/DockCleanupHeader.js +8 -5
- package/dist/shell/components/AssistantDock/DockHeader.d.ts +6 -6
- package/dist/shell/components/AssistantDock/DockHeader.js +1 -1
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-es-id-de.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-hi-ur-bn.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-hu-fr-uk.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-ja-ko-pl.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-ru-fa-ar.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-tr-th-it.js +6 -0
- package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-zh-cn-zh-tw-pt-br.js +6 -0
- package/dist/shell/components/AssistantDock/dock-pane-props.d.ts +4 -1
- package/dist/shell/components/AssistantDock/dock-pane-props.js +4 -4
- package/package.json +4 -4
|
@@ -147,6 +147,8 @@ export interface KitChatSettingsDialogProps {
|
|
|
147
147
|
displaySections: readonly KitChatSettingsSection[];
|
|
148
148
|
permissions: KitChatPermissionsPort;
|
|
149
149
|
t?: (key: string) => string;
|
|
150
|
+
/** A host control after the display groups (the dock mounts its chat cleanup here). */
|
|
151
|
+
displayExtra?: ReactNode;
|
|
150
152
|
}
|
|
151
153
|
export interface KitJiniChatProviderProps {
|
|
152
154
|
transport: ChatTransport;
|
|
@@ -187,6 +189,8 @@ export interface KitConversationListProps {
|
|
|
187
189
|
onSelectionChange?: ((required: {
|
|
188
190
|
ids: string[];
|
|
189
191
|
}) => void) | undefined;
|
|
192
|
+
/** The host's actions over ticked rows, at the foot of the open list while `selectable` is on. */
|
|
193
|
+
selectionActions?: ReactNode;
|
|
190
194
|
}
|
|
191
195
|
/** Opaque list-view hooks a host's conversation switcher understands; see {@link KitConversationListProps.hooks}. */
|
|
192
196
|
export type KitConversationListHooks = object;
|
|
@@ -2,7 +2,7 @@ import type { ComponentProps, ComponentType } from "react";
|
|
|
2
2
|
import type { KitChatPaneProps, KitChatSettingsDialogProps, KitJiniChatProviderProps } from "../../../react/kit.js";
|
|
3
3
|
import type { ConfirmDialog } from "../../../react/index.js";
|
|
4
4
|
import type { SkillInstallConfirmation } from "../../../screens/skills/SkillInstallConfirmation.js";
|
|
5
|
-
import type { DockCleanupHeaderProps, DockChatCleanup } from "./DockCleanupHeader.js";
|
|
5
|
+
import type { DockCleanupHeaderProps, DockChatCleanup, DockChatCleanupPanel, UseDockChatCleanup } from "./DockCleanupHeader.js";
|
|
6
6
|
import type { AssistantDockState } from "./AssistantDock.state.hooks.js";
|
|
7
7
|
import type { FailureSurfaceContext } from "./AgentFailureCard.hooks.js";
|
|
8
8
|
import type { DockLeadingAccessory } from "./DockLeadingAccessory.js";
|
|
@@ -21,7 +21,10 @@ type PaneProps = {
|
|
|
21
21
|
ChatSettingsDialog: ComponentType<KitChatSettingsDialogProps>;
|
|
22
22
|
ConversationTitle: DockCleanupHeaderProps<DockChatCleanup>["ConversationTitle"];
|
|
23
23
|
DockCleanupHeader: ComponentType<Omit<DockCleanupHeaderProps<DockChatCleanup>, "DockHeader">>;
|
|
24
|
-
|
|
24
|
+
/** The settings-dialog half of the chat cleanup (broom toggle and age cleanup). */
|
|
25
|
+
ChatCleanupPanel: DockChatCleanupPanel<DockChatCleanup>;
|
|
26
|
+
/** The chat-list half ("Delete selected", "Done"), shown while rows are ticked. */
|
|
27
|
+
ChatCleanupSelectionActions: DockChatCleanupPanel<DockChatCleanup>;
|
|
25
28
|
SkillInstallConfirmation: ComponentType<ComponentProps<typeof SkillInstallConfirmation>>;
|
|
26
29
|
ConfirmDialog: ComponentType<ComponentProps<typeof ConfirmDialog>>;
|
|
27
30
|
PushToTalkMicButton: ComponentType<{
|
|
@@ -32,7 +35,7 @@ type PaneProps = {
|
|
|
32
35
|
};
|
|
33
36
|
};
|
|
34
37
|
hooks: {
|
|
35
|
-
useDockChatCleanup:
|
|
38
|
+
useDockChatCleanup: UseDockChatCleanup<DockChatCleanup>;
|
|
36
39
|
useWiredAssistantSubagentsSettings: DockCleanupHeaderProps<DockChatCleanup>["useSubagentsSettingsHook"];
|
|
37
40
|
};
|
|
38
41
|
deps: {
|
|
@@ -22,13 +22,16 @@ export function bindDockChatPane({ kit, hooks, deps }, _optional = {}) {
|
|
|
22
22
|
}
|
|
23
23
|
/** The dock's view: providers, the failure/skill surfaces, the drop zone around the chat pane, and its dialogs. */
|
|
24
24
|
export function DockChatPane({ dock, kit, hooks, deps }, _optional = {}) {
|
|
25
|
-
const { JiniChatProvider, FailureSurfaceProvider, SkillInstallConfirmation, ConfirmDialog, ChatSettingsDialog } = kit;
|
|
25
|
+
const { JiniChatProvider, FailureSurfaceProvider, SkillInstallConfirmation, ConfirmDialog, ChatSettingsDialog, ChatCleanupPanel } = kit;
|
|
26
26
|
const { skillInstallConfirmationHost: SKILL_INSTALL_CONFIRMATION_HOST, dockSettingsMenuSections, toolCallOptions, replyLengthOptions } = deps;
|
|
27
27
|
const { ChatPaneView, renderers, locale, t, chatI18n, conversationDelete, chatDisplay, agentPlugins, chatSettings, agentPermissions, executionPolicy, pageActivationError, chats, skillInstall, discoveryDraft, captureComposerClick, folderDrop, failureSurface } = dock;
|
|
28
|
+
// One cleanup per dock, here rather than in the header: its toggle lives in the More settings
|
|
29
|
+
// dialog while its ticking and pins drive the header's switcher, so both must read one state.
|
|
30
|
+
const chatCleanup = hooks.useDockChatCleanup({ t, locale, untitled: chatI18n.t("Untitled") });
|
|
28
31
|
return (_jsx(JiniChatProvider, { transport: failureSurface.transport, i18n: chatI18n, extEventRendererRegistry: renderers.registry, children: _jsxs(FailureSurfaceProvider, { value: failureSurface.actions, children: [_jsx(SkillInstallConfirmation, { install: skillInstall, locale: locale, ...SKILL_INSTALL_CONFIRMATION_HOST }), pageActivationError && _jsx("div", { className: "jini-chat-pane__notice", role: "alert", children: t({ key: pageActivationError }) }), _jsxs("div", { className: "admin-chat-dock-drop", "data-testid": "admin-chat-driver-root", [deps.localCliDataAttribute]: executionPolicy.visibility, "data-conversation-id": chats.activeId ?? "", ref: discoveryDraft.rootRef, style: { display: "contents" }, onClickCapture: captureComposerClick, onChangeCapture: discoveryDraft.captureDraft, onDropCapture: folderDrop.handleDropCapture, children: [_jsx(ChatPaneView
|
|
29
32
|
// Remounts the pane on a conversation switch. `ChatPane` owns its transcript and takes
|
|
30
33
|
// `initialMessages` only at mount, so re-keying is how a different conversation's history
|
|
31
34
|
// gets in — pushing new messages into a live pane would fight its own state.
|
|
32
|
-
, { ...chatPaneSessionProps({ dock, kit, hooks, deps }), ...chatPaneChromeProps({ dock, kit, hooks, deps }), ...chatPaneComposerProps({ dock, kit, hooks, deps }) }, chats.paneKey), _jsx(ConfirmDialog, { ...conversationDelete.dialog }), _jsx(ChatSettingsDialog, { open: chatSettings.open, onClose: chatSettings.close, t: (key) => t({ key }), displaySections: dockSettingsMenuSections({ t: (key) => t({ key }), toolCallOptions, replyLengthOptions }, { display: chatDisplay, agentPlugins }), permissions: agentPermissions })] })] }) }));
|
|
35
|
+
, { ...chatPaneSessionProps({ dock, kit, hooks, deps }), ...chatPaneChromeProps({ dock, kit, hooks, deps, chatCleanup }), ...chatPaneComposerProps({ dock, kit, hooks, deps }) }, chats.paneKey), _jsx(ConfirmDialog, { ...conversationDelete.dialog }), _jsx(ChatSettingsDialog, { open: chatSettings.open, onClose: chatSettings.close, t: (key) => t({ key }), displaySections: dockSettingsMenuSections({ t: (key) => t({ key }), toolCallOptions, replyLengthOptions }, { display: chatDisplay, agentPlugins }), permissions: agentPermissions, displayExtra: _jsx(ChatCleanupPanel, { cleanup: chatCleanup, confirm: conversationDelete.confirm }) })] })] }) }));
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=DockChatPane.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentType } from "react";
|
|
2
2
|
import type { DockConversationTools, DockHeaderProps } from "./DockHeader.js";
|
|
3
3
|
/** The slice of the host's wired chat cleanup this header reads (structural: the host injects the
|
|
4
|
-
* cleanup hook and its
|
|
4
|
+
* cleanup hook and its panels, so this package carries no edge to the chat package). */
|
|
5
5
|
export interface DockChatCleanup {
|
|
6
6
|
readonly listHooks: DockConversationTools["listProps"]["hooks"];
|
|
7
7
|
readonly open: boolean;
|
|
@@ -15,27 +15,36 @@ export interface DockChatCleanup {
|
|
|
15
15
|
}) => void;
|
|
16
16
|
readonly visibleConversations: DockConversationTools["visibleConversations"];
|
|
17
17
|
}
|
|
18
|
+
/** A host cleanup panel: the settings-dialog half or the chat-list half, both fed the same state. */
|
|
19
|
+
export type DockChatCleanupPanel<Cleanup extends DockChatCleanup> = ComponentType<{
|
|
20
|
+
cleanup: Cleanup;
|
|
21
|
+
confirm: DockHeaderProps["conversationDelete"]["confirm"];
|
|
22
|
+
}>;
|
|
23
|
+
/** The host's cleanup hook (`useDockChatCleanup` in the app), called once per dock by `DockChatPane`. */
|
|
24
|
+
export type UseDockChatCleanup<Cleanup extends DockChatCleanup> = (required: {
|
|
25
|
+
t: DockHeaderProps["t"];
|
|
26
|
+
locale: string;
|
|
27
|
+
untitled: string;
|
|
28
|
+
}) => Cleanup;
|
|
18
29
|
export interface DockCleanupHeaderProps<Cleanup extends DockChatCleanup> extends Omit<DockHeaderProps, "conversationTools"> {
|
|
19
30
|
readonly DockHeader: ComponentType<DockHeaderProps>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** Required, no default: the switcher's list hooks, pins, selection and cleanup (`useDockChatCleanup` in the app). */
|
|
25
|
-
readonly useChatCleanup: (required: {
|
|
26
|
-
t: DockHeaderProps["t"];
|
|
27
|
-
locale: string;
|
|
28
|
-
untitled: string;
|
|
29
|
-
}) => Cleanup;
|
|
31
|
+
/** Required: the dock's one wired cleanup; the More settings dialog reads the same instance. */
|
|
32
|
+
readonly chatCleanup: Cleanup;
|
|
33
|
+
/** The list half: "Delete selected" and "Done" at the foot of the switcher while rows are ticked. */
|
|
34
|
+
readonly ChatCleanupSelectionActions: DockChatCleanupPanel<Cleanup>;
|
|
30
35
|
}
|
|
31
36
|
/**
|
|
32
37
|
* The dock header `DockChatPane` mounts: `@jini-ai/admin`'s `DockHeader` with the P11 chat cleanup
|
|
33
|
-
* fed through its `conversationTools` slot — the switcher gets the cleanup's list hooks, pinning
|
|
34
|
-
* row ticking
|
|
38
|
+
* fed through its `conversationTools` slot — the switcher gets the cleanup's list hooks, pinning,
|
|
39
|
+
* row ticking and the selection actions at its foot. Delete-selected waits on the same admin
|
|
35
40
|
* confirm dialog as the switcher's own delete.
|
|
36
41
|
*
|
|
42
|
+
* Why nothing beside the switcher: the "Clean up chats" toggle used to sit in the header row as a
|
|
43
|
+
* filled text button among small icons (owner, 2026-11-29). It now lives in the More settings
|
|
44
|
+
* dialog (`DockChatPane`'s `displayExtra`), which is why the cleanup comes in as a shared instance.
|
|
45
|
+
*
|
|
37
46
|
* @returns The Jini header with the cleanup mounted.
|
|
38
47
|
* @complexity O(1) beyond `DockHeader`'s own render.
|
|
39
48
|
*/
|
|
40
|
-
export declare function DockCleanupHeader<Cleanup extends DockChatCleanup>({ DockHeader,
|
|
49
|
+
export declare function DockCleanupHeader<Cleanup extends DockChatCleanup>({ DockHeader, chatCleanup, ChatCleanupSelectionActions, ...header }: DockCleanupHeaderProps<Cleanup>, _optional?: {}): import("react").JSX.Element;
|
|
41
50
|
//# sourceMappingURL=DockCleanupHeader.d.ts.map
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
3
|
* The dock header `DockChatPane` mounts: `@jini-ai/admin`'s `DockHeader` with the P11 chat cleanup
|
|
4
|
-
* fed through its `conversationTools` slot — the switcher gets the cleanup's list hooks, pinning
|
|
5
|
-
* row ticking
|
|
4
|
+
* fed through its `conversationTools` slot — the switcher gets the cleanup's list hooks, pinning,
|
|
5
|
+
* row ticking and the selection actions at its foot. Delete-selected waits on the same admin
|
|
6
6
|
* confirm dialog as the switcher's own delete.
|
|
7
7
|
*
|
|
8
|
+
* Why nothing beside the switcher: the "Clean up chats" toggle used to sit in the header row as a
|
|
9
|
+
* filled text button among small icons (owner, 2026-11-29). It now lives in the More settings
|
|
10
|
+
* dialog (`DockChatPane`'s `displayExtra`), which is why the cleanup comes in as a shared instance.
|
|
11
|
+
*
|
|
8
12
|
* @returns The Jini header with the cleanup mounted.
|
|
9
13
|
* @complexity O(1) beyond `DockHeader`'s own render.
|
|
10
14
|
*/
|
|
11
|
-
export function DockCleanupHeader({ DockHeader,
|
|
12
|
-
const chatCleanup = useChatCleanup({ t: header.t, locale: header.locale, untitled: header.chatI18n.t("Untitled") });
|
|
15
|
+
export function DockCleanupHeader({ DockHeader, chatCleanup, ChatCleanupSelectionActions, ...header }, _optional = {}) {
|
|
13
16
|
const conversationTools = {
|
|
14
17
|
listProps: {
|
|
15
18
|
hooks: chatCleanup.listHooks,
|
|
@@ -17,9 +20,9 @@ export function DockCleanupHeader({ DockHeader, ChatCleanupPanel, useChatCleanup
|
|
|
17
20
|
selectable: chatCleanup.open,
|
|
18
21
|
selectedIds: chatCleanup.selectedIds,
|
|
19
22
|
onSelectionChange: chatCleanup.select,
|
|
23
|
+
selectionActions: _jsx(ChatCleanupSelectionActions, { cleanup: chatCleanup, confirm: header.conversationDelete.confirm }),
|
|
20
24
|
},
|
|
21
25
|
visibleConversations: chatCleanup.visibleConversations,
|
|
22
|
-
accessory: _jsx(ChatCleanupPanel, { cleanup: chatCleanup, confirm: header.conversationDelete.confirm }),
|
|
23
26
|
};
|
|
24
27
|
return _jsx(DockHeader, { ...header, conversationTools: conversationTools });
|
|
25
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentProps, type ComponentType
|
|
1
|
+
import { type ComponentProps, type ComponentType } from "react";
|
|
2
2
|
import { type I18nAdapter, type KitConversationListProps } from "../../../react/kit.js";
|
|
3
3
|
import type { useConfirmRequest } from "../../../react/index.js";
|
|
4
4
|
import type { UseAssistantChats } from "../../hooks/use-assistant-chats.hooks.js";
|
|
@@ -10,15 +10,15 @@ type SubagentsIndicatorProps = ComponentProps<typeof SubagentsIndicator>;
|
|
|
10
10
|
type DockConversationRow = UseAssistantChats["conversations"][number];
|
|
11
11
|
/**
|
|
12
12
|
* What a host adds to the dock's conversation switcher: the extra switcher props it binds (list-view
|
|
13
|
-
* hooks, pinning, row ticking
|
|
14
|
-
*
|
|
13
|
+
* hooks, pinning, row ticking and the actions over ticked rows) and a filter over the rows it shows
|
|
14
|
+
* (e.g. rows the host just removed). The dock owns none of it. There is deliberately no slot beside
|
|
15
|
+
* the switcher: the header row holds only icon buttons (owner, 2026-11-29).
|
|
15
16
|
*/
|
|
16
17
|
export interface DockConversationTools {
|
|
17
|
-
readonly listProps: Pick<KitConversationListProps, "hooks" | "selectable" | "selectedIds" | "onTogglePin" | "onSelectionChange">;
|
|
18
|
+
readonly listProps: Pick<KitConversationListProps, "hooks" | "selectable" | "selectedIds" | "onTogglePin" | "onSelectionChange" | "selectionActions">;
|
|
18
19
|
readonly visibleConversations: (required: {
|
|
19
20
|
conversations: DockConversationRow[];
|
|
20
21
|
}) => DockConversationRow[];
|
|
21
|
-
readonly accessory: ReactNode;
|
|
22
22
|
}
|
|
23
23
|
export interface DockHeaderProps {
|
|
24
24
|
/** The dock's conversation state; the switcher and the title editor drive it directly. */
|
|
@@ -64,7 +64,7 @@ export interface DockHeaderProps {
|
|
|
64
64
|
disabled: boolean;
|
|
65
65
|
onRename: (title: string) => void | Promise<void>;
|
|
66
66
|
}>;
|
|
67
|
-
/** Required, `null` for none: the host's switcher extras
|
|
67
|
+
/** Required, `null` for none: the host's switcher extras. */
|
|
68
68
|
readonly conversationTools: DockConversationTools | null;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
@@ -40,6 +40,6 @@ export function DockHeader({ chats, activeTitle, mode, agentId, locale, t, chatI
|
|
|
40
40
|
} }), onRename: onRename,
|
|
41
41
|
// The white "Chats" tip above replaces the browser's dark native one, so the
|
|
42
42
|
// switcher drops its own `title` and takes the same name for screen readers.
|
|
43
|
-
triggerLabel: t({ key: "Chats" }), nativeTitle: false }) }),
|
|
43
|
+
triggerLabel: t({ key: "Chats" }), nativeTitle: false }) }), _jsx(DockHeaderTip, { label: t({ key: "Settings" }), children: _jsx(DockSettingsMenu, { label: t({ key: "Settings" }), sections: dockSettingsMenuSections({ t: (key) => t({ key }), toolCallOptions, replyLengthOptions }, { display: chatDisplay, agentPlugins, runtime, onMoreSettings }), notice: anySaveFailed({ chatDisplay, agentPlugins, runtime }) ? t({ key: "Couldn't save. This choice lasts until you reload." }) : undefined, useTaxonomyRowMenuHook: useTaxonomyRowMenu, ChatSettingsSegmented: ChatSettingsSegmented }) })] }), empty ? (_jsx("div", { className: "jini-assistant-empty-state", role: "status", children: _jsx("p", { children: t({ key: "Hello! Ask me to help with your site." }) }) })) : null] }));
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=DockHeader.js.map
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_ES_ID_DE = {
|
|
|
29
29
|
"Voice input (coming soon)": "Entrada de voz (próximamente)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Detiene el uso futuro en este chat. Las instrucciones ya cargadas permanecen en el contexto actual.",
|
|
31
31
|
"Rename chat": "Renombrar chat",
|
|
32
|
+
"Pin": "Fijar",
|
|
33
|
+
"Unpin": "Dejar de fijar",
|
|
32
34
|
Conversations: "Conversaciones",
|
|
33
35
|
New: "Nueva",
|
|
34
36
|
"Search conversations": "Buscar conversaciones",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_ES_ID_DE = {
|
|
|
82
84
|
"Voice input (coming soon)": "Input suara (segera hadir)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Menghentikan penggunaan berikutnya dalam obrolan ini. Panduan yang sudah dimuat tetap berada dalam konteks saat ini.",
|
|
84
86
|
"Rename chat": "Ganti nama obrolan",
|
|
87
|
+
"Pin": "Sematkan",
|
|
88
|
+
"Unpin": "Lepas sematan",
|
|
85
89
|
Conversations: "Percakapan",
|
|
86
90
|
New: "Baru",
|
|
87
91
|
"Search conversations": "Cari percakapan",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_ES_ID_DE = {
|
|
|
135
139
|
"Voice input (coming soon)": "Spracheingabe (demnächst)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Beendet die künftige Verwendung in diesem Chat. Bereits geladene Anweisungen bleiben im aktuellen Kontext.",
|
|
137
141
|
"Rename chat": "Chat umbenennen",
|
|
142
|
+
"Pin": "Anheften",
|
|
143
|
+
"Unpin": "Lösen",
|
|
138
144
|
Conversations: "Unterhaltungen",
|
|
139
145
|
New: "Neu",
|
|
140
146
|
"Search conversations": "Unterhaltungen durchsuchen",
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_HI_UR_BN = {
|
|
|
29
29
|
"Voice input (coming soon)": "वॉइस इनपुट (जल्द आ रहा है)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "इस चैट में आगे उपयोग बंद करता है। पहले से लोड किए गए निर्देश वर्तमान संदर्भ में बने रहते हैं।",
|
|
31
31
|
"Rename chat": "चैट का नाम बदलें",
|
|
32
|
+
"Pin": "पिन करें",
|
|
33
|
+
"Unpin": "अनपिन करें",
|
|
32
34
|
Conversations: "बातचीत",
|
|
33
35
|
New: "नया",
|
|
34
36
|
"Search conversations": "बातचीत खोजें",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_HI_UR_BN = {
|
|
|
82
84
|
"Voice input (coming soon)": "آواز سے اندراج (جلد آ رہا ہے)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "اس چیٹ میں آئندہ استعمال روک دیتا ہے۔ پہلے سے لوڈ شدہ ہدایات موجودہ سیاق میں رہتی ہیں۔",
|
|
84
86
|
"Rename chat": "چیٹ کا نام تبدیل کریں",
|
|
87
|
+
"Pin": "پن کریں",
|
|
88
|
+
"Unpin": "ان پن کریں",
|
|
85
89
|
Conversations: "گفتگو",
|
|
86
90
|
New: "نیا",
|
|
87
91
|
"Search conversations": "گفتگو تلاش کریں",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_HI_UR_BN = {
|
|
|
135
139
|
"Voice input (coming soon)": "ভয়েস ইনপুট (শীঘ্রই আসছে)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "এই চ্যাটে পরবর্তী ব্যবহার বন্ধ করে। ইতিমধ্যে লোড করা নির্দেশনা বর্তমান প্রসঙ্গে থেকে যায়।",
|
|
137
141
|
"Rename chat": "চ্যাটের নাম পরিবর্তন করুন",
|
|
142
|
+
"Pin": "পিন করুন",
|
|
143
|
+
"Unpin": "আনপিন করুন",
|
|
138
144
|
Conversations: "কথোপকথন",
|
|
139
145
|
New: "নতুন",
|
|
140
146
|
"Search conversations": "কথোপকথন খুঁজুন",
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_HU_FR_UK = {
|
|
|
29
29
|
"Voice input (coming soon)": "Hangbevitel (hamarosan)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Leállítja a további használatot ebben a csevegésben. A már betöltött útmutatás megmarad az aktuális kontextusban.",
|
|
31
31
|
"Rename chat": "Csevegés átnevezése",
|
|
32
|
+
"Pin": "Rögzítés",
|
|
33
|
+
"Unpin": "Rögzítés feloldása",
|
|
32
34
|
Conversations: "Beszélgetések",
|
|
33
35
|
New: "Új",
|
|
34
36
|
"Search conversations": "Beszélgetések keresése",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_HU_FR_UK = {
|
|
|
82
84
|
"Voice input (coming soon)": "Saisie vocale (bientôt disponible)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Arrête toute utilisation future dans cette discussion. Les instructions déjà chargées restent dans le contexte actuel.",
|
|
84
86
|
"Rename chat": "Renommer la discussion",
|
|
87
|
+
"Pin": "Épingler",
|
|
88
|
+
"Unpin": "Désépingler",
|
|
85
89
|
Conversations: "Discussions",
|
|
86
90
|
New: "Nouvelle",
|
|
87
91
|
"Search conversations": "Rechercher des conversations",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_HU_FR_UK = {
|
|
|
135
139
|
"Voice input (coming soon)": "Голосове введення (незабаром)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Припиняє подальше використання в цьому чаті. Уже завантажені інструкції залишаються в поточному контексті.",
|
|
137
141
|
"Rename chat": "Перейменувати чат",
|
|
142
|
+
"Pin": "Закріпити",
|
|
143
|
+
"Unpin": "Відкріпити",
|
|
138
144
|
Conversations: "Розмови",
|
|
139
145
|
New: "Нова",
|
|
140
146
|
"Search conversations": "Пошук розмов",
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_JA_KO_PL = {
|
|
|
29
29
|
"Voice input (coming soon)": "音声入力(近日公開)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "このチャットでの今後の使用を停止します。読み込み済みのガイダンスは現在のコンテキストに残ります。",
|
|
31
31
|
"Rename chat": "チャットの名前を変更",
|
|
32
|
+
"Pin": "ピン留め",
|
|
33
|
+
"Unpin": "ピン留めを解除",
|
|
32
34
|
Conversations: "会話",
|
|
33
35
|
New: "新規",
|
|
34
36
|
"Search conversations": "会話を検索",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_JA_KO_PL = {
|
|
|
82
84
|
"Voice input (coming soon)": "음성 입력(출시 예정)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "이 채팅에서 앞으로 사용하지 않습니다. 이미 불러온 지침은 현재 컨텍스트에 남아 있습니다.",
|
|
84
86
|
"Rename chat": "채팅 이름 변경",
|
|
87
|
+
"Pin": "고정",
|
|
88
|
+
"Unpin": "고정 해제",
|
|
85
89
|
Conversations: "대화",
|
|
86
90
|
New: "새로 만들기",
|
|
87
91
|
"Search conversations": "대화 검색",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_JA_KO_PL = {
|
|
|
135
139
|
"Voice input (coming soon)": "Wprowadzanie głosowe (wkrótce)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Zatrzymuje dalsze użycie w tym czacie. Już wczytane instrukcje pozostają w bieżącym kontekście.",
|
|
137
141
|
"Rename chat": "Zmień nazwę czatu",
|
|
142
|
+
"Pin": "Przypnij",
|
|
143
|
+
"Unpin": "Odepnij",
|
|
138
144
|
Conversations: "Rozmowy",
|
|
139
145
|
New: "Nowa",
|
|
140
146
|
"Search conversations": "Szukaj rozmów",
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_RU_FA_AR = {
|
|
|
29
29
|
"Voice input (coming soon)": "Голосовой ввод (скоро)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Прекращает дальнейшее использование в этом чате. Уже загруженные инструкции остаются в текущем контексте.",
|
|
31
31
|
"Rename chat": "Переименовать чат",
|
|
32
|
+
"Pin": "Закрепить",
|
|
33
|
+
"Unpin": "Открепить",
|
|
32
34
|
Conversations: "Беседы",
|
|
33
35
|
New: "Новая",
|
|
34
36
|
"Search conversations": "Поиск бесед",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_RU_FA_AR = {
|
|
|
82
84
|
"Voice input (coming soon)": "ورودی صوتی (بهزودی)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "استفاده در ادامهٔ این گفتگو را متوقف میکند. راهنماییهای بارگذاریشده در زمینهٔ فعلی باقی میمانند.",
|
|
84
86
|
"Rename chat": "تغییر نام گفتگو",
|
|
87
|
+
"Pin": "سنجاق کردن",
|
|
88
|
+
"Unpin": "برداشتن سنجاق",
|
|
85
89
|
Conversations: "گفتگوها",
|
|
86
90
|
New: "جدید",
|
|
87
91
|
"Search conversations": "جستجوی گفتگوها",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_RU_FA_AR = {
|
|
|
135
139
|
"Voice input (coming soon)": "الإدخال الصوتي (قريبًا)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "يوقف الاستخدام المستقبلي في هذه المحادثة. تبقى الإرشادات المحمّلة مسبقًا في السياق الحالي.",
|
|
137
141
|
"Rename chat": "إعادة تسمية المحادثة",
|
|
142
|
+
"Pin": "تثبيت",
|
|
143
|
+
"Unpin": "إلغاء التثبيت",
|
|
138
144
|
Conversations: "المحادثات",
|
|
139
145
|
New: "جديد",
|
|
140
146
|
"Search conversations": "البحث في المحادثات",
|
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_TR_TH_IT = {
|
|
|
29
29
|
"Voice input (coming soon)": "Sesli giriş (yakında)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Bu sohbette gelecekteki kullanımı durdurur. Önceden yüklenen yönergeler mevcut bağlamda kalır.",
|
|
31
31
|
"Rename chat": "Sohbeti yeniden adlandır",
|
|
32
|
+
"Pin": "Sabitle",
|
|
33
|
+
"Unpin": "Sabitlemeyi kaldır",
|
|
32
34
|
Conversations: "Konuşmalar",
|
|
33
35
|
New: "Yeni",
|
|
34
36
|
"Search conversations": "Konuşmalarda ara",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_TR_TH_IT = {
|
|
|
82
84
|
"Voice input (coming soon)": "ป้อนข้อมูลด้วยเสียง (เร็วๆ นี้)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "หยุดการใช้ในอนาคตสำหรับแชตนี้ คำแนะนำที่โหลดแล้วจะยังคงอยู่ในบริบทปัจจุบัน",
|
|
84
86
|
"Rename chat": "เปลี่ยนชื่อแชต",
|
|
87
|
+
"Pin": "ปักหมุด",
|
|
88
|
+
"Unpin": "เลิกปักหมุด",
|
|
85
89
|
Conversations: "การสนทนา",
|
|
86
90
|
New: "ใหม่",
|
|
87
91
|
"Search conversations": "ค้นหาการสนทนา",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_TR_TH_IT = {
|
|
|
135
139
|
"Voice input (coming soon)": "Input vocale (in arrivo)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Interrompe gli utilizzi futuri in questa chat. Le istruzioni già caricate restano nel contesto attuale.",
|
|
137
141
|
"Rename chat": "Rinomina chat",
|
|
142
|
+
"Pin": "Fissa",
|
|
143
|
+
"Unpin": "Rimuovi fissaggio",
|
|
138
144
|
Conversations: "Conversazioni",
|
|
139
145
|
New: "Nuova",
|
|
140
146
|
"Search conversations": "Cerca conversazioni",
|
package/dist/shell/components/AssistantDock/assistant-dock-i18n/chat-pane-zh-cn-zh-tw-pt-br.js
CHANGED
|
@@ -29,6 +29,8 @@ export const CHAT_PANE_ZH_CN_ZH_TW_PT_BR = {
|
|
|
29
29
|
"Voice input (coming soon)": "语音输入(即将推出)",
|
|
30
30
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "停止在此聊天中继续使用。已加载的指导内容仍保留在当前上下文中。",
|
|
31
31
|
"Rename chat": "重命名聊天",
|
|
32
|
+
"Pin": "置顶",
|
|
33
|
+
"Unpin": "取消置顶",
|
|
32
34
|
Conversations: "对话",
|
|
33
35
|
New: "新建",
|
|
34
36
|
"Search conversations": "搜索对话",
|
|
@@ -82,6 +84,8 @@ export const CHAT_PANE_ZH_CN_ZH_TW_PT_BR = {
|
|
|
82
84
|
"Voice input (coming soon)": "語音輸入(即將推出)",
|
|
83
85
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "停止在此聊天中繼續使用。已載入的指引仍保留在目前的上下文中。",
|
|
84
86
|
"Rename chat": "重新命名聊天",
|
|
87
|
+
"Pin": "置頂",
|
|
88
|
+
"Unpin": "取消置頂",
|
|
85
89
|
Conversations: "對話",
|
|
86
90
|
New: "新增",
|
|
87
91
|
"Search conversations": "搜尋對話",
|
|
@@ -135,6 +139,8 @@ export const CHAT_PANE_ZH_CN_ZH_TW_PT_BR = {
|
|
|
135
139
|
"Voice input (coming soon)": "Entrada de voz (em breve)",
|
|
136
140
|
"Stops future use in this chat. Guidance already loaded stays in the current context.": "Interrompe o uso futuro neste chat. As orientações já carregadas permanecem no contexto atual.",
|
|
137
141
|
"Rename chat": "Renomear conversa",
|
|
142
|
+
"Pin": "Fixar",
|
|
143
|
+
"Unpin": "Desafixar",
|
|
138
144
|
Conversations: "Conversas",
|
|
139
145
|
New: "Nova",
|
|
140
146
|
"Search conversations": "Buscar conversas",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DockChatPane } from "./DockChatPane.js";
|
|
2
|
+
import type { DockChatCleanup } from "./DockCleanupHeader.js";
|
|
2
3
|
/** The pane's transport, session selection and runtime-picker wiring. */
|
|
3
4
|
export declare function chatPaneSessionProps({ dock, deps }: Parameters<typeof DockChatPane>[0], _optional?: {}): {
|
|
4
5
|
apiModeAvailable: boolean;
|
|
@@ -54,7 +55,9 @@ export declare function chatPaneSessionProps({ dock, deps }: Parameters<typeof D
|
|
|
54
55
|
* the title where a history control is looked for.
|
|
55
56
|
*/
|
|
56
57
|
/** The header, copy, run context and agent-control wiring. */
|
|
57
|
-
export declare function chatPaneChromeProps({ dock, kit, hooks, deps }: Parameters<typeof DockChatPane>[0]
|
|
58
|
+
export declare function chatPaneChromeProps({ dock, kit, hooks, deps, chatCleanup }: Parameters<typeof DockChatPane>[0] & {
|
|
59
|
+
chatCleanup: DockChatCleanup;
|
|
60
|
+
}, _optional?: {}): {
|
|
58
61
|
header: import("react").JSX.Element;
|
|
59
62
|
title: string;
|
|
60
63
|
placeholder: string;
|
|
@@ -65,13 +65,13 @@ export function chatPaneSessionProps({ dock, deps }, _optional = {}) {
|
|
|
65
65
|
* the title where a history control is looked for.
|
|
66
66
|
*/
|
|
67
67
|
/** The header, copy, run context and agent-control wiring. */
|
|
68
|
-
export function chatPaneChromeProps({ dock, kit, hooks, deps }, _optional = {}) {
|
|
69
|
-
const { DockCleanupHeader,
|
|
70
|
-
const {
|
|
68
|
+
export function chatPaneChromeProps({ dock, kit, hooks, deps, chatCleanup }, _optional = {}) {
|
|
69
|
+
const { DockCleanupHeader, ChatCleanupSelectionActions, ConversationTitle } = kit;
|
|
70
|
+
const { useWiredAssistantSubagentsSettings } = hooks;
|
|
71
71
|
const { translateAiAssistant, assistantTitleKey, toolCallOptions, replyLengthOptions } = deps;
|
|
72
72
|
const { agentBridge, webMcpEnabled, locale, t, chatI18n, conversationDelete, chatDisplay, agentPlugins, runtime, agentPermissions, executionConfig, localCliSelection, chats, runContext, activeTitle, emptyState } = dock;
|
|
73
73
|
return {
|
|
74
|
-
header: _jsx(DockCleanupHeader, {
|
|
74
|
+
header: _jsx(DockCleanupHeader, { ChatCleanupSelectionActions: ChatCleanupSelectionActions, chats: chats, activeTitle: activeTitle, mode: executionConfig.mode, agentId: localCliSelection.agentId, locale: locale, t: t, chatI18n: chatI18n, conversationDelete: conversationDelete, chatDisplay: chatDisplay, agentPlugins: agentPlugins, runtime: runtime, onMoreSettings: agentPermissions.onMoreSettings, empty: emptyState.empty, toolCallOptions: toolCallOptions, replyLengthOptions: replyLengthOptions, translateAiAssistant: translateAiAssistant, useSubagentsSettingsHook: useWiredAssistantSubagentsSettings, ConversationTitle: ConversationTitle, chatCleanup: chatCleanup }),
|
|
75
75
|
title: t({ key: assistantTitleKey }),
|
|
76
76
|
placeholder: t({ key: "Ask the assistant to do something…" }),
|
|
77
77
|
onMessagesChange: emptyState.handleMessagesChange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/admin",
|
|
3
|
-
"version": "0.7.3-next.
|
|
3
|
+
"version": "0.7.3-next.4",
|
|
4
4
|
"description": "Composable admin surface for Jini-hosted products: framework-free contracts, panel registry, and route model in `/core`; React shell and panels in `/react`. Import only the layers you need.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -5218,12 +5218,12 @@
|
|
|
5218
5218
|
"react-dom": "^19.2.0",
|
|
5219
5219
|
"@testing-library/user-event": "^14.6.1",
|
|
5220
5220
|
"@jini-ai/agentic": "^0.7.3-next.3",
|
|
5221
|
+
"@jini-ai/ui": "^0.7.3-next.3",
|
|
5221
5222
|
"@jini-ai/ui-kit": "^0.7.3-next.3",
|
|
5222
|
-
"@jini-ai/core": "^0.7.3-next.3",
|
|
5223
5223
|
"@jini-ai/agent-plugins": "^0.7.3-next.3",
|
|
5224
|
+
"@jini-ai/core": "^0.7.3-next.3",
|
|
5224
5225
|
"@jini-ai/cms": "^0.7.3-next.3",
|
|
5225
|
-
"@jini-ai/
|
|
5226
|
-
"@jini-ai/chat": "^0.7.3-next.3"
|
|
5226
|
+
"@jini-ai/chat": "^0.7.3-next.4"
|
|
5227
5227
|
},
|
|
5228
5228
|
"typesVersions": {
|
|
5229
5229
|
"*": {
|