openmeld 0.3.102 → 0.3.104
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.
- package/dist/{add-me-membership-B9wZDO20.js → add-me-membership-Casn6zb0.js} +2 -2
- package/dist/{add-me-membership-B9wZDO20.js.map → add-me-membership-Casn6zb0.js.map} +1 -1
- package/dist/{api-client-foundation-DeooQ7uc.js → api-client-foundation-57KKhzub.js} +3 -3
- package/dist/{api-client-foundation-DeooQ7uc.js.map → api-client-foundation-57KKhzub.js.map} +1 -1
- package/dist/{auth-session-B674DZbl.js → auth-session-DEVzh7Bz.js} +2 -2
- package/dist/{auth-session-B674DZbl.js.map → auth-session-DEVzh7Bz.js.map} +1 -1
- package/dist/{command-va-N33Mm.js → command-B1rCpH8H.js} +64 -13
- package/dist/{command-va-N33Mm.js.map → command-B1rCpH8H.js.map} +1 -1
- package/dist/{dist-DVDx0sTd.js → dist-kEVPxDxn.js} +5 -4
- package/dist/{dist-DVDx0sTd.js.map → dist-kEVPxDxn.js.map} +1 -1
- package/dist/openmeld.js +39 -22
- package/dist/openmeld.js.map +1 -1
- package/dist/{runtime-transport-BNCM_pH9.js → runtime-transport-BzWHDehI.js} +43 -2
- package/dist/{runtime-transport-BNCM_pH9.js.map → runtime-transport-BzWHDehI.js.map} +1 -1
- package/package.json +1 -1
|
@@ -495,6 +495,47 @@ const INTERACTION_PLAN_REQUIRED_PUBLIC_COPY = "The local agent asked for plan ap
|
|
|
495
495
|
const INTERACTION_UNSUPPORTED_PUBLIC_COPY = "The local agent requested an interactive response that OpenMeld does not support yet. Run the task directly in the local agent, resolve the request there, then wake it again.";
|
|
496
496
|
const OPENCLAW_PERMISSION_REQUIRED_RE = /\b[a-z0-9_]+_permission_required\b/;
|
|
497
497
|
const LEADING_ERROR_CODE_PREFIX_RE = /^[a-z][\w.]*:\s+/i;
|
|
498
|
+
const HTML_ERROR_BODY_RE = /^\s*</;
|
|
499
|
+
const DISPATCH_ERROR_REDACTION_REPLACEMENTS = [
|
|
500
|
+
[/\b(authorization\s*:\s*(?:bearer|basic)\s+)[^\s,;]+/gi, "$1[redacted]"],
|
|
501
|
+
[/\b((?:set-cookie|cookie)\s*:\s*)[^\r\n]+/gi, "$1[redacted]"],
|
|
502
|
+
[/\b((?:api[_-]?key|access[_-]?token|refresh[_-]?token|secret|password)\s*[:=]\s*["']?)[^"',;\s}]+/gi, "$1[redacted]"],
|
|
503
|
+
[/\bopenMeldDaemon_[A-Za-z0-9._~:/+=-]+/g, "[redacted]"],
|
|
504
|
+
[/\b[A-Fa-f0-9]{40,}\b/g, "[redacted]"],
|
|
505
|
+
[/\b[A-Za-z0-9+/]{40,}={0,2}/g, "[redacted]"]
|
|
506
|
+
];
|
|
507
|
+
function normalizeDispatchErrorSummaryPart(value) {
|
|
508
|
+
if (typeof value !== "string") return null;
|
|
509
|
+
let normalized = value.trim().replace(/\s+/g, " ");
|
|
510
|
+
if (!normalized) return null;
|
|
511
|
+
for (const [pattern, replacement] of DISPATCH_ERROR_REDACTION_REPLACEMENTS) normalized = normalized.replace(pattern, replacement);
|
|
512
|
+
return normalized;
|
|
513
|
+
}
|
|
514
|
+
function truncateDispatchErrorSummary(value) {
|
|
515
|
+
if (value.length <= 512) return value;
|
|
516
|
+
return `${value.slice(0, 511).trimEnd()}…`;
|
|
517
|
+
}
|
|
518
|
+
function sanitizeDispatchErrorSummary(errorMessage) {
|
|
519
|
+
const normalizedInput = normalizeDispatchErrorSummaryPart(errorMessage);
|
|
520
|
+
if (!normalizedInput) return null;
|
|
521
|
+
try {
|
|
522
|
+
const parsed = JSON.parse(errorMessage ?? "");
|
|
523
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
524
|
+
const root = parsed;
|
|
525
|
+
const nested = root.error && typeof root.error === "object" && !Array.isArray(root.error) ? root.error : root;
|
|
526
|
+
const code = normalizeDispatchErrorSummaryPart(nested.code);
|
|
527
|
+
const type = normalizeDispatchErrorSummaryPart(nested.type);
|
|
528
|
+
const message = normalizeDispatchErrorSummaryPart(nested.message) ?? normalizeDispatchErrorSummaryPart(nested.detail) ?? normalizeDispatchErrorSummaryPart(root.detail);
|
|
529
|
+
let classification = type;
|
|
530
|
+
if (code) classification = type && type !== code ? `${code} (${type})` : code;
|
|
531
|
+
const summary = [classification, message].filter(Boolean).join(": ");
|
|
532
|
+
if (summary) return truncateDispatchErrorSummary(summary);
|
|
533
|
+
return "The provider request failed; see operator logs for details.";
|
|
534
|
+
}
|
|
535
|
+
} catch {}
|
|
536
|
+
if (HTML_ERROR_BODY_RE.test(errorMessage ?? "")) return "The provider request failed; see operator logs for details.";
|
|
537
|
+
return truncateDispatchErrorSummary(normalizedInput);
|
|
538
|
+
}
|
|
498
539
|
const CONTROLLER_SIGN_IN_AVAILABILITY_COPY_BY_ID = {
|
|
499
540
|
"claude-code": {
|
|
500
541
|
summary: "Run claude in a terminal on this computer, then sign in to Claude Code.",
|
|
@@ -6848,6 +6889,6 @@ z.strictObject({
|
|
|
6848
6889
|
})
|
|
6849
6890
|
});
|
|
6850
6891
|
//#endregion
|
|
6851
|
-
export { agentTaskTerminalOutcomeSchema as $, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as $n, conversationExecutionStateSchema as $t, runtimeTransportResumeControllerConversationFramePayloadSchema as A, agentInteractionRequestSchema as An, resolvePublicAgentAvailabilityCopy as Ar, centerAgentInteractionSourceSchema as At, openMeldSpaceEgressActionSchema as B, localComponentUpdateProjectionSchema as Bn, restoreSpaceFileRevisionResponseSchema as Bt, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as C, spaceAgentStreamDeltaFrameSchema as Cn, finiteIntegerNumber as Cr, spaceAttachmentFileNameSchema as Ct, runtimeTransportRegisterSessionRequestSchema as D, spaceAgentStreamTerminalFrameSchema as Dn, MAX_TEXT_LENGTH as Dr, spaceMessageAttachmentsSchema as Dt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as E, spaceAgentStreamSnapshotSchema as En, trimmedStringFromUnknown as Er, spaceMessageAttachmentSchema as Et, openMeldDaemonProviderAccessEvidenceProviderSchema as F, formatLocalSetupActionDescription as Fn,
|
|
6892
|
+
export { agentTaskTerminalOutcomeSchema as $, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as $n, conversationExecutionStateSchema as $t, runtimeTransportResumeControllerConversationFramePayloadSchema as A, agentInteractionRequestSchema as An, resolvePublicAgentAvailabilityCopy as Ar, centerAgentInteractionSourceSchema as At, openMeldSpaceEgressActionSchema as B, localComponentUpdateProjectionSchema as Bn, restoreSpaceFileRevisionResponseSchema as Bt, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as C, spaceAgentStreamDeltaFrameSchema as Cn, finiteIntegerNumber as Cr, spaceAttachmentFileNameSchema as Ct, runtimeTransportRegisterSessionRequestSchema as D, spaceAgentStreamTerminalFrameSchema as Dn, MAX_TEXT_LENGTH as Dr, spaceMessageAttachmentsSchema as Dt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as E, spaceAgentStreamSnapshotSchema as En, trimmedStringFromUnknown as Er, spaceMessageAttachmentSchema as Et, openMeldDaemonProviderAccessEvidenceProviderSchema as F, formatLocalSetupActionDescription as Fn, openMeldNavigationTargetSchema as Fr, isSpaceFileTextEditable as Ft, localFolderPickerHelperResultSchema as G, clientMessageIdSchema as Gn, updateSpaceFileEntryResponseSchema as Gt, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as H, localServiceComponentUpdateProjectionSchema as Hn, spaceFileNameSchema as Ht, openMeldDaemonTaskResultEnvelopeWriteSchema as I, formatLocalSetupActionLabel as In, openMeldWebUrlSchema as Ir, listSpaceFileRevisionsResponseSchema as It, localFolderPathSchema as J, runtimeCoordinatorExecutionEventSchema as Jn, openMeldDaemonControlPlaneRequestSchema as Jt, localFolderPickerRequestSchema as K, parseOptionalClientMessageId as Kn, uploadSpaceFileResponseSchema as Kt, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as L, installedLocalComponentsSnapshotSchema as Ln, resolveCommandAgentWorkActivity as Lr, listSpaceFilesResponseSchema as Lt, runtimeTransportRouteCatalogChangedFramePayloadSchema as M, agentInteractionResponseSchema as Mn, sanitizeDispatchErrorSummary as Mr, SPACE_FILE_MAX_SIZE_BYTES as Mt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as N, formatLocalComponentsSummaryDescription as Nn, shouldPreferMappedPublicAgentFailureReason as Nr, createSpaceFolderResponseSchema as Nt, runtimeTransportRegisterSessionResponseSchema as O, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as On, resolveDetailedPublicAgentFailureReason as Or, conversationCompactionMarkerSchema as Ot, runtimeTransportSubmitTaskResultRequestSchema as P, formatLocalComponentsSummaryLabel as Pn, computerSetupModeSchema as Pr, getSpaceFileResponseSchema as Pt, agentTaskHandleSchema as Q, spaceTraceExecutionIdentityProjectionSchema as Qn, providerDispatchRuntimeContextSchema as Qt, openMeldDaemonTaskResultPayloadSchema as R, localCliComponentUpdateProjectionSchema as Rn, resolveSpaceFileMimeType as Rt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as S, agentStreamToolPartSchema as Sn, uuidProfileIdSchema as Sr, spaceAttachmentDimensionSchema as St, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as T, spaceAgentStreamPresenceSchema as Tn, optionalBooleanQuerySchema as Tr, spaceAttachmentSizeBytesSchema as Tt, localFolderPickerDaemonFrameSchema as U, postSpaceWakeStopBodySchema as Un, spaceMessageFileReferencesSchema as Ut, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as V, localComponentUpdateStatusSchema as Vn, spaceFileMimeTypeSchema as Vt, localFolderPickerHelperProtocolResultSchema as W, postSpaceWakeStopResponseSchema as Wn, trashSpaceFileEntryResponseSchema as Wt, agentTaskCompletionConditionSchema as X, runtimeCoordinatorExecutionTokenEnvelopeSchema as Xn, openMeldDaemonSyncRouteCatalogPayloadSchema as Xt, agentDelegationSnapshotSchema as Y, runtimeCoordinatorExecutionRecordSchema as Yn, openMeldDaemonControlPlaneResponseSchema as Yt, agentTaskCompletionObservationSchema as Z, runtimeTransportDeliveryExecutionIdentitySchema as Zn, skippedDaemonProfileSchema as Zt, runtimeTransportHeartbeatRequestSchema as _, getSpaceMessageAddressingRelationSupportForTargetKind as _n, openMeldRuntimeProfileIdSchema as _r, signalStatusDataSchema as _t, runtimeTransportCapabilitiesSchema as a, spaceContractFieldsSchema as an, spaceMentionLabelSourceSchema as ar, AGENT_REPLYING_PURPOSE as at, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as b, resolveMessageEnvelopeTargetField as bn, profileWorkingDirectorySchema as br, signalTextSchema as bt, runtimeTransportDispatchInteractionRequestSchema as c, spaceAllowedActionsSchema as cn, updateOrganizationInformationProtectionPolicyBodySchema as cr, CONVERSATION_CONTINUITY_WARNING_PURPOSE as ct, runtimeTransportDispatchPreviewEndRequestSchema as d, workingLanguageGuidanceSchema as dn, inspectExecutionRecoveryResponseSchema as dr, DISPATCH_ACTIVITY_RETRYING_PURPOSE as dt, dispatchExecutionSchema as en, normalizeSpacePasswordText as er, areAgentTaskTerminalOutcomesEqual as et, runtimeTransportDispatchPreviewRequestSchema as f, workingLanguageTagSchema as fn, openMeldProfileIdSchema as fr, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as ft, runtimeTransportForkAgentSessionResultSchema as g, formatCanonicalMentionLiteral as gn, normalizeOptionalWorkingDirectory as gr, sanitizeSignalTextPreview as gt, runtimeTransportErrorCodeSchema as h, collectCanonicalMentionTextFragments as hn, agentProfileIdSchema as hr, centerAgentTaskReferenceSchema as ht, localWakeRouteReportSchema as i, spaceThreadSignalPlacementSchema as in, spaceMentionLabelSchema as ir, AGENT_REPLYING_END_PURPOSE as it, runtimeTransportResumeControllerConversationResultFramePayloadSchema as j, agentInteractionResolutionSchema as jn, resolvePublicAgentFailureRecovery as jr, SPACE_FILE_ERROR_CODES as jt, runtimeTransportRejectedProfileRegistrationSchema as k, agentInteractionPendingSummarySchema as kn, resolveMappedPublicAgentFailureReason as kr, spaceStatusSchema as kt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as l, spacePublicationModeSchema as ln, executeExecutionRecoveryBodySchema as lr, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as lt, runtimeTransportDispatchToolActivityRequestSchema as m, MESSAGE_MENTION_TYPE_VALUES as mn, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as mr, SPACE_MENTION_REJECT_NOTICE_PURPOSE as mt, daemonExecutionCompatibilitySchema as n, spaceThreadEventSchema as nn, resolveSingleSpaceMentionLabels as nr, controllerAgentTaskHandleSchema as nt, runtimeTransportDeliverDispatchRequestSchema as o, spaceContractSchema as on, organizationInformationProtectionPolicyResponseSchema as or, AGENT_REPLY_PREVIEW_END_PURPOSE as ot, runtimeTransportDispatchRuntimeEvidenceRequestSchema as p, targetWakeLifecycleIdentitySchema as pn, openMeldRequestContextSchema as pr, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as pt, localFolderPickerResultSchema as q, runtimeCoordinatorExecutionCreationDiagnosticSchema as qn, localAgentInstallationOptionSchema as qt, daemonStreamFrameSchema as r, spaceThreadSchema as rn, resolveSpaceMentionLabels as rr, spaceWakeAgentTaskHandleSchema as rt, runtimeTransportDispatchInteractionDeliveredRequestSchema as s, resultArchivePolicySchema as sn, organizationProtectedInformationSchema as sr, AGENT_REPLY_PREVIEW_PURPOSE as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, spaceThreadContextSchema as tn, spacePasswordSchema as tr, buildAgentTaskKey as tt, runtimeTransportDispatchLifecycleRequestSchema as u, spaceDispatchPolicySchema as un, executeExecutionRecoveryResponseSchema as ur, DISPATCH_ACTIVITY_FAILED_PURPOSE as ut, runtimeTransportHeartbeatResponseSchema as v, messageEnvelopeSchema as vn, profileKindSchema as vr, signalSystemNoticeDataSchema as vt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as w, spaceAgentStreamPartFrameSchema as wn, nonEmptyTrimmedStringFromUnknown as wr, spaceAttachmentMimeTypeSchema as wt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as x, AGENT_STREAM_SNAPSHOT_MAX_CHARS as xn, profileWorkspaceModeSchema as xr, spaceAttachmentDescriptorSchema as xt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as y, normalizeMessageEnvelope as yn, profileSchema as yr, signalTextDataSchema as yt, openMeldDaemonTaskResultProjectFailureContextSchema as z, localComponentUpdatePolicySchema as zn, restoreSpaceFileEntryResponseSchema as zt };
|
|
6852
6893
|
|
|
6853
|
-
//# sourceMappingURL=runtime-transport-
|
|
6894
|
+
//# sourceMappingURL=runtime-transport-BzWHDehI.js.map
|