@qwen-code/web-shell 0.26.5-nightly.20261101.7b4b353750 → 0.26.6

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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonSessionStatsModelMetrics } from '@qwen-code/web-shell/daemon-react-sdk';
7
+ type TimingSample = NonNullable<DaemonSessionStatsModelMetrics['timingSamples']>[number];
8
+ type FailureSample = NonNullable<DaemonSessionStatsModelMetrics['failures']>['recent'][number];
9
+ export interface TrendSeries {
10
+ key: string;
11
+ label: string;
12
+ /** Color slot shared with the model card. */
13
+ color: string;
14
+ samples: TimingSample[];
15
+ failures: FailureSample[];
16
+ }
17
+ export type TrendMetric = 'speed' | 'ttft';
18
+ /** Output tokens per second, or undefined when the window is too short. */
19
+ export declare function sampleSpeed(sample: TimingSample): number | undefined;
20
+ /** Linear-interpolated quantile of an unsorted list; undefined when empty. */
21
+ export declare function quantile(values: number[], q: number): number | undefined;
22
+ export declare function TokenUsageTrend({ series }: {
23
+ series: TrendSeries[];
24
+ }): import("react/jsx-runtime").JSX.Element;
25
+ /** Per-model output-speed spread: every sample as a dot on a shared scale. */
26
+ export declare function SpeedSpread({ samples, scaleMax, }: {
27
+ samples: TimingSample[];
28
+ scaleMax: number;
29
+ }): import("react/jsx-runtime").JSX.Element | null;
30
+ export {};
@@ -20,12 +20,15 @@ export interface ChannelEditorDraft {
20
20
  groupSenders: ChannelGroupSenders;
21
21
  groupAllowedUsers: string;
22
22
  }
23
- export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'number' | 'outOfRange' | 'policy';
23
+ export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'invalidRepoId' | 'conflictingRepoAliases' | 'number' | 'outOfRange' | 'policy';
24
24
  export type ChannelEditorValidationErrors = Record<string, ChannelEditorValidationCode>;
25
+ /** Access fields that only gate direct messages, which repository-only channels never receive. */
26
+ export declare const PRIVATE_ONLY_FIELD_KEYS: Set<string>;
27
+ export declare function toList(value: string): string[];
25
28
  export declare function hasDescriptorPrivatePolicy(descriptor: DaemonChannelTypeDescriptor): boolean;
26
29
  export declare function hasDescriptorGroupPolicy(descriptor: DaemonChannelTypeDescriptor): boolean;
27
30
  export declare function defaultGroupSenders(): Exclude<ChannelGroupSenders, ''>;
28
31
  export declare function configuredPrivatePolicy(instance?: DaemonChannelInstanceSnapshot): string;
29
32
  export declare function createChannelEditorDraft(descriptor: DaemonChannelTypeDescriptor, instance?: DaemonChannelInstanceSnapshot): ChannelEditorDraft;
30
- export declare function validateChannelEditorDraft(descriptor: DaemonChannelTypeDescriptor, draft: ChannelEditorDraft, existingNames: readonly string[]): ChannelEditorValidationErrors;
33
+ export declare function validateChannelEditorDraft(descriptor: DaemonChannelTypeDescriptor, draft: ChannelEditorDraft, existingNames: readonly string[], instance?: DaemonChannelInstanceSnapshot): ChannelEditorValidationErrors;
31
34
  export declare function buildChannelUpsertRequest(descriptor: DaemonChannelTypeDescriptor, draft: ChannelEditorDraft, expectedRevision: string, instance?: DaemonChannelInstanceSnapshot): DaemonChannelUpsertRequest;
@@ -7,3 +7,4 @@ import type { DaemonChannelTypeDescriptor } from '@qwen-code/sdk/daemon';
7
7
  export declare const PLATFORM_MARKS: Record<string, string>;
8
8
  export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dws' | 'wecom' | 'wecom-callback' | 'feishu' | 'github' | 'gitlab';
9
9
  export declare function isChannelPlatformAvailable(descriptor: DaemonChannelTypeDescriptor): boolean;
10
+ export declare function isRepositoryOnlyChannelType(type: unknown): boolean;
@@ -37,7 +37,8 @@ export interface JavaManagedAgentClientOptions {
37
37
  export declare class JavaManagedAgentHttpError extends Error {
38
38
  readonly status: number;
39
39
  readonly code: string;
40
- constructor(status: number, code: string, message: string);
40
+ readonly requestId?: string | undefined;
41
+ constructor(status: number, code: string, message: string, requestId?: string | undefined);
41
42
  }
42
43
  export declare class JavaManagedAgentClient {
43
44
  private readonly options;
@@ -10,8 +10,18 @@ export declare function getWorkflowModeControlState({ workflowMode, workflowMode
10
10
  mode: DaemonWorkflowMode | undefined;
11
11
  disabled: boolean;
12
12
  description: string;
13
+ summary: string;
13
14
  messages: {
14
15
  label: string;
16
+ menuDescription: string;
17
+ short: {
18
+ unbound: string;
19
+ updating: string;
20
+ syncing: string;
21
+ unknown: string;
22
+ onUnavailable: string;
23
+ unavailable: string;
24
+ };
15
25
  details: string;
16
26
  unbound: string;
17
27
  updating: string;
@@ -26,6 +36,7 @@ export declare function getWorkflowModeControlState({ workflowMode, workflowMode
26
36
  unsupported: string;
27
37
  nextTurn: string;
28
38
  updateFailed: string;
39
+ clickToTurnOff: string;
29
40
  };
30
41
  status: "unknown" | "ready" | "unbound" | "syncing";
31
42
  pending: boolean;
@@ -1,6 +1,15 @@
1
1
  import type { WebShellLanguage } from '../i18n';
2
2
  export declare function getWorkflowModeMessages(language: WebShellLanguage): {
3
3
  label: string;
4
+ menuDescription: string;
5
+ short: {
6
+ unbound: string;
7
+ updating: string;
8
+ syncing: string;
9
+ unknown: string;
10
+ onUnavailable: string;
11
+ unavailable: string;
12
+ };
4
13
  details: string;
5
14
  unbound: string;
6
15
  updating: string;
@@ -15,4 +24,5 @@ export declare function getWorkflowModeMessages(language: WebShellLanguage): {
15
24
  unsupported: string;
16
25
  nextTurn: string;
17
26
  updateFailed: string;
27
+ clickToTurnOff: string;
18
28
  };