openmeld 0.3.208 → 0.3.210
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-CZS8PbYL.js → add-me-membership-BgDujS4W.js} +2 -2
- package/dist/{add-me-membership-CZS8PbYL.js.map → add-me-membership-BgDujS4W.js.map} +1 -1
- package/dist/{agents-pHCyQoFw.js → agents-DdYL--Rj.js} +10 -10
- package/dist/{agents-pHCyQoFw.js.map → agents-DdYL--Rj.js.map} +1 -1
- package/dist/{api-client-foundation-JiKYZcZI.js → api-client-foundation--H_ib5Vh.js} +1 -1
- package/dist/{api-client-foundation-BdBSoby4.js → api-client-foundation-CQsXMqnr.js} +3 -3
- package/dist/{api-client-foundation-BdBSoby4.js.map → api-client-foundation-CQsXMqnr.js.map} +1 -1
- package/dist/{auth-session-ijcuaSsZ.js → auth-session-CVxflepT.js} +2 -2
- package/dist/{auth-session-ijcuaSsZ.js.map → auth-session-CVxflepT.js.map} +1 -1
- package/dist/auth-session-LTSqq_Tb.js +4 -0
- package/dist/{command-CewWTp57.js → command-DNIZzJuu.js} +8 -8
- package/dist/{command-CewWTp57.js.map → command-DNIZzJuu.js.map} +1 -1
- package/dist/{computer-connection-DK6L1_LF.js → computer-connection-TgsnU0K9.js} +2 -2
- package/dist/{computer-connection-DK6L1_LF.js.map → computer-connection-TgsnU0K9.js.map} +1 -1
- package/dist/{computer-connection-review-Dx4svB-T.js → computer-connection-review-DqJTijzX.js} +6 -6
- package/dist/{computer-connection-review-Dx4svB-T.js.map → computer-connection-review-DqJTijzX.js.map} +1 -1
- package/dist/{computer-setup-continuation-Bc0Tb7fi.js → computer-setup-continuation-DFUxl9kf.js} +4 -4
- package/dist/{computer-setup-continuation-Bc0Tb7fi.js.map → computer-setup-continuation-DFUxl9kf.js.map} +1 -1
- package/dist/{daemon-service-runtime-D0LhAIGx.js → daemon-service-runtime-D7cb3-Ov.js} +3 -3
- package/dist/{daemon-service-runtime-D0LhAIGx.js.map → daemon-service-runtime-D7cb3-Ov.js.map} +1 -1
- package/dist/{dist-B8I8inkY.js → dist-Ccbpt6rT.js} +300 -194
- package/dist/dist-Ccbpt6rT.js.map +1 -0
- package/dist/dist-Cs3dH2Of.js +4 -0
- package/dist/{elapsed-time-DZLKdEno.js → elapsed-time-B2UGqUlR.js} +4 -4
- package/dist/{elapsed-time-DZLKdEno.js.map → elapsed-time-B2UGqUlR.js.map} +1 -1
- package/dist/{installation-inventory-_fMZas6v.js → installation-inventory-DJiJh9nP.js} +3 -3
- package/dist/{installation-inventory-_fMZas6v.js.map → installation-inventory-DJiJh9nP.js.map} +1 -1
- package/dist/{openmeld-DQNVH1jx.js → openmeld-BqTI30JS.js} +18 -18
- package/dist/{openmeld-DQNVH1jx.js.map → openmeld-BqTI30JS.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-CgGOwbP4.js → openmeld-maintenance-worker-DeOu5U2Q.js} +5 -5
- package/dist/{openmeld-maintenance-worker-CgGOwbP4.js.map → openmeld-maintenance-worker-DeOu5U2Q.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-D6uuBitR.js → openmeld-tools-update-coordinator-i1zATb9g.js} +9 -9
- package/dist/{openmeld-tools-update-coordinator-D6uuBitR.js.map → openmeld-tools-update-coordinator-i1zATb9g.js.map} +1 -1
- package/dist/openmeld.js +3 -3
- package/dist/{prepare-session-executor-DQqmhjGj.js → prepare-session-executor-BSTToACx.js} +9 -9
- package/dist/{prepare-session-executor-DQqmhjGj.js.map → prepare-session-executor-BSTToACx.js.map} +1 -1
- package/dist/{runtime-transport-DryoU4rm.js → runtime-transport-BrzIQru0.js} +3522 -3522
- package/dist/runtime-transport-BrzIQru0.js.map +1 -0
- package/dist/{service-account-authorization-BN2F75_x.js → service-account-authorization-BM7a5V4I.js} +3 -3
- package/dist/{service-account-authorization-BN2F75_x.js.map → service-account-authorization-BM7a5V4I.js.map} +1 -1
- package/dist/{service-control-capabilities-BqEr7J9H.js → service-control-capabilities--ktpSDhp.js} +1 -1
- package/dist/{service-control-capabilities-CnG1E-e3.js → service-control-capabilities-BL8hTCE6.js} +2 -2
- package/dist/{service-control-capabilities-CnG1E-e3.js.map → service-control-capabilities-BL8hTCE6.js.map} +1 -1
- package/dist/upgrade-C5r5IT_8.js +4 -0
- package/dist/{upgrade-CNeTiYSS.js → upgrade-JMsVlRjL.js} +4 -4
- package/dist/{upgrade-CNeTiYSS.js.map → upgrade-JMsVlRjL.js.map} +1 -1
- package/package.json +2 -2
- package/dist/auth-session-DDsceN-R.js +0 -4
- package/dist/dist-B8I8inkY.js.map +0 -1
- package/dist/dist-Dtdw34oo.js +0 -4
- package/dist/runtime-transport-DryoU4rm.js.map +0 -1
- package/dist/upgrade-B9gjUOgQ.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { C as resolveBuiltinAgentControllerConversationCapability, S as agentControllerConversationCapabilitySchema, b as normalizeKnownBuiltinAgentControllerId, h as agentControllerRefSchema, s as runtimeTransportModeSchema } from "./controller-contract-pe3_Re-c.js";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $t as spaceFileActorSchema, Ar as localFolderPathSchema, At as spaceAttachmentMimeTypeSchema, Bn as spaceAgentStreamDeltaFrameSchema, Bt as createSpaceFolderResponseSchema, Ct as signalSystemNoticeDataSchema, Dt as spaceAttachmentDescriptorSchema, Et as wakeDeviceWaitTargetSchema, Gt as listSpaceFilesResponseSchema, H as openMeldDaemonProviderAccessEvidenceProviderSchema, Hn as spaceAgentStreamPresenceSchema, Hr as authProfileManagedRoleSchema, Ht as getSpaceFileResponseSchema, Ir as localAgentCatalogLaunchStatusSchema, It as centerAgentInteractionSourceSchema, Jr as updateProfileResponseSchema, Kn as agentInteractionPendingSummarySchema, Kr as updateAgentProfileDefaultProjectBodySchema, Kt as publishSpaceComposerUploadResponseSchema, L as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as computerSetupModeSchema, Mt as spaceMessageAttachmentSchema, Nn as openMeldNavigationTargetSchema, Nt as spaceMessageAttachmentsSchema, Or as localFolderPickerRequestSchema, Ot as spaceAttachmentDimensionSchema, Pn as openMeldWebUrlSchema, Pt as conversationCompactionMarkerSchema, Qn as clientMessageIdSchema$1, Qt as spaceComposerUploadIdSchema, Rn as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Rr as localAgentCatalogWithLifecycleSchema, Rt as SPACE_FILE_MAX_SIZE_BYTES, Sn as workingLanguageTagSchema, Sr as agentProfileWorkRecoveryActionKindSchema, St as signalStatusDataSchema, Tt as signalTextSchema, Un as spaceAgentStreamSnapshotSchema, Ur as authProfileViewSchema, V as openMeldDaemonOriginalErrorSchema, Vn as spaceAgentStreamPartFrameSchema, Vt as discardSpaceComposerUploadResponseSchema, Wn as spaceAgentStreamTerminalFrameSchema, Wt as listSpaceFileRevisionsResponseSchema, Xn as postSpaceWakeStopBodySchema, Xr as openMeldRequestContextSchema, Xt as restoreSpaceFileRevisionResponseSchema, Yn as agentInteractionResponseSchema, Yt as restoreSpaceFileEntryResponseSchema, Zn as postSpaceWakeStopResponseSchema, Zr as MAX_TEXT_LENGTH$1, Zt as spaceComposerUploadDescriptorSchema, _n as resultArchivePolicySchema, ar as spaceTraceExecutionIdentityProjectionSchema, at as agentTaskTerminalOutcomeSchema, bn as spaceDispatchPolicySchema, br as executeExecutionRecoveryResponseSchema, cn as trashSpaceFileEntryResponseSchema, cr as spacePasswordSchema, ct as controllerAgentTaskHandleSchema, dn as spaceThreadContextSchema, dr as spaceMentionLabelSchema, en as spaceFileClientMutationIdSchema, er as runtimeCoordinatorExecutionCreationDiagnosticSchema, et as spaceCallerContextSchema, fn as spaceThreadEventSchema, fr as spaceMentionLabelSourceSchema, hr as updateOrganizationInformationProtectionPolicyBodySchema, in as spaceFileNameSchema, it as agentTaskHandleSchema, jr as START_BOUNDED_ID_SCHEMA, jt as spaceAttachmentSizeBytesSchema, kn as messageEnvelopeSchema, kr as localFolderPickerResultSchema, kt as spaceAttachmentFileNameSchema, ln as updateSpaceFileEntryResponseSchema, lt as spaceWakeAgentTaskHandleSchema, mn as spaceThreadSignalPlacementSchema, mr as organizationProtectedInformationSchema, n as daemonExecutionCompatibilitySchema, nn as spaceFileEntryIdSchema, nr as runtimeCoordinatorExecutionRecordSchema, nt as agentTaskCompletionConditionSchema, on as spaceMessageFileReferencesSchema, or as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, ot as areAgentTaskTerminalOutcomesEqual, pn as spaceThreadSchema, pr as organizationInformationProtectionPolicyResponseSchema, q as openMeldDaemonTaskResultProjectFailureContextSchema, qr as updateAgentProfileDefaultProjectResponseSchema, rn as spaceFileMimeTypeSchema, rt as agentTaskCompletionObservationSchema, sn as stageSpaceComposerUploadResponseSchema, sr as normalizeSpacePasswordText, st as buildAgentTaskKey, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as spaceFileDescriptorSchema, tr as runtimeCoordinatorExecutionEventSchema, tt as agentDelegationSnapshotSchema, un as uploadSpaceFileResponseSchema, vn as spaceAllowedActionsSchema, vr as localAgentReasoningPreferencesSchema, wn as targetWakeLifecycleIdentitySchema, wt as signalTextDataSchema, xn as workingLanguageGuidanceSchema, xr as inspectExecutionRecoveryResponseSchema, yn as spacePublicationModeSchema, yr as executeExecutionRecoveryBodySchema, zn as agentStreamToolPartSchema } from "./runtime-transport-BrzIQru0.js";
|
|
5
5
|
import { n as cliBinaryManifestSchema } from "./cli-binary-manifest-DiUulkp0.js";
|
|
6
6
|
import { $ as literal, B as openMeldToolsUpdateRequestResultSchema, Ct as uuidProfileIdSchema, D as localComponentUpdatePolicySchema, Dt as trimmedStringFromUnknown, Et as optionalBooleanQuerySchema, F as openMeldToolsMaintenanceMutationResultSchema, G as boolean, H as NEVER, I as openMeldToolsMaintenanceProjectionSchema, J as email, K as coerce, O as localComponentUpdateProjectionSchema, Q as lazySchema, St as profileWorkspaceModeSchema, Tt as nonEmptyTrimmedStringFromUnknown, W as array, X as int, Y as enumFactory, Z as iso, at as record, b as dispatchExecutionSchema, bt as profileSchema, ct as tuple, dt as unknown, et as neverFactory, ft as url, gt as openMeldRuntimeProfileIdSchema, it as preprocess, k as localComponentUpdateStatusSchema, lt as undefinedFactory, m as openMeldDaemonSyncRouteCatalogPayloadSchema, mt as agentProfileIdSchema, nt as number, ot as strictObject, q as discriminatedUnion, rt as object, st as string, t as localAgentInstallationOptionSchema, tt as nullFactory, ut as union, vt as profileKindSchema, wt as finiteIntegerNumber, xt as profileWorkingDirectorySchema, z as openMeldToolsUpdateOperationSchema } from "./control-plane-D9jDcbMZ.js";
|
|
7
7
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
@@ -271,186 +271,6 @@ function omitJsonField(value, fieldName) {
|
|
|
271
271
|
return Object.fromEntries(Object.entries(value).filter(([key]) => key !== fieldName));
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
|
-
//#region ../../packages/schemas/dist/schemas/http/space-link-previews.js
|
|
275
|
-
const previewUrlSchema = z$1.url().max(4096).refine((value) => {
|
|
276
|
-
const url = new URL(value);
|
|
277
|
-
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password;
|
|
278
|
-
});
|
|
279
|
-
const previewImageSchema = z$1.string().max(35e4).regex(/^data:image\/(?:png|jpeg|webp|gif|x-icon|vnd\.microsoft\.icon);base64,[A-Za-z0-9+/=]+$/).nullable();
|
|
280
|
-
z$1.object({
|
|
281
|
-
spaceId: z$1.string().regex(/^[0-9a-f]{64}$/),
|
|
282
|
-
signalId: z$1.string().min(1).max(256)
|
|
283
|
-
}).strict();
|
|
284
|
-
z$1.object({
|
|
285
|
-
signalId: z$1.string(),
|
|
286
|
-
revision: z$1.number().int().nonnegative(),
|
|
287
|
-
urls: z$1.array(previewUrlSchema).max(12)
|
|
288
|
-
}).strict();
|
|
289
|
-
const linkPreviewSchema = z$1.object({
|
|
290
|
-
url: previewUrlSchema,
|
|
291
|
-
title: z$1.string().max(300).nullable(),
|
|
292
|
-
description: z$1.string().max(500).nullable(),
|
|
293
|
-
siteName: z$1.string().max(100).nullable(),
|
|
294
|
-
image: previewImageSchema,
|
|
295
|
-
icon: previewImageSchema,
|
|
296
|
-
status: z$1.enum(["available", "unavailable"])
|
|
297
|
-
}).strict();
|
|
298
|
-
const getSpaceLinkPreviewsResponseSchema = z$1.object({
|
|
299
|
-
signalId: z$1.string(),
|
|
300
|
-
revision: z$1.number().int().nonnegative(),
|
|
301
|
-
previews: z$1.array(linkPreviewSchema).max(12)
|
|
302
|
-
}).strict();
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region ../../packages/schemas/dist/schemas/space-mesh/message-reaction.js
|
|
305
|
-
const spaceReactionActorSchema = z$1.object({
|
|
306
|
-
profileId: z$1.string().min(1),
|
|
307
|
-
displayName: z$1.string(),
|
|
308
|
-
profileKind: z$1.enum(["human", "agent"])
|
|
309
|
-
});
|
|
310
|
-
const spaceReactionGroupSchema = z$1.object({
|
|
311
|
-
emoji: z$1.string().min(1).max(64),
|
|
312
|
-
label: z$1.string(),
|
|
313
|
-
count: z$1.number().int().positive(),
|
|
314
|
-
reactedByMe: z$1.boolean(),
|
|
315
|
-
actors: z$1.array(spaceReactionActorSchema),
|
|
316
|
-
actorsHasMore: z$1.boolean()
|
|
317
|
-
});
|
|
318
|
-
const spaceMessageReactionsSchema = z$1.object({
|
|
319
|
-
version: z$1.number().int().nonnegative(),
|
|
320
|
-
groups: z$1.array(spaceReactionGroupSchema)
|
|
321
|
-
});
|
|
322
|
-
z$1.object({
|
|
323
|
-
spaceId: z$1.string().trim().min(1),
|
|
324
|
-
signalId: z$1.string().trim().min(1),
|
|
325
|
-
emoji: z$1.string().min(1).max(64).optional(),
|
|
326
|
-
afterProfileId: z$1.string().min(1).max(256).optional()
|
|
327
|
-
});
|
|
328
|
-
z$1.object({
|
|
329
|
-
spaceId: z$1.string().trim().min(1),
|
|
330
|
-
signalId: z$1.string().trim().min(1),
|
|
331
|
-
emoji: z$1.string().min(1).max(64),
|
|
332
|
-
active: z$1.boolean()
|
|
333
|
-
});
|
|
334
|
-
const getSpaceMessageReactionsResponseSchema = z$1.object({
|
|
335
|
-
signalId: z$1.string(),
|
|
336
|
-
reactions: spaceMessageReactionsSchema,
|
|
337
|
-
actors: z$1.array(spaceReactionActorSchema).optional(),
|
|
338
|
-
nextCursor: z$1.string().nullable().optional()
|
|
339
|
-
});
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
342
|
-
const helloCapabilitiesSchema = z$1.object({
|
|
343
|
-
agentReplyPlacement: z$1.boolean().optional(),
|
|
344
|
-
liveSignalHistory: z$1.boolean().optional(),
|
|
345
|
-
spaceMessageAddressing: z$1.boolean().optional()
|
|
346
|
-
});
|
|
347
|
-
z$1.object({
|
|
348
|
-
type: z$1.literal("hello"),
|
|
349
|
-
profile: profileSchema,
|
|
350
|
-
capabilities: helloCapabilitiesSchema.optional()
|
|
351
|
-
});
|
|
352
|
-
const helloAckSchema = z$1.object({
|
|
353
|
-
type: z$1.literal("system.hello.ack"),
|
|
354
|
-
profile: profileSchema
|
|
355
|
-
});
|
|
356
|
-
//#endregion
|
|
357
|
-
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
358
|
-
const serverErrorFrameSchema = z$1.object({
|
|
359
|
-
error: nonEmptyTrimmedStringFromUnknown,
|
|
360
|
-
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
361
|
-
clientMessageId: clientMessageIdSchema$1.optional()
|
|
362
|
-
});
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
365
|
-
const baseEnvelopeShape = {
|
|
366
|
-
v: z$1.literal(1),
|
|
367
|
-
id: nonEmptyTrimmedStringFromUnknown,
|
|
368
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
369
|
-
ts: finiteIntegerNumber,
|
|
370
|
-
profile: profileSchema
|
|
371
|
-
};
|
|
372
|
-
const presenceDataSchema = z$1.record(z$1.string(), z$1.unknown());
|
|
373
|
-
const presenceEnvelopeSchema = z$1.object({
|
|
374
|
-
...baseEnvelopeShape,
|
|
375
|
-
type: z$1.enum(["presence.join", "presence.quit"]),
|
|
376
|
-
data: presenceDataSchema
|
|
377
|
-
});
|
|
378
|
-
const signalTextEnvelopeSchema = z$1.object({
|
|
379
|
-
...baseEnvelopeShape,
|
|
380
|
-
type: z$1.literal("signal.text"),
|
|
381
|
-
data: signalTextDataSchema,
|
|
382
|
-
reactions: spaceMessageReactionsSchema.optional()
|
|
383
|
-
});
|
|
384
|
-
const signalStatusEnvelopeSchema = z$1.object({
|
|
385
|
-
...baseEnvelopeShape,
|
|
386
|
-
type: z$1.literal("signal.status"),
|
|
387
|
-
data: signalStatusDataSchema
|
|
388
|
-
});
|
|
389
|
-
const signalSystemNoticeEnvelopeSchema = z$1.object({
|
|
390
|
-
...baseEnvelopeShape,
|
|
391
|
-
type: z$1.literal("signal.system_notice"),
|
|
392
|
-
data: signalSystemNoticeDataSchema
|
|
393
|
-
});
|
|
394
|
-
const signalEnvelopeSchema = z$1.union([
|
|
395
|
-
presenceEnvelopeSchema,
|
|
396
|
-
signalTextEnvelopeSchema,
|
|
397
|
-
signalStatusEnvelopeSchema,
|
|
398
|
-
signalSystemNoticeEnvelopeSchema
|
|
399
|
-
]);
|
|
400
|
-
const spaceLiveSignalFrameSchema = z$1.strictObject({
|
|
401
|
-
type: z$1.literal("space.signal"),
|
|
402
|
-
signal: signalEnvelopeSchema,
|
|
403
|
-
history: z$1.strictObject({ persisted: z$1.boolean() }).optional(),
|
|
404
|
-
threadContext: spaceThreadContextSchema.optional(),
|
|
405
|
-
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
406
|
-
});
|
|
407
|
-
const spaceLiveInvalidationFrameSchema = z$1.strictObject({
|
|
408
|
-
type: z$1.enum([
|
|
409
|
-
"space.members.changed",
|
|
410
|
-
"space.meta.changed",
|
|
411
|
-
"space.files.changed",
|
|
412
|
-
"space.reactions.changed",
|
|
413
|
-
"agent.readiness.invalidated",
|
|
414
|
-
"wake.progress.changed"
|
|
415
|
-
]),
|
|
416
|
-
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
417
|
-
version: finiteIntegerNumber,
|
|
418
|
-
signalIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
419
|
-
profileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
420
|
-
agentProfileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
421
|
-
clientMessageIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
422
|
-
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
423
|
-
});
|
|
424
|
-
const incomingServerMessageSchema = z$1.union([
|
|
425
|
-
signalEnvelopeSchema,
|
|
426
|
-
spaceLiveSignalFrameSchema,
|
|
427
|
-
spaceLiveInvalidationFrameSchema,
|
|
428
|
-
spaceAgentStreamDeltaFrameSchema,
|
|
429
|
-
spaceAgentStreamPartFrameSchema,
|
|
430
|
-
spaceAgentStreamTerminalFrameSchema,
|
|
431
|
-
helloAckSchema,
|
|
432
|
-
serverErrorFrameSchema
|
|
433
|
-
]);
|
|
434
|
-
//#endregion
|
|
435
|
-
//#region ../../packages/schemas/dist/schemas/http/space-message-mutation.js
|
|
436
|
-
const spaceMessageMutationBodySchema = z$1.discriminatedUnion("action", [
|
|
437
|
-
z$1.strictObject({
|
|
438
|
-
action: z$1.literal("edit"),
|
|
439
|
-
expectedRevision: z$1.number().int().nonnegative(),
|
|
440
|
-
text: z$1.string().max(MAX_TEXT_LENGTH$1),
|
|
441
|
-
retainedFileIds: z$1.array(z$1.string().min(1)).optional(),
|
|
442
|
-
retainedAttachmentIds: z$1.array(z$1.string().min(1)).optional(),
|
|
443
|
-
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
444
|
-
addedFiles: spaceMessageFileReferencesSchema.optional()
|
|
445
|
-
}),
|
|
446
|
-
z$1.strictObject({
|
|
447
|
-
action: z$1.literal("recall"),
|
|
448
|
-
expectedRevision: z$1.number().int().nonnegative()
|
|
449
|
-
}),
|
|
450
|
-
z$1.strictObject({ action: z$1.literal("restore_draft") })
|
|
451
|
-
]);
|
|
452
|
-
const spaceMessageMutationResponseSchema = z$1.strictObject({ message: signalTextEnvelopeSchema });
|
|
453
|
-
//#endregion
|
|
454
274
|
//#region ../../packages/schemas/dist/schemas/daemon/computer-file-access.js
|
|
455
275
|
const boundedIdentifierSchema$12 = z$1.string().trim().min(1).max(512);
|
|
456
276
|
const OPENMELD_RUNTIME_CAPABILITIES_HEADER = "x-openmeld-runtime-capabilities";
|
|
@@ -1498,6 +1318,186 @@ const peopleComputersResponseSchema = strictObject({
|
|
|
1498
1318
|
});
|
|
1499
1319
|
peopleComputersResponseSchema.extend({ computers: array(peopleComputerSchema.extend({ isThisComputer: boolean() })) });
|
|
1500
1320
|
//#endregion
|
|
1321
|
+
//#region ../../packages/schemas/dist/schemas/http/space-link-previews.js
|
|
1322
|
+
const previewUrlSchema = z$1.url().max(4096).refine((value) => {
|
|
1323
|
+
const url = new URL(value);
|
|
1324
|
+
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password;
|
|
1325
|
+
});
|
|
1326
|
+
const previewImageSchema = z$1.string().max(35e4).regex(/^data:image\/(?:png|jpeg|webp|gif|x-icon|vnd\.microsoft\.icon);base64,[A-Za-z0-9+/=]+$/).nullable();
|
|
1327
|
+
z$1.object({
|
|
1328
|
+
spaceId: z$1.string().regex(/^[0-9a-f]{64}$/),
|
|
1329
|
+
signalId: z$1.string().min(1).max(256)
|
|
1330
|
+
}).strict();
|
|
1331
|
+
z$1.object({
|
|
1332
|
+
signalId: z$1.string(),
|
|
1333
|
+
revision: z$1.number().int().nonnegative(),
|
|
1334
|
+
urls: z$1.array(previewUrlSchema).max(12)
|
|
1335
|
+
}).strict();
|
|
1336
|
+
const linkPreviewSchema = z$1.object({
|
|
1337
|
+
url: previewUrlSchema,
|
|
1338
|
+
title: z$1.string().max(300).nullable(),
|
|
1339
|
+
description: z$1.string().max(500).nullable(),
|
|
1340
|
+
siteName: z$1.string().max(100).nullable(),
|
|
1341
|
+
image: previewImageSchema,
|
|
1342
|
+
icon: previewImageSchema,
|
|
1343
|
+
status: z$1.enum(["available", "unavailable"])
|
|
1344
|
+
}).strict();
|
|
1345
|
+
const getSpaceLinkPreviewsResponseSchema = z$1.object({
|
|
1346
|
+
signalId: z$1.string(),
|
|
1347
|
+
revision: z$1.number().int().nonnegative(),
|
|
1348
|
+
previews: z$1.array(linkPreviewSchema).max(12)
|
|
1349
|
+
}).strict();
|
|
1350
|
+
//#endregion
|
|
1351
|
+
//#region ../../packages/schemas/dist/schemas/space-mesh/message-reaction.js
|
|
1352
|
+
const spaceReactionActorSchema = z$1.object({
|
|
1353
|
+
profileId: z$1.string().min(1),
|
|
1354
|
+
displayName: z$1.string(),
|
|
1355
|
+
profileKind: z$1.enum(["human", "agent"])
|
|
1356
|
+
});
|
|
1357
|
+
const spaceReactionGroupSchema = z$1.object({
|
|
1358
|
+
emoji: z$1.string().min(1).max(64),
|
|
1359
|
+
label: z$1.string(),
|
|
1360
|
+
count: z$1.number().int().positive(),
|
|
1361
|
+
reactedByMe: z$1.boolean(),
|
|
1362
|
+
actors: z$1.array(spaceReactionActorSchema),
|
|
1363
|
+
actorsHasMore: z$1.boolean()
|
|
1364
|
+
});
|
|
1365
|
+
const spaceMessageReactionsSchema = z$1.object({
|
|
1366
|
+
version: z$1.number().int().nonnegative(),
|
|
1367
|
+
groups: z$1.array(spaceReactionGroupSchema)
|
|
1368
|
+
});
|
|
1369
|
+
z$1.object({
|
|
1370
|
+
spaceId: z$1.string().trim().min(1),
|
|
1371
|
+
signalId: z$1.string().trim().min(1),
|
|
1372
|
+
emoji: z$1.string().min(1).max(64).optional(),
|
|
1373
|
+
afterProfileId: z$1.string().min(1).max(256).optional()
|
|
1374
|
+
});
|
|
1375
|
+
z$1.object({
|
|
1376
|
+
spaceId: z$1.string().trim().min(1),
|
|
1377
|
+
signalId: z$1.string().trim().min(1),
|
|
1378
|
+
emoji: z$1.string().min(1).max(64),
|
|
1379
|
+
active: z$1.boolean()
|
|
1380
|
+
});
|
|
1381
|
+
const getSpaceMessageReactionsResponseSchema = z$1.object({
|
|
1382
|
+
signalId: z$1.string(),
|
|
1383
|
+
reactions: spaceMessageReactionsSchema,
|
|
1384
|
+
actors: z$1.array(spaceReactionActorSchema).optional(),
|
|
1385
|
+
nextCursor: z$1.string().nullable().optional()
|
|
1386
|
+
});
|
|
1387
|
+
//#endregion
|
|
1388
|
+
//#region ../../packages/schemas/dist/schemas/protocol/hello.js
|
|
1389
|
+
const helloCapabilitiesSchema = z$1.object({
|
|
1390
|
+
agentReplyPlacement: z$1.boolean().optional(),
|
|
1391
|
+
liveSignalHistory: z$1.boolean().optional(),
|
|
1392
|
+
spaceMessageAddressing: z$1.boolean().optional()
|
|
1393
|
+
});
|
|
1394
|
+
z$1.object({
|
|
1395
|
+
type: z$1.literal("hello"),
|
|
1396
|
+
profile: profileSchema,
|
|
1397
|
+
capabilities: helloCapabilitiesSchema.optional()
|
|
1398
|
+
});
|
|
1399
|
+
const helloAckSchema = z$1.object({
|
|
1400
|
+
type: z$1.literal("system.hello.ack"),
|
|
1401
|
+
profile: profileSchema
|
|
1402
|
+
});
|
|
1403
|
+
//#endregion
|
|
1404
|
+
//#region ../../packages/schemas/dist/schemas/protocol/server-error.js
|
|
1405
|
+
const serverErrorFrameSchema = z$1.object({
|
|
1406
|
+
error: nonEmptyTrimmedStringFromUnknown,
|
|
1407
|
+
requestId: nonEmptyTrimmedStringFromUnknown.optional(),
|
|
1408
|
+
clientMessageId: clientMessageIdSchema$1.optional()
|
|
1409
|
+
});
|
|
1410
|
+
//#endregion
|
|
1411
|
+
//#region ../../packages/schemas/dist/schemas/protocol/envelope.js
|
|
1412
|
+
const baseEnvelopeShape = {
|
|
1413
|
+
v: z$1.literal(1),
|
|
1414
|
+
id: nonEmptyTrimmedStringFromUnknown,
|
|
1415
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
1416
|
+
ts: finiteIntegerNumber,
|
|
1417
|
+
profile: profileSchema
|
|
1418
|
+
};
|
|
1419
|
+
const presenceDataSchema = z$1.record(z$1.string(), z$1.unknown());
|
|
1420
|
+
const presenceEnvelopeSchema = z$1.object({
|
|
1421
|
+
...baseEnvelopeShape,
|
|
1422
|
+
type: z$1.enum(["presence.join", "presence.quit"]),
|
|
1423
|
+
data: presenceDataSchema
|
|
1424
|
+
});
|
|
1425
|
+
const signalTextEnvelopeSchema = z$1.object({
|
|
1426
|
+
...baseEnvelopeShape,
|
|
1427
|
+
type: z$1.literal("signal.text"),
|
|
1428
|
+
data: signalTextDataSchema,
|
|
1429
|
+
reactions: spaceMessageReactionsSchema.optional()
|
|
1430
|
+
});
|
|
1431
|
+
const signalStatusEnvelopeSchema = z$1.object({
|
|
1432
|
+
...baseEnvelopeShape,
|
|
1433
|
+
type: z$1.literal("signal.status"),
|
|
1434
|
+
data: signalStatusDataSchema
|
|
1435
|
+
});
|
|
1436
|
+
const signalSystemNoticeEnvelopeSchema = z$1.object({
|
|
1437
|
+
...baseEnvelopeShape,
|
|
1438
|
+
type: z$1.literal("signal.system_notice"),
|
|
1439
|
+
data: signalSystemNoticeDataSchema
|
|
1440
|
+
});
|
|
1441
|
+
const signalEnvelopeSchema = z$1.union([
|
|
1442
|
+
presenceEnvelopeSchema,
|
|
1443
|
+
signalTextEnvelopeSchema,
|
|
1444
|
+
signalStatusEnvelopeSchema,
|
|
1445
|
+
signalSystemNoticeEnvelopeSchema
|
|
1446
|
+
]);
|
|
1447
|
+
const spaceLiveSignalFrameSchema = z$1.strictObject({
|
|
1448
|
+
type: z$1.literal("space.signal"),
|
|
1449
|
+
signal: signalEnvelopeSchema,
|
|
1450
|
+
history: z$1.strictObject({ persisted: z$1.boolean() }).optional(),
|
|
1451
|
+
threadContext: spaceThreadContextSchema.optional(),
|
|
1452
|
+
threadPlacement: spaceThreadSignalPlacementSchema.optional()
|
|
1453
|
+
});
|
|
1454
|
+
const spaceLiveInvalidationFrameSchema = z$1.strictObject({
|
|
1455
|
+
type: z$1.enum([
|
|
1456
|
+
"space.members.changed",
|
|
1457
|
+
"space.meta.changed",
|
|
1458
|
+
"space.files.changed",
|
|
1459
|
+
"space.reactions.changed",
|
|
1460
|
+
"agent.readiness.invalidated",
|
|
1461
|
+
"wake.progress.changed"
|
|
1462
|
+
]),
|
|
1463
|
+
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
1464
|
+
version: finiteIntegerNumber,
|
|
1465
|
+
signalIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
1466
|
+
profileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
1467
|
+
agentProfileIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
1468
|
+
clientMessageIds: z$1.array(nonEmptyTrimmedStringFromUnknown).optional(),
|
|
1469
|
+
reason: nonEmptyTrimmedStringFromUnknown.optional()
|
|
1470
|
+
});
|
|
1471
|
+
const incomingServerMessageSchema = z$1.union([
|
|
1472
|
+
signalEnvelopeSchema,
|
|
1473
|
+
spaceLiveSignalFrameSchema,
|
|
1474
|
+
spaceLiveInvalidationFrameSchema,
|
|
1475
|
+
spaceAgentStreamDeltaFrameSchema,
|
|
1476
|
+
spaceAgentStreamPartFrameSchema,
|
|
1477
|
+
spaceAgentStreamTerminalFrameSchema,
|
|
1478
|
+
helloAckSchema,
|
|
1479
|
+
serverErrorFrameSchema
|
|
1480
|
+
]);
|
|
1481
|
+
//#endregion
|
|
1482
|
+
//#region ../../packages/schemas/dist/schemas/http/space-message-mutation.js
|
|
1483
|
+
const spaceMessageMutationBodySchema = z$1.discriminatedUnion("action", [
|
|
1484
|
+
z$1.strictObject({
|
|
1485
|
+
action: z$1.literal("edit"),
|
|
1486
|
+
expectedRevision: z$1.number().int().nonnegative(),
|
|
1487
|
+
text: z$1.string().max(MAX_TEXT_LENGTH$1),
|
|
1488
|
+
retainedFileIds: z$1.array(z$1.string().min(1)).optional(),
|
|
1489
|
+
retainedAttachmentIds: z$1.array(z$1.string().min(1)).optional(),
|
|
1490
|
+
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
1491
|
+
addedFiles: spaceMessageFileReferencesSchema.optional()
|
|
1492
|
+
}),
|
|
1493
|
+
z$1.strictObject({
|
|
1494
|
+
action: z$1.literal("recall"),
|
|
1495
|
+
expectedRevision: z$1.number().int().nonnegative()
|
|
1496
|
+
}),
|
|
1497
|
+
z$1.strictObject({ action: z$1.literal("restore_draft") })
|
|
1498
|
+
]);
|
|
1499
|
+
const spaceMessageMutationResponseSchema = z$1.strictObject({ message: signalTextEnvelopeSchema });
|
|
1500
|
+
//#endregion
|
|
1501
1501
|
//#region ../../packages/schemas/dist/schemas/daemon/service-connection-evidence.js
|
|
1502
1502
|
const timestamp = int().nonnegative();
|
|
1503
1503
|
const identifier = string().regex(/^[A-Za-z0-9_-]{1,128}$/u);
|
|
@@ -8370,6 +8370,7 @@ const postSpaceThreadSignalResponseSchema = z$1.strictObject({
|
|
|
8370
8370
|
//#endregion
|
|
8371
8371
|
//#region ../../packages/schemas/dist/schemas/http/space-bootstrap.js
|
|
8372
8372
|
const spaceBootstrapResponseSchema = z$1.strictObject({
|
|
8373
|
+
includesAgentReadiness: z$1.boolean().optional(),
|
|
8373
8374
|
activeAgentStreamPresences: z$1.array(spaceAgentStreamPresenceSchema).optional(),
|
|
8374
8375
|
activeAgentStreams: z$1.array(spaceAgentStreamSnapshotSchema).optional(),
|
|
8375
8376
|
status: getSpaceStatusResponseSchema,
|
|
@@ -8377,7 +8378,10 @@ const spaceBootstrapResponseSchema = z$1.strictObject({
|
|
|
8377
8378
|
history: catchupResponseSchema,
|
|
8378
8379
|
threads: listSpaceThreadsResponseSchema
|
|
8379
8380
|
});
|
|
8380
|
-
z$1.strictObject({
|
|
8381
|
+
z$1.strictObject({
|
|
8382
|
+
includeAgentReadiness: optionalBooleanQuerySchema,
|
|
8383
|
+
includeAgentStreamPresence: optionalBooleanQuerySchema
|
|
8384
|
+
});
|
|
8381
8385
|
//#endregion
|
|
8382
8386
|
//#region ../../packages/schemas/dist/schemas/http/space-create.js
|
|
8383
8387
|
const createSpaceBodySchema = z$1.strictObject({
|
|
@@ -12168,6 +12172,7 @@ const inboxSourceTargetSchema = discriminatedUnion("kind", [
|
|
|
12168
12172
|
kind: literal("space"),
|
|
12169
12173
|
directMessage: boolean().optional(),
|
|
12170
12174
|
agentOwnerActivity: boolean().optional(),
|
|
12175
|
+
replyToRecipient: boolean().optional(),
|
|
12171
12176
|
signalId: identifierSchema.optional(),
|
|
12172
12177
|
spaceId: identifierSchema,
|
|
12173
12178
|
threadRootSignalId: identifierSchema.optional()
|
|
@@ -12300,6 +12305,33 @@ const inboxNotificationPreferencesResponseSchema = strictObject({
|
|
|
12300
12305
|
urgentEmailEnabled: boolean()
|
|
12301
12306
|
});
|
|
12302
12307
|
const updateInboxNotificationPreferencesBodySchema = strictObject({ urgentEmailEnabled: boolean() });
|
|
12308
|
+
const inboxMessageNotificationModeSchema = enumFactory(["all_messages", "mentions_and_replies"]);
|
|
12309
|
+
const inboxConversationNotificationModeSchema = enumFactory([
|
|
12310
|
+
"all_messages",
|
|
12311
|
+
"mentions_and_replies",
|
|
12312
|
+
"muted"
|
|
12313
|
+
]);
|
|
12314
|
+
const inboxMessageNotificationPreferencesQuerySchema = strictObject({ spaceId: identifierSchema.optional() });
|
|
12315
|
+
const inboxMessageNotificationPreferencesResponseSchema = strictObject({
|
|
12316
|
+
organizationId: identifierSchema,
|
|
12317
|
+
spaceId: identifierSchema.nullable(),
|
|
12318
|
+
defaultMode: inboxMessageNotificationModeSchema,
|
|
12319
|
+
overrideMode: inboxConversationNotificationModeSchema.nullable(),
|
|
12320
|
+
effectiveMode: inboxConversationNotificationModeSchema
|
|
12321
|
+
});
|
|
12322
|
+
const updateInboxMessageNotificationPreferencesBodySchema = discriminatedUnion("scope", [strictObject({
|
|
12323
|
+
scope: literal("account"),
|
|
12324
|
+
mode: inboxMessageNotificationModeSchema
|
|
12325
|
+
}), strictObject({
|
|
12326
|
+
scope: literal("conversation"),
|
|
12327
|
+
spaceId: identifierSchema,
|
|
12328
|
+
mode: inboxConversationNotificationModeSchema.nullable()
|
|
12329
|
+
})]);
|
|
12330
|
+
inboxMessageNotificationPreferencesQuerySchema.extend({ context: openMeldRequestContextSchema });
|
|
12331
|
+
strictObject({
|
|
12332
|
+
context: openMeldRequestContextSchema,
|
|
12333
|
+
preference: updateInboxMessageNotificationPreferencesBodySchema
|
|
12334
|
+
});
|
|
12303
12335
|
const inboxItemRouteParamsSchema = strictObject({ itemId: identifierSchema });
|
|
12304
12336
|
const getInboxItemResponseSchema = strictObject({ item: inboxItemSchema });
|
|
12305
12337
|
strictObject({ item: inboxItemWireSchema });
|
|
@@ -12328,7 +12360,10 @@ strictObject({
|
|
|
12328
12360
|
function normalizeInboxItemWireKind(kind) {
|
|
12329
12361
|
return kind === "space_reference" ? "space_mention" : kind;
|
|
12330
12362
|
}
|
|
12331
|
-
listInboxItemsQuerySchema.extend({
|
|
12363
|
+
listInboxItemsQuerySchema.extend({
|
|
12364
|
+
context: openMeldRequestContextSchema,
|
|
12365
|
+
includeReplyToRecipient: boolean().optional()
|
|
12366
|
+
});
|
|
12332
12367
|
strictObject({ context: openMeldRequestContextSchema });
|
|
12333
12368
|
strictObject({ context: openMeldRequestContextSchema });
|
|
12334
12369
|
strictObject({ context: openMeldRequestContextSchema });
|
|
@@ -12338,10 +12373,14 @@ strictObject({
|
|
|
12338
12373
|
});
|
|
12339
12374
|
markCenterAgentInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12340
12375
|
markSpaceInboxReadThroughBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
12341
|
-
inboxItemRouteParamsSchema.extend({
|
|
12376
|
+
inboxItemRouteParamsSchema.extend({
|
|
12377
|
+
context: openMeldRequestContextSchema,
|
|
12378
|
+
includeReplyToRecipient: boolean().optional()
|
|
12379
|
+
});
|
|
12342
12380
|
inboxItemRouteParamsSchema.extend({ context: openMeldRequestContextSchema });
|
|
12343
12381
|
markInboxItemReadBodySchema.extend({
|
|
12344
12382
|
context: openMeldRequestContextSchema,
|
|
12383
|
+
includeReplyToRecipient: boolean().optional(),
|
|
12345
12384
|
itemId: identifierSchema
|
|
12346
12385
|
});
|
|
12347
12386
|
strictObject({ context: openMeldRequestContextSchema });
|
|
@@ -15536,8 +15575,9 @@ const createCurrentDeviceApi = (client) => {
|
|
|
15536
15575
|
},
|
|
15537
15576
|
setCurrentAgentProfileWorkspace: async (input) => {
|
|
15538
15577
|
const body = requireValidCurrentAgentProfileWorkspaceBody(input);
|
|
15578
|
+
const target = input.target ? peopleComputerTargetSchema.parse(input.target) : null;
|
|
15539
15579
|
return await client.requestJson({
|
|
15540
|
-
url: buildCurrentAgentProfileWorkspaceRoute(input.agentProfileId),
|
|
15580
|
+
url: target ? `/v1/people-computers/${encodeURIComponent(target.deviceId)}/lanes/${encodeURIComponent(target.runtimeLane)}/agent-profiles/${encodeURIComponent(input.agentProfileId)}/workspace` : buildCurrentAgentProfileWorkspaceRoute(input.agentProfileId),
|
|
15541
15581
|
operation: "local_runtime.current.agent_profile_workspace.write",
|
|
15542
15582
|
method: "PUT",
|
|
15543
15583
|
headers: { "content-type": "application/json" },
|
|
@@ -15675,6 +15715,10 @@ const createFeedbackApi = (client) => ({
|
|
|
15675
15715
|
}
|
|
15676
15716
|
});
|
|
15677
15717
|
const INBOX_PATH = "/v1/inbox";
|
|
15718
|
+
function buildInboxMessageNotificationPreferencesPath(spaceId) {
|
|
15719
|
+
const base = `${INBOX_PATH}/message-notification-preferences`;
|
|
15720
|
+
return spaceId === void 0 ? base : `${base}?${new URLSearchParams({ spaceId })}`;
|
|
15721
|
+
}
|
|
15678
15722
|
function buildInboxPath(query = {}) {
|
|
15679
15723
|
const search = new URLSearchParams();
|
|
15680
15724
|
if (query.cursor !== void 0) search.set("cursor", query.cursor);
|
|
@@ -15717,6 +15761,30 @@ function buildInboxPreferencesPath() {
|
|
|
15717
15761
|
return `${INBOX_PATH}/preferences`;
|
|
15718
15762
|
}
|
|
15719
15763
|
const createInboxApi = (client) => ({
|
|
15764
|
+
getMessageNotificationPreferences: async (input = {}) => {
|
|
15765
|
+
const query = requireValidInput$5(inboxMessageNotificationPreferencesQuerySchema, { spaceId: input.spaceId }, "Message notification preferences query is invalid.");
|
|
15766
|
+
return await client.requestJson({
|
|
15767
|
+
...requestOptions$7(input),
|
|
15768
|
+
method: "GET",
|
|
15769
|
+
operation: "inbox.message_preferences.read",
|
|
15770
|
+
invalidMessage: "Invalid message notification preferences response",
|
|
15771
|
+
schema: inboxMessageNotificationPreferencesResponseSchema,
|
|
15772
|
+
url: buildInboxMessageNotificationPreferencesPath(query.spaceId)
|
|
15773
|
+
});
|
|
15774
|
+
},
|
|
15775
|
+
updateMessageNotificationPreferences: async (input) => {
|
|
15776
|
+
const body = requireValidInput$5(updateInboxMessageNotificationPreferencesBodySchema, input.preference, "Message notification preferences request is invalid.");
|
|
15777
|
+
return await client.requestJson({
|
|
15778
|
+
...requestOptions$7(input),
|
|
15779
|
+
method: "PATCH",
|
|
15780
|
+
operation: "inbox.message_preferences.update",
|
|
15781
|
+
body: JSON.stringify(body),
|
|
15782
|
+
headers: { "content-type": "application/json" },
|
|
15783
|
+
invalidMessage: "Invalid message notification preferences response",
|
|
15784
|
+
schema: inboxMessageNotificationPreferencesResponseSchema,
|
|
15785
|
+
url: buildInboxMessageNotificationPreferencesPath()
|
|
15786
|
+
});
|
|
15787
|
+
},
|
|
15720
15788
|
centerAgentSummary: async (input = {}) => await client.requestJson({
|
|
15721
15789
|
...requestOptions$7(input),
|
|
15722
15790
|
invalidMessage: "invalid Center Agent Inbox summary response",
|
|
@@ -15877,7 +15945,7 @@ const createInboxApi = (client) => ({
|
|
|
15877
15945
|
function inboxSourceTargetVersionHeaders() {
|
|
15878
15946
|
return {
|
|
15879
15947
|
[OPENMELD_HEADER_INBOX_ITEM_KIND_VERSION]: "1",
|
|
15880
|
-
[OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "
|
|
15948
|
+
[OPENMELD_HEADER_INBOX_SOURCE_TARGET_VERSION]: "7"
|
|
15881
15949
|
};
|
|
15882
15950
|
}
|
|
15883
15951
|
function requestOptions$7(input) {
|
|
@@ -15892,6 +15960,38 @@ function requireValidInput$5(schema, value, message) {
|
|
|
15892
15960
|
if (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? "Invalid input."}`);
|
|
15893
15961
|
return parsed.data;
|
|
15894
15962
|
}
|
|
15963
|
+
/** Same rendered conversation projection in Web and native delivery. */
|
|
15964
|
+
function isInboxItemVisibleConversation(item, conversation) {
|
|
15965
|
+
if (!conversation) return false;
|
|
15966
|
+
const target = item.sourceTarget;
|
|
15967
|
+
if (target.kind === "center_agent") return target.spaceId === conversation.spaceId && conversation.threadRootSignalId === null;
|
|
15968
|
+
if (target.kind === "space") return target.spaceId === conversation.spaceId && (target.threadRootSignalId ?? null) === conversation.threadRootSignalId;
|
|
15969
|
+
if (target.kind === "agent_interaction") return target.threadRootSignalId !== void 0 && target.spaceId === conversation.spaceId && target.threadRootSignalId === conversation.threadRootSignalId;
|
|
15970
|
+
return false;
|
|
15971
|
+
}
|
|
15972
|
+
/** Client delivery policy over Core facts; never an Inbox writer. */
|
|
15973
|
+
function inboxMessageNotificationSpaceId(item) {
|
|
15974
|
+
if (item.attention !== "update") return;
|
|
15975
|
+
if (item.sourceTarget.kind !== "space" && item.sourceTarget.kind !== "center_agent") return;
|
|
15976
|
+
if (![
|
|
15977
|
+
"space_message",
|
|
15978
|
+
"space_mention",
|
|
15979
|
+
"agent_reply",
|
|
15980
|
+
"wake_outcome",
|
|
15981
|
+
"center_agent_update"
|
|
15982
|
+
].includes(item.kind)) return;
|
|
15983
|
+
return item.sourceTarget.spaceId;
|
|
15984
|
+
}
|
|
15985
|
+
function isInboxNotificationEligible(item, mode = "mentions_and_replies") {
|
|
15986
|
+
if (item.resolutionStatus === "resolved") return false;
|
|
15987
|
+
if (inboxMessageNotificationSpaceId(item)) {
|
|
15988
|
+
if (mode === "muted") return false;
|
|
15989
|
+
if (mode === "all_messages") return true;
|
|
15990
|
+
}
|
|
15991
|
+
if (item.importance === "urgent") return true;
|
|
15992
|
+
if (item.attention === "action_required" && item.resolutionStatus === "open") return true;
|
|
15993
|
+
return item.kind === "space_mention" || item.kind === "agent_reply" || item.kind === "wake_outcome" || item.kind === "space_message" && item.sourceTarget.kind === "space" && (item.sourceTarget.directMessage === true || item.sourceTarget.replyToRecipient === true);
|
|
15994
|
+
}
|
|
15895
15995
|
const CURRENT_LOCAL_FOLDER_PICKER_PATH = "/v1/local-runtimes/current/folder-picker";
|
|
15896
15996
|
function buildLocalFolderPickerPath() {
|
|
15897
15997
|
return CURRENT_LOCAL_FOLDER_PICKER_PATH;
|
|
@@ -15985,7 +16085,7 @@ const createLocalProjectControlApi = (client) => ({
|
|
|
15985
16085
|
method: "POST",
|
|
15986
16086
|
operation: "local-project-control.connect-candidate",
|
|
15987
16087
|
schema: localProjectControlConnectOutcomeSchema,
|
|
15988
|
-
url:
|
|
16088
|
+
url: projectControlPath(input, "connect-candidate")
|
|
15989
16089
|
}),
|
|
15990
16090
|
connectDeclaredPath: async (input) => await client.requestJson({
|
|
15991
16091
|
...requestOptions$5(input),
|
|
@@ -15995,7 +16095,7 @@ const createLocalProjectControlApi = (client) => ({
|
|
|
15995
16095
|
method: "POST",
|
|
15996
16096
|
operation: "local-project-control.connect-declared-path",
|
|
15997
16097
|
schema: localProjectControlConnectOutcomeSchema,
|
|
15998
|
-
url:
|
|
16098
|
+
url: projectControlPath(input, "connect-declared-path")
|
|
15999
16099
|
}),
|
|
16000
16100
|
setDefaultConnection: async (input) => await client.requestJson({
|
|
16001
16101
|
...requestOptions$5(input),
|
|
@@ -16005,7 +16105,7 @@ const createLocalProjectControlApi = (client) => ({
|
|
|
16005
16105
|
method: "POST",
|
|
16006
16106
|
operation: "local-project-control.set-default",
|
|
16007
16107
|
schema: localProjectControlSetDefaultConnectionResponseSchema,
|
|
16008
|
-
url:
|
|
16108
|
+
url: projectControlPath(input, "connections/set-default")
|
|
16009
16109
|
}),
|
|
16010
16110
|
removeConnection: async (input) => await client.requestJson({
|
|
16011
16111
|
...requestOptions$5(input),
|
|
@@ -16036,9 +16136,14 @@ function requestOptions$5(input) {
|
|
|
16036
16136
|
};
|
|
16037
16137
|
}
|
|
16038
16138
|
function requestBody(input) {
|
|
16039
|
-
const { requestContext: _requestContext, signal: _signal, timeoutMs: _timeoutMs, ...body } = input;
|
|
16139
|
+
const { target: _target, requestContext: _requestContext, signal: _signal, timeoutMs: _timeoutMs, ...body } = input;
|
|
16040
16140
|
return body;
|
|
16041
16141
|
}
|
|
16142
|
+
function projectControlPath(input, action) {
|
|
16143
|
+
if (!input.target) return buildLocalProjectControlPath(action);
|
|
16144
|
+
const target = requireValidInput$4(peopleComputerTargetSchema, input.target);
|
|
16145
|
+
return `/v1/people-computers/${encodeURIComponent(target.deviceId)}/lanes/${encodeURIComponent(target.runtimeLane)}/projects/${action}`;
|
|
16146
|
+
}
|
|
16042
16147
|
function requireValidInput$4(schema, value) {
|
|
16043
16148
|
const parsed = schema.safeParse(value);
|
|
16044
16149
|
if (!parsed.success) throw new Error(`Local Project control request is invalid. ${parsed.error.issues[0]?.message ?? "Invalid input."}`);
|
|
@@ -17977,7 +18082,7 @@ function normalizeKinds(values) {
|
|
|
17977
18082
|
}
|
|
17978
18083
|
async function getSpaceBootstrap(client, input) {
|
|
17979
18084
|
return await client.requestJson({
|
|
17980
|
-
url: buildSpaceBootstrapReadPath(input.spaceId, input.historyQuery, input.includeAgentStreamPresence),
|
|
18085
|
+
url: buildSpaceBootstrapReadPath(input.spaceId, input.historyQuery, input.includeAgentStreamPresence, input.includeAgentReadiness),
|
|
17981
18086
|
operation: "space.bootstrap.read",
|
|
17982
18087
|
headers: {
|
|
17983
18088
|
...currentSpaceAddressingHeaders(),
|
|
@@ -17991,10 +18096,11 @@ async function getSpaceBootstrap(client, input) {
|
|
|
17991
18096
|
invalidMessage: "invalid space bootstrap response"
|
|
17992
18097
|
});
|
|
17993
18098
|
}
|
|
17994
|
-
function buildSpaceBootstrapReadPath(spaceId, historyQuery, includeAgentStreamPresence) {
|
|
18099
|
+
function buildSpaceBootstrapReadPath(spaceId, historyQuery, includeAgentStreamPresence, includeAgentReadiness) {
|
|
17995
18100
|
const url = new URL(buildSpaceBootstrapPath(spaceId), "https://openmeld.local");
|
|
17996
18101
|
for (const [key, value] of buildSpaceSignalsReadSearchParams(historyQuery)) url.searchParams.append(key, value);
|
|
17997
18102
|
if (includeAgentStreamPresence === true) url.searchParams.set("includeAgentStreamPresence", "true");
|
|
18103
|
+
if (includeAgentReadiness === false) url.searchParams.set("includeAgentReadiness", "false");
|
|
17998
18104
|
return `${url.pathname}${url.search}`;
|
|
17999
18105
|
}
|
|
18000
18106
|
async function createSpace(client, input) {
|
|
@@ -19118,6 +19224,6 @@ function shouldWrapNetworkRequestError(error) {
|
|
|
19118
19224
|
return message.includes("fetch failed") || message.includes("failed to fetch") || message.includes("network request failed");
|
|
19119
19225
|
}
|
|
19120
19226
|
//#endregion
|
|
19121
|
-
export { buildLocalFolderPickerPath as $,
|
|
19227
|
+
export { buildLocalFolderPickerPath as $, resolveRuntimeCoordinatorHeadStatusRootCause as $n, resolvedSpaceMemberProfileSchema as $r, createPrepareReadinessApi as $t, buildCurrentOrganizationDirectoryPath as A, computerFileAccessPolicySchema as Ai, updateSpaceFileEntry as An, organizationSkillSummarySchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, resolveCustomMentionAliasOverride as Bn, pauseCenterAgentRoutineResponseSchema as Br, createDirectMessageApi as Bt, buildCenterAgentSessionPath as C, listProjectsResponseSchema as Ci, readOrUpdateSpaceMessagePins as Cn, resolveInitialSpaceAccessMode as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, OPENMELD_RUNTIME_CAPABILITIES_HEADER as Di, toStructuredApiClientFailure as Dn, listOrganizationSkillsResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Ei, setSpaceAccessMode as En, getOrganizationSkillResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, DAEMON_STREAM_KEEPALIVE_PONG as Fn, submitFeedbackIssueResponseSchema as Fr, createCenterAgentApi as Ft, buildFeedbackIssueSubmissionPath as G, buildOpenMeldRequestContextHeaders as Gn, agentActivityEventSchema as Gr, createLocalProjectControlApi as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as Hn, updateCenterAgentRoutineResponseSchema as Hr, createFetchTransport as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, MAX_TEXT_LENGTH as In, createCenterAgentRoutineResponseSchema as Ir, createComputerAuthorizationGrant as It, buildInboxItemReadPath as J, spaceEntryTargetSchema as Jn, agentActivitySnapshotQuerySchema as Jr, createOrganizationApi as Jt, buildInboxItemDismissPath as K, toErrorMessage$2 as Kn, agentActivityProviderSchema as Kr, createLocalRuntimeExpectedRoutesApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, parseEnvelope as Ln, deleteCenterAgentRoutineResponseSchema as Lr, createComputerFileAccessApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, uploadSpaceAttachment as Mn, organizationDirectoryResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, uploadSpaceFile as Nn, organizationComputersResponseSchema as Nr, createAgentProfileExecutionModeApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, computerFileAccessDaemonFrameSchema as Oi, trashSpaceFileEntry as On, organizationSkillBundleSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, DAEMON_STREAM_KEEPALIVE_PING as Pn, submitFeedbackIssueRequestSchema as Pr, createAgentProfileWorkRecoveryApi as Pt, buildInboxSummaryPath as Q, projectSpaceDispatchTraceFinalVisibleOutcome as Qn, removeSpaceMembersResponseSchema as Qr, createPluginsApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, parseIncoming as Rn, listCenterAgentRoutineRunsResponseSchema as Rr, createConfigApi as Rt, buildCenterAgentProfilePath as S, createProjectResponseSchema as Si, readOrUpdateSpaceFilePins as Sn, organizationSpaceDirectoryWithMemberCountsResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, updateProjectResponseSchema as Ti, resolveProfileSpaceHistoryGatewayHost as Tn, spaceMetaSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, OPENMELD_HEADER_REQUEST_ID as Un, AGENT_ACTIVITY_EVENT_MAX_BYTES as Ur, createInboxApi as Ut, buildCurrentOrganizationSpacesPath as V, OPENMELD_HEADER_PROFILE_ID as Vn, resumeCenterAgentRoutineResponseSchema as Vr, createFeedbackApi as Vt, buildDirectMessageSpacePath as W, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Wn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Wr, createLocalFolderPickerApi as Wt, buildInboxPath as X, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Xn, leaveSpaceResponseSchema as Xr, createOrganizationSkillsApi as Xt, buildInboxMarkAllReadPath as Y, pluginActionRequestSchema as Yn, agentActivitySnapshotResponseSchema as Yr, createOrganizationDocumentsApi as Yt, buildInboxPreferencesPath as Z, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Zn, postSpaceMembersResponseSchema as Zr, createOrganizationUsageApi as Zt, buildCenterAgentDirectMessageSpacePath as _, signalTextEnvelopeSchema as _i, normalizeApiBaseUrl as _n, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, agentActivityInventorySessionOriginSchema as ai, createRuntimeReportingApi as an, projectObservabilityWakeCorrelation as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, localProjectControlDiscoverProjectsResponseSchema as bi, readAccountSession as bn, gatewayErrorEnvelopeSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, agentActivitySessionInventoryResponseSchema as ci, createSpaceFolder as cn, projectOwnerComputerLocalRuntimes as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, centerAgentToolSpeakerSchema as di, getSpaceFile as dn, betterAuthDeviceAuthorizationCodeRequestSchema as dr, buildOrganizationSkillsPath as dt, spaceMemberAgentWakeAvailabilitySchema as ei, createProfileSpaceHistoryApi as en, resolveSpaceDispatchTraceRootCause as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, openCodePermissionConfigSchema as fi, inboxMessageNotificationSpaceId as fn, betterAuthDeviceAuthorizationCodeResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, serviceConnectionEvidenceJournalSchema as gi, listSpaceFiles as gn, betterAuthSessionSnapshotResponseSchema as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, serviceConnectionEvidenceEventSchema as hi, listSpaceFileRevisions as hn, betterAuthDeviceAuthorizationTokenResponseSchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, spaceMemberKindSchema as ii, createRoutinesApi as in, observabilityWakeTraceSelectorSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, toCompatibleSpaceAddressingRequestWireValue as ji, updateSpaceMeta as jn, stringifyOrganizationSkillBundleCanonicalJson as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, computerFileAccessPolicyInputSchema as ki, updateSpaceFileContent as kn, organizationSkillReleaseSummarySchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, localAgentSessionProviderSchema as li, downloadSpaceFileContent as ln, summarizeComputerFileAccessPolicy as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, agentControllerCollaborationModeSchema as mi, isInboxNotificationEligible as mn, betterAuthDeviceAuthorizationTokenRequestSchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, spaceMemberDirectoryEntrySchema as ni, createProjectsApi as nn, spaceDispatchTraceDispatchStatusSchema as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, agentActivityInventorySessionStatusSchema as oi, createServiceConnectionEvidenceApi as on, submitAgentControllerTaskLifecycleEventItemSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, agentControllerPermissionModeSchema as pi, isInboxItemVisibleConversation as pn, betterAuthDeviceAuthorizationErrorResponseSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, getSpaceUpdatesResponseSchema as qn, agentActivitySessionStatusSchema as qr, createOpenMeldApiClient as qt, buildAccountSpaceActiveWakeSummaryPath as r, spaceMemberDirectorySchema as ri, createReasoningStreamApi as rn, spaceDispatchTraceResponseSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, agentActivitySessionInventoryQuerySchema as si, createSpaceApi as sn, ownerComputerDiagnosticsSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, spaceMemberDirectoryAllowedRelationsSchema as ti, createProfilesApi as tn, spaceDispatchTraceAttemptStatusSchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, observedLocalAgentSessionSchema as ui, getModelCatalog as un, BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, localProjectControlConnectionSchema as vi, publicSpaceUrls as vn, agentProfileCreationConfigurationSchema as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, projectSchema as wi, resolveAccountSpaceIndexGatewayHost as wn, spaceCreatorSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, archiveProjectResponseSchema as xi, readCliRelease as xn, modelCatalogSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, localProjectControlDaemonFrameSchema as yi, readAccountOrganizationContext as yn, createAgentProfileCreationRequestBodySchema as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, parseServerErrorFrame as zn, listCenterAgentRoutinesResponseSchema as zr, createCurrentDeviceApi as zt };
|
|
19122
19228
|
|
|
19123
|
-
//# sourceMappingURL=dist-
|
|
19229
|
+
//# sourceMappingURL=dist-Ccbpt6rT.js.map
|