openmeld 0.3.71 → 0.3.73
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-YWeGtXLy.js → add-me-membership-DeRldAKA.js} +2 -2
- package/dist/{add-me-membership-YWeGtXLy.js.map → add-me-membership-DeRldAKA.js.map} +1 -1
- package/dist/{api-client-foundation-Oxjet9nL.js → api-client-foundation-26lWUTQ9.js} +3 -3
- package/dist/{api-client-foundation-Oxjet9nL.js.map → api-client-foundation-26lWUTQ9.js.map} +1 -1
- package/dist/{auth-session-C7ZQlX6v.js → auth-session-zqpRQEFv.js} +2 -2
- package/dist/{auth-session-C7ZQlX6v.js.map → auth-session-zqpRQEFv.js.map} +1 -1
- package/dist/{command-QtSLFcgW.js → command-Doy58YKi.js} +201 -63
- package/dist/{command-QtSLFcgW.js.map → command-Doy58YKi.js.map} +1 -1
- package/dist/{dist-T_HVDqzT.js → dist-WHWyUs8I.js} +201 -112
- package/dist/dist-WHWyUs8I.js.map +1 -0
- package/dist/openmeld.js +6 -6
- package/dist/{runtime-transport-CaAK1jo1.js → runtime-transport-BxhzIxn4.js} +8 -1
- package/dist/{runtime-transport-CaAK1jo1.js.map → runtime-transport-BxhzIxn4.js.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-T_HVDqzT.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { cn as agentControllerRefSchema, hn as __exportAll, tn as runtimeTransportModeSchema } from "./base-url-KfrIdedc.js";
|
|
4
|
-
import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-
|
|
4
|
+
import { $ as localFolderPickerResultSchema, $n as organizationInformationProtectionPolicyResponseSchema, At as spaceAttachmentDescriptorSchema, Bn as runtimeCoordinatorExecutionCreationDiagnosticSchema, Bt as localAgentInstallationOptionSchema, Ct as signalStatusDataSchema, Dr as openMeldNavigationTargetSchema, Er as computerSetupModeSchema, Et as signalTextSchema, F as runtimeTransportRuntimeCoordinatorHeadNoExecutionRecoveryActionSchema, Ft as spaceMessageAttachmentSchema, G as openMeldDaemonTaskResultProjectFailureContextSchema, Gn as spaceTraceExecutionIdentityProjectionSchema, Hn as runtimeCoordinatorExecutionRecordSchema, I as runtimeTransportRuntimeCoordinatorHeadWaitingCategorySchema, In as postSpaceWakeStopBodySchema, It as spaceMessageAttachmentsSchema, Jn as spacePasswordSchema, Jt as spaceThreadContextSchema, Kn as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, L as runtimeTransportRuntimeCoordinatorHeadWaitingReasonCodeSchema, Ln as postSpaceWakeStopResponseSchema, Lt as conversationCompactionMarkerSchema, M as runtimeTransportRuntimeCoordinatorHeadNoExecutionDecisionSourceSchema, Mn as localComponentUpdatePolicySchema, Mt as spaceAttachmentFileNameSchema, N as runtimeTransportRuntimeCoordinatorHeadNoExecutionPublicationCategorySchema, Nn as localComponentUpdateProjectionSchema, Nt as spaceAttachmentMimeTypeSchema, Or as openMeldWebUrlSchema, P as runtimeTransportRuntimeCoordinatorHeadNoExecutionReasonCodeSchema, Pn as localComponentUpdateStatusSchema, Pt as spaceAttachmentSizeBytesSchema, Q as localFolderPickerRequestSchema, Qn as spaceMentionLabelSourceSchema, R as runtimeTransportRuntimeCoordinatorHeadWaitingRecoveryActionSchema, Rn as clientMessageIdSchema$1, Sn as agentInteractionPendingSummarySchema, Tn as agentInteractionResponseSchema, Tt as signalTextDataSchema, Ut as openMeldDaemonSyncRouteCatalogPayloadSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as runtimeCoordinatorExecutionEventSchema, Xt as spaceThreadSchema, Yt as spaceThreadEventSchema, Zn as spaceMentionLabelSchema, Zt as spaceThreadSignalPlacementSchema, _n as spaceAgentStreamPartFrameSchema, _r as nonEmptyTrimmedStringFromUnknown, an as workingLanguageTagSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceAgentStreamTerminalFrameSchema, br as MAX_TEXT_LENGTH$1, cr as agentProfileIdSchema, ct as controllerAgentTaskHandleSchema, dn as messageEnvelopeSchema, dr as profileKindSchema, en as resultArchivePolicySchema, er as organizationProtectedInformationSchema, et as localFolderPathSchema, fr as profileSchema, gn as spaceAgentStreamDeltaFrameSchema, gr as finiteIntegerNumber, hn as agentStreamToolPartSchema, hr as uuidProfileIdSchema, in as workingLanguageGuidanceSchema, ir as inspectExecutionRecoveryResponseSchema, it as agentTaskHandleSchema, j as runtimeTransportRuntimeCoordinatorHeadLifecycleStatusSchema, jt as spaceAttachmentDimensionSchema, lt as spaceWakeAgentTaskHandleSchema, mn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, mr as profileWorkspaceModeSchema, n as daemonExecutionCompatibilitySchema, nn as spacePublicationModeSchema, nr as executeExecutionRecoveryBodySchema, nt as agentTaskCompletionConditionSchema, on as targetWakeLifecycleIdentitySchema, or as openMeldRequestContextSchema, ot as areAgentTaskTerminalOutcomesEqual, pr as profileWorkingDirectorySchema, qn as normalizeSpacePasswordText, qt as dispatchExecutionSchema, rn as spaceDispatchPolicySchema, rr as executeExecutionRecoveryResponseSchema, rt as agentTaskCompletionObservationSchema, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceAllowedActionsSchema, tr as updateOrganizationInformationProtectionPolicyBodySchema, tt as agentDelegationSnapshotSchema, ur as openMeldRuntimeProfileIdSchema, vn as spaceAgentStreamPresenceSchema, vr as optionalBooleanQuerySchema, wt as signalSystemNoticeDataSchema, xt as centerAgentTaskReferenceSchema, yn as spaceAgentStreamSnapshotSchema, yr as trimmedStringFromUnknown, z as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, zt as centerAgentInteractionSourceSchema } from "./runtime-transport-BxhzIxn4.js";
|
|
5
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-DZWQdPz5.js";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
7
|
//#region ../../packages/schemas/dist/agent-execution-readiness-impact-taxonomy.js
|
|
@@ -440,6 +440,30 @@ const organizationBindingAuthorizationPreferenceSchema = z.strictObject({
|
|
|
440
440
|
const setOrganizationBindingAuthorizationPreferenceBodySchema = z.strictObject({ autoAuthorizeAgentProfileBindings: z.boolean() });
|
|
441
441
|
const getOrganizationBindingAuthorizationPreferenceResponseSchema = organizationBindingAuthorizationPreferenceSchema;
|
|
442
442
|
const setOrganizationBindingAuthorizationPreferenceResponseSchema = organizationBindingAuthorizationPreferenceSchema;
|
|
443
|
+
const agentProfileCreationDefaultsFields = {
|
|
444
|
+
agentControllerPermissionMode: agentControllerPermissionModeSchema.nullable(),
|
|
445
|
+
defaultProjectId: boundedIdentifierSchema$11.nullable(),
|
|
446
|
+
modelId: boundedIdentifierSchema$11.nullable(),
|
|
447
|
+
openCodePermission: openCodePermissionConfigSchema.nullable(),
|
|
448
|
+
reasoningLevel: boundedIdentifierSchema$11.nullable()
|
|
449
|
+
};
|
|
450
|
+
function requireCreationDefaultsModelForReasoning(value, context) {
|
|
451
|
+
if (value.reasoningLevel && !value.modelId) context.addIssue({
|
|
452
|
+
code: "custom",
|
|
453
|
+
message: "reasoningLevel requires modelId",
|
|
454
|
+
path: ["reasoningLevel"]
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
const setAgentProfileCreationDefaultsBodySchema = z.strictObject(agentProfileCreationDefaultsFields).superRefine(requireCreationDefaultsModelForReasoning);
|
|
458
|
+
const agentProfileCreationDefaultsSchema = z.strictObject({
|
|
459
|
+
...agentProfileCreationDefaultsFields,
|
|
460
|
+
agentControllerRef: boundedIdentifierSchema$11,
|
|
461
|
+
organizationId: boundedIdentifierSchema$11,
|
|
462
|
+
updatedAt: z.iso.datetime({ offset: true }).nullable(),
|
|
463
|
+
userId: boundedIdentifierSchema$11
|
|
464
|
+
}).superRefine(requireCreationDefaultsModelForReasoning);
|
|
465
|
+
const getAgentProfileCreationDefaultsResponseSchema = agentProfileCreationDefaultsSchema;
|
|
466
|
+
const setAgentProfileCreationDefaultsResponseSchema = agentProfileCreationDefaultsSchema;
|
|
443
467
|
const saveOrganizationWakeAccessChoiceBodySchema = z.strictObject({ enableWakeAccess: z.boolean() });
|
|
444
468
|
const saveOrganizationWakeAccessChoiceResponseSchema = z.strictObject({
|
|
445
469
|
alreadyAuthorizedCount: z.number().int().nonnegative(),
|
|
@@ -1927,6 +1951,17 @@ const MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
|
1927
1951
|
const nonEmptyStringSchema$4 = z.string().trim().min(1);
|
|
1928
1952
|
const providerIdSchema = nonEmptyStringSchema$4.max(512);
|
|
1929
1953
|
const timestampMsSchema$5 = z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1954
|
+
const slackMessagePermalinkSchema = z.url().max(2048).refine(isSlackMessagePermalink, { message: "Slack permalinks must use an HTTPS slack.com host." });
|
|
1955
|
+
function isSlackMessagePermalink(value) {
|
|
1956
|
+
let url;
|
|
1957
|
+
try {
|
|
1958
|
+
url = new URL(value);
|
|
1959
|
+
} catch {
|
|
1960
|
+
return false;
|
|
1961
|
+
}
|
|
1962
|
+
const hostname = url.hostname.toLowerCase();
|
|
1963
|
+
return url.protocol === "https:" && !url.username && !url.password && (hostname === "slack.com" || hostname.endsWith(".slack.com"));
|
|
1964
|
+
}
|
|
1930
1965
|
const messageChannelProviderSchema = z.enum(MESSAGE_CHANNEL_PROVIDERS);
|
|
1931
1966
|
const messageChannelParticipantIdentitySchema = z.strictObject({
|
|
1932
1967
|
connectionId: providerIdSchema,
|
|
@@ -3966,6 +4001,115 @@ z.strictObject({
|
|
|
3966
4001
|
request: computerFileAccessUpdateRequestSchema
|
|
3967
4002
|
});
|
|
3968
4003
|
//#endregion
|
|
4004
|
+
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
4005
|
+
const helloCapabilitiesSchema = z.object({ liveSignalHistory: z.boolean().optional() });
|
|
4006
|
+
z.object({
|
|
4007
|
+
type: z.literal("hello"),
|
|
4008
|
+
profile: profileSchema,
|
|
4009
|
+
capabilities: helloCapabilitiesSchema.optional()
|
|
4010
|
+
});
|
|
4011
|
+
const helloAckSchema = z.object({
|
|
4012
|
+
type: z.literal("system.hello.ack"),
|
|
4013
|
+
profile: profileSchema
|
|
4014
|
+
});
|
|
4015
|
+
//#endregion
|
|
4016
|
+
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
4017
|
+
const serverErrorFrameSchema = z.object({
|
|
4018
|
+
error: nonEmptyTrimmedStringFromUnknown,
|
|
4019
|
+
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
4020
|
+
clientMessageId: clientMessageIdSchema$1.optional()
|
|
4021
|
+
});
|
|
4022
|
+
//#endregion
|
|
4023
|
+
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
4024
|
+
const baseEnvelopeShape = {
|
|
4025
|
+
v: z.literal(1),
|
|
4026
|
+
id: nonEmptyTrimmedStringFromUnknown,
|
|
4027
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
4028
|
+
ts: finiteIntegerNumber,
|
|
4029
|
+
profile: profileSchema
|
|
4030
|
+
};
|
|
4031
|
+
const presenceDataSchema = z.record(z.string(), z.unknown());
|
|
4032
|
+
const presenceEnvelopeSchema = z.object({
|
|
4033
|
+
...baseEnvelopeShape,
|
|
4034
|
+
type: z.enum(["presence.join", "presence.quit"]),
|
|
4035
|
+
data: presenceDataSchema
|
|
4036
|
+
});
|
|
4037
|
+
const signalTextEnvelopeSchema = z.object({
|
|
4038
|
+
...baseEnvelopeShape,
|
|
4039
|
+
type: z.literal("signal.text"),
|
|
4040
|
+
data: signalTextDataSchema
|
|
4041
|
+
});
|
|
4042
|
+
const signalStatusEnvelopeSchema = z.object({
|
|
4043
|
+
...baseEnvelopeShape,
|
|
4044
|
+
type: z.literal("signal.status"),
|
|
4045
|
+
data: signalStatusDataSchema
|
|
4046
|
+
});
|
|
4047
|
+
const signalSystemNoticeEnvelopeSchema = z.object({
|
|
4048
|
+
...baseEnvelopeShape,
|
|
4049
|
+
type: z.literal("signal.system_notice"),
|
|
4050
|
+
data: signalSystemNoticeDataSchema
|
|
4051
|
+
});
|
|
4052
|
+
const signalEnvelopeSchema = z.union([
|
|
4053
|
+
presenceEnvelopeSchema,
|
|
4054
|
+
signalTextEnvelopeSchema,
|
|
4055
|
+
signalStatusEnvelopeSchema,
|
|
4056
|
+
signalSystemNoticeEnvelopeSchema
|
|
4057
|
+
]);
|
|
4058
|
+
const spaceLiveSignalFrameSchema = z.strictObject({
|
|
4059
|
+
type: z.literal("space.signal"),
|
|
4060
|
+
signal: signalEnvelopeSchema,
|
|
4061
|
+
history: z.strictObject({ persisted: z.boolean() }).optional(),
|
|
4062
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
4063
|
+
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
4064
|
+
});
|
|
4065
|
+
const spaceLiveInvalidationFrameSchema = z.strictObject({
|
|
4066
|
+
type: z.enum([
|
|
4067
|
+
"space.members.changed",
|
|
4068
|
+
"space.meta.changed",
|
|
4069
|
+
"agent.readiness.invalidated"
|
|
4070
|
+
]),
|
|
4071
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
4072
|
+
version: finiteIntegerNumber,
|
|
4073
|
+
profileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
4074
|
+
agentProfileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
4075
|
+
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
4076
|
+
});
|
|
4077
|
+
const incomingServerMessageSchema = z.union([
|
|
4078
|
+
signalEnvelopeSchema,
|
|
4079
|
+
spaceLiveSignalFrameSchema,
|
|
4080
|
+
spaceLiveInvalidationFrameSchema,
|
|
4081
|
+
spaceAgentStreamDeltaFrameSchema,
|
|
4082
|
+
spaceAgentStreamPartFrameSchema,
|
|
4083
|
+
spaceAgentStreamTerminalFrameSchema,
|
|
4084
|
+
helloAckSchema,
|
|
4085
|
+
serverErrorFrameSchema
|
|
4086
|
+
]);
|
|
4087
|
+
//#endregion
|
|
4088
|
+
//#region ../../packages/schemas/dist/schemas/http/space-signals.js
|
|
4089
|
+
const signalTextRequestDataSchema = signalTextSchema.shape.data;
|
|
4090
|
+
z.enum([
|
|
4091
|
+
"user_authored",
|
|
4092
|
+
"system_emitted",
|
|
4093
|
+
"legacy_nullable"
|
|
4094
|
+
]);
|
|
4095
|
+
const postNormalMessageBodySchema = z.strictObject({
|
|
4096
|
+
text: signalTextRequestDataSchema.shape.text,
|
|
4097
|
+
attachments: signalTextRequestDataSchema.shape.attachments.optional(),
|
|
4098
|
+
messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
|
|
4099
|
+
replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
|
|
4100
|
+
meta: signalTextRequestDataSchema.shape.meta.optional()
|
|
4101
|
+
}).superRefine((value, ctx) => {
|
|
4102
|
+
const parsed = signalTextRequestDataSchema.safeParse(value);
|
|
4103
|
+
if (parsed.success) return;
|
|
4104
|
+
const firstIssue = parsed.error.issues[0];
|
|
4105
|
+
ctx.addIssue({
|
|
4106
|
+
code: "custom",
|
|
4107
|
+
path: firstIssue?.path ?? [],
|
|
4108
|
+
message: firstIssue?.message ?? "Invalid normal message payload"
|
|
4109
|
+
});
|
|
4110
|
+
});
|
|
4111
|
+
const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
|
|
4112
|
+
//#endregion
|
|
3969
4113
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-context-manifest.js
|
|
3970
4114
|
const CENTER_AGENT_CONTEXT_MANIFEST_VERSION = "center_agent_context_manifest.v1";
|
|
3971
4115
|
const CENTER_AGENT_CONTEXT_LOAD_RECEIPT_VERSION = "center_agent_context_load_receipt.v1";
|
|
@@ -5301,90 +5445,6 @@ const catchupResponseSchema = z.strictObject({
|
|
|
5301
5445
|
};
|
|
5302
5446
|
});
|
|
5303
5447
|
//#endregion
|
|
5304
|
-
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
5305
|
-
const helloCapabilitiesSchema = z.object({ liveSignalHistory: z.boolean().optional() });
|
|
5306
|
-
z.object({
|
|
5307
|
-
type: z.literal("hello"),
|
|
5308
|
-
profile: profileSchema,
|
|
5309
|
-
capabilities: helloCapabilitiesSchema.optional()
|
|
5310
|
-
});
|
|
5311
|
-
const helloAckSchema = z.object({
|
|
5312
|
-
type: z.literal("system.hello.ack"),
|
|
5313
|
-
profile: profileSchema
|
|
5314
|
-
});
|
|
5315
|
-
//#endregion
|
|
5316
|
-
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
5317
|
-
const serverErrorFrameSchema = z.object({
|
|
5318
|
-
error: nonEmptyTrimmedStringFromUnknown,
|
|
5319
|
-
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
5320
|
-
clientMessageId: clientMessageIdSchema$1.optional()
|
|
5321
|
-
});
|
|
5322
|
-
//#endregion
|
|
5323
|
-
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
5324
|
-
const baseEnvelopeShape = {
|
|
5325
|
-
v: z.literal(1),
|
|
5326
|
-
id: nonEmptyTrimmedStringFromUnknown,
|
|
5327
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
5328
|
-
ts: finiteIntegerNumber,
|
|
5329
|
-
profile: profileSchema
|
|
5330
|
-
};
|
|
5331
|
-
const presenceDataSchema = z.record(z.string(), z.unknown());
|
|
5332
|
-
const presenceEnvelopeSchema = z.object({
|
|
5333
|
-
...baseEnvelopeShape,
|
|
5334
|
-
type: z.enum(["presence.join", "presence.quit"]),
|
|
5335
|
-
data: presenceDataSchema
|
|
5336
|
-
});
|
|
5337
|
-
const signalTextEnvelopeSchema = z.object({
|
|
5338
|
-
...baseEnvelopeShape,
|
|
5339
|
-
type: z.literal("signal.text"),
|
|
5340
|
-
data: signalTextDataSchema
|
|
5341
|
-
});
|
|
5342
|
-
const signalStatusEnvelopeSchema = z.object({
|
|
5343
|
-
...baseEnvelopeShape,
|
|
5344
|
-
type: z.literal("signal.status"),
|
|
5345
|
-
data: signalStatusDataSchema
|
|
5346
|
-
});
|
|
5347
|
-
const signalSystemNoticeEnvelopeSchema = z.object({
|
|
5348
|
-
...baseEnvelopeShape,
|
|
5349
|
-
type: z.literal("signal.system_notice"),
|
|
5350
|
-
data: signalSystemNoticeDataSchema
|
|
5351
|
-
});
|
|
5352
|
-
const signalEnvelopeSchema = z.union([
|
|
5353
|
-
presenceEnvelopeSchema,
|
|
5354
|
-
signalTextEnvelopeSchema,
|
|
5355
|
-
signalStatusEnvelopeSchema,
|
|
5356
|
-
signalSystemNoticeEnvelopeSchema
|
|
5357
|
-
]);
|
|
5358
|
-
const spaceLiveSignalFrameSchema = z.strictObject({
|
|
5359
|
-
type: z.literal("space.signal"),
|
|
5360
|
-
signal: signalEnvelopeSchema,
|
|
5361
|
-
history: z.strictObject({ persisted: z.boolean() }).optional(),
|
|
5362
|
-
threadContext: spaceThreadContextSchema.optional(),
|
|
5363
|
-
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
5364
|
-
});
|
|
5365
|
-
const spaceLiveInvalidationFrameSchema = z.strictObject({
|
|
5366
|
-
type: z.enum([
|
|
5367
|
-
"space.members.changed",
|
|
5368
|
-
"space.meta.changed",
|
|
5369
|
-
"agent.readiness.invalidated"
|
|
5370
|
-
]),
|
|
5371
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
5372
|
-
version: finiteIntegerNumber,
|
|
5373
|
-
profileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
5374
|
-
agentProfileIds: z.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
5375
|
-
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
5376
|
-
});
|
|
5377
|
-
const incomingServerMessageSchema = z.union([
|
|
5378
|
-
signalEnvelopeSchema,
|
|
5379
|
-
spaceLiveSignalFrameSchema,
|
|
5380
|
-
spaceLiveInvalidationFrameSchema,
|
|
5381
|
-
spaceAgentStreamDeltaFrameSchema,
|
|
5382
|
-
spaceAgentStreamPartFrameSchema,
|
|
5383
|
-
spaceAgentStreamTerminalFrameSchema,
|
|
5384
|
-
helloAckSchema,
|
|
5385
|
-
serverErrorFrameSchema
|
|
5386
|
-
]);
|
|
5387
|
-
//#endregion
|
|
5388
5448
|
//#region ../../packages/schemas/dist/schemas/runtime/center-agent-model.js
|
|
5389
5449
|
const boundedIdentifierSchema$3 = z.string().trim().min(1).max(256);
|
|
5390
5450
|
const centerAgentModelPreferenceSchema = z.discriminatedUnion("kind", [z.strictObject({ kind: z.literal("system_default") }), z.strictObject({
|
|
@@ -10411,6 +10471,15 @@ const centerAgentInboxSourceTargetSchema = z.strictObject({
|
|
|
10411
10471
|
message: "Center Agent Inbox targets must include both spaceId and signalId."
|
|
10412
10472
|
});
|
|
10413
10473
|
});
|
|
10474
|
+
const slackInboxSourceTargetSchema = z.strictObject({
|
|
10475
|
+
channelId: identifierSchema,
|
|
10476
|
+
kind: z.literal("message_channel"),
|
|
10477
|
+
messageId: identifierSchema,
|
|
10478
|
+
permalink: slackMessagePermalinkSchema,
|
|
10479
|
+
provider: z.literal("slack"),
|
|
10480
|
+
teamId: identifierSchema,
|
|
10481
|
+
threadRootMessageId: identifierSchema
|
|
10482
|
+
});
|
|
10414
10483
|
const inboxSourceTargetSchema = z.discriminatedUnion("kind", [
|
|
10415
10484
|
z.strictObject({
|
|
10416
10485
|
kind: z.literal("space"),
|
|
@@ -10433,6 +10502,7 @@ const inboxSourceTargetSchema = z.discriminatedUnion("kind", [
|
|
|
10433
10502
|
kind: z.literal("center_agent_task"),
|
|
10434
10503
|
taskId: identifierSchema
|
|
10435
10504
|
}),
|
|
10505
|
+
slackInboxSourceTargetSchema,
|
|
10436
10506
|
centerAgentInboxSourceTargetSchema,
|
|
10437
10507
|
z.strictObject({
|
|
10438
10508
|
kind: z.literal("settings"),
|
|
@@ -11615,31 +11685,6 @@ const getSpaceMessageDetailsResponseSchema = z.strictObject({
|
|
|
11615
11685
|
});
|
|
11616
11686
|
clientMessageIdSchema$1.nullable();
|
|
11617
11687
|
//#endregion
|
|
11618
|
-
//#region ../../packages/schemas/dist/schemas/http/space-signals.js
|
|
11619
|
-
const signalTextRequestDataSchema = signalTextSchema.shape.data;
|
|
11620
|
-
z.enum([
|
|
11621
|
-
"user_authored",
|
|
11622
|
-
"system_emitted",
|
|
11623
|
-
"legacy_nullable"
|
|
11624
|
-
]);
|
|
11625
|
-
const postNormalMessageBodySchema = z.strictObject({
|
|
11626
|
-
text: signalTextRequestDataSchema.shape.text,
|
|
11627
|
-
attachments: signalTextRequestDataSchema.shape.attachments.optional(),
|
|
11628
|
-
messageEnvelope: signalTextRequestDataSchema.shape.messageEnvelope.optional(),
|
|
11629
|
-
replyTo: signalTextRequestDataSchema.shape.replyTo.optional(),
|
|
11630
|
-
meta: signalTextRequestDataSchema.shape.meta.optional()
|
|
11631
|
-
}).superRefine((value, ctx) => {
|
|
11632
|
-
const parsed = signalTextRequestDataSchema.safeParse(value);
|
|
11633
|
-
if (parsed.success) return;
|
|
11634
|
-
const firstIssue = parsed.error.issues[0];
|
|
11635
|
-
ctx.addIssue({
|
|
11636
|
-
code: "custom",
|
|
11637
|
-
path: firstIssue?.path ?? [],
|
|
11638
|
-
message: firstIssue?.message ?? "Invalid normal message payload"
|
|
11639
|
-
});
|
|
11640
|
-
});
|
|
11641
|
-
const postNormalMessageResponseSchema = signalTextEnvelopeSchema;
|
|
11642
|
-
//#endregion
|
|
11643
11688
|
//#region ../../packages/schemas/dist/schemas/http/space-updates.js
|
|
11644
11689
|
const DECIMAL_INTEGER_REGEX = /^\d+$/u;
|
|
11645
11690
|
const updatesLimitSchema = z.preprocess((value) => {
|
|
@@ -11786,6 +11831,7 @@ const OPENMELD_HEADER_AUTO_RELAY_DEPTH = "x-openmeld-auto-relay-depth";
|
|
|
11786
11831
|
const OPENMELD_HEADER_VISITED_PROFILE_IDS = "x-openmeld-visited-profile-ids";
|
|
11787
11832
|
const OPENMELD_HEADER_VISITED_PROFILE_IDS_HASH = "x-openmeld-visited-profile-ids-hash";
|
|
11788
11833
|
const OPENMELD_HEADER_FORWARDED_BY = "x-openmeld-forwarded-by";
|
|
11834
|
+
const OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION = "x-openmeld-inbox-source-target-version";
|
|
11789
11835
|
const OPENMELD_HEADER_TEXT_ENCODING_PREFIX = "utf-8''";
|
|
11790
11836
|
const PRINTABLE_ASCII_PATTERN = /^[\x20-\x7e]*$/;
|
|
11791
11837
|
/**
|
|
@@ -11947,6 +11993,7 @@ var dist_exports = /* @__PURE__ */ __exportAll({
|
|
|
11947
11993
|
buildAgentActivitySnapshotPath: () => buildAgentActivitySnapshotPath,
|
|
11948
11994
|
buildAgentActivityStatsPath: () => buildAgentActivityStatsPath,
|
|
11949
11995
|
buildAgentProfileBindingOrganizationAuthorizationsRoute: () => buildAgentProfileBindingOrganizationAuthorizationsRoute,
|
|
11996
|
+
buildAgentProfileCreationDefaultsPath: () => buildAgentProfileCreationDefaultsPath,
|
|
11950
11997
|
buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute: () => buildAgentProfilePrimaryBindingOrganizationAuthorizationRoute,
|
|
11951
11998
|
buildCenterAgentAuditJournalPath: () => buildCenterAgentAuditJournalPath,
|
|
11952
11999
|
buildCenterAgentDesignationPath: () => buildCenterAgentDesignationPath,
|
|
@@ -13667,6 +13714,7 @@ const createInboxApi = (client) => ({
|
|
|
13667
13714
|
const params = requireValidInput$5(inboxItemRouteParamsSchema, { itemId: input.itemId }, "Inbox item request is invalid.");
|
|
13668
13715
|
return await client.requestJson({
|
|
13669
13716
|
...requestOptions$7(input),
|
|
13717
|
+
headers: inboxSourceTargetVersionHeaders(),
|
|
13670
13718
|
invalidMessage: "invalid Inbox item response",
|
|
13671
13719
|
method: "GET",
|
|
13672
13720
|
operation: "inbox.item.get",
|
|
@@ -13682,6 +13730,7 @@ const createInboxApi = (client) => ({
|
|
|
13682
13730
|
}, "Inbox list request is invalid.");
|
|
13683
13731
|
return await client.requestJson({
|
|
13684
13732
|
...requestOptions$7(input),
|
|
13733
|
+
headers: inboxSourceTargetVersionHeaders(),
|
|
13685
13734
|
invalidMessage: "invalid Inbox list response",
|
|
13686
13735
|
method: "GET",
|
|
13687
13736
|
operation: "inbox.list",
|
|
@@ -13703,7 +13752,10 @@ const createInboxApi = (client) => ({
|
|
|
13703
13752
|
return await client.requestJson({
|
|
13704
13753
|
...requestOptions$7(input),
|
|
13705
13754
|
body: JSON.stringify(body),
|
|
13706
|
-
headers: {
|
|
13755
|
+
headers: {
|
|
13756
|
+
"content-type": "application/json",
|
|
13757
|
+
...inboxSourceTargetVersionHeaders()
|
|
13758
|
+
},
|
|
13707
13759
|
invalidMessage: "invalid Inbox read response",
|
|
13708
13760
|
method: "PATCH",
|
|
13709
13761
|
operation: "inbox.item.read",
|
|
@@ -13781,6 +13833,9 @@ const createInboxApi = (client) => ({
|
|
|
13781
13833
|
});
|
|
13782
13834
|
}
|
|
13783
13835
|
});
|
|
13836
|
+
function inboxSourceTargetVersionHeaders() {
|
|
13837
|
+
return { [OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "2" };
|
|
13838
|
+
}
|
|
13784
13839
|
function requestOptions$7(input) {
|
|
13785
13840
|
return {
|
|
13786
13841
|
...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },
|
|
@@ -13985,10 +14040,23 @@ function buildOrganizationBindingAuthorizationProfilesPath(organizationId) {
|
|
|
13985
14040
|
function buildOrganizationBindingAuthorizationPreferencePath(organizationId) {
|
|
13986
14041
|
return `/v1/organizations/${encodeURIComponent(organizationId)}/binding-authorization-preference`;
|
|
13987
14042
|
}
|
|
14043
|
+
function buildAgentProfileCreationDefaultsPath(organizationId, agentControllerRef) {
|
|
14044
|
+
return `/v1/organizations/${encodeURIComponent(organizationId)}/agent-profile-creation-defaults/${encodeURIComponent(agentControllerRef)}`;
|
|
14045
|
+
}
|
|
13988
14046
|
function buildOrganizationWakeAccessChoicePath(organizationId) {
|
|
13989
14047
|
return `/v1/organizations/${encodeURIComponent(organizationId)}/wake-access-choice`;
|
|
13990
14048
|
}
|
|
13991
14049
|
const createOrganizationApi = (client) => ({
|
|
14050
|
+
getAgentProfileCreationDefaults: async (input) => await client.requestJson({
|
|
14051
|
+
url: buildAgentProfileCreationDefaultsPath(input.organizationId, input.agentControllerRef),
|
|
14052
|
+
operation: "agent_profile.creation_defaults.read",
|
|
14053
|
+
method: "GET",
|
|
14054
|
+
requestContext: input.requestContext,
|
|
14055
|
+
signal: input.signal,
|
|
14056
|
+
timeoutMs: input.timeoutMs,
|
|
14057
|
+
schema: getAgentProfileCreationDefaultsResponseSchema,
|
|
14058
|
+
invalidMessage: "invalid Agent Profile creation defaults response"
|
|
14059
|
+
}),
|
|
13992
14060
|
updateCurrentLogo: async (input) => {
|
|
13993
14061
|
const mimeType = organizationLogoMimeTypeSchema.parse(input.mimeType);
|
|
13994
14062
|
const body = toOrganizationLogoBody(input.bytes);
|
|
@@ -14269,6 +14337,27 @@ const createOrganizationApi = (client) => ({
|
|
|
14269
14337
|
invalidMessage: "invalid Organization Binding authorization preference response"
|
|
14270
14338
|
});
|
|
14271
14339
|
},
|
|
14340
|
+
setAgentProfileCreationDefaults: async (input) => {
|
|
14341
|
+
const body = setAgentProfileCreationDefaultsBodySchema.parse({
|
|
14342
|
+
agentControllerPermissionMode: input.agentControllerPermissionMode,
|
|
14343
|
+
defaultProjectId: input.defaultProjectId,
|
|
14344
|
+
modelId: input.modelId,
|
|
14345
|
+
openCodePermission: input.openCodePermission,
|
|
14346
|
+
reasoningLevel: input.reasoningLevel
|
|
14347
|
+
});
|
|
14348
|
+
return await client.requestJson({
|
|
14349
|
+
url: buildAgentProfileCreationDefaultsPath(input.organizationId, input.agentControllerRef),
|
|
14350
|
+
operation: "agent_profile.creation_defaults.write",
|
|
14351
|
+
method: "PUT",
|
|
14352
|
+
requestContext: input.requestContext,
|
|
14353
|
+
signal: input.signal,
|
|
14354
|
+
timeoutMs: input.timeoutMs,
|
|
14355
|
+
headers: { "content-type": "application/json" },
|
|
14356
|
+
body: JSON.stringify(body),
|
|
14357
|
+
schema: setAgentProfileCreationDefaultsResponseSchema,
|
|
14358
|
+
invalidMessage: "invalid Agent Profile creation defaults response"
|
|
14359
|
+
});
|
|
14360
|
+
},
|
|
14272
14361
|
saveWakeAccessChoice: async (input) => {
|
|
14273
14362
|
const body = saveOrganizationWakeAccessChoiceBodySchema.parse({ enableWakeAccess: input.enableWakeAccess });
|
|
14274
14363
|
return await client.requestJson({
|
|
@@ -16189,4 +16278,4 @@ function composeAbortSignals(parent, timeout) {
|
|
|
16189
16278
|
//#endregion
|
|
16190
16279
|
export { OPENMELD_RUNTIME_CAPABILITIES_HEADER as $, START_ISO_DATE_TIME_SCHEMA as $t, parseEnvelope as A, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as At, toErrorMessage$3 as B, archiveProjectResponseSchema as Bt, dist_exports as C, deleteCenterAgentRoutineResponseSchema as Ct, DAEMON_STREAM_KEEPALIVE_PING as D, resumeCenterAgentRoutineResponseSchema as Dt, toStructuredApiClientFailure as E, pauseCenterAgentRoutineResponseSchema as Et, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as F, agentActivitySnapshotResponseSchema as Ft, spaceDispatchTraceAttemptStatusSchema as G, leaveSpaceResponseSchema as Gt, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as H, listProjectsResponseSchema as Ht, OPENMELD_HEADER_REQUEST_ID as I, centerAgentToolSpeakerSchema as It, observabilityWakeTraceSelectorSchema as J, spaceMemberDirectoryEntrySchema as Jt, spaceDispatchTraceDispatchStatusSchema as K, postSpaceMembersResponseSchema as Kt, buildOpenMeldRequestContextHeaders as L, localProjectControlConnectionSchema as Lt, parseServerErrorFrame as M, agentActivityProviderSchema as Mt, resolveCustomMentionAliasOverride as N, agentActivitySessionStatusSchema as Nt, DAEMON_STREAM_KEEPALIVE_PONG as O, updateCenterAgentRoutineResponseSchema as Ot, OPENMELD_HEADER_PROFILE_ID as P, agentActivitySnapshotQuerySchema as Pt, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Q, START_BOUNDED_VERSION_SCHEMA as Qt, toErrorMessage$2 as R, localProjectControlDaemonFrameSchema as Rt, createSpaceApi as S, createCenterAgentRoutineResponseSchema as St, resolveProfileSpaceHistoryGatewayHost as T, listCenterAgentRoutinesResponseSchema as Tt, projectSpaceDispatchTraceFinalVisibleOutcome as U, projectSchema as Ut, getSpaceUpdatesResponseSchema as V, createProjectResponseSchema as Vt, resolveSpaceDispatchTraceRootCause as W, updateProjectResponseSchema as Wt, submitAgentControllerTaskLifecycleEventItemSchema as X, openCodePermissionConfigSchema as Xt, projectObservabilityWakeCorrelation as Y, spaceMemberDirectorySchema as Yt, gatewayErrorEnvelopeSchema as Z, START_BOUNDED_ID_SCHEMA as Zt, createPrepareReadinessApi as _, authProfileManagedRoleSchema as _t, buildSpaceAttachmentDownloadPath as a, toLegacySpaceAddressingWireValue as an, spaceCreatorSchema as at, createRoutinesApi as b, submitFeedbackIssueRequestSchema as bt, createAgentProfileBindingApi as c, listOrganizationSkillsResponseSchema as ct, createFeedbackApi as d, organizationSkillSummarySchema as dt, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as en, computerFileAccessDaemonFrameSchema as et, createFetchTransport as f, stringifyOrganizationSkillBundleCanonicalJson as ft, createOrganizationSkillsApi as g, authProfileKindSchema as gt, createOrganizationApi as h, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as ht, buildProfileSpaceHistoryUpsertPath as i, agentControllerCollaborationModeSchema as in, organizationSpaceDirectoryWithMemberCountsResponseSchema as it, parseIncoming as j, agentActivityEventSchema as jt, MAX_TEXT_LENGTH as k, AGENT_ACTIVITY_EVENT_MAX_BYTES as kt, createCenterAgentApi as l, organizationSkillBundleSchema as lt, createOpenMeldApiClient as m, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as mt, OpenMeldApiClientInvalidResponseError as n, localAgentCatalogSchema as nn, computerFileAccessPolicySchema as nt, createAccountSpaceIndexApi as o, spaceMetaSchema as ot, createLocalRuntimeExpectedRoutesApi as p, organizationDirectoryResponseSchema as pt, spaceDispatchTraceResponseSchema as q, removeSpaceMembersResponseSchema as qt, buildProfileSpaceHistoryStatusPath as r, agentControllerPermissionModeSchema as rn, modelCatalogSchema as rt, createAgentActivityApi as s, getOrganizationSkillResponseSchema as st, OpenMeldApiClientHttpError as t, startReplyReadinessSummarySchema as tn, computerFileAccessPolicyInputSchema as tt, createCurrentDeviceApi as u, organizationSkillReleaseSummarySchema as ut, createProfileSpaceHistoryApi as v, profileCapabilitiesResponseSchema as vt, resolveAccountSpaceIndexGatewayHost as w, listCenterAgentRoutineRunsResponseSchema as wt, createRuntimeReportingApi as x, submitFeedbackIssueResponseSchema as xt, createProjectsApi as y, profileErrorResponseSchema as yt, sleep as z, localProjectControlDiscoverProjectsResponseSchema as zt };
|
|
16191
16280
|
|
|
16192
|
-
//# sourceMappingURL=dist-
|
|
16281
|
+
//# sourceMappingURL=dist-WHWyUs8I.js.map
|