@kodax-ai/kodax 0.7.78 → 0.7.80
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/CHANGELOG.md +3556 -3197
- package/README.md +371 -277
- package/README_CN.md +295 -215
- package/config-templates/config.example.jsonc +24 -2
- package/config-templates/integrations/a2a.example.jsonc +23 -7
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
- package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
- package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
- package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
- package/dist/builtin/skill-creator/scripts/utils.js +5 -1
- package/dist/chunks/agent-5PHGNFW3.js +2 -0
- package/dist/chunks/argument-completer-FXRZFMTC.js +2 -0
- package/dist/chunks/chunk-6UENDY33.js +89 -0
- package/dist/chunks/{chunk-6FOJVETH.js → chunk-BWX4YZX3.js} +7 -7
- package/dist/chunks/chunk-CDCCTM5I.js +278 -0
- package/dist/chunks/chunk-CEB5FDND.js +810 -0
- package/dist/chunks/{chunk-2CFHBKRE.js → chunk-E7C4DRD2.js} +2 -2
- package/dist/chunks/chunk-EVXIJPZ6.js +218 -0
- package/dist/chunks/chunk-FQ7NVMSU.js +319 -0
- package/dist/chunks/chunk-GC4JBMBS.js +385 -0
- package/dist/chunks/{chunk-Z3KFRTSB.js → chunk-HTVLCHWH.js} +1 -1
- package/dist/chunks/chunk-IHPH3444.js +655 -0
- package/dist/chunks/{chunk-YAZQTC2L.js → chunk-KHEFUT6O.js} +1 -1
- package/dist/chunks/{chunk-7OEBJGHK.js → chunk-PMKAG4SZ.js} +1 -1
- package/dist/chunks/chunk-RPF5RGWZ.js +479 -0
- package/dist/chunks/{chunk-UID7BLAB.js → chunk-RXXKDR6Y.js} +1 -1
- package/dist/chunks/chunk-T5U4OP2N.js +292 -0
- package/dist/chunks/chunk-TRNAWSXP.js +123 -0
- package/dist/chunks/chunk-UZSHBQER.js +30 -0
- package/dist/chunks/{chunk-TQDBTTIM.js → chunk-VECRQTSD.js} +44 -44
- package/dist/chunks/compaction-config-6J6XCBJS.js +2 -0
- package/dist/chunks/{construction-bootstrap-VQLQGWPY.js → construction-bootstrap-KPCAE3VN.js} +1 -1
- package/dist/chunks/dist-RWEVZOFK.js +2 -0
- package/dist/chunks/{dist-BFT5YIGU.js → dist-WWL2DNIJ.js} +1 -1
- package/dist/chunks/host-OGS2R5J4.js +2 -0
- package/dist/chunks/run-manager-2YMM3BOT.js +2 -0
- package/dist/chunks/{utils-SID4HW2Q.js → utils-2YHRUZYC.js} +1 -1
- package/dist/index.d.ts +21 -20
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +2 -1
- package/dist/kodax_cli.js +1850 -1476
- package/dist/kodax_resume.js +570 -34
- package/dist/provider-capabilities.json +85 -50
- package/dist/runtime-worker.js +1737 -1369
- package/dist/sandbox-workspace-session.js +285 -19
- package/dist/sdk-a2a.d.ts +19 -13
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +80 -150
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +186 -66
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +7 -7
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +31 -213
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +230 -31
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +8 -8
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +283 -18
- package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-uAe2Oqda.d.ts → bash-prefix-extractor.d-DStqKIlu.d.ts} +31 -8
- package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-BlSv9l3V.d.ts → capsule.d-BuFJaYxA.d.ts} +14 -21
- package/dist/types-chunks/{types.d-BA-Jwpfs.d.ts → controller.d-C2aHqzHj.d.ts} +344 -11
- package/dist/types-chunks/{guardrail.d-CXDYRgZ3.d.ts → guardrail.d-DM-OK0m3.d.ts} +187 -116
- package/dist/types-chunks/{history-retrieval.d-DtCy7x64.d.ts → history-retrieval.d-DImTKgO6.d.ts} +16 -3
- package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
- package/dist/types-chunks/{public-api.d-B3AohsxN.d.ts → public-api.d-CewTvUKV.d.ts} +335 -38
- package/dist/types-chunks/{repl.d-Ie_ZXb_U.d.ts → repl.d-DvXQtgr7.d.ts} +5 -5
- package/dist/types-chunks/{resolver.d-iAQ9ocLB.d.ts → resolver.d-C9IW4fmU.d.ts} +5 -2
- package/dist/types-chunks/{run-manager.d-D1twIhF9.d.ts → run-manager.d-C6ahvZqK.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-DB9KksIx.d.ts → sdk-session-C59RUrri.d.ts} +3 -3
- package/dist/types-chunks/shell-command-sets.d-Dp4UvPLL.d.ts +297 -0
- package/dist/types-chunks/{side-query.d-DTuLPcC5.d.ts → side-query.d-CP1LiRiH.d.ts} +8 -2
- package/dist/types-chunks/{types-D3g6XUQr.d.ts → types-Bf3Y3mW-.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BH0ZkTGf.d.ts → types.d-BzpPDBPV.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
- package/dist/types-chunks/{types.d-DVDTIfB_.d.ts → types.d-yuJzE82x.d.ts} +4 -4
- package/dist/types-chunks/{utils.d-CVp6bFl9.d.ts → utils.d-BpACJmzt.d.ts} +24 -6
- package/docs/SDK_EMBEDDER_GUIDE.md +1148 -598
- package/package.json +6 -3
- package/dist/chunks/agent-ASP4MS3X.js +0 -2
- package/dist/chunks/argument-completer-JYQ7FX3W.js +0 -2
- package/dist/chunks/chunk-35PPHOQ2.js +0 -292
- package/dist/chunks/chunk-43QNNDHR.js +0 -29
- package/dist/chunks/chunk-5GO6FH7L.js +0 -458
- package/dist/chunks/chunk-5NDCSFOP.js +0 -78
- package/dist/chunks/chunk-6XM4B6K2.js +0 -48
- package/dist/chunks/chunk-6YZUE6NC.js +0 -240
- package/dist/chunks/chunk-KQLQYHWU.js +0 -386
- package/dist/chunks/chunk-NXO6GWSY.js +0 -46
- package/dist/chunks/chunk-T2XZTLYE.js +0 -316
- package/dist/chunks/chunk-VAT2QYXM.js +0 -765
- package/dist/chunks/chunk-YVRYHC4C.js +0 -655
- package/dist/chunks/compaction-config-BQSSIWK5.js +0 -2
- package/dist/chunks/dist-PCFE24YP.js +0 -2
- package/dist/chunks/host-UTFXCYYM.js +0 -2
- package/dist/chunks/run-manager-PJU3WIFJ.js +0 -2
- package/dist/types-chunks/guardrail.d-BRE_ErEj.d.ts +0 -156
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, j as AgentActorSnapshot, k as AgentActorSnapshotV1, l as AgentActorSnapshotV2, m as AgentActorState, o as AgentArtifactDescriptor, p as AgentArtifactPolicy, q as AgentArtifactPolicyDecision, r as AgentArtifactPolicyInput, s as AgentArtifactReference, t as AgentBudgetAdmission, u as AgentBudgetAdmissionInput, y as AgentCapabilityDeclaration, z as AgentCapabilityRequirements, B as AgentContinuationInput, C as AgentCredentialBroker, F as AgentDispatchContext, G as AgentDispatchPolicy, H as AgentDispatchPolicyDecision, I as AgentDispatchPolicyInput, J as AgentDispatchabilitySnapshot, K as AgentDispatchabilityStatus, L as AgentEffectDeclaration, N as AgentEventKind, O as AgentExecutionInput, R as AgentExecutor, S as AgentExecutorEvent, U as AgentExecutorFactoryContext, W as AgentExecutorPlaneBackgroundErrorContext, X as AgentExecutorPlaneBackgroundErrorHandler, Y as AgentExecutorPlaneBinding, _ as AgentExecutorPreflightResult, $ as AgentExecutorProtocol, a0 as AgentExecutorTaskReference, a1 as AgentExecutorTaskSnapshot, a3 as AgentForkTurns, a5 as AgentJsonObject, a6 as AgentJsonValue, a8 as AgentListEntry, ad as AgentMiddlewareDeclaration, ag as AgentPreflightInput, ah as AgentPreflightResult, ai as AgentProgressItem, aj as AgentProgressKind, ak as AgentProgressUpdate, al as AgentReasoningProfile, am as AgentRegistrationEnabledMutationOptions, an as AgentRegistrationMutationOptions, ao as AgentRegistrationService, ap as AgentSpanData, ar as AgentTaskCancellation, as as AgentTaskCorrelation, at as AgentTaskEvent, au as AgentTaskFilter, av as AgentTaskProgress, aw as AgentTaskRegistrationSnapshot, ax as AgentTaskService, ay as AgentTaskSnapshot, az as AgentTaskStartInput, aA as AgentTaskState, aB as AgentTaskUsage, aC as AgentTool, aE as AgentTurn, aH as AgentTurnState, aI as AgentTurnSummary, aJ as AskUserAnswer, aK as AskUserCustomInputAnswer, aL as AskUserMultiOptions, aM as AskUserQuestionItem, aN as AskUserQuestionOptions, aO as AskUserSelectionAnswer, aP as CapabilitySupport, aQ as CommitLearnedSkillRevisionInput, aR as CompactionAnchor, aU as CompactionReport, aW as CompactionSpanData, aZ as CreateLearnedSkillRecordInput, a_ as CurrentTodoSummary, a$ as DEFAULT_SYSTEM_CAP, b0 as DeclarativeSkillSpec, b1 as Deliverable, b3 as DiscoveryOptions, b4 as DispatchableAgentDescriptor, b5 as DispatchableAgentListing, b6 as DispatchableAgentOrigin, b7 as DispatchableAgentQuery, b8 as EvidenceSpanData, b9 as ExactInvokedSkillSnapshot, ba as ExternalAgentEffectDeclaration, bb as ExternalAgentHealth, bd as ExternalAgentRegistration, be as ExternalAgentRegistrationSummary, bf as FanoutSpanData, bg as FileOperations, bh as GenerationSpanData, bi as Guardrail, bj as GuardrailSpanData, bl as HandoffSpanData, bm as InMemorySessionOptions, bp as InvariantResult, bq as InvariantSession, br as KodaXCompactMemoryProgress, bs as KodaXCompactMemorySeed, bt as KodaXExtensionSessionRecord, bu as KodaXExtensionSessionState, bA as KodaXGoalStatus, bG as KodaXMemoryInfluenceRef, bH as KodaXMemoryIntent, bJ as KodaXMemoryOutcomeEvidence, bK as KodaXSessionArchiveMarkerEntry, bM as KodaXSessionBranchSummaryEntry, bN as KodaXSessionClientNoticeEntry, bO as KodaXSessionCompactionEntry, bR as KodaXSessionEntryBase, bT as KodaXSessionLabelEntry, bV as KodaXSessionMemoryOutcomeDigestEntry, bW as KodaXSessionMemoryReviewReceiptEntry, bX as KodaXSessionMessageEntry, bY as KodaXSessionMeta, bZ as KodaXSessionNavigationOptions, b_ as KodaXSessionRewindMarkerEntry, b$ as KodaXSessionRuntimeInfo, c0 as KodaXSessionScope, c2 as KodaXSessionTreeNode, c3 as KodaXSessionUiHistoryItem, c4 as KodaXSessionUiHistoryItemType, c5 as KodaXSessionUiTextHistoryItem, c6 as KodaXSessionUiTextHistoryItemType, c7 as KodaXSessionUiToolCall, c8 as KodaXSessionUiToolCallStatus, c9 as KodaXSessionUiToolGroupHistoryItem, ca as KodaXSessionWorkspaceKind, cd as LearnedAreaPaths, cf as LearnedCapabilityArtifact, cg as LearnedCapabilityCanary, ch as LearnedCapabilityCanaryBinding, ci as LearnedCapabilityCanaryInvocation, cj as LearnedCapabilityCarrier, ck as LearnedCapabilityLifecycle, cl as LearnedCapabilityProvenance, cn as LearnedCapabilityRecordV1, co as LearnedCapabilityRecordV2, cq as LearnedCapabilitySource, cr as LearnedSkillBindingAdmission, cs as LearnedSkillCanaryOutcome, ct as LearnedSkillDecisionDisposition, cu as LearnedSkillInvocationAdmission, cv as LearnedSkillInvokedReceipt, cw as LearnedSkillOfferedReceipt, cx as LearnedSkillOutcomeReceipt, cy as LearnedSkillUsageReceipt, cz as LearningAction, cB as LearningCapabilityError, cC as LearningCapabilityErrorCode, cD as LearningClientEventState, cE as LearningClientRecord, cG as LearningEventKind, cI as LearningNotificationState, cL as LearningReviewEvidencePacket, cM as LearningReviewQualification, cN as LearningReviewVerifierFact, cQ as LocalAgentTaskInput, cR as LocalAgentTaskUpdate, cS as MAX_TOOL_LOOP_ITERATIONS, cW as MemoryApplyPreview, cY as MemoryApproval, cZ as MemoryAuthority, d1 as MemoryClaimKind, d5 as MemoryDecisionTraceReceipt, d8 as MemoryGovernanceFinding, d9 as MemoryGovernanceFindingKind, dc as MemoryLifecycle, df as MemoryPackHint, dh as MemoryPackTraceMetadata, di as MemoryProposalAction, dk as MemoryRefKind, dm as MemoryReviewCandidateRef, dn as MemoryReviewDraftAction, dr as MemoryReviewPersistenceDecision, ds as MemoryReviewPersistenceKind, dv as MemoryReviewTrigger, dw as MemoryScope, dx as MemorySourceAdapter, dy as MemoryVisibility, dz as MessageEntry, dA as NormalizedLearnedSkillDecision, dB as ObserveCtx, dC as PersistedSessionState, dD as PresetDispatcher, dE as PresetTracingContext, dG as ReadonlyMutationTracker, dH as ReadonlyRecorder, dI as ReasoningDepth, dJ as RecentlyModifiedFile, dK as RunEvent, dL as RunOptions, dM as RunResult, dN as RunnableTool, dO as Runner, dP as RunnerEvent, dQ as RunnerLlmResult, dR as RunnerLlmReturn, dS as RunnerRecoveryTranscriptCarrier, dU as RunnerToolContext, dV as RunnerToolObserver, dX as RunnerToolResultBatch, dY as RunnerToolResultBatchTransform, dZ as Session, d_ as SessionDispatchResult, d$ as SessionEntry, e0 as SessionErrorMetadata, e1 as SessionExtension, e2 as SessionForkOptions, e6 as SpanData, e7 as SpanError, e8 as SpanImpl, e9 as SpanImplOptions, ea as StagedLearnedSkillArtifact, eb as StartTraceOptions, ee as StateWriterOptions, ei as StopHookSpanData, ej as SystemCap, ek as TerminalCtx, el as ToolCallSpanData, em as ToolCapability, en as ToolPermission, ep as TraceOptions, eq as Tracer, er as TracerOptions, es as UnifiedLearningReviewModelInput, et as UnifiedLearningReviewResult, eu as UnifiedLearningReviewRunner, ev as UserInteraction, ey as WorkflowApproval, ez as WorkflowApprovalSummary, eA as WorkflowArtifactRef, eB as WorkflowBudget, eD as WorkflowEventCorrelation, eE as WorkflowEventRecorder, eF as WorkflowEventType, eG as WorkflowIsolation, eJ as WorkflowMeta, eK as WorkflowModelHint, eN as WorkflowOutcomeError, eO as WorkflowOutcomeResult, eP as WorkflowOutcomeStatus, eQ as WorkflowOutcomeUsage, eR as WorkflowParallelOptions, eS as WorkflowProcessArtifact, eT as WorkflowProcessCounts, eU as WorkflowProcessEvent, eV as WorkflowProcessItem, eW as WorkflowProcessItemKind, eX as WorkflowProcessItemOrigin, eY as WorkflowProcessItemStatus, eZ as WorkflowProcessProgress, e_ as WorkflowProcessSnapshot, e$ as WorkflowProcessSource, f0 as WorkflowProcessStatus, f1 as WorkflowProcessSummaryStatus, f2 as WorkflowProcessTokenUsage, f3 as WorkflowProcessTracker, f4 as WorkflowProcessTrackerOptions, f5 as WorkflowRun, f7 as WorkflowRunStatus, f8 as WorkflowSpawnAgentInput, f9 as WorkflowSynthesis, fa as WorkflowSynthesizeInput, fb as WorkflowTaskHandle, fd as WorkflowTaskSnapshot, fe as WorkflowTaskStatus, ff as WorkflowTaskSummaryEventUpdate, fg as WorkflowTaskSummaryKind, fh as WorkflowTaskSummaryUpdate, fi as WorkflowTaskUsage, fj as WorkflowTaskVerification, fk as WorkflowTaskVerificationResult, fl as WorkflowWaitOptions, fm as _resetAdmittedAgentBindings, fn as _resetPresetDispatchers, fo as admitAndRecordLearnedSkillInvocation, fp as admitLearnedSkillBinding, fq as asSingleSelection, fr as assertLearnedCapabilityTransition, fs as attachRunnerRecoveryTranscript, ft as buildAssistantMessageFromLlmResult, fu as buildSystemPrompt, fv as buildToolResultMessage, fw as canTransitionLearnedCapability, fx as commitLearnedSkillRevision, fy as completeLearnedSkillOutcome, fz as completeLearnedSkillSessionOutcomes, fA as createAgent, fB as createHandoff, fC as createInMemorySession, fD as createInvariantSessionForAgent, fE as createLearnedCapabilityScope, fF as createLearnedSkillRecord, fG as createStateWriter, fH as createTrace, fI as createWorkflowProcessTracker, fJ as defaultTracer, fK as detectInstructionsInjection, fL as discoverInstances, fM as eventFromCapability, fN as exactInvokedSkillSnapshotForSession, fO as executeRunnerToolCall, fP as extractAssistantTextFromMessage, fQ as getActiveUserInteraction, fR as getAdmittedAgentBindings, fS as hashMemoryIdentityComponent, fT as invokeLearnedSkillCanary, fU as isAskUserCustomInputAnswer, fV as isFinalWorkflowProcessStatus, fW as isLearnedCapabilityRecordV2, fX as isRunnableTool, fY as isRunnerLlmResult, fZ as isUnifiedLearningReviewModelInput, f_ as learningEventIdFor, f$ as learningEventKindForLifecycle, g0 as listLearnedSkillUsageReceipts, g1 as matchesMemoryApplicability, g2 as memoryApplicabilityFingerprint, g3 as normalizeHostMetadata, g4 as normalizeUnifiedLearningReview, g5 as quarantineLearnedSkillRevision, g6 as readRunnerRecoveryTranscript, g7 as reconcileLearnedSkillBindingOutcomes, g8 as recordLearnedSkillOffered, g9 as registerPresetDispatcher, ga as releaseLearnedSkillBinding, gb as renderDeclarativeSkill, gc as resolveLearnedAreaPaths, gd as resolveProjectLearnedAreaRoot, ge as runAdmissionAudit, gf as sanitizeUnifiedLearningReviewInput, gg as setActiveUserInteraction, gh as setAdmittedAgentBindings, gi as slugifyLearnedCapabilityName, gj as stageLearnedSkillRevision, gk as validateDeclarativeSkillSpec } from './types-chunks/types.d-BA-Jwpfs.js';
|
|
3
|
-
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-
|
|
4
|
-
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-CVsdHw4j.js';
|
|
1
|
+
import { eg as Span, eB as Trace, f as Agent, bs as Handoff, e2 as RunnerToolCall, e5 as RunnerToolResult, ae as AgentMessage, ad as AgentManifest, d0 as ManifestPatch, bx as InvariantId, dP as QualityInvariant, bN as KodaXInputArtifactSource, bL as KodaXImageMediaType, cl as KodaXVideoMediaType, bG as KodaXFileInputArtifact, bK as KodaXImageInputArtifact, ck as KodaXVideoInputArtifact, bM as KodaXInputArtifact, b5 as DiscoveredInstance, ee as SessionMeta, ef as SessionStateSnapshot, eo as StateWriterFs, bw as InstanceDiscoveryFs, en as StateWriter, eq as StopHookContext, es as StopHookResult, er as StopHookFn, db as MemoryContextIdentity, dk as MemoryItemRef, c1 as KodaXSessionLineage, bU as KodaXSessionArtifactLedgerEntry, dg as MemoryEvent, dD as MemoryReviewRunner, dc as MemoryController, d1 as MemoryActionProposal, d4 as MemoryApplyResult, dv as MemoryRejectResult, dt as MemoryRefFilter, d9 as MemoryBodySnapshot, dm as MemoryLifecycleOperationResult, dd as MemoryCuratorInput, dj as MemoryGovernanceReport, d7 as MemoryAutoCuratorInput, d8 as MemoryAutoCuratorResult, dq as MemoryPackInput, dn as MemoryPack, dy as MemoryReviewInput, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, dz as MemoryReviewModelInput, df as MemoryEpisodeReviewResult, d2 as MemoryApplicability, cJ as LearningActionDriver, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cY as LearningSurfaceSnapshot, cO as LearningEvent, cX as LearningSubscribeOptions, cQ as LearningExplicitUserAuthority, cn as LearnedAreaStore, cy as LearnedCapabilityScope, ca as KodaXSessionStorage, a_ as CompactionUpdate, bY as KodaXSessionData, bI as KodaXGoalState, bH as KodaXGoalEventType, bZ as KodaXSessionEntry, b$ as KodaXSessionGoalEntry, aV as CompactionConfig, aW as CompactionDetails, aY as CompactionResult, bE as KodaXExtensionStore, bF as KodaXExtensionStoreEntry, bO as KodaXJsonValue, fj as WorkflowRunState, eZ as WorkflowOutcome, eK as WorkflowApi, eY as WorkflowModule, eJ as WorkflowAgentBackend, eU as WorkflowLimits, eP as WorkflowEvent, eV as WorkflowLogEvent, fp as WorkflowTaskResult, a0 as AgentExecutorPlaneStore, a$ as CreateAgentExecutorPlaneOptions, Y as AgentExecutorPlane, bf as ExternalAgentProtocol, W as AgentExecutorFactory, w as AgentBudgetExhausted, aa as AgentLimitReached } from './types-chunks/controller.d-C2aHqzHj.js';
|
|
2
|
+
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, h as AgentActorClient, i as AgentActorController, j as AgentActorOwner, k as AgentActorSnapshot, l as AgentActorSnapshotV1, m as AgentActorSnapshotV2, n as AgentActorState, o as AgentActorStore, p as AgentArtifactDescriptor, q as AgentArtifactPolicy, r as AgentArtifactPolicyDecision, s as AgentArtifactPolicyInput, t as AgentArtifactReference, u as AgentBudgetAdmission, v as AgentBudgetAdmissionInput, x as AgentBudgetPort, y as AgentCapabilities, z as AgentCapabilityDeclaration, B as AgentCapabilityRequirements, C as AgentContinuationInput, D as AgentControllerHealth, E as AgentControllerOptions, F as AgentCredentialBroker, G as AgentDataClassification, H as AgentDetail, I as AgentDispatchContext, J as AgentDispatchPolicy, K as AgentDispatchPolicyDecision, L as AgentDispatchPolicyInput, M as AgentDispatchabilitySnapshot, N as AgentDispatchabilityStatus, O as AgentEffectDeclaration, P as AgentEvent, Q as AgentEventKind, R as AgentExecutionInput, S as AgentExecutionKind, T as AgentExecutionResult, U as AgentExecutor, V as AgentExecutorEvent, X as AgentExecutorFactoryContext, Z as AgentExecutorPlaneBackgroundErrorContext, _ as AgentExecutorPlaneBackgroundErrorHandler, $ as AgentExecutorPlaneBinding, a1 as AgentExecutorPreflightResult, a2 as AgentExecutorProtocol, a3 as AgentExecutorTaskReference, a4 as AgentExecutorTaskSnapshot, a5 as AgentFollowupResult, a6 as AgentForkTurns, a7 as AgentInterruptScope, a8 as AgentJsonObject, a9 as AgentJsonValue, ab as AgentListEntry, ac as AgentMailboxMessage, af as AgentMetadataValue, ag as AgentMiddlewareDeclaration, ah as AgentMutationOptions, ai as AgentOutput, aj as AgentPreflightInput, ak as AgentPreflightResult, al as AgentProgressItem, am as AgentProgressKind, an as AgentProgressUpdate, ao as AgentReasoningProfile, ap as AgentRegistrationEnabledMutationOptions, aq as AgentRegistrationMutationOptions, ar as AgentRegistrationService, as as AgentSpanData, at as AgentSpawnInput, au as AgentTaskCancellation, av as AgentTaskCorrelation, aw as AgentTaskEvent, ax as AgentTaskFilter, ay as AgentTaskProgress, az as AgentTaskRegistrationSnapshot, aA as AgentTaskService, aB as AgentTaskSnapshot, aC as AgentTaskStartInput, aD as AgentTaskState, aE as AgentTaskUsage, aF as AgentTool, aG as AgentTreeSnapshot, aH as AgentTurn, aI as AgentTurnExecutor, aJ as AgentTurnRef, aK as AgentTurnState, aL as AgentTurnSummary, aM as AskUserAnswer, aN as AskUserCustomInputAnswer, aO as AskUserMultiOptions, aP as AskUserQuestionItem, aQ as AskUserQuestionOptions, aR as AskUserSelectionAnswer, aS as CapabilitySupport, aT as CommitLearnedSkillRevisionInput, aU as CompactionAnchor, aX as CompactionReport, aZ as CompactionSpanData, b0 as CreateLearnedSkillRecordInput, b1 as CurrentTodoSummary, b2 as DEFAULT_SYSTEM_CAP, b3 as DeclarativeSkillSpec, b4 as Deliverable, b6 as DiscoveryOptions, b7 as DispatchableAgentDescriptor, b8 as DispatchableAgentListing, b9 as DispatchableAgentOrigin, ba as DispatchableAgentQuery, bb as EvidenceSpanData, bc as ExactInvokedSkillSnapshot, bd as ExternalAgentEffectDeclaration, be as ExternalAgentHealth, bg as ExternalAgentRegistration, bh as ExternalAgentRegistrationSummary, bi as FanoutSpanData, bj as FileOperations, bk as GenerationSpanData, bl as Guardrail, bm as GuardrailBlockedError, bn as GuardrailContext, bo as GuardrailEscalateError, bp as GuardrailPermissionIntent, bq as GuardrailSpanData, br as GuardrailVerdict, bt as HandoffSpanData, bu as InMemorySessionOptions, bv as InputGuardrail, by as InvariantResult, bz as InvariantSession, bA as KodaXCompactMemoryProgress, bB as KodaXCompactMemorySeed, bC as KodaXExtensionSessionRecord, bD as KodaXExtensionSessionState, bJ as KodaXGoalStatus, bP as KodaXMemoryInfluenceRef, bQ as KodaXMemoryIntent, bS as KodaXMemoryOutcomeEvidence, bT as KodaXSessionArchiveMarkerEntry, bV as KodaXSessionBranchSummaryEntry, bW as KodaXSessionClientNoticeEntry, bX as KodaXSessionCompactionEntry, b_ as KodaXSessionEntryBase, c0 as KodaXSessionLabelEntry, c2 as KodaXSessionMemoryOutcomeDigestEntry, c3 as KodaXSessionMemoryReviewReceiptEntry, c4 as KodaXSessionMessageEntry, c5 as KodaXSessionMeta, c6 as KodaXSessionNavigationOptions, c7 as KodaXSessionRewindMarkerEntry, c8 as KodaXSessionRuntimeInfo, c9 as KodaXSessionScope, cb as KodaXSessionTreeNode, cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem, cj as KodaXSessionWorkspaceKind, cm as LearnedAreaPaths, co as LearnedCapabilityArtifact, cp as LearnedCapabilityCanary, cq as LearnedCapabilityCanaryBinding, cr as LearnedCapabilityCanaryInvocation, cs as LearnedCapabilityCarrier, ct as LearnedCapabilityLifecycle, cu as LearnedCapabilityProvenance, cw as LearnedCapabilityRecordV1, cx as LearnedCapabilityRecordV2, cz as LearnedCapabilitySource, cA as LearnedSkillBindingAdmission, cB as LearnedSkillCanaryOutcome, cC as LearnedSkillDecisionDisposition, cD as LearnedSkillInvocationAdmission, cE as LearnedSkillInvokedReceipt, cF as LearnedSkillOfferedReceipt, cG as LearnedSkillOutcomeReceipt, cH as LearnedSkillUsageReceipt, cI as LearningAction, cK as LearningCapabilityError, cL as LearningCapabilityErrorCode, cM as LearningClientEventState, cN as LearningClientRecord, cP as LearningEventKind, cR as LearningNotificationState, cU as LearningReviewEvidencePacket, cV as LearningReviewQualification, cW as LearningReviewVerifierFact, cZ as LocalAgentTaskInput, c_ as LocalAgentTaskUpdate, c$ as MAX_TOOL_LOOP_ITERATIONS, d3 as MemoryApplyPreview, d5 as MemoryApproval, d6 as MemoryAuthority, da as MemoryClaimKind, de as MemoryDecisionTraceReceipt, dh as MemoryGovernanceFinding, di as MemoryGovernanceFindingKind, dl as MemoryLifecycle, dp as MemoryPackHint, dr as MemoryPackTraceMetadata, ds as MemoryProposalAction, du as MemoryRefKind, dw as MemoryReviewCandidateRef, dx as MemoryReviewDraftAction, dA as MemoryReviewPersistenceDecision, dB as MemoryReviewPersistenceKind, dE as MemoryReviewTrigger, dF as MemoryScope, dG as MemorySourceAdapter, dH as MemoryVisibility, dI as MessageEntry, dJ as NormalizedLearnedSkillDecision, dK as ObserveCtx, dL as OutputGuardrail, dM as PersistedSessionState, dN as PresetDispatcher, dO as PresetTracingContext, dQ as ReadonlyMutationTracker, dR as ReadonlyRecorder, dS as ReasoningDepth, dT as RecentlyModifiedFile, dU as RunEvent, dV as RunOptions, dW as RunResult, dX as RunnableTool, dY as Runner, dZ as RunnerEvent, d_ as RunnerIterationLimitError, d$ as RunnerLlmResult, e0 as RunnerLlmReturn, e1 as RunnerRecoveryTranscriptCarrier, e3 as RunnerToolContext, e4 as RunnerToolObserver, e6 as RunnerToolResultBatch, e7 as RunnerToolResultBatchTransform, e8 as Session, e9 as SessionDispatchResult, ea as SessionEntry, eb as SessionErrorMetadata, ec as SessionExtension, ed as SessionForkOptions, eh as SpanData, ei as SpanError, ej as SpanImpl, ek as SpanImplOptions, el as StagedLearnedSkillArtifact, em as StartTraceOptions, ep as StateWriterOptions, et as StopHookSpanData, eu as SystemCap, ev as TerminalCtx, ew as ToolBeforeOutcome, ex as ToolCallSpanData, ey as ToolCapability, ez as ToolGuardrail, eA as ToolPermission, eC as TraceOptions, eD as Tracer, eE as TracerOptions, eF as UnifiedLearningReviewModelInput, eG as UnifiedLearningReviewResult, eH as UnifiedLearningReviewRunner, eI as UserInteraction, eL as WorkflowApproval, eM as WorkflowApprovalSummary, eN as WorkflowArtifactRef, eO as WorkflowBudget, eQ as WorkflowEventCorrelation, eR as WorkflowEventRecorder, eS as WorkflowEventType, eT as WorkflowIsolation, eW as WorkflowMeta, eX as WorkflowModelHint, e_ as WorkflowOutcomeError, e$ as WorkflowOutcomeResult, f0 as WorkflowOutcomeStatus, f1 as WorkflowOutcomeUsage, f2 as WorkflowParallelOptions, f3 as WorkflowProcessArtifact, f4 as WorkflowProcessCounts, f5 as WorkflowProcessEvent, f6 as WorkflowProcessItem, f7 as WorkflowProcessItemKind, f8 as WorkflowProcessItemOrigin, f9 as WorkflowProcessItemStatus, fa as WorkflowProcessProgress, fb as WorkflowProcessSnapshot, fc as WorkflowProcessSource, fd as WorkflowProcessStatus, fe as WorkflowProcessSummaryStatus, ff as WorkflowProcessTokenUsage, fg as WorkflowProcessTracker, fh as WorkflowProcessTrackerOptions, fi as WorkflowRun, fk as WorkflowRunStatus, fl as WorkflowSpawnAgentInput, fm as WorkflowSynthesis, fn as WorkflowSynthesizeInput, fo as WorkflowTaskHandle, fq as WorkflowTaskSnapshot, fr as WorkflowTaskStatus, fs as WorkflowTaskSummaryEventUpdate, ft as WorkflowTaskSummaryKind, fu as WorkflowTaskSummaryUpdate, fv as WorkflowTaskUsage, fw as WorkflowTaskVerification, fx as WorkflowTaskVerificationResult, fy as WorkflowWaitOptions, fz as _resetAdmittedAgentBindings, fA as _resetPresetDispatchers, fB as admitAndRecordLearnedSkillInvocation, fC as admitLearnedSkillBinding, fD as asSingleSelection, fE as assertLearnedCapabilityTransition, fF as attachRunnerRecoveryTranscript, fG as buildAssistantMessageFromLlmResult, fH as buildSystemPrompt, fI as buildToolResultMessage, fJ as canTransitionLearnedCapability, fK as collectGuardrails, fL as commitLearnedSkillRevision, fM as completeLearnedSkillOutcome, fN as completeLearnedSkillSessionOutcomes, fO as createAgent, fP as createAgentActorController, fQ as createHandoff, fR as createInMemorySession, fS as createInvariantSessionForAgent, fT as createLearnedCapabilityScope, fU as createLearnedSkillRecord, fV as createStateWriter, fW as createTrace, fX as createWorkflowProcessTracker, fY as defaultTracer, fZ as detectInstructionsInjection, f_ as discoverInstances, f$ as eventFromCapability, g0 as exactInvokedSkillSnapshotForSession, g1 as executeRunnerToolCall, g2 as extractAssistantTextFromMessage, g3 as getActiveUserInteraction, g4 as getAdmittedAgentBindings, g5 as hashMemoryIdentityComponent, g6 as invokeLearnedSkillCanary, g7 as isAskUserCustomInputAnswer, g8 as isFinalWorkflowProcessStatus, g9 as isLearnedCapabilityRecordV2, ga as isRunnableTool, gb as isRunnerIterationLimitError, gc as isRunnerLlmResult, gd as isUnifiedLearningReviewModelInput, ge as learningEventIdFor, gf as learningEventKindForLifecycle, gg as listLearnedSkillUsageReceipts, gh as matchesMemoryApplicability, gi as memoryApplicabilityFingerprint, gj as normalizeHostMetadata, gk as normalizeUnifiedLearningReview, gl as quarantineLearnedSkillRevision, gm as readRunnerRecoveryTranscript, gn as reconcileLearnedSkillBindingOutcomes, go as recordLearnedSkillOffered, gp as registerPresetDispatcher, gq as releaseLearnedSkillBinding, gr as renderDeclarativeSkill, gs as resolveLearnedAreaPaths, gt as resolveProjectLearnedAreaRoot, gu as runAdmissionAudit, gv as runInputGuardrails, gw as runOutputGuardrails, gx as runToolAfterGuardrails, gy as runToolBeforeGuardrails, gz as sanitizeUnifiedLearningReviewInput, gA as setActiveUserInteraction, gB as setAdmittedAgentBindings, gC as slugifyLearnedCapabilityName, gD as stageLearnedSkillRevision, gE as validateDeclarativeSkillSpec } from './types-chunks/controller.d-C2aHqzHj.js';
|
|
3
|
+
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-BuFJaYxA.js';
|
|
4
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as generateSessionIdSync, ab as getAgentConfigHome, ac as getAgentConfigPath, ad as getAppDataDir, ae as getSessionLineagePath, af as getSessionMessagesFromLineage, ag as isPathInsideDirectory, ah as lintRestrictedWorkflowSource, ai as mergeArtifactLedger, aj as mergeFileOps, ak as registerActiveRootQueueRoute, al as resolveActiveRootQueueRoute, am as resolveExecutionPath, an as resolveSessionLineageTarget, ao as rewindSessionLineage, ap as setAgentConfigHome, aq as setSessionLineageActiveEntry, ar as validateAndFixToolHistory, as as validateWorkflowCapsule, at as validateWorkflowScriptManifest } from './types-chunks/capsule.d-BuFJaYxA.js';
|
|
5
|
+
import { i as KodaXImageBlock, k as KodaXMessage, a2 as KodaXToolDefinition, a7 as KodaXToolUseBlock, I as KodaXReasoningRequest, e as KodaXEphemeralSuffix, a1 as KodaXTokenUsage } from './types-chunks/types.d-CgrXrFrq.js';
|
|
6
|
+
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, r as KodaXProviderConfig, z as KodaXProviderStreamOptions, C as KodaXReasoningCapability, G as KodaXReasoningMode, J as KodaXRedactedThinkingBlock, M as KodaXRiskLevel, O as KodaXStreamResult, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a3 as KodaXToolResultBlock } from './types-chunks/types.d-CgrXrFrq.js';
|
|
7
|
+
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-iPSiAmc_.js';
|
|
8
|
+
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-iPSiAmc_.js';
|
|
10
9
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
11
10
|
import { ChildProcess } from 'node:child_process';
|
|
12
|
-
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-
|
|
13
|
-
export { M as MessageMode } from './types-chunks/types.d-
|
|
14
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
11
|
+
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-BzpPDBPV.js';
|
|
12
|
+
export { M as MessageMode } from './types-chunks/types.d-BzpPDBPV.js';
|
|
13
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-DxG0m09Z.js';
|
|
15
14
|
import { R as ResolvedSkillSource } from './types-chunks/types.d-BbtGlKZu.js';
|
|
16
15
|
export { I as ISkillRegistry, a as IVariableResolver, L as LearnedSkillDiscoveryConfig, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-BbtGlKZu.js';
|
|
17
16
|
export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
18
17
|
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpDiscoveryCatalog, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
|
|
19
|
-
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo,
|
|
18
|
+
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportCleanupIncompleteError, d as McpTransportEvents, O as OAuthClientInfo, e as OAuthLoginConsent, P as PerformOAuthLoginOptions, f as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, g as createMcpTransport, h as discoverAuthorizationServerMetadata, i as discoverOAuthEndpoints, j as discoverProtectedResourceMetadata, k as extractInsufficientScope, l as extractResourceMetadataUrl, m as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-6i-vidxv.js';
|
|
20
19
|
export { createMcpTestServerFixture } from './sdk-mcp.js';
|
|
21
20
|
export { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExecutor, SkillExpansionResult, SkillRegistry, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath } from './sdk-skills.js';
|
|
22
|
-
export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory } from './types-chunks/history-retrieval.d-
|
|
23
|
-
export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-
|
|
21
|
+
export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory, g as searchSessionHistoryCooperatively, v as validateSessionHistorySearchQuery } from './types-chunks/history-retrieval.d-DImTKgO6.js';
|
|
22
|
+
export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-C6ahvZqK.js';
|
|
24
23
|
|
|
25
24
|
declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
|
|
26
25
|
declare const CONTEXT_SAFETY_RATIO = 0.03;
|
|
@@ -523,6 +522,8 @@ declare const HARDENED_ENV_VARS: readonly ["LD_PRELOAD", "DYLD_INSERT_LIBRARIES"
|
|
|
523
522
|
declare const HARDENING_OPT_OUT_ENV = "KODAX_DISABLE_HARDENING";
|
|
524
523
|
/** Electron bootstrap switch. It must never survive in long-running KodaX code. */
|
|
525
524
|
declare const ELECTRON_RUN_AS_NODE_ENV = "ELECTRON_RUN_AS_NODE";
|
|
525
|
+
/** Makes a Bun standalone executable behave as the Bun JavaScript runtime. */
|
|
526
|
+
declare const BUN_BE_BUN_ENV = "BUN_BE_BUN";
|
|
526
527
|
/**
|
|
527
528
|
* Runs before the requested Node entrypoint and removes the Electron-only
|
|
528
529
|
* bootstrap switch. The switch is still present when the OS creates the
|
|
@@ -533,11 +534,18 @@ interface InternalNodeLaunch {
|
|
|
533
534
|
readonly args: readonly string[];
|
|
534
535
|
readonly env: NodeJS.ProcessEnv;
|
|
535
536
|
}
|
|
537
|
+
interface JavaScriptChildLaunch extends InternalNodeLaunch {
|
|
538
|
+
readonly command: string;
|
|
539
|
+
}
|
|
536
540
|
interface PrepareInternalNodeLaunchOptions {
|
|
537
541
|
readonly args: readonly string[];
|
|
538
542
|
readonly env: NodeJS.ProcessEnv;
|
|
539
543
|
readonly isElectron: boolean;
|
|
540
544
|
}
|
|
545
|
+
interface PrepareJavaScriptChildLaunchOptions extends PrepareInternalNodeLaunchOptions {
|
|
546
|
+
readonly executable?: string;
|
|
547
|
+
readonly isBundled?: boolean;
|
|
548
|
+
}
|
|
541
549
|
/**
|
|
542
550
|
* Consume the Electron bootstrap switch and strip dynamic-linker preload vars
|
|
543
551
|
* from the live `process.env`. Call once at process startup, before anything
|
|
@@ -551,6 +559,14 @@ declare function applyProcessHardening(): void;
|
|
|
551
559
|
* boundary; the target process removes it before loading application code.
|
|
552
560
|
*/
|
|
553
561
|
declare function prepareInternalNodeLaunch(options: PrepareInternalNodeLaunchOptions): InternalNodeLaunch;
|
|
562
|
+
/**
|
|
563
|
+
* Prepare a child that must interpret JavaScript rather than re-enter KodaX.
|
|
564
|
+
*
|
|
565
|
+
* Node and Electron use their normal executable contracts. A Bun-compiled
|
|
566
|
+
* standalone has no separate interpreter binary, so `BUN_BE_BUN=1` switches
|
|
567
|
+
* the executable to Bun mode for this child only.
|
|
568
|
+
*/
|
|
569
|
+
declare function prepareJavaScriptChildLaunch(options: PrepareJavaScriptChildLaunchOptions): JavaScriptChildLaunch;
|
|
554
570
|
/**
|
|
555
571
|
* Return a copy of `env` with the dynamic-linker preload vars removed. Used
|
|
556
572
|
* when spawning MCP children so a server cannot reintroduce them via its own
|
|
@@ -563,13 +579,29 @@ interface ProcessTreeKillOptions {
|
|
|
563
579
|
readonly gracefulMs?: number;
|
|
564
580
|
readonly forceMs?: number;
|
|
565
581
|
readonly taskkillMs?: number;
|
|
582
|
+
/** Exact OS process-start identity captured before cleanup begins. */
|
|
583
|
+
readonly expectedProcessStartIdentity?: string;
|
|
584
|
+
/** Exact Windows tree identities retained by a managed-process registry. */
|
|
585
|
+
readonly expectedProcessTreeIdentities?: readonly WindowsProcessTreeIdentity[];
|
|
586
|
+
readonly expectedProcessTreeComplete?: boolean;
|
|
587
|
+
}
|
|
588
|
+
interface WindowsProcessTreeIdentity {
|
|
589
|
+
readonly pid: number;
|
|
590
|
+
readonly creationTime: string;
|
|
591
|
+
}
|
|
592
|
+
type ProcessTreeKillStatus = 'terminated' | 'already-exited' | 'unknown';
|
|
593
|
+
interface ProcessTreeKillResult {
|
|
594
|
+
readonly status: ProcessTreeKillStatus;
|
|
566
595
|
}
|
|
567
596
|
declare function isChildProcessExited(child: Pick<ChildProcess, 'exitCode' | 'signalCode'>): boolean;
|
|
568
597
|
declare function waitForChildProcessExit(child: ChildProcess, timeoutMs: number): Promise<boolean>;
|
|
569
|
-
|
|
570
|
-
declare function
|
|
571
|
-
declare function
|
|
572
|
-
declare function
|
|
598
|
+
/** Read an OS-issued start identity so later cleanup never trusts a bare PID. */
|
|
599
|
+
declare function readProcessStartIdentity(pid: number): string | undefined;
|
|
600
|
+
declare function rememberChildProcessTree(child: ChildProcess): string | undefined;
|
|
601
|
+
declare function killPidTree(pid: number, options?: ProcessTreeKillOptions): Promise<ProcessTreeKillResult>;
|
|
602
|
+
declare function killPidTreeSync(pid: number): ProcessTreeKillResult;
|
|
603
|
+
declare function killChildProcessTree(child: ChildProcess, options?: ProcessTreeKillOptions): Promise<ProcessTreeKillResult>;
|
|
604
|
+
declare function killChildProcessTreeSync(child: ChildProcess): ProcessTreeKillResult;
|
|
573
605
|
|
|
574
606
|
interface ManagedChildProcessMetadata {
|
|
575
607
|
readonly kind: string;
|
|
@@ -588,6 +620,8 @@ interface ManagedChildCleanupSummary {
|
|
|
588
620
|
}
|
|
589
621
|
interface CleanupOptions {
|
|
590
622
|
readonly includeCurrentOwner?: boolean;
|
|
623
|
+
/** Fail when a child owned by this process cannot be verified as reclaimed. */
|
|
624
|
+
readonly requireCurrentOwnerCleanup?: boolean;
|
|
591
625
|
}
|
|
592
626
|
declare function registerManagedChildProcess(child: ChildProcess, metadata: ManagedChildProcessMetadata, options?: ManagedChildRegistrationOptions): () => void;
|
|
593
627
|
declare function cleanupRegisteredManagedChildren(options?: CleanupOptions): Promise<ManagedChildCleanupSummary>;
|
|
@@ -1114,7 +1148,7 @@ type EnvelopeAggregateEnforcer = (fragments: readonly string[], context?: Envelo
|
|
|
1114
1148
|
* `readonly KodaXMessage[]` (possibly empty). Callers must spread the
|
|
1115
1149
|
* result into their next-iteration input.
|
|
1116
1150
|
*/
|
|
1117
|
-
declare function composeIdleYieldUserMessage(wakeEvent: WakeEvent, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[], queuedMessageIds: readonly string[]) => void
|
|
1151
|
+
declare function composeIdleYieldUserMessage(wakeEvent: WakeEvent, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[], queuedMessageIds: readonly string[], promptMessage: KodaXMessage) => void | Promise<void>, resolveTurnId?: () => string | undefined | Promise<string | undefined>, priorMessages?: readonly KodaXMessage[]): Promise<readonly KodaXMessage[]>;
|
|
1118
1152
|
|
|
1119
1153
|
/**
|
|
1120
1154
|
* Generic outer loop for async fan-out + idle-yield resume.
|
|
@@ -1196,7 +1230,7 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1196
1230
|
* targets).
|
|
1197
1231
|
*/
|
|
1198
1232
|
readonly agentId: string | undefined;
|
|
1199
|
-
/** Optional cancellation.
|
|
1233
|
+
/** Optional cancellation. Rejects with AbortError at the next boundary. */
|
|
1200
1234
|
readonly abortSignal?: AbortSignal;
|
|
1201
1235
|
/**
|
|
1202
1236
|
* Choose the agent for the next iteration after a wake. Caller has
|
|
@@ -1220,13 +1254,13 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1220
1254
|
* for a sub-agent reaches the agent (it answers) but never appears in the
|
|
1221
1255
|
* transcript. Coding wires this to the same `onMidTurnUserMessages` UI sink.
|
|
1222
1256
|
*/
|
|
1223
|
-
readonly onResumedUserPrompts?: (contents: readonly string[], queuedMessageIds: readonly string[]) => void
|
|
1257
|
+
readonly onResumedUserPrompts?: (contents: readonly string[], queuedMessageIds: readonly string[], promptMessage: AgentMessage, runResult: TRunResult) => void | Promise<void>;
|
|
1224
1258
|
/**
|
|
1225
1259
|
* Optional attribution hook for real user prompts spliced during an
|
|
1226
1260
|
* idle-yield resume. The agent layer stays transport-agnostic; callers that
|
|
1227
1261
|
* expose live turn IDs can stamp the generated prompt message here.
|
|
1228
1262
|
*/
|
|
1229
|
-
readonly resolveResumeTurnId?: () => string | undefined
|
|
1263
|
+
readonly resolveResumeTurnId?: (runResult: TRunResult) => string | undefined | Promise<string | undefined>;
|
|
1230
1264
|
/**
|
|
1231
1265
|
* Optional fresh runtime context inserted after the completed transcript
|
|
1232
1266
|
* and immediately before wake messages. The callback runs for every idle
|
|
@@ -1235,9 +1269,7 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1235
1269
|
*/
|
|
1236
1270
|
readonly buildResumeContextMessages?: (runResult: TRunResult, wakeMessages: readonly AgentMessage[]) => readonly AgentMessage[] | Promise<readonly AgentMessage[]>;
|
|
1237
1271
|
/**
|
|
1238
|
-
* Optional hook fired
|
|
1239
|
-
* currently log here (matches v0.7.38 behavior — silent break) but
|
|
1240
|
-
* the hook exists so SDK consumers can record the prompt-bug signal.
|
|
1272
|
+
* Optional hook fired before the iteration-cap error is thrown.
|
|
1241
1273
|
*/
|
|
1242
1274
|
readonly onIterationCap?: () => void;
|
|
1243
1275
|
/**
|
|
@@ -1272,13 +1304,13 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1272
1304
|
* On each iteration:
|
|
1273
1305
|
* 1. Invoke `runOnce(currentAgent, currentInput)`.
|
|
1274
1306
|
* 2. Increment the iteration counter. If it exceeds
|
|
1275
|
-
* `maxIterations`, call `onIterationCap?.()` and
|
|
1307
|
+
* `maxIterations`, call `onIterationCap?.()` and reject.
|
|
1276
1308
|
* 3. Compute the snapshot via `computeSnapshot(runResult)`.
|
|
1277
1309
|
* 4. If `detectIdleYield(snapshot)` is false (run terminal or
|
|
1278
1310
|
* handoff/verdict already emitted), break.
|
|
1279
1311
|
* 5. Fire `onIdleWaiting?.(currentAgent, runResult)`.
|
|
1280
1312
|
* 6. Park in `waitForWakeEvent({registry, messageQueue, agentId, abortSignal})`.
|
|
1281
|
-
* 7. If wake is `aborted`,
|
|
1313
|
+
* 7. If wake is `aborted`, reject with AbortError.
|
|
1282
1314
|
* 8. Build synthetic user message via `composeIdleYieldUserMessage`.
|
|
1283
1315
|
* If undefined (truly empty wake), break.
|
|
1284
1316
|
* 9. Replay: `currentInput = [...runResult.messages, syntheticUserMessage]`,
|
|
@@ -2733,6 +2765,11 @@ declare function migrateLegacyLearnedSkillsForProject(configHome: string, projec
|
|
|
2733
2765
|
|
|
2734
2766
|
declare function withLearningFileLock<T>(lockPath: string, operation: () => Promise<T>, acquireTimeoutMs?: number): Promise<T>;
|
|
2735
2767
|
|
|
2768
|
+
declare const SKILL_CREATOR_DISPATCH_ACTIONS: readonly ["init", "validate", "eval", "grade", "analyze", "compare", "package", "install"];
|
|
2769
|
+
type SkillCreatorDispatchAction = (typeof SKILL_CREATOR_DISPATCH_ACTIONS)[number];
|
|
2770
|
+
declare function isSkillCreatorDispatchAction(value: string | undefined): value is SkillCreatorDispatchAction;
|
|
2771
|
+
declare function dispatchSkillCreatorTool(action: SkillCreatorDispatchAction, args: readonly string[], sdk: Readonly<Record<string, unknown>>): Promise<void>;
|
|
2772
|
+
|
|
2736
2773
|
declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest, jobId?: string): KodaXSessionLineage;
|
|
2737
2774
|
declare function appendMemoryReviewReceipt(lineage: KodaXSessionLineage, input: {
|
|
2738
2775
|
readonly jobId?: string;
|
|
@@ -3539,126 +3576,6 @@ interface ReferenceAgentExecutorFactoryOptions {
|
|
|
3539
3576
|
}
|
|
3540
3577
|
declare function createReferenceAgentExecutorFactory(options: ReferenceAgentExecutorFactoryOptions): AgentExecutorFactory;
|
|
3541
3578
|
|
|
3542
|
-
interface AgentControllerOptions {
|
|
3543
|
-
readonly maxConcurrentThreadsPerSession?: number;
|
|
3544
|
-
readonly rootCapabilities?: AgentCapabilities;
|
|
3545
|
-
readonly executor?: AgentTurnExecutor;
|
|
3546
|
-
readonly executorFor?: (kind: AgentExecutionKind) => AgentTurnExecutor;
|
|
3547
|
-
readonly budget?: AgentBudgetPort;
|
|
3548
|
-
readonly store?: AgentActorStore;
|
|
3549
|
-
/** Unique Runtime/controller claim for one durable Session Actor tree. */
|
|
3550
|
-
readonly owner?: AgentActorOwner;
|
|
3551
|
-
/** Conservative liveness probe for a persisted foreign owner. Omitted means alive. */
|
|
3552
|
-
readonly isOwnerAlive?: (owner: AgentActorOwner) => boolean | Promise<boolean>;
|
|
3553
|
-
readonly now?: () => string;
|
|
3554
|
-
readonly warn?: (message: string) => void;
|
|
3555
|
-
readonly onBackgroundError?: (error: unknown) => void;
|
|
3556
|
-
/** Post-durability event sink. Callback failures never roll back committed actor state. */
|
|
3557
|
-
readonly onEventCommitted?: (event: AgentEvent) => void | Promise<void>;
|
|
3558
|
-
/** Post-durability mailbox sink. Callback failures never roll back committed actor state. */
|
|
3559
|
-
readonly onMessageCommitted?: (message: AgentMailboxMessage) => void | Promise<void>;
|
|
3560
|
-
}
|
|
3561
|
-
declare class AgentActorController {
|
|
3562
|
-
private readonly options;
|
|
3563
|
-
private readonly actors;
|
|
3564
|
-
private readonly turns;
|
|
3565
|
-
private readonly mailboxes;
|
|
3566
|
-
private readonly acknowledgedCompletionTurnIds;
|
|
3567
|
-
private readonly pendingRootCompletionTurnIds;
|
|
3568
|
-
private readonly eventsLog;
|
|
3569
|
-
private readonly abortControllers;
|
|
3570
|
-
private readonly waiters;
|
|
3571
|
-
private readonly scheduler;
|
|
3572
|
-
private readonly budget;
|
|
3573
|
-
private readonly now;
|
|
3574
|
-
private mutationTail;
|
|
3575
|
-
private revision;
|
|
3576
|
-
private snapshotSchemaVersion;
|
|
3577
|
-
private durableOwner?;
|
|
3578
|
-
private initialized;
|
|
3579
|
-
private ownershipLost;
|
|
3580
|
-
private ownershipReleased;
|
|
3581
|
-
private committedSnapshot;
|
|
3582
|
-
constructor(options?: AgentControllerOptions);
|
|
3583
|
-
initialize(): Promise<void>;
|
|
3584
|
-
ownsDurableFence(): boolean;
|
|
3585
|
-
bind(callerPath: string): AgentActorClient;
|
|
3586
|
-
/** Trusted host API: register a zero-slot Workflow protocol owner in this tree. */
|
|
3587
|
-
createProtocolOwner(callerPath: string, ownerId: string): Promise<AgentActorClient>;
|
|
3588
|
-
/** Trusted host API: settle a zero-slot Workflow protocol owner. */
|
|
3589
|
-
settleProtocolOwner(ownerPath: string, state: 'completed' | 'failed' | 'interrupted', result: AgentExecutionResult & {
|
|
3590
|
-
readonly error?: string;
|
|
3591
|
-
}): Promise<void>;
|
|
3592
|
-
/** Trusted host API: cancellation signal for a zero-slot Workflow protocol owner. */
|
|
3593
|
-
protocolOwnerSignal(ownerPath: string): AbortSignal;
|
|
3594
|
-
spawn(callerPath: string, input: AgentSpawnInput, options?: AgentMutationOptions): Promise<AgentTurnRef>;
|
|
3595
|
-
send(callerPath: string, targetPath: string, content: string, classification?: AgentDataClassification, forwardedMessageId?: string): Promise<AgentMailboxMessage>;
|
|
3596
|
-
acknowledgeCompletions(callerPath: string, turnIds: readonly string[]): Promise<number>;
|
|
3597
|
-
followup(callerPath: string, targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
|
|
3598
|
-
interrupt(callerPath: string, targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
|
|
3599
|
-
close(callerPath: string, targetPath: string, reason?: string): Promise<void>;
|
|
3600
|
-
/**
|
|
3601
|
-
* Final local teardown after the host has durably removed the backing store.
|
|
3602
|
-
* No mutation is allowed here because there is no longer a snapshot to save.
|
|
3603
|
-
*/
|
|
3604
|
-
disposeAfterStoreRemoval(reason?: string): void;
|
|
3605
|
-
/** Interrupts every local execution while retaining the durable owner fence. */
|
|
3606
|
-
quiesce(reason?: string): Promise<void>;
|
|
3607
|
-
/** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
|
|
3608
|
-
shutdown(reason?: string): Promise<void>;
|
|
3609
|
-
list(callerPath: string): AgentTreeSnapshot;
|
|
3610
|
-
get(callerPath: string, targetPath: string): AgentDetail;
|
|
3611
|
-
output(callerPath: string, targetPath: string, turnId?: string): AgentOutput;
|
|
3612
|
-
eventSnapshot(callerPath: string, afterSequence?: number): readonly AgentEvent[];
|
|
3613
|
-
private isAcknowledgedDirectChildTerminal;
|
|
3614
|
-
wait(callerPath: string, afterSequence?: number, timeoutMs?: number, signal?: AbortSignal): Promise<AgentEvent | undefined>;
|
|
3615
|
-
private prepareSpawn;
|
|
3616
|
-
private prepareExistingTurn;
|
|
3617
|
-
private admitTurn;
|
|
3618
|
-
private commitStart;
|
|
3619
|
-
private launch;
|
|
3620
|
-
private completeExecution;
|
|
3621
|
-
private failExecution;
|
|
3622
|
-
private finishTurn;
|
|
3623
|
-
private appendCompletion;
|
|
3624
|
-
private drainMailbox;
|
|
3625
|
-
private unreadMailbox;
|
|
3626
|
-
private recordProgress;
|
|
3627
|
-
private resolveForwarding;
|
|
3628
|
-
private appendMessage;
|
|
3629
|
-
private appendEvent;
|
|
3630
|
-
private requireControl;
|
|
3631
|
-
private assertMessagePermission;
|
|
3632
|
-
private isVisible;
|
|
3633
|
-
private visibleActors;
|
|
3634
|
-
private latestTurnSummary;
|
|
3635
|
-
private descendantsInclusive;
|
|
3636
|
-
private createActor;
|
|
3637
|
-
private createTurn;
|
|
3638
|
-
private requireActor;
|
|
3639
|
-
private requireTurn;
|
|
3640
|
-
private requireCommittedActor;
|
|
3641
|
-
private requireCommittedTurn;
|
|
3642
|
-
private requireCommittedControl;
|
|
3643
|
-
private installRoot;
|
|
3644
|
-
private mutate;
|
|
3645
|
-
private snapshot;
|
|
3646
|
-
private restore;
|
|
3647
|
-
private republishUnacknowledgedRootCompletions;
|
|
3648
|
-
private recoverUnmatchedTurns;
|
|
3649
|
-
private claimOwnership;
|
|
3650
|
-
private releaseOwnershipAfterInitializationFailure;
|
|
3651
|
-
private assertWritableOwner;
|
|
3652
|
-
private fenceAfterSnapshotConflict;
|
|
3653
|
-
private isInterruptionDurable;
|
|
3654
|
-
private notify;
|
|
3655
|
-
private publishCommittedEvent;
|
|
3656
|
-
private publishCommittedMessage;
|
|
3657
|
-
private reportBackgroundError;
|
|
3658
|
-
private assertExpectedTreeRevision;
|
|
3659
|
-
}
|
|
3660
|
-
declare function createAgentActorController(options?: AgentControllerOptions): Promise<AgentActorController>;
|
|
3661
|
-
|
|
3662
3579
|
declare class AgentLimitReachedError extends Error implements AgentLimitReached {
|
|
3663
3580
|
readonly maxConcurrentThreads: number;
|
|
3664
3581
|
readonly activeNonRootTurns: number;
|
|
@@ -3699,6 +3616,19 @@ declare class AgentOwnerUnknownError extends Error {
|
|
|
3699
3616
|
readonly retryable: false;
|
|
3700
3617
|
constructor(currentRevision: number);
|
|
3701
3618
|
}
|
|
3619
|
+
declare class AgentSettlementPersistenceError extends Error {
|
|
3620
|
+
readonly turnId: string;
|
|
3621
|
+
readonly cause: unknown;
|
|
3622
|
+
readonly code: "actor_settlement_not_persisted";
|
|
3623
|
+
readonly retryable: false;
|
|
3624
|
+
constructor(turnId: string, cause: unknown);
|
|
3625
|
+
}
|
|
3626
|
+
declare class AgentShutdownPersistenceError extends Error {
|
|
3627
|
+
readonly cause: unknown;
|
|
3628
|
+
readonly code: "actor_shutdown_not_persisted";
|
|
3629
|
+
readonly retryable: false;
|
|
3630
|
+
constructor(cause: unknown);
|
|
3631
|
+
}
|
|
3702
3632
|
type AgentControlErrorCode = 'actor_closed' | 'actor_not_found' | 'invalid_actor_path' | 'invalid_capabilities' | 'invalid_fork_turns' | 'invalid_forward_reference' | 'invalid_message' | 'invalid_task_name' | 'message_cycle_detected' | 'name_collision' | 'no_active_turn' | 'permission_denied' | 'unsupported_operation';
|
|
3703
3633
|
declare class AgentControlError extends Error {
|
|
3704
3634
|
readonly code: AgentControlErrorCode;
|
|
@@ -3715,5 +3645,5 @@ declare class AgentTurnScheduler {
|
|
|
3715
3645
|
restore(turnIds: readonly string[]): void;
|
|
3716
3646
|
}
|
|
3717
3647
|
|
|
3718
|
-
export { Agent,
|
|
3719
|
-
export type { AdmissionMetricsSnapshot, AgentControlErrorCode,
|
|
3648
|
+
export { Agent, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentCancellationUncertainError, AgentControlError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentLimitReached, AgentLimitReachedError, AgentManifest, AgentMessage, AgentOwnerConflictError, AgentOwnerUnknownError, AgentRevisionConflictError, AgentSettlementPersistenceError, AgentShutdownPersistenceError, AgentStartUncertainError, AgentTurnScheduler, BUN_BE_BUN_ENV, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, EpisodeReviewBranchChangedError, EpisodeReviewFailure, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXReasoningRequest, KodaXSessionArtifactLedgerEntry, KodaXSessionData, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXSessionStorage, KodaXTokenUsage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearnedCapabilityScope, LearningActionDriver, LearningEvent, LearningExplicitUserAuthority, LearningPage, LearningQuery, LearningSubscribeOptions, LearningSurfaceSnapshot, MAX_COMPACTION_TRIGGER_PERCENT, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, MIN_COMPACTION_TRIGGER_PERCENT, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewModelInput, MemoryReviewPlan, MemoryReviewRunner, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, ResolvedSkillSource, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowOutcome, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionCacheInstruction, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, captureEpisodeReviewBranchEpoch, claimEpisodeReview, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, commitEpisodeReviewAction, commitEpisodeReviewDecision, compact, completeEpisodeReview, completeFencedEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, deferEpisodeReview, detectHandoffSignal, detectIdleYield, discardFencedEpisodeReview, dispatchSkillCreatorTool, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, failEpisodeReviewApply, failEpisodeReviewAttempt, fencePendingEpisodeReviewsForSession, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, freezeEpisodeReviewInput, generateSummary, getActiveMemoryOutcomeReviewIds, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, inspectEpisodeReviewJob, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, isSkillCreatorDispatchAction, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, mergeUserQueryLedger, microcompact, midTurnDrainPriority, migrateLegacyLearnedSkillsForProject, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, prepareJavaScriptChildLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readProcessStartIdentity, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, rememberChildProcessTree, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, rewindPendingEpisodeReviewsForSession, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent, withEpisodeReviewClaimAuthority, withLearningFileLock as withKodaXFileLock, withPendingEpisodeReviewSessionFence };
|
|
3649
|
+
export type { AdmissionMetricsSnapshot, AgentControlErrorCode, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearnedSkillActionDriverOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewActionInput, EpisodeReviewActionReceipt, EpisodeReviewClaim, EpisodeReviewDecision, EpisodeReviewDecisionInput, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewFailureKind, EpisodeReviewInputCheckpoint, EpisodeReviewInputSpec, EpisodeReviewJobSnapshot, EpisodeReviewJobState, EpisodeReviewJobStatus, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, JavaScriptChildLaunch, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LegacyLearnedSkillMigrationResult, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PendingEpisodeReviewV1, PendingEpisodeReviewV2, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, PrepareJavaScriptChildLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ProcessTreeKillResult, ProcessTreeKillStatus, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, ResolvedCompactionPolicy, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, UserQueryLedgerEntry, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
|
package/dist/sdk-agent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as mo,$a as dr,$b as dp,$c as dt,$d as dx,A as F,Aa as Mo,Ab as Mm,Ac as Mp,Ad as Mt,B as G,Ba as No,Bb as Nm,Bc as Np,Bd as Nt,C as H,Ca as Oo,Cb as Om,Cc as Op,Cd as Ot,D as I,Da as Po,Db as Pm,Dc as Pp,Dd as Pt,E as J,Ea as Qo,Eb as Qm,Ec as Qp,Ed as Qt,F as K,Fa as Ro,Fb as Rm,Fc as Rp,Fd as Rt,G as L,Ga as So,Gb as Sm,Gc as Sp,Gd as St,H as M,Ha as To,Hb as Tm,Hc as Tp,Hd as Tt,I as N,Ia as Uo,Ib as Um,Ic as Up,Id as Ut,J as O,Ja as Vo,Jb as Vm,Jc as Vp,Jd as Vt,K as P,Ka as Wo,Kb as Wm,Kc as Wp,Kd as Wt,L as Q,La as Xo,Lb as Xm,Lc as Xp,Ld as Xt,M as R,Ma as Yo,Mb as Ym,Mc as Yp,Md as Yt,N as S,Na as Zo,Nb as Zm,Nc as Zp,Nd as Zt,O as T,Oa as _o,Ob as _m,Oc as _p,Od as _t,P as U,Pa as $o,Pb as $m,Pc as $p,Pd as $t,Q as V,Qa as or,Qb as op,Qc as ot,Qd as ox,R as W,Ra as rr,Rb as rp,Rc as rt,Rd as rx,S as X,Sa as er,Sb as ep,Sc as et,Sd as ex,T as Y,Ta as fr,Tb as fp,Tc as ft,Td as fx,U as Z,Ua as mr,Ub as mp,Uc as mt,Ud as mx,V as _,Va as pr,Vb as pp,Vc as pt,Vd as px,W as $,Wa as tr,Wb as tp,Wc as tt,Wd as tx,X as oo,Xa as xr,Xb as xp,Xc as xt,Xd as xx,Y as ro,Ya as ar,Yb as ap,Yc as at,Yd as ax,Z as eo,Za as br,Zb as bp,Zc as bt,Zd as bx,_ as fo,_a as cr,_b as cp,_c as ct,_d as cx,a as o,aa as po,ab as Sr,ac as gp,ad as gt,ae as gx,b as r,ba as to,bb as Tr,bc as hp,bd as ht,c as e,ca as xo,cb as Ur,cc as ip,cd as it,d as f,da as ao,db as Vr,dc as jp,dd as jt,e as m,ea as bo,eb as Wr,ec as kp,ed as kt,f as p,fa as co,fb as Xr,fc as lp,fd as lt,g as t,ga as go,gb as Yr,gc as np,gd as nt,h as x,ha as ho,hb as Zr,hc as qp,hd as qt,i as a,ia as io,ib as _r,ic as sp,id as st,j as b,ja as jo,jb as $r,jc as up,jd as ut,k as g,ka as ko,kb as oe,kc as vp,kd as vt,l as h,la as lo,lb as re,lc as wp,ld as wt,m as i,ma as no,mb as ee,mc as yp,md as yt,n as j,na as qo,nb as fe,nc as zp,nd as zt,o as k,oa as so,ob as me,oc as Ap,od as At,p as l,pa as uo,pb as pe,pc as Bp,pd as Bt,q as u,qa as vo,qb as te,qc as Cp,qd as Ct,r as v,ra as wo,rb as xe,rc as Dp,rd as Dt,s as w,sa as yo,sb as ae,sc as Ep,sd as Et,t as y,ta as zo,tb as be,tc as Fp,td as Ft,u as z,ua as Ao,ub as ce,uc as Gp,ud as Gt,v as A,va as Bo,vb as de,vc as Hp,vd as Ht,w as B,wa as Co,wb as Im,wc as Ip,wd as It,x as C,xa as Do,xb as Jm,xc as Jp,xd as Jt,y as D,ya as Eo,yb as Km,yc as Kp,yd as Kt,z as E,za as Fo,zb as Lm,zc as Lp,zd as Lt}from"./chunks/chunk-VAT2QYXM.js";import{$ as Ze,$a as _f,A as Be,Aa as zf,Ab as ym,B as Ce,Ba as Af,Bb as zm,C as De,Ca as Bf,Cb as Am,D as Ee,Da as Cf,Db as Bm,E as Fe,Ea as Df,Eb as Cm,F as Ge,Fa as Ef,Fb as Dm,G as He,Ga as Ff,Gb as Em,H as Ie,Ha as Gf,Hb as Fm,I as Je,Ia as Hf,Ib as Gm,Ja as If,Jb as Hm,Ka as Jf,La as Kf,M as Ke,Ma as Lf,N as Le,Na as Mf,O as Me,Oa as Nf,P as Ne,Pa as Of,Q as Oe,Qa as Pf,R as Pe,Ra as Qf,S as Qe,Sa as Rf,T as Re,Ta as Sf,U as Se,Ua as Tf,V as Te,Va as Uf,W as Ue,Wa as Vf,X as Ve,Xa as Wf,Y as We,Ya as Xf,Z as Xe,Za as Yf,_ as Ye,_a as Zf,a as c,aa as _e,ab as $f,b as d,ba as $e,bb as om,c as n,ca as of,cb as rm,d as q,da as rf,db as em,e as s,ea as ef,eb as fm,f as Go,fa as ff,fb as mm,g as Ho,ga as mf,gb as pm,h as Io,ha as pf,i as Jo,ia as tf,ib as tm,j as Ko,ja as xf,jb as xm,k as Lo,ka as af,kb as am,l as ge,la as bf,lb as bm,m as he,ma as cf,mb as cm,n as ie,na as df,nb as dm,o as je,oa as gf,ob as gm,p as ke,pa as hf,pb as hm,q as le,qa as jf,qb as im,r as ne,ra as kf,rb as jm,s as qe,sa as lf,sb as km,t as se,ta as nf,tb as lm,u as ue,ua as qf,ub as nm,v as ve,va as sf,vb as qm,w as we,wa as uf,wb as sm,x as ye,xa as vf,xb as um,y as ze,ya as wf,yb as vm,z as Ae,za as yf,zb as wm}from"./chunks/chunk-6XM4B6K2.js";import{A as Mr,B as Nr,C as Or,D as Pr,E as Qr,F as Rr,a as gr,b as hr,c as ir,d as jr,e as kr,f as lr,g as nr,h as qr,i as sr,j as ur,k as vr,l as wr,m as yr,n as zr,o as Ar,p as Br,q as Cr,r as Dr,s as Er,t as Fr,u as Gr,v as Hr,w as Ir,x as Jr,y as Kr,z as Lr}from"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.js";import"./chunks/chunk-ONUPGMER.js";export{tr as ASK_USER_BACK_SIGNAL,xr as ASK_USER_CUSTOM_INPUT_SIGNAL,dx as AgentActorController,tx as AgentActorStoreConflictError,mx as AgentBudgetExhaustedError,$t as AgentCancellationUncertainError,bx as AgentControlError,fx as AgentLimitReachedError,xx as AgentOwnerConflictError,ax as AgentOwnerUnknownError,px as AgentRevisionConflictError,_t as AgentStartUncertainError,cx as AgentTurnScheduler,Mo as CAPABILITY_CACHE_FILENAME,Cp as COMPACTED_HISTORY_RECOVERY_GUIDANCE,qp as COMPACTION_PROTECTION_RATIO,Bp as COMPACTION_SUMMARY_PREFIX,g as CONTEXT_SAFETY_FLOOR_TOKENS,h as CONTEXT_SAFETY_RATIO,Eo as CORE_INVARIANTS,K as ConsoleTracingProcessor,i as ContextCapacityError,kp as DEFAULT_COMPACTION_TRIGGER_PERCENT,st as DEFAULT_CONTEXT_WINDOW,Yr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,gt as DEFAULT_MICROCOMPACTION_CONFIG,Ip as DEFAULT_POST_COMPACT_CONFIG,dp as DEFAULT_SUMMARY_PROMPT,X as DEFAULT_SYSTEM_CAP,gp as DEFAULT_UPDATE_SUMMARY_PROMPT,y as DefaultSummaryCompaction,Wo as ELECTRON_NODE_ENV_SCRUB_IMPORT,Vo as ELECTRON_RUN_AS_NODE_ENV,cm as EpisodeReviewBranchChangedError,bm as EpisodeReviewFailure,ox as ExternalAgentRegistrationConflictError,kt as FileExtensionStore,qf as FileLearningCenterService,L as FileTracingProcessor,bo as GuardrailBlockedError,co as GuardrailEscalateError,To as HARDENED_ENV_VARS,Uo as HARDENING_OPT_OUT_ENV,wr as ImageResizeError,ro as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,Or as KODAX_FILE_MEDIA_TYPES,e as KODAX_HARD_TIMEOUT,Mr as KODAX_IMAGE_MEDIA_TYPES,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,Nr as KODAX_VIDEO_MEDIA_TYPES,vr as KodaXMediaError,fp as LINEAGE_ENTRY_TYPES,kf as LearnedAreaStore,af as LearningCapabilityError,pp as LineageCompaction,mp as LineageExtension,np as MAX_COMPACTION_TRIGGER_PERCENT,Dr as MAX_DIMENSION,Ce as MAX_ENTRYPOINT_BYTES,Be as MAX_ENTRYPOINT_LINES,Re as MAX_SKILL_MD_BYTES,Se as MAX_SKILL_SUPPORT_FILE_BYTES,fo as MAX_TOOL_LOOP_ITERATIONS,je as MEMORY_POLICY_VERSION,lp as MIN_COMPACTION_TRIGGER_PERCENT,Pm as McpAuthRequiredError,$m as McpCapabilityProvider,Om as McpExpiredSessionError,op as McpManager,_m as McpServerRuntime,am as MemoryControlPlane,gr as MessageQueue,Ir as PASTE_TMP_DIR_ENV,Jr as PASTE_TMP_TTL_MS,Hp as POST_COMPACT_MAX_TOKENS_PER_FILE,Gp as POST_COMPACT_TOKEN_BUDGET,b as PROMISE_PATTERN,Ap as PROTECTED_TOOL_NAMES,Sr as QueuedInputArtifactError,zo as Runner,rm as SkillExecutor,Zf as SkillRegistry,z as SpanImpl,Er as TARGET_RAW_SIZE_BYTES,I as Tracer,Wf as VariableResolver,Lt as WORKFLOW_CAPSULE_API_VERSION,Jt as WORKFLOW_CAPSULE_FORMAT,Kt as WORKFLOW_CAPSULE_VERSION,Bt as WORKFLOW_PATTERN_IDS,Qt as WorkflowAbortError,St as WorkflowBudgetError,wt as WorkflowEventRecorder,Rt as WorkflowLimitError,Ft as WorkflowScriptExecutionError,Tt as WorkflowTaskFailedError,qr as YIELD_TOOL_NAMES,F as _emitSpanEnd,E as _emitSpanStart,G as _emitTraceEnd,D as _getRegisteredProcessors,nr as _resetActiveRootQueueRoutesForTests,V as _resetAdmissionMetrics,oo as _resetAdmittedAgentBindings,R as _resetInvariantRegistry,ir as _resetMessageQueueForTests,wo as _resetPresetDispatchers,jr as actorQueueId,B as addTracingProcessor,Nf as admitAndRecordLearnedSkillInvocation,Ef as admitLearnedSkillBinding,ct as appendGoalEntry,et as appendMemoryClientNotice,$p as appendMemoryOutcomeDigest,ot as appendMemoryReviewReceipt,Rp as appendSessionLineageLabel,Tp as applyLineageTruncation,M as applyManifestPatch,Xo as applyProcessHardening,Sp as applySessionCompaction,Ze as applySkillLearningProposal,_e as approveStoredLearningProposal,_p as archiveOldIslands,br as asSingleSelection,cf as assertLearnedCapabilityTransition,Et as assertRestrictedWorkflowQuality,so as attachRunnerRecoveryTranscript,pe as bootstrapTeamMode,xo as buildAssistantMessageFromLlmResult,hp as buildCompactionCacheInstruction,ip as buildCompactionPromptSnapshot,Lp as buildFileContentMessages,Zm as buildInitializeCapabilities,re as buildOtherInstancesPromptBlock,Jp as buildPostCompactAttachments,jt as buildRecoverySeed,Yp as buildSessionTree,yo as buildSystemPrompt,ao as buildToolResultMessage,Pt as buildWorkflowCapsuleIntent,vt as buildWorkflowOutcome,j as calculateContextSafetyMargin,l as calculateMaxContextInputTokens,Pe as canMarkCreatedByAgent,bf as canTransitionLearnedCapability,dm as captureEpisodeReviewBranchEpoch,hm as claimEpisodeReview,xe as cleanupIncompleteToolCalls,pr as cleanupRegisteredManagedChildren,Ro as clearCapabilityCache,He as clearPluginSkillPaths,go as collectGuardrails,vp as collectUserQueryLedger,km as commitEpisodeReviewAction,jm as commitEpisodeReviewDecision,Df as commitLearnedSkillRevision,Fp as compact,zm as completeEpisodeReview,um as completeFencedEpisodeReview,Hf as completeLearnedSkillOutcome,Of as completeLearnedSkillSessionOutcomes,Xr as composeIdleYieldUserMessage,N as composePatches,tf as computeSkillConsumerImpact,Zp as countActiveLineageMessages,Ur as countLastAssistantToolCalls,d as countTokens,u as createAgent,gx as createAgentActorController,rx as createAgentExecutorPlane,em as createExecutor,lt as createExtensionStore,Br as createFileArtifactFromPath,v as createHandoff,Ar as createImageArtifactFromPath,w as createInMemorySession,eo as createInvariantSessionForAgent,yf as createLearnedCapabilityScope,Kf as createLearnedSkillActionDriver,Cf as createLearnedSkillRecord,sf as createLearningCenterService,de as createLlmJudgedStopHook,Jm as createMcpCapabilityId,rp as createMcpManager,ep as createMcpTestServerFixture,Qm as createMcpTransport,Zt as createMemoryAgentExecutorPlaneStore,xm as createMemoryControlPlane,ex as createReferenceAgentExecutorFactory,Xf as createResolver,It as createRestrictedWorkflowModule,Mp as createSessionLineage,$r as createStateWriter,A as createTrace,Cr as createVideoArtifactFromPath,Nt as createWorkflowCapsule,Ot as createWorkflowModuleFromCapsule,At as createWorkflowProcessTracker,Xt as createWorkflowRunManager,Vt as createWorkflowRuntime,Qe as decideSkillGovernance,Im as defaultMcpCacheDir,J as defaultTracer,sm as deferEpisodeReview,lo as detectHandoffSignal,Vr as detectIdleYield,Y as detectInstructionsInjection,vm as discardFencedEpisodeReview,Um as discoverAuthorizationServerMetadata,oe as discoverInstances,Vm as discoverOAuthEndpoints,Tm as discoverProtectedResourceMetadata,Sf as discoverSkills,Uf as discoverSkillsWithMonorepo,Em as drainPendingEpisodeReviews,ae as editDistance,qo as emitHandoffSpan,q as emitKodaXDiagnostic,Rr as enqueueWithArtifacts,c as estimateTokens,lf as eventFromCapability,Up as evictOldIslandMessageContent,Bo as evidenceTrail,Rf as exactInvokedSkillSnapshotForSession,k as exceedsContextCapacity,to as executeRunnerToolCall,fm as executeSkill,mm as expandSkillForLLM,ap as extractArtifactLedger,Ao as extractAssistantTextFromMessage,tp as extractFileOps,Sm as extractInsufficientScope,Rm as extractResourceMetadataUrl,mt as extractTitleFromMessages,qm as failEpisodeReviewApply,nm as failEpisodeReviewAttempt,Cm as fencePendingEpisodeReviewsForSession,Co as finalOwner,be as findFuzzyToolMatch,Vp as findPreviousUserEntryId,Xp as forkSessionLineage,s as formatKodaXDiagnostic,pm as formatSkillActivationMessage,im as freezeEpisodeReviewInput,ft as generateSessionId,jp as generateSummary,rt as getActiveMemoryOutcomeReviewIds,fe as getActiveTeamModeWriter,dr as getActiveUserInteraction,U as getAdmissionMetricsSnapshot,$ as getAdmittedAgentBindings,Ho as getAgentConfigHome,Io as getAgentConfigPath,Lo as getAppDataDir,Po as getCachedRejectedEfforts,No as getCapabilityCacheFile,Ie as getDefaultSkillPaths,Yt as getDefaultWorkflowRunManager,P as getInvariant,uf as getLearnedExtensionToolName,Nm as getMcpCachePaths,hr as getMessageQueue,Pr as getModelInputCapabilities,Tf as getNestedSkillPaths,Np as getSessionLineagePath,Op as getSessionMessagesFromLineage,Je as getSkillPathsFlat,_f as getSkillRegistry,qt as gracefulCompactDegradation,Do as handoffLegality,le as hashCwd,he as hashMemoryIdentityComponent,yr as inferImageMediaType,zr as inferVideoMediaType,$f as initializeSkillRegistry,Kp as injectPostCompactAttachments,wm as inspectEpisodeReviewJob,Gf as invokeLearnedSkillCanary,ce as invokeLlmJudge,W as isAdmissionDebugEnabled,ar as isAskUserCustomInputAnswer,ve as isAutoManagedMemoryFile,_o as isChildProcessExited,Dp as isEmptyLikeSummary,yt as isFinalWorkflowProcessStatus,dt as isGoalEntry,Tr as isIdleYieldEnabled,Jf as isLearnedCapabilityRecordV2,vf as isLearnedExtensionCommandAllowed,Jo as isPathInsideDirectory,mo as isRunnableTool,po as isRunnerLlmResult,Gm as isUnifiedLearningReviewModelInput,er as killChildProcessTree,fr as killChildProcessTreeSync,or as killPidTree,rr as killPidTreeSync,hf as learningEventIdFor,gf as learningEventKindForLifecycle,Dt as lintRestrictedWorkflowSource,Qf as listLearnedSkillUsageReceipts,ym as listPendingEpisodeReviews,Ge as listPluginSkillPaths,Q as listRegisteredInvariants,Oo as loadCapabilityCache,Me as loadFullSkill,Ne as loadSkillFileContent,Le as loadSkillMetadata,Ym as loadValidToken,ge as matchesMemoryApplicability,ur as maybeDrainMidTurn,ie as memoryApplicabilityFingerprint,bp as mergeArtifactLedger,xp as mergeFileOps,wp as mergeUserQueryLedger,ht as microcompact,sr as midTurnDrainPriority,Lf as migrateLegacyLearnedSkillsForProject,Ep as needsCompaction,sp as normalizeCompactionConfig,zt as normalizeHostMetadata,Km as normalizeMcpCapabilityId,Fr as normalizePastedImage,it as normalizeRecoveryPrompt,Hm as normalizeUnifiedLearningReview,Ut as normalizeWorkflowLimits,Vf as parseArguments,Lm as parseMcpCapabilityId,ze as parseMemoryFile,ye as parseMemoryType,we as parseMemoryTypeFromFilename,Ae as parseScalarFields,Ke as parseSkillMarkdown,zp as parseUserQueryLedger,Xm as performOAuthLogin,xt as persistCompactedSessionHistory,Kr as persistImageAsBlock,gm as persistPendingEpisodeReview,Yo as prepareInternalNodeLaunch,nf as projectLearningProposals,Lr as prunePasteTmpDir,If as quarantineLearnedSkillRevision,Hr as readAndNormalizeClipboardImage,Gr as readClipboardImage,at as readLatestGoalFromBranch,bt as readLatestGoalState,Ve as readLearningProposalStore,uo as readRunnerRecoveryTranscript,tt as readSessionHistoryEntry,mf as readSkillTrustLedger,ef as readSkillUsageLedger,Pf as reconcileLearnedSkillBindingOutcomes,xf as recordCompletedTurnLearning,Mf as recordLearnedSkillOffered,$e as recordProceduralLearning,Qo as recordRejectedEffort,ff as recordSkillUsage,kr as registerActiveRootQueueRoute,Fo as registerCoreInvariants,O as registerInvariant,mr as registerManagedChildProcess,Wm as registerOAuthClient,Ee as registerPluginSkillPath,vo as registerPresetDispatcher,Ff as releaseLearnedSkillBinding,Af as renderDeclarativeSkill,yp as renderUserQueryLedger,no as replaceSystemMessage,So as resetCapabilityCacheMemoForTesting,om as resetSkillRegistry,lr as resolveActiveRootQueueRoute,up as resolveCompactionPolicy,ut as resolveContextWindow,T as resolveEffectiveInvariants,Ko as resolveExecutionPath,jf as resolveLearnedAreaPaths,Xe as resolveLearningProposalStore,se as resolveMemoryEntrypoint,qe as resolveMemoryRoot,wf as resolveProjectLearnedAreaRoot,S as resolveRequiredInvariants,ue as resolveScopedMemoryRoot,Pp as resolveSessionLineageTarget,Yf as resolveSkillContent,Te as resolveSkillSnapshotLocation,rf as resolveSkillTrustLedger,of as resolveSkillUsageLedger,Am as rewindPendingEpisodeReviews,Bm as rewindPendingEpisodeReviewsForSession,Wp as rewindSessionLineage,Z as runAdmissionAudit,_r as runFanOut,ho as runInputGuardrails,io as runOutputGuardrails,Ht as runRestrictedWorkflowScript,ko as runToolAfterGuardrails,jo as runToolBeforeGuardrails,Zr as runWithIdleYield,Wt as runWorkflow,ke as sanitizeProjectKey,tm as sanitizePromptSafeMemoryClaim,Fm as sanitizeUnifiedLearningReviewInput,Mm as searchMcpCatalog,pt as searchSessionHistory,cp as serializeConversation,ee as setActiveTeamModeWriter,cr as setActiveUserInteraction,_ as setAdmittedAgentBindings,Go as setAgentConfigHome,n as setKodaXDiagnosticSink,Qp as setSessionLineageActiveEntry,C as setTracingProcessors,nt as shouldCompact,H as shutdownTracing,df as slugifyLearnedCapabilityName,Bf as stageLearnedSkillRevision,Zo as stripHardenedEnvVars,Oe as triageProceduralLearning,De as truncateEntrypointContent,ne as tryGitRemote,Fe as unregisterPluginSkillPath,me as updateActiveTeamMode,Ye as updateLearningProposalStatus,pf as updateSkillTrustLedger,We as upsertLearningProposal,te as validateAndFixToolHistory,zf as validateDeclarativeSkillSpec,Qr as validateInputArtifactsForModel,Gt as validateRestrictedWorkflowSource,Mt as validateWorkflowCapsule,Ct as validateWorkflowScriptManifest,$o as waitForChildProcessExit,Wr as waitForWakeEvent,lm as withEpisodeReviewClaimAuthority,Ue as withKodaXFileLock,Dm as withPendingEpisodeReviewSessionFence};
|
|
2
|
+
import{$ as mo,$a as dr,$b as hp,$c as ht,$d as hx,A as F,Aa as Go,Ab as ke,Ac as Op,Ad as Ot,B as G,Ba as Ho,Bb as le,Bc as Pp,Bd as Pt,C as H,Ca as Oo,Cb as Qm,Cc as Qp,Cd as Qt,D as I,Da as Po,Db as Rm,Dc as Rp,Dd as Rt,E as J,Ea as Qo,Eb as Sm,Ec as Sp,Ed as St,F as K,Fa as Ro,Fb as Tm,Fc as Tp,Fd as Tt,G as L,Ga as So,Gb as Um,Gc as Up,Gd as Ut,H as M,Ha as To,Hb as Vm,Hc as Vp,Hd as Vt,I as N,Ia as Uo,Ib as Wm,Ic as Wp,Id as Wt,J as O,Ja as Vo,Jb as Xm,Jc as Xp,Jd as Xt,K as P,Ka as Wo,Kb as Ym,Kc as Yp,Kd as Yt,L as Q,La as Xo,Lb as Zm,Lc as Zp,Ld as Zt,M as R,Ma as Yo,Mb as _m,Mc as _p,Md as _t,N as S,Na as Zo,Nb as $m,Nc as $p,Nd as $t,O as T,Oa as _o,Ob as op,Oc as ot,Od as ox,P as U,Pa as $o,Pb as rp,Pc as rt,Pd as rx,Q as V,Qa as or,Qb as ep,Qc as et,Qd as ex,R as W,Ra as rr,Rb as fp,Rc as ft,Rd as fx,S as X,Sa as er,Sb as mp,Sc as mt,Sd as mx,T as Y,Ta as fr,Tb as pp,Tc as pt,Td as px,U as Z,Ua as mr,Ub as tp,Uc as tt,Ud as tx,V as _,Va as pr,Vb as xp,Vc as xt,Vd as xx,W as $,Wa as tr,Wb as ap,Wc as at,Wd as ax,X as oo,Xa as xr,Xb as bp,Xc as bt,Xd as bx,Y as ro,Ya as ar,Yb as cp,Yc as ct,Yd as cx,Z as eo,Za as br,Zb as dp,Zc as dt,Zd as dx,_ as fo,_a as cr,_b as gp,_c as gt,_d as gx,a as o,aa as po,ab as gr,ac as ip,ad as it,ae as ix,b as r,ba as to,bb as hr,bc as jp,bd as jt,be as jx,c as e,ca as xo,cb as ir,cc as kp,cd as kt,ce as kx,d as f,da as ao,db as jr,dc as lp,dd as lt,de as lx,e as m,ea as bo,eb as kr,ec as np,ed as nt,ee as nx,f as p,fa as co,fb as lr,fc as qp,fd as qt,fe as qx,g as t,ga as go,gb as Yr,gc as sp,gd as st,ge as sx,h as x,ha as ho,hb as Zr,hc as up,hd as ut,he as ux,i as a,ia as io,ib as _r,ic as vp,id as vt,ie as vx,j as b,ja as jo,jb as $r,jc as wp,jd as wt,je as wx,k as g,ka as ko,kb as oe,kc as yp,kd as yt,ke as yx,l as h,la as lo,lb as re,lc as zp,ld as zt,le as zx,m as i,ma as no,mb as ee,mc as Ap,md as At,me as Ax,n as j,na as qo,nb as fe,nc as Bp,nd as Bt,o as k,oa as so,ob as me,oc as Cp,od as Ct,p as l,pa as uo,pb as pe,pc as Dp,pd as Dt,q as u,qa as vo,qb as te,qc as Ep,qd as Et,r as v,ra as wo,rb as xe,rc as Fp,rd as Ft,s as w,sa as yo,sb as ae,sc as Gp,sd as Gt,t as y,ta as zo,tb as be,tc as Hp,td as Ht,u as z,ua as Ao,ub as ce,uc as Ip,ud as It,v as A,va as Bo,vb as de,vc as Jp,vd as Jt,w as B,wa as Co,wb as ge,wc as Kp,wd as Kt,x as C,xa as Do,xb as he,xc as Lp,xd as Lt,y as D,ya as Eo,yb as ie,yc as Mp,yd as Mt,z as E,za as Fo,zb as je,zc as Np,zd as Nt}from"./chunks/chunk-CEB5FDND.js";import{$ as ff,$a as mm,A as He,Aa as Ff,Ab as Em,B as Ie,Ba as Gf,Bb as Fm,C as Je,Ca as Hf,Cb as Gm,D as Ke,Da as If,Db as Hm,E as Le,Ea as Jf,Eb as Im,F as Me,Fa as Kf,Fb as Jm,G as Ne,Ga as Lf,Gb as Km,H as Oe,Ha as Mf,Hb as Lm,I as Pe,Ia as Nf,Ib as Mm,Ja as Of,Jb as Nm,Ka as Pf,Kb as Om,La as Qf,Lb as Pm,M as Qe,Ma as Rf,N as Re,Na as Sf,O as Se,Oa as Tf,P as Te,Pa as Uf,Q as Ue,Qa as Vf,R as Ve,Ra as Wf,S as We,Sa as Xf,T as Xe,Ta as Yf,U as Ye,Ua as Zf,V as Ze,Va as _f,W as _e,Wa as $f,X as $e,Xa as om,Y as of,Ya as rm,Z as rf,Za as em,_ as ef,_a as fm,a as c,aa as mf,ab as pm,b as d,ba as pf,bb as tm,c as n,ca as tf,cb as xm,d as q,da as xf,db as am,e as s,ea as af,eb as bm,f as Io,fa as bf,fb as cm,g as Jo,ga as cf,gb as dm,h as Ko,ha as df,hb as gm,i as Lo,ia as gf,ib as hm,j as Mo,ja as hf,k as No,ka as jf,kb as im,l as ne,la as kf,lb as jm,m as qe,ma as lf,mb as km,n as se,na as nf,nb as lm,o as ue,oa as qf,ob as nm,p as ve,pa as sf,pb as qm,q as we,qa as uf,qb as sm,r as ye,ra as vf,rb as um,s as ze,sa as wf,sb as vm,t as Ae,ta as yf,tb as wm,u as Be,ua as zf,ub as ym,v as Ce,va as Af,vb as zm,w as De,wa as Bf,wb as Am,x as Ee,xa as Cf,xb as Bm,y as Fe,ya as Df,yb as Cm,z as Ge,za as Ef,zb as Dm}from"./chunks/chunk-EVXIJPZ6.js";import{A as Sr,B as Tr,C as Ur,D as Vr,E as Wr,F as Xr,a as nr,b as qr,c as sr,d as ur,e as vr,f as wr,g as yr,h as zr,i as Ar,j as Br,k as Cr,l as Dr,m as Er,n as Fr,o as Gr,p as Hr,q as Ir,r as Jr,s as Kr,t as Lr,u as Mr,v as Nr,w as Or,x as Pr,y as Qr,z as Rr}from"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.js";import"./chunks/chunk-ONUPGMER.js";export{gr as ASK_USER_BACK_SIGNAL,hr as ASK_USER_CUSTOM_INPUT_SIGNAL,zx as AgentActorController,nx as AgentActorStoreConflictError,kx as AgentBudgetExhaustedError,dx as AgentCancellationUncertainError,wx as AgentControlError,jx as AgentLimitReachedError,qx as AgentOwnerConflictError,sx as AgentOwnerUnknownError,lx as AgentRevisionConflictError,ux as AgentSettlementPersistenceError,vx as AgentShutdownPersistenceError,cx as AgentStartUncertainError,yx as AgentTurnScheduler,Yo as BUN_BE_BUN_ENV,Oo as CAPABILITY_CACHE_FILENAME,Lp as COMPACTED_HISTORY_RECOVERY_GUIDANCE,Cp as COMPACTION_PROTECTION_RATIO,Kp as COMPACTION_SUMMARY_PREFIX,g as CONTEXT_SAFETY_FLOOR_TOKENS,h as CONTEXT_SAFETY_RATIO,Go as CORE_INVARIANTS,K as ConsoleTracingProcessor,i as ContextCapacityError,zp as DEFAULT_COMPACTION_TRIGGER_PERCENT,Gt as DEFAULT_CONTEXT_WINDOW,ee as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,yt as DEFAULT_MICROCOMPACTION_CONFIG,Rp as DEFAULT_POST_COMPACT_CONFIG,sp as DEFAULT_SUMMARY_PROMPT,X as DEFAULT_SYSTEM_CAP,up as DEFAULT_UPDATE_SUMMARY_PROMPT,y as DefaultSummaryCompaction,Zo as ELECTRON_NODE_ENV_SCRUB_IMPORT,Xo as ELECTRON_RUN_AS_NODE_ENV,nm as EpisodeReviewBranchChangedError,lm as EpisodeReviewFailure,gx as ExternalAgentRegistrationConflictError,Ct as FileExtensionStore,zf as FileLearningCenterService,L as FileTracingProcessor,bo as GuardrailBlockedError,co as GuardrailEscalateError,Vo as HARDENED_ENV_VARS,Wo as HARDENING_OPT_OUT_ENV,Dr as ImageResizeError,ro as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,Ur as KODAX_FILE_MEDIA_TYPES,e as KODAX_HARD_TIMEOUT,Sr as KODAX_IMAGE_MEDIA_TYPES,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,Tr as KODAX_VIDEO_MEDIA_TYPES,Cr as KodaXMediaError,gp as LINEAGE_ENTRY_TYPES,vf as LearnedAreaStore,jf as LearningCapabilityError,ip as LineageCompaction,hp as LineageExtension,Bp as MAX_COMPACTION_TRIGGER_PERCENT,Jr as MAX_DIMENSION,Ie as MAX_ENTRYPOINT_BYTES,He as MAX_ENTRYPOINT_LINES,Xe as MAX_SKILL_MD_BYTES,Ye as MAX_SKILL_SUPPORT_FILE_BYTES,fo as MAX_TOOL_LOOP_ITERATIONS,ue as MEMORY_POLICY_VERSION,Ap as MIN_COMPACTION_TRIGGER_PERCENT,Xm as McpAuthRequiredError,ap as McpCapabilityProvider,Wm as McpExpiredSessionError,bp as McpManager,xp as McpServerRuntime,Ym as McpTransportCleanupIncompleteError,km as MemoryControlPlane,nr as MessageQueue,Or as PASTE_TMP_DIR_ENV,Pr as PASTE_TMP_TTL_MS,Qp as POST_COMPACT_MAX_TOKENS_PER_FILE,Pp as POST_COMPACT_TOKEN_BUDGET,b as PROMISE_PATTERN,Jp as PROTECTED_TOOL_NAMES,Yr as QueuedInputArtifactError,Bo as Runner,vo as RunnerIterationLimitError,xm as SkillExecutor,fm as SkillRegistry,z as SpanImpl,Kr as TARGET_RAW_SIZE_BYTES,I as Tracer,om as VariableResolver,Xt as WORKFLOW_CAPSULE_API_VERSION,Vt as WORKFLOW_CAPSULE_FORMAT,Wt as WORKFLOW_CAPSULE_VERSION,Nt as WORKFLOW_PATTERN_IDS,ox as WorkflowAbortError,ex as WorkflowBudgetError,Jt as WorkflowEventRecorder,rx as WorkflowLimitError,Rt as WorkflowScriptExecutionError,fx as WorkflowTaskFailedError,zr as YIELD_TOOL_NAMES,F as _emitSpanEnd,E as _emitSpanStart,G as _emitTraceEnd,D as _getRegisteredProcessors,yr as _resetActiveRootQueueRoutesForTests,V as _resetAdmissionMetrics,oo as _resetAdmittedAgentBindings,R as _resetInvariantRegistry,sr as _resetMessageQueueForTests,zo as _resetPresetDispatchers,ur as actorQueueId,B as addTracingProcessor,Tf as admitAndRecordLearnedSkillInvocation,Kf as admitLearnedSkillBinding,vt as appendGoalEntry,dt as appendMemoryClientNotice,at as appendMemoryOutcomeDigest,bt as appendMemoryReviewReceipt,_p as appendSessionLineageLabel,ot as applyLineageTruncation,M as applyManifestPatch,_o as applyProcessHardening,$p as applySessionCompaction,ff as applySkillLearningProposal,mf as approveStoredLearningProposal,xt as archiveOldIslands,jr as asSingleSelection,lf as assertLearnedCapabilityTransition,Qt as assertRestrictedWorkflowQuality,so as attachRunnerRecoveryTranscript,de as bootstrapTeamMode,xo as buildAssistantMessageFromLlmResult,vp as buildCompactionCacheInstruction,wp as buildCompactionPromptSnapshot,Up as buildFileContentMessages,tp as buildInitializeCapabilities,xe as buildOtherInstancesPromptBlock,Sp as buildPostCompactAttachments,Bt as buildRecoverySeed,pt as buildSessionTree,Ao as buildSystemPrompt,ao as buildToolResultMessage,$t as buildWorkflowCapsuleIntent,It as buildWorkflowOutcome,j as calculateContextSafetyMargin,l as calculateMaxContextInputTokens,Ve as canMarkCreatedByAgent,kf as canTransitionLearnedCapability,qm as captureEpisodeReviewBranchEpoch,um as claimEpisodeReview,he as cleanupIncompleteToolCalls,dr as cleanupRegisteredManagedChildren,To as clearCapabilityCache,Ne as clearPluginSkillPaths,go as collectGuardrails,Fp as collectUserQueryLedger,ym as commitEpisodeReviewAction,wm as commitEpisodeReviewDecision,Jf as commitLearnedSkillRevision,Op as compact,Hm as completeEpisodeReview,Dm as completeFencedEpisodeReview,Nf as completeLearnedSkillOutcome,Uf as completeLearnedSkillSessionOutcomes,re as composeIdleYieldUserMessage,N as composePatches,gf as computeSkillConsumerImpact,tt as countActiveLineageMessages,_r as countLastAssistantToolCalls,d as countTokens,u as createAgent,Ax as createAgentActorController,hx as createAgentExecutorPlane,am as createExecutor,Dt as createExtensionStore,Hr as createFileArtifactFromPath,v as createHandoff,Gr as createImageArtifactFromPath,w as createInMemorySession,eo as createInvariantSessionForAgent,Ef as createLearnedCapabilityScope,Qf as createLearnedSkillActionDriver,If as createLearnedSkillRecord,Af as createLearningCenterService,le as createLlmJudgedStopHook,Rm as createMcpCapabilityId,cp as createMcpManager,dp as createMcpTestServerFixture,Zm as createMcpTransport,bx as createMemoryAgentExecutorPlaneStore,jm as createMemoryControlPlane,ix as createReferenceAgentExecutorFactory,rm as createResolver,Ut as createRestrictedWorkflowModule,Vp as createSessionLineage,pe as createStateWriter,A as createTrace,Ir as createVideoArtifactFromPath,Zt as createWorkflowCapsule,_t as createWorkflowModuleFromCapsule,Mt as createWorkflowProcessTracker,xx as createWorkflowRunManager,px as createWorkflowRuntime,We as decideSkillGovernance,Qm as defaultMcpCacheDir,J as defaultTracer,Cm as deferEpisodeReview,lo as detectHandoffSignal,$r as detectIdleYield,Y as detectInstructionsInjection,Em as discardFencedEpisodeReview,rp as discoverAuthorizationServerMetadata,te as discoverInstances,ep as discoverOAuthEndpoints,op as discoverProtectedResourceMetadata,Yf as discoverSkills,_f as discoverSkillsWithMonorepo,hm as dispatchSkillCreatorTool,Mm as drainPendingEpisodeReviews,ie as editDistance,qo as emitHandoffSpan,q as emitKodaXDiagnostic,Xr as enqueueWithArtifacts,c as estimateTokens,wf as eventFromCapability,rt as evictOldIslandMessageContent,Do as evidenceTrail,Xf as exactInvokedSkillSnapshotForSession,k as exceedsContextCapacity,to as executeRunnerToolCall,bm as executeSkill,cm as expandSkillForLLM,lp as extractArtifactLedger,Co as extractAssistantTextFromMessage,jp as extractFileOps,$m as extractInsufficientScope,_m as extractResourceMetadataUrl,it as extractTitleFromMessages,Bm as failEpisodeReviewApply,Am as failEpisodeReviewAttempt,Km as fencePendingEpisodeReviewsForSession,Eo as finalOwner,je as findFuzzyToolMatch,et as findPreviousUserEntryId,mt as forkSessionLineage,s as formatKodaXDiagnostic,dm as formatSkillActivationMessage,vm as freezeEpisodeReviewInput,ht as generateSessionId,gt as generateSessionIdSync,yp as generateSummary,ct as getActiveMemoryOutcomeReviewIds,be as getActiveTeamModeWriter,lr as getActiveUserInteraction,U as getAdmissionMetricsSnapshot,$ as getAdmittedAgentBindings,Jo as getAgentConfigHome,Ko as getAgentConfigPath,No as getAppDataDir,Ro as getCachedRejectedEfforts,Po as getCapabilityCacheFile,Oe as getDefaultSkillPaths,ax as getDefaultWorkflowRunManager,P as getInvariant,Bf as getLearnedExtensionToolName,Vm as getMcpCachePaths,qr as getMessageQueue,Vr as getModelInputCapabilities,Zf as getNestedSkillPaths,Wp as getSessionLineagePath,Xp as getSessionMessagesFromLineage,Pe as getSkillPathsFlat,mm as getSkillRegistry,Ft as gracefulCompactDegradation,Fo as handoffLegality,we as hashCwd,qe as hashMemoryIdentityComponent,Er as inferImageMediaType,Fr as inferVideoMediaType,pm as initializeSkillRegistry,Tp as injectPostCompactAttachments,Fm as inspectEpisodeReviewJob,Mf as invokeLearnedSkillCanary,ke as invokeLlmJudge,W as isAdmissionDebugEnabled,ir as isAskUserCustomInputAnswer,Ce as isAutoManagedMemoryFile,er as isChildProcessExited,Mp as isEmptyLikeSummary,Kt as isFinalWorkflowProcessStatus,wt as isGoalEntry,Zr as isIdleYieldEnabled,Pf as isLearnedCapabilityRecordV2,Cf as isLearnedExtensionCommandAllowed,Lo as isPathInsideDirectory,mo as isRunnableTool,wo as isRunnerIterationLimitError,po as isRunnerLlmResult,gm as isSkillCreatorDispatchAction,Om as isUnifiedLearningReviewModelInput,ar as killChildProcessTree,br as killChildProcessTreeSync,tr as killPidTree,xr as killPidTreeSync,sf as learningEventIdFor,qf as learningEventKindForLifecycle,Pt as lintRestrictedWorkflowSource,Wf as listLearnedSkillUsageReceipts,Gm as listPendingEpisodeReviews,Me as listPluginSkillPaths,Q as listRegisteredInvariants,Qo as loadCapabilityCache,Se as loadFullSkill,Te as loadSkillFileContent,Re as loadSkillMetadata,pp as loadValidToken,ne as matchesMemoryApplicability,Br as maybeDrainMidTurn,se as memoryApplicabilityFingerprint,np as mergeArtifactLedger,kp as mergeFileOps,Gp as mergeUserQueryLedger,zt as microcompact,Ar as midTurnDrainPriority,Rf as migrateLegacyLearnedSkillsForProject,Np as needsCompaction,Dp as normalizeCompactionConfig,Lt as normalizeHostMetadata,Sm as normalizeMcpCapabilityId,Lr as normalizePastedImage,At as normalizeRecoveryPrompt,Pm as normalizeUnifiedLearningReview,mx as normalizeWorkflowLimits,$f as parseArguments,Tm as parseMcpCapabilityId,Fe as parseMemoryFile,Ee as parseMemoryType,De as parseMemoryTypeFromFilename,Ge as parseScalarFields,Qe as parseSkillMarkdown,Ip as parseUserQueryLedger,mp as performOAuthLogin,qt as persistCompactedSessionHistory,Qr as persistImageAsBlock,sm as persistPendingEpisodeReview,$o as prepareInternalNodeLaunch,or as prepareJavaScriptChildLaunch,yf as projectLearningProposals,Rr as prunePasteTmpDir,Of as quarantineLearnedSkillRevision,Nr as readAndNormalizeClipboardImage,Mr as readClipboardImage,st as readLatestGoalFromBranch,ut as readLatestGoalState,$e as readLearningProposalStore,mr as readProcessStartIdentity,uo as readRunnerRecoveryTranscript,nt as readSessionHistoryEntry,cf as readSkillTrustLedger,af as readSkillUsageLedger,Vf as reconcileLearnedSkillBindingOutcomes,hf as recordCompletedTurnLearning,Sf as recordLearnedSkillOffered,pf as recordProceduralLearning,So as recordRejectedEffort,bf as recordSkillUsage,vr as registerActiveRootQueueRoute,Ho as registerCoreInvariants,O as registerInvariant,cr as registerManagedChildProcess,fp as registerOAuthClient,Ke as registerPluginSkillPath,yo as registerPresetDispatcher,Lf as releaseLearnedSkillBinding,pr as rememberChildProcessTree,Gf as renderDeclarativeSkill,Hp as renderUserQueryLedger,no as replaceSystemMessage,Uo as resetCapabilityCacheMemoForTesting,tm as resetSkillRegistry,wr as resolveActiveRootQueueRoute,Ep as resolveCompactionPolicy,Ht as resolveContextWindow,T as resolveEffectiveInvariants,Mo as resolveExecutionPath,uf as resolveLearnedAreaPaths,rf as resolveLearningProposalStore,Ae as resolveMemoryEntrypoint,ze as resolveMemoryRoot,Df as resolveProjectLearnedAreaRoot,S as resolveRequiredInvariants,Be as resolveScopedMemoryRoot,Yp as resolveSessionLineageTarget,em as resolveSkillContent,Ze as resolveSkillSnapshotLocation,xf as resolveSkillTrustLedger,tf as resolveSkillUsageLedger,Im as rewindPendingEpisodeReviews,Jm as rewindPendingEpisodeReviewsForSession,ft as rewindSessionLineage,Z as runAdmissionAudit,me as runFanOut,ho as runInputGuardrails,io as runOutputGuardrails,Tt as runRestrictedWorkflowScript,ko as runToolAfterGuardrails,jo as runToolBeforeGuardrails,fe as runWithIdleYield,tx as runWorkflow,ve as sanitizeProjectKey,im as sanitizePromptSafeMemoryClaim,Nm as sanitizeUnifiedLearningReviewInput,Um as searchMcpCatalog,jt as searchSessionHistory,lt as searchSessionHistoryCooperatively,qp as serializeConversation,ae as setActiveTeamModeWriter,kr as setActiveUserInteraction,_ as setAdmittedAgentBindings,Io as setAgentConfigHome,n as setKodaXDiagnosticSink,Zp as setSessionLineageActiveEntry,C as setTracingProcessors,Et as shouldCompact,H as shutdownTracing,nf as slugifyLearnedCapabilityName,Hf as stageLearnedSkillRevision,rr as stripHardenedEnvVars,Ue as triageProceduralLearning,Je as truncateEntrypointContent,ye as tryGitRemote,Le as unregisterPluginSkillPath,ce as updateActiveTeamMode,ef as updateLearningProposalStatus,df as updateSkillTrustLedger,of as upsertLearningProposal,ge as validateAndFixToolHistory,Ff as validateDeclarativeSkillSpec,Wr as validateInputArtifactsForModel,St as validateRestrictedWorkflowSource,kt as validateSessionHistorySearchQuery,Yt as validateWorkflowCapsule,Ot as validateWorkflowScriptManifest,fr as waitForChildProcessExit,oe as waitForWakeEvent,zm as withEpisodeReviewClaimAuthority,_e as withKodaXFileLock,Lm as withPendingEpisodeReviewSessionFence};
|