@keystrokehq/keystroke 1.0.24 → 1.0.25

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.
Files changed (77) hide show
  1. package/dist/action.cjs +1 -1
  2. package/dist/action.d.cts +2 -2
  3. package/dist/action.d.mts +2 -2
  4. package/dist/action.mjs +1 -1
  5. package/dist/agent.cjs +47 -6625
  6. package/dist/agent.cjs.map +1 -1
  7. package/dist/agent.d.cts +2 -2
  8. package/dist/agent.d.mts +2 -2
  9. package/dist/agent.mjs +48 -6626
  10. package/dist/agent.mjs.map +1 -1
  11. package/dist/app.cjs +1 -1
  12. package/dist/app.d.cts +2 -2
  13. package/dist/app.d.mts +2 -2
  14. package/dist/app.mjs +1 -1
  15. package/dist/client.cjs +1 -1
  16. package/dist/client.mjs +1 -1
  17. package/dist/config.d.cts +1 -1
  18. package/dist/config.d.mts +1 -1
  19. package/dist/credentials.cjs +1 -1
  20. package/dist/credentials.d.cts +1 -1
  21. package/dist/credentials.d.mts +1 -1
  22. package/dist/credentials.mjs +1 -1
  23. package/dist/{dist-D1qsfZPC.cjs → dist-B21SD2iJ.cjs} +6690 -21
  24. package/dist/dist-B21SD2iJ.cjs.map +1 -0
  25. package/dist/{dist-CE8Bys_M.cjs → dist-BhKByPZJ.cjs} +129 -6
  26. package/dist/dist-BhKByPZJ.cjs.map +1 -0
  27. package/dist/{dist-Cfj4uquz.mjs → dist-BqvxjcRz.mjs} +3 -3
  28. package/dist/{dist-Cfj4uquz.mjs.map → dist-BqvxjcRz.mjs.map} +1 -1
  29. package/dist/{dist-24hGLXP2.mjs → dist-CECXTPHW.mjs} +6673 -16
  30. package/dist/dist-CECXTPHW.mjs.map +1 -0
  31. package/dist/{dist-BJBiKPGz.cjs → dist-CtJ1zU3i.cjs} +3 -3
  32. package/dist/{dist-BJBiKPGz.cjs.map → dist-CtJ1zU3i.cjs.map} +1 -1
  33. package/dist/{dist-Kz_xVVMR.mjs → dist-DvwUCbk1.mjs} +129 -6
  34. package/dist/dist-DvwUCbk1.mjs.map +1 -0
  35. package/dist/{index-WT4ULMiw.d.cts → index-B1YicUCL.d.cts} +2 -1
  36. package/dist/index-B1YicUCL.d.cts.map +1 -0
  37. package/dist/{index-WT4ULMiw.d.mts → index-B1YicUCL.d.mts} +2 -1
  38. package/dist/index-B1YicUCL.d.mts.map +1 -0
  39. package/dist/{index-CwLz1Fhs.d.mts → index-CAyshOQj.d.mts} +4 -4
  40. package/dist/{index-CwLz1Fhs.d.mts.map → index-CAyshOQj.d.mts.map} +1 -1
  41. package/dist/{index-Cq2F2XdS.d.mts → index-CGHk6JeR.d.mts} +4 -3
  42. package/dist/{index-Cq2F2XdS.d.mts.map → index-CGHk6JeR.d.mts.map} +1 -1
  43. package/dist/{index-D4dAsbJr.d.cts → index-CGicsfPD.d.cts} +2 -2
  44. package/dist/{index-D4dAsbJr.d.cts.map → index-CGicsfPD.d.cts.map} +1 -1
  45. package/dist/{index-CB3he8Lx.d.mts → index-CVMv3juU.d.cts} +3 -3
  46. package/dist/{index-CB3he8Lx.d.mts.map → index-CVMv3juU.d.cts.map} +1 -1
  47. package/dist/{index-Dh5On360.d.cts → index-DVCXqEf3.d.mts} +3 -3
  48. package/dist/{index-Dh5On360.d.cts.map → index-DVCXqEf3.d.mts.map} +1 -1
  49. package/dist/{index-BTz2OMAM.d.cts → index-DY2poEgq.d.cts} +4 -3
  50. package/dist/{index-BTz2OMAM.d.cts.map → index-DY2poEgq.d.cts.map} +1 -1
  51. package/dist/{index-Sx9T2i0u.d.mts → index-Dax6Un8H.d.mts} +2 -2
  52. package/dist/{index-Sx9T2i0u.d.mts.map → index-Dax6Un8H.d.mts.map} +1 -1
  53. package/dist/{index-CRDakIp7.d.cts → index-bMNV2QpB.d.cts} +4 -4
  54. package/dist/{index-CRDakIp7.d.cts.map → index-bMNV2QpB.d.cts.map} +1 -1
  55. package/dist/{mistral-DOQjM8xW.mjs → mistral-DcdvWD3q.mjs} +2 -2
  56. package/dist/{mistral-DOQjM8xW.mjs.map → mistral-DcdvWD3q.mjs.map} +1 -1
  57. package/dist/{mistral-valYIS-y.cjs → mistral-mzeS6z9D.cjs} +2 -2
  58. package/dist/{mistral-valYIS-y.cjs.map → mistral-mzeS6z9D.cjs.map} +1 -1
  59. package/dist/{sse-2x1Rj7T8.mjs → sse-BgeDlOH5.mjs} +2 -2
  60. package/dist/{sse-2x1Rj7T8.mjs.map → sse-BgeDlOH5.mjs.map} +1 -1
  61. package/dist/{sse-B0wWt4Vq.cjs → sse-Ctz5ADnN.cjs} +2 -2
  62. package/dist/{sse-B0wWt4Vq.cjs.map → sse-Ctz5ADnN.cjs.map} +1 -1
  63. package/dist/trigger.cjs +1 -1
  64. package/dist/trigger.d.cts +3 -3
  65. package/dist/trigger.d.mts +3 -3
  66. package/dist/trigger.mjs +1 -1
  67. package/dist/workflow.cjs +1 -1
  68. package/dist/workflow.d.cts +2 -2
  69. package/dist/workflow.d.mts +2 -2
  70. package/dist/workflow.mjs +1 -1
  71. package/package.json +1 -1
  72. package/dist/dist-24hGLXP2.mjs.map +0 -1
  73. package/dist/dist-CE8Bys_M.cjs.map +0 -1
  74. package/dist/dist-D1qsfZPC.cjs.map +0 -1
  75. package/dist/dist-Kz_xVVMR.mjs.map +0 -1
  76. package/dist/index-WT4ULMiw.d.cts.map +0 -1
  77. package/dist/index-WT4ULMiw.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B1YicUCL.d.cts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","TriggerAssignment","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerId","triggerHash","TriggerOverviewJobPayload","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cA2rDcyb,wBAAAA,EAA0Bxb,CAAAA,CAAE8B,OAAO;EAC/CsL,OAAAA;EACAC,SAAAA;EACAoO,aAAAA;AAAAA;;;;;;cAOYC,yBAAAA,EAA2B1b,CAAAA,CAAE8B,OAAO;EAChD+D,YAAAA;EACA8V,IAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB7b,CAAAA,CAAEgB,KAAK,QAAQwa,wBAAAA;AAAAA,KACpCM,mBAAAA,GAAsB9b,CAAAA,CAAEgB,KAAK,QAAQ0a,yBAAAA;AAAAA,cAE5BM,sBAAAA;AAAAA;;;;KA0YTuH,qBAAAA;EAAAA,SACMpL,GAAAA;EAAAA,SACAtN,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN5R,MAAAA,EAAQjK,CAAAA,CAAE+J,OAAAA;WACVsT,KAAAA,GAAQvB,mBAAAA;EAAAA,SACR0H,UAAAA;AAAAA;AAAAA,KAENC,UAAAA,sCAAgDzjB,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6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
@@ -170,6 +170,7 @@ type OAuthAccessTokenRefreshParams = {
170
170
  clientId: string;
171
171
  clientSecret: string;
172
172
  refreshToken: string;
173
+ tokenEndpoint?: string;
173
174
  };
