openmeld 0.3.173 → 0.3.174
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-BRo6lLxZ.js → add-me-membership-zsKO5c2i.js} +2 -2
- package/dist/{add-me-membership-BRo6lLxZ.js.map → add-me-membership-zsKO5c2i.js.map} +1 -1
- package/dist/{api-client-foundation-BvNTRYuE.js → api-client-foundation-BmL7N1rL.js} +3 -3
- package/dist/{api-client-foundation-BvNTRYuE.js.map → api-client-foundation-BmL7N1rL.js.map} +1 -1
- package/dist/{api-client-foundation-CI2yCHVJ.js → api-client-foundation-L2yqzJvx.js} +1 -1
- package/dist/{auth-session-BWlfQspT.js → auth-session-CACyTxMs.js} +2 -2
- package/dist/{auth-session-BWlfQspT.js.map → auth-session-CACyTxMs.js.map} +1 -1
- package/dist/auth-session-xtsMt51e.js +4 -0
- package/dist/{base-url-iT1pbiC4.js → base-url-8Q6W3z6w.js} +1 -1
- package/dist/{base-url-CgF_v0Ue.js → base-url-DvSrOI4A.js} +2 -2
- package/dist/{base-url-CgF_v0Ue.js.map → base-url-DvSrOI4A.js.map} +1 -1
- package/dist/{command-BQ-RvGrL.js → command-CdMfJRAB.js} +320 -500
- package/dist/command-CdMfJRAB.js.map +1 -0
- package/dist/{controller-contract-CvjP4mYj.js → controller-contract-pe3_Re-c.js} +8 -2
- package/dist/controller-contract-pe3_Re-c.js.map +1 -0
- package/dist/dist-CTrCRN9d.js +4 -0
- package/dist/{dist-CSr9OLUH.js → dist-D_08t8sR.js} +236 -728
- package/dist/dist-D_08t8sR.js.map +1 -0
- package/dist/{elapsed-time-CLDZ8oLn.js → elapsed-time-DRZZZEOZ.js} +8 -8
- package/dist/{elapsed-time-CLDZ8oLn.js.map → elapsed-time-DRZZZEOZ.js.map} +1 -1
- package/dist/{installer-BTd0tuiO.js → installer-DHZPSSGu.js} +5 -5
- package/dist/installer-DHZPSSGu.js.map +1 -0
- package/dist/{openmeld-d1wF4Gg4.js → openmeld-NJMNglsl.js} +46 -82
- package/dist/openmeld-NJMNglsl.js.map +1 -0
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-maintenance-worker-N5czH8tj.js → openmeld-maintenance-worker-XcbZgg97.js} +4 -4
- package/dist/{openmeld-maintenance-worker-N5czH8tj.js.map → openmeld-maintenance-worker-XcbZgg97.js.map} +1 -1
- package/dist/{openmeld-tools-update-coordinator-BDN1ZYm0.js → openmeld-tools-update-coordinator-pczmEBLZ.js} +26 -16
- package/dist/openmeld-tools-update-coordinator-pczmEBLZ.js.map +1 -0
- package/dist/openmeld.js +3 -3
- package/dist/{runtime-transport-5G8zV7dE.js → runtime-transport-B1F7rGb0.js} +5 -8
- package/dist/runtime-transport-B1F7rGb0.js.map +1 -0
- package/dist/upgrade-DUA-5zZT.js +4 -0
- package/dist/{upgrade-CE9e3aQx.js → upgrade-h0cX0c-E.js} +4 -4
- package/dist/{upgrade-CE9e3aQx.js.map → upgrade-h0cX0c-E.js.map} +1 -1
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +3 -1
- package/skills/openmeld-cli/playbooks/space-ops.md +17 -45
- package/skills/openmeld-cli/references/commands.md +6 -13
- package/dist/auth-session-DmnsWpk0.js +0 -4
- package/dist/command-BQ-RvGrL.js.map +0 -1
- package/dist/controller-contract-CvjP4mYj.js.map +0 -1
- package/dist/dist-CSr9OLUH.js.map +0 -1
- package/dist/dist-CkXThuuq.js +0 -4
- package/dist/installer-BTd0tuiO.js.map +0 -1
- package/dist/openmeld-d1wF4Gg4.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-BDN1ZYm0.js.map +0 -1
- package/dist/runtime-transport-5G8zV7dE.js.map +0 -1
- package/dist/upgrade-CaPVzLmd.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { $ as localFolderPickerRequestSchema, $n as
|
|
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 localFolderPickerRequestSchema, $n as openMeldToolsMaintenanceProjectionSchema, $r as openMeldRequestContextSchema, $t as trashSpaceFileEntryResponseSchema, An as AGENT_STREAM_SNAPSHOT_MAX_CHARS, Ar as postSpaceWakeStopResponseSchema, At as spaceAttachmentMimeTypeSchema, B as openMeldDaemonOriginalErrorSchema, Br as normalizeSpacePasswordText, Bt as discardSpaceComposerUploadResponseSchema, Cr as string, Ct as signalStatusDataSchema, Dn as messageEnvelopeSchema, Dr as unknown, Dt as spaceAttachmentDescriptorSchema, Er as union, Et as signalTextSchema, Fn as spaceAgentStreamSnapshotSchema, Fr as runtimeCoordinatorExecutionRecordSchema, Gr as spaceMentionLabelSourceSchema, Gt as publishSpaceComposerUploadResponseSchema, I as runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema, In as spaceAgentStreamTerminalFrameSchema, It as centerAgentInteractionSourceSchema, Jn as localComponentUpdatePolicySchema, Jr as updateOrganizationInformationProtectionPolicyBodySchema, Jt as restoreSpaceFileRevisionResponseSchema, K as openMeldDaemonTaskResultProjectFailureContextSchema, Kr as organizationInformationProtectionPolicyResponseSchema, Lt as SPACE_FILE_ERROR_CODES, Mn as spaceAgentStreamDeltaFrameSchema, Mt as spaceMessageAttachmentSchema, Nn as spaceAgentStreamPartFrameSchema, Nr as runtimeCoordinatorExecutionCreationDiagnosticSchema, Nt as spaceMessageAttachmentsSchema, Or as url, Ot as spaceAttachmentDimensionSchema, Pn as spaceAgentStreamPresenceSchema, Pr as runtimeCoordinatorExecutionEventSchema, Pt as conversationCompactionMarkerSchema, Qn as openMeldToolsMaintenanceMutationResultSchema, Qt as stageSpaceComposerUploadResponseSchema, Rn as agentInteractionPendingSummarySchema, Rr as spaceTraceExecutionIdentityProjectionSchema, Rt as SPACE_FILE_MAX_SIZE_BYTES, Si as openMeldWebUrlSchema, Sn as targetWakeLifecycleIdentitySchema, Sr as strictObject, Tr as undefinedFactory, Tt as signalTextDataSchema, Ut as listSpaceFileRevisionsResponseSchema, V as openMeldDaemonProviderAccessEvidenceProviderSchema, Vn as agentInteractionResponseSchema, Vr as spacePasswordSchema, Vt as getSpaceFileResponseSchema, Wr as spaceMentionLabelSchema, Wt as listSpaceFilesResponseSchema, Xn as localComponentUpdateStatusSchema, Xr as executeExecutionRecoveryResponseSchema, Yn as localComponentUpdateProjectionSchema, Yr as executeExecutionRecoveryBodySchema, Yt as spaceFileMimeTypeSchema, Zr as inspectExecutionRecoveryResponseSchema, Zt as spaceMessageFileReferencesSchema, _n as spaceAllowedActionsSchema, _r as nullFactory, ai as profileSchema, an as openMeldDaemonSyncRouteCatalogPayloadSchema, ar as NEVER, at as agentTaskHandleSchema, bi as computerSetupModeSchema, bn as workingLanguageGuidanceSchema, br as preprocess, ci as uuidProfileIdSchema, cr as coerce, ct as buildAgentTaskKey, di as optionalBooleanQuerySchema, dn as spaceThreadEventSchema, dr as enumFactory, en as updateSpaceFileEntryResponseSchema, et as localFolderPickerResultSchema, fi as trimmedStringFromUnknown, fn as spaceThreadSchema, fr as int, gn as resultArchivePolicySchema, gr as neverFactory, hr as literal, ii as profileKindSchema, it as agentTaskCompletionObservationSchema, jn as agentStreamToolPartSchema, jr as clientMessageIdSchema$1, jt as spaceAttachmentSizeBytesSchema, kr as postSpaceWakeStopBodySchema, kt as spaceAttachmentFileNameSchema, li as finiteIntegerNumber, ln as dispatchExecutionSchema, lr as discriminatedUnion, lt as controllerAgentTaskHandleSchema, mi as agentProfileWorkRecoveryActionKindSchema, mr as lazySchema, n as daemonExecutionCompatibilitySchema, nn as localAgentInstallationOptionSchema, nr as openMeldToolsUpdateOperationSchema, nt as agentDelegationSnapshotSchema, oi as profileWorkingDirectorySchema, or as array, ot as agentTaskTerminalOutcomeSchema, pi as MAX_TEXT_LENGTH$1, pn as spaceThreadSignalPlacementSchema, pr as iso, qr as organizationProtectedInformationSchema, qt as restoreSpaceFileEntryResponseSchema, ri as openMeldRuntimeProfileIdSchema, rr as openMeldToolsUpdateRequestResultSchema, rt as agentTaskCompletionConditionSchema, si as profileWorkspaceModeSchema, sr as boolean, st as areAgentTaskTerminalOutcomesEqual, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as agentProfileIdSchema, tn as uploadSpaceFileResponseSchema, tt as localFolderPathSchema, ui as nonEmptyTrimmedStringFromUnknown, un as spaceThreadContextSchema, ur as email, ut as spaceWakeAgentTaskHandleSchema, vn as spacePublicationModeSchema, vr as number, wr as tuple, wt as signalSystemNoticeDataSchema, xi as openMeldNavigationTargetSchema, xn as workingLanguageTagSchema, xr as record, yn as spaceDispatchPolicySchema, yr as object, zr as SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE, zt as createSpaceFolderResponseSchema } from "./runtime-transport-B1F7rGb0.js";
|
|
5
5
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
6
6
|
import { n as toErrorMessage$3 } from "./dist-o3UL1EGQ.js";
|
|
7
7
|
import * as z$1 from "zod/v4";
|
|
@@ -4253,8 +4253,8 @@ const ORGANIZATION_SKILL_ERROR_CODES = [
|
|
|
4253
4253
|
"organization_skill.unsafe_bundle",
|
|
4254
4254
|
"organization_skill.version_conflict"
|
|
4255
4255
|
];
|
|
4256
|
-
const identifierSchema$
|
|
4257
|
-
const isoDateTimeSchema$
|
|
4256
|
+
const identifierSchema$3 = string().trim().min(1).max(256);
|
|
4257
|
+
const isoDateTimeSchema$7 = iso.datetime({ offset: true });
|
|
4258
4258
|
const digestSchema = string().regex(/^[a-f0-9]{64}$/);
|
|
4259
4259
|
const skillNameSchema = string().trim().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Skill names use lowercase letters, numbers, and single hyphens.");
|
|
4260
4260
|
const descriptionSchema = string().trim().min(1).max(ORGANIZATION_SKILL_DESCRIPTION_MAX_CHARS);
|
|
@@ -4348,10 +4348,10 @@ const organizationSkillBundleSchema = strictObject({
|
|
|
4348
4348
|
});
|
|
4349
4349
|
});
|
|
4350
4350
|
const organizationSkillReleaseSummarySchema = strictObject({
|
|
4351
|
-
createdAt: isoDateTimeSchema$
|
|
4352
|
-
createdByUserId: identifierSchema$
|
|
4351
|
+
createdAt: isoDateTimeSchema$7,
|
|
4352
|
+
createdByUserId: identifierSchema$3,
|
|
4353
4353
|
digest: digestSchema,
|
|
4354
|
-
id: identifierSchema$
|
|
4354
|
+
id: identifierSchema$3,
|
|
4355
4355
|
source: organizationSkillSourceSchema
|
|
4356
4356
|
});
|
|
4357
4357
|
const organizationSkillPermissionsSchema = strictObject({
|
|
@@ -4360,73 +4360,73 @@ const organizationSkillPermissionsSchema = strictObject({
|
|
|
4360
4360
|
});
|
|
4361
4361
|
const organizationSkillSummarySchema = strictObject({
|
|
4362
4362
|
activeRelease: organizationSkillReleaseSummarySchema,
|
|
4363
|
-
createdAt: isoDateTimeSchema$
|
|
4363
|
+
createdAt: isoDateTimeSchema$7,
|
|
4364
4364
|
description: descriptionSchema,
|
|
4365
4365
|
enabled: boolean(),
|
|
4366
|
-
id: identifierSchema$
|
|
4366
|
+
id: identifierSchema$3,
|
|
4367
4367
|
name: skillNameSchema,
|
|
4368
|
-
organizationId: identifierSchema$
|
|
4368
|
+
organizationId: identifierSchema$3,
|
|
4369
4369
|
permissions: organizationSkillPermissionsSchema,
|
|
4370
4370
|
source: organizationSkillSourceSchema,
|
|
4371
|
-
updatedAt: isoDateTimeSchema$
|
|
4371
|
+
updatedAt: isoDateTimeSchema$7,
|
|
4372
4372
|
version: number().int().positive()
|
|
4373
4373
|
});
|
|
4374
4374
|
const organizationSkillSchema = organizationSkillSummarySchema.extend({
|
|
4375
4375
|
bundle: organizationSkillBundleSchema,
|
|
4376
|
-
maintainerUserIds: array(identifierSchema$
|
|
4376
|
+
maintainerUserIds: array(identifierSchema$3),
|
|
4377
4377
|
releases: array(organizationSkillReleaseSummarySchema)
|
|
4378
4378
|
});
|
|
4379
4379
|
strictObject({});
|
|
4380
4380
|
const listOrganizationSkillsResponseSchema = strictObject({
|
|
4381
4381
|
canManage: boolean(),
|
|
4382
|
-
organizationId: identifierSchema$
|
|
4382
|
+
organizationId: identifierSchema$3,
|
|
4383
4383
|
skills: array(organizationSkillSummarySchema)
|
|
4384
4384
|
});
|
|
4385
|
-
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$
|
|
4385
|
+
const organizationSkillRouteParamsSchema = strictObject({ skillId: identifierSchema$3 });
|
|
4386
4386
|
const getOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4387
4387
|
const createOrganizationSkillBodySchema = strictObject({
|
|
4388
4388
|
description: descriptionSchema,
|
|
4389
|
-
expectedOrganizationId: identifierSchema$
|
|
4389
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4390
4390
|
instructions: instructionsSchema,
|
|
4391
4391
|
name: skillNameSchema
|
|
4392
4392
|
});
|
|
4393
4393
|
const createOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4394
4394
|
const updateOrganizationSkillBodySchema = strictObject({
|
|
4395
4395
|
bundle: organizationSkillBundleSchema,
|
|
4396
|
-
expectedActiveReleaseId: identifierSchema$
|
|
4397
|
-
expectedOrganizationId: identifierSchema$
|
|
4396
|
+
expectedActiveReleaseId: identifierSchema$3,
|
|
4397
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4398
4398
|
expectedVersion: number().int().positive()
|
|
4399
4399
|
});
|
|
4400
4400
|
const updateOrganizationSkillResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4401
4401
|
const setOrganizationSkillEnabledBodySchema = strictObject({
|
|
4402
4402
|
enabled: boolean(),
|
|
4403
|
-
expectedOrganizationId: identifierSchema$
|
|
4403
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4404
4404
|
expectedVersion: number().int().positive()
|
|
4405
4405
|
});
|
|
4406
4406
|
const setOrganizationSkillEnabledResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4407
4407
|
const setOrganizationSkillMaintainersBodySchema = strictObject({
|
|
4408
|
-
expectedOrganizationId: identifierSchema$
|
|
4408
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4409
4409
|
expectedVersion: number().int().positive(),
|
|
4410
|
-
maintainerUserIds: array(identifierSchema$
|
|
4410
|
+
maintainerUserIds: array(identifierSchema$3).max(100)
|
|
4411
4411
|
});
|
|
4412
4412
|
const setOrganizationSkillMaintainersResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4413
4413
|
const deleteOrganizationSkillBodySchema = strictObject({
|
|
4414
|
-
expectedOrganizationId: identifierSchema$
|
|
4414
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4415
4415
|
expectedVersion: number().int().positive()
|
|
4416
4416
|
});
|
|
4417
4417
|
const deleteOrganizationSkillResponseSchema = strictObject({
|
|
4418
4418
|
deleted: literal(true),
|
|
4419
|
-
organizationId: identifierSchema$
|
|
4420
|
-
skillId: identifierSchema$
|
|
4419
|
+
organizationId: identifierSchema$3,
|
|
4420
|
+
skillId: identifierSchema$3
|
|
4421
4421
|
});
|
|
4422
4422
|
const importOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4423
4423
|
expectedCommitSha: string().regex(/^[a-f0-9]{40}$/).optional(),
|
|
4424
|
-
expectedOrganizationId: identifierSchema$
|
|
4424
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4425
4425
|
url: sourceUrlSchema
|
|
4426
4426
|
});
|
|
4427
4427
|
const importOrganizationSkillFromGitHubResponseSchema = strictObject({ skill: organizationSkillSchema });
|
|
4428
4428
|
const previewOrganizationSkillFromGitHubBodySchema = strictObject({
|
|
4429
|
-
expectedOrganizationId: identifierSchema$
|
|
4429
|
+
expectedOrganizationId: identifierSchema$3,
|
|
4430
4430
|
url: sourceUrlSchema
|
|
4431
4431
|
});
|
|
4432
4432
|
const organizationSkillGitHubPreviewSchema = strictObject({
|
|
@@ -4442,7 +4442,7 @@ const organizationSkillGitHubPreviewSchema = strictObject({
|
|
|
4442
4442
|
warnings: array(string().trim().min(1).max(1024))
|
|
4443
4443
|
});
|
|
4444
4444
|
const previewOrganizationSkillFromGitHubResponseSchema = strictObject({
|
|
4445
|
-
organizationId: identifierSchema$
|
|
4445
|
+
organizationId: identifierSchema$3,
|
|
4446
4446
|
preview: organizationSkillGitHubPreviewSchema
|
|
4447
4447
|
});
|
|
4448
4448
|
discriminatedUnion("action", [
|
|
@@ -4454,7 +4454,7 @@ discriminatedUnion("action", [
|
|
|
4454
4454
|
strictObject({
|
|
4455
4455
|
action: literal("get"),
|
|
4456
4456
|
context: openMeldRequestContextSchema,
|
|
4457
|
-
skillId: identifierSchema$
|
|
4457
|
+
skillId: identifierSchema$3,
|
|
4458
4458
|
speakerMember: centerAgentToolSpeakerSchema
|
|
4459
4459
|
}),
|
|
4460
4460
|
strictObject({
|
|
@@ -4468,17 +4468,17 @@ discriminatedUnion("action", [
|
|
|
4468
4468
|
strictObject({
|
|
4469
4469
|
action: literal("list"),
|
|
4470
4470
|
canManage: boolean(),
|
|
4471
|
-
organizationId: identifierSchema$
|
|
4471
|
+
organizationId: identifierSchema$3,
|
|
4472
4472
|
skills: array(organizationSkillSummarySchema)
|
|
4473
4473
|
}),
|
|
4474
4474
|
strictObject({
|
|
4475
4475
|
action: literal("get"),
|
|
4476
|
-
organizationId: identifierSchema$
|
|
4476
|
+
organizationId: identifierSchema$3,
|
|
4477
4477
|
skill: organizationSkillSchema
|
|
4478
4478
|
}),
|
|
4479
4479
|
strictObject({
|
|
4480
4480
|
action: literal("preview_github"),
|
|
4481
|
-
organizationId: identifierSchema$
|
|
4481
|
+
organizationId: identifierSchema$3,
|
|
4482
4482
|
preview: organizationSkillGitHubPreviewSchema
|
|
4483
4483
|
})
|
|
4484
4484
|
]);
|
|
@@ -4498,50 +4498,50 @@ discriminatedUnion("action", [strictObject({
|
|
|
4498
4498
|
})]);
|
|
4499
4499
|
discriminatedUnion("action", [strictObject({
|
|
4500
4500
|
action: literal("create"),
|
|
4501
|
-
organizationId: identifierSchema$
|
|
4501
|
+
organizationId: identifierSchema$3,
|
|
4502
4502
|
skill: organizationSkillSummarySchema
|
|
4503
4503
|
}), strictObject({
|
|
4504
4504
|
action: literal("import_github"),
|
|
4505
|
-
organizationId: identifierSchema$
|
|
4505
|
+
organizationId: identifierSchema$3,
|
|
4506
4506
|
skill: organizationSkillSummarySchema
|
|
4507
4507
|
})]);
|
|
4508
4508
|
const organizationSkillRuntimeReleaseSchema = strictObject({
|
|
4509
4509
|
bundle: organizationSkillBundleSchema,
|
|
4510
4510
|
digest: digestSchema,
|
|
4511
|
-
releaseId: identifierSchema$
|
|
4512
|
-
skillId: identifierSchema$
|
|
4511
|
+
releaseId: identifierSchema$3,
|
|
4512
|
+
skillId: identifierSchema$3
|
|
4513
4513
|
});
|
|
4514
4514
|
const organizationSkillRuntimeReleaseSelectionSchema = strictObject({
|
|
4515
4515
|
digest: digestSchema,
|
|
4516
4516
|
name: skillNameSchema,
|
|
4517
|
-
releaseId: identifierSchema$
|
|
4518
|
-
skillId: identifierSchema$
|
|
4517
|
+
releaseId: identifierSchema$3,
|
|
4518
|
+
skillId: identifierSchema$3
|
|
4519
4519
|
});
|
|
4520
4520
|
strictObject({
|
|
4521
|
-
organizationId: identifierSchema$
|
|
4521
|
+
organizationId: identifierSchema$3,
|
|
4522
4522
|
releases: array(organizationSkillRuntimeReleaseSchema).max(64)
|
|
4523
4523
|
});
|
|
4524
4524
|
strictObject({ context: openMeldRequestContextSchema });
|
|
4525
4525
|
strictObject({
|
|
4526
4526
|
context: openMeldRequestContextSchema,
|
|
4527
|
-
skillId: identifierSchema$
|
|
4527
|
+
skillId: identifierSchema$3
|
|
4528
4528
|
});
|
|
4529
4529
|
createOrganizationSkillBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4530
4530
|
updateOrganizationSkillBodySchema.extend({
|
|
4531
4531
|
context: openMeldRequestContextSchema,
|
|
4532
|
-
skillId: identifierSchema$
|
|
4532
|
+
skillId: identifierSchema$3
|
|
4533
4533
|
});
|
|
4534
4534
|
setOrganizationSkillEnabledBodySchema.extend({
|
|
4535
4535
|
context: openMeldRequestContextSchema,
|
|
4536
|
-
skillId: identifierSchema$
|
|
4536
|
+
skillId: identifierSchema$3
|
|
4537
4537
|
});
|
|
4538
4538
|
setOrganizationSkillMaintainersBodySchema.extend({
|
|
4539
4539
|
context: openMeldRequestContextSchema,
|
|
4540
|
-
skillId: identifierSchema$
|
|
4540
|
+
skillId: identifierSchema$3
|
|
4541
4541
|
});
|
|
4542
4542
|
deleteOrganizationSkillBodySchema.extend({
|
|
4543
4543
|
context: openMeldRequestContextSchema,
|
|
4544
|
-
skillId: identifierSchema$
|
|
4544
|
+
skillId: identifierSchema$3
|
|
4545
4545
|
});
|
|
4546
4546
|
importOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
4547
4547
|
previewOrganizationSkillFromGitHubBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
@@ -4552,10 +4552,10 @@ strictObject({
|
|
|
4552
4552
|
strictObject({
|
|
4553
4553
|
context: openMeldRequestContextSchema,
|
|
4554
4554
|
digest: digestSchema,
|
|
4555
|
-
releaseId: identifierSchema$
|
|
4556
|
-
routineRunId: identifierSchema$
|
|
4557
|
-
skillId: identifierSchema$
|
|
4558
|
-
submissionId: identifierSchema$
|
|
4555
|
+
releaseId: identifierSchema$3,
|
|
4556
|
+
routineRunId: identifierSchema$3.nullable(),
|
|
4557
|
+
skillId: identifierSchema$3,
|
|
4558
|
+
submissionId: identifierSchema$3
|
|
4559
4559
|
});
|
|
4560
4560
|
strictObject({ recorded: boolean() });
|
|
4561
4561
|
function isSafePortableSkillPath(value) {
|
|
@@ -4607,7 +4607,7 @@ const spaceAccessModeStateSchema = z$1.strictObject({
|
|
|
4607
4607
|
//#endregion
|
|
4608
4608
|
//#region ../../packages/schemas/dist/schemas/http/space-meta.js
|
|
4609
4609
|
const trimmedNonEmptyStringSchema$13 = z$1.string().trim().min(1);
|
|
4610
|
-
const isoDateTimeSchema$
|
|
4610
|
+
const isoDateTimeSchema$6 = z$1.iso.datetime({ offset: true });
|
|
4611
4611
|
const MAX_SPACE_GUIDE_LENGTH = 4e3;
|
|
4612
4612
|
const spaceOrganizationVisibilitySchema = z$1.enum(["public", "private"]);
|
|
4613
4613
|
function resolveInitialSpaceAccessMode(visibility) {
|
|
@@ -4635,7 +4635,7 @@ const spaceStorageUsageSchema = z$1.strictObject({
|
|
|
4635
4635
|
usagePercent: z$1.number().finite().min(0)
|
|
4636
4636
|
});
|
|
4637
4637
|
const spaceDirectMessageMetaSchema = z$1.strictObject({
|
|
4638
|
-
convertedAt: isoDateTimeSchema$
|
|
4638
|
+
convertedAt: isoDateTimeSchema$6.optional(),
|
|
4639
4639
|
pairKey: trimmedNonEmptyStringSchema$13
|
|
4640
4640
|
});
|
|
4641
4641
|
const spaceMetaSchema = z$1.strictObject({
|
|
@@ -4649,8 +4649,8 @@ const spaceMetaSchema = z$1.strictObject({
|
|
|
4649
4649
|
guide: trimmedNonEmptyStringSchema$13.optional(),
|
|
4650
4650
|
accessMode: spaceAccessModeSchema.optional(),
|
|
4651
4651
|
passwordProtected: z$1.boolean().optional(),
|
|
4652
|
-
createdAt: isoDateTimeSchema$
|
|
4653
|
-
updatedAt: isoDateTimeSchema$
|
|
4652
|
+
createdAt: isoDateTimeSchema$6.optional(),
|
|
4653
|
+
updatedAt: isoDateTimeSchema$6.optional(),
|
|
4654
4654
|
storageUsage: spaceStorageUsageSchema.optional()
|
|
4655
4655
|
});
|
|
4656
4656
|
const patchSpaceMetaResponseSchema = spaceMetaSchema;
|
|
@@ -5517,7 +5517,7 @@ const messageChannelIdentityLinkConsumeResponseSchema = z$1.strictObject({
|
|
|
5517
5517
|
//#endregion
|
|
5518
5518
|
//#region ../../packages/schemas/dist/schemas/http/center-agent-member-research.js
|
|
5519
5519
|
const trimmedNonEmptyStringSchema$9 = z$1.string().trim().min(1);
|
|
5520
|
-
const isoDateTimeSchema$
|
|
5520
|
+
const isoDateTimeSchema$5 = z$1.iso.datetime({ offset: true });
|
|
5521
5521
|
const memberResearchTextSchema = z$1.string().trim().min(1).max(1e3);
|
|
5522
5522
|
const CENTER_AGENT_MEMBER_RESEARCH_COVERAGE_SOURCES = [
|
|
5523
5523
|
"organization_directory",
|
|
@@ -5638,8 +5638,8 @@ const centerAgentMemberResearchTaskSchema = z$1.strictObject({
|
|
|
5638
5638
|
position: z$1.number().int().positive(),
|
|
5639
5639
|
status: centerAgentMemberResearchTaskStatusSchema,
|
|
5640
5640
|
failureCode: trimmedNonEmptyStringSchema$9.nullable(),
|
|
5641
|
-
startedAt: isoDateTimeSchema$
|
|
5642
|
-
finishedAt: isoDateTimeSchema$
|
|
5641
|
+
startedAt: isoDateTimeSchema$5.nullable(),
|
|
5642
|
+
finishedAt: isoDateTimeSchema$5.nullable()
|
|
5643
5643
|
}).superRefine((task, context) => {
|
|
5644
5644
|
if (!(task.status === "queued" && task.startedAt === null && task.finishedAt === null && task.failureCode === null || task.status === "running" && task.startedAt !== null && task.finishedAt === null && task.failureCode === null || task.status === "completed" && task.startedAt !== null && task.finishedAt !== null && task.failureCode === null || task.status === "failed" && task.startedAt !== null && task.finishedAt !== null && task.failureCode !== null)) context.addIssue({
|
|
5645
5645
|
code: "custom",
|
|
@@ -5660,8 +5660,8 @@ const centerAgentMemberResearchBatchSchema = z$1.strictObject({
|
|
|
5660
5660
|
totalCount: z$1.number().int().positive(),
|
|
5661
5661
|
completedCount: z$1.number().int().nonnegative(),
|
|
5662
5662
|
failedCount: z$1.number().int().nonnegative(),
|
|
5663
|
-
createdAt: isoDateTimeSchema$
|
|
5664
|
-
updatedAt: isoDateTimeSchema$
|
|
5663
|
+
createdAt: isoDateTimeSchema$5,
|
|
5664
|
+
updatedAt: isoDateTimeSchema$5,
|
|
5665
5665
|
tasks: z$1.array(centerAgentMemberResearchTaskSchema).min(1)
|
|
5666
5666
|
}).superRefine((batch, context) => {
|
|
5667
5667
|
const completedCount = batch.tasks.filter((task) => task.status === "completed").length;
|
|
@@ -5769,67 +5769,67 @@ const organizationDocumentKindSchema = enumFactory([
|
|
|
5769
5769
|
"knowledge"
|
|
5770
5770
|
]);
|
|
5771
5771
|
const profileReportTypeSchema = enumFactory(["work_profile"]);
|
|
5772
|
-
const identifierSchema$
|
|
5772
|
+
const identifierSchema$2 = string().trim().min(1).max(256);
|
|
5773
5773
|
const titleSchema$1 = string().trim().min(1).max(200);
|
|
5774
5774
|
const folderNameSchema = string().trim().min(1).max(200);
|
|
5775
5775
|
const contentSchema = string().max(ORGANIZATION_DOCUMENT_CONTENT_MAX_CHARS);
|
|
5776
|
-
const isoDateTimeSchema$
|
|
5776
|
+
const isoDateTimeSchema$4 = iso.datetime({ offset: true });
|
|
5777
5777
|
const operationIdSchema = string().trim().min(1).max(256);
|
|
5778
5778
|
const organizationDocumentFolderSchema = strictObject({
|
|
5779
|
-
createdAt: isoDateTimeSchema$
|
|
5780
|
-
id: identifierSchema$
|
|
5779
|
+
createdAt: isoDateTimeSchema$4,
|
|
5780
|
+
id: identifierSchema$2,
|
|
5781
5781
|
isManaged: boolean().default(false),
|
|
5782
5782
|
name: folderNameSchema,
|
|
5783
|
-
organizationId: identifierSchema$
|
|
5784
|
-
parentFolderId: identifierSchema$
|
|
5785
|
-
updatedAt: isoDateTimeSchema$
|
|
5783
|
+
organizationId: identifierSchema$2,
|
|
5784
|
+
parentFolderId: identifierSchema$2.nullable().optional(),
|
|
5785
|
+
updatedAt: isoDateTimeSchema$4
|
|
5786
5786
|
});
|
|
5787
5787
|
const organizationDocumentSummarySchema = strictObject({
|
|
5788
5788
|
canEditContent: boolean(),
|
|
5789
5789
|
canManage: boolean(),
|
|
5790
|
-
createdAt: isoDateTimeSchema$
|
|
5791
|
-
folderId: identifierSchema$
|
|
5790
|
+
createdAt: isoDateTimeSchema$4,
|
|
5791
|
+
folderId: identifierSchema$2.nullable(),
|
|
5792
5792
|
hasDraft: boolean(),
|
|
5793
|
-
id: identifierSchema$
|
|
5793
|
+
id: identifierSchema$2,
|
|
5794
5794
|
kind: organizationDocumentKindSchema,
|
|
5795
|
-
organizationId: identifierSchema$
|
|
5795
|
+
organizationId: identifierSchema$2,
|
|
5796
5796
|
profileReportDate: iso.date().nullable().optional(),
|
|
5797
5797
|
profileReportType: profileReportTypeSchema.nullable().optional(),
|
|
5798
|
-
subjectUserId: identifierSchema$
|
|
5798
|
+
subjectUserId: identifierSchema$2.nullable(),
|
|
5799
5799
|
title: titleSchema$1,
|
|
5800
|
-
updatedAt: isoDateTimeSchema$
|
|
5800
|
+
updatedAt: isoDateTimeSchema$4
|
|
5801
5801
|
});
|
|
5802
5802
|
const organizationDocumentSchema = organizationDocumentSummarySchema.omit({ hasDraft: true }).extend({
|
|
5803
5803
|
content: contentSchema,
|
|
5804
5804
|
draftContent: contentSchema.nullable(),
|
|
5805
|
-
draftCreatedAt: isoDateTimeSchema$
|
|
5805
|
+
draftCreatedAt: isoDateTimeSchema$4.nullable(),
|
|
5806
5806
|
draftCreatedBy: literal(CENTER_AGENT_ORGANIZATION_DOCUMENT_DRAFT_CREATED_BY).nullable()
|
|
5807
5807
|
});
|
|
5808
5808
|
strictObject({});
|
|
5809
5809
|
const listOrganizationDocumentsResponseSchema = strictObject({
|
|
5810
5810
|
canManage: boolean(),
|
|
5811
|
-
currentUserId: identifierSchema$
|
|
5811
|
+
currentUserId: identifierSchema$2,
|
|
5812
5812
|
documents: array(organizationDocumentSummarySchema),
|
|
5813
5813
|
folders: array(organizationDocumentFolderSchema),
|
|
5814
|
-
organizationId: identifierSchema$
|
|
5814
|
+
organizationId: identifierSchema$2
|
|
5815
5815
|
});
|
|
5816
|
-
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$
|
|
5816
|
+
const organizationDocumentRouteParamsSchema = strictObject({ documentId: identifierSchema$2 });
|
|
5817
5817
|
const getOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
5818
5818
|
const createOrganizationDocumentBodySchema = strictObject({
|
|
5819
5819
|
content: contentSchema,
|
|
5820
|
-
expectedOrganizationId: identifierSchema$
|
|
5821
|
-
folderId: identifierSchema$
|
|
5820
|
+
expectedOrganizationId: identifierSchema$2,
|
|
5821
|
+
folderId: identifierSchema$2.nullable().optional(),
|
|
5822
5822
|
kind: organizationDocumentKindSchema,
|
|
5823
|
-
subjectUserId: identifierSchema$
|
|
5823
|
+
subjectUserId: identifierSchema$2.nullable().optional(),
|
|
5824
5824
|
title: titleSchema$1.optional()
|
|
5825
5825
|
}).superRefine(validateCreateDocumentShape);
|
|
5826
5826
|
const createOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
5827
5827
|
const updateOrganizationDocumentBodySchema = strictObject({
|
|
5828
5828
|
content: contentSchema.optional(),
|
|
5829
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
5830
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
5831
|
-
expectedOrganizationId: identifierSchema$
|
|
5832
|
-
folderId: identifierSchema$
|
|
5829
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$4.optional(),
|
|
5830
|
+
expectedDraftCreatedAt: isoDateTimeSchema$4.nullable().optional(),
|
|
5831
|
+
expectedOrganizationId: identifierSchema$2,
|
|
5832
|
+
folderId: identifierSchema$2.nullable().optional(),
|
|
5833
5833
|
title: titleSchema$1.optional()
|
|
5834
5834
|
}).superRefine((value, context) => {
|
|
5835
5835
|
if (value.content === void 0) return;
|
|
@@ -5845,71 +5845,71 @@ const updateOrganizationDocumentBodySchema = strictObject({
|
|
|
5845
5845
|
});
|
|
5846
5846
|
}).refine((value) => value.content !== void 0 || value.title !== void 0 || value.folderId !== void 0, { message: "At least one document field must be updated." });
|
|
5847
5847
|
const updateOrganizationDocumentResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
5848
|
-
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
5848
|
+
const deleteOrganizationDocumentBodySchema = strictObject({ expectedOrganizationId: identifierSchema$2 });
|
|
5849
5849
|
const deleteOrganizationDocumentResponseSchema = strictObject({
|
|
5850
5850
|
deleted: literal(true),
|
|
5851
|
-
documentId: identifierSchema$
|
|
5852
|
-
organizationId: identifierSchema$
|
|
5851
|
+
documentId: identifierSchema$2,
|
|
5852
|
+
organizationId: identifierSchema$2
|
|
5853
5853
|
});
|
|
5854
|
-
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$
|
|
5854
|
+
const organizationDocumentFolderRouteParamsSchema = strictObject({ folderId: identifierSchema$2 });
|
|
5855
5855
|
const createOrganizationDocumentFolderBodySchema = strictObject({
|
|
5856
|
-
expectedOrganizationId: identifierSchema$
|
|
5856
|
+
expectedOrganizationId: identifierSchema$2,
|
|
5857
5857
|
name: folderNameSchema,
|
|
5858
|
-
parentFolderId: identifierSchema$
|
|
5858
|
+
parentFolderId: identifierSchema$2.nullable().optional()
|
|
5859
5859
|
});
|
|
5860
5860
|
const createOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
5861
5861
|
const updateOrganizationDocumentFolderBodySchema = strictObject({
|
|
5862
|
-
expectedOrganizationId: identifierSchema$
|
|
5862
|
+
expectedOrganizationId: identifierSchema$2,
|
|
5863
5863
|
name: folderNameSchema.optional(),
|
|
5864
|
-
parentFolderId: identifierSchema$
|
|
5864
|
+
parentFolderId: identifierSchema$2.nullable().optional()
|
|
5865
5865
|
}).refine((value) => Number(value.name !== void 0) + Number(value.parentFolderId !== void 0) === 1, { message: "Exactly one folder field must be updated." });
|
|
5866
5866
|
const updateOrganizationDocumentFolderResponseSchema = strictObject({ folder: organizationDocumentFolderSchema });
|
|
5867
|
-
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$
|
|
5867
|
+
const deleteOrganizationDocumentFolderBodySchema = strictObject({ expectedOrganizationId: identifierSchema$2 });
|
|
5868
5868
|
const deleteOrganizationDocumentFolderResponseSchema = strictObject({
|
|
5869
5869
|
deleted: literal(true),
|
|
5870
|
-
folderId: identifierSchema$
|
|
5871
|
-
organizationId: identifierSchema$
|
|
5870
|
+
folderId: identifierSchema$2,
|
|
5871
|
+
organizationId: identifierSchema$2
|
|
5872
5872
|
});
|
|
5873
5873
|
const approveOrganizationDocumentDraftBodySchema = strictObject({
|
|
5874
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
5875
|
-
expectedOrganizationId: identifierSchema$
|
|
5874
|
+
expectedDraftCreatedAt: isoDateTimeSchema$4,
|
|
5875
|
+
expectedOrganizationId: identifierSchema$2
|
|
5876
5876
|
});
|
|
5877
5877
|
const approveOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
5878
5878
|
const discardOrganizationDocumentDraftBodySchema = strictObject({
|
|
5879
|
-
expectedDraftCreatedAt: isoDateTimeSchema$
|
|
5880
|
-
expectedOrganizationId: identifierSchema$
|
|
5879
|
+
expectedDraftCreatedAt: isoDateTimeSchema$4,
|
|
5880
|
+
expectedOrganizationId: identifierSchema$2
|
|
5881
5881
|
});
|
|
5882
5882
|
const discardOrganizationDocumentDraftResponseSchema = strictObject({ document: organizationDocumentSchema });
|
|
5883
5883
|
strictObject({ context: openMeldRequestContextSchema });
|
|
5884
5884
|
strictObject({
|
|
5885
5885
|
context: openMeldRequestContextSchema,
|
|
5886
|
-
documentId: identifierSchema$
|
|
5886
|
+
documentId: identifierSchema$2
|
|
5887
5887
|
});
|
|
5888
5888
|
createOrganizationDocumentBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
5889
5889
|
updateOrganizationDocumentBodySchema.extend({
|
|
5890
5890
|
context: openMeldRequestContextSchema,
|
|
5891
|
-
documentId: identifierSchema$
|
|
5891
|
+
documentId: identifierSchema$2
|
|
5892
5892
|
});
|
|
5893
5893
|
deleteOrganizationDocumentBodySchema.extend({
|
|
5894
5894
|
context: openMeldRequestContextSchema,
|
|
5895
|
-
documentId: identifierSchema$
|
|
5895
|
+
documentId: identifierSchema$2
|
|
5896
5896
|
});
|
|
5897
5897
|
createOrganizationDocumentFolderBodySchema.extend({ context: openMeldRequestContextSchema });
|
|
5898
5898
|
updateOrganizationDocumentFolderBodySchema.extend({
|
|
5899
5899
|
context: openMeldRequestContextSchema,
|
|
5900
|
-
folderId: identifierSchema$
|
|
5900
|
+
folderId: identifierSchema$2
|
|
5901
5901
|
});
|
|
5902
5902
|
deleteOrganizationDocumentFolderBodySchema.extend({
|
|
5903
5903
|
context: openMeldRequestContextSchema,
|
|
5904
|
-
folderId: identifierSchema$
|
|
5904
|
+
folderId: identifierSchema$2
|
|
5905
5905
|
});
|
|
5906
5906
|
approveOrganizationDocumentDraftBodySchema.extend({
|
|
5907
5907
|
context: openMeldRequestContextSchema,
|
|
5908
|
-
documentId: identifierSchema$
|
|
5908
|
+
documentId: identifierSchema$2
|
|
5909
5909
|
});
|
|
5910
5910
|
discardOrganizationDocumentDraftBodySchema.extend({
|
|
5911
5911
|
context: openMeldRequestContextSchema,
|
|
5912
|
-
documentId: identifierSchema$
|
|
5912
|
+
documentId: identifierSchema$2
|
|
5913
5913
|
});
|
|
5914
5914
|
discriminatedUnion("action", [strictObject({
|
|
5915
5915
|
action: literal("list"),
|
|
@@ -5918,7 +5918,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
5918
5918
|
}), strictObject({
|
|
5919
5919
|
action: literal("get"),
|
|
5920
5920
|
context: openMeldRequestContextSchema,
|
|
5921
|
-
documentId: identifierSchema$
|
|
5921
|
+
documentId: identifierSchema$2,
|
|
5922
5922
|
speakerMember: centerAgentToolSpeakerSchema
|
|
5923
5923
|
})]);
|
|
5924
5924
|
discriminatedUnion("action", [strictObject({
|
|
@@ -5931,7 +5931,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
5931
5931
|
updatedAt: true
|
|
5932
5932
|
})),
|
|
5933
5933
|
folders: array(organizationDocumentFolderSchema),
|
|
5934
|
-
organizationId: identifierSchema$
|
|
5934
|
+
organizationId: identifierSchema$2
|
|
5935
5935
|
}), strictObject({
|
|
5936
5936
|
action: literal("get"),
|
|
5937
5937
|
document: organizationDocumentSchema.pick({
|
|
@@ -5943,7 +5943,7 @@ discriminatedUnion("action", [strictObject({
|
|
|
5943
5943
|
title: true,
|
|
5944
5944
|
updatedAt: true
|
|
5945
5945
|
}),
|
|
5946
|
-
organizationId: identifierSchema$
|
|
5946
|
+
organizationId: identifierSchema$2
|
|
5947
5947
|
})]);
|
|
5948
5948
|
const organizationDocumentComputerProjectionSchema = organizationDocumentSchema.pick({
|
|
5949
5949
|
content: true,
|
|
@@ -5958,20 +5958,20 @@ strictObject({ context: openMeldRequestContextSchema });
|
|
|
5958
5958
|
strictObject({
|
|
5959
5959
|
documents: array(organizationDocumentComputerProjectionSchema),
|
|
5960
5960
|
folders: array(organizationDocumentFolderSchema),
|
|
5961
|
-
organizationId: identifierSchema$
|
|
5961
|
+
organizationId: identifierSchema$2,
|
|
5962
5962
|
revision: string().regex(/^[a-f0-9]{64}$/u)
|
|
5963
5963
|
});
|
|
5964
5964
|
strictObject({
|
|
5965
5965
|
context: openMeldRequestContextSchema,
|
|
5966
|
-
documentId: identifierSchema$
|
|
5966
|
+
documentId: identifierSchema$2.optional(),
|
|
5967
5967
|
draftContent: contentSchema,
|
|
5968
|
-
expectedDocumentUpdatedAt: isoDateTimeSchema$
|
|
5969
|
-
folderId: identifierSchema$
|
|
5968
|
+
expectedDocumentUpdatedAt: isoDateTimeSchema$4.optional(),
|
|
5969
|
+
folderId: identifierSchema$2.nullable().optional(),
|
|
5970
5970
|
kind: organizationDocumentKindSchema.optional(),
|
|
5971
5971
|
memberResearchReport: centerAgentMemberResearchReportSchema.optional(),
|
|
5972
|
-
memberResearchTaskId: identifierSchema$
|
|
5972
|
+
memberResearchTaskId: identifierSchema$2.optional(),
|
|
5973
5973
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
5974
|
-
subjectUserId: identifierSchema$
|
|
5974
|
+
subjectUserId: identifierSchema$2.optional(),
|
|
5975
5975
|
title: titleSchema$1.optional()
|
|
5976
5976
|
}).superRefine(validateCenterAgentDraftTarget);
|
|
5977
5977
|
strictObject({
|
|
@@ -5979,24 +5979,24 @@ strictObject({
|
|
|
5979
5979
|
draftReplaced: boolean(),
|
|
5980
5980
|
memberResearchDraft: strictObject({
|
|
5981
5981
|
content: contentSchema,
|
|
5982
|
-
documentId: identifierSchema$
|
|
5982
|
+
documentId: identifierSchema$2,
|
|
5983
5983
|
profileReportFolderName: folderNameSchema,
|
|
5984
|
-
subjectUserId: identifierSchema$
|
|
5984
|
+
subjectUserId: identifierSchema$2,
|
|
5985
5985
|
title: titleSchema$1
|
|
5986
5986
|
}).optional()
|
|
5987
5987
|
});
|
|
5988
5988
|
strictObject({
|
|
5989
5989
|
context: openMeldRequestContextSchema,
|
|
5990
|
-
documentId: identifierSchema$
|
|
5990
|
+
documentId: identifierSchema$2,
|
|
5991
5991
|
path: string().trim().min(1).max(1024),
|
|
5992
|
-
subjectUserId: identifierSchema$
|
|
5993
|
-
taskId: identifierSchema$
|
|
5992
|
+
subjectUserId: identifierSchema$2,
|
|
5993
|
+
taskId: identifierSchema$2
|
|
5994
5994
|
});
|
|
5995
5995
|
strictObject({
|
|
5996
|
-
documentId: identifierSchema$
|
|
5996
|
+
documentId: identifierSchema$2,
|
|
5997
5997
|
path: string().trim().min(1).max(1024),
|
|
5998
5998
|
recorded: literal(true),
|
|
5999
|
-
taskId: identifierSchema$
|
|
5999
|
+
taskId: identifierSchema$2
|
|
6000
6000
|
});
|
|
6001
6001
|
const centerAgentOrganizationDocumentProjectionSchema = organizationDocumentSchema.pick({
|
|
6002
6002
|
content: true,
|
|
@@ -6012,13 +6012,13 @@ discriminatedUnion("action", [
|
|
|
6012
6012
|
context: openMeldRequestContextSchema,
|
|
6013
6013
|
name: folderNameSchema,
|
|
6014
6014
|
operationId: operationIdSchema,
|
|
6015
|
-
parentFolderId: identifierSchema$
|
|
6015
|
+
parentFolderId: identifierSchema$2.nullable().optional(),
|
|
6016
6016
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6017
6017
|
}),
|
|
6018
6018
|
strictObject({
|
|
6019
6019
|
action: literal("rename_folder"),
|
|
6020
6020
|
context: openMeldRequestContextSchema,
|
|
6021
|
-
folderId: identifierSchema$
|
|
6021
|
+
folderId: identifierSchema$2,
|
|
6022
6022
|
name: folderNameSchema,
|
|
6023
6023
|
operationId: operationIdSchema,
|
|
6024
6024
|
speakerMember: centerAgentToolSpeakerSchema
|
|
@@ -6026,8 +6026,8 @@ discriminatedUnion("action", [
|
|
|
6026
6026
|
strictObject({
|
|
6027
6027
|
action: literal("move_document"),
|
|
6028
6028
|
context: openMeldRequestContextSchema,
|
|
6029
|
-
documentId: identifierSchema$
|
|
6030
|
-
folderId: identifierSchema$
|
|
6029
|
+
documentId: identifierSchema$2,
|
|
6030
|
+
folderId: identifierSchema$2.nullable(),
|
|
6031
6031
|
operationId: operationIdSchema,
|
|
6032
6032
|
speakerMember: centerAgentToolSpeakerSchema
|
|
6033
6033
|
}),
|
|
@@ -6035,8 +6035,8 @@ discriminatedUnion("action", [
|
|
|
6035
6035
|
action: literal("save_document"),
|
|
6036
6036
|
content: contentSchema,
|
|
6037
6037
|
context: openMeldRequestContextSchema,
|
|
6038
|
-
documentId: identifierSchema$
|
|
6039
|
-
folderId: identifierSchema$
|
|
6038
|
+
documentId: identifierSchema$2.optional(),
|
|
6039
|
+
folderId: identifierSchema$2.nullable().optional(),
|
|
6040
6040
|
operationId: operationIdSchema,
|
|
6041
6041
|
speakerMember: centerAgentToolSpeakerSchema,
|
|
6042
6042
|
title: titleSchema$1.optional()
|
|
@@ -6052,22 +6052,22 @@ discriminatedUnion("action", [
|
|
|
6052
6052
|
strictObject({
|
|
6053
6053
|
action: literal("create_folder"),
|
|
6054
6054
|
folder: organizationDocumentFolderSchema,
|
|
6055
|
-
organizationId: identifierSchema$
|
|
6055
|
+
organizationId: identifierSchema$2
|
|
6056
6056
|
}),
|
|
6057
6057
|
strictObject({
|
|
6058
6058
|
action: literal("rename_folder"),
|
|
6059
6059
|
folder: organizationDocumentFolderSchema,
|
|
6060
|
-
organizationId: identifierSchema$
|
|
6060
|
+
organizationId: identifierSchema$2
|
|
6061
6061
|
}),
|
|
6062
6062
|
strictObject({
|
|
6063
6063
|
action: literal("move_document"),
|
|
6064
6064
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6065
|
-
organizationId: identifierSchema$
|
|
6065
|
+
organizationId: identifierSchema$2
|
|
6066
6066
|
}),
|
|
6067
6067
|
strictObject({
|
|
6068
6068
|
action: literal("save_document"),
|
|
6069
6069
|
document: centerAgentOrganizationDocumentProjectionSchema,
|
|
6070
|
-
organizationId: identifierSchema$
|
|
6070
|
+
organizationId: identifierSchema$2,
|
|
6071
6071
|
outcome: enumFactory(["created", "updated"])
|
|
6072
6072
|
})
|
|
6073
6073
|
]);
|
|
@@ -6079,7 +6079,7 @@ strictObject({
|
|
|
6079
6079
|
briefContent: contentSchema.nullable(),
|
|
6080
6080
|
documentTitles: array(titleSchema$1),
|
|
6081
6081
|
organizationProtectedInformation: organizationProtectedInformationSchema.nullable().optional(),
|
|
6082
|
-
organizationId: identifierSchema$
|
|
6082
|
+
organizationId: identifierSchema$2
|
|
6083
6083
|
});
|
|
6084
6084
|
function validateCreateDocumentShape(value, context) {
|
|
6085
6085
|
if (value.kind === "member_profile" && !value.subjectUserId) context.addIssue({
|
|
@@ -6504,9 +6504,9 @@ const accountSpaceIndexResponseSchema = z$1.strictObject({
|
|
|
6504
6504
|
});
|
|
6505
6505
|
//#endregion
|
|
6506
6506
|
//#region ../../packages/schemas/dist/schemas/http/agent-profile-creation-request.js
|
|
6507
|
-
const identifierSchema$
|
|
6507
|
+
const identifierSchema$1 = z$1.string().trim().min(1).max(256);
|
|
6508
6508
|
const profileNameSchema = z$1.string().trim().min(1).max(80);
|
|
6509
|
-
const isoDateTimeSchema$
|
|
6509
|
+
const isoDateTimeSchema$3 = z$1.iso.datetime({ offset: true });
|
|
6510
6510
|
const agentProfileCreationApprovalPolicySchema = z$1.enum([
|
|
6511
6511
|
"never_allow",
|
|
6512
6512
|
"ask_every_time",
|
|
@@ -6545,12 +6545,28 @@ const agentProfileCreationRequestStatusReasonSchema = z$1.enum([
|
|
|
6545
6545
|
const completeAgentProfileCreationConfigurationSchema = agentProfileCreationPreferenceSelectionSchema.safeExtend({
|
|
6546
6546
|
agentControllerRef: agentControllerRefSchema.nullable(),
|
|
6547
6547
|
authorizeForOrganization: z$1.boolean().optional().default(true),
|
|
6548
|
-
localAgentConnectionCandidateId: identifierSchema$
|
|
6549
|
-
targetComputerId: identifierSchema$
|
|
6548
|
+
localAgentConnectionCandidateId: identifierSchema$1.nullable().optional(),
|
|
6549
|
+
targetComputerId: identifierSchema$1.nullable()
|
|
6550
6550
|
}).superRefine((configuration, context) => {
|
|
6551
6551
|
const hasController = configuration.agentControllerRef !== null;
|
|
6552
6552
|
const hasComputer = configuration.targetComputerId !== null;
|
|
6553
6553
|
const hasCandidate = configuration.localAgentConnectionCandidateId != null;
|
|
6554
|
+
if (configuration.agentControllerRef === "hosted:remote-agent") {
|
|
6555
|
+
for (const key of [
|
|
6556
|
+
"targetComputerId",
|
|
6557
|
+
"localAgentConnectionCandidateId",
|
|
6558
|
+
"defaultProjectId",
|
|
6559
|
+
"agentControllerCollaborationMode",
|
|
6560
|
+
"agentControllerPermissionMode",
|
|
6561
|
+
"openCodePermission",
|
|
6562
|
+
"reasoningLevel"
|
|
6563
|
+
]) if (configuration[key] != null) context.addIssue({
|
|
6564
|
+
code: "custom",
|
|
6565
|
+
message: "Remote Agents do not use local agent settings.",
|
|
6566
|
+
path: [key]
|
|
6567
|
+
});
|
|
6568
|
+
return;
|
|
6569
|
+
}
|
|
6554
6570
|
if (hasController !== hasComputer) context.addIssue({
|
|
6555
6571
|
code: "custom",
|
|
6556
6572
|
message: "agentControllerRef and targetComputerId must be provided together.",
|
|
@@ -6600,25 +6616,25 @@ const DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION = {
|
|
|
6600
6616
|
targetComputerId: null
|
|
6601
6617
|
};
|
|
6602
6618
|
const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
6603
|
-
actorProfileId: identifierSchema$
|
|
6604
|
-
completedAt: isoDateTimeSchema$
|
|
6619
|
+
actorProfileId: identifierSchema$1,
|
|
6620
|
+
completedAt: isoDateTimeSchema$3.nullable(),
|
|
6605
6621
|
configuration: agentProfileCreationConfigurationSchema,
|
|
6606
|
-
createdAgentProfileId: identifierSchema$
|
|
6607
|
-
createdAt: isoDateTimeSchema$
|
|
6608
|
-
decidedAt: isoDateTimeSchema$
|
|
6609
|
-
id: identifierSchema$
|
|
6622
|
+
createdAgentProfileId: identifierSchema$1.nullable(),
|
|
6623
|
+
createdAt: isoDateTimeSchema$3,
|
|
6624
|
+
decidedAt: isoDateTimeSchema$3.nullable(),
|
|
6625
|
+
id: identifierSchema$1,
|
|
6610
6626
|
failureMessage: z$1.string().trim().min(1).max(1e3).nullable(),
|
|
6611
|
-
nativeSessionId: identifierSchema$
|
|
6612
|
-
organizationId: identifierSchema$
|
|
6627
|
+
nativeSessionId: identifierSchema$1.nullable(),
|
|
6628
|
+
organizationId: identifierSchema$1,
|
|
6613
6629
|
profileName: profileNameSchema,
|
|
6614
|
-
requestedSpaceId: identifierSchema$
|
|
6615
|
-
requesterUserId: identifierSchema$
|
|
6630
|
+
requestedSpaceId: identifierSchema$1.nullable(),
|
|
6631
|
+
requesterUserId: identifierSchema$1,
|
|
6616
6632
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
6617
6633
|
source: agentProfileCreationRequestSourceSchema,
|
|
6618
6634
|
status: agentProfileCreationRequestStatusSchema,
|
|
6619
6635
|
statusReason: agentProfileCreationRequestStatusReasonSchema,
|
|
6620
|
-
targetOwnerUserId: identifierSchema$
|
|
6621
|
-
updatedAt: isoDateTimeSchema$
|
|
6636
|
+
targetOwnerUserId: identifierSchema$1,
|
|
6637
|
+
updatedAt: isoDateTimeSchema$3
|
|
6622
6638
|
}).superRefine((request, context) => {
|
|
6623
6639
|
if (request.sessionStrategy === "new" && request.nativeSessionId !== null) context.addIssue({
|
|
6624
6640
|
code: "custom",
|
|
@@ -6648,15 +6664,20 @@ const agentProfileCreationRequestSchema = z$1.strictObject({
|
|
|
6648
6664
|
});
|
|
6649
6665
|
const createAgentProfileCreationRequestBodySchema = z$1.strictObject({
|
|
6650
6666
|
configuration: agentProfileCreationConfigurationSchema.optional(),
|
|
6651
|
-
idempotencyKey: identifierSchema$
|
|
6652
|
-
nativeSessionId: identifierSchema$
|
|
6667
|
+
idempotencyKey: identifierSchema$1,
|
|
6668
|
+
nativeSessionId: identifierSchema$1.nullable().optional(),
|
|
6653
6669
|
profileName: profileNameSchema,
|
|
6654
|
-
requestedSpaceId: identifierSchema$
|
|
6670
|
+
requestedSpaceId: identifierSchema$1.nullable().optional(),
|
|
6655
6671
|
sessionStrategy: agentProfileCreationSessionStrategySchema,
|
|
6656
6672
|
source: agentProfileCreationRequestSourceSchema,
|
|
6657
|
-
targetOwnerUserId: identifierSchema$
|
|
6673
|
+
targetOwnerUserId: identifierSchema$1
|
|
6658
6674
|
}).superRefine((request, context) => {
|
|
6659
6675
|
const nativeSessionId = request.nativeSessionId ?? null;
|
|
6676
|
+
if (request.configuration?.agentControllerRef === "hosted:remote-agent" && request.sessionStrategy !== "new") context.addIssue({
|
|
6677
|
+
code: "custom",
|
|
6678
|
+
message: "Remote Agents start a new conversation.",
|
|
6679
|
+
path: ["sessionStrategy"]
|
|
6680
|
+
});
|
|
6660
6681
|
if (request.sessionStrategy === "new" && nativeSessionId !== null) context.addIssue({
|
|
6661
6682
|
code: "custom",
|
|
6662
6683
|
message: "New-session requests cannot include nativeSessionId.",
|
|
@@ -6673,7 +6694,7 @@ const createAgentProfileCreationRequestResponseSchema = z$1.strictObject({
|
|
|
6673
6694
|
request: agentProfileCreationRequestSchema
|
|
6674
6695
|
});
|
|
6675
6696
|
const listAgentProfileCreationRequestsResponseSchema = z$1.strictObject({
|
|
6676
|
-
organizationId: identifierSchema$
|
|
6697
|
+
organizationId: identifierSchema$1,
|
|
6677
6698
|
requests: z$1.array(agentProfileCreationRequestSchema).max(200)
|
|
6678
6699
|
});
|
|
6679
6700
|
const decideAgentProfileCreationRequestBodySchema = z$1.strictObject({ decision: z$1.enum(["approve", "decline"]) });
|
|
@@ -6681,9 +6702,9 @@ const agentProfileCreationRequestMutationResponseSchema = z$1.strictObject({ req
|
|
|
6681
6702
|
const agentProfileCreationApprovalPreferenceSchema = z$1.strictObject({
|
|
6682
6703
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
6683
6704
|
newSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
6684
|
-
organizationId: identifierSchema$
|
|
6685
|
-
updatedAt: isoDateTimeSchema$
|
|
6686
|
-
userId: identifierSchema$
|
|
6705
|
+
organizationId: identifierSchema$1,
|
|
6706
|
+
updatedAt: isoDateTimeSchema$3.nullable(),
|
|
6707
|
+
userId: identifierSchema$1
|
|
6687
6708
|
});
|
|
6688
6709
|
const setAgentProfileCreationApprovalPreferenceBodySchema = z$1.strictObject({
|
|
6689
6710
|
existingSessionPolicy: agentProfileCreationApprovalPolicySchema,
|
|
@@ -7959,7 +7980,7 @@ z$1.union([slackChannelHistoryResponseSchema, slackReadUnavailableResponseSchema
|
|
|
7959
7980
|
z$1.union([slackFileReadResponseSchema, slackReadUnavailableResponseSchema]);
|
|
7960
7981
|
//#endregion
|
|
7961
7982
|
//#region ../../packages/schemas/dist/schemas/http/space-status.js
|
|
7962
|
-
const isoDateTimeSchema$
|
|
7983
|
+
const isoDateTimeSchema$2 = z$1.iso.datetime({ offset: true });
|
|
7963
7984
|
const optionalTrimmedStringSchema$1 = z$1.preprocess((value) => {
|
|
7964
7985
|
const normalized = String(value ?? "").trim();
|
|
7965
7986
|
return normalized.length > 0 ? normalized : void 0;
|
|
@@ -7978,7 +7999,7 @@ const spaceStatusLatestVisibleUpdateSchema = z$1.object({
|
|
|
7978
7999
|
"signal.status",
|
|
7979
8000
|
"signal.system_notice"
|
|
7980
8001
|
]),
|
|
7981
|
-
createdAt: isoDateTimeSchema$
|
|
8002
|
+
createdAt: isoDateTimeSchema$2,
|
|
7982
8003
|
actorProfileId: openMeldRuntimeProfileIdSchema,
|
|
7983
8004
|
actorName: optionalTrimmedStringSchema$1,
|
|
7984
8005
|
previewText: nonEmptyTrimmedStringFromUnknown.transform(boundSpaceStatusPreviewText)
|
|
@@ -7989,11 +8010,11 @@ const spaceStatusMembersSummarySchema = spaceMembersSummarySchema.extend({
|
|
|
7989
8010
|
});
|
|
7990
8011
|
const getSpaceStatusResponseSchema = z$1.object({
|
|
7991
8012
|
spaceId: nonEmptyTrimmedStringFromUnknown,
|
|
7992
|
-
generatedAt: isoDateTimeSchema$
|
|
8013
|
+
generatedAt: isoDateTimeSchema$2,
|
|
7993
8014
|
centerAgentProfileId: agentProfileIdSchema.optional(),
|
|
7994
8015
|
name: optionalTrimmedStringSchema$1,
|
|
7995
8016
|
spacePurpose: optionalTrimmedStringSchema$1,
|
|
7996
|
-
directMessageConvertedAt: isoDateTimeSchema$
|
|
8017
|
+
directMessageConvertedAt: isoDateTimeSchema$2.optional(),
|
|
7997
8018
|
organizationVisibility: spaceOrganizationVisibilitySchema.optional(),
|
|
7998
8019
|
accessMode: spaceAccessModeSchema,
|
|
7999
8020
|
passwordProtected: z$1.boolean(),
|
|
@@ -8193,7 +8214,15 @@ const REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS = 4e3;
|
|
|
8193
8214
|
const REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS = 1024;
|
|
8194
8215
|
const REMOTE_AGENT_RUNTIME_CONVERSATION_ID_MAX_CHARS = 2048;
|
|
8195
8216
|
const contentHashSchema = string().regex(/^sha256:[0-9a-f]{64}$/u);
|
|
8196
|
-
const isoDateTimeSchema$
|
|
8217
|
+
const isoDateTimeSchema$1 = iso.datetime({ offset: true });
|
|
8218
|
+
/** A personal Agent's Space conversation must not share a runtime with another Agent. */
|
|
8219
|
+
function buildPersonalRemoteAgentConversationId(input) {
|
|
8220
|
+
return ["personal-remote-agent.v1", ...[
|
|
8221
|
+
input.organizationId,
|
|
8222
|
+
input.agentProfileId,
|
|
8223
|
+
input.spaceId
|
|
8224
|
+
].map((value) => nonEmptyStringSchema.max(256).parse(value)).map((value) => `${value.length}:${value}`)].join("|");
|
|
8225
|
+
}
|
|
8197
8226
|
function buildRemoteAgentRuntimeConversationId(input) {
|
|
8198
8227
|
const organizationId = nonEmptyStringSchema.max(256).parse(input.organizationId);
|
|
8199
8228
|
const logicalConversationId = nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS).parse(input.logicalConversationId);
|
|
@@ -8206,29 +8235,21 @@ function buildRemoteAgentRuntimeConversationId(input) {
|
|
|
8206
8235
|
String(generation)
|
|
8207
8236
|
].join("|"));
|
|
8208
8237
|
}
|
|
8209
|
-
const remoteAgentConversationContinuityEntrySourceSchema = discriminatedUnion("kind", [
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
])
|
|
8225
|
-
}),
|
|
8226
|
-
strictObject({
|
|
8227
|
-
eventId: nonEmptyStringSchema.max(256),
|
|
8228
|
-
kind: literal("center_agent_task_event"),
|
|
8229
|
-
taskId: nonEmptyStringSchema.max(256)
|
|
8230
|
-
})
|
|
8231
|
-
]);
|
|
8238
|
+
const remoteAgentConversationContinuityEntrySourceSchema = discriminatedUnion("kind", [strictObject({
|
|
8239
|
+
kind: literal("space_signal"),
|
|
8240
|
+
signalId: nonEmptyStringSchema.max(256),
|
|
8241
|
+
spaceId: nonEmptyStringSchema.max(256),
|
|
8242
|
+
version: contentHashSchema
|
|
8243
|
+
}), strictObject({
|
|
8244
|
+
conversationId: nonEmptyStringSchema.max(512),
|
|
8245
|
+
kind: literal("message_channel_message"),
|
|
8246
|
+
messageId: nonEmptyStringSchema.max(256),
|
|
8247
|
+
provider: enumFactory([
|
|
8248
|
+
"feishu",
|
|
8249
|
+
"lark",
|
|
8250
|
+
"slack"
|
|
8251
|
+
])
|
|
8252
|
+
})]);
|
|
8232
8253
|
const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
8233
8254
|
entries: array(strictObject({
|
|
8234
8255
|
author: strictObject({
|
|
@@ -8248,7 +8269,7 @@ const remoteAgentConversationContinuityContextSchema = strictObject({
|
|
|
8248
8269
|
text: string().max(REMOTE_AGENT_CONVERSATION_CONTINUITY_ENTRY_TEXT_MAX_CHARS * 2),
|
|
8249
8270
|
truncated: boolean()
|
|
8250
8271
|
}),
|
|
8251
|
-
occurredAt: isoDateTimeSchema$
|
|
8272
|
+
occurredAt: isoDateTimeSchema$1,
|
|
8252
8273
|
source: remoteAgentConversationContinuityEntrySourceSchema
|
|
8253
8274
|
}).superRefine((entry, context) => {
|
|
8254
8275
|
const materializedCharacterCount = Array.from(entry.content.text).length;
|
|
@@ -8352,7 +8373,6 @@ const remoteAgentWorkerAdmissionRejectionCodeSchema = enumFactory([
|
|
|
8352
8373
|
"remote_agent.conversation_history_limit_exceeded",
|
|
8353
8374
|
"remote_agent.routine_identity_mismatch",
|
|
8354
8375
|
"remote_agent.member_research_identity_mismatch",
|
|
8355
|
-
"remote_agent.center_agent_task_identity_mismatch",
|
|
8356
8376
|
"remote_agent.turn_envelope_identity_mismatch"
|
|
8357
8377
|
]);
|
|
8358
8378
|
union([remoteAgentRuntimeEvidenceReasonCodeSchema, remoteAgentWorkerAdmissionRejectionCodeSchema]);
|
|
@@ -8421,28 +8441,40 @@ const remoteAgentWorkerSubmitTurnRequestV2Schema = strictObject({
|
|
|
8421
8441
|
...remoteAgentWorkerSubmitTurnRequestShape,
|
|
8422
8442
|
modelRoute: centerAgentModelRouteSchema
|
|
8423
8443
|
});
|
|
8424
|
-
const remoteAgentWorkerConversationIdentitySchema =
|
|
8425
|
-
kind: literal("
|
|
8426
|
-
|
|
8427
|
-
})
|
|
8444
|
+
const remoteAgentWorkerConversationIdentitySchema = strictObject({
|
|
8445
|
+
kind: literal("personal_agent"),
|
|
8446
|
+
agentProfileId: nonEmptyStringSchema
|
|
8447
|
+
});
|
|
8428
8448
|
discriminatedUnion("v", [
|
|
8429
8449
|
remoteAgentWorkerSubmitTurnRequestV1Schema,
|
|
8430
8450
|
remoteAgentWorkerSubmitTurnRequestV2Schema,
|
|
8431
|
-
strictObject({
|
|
8432
|
-
v: literal(3),
|
|
8433
|
-
...remoteAgentWorkerSubmitTurnRequestShape,
|
|
8434
|
-
conversationIdentity: remoteAgentWorkerConversationIdentitySchema,
|
|
8435
|
-
modelRoute: centerAgentModelRouteSchema
|
|
8436
|
-
}),
|
|
8437
8451
|
strictObject({
|
|
8438
8452
|
v: literal(4),
|
|
8439
8453
|
...remoteAgentWorkerSubmitTurnRequestShape,
|
|
8440
|
-
conversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8441
8454
|
conversationIdentity: remoteAgentWorkerConversationIdentitySchema.optional(),
|
|
8455
|
+
conversationId: nonEmptyStringSchema.max(REMOTE_AGENT_LOGICAL_CONVERSATION_ID_MAX_CHARS),
|
|
8442
8456
|
continuityContext: remoteAgentConversationContinuityContextSchema.optional(),
|
|
8443
8457
|
modelRoute: centerAgentModelRouteSchema,
|
|
8444
|
-
runtimeConversation: remoteAgentRuntimeConversationSchema
|
|
8458
|
+
runtimeConversation: remoteAgentRuntimeConversationSchema,
|
|
8459
|
+
spaceDispatchContext: strictObject({
|
|
8460
|
+
dispatchChainId: nonEmptyStringSchema,
|
|
8461
|
+
autoRelayDepth: number().int().nonnegative(),
|
|
8462
|
+
visitedProfileIds: array(nonEmptyStringSchema).max(256),
|
|
8463
|
+
visitedProfileIdsHash: nonEmptyStringSchema
|
|
8464
|
+
}).optional()
|
|
8445
8465
|
}).superRefine((request, context) => {
|
|
8466
|
+
if (request.conversationIdentity?.kind === "personal_agent") {
|
|
8467
|
+
if (!request.spaceDispatchContext) context.addIssue({
|
|
8468
|
+
code: "custom",
|
|
8469
|
+
message: "Personal Agent turns require their source dispatch context.",
|
|
8470
|
+
path: ["spaceDispatchContext"]
|
|
8471
|
+
});
|
|
8472
|
+
if (request.conversationIdentity.agentProfileId !== request.agentProfileId || request.conversationId !== buildPersonalRemoteAgentConversationId(request)) context.addIssue({
|
|
8473
|
+
code: "custom",
|
|
8474
|
+
message: "Personal Agent conversations must match the Organization, Agent Profile, and Space.",
|
|
8475
|
+
path: ["conversationIdentity"]
|
|
8476
|
+
});
|
|
8477
|
+
}
|
|
8446
8478
|
const expectedRuntimeConversationId = buildRemoteAgentRuntimeConversationId({
|
|
8447
8479
|
generation: request.runtimeConversation.generation,
|
|
8448
8480
|
logicalConversationId: request.conversationId,
|
|
@@ -8796,7 +8828,6 @@ union([
|
|
|
8796
8828
|
]);
|
|
8797
8829
|
const remoteAgentCoreCallbackBodySchema = union([strictObject({
|
|
8798
8830
|
...remoteAgentCoreCallbackIdentitySchema,
|
|
8799
|
-
centerAgentTaskReferences: array(centerAgentTaskReferenceSchema).max(20).optional(),
|
|
8800
8831
|
conversationCompaction: conversationCompactionMarkerSchema.optional(),
|
|
8801
8832
|
navigationTarget: openMeldNavigationTargetSchema.optional(),
|
|
8802
8833
|
status: literal("completed").optional(),
|
|
@@ -8824,7 +8855,6 @@ discriminatedUnion("kind", [strictObject({
|
|
|
8824
8855
|
})]);
|
|
8825
8856
|
strictObject({
|
|
8826
8857
|
...remoteAgentCoreCallbackIdentitySchema,
|
|
8827
|
-
centerAgentTaskReferences: array(centerAgentTaskReferenceSchema).max(20).optional(),
|
|
8828
8858
|
conversationCompaction: conversationCompactionMarkerSchema.optional(),
|
|
8829
8859
|
navigationTarget: openMeldNavigationTargetSchema.optional(),
|
|
8830
8860
|
status: literal("completed"),
|
|
@@ -11671,401 +11701,6 @@ z$1.strictObject({
|
|
|
11671
11701
|
source: z$1.literal("explicit_tool")
|
|
11672
11702
|
});
|
|
11673
11703
|
//#endregion
|
|
11674
|
-
//#region ../../packages/schemas/dist/schemas/http/center-agent-tasks.js
|
|
11675
|
-
const CENTER_AGENT_TASK_GOAL_MAX_CHARS = 4e3;
|
|
11676
|
-
const CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS = 4e3;
|
|
11677
|
-
const CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER = "x-openmeld-center-agent-task-response-version";
|
|
11678
|
-
const identifierSchema$1 = string().trim().min(1).max(256);
|
|
11679
|
-
const idempotencyKeySchema = string().trim().min(1).max(512);
|
|
11680
|
-
const isoDateTimeSchema$1 = iso.datetime({ offset: true });
|
|
11681
|
-
const taskTextSchema = string().trim().min(1);
|
|
11682
|
-
const centerAgentTaskStatusSchema = enumFactory([
|
|
11683
|
-
"queued",
|
|
11684
|
-
"running",
|
|
11685
|
-
"stopping",
|
|
11686
|
-
"needs_attention",
|
|
11687
|
-
"succeeded",
|
|
11688
|
-
"failed",
|
|
11689
|
-
"stopped"
|
|
11690
|
-
]);
|
|
11691
|
-
const centerAgentTaskStateSchema = enumFactory([
|
|
11692
|
-
"active",
|
|
11693
|
-
"needs_action",
|
|
11694
|
-
"finished"
|
|
11695
|
-
]);
|
|
11696
|
-
const centerAgentTaskPhaseSchema = enumFactory([
|
|
11697
|
-
"queued",
|
|
11698
|
-
"working",
|
|
11699
|
-
"stopping",
|
|
11700
|
-
"waiting"
|
|
11701
|
-
]);
|
|
11702
|
-
const centerAgentTaskOutcomeSchema = enumFactory([
|
|
11703
|
-
"completed",
|
|
11704
|
-
"failed",
|
|
11705
|
-
"stopped"
|
|
11706
|
-
]);
|
|
11707
|
-
const centerAgentTaskResponseContractVersionSchema = union([literal(2), literal(3)]);
|
|
11708
|
-
union([literal("2").transform(() => 2), literal(String(3)).transform(() => 3)]);
|
|
11709
|
-
const centerAgentTaskExecutionEvidenceSchema = strictObject({
|
|
11710
|
-
attemptGeneration: number().int().positive(),
|
|
11711
|
-
kind: literal("native_delivery"),
|
|
11712
|
-
observedAt: isoDateTimeSchema$1
|
|
11713
|
-
});
|
|
11714
|
-
function resolveCenterAgentTaskPresentation(status, executionEvidence = null) {
|
|
11715
|
-
switch (status) {
|
|
11716
|
-
case "queued": return {
|
|
11717
|
-
outcome: null,
|
|
11718
|
-
phase: "queued",
|
|
11719
|
-
state: "active"
|
|
11720
|
-
};
|
|
11721
|
-
case "running": return {
|
|
11722
|
-
outcome: null,
|
|
11723
|
-
phase: executionEvidence ? "working" : null,
|
|
11724
|
-
state: "active"
|
|
11725
|
-
};
|
|
11726
|
-
case "stopping": return {
|
|
11727
|
-
outcome: null,
|
|
11728
|
-
phase: "stopping",
|
|
11729
|
-
state: "active"
|
|
11730
|
-
};
|
|
11731
|
-
case "needs_attention": return {
|
|
11732
|
-
outcome: null,
|
|
11733
|
-
phase: "waiting",
|
|
11734
|
-
state: "needs_action"
|
|
11735
|
-
};
|
|
11736
|
-
case "succeeded": return {
|
|
11737
|
-
outcome: "completed",
|
|
11738
|
-
phase: null,
|
|
11739
|
-
state: "finished"
|
|
11740
|
-
};
|
|
11741
|
-
case "failed": return {
|
|
11742
|
-
outcome: "failed",
|
|
11743
|
-
phase: null,
|
|
11744
|
-
state: "finished"
|
|
11745
|
-
};
|
|
11746
|
-
case "stopped": return {
|
|
11747
|
-
outcome: "stopped",
|
|
11748
|
-
phase: null,
|
|
11749
|
-
state: "finished"
|
|
11750
|
-
};
|
|
11751
|
-
default: return assertNeverTaskStatus(status);
|
|
11752
|
-
}
|
|
11753
|
-
}
|
|
11754
|
-
function assertNeverTaskStatus(value) {
|
|
11755
|
-
throw new Error(`Unsupported Center Agent Task status: ${String(value)}`);
|
|
11756
|
-
}
|
|
11757
|
-
const centerAgentTaskOriginV2Schema = discriminatedUnion("kind", [strictObject({ kind: literal("open_meld") }), strictObject({
|
|
11758
|
-
destination: messageChannelConversationLocatorSchema,
|
|
11759
|
-
kind: literal("message_channel")
|
|
11760
|
-
})]);
|
|
11761
|
-
const centerAgentTaskRequesterSchema = strictObject({
|
|
11762
|
-
displayName: string().trim().min(1).max(160),
|
|
11763
|
-
profileId: identifierSchema$1,
|
|
11764
|
-
userId: identifierSchema$1
|
|
11765
|
-
});
|
|
11766
|
-
const centerAgentTaskLocalAgentSourceSchema = strictObject({
|
|
11767
|
-
client: string().trim().min(1).max(80),
|
|
11768
|
-
kind: literal("local_agent")
|
|
11769
|
-
});
|
|
11770
|
-
const centerAgentTaskOriginSchema = discriminatedUnion("kind", [strictObject({
|
|
11771
|
-
kind: literal("open_meld"),
|
|
11772
|
-
localAgent: centerAgentTaskLocalAgentSourceSchema.optional(),
|
|
11773
|
-
requestedBy: centerAgentTaskRequesterSchema.optional()
|
|
11774
|
-
}), strictObject({
|
|
11775
|
-
destination: messageChannelConversationLocatorSchema,
|
|
11776
|
-
kind: literal("message_channel"),
|
|
11777
|
-
requestedBy: centerAgentTaskRequesterSchema.optional()
|
|
11778
|
-
})]);
|
|
11779
|
-
/** Frozen response parser for Web and Gateway builds released before v2. */
|
|
11780
|
-
const centerAgentTaskResponseV1Schema = strictObject({
|
|
11781
|
-
activeAttemptGeneration: number().int().positive().nullable(),
|
|
11782
|
-
createdAt: isoDateTimeSchema$1,
|
|
11783
|
-
finishedAt: isoDateTimeSchema$1.nullable(),
|
|
11784
|
-
goal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),
|
|
11785
|
-
id: identifierSchema$1,
|
|
11786
|
-
organizationId: identifierSchema$1,
|
|
11787
|
-
origin: centerAgentTaskOriginV2Schema,
|
|
11788
|
-
outcome: centerAgentTaskOutcomeSchema.nullable().optional(),
|
|
11789
|
-
phase: centerAgentTaskPhaseSchema.nullable().optional(),
|
|
11790
|
-
requesterUserId: identifierSchema$1.nullable(),
|
|
11791
|
-
state: centerAgentTaskStateSchema.optional(),
|
|
11792
|
-
status: centerAgentTaskStatusSchema,
|
|
11793
|
-
title: taskTextSchema.max(160),
|
|
11794
|
-
updatedAt: isoDateTimeSchema$1,
|
|
11795
|
-
version: number().int().positive()
|
|
11796
|
-
}).superRefine((task, context) => {
|
|
11797
|
-
const presentation = resolveCenterAgentTaskPresentationV1(task.status);
|
|
11798
|
-
for (const field of [
|
|
11799
|
-
"outcome",
|
|
11800
|
-
"phase",
|
|
11801
|
-
"state"
|
|
11802
|
-
]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({
|
|
11803
|
-
code: "custom",
|
|
11804
|
-
message: `Task ${field} must match its version-one status projection.`,
|
|
11805
|
-
path: [field]
|
|
11806
|
-
});
|
|
11807
|
-
validateCenterAgentTaskLifecycle(task, context);
|
|
11808
|
-
}).transform((task) => ({
|
|
11809
|
-
...task,
|
|
11810
|
-
...resolveCenterAgentTaskPresentationV1(task.status)
|
|
11811
|
-
}));
|
|
11812
|
-
const centerAgentTaskResponseV2Schema = strictObject({
|
|
11813
|
-
activeAttemptGeneration: number().int().positive().nullable(),
|
|
11814
|
-
createdAt: isoDateTimeSchema$1,
|
|
11815
|
-
executionEvidence: centerAgentTaskExecutionEvidenceSchema.optional(),
|
|
11816
|
-
finishedAt: isoDateTimeSchema$1.nullable(),
|
|
11817
|
-
goal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),
|
|
11818
|
-
id: identifierSchema$1,
|
|
11819
|
-
organizationId: identifierSchema$1,
|
|
11820
|
-
origin: centerAgentTaskOriginV2Schema,
|
|
11821
|
-
outcome: centerAgentTaskOutcomeSchema.nullable().optional(),
|
|
11822
|
-
phase: centerAgentTaskPhaseSchema.nullable().optional(),
|
|
11823
|
-
requesterUserId: identifierSchema$1.nullable(),
|
|
11824
|
-
state: centerAgentTaskStateSchema.optional(),
|
|
11825
|
-
status: centerAgentTaskStatusSchema,
|
|
11826
|
-
title: taskTextSchema.max(160),
|
|
11827
|
-
updatedAt: isoDateTimeSchema$1,
|
|
11828
|
-
version: number().int().positive()
|
|
11829
|
-
}).superRefine((task, context) => {
|
|
11830
|
-
const executionEvidence = task.executionEvidence ?? null;
|
|
11831
|
-
const presentation = resolveCenterAgentTaskPresentation(task.status, executionEvidence);
|
|
11832
|
-
for (const field of [
|
|
11833
|
-
"outcome",
|
|
11834
|
-
"phase",
|
|
11835
|
-
"state"
|
|
11836
|
-
]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({
|
|
11837
|
-
code: "custom",
|
|
11838
|
-
message: `Task ${field} must match its canonical status projection.`,
|
|
11839
|
-
path: [field]
|
|
11840
|
-
});
|
|
11841
|
-
validateCenterAgentTaskLifecycle(task, context);
|
|
11842
|
-
if (executionEvidence && (task.status !== "running" || executionEvidence.attemptGeneration !== task.activeAttemptGeneration)) context.addIssue({
|
|
11843
|
-
code: "custom",
|
|
11844
|
-
message: "Task executionEvidence must name the active running attempt.",
|
|
11845
|
-
path: ["executionEvidence"]
|
|
11846
|
-
});
|
|
11847
|
-
}).transform((task) => ({
|
|
11848
|
-
...task,
|
|
11849
|
-
...resolveCenterAgentTaskPresentation(task.status, task.executionEvidence ?? null)
|
|
11850
|
-
}));
|
|
11851
|
-
const centerAgentTaskSchema = strictObject({
|
|
11852
|
-
activeAttemptGeneration: number().int().positive().nullable(),
|
|
11853
|
-
createdAt: isoDateTimeSchema$1,
|
|
11854
|
-
executionEvidence: centerAgentTaskExecutionEvidenceSchema.optional(),
|
|
11855
|
-
finishedAt: isoDateTimeSchema$1.nullable(),
|
|
11856
|
-
goal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),
|
|
11857
|
-
id: identifierSchema$1,
|
|
11858
|
-
organizationId: identifierSchema$1,
|
|
11859
|
-
origin: centerAgentTaskOriginSchema,
|
|
11860
|
-
outcome: centerAgentTaskOutcomeSchema.nullable().optional(),
|
|
11861
|
-
phase: centerAgentTaskPhaseSchema.nullable().optional(),
|
|
11862
|
-
requesterUserId: identifierSchema$1.nullable(),
|
|
11863
|
-
state: centerAgentTaskStateSchema.optional(),
|
|
11864
|
-
status: centerAgentTaskStatusSchema,
|
|
11865
|
-
title: taskTextSchema.max(160),
|
|
11866
|
-
updatedAt: isoDateTimeSchema$1,
|
|
11867
|
-
version: number().int().positive()
|
|
11868
|
-
}).superRefine((task, context) => {
|
|
11869
|
-
const executionEvidence = task.executionEvidence ?? null;
|
|
11870
|
-
const presentation = resolveCenterAgentTaskPresentation(task.status, executionEvidence);
|
|
11871
|
-
for (const field of [
|
|
11872
|
-
"outcome",
|
|
11873
|
-
"phase",
|
|
11874
|
-
"state"
|
|
11875
|
-
]) if (task[field] !== void 0 && task[field] !== presentation[field]) context.addIssue({
|
|
11876
|
-
code: "custom",
|
|
11877
|
-
message: `Task ${field} must match its canonical status projection.`,
|
|
11878
|
-
path: [field]
|
|
11879
|
-
});
|
|
11880
|
-
validateCenterAgentTaskLifecycle(task, context);
|
|
11881
|
-
if (executionEvidence && (task.status !== "running" || executionEvidence.attemptGeneration !== task.activeAttemptGeneration)) context.addIssue({
|
|
11882
|
-
code: "custom",
|
|
11883
|
-
message: "Task executionEvidence must name the active running attempt.",
|
|
11884
|
-
path: ["executionEvidence"]
|
|
11885
|
-
});
|
|
11886
|
-
}).transform((task) => ({
|
|
11887
|
-
...task,
|
|
11888
|
-
...resolveCenterAgentTaskPresentation(task.status, task.executionEvidence ?? null)
|
|
11889
|
-
}));
|
|
11890
|
-
const centerAgentTaskAttemptSchema = strictObject({
|
|
11891
|
-
createdAt: isoDateTimeSchema$1,
|
|
11892
|
-
failureCode: string().trim().min(1).max(160).nullable(),
|
|
11893
|
-
finishedAt: isoDateTimeSchema$1.nullable(),
|
|
11894
|
-
generation: number().int().positive(),
|
|
11895
|
-
id: identifierSchema$1,
|
|
11896
|
-
startedAt: isoDateTimeSchema$1.nullable(),
|
|
11897
|
-
status: centerAgentTaskStatusSchema,
|
|
11898
|
-
taskHandle: agentTaskHandleSchema,
|
|
11899
|
-
taskId: identifierSchema$1
|
|
11900
|
-
}).superRefine((attempt, context) => {
|
|
11901
|
-
const isQueued = attempt.status === "queued";
|
|
11902
|
-
const isTerminal = isCenterAgentTaskTerminalStatus(attempt.status);
|
|
11903
|
-
if (!(isQueued && attempt.startedAt === null && attempt.finishedAt === null || !isQueued && attempt.startedAt !== null && (isTerminal ? attempt.finishedAt !== null : attempt.finishedAt === null))) context.addIssue({
|
|
11904
|
-
code: "custom",
|
|
11905
|
-
message: "Attempt timestamps must match its status.",
|
|
11906
|
-
path: ["status"]
|
|
11907
|
-
});
|
|
11908
|
-
if (!(attempt.status === "failed" && attempt.failureCode !== null || attempt.status !== "failed" && attempt.failureCode === null)) context.addIssue({
|
|
11909
|
-
code: "custom",
|
|
11910
|
-
message: "Attempt failureCode must match its status.",
|
|
11911
|
-
path: ["failureCode"]
|
|
11912
|
-
});
|
|
11913
|
-
if (attempt.startedAt !== null && Date.parse(attempt.startedAt) < Date.parse(attempt.createdAt)) context.addIssue({
|
|
11914
|
-
code: "custom",
|
|
11915
|
-
message: "Attempt startedAt must not be before createdAt.",
|
|
11916
|
-
path: ["startedAt"]
|
|
11917
|
-
});
|
|
11918
|
-
if (attempt.startedAt !== null && attempt.finishedAt !== null && Date.parse(attempt.finishedAt) < Date.parse(attempt.startedAt)) context.addIssue({
|
|
11919
|
-
code: "custom",
|
|
11920
|
-
message: "Attempt finishedAt must not be before startedAt.",
|
|
11921
|
-
path: ["finishedAt"]
|
|
11922
|
-
});
|
|
11923
|
-
});
|
|
11924
|
-
const centerAgentTaskEventKindSchema = enumFactory([
|
|
11925
|
-
"task_created",
|
|
11926
|
-
"requester_message",
|
|
11927
|
-
"center_agent_update",
|
|
11928
|
-
"needs_attention",
|
|
11929
|
-
"stop_requested",
|
|
11930
|
-
"task_succeeded",
|
|
11931
|
-
"task_failed",
|
|
11932
|
-
"task_stopped"
|
|
11933
|
-
]);
|
|
11934
|
-
const centerAgentTaskEventSchema = strictObject({
|
|
11935
|
-
actor: enumFactory([
|
|
11936
|
-
"requester",
|
|
11937
|
-
"center_agent",
|
|
11938
|
-
"system"
|
|
11939
|
-
]),
|
|
11940
|
-
attemptGeneration: number().int().positive().nullable(),
|
|
11941
|
-
id: identifierSchema$1,
|
|
11942
|
-
kind: centerAgentTaskEventKindSchema,
|
|
11943
|
-
occurredAt: isoDateTimeSchema$1,
|
|
11944
|
-
taskId: identifierSchema$1,
|
|
11945
|
-
text: taskTextSchema.max(CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS)
|
|
11946
|
-
});
|
|
11947
|
-
const centerAgentTaskDetailSchema = strictObject({
|
|
11948
|
-
attempts: array(centerAgentTaskAttemptSchema),
|
|
11949
|
-
events: array(centerAgentTaskEventSchema),
|
|
11950
|
-
task: centerAgentTaskSchema
|
|
11951
|
-
});
|
|
11952
|
-
strictObject({
|
|
11953
|
-
attempts: array(centerAgentTaskAttemptSchema),
|
|
11954
|
-
events: array(centerAgentTaskEventSchema),
|
|
11955
|
-
task: centerAgentTaskResponseV1Schema
|
|
11956
|
-
});
|
|
11957
|
-
strictObject({
|
|
11958
|
-
attempts: array(centerAgentTaskAttemptSchema),
|
|
11959
|
-
events: array(centerAgentTaskEventSchema),
|
|
11960
|
-
task: centerAgentTaskResponseV2Schema
|
|
11961
|
-
});
|
|
11962
|
-
strictObject({
|
|
11963
|
-
context: openMeldRequestContextSchema,
|
|
11964
|
-
goal: taskTextSchema.max(CENTER_AGENT_TASK_GOAL_MAX_CHARS),
|
|
11965
|
-
idempotencyKey: idempotencyKeySchema,
|
|
11966
|
-
speakerMember: centerAgentToolSpeakerSchema,
|
|
11967
|
-
submissionId: identifierSchema$1,
|
|
11968
|
-
title: taskTextSchema.max(160)
|
|
11969
|
-
});
|
|
11970
|
-
strictObject({ task: centerAgentTaskSchema });
|
|
11971
|
-
const listCenterAgentTasksQuerySchema = strictObject({
|
|
11972
|
-
cursor: string().trim().min(1).max(1024).optional(),
|
|
11973
|
-
limit: coerce.number().int().min(1).max(100).optional(),
|
|
11974
|
-
status: centerAgentTaskStatusSchema.optional()
|
|
11975
|
-
});
|
|
11976
|
-
const listCenterAgentTasksResponseSchema = strictObject({
|
|
11977
|
-
nextCursor: string().trim().min(1).max(1024).nullable(),
|
|
11978
|
-
organizationId: identifierSchema$1,
|
|
11979
|
-
tasks: array(centerAgentTaskSchema)
|
|
11980
|
-
});
|
|
11981
|
-
strictObject({
|
|
11982
|
-
nextCursor: string().trim().min(1).max(1024).nullable(),
|
|
11983
|
-
organizationId: identifierSchema$1,
|
|
11984
|
-
tasks: array(centerAgentTaskResponseV1Schema)
|
|
11985
|
-
});
|
|
11986
|
-
strictObject({
|
|
11987
|
-
nextCursor: string().trim().min(1).max(1024).nullable(),
|
|
11988
|
-
organizationId: identifierSchema$1,
|
|
11989
|
-
tasks: array(centerAgentTaskResponseV2Schema)
|
|
11990
|
-
});
|
|
11991
|
-
const centerAgentTaskRouteParamsSchema = strictObject({ taskId: identifierSchema$1 });
|
|
11992
|
-
const getCenterAgentTaskResponseSchema = centerAgentTaskDetailSchema;
|
|
11993
|
-
const continueCenterAgentTaskBodyShape = {
|
|
11994
|
-
expectedVersion: number().int().positive(),
|
|
11995
|
-
idempotencyKey: idempotencyKeySchema,
|
|
11996
|
-
text: taskTextSchema.max(CENTER_AGENT_TASK_EVENT_TEXT_MAX_CHARS)
|
|
11997
|
-
};
|
|
11998
|
-
const continueCenterAgentTaskBodySchema = strictObject(continueCenterAgentTaskBodyShape);
|
|
11999
|
-
const stopCenterAgentTaskBodyShape = { expectedVersion: number().int().positive() };
|
|
12000
|
-
const stopCenterAgentTaskBodySchema = strictObject(stopCenterAgentTaskBodyShape);
|
|
12001
|
-
const retryCenterAgentTaskBodyShape = {
|
|
12002
|
-
expectedVersion: number().int().positive(),
|
|
12003
|
-
idempotencyKey: idempotencyKeySchema
|
|
12004
|
-
};
|
|
12005
|
-
const retryCenterAgentTaskBodySchema = strictObject(retryCenterAgentTaskBodyShape);
|
|
12006
|
-
listCenterAgentTasksQuerySchema.extend({
|
|
12007
|
-
context: openMeldRequestContextSchema,
|
|
12008
|
-
responseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()
|
|
12009
|
-
});
|
|
12010
|
-
centerAgentTaskRouteParamsSchema.extend({
|
|
12011
|
-
context: openMeldRequestContextSchema,
|
|
12012
|
-
responseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()
|
|
12013
|
-
});
|
|
12014
|
-
centerAgentTaskRouteParamsSchema.extend(continueCenterAgentTaskBodyShape).extend({
|
|
12015
|
-
context: openMeldRequestContextSchema,
|
|
12016
|
-
responseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()
|
|
12017
|
-
});
|
|
12018
|
-
centerAgentTaskRouteParamsSchema.extend(stopCenterAgentTaskBodyShape).extend({
|
|
12019
|
-
context: openMeldRequestContextSchema,
|
|
12020
|
-
responseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()
|
|
12021
|
-
});
|
|
12022
|
-
centerAgentTaskRouteParamsSchema.extend(retryCenterAgentTaskBodyShape).extend({
|
|
12023
|
-
context: openMeldRequestContextSchema,
|
|
12024
|
-
responseContractVersion: centerAgentTaskResponseContractVersionSchema.optional()
|
|
12025
|
-
});
|
|
12026
|
-
listCenterAgentTasksQuerySchema.extend({
|
|
12027
|
-
context: openMeldRequestContextSchema,
|
|
12028
|
-
speakerMember: centerAgentToolSpeakerSchema
|
|
12029
|
-
});
|
|
12030
|
-
centerAgentTaskRouteParamsSchema.extend({
|
|
12031
|
-
context: openMeldRequestContextSchema,
|
|
12032
|
-
speakerMember: centerAgentToolSpeakerSchema
|
|
12033
|
-
});
|
|
12034
|
-
const mutateCenterAgentTaskResponseSchema = centerAgentTaskDetailSchema;
|
|
12035
|
-
function resolveCenterAgentTaskPresentationV1(status) {
|
|
12036
|
-
if (status === "running") return {
|
|
12037
|
-
outcome: null,
|
|
12038
|
-
phase: "working",
|
|
12039
|
-
state: "active"
|
|
12040
|
-
};
|
|
12041
|
-
return resolveCenterAgentTaskPresentation(status);
|
|
12042
|
-
}
|
|
12043
|
-
function validateCenterAgentTaskLifecycle(task, context) {
|
|
12044
|
-
if (isCenterAgentTaskTerminalStatus(task.status) !== (task.finishedAt !== null)) context.addIssue({
|
|
12045
|
-
code: "custom",
|
|
12046
|
-
message: "Task finishedAt must match its terminal status.",
|
|
12047
|
-
path: ["finishedAt"]
|
|
12048
|
-
});
|
|
12049
|
-
if (task.status !== "queued" && task.activeAttemptGeneration === null) context.addIssue({
|
|
12050
|
-
code: "custom",
|
|
12051
|
-
message: "A non-queued task requires an active attempt generation.",
|
|
12052
|
-
path: ["activeAttemptGeneration"]
|
|
12053
|
-
});
|
|
12054
|
-
if (Date.parse(task.updatedAt) < Date.parse(task.createdAt)) context.addIssue({
|
|
12055
|
-
code: "custom",
|
|
12056
|
-
message: "Task updatedAt must not be before createdAt.",
|
|
12057
|
-
path: ["updatedAt"]
|
|
12058
|
-
});
|
|
12059
|
-
if (task.finishedAt !== null && Date.parse(task.finishedAt) < Date.parse(task.createdAt)) context.addIssue({
|
|
12060
|
-
code: "custom",
|
|
12061
|
-
message: "Task finishedAt must not be before createdAt.",
|
|
12062
|
-
path: ["finishedAt"]
|
|
12063
|
-
});
|
|
12064
|
-
}
|
|
12065
|
-
function isCenterAgentTaskTerminalStatus(status) {
|
|
12066
|
-
return status === "failed" || status === "stopped" || status === "succeeded";
|
|
12067
|
-
}
|
|
12068
|
-
//#endregion
|
|
12069
11704
|
//#region ../../packages/schemas/dist/schemas/http/current-device-target.js
|
|
12070
11705
|
const currentDeviceTargetDeviceIdSchema = START_BOUNDED_ID_SCHEMA;
|
|
12071
11706
|
const currentDeviceTargetResolvedSchema = z$1.strictObject({
|
|
@@ -12140,7 +11775,6 @@ const inboxItemWireKindSchema = union([enumFactory([
|
|
|
12140
11775
|
"agent_interaction",
|
|
12141
11776
|
"wake_outcome",
|
|
12142
11777
|
"center_agent_update",
|
|
12143
|
-
"center_agent_task",
|
|
12144
11778
|
"document_review",
|
|
12145
11779
|
"organization_request",
|
|
12146
11780
|
"system_issue"
|
|
@@ -12150,7 +11784,6 @@ const inboxSourceKindSchema = enumFactory([
|
|
|
12150
11784
|
"runtime_coordinator_interaction",
|
|
12151
11785
|
"remote_agent_native_delivery",
|
|
12152
11786
|
"remote_agent_native_interaction",
|
|
12153
|
-
"center_agent_task_event",
|
|
12154
11787
|
"organization_document_draft",
|
|
12155
11788
|
"organization_opportunity",
|
|
12156
11789
|
"organization_member_request",
|
|
@@ -12223,10 +11856,6 @@ const inboxSourceTargetSchema = discriminatedUnion("kind", [
|
|
|
12223
11856
|
documentId: identifierSchema,
|
|
12224
11857
|
kind: literal("organization_document")
|
|
12225
11858
|
}),
|
|
12226
|
-
strictObject({
|
|
12227
|
-
kind: literal("center_agent_task"),
|
|
12228
|
-
taskId: identifierSchema
|
|
12229
|
-
}),
|
|
12230
11859
|
slackInboxSourceTargetSchema,
|
|
12231
11860
|
centerAgentInboxSourceTargetSchema,
|
|
12232
11861
|
strictObject({
|
|
@@ -13805,7 +13434,7 @@ function buildAgentActivityStatsPath(query = {}) {
|
|
|
13805
13434
|
}
|
|
13806
13435
|
const createAgentActivityApi = (client) => ({
|
|
13807
13436
|
readSessions: async (input = {}) => {
|
|
13808
|
-
const query = requireValidInput$
|
|
13437
|
+
const query = requireValidInput$7(agentActivitySessionInventoryQuerySchema, {
|
|
13809
13438
|
...input.cursor === void 0 ? {} : { cursor: input.cursor },
|
|
13810
13439
|
...input.limit === void 0 ? {} : { limit: input.limit },
|
|
13811
13440
|
...input.memberUserId === void 0 ? {} : { memberUserId: input.memberUserId },
|
|
@@ -13817,7 +13446,7 @@ const createAgentActivityApi = (client) => ({
|
|
|
13817
13446
|
...input.status === void 0 ? {} : { status: input.status }
|
|
13818
13447
|
}, "Agent Activity Session Inventory request is invalid.");
|
|
13819
13448
|
return await client.requestJson({
|
|
13820
|
-
...requestOptions$
|
|
13449
|
+
...requestOptions$9(input),
|
|
13821
13450
|
invalidMessage: "invalid Agent Activity Session Inventory response",
|
|
13822
13451
|
method: "GET",
|
|
13823
13452
|
operation: "agent_activity.sessions.read",
|
|
@@ -13826,7 +13455,7 @@ const createAgentActivityApi = (client) => ({
|
|
|
13826
13455
|
});
|
|
13827
13456
|
},
|
|
13828
13457
|
readSnapshot: async (input = {}) => {
|
|
13829
|
-
const query = requireValidInput$
|
|
13458
|
+
const query = requireValidInput$7(agentActivitySnapshotQuerySchema, {
|
|
13830
13459
|
...input.includeProviderMetadata === true ? { includeProviderMetadata: true } : {},
|
|
13831
13460
|
...input.memberUserId === void 0 ? {} : { memberUserId: input.memberUserId },
|
|
13832
13461
|
...input.projectId === void 0 ? {} : { projectId: input.projectId },
|
|
@@ -13834,7 +13463,7 @@ const createAgentActivityApi = (client) => ({
|
|
|
13834
13463
|
...input.status === void 0 ? {} : { status: input.status }
|
|
13835
13464
|
}, "Agent Activity snapshot request is invalid.");
|
|
13836
13465
|
return await client.requestJson({
|
|
13837
|
-
...requestOptions$
|
|
13466
|
+
...requestOptions$9(input),
|
|
13838
13467
|
invalidMessage: "invalid Agent Activity snapshot response",
|
|
13839
13468
|
method: "GET",
|
|
13840
13469
|
operation: "agent_activity.snapshot.read",
|
|
@@ -13843,9 +13472,9 @@ const createAgentActivityApi = (client) => ({
|
|
|
13843
13472
|
});
|
|
13844
13473
|
},
|
|
13845
13474
|
readStats: async (input = {}) => {
|
|
13846
|
-
const query = requireValidInput$
|
|
13475
|
+
const query = requireValidInput$7(agentActivityStatsQuerySchema, { ...input.projectId === void 0 ? {} : { projectId: input.projectId } }, "Agent Activity stats request is invalid.");
|
|
13847
13476
|
return await client.requestJson({
|
|
13848
|
-
...requestOptions$
|
|
13477
|
+
...requestOptions$9(input),
|
|
13849
13478
|
invalidMessage: "invalid Agent Activity stats response",
|
|
13850
13479
|
method: "GET",
|
|
13851
13480
|
operation: "agent_activity.stats.read",
|
|
@@ -13854,14 +13483,14 @@ const createAgentActivityApi = (client) => ({
|
|
|
13854
13483
|
});
|
|
13855
13484
|
}
|
|
13856
13485
|
});
|
|
13857
|
-
function requestOptions$
|
|
13486
|
+
function requestOptions$9(input) {
|
|
13858
13487
|
return {
|
|
13859
13488
|
...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },
|
|
13860
13489
|
...input.signal === void 0 ? {} : { signal: input.signal },
|
|
13861
13490
|
...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }
|
|
13862
13491
|
};
|
|
13863
13492
|
}
|
|
13864
|
-
function requireValidInput$
|
|
13493
|
+
function requireValidInput$7(schema, value, message) {
|
|
13865
13494
|
const parsed = schema.safeParse(value);
|
|
13866
13495
|
if (!parsed.success) throw new Error(`${message} ${parsed.error.issues[0]?.message ?? "Invalid input."}`);
|
|
13867
13496
|
return parsed.data;
|
|
@@ -14575,127 +14204,6 @@ function buildAuditJournalUrl(input) {
|
|
|
14575
14204
|
if (input.actionSet !== void 0) url.searchParams.set("actionSet", input.actionSet);
|
|
14576
14205
|
return `${url.pathname}${url.search}`;
|
|
14577
14206
|
}
|
|
14578
|
-
const CENTER_AGENT_TASKS_PATH = "/v1/organizations/current/center-agent/tasks";
|
|
14579
|
-
function buildCenterAgentTasksPath(query = {}) {
|
|
14580
|
-
const search = new URLSearchParams();
|
|
14581
|
-
if (query.cursor !== void 0) search.set("cursor", query.cursor);
|
|
14582
|
-
if (query.limit !== void 0) search.set("limit", String(query.limit));
|
|
14583
|
-
if (query.status !== void 0) search.set("status", query.status);
|
|
14584
|
-
const encodedQuery = search.toString();
|
|
14585
|
-
return encodedQuery.length > 0 ? `${CENTER_AGENT_TASKS_PATH}?${encodedQuery}` : CENTER_AGENT_TASKS_PATH;
|
|
14586
|
-
}
|
|
14587
|
-
function buildCenterAgentTaskPath(taskId) {
|
|
14588
|
-
return `${CENTER_AGENT_TASKS_PATH}/${encodeURIComponent(taskId)}`;
|
|
14589
|
-
}
|
|
14590
|
-
function buildCenterAgentTaskMessagesPath(taskId) {
|
|
14591
|
-
return `${buildCenterAgentTaskPath(taskId)}/messages`;
|
|
14592
|
-
}
|
|
14593
|
-
function buildCenterAgentTaskStopPath(taskId) {
|
|
14594
|
-
return `${buildCenterAgentTaskPath(taskId)}/stop`;
|
|
14595
|
-
}
|
|
14596
|
-
function buildCenterAgentTaskRetryPath(taskId) {
|
|
14597
|
-
return `${buildCenterAgentTaskPath(taskId)}/retry`;
|
|
14598
|
-
}
|
|
14599
|
-
const createCenterAgentTasksApi = (client) => ({
|
|
14600
|
-
list: async (input = {}) => {
|
|
14601
|
-
const query = requireValidInput$7(listCenterAgentTasksQuerySchema, {
|
|
14602
|
-
...input.cursor === void 0 ? {} : { cursor: input.cursor },
|
|
14603
|
-
...input.limit === void 0 ? {} : { limit: input.limit },
|
|
14604
|
-
...input.status === void 0 ? {} : { status: input.status }
|
|
14605
|
-
}, "Center Agent Task list request is invalid.");
|
|
14606
|
-
return await client.requestJson({
|
|
14607
|
-
...requestOptions$9(input),
|
|
14608
|
-
headers: responseContractHeaders(),
|
|
14609
|
-
invalidMessage: "invalid Center Agent Task list response",
|
|
14610
|
-
method: "GET",
|
|
14611
|
-
operation: "center_agent_task.list",
|
|
14612
|
-
schema: listCenterAgentTasksResponseSchema,
|
|
14613
|
-
url: buildCenterAgentTasksPath(query)
|
|
14614
|
-
});
|
|
14615
|
-
},
|
|
14616
|
-
get: async (input) => {
|
|
14617
|
-
const taskId = requireTaskId(input.taskId);
|
|
14618
|
-
return await client.requestJson({
|
|
14619
|
-
...requestOptions$9(input),
|
|
14620
|
-
headers: responseContractHeaders(),
|
|
14621
|
-
invalidMessage: "invalid Center Agent Task response",
|
|
14622
|
-
method: "GET",
|
|
14623
|
-
operation: "center_agent_task.get",
|
|
14624
|
-
schema: getCenterAgentTaskResponseSchema,
|
|
14625
|
-
url: buildCenterAgentTaskPath(taskId)
|
|
14626
|
-
});
|
|
14627
|
-
},
|
|
14628
|
-
continue: async (input) => {
|
|
14629
|
-
const taskId = requireTaskId(input.taskId);
|
|
14630
|
-
const body = requireValidInput$7(continueCenterAgentTaskBodySchema, {
|
|
14631
|
-
expectedVersion: input.expectedVersion,
|
|
14632
|
-
idempotencyKey: input.idempotencyKey,
|
|
14633
|
-
text: input.text
|
|
14634
|
-
}, "Center Agent Task message request is invalid.");
|
|
14635
|
-
return await client.requestJson({
|
|
14636
|
-
...requestOptions$9(input),
|
|
14637
|
-
body: JSON.stringify(body),
|
|
14638
|
-
headers: responseContractHeaders("application/json"),
|
|
14639
|
-
invalidMessage: "invalid Center Agent Task response",
|
|
14640
|
-
method: "POST",
|
|
14641
|
-
operation: "center_agent_task.continue",
|
|
14642
|
-
schema: mutateCenterAgentTaskResponseSchema,
|
|
14643
|
-
url: buildCenterAgentTaskMessagesPath(taskId)
|
|
14644
|
-
});
|
|
14645
|
-
},
|
|
14646
|
-
stop: async (input) => {
|
|
14647
|
-
const taskId = requireTaskId(input.taskId);
|
|
14648
|
-
const body = requireValidInput$7(stopCenterAgentTaskBodySchema, { expectedVersion: input.expectedVersion }, "Center Agent Task stop request is invalid.");
|
|
14649
|
-
return await client.requestJson({
|
|
14650
|
-
...requestOptions$9(input),
|
|
14651
|
-
body: JSON.stringify(body),
|
|
14652
|
-
headers: responseContractHeaders("application/json"),
|
|
14653
|
-
invalidMessage: "invalid Center Agent Task response",
|
|
14654
|
-
method: "POST",
|
|
14655
|
-
operation: "center_agent_task.stop",
|
|
14656
|
-
schema: mutateCenterAgentTaskResponseSchema,
|
|
14657
|
-
url: buildCenterAgentTaskStopPath(taskId)
|
|
14658
|
-
});
|
|
14659
|
-
},
|
|
14660
|
-
retry: async (input) => {
|
|
14661
|
-
const taskId = requireTaskId(input.taskId);
|
|
14662
|
-
const body = requireValidInput$7(retryCenterAgentTaskBodySchema, {
|
|
14663
|
-
expectedVersion: input.expectedVersion,
|
|
14664
|
-
idempotencyKey: input.idempotencyKey
|
|
14665
|
-
}, "Center Agent Task retry request is invalid.");
|
|
14666
|
-
return await client.requestJson({
|
|
14667
|
-
...requestOptions$9(input),
|
|
14668
|
-
body: JSON.stringify(body),
|
|
14669
|
-
headers: responseContractHeaders("application/json"),
|
|
14670
|
-
invalidMessage: "invalid Center Agent Task response",
|
|
14671
|
-
method: "POST",
|
|
14672
|
-
operation: "center_agent_task.retry",
|
|
14673
|
-
schema: mutateCenterAgentTaskResponseSchema,
|
|
14674
|
-
url: buildCenterAgentTaskRetryPath(taskId)
|
|
14675
|
-
});
|
|
14676
|
-
}
|
|
14677
|
-
});
|
|
14678
|
-
function requireTaskId(value) {
|
|
14679
|
-
return requireValidInput$7(centerAgentTaskRouteParamsSchema, { taskId: value }, "Center Agent Task identifier is invalid.").taskId;
|
|
14680
|
-
}
|
|
14681
|
-
function responseContractHeaders(contentType) {
|
|
14682
|
-
return {
|
|
14683
|
-
...contentType ? { "content-type": contentType } : {},
|
|
14684
|
-
[CENTER_AGENT_TASK_RESPONSE_CONTRACT_VERSION_HEADER]: String(3)
|
|
14685
|
-
};
|
|
14686
|
-
}
|
|
14687
|
-
function requestOptions$9(input) {
|
|
14688
|
-
return {
|
|
14689
|
-
...input.requestContext === void 0 ? {} : { requestContext: input.requestContext },
|
|
14690
|
-
...input.signal === void 0 ? {} : { signal: input.signal },
|
|
14691
|
-
...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs }
|
|
14692
|
-
};
|
|
14693
|
-
}
|
|
14694
|
-
function requireValidInput$7(schema, value, message) {
|
|
14695
|
-
const parsed = schema.safeParse(value);
|
|
14696
|
-
if (!parsed.success) throw new TypeError(`${message} ${parsed.error.issues[0]?.message ?? "Invalid value."}`);
|
|
14697
|
-
return parsed.data;
|
|
14698
|
-
}
|
|
14699
14207
|
const FALLBACK_GATEWAY_HTTP_ERROR_CODE = "gateway.http_error";
|
|
14700
14208
|
const INVALID_RESPONSE_ERROR_CODE = "gateway.invalid_response";
|
|
14701
14209
|
const GENERIC_NETWORK_ERROR_CODES = ["network.timeout", "network.request_failed"];
|
|
@@ -18655,6 +18163,6 @@ function composeAbortSignals(parent, timeout) {
|
|
|
18655
18163
|
};
|
|
18656
18164
|
}
|
|
18657
18165
|
//#endregion
|
|
18658
|
-
export {
|
|
18166
|
+
export { buildLocalFolderPickerPath as $, OPENMELD_RUNTIME_CAPABILITIES_HEADER as $n, agentActivitySessionInventoryResponseSchema as $r, createProjectsApi as $t, buildCurrentOrganizationDirectoryPath as A, OPENMELD_HEADER_REQUEST_ID as An, updateCenterAgentRoutineResponseSchema as Ar, createAccountSpaceIndexApi as At, buildCurrentOrganizationMessageChannelsPath as B, spaceDispatchTraceAttemptStatusSchema as Bn, localProjectControlDiscoverProjectsResponseSchema as Br, createFetchTransport as Bt, buildCenterAgentSessionPath as C, MAX_TEXT_LENGTH as Cn, submitFeedbackIssueResponseSchema as Cr, buildRoutineTargetSpacesPath as Ct, buildCurrentAgentProfileSessionRoute as D, resolveCustomMentionAliasOverride as Dn, listCenterAgentRoutinesResponseSchema as Dr, buildSpaceInboxReadThroughPath as Dt, buildComputerFileAccessUpdatePath as E, parseServerErrorFrame as En, listCenterAgentRoutineRunsResponseSchema as Er, buildSpaceBootstrapReadPath as Et, buildCurrentOrganizationMessageChannelPath as F, spaceEntryTargetSchema as Fn, agentActivitySessionStatusSchema as Fr, createComputerFileAccessApi as Ft, buildFeedbackIssueSubmissionPath as G, submitAgentControllerTaskLifecycleEventItemSchema as Gn, spaceMemberAgentWakeAvailabilitySchema as Gr, createOpenMeldApiClient as Gt, buildCurrentOrganizationSpacesWithMemberCountsPath as H, spaceDispatchTraceResponseSchema as Hn, postSpaceMembersResponseSchema as Hr, createLocalFolderPickerApi as Ht, buildCurrentOrganizationMessageChannelRegistrationPath as I, SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS as In, agentActivitySnapshotQuerySchema as Ir, createConfigApi as It, buildInboxItemReadPath as J, summarizeComputerFileAccessPolicy as Jn, spaceMemberDirectorySchema as Jr, createOrganizationSkillsApi as Jt, buildInboxItemDismissPath as K, ownerComputerDiagnosticsSchema as Kn, spaceMemberDirectoryAllowedRelationsSchema as Kr, createOrganizationApi as Kt, buildCurrentOrganizationMessageChannelRegistrationPollPath as L, SPACE_DISPATCH_TRACE_RESPONSE_CONTRACT_VERSION_HEADER as Ln, agentActivitySnapshotResponseSchema as Lr, createCurrentDeviceApi as Lt, buildCurrentOrganizationInformationProtectionPath as M, buildOpenMeldRequestContextHeaders as Mn, AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS as Mr, createAgentProfileBindingApi as Mt, buildCurrentOrganizationLogoPath as N, toErrorMessage$2 as Nn, agentActivityEventSchema as Nr, createAgentProfileWorkRecoveryApi as Nt, buildCurrentOrganizationCenterAgentMemoryWipeSelfPath as O, OPENMELD_HEADER_PROFILE_ID as On, pauseCenterAgentRoutineResponseSchema as Or, buildSpaceInboxSummaryPath as Ot, buildCurrentOrganizationMemberOpenMeldServiceStatusesPath as P, getSpaceUpdatesResponseSchema as Pn, agentActivityProviderSchema as Pr, createCenterAgentApi as Pt, buildInboxSummaryPath as Q, COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY as Qn, agentActivitySessionInventoryQuerySchema as Qr, createProfilesApi as Qt, buildCurrentOrganizationMessageChannelRegistrationsPath as R, projectSpaceDispatchTraceFinalVisibleOutcome as Rn, localProjectControlConnectionSchema as Rr, createDirectMessageApi as Rt, buildCenterAgentProfilePath as S, DAEMON_STREAM_KEEPALIVE_PONG as Sn, submitFeedbackIssueRequestSchema as Sr, buildRoutineRunsPath as St, buildComputerFileAccessReadPath as T, parseIncoming as Tn, deleteCenterAgentRoutineResponseSchema as Tr, buildSpaceAttachmentDownloadPath as Tt, buildDirectMessageConversionPath as U, observabilityWakeTraceSelectorSchema as Un, removeSpaceMembersResponseSchema as Ur, createLocalProjectControlApi as Ut, buildCurrentOrganizationSpacesPath as V, spaceDispatchTraceDispatchStatusSchema as Vn, leaveSpaceResponseSchema as Vr, createInboxApi as Vt, buildDirectMessageSpacePath as W, projectObservabilityWakeCorrelation as Wn, resolvedSpaceMemberProfileSchema as Wr, createLocalRuntimeExpectedRoutesApi as Wt, buildInboxPath as X, agentProfileCreationConfigurationSchema as Xn, agentActivityInventorySessionOriginSchema as Xr, createPrepareReadinessApi as Xt, buildInboxMarkAllReadPath as Y, DEFAULT_AGENT_PROFILE_CREATION_CONFIGURATION as Yn, spaceMemberKindSchema as Yr, createOrganizationUsageApi as Yt, buildInboxPreferencesPath as Z, gatewayErrorEnvelopeSchema as Zn, agentActivityInventorySessionStatusSchema as Zr, createProfileSpaceHistoryApi as Zt, buildCenterAgentDirectMessageSpacePath as _, toCompatibleSpaceAddressingRequestWireValue as _i, updateSpaceFileEntry as _n, authProfileKindSchema as _r, buildProjectPath as _t, buildAgentActivitySessionsPath as a, projectSchema as ai, getModelCatalog as an, resolveInitialSpaceAccessMode as ar, buildOrganizationDocumentsPath as at, buildCenterAgentMemberResearchPath as b, uploadSpaceFile as bn, profileErrorResponseSchema as br, buildRoutinePausePath as bt, buildAgentProfileCreationApprovalPreferencePath as c, openCodePermissionConfigSchema as ci, listSpaceFiles as cn, getOrganizationSkillResponseSchema as cr, buildOrganizationSkillGitHubPreviewPath as ct, buildAgentProfileCreationRequestDecisionPath as d, START_ISO_DATE_TIME_SCHEMA as di, resolveAccountSpaceIndexGatewayHost as dn, organizationSkillReleaseSummarySchema as dr, buildOrganizationSkillsPath as dt, localAgentSessionProviderSchema as ei, createRoutinesApi as en, computerFileAccessDaemonFrameSchema as er, buildLocalProjectControlPath as et, buildAgentProfileCreationRequestRetryPath as f, START_TRIMMED_NON_EMPTY_STRING_SCHEMA as fi, resolveProfileSpaceHistoryGatewayHost as fn, organizationSkillSummarySchema as fr, buildOrganizationUsageOverviewPath as ft, buildCenterAgentDesignationPath as g, agentControllerCollaborationModeSchema as gi, updateSpaceFileContent as gn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE as gr, buildProfileSpaceHistoryUpsertPath as gt, buildCenterAgentAuditJournalPath as h, agentControllerPermissionModeSchema as hi, trashSpaceFileEntry as hn, ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE as hr, buildProfileSpaceHistoryStatusPath as ht, buildAccountSpaceIndexPath as i, listProjectsResponseSchema as ii, downloadSpaceFileContent as in, organizationSpaceDirectoryWithMemberCountsResponseSchema as ir, buildOrganizationDocumentPath as it, buildCurrentOrganizationFeedbackReportingPolicyPath as j, OPENMELD_HEADER_SPACE_ADDRESSING_VERSION as jn, AGENT_ACTIVITY_EVENT_MAX_BYTES as jr, createAgentActivityApi as jt, buildCurrentOrganizationComputersPath as k, OPENMELD_HEADER_REQUESTED_ORGANIZATION_ID as kn, resumeCenterAgentRoutineResponseSchema as kr, buildSpaceInboxUnreadTargetsPath as kt, buildAgentProfileCreationDefaultsPath as l, START_BOUNDED_ID_SCHEMA as li, normalizeApiBaseUrl as ln, listOrganizationSkillsResponseSchema as lr, buildOrganizationSkillMaintainersPath as lt, buildAgentProfileWorkRecoveryRoute as m, localAgentCatalogSchema as mi, toStructuredApiClientFailure as mn, organizationDirectoryResponseSchema as mr, buildProfileSpaceHistoryListPath as mt, OpenMeldApiClientInvalidResponseError as n, archiveProjectResponseSchema as ni, createSpaceApi as nn, computerFileAccessPolicySchema as nr, buildOrganizationDocumentApproveDraftPath as nt, buildAgentActivitySnapshotPath as o, updateProjectResponseSchema as oi, getSpaceFile as on, spaceCreatorSchema as or, buildOrganizationSkillEnabledPath as ot, buildAgentProfileCreationRequestsPath as p, startReplyReadinessSummarySchema as pi, setSpaceAccessMode as pn, stringifyOrganizationSkillBundleCanonicalJson as pr, buildProfileRoute as pt, buildInboxItemPath as q, projectOwnerComputerLocalRuntimes as qn, spaceMemberDirectoryEntrySchema as qr, createOrganizationDocumentsApi as qt, buildAccountSpaceActiveWakeSummaryPath as r, createProjectResponseSchema as ri, createSpaceFolder as rn, modelCatalogSchema as rr, buildOrganizationDocumentDiscardDraftPath as rt, buildAgentActivityStatsPath as s, centerAgentToolSpeakerSchema as si, listSpaceFileRevisions as sn, spaceMetaSchema as sr, buildOrganizationSkillGitHubImportPath as st, OpenMeldApiClientHttpError as t, observedLocalAgentSessionSchema as ti, createRuntimeReportingApi as tn, computerFileAccessPolicyInputSchema as tr, buildModelCatalogPath as tt, buildAgentProfileCreationRequestCancelPath as u, START_BOUNDED_VERSION_SCHEMA as ui, publicSpaceUrls as un, organizationSkillBundleSchema as ur, buildOrganizationSkillPath as ut, buildCenterAgentInboxReadThroughPath as v, updateSpaceMeta as vn, authProfileManagedRoleSchema as vr, buildProjectsPath as vt, buildCenterAgentSessionsPath as w, parseEnvelope as wn, createCenterAgentRoutineResponseSchema as wr, buildRoutinesPath as wt, buildCenterAgentOperatingStatePath as x, DAEMON_STREAM_KEEPALIVE_PING as xn, organizationComputersResponseSchema as xr, buildRoutineResumePath as xt, buildCenterAgentInboxSummaryPath as y, uploadSpaceAttachment as yn, profileCapabilitiesResponseSchema as yr, buildRoutinePath as yt, buildCurrentOrganizationMessageChannelSetupRequestsPath as z, resolveSpaceDispatchTraceRootCause as zn, localProjectControlDaemonFrameSchema as zr, createFeedbackApi as zt };
|
|
18659
18167
|
|
|
18660
|
-
//# sourceMappingURL=dist-
|
|
18168
|
+
//# sourceMappingURL=dist-D_08t8sR.js.map
|