@keystrokehq/keystroke 0.0.157 → 0.0.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs +3 -1
- package/dist/action.d.cts +3 -3
- package/dist/action.d.mts +3 -3
- package/dist/action.mjs +2 -2
- package/dist/agent.cjs +10 -4
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +2 -2
- package/dist/agent.d.mts +2 -2
- package/dist/agent.mjs +10 -4
- package/dist/agent.mjs.map +1 -1
- package/dist/config.d.cts +5 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +5 -2
- package/dist/config.d.mts.map +1 -1
- package/dist/credentials.cjs +1 -1
- package/dist/credentials.d.cts +1 -1
- package/dist/credentials.d.mts +1 -1
- package/dist/credentials.mjs +1 -1
- package/dist/{dist-DCLn7nnX.cjs → dist-D5jH3nQI.cjs} +35 -6
- package/dist/dist-D5jH3nQI.cjs.map +1 -0
- package/dist/{dist-mqIKZUtC.mjs → dist-DALSxODo.mjs} +43 -14
- package/dist/dist-DALSxODo.mjs.map +1 -0
- package/dist/{dist-DVhUiNxI.cjs → dist-DhBV2U_0.cjs} +54 -13
- package/dist/dist-DhBV2U_0.cjs.map +1 -0
- package/dist/{dist-Bk52Cwwx.mjs → dist-XKCtZShd.mjs} +24 -7
- package/dist/dist-XKCtZShd.mjs.map +1 -0
- package/dist/{dist-DYCqNVKj.mjs → dist-lYNbBwe5.mjs} +5 -4
- package/dist/{dist-DYCqNVKj.mjs.map → dist-lYNbBwe5.mjs.map} +1 -1
- package/dist/{dist-DfIdsDNZ.cjs → dist-u0RYk4-X.cjs} +7 -6
- package/dist/{dist-DfIdsDNZ.cjs.map → dist-u0RYk4-X.cjs.map} +1 -1
- package/dist/{index-CiuCYKLw.d.cts → index-BNcrFoZi.d.cts} +2 -1
- package/dist/index-BNcrFoZi.d.cts.map +1 -0
- package/dist/{index-CiuCYKLw.d.mts → index-BNcrFoZi.d.mts} +2 -1
- package/dist/index-BNcrFoZi.d.mts.map +1 -0
- package/dist/{index-C9bN3PaO.d.cts → index-BUmyUoC2.d.mts} +10 -3
- package/dist/index-BUmyUoC2.d.mts.map +1 -0
- package/dist/{index-B-OL-2Px.d.mts → index-Bbe9CzYo.d.mts} +16 -4
- package/dist/index-Bbe9CzYo.d.mts.map +1 -0
- package/dist/{index-DG70_Odx.d.cts → index-BmXIGJlQ.d.cts} +16 -4
- package/dist/index-BmXIGJlQ.d.cts.map +1 -0
- package/dist/{index-MfPRY7cK.d.cts → index-CUrU-w2Y.d.cts} +2 -2
- package/dist/{index-MfPRY7cK.d.cts.map → index-CUrU-w2Y.d.cts.map} +1 -1
- package/dist/{index-D-CtqeAA.d.mts → index-CyCx29m7.d.mts} +5 -4
- package/dist/index-CyCx29m7.d.mts.map +1 -0
- package/dist/{index-COm9NdJ2.d.cts → index-DuYf0Fdc.d.cts} +5 -4
- package/dist/index-DuYf0Fdc.d.cts.map +1 -0
- package/dist/{index-ptRM3z9H.d.mts → index-Qnwdoq7U.d.mts} +2 -2
- package/dist/{index-ptRM3z9H.d.mts.map → index-Qnwdoq7U.d.mts.map} +1 -1
- package/dist/{index-Bg5PEyGE.d.mts → index-jLW9DNA0.d.cts} +10 -3
- package/dist/index-jLW9DNA0.d.cts.map +1 -0
- package/dist/{mistral-DjA92zum.mjs → mistral-CWlaNuqc.mjs} +2 -2
- package/dist/{mistral-DjA92zum.mjs.map → mistral-CWlaNuqc.mjs.map} +1 -1
- package/dist/{mistral-CQ_FR-Wp.cjs → mistral-DIpD1PUg.cjs} +2 -2
- package/dist/{mistral-CQ_FR-Wp.cjs.map → mistral-DIpD1PUg.cjs.map} +1 -1
- package/dist/{sse-Bur6Etcd.cjs → sse-DXvz9wn_.cjs} +2 -2
- package/dist/{sse-Bur6Etcd.cjs.map → sse-DXvz9wn_.cjs.map} +1 -1
- package/dist/{sse-B2_n99ud.mjs → sse-DuzdM7Va.mjs} +2 -2
- package/dist/{sse-B2_n99ud.mjs.map → sse-DuzdM7Va.mjs.map} +1 -1
- package/dist/trigger.cjs +1 -1
- package/dist/trigger.d.cts +3 -3
- package/dist/trigger.d.mts +3 -3
- package/dist/trigger.mjs +1 -1
- package/dist/workflow.cjs +3 -1
- package/dist/workflow.d.cts +2 -2
- package/dist/workflow.d.mts +2 -2
- package/dist/workflow.mjs +2 -2
- package/package.json +1 -1
- package/dist/dist-Bk52Cwwx.mjs.map +0 -1
- package/dist/dist-DCLn7nnX.cjs.map +0 -1
- package/dist/dist-DVhUiNxI.cjs.map +0 -1
- package/dist/dist-mqIKZUtC.mjs.map +0 -1
- package/dist/index-B-OL-2Px.d.mts.map +0 -1
- package/dist/index-Bg5PEyGE.d.mts.map +0 -1
- package/dist/index-C9bN3PaO.d.cts.map +0 -1
- package/dist/index-COm9NdJ2.d.cts.map +0 -1
- package/dist/index-CiuCYKLw.d.cts.map +0 -1
- package/dist/index-CiuCYKLw.d.mts.map +0 -1
- package/dist/index-D-CtqeAA.d.mts.map +0 -1
- package/dist/index-DG70_Odx.d.cts.map +0 -1
|
@@ -115,6 +115,7 @@ declare const WorkflowEventTypeSchema: z.ZodEnum<{
|
|
|
115
115
|
hook_resumed: "hook_resumed";
|
|
116
116
|
run_completed: "run_completed";
|
|
117
117
|
run_failed: "run_failed";
|
|
118
|
+
run_canceled: "run_canceled";
|
|
118
119
|
}>;
|
|
119
120
|
type WorkflowEventType = z.infer<typeof WorkflowEventTypeSchema>;
|
|
120
121
|
//#endregion
|
|
@@ -153,4 +154,4 @@ type OAuthTokenRefreshRegistry = {
|
|
|
153
154
|
//#region src/types/openapi.d.ts
|
|
154
155
|
//#endregion
|
|
155
156
|
export { normalizeCredentialList as C, isCredentialInput as S, ResolvedCredentials as _, CredentialInput as a, credentialInputSchema as b, CredentialRunContext as c, DefineCredentialInput as d, DefineOAuthCredentialInput as f, OAuthTokenRefreshRegistry as g, OAuthTokenAdapter as h, CredentialConsumer as i, CredentialScopeLevel as l, NormalizeCredential as m, Credential as n, CredentialList as o, DefineStaticCredentialInput as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_LEVELS as t, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN as u, WorkflowEventType as v, toCredentialRequirement as w, defineCredential as x, credential as y };
|
|
156
|
-
//# sourceMappingURL=index-
|
|
157
|
+
//# sourceMappingURL=index-BNcrFoZi.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BNcrFoZi.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","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","ROUTE_MANIFEST_HTTP_PATH","StoredRouteManifestSkillSchema","ZodOptional","core","$strip","ZodObject","slug","description","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodNumber","ZodUnknown","ZodRecord","ZodBoolean","ZodArray","ZodEnum","ZodDiscriminatedUnion","ZodDefault","version","entries","kind","method","path","agentSlug","model","systemPrompt","toolCount","credentialCount","requestSchema","responseSchema","workflowSlug","workflowName","subscribable","attachmentIds","attachmentSchemas","filterSchema","attachmentId","schedule","pollId","GET","POST","PUT","PATCH","DELETE","plugin","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","AppCatalogEntrySchema","id","category","integrationDescription","authKind","oauthScopes","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","docsUrl","tagline","ListAppsResponseSchema","apps","OAuthScopeOption","AppAuthKind","AppCatalogEntry","ListAppsResponse","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","credentialFields","label","placeholder","helpText","type","password","text","textarea","prefix","ChannelBindingSchema","channelId","channelName","channelKind","mode","subscribeOnMention","createdAt","updatedAt","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","connections","ChannelDirectoryListResponseSchema","channels","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","accounts","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","organization","user","project","CredentialScopeLevelSchema","selection","CredentialAuthKind","CredentialScopeType","CredentialScopeLevel","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","CREDENTIAL_SCOPE_LEVELS","DEFAULT_CREDENTIAL_RESOLUTION_CHAIN","ResolvableCredentialScopeLevel","Exclude","StoredCredentialScopeType","CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","default","restricted","AppCredentialSummarySchema","ZodNullable","appId","scope","lastRefreshedAt","appName","projectId","projectName","status","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","projects","createOrganizationCredential","createUserProvidedCredential","CredentialTargetsFields","StartOAuthConnectionInputSchema","scopes","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","authorizeUrl","StartOAuthConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","credentials","GetCredentialResponseSchema","credential","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","TeamRequestTypeSchema","contact","SubmitTeamRequestRequestSchema","message","SubmitTeamRequestResponseSchema","ok","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","CredentialRequirement","chain","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","options","accessToken","F","static","DefineStaticCredentialInput","fields","DefineOAuthCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","slug_taken","slug_reserved","slug_invalid","needs_org_selection","ErrorResponseCode","ErrorResponseSchema","error","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","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","attachmentKey","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","agent","trigger","workflow","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","failed","canceled","source","sourceId","messageCount","AgentSessionSummary","AgentSessionRecordSchema","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","items","nextCursor","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","attachmentSlug","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerType","triggerRunId","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","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","cron","webhook","poll","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","resourceName","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","scopeType","scopeId","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","workflowRun","agentSession","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","workflowRuns","agentSessions","TriggerRunDetailResponse","TriggerTypeSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","endpoint","TriggerDetailResponseSchema","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","OrganizationMemberRoleSchema","admin","owner","builder","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","active","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","role","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","members","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","invalid","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","member","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","invitations","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","apiKeys","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","secret","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","settings","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","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","OrganizationUserRole","OrganizationSchema","Organization","ProjectSchema","organizationId","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","organizations","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","agentCount","workflowCount","skillCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","metrics","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","ProjectArtifactStatusSchema","ready","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","deployments","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","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","hash","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","artifactId","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","contents","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","generatedAt","StoredProjectSourceManifest","projectFileLanguage","projectFileId","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","connectionId","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","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":";;;;;;cAstBcoN,wBAAAA,EAA0BnN,CAAAA,CAAE0D,OAAO;EAC/CuC,OAAAA;EACAmH,aAAAA;AAAAA;;;;;;cAYYK,0BAAAA,EAA4BzN,CAAAA,CAAE0D,OAAO;EACjD4J,YAAAA;EACAC,IAAAA;EACAC,OAAAA;EACAE,SAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB3N,CAAAA,CAAEgB,KAAK,QAAQmM,wBAAAA;AAAAA,KAEpCU,oBA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BAAAA;AAAAA;AAAAA;AAAAA,KA8tFnC+f,oBAAAA;EACHnoB,KAAAA;EACA1G,SAAAA;EACA2G,MAAAA;EACAC,OAAAA,GAAUxT,MAAAA;EACVoL,SAAAA,GAAYpL,MAAM;AAAA;AAAA,KAEf07B,kBAAAA;EACHj6B,IAAAA;EACA5C,IAAI;AAAA;AAAA,KAQD+8B,iBAAAA;EACHE,cAAAA,CAAeC,YAAAA,WAAuBF,OAAO;IAC3C1qB,WAAAA;EAAAA;AAAAA;AAAAA,KAGC6qB,6BAAAA;EACHC,QAAAA;EACAC,YAAAA;EACAC,YAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACHjrB,WAAAA;EACAgrB,YAAAA;EACAG,oBAAAA,GAAuBD,IAAI;AAAA;AAAA,KAExBE,yBAAAA,IAA6BC,MAAAA,EAAQR,6BAAAA,KAAkCH,OAAAA,CAAQO,6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
|
|
@@ -115,6 +115,7 @@ declare const WorkflowEventTypeSchema: z.ZodEnum<{
|
|
|
115
115
|
hook_resumed: "hook_resumed";
|
|
116
116
|
run_completed: "run_completed";
|
|
117
117
|
run_failed: "run_failed";
|
|
118
|
+
run_canceled: "run_canceled";
|
|
118
119
|
}>;
|
|
119
120
|
type WorkflowEventType = z.infer<typeof WorkflowEventTypeSchema>;
|
|
120
121
|
//#endregion
|
|
@@ -153,4 +154,4 @@ type OAuthTokenRefreshRegistry = {
|
|
|
153
154
|
//#region src/types/openapi.d.ts
|
|
154
155
|
//#endregion
|
|
155
156
|
export { normalizeCredentialList as C, isCredentialInput as S, ResolvedCredentials as _, CredentialInput as a, credentialInputSchema as b, CredentialRunContext as c, DefineCredentialInput as d, DefineOAuthCredentialInput as f, OAuthTokenRefreshRegistry as g, OAuthTokenAdapter as h, CredentialConsumer as i, CredentialScopeLevel as l, NormalizeCredential as m, Credential as n, CredentialList as o, DefineStaticCredentialInput as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_LEVELS as t, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN as u, WorkflowEventType as v, toCredentialRequirement as w, defineCredential as x, credential as y };
|
|
156
|
-
//# sourceMappingURL=index-
|
|
157
|
+
//# sourceMappingURL=index-BNcrFoZi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BNcrFoZi.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","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","ROUTE_MANIFEST_HTTP_PATH","StoredRouteManifestSkillSchema","ZodOptional","core","$strip","ZodObject","slug","description","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodNumber","ZodUnknown","ZodRecord","ZodBoolean","ZodArray","ZodEnum","ZodDiscriminatedUnion","ZodDefault","version","entries","kind","method","path","agentSlug","model","systemPrompt","toolCount","credentialCount","requestSchema","responseSchema","workflowSlug","workflowName","subscribable","attachmentIds","attachmentSchemas","filterSchema","attachmentId","schedule","pollId","GET","POST","PUT","PATCH","DELETE","plugin","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","AppCatalogEntrySchema","id","category","integrationDescription","authKind","oauthScopes","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","docsUrl","tagline","ListAppsResponseSchema","apps","OAuthScopeOption","AppAuthKind","AppCatalogEntry","ListAppsResponse","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","credentialFields","label","placeholder","helpText","type","password","text","textarea","prefix","ChannelBindingSchema","channelId","channelName","channelKind","mode","subscribeOnMention","createdAt","updatedAt","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","connections","ChannelDirectoryListResponseSchema","channels","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","accounts","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","organization","user","project","CredentialScopeLevelSchema","selection","CredentialAuthKind","CredentialScopeType","CredentialScopeLevel","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","CREDENTIAL_SCOPE_LEVELS","DEFAULT_CREDENTIAL_RESOLUTION_CHAIN","ResolvableCredentialScopeLevel","Exclude","StoredCredentialScopeType","CREDENTIAL_SCOPE_LEVEL_TO_SCOPE_TYPE","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","default","restricted","AppCredentialSummarySchema","ZodNullable","appId","scope","lastRefreshedAt","appName","projectId","projectName","status","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","projects","createOrganizationCredential","createUserProvidedCredential","CredentialTargetsFields","StartOAuthConnectionInputSchema","scopes","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","authorizeUrl","StartOAuthConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","credentials","GetCredentialResponseSchema","credential","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","TeamRequestTypeSchema","contact","SubmitTeamRequestRequestSchema","message","SubmitTeamRequestResponseSchema","ok","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","CredentialRequirement","chain","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","options","accessToken","F","static","DefineStaticCredentialInput","fields","DefineOAuthCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","slug_taken","slug_reserved","slug_invalid","needs_org_selection","ErrorResponseCode","ErrorResponseSchema","error","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","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","attachmentKey","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","agent","trigger","workflow","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","failed","canceled","source","sourceId","messageCount","AgentSessionSummary","AgentSessionRecordSchema","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","items","nextCursor","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","attachmentSlug","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerType","triggerRunId","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","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","cron","webhook","poll","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","resourceName","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","scopeType","scopeId","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","workflowRun","agentSession","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","workflowRuns","agentSessions","TriggerRunDetailResponse","TriggerTypeSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","endpoint","TriggerDetailResponseSchema","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","OrganizationMemberRoleSchema","admin","owner","builder","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","active","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","role","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","members","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","invalid","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","member","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","invitations","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","apiKeys","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","secret","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","settings","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","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","OrganizationUserRole","OrganizationSchema","Organization","ProjectSchema","organizationId","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","organizations","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","agentCount","workflowCount","skillCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","metrics","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","ProjectArtifactStatusSchema","ready","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","deployments","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","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","hash","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","artifactId","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","contents","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","generatedAt","StoredProjectSourceManifest","projectFileLanguage","projectFileId","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","connectionId","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","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":";;;;;;cAstBcoN,wBAAAA,EAA0BnN,CAAAA,CAAE0D,OAAO;EAC/CuC,OAAAA;EACAmH,aAAAA;AAAAA;;;;;;cAYYK,0BAAAA,EAA4BzN,CAAAA,CAAE0D,OAAO;EACjD4J,YAAAA;EACAC,IAAAA;EACAC,OAAAA;EACAE,SAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB3N,CAAAA,CAAEgB,KAA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AoB5e,CAAAA,CAAEgB,KAAK,QAAQgd,uBAAAA;AAAAA;AAAAA;AAAAA,KA8tFnC+f,oBAAAA;EACHnoB,KAAAA;EACA1G,SAAAA;EACA2G,MAAAA;EACAC,OAAAA,GAAUxT,MAAAA;EACVoL,SAAAA,GAAYpL,MAAM;AAAA;AAAA,KAEf07B,kBAAAA;EACHj6B,IAAAA;EACA5C,IAAI;AAAA;AAAA,KAQD+8B,iBAAAA;EACHE,cAAAA,CAAeC,YAAAA,WAAuBF,OAAO;IAC3C1qB,WAAAA;EAAAA;AAAAA;AAAAA,KAGC6qB,6BAAAA;EACHC,QAAAA;EACAC,YAAAA;EACAC,YAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACHjrB,WAAAA;EACAgrB,YAAAA;EACAG,oBAAAA,GAAuBD,IAAI;AAAA;AAAA,KAExBE,yBAAAA,IAA6BC,MAAAA,EAAQR,6BAAAA,KAAkCH,OAAAA,CAAQO,6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { _ as ResolvedCredentials, c as CredentialRunContext, h as OAuthTokenAdapter, i as CredentialConsumer, o as CredentialList, v as WorkflowEventType } from "./index-
|
|
1
|
+
import { _ as ResolvedCredentials, c as CredentialRunContext, h as OAuthTokenAdapter, i as CredentialConsumer, o as CredentialList, v as WorkflowEventType } from "./index-BNcrFoZi.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region ../workflow/dist/index.d.mts
|
|
5
|
+
//#region src/run-canceled-error.d.ts
|
|
6
|
+
declare class RunCanceledError extends Error {
|
|
7
|
+
constructor(runId?: string);
|
|
8
|
+
}
|
|
9
|
+
declare function isRunCanceledError(error: unknown): error is RunCanceledError; //#endregion
|
|
5
10
|
//#region src/types.d.ts
|
|
6
11
|
type ActionRunnerOptions = {
|
|
7
12
|
resolveCredentials?: <T extends CredentialList>(requirements: T, consumer: CredentialConsumer, contextOverride?: Partial<CredentialRunContext>) => Promise<ResolvedCredentials<T>>;
|
|
@@ -131,6 +136,8 @@ type ReplayResult = {
|
|
|
131
136
|
status: "failed";
|
|
132
137
|
error: unknown;
|
|
133
138
|
failedCorrelationId?: string;
|
|
139
|
+
} | {
|
|
140
|
+
status: "canceled";
|
|
134
141
|
} | {
|
|
135
142
|
status: "suspended";
|
|
136
143
|
items: PendingItem[];
|
|
@@ -176,5 +183,5 @@ declare function serializeWorkflowError(error: unknown): SerializedWorkflowError
|
|
|
176
183
|
/** Rebuild an Error from a recorded error so replay re-raises the same failure. */
|
|
177
184
|
declare function deserializeWorkflowError(data: unknown): Error; //#endregion
|
|
178
185
|
//#endregion
|
|
179
|
-
export {
|
|
180
|
-
//# sourceMappingURL=index-
|
|
186
|
+
export { isRunCanceledError as C, executeWorkflow as S, serializeWorkflowError as T, WorkflowHook as _, HookHandle as a, defineWorkflow as b, MemoryEventLog as c, ReplayResult as d, RunCanceledError as f, WorkflowDefinition as g, SleepPendingItem as h, ExecuteWorkflowOptions as i, PendingItem as l, SleepDuration as m, AppendEventInput as n, HookOptions as o, SerializedWorkflowError as p, DurableEventLog as r, HookPendingItem as s, AgentStepExecutor as t, ReplayEvent as u, WorkflowRunContext as v, isWorkflow as w, deserializeWorkflowError as x, WorkflowSleep as y };
|
|
187
|
+
//# sourceMappingURL=index-BUmyUoC2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BUmyUoC2.d.mts","names":["z","CredentialList","ResolvedCredentials","CredentialConsumer","CredentialRunContext","OAuthTokenAdapter","WorkflowEventType","RunCanceledError","Error","constructor","runId","isRunCanceledError","error","ActionRunnerOptions","T","Partial","Promise","resolveCredentials","requirements","consumer","contextOverride","credentialContext","oauthAdapter","AgentStepExecutor","Record","agent","message","sessionId","agentId","input","runPrompt","SleepDuration","Date","WorkflowSleep","duration","HookOptions","ZodType","token","schema","HookHandle","PromiseLike","resumeUrl","WorkflowHook","options","WorkflowRunContext","workspacesRoot","sandbox","root","trigger","triggeredAt","sleep","hook","workflowCoreSchema","ZodString","ZodOptional","ZodEnum","core","$strip","ZodObject","ZodArray","$ZodTypeInternals","ZodCustom","$ZodFunctionArgs","$ZodFunctionOut","ZodFunction","slug","name","description","subscription","mode","system","subscribable","key","files","path","file","dir","output","run","WorkflowMeta","infer","Omit","WorkflowIO","TInputSchema","TOutputSchema","ctx","WORKFLOW","WorkflowDefinition","TInput","TOutput","WorkflowDefinitionInput","isWorkflow","value","defineWorkflow","def","ReplayEvent","id","seq","type","correlationId","data","AppendEventInput","DurableEventLog","append","event","listReplay","SleepPendingItem","kind","resumeAt","HookPendingItem","PendingItem","ReplayResult","status","failedCorrelationId","items","ExecuteWorkflowOptions","eventLog","hookBaseUrl","now","context","runAgent","executeWorkflow","workflow","MemoryEventLog","events","ids","SerializedWorkflowError","serializeWorkflowError","deserializeWorkflowError"],"sources":["../../workflow/dist/index.d.mts"],"mappings":";;;;;cAKcO,gBAAAA,SAAyBC,KAAK;EAC1CC,WAAAA,CAAYC,KAAAA;AAAAA;AAAAA,iBAEGC,kBAAAA,CAAmBC,KAAAA,YAAiBA,KAAAA,IAASL,gBAAgB;AAAA;AAAA,KAGzEM,mBAAAA;EACHI,kBAAAA,cAAgChB,cAAAA,EAAgBiB,YAAAA,EAAcJ,CAAAA,EAAGK,QAAAA,EAAUhB,kBAAAA,EAAoBiB,eAAAA,GAAkBL,OAAAA,CAAQX,oBAAAA,MAA0BY,OAAAA,CAAQd,mBAAAA,CAAoBY,CAAAA;EAC/KO,iBAAAA,GAAoBjB,oBAAAA;EACpBkB,YAAAA,GAAejB,iBAAAA;AAAAA;;KAGZkB,iBAAAA,IAAqBE,KAAAA,WAAgBI,KAAAA;EACxCH,OAAAA;EACAC,SAAAA;EACAC,OAAAA;AAAAA,GACCE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AQC,OAAAA,GAAU5D,KAAAA,WAAgBc,OAAAA,GAAUwE,sBAAAA,GAAyBnG,OAAAA,CAAQ+F,YAAAA;AAAAA;;cAI9IY,cAAAA,YAA0BrB,eAAAA;EAAAA,iBACrBsB,MAAAA;EAAAA,iBACAC,GAAAA;EACjBtB,MAAAA,CAAOC,KAAAA,EAAOH,gBAAAA,GAAmBrF,OAAAA;EACjCyF,UAAAA,CAAW/F,KAAAA,WAAgBM,OAAAA,CAAQ+E,WAAAA;AAAAA;AAAAA;;KAKhC+B,uBAAAA;EACH5D,IAAAA;EACAxC,OAAO;AAAA;AAAA,iBAEQqG,sBAAAA,CAAuBnH,KAAAA,YAAiBkH,uBAAuB;;iBAE/DE,wBAAAA,CAAyB5B,IAAAA,YAAgB5F,KAAK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolvedCredentials, a as CredentialInput, l as CredentialScopeLevel, o as CredentialList } from "./index-
|
|
1
|
+
import { _ as ResolvedCredentials, a as CredentialInput, l as CredentialScopeLevel, o as CredentialList } from "./index-BNcrFoZi.mjs";
|
|
2
2
|
import { o as AgentTool } from "./index-Bd_asjgz.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -20,7 +20,9 @@ type ActionMeta = Omit<z.infer<typeof actionCoreSchema>, "input" | "output" | "r
|
|
|
20
20
|
type ActionIO<TInputSchema extends z.ZodType, TOutputSchema extends z.ZodType, TCredentials> = {
|
|
21
21
|
input: TInputSchema;
|
|
22
22
|
output: TOutputSchema;
|
|
23
|
-
run(input: z.infer<TInputSchema>, credentials: TCredentials
|
|
23
|
+
run(input: z.infer<TInputSchema>, credentials: TCredentials, ctx?: {
|
|
24
|
+
signal: AbortSignal;
|
|
25
|
+
}): Promise<z.infer<TOutputSchema>>;
|
|
24
26
|
};
|
|
25
27
|
declare const ACTION: unique symbol;
|
|
26
28
|
/**
|
|
@@ -101,6 +103,16 @@ declare function runWithinActionExecution<T>(actionKey: string, run: () => Promi
|
|
|
101
103
|
declare function runOutsideActionExecution<T>(fn: () => Promise<T>): Promise<T>;
|
|
102
104
|
/** True while an action's `run` body is executing (agent steps are suppressed). */
|
|
103
105
|
declare function isWithinActionExecution(): boolean; //#endregion
|
|
106
|
+
//#region src/run-signal-context.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Runs `fn` with `signal` as the ambient run-cancellation signal. The worker
|
|
109
|
+
* wires this once per queued run so every nested action/agent/workflow can read
|
|
110
|
+
* it via {@link getRunSignal} without threading a parameter — cancellation stays
|
|
111
|
+
* invisible to authoring SDKs.
|
|
112
|
+
*/
|
|
113
|
+
declare function runWithRunSignal<T>(signal: AbortSignal, fn: () => Promise<T>): Promise<T>;
|
|
114
|
+
/** The current run's cancellation signal; never aborts outside a run. */
|
|
115
|
+
declare function getRunSignal(): AbortSignal; //#endregion
|
|
104
116
|
//#region src/workflow-run-registry.d.ts
|
|
105
117
|
type AgentRunOptions = {
|
|
106
118
|
id?: string;
|
|
@@ -121,5 +133,5 @@ type WorkflowRunHandle = {
|
|
|
121
133
|
declare function registerWorkflowRunGetter(fn: () => WorkflowRunHandle | undefined): void;
|
|
122
134
|
declare function getWorkflowRunHandle(): WorkflowRunHandle | undefined; //#endregion
|
|
123
135
|
//#endregion
|
|
124
|
-
export {
|
|
125
|
-
//# sourceMappingURL=index-
|
|
136
|
+
export { runWithinActionExecution as C, runWithRunSignal as S, isStepInvocation as _, ResolveActionCredentialsFn as a, resolveActionTool as b, WorkflowActionDefinition as c, defineAction as d, executeAction as f, isAction as g, getWorkflowRunHandle as h, AgentRunOptions as i, actionCoreSchema as l, getRunSignal as m, ActionDefinition as n, ResolveActionToolOptions as o, getActionCredentialRequirements as p, ActionDefinitionInput as r, StepInvocation as s, ActionCredentialConsumer as t, createStepInvocation as u, isWithinActionExecution as v, runOutsideActionExecution as x, registerWorkflowRunGetter as y };
|
|
137
|
+
//# sourceMappingURL=index-Bbe9CzYo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Bbe9CzYo.d.mts","names":["z","CREDENTIAL_SCOPE_LEVELS","Credential","CredentialAuthKind","CredentialInput","CredentialList","CredentialRequirement","CredentialScopeLevel","DEFAULT_CREDENTIAL_RESOLUTION_CHAIN","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","chain","selection","id","StepInvocation","TResult1","TResult2","PromiseLike","scope","select","instanceIdOrMap","stepId","then","onfulfilled","reason","onrejected","isStepInvocation","createStepInvocation","state","WorkflowActionDefinition","TRequirements","defineAction","def","executeAction","ActionCredentialConsumer","kind","ResolveActionCredentialsFn","T","Partial","requirements","consumer","contextOverride","ResolveActionToolOptions","resolveCredentials","resolveActionTool","options","runWithinActionExecution","actionKey","runOutsideActionExecution","fn","isWithinActionExecution","runWithRunSignal","getRunSignal","AgentRunOptions","runPrompt","WorkflowRunHandle","actionRunner","credentialChain","credentialSelection","agentRunner","agent","message","sessionId","agentId","registerWorkflowRunGetter","getWorkflowRunHandle"],"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;E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OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAE5Da,uBAAAA,CAAAA;AAAAA;;;;;AA5Fa;AAAA;iBAqGbC,gBAAAA,GAAAA,CAAoBtD,MAAAA,EAAQF,WAAAA,EAAasD,EAAAA,QAAUrD,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAExEe,YAAAA,CAAAA,GAAgBzD,WAAW;AAAA;AAAA,KAGvC0D,eAAAA;EACHxC,EAAAA;EACAyC,SAAAA,GAAYnD,MAAM;AAAA;AAAA,KAEfoD,iBAAAA;EACHC,YAAAA,GAAe/C,MAAAA,WAAiBzB,KAAAA,WAAgB6D,OAAAA;IAC9ChC,EAAAA;IACA4C,eAAAA;IACAC,mBAAAA,GAAsBvD,MAAAA;EAAAA,MAClBP,OAAAA;EACN+D,WAAAA,IAAeC,KAAAA,WAAgB5E,KAAAA;IAC7B6E,OAAAA;IACAC,SAAAA;IACAC,OAAAA;EAAAA,GACClB,OAAAA,GAAUQ,eAAAA,KAAoBzD,OAAAA;AAAAA;AAAAA,iBAElBoE,yBAAAA,CAA0Bf,EAAuC,QAA7BM,iBAAiB;AAAA,iBACrDU,oBAAAA,CAAAA,GAAwBV,iBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolvedCredentials, a as CredentialInput, l as CredentialScopeLevel, o as CredentialList } from "./index-
|
|
1
|
+
import { _ as ResolvedCredentials, a as CredentialInput, l as CredentialScopeLevel, o as CredentialList } from "./index-BNcrFoZi.cjs";
|
|
2
2
|
import { o as AgentTool } from "./index-BcMCpDKh.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -20,7 +20,9 @@ type ActionMeta = Omit<z.infer<typeof actionCoreSchema>, "input" | "output" | "r
|
|
|
20
20
|
type ActionIO<TInputSchema extends z.ZodType, TOutputSchema extends z.ZodType, TCredentials> = {
|
|
21
21
|
input: TInputSchema;
|
|
22
22
|
output: TOutputSchema;
|
|
23
|
-
run(input: z.infer<TInputSchema>, credentials: TCredentials
|
|
23
|
+
run(input: z.infer<TInputSchema>, credentials: TCredentials, ctx?: {
|
|
24
|
+
signal: AbortSignal;
|
|
25
|
+
}): Promise<z.infer<TOutputSchema>>;
|
|
24
26
|
};
|
|
25
27
|
declare const ACTION: unique symbol;
|
|
26
28
|
/**
|
|
@@ -101,6 +103,16 @@ declare function runWithinActionExecution<T>(actionKey: string, run: () => Promi
|
|
|
101
103
|
declare function runOutsideActionExecution<T>(fn: () => Promise<T>): Promise<T>;
|
|
102
104
|
/** True while an action's `run` body is executing (agent steps are suppressed). */
|
|
103
105
|
declare function isWithinActionExecution(): boolean; //#endregion
|
|
106
|
+
//#region src/run-signal-context.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Runs `fn` with `signal` as the ambient run-cancellation signal. The worker
|
|
109
|
+
* wires this once per queued run so every nested action/agent/workflow can read
|
|
110
|
+
* it via {@link getRunSignal} without threading a parameter — cancellation stays
|
|
111
|
+
* invisible to authoring SDKs.
|
|
112
|
+
*/
|
|
113
|
+
declare function runWithRunSignal<T>(signal: AbortSignal, fn: () => Promise<T>): Promise<T>;
|
|
114
|
+
/** The current run's cancellation signal; never aborts outside a run. */
|
|
115
|
+
declare function getRunSignal(): AbortSignal; //#endregion
|
|
104
116
|
//#region src/workflow-run-registry.d.ts
|
|
105
117
|
type AgentRunOptions = {
|
|
106
118
|
id?: string;
|
|
@@ -121,5 +133,5 @@ type WorkflowRunHandle = {
|
|
|
121
133
|
declare function registerWorkflowRunGetter(fn: () => WorkflowRunHandle | undefined): void;
|
|
122
134
|
declare function getWorkflowRunHandle(): WorkflowRunHandle | undefined; //#endregion
|
|
123
135
|
//#endregion
|
|
124
|
-
export {
|
|
125
|
-
//# sourceMappingURL=index-
|
|
136
|
+
export { runWithinActionExecution as C, runWithRunSignal as S, isStepInvocation as _, ResolveActionCredentialsFn as a, resolveActionTool as b, WorkflowActionDefinition as c, defineAction as d, executeAction as f, isAction as g, getWorkflowRunHandle as h, AgentRunOptions as i, actionCoreSchema as l, getRunSignal as m, ActionDefinition as n, ResolveActionToolOptions as o, getActionCredentialRequirements as p, ActionDefinitionInput as r, StepInvocation as s, ActionCredentialConsumer as t, createStepInvocation as u, isWithinActionExecution as v, runOutsideActionExecution as x, registerWorkflowRunGetter as y };
|
|
137
|
+
//# sourceMappingURL=index-BmXIGJlQ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BmXIGJlQ.d.cts","names":["z","CREDENTIAL_SCOPE_LEVELS","Credential","CredentialAuthKind","CredentialInput","CredentialList","CredentialRequirement","CredentialScopeLevel","DEFAULT_CREDENTIAL_RESOLUTION_CHAIN","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","chain","selection","id","StepInvocation","TResult1","TResult2","PromiseLike","scope","select","instanceIdOrMap","stepId","then","onfulfilled","reason","onrejected","isStepInvocation","createStepInvocation","state","WorkflowActionDefinition","TRequirements","defineAction","def","executeAction","ActionCredentialConsumer","kind","ResolveActionCredentialsFn","T","Partial","requirements","consumer","contextOverride","ResolveActionToolOptions","resolveCredentials","resolveActionTool","options","runWithinActionExecution","actionKey","runOutsideActionExecution","fn","isWithinActionExecution","runWithRunSignal","getRunSignal","AgentRunOptions","runPrompt","WorkflowRunHandle","actionRunner","credentialChain","credentialSelection","agentRunner","agent","message","sessionId","agentId","registerWorkflowRunGetter","getWorkflowRunHandle"],"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,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA,qBAAsCzB,CAAAA,CAAE0B,OAAAA,mBAA0B1B,CAAAA,CAAEwB,IAAAA,CAAKC,iBAAAA;EAChIe,WAAAA,EAAaxC,CAAAA,CAAEuB,WAAAA,CAAYvB,CAAAA,CAAE6B,QAAAA,CAAS7B,CAAAA,CAAE2B,SAAAA,CADrBC,eAAAA,EAC4EA,eAAAA;EAC/Fa,GAAAA,EAAKzC,CAAAA,CAAEgC,WAAAA,CAAYhC,CAAAA,CAAEwB,IAAAA,CAAKM,gBAAAA,EAAkB9B,CAAAA,CAAEwB,IAAAA,CAAKO,eAAAA;AAAAA,GAClD/B,CAAAA,CAAEwB,IAAAA,CAAKS,MAAAA;AAAAA,KACLS,UAAAA,GAAaE,IAAAA,CAAK5C,CAAAA,CAAE2C,KAAAA,QAAatB,gBAAAA;EACpCmB,WAAAA,GAAc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,CAAkBnC,MAAAA,EAAQD,IAAAA,CAAKR,gBAAAA,4GAA4H6C,OAAAA,GAAUH,wBAAAA,GAA2B5E,SAAAA;AAAAA;;;AA/EjM;AAAA;iBAsFCgF,wBAAAA,GAAAA,CAA4BC,SAAAA,UAAmB5D,GAAAA,QAAWS,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;;;;;iBAM/EW,yBAAAA,GAAAA,CAA6BC,EAAAA,QAAUrD,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAE5Da,uBAAAA,CAAAA;AAAAA;;;;;AA5Fa;AAAA;iBAqGbC,gBAAAA,GAAAA,CAAoBtD,MAAAA,EAAQF,WAAAA,EAAasD,EAAAA,QAAUrD,OAAAA,CAAQyC,CAAAA,IAAKzC,OAAAA,CAAQyC,CAAAA;;iBAExEe,YAAAA,CAAAA,GAAgBzD,WAAW;AAAA;AAAA,KAGvC0D,eAAAA;EACHxC,EAAAA;EACAyC,SAAAA,GAAYnD,MAAM;AAAA;AAAA,KAEfoD,iBAAAA;EACHC,YAAAA,GAAe/C,MAAAA,WAAiBzB,KAAAA,WAAgB6D,OAAAA;IAC9ChC,EAAAA;IACA4C,eAAAA;IACAC,mBAAAA,GAAsBvD,MAAAA;EAAAA,MAClBP,OAAAA;EACN+D,WAAAA,IAAeC,KAAAA,WAAgB5E,KAAAA;IAC7B6E,OAAAA;IACAC,SAAAA;IACAC,OAAAA;EAAAA,GACClB,OAAAA,GAAUQ,eAAAA,KAAoBzD,OAAAA;AAAAA;AAAAA,iBAElBoE,yBAAAA,CAA0Bf,EAAuC,QAA7BM,iBAAiB;AAAA,iBACrDU,oBAAAA,CAAAA,GAAwBV,iBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolvedCredentials, i as CredentialConsumer, o as CredentialList } from "./index-
|
|
1
|
+
import { _ as ResolvedCredentials, i as CredentialConsumer, o as CredentialList } from "./index-BNcrFoZi.cjs";
|
|
2
2
|
import { o as AgentTool, s as AgentToolResult } from "./index-BcMCpDKh.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -90,4 +90,4 @@ type ToolCredentialResolver = {
|
|
|
90
90
|
//#region src/context.d.ts
|
|
91
91
|
//#endregion
|
|
92
92
|
export { 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 };
|
|
93
|
-
//# sourceMappingURL=index-
|
|
93
|
+
//# sourceMappingURL=index-CUrU-w2Y.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CUrU-w2Y.d.cts","names":["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","CREDENTIAL_SCOPE_LEVELS","CredentialConsumer","CredentialConsumer$1","CredentialInput","CredentialList","CredentialRunContext","CredentialRunContext$1","CredentialScopeType","CredentialScopeType$1","CredentialSelectionOption","CredentialSelectionOption$1","DEFAULT_CREDENTIAL_RESOLUTION_CHAIN","OAuthAccessTokenRefreshParams","OAuthAccessTokenRefreshResult","OAuthAccessTokenRefresher","OAuthTokenAdapter","OAuthTokenAdapter$1","OAuthTokenRefreshRegistry","OAuthTokenRefreshRegistry$1","ResolvedCredentials","MCP","McpConnection","McpDefinition","McpDefinition$1","McpDefinitionInput","AgentTool","z","CredentialToolErrorCapture","tools","takeCredentialError","captureCredentialToolErrors","WorkflowSubscriptionProfile","id","workflowKey","userId","enabled","CredentialRunContextInput","Record","Partial","subscription","orgId","projectId","credentialSelection","request","ToolCredentialResolver","T","Promise","resolve","requirements","consumer","buildCredentialRunContext","input","buildWorkflowRunContext","actor","CredentialBackend","ZodType","resolveApiKey","instanceId","schema","getOAuthAccessToken","connectionId","accessToken","CreateLocalCredentialBackendOptions","_$_keystrokehq_shared0","tokenRefresh","CreatePlatformCredentialBackendOptions","platformUrl","workerToken","CreateCredentialResolverOptions","context","credentialBackend","oauthAdapter","CredentialResolver","createCredentialResolver","options","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","key","chainAttempted","constructor","NeedsSelectionError","OAuthNotConfiguredError","message","CredentialAccessDeniedError","isCredentialError","error","credentialScopeMatchesContext","scopeType","scopeId","formatCredentialErrorMessage","stubOAuthTokenAdapter","createOAuthTokenRefreshRegistry","createLocalCredentialBackend","createPlatformCredentialBackend","isWorkerRuntime","createCredentialBackend","setProjectCredentialBackend","backend","getProjectCredentialBackend","createOAuthTokenAdapterFromBackend"],"sources":["../../mcp/dist/index.d.mts","../../credentials/dist/index.d.mts"],"mappings":";;;;;;cAKcI,GAAAA;AAAAA,KACTC,kBAAAA;EACHE,MAAAA,GAASD,WAAW;AAAA;AAAA,KAEjBE,YAAAA;AAAAA,KACAC,cAAAA;EACHE,OAAAA,GAAUD,MAAAA;EACVE,GAAAA,GAAMF,MAAAA,kBALc;E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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;;;KC1DzIkE,sBAAAA;EACHG,OAAAA,WAAkB3C,cAAAA,EAAgB4C,YAAAA,EAAcH,CAAAA,EAAGI,QAAAA,EAAU/C,kBAAAA,GAAuB4C,OAAAA,CAAQ3B,mBAAAA,CAAoB0B,CAAAA;AAAAA;AAAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CredentialRunContext, h as OAuthTokenAdapter } from "./index-
|
|
1
|
+
import { c as CredentialRunContext, h as OAuthTokenAdapter } from "./index-BNcrFoZi.mjs";
|
|
2
2
|
import { a as AgentState, i as AgentMessage, l as ThinkingLevel, n as AgentOptions, o as AgentTool, p as Model, t as Agent$1 } from "./index-Bd_asjgz.mjs";
|
|
3
|
-
import { n as ActionDefinition } from "./index-
|
|
4
|
-
import { a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-
|
|
3
|
+
import { n as ActionDefinition } from "./index-Bbe9CzYo.mjs";
|
|
4
|
+
import { a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-Qnwdoq7U.mjs";
|
|
5
5
|
import { C as AssetManifest, T as SandboxDefinition, a as RuntimeHooks, c as SkillDefinition, o as RuntimeProvider, s as Sandbox } from "./index-CqbBhKYv.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { DatabaseSync } from "node:sqlite";
|
|
@@ -149,6 +149,7 @@ type PromptResponse = {
|
|
|
149
149
|
sessionId: string;
|
|
150
150
|
messages: AgentMessage[];
|
|
151
151
|
error: string | null;
|
|
152
|
+
canceled?: boolean;
|
|
152
153
|
}; //#endregion
|
|
153
154
|
//#region src/define/build-agent-runtime.d.ts
|
|
154
155
|
type BuildAgentRuntimeContext = {
|
|
@@ -275,4 +276,4 @@ type ResolvedAgentTools = {
|
|
|
275
276
|
declare function resolveAgentTools(tools: Array<ActionDefinition | AgentTool | AgentMcpTool>, resolver: ToolCredentialResolver): Promise<ResolvedAgentTools>; //#endregion
|
|
276
277
|
//#endregion
|
|
277
278
|
export { normalizeAgentDefinition as A, AgentCreateInputSchema as B, defineAgent as C, getSubagentToolMetadata as D, errorMessage as E, resolveAgentTools as F, parseAgentCreateInput as G, AgentModelIdSchema as H, resolveAgentWorkspaceRoot as I, resolveAgentModel as K, runAgentPrompt as L, prompt as M, resolveAgentAssets as N, loadAssetManifest as O, resolveAgentId as P, snapshot as R, createAgent as S, defineTool as T, DEFAULT_THINKING_LEVEL as U, AgentModelId as V, ThinkingLevelSchema as W, SubagentTool as _, AgentDefinitionInput as a, SubagentToolMetadata as b, BuildAgentRuntimeContext as c, PromptResponse as d, ResolvedAgentAssets as f, SessionAgentMismatchError as g, SandboxedAgentRuntime as h, AgentDefinition as i, prepareAgentSession as j, messages as k, DefineSubagentToolInput as l, SUBAGENT_TOOL as m, AgentAssetInput as n, AgentRuntime as o, RunAgentPromptOptions as p, resolveThinkingLevel as q, AgentConfig as r, AgentSnapshot as s, Agent as t, PromptInput as u, SubagentToolDetails as v, defineSubagentTool as w, buildAgentRuntime as x, SubagentToolInherit as y, AgentCreateInput as z };
|
|
278
|
-
//# sourceMappingURL=index-
|
|
279
|
+
//# sourceMappingURL=index-CyCx29m7.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CyCx29m7.d.mts","names":["h","ThinkingLevel","r","Model","z","AgentModelId","AgentModelIdSchema","ZodCustom","resolveAgentModel","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","MemoryConfig","enabled","dir","memoryFile","userFile","archiveDir","dbFile","sessionsDir","memoryCharLimit","userCharLimit","archiveTocLimit","securityScan","loadMemoryConfig","Partial","workspaceRoot","overrides","MemoryHandle","config","db","reindexSessions","close","MemoryOptions","isMemoryEnabled","options","prepareMemory","SnapshotResult","block","warnings","buildMemorySnapshot","ArchiveHit","path","snippet","rank","SessionHit","session_file","line_no","role","ts","searchArchive","query","limit","searchSessions","TranscriptLineInput","Date","seq","eventType","payload","createdAt","appendSessionLine","Promise","sessionId","input","createMemorySearchTool","TString","TLiteral","TUnion","TOptional","TNumber","TBoolean","TObject","name","label","description","parameters","scope","full","execute","_id","params","content","type","text","details","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","McpAuthOptions","McpCallToolOptions","McpConnection","McpConnection$1","McpDefinition","McpDefinition$1","McpDefinitionInput","McpHttpTransport","McpServerOptions","McpStdioOptions","McpStdioTransport","McpTransport","connectMcpDefinition","connectMcpServer","connectMcpStdio","defineMcp","isMcp","ActionDefinition","CredentialRunContext","OAuthTokenAdapter","ToolCredentialResolver","MemoryHandle","MemoryOptions","AssetManifest","RuntimeHooks","RuntimeProvider","Sandbox","SandboxDefinition","SkillDefinition","AgentConfig","Omit","systemPrompt","model","thinkingLevel","messages","tools","AgentRuntime","Readonly","pi","AgentSnapshot","state","createAgent","config","prompt","Promise","runtime","message","snapshot","errorMessage","defineTool","T","tool","AgentMcpTool","AgentDefinitionAuthorInput","Array","slug","name","description","runtimeHooks","skills","files","sandbox","runtimeProvider","memory","AgentDefinitionInput","AgentDefinition","PromptInput","sessionId","subscriptionId","context","RunAgentPromptOptions","stepId","workspacesRoot","workspaceRoot","credentials","oauthAdapter","hostTools","tracing","trigger","gatewayAttachmentId","gatewayAttachmentKey","agentKey","skipAgentSessionSpan","invocationRoute","PromptResponse","error","canceled","BuildAgentRuntimeContext","agentId","SandboxedAgentRuntime","mcpConnections","takeCredentialError","buildAgentRuntime","def","ctx","runPrompt","Agent","buildRuntime","input","defineAgent","resolveAgentId","agentSlug","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","resolveAgentWorkspaceRoot","AgentAssetInput","skillKeys","ResolvedAgentAssets","loadAssetManifest","resolveAgentAssets","ResolvedAgentTools","resolveAgentTools","resolver"],"sources":["../../agent/dist/schemas-2vNCq27N.d.mts","../../memory/dist/index.d.mts","../../agent/dist/index.d.mts"],"mappings":";;;;;;;;;;;KAKKK,YAAAA;AAAAA,cACSC,kBAAAA,EAAoBF,CAAAA,CAAEG,SAAS;;iBAE5BC,iBAAAA,CAAkBC,OAAAA,EAASJ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AmB5C,SAAAA,GAAY+E,YAAAA,GAAemF,QAAAA,EAAUnH,sBAAAA,GAAyBwB,OAAAA,CAAQyF,kBAAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CredentialRunContext, h as OAuthTokenAdapter } from "./index-
|
|
1
|
+
import { c as CredentialRunContext, h as OAuthTokenAdapter } from "./index-BNcrFoZi.cjs";
|
|
2
2
|
import { a as AgentState, i as AgentMessage, l as ThinkingLevel, n as AgentOptions, o as AgentTool, p as Model, t as Agent$1 } from "./index-BcMCpDKh.cjs";
|
|
3
|
-
import { n as ActionDefinition } from "./index-
|
|
4
|
-
import { a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-
|
|
3
|
+
import { n as ActionDefinition } from "./index-BmXIGJlQ.cjs";
|
|
4
|
+
import { a as McpDefinition, i as McpConnection, t as ToolCredentialResolver } from "./index-CUrU-w2Y.cjs";
|
|
5
5
|
import { C as AssetManifest, T as SandboxDefinition, a as RuntimeHooks, c as SkillDefinition, o as RuntimeProvider, s as Sandbox } from "./index-B4HxxDhO.cjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { DatabaseSync } from "node:sqlite";
|
|
@@ -149,6 +149,7 @@ type PromptResponse = {
|
|
|
149
149
|
sessionId: string;
|
|
150
150
|
messages: AgentMessage[];
|
|
151
151
|
error: string | null;
|
|
152
|
+
canceled?: boolean;
|
|
152
153
|
}; //#endregion
|
|
153
154
|
//#region src/define/build-agent-runtime.d.ts
|
|
154
155
|
type BuildAgentRuntimeContext = {
|
|
@@ -275,4 +276,4 @@ type ResolvedAgentTools = {
|
|
|
275
276
|
declare function resolveAgentTools(tools: Array<ActionDefinition | AgentTool | AgentMcpTool>, resolver: ToolCredentialResolver): Promise<ResolvedAgentTools>; //#endregion
|
|
276
277
|
//#endregion
|
|
277
278
|
export { normalizeAgentDefinition as A, AgentCreateInputSchema as B, defineAgent as C, getSubagentToolMetadata as D, errorMessage as E, resolveAgentTools as F, parseAgentCreateInput as G, AgentModelIdSchema as H, resolveAgentWorkspaceRoot as I, resolveAgentModel as K, runAgentPrompt as L, prompt as M, resolveAgentAssets as N, loadAssetManifest as O, resolveAgentId as P, snapshot as R, createAgent as S, defineTool as T, DEFAULT_THINKING_LEVEL as U, AgentModelId as V, ThinkingLevelSchema as W, SubagentTool as _, AgentDefinitionInput as a, SubagentToolMetadata as b, BuildAgentRuntimeContext as c, PromptResponse as d, ResolvedAgentAssets as f, SessionAgentMismatchError as g, SandboxedAgentRuntime as h, AgentDefinition as i, prepareAgentSession as j, messages as k, DefineSubagentToolInput as l, SUBAGENT_TOOL as m, AgentAssetInput as n, AgentRuntime as o, RunAgentPromptOptions as p, resolveThinkingLevel as q, AgentConfig as r, AgentSnapshot as s, Agent as t, PromptInput as u, SubagentToolDetails as v, defineSubagentTool as w, buildAgentRuntime as x, SubagentToolInherit as y, AgentCreateInput as z };
|
|
278
|
-
//# sourceMappingURL=index-
|
|
279
|
+
//# sourceMappingURL=index-DuYf0Fdc.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DuYf0Fdc.d.cts","names":["h","ThinkingLevel","r","Model","z","AgentModelId","AgentModelIdSchema","ZodCustom","resolveAgentModel","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","MemoryConfig","enabled","dir","memoryFile","userFile","archiveDir","dbFile","sessionsDir","memoryCharLimit","userCharLimit","archiveTocLimit","securityScan","loadMemoryConfig","Partial","workspaceRoot","overrides","MemoryHandle","config","db","reindexSessions","close","MemoryOptions","isMemoryEnabled","options","prepareMemory","SnapshotResult","block","warnings","buildMemorySnapshot","ArchiveHit","path","snippet","rank","SessionHit","session_file","line_no","role","ts","searchArchive","query","limit","searchSessions","TranscriptLineInput","Date","seq","eventType","payload","createdAt","appendSessionLine","Promise","sessionId","input","createMemorySearchTool","TString","TLiteral","TUnion","TOptional","TNumber","TBoolean","TObject","name","label","description","parameters","scope","full","execute","_id","params","content","type","text","details","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","McpAuthOptions","McpCallToolOptions","McpConnection","McpConnection$1","McpDefinition","McpDefinition$1","McpDefinitionInput","McpHttpTransport","McpServerOptions","McpStdioOptions","McpStdioTransport","McpTransport","connectMcpDefinition","connectMcpServer","connectMcpStdio","defineMcp","isMcp","ActionDefinition","CredentialRunContext","OAuthTokenAdapter","ToolCredentialResolver","MemoryHandle","MemoryOptions","AssetManifest","RuntimeHooks","RuntimeProvider","Sandbox","SandboxDefinition","SkillDefinition","AgentConfig","Omit","systemPrompt","model","thinkingLevel","messages","tools","AgentRuntime","Readonly","pi","AgentSnapshot","state","createAgent","config","prompt","Promise","runtime","message","snapshot","errorMessage","defineTool","T","tool","AgentMcpTool","AgentDefinitionAuthorInput","Array","slug","name","description","runtimeHooks","skills","files","sandbox","runtimeProvider","memory","AgentDefinitionInput","AgentDefinition","PromptInput","sessionId","subscriptionId","context","RunAgentPromptOptions","stepId","workspacesRoot","workspaceRoot","credentials","oauthAdapter","hostTools","tracing","trigger","gatewayAttachmentId","gatewayAttachmentKey","agentKey","skipAgentSessionSpan","invocationRoute","PromptResponse","error","canceled","BuildAgentRuntimeContext","agentId","SandboxedAgentRuntime","mcpConnections","takeCredentialError","buildAgentRuntime","def","ctx","runPrompt","Agent","buildRuntime","input","defineAgent","resolveAgentId","agentSlug","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","resolveAgentWorkspaceRoot","AgentAssetInput","skillKeys","ResolvedAgentAssets","loadAssetManifest","resolveAgentAssets","ResolvedAgentTools","resolveAgentTools","resolver"],"sources":["../../agent/dist/schemas-2vNCq27N.d.mts","../../memory/dist/index.d.mts","../../agent/dist/index.d.mts"],"mappings":";;;;;;;;;;;KAKKK,YAAAA;AAAAA,cACSC,kBAAAA,EAAoBF,CAAAA,CAAEG,SAAS;;iBAE5BC,iBAAAA,CAAkBC,OAAAA,EAASJ,YAAAA,GAAeF,KAAK;AAAA;AAAA,cAGlDO,mBAAAA,EAAqBN,CAAAA,CAAEO,OAAO;EAC1CC,GAAAA;EACAC,OAAAA;EACAC,GAAAA;EACAC,MAAAA;EACAC,IAAAA;EACAC,KAAAA;AAAAA;AAAAA,cAEYC,sBAAAA;AAb+B;AAAA,cAe/BC,sBAAAA,EAAwBf,CAAAA,CAAEoB,SAAAA;EACtCC,YAAAA,EAAcrB,CAAAA,CAAEgB,SAAAA;EAChBM,KAAAA,EAAOtB,CAAAA,CAAEG,SAAAA;EACToB,aAAAA,EAAevB,CAAAA,CAAEiB,WAAAA,CAAYjB,CAAAA,CAAEO,OAAAA;IAC7BC,GAAAA;IACAC,OAAAA;IACAC,GAAAA;IACAC,MAAAA;IACAC,IAAAA;IACAC,KAAAA;EAAAA;AAAAA,GAEDb,CAAAA,CAAEkB,IAAAA,CAAKC,MAAAA;AAAAA,KACLK,gBAAAA,GAAmBxB,CAAAA,CAAEyB,KAAK,QAAQV,sBAAAA;AAAAA,iBACtBW,qBAAAA,CAAsBC,KAAAA,YAAiBH,gBAAgB;AAAA,iBACvDI,oBAAAA,CAAqBC,KAAAA,GAAQhC,aAAAA,GAAgBA,aAAa;;;;KC/BtE2C,YAAAA;E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,eAAAA;EACHC,SAAAA;EACArE,KAAAA;EACAyC,SAAAA;EACAyB,OAAAA;AAAAA;AAAAA,KAEGI,mBAAAA;EACHvE,MAAAA,GAAS/B,eAAAA;EACTiC,OAAAA,GAAUlC,iBAAiB;AAAA;AAAA,iBAEZwG,iBAAAA,CAAkBL,OAAAA,WAAkBvG,aAAa;;iBAEjD6G,kBAAAA,CAAmBlC,KAAAA,EAAO8B,eAAAA,GAAkBE,mBAAmB;AAAA;AAAA,KAG3EG,kBAAAA;EACHlG,KAAAA,EAAO9D,SAAAA;EACPqH,cAAAA,EAAgBvF,aAAe;AAAA;AAAA,iBAEhBmI,iBAAAA,CAAkBnG,KAAAA,EAAOmB,KAAAA,CAAMrC,gBAAAA,GAAmB5C,SAAAA,GAAY+E,YAAAA,GAAemF,QAAAA,EAAUnH,sBAAAA,GAAyBwB,OAAAA,CAAQyF,kBAAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as ResolvedCredentials, i as CredentialConsumer, o as CredentialList } from "./index-
|
|
1
|
+
import { _ as ResolvedCredentials, i as CredentialConsumer, o as CredentialList } from "./index-BNcrFoZi.mjs";
|
|
2
2
|
import { o as AgentTool, s as AgentToolResult } from "./index-Bd_asjgz.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -90,4 +90,4 @@ type ToolCredentialResolver = {
|
|
|
90
90
|
//#region src/context.d.ts
|
|
91
91
|
//#endregion
|
|
92
92
|
export { 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 };
|
|
93
|
-
//# sourceMappingURL=index-
|
|
93
|
+
//# sourceMappingURL=index-Qnwdoq7U.d.mts.map
|