@xenosystem/agent-conversation 0.1.30
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/LICENSE +67 -0
- package/dist/adapters/xenoAgentCompatibilityBridge.d.ts +14 -0
- package/dist/adapters/xenoAgentCompatibilityBridge.d.ts.map +1 -0
- package/dist/adapters/xenoAgentCompatibilityBridge.js +247 -0
- package/dist/adapters/xenoAgentCompatibilityBridge.js.map +1 -0
- package/dist/adapters/xenoAgentHostCatalog.d.ts +40 -0
- package/dist/adapters/xenoAgentHostCatalog.d.ts.map +1 -0
- package/dist/adapters/xenoAgentHostCatalog.js +231 -0
- package/dist/adapters/xenoAgentHostCatalog.js.map +1 -0
- package/dist/components/agent/AIStatusIndicator.d.ts +25 -0
- package/dist/components/agent/AIStatusIndicator.d.ts.map +1 -0
- package/dist/components/agent/AIStatusIndicator.js +85 -0
- package/dist/components/agent/AIStatusIndicator.js.map +1 -0
- package/dist/components/agent/AgentNotificationBanner.d.ts +10 -0
- package/dist/components/agent/AgentNotificationBanner.d.ts.map +1 -0
- package/dist/components/agent/AgentNotificationBanner.js +28 -0
- package/dist/components/agent/AgentNotificationBanner.js.map +1 -0
- package/dist/components/agent/AgentView.d.ts +185 -0
- package/dist/components/agent/AgentView.d.ts.map +1 -0
- package/dist/components/agent/AgentView.js +7850 -0
- package/dist/components/agent/AgentView.js.map +1 -0
- package/dist/components/agent/AssistantTurnStatusNotice.d.ts +16 -0
- package/dist/components/agent/AssistantTurnStatusNotice.d.ts.map +1 -0
- package/dist/components/agent/AssistantTurnStatusNotice.js +54 -0
- package/dist/components/agent/AssistantTurnStatusNotice.js.map +1 -0
- package/dist/components/agent/CommandToolCard.d.ts +11 -0
- package/dist/components/agent/CommandToolCard.d.ts.map +1 -0
- package/dist/components/agent/CommandToolCard.js +29 -0
- package/dist/components/agent/CommandToolCard.js.map +1 -0
- package/dist/components/agent/GhostTextArea.d.ts +13 -0
- package/dist/components/agent/GhostTextArea.d.ts.map +1 -0
- package/dist/components/agent/GhostTextArea.js +21 -0
- package/dist/components/agent/GhostTextArea.js.map +1 -0
- package/dist/components/agent/LiveConversationCollaboration.d.ts +27 -0
- package/dist/components/agent/LiveConversationCollaboration.d.ts.map +1 -0
- package/dist/components/agent/LiveConversationCollaboration.js +127 -0
- package/dist/components/agent/LiveConversationCollaboration.js.map +1 -0
- package/dist/components/agent/SdkSessionPanel.d.ts +25 -0
- package/dist/components/agent/SdkSessionPanel.d.ts.map +1 -0
- package/dist/components/agent/SdkSessionPanel.js +15 -0
- package/dist/components/agent/SdkSessionPanel.js.map +1 -0
- package/dist/components/agent/SlashCommandAutocomplete.d.ts +12 -0
- package/dist/components/agent/SlashCommandAutocomplete.d.ts.map +1 -0
- package/dist/components/agent/SlashCommandAutocomplete.js +33 -0
- package/dist/components/agent/SlashCommandAutocomplete.js.map +1 -0
- package/dist/components/agent/collaborationWindow.d.ts +11 -0
- package/dist/components/agent/collaborationWindow.d.ts.map +1 -0
- package/dist/components/agent/collaborationWindow.js +10 -0
- package/dist/components/agent/collaborationWindow.js.map +1 -0
- package/dist/components/agent/conversationCollaborationAppendJournal.d.ts +25 -0
- package/dist/components/agent/conversationCollaborationAppendJournal.d.ts.map +1 -0
- package/dist/components/agent/conversationCollaborationAppendJournal.js +118 -0
- package/dist/components/agent/conversationCollaborationAppendJournal.js.map +1 -0
- package/dist/components/agent/conversationCollaborationController.d.ts +96 -0
- package/dist/components/agent/conversationCollaborationController.d.ts.map +1 -0
- package/dist/components/agent/conversationCollaborationController.js +597 -0
- package/dist/components/agent/conversationCollaborationController.js.map +1 -0
- package/dist/components/agent/destructiveConfirmation.d.ts +76 -0
- package/dist/components/agent/destructiveConfirmation.d.ts.map +1 -0
- package/dist/components/agent/destructiveConfirmation.js +231 -0
- package/dist/components/agent/destructiveConfirmation.js.map +1 -0
- package/dist/components/agent/editorOperationAuthority.d.ts +29 -0
- package/dist/components/agent/editorOperationAuthority.d.ts.map +1 -0
- package/dist/components/agent/editorOperationAuthority.js +73 -0
- package/dist/components/agent/editorOperationAuthority.js.map +1 -0
- package/dist/components/agent/mainAssistant.d.ts +24 -0
- package/dist/components/agent/mainAssistant.d.ts.map +1 -0
- package/dist/components/agent/mainAssistant.js +24 -0
- package/dist/components/agent/mainAssistant.js.map +1 -0
- package/dist/components/agent/nativeTuiComposerInput.d.ts +42 -0
- package/dist/components/agent/nativeTuiComposerInput.d.ts.map +1 -0
- package/dist/components/agent/nativeTuiComposerInput.js +51 -0
- package/dist/components/agent/nativeTuiComposerInput.js.map +1 -0
- package/dist/components/agent/settings/shared/InAppConfirmationDialog.d.ts +25 -0
- package/dist/components/agent/settings/shared/InAppConfirmationDialog.d.ts.map +1 -0
- package/dist/components/agent/settings/shared/InAppConfirmationDialog.js +89 -0
- package/dist/components/agent/settings/shared/InAppConfirmationDialog.js.map +1 -0
- package/dist/components/agent/toolCardDisplay.d.ts +24 -0
- package/dist/components/agent/toolCardDisplay.d.ts.map +1 -0
- package/dist/components/agent/toolCardDisplay.js +85 -0
- package/dist/components/agent/toolCardDisplay.js.map +1 -0
- package/dist/components/agent/webJobProgressView.d.ts +90 -0
- package/dist/components/agent/webJobProgressView.d.ts.map +1 -0
- package/dist/components/agent/webJobProgressView.js +104 -0
- package/dist/components/agent/webJobProgressView.js.map +1 -0
- package/dist/components/agent/workbenchPanelTabs.d.ts +12 -0
- package/dist/components/agent/workbenchPanelTabs.d.ts.map +1 -0
- package/dist/components/agent/workbenchPanelTabs.js +35 -0
- package/dist/components/agent/workbenchPanelTabs.js.map +1 -0
- package/dist/components/ui/CodeBlock.d.ts +8 -0
- package/dist/components/ui/CodeBlock.d.ts.map +1 -0
- package/dist/components/ui/CodeBlock.js +89 -0
- package/dist/components/ui/CodeBlock.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/platformApiTypes.d.ts +4176 -0
- package/dist/platformApiTypes.d.ts.map +1 -0
- package/dist/platformApiTypes.js +2 -0
- package/dist/platformApiTypes.js.map +1 -0
- package/dist/platformBridge.d.ts +43 -0
- package/dist/platformBridge.d.ts.map +1 -0
- package/dist/platformBridge.js +67 -0
- package/dist/platformBridge.js.map +1 -0
- package/dist/providerSelector.d.ts +28 -0
- package/dist/providerSelector.d.ts.map +1 -0
- package/dist/providerSelector.js +104 -0
- package/dist/providerSelector.js.map +1 -0
- package/dist/services/connectionMode.d.ts +13 -0
- package/dist/services/connectionMode.d.ts.map +1 -0
- package/dist/services/connectionMode.js +31 -0
- package/dist/services/connectionMode.js.map +1 -0
- package/dist/sessionTabs.d.ts +48 -0
- package/dist/sessionTabs.d.ts.map +1 -0
- package/dist/sessionTabs.js +106 -0
- package/dist/sessionTabs.js.map +1 -0
- package/dist/stores/acpAgentStore.d.ts +264 -0
- package/dist/stores/acpAgentStore.d.ts.map +1 -0
- package/dist/stores/acpAgentStore.js +825 -0
- package/dist/stores/acpAgentStore.js.map +1 -0
- package/dist/stores/agentChatStore.d.ts +693 -0
- package/dist/stores/agentChatStore.d.ts.map +1 -0
- package/dist/stores/agentChatStore.js +5876 -0
- package/dist/stores/agentChatStore.js.map +1 -0
- package/dist/stores/authStore.d.ts +26 -0
- package/dist/stores/authStore.d.ts.map +1 -0
- package/dist/stores/authStore.js +163 -0
- package/dist/stores/authStore.js.map +1 -0
- package/dist/stores/suggestionStore.d.ts +36 -0
- package/dist/stores/suggestionStore.d.ts.map +1 -0
- package/dist/stores/suggestionStore.js +187 -0
- package/dist/stores/suggestionStore.js.map +1 -0
- package/dist/stores/tabStore.d.ts +30 -0
- package/dist/stores/tabStore.d.ts.map +1 -0
- package/dist/stores/tabStore.js +252 -0
- package/dist/stores/tabStore.js.map +1 -0
- package/dist/stores/xenoChatStore.d.ts +88 -0
- package/dist/stores/xenoChatStore.d.ts.map +1 -0
- package/dist/stores/xenoChatStore.js +583 -0
- package/dist/stores/xenoChatStore.js.map +1 -0
- package/dist/types/agentEditor.d.ts +40 -0
- package/dist/types/agentEditor.d.ts.map +1 -0
- package/dist/types/agentEditor.js +2 -0
- package/dist/types/agentEditor.js.map +1 -0
- package/dist/types/agentPermissions.d.ts +45 -0
- package/dist/types/agentPermissions.d.ts.map +1 -0
- package/dist/types/agentPermissions.js +15 -0
- package/dist/types/agentPermissions.js.map +1 -0
- package/dist/types/agentRuntimeProvider.d.ts +2 -0
- package/dist/types/agentRuntimeProvider.d.ts.map +1 -0
- package/dist/types/agentRuntimeProvider.js +2 -0
- package/dist/types/agentRuntimeProvider.js.map +1 -0
- package/dist/utils/acpExecutionAuthority.d.ts +26 -0
- package/dist/utils/acpExecutionAuthority.d.ts.map +1 -0
- package/dist/utils/acpExecutionAuthority.js +46 -0
- package/dist/utils/acpExecutionAuthority.js.map +1 -0
- package/dist/utils/advertisedReasoning.d.ts +25 -0
- package/dist/utils/advertisedReasoning.d.ts.map +1 -0
- package/dist/utils/advertisedReasoning.js +62 -0
- package/dist/utils/advertisedReasoning.js.map +1 -0
- package/dist/utils/agentAttachedContextPrompt.d.ts +2 -0
- package/dist/utils/agentAttachedContextPrompt.d.ts.map +1 -0
- package/dist/utils/agentAttachedContextPrompt.js +2 -0
- package/dist/utils/agentAttachedContextPrompt.js.map +1 -0
- package/dist/utils/agentModelContext.d.ts +2 -0
- package/dist/utils/agentModelContext.d.ts.map +1 -0
- package/dist/utils/agentModelContext.js +2 -0
- package/dist/utils/agentModelContext.js.map +1 -0
- package/dist/utils/agentReasoningEffort.d.ts +3 -0
- package/dist/utils/agentReasoningEffort.d.ts.map +1 -0
- package/dist/utils/agentReasoningEffort.js +2 -0
- package/dist/utils/agentReasoningEffort.js.map +1 -0
- package/dist/utils/agentRuntimeProvider.d.ts +3 -0
- package/dist/utils/agentRuntimeProvider.d.ts.map +1 -0
- package/dist/utils/agentRuntimeProvider.js +2 -0
- package/dist/utils/agentRuntimeProvider.js.map +1 -0
- package/dist/utils/clipboardCopy.d.ts +4 -0
- package/dist/utils/clipboardCopy.d.ts.map +1 -0
- package/dist/utils/clipboardCopy.js +27 -0
- package/dist/utils/clipboardCopy.js.map +1 -0
- package/dist/utils/cloudModels.d.ts +3 -0
- package/dist/utils/cloudModels.d.ts.map +1 -0
- package/dist/utils/cloudModels.js +181 -0
- package/dist/utils/cloudModels.js.map +1 -0
- package/dist/utils/conversationRuntime.d.ts +3 -0
- package/dist/utils/conversationRuntime.d.ts.map +1 -0
- package/dist/utils/conversationRuntime.js +2 -0
- package/dist/utils/conversationRuntime.js.map +1 -0
- package/dist/utils/fileCreateIntent.d.ts +16 -0
- package/dist/utils/fileCreateIntent.d.ts.map +1 -0
- package/dist/utils/fileCreateIntent.js +123 -0
- package/dist/utils/fileCreateIntent.js.map +1 -0
- package/dist/utils/legacyAgentRuntimeEvents.d.ts +2 -0
- package/dist/utils/legacyAgentRuntimeEvents.d.ts.map +1 -0
- package/dist/utils/legacyAgentRuntimeEvents.js +2 -0
- package/dist/utils/legacyAgentRuntimeEvents.js.map +1 -0
- package/dist/utils/markdownWindowsPaths.d.ts +2 -0
- package/dist/utils/markdownWindowsPaths.d.ts.map +1 -0
- package/dist/utils/markdownWindowsPaths.js +2 -0
- package/dist/utils/markdownWindowsPaths.js.map +1 -0
- package/dist/utils/modelAvailability.d.ts +11 -0
- package/dist/utils/modelAvailability.d.ts.map +1 -0
- package/dist/utils/modelAvailability.js +10 -0
- package/dist/utils/modelAvailability.js.map +1 -0
- package/dist/utils/providerAvailability.d.ts +8 -0
- package/dist/utils/providerAvailability.d.ts.map +1 -0
- package/dist/utils/providerAvailability.js +13 -0
- package/dist/utils/providerAvailability.js.map +1 -0
- package/dist/utils/providerCommandArgs.d.ts +11 -0
- package/dist/utils/providerCommandArgs.d.ts.map +1 -0
- package/dist/utils/providerCommandArgs.js +18 -0
- package/dist/utils/providerCommandArgs.js.map +1 -0
- package/dist/utils/workspaceSelectionContinuation.d.ts +2 -0
- package/dist/utils/workspaceSelectionContinuation.d.ts.map +1 -0
- package/dist/utils/workspaceSelectionContinuation.js +2 -0
- package/dist/utils/workspaceSelectionContinuation.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../src/components/ui/CodeBlock.tsx"],"names":[],"mappings":"AASA,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAwDD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAmFhF"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* CodeBlock — Enhanced code block for markdown rendering.
|
|
4
|
+
* Displays language label, copy button, and basic syntax highlighting via CSS classes.
|
|
5
|
+
* Used as a custom component override for ReactMarkdown's `code` element.
|
|
6
|
+
*/
|
|
7
|
+
import { useState, useCallback } from 'react';
|
|
8
|
+
import { Copy, Check } from 'lucide-react';
|
|
9
|
+
// Language display names
|
|
10
|
+
const LANG_LABELS = {
|
|
11
|
+
js: 'JavaScript',
|
|
12
|
+
jsx: 'JSX',
|
|
13
|
+
ts: 'TypeScript',
|
|
14
|
+
tsx: 'TSX',
|
|
15
|
+
py: 'Python',
|
|
16
|
+
python: 'Python',
|
|
17
|
+
rb: 'Ruby',
|
|
18
|
+
ruby: 'Ruby',
|
|
19
|
+
rs: 'Rust',
|
|
20
|
+
rust: 'Rust',
|
|
21
|
+
go: 'Go',
|
|
22
|
+
java: 'Java',
|
|
23
|
+
cpp: 'C++',
|
|
24
|
+
c: 'C',
|
|
25
|
+
cs: 'C#',
|
|
26
|
+
csharp: 'C#',
|
|
27
|
+
html: 'HTML',
|
|
28
|
+
css: 'CSS',
|
|
29
|
+
scss: 'SCSS',
|
|
30
|
+
json: 'JSON',
|
|
31
|
+
yaml: 'YAML',
|
|
32
|
+
yml: 'YAML',
|
|
33
|
+
xml: 'XML',
|
|
34
|
+
sql: 'SQL',
|
|
35
|
+
sh: 'Shell',
|
|
36
|
+
bash: 'Bash',
|
|
37
|
+
zsh: 'Zsh',
|
|
38
|
+
powershell: 'PowerShell',
|
|
39
|
+
ps1: 'PowerShell',
|
|
40
|
+
dockerfile: 'Dockerfile',
|
|
41
|
+
docker: 'Docker',
|
|
42
|
+
toml: 'TOML',
|
|
43
|
+
ini: 'INI',
|
|
44
|
+
md: 'Markdown',
|
|
45
|
+
markdown: 'Markdown',
|
|
46
|
+
graphql: 'GraphQL',
|
|
47
|
+
swift: 'Swift',
|
|
48
|
+
kotlin: 'Kotlin',
|
|
49
|
+
dart: 'Dart',
|
|
50
|
+
lua: 'Lua',
|
|
51
|
+
r: 'R',
|
|
52
|
+
tex: 'LaTeX',
|
|
53
|
+
latex: 'LaTeX',
|
|
54
|
+
diff: 'Diff',
|
|
55
|
+
plaintext: 'Text',
|
|
56
|
+
text: 'Text',
|
|
57
|
+
txt: 'Text',
|
|
58
|
+
};
|
|
59
|
+
const COMPACT_SINGLE_LINE_LANGUAGES = new Set(['', 'text', 'txt', 'plaintext']);
|
|
60
|
+
const COMPACT_SINGLE_LINE_MAX_CHARS = 120;
|
|
61
|
+
export default function CodeBlock({ inline, className, children }) {
|
|
62
|
+
const [copied, setCopied] = useState(false);
|
|
63
|
+
// Extract language from className (e.g., "language-typescript")
|
|
64
|
+
const langMatch = className?.match(/language-(\w+)/);
|
|
65
|
+
const language = langMatch?.[1] || '';
|
|
66
|
+
const displayLabel = LANG_LABELS[language] || (language ? language.charAt(0).toUpperCase() + language.slice(1) : '');
|
|
67
|
+
const codeText = String(children).replace(/\n$/, '');
|
|
68
|
+
const isCompactSingleLineBlock = !inline
|
|
69
|
+
&& COMPACT_SINGLE_LINE_LANGUAGES.has(language)
|
|
70
|
+
&& !codeText.includes('\n')
|
|
71
|
+
&& codeText.trim().length > 0
|
|
72
|
+
&& codeText.length <= COMPACT_SINGLE_LINE_MAX_CHARS;
|
|
73
|
+
const handleCopy = useCallback(() => {
|
|
74
|
+
navigator.clipboard.writeText(codeText).then(() => {
|
|
75
|
+
setCopied(true);
|
|
76
|
+
setTimeout(() => setCopied(false), 2000);
|
|
77
|
+
});
|
|
78
|
+
}, [codeText]);
|
|
79
|
+
// Inline code
|
|
80
|
+
if (inline) {
|
|
81
|
+
return (_jsx("code", { className: className, children: children }));
|
|
82
|
+
}
|
|
83
|
+
if (isCompactSingleLineBlock) {
|
|
84
|
+
return (_jsxs("div", { className: "group/code relative my-1 inline-flex max-w-full items-center overflow-hidden rounded-[4px] border border-white/[0.055] bg-white/[0.035] align-middle", children: [_jsx("code", { className: `${className || ''} !m-0 !border-0 !bg-transparent !px-2 !py-0.5 min-w-0 overflow-x-auto whitespace-pre font-mono text-[12px] font-semibold leading-5 text-white/82`, children: codeText }), _jsx("button", { onClick: handleCopy, className: "flex h-5 items-center gap-1 border-l border-white/[0.055] px-1.5 text-white/20 opacity-0 transition-colors hover:bg-white/[0.06] hover:text-white/55 group-hover/code:opacity-100", "aria-label": "Copy code", children: copied ? (_jsx(Check, { className: "h-3 w-3", strokeWidth: 1.5 })) : (_jsx(Copy, { className: "h-3 w-3", strokeWidth: 1.5 })) })] }));
|
|
85
|
+
}
|
|
86
|
+
// Block code
|
|
87
|
+
return (_jsxs("div", { className: "relative group/code", children: [_jsxs("div", { className: "flex items-center justify-between h-7 px-3 bg-white/[0.03] border-b border-white/[0.04] rounded-t-lg", children: [_jsx("span", { className: "text-[9px] font-medium tracking-wide text-white/25 uppercase select-none", children: displayLabel }), _jsx("button", { onClick: handleCopy, className: "flex items-center gap-1 h-5 px-1.5 rounded text-white/20 hover:text-white/50 hover:bg-white/[0.06] transition-colors opacity-0 group-hover/code:opacity-100", "aria-label": "Copy code", children: copied ? (_jsxs(_Fragment, { children: [_jsx(Check, { className: "w-3 h-3", strokeWidth: 1.5 }), _jsx("span", { className: "text-[9px]", children: "Copied" })] })) : (_jsxs(_Fragment, { children: [_jsx(Copy, { className: "w-3 h-3", strokeWidth: 1.5 }), _jsx("span", { className: "text-[9px]", children: "Copy" })] })) })] }), _jsx("code", { className: `${className || ''} block`, children: children })] }));
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=CodeBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.js","sourceRoot":"","sources":["../../../src/components/ui/CodeBlock.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAQ1C,yBAAyB;AACzB,MAAM,WAAW,GAA2B;IAC1C,EAAE,EAAE,YAAY;IAChB,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,YAAY;IAChB,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,QAAQ;IAChB,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,YAAY;IACxB,GAAG,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,EAAC,sGAAsG,aACnH,eAAM,SAAS,EAAC,0EAA0E,YACvF,YAAY,GACR,EACP,iBACE,OAAO,EAAE,UAAU,EACnB,SAAS,EAAC,6JAA6J,gBAC5J,WAAW,YAErB,MAAM,CAAC,CAAC,CAAC,CACR,8BACE,KAAC,KAAK,IAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAE,GAAG,GAAI,EAC/C,eAAM,SAAS,EAAC,YAAY,uBAAc,IACzC,CACJ,CAAC,CAAC,CAAC,CACF,8BACE,KAAC,IAAI,IAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAE,GAAG,GAAI,EAC9C,eAAM,SAAS,EAAC,YAAY,qBAAY,IACvC,CACJ,GACM,IACL,EACN,eAAM,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,QAAQ,YACxC,QAAQ,GACJ,IACH,CACP,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xenosystem/agent-conversation` — the XENO Agent conversation, as a package.
|
|
3
|
+
*
|
|
4
|
+
* ## Why this package exists
|
|
5
|
+
*
|
|
6
|
+
* The conversation — the transcript, the composer, and the logic behind them — used to live inside
|
|
7
|
+
* `@xenosystem/agent-interface-ui`, the package that also contains the desktop SHELL. That made the
|
|
8
|
+
* shell the canonical thing and the panel a wrapper around it, so the dependency ran
|
|
9
|
+
* `ui → panel`: improving the panel reached nobody, because nothing downstream depended on it.
|
|
10
|
+
*
|
|
11
|
+
* The arrow is now the other way. The conversation is the canonical unit, and everything that
|
|
12
|
+
* shows a conversation depends on THIS:
|
|
13
|
+
*
|
|
14
|
+
* ```
|
|
15
|
+
* contract / core / client
|
|
16
|
+
* ↑
|
|
17
|
+
* agent-conversation ← the conversation itself
|
|
18
|
+
* ↑ ↑
|
|
19
|
+
* agent-interface-ui agent-interface-panel
|
|
20
|
+
* (the shell) (any panel host)
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* 🔴 It is a separate package rather than living in the panel, and the reason is structural:
|
|
24
|
+
* `embed` depends on `ui`, and the panel depends on `embed`. Putting the conversation in the panel
|
|
25
|
+
* would make `ui → panel → embed → ui` — a cycle. Sitting below all three, this has no such
|
|
26
|
+
* problem, and both the shell and the panel render exactly the same conversation.
|
|
27
|
+
*
|
|
28
|
+
* @module
|
|
29
|
+
*/
|
|
30
|
+
export { AgentView as XenoAgentConversation } from './components/agent/AgentView.js';
|
|
31
|
+
export type { AgentViewProps as XenoAgentConversationProps } from './components/agent/AgentView.js';
|
|
32
|
+
export { ToolCallsBlock } from './components/agent/AgentView.js';
|
|
33
|
+
/**
|
|
34
|
+
* The default conversation's identity. Exported so a host mounting the conversation alone opens
|
|
35
|
+
* the SAME personal assistant the desktop app shows, rather than inventing an agent id.
|
|
36
|
+
*/
|
|
37
|
+
export { MAIN_ASSISTANT_ID, MAIN_ASSISTANT_MODEL, MAIN_ASSISTANT_MODEL_NAME, MAIN_ASSISTANT_NAME, } from './components/agent/mainAssistant.js';
|
|
38
|
+
/**
|
|
39
|
+
* The host seam. A surface configures this once and the conversation reads it — there is no other
|
|
40
|
+
* way in, which is what lets a panel host grant three capabilities instead of a request channel to
|
|
41
|
+
* all 141 host methods.
|
|
42
|
+
*/
|
|
43
|
+
export { configureAgentPlatformBridge, getAgentPlatformBridge, requireAgentPlatformCapability, } from './platformBridge.js';
|
|
44
|
+
export type { AgentPlatformBridge } from './platformBridge.js';
|
|
45
|
+
/** The agent's permission model — what it may reach, and what it must ask about. */
|
|
46
|
+
export type { AgentApprovalRule, AgentApprovalRuleAction, AgentApprovalRuleSurface, AgentCapabilities, AgentPermissionProfileName, } from './types/agentPermissions.js';
|
|
47
|
+
/** The workbench panel's tabs. The array IS the tab bar and IS the type — see its module note. */
|
|
48
|
+
export { WORKBENCH_PANEL_TABS } from './components/agent/workbenchPanelTabs.js';
|
|
49
|
+
export type { WorkbenchPanelTab } from './components/agent/workbenchPanelTabs.js';
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACpF,YAAY,EAAE,cAAc,IAAI,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE;;;GAGG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,qCAAqC,CAAA;AAE5C;;;;GAIG;AACH,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D,oFAAoF;AACpF,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAA;AAEpC,kGAAkG;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xenosystem/agent-conversation` — the XENO Agent conversation, as a package.
|
|
3
|
+
*
|
|
4
|
+
* ## Why this package exists
|
|
5
|
+
*
|
|
6
|
+
* The conversation — the transcript, the composer, and the logic behind them — used to live inside
|
|
7
|
+
* `@xenosystem/agent-interface-ui`, the package that also contains the desktop SHELL. That made the
|
|
8
|
+
* shell the canonical thing and the panel a wrapper around it, so the dependency ran
|
|
9
|
+
* `ui → panel`: improving the panel reached nobody, because nothing downstream depended on it.
|
|
10
|
+
*
|
|
11
|
+
* The arrow is now the other way. The conversation is the canonical unit, and everything that
|
|
12
|
+
* shows a conversation depends on THIS:
|
|
13
|
+
*
|
|
14
|
+
* ```
|
|
15
|
+
* contract / core / client
|
|
16
|
+
* ↑
|
|
17
|
+
* agent-conversation ← the conversation itself
|
|
18
|
+
* ↑ ↑
|
|
19
|
+
* agent-interface-ui agent-interface-panel
|
|
20
|
+
* (the shell) (any panel host)
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* 🔴 It is a separate package rather than living in the panel, and the reason is structural:
|
|
24
|
+
* `embed` depends on `ui`, and the panel depends on `embed`. Putting the conversation in the panel
|
|
25
|
+
* would make `ui → panel → embed → ui` — a cycle. Sitting below all three, this has no such
|
|
26
|
+
* problem, and both the shell and the panel render exactly the same conversation.
|
|
27
|
+
*
|
|
28
|
+
* @module
|
|
29
|
+
*/
|
|
30
|
+
export { AgentView as XenoAgentConversation } from './components/agent/AgentView.js';
|
|
31
|
+
export { ToolCallsBlock } from './components/agent/AgentView.js';
|
|
32
|
+
/**
|
|
33
|
+
* The default conversation's identity. Exported so a host mounting the conversation alone opens
|
|
34
|
+
* the SAME personal assistant the desktop app shows, rather than inventing an agent id.
|
|
35
|
+
*/
|
|
36
|
+
export { MAIN_ASSISTANT_ID, MAIN_ASSISTANT_MODEL, MAIN_ASSISTANT_MODEL_NAME, MAIN_ASSISTANT_NAME, } from './components/agent/mainAssistant.js';
|
|
37
|
+
/**
|
|
38
|
+
* The host seam. A surface configures this once and the conversation reads it — there is no other
|
|
39
|
+
* way in, which is what lets a panel host grant three capabilities instead of a request channel to
|
|
40
|
+
* all 141 host methods.
|
|
41
|
+
*/
|
|
42
|
+
export { configureAgentPlatformBridge, getAgentPlatformBridge, requireAgentPlatformCapability, } from './platformBridge.js';
|
|
43
|
+
/** The workbench panel's tabs. The array IS the tab bar and IS the type — see its module note. */
|
|
44
|
+
export { WORKBENCH_PANEL_TABS } from './components/agent/workbenchPanelTabs.js';
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAEpF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEhE;;;GAGG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,qCAAqC,CAAA;AAE5C;;;;GAIG;AACH,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAY5B,kGAAkG;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA"}
|