@kodax-ai/kodax 0.7.67 → 0.7.68
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 +72 -0
- package/README.md +11 -6
- package/README_CN.md +12 -8
- package/dist/chunks/agent-DATNZOBK.js +2 -0
- package/dist/chunks/argument-completer-X7MMM7Y6.js +2 -0
- package/dist/chunks/chunk-5GL55MOH.js +36 -0
- package/dist/chunks/chunk-67XJ4YUA.js +703 -0
- package/dist/chunks/{chunk-YH5BTUQO.js → chunk-C4SBXBWH.js} +193 -190
- package/dist/chunks/{chunk-DEICMTHO.js → chunk-CC4BVVE7.js} +1 -1
- package/dist/chunks/{chunk-EN3O2C43.js → chunk-CTHUX5ZH.js} +2 -2
- package/dist/chunks/{chunk-YRBNXFHY.js → chunk-HFM2D5BP.js} +1 -1
- package/dist/chunks/chunk-HLBHSA2B.js +325 -0
- package/dist/chunks/{chunk-O7N22GJ3.js → chunk-K2NCKRVY.js} +16 -14
- package/dist/chunks/{chunk-KBBGDRER.js → chunk-KGAI32VS.js} +2 -2
- package/dist/chunks/{chunk-WCSSXBHR.js → chunk-KIQRCGVR.js} +13 -13
- package/dist/chunks/{chunk-W2XMNYLK.js → chunk-MP52BDK5.js} +12 -12
- package/dist/chunks/chunk-O5OJQFPY.js +307 -0
- package/dist/chunks/chunk-OIELNE6Z.js +56 -0
- package/dist/chunks/chunk-PEGSHZAA.js +5 -0
- package/dist/chunks/chunk-TOGESFRN.js +2 -0
- package/dist/chunks/compaction-config-BXEDHIQP.js +2 -0
- package/dist/chunks/{construction-bootstrap-GLEHQ2KB.js → construction-bootstrap-PYWJHO35.js} +1 -1
- package/dist/chunks/dist-76PJHNSG.js +2 -0
- package/dist/chunks/{dist-4PXB7U22.js → dist-HTDJRAD6.js} +1 -1
- package/dist/chunks/host-UAXIDZ6V.js +2 -0
- package/dist/chunks/run-manager-UCXB4G22.js +2 -0
- package/dist/chunks/utils-S63V5UCM.js +2 -0
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/kodax_cli.js +1199 -1185
- package/dist/runtime-worker.js +1021 -1007
- package/dist/sdk-agent.d.ts +126 -18
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +18 -18
- 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 +6 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-repl.d.ts +15 -15
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +11 -11
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -6
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +12 -12
- package/dist/types-chunks/{base.d-DalIRhbb.d.ts → base.d-C8mXDhLL.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-D57Gt6n8.d.ts → bash-prefix-extractor.d-Dm-T865v.d.ts} +24 -4
- package/dist/types-chunks/{capability-learning.d-BQB0M70w.d.ts → capability-learning.d-BLEmCib0.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-BZmqu_HL.d.ts → capsule.d-CzaamUUv.d.ts} +5 -5
- package/dist/types-chunks/{commands.d-Cg26ud-Y.d.ts → commands.d-DxKjVSNU.d.ts} +4 -4
- package/dist/types-chunks/{guardrail.d-vSaBe64I.d.ts → guardrail.d-CPDfZyJp.d.ts} +3 -3
- package/dist/types-chunks/{guardrail.d-Ds7JHxR1.d.ts → guardrail.d-D7r6zVSR.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-CPBMPDiU.d.ts → public-api.d-BcKbBy1E.d.ts} +6 -7
- package/dist/types-chunks/{resolver.d-CGkfRULj.d.ts → resolver.d-DmBnoilY.d.ts} +2 -2
- package/dist/types-chunks/{run-manager.d-lnwnfyNC.d.ts → run-manager.d-CSj7_kWk.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-ByoMLoUS.d.ts → sdk-session-C6nDgyh8.d.ts} +4 -4
- package/dist/types-chunks/{types.d-Bp4Lm1jv.d.ts → types.d-CO_ZkmOd.d.ts} +6 -1
- package/dist/types-chunks/{types.d-DYv3a1ka.d.ts → types.d-CzscbsG0.d.ts} +4 -4
- package/dist/types-chunks/{types.d-DG9B4SMm.d.ts → types.d-D2frCRaY.d.ts} +138 -8
- package/dist/types-chunks/{types.d-DU9lLkmE.d.ts → types.d-D9FKbAmf.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-DMI-9GTR.d.ts → utils.d-DOXxnOnI.d.ts} +5 -5
- package/docs/SDK_EMBEDDER_GUIDE.md +108 -8
- package/package.json +5 -1
- 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-NVDK375I.js +0 -729
- package/dist/chunks/chunk-QI6SQ2UQ.js +0 -306
- package/dist/chunks/chunk-RS2GAABJ.js +0 -328
- package/dist/chunks/compaction-config-56NO42ZI.js +0 -2
- package/dist/chunks/dist-4UIRSSFS.js +0 -2
- package/dist/chunks/host-DMREFNSO.js +0 -2
- package/dist/chunks/run-manager-P5XMSGZ7.js +0 -2
- package/dist/chunks/utils-JENPFKAE.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as KodaXProviderConfig, k as KodaXMessage, a1 as KodaXToolDefinition, H as KodaXReasoningRequest, y as KodaXProviderStreamOptions, N as KodaXStreamResult, a7 as KodaXVerifyCredentialResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, B as KodaXReasoningCapability, G as KodaXReasoningProfile, n as KodaXNormalizedReasoningRequest, a9 as KodaXWireReasoningEffort } from './types.d-CO_ZkmOd.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Retry-After header parsing — FEATURE_130 (v0.7.36).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { aN as KodaXGoalState, I as AgentMessage,
|
|
2
|
-
import {
|
|
1
|
+
import { aN as KodaXGoalState, I as AgentMessage, cO as StopHookFn, b5 as KodaXSessionLineage, aT as KodaXJsonValue, aH as KodaXExtensionSessionRecord, f as Agent, da as WorkflowIsolation, aI as KodaXExtensionSessionState, aY as KodaXSessionArtifactLedgerEntry, cz as SessionErrorMetadata, bd as KodaXSessionScope, be as KodaXSessionStorage, bE as MemoryContextIdentity, bQ as MemoryPack, aR as KodaXInputArtifact, B as AgentExecutorPlaneBinding, a6 as ChildTaskRegistry, d7 as WorkflowEventCorrelation, ac as CompactionUpdate, dj as WorkflowProcessEvent, d6 as WorkflowEvent, a3 as AskUserQuestionOptions, $ as AskUserAnswer, a1 as AskUserMultiOptions, c2 as MemoryReviewPlan, aV as KodaXMemoryOutcomeDigest, c3 as MemoryReviewRunner, aw as Guardrail, ah as DiscoveredInstance, cS as TaskAbortRegistry } from './types.d-D2frCRaY.js';
|
|
2
|
+
import { a0 as KodaXTokenUsage, k as KodaXMessage, a1 as KodaXToolDefinition, a9 as KodaXWireReasoningEffort, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, Q as KodaXTaskComplexity, L as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, F as KodaXReasoningMode, J as KodaXReviewScale } from './types.d-CO_ZkmOd.js';
|
|
3
3
|
import { d as SkillDynamicContextExecutor } from './types.d-vJExiRje.js';
|
|
4
4
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
5
5
|
import { K as KodaXLlmTimeoutConfig, a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
|
|
6
6
|
import { C as CapabilityKind, b as CapabilityResult } from './capability.d-3C62G8Eq.js';
|
|
7
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
7
|
+
import { K as KodaXBaseProvider } from './base.d-C8mXDhLL.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* FEATURE_192 v0.7.44 Phase C — Goal-tools execution context.
|
|
@@ -910,7 +910,7 @@ declare function buildGoalRuntimeBinding(deps: GoalRuntimeBindingDeps): GoalRunt
|
|
|
910
910
|
* configure / install / troubleshoot KodaX?" questions. Pure data + a
|
|
911
911
|
* deterministic resolver — no RAG, no vector store, no network fetch.
|
|
912
912
|
*/
|
|
913
|
-
type KodaXManualTopicId = 'overview' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'repo-intelligence' | 'sessions' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
913
|
+
type KodaXManualTopicId = 'overview' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'repo-intelligence' | 'sessions' | 'memory' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
914
914
|
/** A pointer to the code/doc the topic is derived from (for traceability). */
|
|
915
915
|
interface KodaXManualSource {
|
|
916
916
|
readonly label: string;
|
|
@@ -1952,6 +1952,17 @@ interface KodaXEvents {
|
|
|
1952
1952
|
exitPlanMode?: (plan: string) => Promise<boolean | 'not-in-plan-mode'>;
|
|
1953
1953
|
/** Semantic memory review plan produced from explicit user feedback. */
|
|
1954
1954
|
onMemoryReview?: (plan: MemoryReviewPlan) => void;
|
|
1955
|
+
onMemoryNotice?: (notice: {
|
|
1956
|
+
readonly episodeId: string;
|
|
1957
|
+
readonly summaries: readonly string[];
|
|
1958
|
+
readonly proposalIds: readonly string[];
|
|
1959
|
+
}) => void;
|
|
1960
|
+
onMemoryOutcomeDigest?: (digest: KodaXMemoryOutcomeDigest) => void;
|
|
1961
|
+
onMemoryReviewReceipt?: (receipt: {
|
|
1962
|
+
readonly reviewKey: string;
|
|
1963
|
+
readonly proposalIds: readonly string[];
|
|
1964
|
+
readonly completedAt: string;
|
|
1965
|
+
}) => void;
|
|
1955
1966
|
}
|
|
1956
1967
|
/**
|
|
1957
1968
|
* Structured event emitted during provider recovery.
|
|
@@ -2536,6 +2547,10 @@ interface KodaXToolVisibilityMeta {
|
|
|
2536
2547
|
*/
|
|
2537
2548
|
type KodaXToolVisibilityPolicy = (tool: KodaXToolVisibilityMeta) => boolean;
|
|
2538
2549
|
interface KodaXContextOptions {
|
|
2550
|
+
/** FEATURE_260 runtime-owned identity used for scoped memory reads. */
|
|
2551
|
+
memoryIdentity?: MemoryContextIdentity;
|
|
2552
|
+
/** Runtime-built F228 pack reused by prompt rendering and MemorySession. */
|
|
2553
|
+
memoryPack?: MemoryPack;
|
|
2539
2554
|
/** Project root used for project-scoped prompts, permissions, and path policy. */
|
|
2540
2555
|
gitRoot?: string | null;
|
|
2541
2556
|
/**
|
|
@@ -3117,6 +3132,11 @@ interface KodaXResult {
|
|
|
3117
3132
|
interface KodaXToolExecutionContext {
|
|
3118
3133
|
/** File backups for undo functionality - 文件备份用于撤销功能 */
|
|
3119
3134
|
backups: Map<string, string>;
|
|
3135
|
+
/** FEATURE_260: current exactly-scoped read-only MemorySession query binding. */
|
|
3136
|
+
memoryRecall?: (need: string) => Promise<{
|
|
3137
|
+
readonly content: string;
|
|
3138
|
+
readonly evidenceRefs: readonly string[];
|
|
3139
|
+
} | undefined>;
|
|
3120
3140
|
/** Git root directory - Git 鏍圭洰褰?*/
|
|
3121
3141
|
gitRoot?: string;
|
|
3122
3142
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-
|
|
3
|
-
import { I as AgentMessage,
|
|
1
|
+
import { k as KodaXMessage } from './types.d-CO_ZkmOd.js';
|
|
2
|
+
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-D9FKbAmf.js';
|
|
3
|
+
import { I as AgentMessage, cy as SessionEntry, cw as Session, cA as SessionExtension, b5 as KodaXSessionLineage, aT as KodaXJsonValue, a9 as CompactionDetails, aG as KodaXCompactMemorySeed, b1 as KodaXSessionEntry, bf as KodaXSessionTreeNode, b4 as KodaXSessionLabelEntry, b3 as KodaXSessionGoalEntry, a_ as KodaXSessionClientNoticeEntry, bb as KodaXSessionRewindMarkerEntry, b6 as KodaXSessionMemoryOutcomeDigestEntry, b7 as KodaXSessionMemoryReviewReceiptEntry, ba as KodaXSessionNavigationOptions, aY as KodaXSessionArtifactLedgerEntry, au as FileOperations, dd as WorkflowMeta, de as WorkflowModelHint, df as WorkflowModule } from './types.d-D2frCRaY.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @kodax-ai/agent Constants
|
|
@@ -456,7 +456,7 @@ declare function cleanupIncompleteToolCalls(messages: KodaXMessage[]): KodaXMess
|
|
|
456
456
|
* legacy lineage records rewinds via `activeEntryId` mutation; Session is
|
|
457
457
|
* linear, so a marker entry is the equivalent).
|
|
458
458
|
*/
|
|
459
|
-
declare const LINEAGE_ENTRY_TYPES: readonly ["message", "label", "compaction", "branch_summary", "archive_marker", "rewind_marker", "artifact_ledger"];
|
|
459
|
+
declare const LINEAGE_ENTRY_TYPES: readonly ["message", "label", "compaction", "branch_summary", "archive_marker", "rewind_marker", "artifact_ledger", "memory_outcome_digest", "memory_review_receipt"];
|
|
460
460
|
type LineageEntryType = (typeof LINEAGE_ENTRY_TYPES)[number];
|
|
461
461
|
/**
|
|
462
462
|
* Payload shape for a `label` entry. Mirrors
|
|
@@ -568,7 +568,7 @@ declare function generateSessionId(): Promise<string>;
|
|
|
568
568
|
*/
|
|
569
569
|
declare function extractTitleFromMessages(messages: KodaXMessage[]): string;
|
|
570
570
|
|
|
571
|
-
type NavigableSessionEntry = Exclude<KodaXSessionEntry, KodaXSessionLabelEntry | KodaXSessionGoalEntry | KodaXSessionClientNoticeEntry | KodaXSessionRewindMarkerEntry>;
|
|
571
|
+
type NavigableSessionEntry = Exclude<KodaXSessionEntry, KodaXSessionLabelEntry | KodaXSessionGoalEntry | KodaXSessionClientNoticeEntry | KodaXSessionRewindMarkerEntry | KodaXSessionMemoryOutcomeDigestEntry | KodaXSessionMemoryReviewReceiptEntry>;
|
|
572
572
|
/**
|
|
573
573
|
* Reconcile a linear message list against an existing lineage tree.
|
|
574
574
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as SessionStorage$1, f as PermissionMode } from './public-api.d-
|
|
2
|
-
import { X as KodaXOptions, a5 as KodaXResult } from './bash-prefix-extractor.d-
|
|
3
|
-
import { m as RuntimeSurfaceStatus, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest } from './utils.d-
|
|
4
|
-
import {
|
|
1
|
+
import { h as SessionStorage$1, f as PermissionMode } from './public-api.d-BcKbBy1E.js';
|
|
2
|
+
import { X as KodaXOptions, a5 as KodaXResult } from './bash-prefix-extractor.d-Dm-T865v.js';
|
|
3
|
+
import { m as RuntimeSurfaceStatus, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest } from './utils.d-DOXxnOnI.js';
|
|
4
|
+
import { be as KodaXSessionStorage, b0 as KodaXSessionData } from './types.d-D2frCRaY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* InkREPL - Ink-based REPL Adapter
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as McpServersConfig, M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
2
|
+
import { K as KodaXBaseProvider } from './base.d-C8mXDhLL.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
|
|
4
|
-
import {
|
|
5
|
-
import { d as ToolGuardrail } from './guardrail.d-
|
|
4
|
+
import { cs as RunnerToolCall } from './types.d-D2frCRaY.js';
|
|
5
|
+
import { d as ToolGuardrail } from './guardrail.d-D7r6zVSR.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as Guardrail,
|
|
1
|
+
import { aw as Guardrail, cs as RunnerToolCall, f as Agent, I as AgentMessage, cv as RunnerToolResult, cE as Span } from './types.d-D2frCRaY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Guardrail Runtime — FEATURE_085 (v0.7.26).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-Dm-T865v.js';
|
|
2
|
+
import { b0 as KodaXSessionData, b5 as KodaXSessionLineage, ba as KodaXSessionNavigationOptions, bc as KodaXSessionRuntimeInfo, be as KodaXSessionStorage, aT as KodaXJsonValue } from './types.d-D2frCRaY.js';
|
|
3
|
+
import { k as KodaXMessage, S as KodaXTaskResultMetadata } from './types.d-CO_ZkmOd.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Permission Types
|
|
@@ -30,10 +30,9 @@ declare const PERMISSION_MODES: PermissionMode[];
|
|
|
30
30
|
* display name; the deprecation notice
|
|
31
31
|
* surfaces once per session at startup)
|
|
32
32
|
*
|
|
33
|
-
* Single source of truth
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* surfaces never drift on capitalization or short-form choice.
|
|
33
|
+
* Single source of truth for command output, startup summaries, and the live
|
|
34
|
+
* Ink status-bar view-model. The former write-only readline StatusBar was
|
|
35
|
+
* removed; Classic continues to use the same display helper in text surfaces.
|
|
37
36
|
*/
|
|
38
37
|
declare function permissionModeDisplayName(mode: PermissionMode): string;
|
|
39
38
|
interface ConfirmResult {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as KodaXReasoningMode, M as KodaXStableEffortIntent, a9 as KodaXWireReasoningEffort, G as KodaXReasoningProfile, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, q as KodaXProviderConfig, B as KodaXReasoningCapability, H as KodaXReasoningRequest, n as KodaXNormalizedReasoningRequest, V as KodaXTaskType, a7 as KodaXVerifyCredentialResult, a1 as KodaXToolDefinition, k as KodaXMessage, y as KodaXProviderStreamOptions, N as KodaXStreamResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, a8 as KodaXVerifyStrategy, d as KodaXCustomProviderConfig, j as KodaXListModelsResult } from './types.d-CO_ZkmOd.js';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
3
|
+
import { K as KodaXBaseProvider } from './base.d-C8mXDhLL.js';
|
|
4
4
|
import OpenAI from 'openai';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dw as WorkflowProcessTrackerOptions, d6 as WorkflowEvent, dq as WorkflowProcessSnapshot, dj as WorkflowProcessEvent } from './types.d-D2frCRaY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FEATURE_246 Part A0 (ADR-046) — neutral workflow run lifecycle manager.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as PermissionMode } from './public-api.d-
|
|
2
|
-
import {
|
|
3
|
-
import { r as KodaXAgentMode } from './bash-prefix-extractor.d-
|
|
4
|
-
import {
|
|
1
|
+
import { f as PermissionMode } from './public-api.d-BcKbBy1E.js';
|
|
2
|
+
import { F as KodaXReasoningMode, k as KodaXMessage, c as KodaXContentBlock } from './types.d-CO_ZkmOd.js';
|
|
3
|
+
import { r as KodaXAgentMode } from './bash-prefix-extractor.d-Dm-T865v.js';
|
|
4
|
+
import { bg as KodaXSessionUiHistoryItem, bk as KodaXSessionUiToolCall } from './types.d-D2frCRaY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -161,6 +161,9 @@ interface KodaXMessage {
|
|
|
161
161
|
*/
|
|
162
162
|
timestamp?: string;
|
|
163
163
|
}
|
|
164
|
+
interface KodaXEphemeralSuffix {
|
|
165
|
+
readonly content: string;
|
|
166
|
+
}
|
|
164
167
|
interface KodaXTokenUsage {
|
|
165
168
|
inputTokens: number;
|
|
166
169
|
outputTokens: number;
|
|
@@ -567,6 +570,8 @@ interface KodaXProviderConfig {
|
|
|
567
570
|
verifyStrategy?: KodaXVerifyStrategy;
|
|
568
571
|
}
|
|
569
572
|
interface KodaXProviderStreamOptions {
|
|
573
|
+
/** Request-only tail context. Providers must not mutate persisted messages. */
|
|
574
|
+
ephemeralSuffix?: KodaXEphemeralSuffix;
|
|
570
575
|
onTextDelta?: (text: string) => void;
|
|
571
576
|
onThinkingDelta?: (text: string) => void;
|
|
572
577
|
onThinkingEnd?: (thinking: string) => void;
|
|
@@ -629,4 +634,4 @@ interface KodaXProviderStreamOptions {
|
|
|
629
634
|
signal?: AbortSignal;
|
|
630
635
|
}
|
|
631
636
|
|
|
632
|
-
export type {
|
|
637
|
+
export type { KodaXThinkingWireStrategy as $, KodaXProviderTransport as A, KodaXReasoningCapability as B, KodaXReasoningEffortPreset as C, KodaXReasoningEffortRequest as D, KodaXReasoningEffortWireStrategy as E, KodaXReasoningMode as F, KodaXReasoningProfile as G, KodaXReasoningRequest as H, KodaXRedactedThinkingBlock as I, KodaXReviewScale as J, KodaXAssuranceIntent as K, KodaXRiskLevel as L, KodaXStableEffortIntent as M, KodaXStreamResult as N, KodaXTaskActionability as O, KodaXTaskBudgetOverrides as P, KodaXTaskComplexity as Q, KodaXTaskFamily as R, KodaXTaskResultMetadata as S, KodaXTaskResultSource as T, KodaXTaskRoutingDecision as U, KodaXTaskType as V, KodaXTaskWorkIntent as W, KodaXTextBlock as X, KodaXThinkingBlock as Y, KodaXThinkingBudgetMap as Z, KodaXThinkingDepth as _, KodaXCacheBoundary as a, KodaXTokenUsage as a0, KodaXToolDefinition as a1, KodaXToolResultBlock as a2, KodaXToolResultContentItem as a3, KodaXToolResultImageItem as a4, KodaXToolResultTextItem as a5, KodaXToolUseBlock as a6, KodaXVerifyCredentialResult as a7, KodaXVerifyStrategy as a8, KodaXWireReasoningEffort as a9, KodaXChildFanoutClass as b, KodaXContentBlock as c, KodaXCustomProviderConfig as d, KodaXEphemeralSuffix as e, KodaXExecutionMode as f, KodaXExecutionPattern as g, KodaXHarnessProfile as h, KodaXImageBlock as i, KodaXListModelsResult as j, KodaXMessage as k, KodaXModelDescriptor as l, KodaXMutationSurface as m, KodaXNormalizedReasoningRequest as n, KodaXProtocolFamily as o, KodaXProviderCapabilityProfile as p, KodaXProviderConfig as q, KodaXProviderContextFidelity as r, KodaXProviderConversationSemantics as s, KodaXProviderEvidenceSupport as t, KodaXProviderLongRunningSupport as u, KodaXProviderMcpSupport as v, KodaXProviderMultimodalSupport as w, KodaXProviderSessionSupport as x, KodaXProviderStreamOptions as y, KodaXProviderToolCallingFidelity as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
1
|
+
import { a9 as KodaXWireReasoningEffort, a1 as KodaXToolDefinition, a3 as KodaXToolResultContentItem, k as KodaXMessage } from './types.d-CO_ZkmOd.js';
|
|
2
|
+
import { K as KodaXBaseProvider } from './base.d-C8mXDhLL.js';
|
|
3
3
|
import { C as CapabilityKind, a as CapabilityProvider } from './capability.d-3C62G8Eq.js';
|
|
4
|
-
import { aT as KodaXJsonValue, aH as KodaXExtensionSessionRecord, aJ as KodaXExtensionStore } from './types.d-
|
|
5
|
-
import { aw as KodaXToolExecutionContext, bd as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
4
|
+
import { aT as KodaXJsonValue, aH as KodaXExtensionSessionRecord, aJ as KodaXExtensionStore } from './types.d-D2frCRaY.js';
|
|
5
|
+
import { aw as KodaXToolExecutionContext, bd as ToolSideEffect } from './bash-prefix-extractor.d-Dm-T865v.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* KodaX Constructed-World types (FEATURE_087, v0.7.28).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as KodaXMessage, a1 as KodaXToolDefinition, F as KodaXReasoningMode, a9 as KodaXWireReasoningEffort, a3 as KodaXToolResultContentItem, Y as KodaXThinkingBlock, I as KodaXRedactedThinkingBlock } from './types.d-CO_ZkmOd.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @kodax-ai/agent Types
|
|
@@ -104,6 +104,46 @@ interface KodaXSessionClientNoticeEntry extends KodaXSessionEntryBase {
|
|
|
104
104
|
turnId?: string;
|
|
105
105
|
payload?: KodaXJsonValue;
|
|
106
106
|
}
|
|
107
|
+
interface KodaXMemoryOutcomeDigest {
|
|
108
|
+
readonly id: string;
|
|
109
|
+
readonly reviewKey: string;
|
|
110
|
+
readonly sessionId: string;
|
|
111
|
+
readonly branchId: string;
|
|
112
|
+
readonly sequence: number;
|
|
113
|
+
readonly objective: string;
|
|
114
|
+
readonly actionSignature?: string;
|
|
115
|
+
readonly approach: string;
|
|
116
|
+
readonly outcome: 'succeeded' | 'failed';
|
|
117
|
+
readonly summary: string;
|
|
118
|
+
readonly preconditions?: string;
|
|
119
|
+
readonly lesson?: string;
|
|
120
|
+
readonly evidenceRefs: readonly string[];
|
|
121
|
+
readonly evidence?: readonly KodaXMemoryOutcomeEvidence[];
|
|
122
|
+
readonly memoryInfluence?: readonly KodaXMemoryInfluenceRef[];
|
|
123
|
+
readonly visibility: 'prompt_safe' | 'private' | 'sensitive';
|
|
124
|
+
readonly createdAt: string;
|
|
125
|
+
}
|
|
126
|
+
interface KodaXMemoryOutcomeEvidence {
|
|
127
|
+
readonly ref: string;
|
|
128
|
+
readonly grade: 'authoritative' | 'verified' | 'corroborated' | 'observed' | 'inferred';
|
|
129
|
+
readonly source: 'user' | 'host' | 'tool' | 'environment' | 'agent';
|
|
130
|
+
readonly observedAt: string;
|
|
131
|
+
}
|
|
132
|
+
interface KodaXMemoryInfluenceRef {
|
|
133
|
+
readonly decisionReceiptRef: string;
|
|
134
|
+
readonly grade: 'direct' | 'supporting' | 'exposed' | 'unknown';
|
|
135
|
+
}
|
|
136
|
+
interface KodaXSessionMemoryOutcomeDigestEntry extends KodaXSessionEntryBase {
|
|
137
|
+
readonly type: 'memory_outcome_digest';
|
|
138
|
+
readonly digest: KodaXMemoryOutcomeDigest;
|
|
139
|
+
}
|
|
140
|
+
interface KodaXSessionMemoryReviewReceiptEntry extends KodaXSessionEntryBase {
|
|
141
|
+
readonly type: 'memory_review_receipt';
|
|
142
|
+
readonly reviewKey: string;
|
|
143
|
+
readonly proposalIds: readonly string[];
|
|
144
|
+
readonly status: 'completed' | 'no_action';
|
|
145
|
+
readonly completedAt: string;
|
|
146
|
+
}
|
|
107
147
|
type KodaXGoalStatus = 'active' | 'paused' | 'budget_limited' | 'blocked' | 'complete';
|
|
108
148
|
/**
|
|
109
149
|
* Persistent user-set goal state. v0.7.44 FEATURE_192 — backs the
|
|
@@ -142,7 +182,7 @@ interface KodaXSessionGoalEntry extends KodaXSessionEntryBase {
|
|
|
142
182
|
goal: KodaXGoalState | null;
|
|
143
183
|
event: KodaXGoalEventType;
|
|
144
184
|
}
|
|
145
|
-
type KodaXSessionEntry = KodaXSessionMessageEntry | KodaXSessionCompactionEntry | KodaXSessionBranchSummaryEntry | KodaXSessionLabelEntry | KodaXSessionArchiveMarkerEntry | KodaXSessionRewindMarkerEntry | KodaXSessionClientNoticeEntry | KodaXSessionGoalEntry;
|
|
185
|
+
type KodaXSessionEntry = KodaXSessionMessageEntry | KodaXSessionCompactionEntry | KodaXSessionBranchSummaryEntry | KodaXSessionLabelEntry | KodaXSessionArchiveMarkerEntry | KodaXSessionRewindMarkerEntry | KodaXSessionClientNoticeEntry | KodaXSessionMemoryOutcomeDigestEntry | KodaXSessionMemoryReviewReceiptEntry | KodaXSessionGoalEntry;
|
|
146
186
|
interface KodaXSessionArtifactLedgerEntry {
|
|
147
187
|
id: string;
|
|
148
188
|
kind: 'file_read' | 'file_modified' | 'file_created' | 'file_deleted' | 'path_scope' | 'search_scope' | 'command_scope' | 'check_result' | 'decision' | 'image_input' | 'tombstone';
|
|
@@ -179,7 +219,7 @@ interface KodaXSessionNavigationOptions {
|
|
|
179
219
|
summarizeCurrentBranch?: boolean;
|
|
180
220
|
}
|
|
181
221
|
interface KodaXSessionTreeNode {
|
|
182
|
-
entry: Exclude<KodaXSessionEntry, KodaXSessionLabelEntry | KodaXSessionGoalEntry | KodaXSessionClientNoticeEntry | KodaXSessionRewindMarkerEntry>;
|
|
222
|
+
entry: Exclude<KodaXSessionEntry, KodaXSessionLabelEntry | KodaXSessionGoalEntry | KodaXSessionClientNoticeEntry | KodaXSessionRewindMarkerEntry | KodaXSessionMemoryOutcomeDigestEntry | KodaXSessionMemoryReviewReceiptEntry>;
|
|
183
223
|
children: KodaXSessionTreeNode[];
|
|
184
224
|
label?: string;
|
|
185
225
|
active: boolean;
|
|
@@ -678,6 +718,20 @@ interface GenerationSpanData {
|
|
|
678
718
|
};
|
|
679
719
|
readonly finishReason?: string;
|
|
680
720
|
readonly error?: string;
|
|
721
|
+
readonly memoryDecisionReceipts?: readonly MemoryDecisionTraceReceipt[];
|
|
722
|
+
}
|
|
723
|
+
interface MemoryDecisionTraceReceipt {
|
|
724
|
+
readonly id: string;
|
|
725
|
+
readonly decisionEpoch: string;
|
|
726
|
+
readonly decisionRevision: string;
|
|
727
|
+
readonly policyVersion: string;
|
|
728
|
+
readonly candidateSetFingerprint: string;
|
|
729
|
+
readonly candidateRefs: readonly string[];
|
|
730
|
+
readonly selectedRefs: readonly string[];
|
|
731
|
+
readonly injectedRefs: readonly string[];
|
|
732
|
+
readonly selectionModes: readonly ('task_hint' | 'exact' | 'semantic_prefetch' | 'deliberate_query')[];
|
|
733
|
+
readonly actionSignature?: string;
|
|
734
|
+
readonly throughSequence: number;
|
|
681
735
|
}
|
|
682
736
|
interface ToolCallSpanData {
|
|
683
737
|
readonly kind: 'tool_call';
|
|
@@ -2563,8 +2617,30 @@ interface DiscoveryOptions {
|
|
|
2563
2617
|
*/
|
|
2564
2618
|
declare function discoverInstances(options?: DiscoveryOptions): DiscoveredInstance[];
|
|
2565
2619
|
|
|
2620
|
+
interface MemoryContextIdentity {
|
|
2621
|
+
readonly tenantId: string;
|
|
2622
|
+
readonly workspaceId?: string;
|
|
2623
|
+
readonly userId?: string;
|
|
2624
|
+
readonly agentId: string;
|
|
2625
|
+
readonly projectId?: string;
|
|
2626
|
+
readonly sessionId: string;
|
|
2627
|
+
}
|
|
2628
|
+
interface MemoryApplicability {
|
|
2629
|
+
readonly tenantId: string;
|
|
2630
|
+
readonly workspaceId?: string;
|
|
2631
|
+
readonly userId?: string;
|
|
2632
|
+
readonly agentId?: string;
|
|
2633
|
+
readonly projectId?: string;
|
|
2634
|
+
readonly sessionId?: string;
|
|
2635
|
+
}
|
|
2636
|
+
declare function matchesMemoryApplicability(identity: MemoryContextIdentity, applicability: MemoryApplicability): boolean;
|
|
2637
|
+
declare function hashMemoryIdentityComponent(kind: string, canonicalId: string): string;
|
|
2638
|
+
declare function memoryApplicabilityFingerprint(applicability: MemoryApplicability): string;
|
|
2639
|
+
|
|
2566
2640
|
type MemoryRefKind = 'working_context' | 'session_trace' | 'artifact_ledger' | 'learning_proposal' | 'memdir' | 'skill' | 'workflow_run' | 'reasoning_report' | 'self_manual' | 'project_doc';
|
|
2567
|
-
|
|
2641
|
+
|
|
2642
|
+
type MemoryScope = 'turn' | 'session' | 'project' | 'workspace' | 'agent' | 'user' | 'builtin';
|
|
2643
|
+
type MemoryClaimKind = 'fact' | 'policy' | 'preference' | 'procedure' | 'episode';
|
|
2568
2644
|
type MemoryLifecycle = 'pending' | 'active' | 'provisional' | 'trusted' | 'stale' | 'quarantined' | 'archived' | 'readonly';
|
|
2569
2645
|
type MemoryAuthority = 'read_only' | 'proposal_only' | 'approved_write';
|
|
2570
2646
|
type MemoryVisibility = 'prompt_safe' | 'private' | 'sensitive';
|
|
@@ -2572,6 +2648,11 @@ interface MemoryItemRef {
|
|
|
2572
2648
|
readonly kind: MemoryRefKind;
|
|
2573
2649
|
readonly id: string;
|
|
2574
2650
|
readonly scope: MemoryScope;
|
|
2651
|
+
readonly scopeId?: string;
|
|
2652
|
+
readonly applicability?: MemoryApplicability;
|
|
2653
|
+
readonly claimKind?: MemoryClaimKind;
|
|
2654
|
+
readonly claimKey?: string;
|
|
2655
|
+
readonly actionSignature?: string;
|
|
2575
2656
|
readonly title?: string;
|
|
2576
2657
|
readonly owner: 'user' | 'project' | 'kodax' | 'external';
|
|
2577
2658
|
readonly lifecycle: MemoryLifecycle;
|
|
@@ -2586,6 +2667,9 @@ interface MemoryItemRef {
|
|
|
2586
2667
|
readonly updatedAt?: string;
|
|
2587
2668
|
readonly lastUsedAt?: string;
|
|
2588
2669
|
readonly pinned?: boolean;
|
|
2670
|
+
readonly applyReceiptRef?: string;
|
|
2671
|
+
readonly expectedFingerprint?: string;
|
|
2672
|
+
readonly resultingFingerprint?: string;
|
|
2589
2673
|
}
|
|
2590
2674
|
interface MemoryRefFilter {
|
|
2591
2675
|
readonly kinds?: readonly MemoryRefKind[];
|
|
@@ -2630,6 +2714,8 @@ interface MemoryApproval {
|
|
|
2630
2714
|
readonly approvedBy: 'user' | 'host';
|
|
2631
2715
|
readonly approvedAt: string;
|
|
2632
2716
|
readonly expectedFingerprints: Readonly<Record<string, string>>;
|
|
2717
|
+
readonly policyId?: string;
|
|
2718
|
+
readonly policyReason?: string;
|
|
2633
2719
|
}
|
|
2634
2720
|
interface MemoryApplyResult {
|
|
2635
2721
|
readonly proposalId: string;
|
|
@@ -2646,6 +2732,13 @@ interface MemoryRejectResult {
|
|
|
2646
2732
|
readonly review?: MemoryReviewPlan;
|
|
2647
2733
|
readonly warnings: readonly string[];
|
|
2648
2734
|
}
|
|
2735
|
+
interface MemoryLifecycleOperationResult {
|
|
2736
|
+
readonly refId: string;
|
|
2737
|
+
readonly operation: 'archive' | 'forget' | 'purge';
|
|
2738
|
+
readonly acknowledged: boolean;
|
|
2739
|
+
readonly residualSourceRefs: readonly string[];
|
|
2740
|
+
readonly warnings: readonly string[];
|
|
2741
|
+
}
|
|
2649
2742
|
interface MemorySourceAdapter {
|
|
2650
2743
|
readonly kind: MemoryRefKind;
|
|
2651
2744
|
listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
|
|
@@ -2686,11 +2779,16 @@ interface MemoryGovernanceReport {
|
|
|
2686
2779
|
}
|
|
2687
2780
|
interface MemoryPackInput {
|
|
2688
2781
|
readonly task: string;
|
|
2782
|
+
readonly identity?: MemoryContextIdentity;
|
|
2783
|
+
readonly decisionIntent?: string;
|
|
2784
|
+
readonly actionSignature?: string;
|
|
2785
|
+
readonly maxCandidates?: number;
|
|
2689
2786
|
readonly maxHints?: number;
|
|
2690
2787
|
readonly includePrivate?: boolean;
|
|
2691
2788
|
readonly includeSensitive?: boolean;
|
|
2692
2789
|
readonly includeSnippets?: boolean;
|
|
2693
2790
|
readonly ignoreMemory?: boolean;
|
|
2791
|
+
readonly purpose?: 'automatic' | 'deliberate_query';
|
|
2694
2792
|
}
|
|
2695
2793
|
interface MemoryPackHint {
|
|
2696
2794
|
readonly ref: MemoryItemRef;
|
|
@@ -2702,6 +2800,10 @@ interface MemoryPackHint {
|
|
|
2702
2800
|
interface MemoryPack {
|
|
2703
2801
|
readonly generatedAt: string;
|
|
2704
2802
|
readonly taskFingerprint: string;
|
|
2803
|
+
readonly memoryRevision: string;
|
|
2804
|
+
readonly candidates: readonly MemoryPackHint[];
|
|
2805
|
+
readonly promptHints: readonly MemoryPackHint[];
|
|
2806
|
+
/** @deprecated Use promptHints. Retained for F228 source compatibility. */
|
|
2705
2807
|
readonly hints: readonly MemoryPackHint[];
|
|
2706
2808
|
readonly omitted: readonly string[];
|
|
2707
2809
|
readonly traceMetadata: MemoryPackTraceMetadata;
|
|
@@ -2712,7 +2814,7 @@ interface MemoryPackTraceMetadata {
|
|
|
2712
2814
|
readonly taskFingerprint: string;
|
|
2713
2815
|
readonly suppressed: boolean;
|
|
2714
2816
|
}
|
|
2715
|
-
type MemoryReviewTrigger = 'user_correction' | 'explicit_remember' | 'explicit_forget' | 'proposal_rejected' | 'conflict_detected';
|
|
2817
|
+
type MemoryReviewTrigger = 'user_correction' | 'explicit_remember' | 'explicit_forget' | 'proposal_rejected' | 'conflict_detected' | 'episode_completed';
|
|
2716
2818
|
interface MemoryReviewCandidateRef {
|
|
2717
2819
|
readonly ref: MemoryItemRef;
|
|
2718
2820
|
readonly bodySnippet?: string;
|
|
@@ -2721,7 +2823,8 @@ interface MemoryReviewCandidateRef {
|
|
|
2721
2823
|
}
|
|
2722
2824
|
interface MemoryReviewInput {
|
|
2723
2825
|
readonly trigger: MemoryReviewTrigger;
|
|
2724
|
-
readonly userFeedback
|
|
2826
|
+
readonly userFeedback?: string;
|
|
2827
|
+
readonly episodeDigest?: KodaXMemoryOutcomeDigest;
|
|
2725
2828
|
readonly task?: string;
|
|
2726
2829
|
readonly sourceRefs?: readonly string[];
|
|
2727
2830
|
readonly candidateRefIds?: readonly string[];
|
|
@@ -2746,6 +2849,12 @@ interface MemoryReviewDraftAction {
|
|
|
2746
2849
|
readonly risk: 'low' | 'medium' | 'high';
|
|
2747
2850
|
readonly requiresApproval: true;
|
|
2748
2851
|
readonly proposedBody?: string;
|
|
2852
|
+
readonly claimKind?: MemoryClaimKind;
|
|
2853
|
+
readonly claimKey?: string;
|
|
2854
|
+
readonly actionSignature?: string;
|
|
2855
|
+
readonly preconditions?: string;
|
|
2856
|
+
readonly counterexamples?: readonly string[];
|
|
2857
|
+
readonly relationship?: 'same_claim' | 'condition_refinement' | 'conflict';
|
|
2749
2858
|
}
|
|
2750
2859
|
interface MemoryReviewPlan {
|
|
2751
2860
|
readonly trigger: MemoryReviewTrigger;
|
|
@@ -2754,6 +2863,22 @@ interface MemoryReviewPlan {
|
|
|
2754
2863
|
readonly candidateRefs: readonly MemoryReviewCandidateRef[];
|
|
2755
2864
|
readonly actions: readonly MemoryReviewDraftAction[];
|
|
2756
2865
|
readonly warnings: readonly string[];
|
|
2866
|
+
readonly episodeDigest?: KodaXMemoryOutcomeDigest;
|
|
2867
|
+
}
|
|
2868
|
+
interface MemoryEpisodeReviewResult {
|
|
2869
|
+
readonly plan: MemoryReviewPlan;
|
|
2870
|
+
readonly proposalIds: readonly string[];
|
|
2871
|
+
readonly appliedProposalIds: readonly string[];
|
|
2872
|
+
readonly decisions: readonly MemoryReviewPersistenceDecision[];
|
|
2873
|
+
readonly warnings: readonly string[];
|
|
2874
|
+
}
|
|
2875
|
+
type MemoryReviewPersistenceKind = 'create' | 'evidence_update' | 'condition_refinement' | 'conflict' | 'no_action' | 'reject' | 'quarantine';
|
|
2876
|
+
interface MemoryReviewPersistenceDecision {
|
|
2877
|
+
readonly actionIndex: number;
|
|
2878
|
+
readonly kind: MemoryReviewPersistenceKind;
|
|
2879
|
+
readonly reason: string;
|
|
2880
|
+
readonly existingRefId?: string;
|
|
2881
|
+
readonly proposalId?: string;
|
|
2757
2882
|
}
|
|
2758
2883
|
type MemoryReviewRunner = (input: MemoryReviewModelInput) => Promise<MemoryReviewPlan>;
|
|
2759
2884
|
interface MemoryController {
|
|
@@ -2767,6 +2892,11 @@ interface MemoryController {
|
|
|
2767
2892
|
maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
|
|
2768
2893
|
buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
|
|
2769
2894
|
reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
|
|
2895
|
+
persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
|
|
2896
|
+
reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
|
|
2897
|
+
archiveRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2898
|
+
forgetRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2899
|
+
purgeRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
2770
2900
|
}
|
|
2771
2901
|
type MemoryEvent = {
|
|
2772
2902
|
readonly type: 'proposal.created';
|
|
@@ -3723,5 +3853,5 @@ interface CreateAgentExecutorPlaneOptions {
|
|
|
3723
3853
|
readonly createIdempotencyKey?: () => string;
|
|
3724
3854
|
}
|
|
3725
3855
|
|
|
3726
|
-
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, InvariantSession as aE, DEFAULT_SYSTEM_CAP as af, MAX_TOOL_LOOP_ITERATIONS as
|
|
3727
|
-
export type { AskUserAnswer as $, AgentExecutorPlaneBinding as B, AgentExecutorPlaneStore as C, AgentExecutorPreflightResult as D, AgentExecutorProtocol as E, AgentExecutorTaskReference as F, AgentExecutorTaskSnapshot as G, AgentManifest as H, AgentMessage as I, AgentMiddlewareDeclaration as J, AgentPreflightInput as K, AgentPreflightResult as L, AgentReasoningProfile as M, AgentRegistrationService as N, AgentSpanData as O, AgentTaskCancellation as P, AgentTaskCorrelation as Q, AgentTaskEvent as R, AgentTaskFilter as S, AgentTaskProgress as T, AgentTaskRegistrationSnapshot as U, AgentTaskService as V, AgentTaskSnapshot as W, AgentTaskStartInput as X, AgentTaskState as Y, AgentTaskUsage as Z, AgentTool as _,
|
|
3856
|
+
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, InvariantSession as aE, DEFAULT_SYSTEM_CAP as af, MAX_TOOL_LOOP_ITERATIONS as bs, SpanImpl as cH, Tracer as cZ, Runner as co, defaultTracer as d$, WorkflowEventRecorder as d8, _resetAdmittedAgentBindings as dO, _resetPresetDispatchers as dP, asSingleSelection as dQ, buildAssistantMessageFromLlmResult as dR, buildSystemPrompt as dS, buildToolResultMessage as dT, createAgent as dU, createHandoff as dV, createInMemorySession as dW, createInvariantSessionForAgent as dX, createStateWriter as dY, createTrace as dZ, createWorkflowProcessTracker as d_, detectInstructionsInjection as e0, discoverInstances as e1, executeRunnerToolCall as e2, extractAssistantTextFromMessage as e3, getActiveUserInteraction as e4, getAdmittedAgentBindings as e5, hashMemoryIdentityComponent as e6, isAskUserCustomInputAnswer as e7, isFinalWorkflowProcessStatus as e8, isRunnableTool as e9, isRunnerLlmResult as ea, matchesMemoryApplicability as eb, memoryApplicabilityFingerprint as ec, normalizeHostMetadata as ed, registerChildTask as ee, registerPresetDispatcher as ef, requestTaskStop as eg, runAdmissionAudit as eh, setActiveUserInteraction as ei, setAdmittedAgentBindings as ej };
|
|
3857
|
+
export type { AskUserAnswer as $, AgentExecutorPlaneBinding as B, AgentExecutorPlaneStore as C, AgentExecutorPreflightResult as D, AgentExecutorProtocol as E, AgentExecutorTaskReference as F, AgentExecutorTaskSnapshot as G, AgentManifest as H, AgentMessage as I, AgentMiddlewareDeclaration as J, AgentPreflightInput as K, AgentPreflightResult as L, AgentReasoningProfile as M, AgentRegistrationService as N, AgentSpanData as O, AgentTaskCancellation as P, AgentTaskCorrelation as Q, AgentTaskEvent as R, AgentTaskFilter as S, AgentTaskProgress as T, AgentTaskRegistrationSnapshot as U, AgentTaskService as V, AgentTaskSnapshot as W, AgentTaskStartInput as X, AgentTaskState as Y, AgentTaskUsage as Z, AgentTool as _, KodaXSessionCompactionEntry as a$, AskUserCustomInputAnswer as a0, AskUserMultiOptions as a1, AskUserQuestionItem as a2, AskUserQuestionOptions as a3, AskUserSelectionAnswer as a4, CapabilitySupport as a5, ChildTaskRegistry as a6, CompactionAnchor as a7, CompactionConfig as a8, CompactionDetails as a9, InMemorySessionOptions as aA, InstanceDiscoveryFs as aB, InvariantId as aC, InvariantResult as aD, KodaXCompactMemoryProgress as aF, KodaXCompactMemorySeed as aG, KodaXExtensionSessionRecord as aH, KodaXExtensionSessionState as aI, KodaXExtensionStore as aJ, KodaXExtensionStoreEntry as aK, KodaXFileInputArtifact as aL, KodaXGoalEventType as aM, KodaXGoalState as aN, KodaXGoalStatus as aO, KodaXImageInputArtifact as aP, KodaXImageMediaType as aQ, KodaXInputArtifact as aR, KodaXInputArtifactSource as aS, KodaXJsonValue as aT, KodaXMemoryInfluenceRef as aU, KodaXMemoryOutcomeDigest as aV, KodaXMemoryOutcomeEvidence as aW, KodaXSessionArchiveMarkerEntry as aX, KodaXSessionArtifactLedgerEntry as aY, KodaXSessionBranchSummaryEntry as aZ, KodaXSessionClientNoticeEntry as a_, CompactionResult as aa, CompactionSpanData as ab, CompactionUpdate as ac, CreateAgentExecutorPlaneOptions as ad, CurrentTodoSummary as ae, Deliverable as ag, DiscoveredInstance as ah, DiscoveryOptions as ai, DispatchableAgentDescriptor as aj, DispatchableAgentListing as ak, DispatchableAgentOrigin as al, DispatchableAgentQuery as am, EvidenceSpanData as an, ExternalAgentEffectDeclaration as ao, ExternalAgentHealth as ap, ExternalAgentProtocol as aq, ExternalAgentRegistration as ar, ExternalAgentRegistrationSummary as as, FanoutSpanData as at, FileOperations as au, GenerationSpanData as av, Guardrail as aw, GuardrailSpanData as ax, Handoff as ay, HandoffSpanData as az, AdmissionAuditOptions as b, MemoryReviewModelInput as b$, KodaXSessionData as b0, KodaXSessionEntry as b1, KodaXSessionEntryBase as b2, KodaXSessionGoalEntry as b3, KodaXSessionLabelEntry as b4, KodaXSessionLineage as b5, KodaXSessionMemoryOutcomeDigestEntry as b6, KodaXSessionMemoryReviewReceiptEntry as b7, KodaXSessionMessageEntry as b8, KodaXSessionMeta as b9, MemoryAutoCuratorInput as bA, MemoryAutoCuratorResult as bB, MemoryBodySnapshot as bC, MemoryClaimKind as bD, MemoryContextIdentity as bE, MemoryController as bF, MemoryCuratorInput as bG, MemoryDecisionTraceReceipt as bH, MemoryEpisodeReviewResult as bI, MemoryEvent as bJ, MemoryGovernanceFinding as bK, MemoryGovernanceFindingKind as bL, MemoryGovernanceReport as bM, MemoryItemRef as bN, MemoryLifecycle as bO, MemoryLifecycleOperationResult as bP, MemoryPack as bQ, MemoryPackHint as bR, MemoryPackInput as bS, MemoryPackTraceMetadata as bT, MemoryProposalAction as bU, MemoryRefFilter as bV, MemoryRefKind as bW, MemoryRejectResult as bX, MemoryReviewCandidateRef as bY, MemoryReviewDraftAction as bZ, MemoryReviewInput as b_, KodaXSessionNavigationOptions as ba, KodaXSessionRewindMarkerEntry as bb, KodaXSessionRuntimeInfo as bc, KodaXSessionScope as bd, KodaXSessionStorage as be, KodaXSessionTreeNode as bf, KodaXSessionUiHistoryItem as bg, KodaXSessionUiHistoryItemType as bh, KodaXSessionUiTextHistoryItem as bi, KodaXSessionUiTextHistoryItemType as bj, KodaXSessionUiToolCall as bk, KodaXSessionUiToolCallStatus as bl, KodaXSessionUiToolGroupHistoryItem as bm, KodaXSessionWorkspaceKind as bn, KodaXVideoInputArtifact as bo, KodaXVideoMediaType as bp, LocalAgentTaskInput as bq, LocalAgentTaskUpdate as br, ManifestPatch as bt, MemoryActionProposal as bu, MemoryApplicability as bv, MemoryApplyPreview as bw, MemoryApplyResult as bx, MemoryApproval as by, MemoryAuthority as bz, AdmissionCtx as c, UserInteraction as c$, MemoryReviewPersistenceDecision as c0, MemoryReviewPersistenceKind as c1, MemoryReviewPlan as c2, MemoryReviewRunner as c3, MemoryReviewTrigger as c4, MemoryScope as c5, MemorySourceAdapter as c6, MemoryVisibility as c7, MessageEntry as c8, ObserveCtx as c9, SessionExtension as cA, SessionForkOptions as cB, SessionMeta as cC, SessionStateSnapshot as cD, Span as cE, SpanData as cF, SpanError as cG, SpanImplOptions as cI, StartTraceOptions as cJ, StateWriter as cK, StateWriterFs as cL, StateWriterOptions as cM, StopHookContext as cN, StopHookFn as cO, StopHookResult as cP, StopHookSpanData as cQ, SystemCap as cR, TaskAbortRegistry as cS, TerminalCtx as cT, ToolCallSpanData as cU, ToolCapability as cV, ToolPermission as cW, Trace as cX, TraceOptions as cY, TracerOptions as c_, PersistedSessionState as ca, PresetDispatcher as cb, PresetTracingContext as cc, QualityInvariant as cd, ReadonlyMutationTracker as ce, ReadonlyRecorder as cf, ReasoningDepth as cg, RecentlyModifiedFile as ch, RequestTaskStopOptions as ci, RequestTaskStopResult as cj, RunEvent as ck, RunOptions as cl, RunResult as cm, RunnableTool as cn, RunnerEvent as cp, RunnerLlmResult as cq, RunnerLlmReturn as cr, RunnerToolCall as cs, RunnerToolContext as ct, RunnerToolObserver as cu, RunnerToolResult as cv, Session as cw, SessionDispatchResult as cx, SessionEntry as cy, SessionErrorMetadata as cz, AdmissionVerdict as d, WorkflowAgentBackend as d0, WorkflowApi as d1, WorkflowApproval as d2, WorkflowApprovalSummary as d3, WorkflowArtifactRef as d4, WorkflowBudget as d5, WorkflowEvent as d6, WorkflowEventCorrelation as d7, WorkflowEventType as d9, WorkflowSpawnAgentInput as dA, WorkflowSynthesis as dB, WorkflowSynthesizeInput as dC, WorkflowTaskHandle as dD, WorkflowTaskResult as dE, WorkflowTaskSnapshot as dF, WorkflowTaskStatus as dG, WorkflowTaskSummaryEventUpdate as dH, WorkflowTaskSummaryKind as dI, WorkflowTaskSummaryUpdate as dJ, WorkflowTaskUsage as dK, WorkflowTaskVerification as dL, WorkflowTaskVerificationResult as dM, WorkflowWaitOptions as dN, WorkflowIsolation as da, WorkflowLimits as db, WorkflowLogEvent as dc, WorkflowMeta as dd, WorkflowModelHint as de, WorkflowModule as df, WorkflowParallelOptions as dg, WorkflowProcessArtifact as dh, WorkflowProcessCounts as di, WorkflowProcessEvent as dj, WorkflowProcessItem as dk, WorkflowProcessItemKind as dl, WorkflowProcessItemOrigin as dm, WorkflowProcessItemStatus as dn, WorkflowProcessProgress as dp, WorkflowProcessSnapshot as dq, WorkflowProcessSource as dr, WorkflowProcessStatus as ds, WorkflowProcessSummaryStatus as dt, WorkflowProcessTokenUsage as du, WorkflowProcessTracker as dv, WorkflowProcessTrackerOptions as dw, WorkflowRun as dx, WorkflowRunState as dy, WorkflowRunStatus as dz, AdmittedHandle as e, Agent as f, AgentArtifactPolicy as g, AgentArtifactPolicyDecision as h, AgentArtifactPolicyInput as i, AgentArtifactReference as j, AgentCapabilityDeclaration as k, AgentCapabilityRequirements as l, AgentContinuationInput as m, AgentCredentialBroker as n, AgentDispatchContext as o, AgentDispatchPolicy as p, AgentDispatchPolicyDecision as q, AgentDispatchPolicyInput as r, AgentDispatchabilitySnapshot as s, AgentDispatchabilityStatus as t, AgentEffectDeclaration as u, AgentExecutor as v, AgentExecutorEvent as w, AgentExecutorFactory as x, AgentExecutorFactoryContext as y, AgentExecutorPlane as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aR as KodaXInputArtifact } from './types.d-
|
|
2
|
-
import {
|
|
1
|
+
import { aR as KodaXInputArtifact } from './types.d-D2frCRaY.js';
|
|
2
|
+
import { S as KodaXTaskResultMetadata } from './types.d-CO_ZkmOd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @kodax-ai/agent/messaging — Message queue types
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { I as KodaXContextTokenSnapshot, ad as KodaXSkillDynamicContextPolicy, r as KodaXAgentMode, a0 as KodaXRepoIntelligenceMode, X as KodaXOptions, ae as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-
|
|
3
|
-
import {
|
|
4
|
-
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-
|
|
1
|
+
import { k as KodaXMessage, F as KodaXReasoningMode, d as KodaXCustomProviderConfig, p as KodaXProviderCapabilityProfile } from './types.d-CO_ZkmOd.js';
|
|
2
|
+
import { I as KodaXContextTokenSnapshot, ad as KodaXSkillDynamicContextPolicy, r as KodaXAgentMode, a0 as KodaXRepoIntelligenceMode, X as KodaXOptions, ae as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-Dm-T865v.js';
|
|
3
|
+
import { bg as KodaXSessionUiHistoryItem, b5 as KodaXSessionLineage, aY as KodaXSessionArtifactLedgerEntry, aI as KodaXExtensionSessionState, aH as KodaXExtensionSessionRecord, bc as KodaXSessionRuntimeInfo, dr as WorkflowProcessSource } from './types.d-D2frCRaY.js';
|
|
4
|
+
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-CPDfZyJp.js';
|
|
5
5
|
import * as readline from 'readline';
|
|
6
|
-
import { f as PermissionMode } from './public-api.d-
|
|
6
|
+
import { f as PermissionMode } from './public-api.d-BcKbBy1E.js';
|
|
7
7
|
import { SpawnSyncReturns } from 'child_process';
|
|
8
8
|
|
|
9
9
|
/**
|