@qwen-code/web-shell 0.26.5-nightly.20261101.7b4b353750 → 0.26.5
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/{PierreFilePreview-Bv9TGp1f.js → PierreFilePreview-BqZBliqk.js} +1 -1
- package/dist/{SpreadsheetPreview-DS68HfFp.js → SpreadsheetPreview-Bn-HzKXD.js} +2 -2
- package/dist/{WorkspaceFileBrowser-DvLZSVTe.js → WorkspaceFileBrowser-BSNZoggH.js} +2 -2
- package/dist/{agents-route-DSGTFqET.js → agents-route-B1Ckyab-.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-B_wpcKAs.js → index-minpPSyG.js} +51147 -52219
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +3226 -3309
- package/dist/types/components/WorkflowModeControl.d.ts +8 -0
- package/dist/types/components/composer/AddMenu.d.ts +1 -3
- package/dist/types/components/plugins/PluginManagerPage.d.ts +1 -2
- package/dist/types/components/plugins/manager-page.d.ts +0 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +3 -6
- package/dist/types/utils/standalone-session-routing.d.ts +1 -20
- package/dist/{useDaemonMidTurnInjected-CZfHzDlj.js → useDaemonMidTurnInjected-CyCL08_O.js} +1173 -1257
- package/package.json +1 -1
- package/dist/types/components/sidebar/ActivityView.d.ts +0 -41
- package/dist/types/components/sidebar/SidebarSectionHeader.d.ts +0 -7
- package/dist/types/components/sidebar/activity-messages.d.ts +0 -4
- package/dist/types/components/sidebar/activity-model.d.ts +0 -34
- package/dist/types/components/sidebar/pinned-session-order.d.ts +0 -2
- package/dist/types/components/sidebar/use-activity-catalog.d.ts +0 -31
- package/dist/types/components/workflow-mode-control-state.d.ts +0 -32
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type ActivityEntry, type ActivityPreferences } from './activity-model';
|
|
3
|
-
export declare const ACTIVITY_PREFERENCES_EVENT = "qwen-code-activity-preferences-changed";
|
|
4
|
-
export declare function readActivityPreferences(): ActivityPreferences;
|
|
5
|
-
interface ActivityOperationState {
|
|
6
|
-
undo?: {
|
|
7
|
-
entries: ActivityEntry[];
|
|
8
|
-
priorityKeys: string[];
|
|
9
|
-
};
|
|
10
|
-
pending: boolean;
|
|
11
|
-
result?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function useActivityOperations(scope: string): {
|
|
14
|
-
state: ActivityOperationState;
|
|
15
|
-
update: (change: (state: ActivityOperationState) => ActivityOperationState) => void;
|
|
16
|
-
};
|
|
17
|
-
export interface ActivityViewProps {
|
|
18
|
-
operations: ReturnType<typeof useActivityOperations>;
|
|
19
|
-
entries: ActivityEntry[];
|
|
20
|
-
loading: boolean;
|
|
21
|
-
unavailable: boolean;
|
|
22
|
-
hasMore: boolean;
|
|
23
|
-
onLoadMore: () => void | Promise<void>;
|
|
24
|
-
onRetry: () => void;
|
|
25
|
-
renderSession: (entry: ActivityEntry, preview?: string) => ReactNode;
|
|
26
|
-
onMarkRead: (entries: ActivityEntry[]) => Promise<void>;
|
|
27
|
-
onArchive: (entries: ActivityEntry[]) => Promise<{
|
|
28
|
-
succeeded: ActivityEntry[];
|
|
29
|
-
failed: number;
|
|
30
|
-
}>;
|
|
31
|
-
onUndo: (entries: ActivityEntry[]) => Promise<{
|
|
32
|
-
succeeded: ActivityEntry[];
|
|
33
|
-
failed: number;
|
|
34
|
-
}>;
|
|
35
|
-
loadPreview: (entry: ActivityEntry) => Promise<string | undefined>;
|
|
36
|
-
canArchive: boolean;
|
|
37
|
-
pinnedExpanded: boolean;
|
|
38
|
-
onPinnedExpandedChange: (expanded: boolean) => void;
|
|
39
|
-
}
|
|
40
|
-
export declare function ActivityView({ operations, entries, loading, unavailable, hasMore, onLoadMore, onRetry, renderSession, onMarkRead, onArchive, onUndo, loadPreview, canArchive, pinnedExpanded, onPinnedExpandedChange, }: ActivityViewProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
-
export interface ActivityEntry {
|
|
3
|
-
key: string;
|
|
4
|
-
session: DaemonSessionSummary;
|
|
5
|
-
unread?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type ActivityState = 'input' | 'approval' | 'error' | 'unread' | 'active' | 'idle';
|
|
8
|
-
export interface ActivityPreferences {
|
|
9
|
-
priority: boolean;
|
|
10
|
-
pinned: boolean;
|
|
11
|
-
scheduled: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const DEFAULT_ACTIVITY_PREFERENCES: ActivityPreferences;
|
|
14
|
-
export interface ActivitySnapshot {
|
|
15
|
-
activatedAt: number;
|
|
16
|
-
priorityKeys: string[];
|
|
17
|
-
recentTimes: ReadonlyMap<string, number>;
|
|
18
|
-
}
|
|
19
|
-
export declare function activityRecency({ session }: ActivityEntry): number;
|
|
20
|
-
export declare function isActivityUnread(entry: ActivityEntry): boolean;
|
|
21
|
-
export declare function activityState(entry: ActivityEntry): ActivityState;
|
|
22
|
-
export declare function activityNeedsAttention(entry: ActivityEntry): boolean;
|
|
23
|
-
export declare function isActivityEligible(entry: ActivityEntry, preferences: ActivityPreferences): boolean;
|
|
24
|
-
export declare function openActivitySnapshot(entries: ActivityEntry[], preferences: ActivityPreferences, now?: number): ActivitySnapshot;
|
|
25
|
-
export declare function updateActivitySnapshot(snapshot: ActivitySnapshot, entries: ActivityEntry[], preferences: ActivityPreferences): ActivitySnapshot;
|
|
26
|
-
export declare function clearReadActivitySnapshot(snapshot: ActivitySnapshot, entries: ActivityEntry[], preferences: ActivityPreferences): ActivitySnapshot;
|
|
27
|
-
export declare function selectActivitySections(snapshot: ActivitySnapshot, entries: ActivityEntry[], preferences: ActivityPreferences): {
|
|
28
|
-
priority: ActivityEntry[];
|
|
29
|
-
pinned: ActivityEntry[];
|
|
30
|
-
recent: {
|
|
31
|
-
dayStart: number;
|
|
32
|
-
entries: ActivityEntry[];
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { DaemonClient, DaemonEvent } from '@qwen-code/sdk/daemon';
|
|
2
|
-
import type { ActivityEntry } from './activity-model';
|
|
3
|
-
export declare function activityKey(workspaceCwd: string, sessionId: string): string;
|
|
4
|
-
export declare function activityPreview(events: readonly DaemonEvent[]): string | undefined;
|
|
5
|
-
export declare function activityBatch<T, R>(items: readonly T[], run: (item: T) => Promise<R>): Promise<PromiseSettledResult<R>[]>;
|
|
6
|
-
interface ActivityCatalogOptions {
|
|
7
|
-
client: DaemonClient;
|
|
8
|
-
workspaceCwds: readonly string[];
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
open: boolean;
|
|
11
|
-
liveStateEnabled: boolean;
|
|
12
|
-
currentKey?: string;
|
|
13
|
-
onArchivedCurrent: (entry: ActivityEntry) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare function useActivityCatalog({ client, workspaceCwds, enabled, open, liveStateEnabled, currentKey, onArchivedCurrent, }: ActivityCatalogOptions): {
|
|
16
|
-
entries: ActivityEntry[];
|
|
17
|
-
loading: boolean;
|
|
18
|
-
unavailable: boolean;
|
|
19
|
-
hasMore: boolean;
|
|
20
|
-
archive: (items: ActivityEntry[]) => Promise<{
|
|
21
|
-
succeeded: ActivityEntry[];
|
|
22
|
-
failed: number;
|
|
23
|
-
}>;
|
|
24
|
-
undo: (items: ActivityEntry[]) => Promise<{
|
|
25
|
-
succeeded: ActivityEntry[];
|
|
26
|
-
failed: number;
|
|
27
|
-
}>;
|
|
28
|
-
loadPreview: (entry: ActivityEntry) => Promise<string | undefined>;
|
|
29
|
-
retry: () => void;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DaemonWorkflowMode, DaemonWorkflowModeStatus } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
-
import type { WebShellLanguage } from '../i18n';
|
|
3
|
-
export interface WorkflowModeControlOptions {
|
|
4
|
-
workflowMode?: DaemonWorkflowMode;
|
|
5
|
-
workflowModeStatus?: DaemonWorkflowModeStatus;
|
|
6
|
-
workflowModePending?: boolean;
|
|
7
|
-
onWorkflowModeChange?: (requested: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function getWorkflowModeControlState({ workflowMode, workflowModeStatus: status, workflowModePending: pending, onWorkflowModeChange, }: WorkflowModeControlOptions, language: WebShellLanguage): {
|
|
10
|
-
mode: DaemonWorkflowMode | undefined;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
description: string;
|
|
13
|
-
messages: {
|
|
14
|
-
label: string;
|
|
15
|
-
details: string;
|
|
16
|
-
unbound: string;
|
|
17
|
-
updating: string;
|
|
18
|
-
syncing: string;
|
|
19
|
-
unknown: string;
|
|
20
|
-
on: string;
|
|
21
|
-
off: string;
|
|
22
|
-
onUnavailable: string;
|
|
23
|
-
unavailable: string;
|
|
24
|
-
initializing: string;
|
|
25
|
-
workflowUnavailable: string;
|
|
26
|
-
unsupported: string;
|
|
27
|
-
nextTurn: string;
|
|
28
|
-
updateFailed: string;
|
|
29
|
-
};
|
|
30
|
-
status: "unknown" | "ready" | "unbound" | "syncing";
|
|
31
|
-
pending: boolean;
|
|
32
|
-
} | null;
|