@kodax-ai/kodax 0.7.67 → 0.7.69
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 +209 -3
- package/README.md +61 -9
- package/README_CN.md +58 -9
- package/config-templates/config.example.jsonc +26 -0
- package/config-templates/integrations/a2a.example.jsonc +54 -0
- package/config-templates/integrations/extensions.example.jsonc +7 -0
- package/config-templates/integrations/mcp.example.jsonc +16 -0
- package/dist/chunks/agent-DQRXT6M7.js +2 -0
- package/dist/chunks/argument-completer-RSK6CCGP.js +2 -0
- package/dist/chunks/chunk-4WIODYOH.js +329 -0
- package/dist/chunks/chunk-AWMTNUDS.js +37 -0
- package/dist/chunks/chunk-F7C7J6IM.js +7 -0
- package/dist/chunks/chunk-I4TPQEJN.js +5 -0
- package/dist/chunks/chunk-M7TCFYTO.js +107 -0
- package/dist/chunks/chunk-NGHQIGVW.js +46 -0
- package/dist/chunks/chunk-NGJURAY5.js +306 -0
- package/dist/chunks/{chunk-KBBGDRER.js → chunk-PA76WUBL.js} +2 -2
- package/dist/chunks/chunk-PQ3XUSY2.js +357 -0
- package/dist/chunks/chunk-UJEMSPM5.js +78 -0
- package/dist/chunks/{chunk-DEICMTHO.js → chunk-URC6ZI6P.js} +1 -1
- package/dist/chunks/{chunk-EN3O2C43.js → chunk-VAZ25MDX.js} +122 -122
- package/dist/chunks/chunk-VYKFM3TB.js +751 -0
- package/dist/chunks/chunk-WW2O2DEP.js +2 -0
- package/dist/chunks/chunk-Y4WOTWUC.js +2 -0
- package/dist/chunks/chunk-Z4PPLJF2.js +60 -0
- package/dist/chunks/chunk-ZG4DMYBS.js +422 -0
- package/dist/chunks/compaction-config-ABLL6UH3.js +2 -0
- package/dist/chunks/{construction-bootstrap-GLEHQ2KB.js → construction-bootstrap-GH6RW6ST.js} +1 -1
- package/dist/chunks/dist-DRBKYVHF.js +2 -0
- package/dist/chunks/dist-RWL2RBO4.js +2 -0
- package/dist/chunks/host-7SAB4WEC.js +2 -0
- package/dist/chunks/run-manager-XMDKTONJ.js +2 -0
- package/dist/chunks/utils-QYE5Y73D.js +2 -0
- package/dist/index.d.ts +19 -19
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1497 -1209
- package/dist/runtime-worker.js +1371 -1107
- package/dist/sdk-a2a.d.ts +397 -0
- package/dist/sdk-a2a.js +9 -0
- package/dist/sdk-agent.d.ts +172 -33
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +126 -51
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +618 -0
- package/dist/sdk-experimental-memory.js +2 -0
- package/dist/sdk-llm.d.ts +16 -9
- 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 +35 -101
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +744 -21
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +7 -7
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +100 -12
- package/dist/types-chunks/{base.d-DalIRhbb.d.ts → base.d-CYjtB68X.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-D57Gt6n8.d.ts → bash-prefix-extractor.d-BkIA8Wto.d.ts} +89 -18
- package/dist/types-chunks/{capability-learning.d-BQB0M70w.d.ts → capability-learning.d-WtsyRv3O.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-BZmqu_HL.d.ts → capsule.d-xJvfh4YR.d.ts} +5 -5
- package/dist/types-chunks/{commands.d-Cg26ud-Y.d.ts → commands.d-DkPfcQWG.d.ts} +4 -4
- package/dist/types-chunks/{cost-tracker.d-CBLk1fiD.d.ts → cost-tracker.d-BeaenODW.d.ts} +4 -1
- package/dist/types-chunks/{guardrail.d-Ds7JHxR1.d.ts → guardrail.d-6ZDbNbHO.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-vSaBe64I.d.ts → guardrail.d-R7AiGfrI.d.ts} +4 -4
- package/dist/types-chunks/integration-config.d-ojG4swOP.d.ts +95 -0
- package/dist/types-chunks/{manager.d-Zum9cGHU.d.ts → manager.d-CoEuPRAo.d.ts} +4 -1
- package/dist/types-chunks/{public-api.d-CPBMPDiU.d.ts → public-api.d-7G4--RZE.d.ts} +6 -7
- package/dist/types-chunks/{resolver.d-CGkfRULj.d.ts → resolver.d-CIVoGc97.d.ts} +2 -2
- package/dist/types-chunks/{run-manager.d-lnwnfyNC.d.ts → run-manager.d-BaXtkryp.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-ByoMLoUS.d.ts → sdk-session-BQccrODn.d.ts} +6 -4
- package/dist/types-chunks/{types.d-DG9B4SMm.d.ts → types.d-BtC4yLYO.d.ts} +170 -13
- package/dist/types-chunks/{types.d-DYv3a1ka.d.ts → types.d-C9YHEAmA.d.ts} +38 -7
- package/dist/types-chunks/{types.d-DU9lLkmE.d.ts → types.d-CJR7t6iW.d.ts} +2 -2
- package/dist/types-chunks/{types.d-Bp4Lm1jv.d.ts → types.d-TTvpAGWf.d.ts} +11 -1
- package/dist/types-chunks/{utils.d-DMI-9GTR.d.ts → utils.d-BbB5jzi1.d.ts} +15 -7
- package/docs/SDK_EMBEDDER_GUIDE.md +732 -14
- package/package.json +14 -2
- package/dist/chunks/agent-E4V5SLX6.js +0 -2
- package/dist/chunks/argument-completer-N6RT5KYT.js +0 -2
- package/dist/chunks/chunk-AKMXJSGM.js +0 -56
- package/dist/chunks/chunk-CW32NQFO.js +0 -2
- package/dist/chunks/chunk-D6QVXQNI.js +0 -1
- package/dist/chunks/chunk-NVDK375I.js +0 -729
- package/dist/chunks/chunk-O7N22GJ3.js +0 -31
- package/dist/chunks/chunk-PZTG2C33.js +0 -7
- package/dist/chunks/chunk-QI6SQ2UQ.js +0 -306
- package/dist/chunks/chunk-QJJKMNZF.js +0 -2
- package/dist/chunks/chunk-RS2GAABJ.js +0 -328
- package/dist/chunks/chunk-W2XMNYLK.js +0 -15
- package/dist/chunks/chunk-WCSSXBHR.js +0 -419
- package/dist/chunks/chunk-YH5BTUQO.js +0 -343
- package/dist/chunks/chunk-YRBNXFHY.js +0 -2
- package/dist/chunks/compaction-config-56NO42ZI.js +0 -2
- package/dist/chunks/dist-4PXB7U22.js +0 -2
- package/dist/chunks/dist-4UIRSSFS.js +0 -2
- package/dist/chunks/host-DMREFNSO.js +0 -2
- package/dist/chunks/paste-C33GZQV5.js +0 -2
- package/dist/chunks/run-manager-P5XMSGZ7.js +0 -2
- package/dist/chunks/utils-JENPFKAE.js +0 -2
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
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 AgentArtifactPolicy, h as AgentArtifactPolicyDecision, i as AgentArtifactPolicyInput, j as AgentArtifactReference, k as AgentCapabilityDeclaration, l as AgentCapabilityRequirements, m as AgentContinuationInput, n as AgentCredentialBroker, o as AgentDispatchContext, p as AgentDispatchPolicy, q as AgentDispatchPolicyDecision, r as AgentDispatchPolicyInput, s as AgentDispatchabilitySnapshot, t as AgentDispatchabilityStatus, u as AgentEffectDeclaration, v as AgentExecutor, w as AgentExecutorEvent, y as AgentExecutorFactoryContext, B as AgentExecutorPlaneBinding, D as AgentExecutorPreflightResult, E as AgentExecutorProtocol, F as AgentExecutorTaskReference, G as AgentExecutorTaskSnapshot, J as AgentMiddlewareDeclaration, K as AgentPreflightInput, L as AgentPreflightResult, M as AgentReasoningProfile, N as AgentRegistrationService, O as AgentSpanData, P as AgentTaskCancellation, Q as AgentTaskCorrelation, R as AgentTaskEvent, S as AgentTaskFilter, T as AgentTaskProgress, U as AgentTaskRegistrationSnapshot, V as AgentTaskService, W as AgentTaskSnapshot, X as AgentTaskStartInput, Y as AgentTaskState, Z as AgentTaskUsage, _ as AgentTool, $ as AskUserAnswer, a0 as AskUserCustomInputAnswer, a1 as AskUserMultiOptions, a2 as AskUserQuestionItem, a3 as AskUserQuestionOptions, a4 as AskUserSelectionAnswer, a5 as CapabilitySupport, a7 as CompactionAnchor, ab as CompactionSpanData, ac as CompactionUpdate, ae as CurrentTodoSummary, af as DEFAULT_SYSTEM_CAP, ag as Deliverable, ai as DiscoveryOptions, aj as DispatchableAgentDescriptor, ak as DispatchableAgentListing, al as DispatchableAgentOrigin, am as DispatchableAgentQuery, an as EvidenceSpanData, ao as ExternalAgentEffectDeclaration, ap as ExternalAgentHealth, ar as ExternalAgentRegistration, as as ExternalAgentRegistrationSummary, at as FanoutSpanData, au as FileOperations, av as GenerationSpanData, aw as Guardrail, ax as GuardrailSpanData, az as HandoffSpanData, aA as InMemorySessionOptions, aD as InvariantResult, aE as InvariantSession, aF as KodaXCompactMemoryProgress, aG as KodaXCompactMemorySeed, aH as KodaXExtensionSessionRecord, aI as KodaXExtensionSessionState, aO as KodaXGoalStatus, aU as
|
|
3
|
-
import { M as MessageQueue, N 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 _resetMessageQueueForTests, 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 extractArtifactLedger, a4 as extractFileOps, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir, ac as getMessageQueue, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as lintRestrictedWorkflowSource, ag as mergeArtifactLedger, ah as mergeFileOps, ai as resolveSessionLineageTarget, aj as rewindSessionLineage, ak as setAgentConfigHome, al as setSessionLineageActiveEntry, am as validateAndFixToolHistory, an as validateWorkflowCapsule, ao as validateWorkflowScriptManifest } from './types-chunks/capsule.d-
|
|
5
|
-
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-
|
|
6
|
-
import {
|
|
7
|
-
export { K as KodaXAssuranceIntent, c as KodaXContentBlock,
|
|
8
|
-
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-
|
|
9
|
-
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-
|
|
1
|
+
import { cH as Span, c_ as Trace, f as Agent, ay as Handoff, ct as RunnerToolCall, cw as RunnerToolResult, I as AgentMessage, H as AgentManifest, bt as ManifestPatch, aC as InvariantId, cd as QualityInvariant, aS as KodaXInputArtifactSource, aQ as KodaXImageMediaType, bp as KodaXVideoMediaType, aL as KodaXFileInputArtifact, aP as KodaXImageInputArtifact, bo as KodaXVideoInputArtifact, aR as KodaXInputArtifact, a6 as ChildTaskRegistry, ah as DiscoveredInstance, cF as SessionMeta, cG as SessionStateSnapshot, cO as StateWriterFs, aB as InstanceDiscoveryFs, cN as StateWriter, cQ as StopHookContext, cS as StopHookResult, cR as StopHookFn, bE as MemoryContextIdentity, bN as MemoryItemRef, b5 as KodaXSessionLineage, aY as KodaXSessionArtifactLedgerEntry, bJ as MemoryEvent, c3 as MemoryReviewRunner, bF as MemoryController, bu as MemoryActionProposal, bx as MemoryApplyResult, bX as MemoryRejectResult, bV as MemoryRefFilter, bC as MemoryBodySnapshot, bP as MemoryLifecycleOperationResult, bG as MemoryCuratorInput, bM as MemoryGovernanceReport, bA as MemoryAutoCuratorInput, bB as MemoryAutoCuratorResult, bS as MemoryPackInput, bQ as MemoryPack, b_ as MemoryReviewInput, c2 as MemoryReviewPlan, aV as KodaXMemoryOutcomeDigest, bI as MemoryEpisodeReviewResult, bv as MemoryApplicability, aN as KodaXGoalState, aM as KodaXGoalEventType, b1 as KodaXSessionEntry, b3 as KodaXSessionGoalEntry, a9 as CompactionDetails, a8 as CompactionConfig, aa as CompactionResult, aJ as KodaXExtensionStore, aK as KodaXExtensionStoreEntry, aT as KodaXJsonValue, d4 as WorkflowApi, di as WorkflowModule, d3 as WorkflowAgentBackend, de as WorkflowLimits, d9 as WorkflowEvent, df as WorkflowLogEvent, dH as WorkflowTaskResult, dB as WorkflowRunState, C as AgentExecutorPlaneStore, ad as CreateAgentExecutorPlaneOptions, z as AgentExecutorPlane, aq as ExternalAgentProtocol, x as AgentExecutorFactory } from './types-chunks/types.d-BtC4yLYO.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 AgentArtifactPolicy, h as AgentArtifactPolicyDecision, i as AgentArtifactPolicyInput, j as AgentArtifactReference, k as AgentCapabilityDeclaration, l as AgentCapabilityRequirements, m as AgentContinuationInput, n as AgentCredentialBroker, o as AgentDispatchContext, p as AgentDispatchPolicy, q as AgentDispatchPolicyDecision, r as AgentDispatchPolicyInput, s as AgentDispatchabilitySnapshot, t as AgentDispatchabilityStatus, u as AgentEffectDeclaration, v as AgentExecutor, w as AgentExecutorEvent, y as AgentExecutorFactoryContext, B as AgentExecutorPlaneBinding, D as AgentExecutorPreflightResult, E as AgentExecutorProtocol, F as AgentExecutorTaskReference, G as AgentExecutorTaskSnapshot, J as AgentMiddlewareDeclaration, K as AgentPreflightInput, L as AgentPreflightResult, M as AgentReasoningProfile, N as AgentRegistrationService, O as AgentSpanData, P as AgentTaskCancellation, Q as AgentTaskCorrelation, R as AgentTaskEvent, S as AgentTaskFilter, T as AgentTaskProgress, U as AgentTaskRegistrationSnapshot, V as AgentTaskService, W as AgentTaskSnapshot, X as AgentTaskStartInput, Y as AgentTaskState, Z as AgentTaskUsage, _ as AgentTool, $ as AskUserAnswer, a0 as AskUserCustomInputAnswer, a1 as AskUserMultiOptions, a2 as AskUserQuestionItem, a3 as AskUserQuestionOptions, a4 as AskUserSelectionAnswer, a5 as CapabilitySupport, a7 as CompactionAnchor, ab as CompactionSpanData, ac as CompactionUpdate, ae as CurrentTodoSummary, af as DEFAULT_SYSTEM_CAP, ag as Deliverable, ai as DiscoveryOptions, aj as DispatchableAgentDescriptor, ak as DispatchableAgentListing, al as DispatchableAgentOrigin, am as DispatchableAgentQuery, an as EvidenceSpanData, ao as ExternalAgentEffectDeclaration, ap as ExternalAgentHealth, ar as ExternalAgentRegistration, as as ExternalAgentRegistrationSummary, at as FanoutSpanData, au as FileOperations, av as GenerationSpanData, aw as Guardrail, ax as GuardrailSpanData, az as HandoffSpanData, aA as InMemorySessionOptions, aD as InvariantResult, aE as InvariantSession, aF as KodaXCompactMemoryProgress, aG as KodaXCompactMemorySeed, aH as KodaXExtensionSessionRecord, aI as KodaXExtensionSessionState, aO as KodaXGoalStatus, aU as KodaXMemoryInfluenceRef, aW as KodaXMemoryOutcomeEvidence, aX as KodaXSessionArchiveMarkerEntry, aZ as KodaXSessionBranchSummaryEntry, a_ as KodaXSessionClientNoticeEntry, a$ as KodaXSessionCompactionEntry, b0 as KodaXSessionData, b2 as KodaXSessionEntryBase, b4 as KodaXSessionLabelEntry, b6 as KodaXSessionMemoryOutcomeDigestEntry, b7 as KodaXSessionMemoryReviewReceiptEntry, b8 as KodaXSessionMessageEntry, b9 as KodaXSessionMeta, ba as KodaXSessionNavigationOptions, bb as KodaXSessionRewindMarkerEntry, bc as KodaXSessionRuntimeInfo, bd as KodaXSessionScope, be as KodaXSessionStorage, bf as KodaXSessionTreeNode, bg as KodaXSessionUiHistoryItem, bh as KodaXSessionUiHistoryItemType, bi as KodaXSessionUiTextHistoryItem, bj as KodaXSessionUiTextHistoryItemType, bk as KodaXSessionUiToolCall, bl as KodaXSessionUiToolCallStatus, bm as KodaXSessionUiToolGroupHistoryItem, bn as KodaXSessionWorkspaceKind, bq as LocalAgentTaskInput, br as LocalAgentTaskUpdate, bs as MAX_TOOL_LOOP_ITERATIONS, bw as MemoryApplyPreview, by as MemoryApproval, bz as MemoryAuthority, bD as MemoryClaimKind, bH as MemoryDecisionTraceReceipt, bK as MemoryGovernanceFinding, bL as MemoryGovernanceFindingKind, bO as MemoryLifecycle, bR as MemoryPackHint, bT as MemoryPackTraceMetadata, bU as MemoryProposalAction, bW as MemoryRefKind, bY as MemoryReviewCandidateRef, bZ as MemoryReviewDraftAction, b$ as MemoryReviewModelInput, c0 as MemoryReviewPersistenceDecision, c1 as MemoryReviewPersistenceKind, c4 as MemoryReviewTrigger, c5 as MemoryScope, c6 as MemorySourceAdapter, c7 as MemoryVisibility, c8 as MessageEntry, c9 as ObserveCtx, ca as PersistedSessionState, cb as PresetDispatcher, cc as PresetTracingContext, ce as ReadonlyMutationTracker, cf as ReadonlyRecorder, cg as ReasoningDepth, ch as RecentlyModifiedFile, ci as RequestTaskStopOptions, cj as RequestTaskStopResult, ck as RunEvent, cl as RunOptions, cm as RunResult, cn as RunnableTool, co as Runner, cp as RunnerEvent, cq as RunnerLlmResult, cr as RunnerLlmReturn, cs as RunnerRecoveryTranscriptCarrier, cu as RunnerToolContext, cv as RunnerToolObserver, cx as RunnerToolResultBatch, cy as RunnerToolResultBatchTransform, cz as Session, cA as SessionDispatchResult, cB as SessionEntry, cC as SessionErrorMetadata, cD as SessionExtension, cE as SessionForkOptions, cI as SpanData, cJ as SpanError, cK as SpanImpl, cL as SpanImplOptions, cM as StartTraceOptions, cP as StateWriterOptions, cT as StopHookSpanData, cU as SystemCap, cV as TaskAbortRegistry, cW as TerminalCtx, cX as ToolCallSpanData, cY as ToolCapability, cZ as ToolPermission, c$ as TraceOptions, d0 as Tracer, d1 as TracerOptions, d2 as UserInteraction, d5 as WorkflowApproval, d6 as WorkflowApprovalSummary, d7 as WorkflowArtifactRef, d8 as WorkflowBudget, da as WorkflowEventCorrelation, db as WorkflowEventRecorder, dc as WorkflowEventType, dd as WorkflowIsolation, dg as WorkflowMeta, dh as WorkflowModelHint, dj as WorkflowParallelOptions, dk as WorkflowProcessArtifact, dl as WorkflowProcessCounts, dm as WorkflowProcessEvent, dn as WorkflowProcessItem, dp as WorkflowProcessItemKind, dq as WorkflowProcessItemOrigin, dr as WorkflowProcessItemStatus, ds as WorkflowProcessProgress, dt as WorkflowProcessSnapshot, du as WorkflowProcessSource, dv as WorkflowProcessStatus, dw as WorkflowProcessSummaryStatus, dx as WorkflowProcessTokenUsage, dy as WorkflowProcessTracker, dz as WorkflowProcessTrackerOptions, dA as WorkflowRun, dC as WorkflowRunStatus, dD as WorkflowSpawnAgentInput, dE as WorkflowSynthesis, dF as WorkflowSynthesizeInput, dG as WorkflowTaskHandle, dI as WorkflowTaskSnapshot, dJ as WorkflowTaskStatus, dK as WorkflowTaskSummaryEventUpdate, dL as WorkflowTaskSummaryKind, dM as WorkflowTaskSummaryUpdate, dN as WorkflowTaskUsage, dO as WorkflowTaskVerification, dP as WorkflowTaskVerificationResult, dQ as WorkflowWaitOptions, dR as _resetAdmittedAgentBindings, dS as _resetPresetDispatchers, dT as asSingleSelection, dU as attachRunnerRecoveryTranscript, dV as buildAssistantMessageFromLlmResult, dW as buildSystemPrompt, dX as buildToolResultMessage, dY as createAgent, dZ as createHandoff, d_ as createInMemorySession, d$ as createInvariantSessionForAgent, e0 as createStateWriter, e1 as createTrace, e2 as createWorkflowProcessTracker, e3 as defaultTracer, e4 as detectInstructionsInjection, e5 as discoverInstances, e6 as executeRunnerToolCall, e7 as extractAssistantTextFromMessage, e8 as getActiveUserInteraction, e9 as getAdmittedAgentBindings, ea as hashMemoryIdentityComponent, eb as isAskUserCustomInputAnswer, ec as isFinalWorkflowProcessStatus, ed as isRunnableTool, ee as isRunnerLlmResult, ef as matchesMemoryApplicability, eg as memoryApplicabilityFingerprint, eh as normalizeHostMetadata, ei as readRunnerRecoveryTranscript, ej as registerChildTask, ek as registerPresetDispatcher, el as requestTaskStop, em as runAdmissionAudit, en as setActiveUserInteraction, eo as setAdmittedAgentBindings } from './types-chunks/types.d-BtC4yLYO.js';
|
|
3
|
+
import { M as MessageQueue, N as WorkflowScriptManifest } from './types-chunks/capsule.d-xJvfh4YR.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 _resetMessageQueueForTests, 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 extractArtifactLedger, a4 as extractFileOps, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir, ac as getMessageQueue, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as lintRestrictedWorkflowSource, ag as mergeArtifactLedger, ah as mergeFileOps, ai as resolveSessionLineageTarget, aj as rewindSessionLineage, ak as setAgentConfigHome, al as setSessionLineageActiveEntry, am as validateAndFixToolHistory, an as validateWorkflowCapsule, ao as validateWorkflowScriptManifest } from './types-chunks/capsule.d-xJvfh4YR.js';
|
|
5
|
+
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-6ZDbNbHO.js';
|
|
6
|
+
import { T as KodaXTaskResultSource, S as KodaXTaskResultMetadata, i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock } from './types-chunks/types.d-TTvpAGWf.js';
|
|
7
|
+
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, q as KodaXProviderConfig, y as KodaXProviderStreamOptions, B as KodaXReasoningCapability, F as KodaXReasoningMode, H as KodaXReasoningRequest, I as KodaXRedactedThinkingBlock, L as KodaXRiskLevel, N as KodaXStreamResult, O as KodaXTaskActionability, P as KodaXTaskBudgetOverrides, Q as KodaXTaskComplexity, R as KodaXTaskFamily, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, X as KodaXTextBlock, Y as KodaXThinkingBlock, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, a0 as KodaXTokenUsage, a2 as KodaXToolResultBlock } from './types-chunks/types.d-TTvpAGWf.js';
|
|
8
|
+
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-WtsyRv3O.js';
|
|
9
|
+
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-WtsyRv3O.js';
|
|
10
10
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
11
11
|
import { ChildProcess } from 'node:child_process';
|
|
12
|
-
import { c as QueuedMessage, a as MessagePriority, b as QueuedInputArtifact, M as MessageMode } from './types-chunks/types.d-
|
|
13
|
-
export { D as DequeueFilter, E as EnqueueInput } from './types-chunks/types.d-
|
|
14
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
12
|
+
import { c as QueuedMessage, a as MessagePriority, b as QueuedInputArtifact, M as MessageMode } from './types-chunks/types.d-CJR7t6iW.js';
|
|
13
|
+
export { D as DequeueFilter, E as EnqueueInput } from './types-chunks/types.d-CJR7t6iW.js';
|
|
14
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-CYjtB68X.js';
|
|
15
15
|
import { l as SkillSource } from './types-chunks/types.d-vJExiRje.js';
|
|
16
16
|
export { I as ISkillRegistry, a as IVariableResolver, 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, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-vJExiRje.js';
|
|
17
17
|
export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
18
|
-
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpElicitRequest, f as McpElicitResult, g as McpIcon, h as McpManager, i as McpProviderOptions, j as McpReverseCapabilities, k as McpRoot, l as McpSamplingRequest, m as McpSamplingResult, n as McpServerCatalog, o as McpServerCatalogSnapshot, p as McpServerLogs, q as McpServerRuntime, r as McpServerRuntimeDiagnostics, s as McpServerStatus, t as McpServerToolList, u as McpToolTaskSupport, v as buildInitializeCapabilities, w as createMcpCapabilityId, x as createMcpManager, y as defaultMcpCacheDir, z as getMcpCachePaths, A as normalizeMcpCapabilityId, B as parseMcpCapabilityId, C as searchMcpCatalog } from './types-chunks/manager.d-
|
|
18
|
+
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpElicitRequest, f as McpElicitResult, g as McpIcon, h as McpManager, i as McpProviderOptions, j as McpReverseCapabilities, k as McpRoot, l as McpSamplingRequest, m as McpSamplingResult, n as McpServerCatalog, o as McpServerCatalogSnapshot, p as McpServerLogs, q as McpServerRuntime, r as McpServerRuntimeDiagnostics, s as McpServerStatus, t as McpServerToolList, u as McpToolTaskSupport, v as buildInitializeCapabilities, w as createMcpCapabilityId, x as createMcpManager, y as defaultMcpCacheDir, z as getMcpCachePaths, A as normalizeMcpCapabilityId, B as parseMcpCapabilityId, C as searchMcpCatalog } from './types-chunks/manager.d-CoEuPRAo.js';
|
|
19
19
|
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
|
|
20
20
|
export { createMcpTestServerFixture } from './sdk-mcp.js';
|
|
21
21
|
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 { 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-
|
|
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-BaXtkryp.js';
|
|
23
|
+
|
|
24
|
+
declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
|
|
25
|
+
declare const CONTEXT_SAFETY_RATIO = 0.03;
|
|
26
|
+
interface ContextCapacityInput {
|
|
27
|
+
readonly contextWindow: number;
|
|
28
|
+
readonly currentTokens: number;
|
|
29
|
+
readonly reservedResponseTokens?: number;
|
|
30
|
+
}
|
|
31
|
+
declare class ContextCapacityError extends Error {
|
|
32
|
+
readonly code = "KODAX_CONTEXT_CAPACITY_EXCEEDED";
|
|
33
|
+
readonly contextWindow: number;
|
|
34
|
+
readonly currentTokens: number;
|
|
35
|
+
readonly reservedResponseTokens: number;
|
|
36
|
+
constructor(input: ContextCapacityInput, operation?: string);
|
|
37
|
+
}
|
|
38
|
+
declare function calculateContextSafetyMargin(currentTokens: number): number;
|
|
39
|
+
declare function exceedsContextCapacity(input: ContextCapacityInput): boolean;
|
|
40
|
+
/** Largest complete request input that leaves response and safety capacity. */
|
|
41
|
+
declare function calculateMaxContextInputTokens(contextWindow: number, reservedResponseTokens?: number): number;
|
|
23
42
|
|
|
24
43
|
type KodaXDiagnosticLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
25
44
|
interface KodaXDiagnostic {
|
|
@@ -1033,7 +1052,13 @@ declare function waitForWakeEvent<TChildResult = unknown>(options: WaitForWakeEv
|
|
|
1033
1052
|
* may leak into this signature**, otherwise ADR-021 layer
|
|
1034
1053
|
* independence breaks and `@kodax/agent` cannot build standalone.
|
|
1035
1054
|
*/
|
|
1036
|
-
|
|
1055
|
+
interface EnvelopeAggregateCapacityContext {
|
|
1056
|
+
/** Authoritative transcript immediately before the resume messages. */
|
|
1057
|
+
readonly transcript: readonly KodaXMessage[];
|
|
1058
|
+
/** Non-synthetic messages that will share the same next request. */
|
|
1059
|
+
readonly pendingMessages: readonly KodaXMessage[];
|
|
1060
|
+
}
|
|
1061
|
+
type EnvelopeAggregateEnforcer = (fragments: readonly string[], context?: EnvelopeAggregateCapacityContext) => readonly string[] | Promise<readonly string[]>;
|
|
1037
1062
|
/**
|
|
1038
1063
|
* FEATURE_159 (v0.7.40) — mode-split synthetic.
|
|
1039
1064
|
*
|
|
@@ -1064,7 +1089,7 @@ type EnvelopeAggregateEnforcer = (fragments: readonly string[]) => readonly stri
|
|
|
1064
1089
|
* `readonly KodaXMessage[]` (possibly empty). Callers must spread the
|
|
1065
1090
|
* result into their next-iteration input.
|
|
1066
1091
|
*/
|
|
1067
|
-
declare function composeIdleYieldUserMessage<TChildResult = unknown>(wakeEvent: WakeEvent<TChildResult>, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[]) => void, resolveTurnId?: () => string | undefined): Promise<readonly KodaXMessage[]>;
|
|
1092
|
+
declare function composeIdleYieldUserMessage<TChildResult = unknown>(wakeEvent: WakeEvent<TChildResult>, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[]) => void, resolveTurnId?: () => string | undefined, priorMessages?: readonly KodaXMessage[]): Promise<readonly KodaXMessage[]>;
|
|
1068
1093
|
|
|
1069
1094
|
/**
|
|
1070
1095
|
* Generic outer loop for async fan-out + idle-yield resume.
|
|
@@ -1191,6 +1216,10 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult,
|
|
|
1191
1216
|
*/
|
|
1192
1217
|
readonly maxIterations?: number;
|
|
1193
1218
|
/**
|
|
1219
|
+
* Current contract: the host receives the completed transcript and any
|
|
1220
|
+
* same-request user prompt, then admits the complete synthetic banner batch
|
|
1221
|
+
* once against physical model capacity. Enqueue-time fixed caps are not used.
|
|
1222
|
+
*
|
|
1194
1223
|
* FEATURE_121 (v0.7.40): optional aggregate budget enforcer for the
|
|
1195
1224
|
* synthetic user message built from drained background banners. When
|
|
1196
1225
|
* provided, it transforms the fragment array before they're joined
|
|
@@ -1720,6 +1749,9 @@ interface CreateLlmJudgedStopHookOptions<TVerdict> {
|
|
|
1720
1749
|
*/
|
|
1721
1750
|
declare function createLlmJudgedStopHook<TVerdict>(options: CreateLlmJudgedStopHookOptions<TVerdict>): StopHookFn;
|
|
1722
1751
|
|
|
1752
|
+
/** Source-controlled F260 policy identity. Not a runtime configuration knob. */
|
|
1753
|
+
declare const MEMORY_POLICY_VERSION = "f260-v0.7.68.2";
|
|
1754
|
+
|
|
1723
1755
|
/**
|
|
1724
1756
|
* FEATURE_124 (v0.7.43) — Memory System Alignment: path resolver.
|
|
1725
1757
|
*
|
|
@@ -1740,6 +1772,7 @@ declare function createLlmJudgedStopHook<TVerdict>(options: CreateLlmJudgedStopH
|
|
|
1740
1772
|
* who override `setAgentConfigHome()` automatically get a fresh memory
|
|
1741
1773
|
* directory tree under their override root.
|
|
1742
1774
|
*/
|
|
1775
|
+
|
|
1743
1776
|
/**
|
|
1744
1777
|
* Sanitize a git remote URL to a filesystem-safe project key.
|
|
1745
1778
|
*
|
|
@@ -1789,15 +1822,17 @@ declare function resolveMemoryRoot(cwd: string): string;
|
|
|
1789
1822
|
* Path of the MEMORY.md index file inside a resolved memory root.
|
|
1790
1823
|
*/
|
|
1791
1824
|
declare function resolveMemoryEntrypoint(cwd: string): string;
|
|
1825
|
+
type DurableMemoryScope = 'project' | 'workspace' | 'agent' | 'user';
|
|
1826
|
+
declare function resolveScopedMemoryRoot(identity: MemoryContextIdentity, scope: DurableMemoryScope): string;
|
|
1792
1827
|
/**
|
|
1793
1828
|
* Check whether a given absolute path is inside ANY memory directory
|
|
1794
1829
|
* (under `<agentConfigHome>/projects/*/memory/`). Used by the REPL
|
|
1795
1830
|
* transcript renderer to badge memory writes / reads, and by future
|
|
1796
1831
|
* tool-permission carve-outs.
|
|
1797
1832
|
*
|
|
1798
|
-
* Returns true
|
|
1799
|
-
*
|
|
1800
|
-
* traversal (`..`) is normalized before the check.
|
|
1833
|
+
* Returns true for every file inside a governed scoped root or a legacy
|
|
1834
|
+
* `projects/<key>/memory/` directory. This includes governance sidecars;
|
|
1835
|
+
* path traversal (`..`) is normalized before the check.
|
|
1801
1836
|
*
|
|
1802
1837
|
* The check is path-prefix only — it does NOT verify the file exists
|
|
1803
1838
|
* on disk. A planned write to `<memoryRoot>/feedback_X.md` returns true
|
|
@@ -1941,6 +1976,7 @@ declare function truncateEntrypointContent(raw: string): EntrypointTruncation;
|
|
|
1941
1976
|
|
|
1942
1977
|
interface CreateMemoryControlPlaneOptions {
|
|
1943
1978
|
readonly cwd: string;
|
|
1979
|
+
readonly identity?: MemoryContextIdentity;
|
|
1944
1980
|
readonly learningStorePath?: string;
|
|
1945
1981
|
readonly memoryRoot?: string;
|
|
1946
1982
|
readonly projectDocs?: readonly string[];
|
|
@@ -1967,6 +2003,9 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
1967
2003
|
private readonly artifactLedger;
|
|
1968
2004
|
private readonly discoverSkills;
|
|
1969
2005
|
private readonly memoryReviewer?;
|
|
2006
|
+
private readonly identity?;
|
|
2007
|
+
private readonly applicability?;
|
|
2008
|
+
private readonly scopedRoots;
|
|
1970
2009
|
constructor(options: CreateMemoryControlPlaneOptions);
|
|
1971
2010
|
listInbox(): Promise<readonly MemoryActionProposal[]>;
|
|
1972
2011
|
showProposal(id: string): Promise<MemoryActionProposal | undefined>;
|
|
@@ -1974,10 +2013,21 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
1974
2013
|
rejectProposal(id: string, reason?: string): Promise<MemoryRejectResult>;
|
|
1975
2014
|
listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
|
|
1976
2015
|
readRef(ref: MemoryItemRef): Promise<MemoryBodySnapshot>;
|
|
2016
|
+
archiveRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2017
|
+
forgetRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2018
|
+
purgeRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2019
|
+
private removeManagedRef;
|
|
1977
2020
|
runCurator(input?: MemoryCuratorInput): Promise<MemoryGovernanceReport>;
|
|
1978
2021
|
maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
|
|
1979
2022
|
buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
|
|
1980
2023
|
reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
|
|
2024
|
+
persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
|
|
2025
|
+
private persistReviewPlanWithDecisions;
|
|
2026
|
+
private resolveReviewMemoryPlacement;
|
|
2027
|
+
private projectPlacement;
|
|
2028
|
+
reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
|
|
2029
|
+
private consultReviewAction;
|
|
2030
|
+
private applyHostEligibleProposal;
|
|
1981
2031
|
private projectLearningProposal;
|
|
1982
2032
|
private projectMemdirHandoff;
|
|
1983
2033
|
private projectReasoningHandoff;
|
|
@@ -1994,10 +2044,60 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
1994
2044
|
private readReviewCandidateRef;
|
|
1995
2045
|
private adapterForProposal;
|
|
1996
2046
|
private memdirAdapter;
|
|
2047
|
+
private memdirAdapters;
|
|
2048
|
+
private memoryRootForHandoff;
|
|
2049
|
+
private memoryRootForRef;
|
|
1997
2050
|
private emit;
|
|
1998
2051
|
private buildGovernanceReport;
|
|
1999
2052
|
}
|
|
2000
2053
|
|
|
2054
|
+
interface PendingEpisodeReview {
|
|
2055
|
+
readonly version: 1;
|
|
2056
|
+
readonly reviewKey: string;
|
|
2057
|
+
readonly digest: KodaXMemoryOutcomeDigest;
|
|
2058
|
+
readonly ownerSessionRef: string;
|
|
2059
|
+
readonly ownerAgentHash: string;
|
|
2060
|
+
readonly ownerProjectHash?: string;
|
|
2061
|
+
readonly createdAt: string;
|
|
2062
|
+
}
|
|
2063
|
+
interface EpisodeReviewReceipt {
|
|
2064
|
+
readonly version: 1;
|
|
2065
|
+
readonly reviewKey: string;
|
|
2066
|
+
readonly proposalIds: readonly string[];
|
|
2067
|
+
readonly completedAt: string;
|
|
2068
|
+
}
|
|
2069
|
+
type EpisodeReviewDrainEligibility = 'eligible' | 'discard' | 'defer';
|
|
2070
|
+
interface EpisodeReviewDrainOptions {
|
|
2071
|
+
readonly maxEntries?: number;
|
|
2072
|
+
readonly revalidate: (entry: PendingEpisodeReview) => Promise<EpisodeReviewDrainEligibility>;
|
|
2073
|
+
readonly review: (entry: PendingEpisodeReview) => Promise<readonly string[]>;
|
|
2074
|
+
}
|
|
2075
|
+
interface EpisodeReviewDrainResult {
|
|
2076
|
+
readonly reviewed: number;
|
|
2077
|
+
readonly discarded: number;
|
|
2078
|
+
readonly deferred: number;
|
|
2079
|
+
readonly failed: number;
|
|
2080
|
+
readonly failures: readonly {
|
|
2081
|
+
readonly reviewKey: string;
|
|
2082
|
+
readonly error: string;
|
|
2083
|
+
}[];
|
|
2084
|
+
}
|
|
2085
|
+
declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest): Promise<{
|
|
2086
|
+
readonly path: string;
|
|
2087
|
+
readonly entry: PendingEpisodeReview;
|
|
2088
|
+
}>;
|
|
2089
|
+
declare function listPendingEpisodeReviews(filter: {
|
|
2090
|
+
readonly tenantId: string;
|
|
2091
|
+
readonly agentId?: string;
|
|
2092
|
+
readonly projectId?: string;
|
|
2093
|
+
}): Promise<readonly PendingEpisodeReview[]>;
|
|
2094
|
+
declare function completeEpisodeReview(identity: MemoryContextIdentity, reviewKey: string, proposalIds: readonly string[]): Promise<{
|
|
2095
|
+
readonly acknowledged: boolean;
|
|
2096
|
+
readonly receiptPath: string;
|
|
2097
|
+
}>;
|
|
2098
|
+
declare function rewindPendingEpisodeReviews(identity: MemoryContextIdentity, throughSequence: number): Promise<number>;
|
|
2099
|
+
declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
|
|
2100
|
+
|
|
2001
2101
|
type SkillWriteOrigin = 'foreground_user' | 'assistant_tool' | 'background_learning';
|
|
2002
2102
|
type ProceduralLearningDestination = 'skill_patch' | 'skill_create' | 'workflow_handoff' | 'memdir_handoff' | 'reasoning_handoff' | 'trace_only' | 'discard';
|
|
2003
2103
|
type LearningUserLabel = 'method_guide' | 'runnable_workflow' | 'context_note' | 'reasoning_report' | 'trace_only';
|
|
@@ -2012,6 +2112,18 @@ interface MemoryHandoffMetadata {
|
|
|
2012
2112
|
readonly sourceTool?: string;
|
|
2013
2113
|
readonly sourceRefs: readonly string[];
|
|
2014
2114
|
readonly completedTurn: boolean;
|
|
2115
|
+
readonly claimKind?: 'fact' | 'policy' | 'preference' | 'procedure' | 'episode';
|
|
2116
|
+
readonly claimKey?: string;
|
|
2117
|
+
readonly actionSignature?: string;
|
|
2118
|
+
readonly persistenceKind?: 'create' | 'evidence_update' | 'condition_refinement';
|
|
2119
|
+
readonly targetRefId?: string;
|
|
2120
|
+
readonly targetStorageUri?: string;
|
|
2121
|
+
readonly preconditions?: string;
|
|
2122
|
+
readonly applicability?: MemoryApplicability;
|
|
2123
|
+
readonly requestedLifecycle?: 'active' | 'provisional';
|
|
2124
|
+
readonly episodeOutcome?: 'succeeded' | 'failed';
|
|
2125
|
+
readonly verifiedEvidence?: boolean;
|
|
2126
|
+
readonly evidenceProjectId?: string;
|
|
2015
2127
|
}
|
|
2016
2128
|
interface SkillConsumerImpact {
|
|
2017
2129
|
readonly workflowCapsules: readonly string[];
|
|
@@ -2135,6 +2247,12 @@ interface StoredLearningProposal {
|
|
|
2135
2247
|
readonly appliedAt?: string;
|
|
2136
2248
|
readonly appliedChangedPaths?: readonly string[];
|
|
2137
2249
|
readonly appliedSnapshotPath?: string;
|
|
2250
|
+
readonly approvedBy?: 'user' | 'host';
|
|
2251
|
+
readonly approvedAt?: string;
|
|
2252
|
+
readonly approvalPolicyId?: string;
|
|
2253
|
+
readonly approvalPolicyReason?: string;
|
|
2254
|
+
readonly approvalExpectedFingerprints?: Readonly<Record<string, string>>;
|
|
2255
|
+
readonly approvalResultingFingerprints?: Readonly<Record<string, string>>;
|
|
2138
2256
|
readonly rejectedReason?: string;
|
|
2139
2257
|
}
|
|
2140
2258
|
interface LearningProposalStoreReadResult {
|
|
@@ -2226,6 +2344,12 @@ declare function updateLearningProposalStatus(filePath: string, proposalId: stri
|
|
|
2226
2344
|
readonly appliedAt?: string;
|
|
2227
2345
|
readonly appliedChangedPaths?: readonly string[];
|
|
2228
2346
|
readonly appliedSnapshotPath?: string;
|
|
2347
|
+
readonly approvedBy?: 'user' | 'host';
|
|
2348
|
+
readonly approvedAt?: string;
|
|
2349
|
+
readonly approvalPolicyId?: string;
|
|
2350
|
+
readonly approvalPolicyReason?: string;
|
|
2351
|
+
readonly approvalExpectedFingerprints?: Readonly<Record<string, string>>;
|
|
2352
|
+
readonly approvalResultingFingerprints?: Readonly<Record<string, string>>;
|
|
2229
2353
|
readonly now?: () => string;
|
|
2230
2354
|
}): Promise<StoredLearningProposal>;
|
|
2231
2355
|
|
|
@@ -2374,6 +2498,19 @@ interface CompletedTurnLearningRecordResult {
|
|
|
2374
2498
|
}
|
|
2375
2499
|
declare function recordCompletedTurnLearning(input: CompletedTurnLearningInput): Promise<CompletedTurnLearningRecordResult>;
|
|
2376
2500
|
|
|
2501
|
+
declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest): KodaXSessionLineage;
|
|
2502
|
+
declare function appendMemoryReviewReceipt(lineage: KodaXSessionLineage, input: {
|
|
2503
|
+
readonly reviewKey: string;
|
|
2504
|
+
readonly proposalIds: readonly string[];
|
|
2505
|
+
readonly completedAt: string;
|
|
2506
|
+
}): KodaXSessionLineage;
|
|
2507
|
+
declare function appendMemoryClientNotice(lineage: KodaXSessionLineage, input: {
|
|
2508
|
+
readonly episodeId: string;
|
|
2509
|
+
readonly summaries: readonly string[];
|
|
2510
|
+
readonly proposalIds: readonly string[];
|
|
2511
|
+
readonly createdAt: string;
|
|
2512
|
+
}): KodaXSessionLineage;
|
|
2513
|
+
|
|
2377
2514
|
/**
|
|
2378
2515
|
* FEATURE_192 v0.7.44 — goal-entry helpers for session lineage.
|
|
2379
2516
|
*
|
|
@@ -2575,14 +2712,15 @@ declare const COMPACTION_SUMMARY_PREFIX = "[\u5BF9\u8BDD\u5386\u53F2\u6458\u8981
|
|
|
2575
2712
|
* Exported for unit testing.
|
|
2576
2713
|
*/
|
|
2577
2714
|
declare function isEmptyLikeSummary(summary: string): boolean;
|
|
2578
|
-
declare function needsCompaction(messages: KodaXMessage[], config: CompactionConfig, contextWindow?: number, tokenCountOverride?: number): boolean;
|
|
2579
|
-
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string): Promise<CompactionResult>;
|
|
2715
|
+
declare function needsCompaction(messages: KodaXMessage[], config: CompactionConfig, contextWindow?: number, tokenCountOverride?: number, reservedResponseTokens?: number): boolean;
|
|
2716
|
+
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, force?: boolean, reservedResponseTokens?: number): Promise<CompactionResult>;
|
|
2580
2717
|
|
|
2581
2718
|
/**
|
|
2582
|
-
* KodaX Microcompaction -
|
|
2719
|
+
* KodaX Microcompaction - Explicit legacy context cleanup
|
|
2583
2720
|
*
|
|
2584
|
-
* Clears old tool result content
|
|
2585
|
-
*
|
|
2721
|
+
* Clears old tool result content only when a caller explicitly enables it.
|
|
2722
|
+
* The default is disabled because age alone is not evidence that deleting a
|
|
2723
|
+
* complete result will reduce end-to-end token use.
|
|
2586
2724
|
*
|
|
2587
2725
|
* Design:
|
|
2588
2726
|
* - Tracks "turns" (role switches from assistant to user)
|
|
@@ -2770,10 +2908,10 @@ declare function createExtensionStore(namespaceId: string): KodaXExtensionStore;
|
|
|
2770
2908
|
*
|
|
2771
2909
|
* Capability inventory: docs/features/v0.7.29-capability-inventory.md#cap-059-compaction-trigger-decision
|
|
2772
2910
|
*
|
|
2773
|
-
* Class 1 (substrate). Per-turn predicate read
|
|
2774
|
-
*
|
|
2775
|
-
*
|
|
2776
|
-
*
|
|
2911
|
+
* Class 1 (substrate). Per-turn predicate read before the provider stream
|
|
2912
|
+
* call. The default policy compares the final physical request, provider
|
|
2913
|
+
* output reserve, and shared safety margin against the model window. A
|
|
2914
|
+
* trigger below 100 remains an explicit early-compaction opt-in.
|
|
2777
2915
|
*
|
|
2778
2916
|
* The wrapper preserves the historical short-circuit `compactionConfig.enabled`
|
|
2779
2917
|
* gate from `agent.ts` even though the underlying `needsCompaction`
|
|
@@ -2799,11 +2937,12 @@ interface ShouldCompactInput {
|
|
|
2799
2937
|
readonly compactionConfig: CompactionConfig;
|
|
2800
2938
|
readonly contextWindow: number;
|
|
2801
2939
|
readonly currentTokens: number;
|
|
2940
|
+
readonly reservedResponseTokens?: number;
|
|
2802
2941
|
}
|
|
2803
2942
|
/**
|
|
2804
|
-
* Returns `true` iff the
|
|
2805
|
-
*
|
|
2806
|
-
*
|
|
2943
|
+
* Returns `true` iff the complete request exceeds physical capacity or an
|
|
2944
|
+
* explicitly configured early trigger. `currentTokens` must already include
|
|
2945
|
+
* the final system/tool/framing overhead selected for this provider turn.
|
|
2807
2946
|
*/
|
|
2808
2947
|
declare function shouldCompact(input: ShouldCompactInput): boolean;
|
|
2809
2948
|
|
|
@@ -3073,5 +3212,5 @@ interface ReferenceAgentExecutorFactoryOptions {
|
|
|
3073
3212
|
}
|
|
3074
3213
|
declare function createReferenceAgentExecutorFactory(options: ReferenceAgentExecutorFactoryOptions): AgentExecutorFactory;
|
|
3075
3214
|
|
|
3076
|
-
export { Agent, AgentCancellationUncertainError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentManifest, AgentMessage, AgentStartUncertainError, CAPABILITY_CACHE_FILENAME, COMPACTION_SUMMARY_PREFIX, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, ChildTaskRegistry, CompactionConfig, CompactionDetails, CompactionResult, ConsoleTracingProcessor, CreateAgentExecutorPlaneOptions, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DiscoveredInstance, ExternalAgentProtocol, FileExtensionStore, 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, KodaXMessage, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXTaskResultMetadata, KodaXTaskResultSource, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, ManifestPatch, MemoryActionProposal, MemoryApplyResult, MemoryBodySnapshot, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessageMode, 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, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, SkillSource, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, addTracingProcessor, appendGoalEntry, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, compact, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueChildTaskNotification, enqueueWithArtifacts, evidenceTrail, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, routeMessage, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
|
|
3077
|
-
export type { AdmissionMetricsSnapshot, ApproveStoredLearningProposalOptions, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, EnqueueChildTaskNotificationInput, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, HandoffSignal, IdleYieldSnapshot, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningIntakeRecordResult, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RouteMessageOptions, RouteMessageResult, 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, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
|
|
3215
|
+
export { Agent, AgentCancellationUncertainError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentManifest, AgentMessage, AgentStartUncertainError, CAPABILITY_CACHE_FILENAME, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, ChildTaskRegistry, CompactionConfig, CompactionDetails, CompactionResult, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DiscoveredInstance, ExternalAgentProtocol, FileExtensionStore, 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, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXTaskResultMetadata, KodaXTaskResultSource, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessageMode, 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, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, SkillSource, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, compact, completeEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueChildTaskNotification, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, persistImageAsBlock, persistPendingEpisodeReview, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, routeMessage, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
|
|
3216
|
+
export type { AdmissionMetricsSnapshot, ApproveStoredLearningProposalOptions, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueChildTaskNotificationInput, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, HandoffSignal, IdleYieldSnapshot, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningIntakeRecordResult, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RouteMessageOptions, RouteMessageResult, 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, 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 Do,$a as Dr,$b as Ae,$c as Bf,$d as Bm,A as ro,Aa as er,Ab as ee,Ac as $e,Ad as om,Ae as op,B as eo,Ba as fr,Bb as fe,Bc as of,Bd as rm,Be as rp,C as fo,Ca as mr,Cb as me,Cc as rf,Cd as em,Ce as ep,D as mo,Da as pr,Db as pe,Dc as ef,Dd as fm,De as fp,E as po,Ea as tr,Eb as te,Ec as ff,Ed as mm,Ee as mp,F as to,Fa as xr,Fb as xe,Fc as mf,Fd as pm,Fe as pp,G as xo,Ga as ar,Gb as ae,Gc as pf,Gd as tm,Ge as tp,H as ao,Ha as br,Hb as be,Hc as tf,Hd as xm,He as xp,I as bo,Ia as cr,Ib as ce,Ic as xf,Id as am,Ie as ap,J as co,Ja as dr,Jb as de,Jc as af,Jd as bm,K as go,Ka as gr,Kb as ge,Kc as bf,Kd as cm,L as ho,La as hr,Lb as he,Lc as cf,Ld as dm,M as io,Ma as ir,Mb as ie,Mc as df,Md as gm,N as jo,Na as jr,Nb as je,Nc as gf,Nd as hm,O as ko,Oa as kr,Ob as ke,Oc as hf,Od as im,P as lo,Pa as lr,Pb as le,Pc as jf,Pd as jm,Q as no,Qa as nr,Qc as kf,Qd as km,R as qo,Ra as qr,Rc as lf,Rd as lm,S as so,Sa as sr,Sc as nf,Sd as nm,T as uo,Ta as ur,Tb as ne,Tc as qf,Td as qm,U as vo,Ua as vr,Ub as qe,Uc as sf,Ud as sm,V as wo,Va as wr,Vb as se,Vc as uf,Vd as um,W as yo,Wa as yr,Wb as ue,Wc as vf,Wd as vm,X as zo,Xa as zr,Xb as ve,Xc as wf,Xd as wm,Y as Ao,Ya as Ar,Yb as we,Yc as yf,Yd as ym,Z as Bo,Za as Br,Zb as ye,Zc as zf,Zd as zm,_ as Co,_a as Cr,_b as ze,_c as Af,_d as Am,a as D,aa as Eo,ab as Er,ac as Be,ad as Cf,ae as Cm,b as E,ba as Fo,bb as Fr,bc as Ce,bd as Df,be as Dm,c as F,ca as Go,cb as Gr,cc as De,cd as Ef,ce as Em,d as G,da as Ho,db as Hr,dc as Ee,dd as Ff,de as Fm,e as H,ea as Io,eb as Ir,ec as Fe,ed as Gf,ee as Gm,f as I,fa as Jo,fb as Jr,fc as Ge,fd as Hf,fe as Hm,g as J,ga as Ko,gb as Kr,gc as He,gd as If,ge as Im,h as K,ha as Lo,hb as Lr,hc as Ie,hd as Jf,he as Jm,i as L,ia as Mo,ib as Mr,ic as Je,id as Kf,ie as Km,j as M,ja as No,jb as Nr,jc as Ke,jd as Lf,je as Lm,k as N,ka as Oo,kb as Or,kc as Le,kd as Mf,ke as Mm,l as O,la as Po,lb as Pr,lc as Me,ld as Nf,le as Nm,m as P,ma as Qo,mb as Qr,mc as Ne,md as Of,me as Om,n as Q,na as Ro,nb as Rr,nc as Oe,nd as Pf,ne as Pm,o as R,oa as So,ob as Sr,oc as Pe,od as Qf,oe as Qm,p as S,pa as To,pb as Tr,pc as Qe,pd as Rf,pe as Rm,q as T,qa as Uo,qb as Ur,qc as Re,qd as Sf,qe as Sm,r as U,ra as Vo,rb as Vr,rc as Se,rd as Tf,re as Tm,s as V,sa as Wo,sb as Wr,sc as Te,sd as Uf,se as Um,t as W,ta as Xo,tb as Xr,tc as Ue,td as Vf,te as Vm,u as X,ua as Yo,ub as Yr,uc as Ve,ud as Wf,ue as Wm,v as Y,va as Zo,vb as Zr,vc as We,vd as Xf,ve as Xm,w as Z,wa as _o,wb as _r,wc as Xe,wd as Yf,we as Ym,x as _,xa as $o,xb as $r,xc as Ye,xd as Zf,xe as Zm,y as $,ya as or,yb as oe,yc as Ze,yd as _f,ye as _m,z as oo,za as rr,zb as re,zc as _e,zd as $f,ze as $m}from"./chunks/chunk-NVDK375I.js";import{A as u,B as v,C as w,D as y,E as z,F as A,G as B,H as C,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,v as k,w as l,x as n,y as q,z as s}from"./chunks/chunk-PZTG2C33.js";import"./chunks/chunk-ONUPGMER.js";export{vr as ASK_USER_BACK_SIGNAL,wr as ASK_USER_CUSTOM_INPUT_SIGNAL,tp as AgentCancellationUncertainError,pp as AgentStartUncertainError,fr as CAPABILITY_CACHE_FILENAME,km as COMPACTION_SUMMARY_PREFIX,Zo as CORE_INVARIANTS,po as ConsoleTracingProcessor,Cm as DEFAULT_CONTEXT_WINDOW,Jr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,sm as DEFAULT_MICROCOMPACTION_CONFIG,Mf as DEFAULT_POST_COMPACT_CONFIG,dm as DEFAULT_SUMMARY_PROMPT,qo as DEFAULT_SYSTEM_CAP,gm as DEFAULT_UPDATE_SUMMARY_PROMPT,V as DefaultSummaryCompaction,ym as FileExtensionStore,to as FileTracingProcessor,Ho as GuardrailBlockedError,Io as GuardrailEscalateError,cr as HARDENED_ENV_VARS,dr as HARDENING_OPT_OUT_ENV,r as ImageResizeError,zo as InvariantSession,L as KODAX_API_MIN_INTERVAL,E as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,F as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,I as KODAX_MAX_INCOMPLETE_RETRIES,J as KODAX_MAX_MAXTOKENS_RETRIES,G as KODAX_MAX_RETRIES,D as KODAX_MAX_TOKENS,H as KODAX_RETRY_BASE_DELAY,K as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,Ff as LINEAGE_ENTRY_TYPES,Hf as LineageCompaction,Gf as LineageExtension,x as MAX_DIMENSION,ce as MAX_ENTRYPOINT_BYTES,be as MAX_ENTRYPOINT_LINES,Ve as MAX_SKILL_MD_BYTES,We as MAX_SKILL_SUPPORT_FILE_BYTES,Bo as MAX_TOOL_LOOP_ITERATIONS,jf as McpAuthRequiredError,Bf as McpCapabilityProvider,hf as McpExpiredSessionError,Cf as McpManager,Af as McpServerRuntime,Re as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,Lf as POST_COMPACT_MAX_TOKENS_PER_FILE,Kf as POST_COMPACT_TOKEN_BUDGET,M as PROMISE_PATTERN,jm as PROTECTED_TOOL_NAMES,Dr as QueuedInputArtifactError,Uo as Runner,He as SkillExecutor,De as SkillRegistry,W as SpanImpl,a as TARGET_RAW_SIZE_BYTES,fo as Tracer,Ae as VariableResolver,Sm as WORKFLOW_CAPSULE_API_VERSION,Qm as WORKFLOW_CAPSULE_FORMAT,Rm as WORKFLOW_CAPSULE_VERSION,Im as WORKFLOW_PATTERN_IDS,Xm as WorkflowAbortError,Zm as WorkflowBudgetError,Em as WorkflowEventRecorder,Ym as WorkflowLimitError,Mm as WorkflowScriptExecutionError,_m as WorkflowTaskFailedError,y as YIELD_TOOL_NAMES,oo as _emitSpanEnd,$ as _emitSpanStart,ro as _emitTraceEnd,_ as _getRegisteredProcessors,lo as _resetAdmissionMetrics,yo as _resetAdmittedAgentBindings,ho as _resetInvariantRegistry,w as _resetMessageQueueForTests,So as _resetPresetDispatchers,Y as addTracingProcessor,mm as appendGoalEntry,Vf as appendSessionLineageLabel,Xf as applyLineageTruncation,xo as applyManifestPatch,gr as applyProcessHardening,Wf as applySessionCompaction,Ye as applySkillLearningProposal,Ze as approveStoredLearningProposal,rm as archiveOldIslands,zr as asSingleSelection,Lm as assertRestrictedWorkflowQuality,Ur as bootstrapTeamMode,Fo as buildAssistantMessageFromLlmResult,hm as buildCompactionPromptSnapshot,Pf as buildFileContentMessages,zf as buildInitializeCapabilities,Qr as buildOtherInstancesPromptBlock,Nf as buildPostCompactAttachments,wm as buildRecoverySeed,$f as buildSessionTree,To as buildSystemPrompt,Go as buildToolResultMessage,Wm as buildWorkflowCapsuleIntent,Te as canMarkCreatedByAgent,Wr as cleanupIncompleteToolCalls,ur as cleanupRegisteredManagedChildren,ar as clearCapabilityCache,je as clearPluginSkillPaths,Jo as collectGuardrails,qm as compact,Ir as composeIdleYieldUserMessage,ao as composePatches,pf as computeSkillConsumerImpact,om as countActiveLineageMessages,Fr as countLastAssistantToolCalls,O as countTokens,S as createAgent,xp as createAgentExecutorPlane,Ie as createExecutor,zm as createExtensionStore,p as createFileArtifactFromPath,T as createHandoff,m as createImageArtifactFromPath,U as createInMemorySession,Ao as createInvariantSessionForAgent,_r as createLlmJudgedStopHook,af as createMcpCapabilityId,Df as createMcpManager,Ef as createMcpTestServerFixture,kf as createMcpTransport,mp as createMemoryAgentExecutorPlaneStore,Qe as createMemoryControlPlane,ap as createReferenceAgentExecutorFactory,Be as createResolver,Pm as createRestrictedWorkflowModule,Qf as createSessionLineage,Or as createStateWriter,X as createTrace,t as createVideoArtifactFromPath,Um as createWorkflowCapsule,Vm as createWorkflowModuleFromCapsule,Hm as createWorkflowProcessTracker,ep as createWorkflowRunManager,op as createWorkflowRuntime,Ue as decideSkillGovernance,xf as defaultMcpCacheDir,mo as defaultTracer,Oo as detectHandoffSignal,Gr as detectIdleYield,so as detectInstructionsInjection,sf as discoverAuthorizationServerMetadata,Pr as discoverInstances,uf as discoverOAuthEndpoints,qf as discoverProtectedResourceMetadata,ve as discoverSkills,ye as discoverSkillsWithMonorepo,Xr as editDistance,Qo as emitHandoffSpan,Q as emitKodaXDiagnostic,B as enqueueChildTaskNotification,C as enqueueWithArtifacts,N as estimateTokens,Wo as evidenceTrail,Eo as executeRunnerToolCall,Je as executeSkill,Ke as expandSkillForLLM,am as extractArtifactLedger,Vo as extractAssistantTextFromMessage,tm as extractFileOps,nf as extractInsufficientScope,lf as extractResourceMetadataUrl,Jf as extractTitleFromMessages,Xo as finalOwner,Yr as findFuzzyToolMatch,Yf as findPreviousUserEntryId,_f as forkSessionLineage,R as formatKodaXDiagnostic,Le as formatSkillActivationMessage,If as generateSessionId,im as generateSummary,Sr as getActiveTeamModeWriter,Br as getActiveUserInteraction,ko as getAdmissionMetricsSnapshot,wo as getAdmittedAgentBindings,or as getAgentConfigHome,rr as getAgentConfigPath,er as getAppDataDir,tr as getCachedRejectedEfforts,mr as getCapabilityCacheFile,ke as getDefaultSkillPaths,fp as getDefaultWorkflowRunManager,co as getInvariant,gf as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,we as getNestedSkillPaths,Rf as getSessionLineagePath,Sf as getSessionMessagesFromLineage,le as getSkillPathsFlat,Ee as getSkillRegistry,Bm as gracefulCompactDegradation,Yo as handoffLegality,oe as hashCwd,e as inferImageMediaType,f as inferVideoMediaType,Fe as initializeSkillRegistry,Of as injectPostCompactAttachments,Zr as invokeLlmJudge,no as isAdmissionDebugEnabled,yr as isAskUserCustomInputAnswer,me as isAutoManagedMemoryFile,ir as isChildProcessExited,lm as isEmptyLikeSummary,Fm as isFinalWorkflowProcessStatus,pm as isGoalEntry,Er as isIdleYieldEnabled,Co as isRunnableTool,Do as isRunnerLlmResult,nr as killChildProcessTree,qr as killChildProcessTreeSync,kr as killPidTree,lr as killPidTreeSync,Km as lintRestrictedWorkflowSource,ie as listPluginSkillPaths,go as listRegisteredInvariants,pr as loadCapabilityCache,se as loadFullSkill,ue as loadSkillFileContent,qe as loadSkillMetadata,yf as loadValidToken,A as maybeDrainMidTurn,bm as mergeArtifactLedger,xm as mergeFileOps,um as microcompact,z as midTurnDrainPriority,nm as needsCompaction,Gm as normalizeHostMetadata,bf as normalizeMcpCapabilityId,b as normalizePastedImage,vm as normalizeRecoveryPrompt,$m as normalizeWorkflowLimits,ze as parseArguments,cf as parseMcpCapabilityId,xe as parseMemoryFile,te as parseMemoryType,pe as parseMemoryTypeFromFilename,ae as parseScalarFields,ne as parseSkillMarkdown,wf as performOAuthLogin,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,em as readLatestGoalFromBranch,fm as readLatestGoalState,Me as readLearningProposalStore,ff as readSkillTrustLedger,rf as readSkillUsageLedger,tf as recordCompletedTurnLearning,_e as recordProceduralLearning,xr as recordRejectedEffort,ef as recordSkillUsage,Cr as registerChildTask,_o as registerCoreInvariants,bo as registerInvariant,sr as registerManagedChildProcess,vf as registerOAuthClient,ge as registerPluginSkillPath,Ro as registerPresetDispatcher,Po as replaceSystemMessage,Nr as requestTaskStop,br as resetCapabilityCacheMemoForTesting,Ge as resetSkillRegistry,Dm as resolveContextWindow,jo as resolveEffectiveInvariants,Oe as resolveLearningProposalStore,fe as resolveMemoryEntrypoint,ee as resolveMemoryRoot,io as resolveRequiredInvariants,Tf as resolveSessionLineageTarget,Ce as resolveSkillContent,Xe as resolveSkillSnapshotLocation,of as resolveSkillTrustLedger,$e as resolveSkillUsageLedger,Zf as rewindSessionLineage,Mr as routeMessage,uo as runAdmissionAudit,Lr as runFanOut,Ko as runInputGuardrails,Lo as runOutputGuardrails,Om as runRestrictedWorkflowScript,No as runToolAfterGuardrails,Mo as runToolBeforeGuardrails,Kr as runWithIdleYield,rp as runWorkflow,$r as sanitizeProjectKey,df as searchMcpCatalog,cm as serializeConversation,Rr as setActiveTeamModeWriter,Ar as setActiveUserInteraction,vo as setAdmittedAgentBindings,$o as setAgentConfigHome,P as setKodaXDiagnosticSink,Uf as setSessionLineageActiveEntry,Z as setTracingProcessors,Am as shouldCompact,eo as shutdownTracing,hr as stripHardenedEnvVars,Se as triageProceduralLearning,de as truncateEntrypointContent,re as tryGitRemote,he as unregisterPluginSkillPath,Tr as updateActiveTeamMode,Pe as updateLearningProposalStatus,mf as updateSkillTrustLedger,Ne as upsertLearningProposal,Vr as validateAndFixToolHistory,s as validateInputArtifactsForModel,Nm as validateRestrictedWorkflowSource,Tm as validateWorkflowCapsule,Jm as validateWorkflowScriptManifest,jr as waitForChildProcessExit,Hr as waitForWakeEvent};
|
|
2
|
+
import{$ as Go,$a as Kr,$b as Mf,$c as Mm,A as mo,Aa as pr,Ab as cf,Ac as dm,Ad as dp,B as po,Ba as tr,Bb as df,Bc as gm,Bd as gp,C as to,Ca as dr,Cb as gf,Cc as hm,Cd as hp,D as xo,Da as gr,Db as hf,Dc as im,Dd as ip,E as ao,Ea as hr,Eb as jf,Ec as jm,Ed as jp,F as bo,Fa as ir,Fb as kf,Fc as km,Fd as kp,G as co,Ga as jr,Gb as lf,Gc as lm,Gd as lp,H as go,Ha as kr,Hb as nf,Hc as nm,Hd as np,I as ho,Ia as lr,Ib as qf,Ic as qm,Id as qp,J as io,Ja as nr,Jb as sf,Jc as sm,Jd as sp,K as jo,Ka as qr,Kb as uf,Kc as um,Kd as up,L as ko,La as sr,Lb as vf,Lc as vm,Ld as vp,M as lo,Ma as ur,Mb as wf,Mc as wm,Md as wp,N as no,Na as vr,Nb as yf,Nc as ym,Nd as yp,O as qo,Oa as wr,Ob as zf,Oc as zm,Od as zp,P as so,Pa as yr,Pb as Af,Pc as Am,Pd as Ap,Q as uo,Qa as zr,Qb as Bf,Qc as Bm,Qd as Bp,R as vo,Ra as Ar,Rb as Cf,Rc as Cm,Rd as Cp,S as wo,Sa as Br,Sb as Df,Sc as Dm,Sd as Dp,T as yo,Ta as Cr,Tb as Ef,Tc as Em,U as zo,Ua as Dr,Ub as Ff,Uc as Fm,V as Ao,Va as Er,Vb as Gf,Vc as Gm,W as Bo,Wa as Fr,Wb as Hf,Wc as Hm,X as Co,Xa as Gr,Xb as If,Xc as Im,Y as Do,Ya as Hr,Yb as Jf,Yc as Jm,Z as Eo,Za as Ir,Zb as Kf,Zc as Km,_ as Fo,_a as Jr,_b as Lf,_c as Lm,a as D,aa as Ho,ab as Lr,ac as Nf,ad as Nm,b as E,ba as Io,bb as Mr,bc as Of,bd as Om,c as F,ca as Jo,cb as Nr,cc as Pf,cd as Pm,d as G,da as Ko,db as Or,dc as Qf,dd as Qm,e as H,ea as Lo,eb as Pr,ec as Rf,ed as Rm,f as I,fa as Mo,fb as Qr,fc as Sf,fd as Sm,g as J,ga as No,gb as Rr,gc as Tf,gd as Tm,h as K,ha as Oo,hb as Sr,hc as Uf,hd as Um,i as L,ia as Po,ib as Tr,ic as Vf,id as Vm,j as M,ja as Qo,jb as Ur,jc as Wf,jd as Wm,k as N,ka as Ro,kb as Vr,kc as Xf,kd as Xm,l as O,la as So,lb as Wr,lc as Yf,ld as Ym,m as P,ma as To,mb as Xr,mc as Zf,md as Zm,n as Q,na as Uo,nb as Yr,nc as _f,nd as _m,o as R,oa as Vo,ob as Zr,oc as $f,od as $m,p as S,pa as Wo,pb as _r,pc as om,pd as op,q as T,qa as Xo,qb as $r,qc as rm,qd as rp,r as U,ra as Yo,rb as oe,rc as em,rd as ep,s as Y,sa as Zo,sb as re,sc as fm,sd as fp,t as Z,ta as _o,tb as ee,tc as mm,td as mp,u as _,ua as $o,ub as fe,uc as pm,ud as pp,v as $,va as or,vb as me,vc as tm,vd as tp,w as oo,wa as rr,wb as pe,wc as xm,wd as xp,x as ro,xa as er,xb as te,xc as am,xd as ap,y as eo,ya as fr,yb as af,yc as bm,yd as bp,z as fo,za as mr,zb as bf,zc as cm,zd as cp}from"./chunks/chunk-VYKFM3TB.js";import{$ as Ye,A as Ae,B as Be,C as Ce,D as De,E as Ee,I as Fe,J as Ge,K as He,L as Ie,M as Je,N as Ke,O as Le,P as Me,Q as Ne,R as Oe,S as Pe,T as Qe,U as Re,V as Se,W as Te,X as Ue,Y as Ve,Z as We,_ as Xe,a as V,aa as Ze,b as W,ba as _e,c as X,ca as $e,d as xr,da as of,e as ar,ea as rf,f as br,fa as ef,g as cr,ga as ff,h as xe,ha as mf,i as ae,ia as pf,j as be,ja as tf,k as ce,ka as xf,l as de,m as ge,n as he,o as ie,p as je,q as ke,r as le,s as ne,t as qe,u as se,v as ue,w as ve,x as we,y as ye,z as ze}from"./chunks/chunk-AWMTNUDS.js";import{A,B,C,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"./chunks/chunk-F7C7J6IM.js";import"./chunks/chunk-NGHQIGVW.js";import"./chunks/chunk-ONUPGMER.js";export{Er as ASK_USER_BACK_SIGNAL,Fr as ASK_USER_CUSTOM_INPUT_SIGNAL,Bp as AgentCancellationUncertainError,Ap as AgentStartUncertainError,dr as CAPABILITY_CACHE_FILENAME,Lm as COMPACTION_SUMMARY_PREFIX,P as CONTEXT_SAFETY_FLOOR_TOKENS,Q as CONTEXT_SAFETY_RATIO,pr as CORE_INVARIANTS,go as ConsoleTracingProcessor,R as ContextCapacityError,Xm as DEFAULT_CONTEXT_WINDOW,Rr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,Pm as DEFAULT_MICROCOMPACTION_CONFIG,pm as DEFAULT_POST_COMPACT_CONFIG,Gm as DEFAULT_SUMMARY_PROMPT,zo as DEFAULT_SYSTEM_CAP,Hm as DEFAULT_UPDATE_SUMMARY_PROMPT,$ as DefaultSummaryCompaction,Tm as FileExtensionStore,ho as FileTracingProcessor,No as GuardrailBlockedError,Oo as GuardrailEscalateError,nr as HARDENED_ENV_VARS,qr as HARDENING_OPT_OUT_ENV,r as ImageResizeError,Fo as InvariantSession,L as KODAX_API_MIN_INTERVAL,E as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,F as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,I as KODAX_MAX_INCOMPLETE_RETRIES,J as KODAX_MAX_MAXTOKENS_RETRIES,G as KODAX_MAX_RETRIES,D as KODAX_MAX_TOKENS,H as KODAX_RETRY_BASE_DELAY,K as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,Xf as LINEAGE_ENTRY_TYPES,Zf as LineageCompaction,Yf as LineageExtension,x as MAX_DIMENSION,we as MAX_ENTRYPOINT_BYTES,ve as MAX_ENTRYPOINT_LINES,df as MAX_SKILL_MD_BYTES,gf as MAX_SKILL_SUPPORT_FILE_BYTES,Ho as MAX_TOOL_LOOP_ITERATIONS,ce as MEMORY_POLICY_VERSION,Hf as McpAuthRequiredError,Tf as McpCapabilityProvider,Gf as McpExpiredSessionError,Uf as McpManager,Sf as McpServerRuntime,ef as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,mm as POST_COMPACT_MAX_TOKENS_PER_FILE,fm as POST_COMPACT_TOKEN_BUDGET,M as PROMISE_PATTERN,Km as PROTECTED_TOOL_NAMES,Lr as QueuedInputArtifactError,or as Runner,Ue as SkillExecutor,Qe as SkillRegistry,oo as SpanImpl,a as TARGET_RAW_SIZE_BYTES,bo as Tracer,Ne as VariableResolver,dp as WORKFLOW_CAPSULE_API_VERSION,bp as WORKFLOW_CAPSULE_FORMAT,cp as WORKFLOW_CAPSULE_VERSION,rp as WORKFLOW_PATTERN_IDS,kp as WorkflowAbortError,np as WorkflowBudgetError,Zm as WorkflowEventRecorder,lp as WorkflowLimitError,pp as WorkflowScriptExecutionError,qp as WorkflowTaskFailedError,y as YIELD_TOOL_NAMES,to as _emitSpanEnd,po as _emitSpanStart,xo as _emitTraceEnd,mo as _getRegisteredProcessors,wo as _resetAdmissionMetrics,Eo as _resetAdmittedAgentBindings,qo as _resetInvariantRegistry,w as _resetMessageQueueForTests,_o as _resetPresetDispatchers,eo as addTracingProcessor,zm as appendGoalEntry,om as appendMemoryClientNotice,_f as appendMemoryOutcomeDigest,$f as appendMemoryReviewReceipt,im as appendSessionLineageLabel,km as applyLineageTruncation,io as applyManifestPatch,sr as applyProcessHardening,jm as applySessionCompaction,jf as applySkillLearningProposal,kf as approveStoredLearningProposal,vm as archiveOldIslands,Hr as asSingleSelection,mp as assertRestrictedWorkflowQuality,Xo as attachRunnerRecoveryTranscript,oe as bootstrapTeamMode,Lo as buildAssistantMessageFromLlmResult,Im as buildCompactionPromptSnapshot,am as buildFileContentMessages,Rf as buildInitializeCapabilities,Yr as buildOtherInstancesPromptBlock,tm as buildPostCompactAttachments,Sm as buildRecoverySeed,sm as buildSessionTree,$o as buildSystemPrompt,Mo as buildToolResultMessage,jp as buildWorkflowCapsuleIntent,S as calculateContextSafetyMargin,U as calculateMaxContextInputTokens,bf as canMarkCreatedByAgent,ee as cleanupIncompleteToolCalls,Dr as cleanupRegisteredManagedChildren,kr as clearCapabilityCache,Ce as clearPluginSkillPaths,Po as collectGuardrails,Om as compact,pf as completeEpisodeReview,Qr as composeIdleYieldUserMessage,jo as composePatches,yf as computeSkillConsumerImpact,um as countActiveLineageMessages,Nr as countLastAssistantToolCalls,O as countTokens,Y as createAgent,Cp as createAgentExecutorPlane,Ve as createExecutor,Um as createExtensionStore,p as createFileArtifactFromPath,Z as createHandoff,m as createImageArtifactFromPath,_ as createInMemorySession,Go as createInvariantSessionForAgent,te as createLlmJudgedStopHook,Bf as createMcpCapabilityId,Vf as createMcpManager,Wf as createMcpTestServerFixture,If as createMcpTransport,zp as createMemoryAgentExecutorPlaneStore,rf as createMemoryControlPlane,Dp as createReferenceAgentExecutorFactory,Oe as createResolver,ap as createRestrictedWorkflowModule,bm as createSessionLineage,Wr as createStateWriter,ro as createTrace,t as createVideoArtifactFromPath,hp as createWorkflowCapsule,ip as createWorkflowModuleFromCapsule,op as createWorkflowProcessTracker,wp as createWorkflowRunManager,up as createWorkflowRuntime,cf as decideSkillGovernance,Af as defaultMcpCacheDir,co as defaultTracer,Uo as detectHandoffSignal,Or as detectIdleYield,Ao as detectInstructionsInjection,Mf as discoverAuthorizationServerMetadata,Xr as discoverInstances,Nf as discoverOAuthEndpoints,Lf as discoverProtectedResourceMetadata,Je as discoverSkills,Le as discoverSkillsWithMonorepo,xf as drainPendingEpisodeReviews,fe as editDistance,Wo as emitHandoffSpan,W as emitKodaXDiagnostic,B as enqueueChildTaskNotification,C as enqueueWithArtifacts,N as estimateTokens,er as evidenceTrail,T as exceedsContextCapacity,Ko as executeRunnerToolCall,We as executeSkill,Xe as expandSkillForLLM,Dm as extractArtifactLedger,rr as extractAssistantTextFromMessage,Bm as extractFileOps,Kf as extractInsufficientScope,Jf as extractResourceMetadataUrl,em as extractTitleFromMessages,fr as finalOwner,me as findFuzzyToolMatch,lm as findPreviousUserEntryId,qm as forkSessionLineage,X as formatKodaXDiagnostic,Ye as formatSkillActivationMessage,rm as generateSessionId,Jm as generateSummary,_r as getActiveTeamModeWriter,Jr as getActiveUserInteraction,vo as getAdmissionMetricsSnapshot,Do as getAdmittedAgentBindings,ar as getAgentConfigHome,br as getAgentConfigPath,cr as getAppDataDir,ir as getCachedRejectedEfforts,gr as getCapabilityCacheFile,De as getDefaultSkillPaths,yp as getDefaultWorkflowRunManager,lo as getInvariant,Ff as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,Ke as getNestedSkillPaths,cm as getSessionLineagePath,dm as getSessionMessagesFromLineage,Ee as getSkillPathsFlat,Re as getSkillRegistry,Wm as gracefulCompactDegradation,mr as handoffLegality,ge as hashCwd,ae as hashMemoryIdentityComponent,e as inferImageMediaType,f as inferVideoMediaType,Se as initializeSkillRegistry,xm as injectPostCompactAttachments,pe as invokeLlmJudge,yo as isAdmissionDebugEnabled,Gr as isAskUserCustomInputAnswer,le as isAutoManagedMemoryFile,vr as isChildProcessExited,Mm as isEmptyLikeSummary,_m as isFinalWorkflowProcessStatus,Am as isGoalEntry,Mr as isIdleYieldEnabled,Io as isRunnableTool,Jo as isRunnerLlmResult,Ar as killChildProcessTree,Br as killChildProcessTreeSync,yr as killPidTree,zr as killPidTreeSync,fp as lintRestrictedWorkflowSource,mf as listPendingEpisodeReviews,Be as listPluginSkillPaths,no as listRegisteredInvariants,hr as loadCapabilityCache,He as loadFullSkill,Ie as loadSkillFileContent,Ge as loadSkillMetadata,Qf as loadValidToken,xe as matchesMemoryApplicability,A as maybeDrainMidTurn,be as memoryApplicabilityFingerprint,Em as mergeArtifactLedger,Cm as mergeFileOps,Qm as microcompact,z as midTurnDrainPriority,Nm as needsCompaction,$m as normalizeHostMetadata,Cf as normalizeMcpCapabilityId,b as normalizePastedImage,Rm as normalizeRecoveryPrompt,sp as normalizeWorkflowLimits,Me as parseArguments,Df as parseMcpCapabilityId,se as parseMemoryFile,qe as parseMemoryType,ne as parseMemoryTypeFromFilename,ue as parseScalarFields,Fe as parseSkillMarkdown,Pf as performOAuthLogin,i as persistImageAsBlock,ff as persistPendingEpisodeReview,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,wm as readLatestGoalFromBranch,ym as readLatestGoalState,Ze as readLearningProposalStore,Yo as readRunnerRecoveryTranscript,vf as readSkillTrustLedger,sf as readSkillUsageLedger,zf as recordCompletedTurnLearning,lf as recordProceduralLearning,jr as recordRejectedEffort,uf as recordSkillUsage,Kr as registerChildTask,tr as registerCoreInvariants,ko as registerInvariant,Cr as registerManagedChildProcess,Of as registerOAuthClient,ze as registerPluginSkillPath,Zo as registerPresetDispatcher,Vo as replaceSystemMessage,Vr as requestTaskStop,lr as resetCapabilityCacheMemoForTesting,Te as resetSkillRegistry,Ym as resolveContextWindow,uo as resolveEffectiveInvariants,$e as resolveLearningProposalStore,je as resolveMemoryEntrypoint,ie as resolveMemoryRoot,so as resolveRequiredInvariants,ke as resolveScopedMemoryRoot,gm as resolveSessionLineageTarget,Pe as resolveSkillContent,hf as resolveSkillSnapshotLocation,qf as resolveSkillTrustLedger,nf as resolveSkillUsageLedger,tf as rewindPendingEpisodeReviews,nm as rewindSessionLineage,Ur as routeMessage,Bo as runAdmissionAudit,Tr as runFanOut,Qo as runInputGuardrails,Ro as runOutputGuardrails,xp as runRestrictedWorkflowScript,To as runToolAfterGuardrails,So as runToolBeforeGuardrails,Sr as runWithIdleYield,vp as runWorkflow,de as sanitizeProjectKey,Ef as searchMcpCatalog,Fm as serializeConversation,Zr as setActiveTeamModeWriter,Ir as setActiveUserInteraction,Co as setAdmittedAgentBindings,xr as setAgentConfigHome,V as setKodaXDiagnosticSink,hm as setSessionLineageActiveEntry,fo as setTracingProcessors,Vm as shouldCompact,ao as shutdownTracing,ur as stripHardenedEnvVars,af as triageProceduralLearning,ye as truncateEntrypointContent,he as tryGitRemote,Ae as unregisterPluginSkillPath,$r as updateActiveTeamMode,of as updateLearningProposalStatus,wf as updateSkillTrustLedger,_e as upsertLearningProposal,re as validateAndFixToolHistory,s as validateInputArtifactsForModel,tp as validateRestrictedWorkflowSource,gp as validateWorkflowCapsule,ep as validateWorkflowScriptManifest,wr as waitForChildProcessExit,Pr as waitForWakeEvent};
|