@qwen-code/web-shell 0.26.9 → 0.27.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.
Files changed (90) hide show
  1. package/README.md +30 -6
  2. package/dist/{PierreFilePreview-BWMV28K1.js → PierreFilePreview-BT_JRIvF.js} +1 -1
  3. package/dist/{SpreadsheetPreview-CpnnnQKn.js → SpreadsheetPreview-d5XL70Ho.js} +2 -2
  4. package/dist/{WorkspaceFileBrowser-CwWFGqIW.js → WorkspaceFileBrowser-G1yA2eBf.js} +2 -2
  5. package/dist/{agents-route-BmgI-UF0.js → agents-route-bkxyBAkN.js} +2 -2
  6. package/dist/daemon-react-sdk.js +1 -1
  7. package/dist/{index-DrPRgTJc.js → index-B6wNHUaX.js} +68664 -62370
  8. package/dist/index.js +3 -3
  9. package/dist/sw.js +1 -1
  10. package/dist/transcript.js +8958 -8544
  11. package/dist/types/App.d.ts +9 -1
  12. package/dist/types/ManagedAgentWebShell.d.ts +15 -2
  13. package/dist/types/browser-notifications/messages.d.ts +9 -0
  14. package/dist/types/browser-notifications/messages.transcript-stub.d.ts +7 -0
  15. package/dist/types/completions/slashCompletion.d.ts +1 -0
  16. package/dist/types/components/ChatPane.d.ts +2 -1
  17. package/dist/types/components/MessageList.d.ts +2 -4
  18. package/dist/types/components/SessionLimitBanner.d.ts +4 -0
  19. package/dist/types/components/SessionOverviewPanel.d.ts +2 -1
  20. package/dist/types/components/SplitView.d.ts +3 -1
  21. package/dist/types/components/StreamingStatus.d.ts +4 -1
  22. package/dist/types/components/WaitingMinigame.d.ts +24 -0
  23. package/dist/types/components/artifacts/ArtifactPanel.d.ts +1 -0
  24. package/dist/types/components/artifacts/TokenUsageTrend.d.ts +20 -3
  25. package/dist/types/components/artifacts/TurnOutputs.d.ts +1 -0
  26. package/dist/types/components/artifacts/tool-call-content.d.ts +2 -1
  27. package/dist/types/components/artifacts/useWorkspaceFileChanges.d.ts +4 -0
  28. package/dist/types/components/artifacts/workspace-file-changes.d.ts +7 -0
  29. package/dist/types/components/channels/channel-editor-state.d.ts +28 -1
  30. package/dist/types/components/dialogs/ScheduledTaskDeliveryFields.d.ts +18 -0
  31. package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +6 -2
  32. package/dist/types/components/local-control-api.d.ts +14 -0
  33. package/dist/types/components/managed/ManagedActivityView.d.ts +10 -0
  34. package/dist/types/components/managed/ManagedDiagnosticsPanel.d.ts +11 -0
  35. package/dist/types/components/managed/ManagedExtensionInstaller.d.ts +31 -0
  36. package/dist/types/components/managed/ManagedExtensionsManagerPage.d.ts +2 -1
  37. package/dist/types/components/managed/ManagedInvocationTree.d.ts +13 -0
  38. package/dist/types/components/managed/ManagedMcpManagerPage.d.ts +1 -0
  39. package/dist/types/components/managed/ManagedQuestionForm.d.ts +8 -1
  40. package/dist/types/components/managed/ManagedSessionsPage.d.ts +5 -1
  41. package/dist/types/components/managed/generated/managed-agent-api.d.ts +1164 -54
  42. package/dist/types/components/managed/java-managed-agent-client.d.ts +206 -1
  43. package/dist/types/components/managed/managed-activity.test-fixtures.d.ts +6 -0
  44. package/dist/types/components/managed/managed-agent-provider.d.ts +31 -1
  45. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +157 -0
  46. package/dist/types/components/managed/managed-diagnostics.test-fixtures.d.ts +5 -0
  47. package/dist/types/components/managed/managed-extension-install.d.ts +68 -0
  48. package/dist/types/components/managed/managed-extension-messages.d.ts +48 -0
  49. package/dist/types/components/managed/managed-extension-types.d.ts +3 -0
  50. package/dist/types/components/managed/use-managed-actions.d.ts +8 -2
  51. package/dist/types/components/managed/use-managed-diagnostics.d.ts +32 -0
  52. package/dist/types/components/messages/AskUserQuestion.d.ts +7 -1
  53. package/dist/types/components/messages/AuthMessage.d.ts +2 -1
  54. package/dist/types/components/messages/toolFormatting.d.ts +23 -0
  55. package/dist/types/components/plugins/PluginManagerPage.d.ts +1 -1
  56. package/dist/types/components/sidebar/RecentSessions.d.ts +3 -2
  57. package/dist/types/components/sidebar/SessionSortMenu.d.ts +8 -0
  58. package/dist/types/components/sidebar/StandaloneRecents.d.ts +2 -1
  59. package/dist/types/components/sidebar/WebShellSidebar.d.ts +2 -1
  60. package/dist/types/components/sidebar/WorkspaceSection.d.ts +8 -2
  61. package/dist/types/components/sidebar/useWorkspaceOrder.d.ts +12 -0
  62. package/dist/types/components/sidebar/workspaceOrder.d.ts +1 -0
  63. package/dist/types/components/ui/alert.d.ts +1 -1
  64. package/dist/types/components/ui/badge.d.ts +1 -1
  65. package/dist/types/components/ui/button.d.ts +2 -2
  66. package/dist/types/components/workflow-mode-control-state.d.ts +1 -1
  67. package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +6 -0
  68. package/dist/types/config/host-fanout.d.ts +2 -0
  69. package/dist/types/customization.d.ts +33 -0
  70. package/dist/types/daemon/index.d.ts +1 -1
  71. package/dist/types/daemon/session/actions.d.ts +1 -1
  72. package/dist/types/daemon/session/httpErrors.d.ts +1 -0
  73. package/dist/types/daemon/session/session-context.d.ts +3 -1
  74. package/dist/types/daemon/session/types.d.ts +34 -1
  75. package/dist/types/daemon/workspace/index.d.ts +1 -1
  76. package/dist/types/daemon/workspace/types.d.ts +21 -1
  77. package/dist/types/daemon-react-sdk.d.ts +1 -1
  78. package/dist/types/hooks/useQueuedPrompts.d.ts +4 -1
  79. package/dist/types/hooks/useScopedSessions.d.ts +4 -0
  80. package/dist/types/session-catalog/session-catalog-hooks.d.ts +2 -0
  81. package/dist/types/settings.d.ts +1 -0
  82. package/dist/types/utils/askUserPermission.d.ts +7 -0
  83. package/dist/types/utils/planMode.d.ts +1 -1
  84. package/dist/types/utils/sessionPreparation.d.ts +19 -3
  85. package/dist/types/utils/waitingActivity.d.ts +55 -0
  86. package/dist/types/utils/waitingGamesConfig.d.ts +7 -0
  87. package/dist/types/utils/waitingMinigame.d.ts +53 -0
  88. package/dist/types/utils/waitingSnake.d.ts +40 -0
  89. package/dist/{useDaemonMidTurnInjected-4PDPakvk.js → useDaemonMidTurnInjected-tBzI77Ar.js} +5795 -5380
  90. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionPackageOperation, ManagedExtensionSelection } from './managed-extension-types';
