@granular-software/sdk 0.4.76 → 0.4.78

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as EnvironmentData, a as EnvironmentRecordImportSummary, b as EndpointMode, c as EffectCommitRequest, C as CommitReceipt, T as ToolWithHandler, P as ProjectionResult, d as ProjectionMapper, e as CommitTransitionOutcomeDeclaration, f as CommitDeclaration, g as EffectHandlerContext, F as FeedPublishTransport, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, h as RecordObjectOptions, i as ManifestContent, j as CommitTransitionInvocation, S as SessionHeapEntry, k as SessionHeapList, l as FeedItem, m as SessionHeapSnapshot, n as Prompt, o as SessionTranscriptEntry, A as ArtifactWorkflowNode, p as ArtifactWorkflowNodeStatus, q as ArtifactWorkflow, r as SessionArtifactRecord } from './client-C7bj1UeD.js';
2
- export { aP as APIError, aQ as AccessTokenProvider, a7 as ActionSuggestionFeedItem, aZ as AdoptEnvironmentOptions, bO as AgentCommitStatus, cs as ArtifactApprovalDecisionInput, ct as ArtifactApprovalDecisionResult, cu as ArtifactApprovalTask, cv as ArtifactApprovalTaskListOptions, cw as ArtifactApprovalTaskStatus, a3 as ArtifactFeedItem, bu as ArtifactOptionsHandler, cx as ArtifactWorkflowAttention, cy as ArtifactWorkflowCompletionState, cz as ArtifactWorkflowNodeAvailability, cA as ArtifactWorkflowNodeKind, cB as ArtifactWorkflowOperationPhase, cC as ArtifactWorkflowRecap, cD as ArtifactWorkflowRecapItem, b8 as Assignment, b9 as AssignmentListResponse, c5 as AssistantReplyPublicationInput, c6 as AssistantReplyPublicationResult, bP as BaseProjectionResult, ba as Build, bb as BuildListResponse, bc as BuildPolicy, bd as BuildStatus, bQ as CanonicalProjectedRecord, bR as CommitChangeReceipt, bS as CommitSafeError, bT as CommitTransitionReceipt, aI as ConditionIR, a_ as ConnectOptions, a$ as ConversationSessionInfo, b0 as ConversationSessionListOptions, b1 as ConversationSessionListResponse, b2 as ConversationSessionListStatus, be as CreateEnvironmentData, bf as CreatePermissionProfileData, bg as CreateSandboxData, b3 as CreateSessionOptions, dv as DefineRelationshipOptions, aR as DeleteResponse, D as DomainState, bv as EffectArtifactOptionsInvocation, bw as EffectArtifactRelationshipOption, bx as EffectArtifactRelationshipOptionsResult, bU as EffectCommitContext, by as EffectHandler, bz as EffectInfo, bA as EffectInvocationMetadata, bB as EffectInvocationMode, bV as EffectProjectionResult, bC as EffectSchema, bD as EffectVersionSelector, bE as EffectWithHandler, bF as EffectsChangedEvent, s as Environment, c7 as EnvironmentFeedbackRecord, dw as EnvironmentImporter, dx as EnvironmentImporterImportOptions, bh as EnvironmentListResponse, t as EnvironmentSession, dy as EnvironmentSetupImporterClaim, dz as EnvironmentSetupLifecycleStatus, dA as EnvironmentSetupSummary, dB as EnvironmentSetupTriggerReason, dC as EnvironmentStateMachineProxy, dD as EnvironmentStateObservationInput, dE as EnvironmentStateProxy, dF as EnvironmentStateTarget, dG as EnvironmentStateUpdateInput, bW as ExternalCommitOptions, an as FeedDiagnostic, ao as FeedDiagnosticListener, av as FeedDocumentState, J as FeedFeedbackTone, a4 as FeedFileSource, H as FeedIconToken, Q as FeedItemBase, L as FeedItemKind, ae as FeedListOptions, al as FeedListTransport, X as FeedObjectReference, af as FeedPage, aG as FeedPublisher, ad as FeedSnapshot, am as FeedSnapshotRegressionReason, B as FeedSource, z as FeedSourceActor, ag as FeedSubscribeOptions, ah as FeedSubscriptionChange, Z as FeedTableCell, _ as FeedTableColumn, a1 as FeedTableProjection, a0 as FeedTableRow, $ as FeedTableRowReference, N as FeedTarget, K as FeedTransientFeedbackTone, dj as FeedTransientPatchMessage, V as FeedbackFeedItem, a5 as FileFeedItem, ap as GRANULAR_FEED_DIAGNOSTIC_EVENT, G as Granular, aX as GranularAuth, aY as GranularOptions, aS as GraphQLResult, bG as InstanceEffectHandler, I as InstanceToolHandler, c8 as Job, dk as JobActionTraceMessage, c9 as JobFeedbackInput, ca as JobFeedbackMetadata, cb as JobFeedbackRecord, cc as JobFeedbackSentiment, cd as JobFeedbackToolCall, ce as JobStatus, cf as JobSubmitResult, bi as Manifest, dV as ManifestApprovalRequiredSpec, dW as ManifestCreatesSpec, dX as ManifestDryRunSpec, dY as ManifestEffectDeclaration, dZ as ManifestEffectSchema, d_ as ManifestEnumRuleSpec, d$ as ManifestEventStreamDef, e0 as ManifestEventTypeDef, e1 as ManifestFilterBySpec, e2 as ManifestImport, bj as ManifestListResponse, e3 as ManifestOperation, e4 as ManifestPostConditionSpec, e5 as ManifestPropertySpec, e6 as ManifestRelationshipDef, e7 as ManifestReverseSpec, e8 as ManifestStateMachineSpec, e9 as ManifestStateMachineStateSpec, ea as ManifestStateMachineTransitionSpec, eb as ManifestStateTransitionActionSpec, ec as ManifestStateTransitionAssigneeSpec, ed as ManifestStateTransitionExpectedOutcomeSpec, ee as ManifestStateTransitionInputBinding, ef as ManifestStateTransitionOutcomeSpec, eg as ManifestStateTransitionPermissionSpec, eh as ManifestStateTransitionRelatedStateRequirementSpec, ei as ManifestStateTransitionRequirementsSpec, ej as ManifestValidationOperator, ek as ManifestValidationRuleSpec, el as ManifestVolume, cU as ManualActionListOptions, cV as ManualActionOccurrence, cW as ManualActionRecordResult, cX as ManualActionRelatedRecord, cY as ManualActionSource, cZ as ManualActionStatus, c_ as ManualActionSuggestion, c$ as ManualActionSuggestionOptions, d0 as ManualActionTarget, d2 as MarkUserEnvironmentReadOptions, aJ as MatchedPolicy, U as MessageFeedItem, dH as ModelRef, a6 as NormalizedSuggestedArtifact, bX as ObjectProjectionChange, bY as ObjectReference, Y as ObjectsFeedItem, bZ as ObservationReceipt, O as OntologyHandle, b4 as OpenEnvironmentOptions, bk as PermissionProfile, bl as PermissionProfileListResponse, bm as PermissionRules, aK as PolicyOperator, aL as PolicyOrigin, aM as PolicyPredicateSource, aN as PolicyRuleIR, aO as PolicySource, b_ as ProjectionChange, a8 as PromptFeedItem, bH as PublishEffectsResult, aC as PublishFeedbackOptions, x as PublishToolsResult, aD as PublishTransientFeedbackOptions, dl as RPCRequest, dm as RPCRequestFromServer, dn as RPCResponse, dI as RecordImport, dJ as RecordImportItem, dK as RecordImportItemStatus, dL as RecordImportOptions, dM as RecordImportStats, dN as RecordImportStatus, dO as RecordImportWriteMode, d1 as RecordManualActionInput, d3 as RecordMentionInput, dP as RecordObjectResult, dQ as RecordObjectStateValue, dR as RecordObjectsChunkInfo, dS as RecordObjectsOptions, d4 as RecordSearchOptions, d5 as RecordSearchResult, b5 as RecordUserOptions, dT as RelationshipInfo, b$ as RelationshipProjectionChange, bI as ResolvedEffectApprovalRequired, bJ as ResolvedEffectDryRun, bK as ResolvedEffectPostCondition, bL as ResolvedEffectReverse, dU as RunEnvironmentImporterOptions, bn as Sandbox, bo as SandboxListResponse, bp as SemanticVersionDiff, bq as SemanticVersionDiffEntry, v as Session, cE as SessionArtifactApprovalOptions, cF as SessionArtifactAutonomyPolicy, cG as SessionArtifactExecutionOptions, cH as SessionArtifactExecutionResult, cI as SessionArtifactFieldProvenance, cJ as SessionArtifactFieldProvenanceSource, cK as SessionArtifactKind, cL as SessionArtifactListOptions, cM as SessionArtifactRelationshipCreateInput, cN as SessionArtifactRelationshipOption, cO as SessionArtifactRelationshipOptionsInput, cP as SessionArtifactRelationshipOptionsResult, cQ as SessionArtifactRequestContext, cR as SessionArtifactRequestContextSource, cS as SessionArtifactStatus, cT as SessionArtifactValidationResult, aT as SessionCollectionListOptions, d6 as SessionCollectionListResult, d7 as SessionDocumentResult, ai as SessionFeedApi, aB as SessionFeedController, au as SessionFeedControllerOptions, cn as SessionFileKind, co as SessionFileRecord, cp as SessionFileSource, cq as SessionFileStatus, cr as SessionFileUploadOptions, d8 as SessionHeapFieldType, d9 as SessionHeapFieldValue, da as SessionHeapVariable, db as SessionJobListOptions, dc as SessionJobRecord, c0 as SessionMutationView, cg as SessionTimelineEvent, ch as SessionTranscriptActionSuggestion, ci as SessionTranscriptShowRefs, aE as SettleTransientFeedbackOptions, dp as SnapshotResetMessage, c1 as SourceAcknowledgement, c2 as StateObservationProjectionChange, aU as StreamEvent, aV as StreamStats, aW as StreamSubscription, b6 as Subject, a2 as TableFeedItem, y as ToolHandler, bM as ToolInfo, dq as ToolInvokeParams, dr as ToolResultParams, w as ToolSchema, bN as ToolsChangedEvent, ac as TransientFeedItem, a9 as TransientFeedItemBase, ab as TransientFeedbackFeedItem, aF as TransientFeedbackHandle, aa as TransientMessageFeedItem, c3 as TransitionOutcomeProjection, c4 as TransitionProjectionResult, b7 as User, dd as UserEnvironmentArtifactAttention, de as UserEnvironmentMessagePreview, df as UserEnvironmentPrompt, dg as UserEnvironmentSessionState, dh as UserEnvironmentState, di as UserEnvironmentStateOptions, cj as UserMessageAppendResult, ck as UserMessageInput, cl as UserMessageShowRefs, cm as UserMessageTarget, br as Version, bs as VersionTag, bt as VersionTracking, W as WSClient, ds as WSClientOptions, dt as WSDisconnectInfo, du as WSReconnectErrorInfo, aH as createFeedPublisher, at as emitFeedDiagnostic, as as emitFeedDiagnosticToDefaultSink, aw as emptyFeedSnapshot, ax as hasCanonicalSessionFeedActivation, ay as isCanonicalSessionFeedDocument, u as isGraphQLMutationDocument, aj as mergeFeedItemsBySequence, ar as normalizeFeedDiagnostic, aq as normalizeFeedDiagnosticKind, aA as normalizeFeedPage, ak as orderTransientFeedItems, az as readSessionFeedSnapshot } from './client-C7bj1UeD.js';
1
+ import { E as EnvironmentData, a as EnvironmentRecordImportSummary, b as EndpointMode, c as EffectCommitRequest, C as CommitReceipt, T as ToolWithHandler, P as ProjectionResult, d as ProjectionMapper, e as CommitTransitionOutcomeDeclaration, f as CommitDeclaration, g as EffectHandlerContext, F as FeedPublishTransport, M as ManifestEffectMetamodelSpec, R as ResolvedEffectBehaviors, h as RecordObjectOptions, i as ManifestContent, j as CommitTransitionInvocation, S as SessionHeapEntry, k as SessionHeapList, l as FeedItem, m as SessionHeapSnapshot, n as Prompt, o as SessionTranscriptEntry, A as ArtifactWorkflowNode, p as ArtifactWorkflowNodeStatus, q as ArtifactWorkflow, r as SessionArtifactRecord, O as OnboardingTestSessionRestriction, s as ToolSchema, t as EnvironmentImporter, u as EnvironmentImporterImportOptions, v as EffectProjectionResult, w as ObservationReceipt } from './client-Ci5dLxXW.js';
2
+ export { bs as APIError, bt as AccessTokenProvider, aH as ActionSuggestionFeedItem, bC as AdoptEnvironmentOptions, cr as AgentCommitStatus, d3 as ArtifactApprovalDecisionInput, d4 as ArtifactApprovalDecisionResult, d5 as ArtifactApprovalTask, d6 as ArtifactApprovalTaskListOptions, d7 as ArtifactApprovalTaskStatus, aD as ArtifactFeedItem, c7 as ArtifactOptionsHandler, d8 as ArtifactWorkflowAttention, d9 as ArtifactWorkflowCompletionState, da as ArtifactWorkflowNodeAvailability, db as ArtifactWorkflowNodeKind, dc as ArtifactWorkflowOperationPhase, dd as ArtifactWorkflowRecap, de as ArtifactWorkflowRecapItem, bN as Assignment, bO as AssignmentListResponse, cI as AssistantReplyPublicationInput, cJ as AssistantReplyPublicationResult, cs as BaseProjectionResult, bP as Build, bQ as BuildListResponse, bR as BuildPolicy, bS as BuildStatus, ct as CanonicalProjectedRecord, cu as CommitChangeReceipt, cv as CommitSafeError, cw as CommitTransitionReceipt, bl as ConditionIR, bD as ConnectOptions, bE as ConversationSessionInfo, bF as ConversationSessionListOptions, bG as ConversationSessionListResponse, bH as ConversationSessionListStatus, bT as CreateEnvironmentData, bU as CreatePermissionProfileData, bV as CreateSandboxData, bI as CreateSessionOptions, e6 as DefineRelationshipOptions, bu as DeleteResponse, fc as DevelopmentAdditionalObservation, fe as DevelopmentCollectionBinding, ff as DevelopmentIncrementalStatus, fb as DevelopmentPostcondition, fg as DevelopmentPostconditionVerifier, fk as DevelopmentProvider, f8 as DevelopmentProviderContext, fh as DevelopmentProviderOptions, fi as DevelopmentProviderRegistration, fd as DevelopmentReadback, f7 as DevelopmentUser, fa as DevelopmentUserOperation, f9 as DevelopmentUserProgress, U as DomainState, c8 as EffectArtifactOptionsInvocation, c9 as EffectArtifactRelationshipOption, ca as EffectArtifactRelationshipOptionsResult, cx as EffectCommitContext, cb as EffectHandler, cc as EffectInfo, cd as EffectInvocationMetadata, ce as EffectInvocationMode, cf as EffectSchema, cg as EffectVersionSelector, ch as EffectWithHandler, ci as EffectsChangedEvent, D as Environment, cK as EnvironmentFeedbackRecord, bW as EnvironmentListResponse, H as EnvironmentSession, e7 as EnvironmentSetupImporterClaim, e8 as EnvironmentSetupLifecycleStatus, e9 as EnvironmentSetupSummary, ea as EnvironmentSetupTriggerReason, eb as EnvironmentStateMachineProxy, ec as EnvironmentStateObservationInput, ed as EnvironmentStateProxy, ee as EnvironmentStateTarget, ef as EnvironmentStateUpdateInput, y as EventsFeed, a8 as EventsFeedActivity, a4 as EventsFeedActivityType, a9 as EventsFeedBreakdown, ah as EventsFeedCaptureHealth, af as EventsFeedDetail, a3 as EventsFeedEnvironment, a5 as EventsFeedEvidence, ad as EventsFeedFilter, a6 as EventsFeedFinding, ag as EventsFeedMetrics, ac as EventsFeedOccurrence, a2 as EventsFeedOutcome, a7 as EventsFeedOutcomeLink, ae as EventsFeedPage, ab as EventsFeedProblem, aa as EventsFeedResolution, ai as EventsFeedResolutionInput, a1 as EventsFeedResponse, aj as EventsFeedSqlRequest, ak as EventsFeedSqlResult, B as EventsFeedTransport, cy as ExternalCommitOptions, aX as FeedDiagnostic, aY as FeedDiagnosticListener, b3 as FeedDocumentState, ao as FeedFeedbackTone, aE as FeedFileSource, an as FeedIconToken, as as FeedItemBase, aq as FeedItemKind, aO as FeedListOptions, aV as FeedListTransport, av as FeedObjectReference, aP as FeedPage, be as FeedPublisher, aN as FeedSnapshot, aW as FeedSnapshotRegressionReason, am as FeedSource, al as FeedSourceActor, aQ as FeedSubscribeOptions, aR as FeedSubscriptionChange, ax as FeedTableCell, ay as FeedTableColumn, aB as FeedTableProjection, aA as FeedTableRow, az as FeedTableRowReference, ar as FeedTarget, ap as FeedTransientFeedbackTone, dX as FeedTransientPatchMessage, au as FeedbackFeedItem, aF as FileFeedItem, aZ as GRANULAR_FEED_DIAGNOSTIC_EVENT, G as Granular, bA as GranularAuth, bB as GranularOptions, bv as GraphQLResult, cj as InstanceEffectHandler, Q as InstanceToolHandler, cL as Job, dY as JobActionTraceMessage, cM as JobFeedbackInput, cN as JobFeedbackMetadata, cO as JobFeedbackRecord, cP as JobFeedbackSentiment, cQ as JobFeedbackToolCall, cR as JobStatus, cS as JobSubmitResult, bX as Manifest, eu as ManifestApprovalRequiredSpec, ev as ManifestCreatesSpec, ew as ManifestDryRunSpec, ex as ManifestEffectDeclaration, ey as ManifestEffectSchema, ez as ManifestEnumRuleSpec, eA as ManifestEventStreamDef, eB as ManifestEventTypeDef, eC as ManifestFilterBySpec, eD as ManifestImport, bY as ManifestListResponse, eE as ManifestOperation, eF as ManifestPostConditionSpec, eG as ManifestPropertySpec, eH as ManifestRelationshipDef, eI as ManifestReverseSpec, eJ as ManifestStateMachineSpec, eK as ManifestStateMachineStateSpec, eL as ManifestStateMachineTransitionSpec, eM as ManifestStateTransitionActionSpec, eN as ManifestStateTransitionAssigneeSpec, eO as ManifestStateTransitionExpectedOutcomeSpec, eP as ManifestStateTransitionInputBinding, eQ as ManifestStateTransitionOutcomeSpec, eR as ManifestStateTransitionPermissionSpec, eS as ManifestStateTransitionRelatedStateRequirementSpec, eT as ManifestStateTransitionRequirementsSpec, eU as ManifestValidationOperator, eV as ManifestValidationRuleSpec, eW as ManifestVolume, dw as ManualActionListOptions, dx as ManualActionOccurrence, dy as ManualActionRecordResult, dz as ManualActionRelatedRecord, dA as ManualActionSource, dB as ManualActionStatus, dC as ManualActionSuggestion, dD as ManualActionSuggestionOptions, dE as ManualActionTarget, dG as MarkUserEnvironmentReadOptions, bm as MatchedPolicy, at as MessageFeedItem, eg as ModelRef, aG as NormalizedSuggestedArtifact, cz as ObjectProjectionChange, cA as ObjectReference, aw as ObjectsFeedItem, eY as OnboardingDenialTarget, e$ as OnboardingProductPostcondition, e_ as OnboardingTestActionProfile, eZ as OnboardingTestActionProfileSelection, f5 as OnboardingTestEvidence, f3 as OnboardingTestObservation, f2 as OnboardingTestObservationInput, eX as OnboardingTestOperation, f4 as OnboardingTestOutcome, f1 as OnboardingTestRequest, f0 as OnboardingTestRequestInput, I as OntologyHandle, bJ as OpenEnvironmentOptions, bZ as PermissionProfile, b_ as PermissionProfileListResponse, b$ as PermissionRules, bn as PolicyOperator, bo as PolicyOrigin, bp as PolicyPredicateSource, bq as PolicyRuleIR, br as PolicySource, cB as ProjectionChange, aI as PromptFeedItem, ck as PublishEffectsResult, ba as PublishFeedbackOptions, L as PublishToolsResult, bb as PublishTransientFeedbackOptions, dZ as RPCRequest, d_ as RPCRequestFromServer, d$ as RPCResponse, eh as RecordImport, ei as RecordImportItem, ej as RecordImportItemStatus, ek as RecordImportOptions, el as RecordImportStats, em as RecordImportStatus, en as RecordImportWriteMode, dF as RecordManualActionInput, dH as RecordMentionInput, eo as RecordObjectResult, ep as RecordObjectStateValue, eq as RecordObjectsChunkInfo, er as RecordObjectsOptions, dI as RecordSearchOptions, dJ as RecordSearchResult, bK as RecordUserOptions, V as RegisteredUser, es as RelationshipInfo, cC as RelationshipProjectionChange, cl as ResolvedEffectApprovalRequired, cm as ResolvedEffectDryRun, cn as ResolvedEffectPostCondition, co as ResolvedEffectReverse, et as RunEnvironmentImporterOptions, c0 as Sandbox, c1 as SandboxListResponse, c2 as SemanticVersionDiff, c3 as SemanticVersionDiffEntry, K as Session, df as SessionArtifactApprovalOptions, dg as SessionArtifactAutonomyPolicy, dh as SessionArtifactExecutionOptions, di as SessionArtifactExecutionResult, dj as SessionArtifactFieldProvenance, dk as SessionArtifactFieldProvenanceSource, dl as SessionArtifactKind, dm as SessionArtifactListOptions, dn as SessionArtifactRelationshipCreateInput, dp as SessionArtifactRelationshipOption, dq as SessionArtifactRelationshipOptionsInput, dr as SessionArtifactRelationshipOptionsResult, ds as SessionArtifactRequestContext, dt as SessionArtifactRequestContextSource, du as SessionArtifactStatus, dv as SessionArtifactValidationResult, bw as SessionCollectionListOptions, dK as SessionCollectionListResult, dL as SessionDocumentResult, aS as SessionFeedApi, b9 as SessionFeedController, b2 as SessionFeedControllerOptions, c_ as SessionFileKind, c$ as SessionFileRecord, d0 as SessionFileSource, d1 as SessionFileStatus, d2 as SessionFileUploadOptions, dM as SessionHeapFieldType, dN as SessionHeapFieldValue, dO as SessionHeapVariable, bk as SessionHistoryArtifactEvidence, bj as SessionHistoryArtifactExecutionLink, bg as SessionHistoryRunEvidence, dP as SessionJobListOptions, dQ as SessionJobRecord, bh as SessionMutationEvidence, cD as SessionMutationView, bi as SessionPolicyDecisionReceipt, cT as SessionTimelineEvent, cU as SessionTranscriptActionSuggestion, cV as SessionTranscriptShowRefs, bc as SettleTransientFeedbackOptions, e0 as SnapshotResetMessage, cE as SourceAcknowledgement, cF as StateObservationProjectionChange, bx as StreamEvent, by as StreamStats, bz as StreamSubscription, x as StructuralSteeringContext, bL as Subject, aC as TableFeedItem, N as ToolHandler, cp as ToolInfo, e1 as ToolInvokeParams, e2 as ToolResultParams, cq as ToolsChangedEvent, aM as TransientFeedItem, aJ as TransientFeedItemBase, aL as TransientFeedbackFeedItem, bd as TransientFeedbackHandle, aK as TransientMessageFeedItem, cG as TransitionOutcomeProjection, cH as TransitionProjectionResult, bM as User, dR as UserEnvironmentArtifactAttention, dS as UserEnvironmentMessagePreview, dT as UserEnvironmentPrompt, dU as UserEnvironmentSessionState, dV as UserEnvironmentState, dW as UserEnvironmentStateOptions, $ as UserMembershipHandler, cW as UserMessageAppendResult, cX as UserMessageInput, cY as UserMessageShowRefs, cZ as UserMessageTarget, X as UsersHandler, Y as UsersPage, Z as UsersPageRequest, a0 as UsersProviderOptions, _ as UsersRegistration, c4 as Version, c5 as VersionTag, c6 as VersionTracking, W as WSClient, e3 as WSClientOptions, e4 as WSDisconnectInfo, e5 as WSReconnectErrorInfo, bf as createFeedPublisher, fj as developmentPreparationOperationKey, b1 as emitFeedDiagnostic, b0 as emitFeedDiagnosticToDefaultSink, b4 as emptyFeedSnapshot, z as eventsFeedSearch, b5 as hasCanonicalSessionFeedActivation, b6 as isCanonicalSessionFeedDocument, J as isGraphQLMutationDocument, aT as mergeFeedItemsBySequence, a$ as normalizeFeedDiagnostic, a_ as normalizeFeedDiagnosticKind, b8 as normalizeFeedPage, f6 as onboardingExpectedDenialObserved, aU as orderTransientFeedItems, b7 as readSessionFeedSnapshot } from './client-Ci5dLxXW.js';
3
3
  export { BuildGranularAgentSystemPromptInput, GeneratedJobCodeIssue, GranularAgentExecutionCheckpoint, GranularAgentHeapSummaryOptions, GranularAgentManualActionMemorySuggestion, GranularAgentPromptCapabilities, GranularAgentReferentFocus, GranularAgentSessionContext, GranularAgentToolInfo, GranularAgentWorkflowFocus, GranularReasoningTraceChunkResult, GranularReasoningTraceOptions, HarnessContinuationDecision, HarnessControllerBudgets, HarnessProjectionOptions, HarnessPromptLike, HarnessRenderedContinuation, HarnessRenderedPrompt, HarnessTemplate, HarnessTemplateManifest, HarnessTemplateSelectionOptions, HarnessTemplateStatus, HarnessVerifierSnapshot, HarnessVerifierSnapshotInput, ReviewGeneratedJobCodeOptions, buildContinuationInstruction, buildContinuationInstructionFromTemplate, buildGranularAgentCheckpointBlock, buildGranularAgentDomainBlock, buildGranularAgentFileBlock, buildGranularAgentHeapBlock, buildGranularAgentLoopBlock, buildGranularAgentManualActionBlock, buildGranularAgentManualActionMemorySummary, buildGranularAgentReferentBlock, buildGranularAgentRuntimeImportsBlock, buildGranularAgentSessionBlock, buildGranularAgentSystemPrompt, buildGranularAgentSystemPromptFromTemplate, buildGranularAgentToolBlock, buildGranularAgentWorkflowBlock, consumeGranularReasoningOnlyChunk, consumeGranularReasoningTraceChunk, createHarnessVerifierSnapshot, evaluateContinuation, getCurrentClosureId, getDefaultHarnessTemplateId, getExclusivePromptTarget, hasOpenPrompt, hashHarnessTemplateValue, listHarnessTemplates, projectConversationReferentFocus, projectConversationReferentSummary, projectHeapSummary, projectLoopSummary, projectSessionFileSummary, projectWorkflowFocus, projectWorkflowSummary, renderContinuationInstructionFromTemplate, renderGranularAgentSystemPromptFromTemplate, resolveHarnessTemplate, reviewGeneratedJobCode, stripGranularReasoningTrace, validateHarnessTemplateManifest } from './agent-harness.js';