174
175
  type OAuthAccessTokenRefreshResult = {
175
176
  accessToken: string;
@@ -184,4 +185,4 @@ type OAuthTokenRefreshRegistry = {
184
185
  //#region src/types/openapi.d.ts
185
186
  //#endregion
186
187
  export { defineCredential as C, toCredentialRequirement as E, credentialInputSchema as S, normalizeCredentialList as T, PromptLlmRunOptions as _, CredentialConsumer as a, WorkflowEventType as b, CredentialRequirement as c, DefineCredentialInput as d, DefineOAuthCredentialInput as f, OAuthTokenRefreshRegistry as g, OAuthTokenAdapter as h, CredentialAuthKind as i, CredentialRunContext as l, NormalizeCredential as m, Credential as n, CredentialInput as o, DefineStaticCredentialInput as p, CredentialAssignmentTargetType as r, CredentialList as s, CREDENTIAL_SCOPE_TYPES as t, CredentialScopeType as u, PromptLlmThinkingLevel as v, isCredentialInput as w, credential as x, ResolvedCredentials as y };
187
- //# sourceMappingURL=index-WT4ULMiw.d.mts.map
188
+ //# sourceMappingURL=index-B1YicUCL.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-B1YicUCL.d.mts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","ZodEnum","slug_taken","slug_reserved","slug_invalid","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","invalid","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","ZodBoolean","ZodOptional","core","$strip","ZodObject","slug","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","message","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","failed","active","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","admin","owner","builder","OrganizationUserRole","OrganizationSchema","id","verified","createdAt","updatedAt","Organization","ProjectSchema","ZodNullable","organizationId","description","status","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","organization","role","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","ZodArray","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","ZodNumber","agentCount","workflowCount","skillCount","credentialCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","ZodRecord","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","AppSlugSchema","AppSlug","APP_SLUG_TAKEN_MESSAGE","slugifyAppName","validateAppSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","LOCAL_PLATFORM_ORIGIN","resolveExplicitPublicPlatformOrigin","NodeJS","ProcessEnv","env","resolvePublicPlatformOrigin","resolveExternalPlatformOrigin","resolvePublicPlatformApiOrigin","resolvePlatformWebhookOrigin","projectId","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","StoredRouteManifestSkillSchema","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodDefault","ZodUnknown","ZodDiscriminatedUnion","version","entries","kind","model","systemPrompt","toolCount","appSlugs","toolSlugs","subscribable","requestSchema","endpoint","attachmentIds","sourceHash","attachmentSchemas","filterSchema","attachmentMeta","attachmentId","schedule","pollId","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","AppCredentialFieldSchema","label","secret","optional","default","placement","prefix","AppCredentialFieldsSchema","AppCredentialField","AppCredentialFields","validateCredentialValueAgainstFields","fields","ok","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","keystroke","AppCredentialSchemeSchema","API_KEY","BEARER_TOKEN","BASIC","BASIC_WITH_JWT","AppSourceSchema","AppCatalogMetadataSchema","category","logo","authKind","oauthScopes","AppSeedEntrySchema","source","credentialFields","credentialScheme","AppSlugAvailabilityResponseSchema","AppSlugAvailabilityQuerySchema","CreateCustomAppRequestSchema","mcp","custom","mcpUrl","CustomAppDetailSchema","CreateCustomAppResponseSchema","GetCustomAppResponseSchema","AppRecordSchema","AppCatalogEntrySchema","integrationDescription","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","connectAppId","docsUrl","tagline","ListAppsResponseSchema","OAuthScopeOption","AppAuthKind","AppCredentialScheme","AppSource","AppCatalogMetadata","AppSeedEntry","AppRecord","AppCatalogEntry","ListAppsResponse","AppSlugAvailabilityResponse","AppSlugAvailabilityQuery","CreateCustomAppRequest","CustomAppDetail","CreateCustomAppResponse","GetCustomAppResponse","McpAuthProbeModeSchema","token","McpAuthProbeOAuthSchema","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResultSchema","mode","unauthenticatedStatus","scheme","McpDiscoverRequestSchema","McpDiscoverResponseSchema","detected","template","serverName","serverDescription","StartMcpOAuthConnectionInputSchema","appSlug","projects","createOrganizationCredential","createUserProvidedCredential","credentialInstanceId","StartMcpOAuthConnectionResultSchema","authorizeUrl","McpAuthProbeMode","McpAuthProbeOAuth","McpAuthProbeResult","McpDiscoverRequest","McpDiscoverResponse","StartMcpOAuthConnectionInput","StartMcpOAuthConnectionResult","McpAppTemplate","mcpProbeToAppTemplate","probe","OpenApiAppTemplate","openapiUrl","homepageUrl","openApiSpecToAppTemplate","spec","OpenApiDiscoverRequestSchema","OpenApiDiscoverResponseSchema","OpenApiDiscoverRequest","OpenApiDiscoverResponse","McpApiKeyPlacementSchema","DEFAULT_MCP_API_KEY_PLACEMENT","McpApiKeyPlacement","McpApiKeyCredentialValueSchema","McpApiKeyCredentialValue","McpAuthInjection","headers","searchParams","mcpApiKeyAuthInjection","mcpCredentialAuthInjection","values","CatalogAppSummarySchema","package","CatalogAppsPageSchema","items","nextCursor","CatalogAppDetailSchema","CatalogActionSummarySchema","CatalogActionsPageSchema","toolkit","CatalogActionDetailSchema","inputParameters","outputParameters","CatalogAppSummary","CatalogAppsPage","CatalogAppDetail","CatalogActionSummary","CatalogActionsPage","CatalogActionDetail","CatalogAppsPageResponseSchema","CatalogAppDetailResponseSchema","CatalogActionsPageResponseSchema","CatalogActionDetailResponseSchema","isOfficialSlug","qualifyOrgSlug","orgSlug","ParsedOfficialAppSlug","ParsedOrgAppSlug","ParsedAppSlug","parseAppSlug","buildConnectDeeplink","webUrl","options","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","placeholder","helpText","type","password","text","textarea","ChannelBindingSchema","channelId","channelName","channelKind","subscribeOnMention","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","ChannelDirectoryListResponseSchema","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","CredentialScopeTypeSchema","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","deriveCredentialInstanceSlug","Iterable","explicitSlug","takenSlugs","resolveUniqueCredentialInstanceLabel","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","restricted","AppCredentialSummarySchema","scope","lastRefreshedAt","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","CredentialTargetsFields","StartOAuthConnectionInputSchema","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","StartOAuthConnectionResult","StartKeystrokeConnectionInputSchema","app","StartKeystrokeConnectionInput","StartKeystrokeConnectionResultSchema","connectionId","StartKeystrokeConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","GetCredentialResponseSchema","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","parseMcpEntityId","entityId","KeystrokeCredentialSchema","instanceId","KeystrokeCredential","McpCredentialAssignmentTargetSchema","agent","workflow","McpCredentialAssignmentTarget","ExecuteKeystrokeToolRequestSchema","tool","arguments","assignmentTarget","consumerId","ExecuteKeystrokeToolRequest","ExecuteKeystrokeToolErrorCodeSchema","not_found","forbidden","mcp_execute_failed","ExecuteKeystrokeToolErrorCode","ExecuteKeystrokeToolErrorResponseSchema","error","ExecuteKeystrokeToolErrorResponse","MCP_TOOL_EXECUTE_FAILED_STATUS","formatMcpToolErrorMessage","raw","TeamRequestTypeSchema","contact","verification","SubmitTeamRequestRequestSchema","SubmitTeamRequestResponseSchema","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","MarketingContactCompanySizeSchema","SubmitMarketingContactRequestSchema","fullName","workEmail","companySize","companyWebsite","SubmitMarketingContactResponseSchema","MarketingContactCompanySize","SubmitMarketingContactRequest","SubmitMarketingContactResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","credential","static","DefineStaticCredentialInput","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","path","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","needs_org_selection","org_unverified","ErrorResponseCode","ErrorResponseSchema","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentSlug","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","trigger","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","canceled","sourceId","title","ranByUserName","gatewayPlatform","triggerType","cron","webhook","poll","messageCount","AgentSessionSummary","AgentSessionRecordSchema","agentSlug","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerRunId","workflowSlug","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","AgentSessionChatStateQuerySchema","sinceSeq","AgentSessionChatStateQuery","AgentSessionChatStateResponseSchema","live","AgentSessionChatStateResponse","AgentTriggerOriginSchema","ephemeral","AgentTriggerStatusSchema","disabled","AgentTriggerTypeSchema","AgentTriggerType","AgentTriggerSummarySchema","origin","prompt","executionCount","until","AgentTriggerSummary","AgentTriggerSummaryListResponseSchema","AgentTriggerSummaryListResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","CREDENTIAL_ASSIGNMENT_WILDCARD","CredentialAssignmentTargetTypeSchema","CredentialAssignmentRecordSchema","targetType","targetKey","credentialSlug","CredentialAssignmentListResponseSchema","assignments","AssignCredentialBodySchema","CredentialAssignmentListQuerySchema","CredentialConsumerListQuerySchema","CredentialConsumerSummarySchema","CredentialConsumerListResponseSchema","consumers","CredentialAssignmentTargetType","CredentialAssignmentRecord","AssignCredentialBody","CredentialAssignmentListQuery","CredentialConsumerListQuery","CredentialConsumerSummary","TriggerRunOutcomeSchema","dispatched","TriggerRunReasonSchema","filter_rejected","transform_undefined","invalid_payload","source_error","handler_error","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","outcome","detail","workflowRuns","agentSessions","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","TriggerRunDetailResponse","TriggerRunOutcome","TriggerRunReason","TriggerTypeSchema","TriggerTargetKindSchema","TriggerStatusSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","TriggerDetailResponseSchema","TriggerAssignmentSchema","TriggerAssignment","TriggerStatus","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","TriggerTargetKind","TriggerType","WorkspaceTriggerRunStatusSchema","WorkspaceTriggerRunStatus","WorkspaceTriggerSkipReasonSchema","filtered","no_new_data","WorkspaceTriggerSkipReason","WorkspaceTriggerRunTargetSchema","workflowId","WorkspaceTriggerRunTarget","WorkspaceTriggerRunOutcomeSchema","targets","WorkspaceTriggerRunOutcome","WorkspaceTriggerSummarySchema","lastFiredAt","fireCount","WorkspaceTriggerSummary","WorkspaceTriggerDetailSchema","WorkspaceTriggerDetail","WorkspaceTriggerListResponseSchema","WorkspaceTriggerListResponse","WorkspaceTriggerRunSummarySchema","WorkspaceTriggerRunSummary","WorkspaceTriggerRunListResponseSchema","WorkspaceTriggerRunListResponse","WorkspaceTriggerFileSchema","contents","WorkspaceTriggerFile","DEFAULT_TRIGGER_OVERVIEW_MODEL","WorkspaceTriggerOverviewStatusSchema","generating","ready","WorkspaceTriggerOverviewStatus","WorkspaceTriggerOverviewSchema","markdown","hash","generatedAt","WorkspaceTriggerOverview","TriggerOverviewInputSchema","sourceContents","TriggerOverviewInput","TriggerOverviewJobPayloadSchema","triggerId","triggerHash","TriggerOverviewJobPayload","OrganizationMemberRoleSchema","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ProjectArtifactStatusSchema","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","apps","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","StoredProjectSourceManifest","projectFileLanguage","projectFileId","AgentMemoryFileSummarySchema","AgentMemoryFileSummary","ListAgentMemoryFilesResponseSchema","ListAgentMemoryFilesResponse","agentMemoryFileId","AgentWorkspaceFileSummarySchema","AgentWorkspaceFileSummary","ListAgentWorkspaceFilesResponseSchema","ListAgentWorkspaceFilesResponse","agentWorkspaceFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","outputSchema","temperature","maxTokens","stepId","CredentialAssignmentSet","byConsumer","wildcard","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","verifiedAt","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cA2rDcyb,wBAAAA,EAA0Bxb,CAAAA,CAAE8B,OAAO;EAC/CsL,OAAAA;EACAC,SAAAA;EACAoO,aAAAA;AAAAA;;;;;;cAOYC,yBAAAA,EAA2B1b,CAAAA,CAAE8B,OAAO;EAChD+D,YAAAA;EACA8V,IAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB7b,CAAAA,CAAEgB,KAAK,QAAQwa,wBAAAA;AAAAA,KACpCM,mBAAAA,GAAsB9b,CAAAA,CAAEgB,KAAK,QAAQ0a,yBAAAA;AAAAA,cAE5BM,sBAAAA;AAAAA;;;;KA0YTuH,qBAAAA;EAAAA,SACMpL,GAAAA;EAAAA,SACAtN,IAAAA,EAAMgR,kBAAAA;EAAAA,SACN5R,MAAAA,EAAQjK,CAAAA,CAAE+J,OAAAA;WACVsT,KAAAA,GAAQvB,mBAAAA;EAAAA,SACR0H,UAAAA;AAAAA;AAAAA,KAENC,UAAAA,sCAAgDzjB,CA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AAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
@@ -1,7 +1,7 @@
1
- import { _ as PromptLlmRunOptions, h as OAuthTokenAdapter, l as CredentialRunContext } from "./index-WT4ULMiw.mjs";
1
+ import { _ as PromptLlmRunOptions, h as OAuthTokenAdapter, l as CredentialRunContext } from "./index-B1YicUCL.mjs";
2
2
  import { a as AgentState, d as Api, i as AgentMessage, l as ThinkingLevel, m as Model, n as AgentOptions, o as AgentTool, t as Agent$1 } from "./index-ClGiGBy7.mjs";
3
- import { a as McpCredentialContext, n as ActionDefinition } from "./index-Sx9T2i0u.mjs";
4
- import { _ as LlmUsageRecordInput, a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-Cq2F2XdS.mjs";
3
+ import { a as McpCredentialContext, n as ActionDefinition } from "./index-Dax6Un8H.mjs";
4
+ import { _ as LlmUsageRecordInput, a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-CGHk6JeR.mjs";
5
5
  import { C as AgentWorkspaceRoots, I as SandboxMode, O as SandboxDefinition, et as RuntimeHooks, i as SkillDefinition, k as SandboxDefinitionInput, nt as Sandbox, tt as RuntimeProvider } from "./index-B3iWqXUd.mjs";
6
6
  import { z } from "zod";
7
7
  import { DatabaseSync } from "node:sqlite";
@@ -327,4 +327,4 @@ type ResolveAgentToolsOptions = {
327
327
  declare function resolveAgentTools(tools: Array<ActionDefinition | AgentTool | AgentMcpTool>, resolver: ToolCredentialResolver, options?: ResolveAgentToolsOptions): Promise<ResolvedAgentTools>; //#endregion
328
328
  //#endregion
329
329
  export { errorMessage as A, resolveAgentWorkspaceRoot as B, SubagentToolMetadata as C, defineAgent as D, createAgent as E, prepareAgentSession as F, AgentCreateInputSchema as G, runLlm as H, prompt as I, DEFAULT_THINKING_LEVEL as J, AgentModelId as K, resolveAgentAssets as L, getSubagentToolMetadata as M, messages as N, defineSubagentTool as O, normalizeAgentDefinition as P, resolveThinkingLevel as Q, resolveAgentId as R, SubagentToolInherit as S, buildAgentRuntime as T, snapshot as U, runAgentPrompt as V, AgentCreateInput as W, parseAgentCreateInput as X, ThinkingLevelSchema as Y, resolveAgentModel as Z, SessionAgentMismatchError as _, AgentDefinitionInput as a, SubagentTool as b, BuildAgentRuntimeContext as c, PromptInput as d, PromptResponse as f, SandboxedAgentRuntime as g, SUBAGENT_TOOL as h, AgentDefinition as i, forceToolChoice as j, defineTool as k, DefineSubagentToolInput as l, RunAgentPromptOptions as m, AgentAssetInput as n, AgentRuntime as o, ResolvedAgentAssets as p, AgentModelIdSchema as q, AgentConfig as r, AgentSnapshot as s, Agent as t, ForcedToolChoice as u, SessionLifecycle as v, WebToolsOptions as w, SubagentToolDetails as x, SessionLifecycleContext as y, resolveAgentTools as z };
330
- //# sourceMappingURL=index-CwLz1Fhs.d.mts.map
330
+ //# sourceMappingURL=index-CAyshOQj.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CwLz1Fhs.d.mts","names":["h","ThinkingLevel","r","Model","z","AgentModelId","AgentModelIdSchema","ZodCustom","resolveAgentModel","Promise","modelId","ThinkingLevelSchema","ZodEnum","off","minimal","low","medium","high","xhigh","DEFAULT_THINKING_LEVEL","AgentCreateInputSchema","ZodString","ZodOptional","core","$strip","ZodObject","systemPrompt","model","thinkingLevel","AgentCreateInput","infer","parseAgentCreateInput","input","resolveThinkingLevel","level","a","c","i","l","n","o","s","t","DatabaseSync","Type","AgentTool","resolveMemoryRelativePath","memoryDir","inputPath","orderMemoryRelativePaths","relativePaths","listMemoryFilePaths","readMemoryFileContent","MemoryConfig","enabled","dir","memoryFile","userFile","archiveDir","dbFile","sessionsDir","memoryCharLimit","userCharLimit","archiveTocLimit","securityScan","loadMemoryConfig","Partial","overrides","Memory","Promise","tool","systemPromptInjection","close","DefaultMemoryOptions","MemoryCreateContext","agentId","sessionId","options","MemoryFactory","create","ctx","createDefaultMemory","NodeJS","ProcessEnv","env","MemoryStoragePort","Uint8Array","Buffer","listObjects","prefix","getObject","key","putObject","body","contentType","input","deleteObject","StorageBackedMemoryOptions","storage","seed","createStorageBackedMemory","SnapshotResult","block","warnings","buildMemorySnapshot","config","ArchiveHit","path","snippet","rank","SessionHit","session_file","line_no","role","ts","searchArchive","db","query","limit","searchSessions","reindexSessions","memoryToolParameters","TLiteral","TObject","TString","TUnion","TOptional","TNumber","TBoolean","action","content","oldText","newText","scope","full","createMemoryTool","_$_earendil_works_pi_agent_core0","c","AgentMessage","d","AgentTool","h","ThinkingLevel","l","AgentOptions","m","PiAgent","o","getModel","r","Model","u","AgentState","a","parseAgentCreateInput","AgentModelIdSchema","i","ThinkingLevelSchema","resolveAgentModel","n","AgentCreateInputSchema","resolveThinkingLevel","DEFAULT_THINKING_LEVEL","s","AgentModelId","t","AgentCreateInput","z","LlmUsageRecordInput","Api","McpAuthOptions","McpCallToolOptions","McpConnection","McpConnection$1","McpDefinition","McpDefinition$1","McpDefinitionInput","McpHttpTransport","McpServerOptions","McpStdioOptions","McpStdioTransport","McpTransport","connectMcpDefinition","connectMcpServer","connectMcpStdio","defineMcp","isMcp","ActionDefinition","McpCredentialContext","CredentialRunContext","OAuthTokenAdapter","ToolCredentialResolver","DefaultMemoryOptions","Memory","MemoryFactory","AgentWorkspaceRoots","RuntimeHooks","RuntimeProvider","Sandbox","SandboxDefinition","SandboxDefinitionInput","SandboxMode","SkillDefinition","loadAssetManifest","PromptLlmRunOptions","AgentConfig","Omit","systemPrompt","model","thinkingLevel","messages","tools","AgentRuntime","Readonly","pi","AgentSnapshot","state","createAgent","config","prompt","Promise","runtime","message","snapshot","errorMessage","defineTool","T","tool","AgentMcpTool","WebToolsOptions","search","fetch","AgentDefinitionAuthorInput","Array","slug","name","description","runtimeHooks","skills","sandbox","memory","web","AgentDefinitionInput","AgentDefinition","PromptInput","sessionId","subscriptionId","context","SessionLifecycleContext","agentId","SessionLifecycle","beforeRuntime","ctx","afterRuntime","RunAgentPromptOptions","stepId","workspacesRoot","agentRoot","sessionRoot","workspaceRoot","mode","runtimeProvider","vmRuntimeProvider","memoryFactory","credentials","oauthAdapter","hostTools","tracing","trigger","gatewayAttachmentId","gatewayAttachmentKey","agentKey","skipAgentSessionSpan","invocationRoute","sessionLifecycle","PromptResponse","error","canceled","BuildAgentRuntimeContext","SandboxedAgentRuntime","mcpConnections","takeCredentialError","buildAgentRuntime","def","runPrompt","agentSlug","Agent","buildRuntime","input","defineAgent","resolveAgentId","explicitId","SUBAGENT_TOOL","SubagentToolInherit","workspace","SubagentToolMetadata","agent","inherit","SubagentToolDetails","SubagentTool","DefineSubagentToolInput","label","parameters","toMessage","params","getSubagentToolMetadata","defineSubagentTool","runAgentPrompt","options","SessionAgentMismatchError","Error","constructor","prepareAgentSession","ranByUserId","normalizeAgentDefinition","appRoot","RunLlmHooks","onUsage","usage","runLlm","opts","hooks","ForcedToolChoice","type","function","forceToolChoice","api","toolName","resolveAgentWorkspaceRoot","AgentAssetInput","skillKeys","ResolvedAgentAssets","resolveAgentAssets","ResolvedAgentTools","ResolveAgentToolsOptions","mcpCredentialContext","resolveAgentTools","resolver"],"sources":["../../agent/dist/schemas-BjkCaevQ.d.mts","../../memory/dist/index.d.mts","../../agent/dist/index.d.mts"],"mappings":";;;;;;;;;;;KAKKK,YAAAA;AAAAA,cACSC,kBAAAA,EAAoBF,CAAAA,CAAEG,SAAS;;iBAE5BC,iBAAAA,CAAkBE,OAAAA,EAASL,YAAAA,GAAeI,OAAAA,CAAQN,KAAAA;AAAAA;AAAAA,cAGrDQ,mBAAAA,EAAqBP,CAAAA,CAAEQ,OAAO;EAC1CC,GAAAA;EACAC,OAAAA;EACAC,GAAAA;EACAC,MAAAA;EACAC,IAAAA;EACAC,KAAAA;AAAAA;AAAAA,cAEYC,sBAAAA;AAb+B;AAAA,cAe/BC,sBAAAA,EAAwBhB,CAAAA,CAAEqB,SAAAA;EACtCC,YA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;;AAAA,iBAoN9C0F,eAAAA,CAAgBC,GAAAA,EAAK7J,GAAAA,EAAK8J,QAAAA,WAAmBL,gBAAgB;AAAA;;;AAnNd;AAAA;;;;AACX;AAAA;;iBA+NpCM,yBAAAA,CAA0B/E,OAAAA,UAAiBJ,SAAAA,UAAmB+D,OAAAA;EAC7EpD,cAAAA;EACAC,SAAAA;EACAC,WAAAA,WA/NyDhC;EAgOzDiC,aAAAA;EACApB,OAAAA,GAAUxC,iBAAAA;EACVuC,MAAAA,GAASpC,eAAAA;AAAAA,IACPkB,OAAAA,CAAQzB,mBAAAA;AAAAA;AAAAA,KAGPsI,eAAAA;EACHC,SAAAA;EACA7C,SAAAA;EACA8B,OAAAA;AAAAA;AAAAA,KAEGgB,mBAAAA;EACH7F,MAAAA,GAASpC,eAAe;AAAA;AAxOS;AAAA,iBA2OlBkI,kBAAAA,CAAmB5C,KAAAA,EAAOyC,eAAAA,GAAkBE,mBAAmB;AAAA;AAAA,KAG3EE,kBAAAA;EACH1H,KAAAA,EAAOvE,SAAAA;EACP4I,cAAAA,EAAgB3G,aAAe;AAAA;AAAA,KAE5BiK,wBAAAA;EACHC,oBAAAA,GAAuBnJ,oBAAoB;AAAA;AAAA,iBAE5BoJ,iBAAAA,CAAkB7H,KAAAA,EAAOsB,KAAAA,CAAM9C,gBAAAA,GAAmB/C,SAAAA,GAAYwF,YAAAA,GAAe6G,QAAAA,EAAUlJ,sBAAAA,EAAwBqH,OAAAA,GAAU0B,wBAAAA,GAA2BlH,OAAAA,CAAQiH,kBAAAA"}
1
+ {"version":3,"file":"index-CAyshOQj.d.mts","names":["h","ThinkingLevel","r","Model","z","AgentModelId","AgentModelIdSchema","ZodCustom","resolveAgentModel","Promise","modelId","ThinkingLevelSchema","ZodEnum","off","minimal","low","medium","high","xhigh","DEFAULT_THINKING_LEVEL","AgentCreateInputSchema","ZodString","ZodOptional","core","$strip","ZodObject","systemPrompt","model","thinkingLevel","AgentCreateInput","infer","parseAgentCreateInput","input","resolveThinkingLevel","level","a","c","i","l","n","o","s","t","DatabaseSync","Type","AgentTool","resolveMemoryRelativePath","memoryDir","inputPath","orderMemoryRelativePaths","relativePaths","listMemoryFilePaths","readMemoryFileContent","MemoryConfig","enabled","dir","memoryFile","userFile","archiveDir","dbFile","sessionsDir","memoryCharLimit","userCharLimit","archiveTocLimit","securityScan","loadMemoryConfig","Partial","overrides","Memory","Promise","tool","systemPromptInjection","close","DefaultMemoryOptions","MemoryCreateContext","agentId","sessionId","options","MemoryFactory","create","ctx","createDefaultMemory","NodeJS","ProcessEnv","env","MemoryStoragePort","Uint8Array","Buffer","listObjects","prefix","getObject","key","putObject","body","contentType","input","deleteObject","StorageBackedMemoryOptions","storage","seed","createStorageBackedMemory","SnapshotResult","block","warnings","buildMemorySnapshot","config","ArchiveHit","path","snippet","rank","SessionHit","session_file","line_no","role","ts","searchArchive","db","query","limit","searchSessions","reindexSessions","memoryToolParameters","TLiteral","TObject","TString","TUnion","TOptional","TNumber","TBoolean","action","content","oldText","newText","scope","full","createMemoryTool","_$_earendil_works_pi_agent_core0","c","AgentMessage","d","AgentTool","h","ThinkingLevel","l","AgentOptions","m","PiAgent","o","getModel","r","Model","u","AgentState","a","parseAgentCreateInput","AgentModelIdSchema","i","ThinkingLevelSchema","resolveAgentModel","n","AgentCreateInputSchema","resolveThinkingLevel","DEFAULT_THINKING_LEVEL","s","AgentModelId","t","AgentCreateInput","z","LlmUsageRecordInput","Api","McpAuthOptions","McpCallToolOptions","McpConnection","McpConnection$1","McpDefinition","McpDefinition$1","McpDefinitionInput","McpHttpTransport","McpServerOptions","McpStdioOptions","McpStdioTransport","McpTransport","connectMcpDefinition","connectMcpServer","connectMcpStdio","defineMcp","isMcp","ActionDefinition","McpCredentialContext","CredentialRunContext","OAuthTokenAdapter","ToolCredentialResolver","DefaultMemoryOptions","Memory","MemoryFactory","AgentWorkspaceRoots","RuntimeHooks","RuntimeProvider","Sandbox","SandboxDefinition","SandboxDefinitionInput","SandboxMode","SkillDefinition","loadAssetManifest","PromptLlmRunOptions","AgentConfig","Omit","systemPrompt","model","thinkingLevel","messages","tools","AgentRuntime","Readonly","pi","AgentSnapshot","state","createAgent","config","prompt","Promise","runtime","message","snapshot","errorMessage","defineTool","T","tool","AgentMcpTool","WebToolsOptions","search","fetch","AgentDefinitionAuthorInput","Array","slug","name","description","runtimeHooks","skills","sandbox","memory","web","AgentDefinitionInput","AgentDefinition","PromptInput","sessionId","subscriptionId","context","SessionLifecycleContext","agentId","SessionLifecycle","beforeRuntime","ctx","afterRuntime","RunAgentPromptOptions","stepId","workspacesRoot","agentRoot","sessionRoot","workspaceRoot","mode","runtimeProvider","vmRuntimeProvider","memoryFactory","credentials","oauthAdapter","hostTools","tracing","trigger","gatewayAttachmentId","gatewayAttachmentKey","agentKey","skipAgentSessionSpan","invocationRoute","sessionLifecycle","PromptResponse","error","canceled","BuildAgentRuntimeContext","SandboxedAgentRuntime","mcpConnections","takeCredentialError","buildAgentRuntime","def","runPrompt","agentSlug","Agent","buildRuntime","input","defineAgent","resolveAgentId","explicitId","SUBAGENT_TOOL","SubagentToolInherit","workspace","SubagentToolMetadata","agent","inherit","SubagentToolDetails","SubagentTool","DefineSubagentToolInput","label","parameters","toMessage","params","getSubagentToolMetadata","defineSubagentTool","runAgentPrompt","options","SessionAgentMismatchError","Error","constructor","prepareAgentSession","ranByUserId","normalizeAgentDefinition","appRoot","RunLlmHooks","onUsage","usage","runLlm","opts","hooks","ForcedToolChoice","type","function","forceToolChoice","api","toolName","resolveAgentWorkspaceRoot","AgentAssetInput","skillKeys","ResolvedAgentAssets","resolveAgentAssets","ResolvedAgentTools","ResolveAgentToolsOptions","mcpCredentialContext","resolveAgentTools","resolver"],"sources":["../../agent/dist/schemas-BjkCaevQ.d.mts","../../memory/dist/index.d.mts","../../agent/dist/index.d.mts"],"mappings":";;;;;;;;;;;KAKKK,YAAAA;AAAAA,cACSC,kBAAAA,EAAoBF,CAAAA,CAAEG,SAAS;;iBAE5BC,iBAAAA,C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lH,OAAAA,CAAQiH,kBAAAA"}
@@ -1,4 +1,4 @@
1
- import { a as CredentialConsumer, s as CredentialList, y as ResolvedCredentials } from "./index-WT4ULMiw.mjs";
1
+ import { a as CredentialConsumer, s as CredentialList, y as ResolvedCredentials } from "./index-B1YicUCL.mjs";
2
2
  import { o as AgentTool, s as AgentToolResult } from "./index-ClGiGBy7.mjs";
3
3
  import { z } from "zod";
4
4
 
@@ -91,7 +91,8 @@ declare function connectMcpServer(name: string, options: McpServerOptions): Prom
91
91
  declare function connectMcpStdio(name: string, options: McpStdioOptions): Promise<McpConnection>; //#endregion
92
92
  //#region src/connect-definition.d.ts
93
93
  declare function connectMcpDefinition<TCredentials = Record<string, never>>(def: McpDefinition<TCredentials>, auth?: McpAuthOptions): Promise<McpConnection>; //#endregion
94
- //#region src/adapter.d.ts
94
+ //#region src/oauth-scopes.d.ts
95
+ /** Union OAuth scope names from metadata sources, preserving first-seen order. */
95
96
  //#endregion
96
97
  //#region ../credentials/dist/index.d.mts
97
98
  type ToolCredentialResolver = {
@@ -100,4 +101,4 @@ type ToolCredentialResolver = {
100
101
  //#region src/context.d.ts
101
102
  //#endregion
102
103
  export { LlmUsageRecordInput as _, McpDefinition as a, McpServerOptions as c, McpTransport as d, connectMcpDefinition as f, isMcp as g, defineMcp as h, McpConnection as i, McpStdioOptions as l, connectMcpStdio as m, McpAuthOptions as n, McpDefinitionInput as o, connectMcpServer as p, McpCallToolOptions as r, McpHttpTransport as s, ToolCredentialResolver as t, McpStdioTransport as u };
103
- //# sourceMappingURL=index-Cq2F2XdS.d.mts.map
104
+ //# sourceMappingURL=index-CGHk6JeR.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Cq2F2XdS.d.mts","names":["_$drizzle_orm_node_postgres0","MigrationConfig","MigrationMeta","TracingSink","AgentTriggerType","CredentialAuthKind","CredentialScopeType","HistoryAgentSessionDetail","HistoryRun","HistoryRunKind","HistoryRunStatus","HistoryWorkflowRunDetail","RunSourceKind","TriggerAssignment","TriggerRunSummary","TriggerStatus","WorkflowEventType","WorkspaceTriggerDetail","Pool","DEFAULT_DATABASE_URL","runWithTenantScope","T","Promise","tenantId","fn","getServerTenantScopeId","DEFAULT_PROJECT_ID","runWithProjectScope","projectId","getBoundProjectScopeId","getProjectScopeId","PostgresConnectionConfig","host","port","database","user","password","ssl","qualifyConnectionUser","NodeJS","ProcessEnv","env","buildPostgresUrl","config","parsePostgresUrl","url","resolvePostgresConfigFromEnv","resolvePostgresUrlFromEnv","resolveProjectDatabaseUrlFromEnv","resolveDatabaseUrlFromEnv","closeDatabase","StoredRunSourceKind$1","agentSessions","_$drizzle_orm_pg_core0","PgColumn","Date","PgTableWithColumns","name","schema","columns","id","tableName","dataType","columnType","data","driverParam","notNull","hasDefault","isPrimaryKey","isAutoincrement","hasRuntimeDefault","enumValues","baseColumn","identity","generated","agentId","sourceKind","$type","sourceId","parentSpanId","ranByUserId","title","canceledAt","totalDurationMs","liveMessage","createdAt","updatedAt","deletedAt","dialect","UsageRunKind","WorkflowRunStatus","WorkflowRunTrigger","StoredRunSourceKind","workflowRuns","workflowSlug","attachmentId","subscriptionId","triggerRunId","parentWorkflowRunId","status","trigger","triggeredAt","startedAt","finishedAt","input","output","error","WorkflowHookStatus","workflowHooks","hookId","runId","token","correlationId","payload","resumedAt","CredentialAssignmentTargetType","credentialAssignments","targetType","targetKey","consumerId","credentialSlug","instanceId","JobKind","JobStatus","JobTrigger","TraceSpanKind","TraceSpanStatus","traceSpans","traceId","kind","refId","metadata","TraceLogLevel","TraceLogSource","traceLogs","spanId","seq","level","message","source","agents","slug","description","route","moduleFile","model","systemPrompt","toolCount","credentialCount","appSlugs","registeredAt","agentEvents","sessionId","eventType","StoredTriggerKind","StoredTriggerOrigin","StoredTriggerLifecycleStatus","StoredTriggerOverviewStatus","StoredTriggerLifecycle","maxExecutions","until","executionCount","StoredWebhookTriggerConfig","Record","endpoint","requestSchema","filterSchema","StoredPollTriggerConfig","code","StoredTriggerConfig","triggers","origin","schedule","nextRunAt","enabled","lifecycle","createdBySessionId","triggerHash","overviewMarkdown","overviewHash","overviewModel","overviewStatus","overviewGeneratedAt","StoredTriggerTargetKind","triggerAttachments","triggerId","targetKind","agentSlug","prompt","TriggerRunType","TriggerRunOutcome","TriggerRunReason","triggerRuns","sourcePath","triggerType","outcome","reason","detail","workflowEvents","type","credentialInstances","appSlug","scopeType","scopeId","label","isDefault","authKind","ciphertext","connectionId","sharedConnectionId","grantedScopes","lastUsedAt","SlackGatewayMode","StoredGatewaySource","mode","credentialKey","channelIds","subscribeOnMention","channelName","channelKind","gatewayAttachments","platform","teamId","channelId","gatewayAttachmentKeyForChannel","gatewayThreadSessions","threadId","skills","workflows","subscribable","workflowSubscriptions","userId","resourceActivityKinds","ResourceActivityKind","resourceActivity","resourceKind","resourceId","lastOpenedAt","AgentRow","$inferSelect","listActiveAgents","projectIds","options","selectAgentBySlug","selectActiveAgentsByIds","ids","selectActiveAgentById","resolveAgentProjectId","AgentSessionRow","AgentSessionSourceFilter","selectAgentSessionById","addAgentSessionDuration","deltaMs","clearAgentSessionCancellation","AgentEventRow","TriggerRow","UpdateTriggerOverviewValues","markdown","hash","selectTriggerBySlug","selectTriggerById","setTriggerOverviewGenerating","now","updateTriggerOverview","values","selectWebhookTriggers","disableAllTriggerSchedules","disableTriggerSchedulesNotInSlugs","triggerSlugs","listEnabledScheduledTriggers","claimDueTriggers","resolveNextRunAt","limit","claimDueTriggersForOrg","upsertTriggerScheduleFields","triggerSlug","listTriggersByIds","TriggerAttachmentRow","getTriggerAttachmentBySlug","listActiveTriggerAttachments","listAttachmentsByTriggerIds","triggerIds","selectEphemeralTriggerAttachmentsByAgentSlug","selectTriggerAttachmentsByAgentSlug","selectEphemeralTriggerAttachments","selectWebhookTriggerAttachments","TriggerRunAgentSessionSummaryInput","triggerRunSummaryFromRow","TriggerRunRow","WorkflowRunRow","row","triggerRunRecordFromRow","attachmentSlug","WorkflowEventRow","AppendWorkflowEventValues","listStepCompletedEvents","TraceLogRow","TraceSpanRow","createDatabaseTracingSink","flushNow","TraceTriggerSummary","TraceGatewaySummary","gatewayAttachmentId","gatewayAttachmentKey","TraceResponse","gateway","spans","logs","getTraceForWorkflowRun","workflowRunId","getTraceForTriggerRun","getTraceForAgentSession","workflowRunSummaryFromRow","workflowRunRecordFromRow","triggerRunDetailFromRow","workflowStepRunFromEvent","actionKey","completedAt","traceResponseToJson","trace","selectWorkflowRunById","resolveWorkflowRunProjectId","listWorkflowRunsByWorkflowSlug","selectWorkflowRunForWorkflow","listWorkflowRunsPaginated","ReturnType","cursor","items","nextCursor","WorkflowHookRow","InsertWorkflowHookValues","requeueExpiredLeases","GatewayAttachmentRow","GatewayChannelConflictError","Error","ownerProjectId","constructor","getActiveOrgGatewayAttachmentByChannel","getActiveOrgGatewayAttachmentByTeamAndChannel","getActiveGatewayAttachmentByChannel","listActiveGatewayAttachments","ActiveGatewayBinding","listActiveOrgGatewayBindingsByPlatform","listActiveGatewayAttachmentsByAgentSlug","softDeleteGatewayAttachmentsForAgentPlatformTeam","listActiveGatewayAttachmentsByPlatform","softDeleteGatewayAttachmentByChannel","upsertGatewayAttachmentByChannel","getGatewayAttachmentBySlug","GatewayThreadSessionRow","selectGatewayThreadSessionByThreadId","WorkflowRow","listActiveWorkflows","selectActiveWorkflowBySlug","selectActiveWorkflowsByIds","selectActiveWorkflowById","SkillRow","listActiveSkills","selectActiveSkillsByIds","selectActiveSkillById","WorkflowSubscriptionRow","InsertWorkflowSubscriptionValues","UpdateWorkflowSubscriptionValues","selectWorkflowSubscriptionById","selectWorkflowSubscriptionByWorkflowAndUser","listWorkflowSubscriptionsByWorkflowSlug","listEnabledWorkflowSubscriptionsByWorkflowSlug","insertWorkflowSubscription","updateWorkflowSubscriptionById","deleteWorkflowSubscriptionById","ResourceActivityRow","TouchResourceActivityInput","touchResourceActivity","listRecentResourceActivity","selectWorkflowLastRunAtByIds","Map","workflowIds","selectAgentLastRunAtByIds","agentIds","ProjectResourceCounts","agentCount","workflowCount","skillCount","selectProjectResourceCounts","ListHistoryRunsOptions","HistoryRunCore","Omit","buildHistoryWorkflowRunDetail","buildHistoryAgentSessionDetail","listHistoryRuns","findHistoryRunCore","CredentialInstanceRow","InsertCredentialInstanceValues","listAllCredentialInstances","listCredentialInstancesByConnectionId","selectCredentialInstanceById","listCredentialInstancesByScope","selectCredentialInstancesForScope","upsertCredentialInstance","touchCredentialInstanceLastUsed","deleteCredentialInstanceById","clearCredentialInstanceDefaults","exceptId","CredentialAssignmentRow","UpsertCredentialAssignmentValues","listCredentialAssignmentsByTarget","selectCredentialAssignmentById","upsertCredentialAssignment","deleteCredentialAssignmentById","listRecentWorkflowStepConsumers","runLimit","listDistinctAssignmentConsumerIds","createPgDb","NodePgDatabase","pool","usageRecords","runKind","quantity","unit","amount","jobs","targetId","scheduledAt","attempt","maxAttempts","leasedBy","leaseExpiresAt","$client","Database","DatabaseDialect","PgPool","PgDatabase","SqliteDatabase","AppDatabase","DatabaseHandle","db","searchPath","close","InitDatabaseOptions","migrate","migrationsFolder","max","closeAllProjectDatabasePools","isDatabaseInitialized","getDatabaseHandle","initDatabase","RunWithProjectDatabaseOptions","runWithProjectDatabase","ConnectionOptions","PgConnectionOptions","SqliteConnectionOptions","createPgConnection","PostgresCancelHandler","PostgresCancelChannel","publishCancel","subscribeCancel","handler","createPostgresCancelChannel","connectionString","channel","createSqliteConnection","createConnection","resolveSqlitePath","inferDialect","override","adaptPgMigrationsForSearchPath","migrations","loadMigrations","embedded","migratePgDatabase","resolveMigrationsFolder","runMigrations","handle","resolveMigrationsSchema","primarySearchPathSchema","resolveSearchPath","appendSearchPathToUrl","cancelWorkflowRun","cancelAgentSession","RunSource","runSource","sourceFromSpan","span","resolveRunSourceFromTraceContext","DiscoveredAgentRecord","AgentRegistryEntry","MESSAGE_EVENT_TYPE","syncAgentRegistry","records","getAgentByRoute","AgentSession","createSession","getSession","touchSession","setSessionTitle","nextSeq","appendEvent","listMessageEvents","countMessageEvents","AgentEventRecord","listSessionEvents","setSessionLiveMessage","clearLiveMessage","getSessionLiveMessage","LlmUsageRecordInput","recordLlmUsageFromAssistantMessage","usage","failAgentSession","AgentSessionStatus$1","agentSessionSummaryFromParts","messageCount","ranByUserName","gatewayPlatform","agentSessionRecordFromParts","gatewaySessionDetailFromParts","agentEventFromRow","AgentSessionStatus","AgentSessionSource","listAgentSessionsPaginated","resolveUserName","AgentSessionDetailInclude","buildAgentSessionDetail","include","session","messages","events","buildAgentSessionChatState","sinceSeq","live","DiscoveredSkillRecord","SkillRegistryEntry","syncSkillRegistry","StoredTriggerSourceSlugFields","key","StoredTriggerSource","storedTriggerSourceSlug","normalizeStoredTriggerSource","TriggerAttachmentRegistryEntry","DiscoveredTriggerAttachmentRecord","sourceHash","syncTriggerAttachmentRegistry","CreateAgentAttachmentExecutionInput","createAgentAttachmentExecution","getTriggerRunForAgentSession","RecordTriggerFireInput","recordTriggerFire","WorkspaceTriggerRecord","webhookEndpoint","listWorkspaceTriggers","getWorkspaceTrigger","listWorkspaceTriggerRunRows","triggerStatusFromRow","resolveTriggerAssignments","rows","triggerScheduleFromSource","triggerSourceGroupKeyFromSource","storedTriggerSourceFromTrigger","storedTriggerSourceFromRow","EPHEMERAL_TRIGGER_MODULE_FILE","UpsertEphemeralTriggerInput","Extract","upsertEphemeralTrigger","deleteEphemeralTrigger","isEphemeralTriggerActive","recordEphemeralTriggerExecution","selectActiveEphemeralScheduledTriggerSlugs","selectActiveEphemeralScheduledAttachmentSlugs","selectActiveEphemeralCronAttachmentSlugs","listAgentTriggers","getOrCreateGatewayThreadSession","existingSessionId","DiscoveredWorkflowRecord","WorkflowRegistryEntry","syncWorkflowRegistry","WorkflowSubscriptionProfile","getWorkflowSubscription","listCredentialInstancesForAssignment","CreateWorkflowRunInput","CreateAttachmentExecutionInput","Exclude","createWorkflowRun","createPendingWorkflowRun","markWorkflowRunRunning","markWorkflowRunSleeping","markWorkflowRunWaitingHook","completeWorkflowRun","failWorkflowRun","recordWorkflowLlmUsage","finalizeCanceledWorkflowRun","createAttachmentExecution","createPendingAttachmentExecution","markAttachmentExecutionRunning","WorkflowRunDetailInclude","buildWorkflowRunDetail","run","steps","WorkflowEventRecord","EventLog","append","event","listReplay","createDatabaseEventLog","WorkflowHookRecord","HookStore","create","getByToken","markResumed","createDatabaseHookStore","TriggerRunDetailInclude","listTriggerRunsPaginated","buildTriggerRunDetail","Array","encryptCredentialPayload","plaintext","decryptCredentialPayload","setCredentialInstanceValue","value","OAuthCredentialTargets","projectNamesById","organization","ensureOAuthCredentialInstance","accountLabel","externalId","userLabel","targets","credentialInstanceId","ensureKeystrokeCredentialInstance","projectName","EnqueueJobInput","ClaimedJob","JobSnapshot","enqueueJob","claimNextJob","workerId","markJobComplete","jobId","markJobFailed","scheduleJobRetry","delayMs","getJobByRunId","Client","AgentTool","AgentToolResult","Tool","MCP","McpCallToolOptions","AbortSignal","signal","McpTransport","McpAuthOptions","Record","headers","env","searchParams","McpHttpTransport","URL","type","url","transport","McpStdioTransport","command","args","cwd","stderr","McpDeclaredTool","name","title","description","inputSchema","McpDefinitionInput","TCredentials","fetch","RequestInit","key","credentials","auth","resolved","declaredTools","clientName","clientVersion","requestInit","McpDefinition","McpServerOptions","McpConnection","Promise","tools","callTool","toolName","options","close","McpStdioOptions","defineMcp","def","isMcp","value","connectMcpServer","connectMcpStdio","connectMcpDefinition","JsonSchemaObject","createToolName","serverName","normalizeInputSchema","schema","mcpToolsToAgentTools","client","S","CredentialAssignmentRow","p","CredentialInstanceRow","CREDENTIAL_SCOPE_TYPES","CredentialAssignmentSet","CredentialAssignmentTargetType","CredentialConsumer","CredentialConsumer$1","CredentialInput","CredentialList","CredentialRunContext","CredentialRunContext$1","CredentialScopeType","CredentialScopeType$1","CredentialSelectionOption","CredentialSelectionOption$1","OAuthAccessTokenRefreshParams","OAuthAccessTokenRefreshResult","OAuthAccessTokenRefresher","OAuthTokenAdapter","OAuthTokenAdapter$1","OAuthTokenRefreshRegistry","OAuthTokenRefreshRegistry$1","ResolvedCredentials","MCP","McpConnection","McpDefinition","McpDefinition$1","McpDefinitionInput","AgentTool","z","CredentialToolErrorCapture","tools","takeCredentialError","captureCredentialToolErrors","selectAssignedInstanceId","assignments","consumerId","credentialSlug","buildAssignmentSet","rows","loadCredentialAssignments","Promise","targetType","targetKey","options","withCredentialAssignments","context","ResolveKeystrokeInstanceIdResult","instanceId","scopeType","scopeId","ResolveKeystrokeInstanceIdOptions","ReadonlyArray","app","scopes","assignmentTarget","type","key","consumer","resolveKeystrokeInstanceId","ResolveCredentialRefOptions","ref","userId","canAccess","row","ResolveCredentialRefResult","error","status","resolveCredentialRef","canAssignCredentialInstance","projectId","canManageCredentialInstance","credentialScopePrefix","formatCredentialRef","slug","formatCredentialRefSuggestion","appSlug","ParsedCredentialRef","kind","id","parseCredentialRef","WorkflowSubscriptionProfile","workflowKey","enabled","CredentialRunContextInput","Record","Partial","subscription","orgId","credentialSelection","request","ToolCredentialResolver","T","resolve","requirements","buildCredentialRunContext","input","buildWorkflowRunContext","actor","CredentialBackend","ZodType","resolveApiKey","schema","getOAuthAccessToken","connectionId","accessToken","CreateLocalCredentialBackendOptions","_$_keystrokehq_shared0","tokenRefresh","CreatePlatformCredentialBackendOptions","platformUrl","workerToken","CreateCredentialResolverOptions","credentialBackend","oauthAdapter","CredentialResolver","createCredentialResolver","ResolveCredentialRequirementsOptions","resolveCredentialRequirements","ResolvedMcpTools","connection","resolveMcpTools","TCredentials","def","resolver","McpInput","Omit","defineMcp","credentials","auth","TRequirements","TResolved","NonNullable","ReturnType","resolved","parseResolvedCredentials","ResolveActionCredentialsOptions","resolveCredentials","contextOverride","resolveActionCredentials","MissingCredentialsError","Error","code","chainAttempted","constructor","NeedsSelectionError","OAuthNotConfiguredError","message","CredentialAccessDeniedError","CredentialError","isCredentialError","credentialScopeMatchesContext","formatCredentialErrorMessage","orgSlug","webUrl","connect","AgentConnectContext","resolveAgentConnectContext","stubOAuthTokenAdapter","createOAuthTokenRefreshRegistry","createLocalCredentialBackend","createPlatformCredentialBackend","isWorkerRuntime","NodeJS","ProcessEnv","env","createCredentialBackend","setProjectCredentialBackend","backend","getProjectCredentialBackend","createOAuthTokenAdapterFromBackend"],"sources":["../../database/dist/index.d.mts","../../mcp/dist/index.d.mts","../../credentials/dist/index.d.mts"],"mappings":";;;;;;;KAyqRKwf,mBAAAA;EACH5S,KAAAA;EACAqN,QAAAA;EACAE,MAAAA;EACAhS,QAAAA,EAAUgC,MAAM;AAAA;;;;cCxqRJie,GAAAA;AAAAA,KACTC,kBAAAA;EACHE,MAAAA,GAASD,WAAW;AAAA;AAAA,KAEjBE,YAAAA;AAAAA,KACAC,cAAAA;EACHE,OAAAA,GAAUD,MAAAA;EACVE,GAAAA,GAAMF,MAAAA,kBDiqRNvgB;EChqRA0gB,YAAAA,GAAeH,MAAAA;AAAAA;AAAAA,KAEZI,gBAAAA;EACHE,IAAAA;EACAC,GAAAA,WAAcF,GAAAA;EACdG,SAAAA,GAAYV,YAAY;AAAA;AAAA,KAErBW,iBAAAA;EACHH,IAAAA;EACAI,OAAAA;EACAC,IAAAA;EACAC,GAAAA;EACAC,MAAAA;AAAAA;AAAAA,KAEGC,eAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,WAAAA;EACAC,WAAAA,GAAclB,MAAM;AAAA;AAAA,KAEjBmB,kBAAAA,gBAAkCnB,MAAAA;EACrCuB,GAAAA;EACAR,IAAAA;EACAP,SAAAA,EAAWJ,gBAAAA,GAAmBK,iBAAAA;EAC9Be,WAAAA;EACAC,IAAAA,IAAQC,QAAAA,EAAUN,YAAAA,KAAiBrB,cAAAA,EA1B7BC;EA2BN2B,aAAAA,YAAyBb,eAAAA;EACzBc,UAAAA;EACAC,aAAAA;EACAR,KAAAA,UAAeA,KAAAA;EACfS,WAAAA,GAAcR,WAAAA;AAAAA;AAAAA,KAEXS,aAAAA,gBAA6B/B,MAAAA,mBAAyBmB,kBAAAA,CAAmBC,YAAAA;EAAAA,UAClE1B,GAAAA;AAAAA;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F,YAAAA,EAAcF,CAAAA,EAAGlC,QAAAA,EAAUpD,kBAAAA,GAAuBmC,OAAAA,CAAQnB,mBAAAA,CAAoBsE,CAAAA;AAAAA;AAAAA"}
1
+ {"version":3,"file":"index-CGHk6JeR.d.mts","names":["_$drizzle_orm_node_postgres0","MigrationConfig","MigrationMeta","TracingSink","AgentTriggerType","CredentialAuthKind","CredentialScopeType","HistoryAgentSessionDetail","HistoryRun","HistoryRunKind","HistoryRunStatus","HistoryWorkflowRunDetail","RunSourceKind","TriggerAssignment","TriggerRunSummary","TriggerStatus","WorkflowEventType","WorkspaceTriggerDetail","Pool","DEFAULT_DATABASE_URL","runWithTenantScope","T","Promise","tenantId","fn","getServerTenantScopeId","DEFAULT_PROJECT_ID","runWithProjectScope","projectId","getBoundProjectScopeId","getProjectScopeId","PostgresConnectionConfig","host","port","database","user","password","ssl","qualifyConnectionUser","NodeJS","ProcessEnv","env","buildPostgresUrl","config","parsePostgresUrl","url","resolvePostgresConfigFromEnv","resolvePostgresUrlFromEnv","resolveProjectDatabaseUrlFromEnv","resolveDatabaseUrlFromEnv","closeDatabase","StoredRunSourceKind$1","agentSessions","_$drizzle_orm_pg_core0","PgColumn","Date","PgTableWithColumns","name","schema","columns","id","tableName","dataType","columnType","data","driverParam","notNull","hasDefault","isPrimaryKey","isAutoincrement","hasRuntimeDefault","enumValues","baseColumn","identity","generated","agentId","sourceKind","$type","sourceId","parentSpanId","ranByUserId","title","canceledAt","totalDurationMs","liveMessage","createdAt","updatedAt","deletedAt","dialect","UsageRunKind","WorkflowRunStatus","WorkflowRunTrigger","StoredRunSourceKind","workflowRuns","workflowSlug","attachmentId","subscriptionId","triggerRunId","parentWorkflowRunId","status","trigger","triggeredAt","startedAt","finishedAt","input","output","error","WorkflowHookStatus","workflowHooks","hookId","runId","token","correlationId","payload","resumedAt","CredentialAssignmentTargetType","credentialAssignments","targetType","targetKey","consumerId","credentialSlug","instanceId","JobKind","JobStatus","JobTrigger","TraceSpanKind","TraceSpanStatus","traceSpans","traceId","kind","refId","metadata","TraceLogLevel","TraceLogSource","traceLogs","spanId","seq","level","message","source","agents","slug","description","route","moduleFile","model","systemPrompt","toolCount","credentialCount","appSlugs","registeredAt","agentEvents","sessionId","eventType","StoredTriggerKind","StoredTriggerOrigin","StoredTriggerLifecycleStatus","StoredTriggerOverviewStatus","StoredTriggerLifecycle","maxExecutions","until","executionCount","StoredWebhookTriggerConfig","Record","endpoint","requestSchema","filterSchema","StoredPollTriggerConfig","code","StoredTriggerConfig","triggers","origin","schedule","nextRunAt","enabled","lifecycle","createdBySessionId","triggerHash","overviewMarkdown","overviewHash","overviewModel","overviewStatus","overviewGeneratedAt","StoredTriggerTargetKind","triggerAttachments","triggerId","targetKind","agentSlug","prompt","TriggerRunType","TriggerRunOutcome","TriggerRunReason","triggerRuns","sourcePath","triggerType","outcome","reason","detail","workflowEvents","type","credentialInstances","appSlug","scopeType","scopeId","label","isDefault","authKind","ciphertext","connectionId","sharedConnectionId","grantedScopes","lastUsedAt","SlackGatewayMode","StoredGatewaySource","mode","credentialKey","channelIds","subscribeOnMention","channelName","channelKind","gatewayAttachments","platform","teamId","channelId","gatewayAttachmentKeyForChannel","gatewayThreadSessions","threadId","skills","workflows","subscribable","workflowSubscriptions","userId","resourceActivityKinds","ResourceActivityKind","resourceActivity","resourceKind","resourceId","lastOpenedAt","AgentRow","$inferSelect","listActiveAgents","projectIds","options","selectAgentBySlug","selectActiveAgentsByIds","ids","selectActiveAgentById","resolveAgentProjectId","AgentSessionRow","AgentSessionSourceFilter","selectAgentSessionById","addAgentSessionDuration","deltaMs","clearAgentSessionCancellation","AgentEventRow","TriggerRow","UpdateTriggerOverviewValues","markdown","hash","selectTriggerBySlug","selectTriggerById","setTriggerOverviewGenerating","now","updateTriggerOverview","values","selectWebhookTriggers","disableAllTriggerSchedules","disableTriggerSchedulesNotInSlugs","triggerSlugs","listEnabledScheduledTriggers","claimDueTriggers","resolveNextRunAt","limit","claimDueTriggersForOrg","upsertTriggerScheduleFields","triggerSlug","listTriggersByIds","TriggerAttachmentRow","getTriggerAttachmentBySlug","listActiveTriggerAttachments","listAttachmentsByTriggerIds","triggerIds","selectEphemeralTriggerAttachmentsByAgentSlug","selectTriggerAttachmentsByAgentSlug","selectEphemeralTriggerAttachments","selectWebhookTriggerAttachments","TriggerRunAgentSessionSummaryInput","triggerRunSummaryFromRow","TriggerRunRow","WorkflowRunRow","row","triggerRunRecordFromRow","attachmentSlug","WorkflowEventRow","AppendWorkflowEventValues","listStepCompletedEvents","TraceLogRow","TraceSpanRow","createDatabaseTracingSink","flushNow","TraceTriggerSummary","TraceGatewaySummary","gatewayAttachmentId","gatewayAttachmentKey","TraceResponse","gateway","spans","logs","getTraceForWorkflowRun","workflowRunId","getTraceForTriggerRun","getTraceForAgentSession","workflowRunSummaryFromRow","workflowRunRecordFromRow","triggerRunDetailFromRow","workflowStepRunFromEvent","actionKey","completedAt","traceResponseToJson","trace","selectWorkflowRunById","resolveWorkflowRunProjectId","listWorkflowRunsByWorkflowSlug","selectWorkflowRunForWorkflow","listWorkflowRunsPaginated","ReturnType","cursor","items","nextCursor","WorkflowHookRow","InsertWorkflowHookValues","requeueExpiredLeases","GatewayAttachmentRow","GatewayChannelConflictError","Error","ownerProjectId","constructor","getActiveOrgGatewayAttachmentByChannel","getActiveOrgGatewayAttachmentByTeamAndChannel","getActiveGatewayAttachmentByChannel","listActiveGatewayAttachments","ActiveGatewayBinding","listActiveOrgGatewayBindingsByPlatform","listActiveGatewayAttachmentsByAgentSlug","softDeleteGatewayAttachmentsForAgentPlatformTeam","listActiveGatewayAttachmentsByPlatform","softDeleteGatewayAttachmentByChannel","upsertGatewayAttachmentByChannel","getGatewayAttachmentBySlug","GatewayThreadSessionRow","selectGatewayThreadSessionByThreadId","WorkflowRow","listActiveWorkflows","selectActiveWorkflowBySlug","selectActiveWorkflowsByIds","selectActiveWorkflowById","SkillRow","listActiveSkills","selectActiveSkillsByIds","selectActiveSkillById","WorkflowSubscriptionRow","InsertWorkflowSubscriptionValues","UpdateWorkflowSubscriptionValues","selectWorkflowSubscriptionById","selectWorkflowSubscriptionByWorkflowAndUser","listWorkflowSubscriptionsByWorkflowSlug","listEnabledWorkflowSubscriptionsByWorkflowSlug","insertWorkflowSubscription","updateWorkflowSubscriptionById","deleteWorkflowSubscriptionById","ResourceActivityRow","TouchResourceActivityInput","touchResourceActivity","listRecentResourceActivity","selectWorkflowLastRunAtByIds","Map","workflowIds","selectAgentLastRunAtByIds","agentIds","ProjectResourceCounts","agentCount","workflowCount","skillCount","selectProjectResourceCounts","ListHistoryRunsOptions","HistoryRunCore","Omit","buildHistoryWorkflowRunDetail","buildHistoryAgentSessionDetail","listHistoryRuns","findHistoryRunCore","CredentialInstanceRow","InsertCredentialInstanceValues","listAllCredentialInstances","listCredentialInstancesByConnectionId","selectCredentialInstanceById","listCredentialInstancesByScope","selectCredentialInstancesForScope","upsertCredentialInstance","touchCredentialInstanceLastUsed","deleteCredentialInstanceById","clearCredentialInstanceDefaults","exceptId","CredentialAssignmentRow","UpsertCredentialAssignmentValues","listCredentialAssignmentsByTarget","selectCredentialAssignmentById","upsertCredentialAssignment","deleteCredentialAssignmentById","listRecentWorkflowStepConsumers","runLimit","listDistinctAssignmentConsumerIds","createPgDb","NodePgDatabase","pool","usageRecords","runKind","quantity","unit","amount","jobs","targetId","scheduledAt","attempt","maxAttempts","leasedBy","leaseExpiresAt","$client","Database","DatabaseDialect","PgPool","PgDatabase","SqliteDatabase","AppDatabase","DatabaseHandle","db","searchPath","close","InitDatabaseOptions","migrate","migrationsFolder","max","closeAllProjectDatabasePools","isDatabaseInitialized","getDatabaseHandle","initDatabase","RunWithProjectDatabaseOptions","runWithProjectDatabase","ConnectionOptions","PgConnectionOptions","SqliteConnectionOptions","createPgConnection","PostgresCancelHandler","PostgresCancelChannel","publishCancel","subscribeCancel","handler","createPostgresCancelChannel","connectionString","channel","createSqliteConnection","createConnection","resolveSqlitePath","inferDialect","override","adaptPgMigrationsForSearchPath","migrations","loadMigrations","embedded","migratePgDatabase","resolveMigrationsFolder","runMigrations","handle","resolveMigrationsSchema","primarySearchPathSchema","resolveSearchPath","appendSearchPathToUrl","cancelWorkflowRun","cancelAgentSession","RunSource","runSource","sourceFromSpan","span","resolveRunSourceFromTraceContext","DiscoveredAgentRecord","AgentRegistryEntry","MESSAGE_EVENT_TYPE","syncAgentRegistry","records","getAgentByRoute","AgentSession","createSession","getSession","touchSession","setSessionTitle","nextSeq","appendEvent","listMessageEvents","countMessageEvents","AgentEventRecord","listSessionEvents","setSessionLiveMessage","clearLiveMessage","getSessionLiveMessage","LlmUsageRecordInput","recordLlmUsageFromAssistantMessage","usage","failAgentSession","AgentSessionStatus$1","agentSessionSummaryFromParts","messageCount","ranByUserName","gatewayPlatform","agentSessionRecordFromParts","gatewaySessionDetailFromParts","agentEventFromRow","AgentSessionStatus","AgentSessionSource","listAgentSessionsPaginated","resolveUserName","AgentSessionDetailInclude","buildAgentSessionDetail","include","session","messages","events","buildAgentSessionChatState","sinceSeq","live","DiscoveredSkillRecord","SkillRegistryEntry","syncSkillRegistry","StoredTriggerSourceSlugFields","key","StoredTriggerSource","storedTriggerSourceSlug","normalizeStoredTriggerSource","TriggerAttachmentRegistryEntry","DiscoveredTriggerAttachmentRecord","sourceHash","syncTriggerAttachmentRegistry","CreateAgentAttachmentExecutionInput","createAgentAttachmentExecution","getTriggerRunForAgentSession","RecordTriggerFireInput","recordTriggerFire","WorkspaceTriggerRecord","webhookEndpoint","listWorkspaceTriggers","getWorkspaceTrigger","listWorkspaceTriggerRunRows","triggerStatusFromRow","resolveTriggerAssignments","rows","triggerScheduleFromSource","triggerSourceGroupKeyFromSource","storedTriggerSourceFromTrigger","storedTriggerSourceFromRow","EPHEMERAL_TRIGGER_MODULE_FILE","UpsertEphemeralTriggerInput","Extract","upsertEphemeralTrigger","deleteEphemeralTrigger","isEphemeralTriggerActive","recordEphemeralTriggerExecution","selectActiveEphemeralScheduledTriggerSlugs","selectActiveEphemeralScheduledAttachmentSlugs","selectActiveEphemeralCronAttachmentSlugs","listAgentTriggers","getOrCreateGatewayThreadSession","existingSessionId","DiscoveredWorkflowRecord","WorkflowRegistryEntry","syncWorkflowRegistry","WorkflowSubscriptionProfile","getWorkflowSubscription","listCredentialInstancesForAssignment","CreateWorkflowRunInput","CreateAttachmentExecutionInput","Exclude","createWorkflowRun","createPendingWorkflowRun","markWorkflowRunRunning","markWorkflowRunSleeping","markWorkflowRunWaitingHook","completeWorkflowRun","failWorkflowRun","recordWorkflowLlmUsage","finalizeCanceledWorkflowRun","createAttachmentExecution","createPendingAttachmentExecution","markAttachmentExecutionRunning","WorkflowRunDetailInclude","buildWorkflowRunDetail","run","steps","WorkflowEventRecord","EventLog","append","event","listReplay","createDatabaseEventLog","WorkflowHookRecord","HookStore","create","getByToken","markResumed","createDatabaseHookStore","TriggerRunDetailInclude","listTriggerRunsPaginated","buildTriggerRunDetail","Array","encryptCredentialPayload","plaintext","decryptCredentialPayload","setCredentialInstanceValue","value","OAuthCredentialTargets","projectNamesById","organization","ensureOAuthCredentialInstance","accountLabel","externalId","userLabel","targets","credentialInstanceId","ensureKeystrokeCredentialInstance","projectName","EnqueueJobInput","ClaimedJob","JobSnapshot","enqueueJob","claimNextJob","workerId","markJobComplete","jobId","markJobFailed","scheduleJobRetry","delayMs","getJobByRunId","Client","discoverAuthorizationServerMetadata","discoverOAuthProtectedResourceMetadata","discoverOAuthServerInfo","exchangeAuthorization","refreshAuthorization","registerClient","startAuthorization","AgentTool","AgentToolResult","Tool","MCP","McpCallToolOptions","AbortSignal","signal","McpTransport","McpAuthOptions","Record","headers","env","searchParams","McpHttpTransport","URL","type","url","transport","McpStdioTransport","command","args","cwd","stderr","McpDeclaredTool","name","title","description","inputSchema","McpDefinitionInput","TCredentials","fetch","RequestInit","key","credentials","auth","resolved","declaredTools","clientName","clientVersion","requestInit","McpDefinition","McpServerOptions","McpConnection","Promise","tools","callTool","toolName","options","close","McpStdioOptions","defineMcp","def","isMcp","value","connectMcpServer","connectMcpStdio","connectMcpDefinition","mergeOAuthScopes","Array","lists","McpAuthProbeMode","McpAuthProbeOAuth","issuer","authorizationEndpoint","tokenEndpoint","registrationEndpoint","scopes","resource","resourceName","McpAuthProbeResult","mode","unauthenticatedStatus","scheme","oauth","probeMcpAuth","fetchFn","PublicHttpUrlError","Error","constructor","message","assertPublicHttpUrl","urlString","McpServerInfoProbe","version","probeMcpServerInfo","JsonSchemaObject","createToolName","serverName","normalizeInputSchema","schema","mcpToolsToAgentTools","client","S","CredentialAssignmentRow$1","p","CredentialInstanceRow$1","CREDENTIAL_SCOPE_TYPES","CredentialAssignmentSet","CredentialAssignmentTargetType","CredentialConsumer","CredentialConsumer$1","CredentialInput","CredentialList","CredentialRunContext","CredentialRunContext$1","CredentialScopeType","CredentialScopeType$1","CredentialSelectionOption","CredentialSelectionOption$1","McpAuthProbeOAuth","McpDiscoverResponse","OAuthAccessTokenRefreshParams","OAuthAccessTokenRefreshResult","OAuthAccessTokenRefresher","OAuthTokenAdapter","OAuthTokenAdapter$1","OAuthTokenRefreshRegistry","OAuthTokenRefreshRegistry$1","OpenApiDiscoverResponse","ResolvedCredentials","StartMcpOAuthConnectionInput","OAuthCredentialTargets","AppRow","MCP","McpConnection","McpDefinition","McpDefinition$1","McpDefinitionInput","PublicHttpUrlError","AgentTool","z","CredentialToolErrorCapture","tools","takeCredentialError","captureCredentialToolErrors","selectAssignedInstanceId","assignments","consumerId","credentialSlug","buildAssignmentSet","rows","loadCredentialAssignments","Promise","targetType","targetKey","options","withCredentialAssignments","context","ResolveKeystrokeInstanceIdResult","instanceId","scopeType","scopeId","ResolveKeystrokeInstanceIdOptions","ReadonlyArray","app","scopes","assignmentTarget","type","key","consumer","resolveKeystrokeInstanceId","ResolveCredentialRefOptions","ref","userId","canAccess","row","ResolveCredentialRefResult","error","status","resolveCredentialRef","canAssignCredentialInstance","projectId","canManageCredentialInstance","credentialScopePrefix","formatCredentialRef","slug","formatCredentialRefSuggestion","appSlug","ParsedCredentialRef","kind","id","parseCredentialRef","WorkflowSubscriptionProfile","workflowKey","enabled","CredentialRunContextInput","Record","Partial","subscription","orgId","credentialSelection","request","ToolCredentialResolver","T","resolve","requirements","buildCredentialRunContext","input","buildWorkflowRunContext","actor","CredentialBackend","ZodType","resolveApiKey","schema","getOAuthAccessToken","connectionId","accessToken","CreateLocalCredentialBackendOptions","_$_keystrokehq_shared0","tokenRefresh","CreatePlatformCredentialBackendOptions","platformUrl","workerToken","CreateCredentialResolverOptions","credentialBackend","oauthAdapter","CredentialResolver","createCredentialResolver","ResolveCredentialRequirementsOptions","resolveCredentialRequirements","ResolvedMcpTools","connection","resolveMcpTools","TCredentials","def","resolver","McpOAuthStatePayload","codeVerifier","organizationId","scopeTargets","authorizationServerUrl","resource","oauthMetadata","mcpUrl","redirectUri","clientId","clientSecret","tokenEndpointAuthMethod","label","credentialInstanceId","encodeOAuthState","payload","decodeOAuthState","state","discoverMcpApp","url","beginMcpOAuthConnect","projectNamesById","authorizeUrl","completeMcpOAuthConnect","code","discoverOpenApiApp","McpInput","Omit","defineMcp","credentials","auth","TRequirements","TResolved","NonNullable","ReturnType","resolved","parseResolvedCredentials","ResolveActionCredentialsOptions","resolveCredentials","contextOverride","resolveActionCredentials","MissingCredentialsError","Error","chainAttempted","constructor","NeedsSelectionError","OAuthNotConfiguredError","message","CredentialAccessDeniedError","CredentialError","isCredentialError","credentialScopeMatchesContext","enrichCredentialError","formatCredentialErrorMessage","orgSlug","webUrl","connect","AgentConnectContext","resolveAgentConnectContext","stubOAuthTokenAdapter","createOAuthTokenRefreshRegistry","createLocalCredentialBackend","createPlatformCredentialBackend","isWorkerRuntime","NodeJS","ProcessEnv","env","createCredentialBackend","setProjectCredentialBackend","backend","getProjectCredentialBackend","createOAuthTokenAdapterFromBackend"],"sources":["../../database/dist/index.d.mts","../../mcp/dist/index.d.mts","../../credentials/dist/index.d.mts"],"mappings":";;;;;;;KAyqRKwf,mBAAAA;EACH5S,KAAAA;EACAqN,QAAA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AAAA,EAAO5C,SAAAA,IAzCiB;EA0CxB6C,QAAAA,CAASC,QAAAA,UAAkB1B,IAAAA,EAAMX,MAAAA,mBAAyBsC,OAAAA,GAAU3C,kBAAAA,GAAqBuC,OAAAA,CAAQ1C,eAAAA;EACjG+C,KAAAA,IAASL,OAAAA;AAAAA;AAAAA,KAENM,eAAAA;EACH9B,OAAAA;EACAC,IAAAA;EACAT,GAAAA,GAAMF,MAAM;EACZY,GAAAA;EACAC,MAAAA;EACAe,UAAAA;EACAC,aAAAA;AAAAA;AAAAA;AAAAA,iBAIeY,SAAAA,gBAAyBzC,MAAAA,gBAAAA,CAAuB0C,GAAAA,EAAKvB,kBAAAA,CAAmBC,YAAAA,IAAgBW,aAAAA,CAAcX,YAAAA;AAAAA;AAAAA,iBAGtGuB,KAAAA,CAAMC,KAAAA,YAAiBA,KAAAA,IAASb,aAAa;AAAA;AAAA,iBAG7Cc,gBAAAA,CAAiB9B,IAAAA,UAAcuB,OAAAA,EAASN,gBAAAA,GAAmBE,OAAAA,CAAQD,aAAAA;AAAAA;AAAAA,iBAGnEa,eAAAA,CAAgB/B,IAAAA,UAAcuB,OAAAA,EAASE,eAAAA,GAAkBN,OAAAA,CAAQD,aAAAA;AAAAA;AAAAA,iBAGjEc,oBAAAA,gBAAoC/C,MAAAA,gBAAAA,CAAuB0C,GAAAA,EAAKX,aAAAA,CAAcX,YAAAA,GAAeK,IAAAA,GAAO1B,cAAAA,GAAiBmC,OAAAA,CAAQD,aAAAA;AAAAA;;;;KCqBzIsJ,sBAAAA;EACHE,OAAAA,WAAkB5F,cAAAA,EAAgB6F,YAAAA,EAAcF,CAAAA,EAAGlC,QAAAA,EAAU3D,kBAAAA,GAAuB0C,OAAAA,CAAQvB,mBAAAA,CAAoB0E,CAAAA;AAAAA;AAAAA"}
@@ -1,4 +1,4 @@
1
- import { o as CredentialInput, r as CredentialAssignmentTargetType, s as CredentialList, u as CredentialScopeType, y as ResolvedCredentials } from "./index-WT4ULMiw.cjs";
1
+ import { o as CredentialInput, r as CredentialAssignmentTargetType, s as CredentialList, u as CredentialScopeType, y as ResolvedCredentials } from "./index-B1YicUCL.cjs";
2
2
  import { o as AgentTool } from "./index-BByNfhJU.cjs";
3
3
  import { z } from "zod";
4
4
 
@@ -160,4 +160,4 @@ declare function registerProjectScopeGetter(fn: () => string | undefined): void;
160
160
  declare function getRegisteredProjectScopeId(): string | undefined; //#endregion
161
161
  //#endregion
162
162
  export { registerProjectScopeGetter as C, runWithMcpCredentialContext as D, runOutsideActionExecution as E, runWithRunSignal as O, isWithinActionExecution as S, resolveActionTool as T, getRegisteredProjectScopeId as _, McpCredentialContext as a, isAction as b, StepInvocation as c, actionCoreSchema as d, createStepInvocation as f, getRegisteredMcpCredentialContext as g, getActionCredentialRequirements as h, AgentRunOptions as i, runWithinActionExecution as k, WorkflowActionDefinition as l, executeAction as m, ActionDefinition as n, ResolveActionCredentialsFn as o, defineAction as p, ActionDefinitionInput as r, ResolveActionToolOptions as s, ActionCredentialConsumer as t, WorkflowRunHandle as u, getRunSignal as v, registerWorkflowRunGetter as w, isStepInvocation as x, getWorkflowRunHandle as y };
163
- //# sourceMappingURL=index-D4dAsbJr.d.cts.map
163
+ //# sourceMappingURL=index-CGicsfPD.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-D4dAsbJr.d.cts","names":["z","CREDENTIAL_SCOPE_TYPES","Credential","CredentialAssignmentTargetType","CredentialAuthKind","CredentialInput","CredentialList","CredentialRequirement","CredentialScopeType","DefineCredentialInput","DefineOAuthCredentialInput","DefineStaticCredentialInput","NormalizeCredential","ResolvedCredentials","credential","credentialInputSchema","defineCredential","isCredentialInput","normalizeCredentialList","toCredentialRequirement","AgentTool","actionCoreSchema","ZodString","ZodOptional","core","$ZodTypeInternals","ZodType","ZodCustom","_$_keystrokehq_shared0","ZodArray","$ZodFunctionArgs","$ZodFunctionOut","ZodFunction","$strip","ZodObject","slug","name","description","input","output","credentials","run","ActionMeta","infer","Omit","ActionIO","TInputSchema","TOutputSchema","TCredentials","AbortSignal","Promise","signal","ctx","ACTION","ActionDefinition","TInput","TOutput","Record","ActionDefinitionInput","isAction","value","getActionCredentialRequirements","Pick","action","StepInvocationState","scope","id","StepInvocation","TResult1","TResult2","PromiseLike","stepId","then","onfulfilled","reason","onrejected","isStepInvocation","createStepInvocation","state","WorkflowActionDefinition","TRequirements","defineAction","def","executeAction","McpCredentialContext","assignmentTarget","type","key","consumerId","getRegisteredMcpCredentialContext","runWithMcpCredentialContext","T","context","fn","ActionCredentialConsumer","kind","ResolveActionCredentialsFn","Partial","requirements","consumer","contextOverride","ResolveActionToolOptions","resolveCredentials","mcpCredentialContext","resolveActionTool","options","runWithinActionExecution","actionKey","runOutsideActionExecution","isWithinActionExecution","runWithRunSignal","getRunSignal","AgentRunOptions","runPrompt","WorkflowRunHandle","actionRunner","credentialScope","agentRunner","agent","message","sessionId","agentId","llmRunner","prompt","opts","registerWorkflowRunGetter","getWorkflowRunHandle","registerProjectScopeGetter","getRegisteredProjectScopeId"],"sources":["../../action/dist/index.d.mts"],"mappings":";;;;;;AAE0D;AAAA,cAI5CqB,gBAAAA,EAAkBrB,CAAAA,CAAEkC,SAAAA;EAChCC,IAAAA,EAAMnC,CAAAA,CAAEsB,SAAAA;EACRc,IAAAA,EAAMpC,CAAAA,CAAEuB,WAAAA,CAAYvB,CAAAA,CAAEsB,SAAAA;EACtBe,WAAAA,EAAarC,CAAAA,CAAEuB,WAAAA,CAAYvB,CAAAA,CAAEsB,SAAAA;EAC7BgB,KAAAA,EAAOtC,CAAAA,CAAE2B,SAAAA,CAAU3B,CAAAA,CAAE0B,OAAAA,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA,qBAAsCzB,CAAAA,CAAE0B,OAAAA,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA;EAC/Hc,MAAAA,EAAQvC,CAAAA,CAAE2B,SAAAA,CAAU3B,CAAAA,CAAE0B,OAAAA,mBAA0B1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C,CAAAA;;iBAE5DkB,uBAAAA,CAAAA;AAAAA;;;;;;;iBASAC,gBAAAA,GAAAA,CAAoB3D,MAAAA,EAAQF,WAAAA,EAAa4C,EAAAA,QAAU3C,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAExEoB,YAAAA,CAAAA,GAAgB9D,WAAW;AAAA;AAAA,KAGvC+D,eAAAA;EACH9C,EAAAA;EACA+C,SAAAA,GAAYxD,MAAM;AAAA;AAAA,KAEfyD,iBAAAA;EACHC,YAAAA,GAAepD,MAAAA,WAAiBzB,KAAAA,WAAgBmE,OAAAA;IAC9CvC,EAAAA;IACAkD,eAAAA;EAAAA,MACIlE,OAAAA;EACNmE,WAAAA,IAAeC,KAAAA,WAAgBhF,KAAAA;IAC7BiF,OAAAA;IACAC,SAAAA;IACAC,OAAAA;EAAAA,GACChB,OAAAA,GAAUO,eAAAA,KAAoB9D,OAAAA;EACjCwE,SAAAA,IAAaE,IAAAA;IACXD,MAAAA;EAAAA,IACElE,MAAAA,sBAA4BP,OAAAA;AAAAA;AAAAA,iBAEjB2E,yBAAAA,CAA0BhC,EAAuC,QAA7BqB,iBAAiB;AAAA,iBACrDY,oBAAAA,CAAAA,GAAwBZ,iBAAiB;AAAA;AAAA,iBAGzCa,0BAAAA,CAA2BlC,EAA4B;AAAA,iBACvDmC,2BAAAA,CAAAA"}
1
+ {"version":3,"file":"index-CGicsfPD.d.cts","names":["z","CREDENTIAL_SCOPE_TYPES","Credential","CredentialAssignmentTargetType","CredentialAuthKind","CredentialInput","CredentialList","CredentialRequirement","CredentialScopeType","DefineCredentialInput","DefineOAuthCredentialInput","DefineStaticCredentialInput","NormalizeCredential","ResolvedCredentials","credential","credentialInputSchema","defineCredential","isCredentialInput","normalizeCredentialList","toCredentialRequirement","AgentTool","actionCoreSchema","ZodString","ZodOptional","core","$ZodTypeInternals","ZodType","ZodCustom","_$_keystrokehq_shared0","ZodArray","$ZodFunctionArgs","$ZodFunctionOut","ZodFunction","$strip","ZodObject","slug","name","description","input","output","credentials","run","ActionMeta","infer","Omit","ActionIO","TInputSchema","TOutputSchema","TCredentials","AbortSignal","Promise","signal","ctx","ACTION","ActionDefinition","TInput","TOutput","Record","ActionDefinitionInput","isAction","value","getActionCredentialRequirements","Pick","action","StepInvocationState","scope","id","StepInvocation","TResult1","TResult2","PromiseLike","stepId","then","onfulfilled","reason","onrejected","isStepInvocation","createStepInvocation","state","WorkflowActionDefinition","TRequirements","defineAction","def","executeAction","McpCredentialContext","assignmentTarget","type","key","consumerId","getRegisteredMcpCredentialContext","runWithMcpCredentialContext","T","context","fn","ActionCredentialConsumer","kind","ResolveActionCredentialsFn","Partial","requirements","consumer","contextOverride","ResolveActionToolOptions","resolveCredentials","mcpCredentialContext","resolveActionTool","options","runWithinActionExecution","actionKey","runOutsideActionExecution","isWithinActionExecution","runWithRunSignal","getRunSignal","AgentRunOptions","runPrompt","WorkflowRunHandle","actionRunner","credentialScope","agentRunner","agent","message","sessionId","agentId","llmRunner","prompt","opts","registerWorkflowRunGetter","getWorkflowRunHandle","registerProjectScopeGetter","getRegisteredProjectScopeId"],"sources":["../../action/dist/index.d.mts"],"mappings":";;;;;;AAE0D;AAAA,cAI5CqB,gBAAAA,EAAkBrB,CAAAA,CAAEkC,SAAAA;EAChCC,IAAAA,EAAMnC,CAAAA,CAAEsB,SAAAA;EACRc,IAAAA,EAAMpC,CAAAA,CAAEuB,WAAAA,CAAYvB,CAAAA,CAAEsB,SAAAA;EACtBe,WAAAA,EAAarC,CAAAA,CAAEuB,WAAAA,CAAYvB,CAAAA,CAAEsB,SAAAA;EAC7BgB,KAAAA,EAAOtC,CAAAA,CAAE2B,SAAAA,CAAU3B,CAAAA,CAAE0B,OAAAA,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA,qBAAsCzB,CAAAA,CAAE0B,OAAAA,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA;EAC/Hc,MAAAA,EAA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A6Bf,EAAAA,QAAU3C,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAE5DkB,uBAAAA,CAAAA;AAAAA;;;;;;;iBASAC,gBAAAA,GAAAA,CAAoB3D,MAAAA,EAAQF,WAAAA,EAAa4C,EAAAA,QAAU3C,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAExEoB,YAAAA,CAAAA,GAAgB9D,WAAW;AAAA;AAAA,KAGvC+D,eAAAA;EACH9C,EAAAA;EACA+C,SAAAA,GAAYxD,MAAM;AAAA;AAAA,KAEfyD,iBAAAA;EACHC,YAAAA,GAAepD,MAAAA,WAAiBzB,KAAAA,WAAgBmE,OAAAA;IAC9CvC,EAAAA;IACAkD,eAAAA;EAAAA,MACIlE,OAAAA;EACNmE,WAAAA,IAAeC,KAAAA,WAAgBhF,KAAAA;IAC7BiF,OAAAA;IACAC,SAAAA;IACAC,OAAAA;EAAAA,GACChB,OAAAA,GAAUO,eAAAA,KAAoB9D,OAAAA;EACjCwE,SAAAA,IAAaE,IAAAA;IACXD,MAAAA;EAAAA,IACElE,MAAAA,sBAA4BP,OAAAA;AAAAA;AAAAA,iBAEjB2E,yBAAAA,CAA0BhC,EAAuC,QAA7BqB,iBAAiB;AAAA,iBACrDY,oBAAAA,CAAAA,GAAwBZ,iBAAiB;AAAA;AAAA,iBAGzCa,0BAAAA,CAA2BlC,EAA4B;AAAA,iBACvDmC,2BAAAA,CAAAA"}
@@ -1,5 +1,5 @@
1
- import { _ as PromptLlmRunOptions, a as CredentialConsumer, b as WorkflowEventType, h as OAuthTokenAdapter, l as CredentialRunContext, s as CredentialList, y as ResolvedCredentials } from "./index-WT4ULMiw.mjs";
2
- import { a as McpCredentialContext } from "./index-Sx9T2i0u.mjs";
1
+ import { _ as PromptLlmRunOptions, a as CredentialConsumer, b as WorkflowEventType, h as OAuthTokenAdapter, l as CredentialRunContext, s as CredentialList, y as ResolvedCredentials } from "./index-B1YicUCL.cjs";
2
+ import { a as McpCredentialContext } from "./index-CGicsfPD.cjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region ../workflow/dist/index.d.mts
@@ -180,4 +180,4 @@ declare function serializeWorkflowError(error: unknown): SerializedWorkflowError
180
180
  declare function deserializeWorkflowError(data: unknown): Error; //#endregion
181
181
  //#endregion
182
182
  export { deserializeWorkflowError as C, promptLlm as D, isWorkflow as E, serializeWorkflowError as O, defineWorkflow as S, isRunCanceledError as T, SleepPendingItem as _, HookHandle as a, WorkflowRunContext as b, LlmStepExecutor as c, PromptLlmOptions as d, ReplayEvent as f, SleepDuration as g, SerializedWorkflowError as h, ExecuteWorkflowOptions as i, MemoryEventLog as l, RunCanceledError as m, AppendEventInput as n, HookOptions as o, ReplayResult as p, DurableEventLog as r, HookPendingItem as s, AgentStepExecutor as t, PendingItem as u, WorkflowDefinition as v, executeWorkflow as w, WorkflowSleep as x, WorkflowHook as y };
183
- //# sourceMappingURL=index-CB3he8Lx.d.mts.map
183
+ //# sourceMappingURL=index-CVMv3juU.d.cts.map