@qwen-code/web-shell 0.27.1 → 0.27.2
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/NOTICES.txt +10721 -958
- package/dist/{PierreFilePreview-BT_JRIvF.js → PierreFilePreview-CVi_Wsf-.js} +1 -1
- package/dist/SpreadsheetPreview-CTyYrLmD.js +379 -0
- package/dist/{WorkspaceFileBrowser-G1yA2eBf.js → WorkspaceFileBrowser-DkQgnDFv.js} +2 -2
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/abnfDiagram-VCTEODGH-CQWhk3bg.js +87 -0
- package/dist/abnfDiagram-VCTEODGH-DXK3iWaN.js +87 -0
- package/dist/{agents-route-bkxyBAkN.js → agents-route-ZD8W2lTb.js} +2 -2
- package/dist/arc-BcP3aO-G.js +83 -0
- package/dist/arc-DkZAOzaU.js +83 -0
- package/dist/architectureDiagram-5GKGNRK7-DhcVEkLQ.js +4775 -0
- package/dist/architectureDiagram-5GKGNRK7-DusU8ybk.js +4776 -0
- package/dist/blockDiagram-NRAW4CY4-BMOuo5wl.js +1414 -0
- package/dist/blockDiagram-NRAW4CY4-YciA8-8I.js +1414 -0
- package/dist/c4Diagram-UCG6FXSJ-BJxpHO4v.js +1508 -0
- package/dist/c4Diagram-UCG6FXSJ-DNpq-cdF.js +1508 -0
- package/dist/channel-CfhQTpjX.js +5 -0
- package/dist/channel-QZAYPfF8.js +5 -0
- package/dist/chunk-2Q5K7J3B-EGbMOnEe.js +15 -0
- package/dist/chunk-2Q5K7J3B-mtpkChaF.js +15 -0
- package/dist/chunk-5VM5RSS4-CP4Q2W8n.js +19 -0
- package/dist/chunk-5VM5RSS4-CucJ3wyB.js +19 -0
- package/dist/chunk-F27PBJKO-CS9kzvAx.js +68 -0
- package/dist/chunk-F27PBJKO-Cfw_29T-.js +68 -0
- package/dist/chunk-G27WJ6UU-BZzmQ8FW.js +1408 -0
- package/dist/chunk-G27WJ6UU-DdeEiwmL.js +1408 -0
- package/dist/chunk-JWPE2WC7-BL_hjRLf.js +8 -0
- package/dist/chunk-JWPE2WC7-C03UDQBx.js +8 -0
- package/dist/chunk-LCL6LL3I-CNn3XyuL.js +1533 -0
- package/dist/chunk-LCL6LL3I-CR-IGGIM.js +1533 -0
- package/dist/chunk-POPQ4Y6H-BVQbxVHz.js +19 -0
- package/dist/chunk-POPQ4Y6H-UJK1fYGP.js +19 -0
- package/dist/chunk-SVP7TREG-B-E-xFG8.js +664 -0
- package/dist/chunk-SVP7TREG-BUmyTmov.js +664 -0
- package/dist/chunk-XXDRQBXY-BDcf4DQz.js +8 -0
- package/dist/chunk-XXDRQBXY-BHAq0mtL.js +8 -0
- package/dist/classDiagram-DTDB5LWJ-CVA3J-EH.js +16 -0
- package/dist/classDiagram-DTDB5LWJ-Dh121Rlt.js +16 -0
- package/dist/classDiagram-v2-JRS7N3AN-CVA3J-EH.js +16 -0
- package/dist/classDiagram-v2-JRS7N3AN-Dh121Rlt.js +16 -0
- package/dist/cose-bilkent-JH36ORCC-CLe0kcHa.js +2605 -0
- package/dist/cose-bilkent-JH36ORCC-DpMM48hA.js +2606 -0
- package/dist/cynefin-OW5HDTMX-CyO3b088.js +23750 -0
- package/dist/cynefinDiagram-5FMLGOSQ-C5xaWeuA.js +299 -0
- package/dist/cynefinDiagram-5FMLGOSQ-mLaK-3R3.js +299 -0
- package/dist/cytoscape.esm-DCrf4dL8.js +18782 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/dagre-3AP2YEHR-CmNFrtW9.js +456 -0
- package/dist/dagre-3AP2YEHR-zDm3fBQq.js +456 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/diagram-S7CK7UJ4-BQtgRcGU.js +346 -0
- package/dist/diagram-S7CK7UJ4-Clojnf04.js +346 -0
- package/dist/diagram-UQ7AKVKN-B3Ll3rB4.js +219 -0
- package/dist/diagram-UQ7AKVKN-CTn4O0fd.js +219 -0
- package/dist/diagram-VSXAHHWV-BeYXDVEh.js +463 -0
- package/dist/diagram-VSXAHHWV-mdxkNEZP.js +463 -0
- package/dist/diagram-VX7I27RA-C3bzQYLd.js +529 -0
- package/dist/diagram-VX7I27RA-DaPLIQOr.js +529 -0
- package/dist/diagram-Z3DM3KII-BImvaL3c.js +142 -0
- package/dist/diagram-Z3DM3KII-CkkdGhWO.js +142 -0
- package/dist/{docx-preview-BucJeYCm.js → docx-preview-BfV4m8Qp.js} +503 -506
- package/dist/ebnfDiagram-PWID7BFC-C8RUggbp.js +109 -0
- package/dist/ebnfDiagram-PWID7BFC-gJHJx-lt.js +109 -0
- package/dist/erDiagram-SSCWMZ5O-CKFzjLCd.js +1059 -0
- package/dist/erDiagram-SSCWMZ5O-DLJjXFG9.js +1059 -0
- package/dist/flowDiagram-A5DVABFB-BHAeEzG1.js +1689 -0
- package/dist/flowDiagram-A5DVABFB-BOdsfJ-4.js +1689 -0
- package/dist/ganttDiagram-EL5Y4UJY-CtL6LAbW.js +2703 -0
- package/dist/ganttDiagram-EL5Y4UJY-D0hNphpF.js +2704 -0
- package/dist/gitGraphDiagram-WWUBYQGX-8XcPnT4w.js +815 -0
- package/dist/gitGraphDiagram-WWUBYQGX-DxHtQ0ba.js +815 -0
- package/dist/{index-B6wNHUaX.js → index-BGsppGgG.js} +69284 -64504
- package/dist/index.js +3 -3
- package/dist/infoDiagram-RXCK75RN-B-Ds06LN.js +24 -0
- package/dist/infoDiagram-RXCK75RN-Dhirg4if.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-5VMMS53U-BJPKneVd.js +621 -0
- package/dist/ishikawaDiagram-5VMMS53U-CsttzTkq.js +621 -0
- package/dist/journeyDiagram-EYS64GPL-BBAEhOQ9.js +836 -0
- package/dist/journeyDiagram-EYS64GPL-DfXS6tI_.js +836 -0
- package/dist/kanban-definition-3QL26DDD-Bh1Jz01C.js +723 -0
- package/dist/kanban-definition-3QL26DDD-C8yOTG02.js +723 -0
- package/dist/layout-Dxab-q-T.js +1704 -0
- package/dist/layout-sTbo9v3C.js +1704 -0
- package/dist/linear-BhTDfwHZ.js +259 -0
- package/dist/linear-CjDL9r_e.js +259 -0
- package/dist/mermaid.core-CFV16zMl.js +19742 -0
- package/dist/mermaid.core-DBp8atac.js +19747 -0
- package/dist/mindmap-definition-FBJOCRG2-KPo1Z4it.js +826 -0
- package/dist/mindmap-definition-FBJOCRG2-vau9OLMK.js +826 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/pegDiagram-XKGWAZYB-CFjH6RoO.js +95 -0
- package/dist/pegDiagram-XKGWAZYB-EeXt14MX.js +95 -0
- package/dist/pieDiagram-E7YTZNPT-CJa9GbCV.js +208 -0
- package/dist/pieDiagram-E7YTZNPT-JyO_8fWF.js +208 -0
- package/dist/quadrantDiagram-AXDQQJYC-B7tyPD89.js +1023 -0
- package/dist/quadrantDiagram-AXDQQJYC-G9wAekw0.js +1023 -0
- package/dist/railroadDiagram-O6MQD6OU-3-cuTnqH.js +77 -0
- package/dist/railroadDiagram-O6MQD6OU-SyM4QCMp.js +77 -0
- package/dist/requirementDiagram-EFPCY7ZU-BJal3W63.js +882 -0
- package/dist/requirementDiagram-EFPCY7ZU-bMW72Av_.js +882 -0
- package/dist/sankeyDiagram-P5KCCOFB-BKP8fccK.js +847 -0
- package/dist/sankeyDiagram-P5KCCOFB-C4KDi8Ty.js +847 -0
- package/dist/sequenceDiagram-WJ2MYXX4-DFvbPjPG.js +2888 -0
- package/dist/sequenceDiagram-WJ2MYXX4-DvgRoXFL.js +2888 -0
- package/dist/sizeCapture-X5ZJPWSS-DPkvpCxM.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-DU4nf5aV.js +46 -0
- package/dist/stateDiagram-HBIQ2CUA-CWp0mOcF.js +262 -0
- package/dist/stateDiagram-HBIQ2CUA-DkN3hNFV.js +262 -0
- package/dist/stateDiagram-v2-4QOOHH4V-Bh7H2ZBJ.js +16 -0
- package/dist/stateDiagram-v2-4QOOHH4V-DX-OvV9U.js +16 -0
- package/dist/sw.js +1 -1
- package/dist/swimlanes-XN3QIQJK-2s4fbN8J.js +5219 -0
- package/dist/swimlanes-XN3QIQJK-CI3ENZQA.js +5219 -0
- package/dist/swimlanesDiagram-VK2B7HYN-BEjeqDmx.js +13 -0
- package/dist/swimlanesDiagram-VK2B7HYN-DWJY6BGD.js +13 -0
- package/dist/timeline-definition-24CTP7MA-C_tZHri9.js +1057 -0
- package/dist/timeline-definition-24CTP7MA-DYXEracn.js +1057 -0
- package/dist/transcript.js +14564 -11549
- package/dist/types/App.d.ts +10 -1
- package/dist/types/components/ComposerUsageStats.d.ts +34 -0
- package/dist/types/components/WelcomeHeader.d.ts +8 -0
- package/dist/types/components/artifacts/tokenUsageTotals.d.ts +36 -0
- package/dist/types/components/channels/ChannelEditorDialog.d.ts +10 -1
- package/dist/types/components/channels/ChannelQrLogin.d.ts +13 -0
- package/dist/types/components/channels/WeixinLoginPanel.d.ts +17 -0
- package/dist/types/components/channels/channel-editor-state.d.ts +8 -1
- package/dist/types/components/channels/channel-platform.d.ts +2 -1
- package/dist/types/components/channels/weixin-auth-api.d.ts +32 -0
- package/dist/types/components/managed/ManagedRuntimeSkillsImporter.d.ts +10 -0
- package/dist/types/components/managed/ManagedSideQueryPanel.d.ts +5 -0
- package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +26 -1
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +605 -0
- package/dist/types/components/managed/java-managed-agent-client.d.ts +122 -1
- package/dist/types/components/managed/managed-agent-provider.d.ts +14 -1
- package/dist/types/components/managed/managed-diagnostics-messages.d.ts +14 -1
- package/dist/types/components/managed/managed-extension-install.d.ts +5 -2
- package/dist/types/components/managed/managed-extension-messages.d.ts +7 -0
- package/dist/types/components/managed/managed-extension-types.d.ts +4 -0
- package/dist/types/components/managed/managed-session-storage.d.ts +35 -0
- package/dist/types/components/managed/managed-side-query-command.d.ts +5 -0
- package/dist/types/components/managed/managed-side-query-types.d.ts +21 -0
- package/dist/types/components/managed/managed-side-query.test-fixtures.d.ts +3 -0
- package/dist/types/components/managed/use-managed-side-queries.d.ts +26 -0
- package/dist/types/customization.d.ts +31 -0
- package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +2 -1
- package/dist/types/daemon/workspace/types.d.ts +8 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/{useDaemonMidTurnInjected-tBzI77Ar.js → useDaemonMidTurnInjected-B7dPEdqk.js} +2040 -1825
- package/dist/vennDiagram-4TSXK5OY-Bi3e_aHN.js +1578 -0
- package/dist/vennDiagram-4TSXK5OY-DZCe1Ffi.js +1578 -0
- package/dist/wardleyDiagram-VM6X3IG4-BNV5jzew.js +675 -0
- package/dist/wardleyDiagram-VM6X3IG4-DqFJHRmt.js +675 -0
- package/dist/xychartDiagram-S5SC5T6Z-BVIJ86ch.js +1492 -0
- package/dist/xychartDiagram-S5SC5T6Z-J8xP-hcH.js +1492 -0
- package/package.json +19 -9
- package/dist/SpreadsheetPreview-d5XL70Ho.js +0 -379
- package/dist/types/components/artifacts/excel-preview-parser.d.ts +0 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionPackageOperation, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection } from './managed-extension-types';
|
|
1
|
+
import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionPackageOperation, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection, ManagedRuntimeSkillImport, ManagedRuntimeSkillOwner } from './managed-extension-types';
|
|
2
2
|
import type { components } from './generated/managed-agent-api';
|
|
3
3
|
import type { ManagedWorkspaceFileQueryRequest, ManagedWorkspaceFileReadRequest, ManagedWorkspaceFileUploadRequest } from './managed-agent-provider';
|
|
4
4
|
import type { ManagedArtifact } from './managed-tool-result-types';
|
|
5
|
+
import type { ManagedSideQuery, ManagedSideQueryCreate } from './managed-side-query-types';
|
|
5
6
|
type Schemas = components['schemas'];
|
|
6
7
|
export type JavaAgentTurn = Schemas['WebShellTurn'];
|
|
7
8
|
export interface JavaAgentEnvironment {
|
|
@@ -271,6 +272,7 @@ export declare class JavaManagedAgentClient {
|
|
|
271
272
|
conflictingEvidence?: boolean;
|
|
272
273
|
taskState?: string;
|
|
273
274
|
taskRuntimeState?: string | null;
|
|
275
|
+
measurements?: components["schemas"]["ManagedActivityMeasurement"];
|
|
274
276
|
}[];
|
|
275
277
|
hasMore: boolean;
|
|
276
278
|
nextCursor: string | null;
|
|
@@ -307,6 +309,7 @@ export declare class JavaManagedAgentClient {
|
|
|
307
309
|
conflictingEvidence?: boolean;
|
|
308
310
|
taskState?: string;
|
|
309
311
|
taskRuntimeState?: string | null;
|
|
312
|
+
measurements?: components["schemas"]["ManagedActivityMeasurement"];
|
|
310
313
|
}[];
|
|
311
314
|
hasMore: boolean;
|
|
312
315
|
nextCursor: string | null;
|
|
@@ -396,8 +399,42 @@ export declare class JavaManagedAgentClient {
|
|
|
396
399
|
selfService?: {
|
|
397
400
|
supported: boolean;
|
|
398
401
|
canApply: boolean;
|
|
402
|
+
runtimeSkillImportSupported?: boolean;
|
|
399
403
|
};
|
|
400
404
|
}>;
|
|
405
|
+
getRuntimeSkillCandidates(sessionId: string, signal?: AbortSignal): Promise<{
|
|
406
|
+
sessionId: string;
|
|
407
|
+
owner: components["schemas"]["ManagedRuntimeSkillOwner"];
|
|
408
|
+
candidates: components["schemas"]["ManagedRuntimeSkillCandidate"][];
|
|
409
|
+
}>;
|
|
410
|
+
snapshotRuntimeSkill(sessionId: string, input: {
|
|
411
|
+
owner: ManagedRuntimeSkillOwner;
|
|
412
|
+
path: string;
|
|
413
|
+
digest: string;
|
|
414
|
+
target: ManagedExtensionImportMetadata['target'];
|
|
415
|
+
}, signal?: AbortSignal): Promise<{
|
|
416
|
+
sessionId: string;
|
|
417
|
+
owner: components["schemas"]["ManagedRuntimeSkillOwner"];
|
|
418
|
+
operationId: string;
|
|
419
|
+
preparationId: string;
|
|
420
|
+
sourceDigest: string;
|
|
421
|
+
byteLength: number;
|
|
422
|
+
target: {
|
|
423
|
+
platform: "linux" | "darwin";
|
|
424
|
+
arch: "x64" | "arm64" | "any";
|
|
425
|
+
};
|
|
426
|
+
inspection: components["schemas"]["ManagedExtensionPackageInspection"];
|
|
427
|
+
}>;
|
|
428
|
+
importRuntimeSkill(sessionId: string, input: ManagedRuntimeSkillImport & {
|
|
429
|
+
extensionId?: string;
|
|
430
|
+
}, idempotencyKey: string, signal?: AbortSignal): Promise<{
|
|
431
|
+
operationId: string;
|
|
432
|
+
extensionId: string;
|
|
433
|
+
kind: "publish" | "settings";
|
|
434
|
+
state: "pending" | "settled";
|
|
435
|
+
revision: number;
|
|
436
|
+
packageDigest: string | null;
|
|
437
|
+
}>;
|
|
401
438
|
saveExtensionSettings(workspaceId: string, extensionId: string, expectedRevision: number, values: Record<string, string>, idempotencyKey: string, signal?: AbortSignal): Promise<{
|
|
402
439
|
operationId: string;
|
|
403
440
|
extensionId: string;
|
|
@@ -416,6 +453,7 @@ export declare class JavaManagedAgentClient {
|
|
|
416
453
|
selfService?: {
|
|
417
454
|
supported: boolean;
|
|
418
455
|
canApply: boolean;
|
|
456
|
+
runtimeSkillImportSupported?: boolean;
|
|
419
457
|
};
|
|
420
458
|
}>;
|
|
421
459
|
applyExtensionConfiguration(sessionId: string, command: ManagedExtensionSelection, idempotencyKey: string, signal?: AbortSignal): Promise<{
|
|
@@ -428,6 +466,7 @@ export declare class JavaManagedAgentClient {
|
|
|
428
466
|
selfService?: {
|
|
429
467
|
supported: boolean;
|
|
430
468
|
canApply: boolean;
|
|
469
|
+
runtimeSkillImportSupported?: boolean;
|
|
431
470
|
};
|
|
432
471
|
}>;
|
|
433
472
|
resumeExtensionConfiguration(sessionId: string, operationId: string, recoverPrevious: boolean, signal?: AbortSignal): Promise<{
|
|
@@ -440,6 +479,7 @@ export declare class JavaManagedAgentClient {
|
|
|
440
479
|
selfService?: {
|
|
441
480
|
supported: boolean;
|
|
442
481
|
canApply: boolean;
|
|
482
|
+
runtimeSkillImportSupported?: boolean;
|
|
443
483
|
};
|
|
444
484
|
}>;
|
|
445
485
|
getExtensionPackage(workspaceId: string, pin: ManagedExtensionPin, signal?: AbortSignal): Promise<{
|
|
@@ -505,6 +545,87 @@ export declare class JavaManagedAgentClient {
|
|
|
505
545
|
openArtifactStream(artifact: ManagedArtifact, signal?: AbortSignal): Promise<ReadableStream<Uint8Array>>;
|
|
506
546
|
private artifactContent;
|
|
507
547
|
streamEvents(request: Schemas['WebShellStreamRequest'], signal?: AbortSignal, onOpen?: () => void, onAlive?: () => void): AsyncGenerator<JavaAgentEvent | JavaAgentResyncRequired>;
|
|
548
|
+
sideQueryContext(sessionId: string, signal?: AbortSignal): Promise<{
|
|
549
|
+
actorScopeKey: string;
|
|
550
|
+
contentVersion: string | null;
|
|
551
|
+
completedUserTurnCount: number;
|
|
552
|
+
mainInputBoundary: number;
|
|
553
|
+
automaticEligible: boolean;
|
|
554
|
+
generationAvailable: boolean;
|
|
555
|
+
unavailableReason: string | null;
|
|
556
|
+
latestRecapContentVersion: string | null;
|
|
557
|
+
latestRecapUserTurnCount: number | null;
|
|
558
|
+
}>;
|
|
559
|
+
createSideQuery(sessionId: string, request: ManagedSideQueryCreate, idempotencyKey: string, signal?: AbortSignal): Promise<{
|
|
560
|
+
queryId: string;
|
|
561
|
+
sessionId: string;
|
|
562
|
+
kind: "btw" | "recap";
|
|
563
|
+
trigger: "manual" | "automatic";
|
|
564
|
+
question: string | null;
|
|
565
|
+
status: "preparing" | "running" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
566
|
+
outcome: string | null;
|
|
567
|
+
source: components["schemas"]["WebShellSideQueryPrefix"];
|
|
568
|
+
resultRevision: number;
|
|
569
|
+
text: string | null;
|
|
570
|
+
usage: {
|
|
571
|
+
[key: string]: unknown;
|
|
572
|
+
} | null;
|
|
573
|
+
errorCode: string | null;
|
|
574
|
+
createdAt: number;
|
|
575
|
+
updatedAt: number;
|
|
576
|
+
deadlineAt: number;
|
|
577
|
+
}>;
|
|
578
|
+
listSideQueries(request: {
|
|
579
|
+
sessionId: string;
|
|
580
|
+
cursor?: string;
|
|
581
|
+
limit?: number;
|
|
582
|
+
}, signal?: AbortSignal): Promise<{
|
|
583
|
+
items: components["schemas"]["WebShellSideQuery"][];
|
|
584
|
+
nextCursor: string | null;
|
|
585
|
+
}>;
|
|
586
|
+
getSideQuery(sessionId: string, queryId: string, signal?: AbortSignal): Promise<{
|
|
587
|
+
queryId: string;
|
|
588
|
+
sessionId: string;
|
|
589
|
+
kind: "btw" | "recap";
|
|
590
|
+
trigger: "manual" | "automatic";
|
|
591
|
+
question: string | null;
|
|
592
|
+
status: "preparing" | "running" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
593
|
+
outcome: string | null;
|
|
594
|
+
source: components["schemas"]["WebShellSideQueryPrefix"];
|
|
595
|
+
resultRevision: number;
|
|
596
|
+
text: string | null;
|
|
597
|
+
usage: {
|
|
598
|
+
[key: string]: unknown;
|
|
599
|
+
} | null;
|
|
600
|
+
errorCode: string | null;
|
|
601
|
+
createdAt: number;
|
|
602
|
+
updatedAt: number;
|
|
603
|
+
deadlineAt: number;
|
|
604
|
+
}>;
|
|
605
|
+
cancelSideQuery(sessionId: string, queryId: string, signal?: AbortSignal): Promise<{
|
|
606
|
+
queryId: string;
|
|
607
|
+
sessionId: string;
|
|
608
|
+
kind: "btw" | "recap";
|
|
609
|
+
trigger: "manual" | "automatic";
|
|
610
|
+
question: string | null;
|
|
611
|
+
status: "preparing" | "running" | "completed" | "failed" | "cancelled" | "interrupted";
|
|
612
|
+
outcome: string | null;
|
|
613
|
+
source: components["schemas"]["WebShellSideQueryPrefix"];
|
|
614
|
+
resultRevision: number;
|
|
615
|
+
text: string | null;
|
|
616
|
+
usage: {
|
|
617
|
+
[key: string]: unknown;
|
|
618
|
+
} | null;
|
|
619
|
+
errorCode: string | null;
|
|
620
|
+
createdAt: number;
|
|
621
|
+
updatedAt: number;
|
|
622
|
+
deadlineAt: number;
|
|
623
|
+
}>;
|
|
624
|
+
streamSideQuery(request: {
|
|
625
|
+
sessionId: string;
|
|
626
|
+
queryId: string;
|
|
627
|
+
afterRevision?: number;
|
|
628
|
+
}, signal?: AbortSignal): AsyncGenerator<ManagedSideQuery>;
|
|
508
629
|
queryUserMessages(sessionId: string, signal?: AbortSignal): Promise<{
|
|
509
630
|
paused: boolean;
|
|
510
631
|
messages: components["schemas"]["UserMessage"][];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionCatalog, ManagedExtensionPackageOperation, ManagedExtensionSettings, ManagedExtensionSnapshot, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection } from './managed-extension-types';
|
|
1
|
+
import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionCatalog, ManagedExtensionPackageOperation, ManagedExtensionSettings, ManagedExtensionSnapshot, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection, ManagedRuntimeSkillCandidates, ManagedRuntimeSkillSnapshot, ManagedRuntimeSkillImport, ManagedRuntimeSkillOwner } from './managed-extension-types';
|
|
2
2
|
import type { components } from './generated/managed-agent-api';
|
|
3
3
|
import type { ManagedMcpManagementCommand, ManagedMcpManagementSnapshot } from './managed-mcp-management-types';
|
|
4
4
|
import type { ManagedToolResultReader } from './managed-tool-result-types';
|
|
@@ -163,6 +163,8 @@ export interface ManagedAgentSessionSummary {
|
|
|
163
163
|
contextCompression?: boolean;
|
|
164
164
|
approvalModeChange?: boolean;
|
|
165
165
|
inputAttachments?: boolean;
|
|
166
|
+
btw?: boolean;
|
|
167
|
+
recap?: boolean;
|
|
166
168
|
};
|
|
167
169
|
failure?: {
|
|
168
170
|
code: string;
|
|
@@ -251,6 +253,7 @@ export interface ManagedAgentQuestionResponse {
|
|
|
251
253
|
}
|
|
252
254
|
export type ManagedAgentActionResponse = string | ManagedAgentQuestionResponse;
|
|
253
255
|
export interface ManagedAgentProvider {
|
|
256
|
+
readonly sideQueries?: import('./managed-side-query-types').ManagedSideQueriesProvider;
|
|
254
257
|
readonly diagnostics?: ManagedDiagnosticsProvider;
|
|
255
258
|
readonly userMessages?: {
|
|
256
259
|
query(sessionId: string, options: ManagedAgentRequestOptions): Promise<import('./use-managed-user-messages').ManagedUserMessageSnapshot>;
|
|
@@ -289,6 +292,16 @@ export interface ManagedAgentProvider {
|
|
|
289
292
|
publish(workspaceId: string, extensionId: string | undefined, packageDigest: string, manifest: ManagedExtensionManifest, archive: Blob, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
|
|
290
293
|
importPackage?(workspaceId: string, extensionId: string | undefined, metadata: ManagedExtensionImportMetadata, source: Blob, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
|
|
291
294
|
previewPackage?(workspaceId: string, metadata: ManagedExtensionImportMetadata, source: Blob, options: ManagedAgentRequestOptions): Promise<ManagedExtensionInspection>;
|
|
295
|
+
runtimeSkillCandidates?(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedRuntimeSkillCandidates>;
|
|
296
|
+
runtimeSkillSnapshot?(sessionId: string, input: {
|
|
297
|
+
owner: ManagedRuntimeSkillOwner;
|
|
298
|
+
path: string;
|
|
299
|
+
digest: string;
|
|
300
|
+
target: ManagedExtensionImportMetadata['target'];
|
|
301
|
+
}, options: ManagedAgentRequestOptions): Promise<ManagedRuntimeSkillSnapshot>;
|
|
302
|
+
importRuntimeSkill?(sessionId: string, input: ManagedRuntimeSkillImport & {
|
|
303
|
+
extensionId?: string;
|
|
304
|
+
}, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
|
|
292
305
|
inspect?(workspaceId: string, pin: ManagedExtensionPin, options: ManagedAgentRequestOptions): Promise<ManagedExtensionInspection>;
|
|
293
306
|
lookupPackageOperation?(workspaceId: string, kind: 'publish' | 'settings', idempotencyKey: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionPackageOperation>;
|
|
294
307
|
lookupApplyOperation?(sessionId: string, idempotencyKey: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionSnapshot>;
|
|
@@ -11,6 +11,19 @@ declare const messages: {
|
|
|
11
11
|
readonly skillLoads: readonly ["Skill loading", "Skill 加载"];
|
|
12
12
|
readonly collectionStart: readonly ["Observed since", "自此时刻起统计"];
|
|
13
13
|
readonly requested: readonly ["Requests", "请求次数"];
|
|
14
|
+
readonly available: readonly ["Available", "已采集"];
|
|
15
|
+
readonly measurementMeaning: readonly ["Executor duration excludes approval, queues and delivery. Line counts accumulate native write/edit operations, not the current Git diff. Older and unsupported paths have no measured samples.", "执行耗时不含审批、排队和交付。行数按原生写入/编辑操作累计,不代表当前 Git diff。旧数据与不支持的路径不计入测量样本。"];
|
|
16
|
+
readonly measurementCoverage: readonly ["Measurement coverage", "测量覆盖"];
|
|
17
|
+
readonly executionDuration: readonly ["Executor duration", "执行耗时"];
|
|
18
|
+
readonly meanDuration: readonly ["Mean measured duration", "有效样本平均耗时"];
|
|
19
|
+
readonly samples: readonly ["samples", "样本"];
|
|
20
|
+
readonly modelLines: readonly ["Model proposed lines (write/edit)", "模型提议行数(写入/编辑)"];
|
|
21
|
+
readonly appliedLines: readonly ["Applied lines (write/edit)", "实际应用行数(写入/编辑)"];
|
|
22
|
+
readonly unmeasured: readonly ["Unmeasured", "未测量"];
|
|
23
|
+
readonly measured: readonly ["Measured", "已测量"];
|
|
24
|
+
readonly unchanged: readonly ["Unchanged", "无变化"];
|
|
25
|
+
readonly fileChanges: readonly ["Applied changes", "应用变更"];
|
|
26
|
+
readonly measurementStart: readonly ["First measurement sequence", "首个测量来源 sequence"];
|
|
14
27
|
readonly allowed: readonly ["Allowed", "已准入"];
|
|
15
28
|
readonly denied: readonly ["Denied", "已拒绝"];
|
|
16
29
|
readonly invalid: readonly ["Invalid arguments", "参数无效"];
|
|
@@ -153,5 +166,5 @@ declare const messages: {
|
|
|
153
166
|
readonly next: readonly ["Next page", "下一页"];
|
|
154
167
|
readonly directOnly: readonly ["Direct invocations from this Session.", "当前会话发起的直接调用。"];
|
|
155
168
|
};
|
|
156
|
-
export declare function useManagedDiagnosticsText(): (key: keyof typeof messages) => "Unavailable" | "Failed" | "取消" | "Running" | "Unknown" | "Cancelled" | "Interrupted" | "执行结果" | "未知" | "成功" | "Total tokens" | "Refresh" | "Requests" | "Tools" | "刷新" | "工具" | "Task" | "执行中" | "模型" | "不可用" | "资源" | "Edit" | "Model" | "编辑" | "User" | "用户" | "上下文" | "Previous page" | "Next page" | "Created" | "Not started" | "Pending" | "上一页" | "下一页" | "创建时间" | "Disabled" | "Removed" | "已禁用" | "已移除" | "Loading…" | "System prompt" | "Built-in tools" | "MCP tools" | "No" | "Extension" | "Hooks" | "Context" | "Skills" | "Selected" | "Details" | "Context window" | "Instruction files" | "Auto memory" | "Startup context" | "Input tokens" | "Output tokens" | "Conversation" | "Command" | "Resources" | "Complete" | "Invocation" | "Prompts" | "加载中…" | "已过期" | "状态" | "内置工具" | "MCP 工具" | "否" | "扩展" | "上下文窗口" | "指令文件" | "自动记忆" | "启动上下文" | "错误" | "命令" | "Skill" | "已拒绝" | "子代理" | "中断" | "Session diagnostics" | "会话诊断" | "Partial" | "部分" | "Agent invocations" | "代理调用" | "An earlier invocation is unavailable." | "前序调用暂不可读。" | "Statistics" | "统计" | "Model statistics" | "模型统计" | "Explicit file operations" | "显式文件操作" | "Skill loading" | "Skill 加载" | "Observed since" | "自此时刻起统计" | "请求次数" | "Allowed" | "已准入" | "Denied" | "Invalid arguments" | "参数无效" | "确认未执行" | "完整" | "待定" | "Execution" | "Admission" | "准入" | "Delivery" | "结果交付" | "Output capture" | "输出捕获" | "Path not recorded" | "路径未记录" | "Read" | "读取" | "Write" | "写入" | "Other tools" | "其他工具" | "Other Skills" | "其他 Skill" | "Only explicit file tools are included. Shell, MCP and search activity are outside this view." | "仅统计显式文件工具,Shell、MCP 和搜索内部的文件活动不在此视图中。" | "Loading records committed instructions and their delivery coverage." | "加载表示已提交指令结果,同时标明指令交付是否完整。" | "Source message" | "来源消息" | "调用身份" | "关联任务" | "Task state" | "任务状态" | "Diagnostics are being rebuilt from persisted evidence." | "正在从持久化证据重建诊断。" | "Some details were omitted by the read or collection budget." | "部分明细因读取或采集容量限制而省略。" | "Some outcomes cannot be established from the recorded evidence." | "部分执行结果无法由现有证据确定。" | "Extension command" | "扩展命令" | "Expand calls" | "展开调用" | "Collapse calls" | "收起调用" | "The view limit has been reached. Open a child Session to explore further." | "已达到当前视图上限,可打开子会话继续查看。" | "Child Session is unavailable." | "子会话暂不可读。" | "Continues an earlier invocation" | "续接此前调用" | "View own usage" | "查看自身用量" | "Earlier observations are incomplete." | "更早的观测数据不完整。" | "Child agents" | "Persisted observations for this Session." | "此会话已保存的观测数据。" | "Could not read diagnostics. Refresh to retry." | "读取诊断失败,请刷新重试。" | "No observation has been saved yet." | "尚无已保存的观测数据。" | "This Session has no supported diagnostic records." | "此会话暂无支持的诊断记录。" | "Some observations are unavailable or incomplete." | "部分观测缺失或不完整。" | "This request predates a context change. The next committed main-model request will update it." | "此请求早于最近的上下文变化,将在下一次主模型请求提交后更新。" | "Categories are local estimates. Cached tokens overlap the input total." | "分类为本地估算,缓存 token 已包含在输入总量中。" | "Observed" | "观测时间" | "输入 token" | "输出 token" | "Cached tokens" | "缓存 token" | "Reasoning tokens" | "推理 token" | "总 token" | "Recorded calls" | "已记录调用" | "系统提示" | "会话消息" | "明细" | "Successful" | "Total request time" | "累计请求耗时" | "Average time to first token" | "平均首 token 耗时" | "Output tokens / second" | "输出 token / 秒" | "Backoff retry calls" | "退避重试调用" | "HTTP errors" | "HTTP 错误" | "Transport errors" | "传输错误" | "Timeouts" | "超时" | "Other errors" | "其他错误" | "Counts belong to this Session. Open a child Session to inspect its statistics." | "仅统计当前会话,子代理的统计在子会话中查看。" | "Main model" | "主模型" | "Compression" | "上下文压缩" | "Other models" | "其他模型" | "Recent observed calls" | "最近观测的调用" | "Only bounded details and recent samples are retained; cumulative totals are preserved." | "仅保留有限明细与最近样本,累计总数不受影响。" | "Model invocation" | "模型可调用" | "User invocation" | "用户可调用" | "Yes" | "是" | "Base configuration" | "基础配置" | "Independent server" | "独立服务器" | "已选用" | "Historical discovery" | "历史发现结果" | "Last activated configuration" | "上次激活的配置" | "The latest configuration change has not been activated." | "最近一次配置变更尚未激活。" | "Selected server revision" | "选中的服务器版本" | "Discovered server revision" | "发现结果对应的服务器版本" | "Last saved attempt" | "上次保存的操作状态" | "Attempt server revision" | "上次操作的服务定义版本" | "Last saved execution evidence" | "上次保存的执行状态" | "Release state" | "释放状态" | "Configuration and saved discovery do not prove that a server is currently connected." | "配置及已保存的发现结果不代表服务器当前在线。" | "提示模板" | "Discovery failed" | "发现失败" | "Stale" | "部分结果" | "Some resource entries were omitted to fit this snapshot." | "部分快照资源条目因大小限制被省略。" | "Older history has no model observations." | "旧历史缺少模型观测。" | "A prior turn did not settle." | "此前有回合未完成结算。" | "A prior model call did not finish." | "此前有模型调用未完成。" | "A prior compression did not finish." | "此前有压缩未完成。" | "A model observation could not be recorded." | "部分模型观测未能记录。" | "Some token usage fields were not reported." | "部分 token 用量字段未报告。" | "A model observation was interrupted." | "部分模型观测被中断。" | "A cumulative counter reached its limit." | "累计计数已达到上限。" | "Some context could not be attributed." | "部分上下文无法完成分类归因。" | "Some context details were omitted." | "部分上下文明细已省略。" | "The resource read limit was reached." | "已达到资源读取上限。" | "Configuration history was limited." | "配置历史超过读取上限。" | "MCP discovery history was limited." | "MCP 发现历史超过读取上限。" | "Extension attribution is unavailable." | "扩展归属信息不可用。" | "A saved resource could not be validated." | "部分已保存资源未通过校验。" | "A saved resource is unavailable." | "部分已保存资源不可读取。" | "The response size limit was reached." | "已达到响应大小上限。" | "Some child Sessions are unavailable to this viewer." | "部分子会话对当前用户不可用。" | "Some invocation descriptions are unavailable." | "部分调用描述不可用。" | "Some invocation details are unavailable." | "部分调用详情不可用。" | "Additional observations are incomplete." | "另有观测数据不完整。" | "No entries in this snapshot." | "此快照没有条目。" | "Open child Session" | "打开子会话" | "State" | "Direct invocations from this Session." | "当前会话发起的直接调用。";
|
|
169
|
+
export declare function useManagedDiagnosticsText(): (key: keyof typeof messages) => "Unavailable" | "Failed" | "取消" | "Running" | "Unknown" | "Cancelled" | "Interrupted" | "执行结果" | "未知" | "成功" | "Total tokens" | "Refresh" | "Requests" | "Tools" | "刷新" | "工具" | "Task" | "执行中" | "模型" | "不可用" | "资源" | "Edit" | "Model" | "编辑" | "User" | "用户" | "上下文" | "Previous page" | "Next page" | "Created" | "Not started" | "Pending" | "上一页" | "下一页" | "创建时间" | "Disabled" | "Removed" | "已禁用" | "已移除" | "Loading…" | "System prompt" | "Built-in tools" | "MCP tools" | "No" | "Extension" | "Hooks" | "Context" | "Skills" | "Selected" | "Details" | "Context window" | "Instruction files" | "Auto memory" | "Startup context" | "Input tokens" | "Output tokens" | "Conversation" | "Command" | "Resources" | "Complete" | "Invocation" | "Prompts" | "Available" | "加载中…" | "已过期" | "状态" | "内置工具" | "MCP 工具" | "否" | "扩展" | "上下文窗口" | "指令文件" | "自动记忆" | "启动上下文" | "错误" | "命令" | "Skill" | "已拒绝" | "子代理" | "中断" | "samples" | "Session diagnostics" | "会话诊断" | "Partial" | "部分" | "Agent invocations" | "代理调用" | "An earlier invocation is unavailable." | "前序调用暂不可读。" | "Statistics" | "统计" | "Model statistics" | "模型统计" | "Explicit file operations" | "显式文件操作" | "Skill loading" | "Skill 加载" | "Observed since" | "自此时刻起统计" | "请求次数" | "已采集" | "Executor duration excludes approval, queues and delivery. Line counts accumulate native write/edit operations, not the current Git diff. Older and unsupported paths have no measured samples." | "执行耗时不含审批、排队和交付。行数按原生写入/编辑操作累计,不代表当前 Git diff。旧数据与不支持的路径不计入测量样本。" | "Measurement coverage" | "测量覆盖" | "Executor duration" | "执行耗时" | "Mean measured duration" | "有效样本平均耗时" | "样本" | "Model proposed lines (write/edit)" | "模型提议行数(写入/编辑)" | "Applied lines (write/edit)" | "实际应用行数(写入/编辑)" | "Unmeasured" | "未测量" | "Measured" | "已测量" | "Unchanged" | "无变化" | "Applied changes" | "应用变更" | "First measurement sequence" | "首个测量来源 sequence" | "Allowed" | "已准入" | "Denied" | "Invalid arguments" | "参数无效" | "确认未执行" | "完整" | "待定" | "Execution" | "Admission" | "准入" | "Delivery" | "结果交付" | "Output capture" | "输出捕获" | "Path not recorded" | "路径未记录" | "Read" | "读取" | "Write" | "写入" | "Other tools" | "其他工具" | "Other Skills" | "其他 Skill" | "Only explicit file tools are included. Shell, MCP and search activity are outside this view." | "仅统计显式文件工具,Shell、MCP 和搜索内部的文件活动不在此视图中。" | "Loading records committed instructions and their delivery coverage." | "加载表示已提交指令结果,同时标明指令交付是否完整。" | "Source message" | "来源消息" | "调用身份" | "关联任务" | "Task state" | "任务状态" | "Diagnostics are being rebuilt from persisted evidence." | "正在从持久化证据重建诊断。" | "Some details were omitted by the read or collection budget." | "部分明细因读取或采集容量限制而省略。" | "Some outcomes cannot be established from the recorded evidence." | "部分执行结果无法由现有证据确定。" | "Extension command" | "扩展命令" | "Expand calls" | "展开调用" | "Collapse calls" | "收起调用" | "The view limit has been reached. Open a child Session to explore further." | "已达到当前视图上限,可打开子会话继续查看。" | "Child Session is unavailable." | "子会话暂不可读。" | "Continues an earlier invocation" | "续接此前调用" | "View own usage" | "查看自身用量" | "Earlier observations are incomplete." | "更早的观测数据不完整。" | "Child agents" | "Persisted observations for this Session." | "此会话已保存的观测数据。" | "Could not read diagnostics. Refresh to retry." | "读取诊断失败,请刷新重试。" | "No observation has been saved yet." | "尚无已保存的观测数据。" | "This Session has no supported diagnostic records." | "此会话暂无支持的诊断记录。" | "Some observations are unavailable or incomplete." | "部分观测缺失或不完整。" | "This request predates a context change. The next committed main-model request will update it." | "此请求早于最近的上下文变化,将在下一次主模型请求提交后更新。" | "Categories are local estimates. Cached tokens overlap the input total." | "分类为本地估算,缓存 token 已包含在输入总量中。" | "Observed" | "观测时间" | "输入 token" | "输出 token" | "Cached tokens" | "缓存 token" | "Reasoning tokens" | "推理 token" | "总 token" | "Recorded calls" | "已记录调用" | "系统提示" | "会话消息" | "明细" | "Successful" | "Total request time" | "累计请求耗时" | "Average time to first token" | "平均首 token 耗时" | "Output tokens / second" | "输出 token / 秒" | "Backoff retry calls" | "退避重试调用" | "HTTP errors" | "HTTP 错误" | "Transport errors" | "传输错误" | "Timeouts" | "超时" | "Other errors" | "其他错误" | "Counts belong to this Session. Open a child Session to inspect its statistics." | "仅统计当前会话,子代理的统计在子会话中查看。" | "Main model" | "主模型" | "Compression" | "上下文压缩" | "Other models" | "其他模型" | "Recent observed calls" | "最近观测的调用" | "Only bounded details and recent samples are retained; cumulative totals are preserved." | "仅保留有限明细与最近样本,累计总数不受影响。" | "Model invocation" | "模型可调用" | "User invocation" | "用户可调用" | "Yes" | "是" | "Base configuration" | "基础配置" | "Independent server" | "独立服务器" | "已选用" | "Historical discovery" | "历史发现结果" | "Last activated configuration" | "上次激活的配置" | "The latest configuration change has not been activated." | "最近一次配置变更尚未激活。" | "Selected server revision" | "选中的服务器版本" | "Discovered server revision" | "发现结果对应的服务器版本" | "Last saved attempt" | "上次保存的操作状态" | "Attempt server revision" | "上次操作的服务定义版本" | "Last saved execution evidence" | "上次保存的执行状态" | "Release state" | "释放状态" | "Configuration and saved discovery do not prove that a server is currently connected." | "配置及已保存的发现结果不代表服务器当前在线。" | "提示模板" | "Discovery failed" | "发现失败" | "Stale" | "部分结果" | "Some resource entries were omitted to fit this snapshot." | "部分快照资源条目因大小限制被省略。" | "Older history has no model observations." | "旧历史缺少模型观测。" | "A prior turn did not settle." | "此前有回合未完成结算。" | "A prior model call did not finish." | "此前有模型调用未完成。" | "A prior compression did not finish." | "此前有压缩未完成。" | "A model observation could not be recorded." | "部分模型观测未能记录。" | "Some token usage fields were not reported." | "部分 token 用量字段未报告。" | "A model observation was interrupted." | "部分模型观测被中断。" | "A cumulative counter reached its limit." | "累计计数已达到上限。" | "Some context could not be attributed." | "部分上下文无法完成分类归因。" | "Some context details were omitted." | "部分上下文明细已省略。" | "The resource read limit was reached." | "已达到资源读取上限。" | "Configuration history was limited." | "配置历史超过读取上限。" | "MCP discovery history was limited." | "MCP 发现历史超过读取上限。" | "Extension attribution is unavailable." | "扩展归属信息不可用。" | "A saved resource could not be validated." | "部分已保存资源未通过校验。" | "A saved resource is unavailable." | "部分已保存资源不可读取。" | "The response size limit was reached." | "已达到响应大小上限。" | "Some child Sessions are unavailable to this viewer." | "部分子会话对当前用户不可用。" | "Some invocation descriptions are unavailable." | "部分调用描述不可用。" | "Some invocation details are unavailable." | "部分调用详情不可用。" | "Additional observations are incomplete." | "另有观测数据不完整。" | "No entries in this snapshot." | "此快照没有条目。" | "Open child Session" | "打开子会话" | "State" | "Direct invocations from this Session." | "当前会话发起的直接调用。";
|
|
157
170
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ManagedAgentProvider, ManagedAgentRequestOptions } from './managed-agent-provider';
|
|
2
|
-
import type { ManagedExtensionImportMetadata, ManagedExtensionPin, ManagedExtensionSnapshot } from './managed-extension-types';
|
|
2
|
+
import type { ManagedExtensionImportMetadata, ManagedExtensionPin, ManagedExtensionSnapshot, ManagedRuntimeSkillImport } from './managed-extension-types';
|
|
3
3
|
type Management = NonNullable<ManagedAgentProvider['extensions']>;
|
|
4
4
|
export interface ManagedExtensionInstallCommand {
|
|
5
5
|
version: 1;
|
|
@@ -17,6 +17,7 @@ export interface ManagedExtensionInstallCommand {
|
|
|
17
17
|
applyKey: string;
|
|
18
18
|
stage: 'publish' | 'settings' | 'apply';
|
|
19
19
|
pin?: ManagedExtensionPin;
|
|
20
|
+
runtimeSnapshot?: ManagedRuntimeSkillImport;
|
|
20
21
|
applySubmitted?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare class ManagedExtensionInstallInputRequired extends Error {
|
|
@@ -24,7 +25,7 @@ export declare class ManagedExtensionInstallInputRequired extends Error {
|
|
|
24
25
|
constructor(input: 'source' | 'settings');
|
|
25
26
|
}
|
|
26
27
|
export declare function managedExtensionSourceDigest(source: Blob): Promise<string>;
|
|
27
|
-
export declare function createManagedExtensionInstall(input: Pick<ManagedExtensionInstallCommand, 'workspaceId' | 'sessionId' | 'metadata' | 'extensionId' | 'expectedSettingsRevision' | 'settingsKeys' | 'keepSettingsRevision'>, snapshot: ManagedExtensionSnapshot): ManagedExtensionInstallCommand;
|
|
28
|
+
export declare function createManagedExtensionInstall(input: Pick<ManagedExtensionInstallCommand, 'workspaceId' | 'sessionId' | 'metadata' | 'extensionId' | 'expectedSettingsRevision' | 'settingsKeys' | 'keepSettingsRevision' | 'runtimeSnapshot'>, snapshot: ManagedExtensionSnapshot): ManagedExtensionInstallCommand;
|
|
28
29
|
export declare function parseManagedExtensionInstall(raw: string, workspaceId: string, sessionId: string): ManagedExtensionInstallCommand | undefined;
|
|
29
30
|
export declare function isManagedExtensionConfigurationPending(snapshot: ManagedExtensionSnapshot): boolean;
|
|
30
31
|
export declare function isManagedExtensionApplyRejected(cause: unknown): boolean;
|
|
@@ -38,6 +39,7 @@ export declare function queryManagedExtensionApplyReview(management: Management,
|
|
|
38
39
|
selfService?: {
|
|
39
40
|
supported: boolean;
|
|
40
41
|
canApply: boolean;
|
|
42
|
+
runtimeSkillImportSupported?: boolean;
|
|
41
43
|
};
|
|
42
44
|
}>;
|
|
43
45
|
export declare function reviewManagedExtensionInstall(management: Management, command: ManagedExtensionInstallCommand, options: ManagedAgentRequestOptions): Promise<{
|
|
@@ -62,6 +64,7 @@ export declare function reviewManagedExtensionInstall(management: Management, co
|
|
|
62
64
|
settingsKey: string;
|
|
63
65
|
stage: "publish" | "settings" | "apply";
|
|
64
66
|
pin?: ManagedExtensionPin;
|
|
67
|
+
runtimeSnapshot?: ManagedRuntimeSkillImport;
|
|
65
68
|
} | undefined>;
|
|
66
69
|
export declare function isManagedExtensionInstallActive(command: ManagedExtensionInstallCommand, snapshot: ManagedExtensionSnapshot): boolean;
|
|
67
70
|
export declare function continueManagedExtensionInstall(management: Management, input: ManagedExtensionInstallCommand, source: Blob | undefined, settings: Record<string, string> | undefined, options: ManagedAgentRequestOptions, progress: (command: ManagedExtensionInstallCommand) => void): Promise<ManagedExtensionSnapshot>;
|
|
@@ -78,6 +78,13 @@ export declare const MANAGED_EXTENSION_MESSAGES_EN: {
|
|
|
78
78
|
readonly 'managed.install.createMcp': "Create MCP connection";
|
|
79
79
|
readonly 'managed.install.packageEditUnavailable': "This package could not be opened as a single connection. Manage composite extensions from the Extensions page.";
|
|
80
80
|
readonly 'managed.install.replacePackage': "This updates the entire selected package in this session. Other sessions keep their selected versions.";
|
|
81
|
+
readonly 'managed.runtimeSkills.title': "Import from current Workspace";
|
|
82
|
+
readonly 'managed.runtimeSkills.description': "Scan project Skills in the selected Runtime, review an immutable snapshot, then explicitly install it into this session.";
|
|
83
|
+
readonly 'managed.runtimeSkills.scan': "Scan current Runtime";
|
|
84
|
+
readonly 'managed.runtimeSkills.empty': "No project Skills were found in the current Runtime.";
|
|
85
|
+
readonly 'managed.runtimeSkills.shadowed': "Lower-priority source";
|
|
86
|
+
readonly 'managed.runtimeSkills.incompatible': "This Skill uses unsupported metadata.";
|
|
87
|
+
readonly 'managed.runtimeSkills.failed': "The Runtime source could not be confirmed. Check the original operation; changed sources or Runtime owners require an explicit new scan and snapshot.";
|
|
81
88
|
readonly 'managed.install.discardDraft': "Discard draft; keep saved versions";
|
|
82
89
|
readonly 'managed.install.discarded': "The draft was discarded. Any saved package or settings revisions remain available in this workspace.";
|
|
83
90
|
};
|
|
@@ -9,5 +9,9 @@ export type ManagedExtensionSelection = components['schemas']['ManagedExtensionA
|
|
|
9
9
|
export type ManagedExtensionImportMetadata = components['schemas']['ManagedExtensionImportMetadata'];
|
|
10
10
|
export type ManagedExtensionInspection = components['schemas']['ManagedExtensionPackageInspection'];
|
|
11
11
|
export type ManagedExtensionSettingDeclaration = ManagedExtensionInspection['settings'][number];
|
|
12
|
+
export type ManagedRuntimeSkillOwner = components['schemas']['ManagedRuntimeSkillOwner'];
|
|
13
|
+
export type ManagedRuntimeSkillCandidates = components['schemas']['ManagedRuntimeSkillCandidates'];
|
|
14
|
+
export type ManagedRuntimeSkillSnapshot = components['schemas']['ManagedRuntimeSkillSnapshot'];
|
|
15
|
+
export type ManagedRuntimeSkillImport = Omit<ManagedRuntimeSkillSnapshot, 'inspection'>;
|
|
12
16
|
export declare function isManagedExtensionPins(value: unknown): value is ManagedExtensionPin[];
|
|
13
17
|
export declare function requireExtensionSnapshot(value: ManagedExtensionSnapshot, sessionId: string): ManagedExtensionSnapshot;
|
|
@@ -4,4 +4,39 @@ export declare function managedSelectionFromUrl(defaultOpen?: boolean): {
|
|
|
4
4
|
open: boolean;
|
|
5
5
|
sessionId?: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* The managed view is selected by the URL contract App applies at mount:
|
|
9
|
+
* `managed=1` always, or no `managed` param on a page that defaults to the
|
|
10
|
+
* managed home (anything but a chat page with an explicit session target).
|
|
11
|
+
* `managed=0` and every explicit local session target keep the daemon view.
|
|
12
|
+
*
|
|
13
|
+
* Keep this rule in one place: `WorkspaceSessionProvider` sits above `App` and
|
|
14
|
+
* wraps both branches, so it must classify the view like App does. The two
|
|
15
|
+
* call sites deliberately pass different local-target operands: the provider
|
|
16
|
+
* passes the props-derived `hasManagedLocalTarget`, while App passes its
|
|
17
|
+
* `StandaloneContext` flag (the standalone embedding gates App in only for
|
|
18
|
+
* local targets, and the managed-only shell defaults to the managed home).
|
|
19
|
+
* Every in-tree entry point supplies `urlNavigation`, so the route arm wins
|
|
20
|
+
* and the operands agree; a route-less host that mounts App directly with a
|
|
21
|
+
* session id but no standalone context can still split the classification,
|
|
22
|
+
* which is a known limitation of that embedding shape, not a parity claim.
|
|
23
|
+
*/
|
|
24
|
+
export declare function managedSelectionFromRoute(route: {
|
|
25
|
+
page: string;
|
|
26
|
+
sessionId?: string;
|
|
27
|
+
} | undefined, hasLocalTarget?: boolean): {
|
|
28
|
+
open: boolean;
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* An explicit local session target — a session id, a workspace reference, or a
|
|
33
|
+
* session context — keeps the daemon view even when no route exists to say so
|
|
34
|
+
* (a host that omits `urlNavigation`).
|
|
35
|
+
*/
|
|
36
|
+
export declare function hasManagedLocalTarget(props: {
|
|
37
|
+
sessionId?: string;
|
|
38
|
+
workspaceId?: string;
|
|
39
|
+
workspaceCwd?: string;
|
|
40
|
+
sessionContext?: unknown;
|
|
41
|
+
}): boolean;
|
|
7
42
|
export declare function saveManagedSelection(open: boolean, sessionId?: string): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ManagedAgentCommandOptions, ManagedAgentRequestOptions } from './managed-agent-provider';
|
|
2
|
+
import type { components } from './generated/managed-agent-api';
|
|
3
|
+
export type ManagedSideQuery = components['schemas']['WebShellSideQuery'];
|
|
4
|
+
export type ManagedSideQueryKind = ManagedSideQuery['kind'];
|
|
5
|
+
export type ManagedSideQueryCreate = Omit<components['schemas']['WebShellSideQueryCreateRequest'], 'sessionId' | 'idempotencyKey' | 'requestId'>;
|
|
6
|
+
export type ManagedSideQueryContext = components['schemas']['WebShellSideQueryContext'];
|
|
7
|
+
export type ManagedSideQueryPage = components['schemas']['WebShellSideQueryPage'];
|
|
8
|
+
export interface ManagedSideQueriesProvider {
|
|
9
|
+
context(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedSideQueryContext>;
|
|
10
|
+
create(sessionId: string, request: ManagedSideQueryCreate, options: ManagedAgentCommandOptions): Promise<ManagedSideQuery>;
|
|
11
|
+
list(sessionId: string, options: ManagedAgentRequestOptions & {
|
|
12
|
+
cursor?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
}): Promise<ManagedSideQueryPage>;
|
|
15
|
+
get(sessionId: string, queryId: string, options: ManagedAgentRequestOptions): Promise<ManagedSideQuery>;
|
|
16
|
+
stream(sessionId: string, queryId: string, options: ManagedAgentRequestOptions & {
|
|
17
|
+
afterRevision?: number;
|
|
18
|
+
}): AsyncIterable<ManagedSideQuery>;
|
|
19
|
+
cancel(sessionId: string, queryId: string, options: ManagedAgentRequestOptions): Promise<ManagedSideQuery>;
|
|
20
|
+
}
|
|
21
|
+
export declare function isManagedSideQueryActive(query: ManagedSideQuery): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ManagedAgentProvider } from './managed-agent-provider';
|
|
2
|
+
import { type ManagedSideQuery, type ManagedSideQueryContext, type ManagedSideQueryCreate, type ManagedSideQueryKind } from './managed-side-query-types';
|
|
3
|
+
export declare function useManagedSideQueries(provider: ManagedAgentProvider, clientId: string, sessionId: string | undefined, options: {
|
|
4
|
+
idle: boolean;
|
|
5
|
+
interactive: boolean;
|
|
6
|
+
btw: boolean;
|
|
7
|
+
recap: boolean;
|
|
8
|
+
}): {
|
|
9
|
+
available: (kind: ManagedSideQueryKind) => boolean;
|
|
10
|
+
show: (kind: ManagedSideQueryKind) => void | undefined;
|
|
11
|
+
close: () => void | undefined;
|
|
12
|
+
loadMore: () => Promise<void> | undefined;
|
|
13
|
+
create: (request: ManagedSideQueryCreate) => Promise<boolean>;
|
|
14
|
+
confirm: (kind: ManagedSideQueryKind) => Promise<void> | undefined;
|
|
15
|
+
cancel: (query: ManagedSideQuery) => Promise<void> | undefined;
|
|
16
|
+
setAutomatic: (enabled: boolean) => void | undefined;
|
|
17
|
+
mainInputAccepted: () => void | undefined;
|
|
18
|
+
identity: object;
|
|
19
|
+
context?: ManagedSideQueryContext;
|
|
20
|
+
queries: ManagedSideQuery[];
|
|
21
|
+
pending: ManagedSideQueryKind[];
|
|
22
|
+
automatic: boolean;
|
|
23
|
+
open?: ManagedSideQueryKind;
|
|
24
|
+
error?: string;
|
|
25
|
+
nextCursor?: string | null;
|
|
26
|
+
};
|
|
@@ -9,6 +9,7 @@ import type { DaemonSessionActions, DaemonStreamingState } from '@qwen-code/web-
|
|
|
9
9
|
import type { ACPToolCall } from './adapters/types';
|
|
10
10
|
import type { WelcomeHeaderProps } from './components/WelcomeHeader';
|
|
11
11
|
import type { WebShellTheme } from './themeContext';
|
|
12
|
+
import type { ComposerPlaceholderState } from './utils/composerInputState';
|
|
12
13
|
export type MarkdownContentSource = 'assistant' | 'thinking';
|
|
13
14
|
/** Select an existing directory on the connected daemon, or cancel with undefined. */
|
|
14
15
|
export type WebShellWorkspaceDirectoryPicker = (opts?: {
|
|
@@ -525,6 +526,30 @@ export interface WebShellCustomization {
|
|
|
525
526
|
/** Host-specific label for the Ask User Question free-text choice. */
|
|
526
527
|
askUserFreeTextLabel?: string;
|
|
527
528
|
renderToolHeaderExtra?: ToolHeaderExtraRenderer;
|
|
529
|
+
/**
|
|
530
|
+
* 与普通会话对齐 Managed 对话区文案与能力提示口径。默认 false 保持独立版行为。
|
|
531
|
+
*
|
|
532
|
+
* 宿主已有自己的外壳与能力表达:控件不可用即灰掉,不额外解释。
|
|
533
|
+
* 置 true 后 Managed 会:
|
|
534
|
+
* - placeholder 改用与普通会话相同的解析口径
|
|
535
|
+
* (`composerPlaceholders?.[state] ?? t(getComposerPlaceholderKey(state))`,
|
|
536
|
+
* 进行中的会话同样按 processing 态对齐,而不是停在 managed 队列提示)
|
|
537
|
+
* - 不再渲染「模型已固定 / 审批模式已固定 / 请新建任务后发送」这类解释文案
|
|
538
|
+
* (能力仍由后端 capabilities 决定并静默禁用,不放宽任何限制)
|
|
539
|
+
*/
|
|
540
|
+
alignManagedChatWithHost?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Show the managed session header (title / workspace / phase badge). Defaults to true.
|
|
543
|
+
* 宿主外壳已展示会话身份(如宿主侧栏)时置 false,避免对话区重复一遍。
|
|
544
|
+
*/
|
|
545
|
+
showManagedSessionHeader?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Host welcome slots. Managed surfaces (the managed session empty state and
|
|
548
|
+
* the workspace-binding creation screen) invoke the same renderers but can
|
|
549
|
+
* only supply a workspace-relative `cwd`, no daemon `version`, and no
|
|
550
|
+
* `hideTips` flag — renderers that branch on those fields must tolerate the
|
|
551
|
+
* managed shape (see `WelcomeHeaderProps`).
|
|
552
|
+
*/
|
|
528
553
|
renderWelcomeHeader?: WelcomeHeaderRenderer;
|
|
529
554
|
renderWelcomeFooter?: WelcomeFooterRenderer;
|
|
530
555
|
parseUserMessageContent?: UserMessageContentParser;
|
|
@@ -541,6 +566,12 @@ export interface WebShellCustomization {
|
|
|
541
566
|
renderComposerTagTooltip?: ComposerTagRenderer;
|
|
542
567
|
onComposerTagClick?: ComposerTagClickHandler;
|
|
543
568
|
renderAssistantTurnFooter?: AssistantTurnFooterRenderer;
|
|
569
|
+
/**
|
|
570
|
+
* Main-composer copy by semantic state, mirrored for the managed composer
|
|
571
|
+
* when `alignManagedChatWithHost` is on. Omitted or blank entries retain the
|
|
572
|
+
* localized default for that state.
|
|
573
|
+
*/
|
|
574
|
+
composerPlaceholders?: Readonly<Partial<Record<ComposerPlaceholderState, string>>>;
|
|
544
575
|
/**
|
|
545
576
|
* Satisfied / not-satisfied marks on each completed assistant turn. Omit the
|
|
546
577
|
* object to leave Web Shell's answer footer unchanged.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { DaemonChannelStartupRequest, DaemonChannelUpsertRequest, DaemonRevisionRequest } from '@qwen-code/sdk/daemon';
|
|
7
|
-
import type { DaemonChannelPairingActions, DaemonChannelsResource, DaemonResourceOptions } from '../types.js';
|
|
7
|
+
import type { DaemonChannelPairingActions, DaemonChannelQrLoginActions, DaemonChannelsResource, DaemonResourceOptions } from '../types.js';
|
|
8
8
|
interface WorkspaceChannelsResource extends DaemonChannelsResource {
|
|
9
9
|
workspaceCwd: string;
|
|
10
10
|
}
|
|
@@ -29,5 +29,6 @@ export declare function useDaemonChannels(options?: DaemonChannelsOptions): {
|
|
|
29
29
|
stop: (name: string) => Promise<import("@qwen-code/sdk/daemon").DaemonChannelMutationResult>;
|
|
30
30
|
restart: (name: string) => Promise<import("@qwen-code/sdk/daemon").DaemonChannelMutationResult>;
|
|
31
31
|
pairing: DaemonChannelPairingActions;
|
|
32
|
+
qrLogin: DaemonChannelQrLoginActions;
|
|
32
33
|
};
|
|
33
34
|
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { ReactNode } from 'react';
|
|
7
|
-
import type { DaemonAgentMutationResult, DaemonAuthProviderId, DaemonAuthProviderCatalog, DaemonAuthProviderInstallRequest, DaemonAuthProviderInstallResult, DaemonAuthStatusSnapshot, DaemonSubscriptionActivation, DaemonCapabilities, DaemonChannelDelivery, DaemonChannelEvent, DaemonChannelEventsQuery, DaemonChannelEventsSnapshot, DaemonChannelMutationResult, DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRequestsSnapshot, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult, DaemonChannelsSnapshot, DaemonChannelStartupRequest, DaemonChannelTypeCatalog, DaemonChannelUpsertRequest, DaemonClient, DaemonCreateAgentRequest, DaemonGitCloneJob, DaemonWorkspaceGenerationEvent, DaemonGeneratedAgentContent, DaemonDeviceFlowStartResult, DaemonDeviceFlowState, ExtensionMutationResponse, ExtensionInteractionResponse, ExtensionInteractionResponseResult, ExtensionOperationStatus, ExtensionActiveOperations, ExtensionRefreshResponse, ExtensionScopeRequest, ExtensionInstallRequest, ExtensionArchiveInstallRequest, ExtensionInstallResponse, ExtensionUpdateCheckResponse, GoalControlRequest, GoalSnapshotV2, GoalStateResponse, DaemonInitWorkspaceResult, DaemonMcpRestartResult, DaemonMcpManageAction, DaemonMcpManageResult, DaemonRuntimeMcpAddRequest, DaemonRuntimeMcpAddResult, DaemonRuntimeMcpRemoveResult, DaemonUpdateAgentRequest, DaemonWorkspaceAgentDetail, DaemonWorkspaceAgentsStatus, DaemonWorkspaceAcpPreheatResult, DaemonWorkspaceEnvStatus, DaemonWorkspaceExtensionsStatus, DaemonWorkspaceExtensionSummaries, DaemonExtensionEntry, DaemonWorkspaceFile, DaemonWorkspaceFileBytes, DaemonWorkspaceFileEditRequest, DaemonWorkspaceFileEditResult, DaemonWorkspaceFileWriteRequest, DaemonWorkspaceFileWriteResult, DaemonWorkspaceMcpStatus, DaemonWorkspaceDirectories, DaemonWorkspaceDirectoriesMutation, DaemonWorkspaceMcpConfigStatus, DaemonMcpConfigMutationResult, DaemonMcpConfigScope, DaemonWorkspaceRuntimeStatus, DaemonWorkspaceMcpInitializeResult, DaemonWorkspaceMcpReloadResult, DaemonWorkspaceMcpToolsStatus, DaemonWorkspaceMcpResourcesStatus, DaemonWorkspaceMemoryStatus, DaemonWorkspaceCapability, DaemonWorkspaceRemovalResult, DaemonWorkspaceUpdate, DaemonWorkspacePreflightStatus, DaemonWorkspaceProvidersStatus, DaemonWorkspaceSkillsStatus, DaemonSkillToggleResult, DaemonSkillInstallRequest, DaemonSkillMutationResult, DaemonSkillScope, DaemonWorkspaceToolsStatus, DaemonBrand, DaemonWorkspaceSettingsStatus, DaemonSettingUpdateResult, DaemonModelDeleteRequest, DaemonModelDeleteResult, DaemonSessionGroup, DaemonSessionGroupCatalog, DaemonSessionGroupInput, DaemonSessionGroupUpdate, DaemonSessionListPage, DaemonSessionListPageOptions, DaemonSessionOrganizationResult, DaemonSessionOrganizationUpdate, DaemonSessionSummary, DaemonSessionExportFormat, DaemonSessionExportResult, DaemonStatusReport, DaemonStatusReportDetail, DaemonUsageDashboard, DaemonUsageRange, DaemonWriteMemoryRequest, DaemonWriteMemoryResult, DaemonRevisionRequest, SetUserLanguageResult } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import type { DaemonAgentMutationResult, DaemonAuthProviderId, DaemonAuthProviderCatalog, DaemonAuthProviderInstallRequest, DaemonAuthProviderInstallResult, DaemonAuthStatusSnapshot, DaemonSubscriptionActivation, DaemonCapabilities, DaemonChannelDelivery, DaemonChannelEvent, DaemonChannelEventsQuery, DaemonChannelEventsSnapshot, DaemonChannelMutationResult, DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRequestsSnapshot, DaemonChannelQrLoginStartResult, DaemonChannelQrLoginView, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult, DaemonChannelsSnapshot, DaemonChannelStartupRequest, DaemonChannelTypeCatalog, DaemonChannelUpsertRequest, DaemonClient, DaemonCreateAgentRequest, DaemonGitCloneJob, DaemonWorkspaceGenerationEvent, DaemonGeneratedAgentContent, DaemonDeviceFlowStartResult, DaemonDeviceFlowState, ExtensionMutationResponse, ExtensionInteractionResponse, ExtensionInteractionResponseResult, ExtensionOperationStatus, ExtensionActiveOperations, ExtensionRefreshResponse, ExtensionScopeRequest, ExtensionInstallRequest, ExtensionArchiveInstallRequest, ExtensionInstallResponse, ExtensionUpdateCheckResponse, GoalControlRequest, GoalSnapshotV2, GoalStateResponse, DaemonInitWorkspaceResult, DaemonMcpRestartResult, DaemonMcpManageAction, DaemonMcpManageResult, DaemonRuntimeMcpAddRequest, DaemonRuntimeMcpAddResult, DaemonRuntimeMcpRemoveResult, DaemonUpdateAgentRequest, DaemonWorkspaceAgentDetail, DaemonWorkspaceAgentsStatus, DaemonWorkspaceAcpPreheatResult, DaemonWorkspaceEnvStatus, DaemonWorkspaceExtensionsStatus, DaemonWorkspaceExtensionSummaries, DaemonExtensionEntry, DaemonWorkspaceFile, DaemonWorkspaceFileBytes, DaemonWorkspaceFileEditRequest, DaemonWorkspaceFileEditResult, DaemonWorkspaceFileWriteRequest, DaemonWorkspaceFileWriteResult, DaemonWorkspaceMcpStatus, DaemonWorkspaceDirectories, DaemonWorkspaceDirectoriesMutation, DaemonWorkspaceMcpConfigStatus, DaemonMcpConfigMutationResult, DaemonMcpConfigScope, DaemonWorkspaceRuntimeStatus, DaemonWorkspaceMcpInitializeResult, DaemonWorkspaceMcpReloadResult, DaemonWorkspaceMcpToolsStatus, DaemonWorkspaceMcpResourcesStatus, DaemonWorkspaceMemoryStatus, DaemonWorkspaceCapability, DaemonWorkspaceRemovalResult, DaemonWorkspaceUpdate, DaemonWorkspacePreflightStatus, DaemonWorkspaceProvidersStatus, DaemonWorkspaceSkillsStatus, DaemonSkillToggleResult, DaemonSkillInstallRequest, DaemonSkillMutationResult, DaemonSkillScope, DaemonWorkspaceToolsStatus, DaemonBrand, DaemonWorkspaceSettingsStatus, DaemonSettingUpdateResult, DaemonModelDeleteRequest, DaemonModelDeleteResult, DaemonSessionGroup, DaemonSessionGroupCatalog, DaemonSessionGroupInput, DaemonSessionGroupUpdate, DaemonSessionListPage, DaemonSessionListPageOptions, DaemonSessionOrganizationResult, DaemonSessionOrganizationUpdate, DaemonSessionSummary, DaemonSessionExportFormat, DaemonSessionExportResult, DaemonStatusReport, DaemonStatusReportDetail, DaemonUsageDashboard, DaemonUsageRange, DaemonWriteMemoryRequest, DaemonWriteMemoryResult, DaemonRevisionRequest, SetUserLanguageResult } from '@qwen-code/sdk/daemon';
|
|
8
8
|
export interface DaemonResourceOptions {
|
|
9
9
|
autoLoad?: boolean;
|
|
10
10
|
enabled?: boolean;
|
|
@@ -129,6 +129,11 @@ export interface DaemonChannelObservedContacts {
|
|
|
129
129
|
lastObservedAt: string;
|
|
130
130
|
}>;
|
|
131
131
|
}
|
|
132
|
+
export interface DaemonChannelQrLoginActions {
|
|
133
|
+
start(name: string): Promise<DaemonChannelQrLoginStartResult>;
|
|
134
|
+
state(loginId: string): Promise<DaemonChannelQrLoginView>;
|
|
135
|
+
cancel(loginId: string): Promise<DaemonChannelQrLoginView>;
|
|
136
|
+
}
|
|
132
137
|
export interface DaemonChannelPairingActions {
|
|
133
138
|
list(name: string): Promise<DaemonChannelPairingRequestsSnapshot>;
|
|
134
139
|
approve(name: string, code: string): Promise<DaemonChannelPairingApprovalResult>;
|
|
@@ -427,6 +432,7 @@ export interface DaemonWorkspaceActions extends Pick<DaemonClient, 'getSubscript
|
|
|
427
432
|
stopChannel(name: string): Promise<DaemonChannelMutationResult>;
|
|
428
433
|
restartChannel(name: string): Promise<DaemonChannelMutationResult>;
|
|
429
434
|
channelPairing: DaemonChannelPairingActions;
|
|
435
|
+
channelQrLogin: DaemonChannelQrLoginActions;
|
|
430
436
|
ensureRuntime(): Promise<DaemonWorkspaceRuntimeStatus>;
|
|
431
437
|
loadMcpConfig(): Promise<DaemonWorkspaceMcpConfigStatus>;
|
|
432
438
|
loadMcpStatus(): Promise<DaemonWorkspaceMcpStatus>;
|
|
@@ -562,3 +568,4 @@ export interface DaemonWorkspaceActions extends Pick<DaemonClient, 'getSubscript
|
|
|
562
568
|
timeoutMs?: number;
|
|
563
569
|
}): Promise<DaemonWorkspaceRemovalResult>;
|
|
564
570
|
}
|
|
571
|
+
export type { DaemonChannelQrLoginStartResult, DaemonChannelQrLoginView, } from '@qwen-code/sdk/daemon';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type { WebShellApprovalMode } from './utils/planMode';
|
|
|
10
10
|
export type { WebShellBrowserNotificationsOptions } from './browser-turn-notifications';
|
|
11
11
|
export { JavaManagedAgentClient, JavaManagedAgentHttpError, type JavaAgentCommandAdmission, type JavaAgentTurnAdmission, type JavaAgentEnvironment, type JavaAgentEvent, type JavaAgentSession, type JavaAgentTranscript, type JavaAgentTurn, type JavaManagedAgentClientOptions, } from './components/managed/java-managed-agent-client';
|
|
12
12
|
export { createJavaManagedAgentProvider, type JavaManagedAgentProviderOptions, } from './components/managed/java-managed-agent-provider';
|
|
13
|
+
export type { ManagedSideQuery, ManagedSideQueryKind, ManagedSideQueryCreate, ManagedSideQueryContext, ManagedSideQueryPage, ManagedSideQueriesProvider, } from './components/managed/managed-side-query-types';
|
|
13
14
|
export { ManagedAgentWebShell, type ManagedAgentWebShellProps, } from './ManagedAgentWebShell';
|
|
14
15
|
export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, } from './components/managed/managed-tool-result-types';
|
|
15
16
|
export { type ManagedAgentCommandOptions, type ManagedAgentPendingAction, type ManagedAgentPendingPermissionAction, type ManagedAgentPendingQuestionAction, type ManagedAgentQuestionAnswer, type ManagedAgentQuestionResponse, type ManagedAgentActionResponse, type ManagedAgentProvider, type ManagedAgentRequestOptions, type ManagedAgentRuntimeState, type ManagedAgentSessionEvent, type ManagedAgentSessionEventType, type ManagedAgentSessionPhase, type ManagedAgentSessionSummary, type ManagedAgentSessionTranscript, type ManagedAgentTurnAdmission, type ManagedRuntimeNode, type ManagedWorkspaceDirectory, type ManagedWorkspaceCreateOperation, type ManagedWorkspaceRegistration, } from './components/managed/managed-agent-provider';
|