openmeld 0.3.105 → 0.3.106

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.
@@ -6608,6 +6608,17 @@ const channelContextSchema = z.strictObject({
6608
6608
  //#region ../../packages/schemas/dist/schemas/runtime/remote-agent-turn-envelope.js
6609
6609
  const nonEmptyStringSchema$1 = z.string().trim().min(1);
6610
6610
  const REMOTE_AGENT_TURN_ENVELOPE_MEMORY_ITEM_TEXT_MAX_CHARS = 1200;
6611
+ const remoteAgentWorkLoopCheckpointSchema = z.strictObject({
6612
+ reason: z.literal("tool_call_budget_exhausted"),
6613
+ toolCallLimit: z.number().int().positive(),
6614
+ v: z.literal(1)
6615
+ });
6616
+ const remoteAgentWorkLoopContinuationSchema = z.strictObject({
6617
+ attempt: z.number().int().positive().max(8),
6618
+ previousSubmissionId: nonEmptyStringSchema$1,
6619
+ reason: z.literal("tool_call_budget_exhausted"),
6620
+ v: z.literal(1)
6621
+ });
6611
6622
  const remoteAgentInteractionEnvironmentSchema = z.enum([
6612
6623
  "requester_private",
6613
6624
  "organization_shared",
@@ -6803,7 +6814,8 @@ const remoteAgentTurnEnvelopeSchema = z.strictObject({
6803
6814
  interactionEnvironment: remoteAgentInteractionEnvironmentSchema.optional(),
6804
6815
  centerAgentInteractionSource: centerAgentInteractionSourceSchema.optional(),
6805
6816
  channelContext: channelContextSchema.optional(),
6806
- memory: remoteAgentTurnEnvelopeMemorySchema.optional()
6817
+ memory: remoteAgentTurnEnvelopeMemorySchema.optional(),
6818
+ workLoopContinuation: remoteAgentWorkLoopContinuationSchema.optional()
6807
6819
  }).superRefine((envelope, context) => {
6808
6820
  const hasRoutineSender = envelope.sender.kind === "routine";
6809
6821
  if (hasRoutineSender !== (envelope.trigger.source === "routine")) {
@@ -8303,6 +8315,50 @@ const remoteAgentRuntimeCallbackContextDiagnosticSchema = z.strictObject({
8303
8315
  submissionId: nonEmptyStringSchema,
8304
8316
  updatedAtMs: z.number().int().nonnegative()
8305
8317
  });
8318
+ const remoteAgentRecentToolCallDiagnosticSchema = z.strictObject({
8319
+ calledAtMs: z.number().int().nonnegative(),
8320
+ source: z.enum(["code_mode", "direct"]),
8321
+ toolName: nonEmptyStringSchema.max(160)
8322
+ });
8323
+ const remoteAgentCapabilityDiscoveryDiagnosticSchema = z.strictObject({
8324
+ capabilityNames: z.array(nonEmptyStringSchema.max(160)).max(12),
8325
+ observedAtMs: z.number().int().nonnegative(),
8326
+ operation: z.enum(["describe", "search"]),
8327
+ resultCount: z.number().int().nonnegative()
8328
+ });
8329
+ const remoteAgentProviderRequestDiagnosticSchema = z.strictObject({
8330
+ availableToolCount: z.number().int().nonnegative(),
8331
+ deferredToolCount: z.number().int().nonnegative(),
8332
+ exposedToolCount: z.number().int().nonnegative(),
8333
+ modelId: nullableNonEmptyStringSchema,
8334
+ preparedAtMs: z.number().int().nonnegative()
8335
+ });
8336
+ const remoteAgentTurnRuntimeEvidenceSchema = z.strictObject({
8337
+ budgetExhaustedAtMs: nullableNonNegativeIntegerSchema,
8338
+ capabilityDescribeCount: z.number().int().nonnegative(),
8339
+ capabilitySearchCount: z.number().int().nonnegative(),
8340
+ codeModeToolCallCount: z.number().int().nonnegative(),
8341
+ directToolCallCount: z.number().int().nonnegative(),
8342
+ firstAssistantTextAtMs: nullableNonNegativeIntegerSchema,
8343
+ firstModelEventAtMs: nullableNonNegativeIntegerSchema,
8344
+ firstProviderRequestPreparedAtMs: nullableNonNegativeIntegerSchema,
8345
+ firstProviderResponseHeadersAtMs: nullableNonNegativeIntegerSchema,
8346
+ firstVisibleContentAtMs: nullableNonNegativeIntegerSchema,
8347
+ lastModelCompletedAtMs: nullableNonNegativeIntegerSchema,
8348
+ modelCallCount: z.number().int().nonnegative(),
8349
+ modelId: nullableNonEmptyStringSchema,
8350
+ providerAvailableToolCount: z.number().int().nonnegative(),
8351
+ providerDeferredToolCount: z.number().int().nonnegative(),
8352
+ providerExposedToolCount: z.number().int().nonnegative(),
8353
+ providerRequestCount: z.number().int().nonnegative(),
8354
+ recentCapabilityDiscovery: z.array(remoteAgentCapabilityDiscoveryDiagnosticSchema).max(16),
8355
+ recentProviderRequests: z.array(remoteAgentProviderRequestDiagnosticSchema).max(16),
8356
+ recentToolCalls: z.array(remoteAgentRecentToolCallDiagnosticSchema).max(32),
8357
+ submissionId: nonEmptyStringSchema,
8358
+ toolCallCount: z.number().int().nonnegative(),
8359
+ toolCallLimit: z.number().int().positive(),
8360
+ updatedAtMs: z.number().int().nonnegative()
8361
+ });
8306
8362
  const remoteAgentWorkerRuntimeDiagnosticsResponseSchema = z.strictObject({
8307
8363
  activeRuns: z.array(remoteAgentRuntimeActiveRunDiagnosticSchema).max(50),
8308
8364
  attemptMarkers: z.array(remoteAgentRuntimeAttemptMarkerDiagnosticSchema).max(50),
@@ -8313,6 +8369,7 @@ const remoteAgentWorkerRuntimeDiagnosticsResponseSchema = z.strictObject({
8313
8369
  schedules: z.array(remoteAgentRuntimeScheduleDiagnosticSchema).max(50),
8314
8370
  spaceId: nonEmptyStringSchema,
8315
8371
  submissions: z.array(remoteAgentRuntimeSubmissionDiagnosticSchema).max(50),
8372
+ turnObservability: z.array(remoteAgentTurnRuntimeEvidenceSchema).max(50).optional(),
8316
8373
  v: z.literal(1)
8317
8374
  });
8318
8375
  const remoteAgentCoreCallbackIdentitySchema = {
@@ -8417,6 +8474,12 @@ const remoteAgentCoreCallbackBodySchema = z.union([z.strictObject({
8417
8474
  failureDetail: optionalDispatchErrorSummarySchema,
8418
8475
  failureMessage: nonEmptyStringSchema
8419
8476
  })]);
8477
+ const remoteAgentCoreWorkLoopContinuationCallbackBodySchema = z.strictObject({
8478
+ ...remoteAgentCoreCallbackIdentitySchema,
8479
+ checkpoint: remoteAgentWorkLoopCheckpointSchema,
8480
+ status: z.literal("continuation_required")
8481
+ });
8482
+ z.union([remoteAgentCoreCallbackBodySchema, remoteAgentCoreWorkLoopContinuationCallbackBodySchema]);
8420
8483
  z.discriminatedUnion("kind", [z.strictObject({
8421
8484
  callback: remoteAgentCoreCallbackBodySchema,
8422
8485
  kind: z.literal("callback")
@@ -17819,4 +17882,4 @@ function composeAbortSignals(parent, timeout) {
17819
17882
  //#endregion
17820
17883
  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 };
17821
17884
 
17822
- //# sourceMappingURL=dist-CuQqXkoG.js.map
17885
+ //# sourceMappingURL=dist-CPAHV-4Q.js.map