openmeld 0.3.134 → 0.3.136

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { _n as normalizeKnownBuiltinAgentControllerId, an as runtimeTransportModeSchema, bn as resolveBuiltinAgentControllerConversationCapability, fn as agentControllerRefSchema, xn as __exportAll, yn as agentControllerConversationCapabilitySchema } from "./base-url-BtqW4aLS.js";
4
- import { $ as agentTaskCompletionConditionSchema, $n as openMeldToolsUpdateOperationSchema, $r as openMeldRuntimeProfileIdSchema, $t as localAgentInstallationOptionSchema, An as spaceAgentStreamPartFrameSchema, Ar as runtimeCoordinatorExecutionEventSchema, At as spaceMessageAttachmentsSchema, Br as spaceMentionLabelSchema, Bt as listSpaceFileRevisionsResponseSchema, Cr as unknown, Ct as signalTextSchema, Dn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Dr as clientMessageIdSchema$1, Dt as spaceAttachmentMimeTypeSchema, Er as postSpaceWakeStopResponseSchema, Et as spaceAttachmentFileNameSchema, F as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Fn as agentInteractionPendingSummarySchema, Fr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Ft as SPACE_FILE_MAX_SIZE_BYTES, Gn as localComponentUpdatePolicySchema, Gr as executeExecutionRecoveryBodySchema, Gt as restoreSpaceFileRevisionResponseSchema, H as openMeldDaemonTaskResultProjectFailureContextSchema, Hr as organizationInformationProtectionPolicyResponseSchema, Ht as publishSpaceComposerUploadResponseSchema, Ir as normalizeSpacePasswordText, It as createSpaceFolderResponseSchema, Jt as spaceMessageFileReferencesSchema, Kn as localComponentUpdateProjectionSchema, Kr as executeExecutionRecoveryResponseSchema, Kt as spaceFileMimeTypeSchema, L as openMeldDaemonProviderAccessEvidenceProviderSchema, Lr as spacePasswordSchema, Lt as discardSpaceComposerUploadResponseSchema, Mn as spaceAgentStreamSnapshotSchema, Nn as spaceAgentStreamTerminalFrameSchema, Nt as centerAgentInteractionSourceSchema, On as agentStreamToolPartSchema, Ot as spaceAttachmentSizeBytesSchema, Pr as spaceTraceExecutionIdentityProjectionSchema, Pt as SPACE_FILE_ERROR_CODES, Q as agentDelegationSnapshotSchema, Qt as uploadSpaceFileResponseSchema, Rn as agentInteractionResponseSchema, Rt as getSpaceFileResponseSchema, Sr as union, St as signalTextDataSchema, Tr as postSpaceWakeStopBodySchema, Tt as spaceAttachmentDimensionSchema, Ur as organizationProtectedInformationSchema, Vr as spaceMentionLabelSourceSchema, Vt as listSpaceFilesResponseSchema, Wr as updateOrganizationInformationProtectionPolicyBodySchema, Wt as restoreSpaceFileEntryResponseSchema, X as localFolderPickerResultSchema, Xn as openMeldToolsMaintenanceProjectionSchema, Xt as trashSpaceFileEntryResponseSchema, Y as localFolderPickerRequestSchema, Yn as openMeldToolsMaintenanceMutationResultSchema, Yr as openMeldRequestContextSchema, Yt as stageSpaceComposerUploadResponseSchema, Z as localFolderPathSchema, Zr as agentProfileIdSchema, Zt as updateSpaceFileEntryResponseSchema, _i as openMeldNavigationTargetSchema, _n as workingLanguageGuidanceSchema, _r as record, ai as finiteIntegerNumber, ar as coerce, at as controllerAgentTaskHandleSchema, br as tuple, bt as signalStatusDataSchema, ci as trimmedStringFromUnknown, cn as spaceThreadEventSchema, cr as enumFactory, dr as literal, ei as profileKindSchema, er as openMeldToolsUpdateRequestResultSchema, et as agentTaskCompletionObservationSchema, fr as neverFactory, gi as computerSetupModeSchema, gn as spaceDispatchPolicySchema, gr as preprocess, hn as spacePublicationModeSchema, hr as object, ii as uuidProfileIdSchema, ir as boolean, it as buildAgentTaskKey, jn as spaceAgentStreamPresenceSchema, jr as runtimeCoordinatorExecutionRecordSchema, jt as conversationCompactionMarkerSchema, kn as spaceAgentStreamDeltaFrameSchema, kr as runtimeCoordinatorExecutionCreationDiagnosticSchema, kt as spaceMessageAttachmentSchema, li as MAX_TEXT_LENGTH$1, ln as spaceThreadSchema, lr as int, mn as spaceAllowedActionsSchema, mr as number, n as daemonExecutionCompatibilitySchema, ni as profileWorkingDirectorySchema, nn as openMeldDaemonSyncRouteCatalogPayloadSchema, nr as NEVER, nt as agentTaskTerminalOutcomeSchema, oi as nonEmptyTrimmedStringFromUnknown, on as dispatchExecutionSchema, or as discriminatedUnion, ot as spaceWakeAgentTaskHandleSchema, pn as resultArchivePolicySchema, pr as nullFactory, qn as localComponentUpdateStatusSchema, qr as inspectExecutionRecoveryResponseSchema, ri as profileWorkspaceModeSchema, rr as array, rt as areAgentTaskTerminalOutcomesEqual, si as optionalBooleanQuerySchema, sn as spaceThreadContextSchema, sr as email, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as profileSchema, tt as agentTaskHandleSchema, un as spaceThreadSignalPlacementSchema, ur as iso, vi as openMeldWebUrlSchema, vn as workingLanguageTagSchema, vr as strictObject, vt as centerAgentTaskReferenceSchema, wn as messageEnvelopeSchema, wr as url, wt as spaceAttachmentDescriptorSchema, xr as undefinedFactory, xt as signalSystemNoticeDataSchema, yn as targetWakeLifecycleIdentitySchema, yr as string } from "./runtime-transport-D4_-d5Yb.js";
4
+ import { $ as localFolderPickerResultSchema, $n as openMeldToolsMaintenanceProjectionSchema, $t as trashSpaceFileEntryResponseSchema, An as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Ar as clientMessageIdSchema$1, At as spaceAttachmentMimeTypeSchema, B as openMeldDaemonProviderAccessEvidenceProviderSchema, Br as spacePasswordSchema, Bt as discardSpaceComposerUploadResponseSchema, Cr as tuple, Ct as signalStatusDataSchema, Dn as messageEnvelopeSchema, Dr as url, Dt as spaceAttachmentDescriptorSchema, Er as unknown, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Fn as spaceAgentStreamSnapshotSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gr as organizationInformationProtectionPolicyResponseSchema, Gt as publishSpaceComposerUploadResponseSchema, In as spaceAgentStreamTerminalFrameSchema, It as centerAgentInteractionSourceSchema, Jn as localComponentUpdatePolicySchema, Jr as executeExecutionRecoveryBodySchema, Jt as restoreSpaceFileRevisionResponseSchema, Kr as organizationProtectedInformationSchema, Lr as spaceTraceExecutionIdentityProjectionSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as spaceAgentStreamDeltaFrameSchema, Mr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Mt as spaceMessageAttachmentSchema, Nn as spaceAgentStreamPartFrameSchema, Nr as runtimeCoordinatorExecutionEventSchema, Nt as spaceMessageAttachmentsSchema, Or as postSpaceWakeStopBodySchema, Ot as spaceAttachmentDimensionSchema, Pn as spaceAgentStreamPresenceSchema, Pr as runtimeCoordinatorExecutionRecordSchema, Pt as conversationCompactionMarkerSchema, Q as localFolderPickerRequestSchema, Qn as openMeldToolsMaintenanceMutationResultSchema, Qr as openMeldRequestContextSchema, Qt as stageSpaceComposerUploadResponseSchema, Rn as agentInteractionPendingSummarySchema, Rr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as targetWakeLifecycleIdentitySchema, Sr as string, Tr as union, Tt as signalTextDataSchema, Ur as spaceMentionLabelSchema, Ut as listSpaceFileRevisionsResponseSchema, Vn as agentInteractionResponseSchema, Vt as getSpaceFileResponseSchema, Wr as spaceMentionLabelSourceSchema, Wt as listSpaceFilesResponseSchema, Xn as localComponentUpdateStatusSchema, Xr as inspectExecutionRecoveryResponseSchema, Yn as localComponentUpdateProjectionSchema, Yr as executeExecutionRecoveryResponseSchema, Yt as spaceFileMimeTypeSchema, Zt as spaceMessageFileReferencesSchema, _n as spaceAllowedActionsSchema, _r as number, ai as profileWorkingDirectorySchema, an as openMeldDaemonSyncRouteCatalogPayloadSchema, ar as NEVER, at as agentTaskTerminalOutcomeSchema, bi as openMeldNavigationTargetSchema, bn as workingLanguageGuidanceSchema, br as record, ci as finiteIntegerNumber, cr as coerce, ct as controllerAgentTaskHandleSchema, di as trimmedStringFromUnknown, dn as spaceThreadEventSchema, dr as enumFactory, ei as agentProfileIdSchema, en as updateSpaceFileEntryResponseSchema, et as localFolderPathSchema, fi as MAX_TEXT_LENGTH$1, fn as spaceThreadSchema, fr as int, gn as resultArchivePolicySchema, gr as nullFactory, hr as neverFactory, ii as profileSchema, it as agentTaskHandleSchema, jn as agentStreamToolPartSchema, jt as spaceAttachmentSizeBytesSchema, kr as postSpaceWakeStopResponseSchema, kt as spaceAttachmentFileNameSchema, li as nonEmptyTrimmedStringFromUnknown, ln as dispatchExecutionSchema, lr as discriminatedUnion, lt as spaceWakeAgentTaskHandleSchema, mr as literal, n as daemonExecutionCompatibilitySchema, ni as openMeldRuntimeProfileIdSchema, nn as localAgentInstallationOptionSchema, nr as openMeldToolsUpdateOperationSchema, nt as agentTaskCompletionConditionSchema, oi as profileWorkspaceModeSchema, or as array, ot as areAgentTaskTerminalOutcomesEqual, pi as agentProfileWorkRecoveryActionKindSchema, pn as spaceThreadSignalPlacementSchema, pr as iso, qr as updateOrganizationInformationProtectionPolicyBodySchema, qt as restoreSpaceFileEntryResponseSchema, ri as profileKindSchema, rr as openMeldToolsUpdateRequestResultSchema, rt as agentTaskCompletionObservationSchema, si as uuidProfileIdSchema, sr as boolean, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as uploadSpaceFileResponseSchema, tt as agentDelegationSnapshotSchema, ui as optionalBooleanQuerySchema, un as spaceThreadContextSchema, ur as email, vn as spacePublicationModeSchema, vr as object, wr as undefinedFactory, wt as signalSystemNoticeDataSchema, xi as openMeldWebUrlSchema, xn as workingLanguageTagSchema, xr as strictObject, xt as centerAgentTaskReferenceSchema, yi as computerSetupModeSchema, yn as spaceDispatchPolicySchema, yr as preprocess, z as openMeldDaemonOriginalErrorSchema, zr as normalizeSpacePasswordText, zt as createSpaceFolderResponseSchema } from "./runtime-transport-BiQfJGnw.js";
5
5
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
6
6
  import * as z$1 from "zod/v4";