1
+ import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionPackageOperation, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection } 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';
@@ -191,6 +191,151 @@ export declare class JavaManagedAgentClient {
191
191
  getSessionSkills(sessionId: string, signal?: AbortSignal): Promise<{
192
192
  skills: components["schemas"]["WebShellSkill"][];
193
193
  }>;
194
+ getDiagnosticContextUsage(sessionId: string, signal?: AbortSignal): Promise<{
195
+ schemaVersion: 1;
196
+ sessionId: string;
197
+ readRevision: string | null;
198
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
199
+ coverageReasons: string[];
200
+ sourceSequence: string | null;
201
+ stale: boolean;
202
+ staleReasons: string[];
203
+ estimated: true;
204
+ context: components["schemas"]["ManagedContextUsageSnapshot"] | null;
205
+ }>;
206
+ getDiagnosticStatistics(sessionId: string, signal?: AbortSignal): Promise<{
207
+ schemaVersion: 1;
208
+ sessionId: string;
209
+ readRevision: string | null;
210
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
211
+ coverageReasons: string[];
212
+ sourceSequence: string | null;
213
+ statistics: components["schemas"]["ManagedModelStatisticsSnapshot"] | null;
214
+ }>;
215
+ getActivityStatistics(sessionId: string, signal?: AbortSignal): Promise<{
216
+ schemaVersion: 1;
217
+ sessionId: string;
218
+ scope: "self";
219
+ readRevision: string | null;
220
+ coverageStartSequence: string | null;
221
+ coveredThroughSequence: string | null;
222
+ startedAt: number | null;
223
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
224
+ coverageReasons: string[];
225
+ statistics: components["schemas"]["ManagedActivityStatistics"] | null;
226
+ }>;
227
+ listActivity(request: Schemas['WebShellActivityQueryRequest'], signal?: AbortSignal): Promise<{
228
+ schemaVersion: 1;
229
+ sessionId: string;
230
+ scope: "self";
231
+ readRevision: string | null;
232
+ coverageStartSequence: string | null;
233
+ coveredThroughSequence: string | null;
234
+ startedAt: number | null;
235
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
236
+ coverageReasons: string[];
237
+ kind: "tools";
238
+ items: components["schemas"]["ManagedActivityInvocation"][];
239
+ hasMore: boolean;
240
+ nextCursor: string | null;
241
+ } | {
242
+ schemaVersion: 1;
243
+ sessionId: string;
244
+ scope: "self";
245
+ readRevision: string | null;
246
+ coverageStartSequence: string | null;
247
+ coveredThroughSequence: string | null;
248
+ startedAt: number | null;
249
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
250
+ coverageReasons: string[];
251
+ kind: "files";
252
+ items: {
253
+ invocationId: string;
254
+ assistantMessageId: string;
255
+ ordinal: number;
256
+ toolName: string;
257
+ functionCallId: string | null;
258
+ providerCallId: string | null;
259
+ executionCallId: string | null;
260
+ taskId: string | null;
261
+ toolKind: "builtin" | "mcp" | "hosted" | "unknown";
262
+ serverId: string | null;
263
+ admission: "allowed" | "denied" | "invalid" | "unknown";
264
+ execution: "not_started" | "running" | "success" | "error" | "cancelled" | "unknown";
265
+ delivery: "pending" | "complete" | "partial" | "unavailable" | "unknown";
266
+ capture: "complete" | "partial" | "unavailable" | "unknown";
267
+ file: components["schemas"]["ManagedActivityFile"];
268
+ skill: components["schemas"]["ManagedActivitySkill"] | null;
269
+ requestSequence: string;
270
+ requestedAt: number;
271
+ conflictingEvidence?: boolean;
272
+ taskState?: string;
273
+ taskRuntimeState?: string | null;
274
+ }[];
275
+ hasMore: boolean;
276
+ nextCursor: string | null;
277
+ } | {
278
+ schemaVersion: 1;
279
+ sessionId: string;
280
+ scope: "self";
281
+ readRevision: string | null;
282
+ coverageStartSequence: string | null;
283
+ coveredThroughSequence: string | null;
284
+ startedAt: number | null;
285
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
286
+ coverageReasons: string[];
287
+ kind: "skills";
288
+ items: {
289
+ invocationId: string;
290
+ assistantMessageId: string;
291
+ ordinal: number;
292
+ toolName: string;
293
+ functionCallId: string | null;
294
+ providerCallId: string | null;
295
+ executionCallId: string | null;
296
+ taskId: string | null;
297
+ toolKind: "builtin" | "mcp" | "hosted" | "unknown";
298
+ serverId: string | null;
299
+ admission: "allowed" | "denied" | "invalid" | "unknown";
300
+ execution: "not_started" | "running" | "success" | "error" | "cancelled" | "unknown";
301
+ delivery: "pending" | "complete" | "partial" | "unavailable" | "unknown";
302
+ capture: "complete" | "partial" | "unavailable" | "unknown";
303
+ file: components["schemas"]["ManagedActivityFile"] | null;
304
+ skill: components["schemas"]["ManagedActivitySkill"];
305
+ requestSequence: string;
306
+ requestedAt: number;
307
+ conflictingEvidence?: boolean;
308
+ taskState?: string;
309
+ taskRuntimeState?: string | null;
310
+ }[];
311
+ hasMore: boolean;
312
+ nextCursor: string | null;
313
+ }>;
314
+ getDiagnosticResources(sessionId: string, signal?: AbortSignal): Promise<{
315
+ schemaVersion: 1;
316
+ sessionId: string;
317
+ readRevision: string | null;
318
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
319
+ coverageReasons: string[];
320
+ configCoverage: "complete" | "partial";
321
+ historyCoverage: "complete" | "partial";
322
+ activeConfigRevision: number | null;
323
+ activeOperationPhase: string | null;
324
+ outputTruncated: boolean;
325
+ skills: components["schemas"]["ManagedDiagnosticSkill"][];
326
+ servers: components["schemas"]["ManagedDiagnosticMcpServer"][];
327
+ }>;
328
+ listDiagnosticAgentTrace(request: Schemas['WebShellDiagnosticTraceRequest'], signal?: AbortSignal): Promise<{
329
+ schemaVersion: 1;
330
+ sessionId: string;
331
+ readRevision: string | null;
332
+ availability: "available" | "partial" | "not_recorded" | "unsupported";
333
+ coverageReasons: string[];
334
+ scope: "direct-invocations";
335
+ items: components["schemas"]["ManagedDiagnosticAgentInvocation"][];
336
+ nextCursor: string | null;
337
+ hasMore: boolean;
338
+ }>;
194
339
  getSessionMcp(sessionId: string, signal?: AbortSignal): Promise<{
195
340
  object: "agent.mcp_catalog";
196
341
  session_id: string;
@@ -199,12 +344,60 @@ export declare class JavaManagedAgentClient {
199
344
  listExtensionPackages(workspaceId: string, signal?: AbortSignal): Promise<{
200
345
  supported: boolean;
201
346
  extensions: components["schemas"]["ManagedExtensionPackage"][];
347
+ selfService?: {
348
+ supported: boolean;
349
+ canPublish: boolean;
350
+ };
202
351
  }>;
203
352
  publishExtensionPackage(workspaceId: string, extensionId: string | undefined, packageDigest: string, manifest: ManagedExtensionManifest, archive: Blob, idempotencyKey: string, signal?: AbortSignal): Promise<ManagedExtensionPackageOperation>;
204
353
  getExtensionSettings(workspaceId: string, extensionId: string, signal?: AbortSignal): Promise<{
205
354
  settingsRevision: number;
206
355
  configuredKeys: string[];
207
356
  }>;
357
+ importExtensionPackage(workspaceId: string, extensionId: string | undefined, metadata: ManagedExtensionImportMetadata, source: Blob, idempotencyKey: string, signal?: AbortSignal): Promise<ManagedExtensionPackageOperation>;
358
+ inspectExtensionPackage(workspaceId: string, pin: ManagedExtensionPin, signal?: AbortSignal): Promise<{
359
+ manifest: components["schemas"]["ManagedExtensionPackageManifest"];
360
+ fileCount: number;
361
+ files: string[];
362
+ truncated: boolean;
363
+ skills: {
364
+ name: string;
365
+ description: string;
366
+ }[];
367
+ mcpServers: {
368
+ name: string;
369
+ recipe: {
370
+ [key: string]: unknown;
371
+ };
372
+ redacted: boolean;
373
+ }[];
374
+ settings: {
375
+ name: string;
376
+ envVar: string;
377
+ sensitive?: boolean;
378
+ }[];
379
+ }>;
380
+ previewExtensionPackage(workspaceId: string, metadata: ManagedExtensionImportMetadata, source: Blob, signal?: AbortSignal): Promise<ManagedExtensionInspection>;
381
+ lookupExtensionPackageOperation(workspaceId: string, kind: 'publish' | 'settings', idempotencyKey: string, signal?: AbortSignal): Promise<{
382
+ operationId: string;
383
+ extensionId: string;
384
+ kind: "publish" | "settings";
385
+ state: "pending" | "settled";
386
+ revision: number;
387
+ packageDigest: string | null;
388
+ }>;
389
+ lookupExtensionApplyOperation(sessionId: string, idempotencyKey: string, signal?: AbortSignal): Promise<{
390
+ sessionId: string;
391
+ supported: boolean;
392
+ revision: number;
393
+ extensions: components["schemas"]["ManagedExtensionPackagePin"][];
394
+ requestedExtensions: components["schemas"]["ManagedExtensionPackagePin"][];
395
+ operation?: components["schemas"]["ManagedExtensionApplyOperation"];
396
+ selfService?: {
397
+ supported: boolean;
398
+ canApply: boolean;
399
+ };
400
+ }>;
208
401
  saveExtensionSettings(workspaceId: string, extensionId: string, expectedRevision: number, values: Record<string, string>, idempotencyKey: string, signal?: AbortSignal): Promise<{
209
402
  operationId: string;
210
403
  extensionId: string;
@@ -220,6 +413,10 @@ export declare class JavaManagedAgentClient {
220
413
  extensions: components["schemas"]["ManagedExtensionPackagePin"][];
221
414
  requestedExtensions: components["schemas"]["ManagedExtensionPackagePin"][];
222
415
  operation?: components["schemas"]["ManagedExtensionApplyOperation"];
416
+ selfService?: {
417
+ supported: boolean;
418
+ canApply: boolean;
419
+ };
223
420
  }>;
224
421
  applyExtensionConfiguration(sessionId: string, command: ManagedExtensionSelection, idempotencyKey: string, signal?: AbortSignal): Promise<{
225
422
  sessionId: string;
@@ -228,6 +425,10 @@ export declare class JavaManagedAgentClient {
228
425
  extensions: components["schemas"]["ManagedExtensionPackagePin"][];
229
426
  requestedExtensions: components["schemas"]["ManagedExtensionPackagePin"][];
230
427
  operation?: components["schemas"]["ManagedExtensionApplyOperation"];
428
+ selfService?: {
429
+ supported: boolean;
430
+ canApply: boolean;
431
+ };
231
432
  }>;
232
433
  resumeExtensionConfiguration(sessionId: string, operationId: string, recoverPrevious: boolean, signal?: AbortSignal): Promise<{
233
434
  sessionId: string;
@@ -236,6 +437,10 @@ export declare class JavaManagedAgentClient {
236
437
  extensions: components["schemas"]["ManagedExtensionPackagePin"][];
237
438
  requestedExtensions: components["schemas"]["ManagedExtensionPackagePin"][];
238
439
  operation?: components["schemas"]["ManagedExtensionApplyOperation"];
440
+ selfService?: {
441
+ supported: boolean;
442
+ canApply: boolean;
443
+ };
239
444
  }>;
240
445
  getExtensionPackage(workspaceId: string, pin: ManagedExtensionPin, signal?: AbortSignal): Promise<{
241
446
  pin: components["schemas"]["ManagedExtensionPackagePin"];
@@ -0,0 +1,6 @@
1
+ import type { components } from './generated/managed-agent-api';
2
+ type Schemas = components['schemas'];
3
+ export declare const activityStatistics: Schemas['ManagedDiagnosticActivityStats'];
4
+ export declare const activityItem: Schemas['ManagedActivityInvocation'];
5
+ export declare const activityPage: Schemas['ManagedDiagnosticActivityPage'];
6
+ export {};
@@ -1,4 +1,4 @@
1
- import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionCatalog, ManagedExtensionPackageOperation, ManagedExtensionSettings, ManagedExtensionSnapshot, ManagedExtensionSelection } from './managed-extension-types';
1
+ import type { ManagedExtensionManifest, ManagedExtensionPin, ManagedExtensionCatalog, ManagedExtensionPackageOperation, ManagedExtensionSettings, ManagedExtensionSnapshot, ManagedExtensionSelection, ManagedExtensionImportMetadata, ManagedExtensionInspection } 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';
@@ -34,6 +34,25 @@ export declare function isManagedApprovalMode(value: unknown): value is ManagedA
34
34
  export declare function isManagedInitialApprovalMode(value: unknown): value is Exclude<ManagedApprovalMode, 'auto'>;
35
35
  export declare function managedPermissionRulesEqual(left: ManagedPermissionRules | undefined, right: ManagedPermissionRules | undefined): boolean;
36
36
  export type ManagedSessionSkill = components['schemas']['SessionCreationSkill'];
37
+ export type ManagedDiagnosticContextUsage = components['schemas']['ManagedDiagnosticContextUsage'];
38
+ export type ManagedDiagnosticStats = components['schemas']['ManagedDiagnosticStats'];
39
+ export type ManagedDiagnosticResources = components['schemas']['ManagedDiagnosticResources'];
40
+ export type ManagedDiagnosticAgentTrace = components['schemas']['ManagedDiagnosticAgentTrace'];
41
+ export interface ManagedDiagnosticsProvider {
42
+ getActivityStatistics?(sessionId: string, options: ManagedAgentRequestOptions): Promise<components['schemas']['ManagedDiagnosticActivityStats']>;
43
+ listActivity?(sessionId: string, options: ManagedAgentRequestOptions & {
44
+ kind: 'tools' | 'files' | 'skills';
45
+ cursor?: string;
46
+ limit?: number;
47
+ }): Promise<components['schemas']['ManagedDiagnosticActivityPage']>;
48
+ getContextUsage(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedDiagnosticContextUsage>;
49
+ getStatistics(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedDiagnosticStats>;
50
+ getResources(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedDiagnosticResources>;
51
+ listAgentTrace(sessionId: string, options: ManagedAgentRequestOptions & {
52
+ cursor?: string;
53
+ limit?: number;
54
+ }): Promise<ManagedDiagnosticAgentTrace>;
55
+ }
37
56
  export type ManagedSessionRecovery = components['schemas']['SessionRecovery'];
38
57
  export type ManagedTurnCancelOperation = components['schemas']['WebShellCommandOperation'];
39
58
  export interface ManagedModelPreset {
@@ -136,6 +155,7 @@ export interface ManagedAgentSessionSummary {
136
155
  actions?: boolean;
137
156
  childAgents?: boolean;
138
157
  tasks?: boolean;
158
+ diagnostics?: boolean;
139
159
  artifacts?: boolean;
140
160
  /** The caller may submit later Turns to this Workspace-bound Session. */
141
161
  workspaceTurns?: boolean;
@@ -208,6 +228,7 @@ interface ManagedAgentActionIdentity {
208
228
  toolName: string;
209
229
  inputRevision: number;
210
230
  policyRevision: string;
231
+ createdAt?: number;
211
232
  expiresAt: number;
212
233
  }
213
234
  export interface ManagedAgentPendingPermissionAction extends ManagedAgentActionIdentity {
@@ -230,6 +251,7 @@ export interface ManagedAgentQuestionResponse {
230
251
  }
231
252
  export type ManagedAgentActionResponse = string | ManagedAgentQuestionResponse;
232
253
  export interface ManagedAgentProvider {
254
+ readonly diagnostics?: ManagedDiagnosticsProvider;
233
255
  readonly userMessages?: {
234
256
  query(sessionId: string, options: ManagedAgentRequestOptions): Promise<import('./use-managed-user-messages').ManagedUserMessageSnapshot>;
235
257
  command(sessionId: string, command: import('./use-managed-user-messages').ManagedUserMessageCommand, options: {
@@ -265,6 +287,11 @@ export interface ManagedAgentProvider {
265
287
  readonly storageScope?: string;
266
288
  list(workspaceId: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionCatalog>;
267
289
  publish(workspaceId: string, extensionId: string | undefined, packageDigest: string, manifest: ManagedExtensionManifest, archive: Blob, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
290
+ importPackage?(workspaceId: string, extensionId: string | undefined, metadata: ManagedExtensionImportMetadata, source: Blob, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
291
+ previewPackage?(workspaceId: string, metadata: ManagedExtensionImportMetadata, source: Blob, options: ManagedAgentRequestOptions): Promise<ManagedExtensionInspection>;
292
+ inspect?(workspaceId: string, pin: ManagedExtensionPin, options: ManagedAgentRequestOptions): Promise<ManagedExtensionInspection>;
293
+ lookupPackageOperation?(workspaceId: string, kind: 'publish' | 'settings', idempotencyKey: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionPackageOperation>;
294
+ lookupApplyOperation?(sessionId: string, idempotencyKey: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionSnapshot>;
268
295
  settings(workspaceId: string, extensionId: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionSettings>;
269
296
  saveSettings(workspaceId: string, extensionId: string, expectedRevision: number, values: Record<string, string>, options: ManagedAgentCommandOptions): Promise<ManagedExtensionPackageOperation>;
270
297
  query(sessionId: string, options: ManagedAgentRequestOptions): Promise<ManagedExtensionSnapshot>;
@@ -376,6 +403,7 @@ export interface ManagedAgentProvider {
376
403
  createEmpty(request: {
377
404
  agentId: string;
378
405
  modelId?: string;
406
+ memoryStoreId?: string;
379
407
  workspaceId: string;
380
408
  cwdRelative: string;
381
409
  approvalMode?: ManagedApprovalMode;
@@ -391,6 +419,7 @@ export interface ManagedAgentProvider {
391
419
  createSession?(request: {
392
420
  agentId: string;
393
421
  modelId?: string;
422
+ memoryStoreId?: string;
394
423
  workspaceId: string;
395
424
  cwdRelative: string;
396
425
  text: string;
@@ -438,6 +467,7 @@ export interface ManagedAgentProvider {
438
467
  createSession(request: {
439
468
  text: string;
440
469
  input?: ManagedInputBlock[];
470
+ memoryStoreId?: string;
441
471
  }, options: ManagedAgentCommandOptions): Promise<ManagedAgentTurnAdmission>;
442
472
  submitPrompt(sessionId: string, request: {
443
473
  text: string;
@@ -0,0 +1,157 @@
1
+ declare const messages: {
2
+ readonly title: readonly ["Session diagnostics", "会话诊断"];
3
+ readonly partialState: readonly ["Partial", "部分"];
4
+ readonly invocations: readonly ["Agent invocations", "代理调用"];
5
+ readonly predecessorUnavailable: readonly ["An earlier invocation is unavailable.", "前序调用暂不可读。"];
6
+ readonly context: readonly ["Context", "上下文"];
7
+ readonly statistics: readonly ["Statistics", "统计"];
8
+ readonly modelStatistics: readonly ["Model statistics", "模型统计"];
9
+ readonly tools: readonly ["Tools", "工具"];
10
+ readonly files: readonly ["Explicit file operations", "显式文件操作"];
11
+ readonly skillLoads: readonly ["Skill loading", "Skill 加载"];
12
+ readonly collectionStart: readonly ["Observed since", "自此时刻起统计"];
13
+ readonly requested: readonly ["Requests", "请求次数"];
14
+ readonly allowed: readonly ["Allowed", "已准入"];
15
+ readonly denied: readonly ["Denied", "已拒绝"];
16
+ readonly invalid: readonly ["Invalid arguments", "参数无效"];
17
+ readonly not_started: readonly ["Not started", "确认未执行"];
18
+ readonly running: readonly ["Running", "执行中"];
19
+ readonly complete: readonly ["Complete", "完整"];
20
+ readonly unavailable: readonly ["Unavailable", "不可用"];
21
+ readonly pending: readonly ["Pending", "待定"];
22
+ readonly execution: readonly ["Execution", "执行结果"];
23
+ readonly admission: readonly ["Admission", "准入"];
24
+ readonly delivery: readonly ["Delivery", "结果交付"];
25
+ readonly capture: readonly ["Output capture", "输出捕获"];
26
+ readonly pathMissing: readonly ["Path not recorded", "路径未记录"];
27
+ readonly read: readonly ["Read", "读取"];
28
+ readonly write: readonly ["Write", "写入"];
29
+ readonly edit: readonly ["Edit", "编辑"];
30
+ readonly otherTools: readonly ["Other tools", "其他工具"];
31
+ readonly otherSkills: readonly ["Other Skills", "其他 Skill"];
32
+ readonly noImplicitFiles: readonly ["Only explicit file tools are included. Shell, MCP and search activity are outside this view.", "仅统计显式文件工具,Shell、MCP 和搜索内部的文件活动不在此视图中。"];
33
+ readonly skillMeaning: readonly ["Loading records committed instructions and their delivery coverage.", "加载表示已提交指令结果,同时标明指令交付是否完整。"];
34
+ readonly sourceMessage: readonly ["Source message", "来源消息"];
35
+ readonly invocation: readonly ["Invocation", "调用身份"];
36
+ readonly task: readonly ["Task", "关联任务"];
37
+ readonly taskState: readonly ["Task state", "任务状态"];
38
+ readonly rebuilding: readonly ["Diagnostics are being rebuilt from persisted evidence.", "正在从持久化证据重建诊断。"];
39
+ readonly detailPartial: readonly ["Some details were omitted by the read or collection budget.", "部分明细因读取或采集容量限制而省略。"];
40
+ readonly outcomeUnknown: readonly ["Some outcomes cannot be established from the recorded evidence.", "部分执行结果无法由现有证据确定。"];
41
+ readonly model: readonly ["Model", "模型"];
42
+ readonly user: readonly ["User", "用户"];
43
+ readonly skill: readonly ["Skill", "Skill"];
44
+ readonly extension_command: readonly ["Extension command", "扩展命令"];
45
+ readonly expand: readonly ["Expand calls", "展开调用"];
46
+ readonly collapse: readonly ["Collapse calls", "收起调用"];
47
+ readonly treeLimit: readonly ["The view limit has been reached. Open a child Session to explore further.", "已达到当前视图上限,可打开子会话继续查看。"];
48
+ readonly childUnavailable: readonly ["Child Session is unavailable.", "子会话暂不可读。"];
49
+ readonly continuation: readonly ["Continues an earlier invocation", "续接此前调用"];
50
+ readonly ownUsage: readonly ["View own usage", "查看自身用量"];
51
+ readonly sourceMissing: readonly ["Earlier observations are incomplete.", "更早的观测数据不完整。"];
52
+ readonly resources: readonly ["Resources", "资源"];
53
+ readonly agents: readonly ["Child agents", "子代理"];
54
+ readonly description: readonly ["Persisted observations for this Session.", "此会话已保存的观测数据。"];
55
+ readonly refresh: readonly ["Refresh", "刷新"];
56
+ readonly loading: readonly ["Loading…", "加载中…"];
57
+ readonly failed: readonly ["Could not read diagnostics. Refresh to retry.", "读取诊断失败,请刷新重试。"];
58
+ readonly not_recorded: readonly ["No observation has been saved yet.", "尚无已保存的观测数据。"];
59
+ readonly unsupported: readonly ["This Session has no supported diagnostic records.", "此会话暂无支持的诊断记录。"];
60
+ readonly partial: readonly ["Some observations are unavailable or incomplete.", "部分观测缺失或不完整。"];
61
+ readonly stale: readonly ["This request predates a context change. The next committed main-model request will update it.", "此请求早于最近的上下文变化,将在下一次主模型请求提交后更新。"];
62
+ readonly estimated: readonly ["Categories are local estimates. Cached tokens overlap the input total.", "分类为本地估算,缓存 token 已包含在输入总量中。"];
63
+ readonly observedAt: readonly ["Observed", "观测时间"];
64
+ readonly input: readonly ["Input tokens", "输入 token"];
65
+ readonly output: readonly ["Output tokens", "输出 token"];
66
+ readonly cached: readonly ["Cached tokens", "缓存 token"];
67
+ readonly thoughts: readonly ["Reasoning tokens", "推理 token"];
68
+ readonly totalTokens: readonly ["Total tokens", "总 token"];
69
+ readonly knownUsage: readonly ["Recorded calls", "已记录调用"];
70
+ readonly window: readonly ["Context window", "上下文窗口"];
71
+ readonly unknown: readonly ["Unknown", "未知"];
72
+ readonly systemPrompt: readonly ["System prompt", "系统提示"];
73
+ readonly builtinTools: readonly ["Built-in tools", "内置工具"];
74
+ readonly mcpTools: readonly ["MCP tools", "MCP 工具"];
75
+ readonly instructionFiles: readonly ["Instruction files", "指令文件"];
76
+ readonly memoryFiles: readonly ["Auto memory", "自动记忆"];
77
+ readonly skills: readonly ["Skills", "Skills"];
78
+ readonly startupContext: readonly ["Startup context", "启动上下文"];
79
+ readonly messages: readonly ["Conversation", "会话消息"];
80
+ readonly details: readonly ["Details", "明细"];
81
+ readonly requests: readonly ["Requests", "请求次数"];
82
+ readonly success: readonly ["Successful", "成功"];
83
+ readonly error: readonly ["Failed", "错误"];
84
+ readonly cancelled: readonly ["Cancelled", "取消"];
85
+ readonly interrupted: readonly ["Interrupted", "中断"];
86
+ readonly latency: readonly ["Total request time", "累计请求耗时"];
87
+ readonly ttft: readonly ["Average time to first token", "平均首 token 耗时"];
88
+ readonly speed: readonly ["Output tokens / second", "输出 token / 秒"];
89
+ readonly retries: readonly ["Backoff retry calls", "退避重试调用"];
90
+ readonly http: readonly ["HTTP errors", "HTTP 错误"];
91
+ readonly transport: readonly ["Transport errors", "传输错误"];
92
+ readonly timeout: readonly ["Timeouts", "超时"];
93
+ readonly other: readonly ["Other errors", "其他错误"];
94
+ readonly ownOnly: readonly ["Counts belong to this Session. Open a child Session to inspect its statistics.", "仅统计当前会话,子代理的统计在子会话中查看。"];
95
+ readonly main: readonly ["Main model", "主模型"];
96
+ readonly hook: readonly ["Hooks", "Hooks"];
97
+ readonly compression: readonly ["Compression", "上下文压缩"];
98
+ readonly otherModels: readonly ["Other models", "其他模型"];
99
+ readonly recent: readonly ["Recent observed calls", "最近观测的调用"];
100
+ readonly truncated: readonly ["Only bounded details and recent samples are retained; cumulative totals are preserved.", "仅保留有限明细与最近样本,累计总数不受影响。"];
101
+ readonly modelInvocable: readonly ["Model invocation", "模型可调用"];
102
+ readonly userInvocable: readonly ["User invocation", "用户可调用"];
103
+ readonly yes: readonly ["Yes", "是"];
104
+ readonly no: readonly ["No", "否"];
105
+ readonly base: readonly ["Base configuration", "基础配置"];
106
+ readonly extension: readonly ["Extension", "扩展"];
107
+ readonly independent: readonly ["Independent server", "独立服务器"];
108
+ readonly command: readonly ["Command", "命令"];
109
+ readonly enabled: readonly ["Selected", "已选用"];
110
+ readonly disabled: readonly ["Disabled", "已禁用"];
111
+ readonly removed: readonly ["Removed", "已移除"];
112
+ readonly historical: readonly ["Historical discovery", "历史发现结果"];
113
+ readonly activeConfig: readonly ["Last activated configuration", "上次激活的配置"];
114
+ readonly pendingConfig: readonly ["The latest configuration change has not been activated.", "最近一次配置变更尚未激活。"];
115
+ readonly selectedRevision: readonly ["Selected server revision", "选中的服务器版本"];
116
+ readonly catalogServerRevision: readonly ["Discovered server revision", "发现结果对应的服务器版本"];
117
+ readonly lastAttempt: readonly ["Last saved attempt", "上次保存的操作状态"];
118
+ readonly attemptServerRevision: readonly ["Attempt server revision", "上次操作的服务定义版本"];
119
+ readonly lastExecution: readonly ["Last saved execution evidence", "上次保存的执行状态"];
120
+ readonly release: readonly ["Release state", "释放状态"];
121
+ readonly offlineRead: readonly ["Configuration and saved discovery do not prove that a server is currently connected.", "配置及已保存的发现结果不代表服务器当前在线。"];
122
+ readonly prompts: readonly ["Prompts", "提示模板"];
123
+ readonly discoveryFailed: readonly ["Discovery failed", "发现失败"];
124
+ readonly discoveryStale: readonly ["Stale", "已过期"];
125
+ readonly discoveryPartial: readonly ["Partial", "部分结果"];
126
+ readonly resourceTruncated: readonly ["Some resource entries were omitted to fit this snapshot.", "部分快照资源条目因大小限制被省略。"];
127
+ readonly legacyHistory: readonly ["Older history has no model observations.", "旧历史缺少模型观测。"];
128
+ readonly unclosedTurn: readonly ["A prior turn did not settle.", "此前有回合未完成结算。"];
129
+ readonly unclosedModel: readonly ["A prior model call did not finish.", "此前有模型调用未完成。"];
130
+ readonly unclosedMaintenance: readonly ["A prior compression did not finish.", "此前有压缩未完成。"];
131
+ readonly observationError: readonly ["A model observation could not be recorded.", "部分模型观测未能记录。"];
132
+ readonly missingUsage: readonly ["Some token usage fields were not reported.", "部分 token 用量字段未报告。"];
133
+ readonly interruptedObservation: readonly ["A model observation was interrupted.", "部分模型观测被中断。"];
134
+ readonly counterOverflow: readonly ["A cumulative counter reached its limit.", "累计计数已达到上限。"];
135
+ readonly attributionIncomplete: readonly ["Some context could not be attributed.", "部分上下文无法完成分类归因。"];
136
+ readonly detailsTruncated: readonly ["Some context details were omitted.", "部分上下文明细已省略。"];
137
+ readonly resourceReadLimit: readonly ["The resource read limit was reached.", "已达到资源读取上限。"];
138
+ readonly configurationHistoryLimit: readonly ["Configuration history was limited.", "配置历史超过读取上限。"];
139
+ readonly mcpHistoryLimit: readonly ["MCP discovery history was limited.", "MCP 发现历史超过读取上限。"];
140
+ readonly extensionAttributionUnavailable: readonly ["Extension attribution is unavailable.", "扩展归属信息不可用。"];
141
+ readonly invalidResource: readonly ["A saved resource could not be validated.", "部分已保存资源未通过校验。"];
142
+ readonly resourceUnavailable: readonly ["A saved resource is unavailable.", "部分已保存资源不可读取。"];
143
+ readonly publicOutputLimit: readonly ["The response size limit was reached.", "已达到响应大小上限。"];
144
+ readonly childrenUnavailable: readonly ["Some child Sessions are unavailable to this viewer.", "部分子会话对当前用户不可用。"];
145
+ readonly descriptionUnavailable: readonly ["Some invocation descriptions are unavailable.", "部分调用描述不可用。"];
146
+ readonly invocationUnavailable: readonly ["Some invocation details are unavailable.", "部分调用详情不可用。"];
147
+ readonly unknownCoverage: readonly ["Additional observations are incomplete.", "另有观测数据不完整。"];
148
+ readonly empty: readonly ["No entries in this snapshot.", "此快照没有条目。"];
149
+ readonly openChild: readonly ["Open child Session", "打开子会话"];
150
+ readonly state: readonly ["State", "状态"];
151
+ readonly createdAt: readonly ["Created", "创建时间"];
152
+ readonly previous: readonly ["Previous page", "上一页"];
153
+ readonly next: readonly ["Next page", "下一页"];
154
+ readonly directOnly: readonly ["Direct invocations from this Session.", "当前会话发起的直接调用。"];
155
+ };
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." | "当前会话发起的直接调用。";
157
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { ManagedDiagnosticAgentTrace, ManagedDiagnosticContextUsage, ManagedDiagnosticResources, ManagedDiagnosticStats } from './managed-agent-provider';
2
+ export declare const diagnosticContext: ManagedDiagnosticContextUsage;
3
+ export declare const diagnosticStats: ManagedDiagnosticStats;
4
+ export declare const diagnosticResources: ManagedDiagnosticResources;
5
+ export declare const diagnosticTrace: ManagedDiagnosticAgentTrace;
@@ -0,0 +1,68 @@
1
+ import type { ManagedAgentProvider, ManagedAgentRequestOptions } from './managed-agent-provider';
2
+ import type { ManagedExtensionImportMetadata, ManagedExtensionPin, ManagedExtensionSnapshot } from './managed-extension-types';
3
+ type Management = NonNullable<ManagedAgentProvider['extensions']>;
4
+ export interface ManagedExtensionInstallCommand {
5
+ version: 1;
6
+ workspaceId: string;
7
+ sessionId: string;
8
+ metadata: ManagedExtensionImportMetadata;
9
+ extensionId?: string;
10
+ expectedConfigRevision: number;
11
+ extensions: ManagedExtensionPin[];
12
+ expectedSettingsRevision: number;
13
+ settingsKeys: string[];
14
+ keepSettingsRevision?: number;
15
+ publishKey: string;
16
+ settingsKey: string;
17
+ applyKey: string;
18
+ stage: 'publish' | 'settings' | 'apply';
19
+ pin?: ManagedExtensionPin;
20
+ applySubmitted?: boolean;
21
+ }
22
+ export declare class ManagedExtensionInstallInputRequired extends Error {
23
+ readonly input: 'source' | 'settings';
24
+ constructor(input: 'source' | 'settings');
25
+ }
26
+ 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 parseManagedExtensionInstall(raw: string, workspaceId: string, sessionId: string): ManagedExtensionInstallCommand | undefined;
29
+ export declare function isManagedExtensionConfigurationPending(snapshot: ManagedExtensionSnapshot): boolean;
30
+ export declare function isManagedExtensionApplyRejected(cause: unknown): boolean;
31
+ export declare function queryManagedExtensionApplyReview(management: Management, sessionId: string, key: string, submitted: boolean, options: ManagedAgentRequestOptions): Promise<{
32
+ sessionId: string;
33
+ supported: boolean;
34
+ revision: number;
35
+ extensions: import("./generated/managed-agent-api").components["schemas"]["ManagedExtensionPackagePin"][];
36
+ requestedExtensions: import("./generated/managed-agent-api").components["schemas"]["ManagedExtensionPackagePin"][];
37
+ operation?: import("./generated/managed-agent-api").components["schemas"]["ManagedExtensionApplyOperation"];
38
+ selfService?: {
39
+ supported: boolean;
40
+ canApply: boolean;
41
+ };
42
+ }>;
43
+ export declare function reviewManagedExtensionInstall(management: Management, command: ManagedExtensionInstallCommand, options: ManagedAgentRequestOptions): Promise<{
44
+ expectedConfigRevision: number;
45
+ extensions: {
46
+ extensionId: string;
47
+ packageRevision: number;
48
+ packageDigest: string;
49
+ settingsRevision?: number;
50
+ }[];
51
+ applyKey: string;
52
+ applySubmitted: boolean;
53
+ version: 1;
54
+ workspaceId: string;
55
+ sessionId: string;
56
+ metadata: ManagedExtensionImportMetadata;
57
+ extensionId?: string;
58
+ expectedSettingsRevision: number;
59
+ settingsKeys: string[];
60
+ keepSettingsRevision?: number;
61
+ publishKey: string;
62
+ settingsKey: string;
63
+ stage: "publish" | "settings" | "apply";
64
+ pin?: ManagedExtensionPin;
65
+ } | undefined>;
66
+ export declare function isManagedExtensionInstallActive(command: ManagedExtensionInstallCommand, snapshot: ManagedExtensionSnapshot): boolean;
67
+ export declare function continueManagedExtensionInstall(management: Management, input: ManagedExtensionInstallCommand, source: Blob | undefined, settings: Record<string, string> | undefined, options: ManagedAgentRequestOptions, progress: (command: ManagedExtensionInstallCommand) => void): Promise<ManagedExtensionSnapshot>;
68
+ export {};