@tutti-os/agent-gui 0.0.141 → 0.0.143
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/README.md +6 -0
- package/dist/agent-gui.js +3 -3
- package/dist/agents.d.ts +3 -3
- package/dist/agents.js +3 -3
- package/dist/app/renderer/agentactivity.css +23 -2
- package/dist/{chunk-C4ACYHOY.js → chunk-66JZ7BQM.js} +3 -3
- package/dist/chunk-66JZ7BQM.js.map +1 -0
- package/dist/{chunk-LIQWMDME.js → chunk-JME2T7T7.js} +4 -4
- package/dist/{chunk-LIQWMDME.js.map → chunk-JME2T7T7.js.map} +1 -1
- package/dist/{chunk-VF5HD6RF.js → chunk-Z2J3NPPX.js} +829 -739
- package/dist/chunk-Z2J3NPPX.js.map +1 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.js +2 -2
- package/dist/workbench/index.js +2 -2
- package/dist/workbench/tool-sidebar/index.d.ts +4 -2
- package/dist/workbench/tool-sidebar/index.js +9 -2
- package/dist/workbench/tool-sidebar/index.js.map +1 -1
- package/package.json +15 -15
- package/dist/chunk-C4ACYHOY.js.map +0 -1
- package/dist/chunk-VF5HD6RF.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -8007,6 +8007,33 @@ interface AgentGUIProps extends Omit<AgentGUINodeProps, "hostCapabilities" | "re
|
|
|
8007
8007
|
}
|
|
8008
8008
|
declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
|
|
8009
8009
|
|
|
8010
|
+
interface AgentHandoffMenuLabels {
|
|
8011
|
+
action: string;
|
|
8012
|
+
menu: string;
|
|
8013
|
+
self: string;
|
|
8014
|
+
shared: string;
|
|
8015
|
+
tooltip: string;
|
|
8016
|
+
}
|
|
8017
|
+
interface AgentHandoffMenuProps {
|
|
8018
|
+
align?: "center" | "end" | "start";
|
|
8019
|
+
contentClassName?: string;
|
|
8020
|
+
disabled?: boolean;
|
|
8021
|
+
iconOnly?: boolean;
|
|
8022
|
+
isolateTriggerEvents?: boolean;
|
|
8023
|
+
labels: AgentHandoffMenuLabels;
|
|
8024
|
+
onSelect: (target: AgentGUIAgentTarget) => void;
|
|
8025
|
+
targets: readonly AgentGUIAgentTarget[];
|
|
8026
|
+
testId?: string;
|
|
8027
|
+
triggerClassName?: string;
|
|
8028
|
+
triggerLabel?: string;
|
|
8029
|
+
}
|
|
8030
|
+
/**
|
|
8031
|
+
* Provider-neutral handoff target menu shared by AgentGUI and host surfaces.
|
|
8032
|
+
* The host owns the authoritative target list and launch behavior; this
|
|
8033
|
+
* component owns only temporary menu disclosure, presentation, and icon motion.
|
|
8034
|
+
*/
|
|
8035
|
+
declare function AgentHandoffMenu({ align, contentClassName, disabled, iconOnly, isolateTriggerEvents, labels, onSelect, targets, testId, triggerClassName, triggerLabel }: AgentHandoffMenuProps): JSX.Element;
|
|
8036
|
+
|
|
8010
8037
|
declare function normalizeAgentGUIAgents(agents: readonly AgentGUIAgent[] | null | undefined): AgentGUIAgent[];
|
|
8011
8038
|
declare function agentGUIAgentIsReady(agent: AgentGUIAgent): boolean;
|
|
8012
8039
|
declare function resolveAgentGUISelectedDirectoryAgent(input: {
|
|
@@ -8014,6 +8041,8 @@ declare function resolveAgentGUISelectedDirectoryAgent(input: {
|
|
|
8014
8041
|
agentTargetId?: string | null;
|
|
8015
8042
|
defaultAgentTargetId?: string | null;
|
|
8016
8043
|
}): AgentGUIAgent | null;
|
|
8044
|
+
/** Projects the canonical Agent directory into target rows for selection menus. */
|
|
8045
|
+
declare function projectAgentGUIAgentsToTargets(agents: readonly AgentGUIAgent[]): AgentGUIAgentTarget[];
|
|
8017
8046
|
|
|
8018
8047
|
declare const agentGUIDefaultTargetProviders: readonly AgentGUIProvider[];
|
|
8019
8048
|
declare function createLocalAgentGUIAgentTarget(provider: AgentGUIProvider): AgentGUIAgentTarget;
|
|
@@ -8153,4 +8182,4 @@ declare function dispatchAgentPlanPromptAction(input: {
|
|
|
8153
8182
|
workspaceId: string;
|
|
8154
8183
|
}): boolean;
|
|
8155
8184
|
|
|
8156
|
-
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AGENT_GUI_DETAIL_MIN_WIDTH_PX, AGENT_GUI_EXPANDED_TARGET_WIDTH_PX, AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX, AGENT_PASTED_TEXT_BLOCK_KIND, AGENT_PASTED_TEXT_MENTION_KIND, AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeDeleteSessionsBatchInput, type AgentActivityRuntimeDeleteSessionsBatchResult, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeSessionSectionDeletionCandidates, type AgentActivityRuntimeSessionSectionScopeInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUpdateSessionSettingsResult, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentComposerDraftFile, type AgentContextMentionProvider, type AgentContextMentionProviderId, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, type AgentExternalPromptFilePreparationErrorCode, type AgentExternalPromptFilePreparationResult, type AgentExternalPromptFilePreparer, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIAgent, type AgentGUIAgentAvailability, type AgentGUIAgentAvailabilityAction, type AgentGUIAgentAvailabilityStatus, type AgentGUIAgentDirectoryPort, type AgentGUIAgentDirectorySnapshot, type AgentGUIAgentDirectoryStatus, type AgentGUIAgentOwner, type AgentGUIAgentOwnership, type AgentGUIAgentTarget, type AgentGUIAgentTargetBadge, type AgentGUIAgentTargetRef, type AgentGUIAgentsEmptyRenderer, type AgentGUIAllAgentsPresentation, type AgentGUIComposerAppendRequest, type AgentGUIComposerContentType, type AgentGUIComposerFocusMethod, type AgentGUIEngagementContext, type AgentGUIEngagementEvent, type AgentGUIEngagementEventSink, type AgentGUIHomeSuggestionId, type AgentGUIProps, type AgentGUIProvider, type AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailMode, type AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateAction, type AgentGUIProviderReadinessGateStatus, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, type AgentGuiI18nLocale, AgentGuiI18nProvider, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentPreparedExternalPromptFile, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentUsageQuota, type AgentUsageSnapshot, type CreateAgentSessionHandoffPromptInput, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createAgentSessionHandoffPrompt, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };
|
|
8185
|
+
export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AGENT_GUI_DETAIL_MIN_WIDTH_PX, AGENT_GUI_EXPANDED_TARGET_WIDTH_PX, AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX, AGENT_PASTED_TEXT_BLOCK_KIND, AGENT_PASTED_TEXT_MENTION_KIND, AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeDeleteSessionsBatchInput, type AgentActivityRuntimeDeleteSessionsBatchResult, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeSessionSectionDeletionCandidates, type AgentActivityRuntimeSessionSectionScopeInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUpdateSessionSettingsResult, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentComposerDraftFile, type AgentContextMentionProvider, type AgentContextMentionProviderId, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, type AgentExternalPromptFilePreparationErrorCode, type AgentExternalPromptFilePreparationResult, type AgentExternalPromptFilePreparer, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIAgent, type AgentGUIAgentAvailability, type AgentGUIAgentAvailabilityAction, type AgentGUIAgentAvailabilityStatus, type AgentGUIAgentDirectoryPort, type AgentGUIAgentDirectorySnapshot, type AgentGUIAgentDirectoryStatus, type AgentGUIAgentOwner, type AgentGUIAgentOwnership, type AgentGUIAgentTarget, type AgentGUIAgentTargetBadge, type AgentGUIAgentTargetRef, type AgentGUIAgentsEmptyRenderer, type AgentGUIAllAgentsPresentation, type AgentGUIComposerAppendRequest, type AgentGUIComposerContentType, type AgentGUIComposerFocusMethod, type AgentGUIEngagementContext, type AgentGUIEngagementEvent, type AgentGUIEngagementEventSink, type AgentGUIHomeSuggestionId, type AgentGUIProps, type AgentGUIProvider, type AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailMode, type AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateAction, type AgentGUIProviderReadinessGateStatus, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, type AgentGuiI18nLocale, AgentGuiI18nProvider, AgentHandoffMenu, type AgentHandoffMenuLabels, type AgentHandoffMenuProps, type AgentHostAgentTargetAuthenticatedAccount, type AgentHostAgentTargetSetupSnapshot, type AgentHostAgentTargetSetupState, type AgentHostAgentTargetSetupWatch, type AgentHostApi, type AgentHostApplyWorkspaceGitPatchInput, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentHostSelectFilesInput, type AgentHostUserProject, type AgentPlanPromptAction, type AgentPreparedExternalPromptFile, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, type AgentUsageQuota, type AgentUsageSnapshot, type CreateAgentSessionHandoffPromptInput, type EngineStateStore, type PersistWriteResult, type ReadWorkspaceAgentReadStateInput, type WorkspaceAgentReadStateSnapshot, type WriteWorkspaceAgentReadStateInput, agentGUIAgentIsReady, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentGuiI18nModule, agentGuiI18nResources, createAgentSessionHandoffPrompt, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, dispatchAgentPlanPromptAction, getAgentCustomMentionKind, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, normalizeAgentGUIAgents, preloadAgentMentionBrowse, projectAgentGUIAgentsToTargets, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, resolveAgentGUISelectedDirectoryAgent, selectAgentPlanPromptTurn, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useEngineSelector, useOptionalAgentActivityRuntime };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentGUI,
|
|
3
|
+
AgentHandoffMenu,
|
|
3
4
|
agentGUIDefaultTargetProviders,
|
|
4
5
|
createLocalAgentGUIAgentTarget,
|
|
5
6
|
createLocalAgentGUIAgentTargets,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
localAgentGUIAgentTargetId,
|
|
8
9
|
normalizeAgentGUIAgentTargets,
|
|
9
10
|
resolveAgentGUIAgentTarget
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z2J3NPPX.js";
|
|
11
12
|
import "./chunk-A4WCTHWS.js";
|
|
12
13
|
import {
|
|
13
14
|
AGENT_GUI_DETAIL_MIN_WIDTH_PX,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,
|
|
16
17
|
resolveAgentGUIExpandedWindowFrame,
|
|
17
18
|
shouldAutoCollapseAgentGUIConversationRail
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JME2T7T7.js";
|
|
19
20
|
import "./chunk-TUWQV2MC.js";
|
|
20
21
|
import "./chunk-MHOYBRCY.js";
|
|
21
22
|
import "./chunk-Q2WMHYIB.js";
|
|
@@ -29,8 +30,9 @@ import "./chunk-TJW5NWWH.js";
|
|
|
29
30
|
import {
|
|
30
31
|
agentGUIAgentIsReady,
|
|
31
32
|
normalizeAgentGUIAgents,
|
|
33
|
+
projectAgentGUIAgentsToTargets,
|
|
32
34
|
resolveAgentGUISelectedDirectoryAgent
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-66JZ7BQM.js";
|
|
34
36
|
import {
|
|
35
37
|
agentGuiDockIconUrl,
|
|
36
38
|
agentGuiDockIconUrls
|
|
@@ -107,6 +109,7 @@ export {
|
|
|
107
109
|
AgentActivityRuntimeProvider,
|
|
108
110
|
AgentGUI,
|
|
109
111
|
AgentGuiI18nProvider,
|
|
112
|
+
AgentHandoffMenu,
|
|
110
113
|
agentGUIAgentIsReady,
|
|
111
114
|
agentGUIDefaultTargetProviders,
|
|
112
115
|
agentGuiDockIconUrl,
|
|
@@ -123,6 +126,7 @@ export {
|
|
|
123
126
|
normalizeAgentGUIAgentTargets,
|
|
124
127
|
normalizeAgentGUIAgents,
|
|
125
128
|
preloadAgentMentionBrowse,
|
|
129
|
+
projectAgentGUIAgentsToTargets,
|
|
126
130
|
registerAgentCustomMentionKind,
|
|
127
131
|
resetAgentActivityRuntimeForTests,
|
|
128
132
|
resetAgentCustomMentionKindsForTests,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type {\n AgentGUIProps,\n AgentGUIReferenceProvenanceFilterCatalog\n} from \"./AgentGUI\";\nexport type { AgentGUIComposerAppendRequest } from \"./agent-gui/agentGuiNode/controller/useAgentGUIComposerAppendRequest\";\nexport { createAgentSessionHandoffPrompt } from \"./agent-gui/agentGuiNode/agentRichText/agentMentionMarkdown\";\nexport type { CreateAgentSessionHandoffPromptInput } from \"./agent-gui/agentGuiNode/agentRichText/agentMentionMarkdown\";\nexport type { AgentComposerDraftFile } from \"./agent-gui/agentGuiNode/model/agentGuiNodeTypes\";\nexport type {\n AgentExternalPromptFilePreparationErrorCode,\n AgentExternalPromptFilePreparationResult,\n AgentExternalPromptFilePreparer,\n AgentPreparedExternalPromptFile\n} from \"./agent-gui/agentGuiNode/model/agentExternalPromptFiles\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIAgentOwnership,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostAgentTargetAuthenticatedAccount,\n AgentHostAgentTargetSetupSnapshot,\n AgentHostAgentTargetSetupState,\n AgentHostAgentTargetSetupWatch,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentHostUserProject,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../index.ts"],"sourcesContent":["export {\n getAgentCustomMentionKind,\n registerAgentCustomMentionKind,\n resetAgentCustomMentionKindsForTests,\n type AgentCustomMentionChipContext,\n type AgentCustomMentionIdentity,\n type AgentCustomMentionKindDefinition,\n type AgentCustomMentionPresentation\n} from \"./shared/agentCustomMentionKinds\";\nexport {\n AGENT_PASTED_TEXT_BLOCK_KIND,\n AGENT_PASTED_TEXT_MENTION_KIND\n} from \"./shared/pastedTextKinds\";\nexport { AgentGUI } from \"./AgentGUI\";\nexport type {\n AgentGUIProps,\n AgentGUIReferenceProvenanceFilterCatalog\n} from \"./AgentGUI\";\nexport type { AgentGUIComposerAppendRequest } from \"./agent-gui/agentGuiNode/controller/useAgentGUIComposerAppendRequest\";\nexport {\n AgentHandoffMenu,\n type AgentHandoffMenuLabels,\n type AgentHandoffMenuProps\n} from \"./agent-gui/agentGuiNode/composer/AgentHandoffMenu\";\nexport { createAgentSessionHandoffPrompt } from \"./agent-gui/agentGuiNode/agentRichText/agentMentionMarkdown\";\nexport type { CreateAgentSessionHandoffPromptInput } from \"./agent-gui/agentGuiNode/agentRichText/agentMentionMarkdown\";\nexport type { AgentComposerDraftFile } from \"./agent-gui/agentGuiNode/model/agentGuiNodeTypes\";\nexport type {\n AgentExternalPromptFilePreparationErrorCode,\n AgentExternalPromptFilePreparationResult,\n AgentExternalPromptFilePreparer,\n AgentPreparedExternalPromptFile\n} from \"./agent-gui/agentGuiNode/model/agentExternalPromptFiles\";\nexport type { AgentGUIAccountMenuState } from \"./agent-gui/agentGuiNode/accountMenuState\";\nexport type {\n AgentGUIComposerContentType,\n AgentGUIComposerFocusMethod,\n AgentGUIEngagementContext,\n AgentGUIEngagementEvent,\n AgentGUIEngagementEventSink\n} from \"./agent-gui/agentGuiNode/engagement/agentGUIEngagement.types\";\nexport {\n agentGUIAgentIsReady,\n normalizeAgentGUIAgents,\n projectAgentGUIAgentsToTargets,\n resolveAgentGUISelectedDirectoryAgent\n} from \"./agents\";\nexport {\n agentGUIDefaultTargetProviders,\n createLocalAgentGUIAgentTarget,\n createLocalAgentGUIAgentTargets,\n createSharedAgentGUIAgentTarget,\n localAgentGUIAgentTargetId,\n normalizeAgentGUIAgentTargets,\n resolveAgentGUIAgentTarget\n} from \"./agentTargets\";\nexport type {\n AgentGUIAgent,\n AgentGUIAgentDirectoryPort,\n AgentGUIAgentDirectorySnapshot,\n AgentGUIAgentDirectoryStatus,\n AgentGUIAgentAvailability,\n AgentGUIAgentAvailabilityAction,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentOwner,\n AgentGUIAgentOwnership,\n AgentGUIHomeSuggestionId,\n AgentGUIAllAgentsPresentation,\n AgentGUIProvider,\n AgentGUIProviderRailAllPresentation,\n AgentGUIProviderRailMode,\n AgentGUIProviderReadinessGate,\n AgentGUIProviderReadinessGateAction,\n AgentGUIProviderReadinessGateStatus,\n AgentGUIAgentTarget,\n AgentGUIAgentTargetBadge,\n AgentGUIAgentTargetRef\n} from \"./types\";\nexport {\n AgentGuiI18nProvider,\n agentGuiI18nModule,\n agentGuiI18nResources\n} from \"./i18n/index\";\nexport type { AgentGuiI18nLocale } from \"./i18n/index\";\nexport { agentGuiDockIconUrl, agentGuiDockIconUrls } from \"./dockIcons\";\nexport {\n AGENT_GUI_DETAIL_MIN_WIDTH_PX,\n AGENT_GUI_EXPANDED_TARGET_WIDTH_PX,\n AGENT_GUI_STANDALONE_AUTO_COLLAPSE_WIDTH_PX,\n resolveAgentGUIExpandedWindowFrame,\n shouldAutoCollapseAgentGUIConversationRail\n} from \"./agent-gui/agentGuiNode/model/agentGuiRailLayout\";\nexport type {\n AgentGUIAgentsEmptyRenderer,\n AgentGUIProviderUnavailableStateContext,\n AgentGUIProviderUnavailableStateRenderer,\n AgentGUISidebarFooterContext,\n AgentGUISidebarFooterRenderer\n} from \"./agent-gui/agentGuiNode/AgentGUINodeView\";\nexport {\n AGENT_CONTEXT_MENTION_PROVIDER_IDS,\n type AgentContextMentionProviderId,\n type AgentContextMentionProvider\n} from \"./agent-gui/agentGuiNode/agentContextMentionProvider\";\nexport { preloadAgentMentionBrowse } from \"./agent-gui/agentGuiNode/AgentMentionSearchController\";\nexport { AgentActivityHostProvider } from \"./agentActivityHost\";\nexport type { AgentActivityHostProviderProps } from \"./agentActivityHost\";\nexport { useEngineSelector } from \"./shared/engine/useEngineSelector\";\nexport type { EngineStateStore } from \"./shared/engine/useEngineSelector\";\nexport {\n dispatchAgentPlanPromptAction,\n selectAgentPlanPromptTurn\n} from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport type { AgentPlanPromptAction } from \"./shared/agentConversation/agentPlanPromptDispatch\";\nexport {\n AgentActivityRuntimeProvider,\n resetAgentActivityRuntimeForTests,\n setAgentActivityRuntimeForTests,\n useAgentActivitySnapshot,\n useAgentActivityRuntime,\n useOptionalAgentActivityRuntime\n} from \"./agentActivityRuntime\";\nexport type {\n AgentActivityRuntime,\n AgentActivityRuntimeListSessionMessagesInput,\n AgentActivityRuntimeProviderProps,\n AgentActivityRuntimePromptContentBlock,\n AgentActivityRuntimeDeleteSessionsBatchInput,\n AgentActivityRuntimeDeleteSessionsBatchResult,\n AgentActivityRuntimeSessionSectionDeletionCandidates,\n AgentActivityRuntimeSessionSectionScopeInput,\n AgentActivityRuntimeSetSessionPinnedInput,\n AgentActivityRuntimeUploadPromptContentInput,\n AgentActivityRuntimeUploadPromptContentResult,\n AgentActivityRuntimeUpdateSessionSettingsInput,\n AgentActivityRuntimeUpdateSessionSettingsResult\n} from \"./agentActivityRuntime\";\nexport type {\n AgentHostApi,\n AgentHostAgentTargetAuthenticatedAccount,\n AgentHostAgentTargetSetupSnapshot,\n AgentHostAgentTargetSetupState,\n AgentHostAgentTargetSetupWatch,\n AgentHostApplyWorkspaceGitPatchInput,\n AgentHostInputApi,\n AgentHostSelectFilesInput,\n AgentHostRuntimeApi,\n AgentHostUserProject,\n AgentProviderProbeListInput,\n AgentProviderProbeListResult\n} from \"./host/agentHostApi\";\nexport type {\n AgentProbeProvider,\n AgentProbeSnapshot,\n PersistWriteResult,\n ReadWorkspaceAgentReadStateInput,\n AgentUsageQuota,\n AgentUsageSnapshot,\n WorkspaceAgentReadStateSnapshot,\n WriteWorkspaceAgentReadStateInput\n} from \"./shared/contracts/dto\";\nexport {\n selectNeedsAttentionCount,\n selectNeedsAttentionItems\n} from \"@tutti-os/agent-activity-core\";\nexport type {\n AgentActivityAdapter,\n AgentActivityMessage,\n AgentActivityNeedsAttentionItem,\n AgentActivitySnapshot\n} from \"@tutti-os/agent-activity-core\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA;AAAA,EACE;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
resolveAgentGuiUnifiedDockLaunchPayload,
|
|
18
18
|
resolveAgentGuiWorkbenchContributionCopy,
|
|
19
19
|
resolveAgentGuiWorkbenchDefaultLaunchFrame
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-JME2T7T7.js";
|
|
21
21
|
import "../chunk-TUWQV2MC.js";
|
|
22
22
|
import "../chunk-MHOYBRCY.js";
|
|
23
23
|
import "../chunk-Q2WMHYIB.js";
|
|
24
24
|
import "../chunk-5HIF53K5.js";
|
|
25
25
|
import "../chunk-R2ZADXRB.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-66JZ7BQM.js";
|
|
27
27
|
import "../chunk-DXT4W2SU.js";
|
|
28
28
|
import "../chunk-2RQM7PJN.js";
|
|
29
29
|
import "../chunk-7KVZPJ3O.js";
|
package/dist/workbench/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveAgentGuiUnifiedDockLaunchPayload,
|
|
14
14
|
resolveAgentGuiWorkbenchContributionCopy,
|
|
15
15
|
resolveAgentGuiWorkbenchConversationIdentity
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-JME2T7T7.js";
|
|
17
17
|
import {
|
|
18
18
|
agentGuiWorkbenchDockEntryId,
|
|
19
19
|
agentGuiWorkbenchDockIdentityFromIdentifier,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
normalizeAgentGuiWorkbenchProvider,
|
|
57
57
|
resolveAgentGuiWorkbenchProviderLabel
|
|
58
58
|
} from "../chunk-R2ZADXRB.js";
|
|
59
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-66JZ7BQM.js";
|
|
60
60
|
import "../chunk-DXT4W2SU.js";
|
|
61
61
|
import "../chunk-2RQM7PJN.js";
|
|
62
62
|
import "../chunk-7KVZPJ3O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, MouseEventHandler, PointerEventHandler } from 'react';
|
|
3
|
-
import { BrowserNodeHostApi, BrowserNodeSessionMode, BrowserNodeFeature } from '@tutti-os/browser-node';
|
|
3
|
+
import { BrowserNodeHostApi, BrowserNodeChromeImportPromptAdapter, BrowserNodeSessionMode, BrowserNodeFeature } from '@tutti-os/browser-node';
|
|
4
4
|
import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
5
5
|
import { IconProps } from '@tutti-os/ui-system';
|
|
6
6
|
|
|
@@ -101,6 +101,7 @@ declare function formatAgentToolReminderCount(value: number | null | undefined):
|
|
|
101
101
|
declare const agentToolBrowserDefaultUrl = "https://www.google.com/";
|
|
102
102
|
interface AgentToolBrowserPanelProps {
|
|
103
103
|
browserApi: BrowserNodeHostApi;
|
|
104
|
+
chromeCookieImportPrompt?: BrowserNodeChromeImportPromptAdapter;
|
|
104
105
|
defaultUrl?: string;
|
|
105
106
|
hidden: boolean;
|
|
106
107
|
i18n: I18nRuntime<string>;
|
|
@@ -111,9 +112,10 @@ interface AgentToolBrowserPanelProps {
|
|
|
111
112
|
sessionMode?: BrowserNodeSessionMode;
|
|
112
113
|
sessionPartition?: string | null;
|
|
113
114
|
}
|
|
114
|
-
declare function AgentToolBrowserPanel({ browserApi, defaultUrl, hidden, i18n, loadingFallback, navigationActions, nodeIdPrefix, profileId, sessionMode, sessionPartition }: AgentToolBrowserPanelProps): ReactNode;
|
|
115
|
+
declare function AgentToolBrowserPanel({ browserApi, chromeCookieImportPrompt, defaultUrl, hidden, i18n, loadingFallback, navigationActions, nodeIdPrefix, profileId, sessionMode, sessionPartition }: AgentToolBrowserPanelProps): ReactNode;
|
|
115
116
|
declare function createAgentToolBrowserFeature(input: {
|
|
116
117
|
browserApi: BrowserNodeHostApi;
|
|
118
|
+
chromeCookieImportPrompt?: BrowserNodeChromeImportPromptAdapter;
|
|
117
119
|
i18n: I18nRuntime<string>;
|
|
118
120
|
nodeId: string;
|
|
119
121
|
}): BrowserNodeFeature;
|
|
@@ -212,6 +212,7 @@ var LazyBrowserNode = lazy(
|
|
|
212
212
|
var agentToolBrowserDefaultUrl = "https://www.google.com/";
|
|
213
213
|
function AgentToolBrowserPanel({
|
|
214
214
|
browserApi,
|
|
215
|
+
chromeCookieImportPrompt,
|
|
215
216
|
defaultUrl = agentToolBrowserDefaultUrl,
|
|
216
217
|
hidden,
|
|
217
218
|
i18n,
|
|
@@ -224,8 +225,13 @@ function AgentToolBrowserPanel({
|
|
|
224
225
|
}) {
|
|
225
226
|
const [nodeId] = useState(() => createAgentToolBrowserNodeId(nodeIdPrefix));
|
|
226
227
|
const feature = useMemo(
|
|
227
|
-
() => createAgentToolBrowserFeature({
|
|
228
|
-
|
|
228
|
+
() => createAgentToolBrowserFeature({
|
|
229
|
+
browserApi,
|
|
230
|
+
...chromeCookieImportPrompt ? { chromeCookieImportPrompt } : {},
|
|
231
|
+
i18n,
|
|
232
|
+
nodeId
|
|
233
|
+
}),
|
|
234
|
+
[browserApi, chromeCookieImportPrompt, i18n, nodeId]
|
|
229
235
|
);
|
|
230
236
|
return /* @__PURE__ */ jsx(
|
|
231
237
|
"div",
|
|
@@ -253,6 +259,7 @@ function AgentToolBrowserPanel({
|
|
|
253
259
|
}
|
|
254
260
|
function createAgentToolBrowserFeature(input) {
|
|
255
261
|
return createBrowserNodeFeature({
|
|
262
|
+
...input.chromeCookieImportPrompt ? { chromeCookieImportPrompt: input.chromeCookieImportPrompt } : {},
|
|
256
263
|
hostApi: createScopedAgentToolBrowserHostApi(
|
|
257
264
|
input.browserApi,
|
|
258
265
|
input.nodeId
|