@qwen-code/web-shell 0.25.0 → 0.25.1-preview.1
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/agents-route-DAa1HKQE.js +1546 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-tVJkU24-.js → index-zUj3SlrB.js} +45814 -44258
- package/dist/index.js +22 -22
- package/dist/sw.js +1 -1
- package/dist/{toolNames-CAeFJ9L9.js → toolNames-B_KiYcXs.js} +3679 -3764
- package/dist/transcript.js +9608 -9312
- package/dist/types/adapters/messageTypes.d.ts +8 -1
- package/dist/types/adapters/transcriptAdapter.d.ts +1 -0
- package/dist/types/components/ChatContextHeader.d.ts +3 -1
- package/dist/types/components/agents/AgentCreatePage.d.ts +7 -1
- package/dist/types/components/agents/AgentsManagerPage.d.ts +4 -5
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +1 -8
- package/dist/types/components/artifacts/TrajectoryFilters.d.ts +15 -0
- package/dist/types/components/artifacts/TrajectoryInspector.d.ts +3 -1
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +191 -9
- package/dist/types/components/managed/java-managed-agent-client.d.ts +3 -1
- package/dist/types/components/managed/managed-agent-provider.d.ts +9 -0
- package/dist/types/components/messages/AssistantMessage.d.ts +3 -1
- package/dist/types/components/messages/UserMessage.d.ts +3 -1
- package/dist/types/components/messages/agent-message-details.d.ts +36 -0
- package/dist/types/components/messages/squad-tag.d.ts +16 -0
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +2 -4
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +1 -2
- package/dist/types/components/workspace-agents/ThreadsPage.d.ts +31 -55
- package/dist/types/components/workspace-agents/add-runtime-dialog.d.ts +34 -5
- package/dist/types/components/workspace-agents/agent-events.d.ts +4 -34
- package/dist/types/components/workspace-agents/agents-route.d.ts +19 -0
- package/dist/types/components/workspace-agents/agents-view-logic.d.ts +14 -163
- package/dist/types/components/workspace-agents/lazy-agents-route.d.ts +7 -0
- package/dist/types/components/workspace-agents/messages.d.ts +2 -2
- package/dist/types/components/workspace-agents/session-agent-live-runs.d.ts +96 -0
- package/dist/types/components/workspace-agents/session-agents-api.d.ts +39 -0
- package/dist/types/components/workspace-agents/squads-section.d.ts +28 -0
- package/dist/types/components/workspace-agents/threads-api.d.ts +25 -36
- package/dist/types/components/workspace-agents/use-session-agent-runs.d.ts +66 -0
- package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +74 -10
- package/dist/types/components/workspaces/WorkspaceHostProjects.d.ts +11 -0
- package/dist/types/components/workspaces/WorkspaceLocation.d.ts +7 -0
- package/dist/types/config/workspace-hosts.d.ts +11 -0
- package/dist/types/daemon/session/types.d.ts +19 -3
- package/dist/types/trajectory/filter-messages.d.ts +9 -0
- package/dist/types/trajectory/filter-messages.transcript-stub.d.ts +7 -0
- package/dist/types/trajectory/filterTrajectory.d.ts +22 -0
- package/dist/types/utils/cancelledTurn.d.ts +17 -0
- package/package.json +2 -1
- package/dist/ThreadsRoute-CtecWS_K.js +0 -2358
- package/dist/types/components/workspace-agents/LazyThreadsRoute.d.ts +0 -7
- package/dist/types/components/workspace-agents/ThreadChat.d.ts +0 -35
- package/dist/types/components/workspace-agents/ThreadView.d.ts +0 -72
- package/dist/types/components/workspace-agents/ThreadsRoute.d.ts +0 -23
- package/dist/types/components/workspace-agents/useProjectConversations.d.ts +0 -10
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type ThreadDetailView } from './ThreadView';
|
|
2
|
-
import { type RoutingPreviewTarget } from './agents-view-logic';
|
|
3
|
-
interface AgentEntry {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
retiredAt?: number;
|
|
9
|
-
status?: string;
|
|
10
|
-
runtime?: {
|
|
11
|
-
label: string;
|
|
12
|
-
status: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare function ThreadChat({ thread, agents, preview, pending, onSend, onDraftChange, onOpenAgentSession, onCancelRun, onMarkDone, onOpenThread, onRespondPermission, onAssign, onBack, activityOnly, onOpenActivity, headerActionsContainer, }: {
|
|
16
|
-
headerActionsContainer?: HTMLElement | null;
|
|
17
|
-
activityOnly?: boolean;
|
|
18
|
-
onOpenActivity?: () => void;
|
|
19
|
-
preview?: readonly RoutingPreviewTarget[];
|
|
20
|
-
agents: readonly AgentEntry[];
|
|
21
|
-
thread: ThreadDetailView;
|
|
22
|
-
pending: boolean;
|
|
23
|
-
onSend: (text: string) => Promise<boolean>;
|
|
24
|
-
onDraftChange: (text: string) => void;
|
|
25
|
-
onOpenAgentSession?: (sessionId: string) => void;
|
|
26
|
-
onCancelRun: (runId: string) => void;
|
|
27
|
-
onMarkDone: () => void;
|
|
28
|
-
onOpenThread: (threadId: string) => void;
|
|
29
|
-
onRespondPermission?: (sessionId: string, requestId: string, optionId: string) => Promise<unknown>;
|
|
30
|
-
/** Hands the conversation to another agent. */
|
|
31
|
-
onAssign?: (assignee?: string) => void;
|
|
32
|
-
/** Shown when the conversation is not in the shell's own chat column. */
|
|
33
|
-
onBack?: () => void;
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2026 Qwen Team
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type RunRow, type RunView } from './agents-view-logic';
|
|
7
|
-
export interface ThreadPostView {
|
|
8
|
-
sourceRunId?: string;
|
|
9
|
-
id: string;
|
|
10
|
-
sequence: number;
|
|
11
|
-
authorKind: 'human' | 'agent' | 'system';
|
|
12
|
-
authorName: string;
|
|
13
|
-
authorDeleted?: boolean;
|
|
14
|
-
text: string;
|
|
15
|
-
at: number;
|
|
16
|
-
outcomes?: readonly {
|
|
17
|
-
agentName?: string;
|
|
18
|
-
kind: 'dispatch' | 'coalesce' | 'skip';
|
|
19
|
-
reason?: string;
|
|
20
|
-
into?: 'queued' | 'running';
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
export interface ThreadDetailView {
|
|
24
|
-
id: string;
|
|
25
|
-
title: string;
|
|
26
|
-
body: string;
|
|
27
|
-
/** What "done" means here, in the author's words. */
|
|
28
|
-
acceptanceCriteria?: string;
|
|
29
|
-
priority?: 'urgent' | 'high' | 'normal' | 'low';
|
|
30
|
-
parent?: {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
};
|
|
34
|
-
assigneeName?: string;
|
|
35
|
-
status: 'open' | 'in_progress' | 'blocked' | 'in_review' | 'done' | 'cancelled';
|
|
36
|
-
/** The resolver's sentence. Rendered verbatim. */
|
|
37
|
-
reason: string;
|
|
38
|
-
posts: readonly ThreadPostView[];
|
|
39
|
-
runs: readonly RunView[];
|
|
40
|
-
children?: readonly ThreadChildView[];
|
|
41
|
-
budget: {
|
|
42
|
-
turnsUsed: number;
|
|
43
|
-
turnLimit: number;
|
|
44
|
-
tokensUsed: number;
|
|
45
|
-
tokenLimit: number;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export interface ThreadChildView {
|
|
49
|
-
id: string;
|
|
50
|
-
title: string;
|
|
51
|
-
status: ThreadDetailView['status'];
|
|
52
|
-
reason: string;
|
|
53
|
-
assigneeName?: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* One run: its state, how long it has gone, and what it is doing, with the
|
|
57
|
-
* thinking and output so far folded under it. Under a member in the Team
|
|
58
|
-
* panel the member row already names the agent, so `hideAgent` drops it.
|
|
59
|
-
*/
|
|
60
|
-
export declare function RunRowView({ row, agent, hideAgent, onOpenAgentSession, onCancelRun, }: {
|
|
61
|
-
row: RunRow;
|
|
62
|
-
agent?: {
|
|
63
|
-
status?: string;
|
|
64
|
-
runtime?: {
|
|
65
|
-
label: string;
|
|
66
|
-
status: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
hideAgent?: boolean;
|
|
70
|
-
onOpenAgentSession?: (sessionId: string) => void;
|
|
71
|
-
onCancelRun?: (runId: string) => void;
|
|
72
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2026 Qwen Team
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { type AgentWorkspaceView } from './ThreadsPage';
|
|
7
|
-
export interface ThreadsRouteProps {
|
|
8
|
-
/** `new-agent` opens straight into the New agent page. */
|
|
9
|
-
initialView?: AgentWorkspaceView | 'new-agent';
|
|
10
|
-
initialThreadId?: string;
|
|
11
|
-
workspaceCwd?: string;
|
|
12
|
-
chat?: boolean;
|
|
13
|
-
activityOnly?: boolean;
|
|
14
|
-
onOpenActivity?: (threadId: string, workspaceCwd: string) => void;
|
|
15
|
-
headerActionsContainer?: HTMLElement | null;
|
|
16
|
-
onTitleChange?: (threadId: string, title: string) => void;
|
|
17
|
-
onOpenThreadChat?: (threadId: string, workspaceCwd: string) => void;
|
|
18
|
-
/** Switches the shell to an agent's own session. Absent when embedded
|
|
19
|
-
* somewhere with no session view to switch to. */
|
|
20
|
-
onOpenAgentSession?: (sessionId: string) => void;
|
|
21
|
-
onOpenDefinitions?: () => void;
|
|
22
|
-
}
|
|
23
|
-
export declare function ThreadsRoute({ initialView, initialThreadId, workspaceCwd: boundWorkspaceCwd, chat, activityOnly, onOpenActivity, headerActionsContainer, onTitleChange, onOpenThreadChat, onOpenAgentSession, onOpenDefinitions, }: ThreadsRouteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
-
export declare const COLLABORATION_SOURCE = "workspace_collaboration";
|
|
3
|
-
export declare function useProjectConversations(cwds: readonly string[]): {
|
|
4
|
-
scope: string;
|
|
5
|
-
sessions: DaemonSessionSummary[];
|
|
6
|
-
error?: string;
|
|
7
|
-
} | {
|
|
8
|
-
sessions: never[];
|
|
9
|
-
error: undefined;
|
|
10
|
-
};
|