openmeld 0.3.196 → 0.3.197
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-BFGxL7es.js → add-me-membership-C9uxzH84.js} +2 -2
- package/dist/{add-me-membership-BFGxL7es.js.map → add-me-membership-C9uxzH84.js.map} +1 -1
- package/dist/{api-client-foundation-P2pFKSiO.js → api-client-foundation-Cb6QKgs-.js} +1 -1
- package/dist/{api-client-foundation-BsPHcY3o.js → api-client-foundation-HPh7nYGY.js} +2 -2
- package/dist/{api-client-foundation-BsPHcY3o.js.map → api-client-foundation-HPh7nYGY.js.map} +1 -1
- package/dist/{command-Cv_zk6lk.js → command-Wx88DamN.js} +6 -6
- package/dist/{command-Cv_zk6lk.js.map → command-Wx88DamN.js.map} +1 -1
- package/dist/{dist-BusHUGTV.js → dist-B76WJQhX.js} +1 -1
- package/dist/{dist-ChnRIPdJ.js → dist-Dec5o82m.js} +96 -39
- package/dist/dist-Dec5o82m.js.map +1 -0
- package/dist/{elapsed-time-DJjiBm-F.js → elapsed-time-B3vpOQS9.js} +2 -2
- package/dist/{elapsed-time-DJjiBm-F.js.map → elapsed-time-B3vpOQS9.js.map} +1 -1
- package/dist/{installer-DFtewadV.js → installer-BPW3ruIA.js} +2 -2
- package/dist/{installer-DFtewadV.js.map → installer-BPW3ruIA.js.map} +1 -1
- package/dist/{openmeld-aB7j_Ttf.js → openmeld-B-BIkyIh.js} +15 -10
- package/dist/openmeld-B-BIkyIh.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DeuMa2mv.js → openmeld-maintenance-worker-BhBB6171.js} +3 -3
- package/dist/{openmeld-maintenance-worker-DeuMa2mv.js.map → openmeld-maintenance-worker-BhBB6171.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-CXYGRejb.js → openmeld-tools-update-coordinator-ClR_mpUt.js} +6 -6
- package/dist/{openmeld-tools-update-coordinator-CXYGRejb.js.map → openmeld-tools-update-coordinator-ClR_mpUt.js.map} +1 -1
- package/dist/openmeld.js +3 -3
- package/dist/upgrade-BnhBDhux.js +4 -0
- package/dist/{upgrade-uC1c8yT-.js → upgrade-ClCCv6Hb.js} +3 -3
- package/dist/{upgrade-uC1c8yT-.js.map → upgrade-ClCCv6Hb.js.map} +1 -1
- package/package.json +1 -1
- package/dist/dist-ChnRIPdJ.js.map +0 -1
- package/dist/openmeld-aB7j_Ttf.js.map +0 -1
- package/dist/upgrade-Ct0DwGv5.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $ as buildLocalFolderPickerPath, $t as createProjectsApi, A as buildCurrentOrganizationDirectoryPath, At as createAccountSpaceIndexApi, B as buildCurrentOrganizationMessageChannelsPath, Bt as createFetchTransport, C as buildCenterAgentSessionPath, Ct as buildRoutineTargetSpacesPath, D as buildCurrentAgentProfileSessionRoute, Dt as buildSpaceInboxReadThroughPath, E as buildComputerFileAccessUpdatePath, Et as buildSpaceBootstrapReadPath, F as buildCurrentOrganizationMessageChannelPath, Ft as createComputerFileAccessApi, G as buildFeedbackIssueSubmissionPath, Gt as createOpenMeldApiClient, H as buildCurrentOrganizationSpacesWithMemberCountsPath, Ht as createLocalFolderPickerApi, I as buildCurrentOrganizationMessageChannelRegistrationPath, It as createConfigApi, J as buildInboxItemReadPath, Jt as createOrganizationSkillsApi, K as buildInboxItemDismissPath, Kt as createOrganizationApi, L as buildCurrentOrganizationMessageChannelRegistrationPollPath, Lt as createCurrentDeviceApi, M as buildCurrentOrganizationInformationProtectionPath, Mt as createAgentProfileBindingApi, N as buildCurrentOrganizationLogoPath, Nt as createAgentProfileWorkRecoveryApi, O as buildCurrentOrganizationCenterAgentMemoryWipeSelfPath, Ot as buildSpaceInboxSummaryPath, P as buildCurrentOrganizationMemberOpenMeldServiceStatusesPath, Pt as createCenterAgentApi, Q as buildInboxSummaryPath, Qt as createProfilesApi, R as buildCurrentOrganizationMessageChannelRegistrationsPath, Rt as createDirectMessageApi, S as buildCenterAgentProfilePath, Sn as uploadSpaceFile, St as buildRoutineRunsPath, T as buildComputerFileAccessReadPath, Tt as buildSpaceAttachmentDownloadPath, U as buildDirectMessageConversionPath, Ut as createLocalProjectControlApi, V as buildCurrentOrganizationSpacesPath, Vt as createInboxApi, W as buildDirectMessageSpacePath, Wt as createLocalRuntimeExpectedRoutesApi, X as buildInboxPath, Xt as createPrepareReadinessApi, Y as buildInboxMarkAllReadPath, Yt as createOrganizationUsageApi, Z as buildInboxPreferencesPath, Zt as createProfileSpaceHistoryApi, _ as buildCenterAgentDirectMessageSpacePath, _n as trashSpaceFileEntry, _t as buildProjectPath, a as buildAgentActivitySessionsPath, an as getModelCatalog, at as buildOrganizationDocumentsPath, b as buildCenterAgentMemberResearchPath, bn as updateSpaceMeta, bt as buildRoutinePausePath, c as buildAgentProfileCreationApprovalPreferencePath, cn as listSpaceFiles, ct as buildOrganizationSkillGitHubPreviewPath, d as buildAgentProfileCreationRequestDecisionPath, dn as readOrUpdateSpaceFilePins, dt as buildOrganizationSkillsPath, en as createRoutinesApi, et as buildLocalProjectControlPath, f as buildAgentProfileCreationRequestRetryPath, fn as readOrUpdateSpaceMessagePins, ft as buildOrganizationUsageOverviewPath, g as buildCenterAgentDesignationPath, gn as toStructuredApiClientFailure, gt as buildProfileSpaceHistoryUpsertPath, h as buildCenterAgentAuditJournalPath, hn as setSpaceAccessMode, ht as buildProfileSpaceHistoryStatusPath, i as buildAccountSpaceIndexPath, in as downloadSpaceFileContent, it as buildOrganizationDocumentPath, j as buildCurrentOrganizationFeedbackReportingPolicyPath, jt as createAgentActivityApi, k as buildCurrentOrganizationComputersPath, kt as buildSpaceInboxUnreadTargetsPath, l as buildAgentProfileCreationDefaultsPath, ln as normalizeApiBaseUrl, lt as buildOrganizationSkillMaintainersPath, m as buildAgentProfileWorkRecoveryRoute, mn as resolveProfileSpaceHistoryGatewayHost, mt as buildProfileSpaceHistoryListPath, n as OpenMeldApiClientInvalidResponseError, nn as createSpaceApi, nt as buildOrganizationDocumentApproveDraftPath, o as buildAgentActivitySnapshotPath, on as getSpaceFile, ot as buildOrganizationSkillEnabledPath, p as buildAgentProfileCreationRequestsPath, pn as resolveAccountSpaceIndexGatewayHost, pt as buildProfileRoute, q as buildInboxItemPath, qt as createOrganizationDocumentsApi, r as buildAccountSpaceActiveWakeSummaryPath, rn as createSpaceFolder, rt as buildOrganizationDocumentDiscardDraftPath, s as buildAgentActivityStatsPath, sn as listSpaceFileRevisions, st as buildOrganizationSkillGitHubImportPath, t as OpenMeldApiClientHttpError, tn as createRuntimeReportingApi, tt as buildModelCatalogPath, u as buildAgentProfileCreationRequestCancelPath, un as publicSpaceUrls, ut as buildOrganizationSkillPath, v as buildCenterAgentInboxReadThroughPath, vn as updateSpaceFileContent, vt as buildProjectsPath, w as buildCenterAgentSessionsPath, wt as buildRoutinesPath, x as buildCenterAgentOperatingStatePath, xn as uploadSpaceAttachment, xt as buildRoutineResumePath, y as buildCenterAgentInboxSummaryPath, yn as updateSpaceFileEntry, yt as buildRoutinePath, z as buildCurrentOrganizationMessageChannelSetupRequestsPath, zt as createFeedbackApi } from "./dist-
|
|
3
|
+
import { $ as buildLocalFolderPickerPath, $t as createProjectsApi, A as buildCurrentOrganizationDirectoryPath, At as createAccountSpaceIndexApi, B as buildCurrentOrganizationMessageChannelsPath, Bt as createFetchTransport, C as buildCenterAgentSessionPath, Ct as buildRoutineTargetSpacesPath, D as buildCurrentAgentProfileSessionRoute, Dt as buildSpaceInboxReadThroughPath, E as buildComputerFileAccessUpdatePath, Et as buildSpaceBootstrapReadPath, F as buildCurrentOrganizationMessageChannelPath, Ft as createComputerFileAccessApi, G as buildFeedbackIssueSubmissionPath, Gt as createOpenMeldApiClient, H as buildCurrentOrganizationSpacesWithMemberCountsPath, Ht as createLocalFolderPickerApi, I as buildCurrentOrganizationMessageChannelRegistrationPath, It as createConfigApi, J as buildInboxItemReadPath, Jt as createOrganizationSkillsApi, K as buildInboxItemDismissPath, Kt as createOrganizationApi, L as buildCurrentOrganizationMessageChannelRegistrationPollPath, Lt as createCurrentDeviceApi, M as buildCurrentOrganizationInformationProtectionPath, Mt as createAgentProfileBindingApi, N as buildCurrentOrganizationLogoPath, Nt as createAgentProfileWorkRecoveryApi, O as buildCurrentOrganizationCenterAgentMemoryWipeSelfPath, Ot as buildSpaceInboxSummaryPath, P as buildCurrentOrganizationMemberOpenMeldServiceStatusesPath, Pt as createCenterAgentApi, Q as buildInboxSummaryPath, Qt as createProfilesApi, R as buildCurrentOrganizationMessageChannelRegistrationsPath, Rt as createDirectMessageApi, S as buildCenterAgentProfilePath, Sn as uploadSpaceFile, St as buildRoutineRunsPath, T as buildComputerFileAccessReadPath, Tt as buildSpaceAttachmentDownloadPath, U as buildDirectMessageConversionPath, Ut as createLocalProjectControlApi, V as buildCurrentOrganizationSpacesPath, Vt as createInboxApi, W as buildDirectMessageSpacePath, Wt as createLocalRuntimeExpectedRoutesApi, X as buildInboxPath, Xt as createPrepareReadinessApi, Y as buildInboxMarkAllReadPath, Yt as createOrganizationUsageApi, Z as buildInboxPreferencesPath, Zt as createProfileSpaceHistoryApi, _ as buildCenterAgentDirectMessageSpacePath, _n as trashSpaceFileEntry, _t as buildProjectPath, a as buildAgentActivitySessionsPath, an as getModelCatalog, at as buildOrganizationDocumentsPath, b as buildCenterAgentMemberResearchPath, bn as updateSpaceMeta, bt as buildRoutinePausePath, c as buildAgentProfileCreationApprovalPreferencePath, cn as listSpaceFiles, ct as buildOrganizationSkillGitHubPreviewPath, d as buildAgentProfileCreationRequestDecisionPath, dn as readOrUpdateSpaceFilePins, dt as buildOrganizationSkillsPath, en as createRoutinesApi, et as buildLocalProjectControlPath, f as buildAgentProfileCreationRequestRetryPath, fn as readOrUpdateSpaceMessagePins, ft as buildOrganizationUsageOverviewPath, g as buildCenterAgentDesignationPath, gn as toStructuredApiClientFailure, gt as buildProfileSpaceHistoryUpsertPath, h as buildCenterAgentAuditJournalPath, hn as setSpaceAccessMode, ht as buildProfileSpaceHistoryStatusPath, i as buildAccountSpaceIndexPath, in as downloadSpaceFileContent, it as buildOrganizationDocumentPath, j as buildCurrentOrganizationFeedbackReportingPolicyPath, jt as createAgentActivityApi, k as buildCurrentOrganizationComputersPath, kt as buildSpaceInboxUnreadTargetsPath, l as buildAgentProfileCreationDefaultsPath, ln as normalizeApiBaseUrl, lt as buildOrganizationSkillMaintainersPath, m as buildAgentProfileWorkRecoveryRoute, mn as resolveProfileSpaceHistoryGatewayHost, mt as buildProfileSpaceHistoryListPath, n as OpenMeldApiClientInvalidResponseError, nn as createSpaceApi, nt as buildOrganizationDocumentApproveDraftPath, o as buildAgentActivitySnapshotPath, on as getSpaceFile, ot as buildOrganizationSkillEnabledPath, p as buildAgentProfileCreationRequestsPath, pn as resolveAccountSpaceIndexGatewayHost, pt as buildProfileRoute, q as buildInboxItemPath, qt as createOrganizationDocumentsApi, r as buildAccountSpaceActiveWakeSummaryPath, rn as createSpaceFolder, rt as buildOrganizationDocumentDiscardDraftPath, s as buildAgentActivityStatsPath, sn as listSpaceFileRevisions, st as buildOrganizationSkillGitHubImportPath, t as OpenMeldApiClientHttpError, tn as createRuntimeReportingApi, tt as buildModelCatalogPath, u as buildAgentProfileCreationRequestCancelPath, un as publicSpaceUrls, ut as buildOrganizationSkillPath, v as buildCenterAgentInboxReadThroughPath, vn as updateSpaceFileContent, vt as buildProjectsPath, w as buildCenterAgentSessionsPath, wt as buildRoutinesPath, x as buildCenterAgentOperatingStatePath, xn as uploadSpaceAttachment, xt as buildRoutineResumePath, y as buildCenterAgentInboxSummaryPath, yn as updateSpaceFileEntry, yt as buildRoutinePath, z as buildCurrentOrganizationMessageChannelSetupRequestsPath, zt as createFeedbackApi } from "./dist-Dec5o82m.js";
|
|
4
4
|
export { OpenMeldApiClientHttpError, OpenMeldApiClientInvalidResponseError, buildAccountSpaceActiveWakeSummaryPath, buildAccountSpaceIndexPath, buildAgentActivitySessionsPath, buildAgentActivitySnapshotPath, buildAgentActivityStatsPath, buildAgentProfileCreationApprovalPreferencePath, buildAgentProfileCreationDefaultsPath, buildAgentProfileCreationRequestCancelPath, buildAgentProfileCreationRequestDecisionPath, buildAgentProfileCreationRequestRetryPath, buildAgentProfileCreationRequestsPath, buildAgentProfileWorkRecoveryRoute, buildCenterAgentAuditJournalPath, buildCenterAgentDesignationPath, buildCenterAgentDirectMessageSpacePath, buildCenterAgentInboxReadThroughPath, buildCenterAgentInboxSummaryPath, buildCenterAgentMemberResearchPath, buildCenterAgentOperatingStatePath, buildCenterAgentProfilePath, buildCenterAgentSessionPath, buildCenterAgentSessionsPath, buildComputerFileAccessReadPath, buildComputerFileAccessUpdatePath, buildCurrentAgentProfileSessionRoute, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath, buildCurrentOrganizationComputersPath, buildCurrentOrganizationDirectoryPath, buildCurrentOrganizationFeedbackReportingPolicyPath, buildCurrentOrganizationInformationProtectionPath, buildCurrentOrganizationLogoPath, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath, buildCurrentOrganizationMessageChannelPath, buildCurrentOrganizationMessageChannelRegistrationPath, buildCurrentOrganizationMessageChannelRegistrationPollPath, buildCurrentOrganizationMessageChannelRegistrationsPath, buildCurrentOrganizationMessageChannelSetupRequestsPath, buildCurrentOrganizationMessageChannelsPath, buildCurrentOrganizationSpacesPath, buildCurrentOrganizationSpacesWithMemberCountsPath, buildDirectMessageConversionPath, buildDirectMessageSpacePath, buildFeedbackIssueSubmissionPath, buildInboxItemDismissPath, buildInboxItemPath, buildInboxItemReadPath, buildInboxMarkAllReadPath, buildInboxPath, buildInboxPreferencesPath, buildInboxSummaryPath, buildLocalFolderPickerPath, buildLocalProjectControlPath, buildModelCatalogPath, buildOrganizationDocumentApproveDraftPath, buildOrganizationDocumentDiscardDraftPath, buildOrganizationDocumentPath, buildOrganizationDocumentsPath, buildOrganizationSkillEnabledPath, buildOrganizationSkillGitHubImportPath, buildOrganizationSkillGitHubPreviewPath, buildOrganizationSkillMaintainersPath, buildOrganizationSkillPath, buildOrganizationSkillsPath, buildOrganizationUsageOverviewPath, buildProfileRoute, buildProfileSpaceHistoryListPath, buildProfileSpaceHistoryStatusPath, buildProfileSpaceHistoryUpsertPath, buildProjectPath, buildProjectsPath, buildRoutinePath, buildRoutinePausePath, buildRoutineResumePath, buildRoutineRunsPath, buildRoutineTargetSpacesPath, buildRoutinesPath, buildSpaceAttachmentDownloadPath, buildSpaceBootstrapReadPath, buildSpaceInboxReadThroughPath, buildSpaceInboxSummaryPath, buildSpaceInboxUnreadTargetsPath, createAccountSpaceIndexApi, createAgentActivityApi, createAgentProfileBindingApi, createAgentProfileWorkRecoveryApi, createCenterAgentApi, createComputerFileAccessApi, createConfigApi, createCurrentDeviceApi, createDirectMessageApi, createFeedbackApi, createFetchTransport, createInboxApi, createLocalFolderPickerApi, createLocalProjectControlApi, createLocalRuntimeExpectedRoutesApi, createOpenMeldApiClient, createOrganizationApi, createOrganizationDocumentsApi, createOrganizationSkillsApi, createOrganizationUsageApi, createPrepareReadinessApi, createProfileSpaceHistoryApi, createProfilesApi, createProjectsApi, createRoutinesApi, createRuntimeReportingApi, createSpaceApi, createSpaceFolder, downloadSpaceFileContent, getModelCatalog, getSpaceFile, listSpaceFileRevisions, listSpaceFiles, normalizeApiBaseUrl, publicSpaceUrls, readOrUpdateSpaceFilePins, readOrUpdateSpaceMessagePins, resolveAccountSpaceIndexGatewayHost, resolveProfileSpaceHistoryGatewayHost, setSpaceAccessMode, toStructuredApiClientFailure, trashSpaceFileEntry, updateSpaceFileContent, updateSpaceFileEntry, updateSpaceMeta, uploadSpaceAttachment, uploadSpaceFile };
|
|
@@ -647,28 +647,40 @@ const messageChannelResourceDescriptorSchema = strictObject({
|
|
|
647
647
|
sizeBytes: number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).nullable()
|
|
648
648
|
});
|
|
649
649
|
const messageChannelConversationEventShape = { locator: messageChannelConversationLocatorSchema };
|
|
650
|
+
const normalizedMessageChannelMessageEventSchema = strictObject({
|
|
651
|
+
kind: literal("message"),
|
|
652
|
+
messageId: providerIdSchema,
|
|
653
|
+
sentAtMs: timestampMsSchema$7,
|
|
654
|
+
senderId: providerIdSchema,
|
|
655
|
+
senderDisplayName: nonEmptyStringSchema$4.max(256).optional(),
|
|
656
|
+
senderTenantKey: providerIdSchema.optional(),
|
|
657
|
+
...messageChannelConversationEventShape,
|
|
658
|
+
text: nonEmptyStringSchema$4.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
659
|
+
mention: messageChannelMentionTypeSchema,
|
|
660
|
+
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
661
|
+
});
|
|
662
|
+
const normalizedMessageChannelCardActionEventSchema = strictObject({
|
|
663
|
+
kind: literal("card_action"),
|
|
664
|
+
actionId: providerIdSchema,
|
|
665
|
+
occurredAtMs: timestampMsSchema$7,
|
|
666
|
+
senderId: providerIdSchema,
|
|
667
|
+
...messageChannelConversationEventShape,
|
|
668
|
+
actionName: nonEmptyStringSchema$4.max(128),
|
|
669
|
+
actionValue: nonEmptyStringSchema$4.max(8192).nullable()
|
|
670
|
+
});
|
|
671
|
+
discriminatedUnion("action", [strictObject({
|
|
672
|
+
v: literal(1),
|
|
673
|
+
action: literal("stop"),
|
|
674
|
+
deliveryId: providerIdSchema
|
|
675
|
+
}), strictObject({
|
|
676
|
+
v: literal(1),
|
|
677
|
+
action: literal("reply"),
|
|
678
|
+
deliveryId: providerIdSchema,
|
|
679
|
+
text: string().trim().min(1).max(1e3)
|
|
680
|
+
})]);
|
|
650
681
|
const normalizedMessageChannelEventSchema = discriminatedUnion("kind", [
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
messageId: providerIdSchema,
|
|
654
|
-
sentAtMs: timestampMsSchema$7,
|
|
655
|
-
senderId: providerIdSchema,
|
|
656
|
-
senderDisplayName: nonEmptyStringSchema$4.max(256).optional(),
|
|
657
|
-
senderTenantKey: providerIdSchema.optional(),
|
|
658
|
-
...messageChannelConversationEventShape,
|
|
659
|
-
text: nonEmptyStringSchema$4.max(MESSAGE_CHANNEL_EVENT_TEXT_MAX_CHARS),
|
|
660
|
-
mention: messageChannelMentionTypeSchema,
|
|
661
|
-
resources: array(messageChannelResourceDescriptorSchema).max(10)
|
|
662
|
-
}),
|
|
663
|
-
strictObject({
|
|
664
|
-
kind: literal("card_action"),
|
|
665
|
-
actionId: providerIdSchema,
|
|
666
|
-
occurredAtMs: timestampMsSchema$7,
|
|
667
|
-
senderId: providerIdSchema,
|
|
668
|
-
...messageChannelConversationEventShape,
|
|
669
|
-
actionName: nonEmptyStringSchema$4.max(128),
|
|
670
|
-
actionValue: nonEmptyStringSchema$4.max(2e3).nullable()
|
|
671
|
-
}),
|
|
682
|
+
normalizedMessageChannelMessageEventSchema,
|
|
683
|
+
normalizedMessageChannelCardActionEventSchema,
|
|
672
684
|
strictObject({
|
|
673
685
|
kind: literal("bot_added"),
|
|
674
686
|
chatId: providerIdSchema,
|
|
@@ -725,6 +737,23 @@ const messageChannelIngressEnvelopeSchema = strictObject({
|
|
|
725
737
|
]
|
|
726
738
|
});
|
|
727
739
|
});
|
|
740
|
+
function buildMessageChannelConversationId(locator) {
|
|
741
|
+
if (locator.provider === "slack") return [
|
|
742
|
+
locator.provider,
|
|
743
|
+
locator.connectionId,
|
|
744
|
+
locator.channelId,
|
|
745
|
+
locator.rootMessageId
|
|
746
|
+
].map(encodeConversationIdPart).join(":");
|
|
747
|
+
return [
|
|
748
|
+
locator.provider,
|
|
749
|
+
locator.connectionId,
|
|
750
|
+
locator.chatId,
|
|
751
|
+
locator.rootMessageId
|
|
752
|
+
].map(encodeConversationIdPart).join(":");
|
|
753
|
+
}
|
|
754
|
+
function encodeConversationIdPart(value) {
|
|
755
|
+
return encodeURIComponent(value);
|
|
756
|
+
}
|
|
728
757
|
//#endregion
|
|
729
758
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-speaker.js
|
|
730
759
|
const CENTER_AGENT_ANONYMOUS_MEMBER_TOOL_NAMES = [
|
|
@@ -3135,6 +3164,7 @@ const CENTER_AGENT_ROUTINE_ERROR_CODES = [
|
|
|
3135
3164
|
"routine.target_space_org_mismatch",
|
|
3136
3165
|
"routine.target_space_publication_unavailable",
|
|
3137
3166
|
"routine.slack_thread_unavailable",
|
|
3167
|
+
"routine.message_channel_unavailable",
|
|
3138
3168
|
"routine.total_limit_reached"
|
|
3139
3169
|
];
|
|
3140
3170
|
const CENTER_AGENT_ROUTINE_STATUSES = [
|
|
@@ -3150,7 +3180,11 @@ const CENTER_AGENT_ROUTINE_RUN_STATUSES = [
|
|
|
3150
3180
|
"skipped"
|
|
3151
3181
|
];
|
|
3152
3182
|
const CENTER_AGENT_ROUTINE_TARGET_SPACE_KINDS = ["space", "center_agent_dm"];
|
|
3153
|
-
const CENTER_AGENT_ROUTINE_DESTINATION_KINDS = [
|
|
3183
|
+
const CENTER_AGENT_ROUTINE_DESTINATION_KINDS = [
|
|
3184
|
+
"space",
|
|
3185
|
+
"slack_thread",
|
|
3186
|
+
"message_channel"
|
|
3187
|
+
];
|
|
3154
3188
|
const CENTER_AGENT_ROUTINE_AUTHORIZED_ACTIONS = ["organization_documents.save_approved_knowledge", "slack.publish_channel_report"];
|
|
3155
3189
|
const CENTER_AGENT_ROUTINE_EXTERNAL_ACTION_POLICIES = ["standard", "read_only"];
|
|
3156
3190
|
const CENTER_AGENT_ROUTINE_PRACTICAL_CONTRACT = "practical-v2";
|
|
@@ -3196,6 +3230,7 @@ const routineScheduleShape = {
|
|
|
3196
3230
|
timezone: nullableTrimmedTextSchema(128)
|
|
3197
3231
|
};
|
|
3198
3232
|
const routineDestinationShape = {
|
|
3233
|
+
messageChannelLocator: messageChannelConversationLocatorSchema.nullable().optional(),
|
|
3199
3234
|
destinationKind: centerAgentRoutineDestinationKindSchema.default("space"),
|
|
3200
3235
|
slackChannelId: nullableTrimmedTextSchema(256).default(null),
|
|
3201
3236
|
slackConversationId: nullableTrimmedTextSchema(512).default(null),
|
|
@@ -3331,6 +3366,7 @@ strictObject({ routine: centerAgentRoutineLegacyV1Schema });
|
|
|
3331
3366
|
const centerAgentRoutineRouteParamsShape = { routineId: trimmedIdentifierSchema };
|
|
3332
3367
|
const centerAgentRoutineRouteParamsSchema = strictObject(centerAgentRoutineRouteParamsShape);
|
|
3333
3368
|
const routineUpdateShape = {
|
|
3369
|
+
messageChannelLocator: messageChannelConversationLocatorSchema.nullable().optional(),
|
|
3334
3370
|
authorizedActions: centerAgentRoutineAuthorizedActionsSchema.optional(),
|
|
3335
3371
|
externalActionPolicy: centerAgentRoutineExternalActionPolicySchema.optional(),
|
|
3336
3372
|
cronExpression: string().trim().min(1).max(256).nullable().optional(),
|
|
@@ -3444,7 +3480,7 @@ strictObject({
|
|
|
3444
3480
|
...centerAgentRoutineRouteParamsShape
|
|
3445
3481
|
});
|
|
3446
3482
|
function hasRoutineUpdate(value) {
|
|
3447
|
-
return value.authorizedActions !== void 0 || value.cronExpression !== void 0 || value.destinationKind !== void 0 || value.externalActionPolicy !== void 0 || value.instructions !== void 0 || value.name !== void 0 || value.runAtMs !== void 0 || value.scheduleKind !== void 0 || value.slackChannelId !== void 0 || value.slackConversationId !== void 0 || value.slackTeamId !== void 0 || value.slackThreadLabel !== void 0 || value.slackThreadTs !== void 0 || value.targetSpaceId !== void 0 || value.timezone !== void 0;
|
|
3483
|
+
return value.messageChannelLocator !== void 0 || value.authorizedActions !== void 0 || value.cronExpression !== void 0 || value.destinationKind !== void 0 || value.externalActionPolicy !== void 0 || value.instructions !== void 0 || value.name !== void 0 || value.runAtMs !== void 0 || value.scheduleKind !== void 0 || value.slackChannelId !== void 0 || value.slackConversationId !== void 0 || value.slackTeamId !== void 0 || value.slackThreadLabel !== void 0 || value.slackThreadTs !== void 0 || value.targetSpaceId !== void 0 || value.timezone !== void 0;
|
|
3448
3484
|
}
|
|
3449
3485
|
function validateRoutineScheduleAndDestination(value, context) {
|
|
3450
3486
|
const recurringScheduleComplete = Boolean(value.cronExpression && value.timezone && value.runAtMs === null);
|
|
@@ -3454,11 +3490,11 @@ function validateRoutineScheduleAndDestination(value, context) {
|
|
|
3454
3490
|
message: "A recurring Routine requires cronExpression and timezone; a one-time Routine requires only runAtMs.",
|
|
3455
3491
|
path: ["scheduleKind"]
|
|
3456
3492
|
});
|
|
3457
|
-
const spaceDestinationComplete = Boolean(value.targetSpaceId && !value.slackTeamId && !value.slackChannelId && !value.slackThreadTs && !value.slackConversationId);
|
|
3458
|
-
const slackDestinationComplete = Boolean(!value.targetSpaceId && value.slackTeamId && value.slackChannelId && value.slackThreadTs && value.slackConversationId);
|
|
3459
|
-
if (value.destinationKind === "space" && !spaceDestinationComplete || value.destinationKind === "slack_thread" && !slackDestinationComplete) context.addIssue({
|
|
3493
|
+
const spaceDestinationComplete = Boolean(value.targetSpaceId && !value.messageChannelLocator && !value.slackTeamId && !value.slackChannelId && !value.slackThreadTs && !value.slackConversationId);
|
|
3494
|
+
const slackDestinationComplete = Boolean(!(value.targetSpaceId || value.messageChannelLocator) && value.slackTeamId && value.slackChannelId && value.slackThreadTs && value.slackConversationId);
|
|
3495
|
+
if (value.destinationKind === "space" && !spaceDestinationComplete || value.destinationKind === "slack_thread" && !slackDestinationComplete || value.destinationKind === "message_channel" && !(value.messageChannelLocator && value.messageChannelLocator.provider !== "slack" && !value.targetSpaceId && !value.slackTeamId && !value.slackChannelId && !value.slackThreadTs && !value.slackConversationId)) context.addIssue({
|
|
3460
3496
|
code: "custom",
|
|
3461
|
-
message: "
|
|
3497
|
+
message: "Choose a Space, a Slack thread, or a Feishu or Lark conversation with its complete destination.",
|
|
3462
3498
|
path: ["destinationKind"]
|
|
3463
3499
|
});
|
|
3464
3500
|
}
|
|
@@ -7073,17 +7109,24 @@ const remoteAgentTurnEnvelopeCenterAgentSchema = strictObject({
|
|
|
7073
7109
|
profileHandle: nonEmptyStringSchema$1
|
|
7074
7110
|
});
|
|
7075
7111
|
const remoteAgentSlackSearchAuthorizationSchema = strictObject({ encryptedAuthorization: nonEmptyStringSchema$1.max(8192) });
|
|
7076
|
-
const remoteAgentRoutineDestinationSchema = discriminatedUnion("kind", [
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7112
|
+
const remoteAgentRoutineDestinationSchema = discriminatedUnion("kind", [
|
|
7113
|
+
strictObject({
|
|
7114
|
+
kind: literal("message_channel"),
|
|
7115
|
+
locator: messageChannelConversationLocatorSchema
|
|
7116
|
+
}),
|
|
7117
|
+
strictObject({
|
|
7118
|
+
kind: literal("space"),
|
|
7119
|
+
spaceId: nonEmptyStringSchema$1
|
|
7120
|
+
}),
|
|
7121
|
+
strictObject({
|
|
7122
|
+
channelId: nonEmptyStringSchema$1,
|
|
7123
|
+
conversationId: nonEmptyStringSchema$1,
|
|
7124
|
+
kind: literal("slack_thread"),
|
|
7125
|
+
label: nonEmptyStringSchema$1.optional(),
|
|
7126
|
+
teamId: nonEmptyStringSchema$1,
|
|
7127
|
+
threadTs: nonEmptyStringSchema$1
|
|
7128
|
+
})
|
|
7129
|
+
]);
|
|
7087
7130
|
const remoteAgentRoutineContinuationSchema = strictObject({
|
|
7088
7131
|
delegation: agentDelegationSnapshotSchema,
|
|
7089
7132
|
delegationId: nonEmptyStringSchema$1,
|
|
@@ -7106,6 +7149,7 @@ const remoteAgentTurnEnvelopeTriggerSchema = discriminatedUnion("source", [
|
|
|
7106
7149
|
}),
|
|
7107
7150
|
strictObject({
|
|
7108
7151
|
source: literal("message_channel"),
|
|
7152
|
+
routineLocator: messageChannelConversationLocatorSchema.optional(),
|
|
7109
7153
|
provider: messageChannelProviderSchema,
|
|
7110
7154
|
connectionId: nonEmptyStringSchema$1,
|
|
7111
7155
|
conversationId: nonEmptyStringSchema$1,
|
|
@@ -7208,6 +7252,11 @@ const remoteAgentTurnEnvelopeSchema = strictObject({
|
|
|
7208
7252
|
"ownerUserId"
|
|
7209
7253
|
]
|
|
7210
7254
|
});
|
|
7255
|
+
if (envelope.trigger.source === "routine" && envelope.trigger.destination?.kind === "message_channel" && (envelope.trigger.destination.locator.provider === "slack" || buildMessageChannelConversationId(envelope.trigger.destination.locator) !== envelope.space.id)) context.addIssue({
|
|
7256
|
+
code: "custom",
|
|
7257
|
+
message: "Routine destination must match its conversation.",
|
|
7258
|
+
path: ["trigger", "destination"]
|
|
7259
|
+
});
|
|
7211
7260
|
if (envelope.trigger.source === "routine" && envelope.trigger.destination && envelope.trigger.destination.kind === "space" && envelope.trigger.destination.spaceId !== envelope.space.id) context.addIssue({
|
|
7212
7261
|
code: "custom",
|
|
7213
7262
|
message: "Routine Space destination must match the envelope conversation.",
|
|
@@ -7241,6 +7290,12 @@ const remoteAgentTurnEnvelopeSchema = strictObject({
|
|
|
7241
7290
|
});
|
|
7242
7291
|
function validateMessageChannelTurn(envelope, context) {
|
|
7243
7292
|
if (envelope.trigger.source !== "message_channel") return;
|
|
7293
|
+
const locator = envelope.trigger.routineLocator;
|
|
7294
|
+
if (locator && (locator.provider !== envelope.trigger.provider || locator.connectionId !== envelope.trigger.connectionId || buildMessageChannelConversationId(locator) !== envelope.trigger.conversationId)) context.addIssue({
|
|
7295
|
+
code: "custom",
|
|
7296
|
+
message: "Routine origin must match the Message Channel trigger.",
|
|
7297
|
+
path: ["trigger", "routineLocator"]
|
|
7298
|
+
});
|
|
7244
7299
|
if (envelope.trigger.conversationId !== envelope.space.id) context.addIssue({
|
|
7245
7300
|
code: "custom",
|
|
7246
7301
|
message: "Message Channel trigger must match the envelope conversation.",
|
|
@@ -7287,6 +7342,8 @@ function validateTaskContinuationTrigger(trigger, context) {
|
|
|
7287
7342
|
});
|
|
7288
7343
|
}
|
|
7289
7344
|
const CONNECTOR_SERVICES = ["github", ...[
|
|
7345
|
+
"feishu",
|
|
7346
|
+
"lark",
|
|
7290
7347
|
"gmail",
|
|
7291
7348
|
"googlecalendar",
|
|
7292
7349
|
"googledrive",
|
|
@@ -18513,4 +18570,4 @@ function composeAbortSignals(parent, timeout) {
|
|
|
18513
18570
|
//#endregion
|
|
18514
18571
|
export { buildLocalFolderPickerPath as $, createAgentProfileCreationRequestBodySchema as $n, agentActivityInventorySessionOriginSchema as $r, createProjectsApi as $t, buildCurrentOrganizationDirectoryPath as A, OPENMELD_HEADER_PROFILE_ID as An, listCenterAgentRoutinesResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, projectSpaceDispatchTraceFinalVisibleOutcome as Bn, agentActivitySnapshotResponseSchema as Br, createFetchTransport as Bt, buildCenterAgentSessionPath as C, DAEMON_STREAM_KEEPALIVE_PING as Cn, profileErrorResponseSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, parseIncoming as Dn, createCenterAgentRoutineResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, parseEnvelope as En, submitFeedbackIssueResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, toErrorMessage$2 as Fn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Fr, createComputerFileAccessApi as Ft, buildFeedbackIssueSubmissionPath as G, observabilityWakeTraceSelectorSchema as Gn, postSpaceMembersResponseSchema as Gr, createOpenMeldApiClient as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, spaceDispatchTraceAttemptStatusSchema as Hn, localProjectControlDaemonFrameSchema as Hr, createLocalFolderPickerApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, getSpaceUpdatesResponseSchema as In, agentActivityEventSchema as Ir, createConfigApi as It, buildInboxItemReadPath as J, ownerComputerDiagnosticsSchema as Jn, spaceMemberAgentWakeAvailabilitySchema as Jr, createOrganizationSkillsApi as Jt, buildInboxItemDismissPath as K, projectObservabilityWakeCorrelation as Kn, removeSpaceMembersResponseSchema as Kr, createOrganizationApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, spaceEntryTargetSchema as Ln, agentActivityProviderSchema as Lr, createCurrentDeviceApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, OPENMELD_HEADER_REQUEST_ID as Mn, resumeCenterAgentRoutineResponseSchema as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as Nn, updateCenterAgentRoutineResponseSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, parseServerErrorFrame as On, deleteCenterAgentRoutineResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, buildOpenMeldRequestContextHeaders as Pn, AGENT_ACTIVITY_EVENT_MAX_BYTES as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, agentProfileCreationConfigurationSchema as Qn, spaceMemberKindSchema as Qr, createProfilesApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as Rn, agentActivitySessionStatusSchema as Rr, createDirectMessageApi as Rt, buildCenterAgentProfilePath as S, uploadSpaceFile as Sn, profileCapabilitiesResponseSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, MAX_TEXT_LENGTH as Tn, submitFeedbackIssueRequestSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, spaceDispatchTraceDispatchStatusSchema as Un, localProjectControlDiscoverProjectsResponseSchema as Ur, createLocalProjectControlApi as Ut, buildCurrentOrganizationSpacesPath as V, resolveSpaceDispatchTraceRootCause as Vn, localProjectControlConnectionSchema as Vr, createInboxApi as Vt, buildDirectMessageSpacePath as W, spaceDispatchTraceResponseSchema as Wn, leaveSpaceResponseSchema as Wr, createLocalRuntimeExpectedRoutesApi as Wt, buildInboxPath as X, summarizeComputerFileAccessPolicy as Xn, spaceMemberDirectoryEntrySchema as Xr, createPrepareReadinessApi as Xt, buildInboxMarkAllReadPath as Y, projectOwnerComputerLocalRuntimes as Yn, spaceMemberDirectoryAllowedRelationsSchema as Yr, createOrganizationUsageApi as Yt, buildInboxPreferencesPath as Z, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as Zn, spaceMemberDirectorySchema as Zr, createProfileSpaceHistoryApi as Zt, buildCenterAgentDirectMessageSpacePath as _, localAgentCatalogSchema as _i, trashSpaceFileEntry as _n, organizationDirectoryResponseSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, archiveProjectResponseSchema as ai, getModelCatalog as an, computerFileAccessPolicySchema as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, toCompatibleSpaceAddressingRequestWireValue as bi, updateSpaceMeta as bn, authProfileKindSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, projectSchema as ci, listSpaceFiles as cn, resolveInitialSpaceAccessMode as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, openCodePermissionConfigSchema as di, readOrUpdateSpaceFilePins as dn, getOrganizationSkillResponseSchema as dr, buildOrganizationSkillsPath as dt, agentActivityInventorySessionStatusSchema as ei, createRoutinesApi as en, gatewayErrorEnvelopeSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, START_BOUNDED_ID_SCHEMA as fi, readOrUpdateSpaceMessagePins as fn, listOrganizationSkillsResponseSchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, startReplyReadinessSummarySchema as gi, toStructuredApiClientFailure as gn, stringifyOrganizationSkillBundleCanonicalJson as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as hi, setSpaceAccessMode as hn, organizationSkillSummarySchema as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, observedLocalAgentSessionSchema as ii, downloadSpaceFileContent as in, computerFileAccessPolicyInputSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as jn, pauseCenterAgentRoutineResponseSchema as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, resolveCustomMentionAliasOverride as kn, listCenterAgentRoutineRunsResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, updateProjectResponseSchema as li, normalizeApiBaseUrl as ln, spaceCreatorSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, START_ISO_DATE_TIME_SCHEMA as mi, resolveProfileSpaceHistoryGatewayHost as mn, organizationSkillReleaseSummarySchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, agentActivitySessionInventoryResponseSchema as ni, createSpaceApi as nn, OPENMELD_RUNTIME_CAPABILITIES_HEADER as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, createProjectResponseSchema as oi, getSpaceFile as on, modelCatalogSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, START_BOUNDED_VERSION_SCHEMA as pi, resolveAccountSpaceIndexGatewayHost as pn, organizationSkillBundleSchema as pr, buildProfileRoute as pt, buildInboxItemPath as q, submitAgentControllerTaskLifecycleEventItemSchema as qn, resolvedSpaceMemberProfileSchema as qr, createOrganizationDocumentsApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, localAgentSessionProviderSchema as ri, createSpaceFolder as rn, computerFileAccessDaemonFrameSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, listProjectsResponseSchema as si, listSpaceFileRevisions as sn, organizationSpaceDirectoryWithMemberCountsResponseSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, agentActivitySessionInventoryQuerySchema as ti, createRuntimeReportingApi as tn, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, centerAgentToolSpeakerSchema as ui, publicSpaceUrls as un, spaceMetaSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, agentControllerPermissionModeSchema as vi, updateSpaceFileContent as vn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, DAEMON_STREAM_KEEPALIVE_PONG as wn, organizationComputersResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, uploadSpaceAttachment as xn, authProfileManagedRoleSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, agentControllerCollaborationModeSchema as yi, updateSpaceFileEntry as yn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as zn, agentActivitySnapshotQuerySchema as zr, createFeedbackApi as zt };
|
|
18515
18572
|
|
|
18516
|
-
//# sourceMappingURL=dist-
|
|
18573
|
+
//# sourceMappingURL=dist-Dec5o82m.js.map
|