@pstdio/sdk 0.39.0 → 0.41.0

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.
@@ -146,6 +146,13 @@ class PstdioApiError extends Error {
146
146
  this.status = status;
147
147
  }
148
148
  }
149
+
150
+ class PstdioConnectionError extends Error {
151
+ constructor(cause) {
152
+ super("Could not connect to the backend.", { cause });
153
+ this.name = "PstdioConnectionError";
154
+ }
155
+ }
149
156
  var formatZodIssues = (issues) => issues.map((issue) => {
150
157
  const path = Array.isArray(issue.path) ? issue.path.filter((part) => part !== "").join(".") : "";
151
158
  const message = typeof issue.message === "string" ? issue.message : JSON.stringify(issue);
@@ -222,28 +229,53 @@ var createRequest = (options) => {
222
229
  });
223
230
  if (!isSameOriginTarget(baseUrl, path, url))
224
231
  headers.delete("authorization");
225
- const response = await fetchFn(url, {
232
+ const requestInit = {
226
233
  method: reqOpts.method ?? "GET",
227
234
  headers: Object.fromEntries(headers.entries()),
228
235
  body: reqOpts.body !== undefined ? serializeRequestBody(reqOpts.body) : undefined,
229
236
  signal: reqOpts.signal,
230
237
  cache: reqOpts.cache,
231
238
  credentials: "same-origin"
232
- });
233
- if (!response.ok) {
234
- const errorBody = await response.json().catch(() => null);
235
- const message = readErrorMessage(errorBody, response.status);
236
- throw new PstdioApiError(message, response.status);
239
+ };
240
+ try {
241
+ const response = await fetchFn(url, requestInit);
242
+ if (!response.ok) {
243
+ const errorBody = await response.json().catch(() => null);
244
+ const message = readErrorMessage(errorBody, response.status);
245
+ throw new PstdioApiError(message, response.status);
246
+ }
247
+ if (response.status === 204)
248
+ return;
249
+ return await response.json();
250
+ } catch (error) {
251
+ reqOpts.signal?.throwIfAborted();
252
+ if (error instanceof PstdioApiError || error instanceof SyntaxError)
253
+ throw error;
254
+ throw new PstdioConnectionError(error);
237
255
  }
238
- if (response.status === 204)
239
- return;
240
- return response.json();
241
256
  };
242
257
  };
243
258
 
259
+ // src/client/resource-anchors.ts
260
+ var createResourceAnchorsClient = (request) => ({
261
+ addAnchors: async (projectId, resource, anchors) => {
262
+ await request(`/v1/projects/${encodeURIComponent(projectId)}/resource-anchors/add`, {
263
+ method: "POST",
264
+ body: { resource, anchors }
265
+ });
266
+ },
267
+ removeAnchors: async (projectId, resource, refs) => {
268
+ await request(`/v1/projects/${encodeURIComponent(projectId)}/resource-anchors/remove`, {
269
+ method: "POST",
270
+ body: { resource, refs }
271
+ });
272
+ },
273
+ listAnchors: (projectId, input) => request(`/v1/projects/${encodeURIComponent(projectId)}/resource-anchors/query`, { method: "POST", body: input })
274
+ });
275
+
244
276
  // src/client/runtime.ts
245
277
  var createRuntimeClient = (request) => ({
246
- provisionBrowserSession: () => request("/runtime/browser-session", { method: "POST" })
278
+ createBrowserLogin: () => request("/runtime/browser-login", { method: "POST" })
247
279
  });
248
280
 
249
281
  // src/client/sse.ts