7
7
  //#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
@@ -3578,6 +3578,7 @@ const agentControllerInterfaceSnapshotSchema = z$1.strictObject({
3578
3578
  skills: z$1.array(agentControllerInterfaceSkillSchema).max(512),
3579
3579
  status: agentControllerInterfaceStatusSchema,
3580
3580
  usageLimits: agentControllerUsageLimitsSchema.optional(),
3581
+ usageLimitsSupportMatrixVersion: z$1.int().positive().optional(),
3581
3582
  version: ACI_BOUNDED_ID_SCHEMA.nullable(),
3582
3583
  versionAdvisory: agentControllerInterfaceVersionAdvisorySchema.optional()
3583
3584
  });
@@ -4075,6 +4076,31 @@ strictObject({
4075
4076
  const ISO_DATE_TIME_SCHEMA$10 = iso.datetime({ offset: true });
4076
4077
  const trimmedNonEmptyStringSchema$14 = string().trim().min(1);
4077
4078
  const nullableTrimmedStringSchema$7 = union([trimmedNonEmptyStringSchema$14, nullFactory()]);
4079
+ const organizationDirectoryAgentProfileWorkLocationSchema = strictObject({
4080
+ spaceId: string().trim().min(1).max(512),
4081
+ spaceName: trimmedNonEmptyStringSchema$14
4082
+ });
4083
+ const organizationDirectoryAgentProfileOperationalContextSchema = discriminatedUnion("status", [
4084
+ strictObject({ status: literal("checking") }),
4085
+ strictObject({
4086
+ status: literal("idle"),
4087
+ waitingCount: literal(0)
4088
+ }),
4089
+ strictObject({
4090
+ currentWorkLocation: organizationDirectoryAgentProfileWorkLocationSchema.optional(),
4091
+ queuedWorkLocations: array(organizationDirectoryAgentProfileWorkLocationSchema).max(50).optional(),
4092
+ status: literal("working"),
4093
+ waitingCount: number().int().min(0).max(50)
4094
+ }),
4095
+ strictObject({
4096
+ currentWorkLocation: organizationDirectoryAgentProfileWorkLocationSchema.optional(),
4097
+ queuedWorkLocations: array(organizationDirectoryAgentProfileWorkLocationSchema).max(50).optional(),
4098
+ recoveryAction: agentProfileWorkRecoveryActionKindSchema.optional(),
4099
+ recoveryTargetWakeLifecycleId: trimmedNonEmptyStringSchema$14.optional(),
4100
+ status: literal("paused"),
4101
+ waitingCount: number().int().min(0).max(50)
4102
+ })
4103
+ ]);
4078
4104
  const organizationDirectoryHumanProfileSchema = strictObject({
4079
4105
  lastUsedAt: union([ISO_DATE_TIME_SCHEMA$10, nullFactory()]).optional(),
4080
4106
  profileId: uuidProfileIdSchema,
@@ -4117,6 +4143,7 @@ const organizationDirectoryAgentProfileSchema = strictObject({
4117
4143
  updatedAt: ISO_DATE_TIME_SCHEMA$10
4118
4144
  }).extend({
4119
4145
  isCenterAgent: boolean().optional(),
4146
+ operationalContext: organizationDirectoryAgentProfileOperationalContextSchema.optional(),
4120
4147
  readiness: getAgentExecutionReadinessResponseSchema
4121
4148
  });
4122
4149
  const organizationDirectoryResponseSchema = strictObject({
@@ -6492,6 +6519,22 @@ const setAgentProfileCreationApprovalPreferenceBodySchema = z$1.strictObject({
6492
6519
  const getAgentProfileCreationApprovalPreferenceResponseSchema = agentProfileCreationApprovalPreferenceSchema;
6493
6520
  const setAgentProfileCreationApprovalPreferenceResponseSchema = agentProfileCreationApprovalPreferenceSchema;
6494
6521
  //#endregion
6522
+ //#region ../../packages/schemas/dist/schemas/http/agent-profile-work-recovery.js
6523
+ const agentProfileWorkRecoveryActionSchema = agentProfileWorkRecoveryActionKindSchema;
6524
+ const agentProfileWorkRecoveryRouteParamsSchema = z$1.strictObject({ agentProfileId: agentProfileIdSchema });
6525
+ const executeAgentProfileWorkRecoveryBodySchema = z$1.discriminatedUnion("action", [
6526
+ z$1.strictObject({ action: z$1.literal("continue_interrupted_work") }),
6527
+ z$1.strictObject({ action: z$1.literal("approve_queued_work") }),
6528
+ z$1.strictObject({
6529
+ action: z$1.literal("skip_interrupted_work"),
6530
+ expectedInterruptedTargetWakeLifecycleId: z$1.string().trim().min(1).max(512)
6531
+ })
6532
+ ]);
6533
+ const executeAgentProfileWorkRecoveryResponseSchema = z$1.strictObject({
6534
+ action: agentProfileWorkRecoveryActionSchema,
6535
+ status: z$1.literal("accepted")
6536
+ });
6537
+ //#endregion
6495
6538
  //#region ../../packages/schemas/dist/schemas/http/catchup-response.js
6496
6539
  /**
6497
6540
  * Canonical catch-up response shape across Core/Gateway/CLI.
@@ -8800,6 +8843,7 @@ const spaceDispatchTraceAttemptStatusSchema = enumFactory([
8800
8843
  "dispatching",
8801
8844
  "failed_retryable",
8802
8845
  "failed_terminal",
8846
+ "profile_queue_waiting",
8803
8847
  "succeeded",
8804
8848
  "superseded",
8805
8849
  "timed_out",
@@ -9097,6 +9141,7 @@ const publishedRuntimeCoordinatorHeadLifecycleStatusSchema = enumFactory([
9097
9141
  "accepted",
9098
9142
  "execution_linked",
9099
9143
  "publication_intent_ready",
9144
+ "queued",
9100
9145
  "stopped_before_execution",
9101
9146
  "waiting"
9102
9147
  ]);
@@ -11732,6 +11777,7 @@ const inboxSourceKindSchema = enumFactory([
11732
11777
  "organization_document_draft",
11733
11778
  "organization_opportunity",
11734
11779
  "organization_member_request",
11780
+ "agent_profile_work_recovery",
11735
11781
  "system_attention_event"
11736
11782
  ]);
11737
11783
  const centerAgentRequestMemberAttentionBodySchema = strictObject({
@@ -11770,6 +11816,10 @@ const slackInboxSourceTargetSchema = strictObject({
11770
11816
  threadRootMessageId: identifierSchema
11771
11817
  });
11772
11818
  const inboxSourceTargetSchema = discriminatedUnion("kind", [
11819
+ strictObject({
11820
+ kind: literal("agent_profile"),
11821
+ profileId: identifierSchema
11822
+ }),
11773
11823
  strictObject({
11774
11824
  kind: literal("agent_profile_creation_request"),
11775
11825
  requestId: identifierSchema
@@ -12794,6 +12844,7 @@ const spaceMessageDetailsWakeTargetSchema = z$1.strictObject({
12794
12844
  status: wakeTraceWaterfallSummaryStatusSchema.optional(),
12795
12845
  terminalStep: wakeTraceWaterfallStepNameSchema.nullable().optional(),
12796
12846
  reasonCode: nullableReasonCodeSchema.optional(),
12847
+ originalError: openMeldDaemonOriginalErrorSchema.optional(),
12797
12848
  agentContext: spaceMessageDetailsAgentContextSchema.optional(),
12798
12849
  steps: z$1.array(wakeTraceWaterfallStepSchema).optional()
12799
12850
  });
@@ -13094,6 +13145,7 @@ function normalizeProfileIdList(value) {
13094
13145
  }
13095
13146
  const toErrorMessage$2 = toErrorMessage$3;
13096
13147
  const ORGANIZATION_DIRECTORY_INCLUDE_MEMBER_LAST_ACTIVE_AT_QUERY_PARAMETER = "includeMemberLastActiveAt";
13148
+ const ORGANIZATION_DIRECTORY_AGENT_PROFILE_WORK_RECOVERY_VERSION_QUERY_PARAMETER = "agentProfileWorkRecoveryVersion";
13097
13149
  //#endregion
13098
13150
  //#region ../../packages/protocol/dist/index.js
13099
13151
  const MAX_TEXT_LENGTH = 1e5;
@@ -13198,6 +13250,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
13198
13250
  buildAgentProfileCreationRequestRetryPath: () => buildAgentProfileCreationRequestRetryPath,
13199
13251
  buildAgentProfileCreationRequestsPath: () => buildAgentProfileCreationRequestsPath,
13200
13252
  buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute: () => buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute,
13253
+ buildAgentProfileWorkRecoveryRoute: () => buildAgentProfileWorkRecoveryRoute,
13201
13254
  buildCenterAgentAuditJournalPath: () => buildCenterAgentAuditJournalPath,
13202
13255
  buildCenterAgentDesignationPath: () => buildCenterAgentDesignationPath,
13203
13256
  buildCenterAgentDirectMessageSpacePath: () => buildCenterAgentDirectMessageSpacePath,
@@ -13275,6 +13328,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
13275
13328
  createAccountSpaceIndexApi: () => createAccountSpaceIndexApi,
13276
13329
  createAgentActivityApi: () => createAgentActivityApi,
13277
13330
  createAgentProfileBindingApi: () => createAgentProfileBindingApi,
13331
+ createAgentProfileWorkRecoveryApi: () => createAgentProfileWorkRecoveryApi,
13278
13332
  createCenterAgentApi: () => createCenterAgentApi,
13279
13333
  createCenterAgentTasksApi: () => createCenterAgentTasksApi,
13280
13334
  createComputerFileAccessApi: () => createComputerFileAccessApi,
@@ -13757,6 +13811,27 @@ const createAgentProfileBindingApi = (client) => {
13757
13811
  }
13758
13812
  };
13759
13813
  };
13814
+ function buildAgentProfileWorkRecoveryRoute(agentProfileId) {
13815
+ return `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/work-recovery`;
13816
+ }
13817
+ const executeAgentProfileWorkRecoveryInputSchema = agentProfileWorkRecoveryRouteParamsSchema.extend({ requestContext: openMeldRequestContextSchema.optional() }).and(executeAgentProfileWorkRecoveryBodySchema);
13818
+ const createAgentProfileWorkRecoveryApi = (client) => ({ execute: async (input) => {
13819
+ const parsed = executeAgentProfileWorkRecoveryInputSchema.safeParse(input);
13820
+ if (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? "Invalid Agent Profile work recovery request.");
13821
+ return await client.requestJson({
13822
+ body: JSON.stringify(parsed.data.action === "skip_interrupted_work" ? {
13823
+ action: parsed.data.action,
13824
+ expectedInterruptedTargetWakeLifecycleId: parsed.data.expectedInterruptedTargetWakeLifecycleId
13825
+ } : { action: parsed.data.action }),
13826
+ headers: { "content-type": "application/json" },
13827
+ invalidMessage: "Invalid Agent Profile work recovery response.",
13828
+ method: "POST",
13829
+ operation: "agent_profile_work_recovery.execute",
13830
+ requestContext: parsed.data.requestContext,
13831
+ schema: executeAgentProfileWorkRecoveryResponseSchema,
13832
+ url: buildAgentProfileWorkRecoveryRoute(parsed.data.agentProfileId)
13833
+ });
13834
+ } });
13760
13835
  function buildCenterAgentDesignationPath() {
13761
13836
  return "/v1/organizations/current/center-agent/designation";
13762
13837
  }
@@ -15271,7 +15346,11 @@ function createLocalRuntimeExpectedRoutesApi(client) {
15271
15346
  }
15272
15347
  function buildCurrentOrganizationDirectoryPath(input) {
15273
15348
  const path = "/v1/organizations/current/directory";
15274
- return input?.includeMemberLastActiveAt === true ? `${path}?${ORGANIZATION_DIRECTORY_INCLUDE_MEMBER_LAST_ACTIVE_AT_QUERY_PARAMETER}=true` : path;
15349
+ const query = new URLSearchParams();
15350
+ if (input?.agentProfileWorkRecoveryVersion === 2) query.set(ORGANIZATION_DIRECTORY_AGENT_PROFILE_WORK_RECOVERY_VERSION_QUERY_PARAMETER, "2");
15351
+ if (input?.includeMemberLastActiveAt === true) query.set(ORGANIZATION_DIRECTORY_INCLUDE_MEMBER_LAST_ACTIVE_AT_QUERY_PARAMETER, "true");
15352
+ const queryString = query.toString();
15353
+ return queryString ? `${path}?${queryString}` : path;
15275
15354
  }
15276
15355
  function buildCurrentOrganizationComputersPath(input) {
15277
15356
  const path = "/v1/organizations/current/computers";
@@ -15530,7 +15609,10 @@ const createOrganizationApi = (client) => ({
15530
15609
  invalidMessage: "invalid Organization Binding authorization profile list response"
15531
15610
  }),
15532
15611
  getCurrentDirectory: async (input = {}) => await client.requestJson({
15533
- url: buildCurrentOrganizationDirectoryPath({ includeMemberLastActiveAt: input.includeMemberLastActiveAt }),
15612
+ url: buildCurrentOrganizationDirectoryPath({
15613
+ agentProfileWorkRecoveryVersion: input.agentProfileWorkRecoveryVersion ?? 2,
15614
+ includeMemberLastActiveAt: input.includeMemberLastActiveAt
15615
+ }),
15534
15616
  operation: "organization.directory.read",
15535
15617
  method: "GET",
15536
15618
  requestContext: input.requestContext,
@@ -18008,4 +18090,4 @@ function composeAbortSignals(parent, timeout) {
18008
18090
  //#endregion
18009
18091
  export { ownerComputerDiagnosticsSchema as $, agentActivityInventorySessionStatusSchema as $t, MAX_TEXT_LENGTH as A, createCenterAgentRoutineResponseSchema as At, sleep as B, agentActivityProviderSchema as Bt, createSpaceApi as C, authProfileKindSchema as Ct, toStructuredApiClientFailure as D, organizationComputersResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, profileErrorResponseSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, resumeCenterAgentRoutineResponseSchema as Ft, projectSpaceDispatchTraceFinalVisibleOutcome as G, localProjectControlDaemonFrameSchema as Gt, getSpaceUpdatesResponseSchema as H, agentActivitySnapshotQuerySchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, updateCenterAgentRoutineResponseSchema as It, spaceDispatchTraceDispatchStatusSchema as J, postSpaceMembersResponseSchema as Jt, resolveSpaceDispatchTraceRootCause as K, localProjectControlDiscoverProjectsResponseSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, AGENT_ACTIVITY_EVENT_MAX_BYTES as Lt, parseIncoming as M, listCenterAgentRoutineRunsResponseSchema as Mt, parseServerErrorFrame as N, listCenterAgentRoutinesResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, submitFeedbackIssueRequestSchema as Ot, resolveCustomMentionAliasOverride as P, pauseCenterAgentRoutineResponseSchema as Pt, submitAgentControllerTaskLifecycleEventItemSchema as Q, agentActivityInventorySessionOriginSchema as Qt, buildOpenMeldRequestContextHeaders as R, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Rt, createRuntimeReportingApi as S, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as St, resolveAccountSpaceIndexGatewayHost as T, profileCapabilitiesResponseSchema as Tt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as U, agentActivitySnapshotResponseSchema as Ut, toErrorMessage$3 as V, agentActivitySessionStatusSchema as Vt, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as W, localProjectControlConnectionSchema as Wt, observabilityWakeTraceSelectorSchema as X, spaceMemberDirectoryEntrySchema as Xt, spaceDispatchTraceResponseSchema as Y, removeSpaceMembersResponseSchema as Yt, projectObservabilityWakeCorrelation as Z, spaceMemberDirectorySchema as Zt, createOrganizationSkillsApi as _, agentControllerPermissionModeSchema as _n, organizationSkillReleaseSummarySchema as _t, buildSpaceAttachmentDownloadPath as a, createProjectResponseSchema as an, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as at, createProjectsApi as b, organizationDirectoryResponseSchema as bt, createAgentProfileBindingApi as c, updateProjectResponseSchema as cn, computerFileAccessPolicyInputSchema as ct, createCurrentDeviceApi as d, START_BOUNDED_ID_SCHEMA as dn, organizationSpaceDirectoryWithMemberCountsResponseSchema as dt, agentActivitySessionInventoryQuerySchema as en, projectOwnerComputerLocalRuntimes as et, createFeedbackApi as f, START_BOUNDED_VERSION_SCHEMA as fn, spaceCreatorSchema as ft, createOrganizationApi as g, localAgentCatalogSchema as gn, organizationSkillBundleSchema as gt, createOpenMeldApiClient as h, startReplyReadinessSummarySchema as hn, listOrganizationSkillsResponseSchema as ht, buildProfileSpaceHistoryUpsertPath as i, archiveProjectResponseSchema as in, gatewayErrorEnvelopeSchema as it, parseEnvelope as j, deleteCenterAgentRoutineResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, submitFeedbackIssueResponseSchema as kt, createCenterAgentApi as l, centerAgentToolSpeakerSchema as ln, computerFileAccessPolicySchema as lt, createLocalRuntimeExpectedRoutesApi as m, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as mn, getOrganizationSkillResponseSchema as mt, OpenMeldApiClientInvalidResponseError as n, localAgentSessionProviderSchema as nn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as nt, createAccountSpaceIndexApi as o, listProjectsResponseSchema as on, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ot, createFetchTransport as p, START_ISO_DATE_TIME_SCHEMA as pn, spaceMetaSchema as pt, spaceDispatchTraceAttemptStatusSchema as q, leaveSpaceResponseSchema as qt, buildProfileSpaceHistoryStatusPath as r, observedLocalAgentSessionSchema as rn, agentProfileCreationConfigurationSchema as rt, createAgentActivityApi as s, projectSchema as sn, computerFileAccessDaemonFrameSchema as st, OpenMeldApiClientHttpError as t, agentActivitySessionInventoryResponseSchema as tn, summarizeComputerFileAccessPolicy as tt, createComputerFileAccessApi as u, openCodePermissionConfigSchema as un, modelCatalogSchema as ut, createPrepareReadinessApi as v, agentControllerCollaborationModeSchema as vn, organizationSkillSummarySchema as vt, dist_exports as w, authProfileManagedRoleSchema as wt, createRoutinesApi as x, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as xt, createProfileSpaceHistoryApi as y, toLegacySpaceAddressingWireValue as yn, stringifyOrganizationSkillBundleCanonicalJson as yt, toErrorMessage$2 as z, agentActivityEventSchema as zt };
18010
18092
 
18011
- //# sourceMappingURL=dist-Fj_YSHkO.js.map
18093
+ //# sourceMappingURL=dist-0qM_CVk2.js.map