openmeld 0.3.146 → 0.3.147

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.
@@ -987,6 +987,32 @@ submitAgentActivitySessionReconciliationBodySchema.safeExtend({
987
987
  const boundedIdentifierSchema$10 = string().trim().min(1).max(256);
988
988
  const reasonCodeSchema$5 = string().trim().min(1).max(256);
989
989
  const agentProfileBindingRouteParamsSchema = strictObject({ agentProfileId: boundedIdentifierSchema$10 });
990
+ const currentAgentProfileSessionLookupQuerySchema = strictObject({
991
+ agentControllerConversationId: agentActivityNativeSessionIdSchema,
992
+ agentControllerRef: boundedIdentifierSchema$10
993
+ });
994
+ const currentAgentProfileSessionLookupIdentitySchema = strictObject({
995
+ profileId: boundedIdentifierSchema$10,
996
+ profileName: boundedIdentifierSchema$10,
997
+ profileOrganizationId: boundedIdentifierSchema$10
998
+ });
999
+ const currentAgentProfileSessionLookupResponseSchema = discriminatedUnion("status", [
1000
+ strictObject({
1001
+ currentOrganizationId: boundedIdentifierSchema$10,
1002
+ status: literal("not_found")
1003
+ }),
1004
+ strictObject({
1005
+ currentOrganizationId: boundedIdentifierSchema$10,
1006
+ profile: currentAgentProfileSessionLookupIdentitySchema,
1007
+ sameOrganization: boolean(),
1008
+ status: literal("found")
1009
+ }),
1010
+ strictObject({
1011
+ currentOrganizationId: boundedIdentifierSchema$10,
1012
+ reasonCode: reasonCodeSchema$5,
1013
+ status: literal("unavailable")
1014
+ })
1015
+ ]);
990
1016
  const getAgentProfileControllerChangeEligibilityResponseSchema = discriminatedUnion("status", [
991
1017
  strictObject({
992
1018
  agentProfileId: boundedIdentifierSchema$10,
@@ -13472,6 +13498,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
13472
13498
  buildCenterAgentTasksPath: () => buildCenterAgentTasksPath,
13473
13499
  buildComputerFileAccessReadPath: () => buildComputerFileAccessReadPath,
13474
13500
  buildComputerFileAccessUpdatePath: () => buildComputerFileAccessUpdatePath,
13501
+ buildCurrentAgentProfileSessionRoute: () => buildCurrentAgentProfileSessionRoute,
13475
13502
  buildCurrentOrganizationCenterAgentMemoryWipeSelfPath: () => buildCurrentOrganizationCenterAgentMemoryWipeSelfPath,
13476
13503
  buildCurrentOrganizationComputersPath: () => buildCurrentOrganizationComputersPath,
13477
13504
  buildCurrentOrganizationDirectoryPath: () => buildCurrentOrganizationDirectoryPath,
@@ -13729,6 +13756,12 @@ function requireValidInput$8(schema, value, message) {
13729
13756
  function buildAgentProfilePrimaryBindingRoute(agentProfileId) {
13730
13757
  return `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/primary-binding`;
13731
13758
  }
13759
+ function buildCurrentAgentProfileSessionRoute(input) {
13760
+ return `/v1/agent-profiles/current-session?${new URLSearchParams({
13761
+ agentControllerConversationId: input.agentControllerConversationId,
13762
+ agentControllerRef: input.agentControllerRef
13763
+ }).toString()}`;
13764
+ }
13732
13765
  function buildAgentProfileControllerChangeEligibilityRoute(agentProfileId) {
13733
13766
  return `/v1/agent-profiles/${encodeURIComponent(agentProfileId)}/controller-change-eligibility`;
13734
13767
  }
@@ -13766,6 +13799,12 @@ function buildAgentExecutionReadinessBatchRoute() {
13766
13799
  return "/v1/agent-profiles/execution-readiness/batch";
13767
13800
  }
13768
13801
  const getAgentExecutionReadinessInputSchema = agentExecutionReadinessRouteParamsSchema.extend({ requestContext: openMeldRequestContextSchema.optional() });
13802
+ const getCurrentAgentProfileSessionInputSchema = currentAgentProfileSessionLookupQuerySchema.extend({ requestContext: openMeldRequestContextSchema.optional() });
13803
+ function requireValidCurrentAgentProfileSessionInput(input) {
13804
+ const parsed = getCurrentAgentProfileSessionInputSchema.safeParse(input);
13805
+ if (!parsed.success) throw new Error(parsed.error.issues[0]?.message ?? "Invalid current Agent Profile Session lookup.");
13806
+ return parsed.data;
13807
+ }
13769
13808
  const getAgentExecutionReadinessBatchInputSchema = getAgentExecutionReadinessBatchBodySchema.extend({ requestContext: openMeldRequestContextSchema.optional() });
13770
13809
  const ensureAgentProfilePrimaryBindingInputSchema = agentProfileBindingRouteParamsSchema.merge(ensureAgentProfilePrimaryBindingBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });
13771
13810
  const notifyAgentProfileRouteCatalogChangedInputSchema = agentProfileBindingRouteParamsSchema.merge(notifyAgentProfileRouteCatalogChangedBodySchema).extend({ requestContext: openMeldRequestContextSchema.optional() });
@@ -13876,6 +13915,17 @@ const createAgentProfileBindingApi = (client) => {
13876
13915
  schema: getAgentProfilePrimaryBindingResponseSchema,
13877
13916
  url: buildAgentProfilePrimaryBindingRoute(input.agentProfileId)
13878
13917
  }),
13918
+ getCurrentSession: async (input) => {
13919
+ const request = requireValidCurrentAgentProfileSessionInput(input);
13920
+ return await client.requestJson({
13921
+ invalidMessage: "Invalid current Agent Profile Session response.",
13922
+ method: "GET",
13923
+ operation: "agent_profile_binding.current_session.read",
13924
+ requestContext: request.requestContext,
13925
+ schema: currentAgentProfileSessionLookupResponseSchema,
13926
+ url: buildCurrentAgentProfileSessionRoute(request)
13927
+ });
13928
+ },
13879
13929
  ensurePrimaryBinding: async (input) => {
13880
13930
  const body = requireValidBindingCommandBody(input);
13881
13931
  return await client.requestJson({
@@ -18328,6 +18378,6 @@ function composeAbortSignals(parent, timeout) {
18328
18378
  };
18329
18379
  }
18330
18380
  //#endregion
18331
- export { submitAgentControllerTaskLifecycleEventItemSchema as $, spaceMemberDirectorySchema as $t, MAX_TEXT_LENGTH as A, submitFeedbackIssueRequestSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Bt, createSpaceApi as C, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Ct, toStructuredApiClientFailure as D, profileCapabilitiesResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, authProfileManagedRoleSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutinesResponseSchema as Ft, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as G, agentActivitySnapshotResponseSchema as Gt, toErrorMessage$3 as H, agentActivityProviderSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, pauseCenterAgentRoutineResponseSchema as It, spaceDispatchTraceAttemptStatusSchema as J, localProjectControlDiscoverProjectsResponseSchema as Jt, projectSpaceDispatchTraceFinalVisibleOutcome as K, localProjectControlConnectionSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, resumeCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, createCenterAgentRoutineResponseSchema as Mt, parseServerErrorFrame as N, deleteCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileErrorResponseSchema as Ot, resolveCustomMentionAliasOverride as P, listCenterAgentRoutineRunsResponseSchema as Pt, projectObservabilityWakeCorrelation as Q, spaceMemberDirectoryEntrySchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, updateCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, organizationDirectoryResponseSchema as St, resolveAccountSpaceIndexGatewayHost as T, authProfileKindSchema as Tt, getSpaceUpdatesResponseSchema as U, agentActivitySessionStatusSchema as Ut, sleep as V, agentActivityEventSchema as Vt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as W, agentActivitySnapshotQuerySchema as Wt, spaceDispatchTraceResponseSchema as X, postSpaceMembersResponseSchema as Xt, spaceDispatchTraceDispatchStatusSchema as Y, leaveSpaceResponseSchema as Yt, observabilityWakeTraceSelectorSchema as Z, removeSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, startReplyReadinessSummarySchema as _n, listOrganizationSkillsResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, observedLocalAgentSessionSchema as an, gatewayErrorEnvelopeSchema as at, createProjectsApi as b, agentControllerCollaborationModeSchema as bn, organizationSkillSummarySchema as bt, createAgentProfileBindingApi as c, listProjectsResponseSchema as cn, computerFileAccessDaemonFrameSchema as ct, createCurrentDeviceApi as d, centerAgentToolSpeakerSchema as dn, modelCatalogSchema as dt, agentActivityInventorySessionOriginSchema as en, ownerComputerDiagnosticsSchema as et, createFeedbackApi as f, openCodePermissionConfigSchema as fn, organizationSpaceDirectoryWithMemberCountsResponseSchema as ft, createOrganizationApi as g, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as gn, getOrganizationSkillResponseSchema as gt, createOpenMeldApiClient as h, START_ISO_DATE_TIME_SCHEMA as hn, spaceMetaSchema as ht, buildProfileSpaceHistoryUpsertPath as i, localAgentSessionProviderSchema as in, agentProfileCreationConfigurationSchema as it, parseEnvelope as j, submitFeedbackIssueResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, organizationComputersResponseSchema as kt, createCenterAgentApi as l, projectSchema as ln, computerFileAccessPolicyInputSchema as lt, createLocalRuntimeExpectedRoutesApi as m, START_BOUNDED_VERSION_SCHEMA as mn, spaceCreatorSchema as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryQuerySchema as nn, summarizeComputerFileAccessPolicy as nt, createAccountSpaceIndexApi as o, archiveProjectResponseSchema as on, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as ot, createFetchTransport as p, START_BOUNDED_ID_SCHEMA as pn, resolveInitialSpaceAccessMode as pt, resolveSpaceDispatchTraceRootCause as q, localProjectControlDaemonFrameSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentActivitySessionInventoryResponseSchema as rn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as rt, createAgentActivityApi as s, createProjectResponseSchema as sn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as st, OpenMeldApiClientHttpError as t, agentActivityInventorySessionStatusSchema as tn, projectOwnerComputerLocalRuntimes as tt, createComputerFileAccessApi as u, updateProjectResponseSchema as un, computerFileAccessPolicySchema as ut, createPrepareReadinessApi as v, localAgentCatalogSchema as vn, organizationSkillBundleSchema as vt, dist_exports as w, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as wt, createRoutinesApi as x, toCompatibleSpaceAddressingRequestWireValue as xn, stringifyOrganizationSkillBundleCanonicalJson as xt, createProfileSpaceHistoryApi as y, agentControllerPermissionModeSchema as yn, organizationSkillReleaseSummarySchema as yt, buildOpenMeldRequestContextHeaders as z, AGENT_ACTIVITY_EVENT_MAX_BYTES as zt };
18381
+ export { submitAgentControllerTaskLifecycleEventItemSchema as $, spaceMemberDirectoryAllowedRelationsSchema as $t, MAX_TEXT_LENGTH as A, submitFeedbackIssueRequestSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Bt, createSpaceApi as C, agentControllerCollaborationModeSchema as Cn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as Ct, toStructuredApiClientFailure as D, profileCapabilitiesResponseSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, authProfileManagedRoleSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutinesResponseSchema as Ft, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as G, agentActivitySnapshotResponseSchema as Gt, toErrorMessage$3 as H, agentActivityProviderSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, pauseCenterAgentRoutineResponseSchema as It, spaceDispatchTraceAttemptStatusSchema as J, localProjectControlDiscoverProjectsResponseSchema as Jt, projectSpaceDispatchTraceFinalVisibleOutcome as K, localProjectControlConnectionSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, resumeCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, createCenterAgentRoutineResponseSchema as Mt, parseServerErrorFrame as N, deleteCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileErrorResponseSchema as Ot, resolveCustomMentionAliasOverride as P, listCenterAgentRoutineRunsResponseSchema as Pt, projectObservabilityWakeCorrelation as Q, spaceMemberAgentWakeAvailabilitySchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, updateCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, agentControllerPermissionModeSchema as Sn, organizationDirectoryResponseSchema as St, resolveAccountSpaceIndexGatewayHost as T, authProfileKindSchema as Tt, getSpaceUpdatesResponseSchema as U, agentActivitySessionStatusSchema as Ut, sleep as V, agentActivityEventSchema as Vt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as W, agentActivitySnapshotQuerySchema as Wt, spaceDispatchTraceResponseSchema as X, postSpaceMembersResponseSchema as Xt, spaceDispatchTraceDispatchStatusSchema as Y, leaveSpaceResponseSchema as Yt, observabilityWakeTraceSelectorSchema as Z, removeSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, START_BOUNDED_VERSION_SCHEMA as _n, listOrganizationSkillsResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, agentActivitySessionInventoryQuerySchema as an, gatewayErrorEnvelopeSchema as at, createProjectsApi as b, startReplyReadinessSummarySchema as bn, organizationSkillSummarySchema as bt, createAgentProfileBindingApi as c, observedLocalAgentSessionSchema as cn, computerFileAccessDaemonFrameSchema as ct, createCurrentDeviceApi as d, listProjectsResponseSchema as dn, modelCatalogSchema as dt, spaceMemberDirectoryEntrySchema as en, ownerComputerDiagnosticsSchema as et, createFeedbackApi as f, projectSchema as fn, organizationSpaceDirectoryWithMemberCountsResponseSchema as ft, createOrganizationApi as g, START_BOUNDED_ID_SCHEMA as gn, getOrganizationSkillResponseSchema as gt, createOpenMeldApiClient as h, openCodePermissionConfigSchema as hn, spaceMetaSchema as ht, buildProfileSpaceHistoryUpsertPath as i, agentActivityInventorySessionStatusSchema as in, agentProfileCreationConfigurationSchema as it, parseEnvelope as j, submitFeedbackIssueResponseSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, organizationComputersResponseSchema as kt, createCenterAgentApi as l, archiveProjectResponseSchema as ln, computerFileAccessPolicyInputSchema as lt, createLocalRuntimeExpectedRoutesApi as m, centerAgentToolSpeakerSchema as mn, spaceCreatorSchema as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberKindSchema as nn, summarizeComputerFileAccessPolicy as nt, createAccountSpaceIndexApi as o, agentActivitySessionInventoryResponseSchema as on, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as ot, createFetchTransport as p, updateProjectResponseSchema as pn, resolveInitialSpaceAccessMode as pt, resolveSpaceDispatchTraceRootCause as q, localProjectControlDaemonFrameSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentActivityInventorySessionOriginSchema as rn, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as rt, createAgentActivityApi as s, localAgentSessionProviderSchema as sn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as st, OpenMeldApiClientHttpError as t, spaceMemberDirectorySchema as tn, projectOwnerComputerLocalRuntimes as tt, createComputerFileAccessApi as u, createProjectResponseSchema as un, computerFileAccessPolicySchema as ut, createPrepareReadinessApi as v, START_ISO_DATE_TIME_SCHEMA as vn, organizationSkillBundleSchema as vt, dist_exports as w, toCompatibleSpaceAddressingRequestWireValue as wn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as wt, createRoutinesApi as x, localAgentCatalogSchema as xn, stringifyOrganizationSkillBundleCanonicalJson as xt, createProfileSpaceHistoryApi as y, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as yn, organizationSkillReleaseSummarySchema as yt, buildOpenMeldRequestContextHeaders as z, AGENT_ACTIVITY_EVENT_MAX_BYTES as zt };
18332
18382
 
18333
- //# sourceMappingURL=dist-Cl9HGiaA.js.map
18383
+ //# sourceMappingURL=dist-yUGk9-aD.js.map