@@ -426,6 +458,7 @@ var dispatchSessionStreamEvent = (event, data, handlers) => {
426
458
  var createSessionClient = (request, clientOptions) => {
427
459
  const streams = createSessionStreamTransport(request, clientOptions);
428
460
  return {
461
+ getDraftHarnessCommands: (input, signal) => request("/v1/sessions/harness-command-state", { method: "POST", body: input, signal }),
429
462
  listActivity: (sessionId, input = {}) => {
430
463
  const params = new URLSearchParams;
431
464
  if (input.event_type)
@@ -442,6 +475,8 @@ var createSessionClient = (request, clientOptions) => {
442
475
  return request(`/v1/sessions/${sessionId}/activity${query ? `?${query}` : ""}`);
443
476
  },
444
477
  list: (projectId, input) => request(`/v1/sessions?${buildSessionsQuery(projectId, input)}`),
478
+ getHarnessCommands: (sessionId, signal) => request(`/v1/sessions/${sessionId}/harness-commands`, { signal }),
479
+ invokeHarnessOperation: (sessionId, operation, harnessId) => request(`/v1/sessions/${sessionId}/harness-commands`, { method: "POST", body: { operation, harnessId } }),
445
480
  get: (sessionId) => request(`/v1/sessions/${sessionId}`),
446
481
  uploadAttachment: (projectId, input) => request(`/v1/projects/${encodeURIComponent(projectId)}/session-attachments`, {
447
482
  method: "POST",
@@ -463,6 +498,7 @@ var createSessionClient = (request, clientOptions) => {
463
498
  getQueuedMessages: (sessionId, options) => request(`/v1/sessions/${sessionId}/queued-messages`, options),
464
499
  resolveSessionId: (input) => request("/v1/sessions/resolve-session-id", { method: "POST", body: input }),
465
500
  updateStatus: (sessionId, status) => request(`/v1/sessions/${sessionId}/status`, { method: "PATCH", body: { status } }),
501
+ rename: (sessionId, title) => request(`/v1/sessions/${sessionId}/title`, { method: "PATCH", body: { title } }),
466
502
  stream: (sessionId, onEvent, options = {}) => new Promise((resolve, reject) => {
467
503
  const subscription = streams.subscribe(sessionId, {
468
504
  onEvent: (event, data) => {
@@ -546,7 +582,7 @@ var createHeartbeatMonitor = (input) => {
546
582
  start: () => {
547
583
  timer = setInterval(() => {
548
584
  missedHeartbeats += 1;
549
- if (missedHeartbeats >= input.threshold) {
585
+ if (missedHeartbeats === input.threshold) {
550
586
  input.onConnectionLost?.();
551
587
  }
552
588
  }, input.intervalMs);
@@ -569,9 +605,15 @@ var createSyncClient = (clientOptions) => ({
569
605
  const heartbeatMonitor = createHeartbeatMonitor({
570
606
  intervalMs: input.heartbeatIntervalMs ?? DEFAULT_HEARTBEAT_INTERVAL_MS,
571
607
  threshold: input.heartbeatThreshold ?? DEFAULT_HEARTBEAT_THRESHOLD,
572
- onConnectionLost: input.onConnectionLost
608
+ onConnectionLost: () => {
609
+ heartbeatMonitor.recordHeartbeat();
610
+ setDisconnected();
611
+ input.onConnectionLost?.();
612
+ abortController?.abort();
613
+ }
573
614
  });
574
615
  const setConnected = () => {
616
+ heartbeatMonitor.recordHeartbeat();
575
617
  const wasConnected = state.connected;
576
618
  state.connected = true;
577
619
  if (!wasConnected)
@@ -611,8 +653,8 @@ var createSyncClient = (clientOptions) => ({
611
653
  abortController = new AbortController;
612
654
  try {
613
655
  await readConnection(abortController.signal);
614
- } catch (err) {
615
- if (closed || err.name === "AbortError")
656
+ } catch {
657
+ if (closed)
616
658
  return;
617
659
  }
618
660
  if (closed)
@@ -713,6 +755,7 @@ var createWorkspaceClient = (request) => ({
713
755
  var createClient = (options = {}) => {
714
756
  const request = createRequest(options);
715
757
  return {
758
+ resources: createResourceAnchorsClient(request),
716
759
  views: createBoardViewsClient(request),
717
760
  projects: createProjectClient(request),
718
761
  filesystem: createFilesystemClient(request),
@@ -730,6 +773,7 @@ var createClient = (options = {}) => {
730
773
  };
731
774
  export {
732
775
  PstdioApiError,
776
+ PstdioConnectionError,
733
777
  applySyncEvent,
734
778
  createClient,
735
779
  createRequest,
package/dist/client.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { A as PstdioApiError, C as DirectoryEntry, D as AutomationClient, E as BoardViewsClient, M as RequestOptions, N as createRequest, O as AgentClient, S as NotificationsClient, T as ExtensionClient, _ as SessionStreamHandlers, a as SyncClient, b as createRuntimeClient, c as SyncWriter, d as parseSyncDeleteEvent, f as SkillClient, g as SessionStreamConnection, h as SessionClient, i as StartSyncInput, j as RequestFn, k as ClientOptions, l as SyncWriterProvider, m as ListSessionsInput, n as createClient, o as SyncConnection, p as SettingsClient, r as WorkspaceClient, s as SyncRow, t as PstdioClient, u as applySyncEvent, v as SseEvent, w as FilesystemClient, x as ProjectClient, y as RuntimeClient } from "./index-CF8VtORE.js";
2
- export { type AgentClient, type AutomationClient, type BoardViewsClient, type ClientOptions, type DirectoryEntry, type ExtensionClient, type FilesystemClient, type ListSessionsInput, type NotificationsClient, type ProjectClient, PstdioApiError, type PstdioClient, type RequestFn, type RequestOptions, type RuntimeClient, type SessionClient, type SessionStreamConnection, type SessionStreamHandlers, type SettingsClient, type SkillClient, type SseEvent, type StartSyncInput, type SyncClient, type SyncConnection, type SyncRow, type SyncWriter, type SyncWriterProvider, type WorkspaceClient, applySyncEvent, createClient, createRequest, createRuntimeClient, parseSyncDeleteEvent };
1
+ import { A as ClientOptions, C as NotificationsClient, D as BoardViewsClient, E as ExtensionClient, F as createRequest, M as PstdioConnectionError, N as RequestFn, O as AutomationClient, P as RequestOptions, S as ProjectClient, T as FilesystemClient, _ as SessionStreamHandlers, a as SyncClient, b as createRuntimeClient, c as SyncWriter, d as parseSyncDeleteEvent, f as SkillClient, g as SessionStreamConnection, h as SessionClient, i as StartSyncInput, j as PstdioApiError, k as AgentClient, l as SyncWriterProvider, m as ListSessionsInput, n as createClient, o as SyncConnection, p as SettingsClient, r as WorkspaceClient, s as SyncRow, t as PstdioClient, u as applySyncEvent, v as SseEvent, w as DirectoryEntry, x as ResourceAnchorsClient, y as RuntimeClient } from "./index-B8kqMxoR.js";
2
+ export { type AgentClient, type AutomationClient, type BoardViewsClient, type ClientOptions, type DirectoryEntry, type ExtensionClient, type FilesystemClient, type ListSessionsInput, type NotificationsClient, type ProjectClient, PstdioApiError, type PstdioClient, PstdioConnectionError, type RequestFn, type RequestOptions, type ResourceAnchorsClient, type RuntimeClient, type SessionClient, type SessionStreamConnection, type SessionStreamHandlers, type SettingsClient, type SkillClient, type SseEvent, type StartSyncInput, type SyncClient, type SyncConnection, type SyncRow, type SyncWriter, type SyncWriterProvider, type WorkspaceClient, applySyncEvent, createClient, createRequest, createRuntimeClient, parseSyncDeleteEvent };
3
3
  export {};
package/dist/data.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ti as ArtifactMount } from "./index-Dd4tqVV7.js";
1
+ import { Di as ArtifactMount } from "./index-BvsVU-eX.js";
2
2
  //#region src/data/draft-layout.d.ts
3
3
  export declare const assertSafePathSegment: (value: string) => void;
4
4
  export declare const requireRepoFiles: (projectFiles: ArtifactMount | undefined) => ArtifactMount;
@@ -1,6 +1,24 @@
1
1
  // ../pstdio-api-contracts/src/extension-kernel/api-versions.ts
2
2
  var numericIdentifier = "(?:0|[1-9]\\d*)";
3
3
  var caretTerm = new RegExp(`^\\^(${numericIdentifier}\\.${numericIdentifier}\\.${numericIdentifier})$`);
4
+ // ../pstdio-api-contracts/src/extension-kernel/boolean-view-filter.ts
5
+ var normalizeBooleanViewRule = (rule, type) => {
6
+ const mapping = type.kind === "boolean" ? type.legacyValues : undefined;
7
+ if (!mapping || !Array.isArray(rule.value) || rule.value.length === 0)
8
+ return rule;
9
+ if (rule.condition !== "is-any-of" && rule.condition !== "is-none-of")
10
+ return rule;
11
+ if (rule.value.some((value) => !Object.hasOwn(mapping, value)))
12
+ return rule;
13
+ const values = new Set(rule.value.map((value) => mapping[value]));
14
+ if (values.size === 2)
15
+ return { attributeId: rule.attributeId, condition: rule.condition === "is-any-of" ? "is-not-empty" : "is-empty" };
16
+ return {
17
+ attributeId: rule.attributeId,
18
+ condition: rule.condition === "is-any-of" ? "is" : "is-not",
19
+ value: [...values][0]
20
+ };
21
+ };
4
22
  // ../pstdio-api-contracts/src/extension-kernel/types/composition.ts
5
23
  var dockedWorkbenchRegions = ["sidenav", "main", "secondary", "side"];
6
24
  var extensionPanelRegions = ["main", "secondary", "side"];
@@ -96,6 +114,24 @@ var workbenchSlots = {
96
114
  var localContributionIdPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)*$/;
97
115
  var isValidLocalContributionId = (id) => localContributionIdPattern.test(id);
98
116
  var localContributionIdGrammar = 'lowercase kebab-case segments separated by dots, such as "ticket-status.create"';
117
+ // ../pstdio-api-contracts/src/extension-kernel/data-table-values.ts
118
+ var resolveDataTableComparableValue = (value, renderer) => {
119
+ if (typeof value !== "object" || value === null)
120
+ return value;
121
+ if ("display" in value)
122
+ return "sortValue" in value ? value.sortValue : undefined;
123
+ if (renderer?.type === "diff" && "additions" in value && "deletions" in value && typeof value.additions === "number" && typeof value.deletions === "number")
124
+ return value.additions + value.deletions;
125
+ return value;
126
+ };
127
+ var resolveDataTableFieldKind = (values, column = {}) => {
128
+ if (column.type)
129
+ return column.type;
130
+ if (column.renderer?.type === "date")
131
+ return "date";
132
+ const comparable = values.map((value) => resolveDataTableComparableValue(value, column.renderer)).filter((value) => value !== null && value !== undefined);
133
+ return comparable.length > 0 && comparable.every((value) => typeof value === "number") ? "number" : "string";
134
+ };
99
135
  // ../pstdio-api-contracts/src/extension-kernel/refs.ts
100
136
  var createCommandRef = (input) => ({ ...input, kind: "command" });
101
137
  var commandRef = Object.assign(createCommandRef, {
@@ -183,6 +219,29 @@ var isNavigationHref = (href) => {
183
219
  }
184
220
  };
185
221
 
222
+ // ../pstdio-api-contracts/src/extension-kernel/source-position.ts
223
+ var isFileSourcePosition = (value) => {
224
+ if (!value || typeof value !== "object" || Array.isArray(value))
225
+ return false;
226
+ const position = value;
227
+ const positive = (number) => typeof number === "number" && Number.isSafeInteger(number) && number > 0;
228
+ if (!positive(position.line))
229
+ return false;
230
+ for (const key of ["column", "endLine", "endColumn"]) {
231
+ if (position[key] !== undefined && !positive(position[key]))
232
+ return false;
233
+ }
234
+ if (position.endColumn !== undefined && position.endLine === undefined)
235
+ return false;
236
+ if (position.endLine !== undefined) {
237
+ if (position.endLine < position.line)
238
+ return false;
239
+ if (position.endLine === position.line && (position.endColumn ?? 1) < (position.column ?? 1))
240
+ return false;
241
+ }
242
+ return true;
243
+ };
244
+
186
245
  // ../pstdio-api-contracts/src/extension-kernel/navigation.ts
187
246
  var isRecord = (value) => Boolean(value && typeof value === "object" && !Array.isArray(value));
188
247
  var isContributionRef = (value, kind) => isRecord(value) && value.kind === kind && typeof value.id === "string";
@@ -197,6 +256,8 @@ var isPageTarget = (value, ancestors = new Set) => {
197
256
  return false;
198
257
  if (value.section !== undefined && !isRecord(value.section))
199
258
  return false;
259
+ if (value.position !== undefined && (!isFileSourcePosition(value.position) || value.section !== undefined))
260
+ return false;
200
261
  if (!isOpenIntent(value.open))
201
262
  return false;
202
263
  if (value.parent === undefined)
@@ -269,8 +330,29 @@ var packageAsset = (path, baseUrl) => ({
269
330
  path,
270
331
  baseUrl
271
332
  });
333
+ // ../pstdio-api-contracts/src/extension-kernel/types/collection-view.ts
334
+ var optionConditions = ["is-any-of", "is-none-of", "is-empty", "is-not-empty"];
335
+ var VIEW_FILTER_CONDITIONS = {
336
+ boolean: ["is", "is-not", "is-empty", "is-not-empty"],
337
+ string: ["contains", "does-not-contain", "is", "is-not", "is-empty", "is-not-empty"],
338
+ number: ["is", "is-not", "gt", "gte", "lt", "lte", "is-empty", "is-not-empty"],
339
+ date: ["is", "is-before", "is-after", "is-on-or-before", "is-on-or-after", "is-empty", "is-not-empty"],
340
+ enum: optionConditions,
341
+ status: optionConditions,
342
+ user: optionConditions,
343
+ "enum-multi": ["has-any-of", "has-all-of", "has-none-of", "is-empty", "is-not-empty"]
344
+ };
345
+ // ../pstdio-api-contracts/src/extension-kernel/types/data-table-renderer.ts
346
+ var DEFAULT_DATA_TABLE_SETTINGS = {
347
+ grouping: "none",
348
+ rowNumbers: true,
349
+ wrapRows: false,
350
+ showStats: true,
351
+ hiddenColumns: [],
352
+ columnOrder: []
353
+ };
272
354
  // ../pstdio-api-contracts/src/extension-kernel/types/extension.ts
273
- var EXTENSION_API_VERSION = "0.1.0";
355
+ var EXTENSION_API_VERSION = "0.1.2";
274
356
  // ../pstdio-api-contracts/src/extension-kernel/types/webview-capabilities.ts
275
357
  var WEBVIEW_HOST_CAPABILITY_VERSION = 1;
276
358
  var WEBVIEW_DECLARABLE_CAPABILITIES = [
@@ -523,7 +605,7 @@ var reconcileMessageHistory = (input, projection = {}) => {
523
605
  }
524
606
  };
525
607
  // package.json
526
- var version = "0.39.0";
608
+ var version = "0.41.0";
527
609
 
528
610
  // src/version.ts
529
611
  var SDK_VERSION = version;
@@ -535,6 +617,15 @@ var unwrapCommandOutcome = (response, fallbackReason = "Command failed.") => {
535
617
  }
536
618
  return outcome.value;
537
619
  };
620
+ // src/extensions/contribution-reference.ts
621
+ var HOST_EXTENSION_ID = "pstdio";
622
+ var contributionRefId = (ref, ownerExtensionId) => {
623
+ const extensionId = ref.extensionId ?? ownerExtensionId;
624
+ if (!extensionId || extensionId === HOST_EXTENSION_ID)
625
+ return ref.id;
626
+ return `${extensionId}.${ref.kind}.${ref.id}`;
627
+ };
628
+ var commandRefId = (ref, ownerExtensionId) => contributionRefId({ ...ref, kind: "command" }, ownerExtensionId);
538
629
  // src/extensions/define-command.ts
539
630
  function defineCommand(definition) {
540
631
  return { ...definition, ref: { kind: "command", id: definition.id } };
@@ -556,7 +647,7 @@ var defineView = defineContribution("view");
556
647
  var defineViewMenu = defineContribution("view-menu");
557
648
  var definePlacement = defineContribution("placement");
558
649
  var defineResourceKind = defineContribution("resource-kind");
559
- var resourceMenuSlotRef2 = (resourceKind, id) => defineSlot(`${resourceKind.id}.${id}`, { kind: "menu" });
650
+ var resourceMenuSlotRef2 = (resourceKind, id) => defineSlot(resourceKind.extensionId ? `${resourceKind.extensionId}.resource-kind.${resourceKind.id}.${id}` : `${resourceKind.id}.${id}`, { kind: "menu" });
560
651
  var defineNavigationItem = defineContribution("navigation-item");
561
652
  var defineNavigationTree = defineContribution("navigation-tree");
562
653
  var defineMode = defineContribution("mode");
@@ -752,6 +843,21 @@ var serializeWorkbenchPageUrl = (input) => {
752
843
  if (input.location.resource) {
753
844
  query.set("resource", input.resources.toUri(input.resources.normalize(input.location.resource)));
754
845
  }
846
+ const document2 = page.document && input.location.resource?.metadata?.[page.document.metadataKey];
847
+ if (document2 !== undefined) {
848
+ if (typeof document2 !== "string" || !document2)
849
+ throw new Error("Page location has an invalid document");
850
+ query.set("document", document2);
851
+ }
852
+ if (input.location.position) {
853
+ if (!page.document || typeof document2 !== "string" || !document2 || input.location.section || !isFileSourcePosition(input.location.position))
854
+ throw new Error("Page location has an invalid source position");
855
+ for (const key of ["line", "column", "endLine", "endColumn"]) {
856
+ const value = input.location.position[key];
857
+ if (value !== undefined)
858
+ query.set(key, String(value));
859
+ }
860
+ }
755
861
  if (input.location.section)
756
862
  query.set("section", serializeSection(input.location.section));
757
863
  const encoded = query.toString();
@@ -783,15 +889,22 @@ var parseResource = (uri, resources) => {
783
889
  return;
784
890
  }
785
891
  };
786
- var parseWorkbenchPageUrl = (input) => {
787
- let url;
788
- try {
789
- url = new URL(input.url, "http://workbench.local");
790
- } catch {
791
- return;
892
+ var parseSourcePosition = (url, page, document2, section) => {
893
+ const coordinates = Object.fromEntries(["line", "column", "endLine", "endColumn"].filter((key) => url.searchParams.has(key)).map((key) => {
894
+ const raw = url.searchParams.get(key);
895
+ return [key, /^[1-9]\d*$/.test(raw) ? Number(raw) : NaN];
896
+ }));
897
+ let position;
898
+ if (Object.keys(coordinates).length) {
899
+ if (!page.document || document2 === null || section || !isFileSourcePosition(coordinates))
900
+ return false;
901
+ position = coordinates;
792
902
  }
903
+ return position;
904
+ };
905
+ var pageForUrl = (url, projectId, pages) => {
793
906
  const segments = decodedSegments(url.pathname);
794
- if (!segments || segments[0] !== "projects" || segments[1] !== input.projectId)
907
+ if (!segments || segments[0] !== "projects" || segments[1] !== projectId)
795
908
  return;
796
909
  const route = segments.slice(2);
797
910
  const extensionRoute = route[0] === "extensions";
@@ -799,26 +912,50 @@ var parseWorkbenchPageUrl = (input) => {
799
912
  const path = (extensionRoute ? route.slice(2) : route).join("/");
800
913
  if (!extensionId || extensionRoute && !path)
801
914
  return;
802
- const page = pageForRoute(input.pages, extensionId, path);
915
+ const page = pageForRoute(pages, extensionId, path);
916
+ return page;
917
+ };
918
+ var parseWorkbenchPageUrl = (input) => {
919
+ let url;
920
+ try {
921
+ url = new URL(input.url, "http://workbench.local");
922
+ } catch {
923
+ return;
924
+ }
925
+ const page = pageForUrl(url, input.projectId, input.pages);
803
926
  if (!page)
804
927
  return;
928
+ for (const key of ["resource", "document", "section", "line", "column", "endLine", "endColumn"]) {
929
+ if (url.searchParams.getAll(key).length > 1)
930
+ return;
931
+ }
805
932
  const resourceValue = url.searchParams.get("resource");
806
- const resource = resourceValue ? parseResource(resourceValue, input.resources) : undefined;
807
- if (resourceValue && !resource)
933
+ let resource = resourceValue ? parseResource(resourceValue, input.resources) : undefined;
934
+ if (resourceValue !== null && !resource)
808
935
  return;
936
+ const document2 = url.searchParams.get("document");
937
+ if (document2 !== null) {
938
+ if (!document2 || !page.document || !resource)
939
+ return;
940
+ resource = { ...resource, metadata: { [page.document.metadataKey]: document2 } };
941
+ }
809
942
  const sectionValue = url.searchParams.get("section");
810
943
  const section = sectionValue ? parseSection(sectionValue) : undefined;
811
- if (sectionValue && !section)
944
+ if (sectionValue !== null && !section)
945
+ return;
946
+ const position = parseSourcePosition(url, page, document2, section);
947
+ if (position === false)
812
948
  return;
813
949
  return {
814
950
  pageId: page.id,
815
951
  ...resource ? { resource } : {},
816
- ...section ? { section } : {}
952
+ ...section ? { section } : {},
953
+ ...position ? { position } : {}
817
954
  };
818
955
  };
819
956
  var serializePageUrl = (input) => serializeWorkbenchPageUrl({
820
957
  projectId: input.projectId,
821
- location: { page: input.page.ref, resource: input.resource },
958
+ location: { page: input.page.ref, resource: input.resource, position: input.position },
822
959
  pages: [input.page],
823
960
  resources: defaultPageResourceCodec
824
961
  });
@@ -903,7 +1040,12 @@ var createTerminalSessionBridge = (host) => ({
903
1040
  handler(exit);
904
1041
  unsubscribeHostEvents();
905
1042
  });
906
- await call({ operation: "subscribe", sessionId });
1043
+ try {
1044
+ await call({ operation: "subscribe", sessionId });
1045
+ } catch (error) {
1046
+ unsubscribeHostEvents();
1047
+ throw error;
1048
+ }
907
1049
  return {
908
1050
  id: sessionId,
909
1051
  write(data) {
@@ -1004,10 +1146,12 @@ var matchesResourceWhen = (when, resourceType) => {
1004
1146
  var projectPrefix = () => ({ $prefix: "project" });
1005
1147
  export {
1006
1148
  ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES,
1149
+ DEFAULT_DATA_TABLE_SETTINGS,
1007
1150
  EXTENSION_API_VERSION,
1008
1151
  EXTENSION_EVENTS_SCOPE,
1009
1152
  HistoryConflict,
1010
1153
  SDK_VERSION,
1154
+ VIEW_FILTER_CONDITIONS,
1011
1155
  WEBVIEW_DECLARABLE_CAPABILITIES,
1012
1156
  WEBVIEW_HOST_CAPABILITIES,
1013
1157
  WEBVIEW_HOST_CAPABILITY_VERSION,
@@ -1016,6 +1160,8 @@ export {
1016
1160
  artifactsRead,
1017
1161
  commandEvent,
1018
1162
  commandRef,
1163
+ commandRefId,
1164
+ contributionRefId,
1019
1165
  createTerminalSessionBridge,
1020
1166
  createWebviewClient,
1021
1167
  defaultPageResourceCodec,
@@ -1057,6 +1203,7 @@ export {
1057
1203
  gitEvents,
1058
1204
  historyMessageKey,
1059
1205
  historyValueKey,
1206
+ isFileSourcePosition,
1060
1207
  isLocalizedString,
1061
1208
  isNavigationTarget,
1062
1209
  isValidLocalContributionId,
@@ -1067,6 +1214,7 @@ export {
1067
1214
  matchesResourceWhen,
1068
1215
  mergeHistoryMetadata,
1069
1216
  mergeOrderedHistory,
1217
+ normalizeBooleanViewRule,
1070
1218
  packageAsset,
1071
1219
  params,
1072
1220
  parsePageUrl,
@@ -1077,6 +1225,8 @@ export {
1077
1225
  qualifyNavigationTarget,
1078
1226
  qualifyRef,
1079
1227
  reconcileMessageHistory,
1228
+ resolveDataTableComparableValue,
1229
+ resolveDataTableFieldKind,
1080
1230
  resolveEventReferenceId,
1081
1231
  resourceKey,
1082
1232
  resourceMenuSlotRef2 as resourceMenuSlotRef,
@@ -1,3 +1,3 @@
1
- import { $a as PlacementOwner, $c as KanbanRendererAttributeType, $i as ProcessRunInput, $l as WebviewFilesListParams, $n as commandRef, $o as ControlsUpdateValueInput, $r as CommandRef, $s as HarnessRecoveryResult, $t as resolveEventReferenceId, $u as NotificationActorType, Aa as WorkspaceProviderMutationInput, Ac as ExtensionSettingProperty, Ad as ResourceKindRef, Ai as EventContext, Al as ParamType, An as defineTheme, Ao as TreeRendererQueryParams, Ar as workbenchResourceKindDefinitions, As as ResourceBinding, At as artifactMountId, Ba as PageContribution, Bc as ModeRegionSettings, Bd as l10n, Bi as ExtensionNetApi, Bl as WEBVIEW_DECLARABLE_CAPABILITIES, Bn as SDK_VERSION, Bo as DataTableRendererQueryResult, Br as extensionPanelRegions, Bs as AgentCapability, Bt as resourceKey, Ca as ProviderContributions, Cc as CliContribution, Cd as ContributionDefinition, Ci as FileRendererSectionTarget, Cl as MarkdownParam, Cn as defineSettingsPanel, Co as TreeNode, Cr as localContributionIdPattern, Cs as SegmentedOption, Ct as WebviewCommandsClient, Cu as ExtensionConnectionRequest, Da as WorkspaceCapabilities, Dc as CommandPaletteResourceQueryParams, Dd as ModeRef, Di as CommandMiddlewareContext, Dl as ParamObjectSchema, Dn as defineStatuses, Do as TreeRendererChildrenParams, Dr as workbenchPages, Ds as TextControl, Dt as WebviewEventsClient, Du as ExtensionLoggerApi, Ea as UiContributions, Ec as CommandPaletteResourceItem, Ed as ContributionRef, Ei as CommandContext, El as ParamDescriptor, En as defineStatusBarItem, Eo as TreeRendererActionParams, Er as workbenchPageDefinitions, Es as SelectionOption, Et as EXTENSION_EVENTS_SCOPE, Eu as ExtensionConnectionsApi, Fa as WorkspaceTypeProvider, Fc as FileIconThemeContribution, Fd as ThemeRef, Fi as ExtensionBlobsApi, Fl as SelectParam, Fn as defineCommand, Fo as DataTableRendererColumn, Fr as RegionSize, Fs as HarnessParamsSchema, Ft as createTerminalSessionBridge, Ga as PageOpenIntent, Gc as TemplateTypeContribution, Gd as AgentModel, Gi as ExtensionSessionResource, Gl as WebviewArtifactsReadParams, Gn as historyMessageKey, Go as DataTableRendererSelectionAction, Gr as CommandHelpersApi, Gs as HarnessEventSink, Gt as defaultPageResourceCodec, Ha as PageMain, Hc as SettingsSectionContribution, Hd as supportsExtensionApiVersion, Hi as ExtensionPackageFilesApi, Hl as WEBVIEW_HOST_CAPABILITY_VERSION, Hn as HistoryProjection, Ho as DataTableRendererRow, Hr as CommandContinue, Hs as ApprovalResponse, Ht as QualifiedRef, Ia as StatusActionDefinition, Ic as KeybindingChord, Id as ViewRef, Ii as ExtensionContextBase, Il as TemplateParam, In as defineHook, Io as DataTableRendererColumnRenderer, Ir as ResourceHierarchyProvider, Is as HarnessProvider, Ja as PageSlotRef, Jc as WebviewContribution, Ji as ExtensionSkillsApi, Jl as WebviewDeclarableCapability, Jn as reconcileMessageHistory, Jo as ControlsQueryParams, Jr as CommandLifecyclePhase, Js as HarnessMessagesInput, Jt as isWorkbenchProjectUrl, Ju as CreateNotificationInput, Ka as PageSlot, Kc as ThemeContribution, Ki as ExtensionSessionsApi, Kl as WebviewCapabilityDeclaration, Kn as historyValueKey, Ko as DataTableRendererThemeColor, Kr as CommandInvocation, Ks as HarnessExit, Kt as PageUrlDefinition, La as StatusBarItemContribution, Lc as KeybindingContribution, Ld as Localizable, Li as ExtensionEventsApi, Ll as TextParam, Ln as defineMiddleware, Lo as DataTableRendererColumnStat, Lr as ResourceKindDefinition, Ls as HarnessSkillsLayout, Ma as WorkspaceProviderResolveInput, Mc as ExtensionSettingValueForType, Md as SettingsSlotRef, Mi as ExtensionArtifactApi, Ml as ParamValueRef, Mn as defineViewMenu, Mo as TreeRendererState, Mr as workbenchSlots, Ms as HarnessContext, Mt as TerminalSessionAdapter, Na as WorkspaceProviderResult, Nc as ExtensionSettingValueType, Nd as StatusBarSlotRef, Ni as ExtensionBlobInput, Nl as ParamsOf, Nn as defineWorkspaceType, No as TreeSectionEmptyState, Nr as DockedWorkbenchRegion, Ns as HarnessDetectionResult, Nt as TerminalSessionBridge, Oa as WorkspaceExecutionTarget, Oc as CommandPaletteResourceQueryResult, Od as PageRef, Oi as CommandMiddlewareHandler, Ol as ParamOption, On as defineTemplate, Oo as TreeRendererCommandResult, Or as workbenchPanelDefinitions, Os as VectorControl, Ot as WebviewExtensionEvent, Ou as ExtensionAutomationApi, Pa as WorkspaceProviderState, Pc as ExtensionSettingsContribution, Pd as StatusRef, Pi as ExtensionBlobRef, Pl as ResourceParam, Pn as resourceMenuSlotRef, Po as TreeViewSection, Pr as ExtensionPanelRegion, Ps as HarnessParamDescriptor, Pt as TerminalSessionExit, Qa as PlacementIdentity, Qc as KanbanRendererAttributeDisplay, Qi as MigrationContext, Ql as WebviewFilesDeleteParams, Qn as defineSlot, Qo as ControlsResourceRef, Qr as CommandPatchParams, Qs as HarnessRecoveryInput, Qt as serializeWorkbenchPageUrl, Qu as NotificationAction, Ra as StatusContribution, Rc as MenuContribution, Rd as LocalizedString, Ri as ExtensionFilesApi, Rl as WorkspaceParam, Rn as CommandResponse, Ro as DataTableRendererContribution, Rr as ResourceMenuSlotDefinition, Rs as HarnessStateApi, Sa as PackageManifest, Sc as ArtifactMountContribution, Sd as ConnectionRef, Si as FileRendererSectionAnchor, Sl as LongTextParam, Sn as defineSchedule, So as TreeAction, Sr as localContributionIdGrammar, Ss as SegmentedControl, St as WebviewClientOptions, Su as ExtensionConnectionMethod, Ta as ScheduleExpression, Tc as CommandPaletteResourceContribution, Td as ContributionKind, Ti as ArtifactMount, Tl as NumberParam, Tn as defineSkill, To as TreeNodeTarget, Tr as workbenchModes, Ts as SelectionGroup, Tt as createWebviewClient, Tu as ExtensionConnectionStreamEvent, Ua as PageMainPanels, Uc as SkillContribution, Ui as ExtensionProcessApi, Ul as WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES, Un as HistoryRecoveryInput, Uo as DataTableRendererRowAction, Ur as CommandDiagnostic, Us as HarnessApprovalChannel, Ut as qualifyRef, Va as PageLocation, Vc as SettingsPanelContribution, Vd as parseExtensionApiDeclaration, Vi as ExtensionNotifyApi, Vl as WEBVIEW_HOST_CAPABILITIES, Vn as HistoryConflict, Vo as DataTableRendererResourceRef, Vr as CommandCompletedEvent, Vs as ApprovalRequest, Vt as commandEvent, Wa as PageMainView, Wc as TemplateContribution, Wi as ExtensionProjectContext, Wl as WebviewArtifactFile, Wn as HistoryRecoveryResult, Wo as DataTableRendererRowActivationHandler, Wr as CommandFailedEvent, Ws as HarnessAttachment, Wt as params, Xa as PageSlotRole, Xc as CollectionBadgeItem, Xi as ExtensionStorageCollectionApi, Xl as WebviewExtensionSettingSetParams, Xn as submittedPrompt, Xo as ControlsRendererContribution, Xr as CommandNotice, Xs as HarnessParams, Xt as parseWorkbenchPageUrl, Xu as ListNotificationsResponse, Ya as PageSlotRegion, Yc as WhenExpression, Yi as ExtensionStorageApi, Yl as WebviewExtensionSettingKeyParams, Yn as splitHistoryTurns, Yo as ControlsQueryResult, Yr as CommandMiddlewareResult, Ys as HarnessParamValue, Yt as parsePageUrl, Yu as ListNotificationsQuery, Za as PanelRef, Zc as KanbanRendererAttributeDescriptor, Zi as ExtensionTerminalApi, Zl as WebviewFileScope, Zn as mergeOrderedHistory, Zo as ControlsResetInput, Zr as CommandOutcome, Zs as HarnessReattachInput, Zt as serializePageUrl, Zu as Notification, _a as ExtensionLoadScope, _c as TokenUsagePart, _d as JsonObject, _i as FileRendererContribution, _l as BooleanParam, _n as defineNavigationTree, _o as TreeViewBody, _r as viewDataEvents, _s as RangeValue, _u as SlotOptions, aa as WorkspaceSyncFile, ac as TimeoutStrategy, ad as ExtensionResourcesApi, ai as CommandSource, al as KanbanRendererFilterState, an as defineExtensionView, ao as NavigationOwnerRef, ar as ConflictPayload, as as BooleanControl, au as WebviewKeyboardEventParams, ba as LocalExtensionSource, bc as ToolPartStatus, bd as MaybePromise, bi as FileRendererResourceRef, bl as JsonParam, bn as defineResourceHierarchyProvider, bo as ViewMenuContribution, br as worktreeEvents, bs as ResourceOption, bt as WebviewArtifactsClient, bu as EventDeliveryResult, ca as ExtensionWorkspace, cc as LoadingPart, cd as RendererInvocationContext, ci as SerializedError, cl as KanbanRendererResourceRef, cn as defineActivityItem, co as PlacementContribution, cr as SessionLifecyclePayload, cs as ControlParam, ct as AutomationRun, cu as WebviewNotificationDismissParams, da as AssetContributions, dc as SessionMessage, dd as ResourceRemovedEvent, di as NavigationTargetCommand, dl as KanbanRendererRowActivationHandler, dn as defineConnection, do as PlacementPresence, dr as WorktreeRemovedPayload, ds as DateControl, dt as AutomationRunStatus, du as WebviewPreferencesGetParams, ea as ProcessRunResult, ec as HarnessResumeInput, ed as NotificationKind, ei as CommandReject, el as KanbanRendererBoardColumnConfig, en as ExtensionViewModule, eo as ControlsViewBody, er as eventRef, es as ActionOption, eu as WebviewFilesUploadParams, fa as BehaviourContributions, fc as SessionMessagePart, fd as ResourceRole, fi as NavigationTargetCompound, fl as KanbanRendererSavedView, fn as defineFileIconTheme, fo as PlacementPresentation, fr as gitEvents, fs as MarkdownControl, fu as WebviewPreferencesSetParams, ga as ExtensionDefinition, gc as TextPart, gd as TerminalSessionRequest, gi as NavigationTargetPanel, gl as ViewToolbarAction, gn as defineNavigationItem, go as PlacementTabSnapshot, gr as sessionSlots, gs as RangeControl, gu as SlotInvocationContext, ha as ExtensionConnectionContribution, hc as StepStartPart, hd as TerminalSessionHandle, hi as NavigationTargetPage, hl as KanbanRendererViewMode, hn as defineMode, ho as PlacementTabPresentation, hr as sessionEvents, hs as ParamEditorReadOnlyImage, hu as RendererEventReference, ia as WorkspaceFilesMount, ic as QuestionResponse, id as UpdateNotificationInput, ii as CommandRequestedEvent, il as KanbanRendererEnumOption, in as WebviewFilesClient, io as NavigationItemContribution, ir as CommitPayload, is as BaseControl, iu as WebviewHostCapabilityResults, ja as WorkspaceProviderRef, jc as ExtensionSettingScope, jd as SettingsSectionRef, ji as ExtensionActivityApi, jl as ParamValue, jn as defineView, jo as TreeRendererResourceRef, jr as workbenchResourceKinds, js as ResourceConstraint, jt as artifactsRead, ka as WorkspaceProviderCreateInput, kc as CommandPaletteResourceTarget, kd as PlacementRef, ki as CommandRunHandler, kl as ParamOptionSource, kn as defineTemplateType, ko as TreeRendererContribution, kr as workbenchPanels, ks as VectorValue, kt as ArtifactMountKey, la as ExtensionWorkspaceProvider, lc as PatchPart, ld as ResourceAnchor, li as WorkbenchAttachmentInvocationContext, ll as KanbanRendererRow, ln as defineArtifactMount, lo as PlacementItem, lr as WorkspaceProvisionPayload, ls as ControlValue, lu as WebviewNotificationResolveParams, ma as EXTENSION_API_VERSION, mc as StepFinishPart, md as TerminalEvent, mi as NavigationTargetItem, ml as KanbanRendererSortDirection, mn as defineKeybinding, mo as PlacementTabMenuRow, mr as projectSlots, ms as ParamEditorReadOnlyContent, mu as RendererContributionBase, na as SetupContext, nc as HarnessStartInput, nd as NotificationPriority, ni as CommandReplaceInvocation, nl as KanbanRendererContribution, nn as ExtensionViewRenderContext, no as FileViewBody, nr as isNavigationTarget, ns as AnchorGridControl, nu as WebviewHostCapabilityParams, oa as CreateExtensionWorkspaceInput, oc as ErrorPart, od as PackageAssetDescriptor, oi as CommandStartedEvent, ol as KanbanRendererQueryParams, on as GuestHost, oo as NavigationTreeContribution, or as MergePayload, os as ColorControl, ou as WebviewNavigationOpenParams, pa as CommandDefinition, pc as SessionMessageRole, pd as ViewHierarchyParent, pi as NavigationTargetHref, pl as KanbanRendererSettings, pn as defineHarness, po as PlacementTabMenuGroup, pr as projectEvents, ps as NumberControl, pu as WebviewScopedDeclarableCapability, qa as PageSlotCardinality, qc as ThemeMode, qi as ExtensionSettingsApi, ql as WebviewCommandsExecuteParams, qn as mergeHistoryMetadata, qo as ControlsApplyInput, qr as CommandLifecycleEventPayload, qs as HarnessExitStatus, qt as ParsedWorkbenchPageUrl, ra as StorageScope, rc as JsonPatch, rd as NotificationStatus, ri as CommandReplaceParams, rl as KanbanRendererCreateRowContribution, rn as PropsStore, ro as KanbanViewBody, rr as qualifyNavigationTarget, rs as AnchorGridValue, ru as WebviewHostCapabilityResult, sa as CreateWorkspaceCommandParams, sc as FilePart, sd as RendererContext, si as CommandTarget, sl as KanbanRendererQueryResult, sn as defineExtension, so as NavigationTreeSlot, sr as RebasePayload, ss as ControlGroup, su as WebviewNotificationActionParams, ta as RendererCallback, tc as HarnessSession, td as NotificationOrigin, ti as CommandRejectedEvent, tl as KanbanRendererColumnAction, tn as ExtensionViewRender, to as DataTableViewBody, tr as packageAsset, ts as ActionsControl, tu as WebviewHostCapability, ua as ExtensionWorkspacesApi, uc as ReasoningPart, ud as ResourceRef, ui as NavigationTarget, ul as KanbanRendererRowAction, un as defineCommandPaletteResource, uo as PlacementMountStrategy, ur as WorkspaceType, us as ControlValueMap, uu as WebviewNotificationShowParams, va as ExtensionSourceKind, vc as ToolPart, vd as JsonPrimitive, vi as FileRendererLoadParams, vl as FilesParam, vn as definePage, vo as ViewBody, vr as workspaceEvents, vs as ReadOnlyControl, vt as projectPrefix, vu as SlotRef, wa as ScheduleContribution, wc as CommandPaletteContribution, wd as ContributionInput, wi as ArtifactFile, wl as MultiSelectParam, wn as defineSettingsSection, wo as TreeNodeRowVariant, wr as workbenchModeDefinitions, ws as SelectionControl, wt as WebviewSettingsClient, wu as ExtensionConnectionResponse, xa as MiddlewareDefinition, xc as ActivityItemContribution, xd as Struct, xi as FileRendererSaveParams, xl as ListParam, xn as defineResourceKind, xo as WebviewViewBody, xr as isValidLocalContributionId, xs as ResourceRefValue, xt as WebviewClient, xu as EventRef, ya as HookDefinition, yc as ToolPartActionType, yd as JsonValue, yi as FileRendererLoadResult, yl as HarnessParam, yn as definePlacement, yo as ViewContribution, yr as workspaceSlots, ys as ResourceControl, yt as matchesResourceWhen, yu as UiSlotKind, za as WorkflowStatus, zc as ModeContribution, zd as isLocalizedString, zi as ExtensionHarnessInput, zl as ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES, zn as unwrapCommandOutcome, zo as DataTableRendererQueryParams, zr as dockedWorkbenchRegions, zs as RetryableHarnessReattachError } from "./index-Dd4tqVV7.js";
2
- export { ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES, type ActionOption, type ActionsControl, type ActivityItemContribution, type AgentCapability, type AgentModel, type AnchorGridControl, type AnchorGridValue, type ApprovalRequest, type ApprovalResponse, type ArtifactFile, type ArtifactMount, type ArtifactMountContribution, type ArtifactMountKey, type AssetContributions, type AutomationRun, type AutomationRunStatus, type BaseControl, type BehaviourContributions, type BooleanControl, type BooleanParam, type CliContribution, type CollectionBadgeItem, type ColorControl, type CommandCompletedEvent, type CommandContext, type CommandContinue, type CommandDefinition, type CommandDiagnostic, type CommandFailedEvent, type CommandHelpersApi, type CommandInvocation, type CommandLifecycleEventPayload, type CommandLifecyclePhase, type CommandMiddlewareContext, type CommandMiddlewareHandler, type CommandMiddlewareResult, type CommandNotice, type CommandOutcome, type CommandPaletteContribution, type CommandPaletteResourceContribution, type CommandPaletteResourceItem, type CommandPaletteResourceQueryParams, type CommandPaletteResourceQueryResult, type CommandPaletteResourceTarget, type CommandPatchParams, type CommandRef, type CommandReject, type CommandRejectedEvent, type CommandReplaceInvocation, type CommandReplaceParams, type CommandRequestedEvent, type CommandResponse, type CommandRunHandler, type CommandSource, type CommandStartedEvent, type CommandTarget, type CommitPayload, type ConflictPayload, type ConnectionRef, type ContributionDefinition, type ContributionInput, type ContributionKind, type ContributionRef, type ControlGroup, type ControlParam, type ControlValue, type ControlValueMap, type ControlsApplyInput, type ControlsQueryParams, type ControlsQueryResult, type ControlsRendererContribution, type ControlsResetInput, type ControlsResourceRef, type ControlsUpdateValueInput, type ControlsViewBody, type CreateExtensionWorkspaceInput, type CreateNotificationInput, type CreateWorkspaceCommandParams, type DataTableRendererColumn, type DataTableRendererColumnRenderer, type DataTableRendererColumnStat, type DataTableRendererContribution, type DataTableRendererQueryParams, type DataTableRendererQueryResult, type DataTableRendererResourceRef, type DataTableRendererRow, type DataTableRendererRowAction, type DataTableRendererRowActivationHandler, type DataTableRendererSelectionAction, type DataTableRendererThemeColor, type DataTableViewBody, type DateControl, type DockedWorkbenchRegion, EXTENSION_API_VERSION, EXTENSION_EVENTS_SCOPE, type ErrorPart, type EventContext, type EventDeliveryResult, type EventRef, type ExtensionActivityApi, type ExtensionArtifactApi, type ExtensionAutomationApi, type ExtensionBlobInput, type ExtensionBlobRef, type ExtensionBlobsApi, type ExtensionConnectionContribution, type ExtensionConnectionMethod, type ExtensionConnectionRequest, type ExtensionConnectionResponse, type ExtensionConnectionStreamEvent, type ExtensionConnectionsApi, type ExtensionContextBase, type ExtensionDefinition, type ExtensionEventsApi, type ExtensionFilesApi, type ExtensionHarnessInput, type ExtensionLoadScope, type ExtensionLoggerApi, type ExtensionNetApi, type ExtensionNotifyApi, type ExtensionPackageFilesApi, type ExtensionPanelRegion, type ExtensionProcessApi, type ExtensionProjectContext, type ExtensionResourcesApi, type ExtensionSessionResource, type ExtensionSessionsApi, type ExtensionSettingProperty, type ExtensionSettingScope, type ExtensionSettingValueForType, type ExtensionSettingValueType, type ExtensionSettingsApi, type ExtensionSettingsContribution, type ExtensionSkillsApi, type ExtensionSourceKind, type ExtensionStorageApi, type ExtensionStorageCollectionApi, type ExtensionTerminalApi, type ExtensionViewModule, type ExtensionViewRender, type ExtensionViewRenderContext, type ExtensionWorkspace, type ExtensionWorkspaceProvider, type ExtensionWorkspacesApi, type FileIconThemeContribution, type FilePart, type FileRendererContribution, type FileRendererLoadParams, type FileRendererLoadResult, type FileRendererResourceRef, type FileRendererSaveParams, type FileRendererSectionAnchor, type FileRendererSectionTarget, type FileViewBody, type FilesParam, type GuestHost, type HarnessApprovalChannel, type HarnessAttachment, type HarnessContext, type HarnessDetectionResult, type HarnessEventSink, type HarnessExit, type HarnessExitStatus, type HarnessMessagesInput, type HarnessParam, type HarnessParamDescriptor, type HarnessParamValue, type HarnessParams, type HarnessParamsSchema, type HarnessProvider, type HarnessReattachInput, type HarnessRecoveryInput, type HarnessRecoveryResult, type HarnessResumeInput, type HarnessSession, type HarnessSkillsLayout, type HarnessStartInput, type HarnessStateApi, HistoryConflict, type HistoryProjection, type HistoryRecoveryInput, type HistoryRecoveryResult, type HookDefinition, type JsonObject, type JsonParam, type JsonPatch, type JsonPrimitive, type JsonValue, type KanbanRendererAttributeDescriptor, type KanbanRendererAttributeDisplay, type KanbanRendererAttributeType, type KanbanRendererBoardColumnConfig, type KanbanRendererColumnAction, type KanbanRendererContribution, type KanbanRendererCreateRowContribution, type KanbanRendererEnumOption, type KanbanRendererFilterState, type KanbanRendererQueryParams, type KanbanRendererQueryResult, type KanbanRendererResourceRef, type KanbanRendererRow, type KanbanRendererRowAction, type KanbanRendererRowActivationHandler, type KanbanRendererSavedView, type KanbanRendererSettings, type KanbanRendererSortDirection, type KanbanRendererViewMode, type KanbanViewBody, type KeybindingChord, type KeybindingContribution, type ListNotificationsQuery, type ListNotificationsResponse, type ListParam, type LoadingPart, type LocalExtensionSource, type Localizable, type LocalizedString, type LongTextParam, type MarkdownControl, type MarkdownParam, type MaybePromise, type MenuContribution, type MergePayload, type MiddlewareDefinition, type MigrationContext, type ModeContribution, type ModeRef, type ModeRegionSettings, type MultiSelectParam, type NavigationItemContribution, type NavigationOwnerRef, type NavigationTarget, type NavigationTargetCommand, type NavigationTargetCompound, type NavigationTargetHref, type NavigationTargetItem, type NavigationTargetPage, type NavigationTargetPanel, type NavigationTreeContribution, type NavigationTreeSlot, type Notification, type NotificationAction, type NotificationActorType, type NotificationKind, type NotificationOrigin, type NotificationPriority, type NotificationStatus, type NumberControl, type NumberParam, type PackageAssetDescriptor, type PackageManifest, type PageContribution, type PageLocation, type PageMain, type PageMainPanels, type PageMainView, type PageOpenIntent, type PageRef, type PageSlot, type PageSlotCardinality, type PageSlotRef, type PageSlotRegion, type PageSlotRole, type PageUrlDefinition, type PanelRef, type ParamDescriptor, type ParamEditorReadOnlyContent, type ParamEditorReadOnlyImage, type ParamObjectSchema, type ParamOption, type ParamOptionSource, type ParamType, type ParamValue, type ParamValueRef, type ParamsOf, type ParsedWorkbenchPageUrl, type PatchPart, type PlacementContribution, type PlacementIdentity, type PlacementItem, type PlacementMountStrategy, type PlacementOwner, type PlacementPresence, type PlacementPresentation, type PlacementRef, type PlacementTabMenuGroup, type PlacementTabMenuRow, type PlacementTabPresentation, type PlacementTabSnapshot, type ProcessRunInput, type ProcessRunResult, type PropsStore, type ProviderContributions, type QualifiedRef, type QuestionResponse, type RangeControl, type RangeValue, type ReadOnlyControl, type ReasoningPart, type RebasePayload, type RegionSize, type RendererCallback, type RendererContext, type RendererContributionBase, type RendererEventReference, type RendererInvocationContext, type ResourceAnchor, type ResourceBinding, type ResourceConstraint, type ResourceControl, type ResourceHierarchyProvider, type ResourceKindDefinition, type ResourceKindRef, type ResourceMenuSlotDefinition, type ResourceOption, type ResourceParam, type ResourceRef, type ResourceRefValue, type ResourceRemovedEvent, type ResourceRole, type RetryableHarnessReattachError, SDK_VERSION, type ScheduleContribution, type ScheduleExpression, type SegmentedControl, type SegmentedOption, type SelectParam, type SelectionControl, type SelectionGroup, type SelectionOption, type SerializedError, type SessionLifecyclePayload, type SessionMessage, type SessionMessagePart, type SessionMessageRole, type SettingsPanelContribution, type SettingsSectionContribution, type SettingsSectionRef, type SettingsSlotRef, type SetupContext, type SkillContribution, type SlotInvocationContext, type SlotOptions, type SlotRef, type StatusActionDefinition, type StatusBarItemContribution, type StatusBarSlotRef, type StatusContribution, type StatusRef, type StepFinishPart, type StepStartPart, type StorageScope, type Struct, type TemplateContribution, type TemplateParam, type TemplateTypeContribution, type TerminalEvent, type TerminalSessionAdapter, type TerminalSessionBridge, type TerminalSessionExit, type TerminalSessionHandle, type TerminalSessionRequest, type TextControl, type TextParam, type TextPart, type ThemeContribution, type ThemeMode, type ThemeRef, type TimeoutStrategy, type TokenUsagePart, type ToolPart, type ToolPartActionType, type ToolPartStatus, type TreeAction, type TreeNode, type TreeNodeRowVariant, type TreeNodeTarget, type TreeRendererActionParams, type TreeRendererChildrenParams, type TreeRendererCommandResult, type TreeRendererContribution, type TreeRendererQueryParams, type TreeRendererResourceRef, type TreeRendererState, type TreeSectionEmptyState, type TreeViewBody, type TreeViewSection, type UiContributions, type UiSlotKind, type UpdateNotificationInput, type VectorControl, type VectorValue, type ViewBody, type ViewContribution, type ViewHierarchyParent, type ViewMenuContribution, type ViewRef, type ViewToolbarAction, WEBVIEW_DECLARABLE_CAPABILITIES, WEBVIEW_HOST_CAPABILITIES, WEBVIEW_HOST_CAPABILITY_VERSION, WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES, type WebviewArtifactFile, type WebviewArtifactsClient, type WebviewArtifactsReadParams, type WebviewCapabilityDeclaration, type WebviewClient, type WebviewClientOptions, type WebviewCommandsClient, type WebviewCommandsExecuteParams, type WebviewContribution, type WebviewDeclarableCapability, type WebviewEventsClient, type WebviewExtensionEvent, type WebviewExtensionSettingKeyParams, type WebviewExtensionSettingSetParams, type WebviewFileScope, type WebviewFilesClient, type WebviewFilesDeleteParams, type WebviewFilesListParams, type WebviewFilesUploadParams, type WebviewHostCapability, type WebviewHostCapabilityParams, type WebviewHostCapabilityResult, type WebviewHostCapabilityResults, type WebviewKeyboardEventParams, type WebviewNavigationOpenParams, type WebviewNotificationActionParams, type WebviewNotificationDismissParams, type WebviewNotificationResolveParams, type WebviewNotificationShowParams, type WebviewPreferencesGetParams, type WebviewPreferencesSetParams, type WebviewScopedDeclarableCapability, type WebviewSettingsClient, type WebviewViewBody, type WhenExpression, type WorkbenchAttachmentInvocationContext, type WorkflowStatus, type WorkspaceCapabilities, type WorkspaceExecutionTarget, type WorkspaceFilesMount, type WorkspaceParam, type WorkspaceProviderCreateInput, type WorkspaceProviderMutationInput, type WorkspaceProviderRef, type WorkspaceProviderResolveInput, type WorkspaceProviderResult, type WorkspaceProviderState, type WorkspaceProvisionPayload, type WorkspaceSyncFile, type WorkspaceType, type WorkspaceTypeProvider, type WorktreeRemovedPayload, artifactMountId, artifactsRead, commandEvent, commandRef, createTerminalSessionBridge, createWebviewClient, defaultPageResourceCodec, defineActivityItem, defineArtifactMount, defineCommand, defineCommandPaletteResource, defineConnection, defineExtension, defineExtensionView, defineFileIconTheme, defineHarness, defineHook, defineKeybinding, defineMiddleware, defineMode, defineNavigationItem, defineNavigationTree, definePage, definePlacement, defineResourceHierarchyProvider, defineResourceKind, defineSchedule, defineSettingsPanel, defineSettingsSection, defineSkill, defineSlot, defineStatusBarItem, defineStatuses, defineTemplate, defineTemplateType, defineTheme, defineView, defineViewMenu, defineWorkspaceType, dockedWorkbenchRegions, eventRef, extensionPanelRegions, gitEvents, historyMessageKey, historyValueKey, isLocalizedString, isNavigationTarget, isValidLocalContributionId, isWorkbenchProjectUrl, l10n, localContributionIdGrammar, localContributionIdPattern, matchesResourceWhen, mergeHistoryMetadata, mergeOrderedHistory, packageAsset, params, type parseExtensionApiDeclaration, parsePageUrl, parseWorkbenchPageUrl, projectEvents, projectPrefix, projectSlots, qualifyNavigationTarget, qualifyRef, reconcileMessageHistory, resolveEventReferenceId, resourceKey, resourceMenuSlotRef, serializePageUrl, serializeWorkbenchPageUrl, sessionEvents, sessionSlots, splitHistoryTurns, submittedPrompt, type supportsExtensionApiVersion, unwrapCommandOutcome, viewDataEvents, workbenchModeDefinitions, workbenchModes, workbenchPageDefinitions, workbenchPages, workbenchPanelDefinitions, workbenchPanels, workbenchResourceKindDefinitions, workbenchResourceKinds, workbenchSlots, workspaceEvents, workspaceSlots, worktreeEvents };
1
+ import { $a as PageSlotRegion, $c as ExtensionSettingsContribution, $d as MaybePromise, $i as ExtensionTerminalApi, $l as WebviewHostCapability, $n as commandRef, $o as DataTableRendererThemeColor, $r as CommandOutcome, $s as PreparedHarnessOperation, $t as ExtensionViewRenderContext, Aa as WorkspaceExecutionTarget, Ac as SessionMessage, Ad as ResourceAnchor, Ai as CommandMiddlewareHandler, Al as KanbanRendererRowActivationHandler, An as defineWorkspaceType, Ao as TreeRendererActionParams, Ar as workbenchPanelDefinitions, As as SegmentedOption, At as WebviewExtensionEvent, Au as ParamsOf, Ba as StatusContribution, Bc as ActivityItemContribution, Bi as ExtensionFilesApi, Bl as WEBVIEW_HOST_CAPABILITY_VERSION, Bn as HistoryConflict, Bo as DataTableRendererColumn, Br as ResourceMenuSlotDefinition, Bs as HarnessDetectionResult, Bt as qualifyRef, Bu as EventDeliveryResult, Ca as MiddlewareDefinition, Cc as QuestionResponse, Cd as NotificationPriority, Cf as ViewFilterCondition, Ci as FileRendererSaveParams, Cl as KanbanRendererEnumOption, Cn as defineStatusBarItem, Co as ViewContribution, Cr as isValidLocalContributionId, Cs as RangeControl, Ct as WebviewClient, Cu as ParamDescriptor, Da as ScheduleExpression, Dc as LoadingPart, Dd as PackageAssetDescriptor, Df as ViewSortDirection, Di as ArtifactMount, Dl as KanbanRendererResourceRef, Dn as defineTheme, Do as TreeNode, Dr as workbenchModes, Ds as ResourceOption, Dt as createWebviewClient, Du as ParamType, Ea as ScheduleContribution, Ec as FilePart, Ed as ExtensionResourcesApi, Ef as ViewSort, Ei as ArtifactFile, El as KanbanRendererQueryResult, En as defineTemplateType, Eo as TreeAction, Er as workbenchModeDefinitions, Es as ResourceControl, Et as WebviewSettingsClient, Eu as ParamOptionSource, Fa as WorkspaceProviderResult, Fc as TextPart, Fd as ResourceAnchorValidationResult, Fi as ExtensionBlobInput, Fl as KanbanRendererViewSettings, Fn as commandRefId, Fo as TreeRendererResourceRef, Fr as DockedWorkbenchRegion, Fs as VectorControl, Ft as TerminalSessionBridge, Fu as WorkspaceParam, Ga as PageLocation, Gc as CommandPaletteResourceItem, Gd as TerminalSessionExit, Gi as ExtensionProcessApi, Gl as WebviewCommandsExecuteParams, Gn as historyValueKey, Go as DataTableRendererQueryResult, Gr as CommandDiagnostic, Gs as HarnessStateApi, Gt as isWorkbenchProjectUrl, Gu as ExtensionConnectionStreamEvent, Ha as FileSourcePosition, Hc as CliContribution, Hi as ExtensionNetApi, Hl as WebviewArtifactFile, Hn as HistoryRecoveryInput, Ho as DataTableRendererColumnStat, Hr as extensionPanelRegions, Hs as HarnessParamsSchema, Ht as defaultPageResourceCodec, Hu as ExtensionConnectionMethod, Ia as WorkspaceProviderState, Ic as TokenUsagePart, Id as ResourceRef, Ii as ExtensionBlobRef, Il as ViewToolbarAction, In as contributionRefId, Io as TreeRendererState, Ir as ExtensionPanelRegion, Is as VectorValue, It as createTerminalSessionBridge, Iu as SlotInvocationContext, Ja as PageMainView, Jc as CommandPaletteResourceTarget, Jd as TerminalSessionRequest, Ji as ExtensionSessionsApi, Jl as WebviewExtensionSettingSetParams, Jn as splitHistoryTurns, Jo as DataTableRendererRowAction, Jr as CommandInvocation, Js as HarnessCommandContext, Jt as serializePageUrl, Ju as ExtensionAutomationApi, Ka as PageMain, Kc as CommandPaletteResourceQueryParams, Kd as TerminalSessionHandle, Ki as ExtensionProjectContext, Kl as WebviewDeclarableCapability, Kn as mergeHistoryMetadata, Ko as DataTableRendererResourceRef, Kr as CommandFailedEvent, Ks as RetryableHarnessReattachError, Kt as parsePageUrl, Ku as ExtensionConnectionsApi, La as WorkspaceTypeProvider, Lc as ToolPart, Ld as ResourceRemovedEvent, Li as ExtensionBlobsApi, Ll as ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES, Ln as CommandResponse, Lo as TreeSectionEmptyState, Lr as RegionSize, Ls as ResourceBinding, Lt as resourceKey, Lu as SlotOptions, Ma as WorkspaceProviderMutationInput, Mc as SessionMessageRole, Md as ResourceAnchorPage, Mf as AgentModel, Mi as EventContext, Ml as KanbanRendererSettings, Mn as defineCommand, Mo as TreeRendererCommandResult, Mr as workbenchResourceKindDefinitions, Ms as SelectionGroup, Mt as artifactMountId, Mu as SelectParam, Na as WorkspaceProviderRef, Nc as StepFinishPart, Nd as ResourceAnchorQuery, Ni as ExtensionActivityApi, Nl as KanbanRendererSortDirection, Nn as defineHook, No as TreeRendererContribution, Nr as workbenchResourceKinds, Ns as SelectionOption, Nt as artifactsRead, Nu as TemplateParam, Oa as UiContributions, Oc as PatchPart, Od as RendererContext, Of as parseExtensionApiDeclaration, Oi as CommandContext, Ol as KanbanRendererRow, On as defineView, Oo as TreeNodeRowVariant, Or as workbenchPageDefinitions, Os as ResourceRefValue, Ot as EXTENSION_EVENTS_SCOPE, Ou as ParamValue, Pa as WorkspaceProviderResolveInput, Pc as StepStartPart, Pd as ResourceAnchorValidationInput, Pi as ExtensionArtifactApi, Pl as KanbanRendererViewMode, Pn as defineMiddleware, Po as TreeRendererQueryParams, Pr as workbenchSlots, Ps as TextControl, Pt as TerminalSessionAdapter, Pu as TextParam, Qa as PageSlotRef, Qc as ExtensionSettingValueType, Qd as JsonValue, Qi as ExtensionStorageCollectionApi, Ql as WebviewFilesUploadParams, Qn as defineSlot, Qo as DataTableRendererSettings, Qr as CommandNotice, Qs as HarnessOperationResult, Qt as ExtensionViewRender, Ra as StatusActionDefinition, Rc as ToolPartActionType, Rd as ResourceRole, Ri as ExtensionContextBase, Rl as WEBVIEW_DECLARABLE_CAPABILITIES, Rn as unwrapCommandOutcome, Ro as TreeViewSection, Rr as ResourceHierarchyProvider, Rs as ResourceConstraint, Rt as commandEvent, Ru as SlotRef, Sa as LocalExtensionSource, Sc as JsonPatch, Sd as NotificationOrigin, Sf as ViewFieldKind, Si as FileRendererResourceRef, Sl as KanbanRendererCreateRowContribution, Sn as defineSkill, So as ViewBody, Sr as resolveDataTableFieldKind, Ss as ParamEditorReadOnlyImage, St as WebviewArtifactsClient, Su as NumberParam, Ta as ProviderContributions, Tc as ErrorPart, Td as UpdateNotificationInput, Tf as ViewFilterRule, Ti as FileRendererSectionTarget, Tl as KanbanRendererQueryParams, Tn as defineTemplate, To as WebviewViewBody, Tr as localContributionIdPattern, Ts as ReadOnlyControl, Tt as WebviewCommandsClient, Tu as ParamOption, Ua as PageContribution, Uc as CommandPaletteContribution, Ui as ExtensionNotifyApi, Ul as WebviewArtifactsReadParams, Un as HistoryRecoveryResult, Uo as DataTableRendererContribution, Ur as CommandCompletedEvent, Us as HarnessProvider, Ut as PageUrlDefinition, Uu as ExtensionConnectionRequest, Va as WorkflowStatus, Vc as ArtifactMountContribution, Vd as TerminalEvent, Vi as ExtensionHarnessInput, Vl as WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES, Vn as HistoryProjection, Vo as DataTableRendererColumnRenderer, Vr as dockedWorkbenchRegions, Vs as HarnessParamDescriptor, Vt as params, Vu as EventRef, Wa as PageDocumentDeclaration, Wc as CommandPaletteResourceContribution, Wi as ExtensionPackageFilesApi, Wl as WebviewCapabilityDeclaration, Wn as historyMessageKey, Wo as DataTableRendererQueryParams, Wr as CommandContinue, Ws as HarnessSkillsLayout, Wt as ParsedWorkbenchPageUrl, Wu as ExtensionConnectionResponse, Xa as PageSlot, Xc as ExtensionSettingScope, Xd as JsonObject, Xi as ExtensionSkillsApi, Xl as WebviewFilesDeleteParams, Xn as mergeOrderedHistory, Xo as DataTableRendererSavedView, Xr as CommandLifecyclePhase, Xs as HarnessCommandState, Xt as resolveEventReferenceId, Ya as PageOpenIntent, Yc as ExtensionSettingProperty, Yi as ExtensionSettingsApi, Yl as WebviewFileScope, Yn as submittedPrompt, Yo as DataTableRendererRowActivationHandler, Yr as CommandLifecycleEventPayload, Ys as HarnessCommandDiscoveryContext, Yt as serializeWorkbenchPageUrl, Za as PageSlotCardinality, Zc as ExtensionSettingValueForType, Zd as JsonPrimitive, Zi as ExtensionStorageApi, Zl as WebviewFilesListParams, Zn as isFileSourcePosition, Zo as DataTableRendererSelectionAction, Zr as CommandMiddlewareResult, Zs as HarnessOperation, Zt as ExtensionViewModule, _a as ExtensionConnectionContribution, _c as HarnessRecoveryInput, _d as ListNotificationsResponse, _f as LocalizedString, _i as NavigationTargetPage, _l as KanbanRendererAttributeDisplay, _n as defineResourceHierarchyProvider, _o as PlacementTabMenuGroup, _r as viewDataEvents, _s as ControlValueMap, _u as JsonParam, aa as StorageScope, ac as HarnessEventSink, af as ContributionRef, ai as CommandReplaceParams, al as ModeRegionSettings, an as defineActivityItem, ao as DataTableViewBody, ar as ConflictPayload, as as ControlsResourceRef, au as WebviewNotificationActionParams, ba as ExtensionSourceKind, bc as HarnessSession, bd as NotificationActorType, bf as normalizeBooleanViewRule, bi as FileRendererLoadParams, bl as KanbanRendererColumnAction, bn as defineSettingsPanel, bo as PlacementTabSnapshot, br as worktreeEvents, bs as NumberControl, bt as projectPrefix, bu as MarkdownParam, ca as CreateExtensionWorkspaceInput, cc as HarnessMessagesInput, cf as PlacementRef, ci as CommandStartedEvent, cl as SkillContribution, cn as defineConnection, co as NavigationItemContribution, cr as SessionLifecyclePayload, cs as ActionsControl, cu as WebviewNotificationShowParams, da as ExtensionWorkspaceProvider, dc as HarnessQuestion, df as SettingsSlotRef, di as WorkbenchAttachmentInvocationContext, dl as ThemeContribution, dn as defineKeybinding, do as NavigationTreeSlot, dr as WorktreeRemovedPayload, ds as BaseControl, du as WebviewScopedDeclarableCapability, ea as MigrationContext, ec as AgentCapability, ef as Struct, ei as CommandPatchParams, el as FileIconThemeContribution, en as PropsStore, eo as PageSlotRole, er as eventRef, es as ControlsApplyInput, eu as WebviewHostCapabilityParams, fa as ExtensionWorkspacesApi, fc as HarnessQuestionChannel, ff as StatusBarSlotRef, fi as NavigationTarget, fl as ThemeMode, fn as defineMode, fo as PlacementContribution, fr as gitEvents, fs as BooleanControl, fu as RendererContributionBase, ga as EXTENSION_API_VERSION, gc as HarnessReattachInput, gd as ListNotificationsQuery, gf as Localizable, gi as NavigationTargetItem, gl as KanbanRendererAttributeDescriptor, gn as definePlacement, go as PlacementPresentation, gr as sessionSlots, gs as ControlValue, gu as HarnessParam, ha as CommandDefinition, hc as HarnessQuestionRequest, hd as CreateNotificationInput, hf as ViewRef, hi as NavigationTargetHref, hl as CollectionBadgeItem, hn as definePage, ho as PlacementPresence, hr as sessionEvents, hs as ControlParam, hu as FilesParam, ia as SetupContext, ic as HarnessAttachment, if as ContributionKind, ii as CommandReplaceInvocation, il as ModeContribution, in as defineExtension, io as ControlsViewBody, ir as CommitPayload, is as ControlsResetInput, iu as WebviewNavigationOpenParams, ja as WorkspaceProviderCreateInput, jc as SessionMessagePart, jd as ResourceAnchorChangeEvent, ji as CommandRunHandler, jl as KanbanRendererSavedView, jn as resourceMenuSlotRef, jo as TreeRendererChildrenParams, jr as workbenchPanels, js as SelectionControl, jt as ArtifactMountKey, ju as ResourceParam, ka as WorkspaceCapabilities, kc as ReasoningPart, kd as RendererInvocationContext, kf as supportsExtensionApiVersion, ki as CommandMiddlewareContext, kl as KanbanRendererRowAction, kn as defineViewMenu, ko as TreeNodeTarget, kr as workbenchPages, ks as SegmentedControl, kt as WebviewEventsClient, ku as ParamValueRef, la as CreateWorkspaceCommandParams, lc as HarnessParamValue, lf as ResourceKindRef, li as CommandTarget, ll as TemplateContribution, ln as defineFileIconTheme, lo as NavigationOwnerRef, lr as WorkspaceProvisionPayload, ls as AnchorGridControl, lu as WebviewPreferencesGetParams, ma as BehaviourContributions, mc as HarnessQuestionReplyError, mf as ThemeRef, mi as NavigationTargetCompound, ml as WhenExpression, mn as defineNavigationTree, mo as PlacementMountStrategy, mr as projectSlots, ms as ControlGroup, mu as BooleanParam, na as ProcessRunResult, nc as ApprovalResponse, nf as ContributionDefinition, ni as CommandReject, nl as KeybindingContribution, nn as defineExtensionView, no as PlacementIdentity, nr as isNavigationTarget, ns as ControlsQueryResult, nu as WebviewHostCapabilityResults, oa as WorkspaceFilesMount, oc as HarnessExit, of as ModeRef, oi as CommandRequestedEvent, ol as SettingsPanelContribution, on as defineArtifactMount, oo as FileViewBody, or as MergePayload, os as ControlsUpdateValueInput, ou as WebviewNotificationDismissParams, pa as AssetContributions, pc as HarnessQuestionOption, pf as StatusRef, pi as NavigationTargetCommand, pl as WebviewContribution, pn as defineNavigationItem, po as PlacementItem, pr as projectEvents, ps as ColorControl, pt as AutomationRunStatus, pu as RendererEventReference, qa as PageMainPanels, qc as CommandPaletteResourceQueryResult, qi as ExtensionSessionResource, ql as WebviewExtensionSettingKeyParams, qn as reconcileMessageHistory, qo as DataTableRendererRow, qr as CommandHelpersApi, qt as parseWorkbenchPageUrl, qu as ExtensionLoggerApi, ra as RendererCallback, rc as HarnessApprovalChannel, rf as ContributionInput, ri as CommandRejectedEvent, rl as MenuContribution, rn as GuestHost, ro as PlacementOwner, rr as qualifyNavigationTarget, rs as ControlsRendererContribution, ru as WebviewKeyboardEventParams, sa as WorkspaceSyncFile, sc as HarnessExitStatus, sf as PageRef, si as CommandSource, sl as SettingsSectionContribution, sn as defineCommandPaletteResource, so as KanbanViewBody, sr as RebasePayload, ss as ActionOption, su as WebviewNotificationResolveParams, ta as ProcessRunInput, tc as ApprovalRequest, tf as ConnectionRef, ti as CommandRef, tl as KeybindingChord, tn as WebviewFilesClient, to as PanelRef, tr as packageAsset, ts as ControlsQueryParams, tu as WebviewHostCapabilityResult, ua as ExtensionWorkspace, uc as HarnessParams, uf as SettingsSectionRef, ui as SerializedError, ul as TemplateTypeContribution, un as defineHarness, uo as NavigationTreeContribution, ur as WorkspaceType, us as AnchorGridValue, ut as AutomationRun, uu as WebviewPreferencesSetParams, va as ExtensionDefinition, vc as HarnessRecoveryResult, vd as Notification, vf as isLocalizedString, vi as NavigationTargetPanel, vl as KanbanRendererAttributeType, vn as defineResourceKind, vo as PlacementTabMenuRow, vr as workspaceEvents, vs as DateControl, vu as ListParam, wa as PackageManifest, wc as TimeoutStrategy, wd as NotificationStatus, wf as ViewFilterGroup, wi as FileRendererSectionAnchor, wl as KanbanRendererFilterState, wn as defineStatuses, wo as ViewMenuContribution, wr as localContributionIdGrammar, ws as RangeValue, wt as WebviewClientOptions, wu as ParamObjectSchema, xa as HookDefinition, xc as HarnessStartInput, xd as NotificationKind, xf as VIEW_FILTER_CONDITIONS, xi as FileRendererLoadResult, xl as KanbanRendererContribution, xn as defineSettingsSection, xo as TreeViewBody, xr as resolveDataTableComparableValue, xs as ParamEditorReadOnlyContent, xt as matchesResourceWhen, xu as MultiSelectParam, ya as ExtensionLoadScope, yc as HarnessResumeInput, yd as NotificationAction, yf as l10n, yi as FileRendererContribution, yl as KanbanRendererBoardColumnConfig, yn as defineSchedule, yo as PlacementTabPresentation, yr as workspaceSlots, ys as MarkdownControl, yu as LongTextParam, za as StatusBarItemContribution, zc as ToolPartStatus, zd as ViewHierarchyParent, zi as ExtensionEventsApi, zl as WEBVIEW_HOST_CAPABILITIES, zn as SDK_VERSION, zo as DEFAULT_DATA_TABLE_SETTINGS, zr as ResourceKindDefinition, zs as HarnessContext, zt as QualifiedRef, zu as UiSlotKind } from "./index-BvsVU-eX.js";
2
+ export { ALWAYS_AVAILABLE_WEBVIEW_CAPABILITIES, type ActionOption, type ActionsControl, type ActivityItemContribution, type AgentCapability, type AgentModel, type AnchorGridControl, type AnchorGridValue, type ApprovalRequest, type ApprovalResponse, type ArtifactFile, type ArtifactMount, type ArtifactMountContribution, type ArtifactMountKey, type AssetContributions, type AutomationRun, type AutomationRunStatus, type BaseControl, type BehaviourContributions, type BooleanControl, type BooleanParam, type CliContribution, type CollectionBadgeItem, type ColorControl, type CommandCompletedEvent, type CommandContext, type CommandContinue, type CommandDefinition, type CommandDiagnostic, type CommandFailedEvent, type CommandHelpersApi, type CommandInvocation, type CommandLifecycleEventPayload, type CommandLifecyclePhase, type CommandMiddlewareContext, type CommandMiddlewareHandler, type CommandMiddlewareResult, type CommandNotice, type CommandOutcome, type CommandPaletteContribution, type CommandPaletteResourceContribution, type CommandPaletteResourceItem, type CommandPaletteResourceQueryParams, type CommandPaletteResourceQueryResult, type CommandPaletteResourceTarget, type CommandPatchParams, type CommandRef, type CommandReject, type CommandRejectedEvent, type CommandReplaceInvocation, type CommandReplaceParams, type CommandRequestedEvent, type CommandResponse, type CommandRunHandler, type CommandSource, type CommandStartedEvent, type CommandTarget, type CommitPayload, type ConflictPayload, type ConnectionRef, type ContributionDefinition, type ContributionInput, type ContributionKind, type ContributionRef, type ControlGroup, type ControlParam, type ControlValue, type ControlValueMap, type ControlsApplyInput, type ControlsQueryParams, type ControlsQueryResult, type ControlsRendererContribution, type ControlsResetInput, type ControlsResourceRef, type ControlsUpdateValueInput, type ControlsViewBody, type CreateExtensionWorkspaceInput, type CreateNotificationInput, type CreateWorkspaceCommandParams, DEFAULT_DATA_TABLE_SETTINGS, type DataTableRendererColumn, type DataTableRendererColumnRenderer, type DataTableRendererColumnStat, type DataTableRendererContribution, type DataTableRendererQueryParams, type DataTableRendererQueryResult, type DataTableRendererResourceRef, type DataTableRendererRow, type DataTableRendererRowAction, type DataTableRendererRowActivationHandler, type DataTableRendererSavedView, type DataTableRendererSelectionAction, type DataTableRendererSettings, type DataTableRendererThemeColor, type DataTableViewBody, type DateControl, type DockedWorkbenchRegion, EXTENSION_API_VERSION, EXTENSION_EVENTS_SCOPE, type ErrorPart, type EventContext, type EventDeliveryResult, type EventRef, type ExtensionActivityApi, type ExtensionArtifactApi, type ExtensionAutomationApi, type ExtensionBlobInput, type ExtensionBlobRef, type ExtensionBlobsApi, type ExtensionConnectionContribution, type ExtensionConnectionMethod, type ExtensionConnectionRequest, type ExtensionConnectionResponse, type ExtensionConnectionStreamEvent, type ExtensionConnectionsApi, type ExtensionContextBase, type ExtensionDefinition, type ExtensionEventsApi, type ExtensionFilesApi, type ExtensionHarnessInput, type ExtensionLoadScope, type ExtensionLoggerApi, type ExtensionNetApi, type ExtensionNotifyApi, type ExtensionPackageFilesApi, type ExtensionPanelRegion, type ExtensionProcessApi, type ExtensionProjectContext, type ExtensionResourcesApi, type ExtensionSessionResource, type ExtensionSessionsApi, type ExtensionSettingProperty, type ExtensionSettingScope, type ExtensionSettingValueForType, type ExtensionSettingValueType, type ExtensionSettingsApi, type ExtensionSettingsContribution, type ExtensionSkillsApi, type ExtensionSourceKind, type ExtensionStorageApi, type ExtensionStorageCollectionApi, type ExtensionTerminalApi, type ExtensionViewModule, type ExtensionViewRender, type ExtensionViewRenderContext, type ExtensionWorkspace, type ExtensionWorkspaceProvider, type ExtensionWorkspacesApi, type FileIconThemeContribution, type FilePart, type FileRendererContribution, type FileRendererLoadParams, type FileRendererLoadResult, type FileRendererResourceRef, type FileRendererSaveParams, type FileRendererSectionAnchor, type FileRendererSectionTarget, type FileSourcePosition, type FileViewBody, type FilesParam, type GuestHost, type HarnessApprovalChannel, type HarnessAttachment, type HarnessCommandContext, type HarnessCommandDiscoveryContext, type HarnessCommandState, type HarnessContext, type HarnessDetectionResult, type HarnessEventSink, type HarnessExit, type HarnessExitStatus, type HarnessMessagesInput, type HarnessOperation, type HarnessOperationResult, type HarnessParam, type HarnessParamDescriptor, type HarnessParamValue, type HarnessParams, type HarnessParamsSchema, type HarnessProvider, type HarnessQuestion, type HarnessQuestionChannel, type HarnessQuestionOption, type HarnessQuestionReplyError, type HarnessQuestionRequest, type HarnessReattachInput, type HarnessRecoveryInput, type HarnessRecoveryResult, type HarnessResumeInput, type HarnessSession, type HarnessSkillsLayout, type HarnessStartInput, type HarnessStateApi, HistoryConflict, type HistoryProjection, type HistoryRecoveryInput, type HistoryRecoveryResult, type HookDefinition, type JsonObject, type JsonParam, type JsonPatch, type JsonPrimitive, type JsonValue, type KanbanRendererAttributeDescriptor, type KanbanRendererAttributeDisplay, type KanbanRendererAttributeType, type KanbanRendererBoardColumnConfig, type KanbanRendererColumnAction, type KanbanRendererContribution, type KanbanRendererCreateRowContribution, type KanbanRendererEnumOption, type KanbanRendererFilterState, type KanbanRendererQueryParams, type KanbanRendererQueryResult, type KanbanRendererResourceRef, type KanbanRendererRow, type KanbanRendererRowAction, type KanbanRendererRowActivationHandler, type KanbanRendererSavedView, type KanbanRendererSettings, type KanbanRendererSortDirection, type KanbanRendererViewMode, type KanbanRendererViewSettings, type KanbanViewBody, type KeybindingChord, type KeybindingContribution, type ListNotificationsQuery, type ListNotificationsResponse, type ListParam, type LoadingPart, type LocalExtensionSource, type Localizable, type LocalizedString, type LongTextParam, type MarkdownControl, type MarkdownParam, type MaybePromise, type MenuContribution, type MergePayload, type MiddlewareDefinition, type MigrationContext, type ModeContribution, type ModeRef, type ModeRegionSettings, type MultiSelectParam, type NavigationItemContribution, type NavigationOwnerRef, type NavigationTarget, type NavigationTargetCommand, type NavigationTargetCompound, type NavigationTargetHref, type NavigationTargetItem, type NavigationTargetPage, type NavigationTargetPanel, type NavigationTreeContribution, type NavigationTreeSlot, type Notification, type NotificationAction, type NotificationActorType, type NotificationKind, type NotificationOrigin, type NotificationPriority, type NotificationStatus, type NumberControl, type NumberParam, type PackageAssetDescriptor, type PackageManifest, type PageContribution, type PageDocumentDeclaration, type PageLocation, type PageMain, type PageMainPanels, type PageMainView, type PageOpenIntent, type PageRef, type PageSlot, type PageSlotCardinality, type PageSlotRef, type PageSlotRegion, type PageSlotRole, type PageUrlDefinition, type PanelRef, type ParamDescriptor, type ParamEditorReadOnlyContent, type ParamEditorReadOnlyImage, type ParamObjectSchema, type ParamOption, type ParamOptionSource, type ParamType, type ParamValue, type ParamValueRef, type ParamsOf, type ParsedWorkbenchPageUrl, type PatchPart, type PlacementContribution, type PlacementIdentity, type PlacementItem, type PlacementMountStrategy, type PlacementOwner, type PlacementPresence, type PlacementPresentation, type PlacementRef, type PlacementTabMenuGroup, type PlacementTabMenuRow, type PlacementTabPresentation, type PlacementTabSnapshot, type PreparedHarnessOperation, type ProcessRunInput, type ProcessRunResult, type PropsStore, type ProviderContributions, type QualifiedRef, type QuestionResponse, type RangeControl, type RangeValue, type ReadOnlyControl, type ReasoningPart, type RebasePayload, type RegionSize, type RendererCallback, type RendererContext, type RendererContributionBase, type RendererEventReference, type RendererInvocationContext, type ResourceAnchor, type ResourceAnchorChangeEvent, type ResourceAnchorPage, type ResourceAnchorQuery, type ResourceAnchorValidationInput, type ResourceAnchorValidationResult, type ResourceBinding, type ResourceConstraint, type ResourceControl, type ResourceHierarchyProvider, type ResourceKindDefinition, type ResourceKindRef, type ResourceMenuSlotDefinition, type ResourceOption, type ResourceParam, type ResourceRef, type ResourceRefValue, type ResourceRemovedEvent, type ResourceRole, type RetryableHarnessReattachError, SDK_VERSION, type ScheduleContribution, type ScheduleExpression, type SegmentedControl, type SegmentedOption, type SelectParam, type SelectionControl, type SelectionGroup, type SelectionOption, type SerializedError, type SessionLifecyclePayload, type SessionMessage, type SessionMessagePart, type SessionMessageRole, type SettingsPanelContribution, type SettingsSectionContribution, type SettingsSectionRef, type SettingsSlotRef, type SetupContext, type SkillContribution, type SlotInvocationContext, type SlotOptions, type SlotRef, type StatusActionDefinition, type StatusBarItemContribution, type StatusBarSlotRef, type StatusContribution, type StatusRef, type StepFinishPart, type StepStartPart, type StorageScope, type Struct, type TemplateContribution, type TemplateParam, type TemplateTypeContribution, type TerminalEvent, type TerminalSessionAdapter, type TerminalSessionBridge, type TerminalSessionExit, type TerminalSessionHandle, type TerminalSessionRequest, type TextControl, type TextParam, type TextPart, type ThemeContribution, type ThemeMode, type ThemeRef, type TimeoutStrategy, type TokenUsagePart, type ToolPart, type ToolPartActionType, type ToolPartStatus, type TreeAction, type TreeNode, type TreeNodeRowVariant, type TreeNodeTarget, type TreeRendererActionParams, type TreeRendererChildrenParams, type TreeRendererCommandResult, type TreeRendererContribution, type TreeRendererQueryParams, type TreeRendererResourceRef, type TreeRendererState, type TreeSectionEmptyState, type TreeViewBody, type TreeViewSection, type UiContributions, type UiSlotKind, type UpdateNotificationInput, VIEW_FILTER_CONDITIONS, type VectorControl, type VectorValue, type ViewBody, type ViewContribution, type ViewFieldKind, type ViewFilterCondition, type ViewFilterGroup, type ViewFilterRule, type ViewHierarchyParent, type ViewMenuContribution, type ViewRef, type ViewSort, type ViewSortDirection, type ViewToolbarAction, WEBVIEW_DECLARABLE_CAPABILITIES, WEBVIEW_HOST_CAPABILITIES, WEBVIEW_HOST_CAPABILITY_VERSION, WEBVIEW_SCOPED_DECLARABLE_CAPABILITIES, type WebviewArtifactFile, type WebviewArtifactsClient, type WebviewArtifactsReadParams, type WebviewCapabilityDeclaration, type WebviewClient, type WebviewClientOptions, type WebviewCommandsClient, type WebviewCommandsExecuteParams, type WebviewContribution, type WebviewDeclarableCapability, type WebviewEventsClient, type WebviewExtensionEvent, type WebviewExtensionSettingKeyParams, type WebviewExtensionSettingSetParams, type WebviewFileScope, type WebviewFilesClient, type WebviewFilesDeleteParams, type WebviewFilesListParams, type WebviewFilesUploadParams, type WebviewHostCapability, type WebviewHostCapabilityParams, type WebviewHostCapabilityResult, type WebviewHostCapabilityResults, type WebviewKeyboardEventParams, type WebviewNavigationOpenParams, type WebviewNotificationActionParams, type WebviewNotificationDismissParams, type WebviewNotificationResolveParams, type WebviewNotificationShowParams, type WebviewPreferencesGetParams, type WebviewPreferencesSetParams, type WebviewScopedDeclarableCapability, type WebviewSettingsClient, type WebviewViewBody, type WhenExpression, type WorkbenchAttachmentInvocationContext, type WorkflowStatus, type WorkspaceCapabilities, type WorkspaceExecutionTarget, type WorkspaceFilesMount, type WorkspaceParam, type WorkspaceProviderCreateInput, type WorkspaceProviderMutationInput, type WorkspaceProviderRef, type WorkspaceProviderResolveInput, type WorkspaceProviderResult, type WorkspaceProviderState, type WorkspaceProvisionPayload, type WorkspaceSyncFile, type WorkspaceType, type WorkspaceTypeProvider, type WorktreeRemovedPayload, artifactMountId, artifactsRead, commandEvent, commandRef, commandRefId, contributionRefId, createTerminalSessionBridge, createWebviewClient, defaultPageResourceCodec, defineActivityItem, defineArtifactMount, defineCommand, defineCommandPaletteResource, defineConnection, defineExtension, defineExtensionView, defineFileIconTheme, defineHarness, defineHook, defineKeybinding, defineMiddleware, defineMode, defineNavigationItem, defineNavigationTree, definePage, definePlacement, defineResourceHierarchyProvider, defineResourceKind, defineSchedule, defineSettingsPanel, defineSettingsSection, defineSkill, defineSlot, defineStatusBarItem, defineStatuses, defineTemplate, defineTemplateType, defineTheme, defineView, defineViewMenu, defineWorkspaceType, dockedWorkbenchRegions, eventRef, extensionPanelRegions, gitEvents, historyMessageKey, historyValueKey, isFileSourcePosition, isLocalizedString, isNavigationTarget, isValidLocalContributionId, isWorkbenchProjectUrl, l10n, localContributionIdGrammar, localContributionIdPattern, matchesResourceWhen, mergeHistoryMetadata, mergeOrderedHistory, normalizeBooleanViewRule, packageAsset, params, type parseExtensionApiDeclaration, parsePageUrl, parseWorkbenchPageUrl, projectEvents, projectPrefix, projectSlots, qualifyNavigationTarget, qualifyRef, reconcileMessageHistory, resolveDataTableComparableValue, resolveDataTableFieldKind, resolveEventReferenceId, resourceKey, resourceMenuSlotRef, serializePageUrl, serializeWorkbenchPageUrl, sessionEvents, sessionSlots, splitHistoryTurns, submittedPrompt, type supportsExtensionApiVersion, unwrapCommandOutcome, viewDataEvents, workbenchModeDefinitions, workbenchModes, workbenchPageDefinitions, workbenchPages, workbenchPanelDefinitions, workbenchPanels, workbenchResourceKindDefinitions, workbenchResourceKinds, workbenchSlots, workspaceEvents, workspaceSlots, worktreeEvents };
3
3
  export {};
package/dist/hooks.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Fu as FollowUpInput, Vu as Session } from "./index-Dd4tqVV7.js";
2
- import "./sessions-C-D1oPr0.js";
3
- import { t as Workspace } from "./index-Cq80VGQo.js";
4
- import { t as PstdioClient } from "./index-CF8VtORE.js";
1
+ import { cd as Session, nd as FollowUpInput } from "./index-BvsVU-eX.js";
2
+ import "./sessions-BtOnRpZy.js";
3
+ import { t as Workspace } from "./index-CJNVNXEP.js";
4
+ import { t as PstdioClient } from "./index-B8kqMxoR.js";
5
5
  //#region src/hooks/base.d.ts
6
6
  type SessionFollowupInput = Omit<FollowUpInput, "template" | "vars">;
7
7
  type HookSessionClient = {