@xenosystem/agent-interface-ui 0.1.21 → 0.1.22
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/components/agent/AgentView.d.ts.map +1 -1
- package/dist/components/agent/AgentView.js +55 -2
- package/dist/components/agent/AgentView.js.map +1 -1
- 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/platformBridge.d.ts +9 -0
- package/dist/platformBridge.d.ts.map +1 -1
- package/dist/platformBridge.js +11 -0
- package/dist/platformBridge.js.map +1 -1
- package/dist/stores/agentChatStore.d.ts +11 -1
- package/dist/stores/agentChatStore.d.ts.map +1 -1
- package/dist/stores/agentChatStore.js +72 -3
- package/dist/stores/agentChatStore.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentView.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentView.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAMhF,OAAO,EAA2N,KAAK,YAAY,EAA2N,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"AgentView.d.ts","sourceRoot":"","sources":["../../../src/components/agent/AgentView.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAMhF,OAAO,EAA2N,KAAK,YAAY,EAA2N,MAAM,gCAAgC,CAAA;AAYpf,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AAC3G,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,sBAAsB,EAA2B,MAAM,4BAA4B,CAAA;AAwBjG,OAAO,EAA6C,KAAK,wBAAwB,EAA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Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getAgentPlatformBridge } from '../../platformBridge.js';
|
|
2
|
+
import { getAgentPlatformBridge, getOptionalAgentPlatformBridge } from '../../platformBridge.js';
|
|
3
3
|
/*
|
|
4
4
|
* AgentView.tsx - Active Agent Chat Interface
|
|
5
5
|
*
|
|
@@ -23,6 +23,7 @@ import { AIStatusIndicator } from './AIStatusIndicator.js';
|
|
|
23
23
|
import { CommandToolCard } from './CommandToolCard.js';
|
|
24
24
|
import { AssistantTurnErrorNotice, AssistantTurnStatusNotice } from './AssistantTurnStatusNotice.js';
|
|
25
25
|
import { commandPreviewText, compactCommandPreview, deriveToolInteractionState, hideDuplicateToolTitle, isCommandToolCall } from './toolCardDisplay.js';
|
|
26
|
+
import { deriveWebJobProgressView, webJobStopAvailability, WEB_JOB_STOP_LABEL, WEB_JOB_STOP_TITLE } from './webJobProgressView.js';
|
|
26
27
|
import { cloudModelName, cloudModelSortScore } from '../../utils/cloudModels.js';
|
|
27
28
|
import { extractWindowsFilePathsFromToolResult, prepareAgentMarkdown, resolveMarkdownLocalFilePath, } from '../../utils/markdownWindowsPaths.js';
|
|
28
29
|
import { agentReasoningEffortLabel, buildExplicitAgentReasoningEffortFamilies, indexAgentReasoningEffortFamilies, preferredAgentReasoningModelId, resolveAgentReasoningEffortFamily, } from '../../utils/agentReasoningEffort.js';
|
|
@@ -2454,6 +2455,40 @@ function WebContextEvidenceCard({ toolCall, expanded }) {
|
|
|
2454
2455
|
}
|
|
2455
2456
|
return (_jsxs("div", { "data-web-context-evidence": evidence.evidenceId, className: "ml-3 mt-0.5 max-w-[calc(100%-12px)] overflow-hidden rounded-[3px] border border-sky-300/[0.08] bg-sky-300/[0.025]", children: [_jsxs("div", { className: "flex min-h-[24px] items-center gap-2 px-2 text-[10px]", children: [_jsx("span", { className: "uppercase tracking-[0.14em] text-sky-200/38", children: "Evidence" }), _jsx("span", { className: "min-w-0 flex-1 truncate text-white/42", title: evidence.finalUrl || evidence.sourceUrl, children: sourceLabel }), _jsxs("span", { className: "flex-shrink-0 text-white/24", children: [evidence.citations.length, " ", evidence.citations.length === 1 ? 'source' : 'sources'] }), projection.job && (_jsx("span", { className: "flex-shrink-0 uppercase tracking-[0.12em] text-white/20", children: projection.job.state }))] }), expanded && (_jsxs("div", { className: "border-t border-white/[0.04] px-2 py-1.5", children: [_jsx("div", { className: "truncate font-mono text-[9px] text-white/20", title: evidence.evidenceId, children: evidence.evidenceId }), visibleCitations.length > 0 && (_jsxs("div", { className: "mt-1 space-y-1", children: [visibleCitations.map((citation, index) => (_jsx("a", { href: citation.url, target: "_blank", rel: "noreferrer", className: "block min-w-0 truncate text-[10px] text-sky-200/45 hover:text-sky-100/70", title: citation.url, children: citation.title || citation.url }, `${citation.url}:${index}`))), evidence.citations.length > visibleCitations.length && (_jsxs("div", { className: "text-[9px] text-white/20", children: ["+", evidence.citations.length - visibleCitations.length, " more sources"] }))] }))] }))] }));
|
|
2456
2457
|
}
|
|
2458
|
+
/**
|
|
2459
|
+
* Live progress for a durable XENO Web Context job, rendered inside the tool card
|
|
2460
|
+
* that owns it rather than in a surface of its own.
|
|
2461
|
+
*
|
|
2462
|
+
* It sits beside `WebContextEvidenceCard`, not inside it: progress is a live
|
|
2463
|
+
* projection that arrives many times while a tool runs, evidence is the terminal
|
|
2464
|
+
* artefact that arrives once. A tool call may carry either, both, or neither, and
|
|
2465
|
+
* a tool that reports no progress renders exactly what it rendered before this
|
|
2466
|
+
* existed.
|
|
2467
|
+
*/
|
|
2468
|
+
function WebContextJobProgressRow({ toolCall, onStop, }) {
|
|
2469
|
+
const progress = toolCall.webJobProgress;
|
|
2470
|
+
if (!progress)
|
|
2471
|
+
return null;
|
|
2472
|
+
const view = deriveWebJobProgressView(progress, toolCall.status);
|
|
2473
|
+
// A stale row is a record, not a live one: nothing is still moving, so nothing pulses.
|
|
2474
|
+
const indeterminate = view.percent === null && !view.stale;
|
|
2475
|
+
return (_jsx("div", { "data-web-job-progress": view.jobId, "data-web-job-state": progress.state, "data-web-job-stale": view.stale ? 'true' : 'false', className: "ml-3 mt-0.5 max-w-[calc(100%-12px)] overflow-hidden rounded-[3px] border border-white/[0.06] bg-white/[0.02]", children: _jsxs("div", { className: "flex min-h-[24px] items-center gap-2 px-2 text-[10px]", children: [_jsx("span", { className: "flex-shrink-0 uppercase tracking-[0.14em] text-white/32", children: view.operationLabel }), _jsx("span", { className: `flex-shrink-0 uppercase tracking-[0.12em] ${view.tone === 'failed'
|
|
2476
|
+
? 'text-[#ff8d86]/70'
|
|
2477
|
+
: view.tone === 'cancelled' || view.tone === 'partial'
|
|
2478
|
+
? 'text-white/30'
|
|
2479
|
+
: 'text-white/45'}`, children: view.stateLabel }), _jsx("div", { role: "progressbar", "aria-label": view.ariaLabel, "aria-valuetext": view.valueText, ...(view.percent === null
|
|
2480
|
+
? {}
|
|
2481
|
+
: { 'aria-valuemin': 0, 'aria-valuemax': 100, 'aria-valuenow': view.percent }), className: "h-[3px] w-[56px] flex-shrink-0 overflow-hidden rounded-[1px] bg-white/[0.07]", children: _jsx("div", { className: indeterminate
|
|
2482
|
+
? // No percentage is known, so nothing may claim one. The pulse says
|
|
2483
|
+
// "moving"; under a reduced-motion preference it stops moving and
|
|
2484
|
+
// still reads as a partially filled track, and the counters text
|
|
2485
|
+
// carries the same fact for anyone who cannot see either.
|
|
2486
|
+
'h-full w-1/3 bg-white/25 animate-pulse motion-reduce:animate-none'
|
|
2487
|
+
: 'h-full bg-white/30', ...(indeterminate ? {} : { style: { width: `${view.percent}%` } }) }) }), _jsxs("span", { className: "min-w-0 flex-1 truncate tabular-nums text-white/38", title: view.valueText, children: [view.countersText, view.terminalReason ? ` · ${view.terminalReason}` : ''] }), onStop && (_jsx("button", { type: "button", onClick: (event) => {
|
|
2488
|
+
event.stopPropagation();
|
|
2489
|
+
onStop();
|
|
2490
|
+
}, title: WEB_JOB_STOP_TITLE, "aria-label": WEB_JOB_STOP_TITLE, className: "h-[18px] flex-shrink-0 rounded-[2px] border border-white/[0.08] bg-white/[0.04] px-1.5 text-[9px] uppercase tracking-[0.14em] text-white/45 transition-colors hover:border-white/[0.16] hover:bg-white/[0.07] hover:text-white/75", children: WEB_JOB_STOP_LABEL }))] }) }));
|
|
2491
|
+
}
|
|
2457
2492
|
function readToolStringParam(params, keys) {
|
|
2458
2493
|
if (!params)
|
|
2459
2494
|
return '';
|
|
@@ -2759,6 +2794,18 @@ export function ToolCallsBlock({ calls, requestId, onAddApprovalRule, onOpenEdit
|
|
|
2759
2794
|
const [expandedFilePreviewId, setExpandedFilePreviewId] = useState(null);
|
|
2760
2795
|
const resolvePermission = useAgentChatStore(s => s.resolvePermission);
|
|
2761
2796
|
const grantConversationDirectory = useAgentChatStore(s => s.grantConversationDirectory);
|
|
2797
|
+
const abortActiveTurn = useAgentChatStore(s => s.abort);
|
|
2798
|
+
const activeRequestId = useAgentChatStore(s => s.activeRequestId);
|
|
2799
|
+
/**
|
|
2800
|
+
* Whether a cancellation path actually exists in THIS composition. The bridge is
|
|
2801
|
+
* injected by the consumer shell, so an embed that wires no runtime has none —
|
|
2802
|
+
* and offering a Stop button that resolves to nothing is the fabricated-success
|
|
2803
|
+
* failure mode, not a harmless no-op.
|
|
2804
|
+
*/
|
|
2805
|
+
const optionalBridge = getOptionalAgentPlatformBridge();
|
|
2806
|
+
const hostExposesCancellation = !!(optionalBridge?.acp?.cancelAgentPrompt
|
|
2807
|
+
|| optionalBridge?.agent?.cancel
|
|
2808
|
+
|| optionalBridge?.llm?.abort);
|
|
2762
2809
|
if (calls.length === 0)
|
|
2763
2810
|
return null;
|
|
2764
2811
|
const handleGrantAccess = (pr) => {
|
|
@@ -3016,7 +3063,13 @@ export function ToolCallsBlock({ calls, requestId, onAddApprovalRule, onOpenEdit
|
|
|
3016
3063
|
setExpandedFilePreviewId(tc.id);
|
|
3017
3064
|
}
|
|
3018
3065
|
}
|
|
3019
|
-
}, className: "flex-shrink-0", "aria-label": isExpanded ? 'Collapse tool details' : 'Expand tool details', children: _jsx(ChevronRight, { className: `w-3 h-3 text-white/15 transition-transform ${isExpanded ? 'rotate-90' : ''}` }) }))] })] }) })), tc.
|
|
3066
|
+
}, className: "flex-shrink-0", "aria-label": isExpanded ? 'Collapse tool details' : 'Expand tool details', children: _jsx(ChevronRight, { className: `w-3 h-3 text-white/15 transition-transform ${isExpanded ? 'rotate-90' : ''}` }) }))] })] }) })), tc.webJobProgress && (_jsx(WebContextJobProgressRow, { toolCall: tc, onStop: webJobStopAvailability({
|
|
3067
|
+
progress: tc.webJobProgress,
|
|
3068
|
+
toolCallStatus: tc.status,
|
|
3069
|
+
requestId,
|
|
3070
|
+
activeRequestId,
|
|
3071
|
+
hostExposesCancellation,
|
|
3072
|
+
}).available ? abortActiveTurn : undefined })), tc.webContext && !isRunning && (_jsx(WebContextEvidenceCard, { toolCall: tc, expanded: isExpanded })), pr?.status === 'pending' && (_jsx(ToolApprovalCard, { toolCall: tc, permission: pr, canPersistAllowlist:
|
|
3020
3073
|
// An ACP `execute` names no directory, and gating this on
|
|
3021
3074
|
// `directory` alone hid the persist choice for every such
|
|
3022
3075
|
// permission — which is why a user could not create a policy
|