openmeld 0.3.157 → 0.3.158

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.
@@ -2128,7 +2128,7 @@ const addOrganizationDirectoryProfilesToSpaceBodySchema = strictObject({
2128
2128
  });
2129
2129
  });
2130
2130
  const removeSpaceMembersBodySchema = strictObject({ memberProfileIds: array(profileIdSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
2131
- strictObject({ members: array(strictObject({
2131
+ const resolvedSpaceMemberProfileSchema = strictObject({
2132
2132
  profileId: profileIdSchema,
2133
2133
  profileName: trimmedNonEmptyStringSchema$15,
2134
2134
  profileKind: spaceMemberKindSchema,
@@ -2142,7 +2142,8 @@ strictObject({ members: array(strictObject({
2142
2142
  ctx,
2143
2143
  path: ["profileId"]
2144
2144
  });
2145
- })).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
2145
+ });
2146
+ strictObject({ members: array(resolvedSpaceMemberProfileSchema).min(1).max(MAX_SPACE_MEMBERS_BATCH_SIZE) });
2146
2147
  const postSpaceMembersResponseSchema = strictObject({
2147
2148
  addedMemberIds: array(profileIdSchema),
2148
2149
  alreadyMemberIds: array(profileIdSchema),
@@ -4076,6 +4077,12 @@ strictObject({
4076
4077
  //#region ../../packages/schemas/dist/schemas/http/organization-directory.js
4077
4078
  const ISO_DATE_TIME_SCHEMA$10 = iso.datetime({ offset: true });
4078
4079
  const trimmedNonEmptyStringSchema$14 = string().trim().min(1);
4080
+ strictObject({
4081
+ organizationId: trimmedNonEmptyStringSchema$14,
4082
+ userId: trimmedNonEmptyStringSchema$14,
4083
+ profileId: uuidProfileIdSchema,
4084
+ lastActiveAt: ISO_DATE_TIME_SCHEMA$10
4085
+ });
4079
4086
  const nullableTrimmedStringSchema$7 = union([trimmedNonEmptyStringSchema$14, nullFactory()]);
4080
4087
  const organizationDirectoryAgentProfileWorkLocationSchema = strictObject({
4081
4088
  spaceId: string().trim().min(1).max(512),
@@ -4722,6 +4729,10 @@ const modelCatalogHostedRuntimePolicySchema = z$1.strictObject({
4722
4729
  });
4723
4730
  const modelCatalogAgentControllerSchema = z$1.strictObject({
4724
4731
  defaultModelId: boundedIdentifierSchema$5,
4732
+ creationDefaults: z$1.strictObject({
4733
+ modelId: boundedIdentifierSchema$5,
4734
+ reasoningLevel: nullableBoundedIdentifierSchema
4735
+ }).optional(),
4725
4736
  hostedRuntimePolicy: modelCatalogHostedRuntimePolicySchema.optional(),
4726
4737
  models: z$1.array(modelCatalogModelSchema).min(1)
4727
4738
  }).superRefine((value, context) => {
@@ -4765,6 +4776,25 @@ const modelCatalogAgentControllerSchema = z$1.strictObject({
4765
4776
  message: "defaultModelId must reference an available model",
4766
4777
  path: ["defaultModelId"]
4767
4778
  });
4779
+ }).superRefine((value, context) => {
4780
+ if (value.creationDefaults) {
4781
+ const selected = value.models.find((model) => model.id === value.creationDefaults?.modelId);
4782
+ if (!selected || selected.unavailable) context.addIssue({
4783
+ code: "custom",
4784
+ message: "creationDefaults must select an available model",
4785
+ path: ["creationDefaults", "modelId"]
4786
+ });
4787
+ else if (value.creationDefaults.reasoningLevel !== null && !selected.supportedReasoningLevels.includes(value.creationDefaults.reasoningLevel)) context.addIssue({
4788
+ code: "custom",
4789
+ message: "creationDefaults reasoning must be supported by its model",
4790
+ path: ["creationDefaults", "reasoningLevel"]
4791
+ });
4792
+ if (value.hostedRuntimePolicy) context.addIssue({
4793
+ code: "custom",
4794
+ message: "hosted controllers do not have local profile creation defaults",
4795
+ path: ["creationDefaults"]
4796
+ });
4797
+ }
4768
4798
  if (!value.hostedRuntimePolicy) return;
4769
4799
  for (const [index, model] of value.models.entries()) {
4770
4800
  if (model.hostedRuntime) continue;
@@ -4804,6 +4834,28 @@ const modelCatalogSchema = z$1.strictObject({
4804
4834
  agentControllers: z$1.record(boundedIdentifierSchema$5, modelCatalogAgentControllerSchema)
4805
4835
  });
4806
4836
  const getModelCatalogResponseSchema = modelCatalogSchema;
4837
+ z$1.strictObject({
4838
+ schemaVersion: z$1.literal(1),
4839
+ controller: boundedIdentifierSchema$5,
4840
+ observedAt: z$1.iso.datetime({ offset: true }),
4841
+ fingerprint: z$1.string().regex(/^[a-f0-9]{64}$/),
4842
+ sources: z$1.array(z$1.strictObject({
4843
+ url: z$1.url(),
4844
+ kind: z$1.enum([
4845
+ "official-release",
4846
+ "official-harness-catalog",
4847
+ "official-document",
4848
+ "discovery-only"
4849
+ ]),
4850
+ data: z$1.json()
4851
+ })).min(1),
4852
+ changes: z$1.array(z$1.strictObject({
4853
+ modelId: boundedIdentifierSchema$5,
4854
+ before: modelCatalogModelSchema.nullable(),
4855
+ after: modelCatalogModelSchema
4856
+ })),
4857
+ manual: z$1.array(z$1.string())
4858
+ });
4807
4859
  //#endregion
4808
4860
  //#region ../../packages/schemas/dist/schemas/daemon/computer-file-access.js
4809
4861
  const boundedIdentifierSchema$4 = z$1.string().trim().min(1).max(512);
@@ -18312,6 +18364,6 @@ function composeAbortSignals(parent, timeout) {
18312
18364
  };
18313
18365
  }
18314
18366
  //#endregion
18315
- export { projectObservabilityWakeCorrelation as $, spaceMemberAgentWakeAvailabilitySchema as $t, MAX_TEXT_LENGTH as A, organizationComputersResponseSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_EVENT_MAX_BYTES as Bt, createSpaceApi as C, agentControllerPermissionModeSchema as Cn, organizationDirectoryResponseSchema as Ct, toStructuredApiClientFailure as D, authProfileManagedRoleSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, authProfileKindSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutineRunsResponseSchema as Ft, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as G, agentActivitySnapshotQuerySchema as Gt, toErrorMessage$3 as H, agentActivityEventSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, listCenterAgentRoutinesResponseSchema as It, resolveSpaceDispatchTraceRootCause as J, localProjectControlDaemonFrameSchema as Jt, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as K, agentActivitySnapshotResponseSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, pauseCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, submitFeedbackIssueResponseSchema as Mt, parseServerErrorFrame as N, createCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileCapabilitiesResponseSchema as Ot, resolveCustomMentionAliasOverride as P, deleteCenterAgentRoutineResponseSchema as Pt, observabilityWakeTraceSelectorSchema as Q, removeSpaceMembersResponseSchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, resumeCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, localAgentCatalogSchema as Sn, stringifyOrganizationSkillBundleCanonicalJson as St, resolveAccountSpaceIndexGatewayHost as T, toCompatibleSpaceAddressingRequestWireValue as Tn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Tt, getSpaceUpdatesResponseSchema as U, agentActivityProviderSchema as Ut, sleep as V, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Vt, spaceEntryTargetSchema as W, agentActivitySessionStatusSchema as Wt, spaceDispatchTraceDispatchStatusSchema as X, leaveSpaceResponseSchema as Xt, spaceDispatchTraceAttemptStatusSchema as Y, localProjectControlDiscoverProjectsResponseSchema as Yt, spaceDispatchTraceResponseSchema as Z, postSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, START_BOUNDED_ID_SCHEMA as _n, getOrganizationSkillResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, agentActivityInventorySessionStatusSchema as an, agentProfileCreationConfigurationSchema as at, createProjectsApi as b, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as bn, organizationSkillReleaseSummarySchema as bt, createAgentProfileBindingApi as c, localAgentSessionProviderSchema as cn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ct, createCurrentDeviceApi as d, createProjectResponseSchema as dn, computerFileAccessPolicySchema as dt, spaceMemberDirectoryAllowedRelationsSchema as en, submitAgentControllerTaskLifecycleEventItemSchema as et, createFeedbackApi as f, listProjectsResponseSchema as fn, modelCatalogSchema as ft, createOrganizationApi as g, openCodePermissionConfigSchema as gn, spaceMetaSchema as gt, createOpenMeldApiClient as h, centerAgentToolSpeakerSchema as hn, spaceCreatorSchema as ht, buildProfileSpaceHistoryUpsertPath as i, agentActivityInventorySessionOriginSchema as in, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as it, parseEnvelope as j, submitFeedbackIssueRequestSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, profileErrorResponseSchema as kt, createCenterAgentApi as l, observedLocalAgentSessionSchema as ln, computerFileAccessDaemonFrameSchema as lt, createLocalRuntimeExpectedRoutesApi as m, updateProjectResponseSchema as mn, resolveInitialSpaceAccessMode as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberDirectorySchema as nn, projectOwnerComputerLocalRuntimes as nt, createAccountSpaceIndexApi as o, agentActivitySessionInventoryQuerySchema as on, gatewayErrorEnvelopeSchema as ot, createFetchTransport as p, projectSchema as pn, organizationSpaceDirectoryWithMemberCountsResponseSchema as pt, projectSpaceDispatchTraceFinalVisibleOutcome as q, localProjectControlConnectionSchema as qt, buildProfileSpaceHistoryStatusPath as r, spaceMemberKindSchema as rn, summarizeComputerFileAccessPolicy as rt, createAgentActivityApi as s, agentActivitySessionInventoryResponseSchema as sn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as st, OpenMeldApiClientHttpError as t, spaceMemberDirectoryEntrySchema as tn, ownerComputerDiagnosticsSchema as tt, createComputerFileAccessApi as u, archiveProjectResponseSchema as un, computerFileAccessPolicyInputSchema as ut, createPrepareReadinessApi as v, START_BOUNDED_VERSION_SCHEMA as vn, listOrganizationSkillsResponseSchema as vt, dist_exports as w, agentControllerCollaborationModeSchema as wn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as wt, createRoutinesApi as x, startReplyReadinessSummarySchema as xn, organizationSkillSummarySchema as xt, createProfileSpaceHistoryApi as y, START_ISO_DATE_TIME_SCHEMA as yn, organizationSkillBundleSchema as yt, buildOpenMeldRequestContextHeaders as z, updateCenterAgentRoutineResponseSchema as zt };
18367
+ export { projectObservabilityWakeCorrelation as $, resolvedSpaceMemberProfileSchema as $t, MAX_TEXT_LENGTH as A, organizationComputersResponseSchema as At, toErrorMessage$2 as B, AGENT_ACTIVITY_EVENT_MAX_BYTES as Bt, createSpaceApi as C, localAgentCatalogSchema as Cn, organizationDirectoryResponseSchema as Ct, toStructuredApiClientFailure as D, authProfileManagedRoleSchema as Dt, resolveProfileSpaceHistoryGatewayHost as E, toCompatibleSpaceAddressingRequestWireValue as En, authProfileKindSchema as Et, OPENMELD_HEADER_PROFILE_ID as F, listCenterAgentRoutineRunsResponseSchema as Ft, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as G, agentActivitySnapshotQuerySchema as Gt, toErrorMessage$3 as H, agentActivityEventSchema as Ht, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as I, listCenterAgentRoutinesResponseSchema as It, resolveSpaceDispatchTraceRootCause as J, localProjectControlDaemonFrameSchema as Jt, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as K, agentActivitySnapshotResponseSchema as Kt, OPENMELD_HEADER_REQUEST_ID as L, pauseCenterAgentRoutineResponseSchema as Lt, parseIncoming as M, submitFeedbackIssueResponseSchema as Mt, parseServerErrorFrame as N, createCenterAgentRoutineResponseSchema as Nt, DAEMON_STREAM_KEEPALIVE_PING as O, profileCapabilitiesResponseSchema as Ot, resolveCustomMentionAliasOverride as P, deleteCenterAgentRoutineResponseSchema as Pt, observabilityWakeTraceSelectorSchema as Q, removeSpaceMembersResponseSchema as Qt, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as R, resumeCenterAgentRoutineResponseSchema as Rt, createRuntimeReportingApi as S, startReplyReadinessSummarySchema as Sn, stringifyOrganizationSkillBundleCanonicalJson as St, resolveAccountSpaceIndexGatewayHost as T, agentControllerCollaborationModeSchema as Tn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as Tt, getSpaceUpdatesResponseSchema as U, agentActivityProviderSchema as Ut, sleep as V, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Vt, spaceEntryTargetSchema as W, agentActivitySessionStatusSchema as Wt, spaceDispatchTraceDispatchStatusSchema as X, leaveSpaceResponseSchema as Xt, spaceDispatchTraceAttemptStatusSchema as Y, localProjectControlDiscoverProjectsResponseSchema as Yt, spaceDispatchTraceResponseSchema as Z, postSpaceMembersResponseSchema as Zt, createOrganizationSkillsApi as _, openCodePermissionConfigSchema as _n, getOrganizationSkillResponseSchema as _t, buildSpaceAttachmentDownloadPath as a, agentActivityInventorySessionOriginSchema as an, agentProfileCreationConfigurationSchema as at, createProjectsApi as b, START_ISO_DATE_TIME_SCHEMA as bn, organizationSkillReleaseSummarySchema as bt, createAgentProfileBindingApi as c, agentActivitySessionInventoryResponseSchema as cn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as ct, createCurrentDeviceApi as d, archiveProjectResponseSchema as dn, computerFileAccessPolicySchema as dt, spaceMemberAgentWakeAvailabilitySchema as en, submitAgentControllerTaskLifecycleEventItemSchema as et, createFeedbackApi as f, createProjectResponseSchema as fn, modelCatalogSchema as ft, createOrganizationApi as g, centerAgentToolSpeakerSchema as gn, spaceMetaSchema as gt, createOpenMeldApiClient as h, updateProjectResponseSchema as hn, spaceCreatorSchema as ht, buildProfileSpaceHistoryUpsertPath as i, spaceMemberKindSchema as in, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as it, parseEnvelope as j, submitFeedbackIssueRequestSchema as jt, DAEMON_STREAM_KEEPALIVE_PONG as k, profileErrorResponseSchema as kt, createCenterAgentApi as l, localAgentSessionProviderSchema as ln, computerFileAccessDaemonFrameSchema as lt, createLocalRuntimeExpectedRoutesApi as m, projectSchema as mn, resolveInitialSpaceAccessMode as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberDirectoryEntrySchema as nn, projectOwnerComputerLocalRuntimes as nt, createAccountSpaceIndexApi as o, agentActivityInventorySessionStatusSchema as on, gatewayErrorEnvelopeSchema as ot, createFetchTransport as p, listProjectsResponseSchema as pn, organizationSpaceDirectoryWithMemberCountsResponseSchema as pt, projectSpaceDispatchTraceFinalVisibleOutcome as q, localProjectControlConnectionSchema as qt, buildProfileSpaceHistoryStatusPath as r, spaceMemberDirectorySchema as rn, summarizeComputerFileAccessPolicy as rt, createAgentActivityApi as s, agentActivitySessionInventoryQuerySchema as sn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as st, OpenMeldApiClientHttpError as t, spaceMemberDirectoryAllowedRelationsSchema as tn, ownerComputerDiagnosticsSchema as tt, createComputerFileAccessApi as u, observedLocalAgentSessionSchema as un, computerFileAccessPolicyInputSchema as ut, createPrepareReadinessApi as v, START_BOUNDED_ID_SCHEMA as vn, listOrganizationSkillsResponseSchema as vt, dist_exports as w, agentControllerPermissionModeSchema as wn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as wt, createRoutinesApi as x, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as xn, organizationSkillSummarySchema as xt, createProfileSpaceHistoryApi as y, START_BOUNDED_VERSION_SCHEMA as yn, organizationSkillBundleSchema as yt, buildOpenMeldRequestContextHeaders as z, updateCenterAgentRoutineResponseSchema as zt };
18316
18368
 
18317
- //# sourceMappingURL=dist-D9pWrVPX.js.map
18369
+ //# sourceMappingURL=dist-B_-F8sNq.js.map