4
4
  export { h as GranularQuotaPolicy, i as GranularQuotaProgress, G as GranularSpendContext, N as NormalizedOpenAIUsage, b as OPENAI_MODEL_PRICING_USD_PER_MILLION, O as OpenAIModelPricing, a as OpenAITokenSpend, d as OpenAIUsageSpendEvent, Q as QuotaLineItemFilter, j as QuotaPeriod, k as QuotaScopeType, l as QuotaStatus, R as RecordOpenAIUsageSpendOptions, e as RecordOpenAIUsageSpendResult, S as SpendLineItemType, m as SpendSummary, f as buildOpenAISpendEventId, c as calculateOpenAITokenSpend, g as getOpenAIModelPricing, n as normalizeOpenAIUsage, r as recordOpenAIUsageSpend, t as toGranularHttpBase } from './spend-ZMtzJoMN.js';
5
5
  import '@automerge/automerge';
@@ -191,6 +191,27 @@ declare function validationRuleFailureMessage(path: string, rule: ValidationRule
191
191
 
192
192
  type PolicyOutcome = "allow" | "confirm" | "deny";
193
193
  type PolicySource = "manifest" | "permissionProfile" | "builtin";
194
+ type PolicyPredicateSource = "input" | "object" | "stateMachine";
195
+ type PolicyOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "contains" | "not_contains" | "starts_with" | "ends_with" | "exists";
196
+ type ConditionIR = {
197
+ kind: "always";
198
+ } | {
199
+ kind: "all";
200
+ conditions: ConditionIR[];
201
+ } | {
202
+ kind: "any";
203
+ conditions: ConditionIR[];
204
+ } | {
205
+ kind: "not";
206
+ condition: ConditionIR;
207
+ } | {
208
+ kind: "predicate";
209
+ source: PolicyPredicateSource;
210
+ path: string[];
211
+ operator: PolicyOperator;
212
+ value?: string | number | boolean | null;
213
+ machine?: string;
214
+ };
194
215
  type PolicyOrigin = {
195
216
  kind: "manifest";
196
217
  manifestId?: string;
@@ -201,6 +222,14 @@ type PolicyOrigin = {
201
222
  permissionProfileVersionId?: string;
202
223
  source: PolicySource;
203
224
  };
225
+ interface PolicyRuleIR {
226
+ id: string;
227
+ origin: PolicyOrigin;
228
+ outcome: PolicyOutcome;
229
+ reason?: string;
230
+ condition: ConditionIR;
231
+ summary: string;
232
+ }
204
233
  interface MatchedPolicy {
205
234
  id: string;
206
235
  outcome: PolicyOutcome;
@@ -217,6 +246,14 @@ interface PolicyEvaluationContext {
217
246
  object?: Record<string, unknown> | null;
218
247
  stateMachines?: Record<string, string | null | undefined> | null;
219
248
  }
249
+ interface EffectDeclarationRef {
250
+ effectKey: string;
251
+ name: string;
252
+ attachedClass?: string | null;
253
+ isStatic?: boolean;
254
+ inputSchema?: Record<string, unknown> | null;
255
+ metamodels?: Record<string, unknown> | null;
256
+ }
220
257
  interface PermissionProfileFile {
221
258
  schemaVersion?: number;
222
259
  name: string;
@@ -269,6 +306,44 @@ interface LimitPolicySpec {
269
306
  decision: PolicyOutcome;
270
307
  reason?: string;
271
308
  }
309
+ interface CompiledPermissionProfile {
310
+ name: string;
311
+ label?: string;
312
+ description?: string;
313
+ source: PolicySource;
314
+ sourcePath?: string;
315
+ defaultActionPolicy: PolicyOutcome;
316
+ defaultActionPolicyOwner?: string;
317
+ digest: string;
318
+ actionRules: Record<string, PolicyRuleIR[]>;
319
+ actionVisibility: string[];
320
+ summaries: string[];
321
+ flattened: PermissionProfileFile;
322
+ }
323
+ interface CompiledPolicyBundle {
324
+ schemaVersion: 1;
325
+ buildId?: string;
326
+ sandboxId?: string;
327
+ manifestDigest?: string;
328
+ permissionProfilesDigest: string;
329
+ bundleDigest: string;
330
+ generatedAt: string;
331
+ effects: Array<{
332
+ effectKey: string;
333
+ name: string;
334
+ attachedClass?: string | null;
335
+ isStatic: boolean;
336
+ }>;
337
+ manifestRules: Record<string, PolicyRuleIR[]>;
338
+ profiles: Record<string, CompiledPermissionProfile>;
339
+ }
340
+ declare function extractManifestEffects(manifest: {
341
+ volumes?: Array<{
342
+ operations?: Array<{
343
+ withEffect?: any;
344
+ }>;
345
+ }>;
346
+ }): EffectDeclarationRef[];
272
347
 
273
348
  interface JobPresentation {
274
349
  /** Latest canonical assistant message for this job by server sequence. */
@@ -410,4 +485,1328 @@ interface ArtifactSurfaceModel {
410
485
  }
411
486
  declare function selectArtifactSurface(artifact: SessionArtifactRecord, context?: ArtifactSurfaceContext): ArtifactSurfaceModel;
412
487
 
413
- export { type ArtifactSurfaceAction, type ArtifactSurfaceActionId, type ArtifactSurfaceContext, type ArtifactSurfaceKind, type ArtifactSurfaceModel, ArtifactWorkflow, ArtifactWorkflowNode, ArtifactWorkflowNodeStatus, CommitDeclaration, CommitReceipt, CommitTransitionInvocation, CommitTransitionOutcomeDeclaration, type CommitTransport, type ConditionalPolicySpec, type DefinedStateMachine, EffectCommitRequest, EffectHandlerContext, EndpointMode, EnvironmentData, EnvironmentRecordImportSummary, type EnvironmentSetupPollInput, type EnvironmentSetupProgress, type EnvironmentSetupRequestError, type EnvironmentSetupResponse, FeedItem, FeedPublishTransport, GranularApiError, type JobPresentation, type LimitPolicySpec, ManifestContent, ManifestEffectMetamodelSpec, type NormalizedPromptChoiceOption, type PermissionActionSpec, type PermissionPolicySpec, type PermissionProfileFile, type PolicyDecision, type PolicyEvaluationContext, type PolicyOutcome, ProjectionMapper, ProjectionResult, Prompt, RecordObjectOptions, type RecordSnapshotCommitSource, ResolvedEffectBehaviors, SessionArtifactRecord, SessionHeapEntry, SessionHeapList, SessionHeapSnapshot, SessionTranscriptEntry, type StateMachineDefinition, ToolWithHandler, type ValidationRuleEvaluationInput, type ValidationRuleEvaluationResult, artifactReviewedOperation, assertArtifactWorkflow, buildSessionTranscript, buildSessionTranscriptFromFeedItems, canInspectArtifactWorkflowNode, canonicalizeCommitValue, changedRecordSnapshots, defineEffect, defineProjection, defineStateMachine, environmentSetupProgressFromError, environmentSetupProgressFromResponse, evaluateValidationRule, extractPromptTokens, getArtifactWorkflowNavigationLeaves, getArtifactWorkflowNavigationTarget, getArtifactWorkflowNodes, getCurrentArtifactWorkflowNode, invokeRegisteredEffect, isArtifactWorkflowNodeNavigableLeaf, isArtifactWorkflowNodeTerminal, isLocalApiUrl, normalizeEffectBehaviors, normalizePrompt, normalizePromptChoiceOption, normalizePromptText, normalizePromptType, pollEnvironmentSetup, projectArtifactWorkflow, projectRecordSnapshotMutation, requireArtifactWorkflow, requireArtifactWorkflowResult, resolveApiUrl, resolveAuthTokenForApiUrl, resolveJobPresentation, resolvePromptAnswer, scorePromptChoiceMatch, selectArtifactSurface, validateProjectionResult, validationRuleFailureMessage };
488
+ /** Agent-reported commit provenance; remote tracking is a local observation, not an availability guarantee. */
489
+ type OnboardingIntegrationStep = "effect-handler" | "initial-import" | "incremental-import" | "state";
490
+ type OnboardingIntegrationCommit = {
491
+ sha: string;
492
+ repository: {
493
+ provider: "github";
494
+ owner: string;
495
+ name: string;
496
+ } | {
497
+ provider: "local";
498
+ name: string;
499
+ };
500
+ availability: "local" | "remote-tracking";
501
+ };
502
+ type OnboardingIntegrationChange = {
503
+ step: OnboardingIntegrationStep;
504
+ targetId: string;
505
+ commit: OnboardingIntegrationCommit;
506
+ };
507
+ declare function validateOnboardingIntegrationChange(value: unknown): value is OnboardingIntegrationChange;
508
+ /** Repository references are declarations by the coding agent, not server proof. */
509
+ interface OnboardingIntegrationSource {
510
+ file: string;
511
+ exportName: string;
512
+ }
513
+ interface OnboardingImporterMapping {
514
+ classId: string;
515
+ className: string;
516
+ source: OnboardingIntegrationSource;
517
+ registration: OnboardingIntegrationSource;
518
+ recordIdSource: string;
519
+ subjectSource: string;
520
+ authorizationSource: OnboardingIntegrationSource;
521
+ fields: Array<{
522
+ fieldId: string;
523
+ fieldName: string;
524
+ source: string;
525
+ }>;
526
+ relationships: Array<{
527
+ relationshipId: string;
528
+ relationshipName: string;
529
+ targetClassId: string;
530
+ /** The authored runtime submodel; the blueprint cannot attest this binding. */
531
+ submodelName: string;
532
+ source: string;
533
+ }>;
534
+ pagination: {
535
+ strategy: "cursor" | "offset" | "none";
536
+ source: string;
537
+ };
538
+ idempotency: {
539
+ strategy: "stable-record-id";
540
+ source: string;
541
+ };
542
+ }
543
+ interface OnboardingHandlerMapping {
544
+ effectId: string;
545
+ effectKey: string;
546
+ className?: string;
547
+ source: OnboardingIntegrationSource;
548
+ registration: OnboardingIntegrationSource;
549
+ arguments: Array<{
550
+ name: string;
551
+ source: string;
552
+ }>;
553
+ /** Trusted EffectHandlerContext subject, never a caller-selected authority. */
554
+ subjectSource: string;
555
+ authorizationSource: OnboardingIntegrationSource;
556
+ businessApprovalSource?: OnboardingIntegrationSource;
557
+ idempotencySource: string;
558
+ }
559
+ interface OnboardingIntegrationEvidence {
560
+ version: 1;
561
+ source: "implementation-report";
562
+ importers?: OnboardingImporterMapping[];
563
+ handlers?: OnboardingHandlerMapping[];
564
+ }
565
+ type OnboardingIntegrationReport = OnboardingProposalIntegrationRequest & {
566
+ evidence?: OnboardingIntegrationEvidence;
567
+ };
568
+ interface OnboardingImportVerificationRequest {
569
+ artifactId: string;
570
+ revision: number;
571
+ buildId: string;
572
+ environmentId: string;
573
+ subjectId: string;
574
+ implementationEventId: string;
575
+ importIds: string[];
576
+ }
577
+ interface OnboardingImportVerification {
578
+ version: 1;
579
+ source: "server";
580
+ /** Queue completion and stored record shape only, never source-data truth. */
581
+ scope: "queued-import-record-shape";
582
+ status: "verified" | "pending" | "rejected";
583
+ artifactId: string;
584
+ revision: number;
585
+ buildId: string;
586
+ environmentId: string;
587
+ subjectId: string;
588
+ implementationEventId: string;
589
+ importIds: string[];
590
+ /** Registered provider's separate product assertion for classes with no records. */
591
+ collectionAssertionId?: string;
592
+ checkedAt: number;
593
+ classCounts: Record<string, number>;
594
+ diagnostics: string[];
595
+ }
596
+ /** Validates the declared mapping against the exact published blueprint.
597
+ * Does not inspect source files, confer approval, validate arbitrary JSON Schema,
598
+ * or prove that a business handler was called.
599
+ */
600
+ declare function validateOnboardingIntegrationEvidence(value: unknown, blueprint: OnboardingBlueprint, elementIds?: readonly string[]): {
601
+ valid: boolean;
602
+ diagnostics: string[];
603
+ };
604
+ interface OnboardingImportRecord {
605
+ className: string;
606
+ id: string;
607
+ fields?: Record<string, string | number | boolean | null>;
608
+ relationships?: Record<string, string | string[]>;
609
+ states?: Record<string, string | {
610
+ state: string;
611
+ }>;
612
+ }
613
+ /** Validate each authored page before passing it to context.importRecords.
614
+ * Source authorization, pagination and relationship target existence remain
615
+ * product/runtime responsibilities; values are never copied into diagnostics.
616
+ */
617
+ declare function validateOnboardingImportBatch(blueprint: OnboardingBlueprint, mappings: readonly OnboardingImporterMapping[], records: readonly OnboardingImportRecord[]): {
618
+ valid: boolean;
619
+ diagnostics: string[];
620
+ };
621
+ /** Distinct logical import attempt, reused only when retrying the same payload. */
622
+ declare function onboardingIntegrationImportOperationKey(runId: string, implementationEventId: string): string;
623
+ declare function onboardingRealDevImportOperationKey(runId: string, subjectId: string, generation: string): string;
624
+
625
+ /** Only the existing compiler's action-policy semantics. Prose is descriptive. */
626
+ interface OnboardingRolePermissions {
627
+ scope: "actions";
628
+ actionIds: string[];
629
+ profile: PermissionProfileFile;
630
+ }
631
+ interface OnboardingRolePolicySelection {
632
+ artifactId: string;
633
+ revision: number;
634
+ reviewRevision: number;
635
+ roleIds: string[];
636
+ }
637
+ interface OnboardingRolePolicyVerificationRequest extends OnboardingRolePolicySelection {
638
+ buildId: string;
639
+ }
640
+ interface OnboardingRolePolicyReceipt extends OnboardingRolePolicyVerificationRequest {
641
+ version: 1;
642
+ source: "server";
643
+ scope: "compiled-action-policies";
644
+ status: "applied" | "rejected" | "stale";
645
+ sandboxId: string;
646
+ bundleDigest: string;
647
+ checkedAt: number;
648
+ roles: Array<{
649
+ roleId: string;
650
+ profileName: string;
651
+ profileDigest: string;
652
+ profileVersionId?: string;
653
+ }>;
654
+ diagnostics: string[];
655
+ runtimeVerification: "unverified";
656
+ accountAssignmentsChanged: false;
657
+ }
658
+ /** Reject ignored/new permission fields rather than silently dropping grants. */
659
+ declare function validateOnboardingRolePermissions(value: unknown): {
660
+ valid: boolean;
661
+ diagnostics: string[];
662
+ };
663
+ declare function rolePolicySource(role: {
664
+ permissions?: OnboardingRolePermissions;
665
+ }): PermissionProfileFile;
666
+ /** Exact dependencies, including inheritance. No automatic parent inclusion. */
667
+ declare function rolePolicyDependencies(blueprint: OnboardingBlueprint, roleId: string): string[];
668
+ declare function assertRolePolicySelection(input: unknown): asserts input is OnboardingRolePolicySelection;
669
+ declare function selectApprovedRolePolicies(snapshot: OnboardingRunSnapshot, input: OnboardingRolePolicySelection): {
670
+ blueprint: OnboardingBlueprint;
671
+ roles: {
672
+ role: OnboardingRoleBlueprint;
673
+ profile: PermissionProfileFile;
674
+ }[];
675
+ };
676
+ /** Existing compiler only; verifies every affected action is in the approved scope. */
677
+ declare function compileApprovedRolePolicies(blueprint: OnboardingBlueprint, roleIds: string[], manifest: Parameters<typeof extractManifestEffects>[0]): Promise<CompiledPolicyBundle>;
678
+ /** generatedAt and unrelated profiles must not affect an exact role comparison. */
679
+ declare function rolePolicyMatches(expected: CompiledPolicyBundle["profiles"][string], actual: CompiledPolicyBundle["profiles"][string] | undefined): Promise<boolean>;
680
+
681
+ declare const ONBOARDING_PHASES: readonly ["discover", "blueprint", "build", "seed", "prove"];
682
+ type OnboardingPhase = (typeof ONBOARDING_PHASES)[number];
683
+ type OnboardingRunStatus = "active" | "ready" | "completed" | "blocked" | "canceled";
684
+ type OnboardingArtifactKind = "blueprint" | "seed" | "scenarios" | "verification";
685
+ type OnboardingArtifactStatus = "proposed" | "approved" | "rejected" | "superseded" | "passed" | "failed";
686
+ type OnboardingDirectiveAction = "control" | "approve" | "remove" | "modify" | "require" | "protect";
687
+ type OnboardingDirectiveStatus = "pending" | "acknowledged" | "applied" | "blocked";
688
+ type OnboardingEventSeverity = "info" | "success" | "warning" | "error";
689
+ type OnboardingAgentPresence = "offline" | "connected" | "working" | "waiting" | "error";
690
+ interface OnboardingFieldBlueprint {
691
+ id: string;
692
+ name: string;
693
+ type: string;
694
+ description?: string;
695
+ required?: boolean;
696
+ status?: string;
697
+ }
698
+ interface OnboardingClassBlueprint {
699
+ id: string;
700
+ name: string;
701
+ label?: string;
702
+ description?: string;
703
+ evidence?: string[];
704
+ fields: OnboardingFieldBlueprint[];
705
+ status?: string;
706
+ }
707
+ interface OnboardingRelationshipBlueprint {
708
+ id: string;
709
+ name: string;
710
+ from: string;
711
+ to: string;
712
+ cardinality?: string;
713
+ description?: string;
714
+ evidence?: string[];
715
+ status?: string;
716
+ }
717
+ interface OnboardingStateBlueprint {
718
+ name: string;
719
+ label?: string;
720
+ description?: string;
721
+ isFinal?: boolean;
722
+ }
723
+ interface OnboardingTransitionBlueprint {
724
+ id: string;
725
+ name: string;
726
+ from: string;
727
+ to: string;
728
+ label?: string;
729
+ description?: string;
730
+ action?: {
731
+ effect: string;
732
+ input?: Record<string, unknown>;
733
+ };
734
+ assignee?: {
735
+ kind: string;
736
+ from?: unknown;
737
+ role?: string;
738
+ label?: string;
739
+ };
740
+ requirements?: {
741
+ fields?: string[];
742
+ relationships?: string[];
743
+ relatedStates?: Array<{
744
+ relationship: string;
745
+ machine: string;
746
+ state: string;
747
+ className?: string;
748
+ label?: string;
749
+ mode?: "every" | "some" | "any";
750
+ }>;
751
+ };
752
+ permission?: string | {
753
+ profile?: string;
754
+ profileId?: string;
755
+ label?: string;
756
+ reason?: string;
757
+ };
758
+ risk?: "low" | "medium" | "high";
759
+ expectedOutcome?: string | {
760
+ machine?: string;
761
+ state: string;
762
+ summary?: string;
763
+ };
764
+ }
765
+ interface OnboardingStateMachineBlueprint {
766
+ id: string;
767
+ name: string;
768
+ className: string;
769
+ evidence?: string[];
770
+ stateField?: string;
771
+ entryState: string;
772
+ states: OnboardingStateBlueprint[];
773
+ transitions: OnboardingTransitionBlueprint[];
774
+ finalStates?: string[];
775
+ status?: string;
776
+ }
777
+ interface OnboardingEffectBlueprint {
778
+ id: string;
779
+ key: string;
780
+ className?: string;
781
+ description?: string;
782
+ evidence?: string[];
783
+ approvalRequired?: boolean;
784
+ dryRun?: boolean;
785
+ reversible?: boolean;
786
+ status?: string;
787
+ }
788
+
789
+ interface OnboardingRoleBlueprint {
790
+ /** Existing action-policy compiler contract; can/cannot prose is descriptive only. */
791
+ permissions?: OnboardingRolePermissions;
792
+ id: string;
793
+ name: string;
794
+ description?: string;
795
+ evidence?: string[];
796
+ can?: string[];
797
+ cannot?: string[];
798
+ status?: string;
799
+ }
800
+ interface OnboardingBlueprint {
801
+ summary: string;
802
+ repositoryEvidence?: string[];
803
+ nonGoals?: string[];
804
+ classes: OnboardingClassBlueprint[];
805
+ relationships: OnboardingRelationshipBlueprint[];
806
+ stateMachines: OnboardingStateMachineBlueprint[];
807
+ effects: OnboardingEffectBlueprint[];
808
+ roles: OnboardingRoleBlueprint[];
809
+ firstProof?: string;
810
+ }
811
+ declare const ONBOARDING_PROPOSAL_KINDS: readonly ["class", "relationship", "workflow", "action", "role"];
812
+ type OnboardingProposalKind = (typeof ONBOARDING_PROPOSAL_KINDS)[number];
813
+ type OnboardingProposal = {
814
+ kind: "class";
815
+ item: OnboardingClassBlueprint;
816
+ } | {
817
+ kind: "relationship";
818
+ item: OnboardingRelationshipBlueprint;
819
+ } | {
820
+ kind: "workflow";
821
+ item: OnboardingStateMachineBlueprint;
822
+ } | {
823
+ kind: "action";
824
+ item: OnboardingEffectBlueprint;
825
+ } | {
826
+ kind: "role";
827
+ item: OnboardingRoleBlueprint;
828
+ };
829
+ interface OnboardingProposalReviewRequest {
830
+ artifactId: string;
831
+ /** Exact published blueprint revision, shared by its proposal items. */
832
+ revision: number;
833
+ baseReviewRevision: number;
834
+ /** Only these items are reviewed. Dependencies are never added implicitly. */
835
+ items: Array<{
836
+ elementId: string;
837
+ decision: "approved" | "discarded" | "pending";
838
+ }>;
839
+ }
840
+ interface OnboardingProposalIntegrationRequest {
841
+ artifactId: string;
842
+ revision: number;
843
+ buildId: string;
844
+ environmentId: string;
845
+ elementIds: string[];
846
+ /** Implementation progress is reported by the agent, never verified proof. */
847
+ status: "implementing" | "implemented" | "failed";
848
+ /** Validated source declarations, distinct from execution or import proof. */
849
+ evidence?: OnboardingIntegrationEvidence;
850
+ /** Optional for legacy reports; identifies the item and commit for this change. */
851
+ change?: OnboardingIntegrationChange;
852
+ message?: string;
853
+ }
854
+ interface OnboardingProposalReviewItem {
855
+ elementId: string;
856
+ kind: OnboardingProposalKind;
857
+ revision: number;
858
+ dependsOn: string[];
859
+ reviewable: boolean;
860
+ diagnostics: string[];
861
+ decision: "pending" | "approved" | "discarded";
862
+ decisionEventId?: string;
863
+ reviewedAt?: number;
864
+ implementation: {
865
+ status: "not_started" | "implementing" | "implemented" | "failed";
866
+ source?: "agent";
867
+ eventId?: string;
868
+ reportedAt?: number;
869
+ buildId?: string;
870
+ environmentId?: string;
871
+ message?: string;
872
+ };
873
+ /** Latest current, review-bound report for each targeted integration step. */
874
+ integrationSteps?: Partial<Record<OnboardingIntegrationStep, {
875
+ change: OnboardingIntegrationChange;
876
+ eventId: string;
877
+ status: "implementing" | "implemented" | "failed";
878
+ }>>;
879
+ /** No per-item attestation is inferred from reported progress or global proof. */
880
+ verification: {
881
+ status: "unverified";
882
+ };
883
+ }
884
+ interface OnboardingProposalReview {
885
+ artifactId: string;
886
+ revision: number;
887
+ reviewRevision: number;
888
+ items: OnboardingProposalReviewItem[];
889
+ diagnostics: string[];
890
+ }
891
+ interface OnboardingSeedPersona {
892
+ id: string;
893
+ name: string;
894
+ /** Runtime subject used to open the verified persona in the simulator. */
895
+ subjectId?: string;
896
+ /** Authoritatively checked persona environment for canonical-scoped imports. */
897
+ environmentId?: string;
898
+ /** Stable role blueprint id. Prefer this over the legacy display `role`. */
899
+ roleId?: string;
900
+ role: string;
901
+ description?: string;
902
+ permissionProfile?: string;
903
+ }
904
+ interface OnboardingSeedRecordExample {
905
+ id: string;
906
+ label?: string;
907
+ fields: Record<string, string | number | boolean | null>;
908
+ relationshipRefs: Record<string, string | string[]>;
909
+ }
910
+ interface OnboardingSeedImportFailure {
911
+ className: string;
912
+ recordId?: string;
913
+ code?: string;
914
+ message: string;
915
+ }
916
+ interface OnboardingSeedClassImportStatus {
917
+ className: string;
918
+ status: "pending" | "importing" | "completed" | "failed";
919
+ expectedRecords: number;
920
+ importedRecords: number;
921
+ failedRecords: number;
922
+ failures?: OnboardingSeedImportFailure[];
923
+ }
924
+ interface OnboardingSeedImportReceipt {
925
+ receiptId: string;
926
+ importId?: string;
927
+ environmentId: string;
928
+ /** Runtime subject associated with the imported environment, when singular. */
929
+ subjectId?: string;
930
+ buildId?: string;
931
+ status: "pending" | "processing" | "completed" | "failed";
932
+ attemptedRecords: number;
933
+ importedRecords: number;
934
+ failedRecords: number;
935
+ perClass: OnboardingSeedClassImportStatus[];
936
+ completedAt?: number;
937
+ }
938
+ interface OnboardingSeedClassSummary {
939
+ className: string;
940
+ count: number;
941
+ /** Legacy labels retained for older agents. */
942
+ examples?: string[];
943
+ records?: OnboardingSeedRecordExample[];
944
+ importStatus?: OnboardingSeedClassImportStatus;
945
+ }
946
+ interface OnboardingSeedArtifact {
947
+ personaEnvironmentMode?: "canonical-scoped";
948
+ personaImports?: Array<{
949
+ personaId: string;
950
+ importId: string;
951
+ importedRecords: number;
952
+ }>;
953
+ synthetic: true;
954
+ deterministic: boolean;
955
+ namespace?: string;
956
+ narrative?: string;
957
+ personas: OnboardingSeedPersona[];
958
+ classes: OnboardingSeedClassSummary[];
959
+ totalRecords: number;
960
+ importedRecords?: number;
961
+ environmentName?: string;
962
+ environmentId?: string;
963
+ importReceipt?: OnboardingSeedImportReceipt;
964
+ failures?: OnboardingSeedImportFailure[];
965
+ }
966
+ /**
967
+ * Explicit real-development evidence, published in the legacy `seed` slot.
968
+ * Source provenance is declared by the product integration. Server checks of
969
+ * these references establish recorded bindings, not login provenance or a new
970
+ * right to impersonate a subject or change its assigned permission profile.
971
+ */
972
+ interface OnboardingRealDevDataArtifact {
973
+ source: "real-dev";
974
+ synthetic: false;
975
+ runId: string;
976
+ buildId: string;
977
+ environmentName: "dev";
978
+ environmentId: string;
979
+ subjectId: string;
980
+ identityId: string;
981
+ permissionProfileId: string;
982
+ sessionId: string;
983
+ importId: string | null;
984
+ /** Registered importer path: exact setup generation and its complete batch ids. */
985
+ setupRunId?: string;
986
+ importGeneration?: string;
987
+ importIds?: string[];
988
+ /** Server-created reference to a registered product provider's assertion. */
989
+ collectionAssertionId?: string;
990
+ /** Legacy direct imports use onboarding:run:real-dev:subject; registered
991
+ * importers use subject-specific setup generation plus setupRunId:import:N. */
992
+ totalRecords: number;
993
+ importedRecords: number;
994
+ }
995
+ type OnboardingDataArtifact = OnboardingSeedArtifact | OnboardingRealDevDataArtifact;
996
+ interface OnboardingRealDevScenarioArtifact {
997
+ source: "real-dev";
998
+ runId: string;
999
+ buildId: string;
1000
+ environmentId: string;
1001
+ subjectId: string;
1002
+ scenarios: Array<Omit<OnboardingScenario, "persona" | "personaId" | "roleId"> & {
1003
+ subjectId: string;
1004
+ }>;
1005
+ }
1006
+ type OnboardingScenarioKind = "read" | "relationship" | "workflow" | "action" | "permission" | "denial";
1007
+ interface OnboardingScenario {
1008
+ id: string;
1009
+ title: string;
1010
+ persona: string;
1011
+ /** Stable seed persona id; preferred over the legacy persona display value. */
1012
+ personaId?: string;
1013
+ /** Stable role blueprint id; preferred for role coverage checks. */
1014
+ roleId?: string;
1015
+ query: string;
1016
+ kind: OnboardingScenarioKind;
1017
+ preconditions?: string[];
1018
+ expectedEvidence: string[];
1019
+ protected?: boolean;
1020
+ }
1021
+ interface OnboardingScenarioArtifact {
1022
+ scenarios: OnboardingScenario[];
1023
+ }
1024
+ interface OnboardingScenarioResult {
1025
+ scenarioId: string;
1026
+ status: "passed" | "failed" | "skipped";
1027
+ sessionId?: string;
1028
+ jobId?: string;
1029
+ subjectId?: string;
1030
+ dataChanged?: boolean;
1031
+ effectId?: string;
1032
+ /** Authoritative effect invocation call id(s), when an effect ran. */
1033
+ effectInvocationId?: string;
1034
+ effectInvocationIds?: string[];
1035
+ /** Authoritative compiled-policy decision event id(s), when available. */
1036
+ policyDecisionEventId?: string;
1037
+ policyDecisionEventIds?: string[];
1038
+ /** @deprecated Prefer effectInvocationIds or policyDecisionEventIds. */
1039
+ effectDecisionId?: string;
1040
+ /** @deprecated Prefer effectInvocationIds or policyDecisionEventIds. */
1041
+ effectDecisionIds?: string[];
1042
+ summary?: string;
1043
+ evidence?: string[];
1044
+ steps?: Array<{
1045
+ label: string;
1046
+ outcome: string;
1047
+ status: "passed" | "failed" | "denied" | "info";
1048
+ }>;
1049
+ durationMs?: number;
1050
+ error?: string;
1051
+ }
1052
+ interface OnboardingVerificationArtifact {
1053
+ /** Required together for the explicit real-dev path; absent on legacy proof. */
1054
+ source?: "real-dev";
1055
+ runId?: string;
1056
+ subjectId?: string;
1057
+ importId?: string | null;
1058
+ status: "passed" | "failed";
1059
+ checkedAt: number;
1060
+ buildId?: string;
1061
+ environmentId?: string;
1062
+ gates: {
1063
+ build: boolean;
1064
+ data: boolean;
1065
+ permissions: boolean;
1066
+ stateTransitions: boolean;
1067
+ effects: boolean;
1068
+ };
1069
+ results: OnboardingScenarioResult[];
1070
+ /** Server-generated after the reported session/job references are checked. */
1071
+ runtimeAttestation?: OnboardingRuntimeAttestation;
1072
+ notes?: string[];
1073
+ }
1074
+ interface OnboardingRuntimeScenarioAttestation {
1075
+ onboardingTest?: OnboardingTestSessionRestriction;
1076
+ scenarioId: string;
1077
+ sessionId: string;
1078
+ jobId: string;
1079
+ subjectId: string;
1080
+ status: "attested" | "rejected";
1081
+ jobStatus?: string;
1082
+ completedAt?: number;
1083
+ dataChanged?: boolean;
1084
+ denialObserved?: boolean;
1085
+ effectInvocationIds?: string[];
1086
+ policyDecisionEventIds?: string[];
1087
+ diagnostics?: string[];
1088
+ }
1089
+ interface OnboardingRuntimeAttestation {
1090
+ version: 1;
1091
+ status: "passed" | "failed";
1092
+ checkedAt: number;
1093
+ proofInputsUpdatedAt: number;
1094
+ evidenceRevision: number;
1095
+ buildId: string | null;
1096
+ environmentId: string | null;
1097
+ results: OnboardingRuntimeScenarioAttestation[];
1098
+ diagnostics?: string[];
1099
+ }
1100
+ interface OnboardingArtifact<T = unknown> {
1101
+ artifactId: string;
1102
+ runId: string;
1103
+ kind: OnboardingArtifactKind;
1104
+ revision: number;
1105
+ status: OnboardingArtifactStatus;
1106
+ data: T;
1107
+ createdAt: number;
1108
+ updatedAt: number;
1109
+ }
1110
+ interface OnboardingEvent {
1111
+ /** Durable server insertion order, independent of same-millisecond clocks. */
1112
+ sequence?: number;
1113
+ eventId: string;
1114
+ clientEventId?: string | null;
1115
+ runId: string;
1116
+ source: "agent" | "user" | "system";
1117
+ type: string;
1118
+ phase: OnboardingPhase;
1119
+ severity: OnboardingEventSeverity;
1120
+ message: string;
1121
+ elementId?: string | null;
1122
+ data?: Record<string, unknown> | null;
1123
+ createdAt: number;
1124
+ }
1125
+ /**
1126
+ * The latest durable representation of an ontology element discovered by the
1127
+ * agent. Unlike the activity feed, this ledger is not truncated.
1128
+ */
1129
+ interface OnboardingElement {
1130
+ runId: string;
1131
+ elementId: string;
1132
+ kind: OnboardingProposalKind;
1133
+ phase: OnboardingPhase;
1134
+ status: string;
1135
+ data: OnboardingProposal["item"];
1136
+ sourceEventId: string;
1137
+ createdAt: number;
1138
+ updatedAt: number;
1139
+ }
1140
+ interface OnboardingDirective {
1141
+ directiveId: string;
1142
+ runId: string;
1143
+ elementId: string;
1144
+ action: OnboardingDirectiveAction;
1145
+ instruction?: string | null;
1146
+ status: OnboardingDirectiveStatus;
1147
+ revision: number;
1148
+ response?: string | null;
1149
+ createdBy?: string | null;
1150
+ createdAt: number;
1151
+ updatedAt: number;
1152
+ }
1153
+ interface OnboardingReadiness {
1154
+ /** Server-derived from the approved model, never an agent assertion. */
1155
+ verificationApplicability?: Record<"build" | "data" | "permissions" | "stateTransitions" | "effects", "required" | "not-applicable">;
1156
+ coverage?: OnboardingCoverage;
1157
+ integration?: OnboardingIntegration;
1158
+ ready: boolean;
1159
+ gates: {
1160
+ blueprintApproved: boolean;
1161
+ successfulBuild: boolean;
1162
+ /** Legacy synthetic evidence only; never relabelled as real dev data. */
1163
+ syntheticDataLoaded: boolean;
1164
+ realDevDataLoaded?: boolean;
1165
+ realDevImportAttested?: boolean;
1166
+ scenariosDesigned?: boolean;
1167
+ subjectScenarioPassed?: boolean;
1168
+ thirtyScenariosDesigned: boolean;
1169
+ roleScenarioPassed: boolean;
1170
+ verificationPassed: boolean;
1171
+ directivesResolved: boolean;
1172
+ proofIdentityConsistent: boolean;
1173
+ seedImportAttested: boolean;
1174
+ /** Exact structured previews matched completed record-import payloads. */
1175
+ seedPreviewAttested?: boolean;
1176
+ /** Present on servers that authoritatively attest runtime session/job proof. */
1177
+ runtimeProofAttested?: boolean;
1178
+ };
1179
+ diagnostics?: {
1180
+ realDevData?: string[];
1181
+ seedImport?: string[];
1182
+ seedPreview?: string[];
1183
+ runtimeProof?: string[];
1184
+ };
1185
+ }
1186
+ type OnboardingConnectorPlacement = "below-api" | "above-api" | "above-mcp";
1187
+ interface OnboardingScope {
1188
+ instructions: string;
1189
+ exclusions: string[];
1190
+ }
1191
+ /** Durable setup intent; confirmation does not establish adapter availability. */
1192
+ interface OnboardingSetup {
1193
+ revision: number;
1194
+ scope?: OnboardingScope;
1195
+ connector?: {
1196
+ placement: OnboardingConnectorPlacement;
1197
+ confirmedAt?: number;
1198
+ confirmedBy?: string;
1199
+ };
1200
+ }
1201
+ interface OnboardingSetupUpdate {
1202
+ /** 0 when no setup has been recorded; otherwise the displayed setup revision. */
1203
+ baseRevision: number;
1204
+ scope?: OnboardingScope;
1205
+ connector?: {
1206
+ placement: OnboardingConnectorPlacement;
1207
+ /** Only the authenticated control surface may explicitly confirm. */
1208
+ confirmed?: boolean;
1209
+ };
1210
+ }
1211
+ interface OnboardingRun {
1212
+ /** Omitted on legacy runs; projected from the existing durable event history. */
1213
+ setup?: OnboardingSetup;
1214
+ runId: string;
1215
+ name: string;
1216
+ repository?: string | null;
1217
+ branch?: string | null;
1218
+ phase: OnboardingPhase;
1219
+ status: OnboardingRunStatus;
1220
+ sandboxId?: string | null;
1221
+ manifestId?: string | null;
1222
+ buildId?: string | null;
1223
+ buildStatus?: string | null;
1224
+ environmentId?: string | null;
1225
+ evidenceUpdatedAt: number;
1226
+ evidenceRevision: number;
1227
+ agentLastSeenAt?: number | null;
1228
+ agentPresence: OnboardingAgentPresence;
1229
+ currentElementId?: string | null;
1230
+ currentActivity?: string | null;
1231
+ createdAt: number;
1232
+ updatedAt: number;
1233
+ completedAt?: number | null;
1234
+ }
1235
+ interface OnboardingRunSnapshot {
1236
+ /** Server-resolved effective environment, only supplied by authenticated agent reads. */
1237
+ connectorEnvironment?: {
1238
+ environmentId: string;
1239
+ sandboxId: string;
1240
+ buildId: string;
1241
+ tenantId: string;
1242
+ name: string | null;
1243
+ } | null;
1244
+ /** Optional additive proposal review projection; legacy servers omit it. */
1245
+ proposalReview?: OnboardingProposalReview;
1246
+ run: OnboardingRun;
1247
+ artifacts: Partial<Record<OnboardingArtifactKind, OnboardingArtifact>>;
1248
+ elements: OnboardingElement[];
1249
+ events: OnboardingEvent[];
1250
+ directives: OnboardingDirective[];
1251
+ readiness: OnboardingReadiness;
1252
+ }
1253
+ interface CreateOnboardingRunResult extends OnboardingRunSnapshot {
1254
+ agentToken: string;
1255
+ agentTokenExpiresAt: number;
1256
+ }
1257
+ /** Factual milestones, persisted in OnboardingEvent.data.progress. */
1258
+ interface OnboardingProgress {
1259
+ version: 1;
1260
+ step: string;
1261
+ substep?: string;
1262
+ status: "start" | "finish" | "wait" | "retry" | "error";
1263
+ occurredAt: number;
1264
+ startedAt?: number;
1265
+ durationMs?: number;
1266
+ attempt?: number;
1267
+ }
1268
+ interface OnboardingCoverage {
1269
+ designed: number;
1270
+ /** Server-attested runtime code jobs; never a claim about LLM behavior. */
1271
+ deterministicPassed: number;
1272
+ agentRuns: {
1273
+ status: "unverified";
1274
+ passed: null;
1275
+ };
1276
+ provider: {
1277
+ status: "unverified";
1278
+ };
1279
+ }
1280
+ interface OnboardingIntegration {
1281
+ status: "not_configured" | "reported" | "verified";
1282
+ /** Agent-reported setup milestones, not an authorization or readiness proof. */
1283
+ setupReported: boolean;
1284
+ proofAttested: boolean;
1285
+ completedSteps: string[];
1286
+ diagnostics: string[];
1287
+ }
1288
+
1289
+ /** Git authorization is independent of model approval and onboarding readiness. */
1290
+ type OnboardingGitOperation = "create_branch" | "commit" | "push" | "draft_pr";
1291
+ interface OnboardingGitPlan {
1292
+ version: 1;
1293
+ repository: {
1294
+ root: string;
1295
+ origin: string | null;
1296
+ };
1297
+ sourceBranch: string;
1298
+ head: string;
1299
+ targetBranch: string;
1300
+ /** Local ref resolved without fetching; required for push and draft PR. */
1301
+ baseRef?: string;
1302
+ baseHead?: string;
1303
+ files: Array<{
1304
+ path: string;
1305
+ status: "added" | "modified" | "deleted";
1306
+ /** SHA-256 of mode + NUL + complete worktree bytes; null for deletion. */
1307
+ sha256: string | null;
1308
+ }>;
1309
+ operations: OnboardingGitOperation[];
1310
+ commitMessage: string;
1311
+ pullRequest?: {
1312
+ baseBranch: string;
1313
+ title: string;
1314
+ body: string;
1315
+ draft: true;
1316
+ };
1317
+ }
1318
+ interface OnboardingGitProposal {
1319
+ proposalId: string;
1320
+ runId: string;
1321
+ revision: number;
1322
+ planDigest: string;
1323
+ plan: OnboardingGitPlan;
1324
+ status: "proposed" | "approved" | "rejected" | "consumed";
1325
+ createdAt: number;
1326
+ reviewedAt: number | null;
1327
+ reviewedBy: string | null;
1328
+ consumedAt: number | null;
1329
+ consumptionId: string | null;
1330
+ }
1331
+ interface OnboardingGitConsumption {
1332
+ consumptionId: string;
1333
+ proposalId: string;
1334
+ runId: string;
1335
+ revision: number;
1336
+ planDigest: string;
1337
+ approvedBy: string;
1338
+ approvedAt: number;
1339
+ consumedAt: number;
1340
+ /** Consuming approval grants the exact plan; it is not evidence of execution. */
1341
+ execution: "not_started";
1342
+ }
1343
+ /** Local Git observations reported by the agent; never hosted/remote attestation. */
1344
+ interface OnboardingGitLocalObservation {
1345
+ branch: string;
1346
+ commit: string;
1347
+ parentHead: string;
1348
+ files: OnboardingGitPlan["files"];
1349
+ }
1350
+ interface OnboardingGitLocalReportInput {
1351
+ proposalId: string;
1352
+ revision: number;
1353
+ planDigest: string;
1354
+ consumptionId: string;
1355
+ observation: OnboardingGitLocalObservation;
1356
+ }
1357
+ interface OnboardingGitLocalReport extends OnboardingGitLocalReportInput {
1358
+ runId: string;
1359
+ source: "agent-local-git";
1360
+ status: "reported";
1361
+ reportedOperations: Array<"create_branch" | "commit">;
1362
+ reportedAt: number;
1363
+ external: {
1364
+ push: "unverified";
1365
+ draftPr: "unverified";
1366
+ };
1367
+ }
1368
+ declare class OnboardingGitError extends Error {
1369
+ readonly code: string;
1370
+ constructor(code: string, message: string);
1371
+ }
1372
+ declare function assertOnboardingGitBranch(value: unknown): asserts value is string;
1373
+ declare function assertOnboardingGitPath(value: unknown): asserts value is string;
1374
+ declare function assertOnboardingGitOrigin(value: unknown): asserts value is string | null;
1375
+ /** Strict validation also gives the digest one canonical representation. */
1376
+ declare function validateOnboardingGitPlan(input: unknown): OnboardingGitPlan;
1377
+ declare function digestOnboardingGitPlan(plan: OnboardingGitPlan): Promise<string>;
1378
+
1379
+ /** Best-effort safety boundary for diagnostic text, not a semantic domain rule. */
1380
+ declare function scrubOnboardingText(text: string): string;
1381
+ declare function scrubOnboardingData(value: unknown, depth?: number): unknown;
1382
+
1383
+ /** Transport discovery only. Schemas, security declarations and descriptions are not permissions. */
1384
+ interface ConnectorHttpParameter {
1385
+ name: string;
1386
+ in: "path" | "query" | "header";
1387
+ required: boolean;
1388
+ schema: Record<string, unknown>;
1389
+ }
1390
+ interface ConnectorHttpOperation {
1391
+ operationId: string;
1392
+ method: string;
1393
+ path: string;
1394
+ description?: string;
1395
+ parameters: ConnectorHttpParameter[];
1396
+ requestBody?: {
1397
+ required: boolean;
1398
+ schema: unknown;
1399
+ };
1400
+ /** Original response schemas; no ontology, role, write classification or validation is inferred. */
1401
+ responses: Record<string, unknown>;
1402
+ unsupported: string[];
1403
+ }
1404
+ /**
1405
+ * Discover OpenAPI 3.0/3.1 operations from an already parsed JSON/YAML document.
1406
+ * Local references are resolved for parameters/request bodies/responses. JSON
1407
+ * body schemas are retained as evidence, not translated to approved effect schemas.
1408
+ * Unsupported wire encodings are reported per operation and cannot be bound.
1409
+ */
1410
+ declare function discoverOpenApiOperations(value: unknown): ConnectorHttpOperation[];
1411
+
1412
+ /**
1413
+ * Bridges reviewed actions to the existing effect host, not to a new runtime.
1414
+ * OpenAPI discovery supports 3.0/3.1 scalar path/query/header parameters and
1415
+ * JSON/empty payloads. Body/output schemas remain evidence: this module does
1416
+ * not validate arbitrary JSON Schema, convert schemas to ontology or infer
1417
+ * business permissions. Multipart, cookie/array/object parameter encodings,
1418
+ * external references and operation server overrides require another adapter.
1419
+ *
1420
+ * MCP uses caller-owned initialized clients and tools/list + tools/call only.
1421
+ * Streamable HTTP (including SSE response framing) is covered by local tests;
1422
+ * stdio/legacy SSE, OAuth lifecycle, tasks/resources/prompts, dry runs, reverse
1423
+ * execution and artifact option discovery are not implemented here. Neither
1424
+ * discovery nor factory creation establishes a saved onboarding run's readiness.
1425
+ */
1426
+ /** Consumer must obtain this scope from the authoritative approved run/build. */
1427
+ interface ConnectorActionBinding {
1428
+ runId: string;
1429
+ buildId: string;
1430
+ connectorId: string;
1431
+ actionId: string;
1432
+ actionRevision: string;
1433
+ decision: "approved";
1434
+ }
1435
+ interface ConnectorInvocation {
1436
+ binding: Readonly<ConnectorActionBinding>;
1437
+ input: unknown;
1438
+ objectId?: string;
1439
+ context: EffectHandlerContext;
1440
+ }
1441
+ interface ConnectorActionOptions {
1442
+ binding: ConnectorActionBinding;
1443
+ effect: Omit<ToolSchema, "commit">;
1444
+ /** Authored business classification; never inferred from HTTP methods or MCP annotations. */
1445
+ semantics: "query" | "mutation";
1446
+ /** Required for mutations. Reuse the product's existing projection mapper. */
1447
+ commit?: CommitDeclaration;
1448
+ /** Recheck current approval/scope and application authorization; throw to deny. */
1449
+ authorize: (invocation: ConnectorInvocation) => void | Promise<void>;
1450
+ }
1451
+ declare class ConnectorInvocationError extends Error {
1452
+ readonly code: string;
1453
+ readonly actionId: string;
1454
+ readonly status?: number | undefined;
1455
+ constructor(code: string, actionId: string, status?: number | undefined);
1456
+ }
1457
+ interface ConnectorHttpArguments {
1458
+ path?: Record<string, string | number | boolean>;
1459
+ query?: Record<string, string | number | boolean | undefined>;
1460
+ headers?: Record<string, string | number | boolean | undefined>;
1461
+ body?: unknown;
1462
+ }
1463
+ interface HttpConnectorOptions extends ConnectorActionOptions {
1464
+ operation: ConnectorHttpOperation;
1465
+ connection: {
1466
+ /** Explicit deployment URL. OpenAPI server URLs are never contacted during discovery. */
1467
+ baseUrl: string;
1468
+ /** Existing product-user credentials, resolved for context.user on every invocation, never action input. */
1469
+ headers: (invocation: ConnectorInvocation) => ConstructorParameters<typeof Headers>[0] | Promise<ConstructorParameters<typeof Headers>[0]>;
1470
+ timeoutMs?: number;
1471
+ };
1472
+ mapRequest: (invocation: ConnectorInvocation) => ConnectorHttpArguments | Promise<ConnectorHttpArguments>;
1473
+ mapResult?: (body: unknown, invocation: ConnectorInvocation) => unknown | Promise<unknown>;
1474
+ }
1475
+ /** No retries, redirects, credential generation, dry runs, reverse execution or direct product writes. */
1476
+ declare function createHttpConnectorEffect(options: HttpConnectorOptions): ToolWithHandler;
1477
+ interface ConnectorMcpTool {
1478
+ name: string;
1479
+ description?: string;
1480
+ inputSchema: Record<string, unknown>;
1481
+ outputSchema?: Record<string, unknown>;
1482
+ }
1483
+ interface ConnectorMcpResult {
1484
+ content?: unknown[];
1485
+ structuredContent?: Record<string, unknown>;
1486
+ isError?: boolean;
1487
+ [key: string]: unknown;
1488
+ }
1489
+ /** Structurally compatible with an initialized @modelcontextprotocol/sdk Client. */
1490
+ interface ConnectorMcpClient {
1491
+ listTools(params?: {
1492
+ cursor?: string;
1493
+ }): Promise<{
1494
+ tools: ConnectorMcpTool[];
1495
+ nextCursor?: string;
1496
+ }>;
1497
+ callTool(params: {
1498
+ name: string;
1499
+ arguments?: Record<string, unknown>;
1500
+ }): Promise<ConnectorMcpResult>;
1501
+ }
1502
+ /** Lists tools only; annotations never become business permissions or mutation semantics. */
1503
+ declare function discoverMcpTools(client: ConnectorMcpClient, maxPages?: number): Promise<ConnectorMcpTool[]>;
1504
+ interface McpConnectorOptions extends ConnectorActionOptions {
1505
+ tool: ConnectorMcpTool;
1506
+ /** Application owns authenticated client, transport, timeout and lifecycle; resolve for context.user every call. Never fall back to a different actor's client. */
1507
+ clientForInvocation: (invocation: ConnectorInvocation) => ConnectorMcpClient | Promise<ConnectorMcpClient>;
1508
+ mapArguments: (invocation: ConnectorInvocation) => Record<string, unknown> | Promise<Record<string, unknown>>;
1509
+ /** Explicit decoder avoids assuming text content is JSON or treating mixed content as success data. */
1510
+ mapResult: (result: ConnectorMcpResult, invocation: ConnectorInvocation) => unknown | Promise<unknown>;
1511
+ }
1512
+ declare function createMcpConnectorEffect(options: McpConnectorOptions): ToolWithHandler;
1513
+
1514
+ /** Resolve an adapter binding only from a current server-provided onboarding snapshot. */
1515
+ declare function resolveOnboardingConnectorBinding(snapshot: OnboardingRunSnapshot, input: {
1516
+ runId: string;
1517
+ buildId: string;
1518
+ environmentId: string;
1519
+ actionId: string;
1520
+ effectKey: string;
1521
+ placement: "above-api" | "above-mcp";
1522
+ }): ConnectorActionBinding;
1523
+ /** Compose current saved-run checks with the product's own actor authorization.
1524
+ * The loader MUST use the authenticated server run API, never a browser-supplied snapshot.
1525
+ * This is a pre-dispatch recheck, not a cross-system atomic transaction. */
1526
+ declare function createOnboardingConnectorAuthorizer(options: {
1527
+ loadSnapshot: () => Promise<OnboardingRunSnapshot>;
1528
+ expected: Parameters<typeof resolveOnboardingConnectorBinding>[1];
1529
+ authorizeProduct: (invocation: ConnectorInvocation) => void | Promise<void>;
1530
+ }): (invocation: ConnectorInvocation) => Promise<void>;
1531
+
1532
+ interface OnboardingProductSubject<T> {
1533
+ subjectId: string;
1534
+ externalUserId: string;
1535
+ /** Product-owned authenticated actor/context, never an admin collector. */
1536
+ context: T;
1537
+ /** Re-read the normal product session; throw on logout, expiry or account switch. */
1538
+ assertActive(): Promise<void>;
1539
+ }
1540
+ /** A guard around the existing registered importer and its queued import API.
1541
+ * The product supplies its trusted normal-login resolver and authorized query.
1542
+ * This guard does not create a login or turn an arbitrary id into authority.
1543
+ */
1544
+ declare function createSubjectBoundOnboardingImporter<T>(options: {
1545
+ blueprint: OnboardingBlueprint;
1546
+ mappings: OnboardingImporterMapping[];
1547
+ resolveProductSubject(importer: EnvironmentImporter): Promise<OnboardingProductSubject<T>>;
1548
+ collect(subject: T, importer: EnvironmentImporter): AsyncIterable<readonly RecordObjectOptions[]>;
1549
+ /** Persist the exhaustive collector's generation-bound receipt in the product.
1550
+ * This is a product assertion, not independent verification by Granular. */
1551
+ recordCollectionReceipt?(subject: T, importer: EnvironmentImporter, classCounts: Readonly<Record<string, number>>): Promise<void>;
1552
+ importOptions?: EnvironmentImporterImportOptions;
1553
+ }): (importer: EnvironmentImporter) => Promise<void>;
1554
+
1555
+ /** A product-verified change, not an event invented from an agent response. */
1556
+ interface OnboardingSourceChange<T> {
1557
+ eventId: string;
1558
+ reference: string;
1559
+ /** Comparable, monotonic source revision for the declared version scope. */
1560
+ version: string;
1561
+ versionScope: "global" | "target";
1562
+ payload: T;
1563
+ }
1564
+ type SyncEnvironment = {
1565
+ environmentId: string;
1566
+ subjectId: string;
1567
+ environment: string;
1568
+ observe<T>(mapper: ProjectionMapper<T, EffectProjectionResult>, result: T): Promise<ObservationReceipt>;
1569
+ };
1570
+ /**
1571
+ * Bind product-owned change notifications to the existing durable source
1572
+ * observation path. Call separately for each environment whose current product user
1573
+ * is authorized to observe the change. Product code owns event authenticity,
1574
+ * authorization and retry scheduling; a queued receipt is not freshness proof.
1575
+ */
1576
+ declare function createSubjectBoundOnboardingSync<T, TActor>(options: {
1577
+ environment: SyncEnvironment;
1578
+ subjectId: string;
1579
+ externalUserId: string;
1580
+ approvedClassNames: readonly string[];
1581
+ mapChange: ProjectionMapper<T, EffectProjectionResult>;
1582
+ resolveSubject(): Promise<{
1583
+ subjectId: string;
1584
+ externalUserId: string;
1585
+ context: TActor;
1586
+ assertActive(): Promise<void>;
1587
+ }>;
1588
+ authorizeChange(actor: TActor, event: Readonly<OnboardingSourceChange<T>>, projection: Readonly<EffectProjectionResult>): Promise<boolean>;
1589
+ }): (event: OnboardingSourceChange<T>) => Promise<ObservationReceipt>;
1590
+
1591
+ type OnboardingFreshnessStatus = {
1592
+ status: "not_started" | "checking" | "catching_up";
1593
+ } | {
1594
+ status: "source_current";
1595
+ checkedAt: number;
1596
+ } | {
1597
+ status: "pending" | "failed" | "unknown";
1598
+ message: string;
1599
+ eventId?: string;
1600
+ observationId?: string;
1601
+ };
1602
+ /** The product owns durable checkpoint storage and its existing ordered source. */
1603
+ interface OnboardingChangeSource<T> {
1604
+ readCheckpoint(): Promise<string | null>;
1605
+ readAfter(cursor: string | null): Promise<{
1606
+ events: Array<{
1607
+ previousCursor: string | null;
1608
+ cursor: string;
1609
+ change: OnboardingSourceChange<T>;
1610
+ }>;
1611
+ /** True only when the source has established its current high-water mark. */
1612
+ caughtUp: boolean;
1613
+ }>;
1614
+ /** Atomically advance only if the stored value still equals expected. */
1615
+ advanceCheckpoint(expected: string | null, next: string): Promise<boolean>;
1616
+ /** Register with the product's existing change source; returns an unsubscribe. */
1617
+ subscribe(wake: () => void): () => void;
1618
+ /** Use the product's durable scheduler to call wake again after a pending result. */
1619
+ scheduleRetry(wake: () => void): void;
1620
+ }
1621
+ /**
1622
+ * Catch up from a product-owned source and register for later updates. Never
1623
+ * advance a checkpoint for a pending, failed, unknown, or unauthorized observation.
1624
+ * Replaying the same event retains its source reference/version identity; an
1625
+ * external product mutation is never repeated to repair projection.
1626
+ */
1627
+ declare function createOnboardingIncrementalRunner<T>(options: {
1628
+ environmentId: string;
1629
+ source: OnboardingChangeSource<T>;
1630
+ apply(change: OnboardingSourceChange<T>): Promise<ObservationReceipt>;
1631
+ getObservation(observationId: string): Promise<ObservationReceipt>;
1632
+ /** Retries only the stored Granular projection, never the product change. */
1633
+ retryObservation?(observationId: string): Promise<ObservationReceipt>;
1634
+ onStatus?(status: OnboardingFreshnessStatus): void;
1635
+ }): {
1636
+ getStatus: () => OnboardingFreshnessStatus;
1637
+ run: () => Promise<OnboardingFreshnessStatus>;
1638
+ retryFailed(): Promise<OnboardingFreshnessStatus>;
1639
+ start(): void;
1640
+ stop(): void;
1641
+ };
1642
+
1643
+ /** External agents only. These contracts do not change embedded UI authentication. */
1644
+ type ExternalAuthErrorCode = "CONFIG_INVALID" | "CAPABILITY_MISSING" | "IDENTITY_AMBIGUOUS" | "CONSENT_UNPROVEN" | "AUTHORITY_REQUIRED" | "NETWORK_UNAVAILABLE" | "STATE_UNCERTAIN" | "QUALIFICATION_FAILED" | "DRIFT_DETECTED" | "LOCAL_ACCESS_DISABLED";
1645
+ declare class ExternalAuthError extends Error {
1646
+ readonly code: ExternalAuthErrorCode;
1647
+ constructor(code: ExternalAuthErrorCode, message: string);
1648
+ }
1649
+ interface AdmittedClient {
1650
+ id: string;
1651
+ issuer: string;
1652
+ providerClientIds: string[];
1653
+ registrationMethod: "static" | "cimd" | "dcr";
1654
+ clientType: "public" | "confidential";
1655
+ displayName: string;
1656
+ approvedRedirectUris: string[];
1657
+ allowedPrincipalKinds: Array<"person" | "service">;
1658
+ permissionCeilingId: string;
1659
+ scopeCeiling: string[];
1660
+ enabled: boolean;
1661
+ registrationEvidenceId: string;
1662
+ }
1663
+ interface ExternalAuthManifest {
1664
+ schemaVersion: 1;
1665
+ integrationId: string;
1666
+ tenantId: string;
1667
+ environmentId: string;
1668
+ resourceUri: string;
1669
+ issuer: string;
1670
+ acceptedAudiences: string[];
1671
+ resourceAudienceMappingId: string;
1672
+ provider: "workos" | "auth0" | "clerk" | "generic";
1673
+ verification: {
1674
+ kind: "jwt";
1675
+ jwksUri: string;
1676
+ algorithms: string[];
1677
+ } | {
1678
+ kind: "introspection";
1679
+ endpoint: string;
1680
+ credentialRef: string;
1681
+ };
1682
+ tokenProfile: string;
1683
+ identityAdapter: string;
1684
+ permissionAdapter: string;
1685
+ consentMode: "provider_grant" | "explicit_local_approval";
1686
+ admittedClients: AdmittedClient[];
1687
+ scopeMap: Record<string, string[]>;
1688
+ maxAccessTokenLifetimeSeconds: number;
1689
+ issuedAtRequired: boolean;
1690
+ clockSkewSeconds: number;
1691
+ enabled: boolean;
1692
+ revision: number;
1693
+ approvedBy: string;
1694
+ approvedAt: string;
1695
+ qualificationReceiptId: string;
1696
+ }
1697
+ declare const EXTERNAL_AUTH_REQUIRED_CHECKS: readonly ["resource_binding", "authorization_resource_binding", "client_identity", "pkce_callback", "meaningful_consent", "scope_enforcement", "refresh_rotation", "refresh_replay", "identity_organization_mapping", "downstream_credentials", "disconnect_ordering", "recovery_denial", "actual_client"];
1698
+ interface ExternalAuthQualificationReceipt {
1699
+ schemaVersion: 1;
1700
+ receiptId: string;
1701
+ manifestSha256: string;
1702
+ provider: "workos";
1703
+ client: {
1704
+ product: "codex";
1705
+ version: string;
1706
+ mode: string;
1707
+ transport: "streamable-http";
1708
+ operatingSystem: string;
1709
+ };
1710
+ checks: Record<typeof EXTERNAL_AUTH_REQUIRED_CHECKS[number], "passed" | "failed" | "unrun">;
1711
+ evidenceRefs: string[];
1712
+ reviewer: string;
1713
+ reviewedAt: string;
1714
+ expiresAt: string;
1715
+ }
1716
+ interface VerifiedExternalToken {
1717
+ issuer: string;
1718
+ subject: string;
1719
+ clientId: string;
1720
+ audiences: string[];
1721
+ scopes: string[];
1722
+ principalKind: "person" | "service";
1723
+ organizationId?: string;
1724
+ issuedAt?: number;
1725
+ expiresAt: number;
1726
+ tokenIdHash?: string;
1727
+ providerGrantId?: string;
1728
+ verificationMethod: "jwt" | "introspection";
1729
+ integrationRevision: number;
1730
+ }
1731
+ interface ProductIdentity {
1732
+ tenantId: string;
1733
+ environmentId: string;
1734
+ internalSubjectId: string;
1735
+ externalIdentity: {
1736
+ issuer: string;
1737
+ subject: string;
1738
+ };
1739
+ productOrganizationId: string;
1740
+ principalKind: "person" | "service";
1741
+ active: boolean;
1742
+ identityRevision: string;
1743
+ }
1744
+ interface ProductIdentityAdapter {
1745
+ resolve(evidence: VerifiedExternalToken, manifest: ExternalAuthManifest): Promise<ProductIdentity>;
1746
+ }
1747
+ interface OperationIntent {
1748
+ toolName: string;
1749
+ action: "read" | "create" | "update" | "delete" | "execute";
1750
+ resourceType: string;
1751
+ resourceIds?: string[];
1752
+ argumentDigest: string;
1753
+ }
1754
+ /** Typed record selectors, not an executable SQL/JavaScript filter supplied by a client. */
1755
+ interface ExternalReadFilter {
1756
+ resourceType: string;
1757
+ resourceIds: string[];
1758
+ }
1759
+ interface PermissionDecision {
1760
+ allowed: boolean;
1761
+ reasonCode: string;
1762
+ readFilter?: ExternalReadFilter;
1763
+ fieldMask?: string[];
1764
+ policyRevision: string;
1765
+ approvalRequired: boolean;
1766
+ }
1767
+ interface ProductPermissionAdapter {
1768
+ authorize(identity: ProductIdentity, intent: OperationIntent): Promise<PermissionDecision>;
1769
+ }
1770
+ interface DelegationAccess {
1771
+ id: string;
1772
+ tenantId: string;
1773
+ environmentId: string;
1774
+ issuer: string;
1775
+ internalSubjectId: string;
1776
+ admittedClientId: string;
1777
+ providerClientId: string;
1778
+ state: "pending" | "enabled" | "denied";
1779
+ permissionCeilingId: string;
1780
+ consentEvidenceId: string;
1781
+ revision: number;
1782
+ changedBy: string;
1783
+ changedAt: string;
1784
+ reasonCode: string;
1785
+ }
1786
+ interface ExternalAgentSessionAuthorization {
1787
+ integrationId: string;
1788
+ integrationRevision: number;
1789
+ delegationId: string;
1790
+ delegationRevision: number;
1791
+ tenantId: string;
1792
+ environmentId: string;
1793
+ issuer: string;
1794
+ externalSubject: string;
1795
+ internalSubjectId: string;
1796
+ productOrganizationId: string;
1797
+ admittedClientId: string;
1798
+ providerClientId: string;
1799
+ permissionCeilingId: string;
1800
+ identityRevision: string;
1801
+ policyRevision: string;
1802
+ tokenExpiresAt: number;
1803
+ }
1804
+ declare function canonicalExternalAuthJson(value: unknown): string;
1805
+ /** Approval and qualification reference fields do not change the configuration digest. */
1806
+ declare function externalAuthManifestDigest(manifest: ExternalAuthManifest): Promise<string>;
1807
+ /** Call only with a receipt obtained from trusted reviewed artifact storage, never request input. */
1808
+ declare function assertExternalAuthQualification(manifest: ExternalAuthManifest, receipt: ExternalAuthQualificationReceipt | null | undefined, now?: number): Promise<void>;
1809
+ declare function validateExternalAuthManifest(input: unknown): ExternalAuthManifest;
1810
+ declare function assertExternalAuthV1(manifest: ExternalAuthManifest): void;
1811
+
1812
+ export { type AdmittedClient, type ArtifactSurfaceAction, type ArtifactSurfaceActionId, type ArtifactSurfaceContext, type ArtifactSurfaceKind, type ArtifactSurfaceModel, ArtifactWorkflow, ArtifactWorkflowNode, ArtifactWorkflowNodeStatus, CommitDeclaration, CommitReceipt, CommitTransitionInvocation, CommitTransitionOutcomeDeclaration, type CommitTransport, type ConditionalPolicySpec, type ConnectorActionBinding, type ConnectorActionOptions, type ConnectorHttpArguments, type ConnectorHttpOperation, type ConnectorHttpParameter, type ConnectorInvocation, ConnectorInvocationError, type ConnectorMcpClient, type ConnectorMcpResult, type ConnectorMcpTool, type CreateOnboardingRunResult, type DefinedStateMachine, type DelegationAccess, EXTERNAL_AUTH_REQUIRED_CHECKS, EffectCommitRequest, EffectHandlerContext, EffectProjectionResult, EndpointMode, EnvironmentData, EnvironmentImporter, EnvironmentImporterImportOptions, EnvironmentRecordImportSummary, type EnvironmentSetupPollInput, type EnvironmentSetupProgress, type EnvironmentSetupRequestError, type EnvironmentSetupResponse, type ExternalAgentSessionAuthorization, ExternalAuthError, type ExternalAuthErrorCode, type ExternalAuthManifest, type ExternalAuthQualificationReceipt, type ExternalReadFilter, FeedItem, FeedPublishTransport, GranularApiError, type HttpConnectorOptions, type JobPresentation, type LimitPolicySpec, ManifestContent, ManifestEffectMetamodelSpec, type McpConnectorOptions, type NormalizedPromptChoiceOption, ONBOARDING_PHASES, ONBOARDING_PROPOSAL_KINDS, ObservationReceipt, type OnboardingAgentPresence, type OnboardingArtifact, type OnboardingArtifactKind, type OnboardingArtifactStatus, type OnboardingBlueprint, type OnboardingChangeSource, type OnboardingClassBlueprint, type OnboardingConnectorPlacement, type OnboardingCoverage, type OnboardingDataArtifact, type OnboardingDirective, type OnboardingDirectiveAction, type OnboardingDirectiveStatus, type OnboardingEffectBlueprint, type OnboardingElement, type OnboardingEvent, type OnboardingEventSeverity, type OnboardingFieldBlueprint, type OnboardingFreshnessStatus, type OnboardingGitConsumption, OnboardingGitError, type OnboardingGitLocalObservation, type OnboardingGitLocalReport, type OnboardingGitLocalReportInput, type OnboardingGitOperation, type OnboardingGitPlan, type OnboardingGitProposal, type OnboardingHandlerMapping, type OnboardingImportRecord, type OnboardingImportVerification, type OnboardingImportVerificationRequest, type OnboardingImporterMapping, type OnboardingIntegration, type OnboardingIntegrationChange, type OnboardingIntegrationCommit, type OnboardingIntegrationEvidence, type OnboardingIntegrationReport, type OnboardingIntegrationSource, type OnboardingIntegrationStep, type OnboardingPhase, type OnboardingProductSubject, type OnboardingProgress, type OnboardingProposal, type OnboardingProposalIntegrationRequest, type OnboardingProposalKind, type OnboardingProposalReview, type OnboardingProposalReviewItem, type OnboardingProposalReviewRequest, type OnboardingReadiness, type OnboardingRealDevDataArtifact, type OnboardingRealDevScenarioArtifact, type OnboardingRelationshipBlueprint, type OnboardingRoleBlueprint, type OnboardingRolePermissions, type OnboardingRolePolicyReceipt, type OnboardingRolePolicySelection, type OnboardingRolePolicyVerificationRequest, type OnboardingRun, type OnboardingRunSnapshot, type OnboardingRunStatus, type OnboardingRuntimeAttestation, type OnboardingRuntimeScenarioAttestation, type OnboardingScenario, type OnboardingScenarioArtifact, type OnboardingScenarioKind, type OnboardingScenarioResult, type OnboardingScope, type OnboardingSeedArtifact, type OnboardingSeedClassImportStatus, type OnboardingSeedClassSummary, type OnboardingSeedImportFailure, type OnboardingSeedImportReceipt, type OnboardingSeedPersona, type OnboardingSeedRecordExample, type OnboardingSetup, type OnboardingSetupUpdate, type OnboardingSourceChange, type OnboardingStateBlueprint, type OnboardingStateMachineBlueprint, OnboardingTestSessionRestriction, type OnboardingTransitionBlueprint, type OnboardingVerificationArtifact, type OperationIntent, type PermissionActionSpec, type PermissionDecision, type PermissionPolicySpec, type PermissionProfileFile, type PolicyDecision, type PolicyEvaluationContext, type PolicyOutcome, type ProductIdentity, type ProductIdentityAdapter, type ProductPermissionAdapter, ProjectionMapper, ProjectionResult, Prompt, RecordObjectOptions, type RecordSnapshotCommitSource, ResolvedEffectBehaviors, SessionArtifactRecord, SessionHeapEntry, SessionHeapList, SessionHeapSnapshot, SessionTranscriptEntry, type StateMachineDefinition, ToolSchema, ToolWithHandler, type ValidationRuleEvaluationInput, type ValidationRuleEvaluationResult, type VerifiedExternalToken, artifactReviewedOperation, assertArtifactWorkflow, assertExternalAuthQualification, assertExternalAuthV1, assertOnboardingGitBranch, assertOnboardingGitOrigin, assertOnboardingGitPath, assertRolePolicySelection, buildSessionTranscript, buildSessionTranscriptFromFeedItems, canInspectArtifactWorkflowNode, canonicalExternalAuthJson, canonicalizeCommitValue, changedRecordSnapshots, compileApprovedRolePolicies, createHttpConnectorEffect, createMcpConnectorEffect, createOnboardingConnectorAuthorizer, createOnboardingIncrementalRunner, createSubjectBoundOnboardingImporter, createSubjectBoundOnboardingSync, defineEffect, defineProjection, defineStateMachine, digestOnboardingGitPlan, discoverMcpTools, discoverOpenApiOperations, environmentSetupProgressFromError, environmentSetupProgressFromResponse, evaluateValidationRule, externalAuthManifestDigest, extractPromptTokens, getArtifactWorkflowNavigationLeaves, getArtifactWorkflowNavigationTarget, getArtifactWorkflowNodes, getCurrentArtifactWorkflowNode, invokeRegisteredEffect, isArtifactWorkflowNodeNavigableLeaf, isArtifactWorkflowNodeTerminal, isLocalApiUrl, normalizeEffectBehaviors, normalizePrompt, normalizePromptChoiceOption, normalizePromptText, normalizePromptType, onboardingIntegrationImportOperationKey, onboardingRealDevImportOperationKey, pollEnvironmentSetup, projectArtifactWorkflow, projectRecordSnapshotMutation, requireArtifactWorkflow, requireArtifactWorkflowResult, resolveApiUrl, resolveAuthTokenForApiUrl, resolveJobPresentation, resolveOnboardingConnectorBinding, resolvePromptAnswer, rolePolicyDependencies, rolePolicyMatches, rolePolicySource, scorePromptChoiceMatch, scrubOnboardingData, scrubOnboardingText, selectApprovedRolePolicies, selectArtifactSurface, validateExternalAuthManifest, validateOnboardingGitPlan, validateOnboardingImportBatch, validateOnboardingIntegrationChange, validateOnboardingIntegrationEvidence, validateOnboardingRolePermissions, validateProjectionResult, validationRuleFailureMessage };