@kodax-ai/kodax 0.7.97-beta.2 → 0.7.97-beta.3
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 +96 -0
- package/README.md +55 -2
- package/README_CN.md +37 -1
- package/dist/artifacts/dist/contract.js +1 -1
- package/dist/artifacts/dist/contract.js.map +1 -1
- package/dist/artifacts/dist/document-render.d.ts +1 -1
- package/dist/artifacts/dist/document-render.js +41 -10
- package/dist/artifacts/dist/document-render.js.map +1 -1
- package/dist/artifacts/dist/kodax.js +1 -1
- package/dist/artifacts/dist/kodax.js.map +1 -1
- package/dist/artifacts/dist/libreoffice.d.ts +6 -1
- package/dist/artifacts/dist/libreoffice.js +37 -13
- package/dist/artifacts/dist/libreoffice.js.map +1 -1
- package/dist/artifacts/dist/runtime.js +13 -6
- package/dist/artifacts/dist/runtime.js.map +1 -1
- package/dist/artifacts/skills/artifact-review/SKILL.md +5 -1
- package/dist/chunks/agent-NWQPMZ7B.js +2 -0
- package/dist/chunks/agent-adapter-V3IPADCX.js +2 -0
- package/dist/chunks/argument-completer-VNKHT4X4.js +2 -0
- package/dist/chunks/{bedrock-native-Z5VNWF5U.js → bedrock-native-OEPOBW6W.js} +1 -1
- package/dist/chunks/{chunk-NSR4RW2F.js → chunk-3I2MIS4D.js} +1 -1
- package/dist/chunks/{chunk-RYBUYHDL.js → chunk-3Y5PBEOD.js} +1 -1
- package/dist/chunks/chunk-4FVCMKG2.js +20 -0
- package/dist/chunks/{chunk-F6GJXQNA.js → chunk-4GYXZTOD.js} +7 -7
- package/dist/chunks/{chunk-EISRVOBJ.js → chunk-4Z7ZHL6V.js} +2 -2
- package/dist/chunks/{chunk-W2CWO4PQ.js → chunk-576AAIQM.js} +1 -1
- package/dist/chunks/chunk-5E2P4RYS.js +4 -0
- package/dist/chunks/{chunk-X5M7TLJV.js → chunk-5LFQ5FVY.js} +1 -1
- package/dist/chunks/{chunk-WMMESRP3.js → chunk-6RDMSU4B.js} +1 -1
- package/dist/chunks/{chunk-3CP7AUWY.js → chunk-7BA4TSKC.js} +1 -1
- package/dist/chunks/{chunk-I325ER7D.js → chunk-AUU3N4V4.js} +1 -1
- package/dist/chunks/{chunk-DCE7XQUG.js → chunk-AYDLX2UK.js} +1 -1
- package/dist/chunks/{chunk-D36OIMV7.js → chunk-BP3NAYKY.js} +64 -64
- package/dist/chunks/{chunk-6TITQQAI.js → chunk-BSCSKJNC.js} +230 -229
- package/dist/chunks/{chunk-2HH5AS7E.js → chunk-DAQGOWKD.js} +88 -462
- package/dist/chunks/{chunk-UF3GZ5PO.js → chunk-EZF6ZRCO.js} +1 -1
- package/dist/chunks/chunk-F2TFWNVZ.js +2 -0
- package/dist/chunks/{chunk-53CJDQS2.js → chunk-FVXZ5L33.js} +1 -1
- package/dist/chunks/{chunk-MCDZNQWD.js → chunk-G32BMSHH.js} +75 -71
- package/dist/chunks/chunk-HJLYZ5AX.js +361 -0
- package/dist/chunks/{chunk-P55RJIOG.js → chunk-IOIFCU46.js} +1 -1
- package/dist/chunks/{chunk-DV5YPYLW.js → chunk-IR46ZHXU.js} +1 -1
- package/dist/chunks/chunk-NJDR5EEF.js +6 -0
- package/dist/chunks/{chunk-KDSO7V4O.js → chunk-OC3DQXN6.js} +1 -1
- package/dist/chunks/{chunk-J2L2NK6E.js → chunk-OMVAPRQI.js} +90 -57
- package/dist/chunks/chunk-OXCB2TRF.js +42 -0
- package/dist/chunks/{chunk-C6JGLEYD.js → chunk-P6R6V7EW.js} +1 -1
- package/dist/chunks/{chunk-SK3RRGHJ.js → chunk-PFBZ4ZXO.js} +28 -28
- package/dist/chunks/{chunk-V2XJSFFE.js → chunk-QDE6THC5.js} +1 -1
- package/dist/chunks/{chunk-EPK6EWRI.js → chunk-QRYEP34M.js} +1 -1
- package/dist/chunks/chunk-ROWYE472.js +460 -0
- package/dist/chunks/{chunk-R42S4BLA.js → chunk-SQGESMNC.js} +1 -1
- package/dist/chunks/{chunk-XZSFUGPN.js → chunk-U73VEVMP.js} +1 -1
- package/dist/chunks/{chunk-D425EZGC.js → chunk-V2TG7GNW.js} +1 -1
- package/dist/chunks/{chunk-QSZCR5GC.js → chunk-VRO2CDBY.js} +97 -97
- package/dist/chunks/{chunk-BBZWF2EA.js → chunk-WMQQQY3D.js} +1 -1
- package/dist/chunks/{chunk-JAF2YLZO.js → chunk-X3YYJJTF.js} +2 -2
- package/dist/chunks/{chunk-UL6YIT4M.js → chunk-XYRI6ER5.js} +1 -1
- package/dist/chunks/chunk-YRPB3LID.js +3 -0
- package/dist/chunks/{chunk-5MUVRFMU.js → chunk-ZDAU3LZ2.js} +1 -1
- package/dist/chunks/{chunk-WWPVEK6B.js → chunk-ZP3YSYWM.js} +10 -10
- package/dist/chunks/{client-LTIFNED5.js → client-NJ32JBC3.js} +1 -1
- package/dist/chunks/compaction-config-JBQGU3NO.js +2 -0
- package/dist/chunks/{construction-bootstrap-OAZKGI5Y.js → construction-bootstrap-CM47ZXG7.js} +1 -1
- package/dist/chunks/dist-O6BHIQEP.js +2 -0
- package/dist/chunks/{google-native-WLL27OV7.js → google-native-BV5GKT5B.js} +1 -1
- package/dist/chunks/host-PI5NL4W4.js +2 -0
- package/dist/chunks/{mistral-native-JXPIDDYZ.js → mistral-native-X42JCFZH.js} +1 -1
- package/dist/chunks/{model-DZF6URW3.js → model-MT3WJX76.js} +1 -1
- package/dist/chunks/{permission-YVVMLQ5I.js → permission-YVDVSE6H.js} +1 -1
- package/dist/chunks/{pi-messages-5LLOZH57.js → pi-messages-DVJANXV5.js} +1 -1
- package/dist/chunks/readline-helpers-5JS7UGTE.js +2 -0
- package/dist/chunks/run-manager-Y6VYEWSJ.js +2 -0
- package/dist/chunks/running-session-ANMBA5XV.js +2 -0
- package/dist/chunks/skills-XL2XIBWV.js +2 -0
- package/dist/chunks/{tool-dispatch-MLM3QTSU.js → tool-dispatch-2FOG65FC.js} +1 -1
- package/dist/chunks/{utils-2QNMYRGA.js → utils-XZ22R6VB.js} +1 -1
- package/dist/client-history.js +2 -0
- package/dist/history-turn.js +3 -0
- package/dist/index.d.ts +19 -19
- package/dist/index.js +2 -2
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1472 -1810
- package/dist/kodax_doctor.js +1 -1
- package/dist/maintenance-scheduler.js +2 -0
- package/dist/manual-topics.json +32 -3
- package/dist/native/win32-x64/kodax-windows-sandbox.exe +0 -0
- package/dist/native/win32-x64/kodax-windows-text-transaction.node +0 -0
- package/dist/native/win32-x64/manifest.json +2 -2
- package/dist/one-shot-task.js +1 -1
- package/dist/provider-auth-cli.js +1 -1
- package/dist/runtime-daemon-schema.json +1 -1
- package/dist/sandbox-network-broker.js +93 -441
- package/dist/sdk-a2a.d.ts +13 -13
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +17 -12
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-client.d.ts +6 -6
- package/dist/sdk-client.js +1 -1
- package/dist/sdk-coding.d.ts +17 -17
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +2 -2
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +4 -2
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +13 -13
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +16 -16
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +46 -46
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.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 +87 -435
- package/dist/storage-repair-cli.js +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-CJliu5-D.d.ts → bash-prefix-extractor.d-BghXa_md.d.ts} +9 -3
- package/dist/types-chunks/{capsule.d-EMwSALqK.d.ts → capsule.d-BTlvC5qq.d.ts} +4 -4
- package/dist/types-chunks/{client-contract-B7q69yMA.d.ts → client-contract-B7ZSFKTv.d.ts} +52 -4
- package/dist/types-chunks/{controller.d-C0SAuNKu.d.ts → controller.d-Btu5FDdw.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-D-hPLKaA.d.ts → controller.d-D6rEz5LS.d.ts} +3 -3
- package/dist/types-chunks/{history-retrieval.d-BwEUR9cb.d.ts → history-retrieval.d-B_AriUJp.d.ts} +1 -1
- package/dist/types-chunks/{manifest.d-YE3-AIeO.d.ts → manifest.d-Yyce-hHj.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-BhDU643p.d.ts → public-api.d-BLv3lFmw.d.ts} +9 -4
- package/dist/types-chunks/{review-inbox.d-Bgt46S7L.d.ts → review-inbox.d-yREk25Vf.d.ts} +2 -0
- package/dist/types-chunks/{review-packet.d-ChOfJaNI.d.ts → review-packet.d-xwXxHmML.d.ts} +1 -1
- package/dist/types-chunks/{run-manager.d-ChzguipG.d.ts → run-manager.d-D4sa9JYz.d.ts} +26 -12
- package/dist/types-chunks/{runtime-client-info-P_mRDG7j.d.ts → runtime-client-info-oRMrkHmb.d.ts} +2 -2
- package/dist/types-chunks/{runtime-event-BW5Pla7a.d.ts → runtime-event-BOyaILWg.d.ts} +3 -1
- package/dist/types-chunks/{sdk-runtime-cDe7qmN3.d.ts → sdk-runtime-CYyXmQok.d.ts} +27 -13
- package/dist/types-chunks/{sdk-session-D3pcSbnA.d.ts → sdk-session-D6mS5qgO.d.ts} +6 -3
- package/dist/types-chunks/{skill-invocation-error.d-gsNNDnnt.d.ts → skill-invocation-error.d-Be3qg4JQ.d.ts} +3 -3
- package/dist/types-chunks/{trusted-repl-entry-Bbkd2HlO.d.ts → trusted-repl-entry-YWNc4m-Z.d.ts} +7 -7
- package/dist/types-chunks/{types.d-BlXTogOo.d.ts → types.d-BQ-hbni4.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-CxHyBvO6.d.ts → utils.d-C0F3Uf2X.d.ts} +6 -6
- package/dist/windows-effect-job-programs.json +4 -0
- package/docs/ARTIFACT_SDK.md +3 -3
- package/docs/CLIENT_CONTRACT.md +4 -2
- package/docs/SDK_MIGRATION.md +9 -5
- package/docs/SPACE_SDK_SEAMS.md +12 -1
- package/package.json +4 -3
- package/public_docs/README.md +10 -3
- package/public_docs/sdk/embedder-guide.md +1 -1
- package/dist/chunks/agent-DS7M57WD.js +0 -2
- package/dist/chunks/agent-adapter-TLWGGK3V.js +0 -2
- package/dist/chunks/argument-completer-OGCXKTRQ.js +0 -2
- package/dist/chunks/chunk-GJXOTOZB.js +0 -465
- package/dist/chunks/chunk-KE2NBMAP.js +0 -20
- package/dist/chunks/chunk-OGTRDK4Q.js +0 -359
- package/dist/chunks/chunk-R2HTPDI7.js +0 -2
- package/dist/chunks/chunk-SDPZFH6M.js +0 -4
- package/dist/chunks/chunk-XDMNJW6J.js +0 -42
- package/dist/chunks/compaction-config-ECMOFP5H.js +0 -2
- package/dist/chunks/dist-5J53DGAO.js +0 -2
- package/dist/chunks/host-65E5NM5P.js +0 -2
- package/dist/chunks/readline-helpers-UZXWBRXQ.js +0 -2
- package/dist/chunks/run-manager-ZFACIZM2.js +0 -2
- package/dist/chunks/running-session-Q5Y6A2QV.js +0 -2
- package/dist/chunks/skills-TJP6BLZJ.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a as n,b as o,c as g,d as p}from"./chunks/chunk-
|
|
2
|
+
import{a as n,b as o,c as g,d as p}from"./chunks/chunk-AUU3N4V4.js";import"./chunks/chunk-D5OW7UD5.js";import"./chunks/chunk-45ZP2YHG.js";import"./chunks/chunk-3I2MIS4D.js";import"./chunks/chunk-5E2P4RYS.js";import"./chunks/chunk-DAQGOWKD.js";import"./chunks/chunk-OMVAPRQI.js";import"./chunks/chunk-OC3DQXN6.js";import"./chunks/chunk-PFBZ4ZXO.js";import"./chunks/chunk-52EN2777.js";import"./chunks/chunk-6RDMSU4B.js";import"./chunks/chunk-QP47JIWP.js";import"./chunks/chunk-EZF6ZRCO.js";import"./chunks/chunk-4FVCMKG2.js";import"./chunks/chunk-V5RCDBKU.js";import"./chunks/chunk-KDLOPBFZ.js";import{a as t}from"./chunks/chunk-V4WSBIXB.js";import S from"node:fs";import s from"node:path";function a(e){let r;try{let i=s.resolve(e);if(S.statSync(i).size>256*1024)throw new Error("Oversized maintenance request.");if(r=S.readFileSync(i,"utf8"),Buffer.byteLength(r)>256*1024)throw new Error("Oversized maintenance request.")}catch{throw new Error("Unable to read the storage maintenance request file.")}try{return JSON.parse(r)}catch{throw new Error("Invalid storage maintenance request JSON; original files retained.")}}t(a,"request");async function f(e){if([e.inspectStorage,e.repairStorage,e.verifyStorage].filter(Boolean).length!==1||e.ping||e.nativeText)throw new Error("Choose exactly one storage inspection, repair or verification action.");let r;e.inspectStorage?r=n(a(e.inspectStorage)):e.repairStorage?r=await g(a(e.repairStorage),{allWritersStopped:e.writersStopped===!0,...e.repairCandidate?{candidate:o(s.resolve(e.repairCandidate))}:{}}):r=await p(a(e.verifyStorage),{allWritersStopped:e.writersStopped===!0,verifiedCurrentState:e.verifiedCurrentState===!0}),process.stdout.write(`${JSON.stringify(r,null,2)}
|
|
3
3
|
`)}t(f,"runStorageRepairCli");export{f as runStorageRepairCli};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { af as KodaXGoalState, ax as KodaXSessionLineage, ae as KodaXGoalEventType, aH as KodaXSessionStorage, k as AgentActorStore, P as AgentTurnExecutor, p as AgentBudgetPort, b as AgentActorOwner, a as AgentActorClient, v as AgentExecutionInput, x as AgentExecutionResult, Q as AgentTurnRef, M as AgentSpawnInput, H as AgentMutationOptions, y as AgentFollowupResult, ai as KodaXJsonValue, aa as KodaXExtensionSessionRecord, aG as KodaXSessionScope, ab as KodaXExtensionSessionState, a$ as MemoryContextIdentity, bb as MemoryPack, br as MemoryReviewPlan, al as KodaXMemoryOutcomeDigest, bs as MemoryReviewRunner, ao as KodaXSessionArtifactLedgerEntry, bC as SessionErrorMetadata } from './review-inbox.d-
|
|
1
|
+
import { af as KodaXGoalState, ax as KodaXSessionLineage, ae as KodaXGoalEventType, aH as KodaXSessionStorage, k as AgentActorStore, P as AgentTurnExecutor, p as AgentBudgetPort, b as AgentActorOwner, t as AgentEvent, a as AgentActorClient, v as AgentExecutionInput, x as AgentExecutionResult, Q as AgentTurnRef, M as AgentSpawnInput, H as AgentMutationOptions, y as AgentFollowupResult, ai as KodaXJsonValue, aa as KodaXExtensionSessionRecord, aG as KodaXSessionScope, ab as KodaXExtensionSessionState, a$ as MemoryContextIdentity, bb as MemoryPack, br as MemoryReviewPlan, al as KodaXMemoryOutcomeDigest, bs as MemoryReviewRunner, ao as KodaXSessionArtifactLedgerEntry, bC as SessionErrorMetadata } from './review-inbox.d-yREk25Vf.js';
|
|
2
2
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
3
3
|
import { ah as KodaXTokenUsage, v as KodaXMessage, ak as KodaXToolResultBlock, al as KodaXToolResultContentItem, aj as KodaXToolDefinition, ar as KodaXWireReasoningEffort, U as KodaXReasoningMode, r as KodaXHarnessProfile, X as KodaXReasoningResolution, f as KodaXChildFanoutClass, a9 as KodaXTaskRoutingDecision, W as KodaXReasoningRequest, ab as KodaXTaskWorkIntent, $ as KodaXReviewScale, a5 as KodaXTaskComplexity, aa as KodaXTaskType, a0 as KodaXRiskLevel, k as KodaXExecutionMode } from './types.d-Bi8iUd6x.js';
|
|
4
|
-
import { i as AgentMessage, b5 as StopHookFn, f as AgentControllerHealth, d as Agent, M as GuardrailPermissionIntent, aK as RunnerToolContext, K as GuardrailContext, ad as ManagedRunChildProcessReference, I as Guardrail, x as DiscoveredInstance, at as QueuedMessage, bl as UnifiedLearningReviewRunner } from './controller.d-
|
|
4
|
+
import { i as AgentMessage, b5 as StopHookFn, f as AgentControllerHealth, d as Agent, M as GuardrailPermissionIntent, aK as RunnerToolContext, K as GuardrailContext, ad as ManagedRunChildProcessReference, I as Guardrail, x as DiscoveredInstance, at as QueuedMessage, bl as UnifiedLearningReviewRunner } from './controller.d-D6rEz5LS.js';
|
|
5
5
|
import { a as ProviderCredentialLeaseAccess } from './provider-credential-context.d-Dw-sWcnu.js';
|
|
6
|
-
import { x as AgentExecutorPlaneBinding, b6 as WorkflowEventCorrelation, a8 as CompactionUpdate, a5 as CompactionReport, bn as WorkflowProcessEvent, b5 as WorkflowEvent, _ as AskUserQuestionOptions, W as AskUserAnswer, a0 as AskUserUnanswered, Y as AskUserMultiOptions, an as KodaXInputArtifact, b9 as WorkflowIsolation } from './types.d-
|
|
6
|
+
import { x as AgentExecutorPlaneBinding, b6 as WorkflowEventCorrelation, a8 as CompactionUpdate, a5 as CompactionReport, bn as WorkflowProcessEvent, b5 as WorkflowEvent, _ as AskUserQuestionOptions, W as AskUserAnswer, a0 as AskUserUnanswered, Y as AskUserMultiOptions, an as KodaXInputArtifact, b9 as WorkflowIsolation } from './types.d-BQ-hbni4.js';
|
|
7
7
|
import * as node_child_process from 'node:child_process';
|
|
8
8
|
import { d as SkillDynamicContextExecutor, I as ISkillRegistry, S as Skill, h as SkillHooks } from './types.d-D8qQjMeo.js';
|
|
9
9
|
import { K as KodaXLlmTimeoutConfig, b as CostTracker } from './cost-tracker.d-D1CTx-IO.js';
|
|
@@ -898,6 +898,7 @@ interface CodingActorSessionOptions {
|
|
|
898
898
|
readonly owner?: AgentActorOwner;
|
|
899
899
|
readonly isOwnerAlive?: (owner: AgentActorOwner) => boolean | Promise<boolean>;
|
|
900
900
|
readonly onHealthChanged?: (health: AgentControllerHealth) => void;
|
|
901
|
+
readonly onEventCommitted?: (event: AgentEvent) => void | Promise<void>;
|
|
901
902
|
}
|
|
902
903
|
interface CodingActorEnvironment {
|
|
903
904
|
readonly parentCtx: KodaXToolExecutionContext;
|
|
@@ -960,6 +961,7 @@ declare class CodingActorSession {
|
|
|
960
961
|
registerTurnExecutor(key: string, executor: AgentTurnExecutor): () => void;
|
|
961
962
|
waitForAgentCapacity(signal?: AbortSignal): Promise<boolean>;
|
|
962
963
|
close(reason?: string): Promise<void>;
|
|
964
|
+
quiesceTurn(turnId: string, reason?: string): Promise<void>;
|
|
963
965
|
quiesce(reason?: string, preservedTurnIds?: ReadonlySet<string>): Promise<void>;
|
|
964
966
|
disposeAfterStoreRemoval(reason?: string): void;
|
|
965
967
|
}
|
|
@@ -3227,6 +3229,8 @@ interface KodaXContextOptions {
|
|
|
3227
3229
|
workflowIntent?: 'explicit';
|
|
3228
3230
|
/** Project root used for project-scoped prompts, permissions, and path policy. */
|
|
3229
3231
|
gitRoot?: string | null;
|
|
3232
|
+
/** Host-owned origin of project Markdown rules across isolated worktrees. */
|
|
3233
|
+
projectRulesRoot?: string;
|
|
3230
3234
|
/**
|
|
3231
3235
|
* Explicit working directory used for prompt context, relative tool paths,
|
|
3232
3236
|
* and shell execution. Defaults to `gitRoot`, then `process.cwd()`.
|
|
@@ -4036,6 +4040,8 @@ interface KodaXToolExecutionContext {
|
|
|
4036
4040
|
loadSessionHistory?: () => Promise<KodaXSessionLineage | null>;
|
|
4037
4041
|
/** Git root directory - Git 鏍圭洰褰?*/
|
|
4038
4042
|
gitRoot?: string;
|
|
4043
|
+
/** Host-owned origin of project Markdown rules across isolated worktrees. */
|
|
4044
|
+
projectRulesRoot?: string;
|
|
4039
4045
|
/**
|
|
4040
4046
|
* FEATURE_247 (R7) — runtime-resolved session id for the run that owns this
|
|
4041
4047
|
* tool call. Lets host-registered tools (Space artifact/source/KB) attribute a
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { v as KodaXMessage } from './types.d-Bi8iUd6x.js';
|
|
2
|
-
import { i as AgentMessage, aR as SessionEntry, aP as Session, aS as SessionExtension } from './controller.d-
|
|
3
|
-
import { a4 as CompactionDetails, aj as FileOperations, bd as WorkflowModelHint, be as WorkflowModule } from './types.d-
|
|
4
|
-
import { ax as KodaXSessionLineage, ai as KodaXJsonValue, a9 as KodaXCompactMemorySeed, at as KodaXSessionEntry, aI as KodaXSessionTreeNode, aw as KodaXSessionLabelEntry, av as KodaXSessionGoalEntry, aq as KodaXSessionClientNoticeEntry, aE as KodaXSessionRewindMarkerEntry, ay as KodaXSessionMemoryOutcomeDigestEntry, az as KodaXSessionMemoryReviewReceiptEntry, aC as KodaXSessionNavigationOptions, ao as KodaXSessionArtifactLedgerEntry } from './review-inbox.d-
|
|
5
|
-
import { b as WorkflowScriptManifest } from './manifest.d-
|
|
2
|
+
import { i as AgentMessage, aR as SessionEntry, aP as Session, aS as SessionExtension } from './controller.d-D6rEz5LS.js';
|
|
3
|
+
import { a4 as CompactionDetails, aj as FileOperations, bd as WorkflowModelHint, be as WorkflowModule } from './types.d-BQ-hbni4.js';
|
|
4
|
+
import { ax as KodaXSessionLineage, ai as KodaXJsonValue, a9 as KodaXCompactMemorySeed, at as KodaXSessionEntry, aI as KodaXSessionTreeNode, aw as KodaXSessionLabelEntry, av as KodaXSessionGoalEntry, aq as KodaXSessionClientNoticeEntry, aE as KodaXSessionRewindMarkerEntry, ay as KodaXSessionMemoryOutcomeDigestEntry, az as KodaXSessionMemoryReviewReceiptEntry, aC as KodaXSessionNavigationOptions, ao as KodaXSessionArtifactLedgerEntry } from './review-inbox.d-yREk25Vf.js';
|
|
5
|
+
import { b as WorkflowScriptManifest } from './manifest.d-Yyce-hHj.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @kodax-ai/agent Constants
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ai as KodaXJsonValue, ab as KodaXExtensionSessionState, aa as KodaXExtensionSessionRecord, ao as KodaXSessionArtifactLedgerEntry, bC as SessionErrorMetadata, aR as MemoryActionProposal, aU as MemoryApplyResult, bi as MemoryRejectResult, bg as MemoryRefFilter, b7 as MemoryItemRef, aZ as MemoryBodySnapshot, bj as MemoryRememberInput, bk as MemoryRememberResult, b9 as MemoryLifecycleOperationResult, bz as PendingEpisodeReviewSummary, af as KodaXGoalState, at as KodaXSessionEntry, N as AgentTreeSnapshot, s as AgentDetail, M as AgentSpawnInput, Q as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, I as AgentOutput, t as AgentEvent } from './review-inbox.d-
|
|
1
|
+
import { ai as KodaXJsonValue, ab as KodaXExtensionSessionState, aa as KodaXExtensionSessionRecord, ao as KodaXSessionArtifactLedgerEntry, bC as SessionErrorMetadata, aR as MemoryActionProposal, aU as MemoryApplyResult, bi as MemoryRejectResult, bg as MemoryRefFilter, b7 as MemoryItemRef, aZ as MemoryBodySnapshot, bj as MemoryRememberInput, bk as MemoryRememberResult, b9 as MemoryLifecycleOperationResult, bz as PendingEpisodeReviewSummary, af as KodaXGoalState, at as KodaXSessionEntry, N as AgentTreeSnapshot, s as AgentDetail, M as AgentSpawnInput, Q as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, I as AgentOutput, t as AgentEvent } from './review-inbox.d-yREk25Vf.js';
|
|
2
2
|
import { P as ProviderRequestObservation } from './provider-request-observation.d-CNe9vse3.js';
|
|
3
|
-
import { b9 as WorkflowIsolation, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aQ as LearningSurfaceSnapshot, aJ as LearningEvent, aP as LearningSubscribeOptions, a5 as CompactionReport, bu as WorkflowProcessSnapshot, _ as AskUserQuestionOptions, Y as AskUserMultiOptions, an as KodaXInputArtifact, aX as ManagedWorkflowStatus, bn as WorkflowProcessEvent, W as AskUserAnswer, ai as ExternalAgentRegistrationSummary, ah as ExternalAgentRegistration, J as AgentRegistrationMutationOptions, I as AgentRegistrationEnabledMutationOptions } from './types.d-
|
|
3
|
+
import { b9 as WorkflowIsolation, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aQ as LearningSurfaceSnapshot, aJ as LearningEvent, aP as LearningSubscribeOptions, a5 as CompactionReport, bu as WorkflowProcessSnapshot, _ as AskUserQuestionOptions, Y as AskUserMultiOptions, an as KodaXInputArtifact, aX as ManagedWorkflowStatus, bn as WorkflowProcessEvent, W as AskUserAnswer, ai as ExternalAgentRegistrationSummary, ah as ExternalAgentRegistration, J as AgentRegistrationMutationOptions, I as AgentRegistrationEnabledMutationOptions } from './types.d-BQ-hbni4.js';
|
|
4
4
|
import { K as KodaXTaskResultReport } from './task-results.d-XMdWq0eA.js';
|
|
5
5
|
import { v as KodaXMessage, a9 as KodaXTaskRoutingDecision, aa as KodaXTaskType, ab as KodaXTaskWorkIntent, a5 as KodaXTaskComplexity, a0 as KodaXRiskLevel, r as KodaXHarnessProfile, k as KodaXExecutionMode, f as KodaXChildFanoutClass, ar as KodaXWireReasoningEffort, ah as KodaXTokenUsage } from './types.d-Bi8iUd6x.js';
|
|
6
6
|
|
|
@@ -1016,6 +1016,8 @@ interface KodaXProductClient {
|
|
|
1016
1016
|
readItem(sessionId: string, itemId: string, options?: ClientItemReadOptions): Promise<ClientItemContent | null>;
|
|
1017
1017
|
/** Newest page of the canonical conversation first; older pages via nextCursor. */
|
|
1018
1018
|
readHistory(sessionId: string, options?: ClientHistoryReadOptions): Promise<ClientHistoryPage>;
|
|
1019
|
+
/** Resolve a complete saved conversational turn on demand; never runs a model. */
|
|
1020
|
+
resolveHistoryTurn(sessionId: string, selector: ClientHistoryTurnSelector): Promise<ClientHistoryTurnResolution>;
|
|
1019
1021
|
/** Full body behind one oversized history entry, chunked like readItem. */
|
|
1020
1022
|
readHistoryEntry(sessionId: string, itemId: string, options?: ClientItemReadOptions): Promise<ClientItemContent | null>;
|
|
1021
1023
|
/** Search the whole Session history; entryIndex values are stable within the returned revision. */
|
|
@@ -1325,8 +1327,49 @@ interface ClientHistoryReadOptions {
|
|
|
1325
1327
|
/** Cursor from a previous page's nextCursor; omit to read the newest page. */
|
|
1326
1328
|
readonly cursor?: string;
|
|
1327
1329
|
readonly limit?: number;
|
|
1330
|
+
/** Read a window ending at a proven saved source. Mutually exclusive with cursor. */
|
|
1331
|
+
readonly around?: {
|
|
1332
|
+
readonly searchItemId: string;
|
|
1333
|
+
} | {
|
|
1334
|
+
readonly historyBoundary: ClientHistoryBoundary;
|
|
1335
|
+
};
|
|
1328
1336
|
}
|
|
1337
|
+
type ClientHistoryTurnSelector = {
|
|
1338
|
+
readonly kind: 'latest' | 'previous';
|
|
1339
|
+
} | {
|
|
1340
|
+
readonly kind: 'index';
|
|
1341
|
+
readonly index: number;
|
|
1342
|
+
} | {
|
|
1343
|
+
readonly kind: 'item';
|
|
1344
|
+
readonly itemId: string;
|
|
1345
|
+
readonly source: 'history';
|
|
1346
|
+
/** The original page/search revision, never a local UI generation. */
|
|
1347
|
+
readonly revision: string;
|
|
1348
|
+
} | {
|
|
1349
|
+
readonly kind: 'item';
|
|
1350
|
+
readonly itemId: string;
|
|
1351
|
+
readonly source: 'view';
|
|
1352
|
+
/** The item's historyBoundary.sourceRevision, when available. */
|
|
1353
|
+
readonly revision?: string;
|
|
1354
|
+
/** Exact identities copied from this observed SDK item, for a newly saved source. */
|
|
1355
|
+
readonly inputId?: string;
|
|
1356
|
+
readonly outputId?: string;
|
|
1357
|
+
};
|
|
1358
|
+
type ClientHistoryTurnResolution = {
|
|
1359
|
+
readonly status: 'ready';
|
|
1360
|
+
readonly historyBoundary: ClientHistoryBoundary;
|
|
1361
|
+
readonly expectedHead: string | null;
|
|
1362
|
+
readonly turnIndex: number;
|
|
1363
|
+
readonly excerpt: string;
|
|
1364
|
+
readonly hasLaterTurn: boolean;
|
|
1365
|
+
} | {
|
|
1366
|
+
readonly status: 'unavailable' | 'stale';
|
|
1367
|
+
readonly reason: string;
|
|
1368
|
+
};
|
|
1329
1369
|
interface ClientHistoryPage {
|
|
1370
|
+
readonly locatedBoundaryId?: string;
|
|
1371
|
+
/** Newer neighbor of a located window. */
|
|
1372
|
+
readonly newerCursor?: string;
|
|
1330
1373
|
/** This page's entries projected like view items, oldest first. */
|
|
1331
1374
|
readonly items: readonly ClientViewItem[];
|
|
1332
1375
|
/** Conversation revision this page was read at. */
|
|
@@ -1439,7 +1482,7 @@ interface ClientStatisticsService {
|
|
|
1439
1482
|
interface ClientExitRecovery {
|
|
1440
1483
|
readonly state: 'ready' | 'pending' | 'blocked';
|
|
1441
1484
|
readonly checkedAt: string;
|
|
1442
|
-
readonly reason: 'host_shutdown_verified' | 'client_cleanup_verified' | 'client_cleanup_pending' | 'client_cleanup_unknown' | 'cleanup_failed' | 'host_protected' | 'daemon_active' | 'containment_active' | 'containment_unavailable' | 'outcome_missing' | 'owner_identity_unverified' | 'owner_identity_mismatch';
|
|
1485
|
+
readonly reason: 'host_shutdown_verified' | 'host_generation_terminated' | 'client_cleanup_verified' | 'client_cleanup_pending' | 'client_cleanup_unknown' | 'cleanup_failed' | 'host_protected' | 'daemon_active' | 'containment_active' | 'containment_unavailable' | 'outcome_missing' | 'owner_identity_unverified' | 'owner_identity_mismatch';
|
|
1443
1486
|
readonly nextAction: 'start_or_connect' | 'retry_exit' | 'retry_verification' | 'inspect_failure';
|
|
1444
1487
|
}
|
|
1445
1488
|
interface ClientExitReceipt {
|
|
@@ -1476,6 +1519,9 @@ interface ClientExitReceipt {
|
|
|
1476
1519
|
readonly processContainment?: 'windows-job';
|
|
1477
1520
|
readonly supervisorPid?: number;
|
|
1478
1521
|
readonly supervisorProcessStartIdentity?: string;
|
|
1522
|
+
/** Verified containment evidence for crash recovery, distinct from successful cleanup. */
|
|
1523
|
+
readonly windowsJobName?: string;
|
|
1524
|
+
readonly windowsBootIdentity?: string;
|
|
1479
1525
|
};
|
|
1480
1526
|
readonly cleanup?: 'succeeded' | 'failed';
|
|
1481
1527
|
readonly message?: string;
|
|
@@ -1865,6 +1911,8 @@ interface ClientRunStopReceipt {
|
|
|
1865
1911
|
interface ClientSessionSettingsSnapshot {
|
|
1866
1912
|
readonly revision: number;
|
|
1867
1913
|
readonly value: ClientSessionSettings;
|
|
1914
|
+
/** Host fact: work mode is fixed after first admission or inherited conversation history. */
|
|
1915
|
+
readonly workModeLocked?: boolean;
|
|
1868
1916
|
}
|
|
1869
1917
|
interface ClientSessionCancelInput {
|
|
1870
1918
|
readonly sessionId: string;
|
|
@@ -2185,4 +2233,4 @@ interface ClientAutoModeStats {
|
|
|
2185
2233
|
readonly breaker: CircuitBreaker;
|
|
2186
2234
|
}
|
|
2187
2235
|
|
|
2188
|
-
export type {
|
|
2236
|
+
export type { ClientModelSelection as $, ClientHistoryTurnSelector as A, ClientHostStartupPhase as B, ClientAutoModeStats as C, ClientImageAttachmentContent as D, ClientInputAcceptance as E, ClientInputAdmissionError as F, ClientInteraction as G, ClientInteractionResponse as H, ClientInteractionResult as I, ClientItemContent as J, ClientItemReadOptions as K, ClientLearningService as L, ClientLearningSubscription as M, ClientLifecycleService as N, ClientLineageEntry as O, ClientLineageLabelInput as P, ClientLineageSummary as Q, ClientLoadedExtension as R, ClientMcpServerConfig as S, ClientMcpServerStatus as T, ClientMcpTool as U, ClientMemoryController as V, ClientMemoryPlane as W, ClientMemoryProposal as X, ClientMemoryRebuildResult as Y, ClientMemoryService as Z, ClientModelCatalog as _, ClientCapabilityProbeResult as a, ClientObservation as a0, ClientObservationStatus as a1, ClientObserveOptions as a2, ClientPermissionDecision as a3, ClientPermissionGrant as a4, ClientPermissionGrants as a5, ClientPermissionInteractionOptions as a6, ClientPromoteSessionInput as a7, ClientProviderInfo as a8, ClientProviderRequestFact as a9, ClientStatisticsService as aA, ClientSubmitInput as aB, ClientToolExecutionFact as aC, ClientToolInvocationInput as aD, ClientUsageTotals as aE, ClientViewItem as aF, ClientWorkflowEvent as aG, ClientWorkflowProcess as aH, ClientWorkflowRun as aI, ClientWorkflowStartInput as aJ, ClientWorkflowStartMetadata as aK, ClientWorkflowStartResult as aL, ClientWorkflowStartSource as aM, KodaXAgentProfile as aN, KodaXEffectiveTaskConfig as aO, KodaXProductClient as aP, KodaXRuntimeVerificationContract as aQ, KodaXTaskCapabilityHint as aR, KodaXTaskVerificationContract as aS, KodaXTaskVerificationCriterion as aT, KodaXToolVisibilityMeta as aU, KodaXToolVisibilityPolicy as aV, ClientQueuedInput as aa, ClientRepoIntelligenceHostStatus as ab, ClientRepoIntelligenceStatus as ac, ClientReviewInput as ad, ClientReviewService as ae, ClientRunFailureDetail as af, ClientRunOutcome as ag, ClientRunStatus as ah, ClientRunStopReceipt as ai, ClientRunTerminal as aj, ClientSession as ak, ClientSessionActivity as al, ClientSessionCancelInput as am, ClientSessionCancelReceipt as an, ClientSessionFilter as ao, ClientSessionForkInput as ap, ClientSessionGoal as aq, ClientSessionPromotionResult as ar, ClientSessionRecoverInput as as, ClientSessionSettings as at, ClientSessionSettingsPatch as au, ClientSessionSettingsSnapshot as av, ClientSessionSummary as aw, ClientSessionView as ax, ClientSkillInfo as ay, ClientStartupProgress as az, ClientCommandInfo as b, ClientCommandInput as c, ClientCommandResult as d, ClientCommandService as e, ClientCompactSessionResult as f, ClientConfig as g, ClientContextBudget as h, ClientContextBudgetFact as i, ClientCreateSessionInput as j, ClientEffectiveConfigValue as k, ClientEffectiveExecutionConfig as l, ClientExecutionFactsPage as m, ClientExecutionTarget as n, ClientExitReceipt as o, ClientExitRecovery as p, ClientExtensionDiagnostics as q, ClientExtensionSource as r, ClientGoalCreateInput as s, ClientHistoryBoundary as t, ClientHistoryIssue as u, ClientHistoryPage as v, ClientHistoryReadOptions as w, ClientHistorySearchInput as x, ClientHistorySearchResult as y, ClientHistoryTurnResolution as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a$ as MemoryContextIdentity, b7 as MemoryItemRef, ax as KodaXSessionLineage, ao as KodaXSessionArtifactLedgerEntry, b3 as MemoryEvent, bs as MemoryReviewRunner, ba as MemoryManagementController, aR as MemoryActionProposal, aU as MemoryApplyResult, bi as MemoryRejectResult, bg as MemoryRefFilter, aZ as MemoryBodySnapshot, bj as MemoryRememberInput, bk as MemoryRememberResult, b9 as MemoryLifecycleOperationResult, b1 as MemoryCuratorInput, b6 as MemoryGovernanceReport, aX as MemoryAutoCuratorInput, aY as MemoryAutoCuratorResult, bd as MemoryPackInput, bb as MemoryPack, bn as MemoryReviewInput, br as MemoryReviewPlan, al as KodaXMemoryOutcomeDigest, bo as MemoryReviewModelInput, b2 as MemoryEpisodeReviewResult } from './review-inbox.d-
|
|
1
|
+
import { a$ as MemoryContextIdentity, b7 as MemoryItemRef, ax as KodaXSessionLineage, ao as KodaXSessionArtifactLedgerEntry, b3 as MemoryEvent, bs as MemoryReviewRunner, ba as MemoryManagementController, aR as MemoryActionProposal, aU as MemoryApplyResult, bi as MemoryRejectResult, bg as MemoryRefFilter, aZ as MemoryBodySnapshot, bj as MemoryRememberInput, bk as MemoryRememberResult, b9 as MemoryLifecycleOperationResult, b1 as MemoryCuratorInput, b6 as MemoryGovernanceReport, aX as MemoryAutoCuratorInput, aY as MemoryAutoCuratorResult, bd as MemoryPackInput, bb as MemoryPack, bn as MemoryReviewInput, br as MemoryReviewPlan, al as KodaXMemoryOutcomeDigest, bo as MemoryReviewModelInput, b2 as MemoryEpisodeReviewResult } from './review-inbox.d-yREk25Vf.js';
|
|
2
2
|
|
|
3
3
|
interface CreateMemoryControlPlaneOptions {
|
|
4
4
|
readonly cwd: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { aj as KodaXToolDefinition, v as KodaXMessage, ar as KodaXWireReasoningEffort, U as KodaXReasoningMode, al as KodaXToolResultContentItem, K as KodaXAnthropicHistory, a as KodaXAssistantBlock, ad as KodaXThinkingBlock, Y as KodaXRedactedThinkingBlock, a7 as KodaXTaskResultMetadata } from './types.d-Bi8iUd6x.js';
|
|
2
2
|
import { a as KodaXContextOverflowError } from './errors.d-D73qdYbS.js';
|
|
3
3
|
import { ChildProcess } from 'node:child_process';
|
|
4
|
-
import { an as KodaXInputArtifact, ay as LearnedCapabilityRecord, aJ as LearningEvent, aI as LearningClientRecord, aB as LearnedCapabilityScope, ax as LearnedCapabilityProvenance, aA as LearnedCapabilityRecordV2, ar as LearnedCapabilityArtifact } from './types.d-
|
|
5
|
-
import { bo as MemoryReviewModelInput, al as KodaXMemoryOutcomeDigest, br as MemoryReviewPlan, A as AgentActor, O as AgentTurn, q as AgentCapabilities, P as AgentTurnExecutor, w as AgentExecutionKind, p as AgentBudgetPort, k as AgentActorStore, b as AgentActorOwner, t as AgentEvent, F as AgentMailboxMessage, a as AgentActorClient, x as AgentExecutionResult, M as AgentSpawnInput, H as AgentMutationOptions, Q as AgentTurnRef, r as AgentDataClassification, G as AgentMetadataValue, y as AgentFollowupResult, B as AgentInterruptScope, N as AgentTreeSnapshot, s as AgentDetail, I as AgentOutput } from './review-inbox.d-
|
|
4
|
+
import { an as KodaXInputArtifact, ay as LearnedCapabilityRecord, aJ as LearningEvent, aI as LearningClientRecord, aB as LearnedCapabilityScope, ax as LearnedCapabilityProvenance, aA as LearnedCapabilityRecordV2, ar as LearnedCapabilityArtifact } from './types.d-BQ-hbni4.js';
|
|
5
|
+
import { bo as MemoryReviewModelInput, al as KodaXMemoryOutcomeDigest, br as MemoryReviewPlan, A as AgentActor, O as AgentTurn, q as AgentCapabilities, P as AgentTurnExecutor, w as AgentExecutionKind, p as AgentBudgetPort, k as AgentActorStore, b as AgentActorOwner, t as AgentEvent, F as AgentMailboxMessage, a as AgentActorClient, x as AgentExecutionResult, M as AgentSpawnInput, H as AgentMutationOptions, Q as AgentTurnRef, r as AgentDataClassification, G as AgentMetadataValue, y as AgentFollowupResult, B as AgentInterruptScope, N as AgentTreeSnapshot, s as AgentDetail, I as AgentOutput } from './review-inbox.d-yREk25Vf.js';
|
|
6
6
|
|
|
7
7
|
declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
|
|
8
8
|
declare const CONTEXT_SAFETY_RATIO = 0.03;
|
|
@@ -2782,7 +2782,7 @@ declare class AgentActorController {
|
|
|
2782
2782
|
*/
|
|
2783
2783
|
disposeAfterStoreRemoval(reason?: string): void;
|
|
2784
2784
|
/** Interrupts eligible local execution while retaining the durable owner fence. */
|
|
2785
|
-
quiesce(reason?: string, preservedTurnIds?: ReadonlySet<string
|
|
2785
|
+
quiesce(reason?: string, preservedTurnIds?: ReadonlySet<string>, onlyTurnId?: string): Promise<void>;
|
|
2786
2786
|
/** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
|
|
2787
2787
|
shutdown(reason?: string): Promise<void>;
|
|
2788
2788
|
private performShutdown;
|
package/dist/types-chunks/{history-retrieval.d-BwEUR9cb.d.ts → history-retrieval.d-B_AriUJp.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as KodaXMessage } from './types.d-Bi8iUd6x.js';
|
|
2
|
-
import { ax as KodaXSessionLineage } from './review-inbox.d-
|
|
2
|
+
import { ax as KodaXSessionLineage } from './review-inbox.d-yREk25Vf.js';
|
|
3
3
|
|
|
4
4
|
type KodaXSessionHistoryScope = 'compacted' | 'all';
|
|
5
5
|
type KodaXSessionHistorySource = 'user' | 'assistant' | 'system' | 'tool' | 'child_task';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bc as WorkflowMeta } from './types.d-
|
|
1
|
+
import { bc as WorkflowMeta } from './types.d-BQ-hbni4.js';
|
|
2
2
|
|
|
3
3
|
declare const WORKFLOW_PATTERN_IDS: readonly ["classify-and-act", "fan-out-and-synthesize", "adversarial-verification", "generate-and-filter", "tournament", "loop-until-done"];
|
|
4
4
|
type WorkflowPatternId = (typeof WORKFLOW_PATTERN_IDS)[number];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { U as KodaXReasoningMode, v as KodaXMessage } from './types.d-Bi8iUd6x.js';
|
|
2
|
-
import { aQ as LearningSurfaceSnapshot$1, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aJ as LearningEvent, aP as LearningSubscribeOptions, a5 as CompactionReport, a3 as CompactionConfig } from './types.d-
|
|
2
|
+
import { aQ as LearningSurfaceSnapshot$1, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aJ as LearningEvent, aP as LearningSubscribeOptions, a5 as CompactionReport, a3 as CompactionConfig } from './types.d-BQ-hbni4.js';
|
|
3
3
|
import { K as KodaXTaskResultReport } from './task-results.d-XMdWq0eA.js';
|
|
4
|
-
import {
|
|
5
|
-
import { a as BashPrefixExtractor, x as KodaXAgentMode, bp as KodaXWorkMode } from './bash-prefix-extractor.d-
|
|
6
|
-
import { as as KodaXSessionData, ax as KodaXSessionLineage, aC as KodaXSessionNavigationOptions, aF as KodaXSessionRuntimeInfo, aH as KodaXSessionStorage, aa as KodaXExtensionSessionRecord, at as KodaXSessionEntry, ao as KodaXSessionArtifactLedgerEntry, aJ as KodaXSessionUiHistoryItem, aG as KodaXSessionScope, aD as KodaXSessionPromotionRecord, g as AgentActorSnapshot, c as AgentActorSaveAttempt, ai as KodaXJsonValue } from './review-inbox.d-
|
|
4
|
+
import { at as ClientSessionSettings } from './client-contract-B7ZSFKTv.js';
|
|
5
|
+
import { a as BashPrefixExtractor, x as KodaXAgentMode, bp as KodaXWorkMode } from './bash-prefix-extractor.d-BghXa_md.js';
|
|
6
|
+
import { as as KodaXSessionData, ax as KodaXSessionLineage, aC as KodaXSessionNavigationOptions, aF as KodaXSessionRuntimeInfo, aH as KodaXSessionStorage, aa as KodaXExtensionSessionRecord, at as KodaXSessionEntry, ao as KodaXSessionArtifactLedgerEntry, aJ as KodaXSessionUiHistoryItem, aG as KodaXSessionScope, aD as KodaXSessionPromotionRecord, g as AgentActorSnapshot, c as AgentActorSaveAttempt, ai as KodaXJsonValue } from './review-inbox.d-yREk25Vf.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -669,6 +669,11 @@ type HistoryItemType = "user" | "assistant" | "system" | "tool_group" | "thinkin
|
|
|
669
669
|
* History item base class - 历史项基类
|
|
670
670
|
*/
|
|
671
671
|
interface HistoryItemBase {
|
|
672
|
+
/** Ephemeral canonical provenance supplied by the Host reader; never a display checkpoint identity. */
|
|
673
|
+
historyBoundary?: {
|
|
674
|
+
readonly entryId: string;
|
|
675
|
+
readonly sourceRevision: string;
|
|
676
|
+
};
|
|
672
677
|
/** Canonical task facts used by the Product projection; normal CLI ownership is unchanged. */
|
|
673
678
|
taskResult?: Omit<KodaXTaskResultReport, 'summary'>;
|
|
674
679
|
outputId?: string;
|
|
@@ -641,6 +641,8 @@ interface KodaXSessionPromotionRecord {
|
|
|
641
641
|
readonly tag: string;
|
|
642
642
|
}
|
|
643
643
|
interface KodaXSessionRuntimeInfo {
|
|
644
|
+
/** Permanent first-Run admission fact; independent of retained history. */
|
|
645
|
+
workModeLocked?: boolean;
|
|
644
646
|
readonly sessionPromotion?: KodaXSessionPromotionRecord;
|
|
645
647
|
/** Host-owned task lifetime; delete this Session after its task settles. */
|
|
646
648
|
temporary?: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as McpServersConfig, M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './errors.d-D73qdYbS.js';
|
|
3
3
|
import { b as CostTracker } from './cost-tracker.d-D1CTx-IO.js';
|
|
4
|
-
import { aJ as RunnerToolCall, bd as ToolGuardrail, K as GuardrailContext, O as GuardrailVerdict, I as Guardrail } from './controller.d-
|
|
4
|
+
import { aJ as RunnerToolCall, bd as ToolGuardrail, K as GuardrailContext, O as GuardrailVerdict, I as Guardrail } from './controller.d-D6rEz5LS.js';
|
|
5
5
|
import { v as KodaXMessage } from './types.d-Bi8iUd6x.js';
|
|
6
6
|
import { S as SideQueryDiagnostics } from './side-query.d-UFKdWSw7.js';
|
|
7
|
-
import { c2 as ToolSideEffect, aG as KodaXShellPermissionMode, Y as KodaXGenerationCheckpoint, L as KodaXChildAgentResult, ab as KodaXOptions, T as KodaXContextOptions, w as KodaXActorHost, M as KodaXChildContextBundle, b9 as KodaXToolExecutionContext, N as KodaXChildExecutionResult, c3 as WorkflowHostPolicy, W as KodaXEvents } from './bash-prefix-extractor.d-
|
|
8
|
-
import { b6 as WorkflowEventCorrelation, bF as WorkflowSpawnAgentInput, bM as WorkflowTaskSummaryEventUpdate, a$ as WorkflowAgentBackend, bA as WorkflowProcessTrackerOptions, b5 as WorkflowEvent, b3 as WorkflowArtifactRef, bc as WorkflowMeta, bD as WorkflowRunState, be as WorkflowModule, b1 as WorkflowApproval, bn as WorkflowProcessEvent, b2 as WorkflowApprovalSummary, ba as WorkflowLimits, aW as ManagedWorkflowSnapshot$1, bu as WorkflowProcessSnapshot, bC as WorkflowRunManager$1 } from './types.d-
|
|
9
|
-
import { aH as KodaXSessionStorage, a as AgentActorClient, q as AgentCapabilities, v as AgentExecutionInput, x as AgentExecutionResult } from './review-inbox.d-
|
|
10
|
-
import { b as WorkflowScriptManifest } from './manifest.d-
|
|
7
|
+
import { c2 as ToolSideEffect, aG as KodaXShellPermissionMode, Y as KodaXGenerationCheckpoint, L as KodaXChildAgentResult, ab as KodaXOptions, T as KodaXContextOptions, w as KodaXActorHost, M as KodaXChildContextBundle, b9 as KodaXToolExecutionContext, N as KodaXChildExecutionResult, c3 as WorkflowHostPolicy, W as KodaXEvents } from './bash-prefix-extractor.d-BghXa_md.js';
|
|
8
|
+
import { b6 as WorkflowEventCorrelation, bF as WorkflowSpawnAgentInput, bM as WorkflowTaskSummaryEventUpdate, a$ as WorkflowAgentBackend, bA as WorkflowProcessTrackerOptions, b5 as WorkflowEvent, b3 as WorkflowArtifactRef, bc as WorkflowMeta, bD as WorkflowRunState, be as WorkflowModule, b1 as WorkflowApproval, bn as WorkflowProcessEvent, b2 as WorkflowApprovalSummary, ba as WorkflowLimits, aW as ManagedWorkflowSnapshot$1, bu as WorkflowProcessSnapshot, bC as WorkflowRunManager$1 } from './types.d-BQ-hbni4.js';
|
|
9
|
+
import { aH as KodaXSessionStorage, a as AgentActorClient, q as AgentCapabilities, v as AgentExecutionInput, x as AgentExecutionResult } from './review-inbox.d-yREk25Vf.js';
|
|
10
|
+
import { b as WorkflowScriptManifest } from './manifest.d-Yyce-hHj.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Circuit Breaker — FEATURE_092 Phase 2b.4 (v0.7.33).
|
|
@@ -73,24 +73,36 @@ type KodaXMcpServerConfig = McpServerConfig;
|
|
|
73
73
|
/** Flat map of MCP server configs, keyed under `mcpServers` in config.json. */
|
|
74
74
|
type KodaXMcpServersConfig = McpServersConfig;
|
|
75
75
|
|
|
76
|
+
interface RuleDiagnostic {
|
|
77
|
+
path: string;
|
|
78
|
+
reason: string;
|
|
79
|
+
}
|
|
80
|
+
interface RulesLoadOptions {
|
|
81
|
+
assertReadablePath?: (path: string) => void;
|
|
82
|
+
onDiagnostic?: (diagnostic: RuleDiagnostic) => void;
|
|
83
|
+
}
|
|
84
|
+
|
|
76
85
|
/**
|
|
77
|
-
* AGENTS.md
|
|
86
|
+
* Project instructions from AGENTS.md and scoped Markdown rules.
|
|
78
87
|
*
|
|
79
88
|
* This module implements loading of project-level context rules from AGENTS.md files,
|
|
80
89
|
* inspired by pi-mono's implementation.
|
|
81
90
|
*
|
|
82
|
-
* Priority:
|
|
91
|
+
* Priority: user rules < user AGENTS < project rules < root ... cwd AGENTS < .kodax/AGENTS
|
|
83
92
|
*/
|
|
93
|
+
|
|
84
94
|
interface AgentsFile {
|
|
85
95
|
path: string;
|
|
86
96
|
content: string;
|
|
87
97
|
scope: 'global' | 'project' | 'directory';
|
|
88
98
|
}
|
|
89
|
-
interface LoadAgentsOptions {
|
|
99
|
+
interface LoadAgentsOptions extends RulesLoadOptions {
|
|
90
100
|
/** Pass cwd explicitly for deterministic prompt building; process.cwd() is only a legacy fallback. */
|
|
91
101
|
cwd?: string;
|
|
92
102
|
kodaxDir?: string;
|
|
93
103
|
projectRoot?: string;
|
|
104
|
+
/** Original project root for local fragments inherited by isolated worktrees. */
|
|
105
|
+
projectRulesRoot?: string;
|
|
94
106
|
}
|
|
95
107
|
/**
|
|
96
108
|
* Get KodaX global directory.
|
|
@@ -99,9 +111,11 @@ interface LoadAgentsOptions {
|
|
|
99
111
|
* resolution: programmatic override > KODAX_HOME env > ~/.kodax default).
|
|
100
112
|
*/
|
|
101
113
|
declare function getKodaxGlobalDir(): string;
|
|
114
|
+
/** Clear cached instruction files and rule listings for an explicit reload. */
|
|
115
|
+
declare function clearAgentsLoaderCache(): void;
|
|
102
116
|
/**
|
|
103
|
-
* Load
|
|
104
|
-
*
|
|
117
|
+
* Load AGENTS and Markdown fragments. Empty rules directories preserve the
|
|
118
|
+
* existing AGENTS prompt. Deeper AGENTS can refine project-wide fragments.
|
|
105
119
|
*/
|
|
106
120
|
declare function loadAgentsFiles(options?: LoadAgentsOptions): AgentsFile[];
|
|
107
121
|
/**
|
|
@@ -1253,5 +1267,5 @@ declare function createWorkflowRunManager(deps?: {
|
|
|
1253
1267
|
}, agent?: WorkflowRunManager$1): WorkflowRunManager;
|
|
1254
1268
|
declare function getDefaultWorkflowRunManager(): WorkflowRunManager;
|
|
1255
1269
|
|
|
1256
|
-
export { CLASSIFIER_MAX_OUTPUT_TOKENS as C, DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS as M, DEFAULT_CLASSIFIER_TIMEOUT_MS as N, ERROR_THRESHOLD as P, RECENT_DENIAL_THRESHOLD as a6, RECENT_WINDOW_SIZE as a7,
|
|
1257
|
-
export type { KodaXMcpTransport as $, AbsoluteDenyCheck as A, BuildClassifierPromptInput as B, ClassifierObservedProtocol as D, ClassifierOutputWarningCode as E, ClassifierParseFailureCode as F, ClassifierPrompt as G, ClassifierProtocol as H, ClassifierToolProjectionResolver as I, ClassifyDecision as J, ClassifyOptions as K, CodingWorkflowBackendDeps as L, DenialTracker as O, ExecPolicyCriticalEffect as Q, ExecPolicyDecision as R, ExecPolicyEvaluation as S, ExecPolicyOperation as T, ExecPolicyRejection as U, ExecPolicyRule as V, ExecPolicyRuleInput as W, ExecPolicySource as X, KodaXMcpConnectMode as Y, KodaXMcpServerConfig as Z, KodaXMcpServersConfig as _, AbsoluteDenyMatch as a, LoadAgentsOptions as a0, LoadExecPolicyOptions as a1, LoadExecPolicyResult as a2, ManagedWorkflowRun as a3, ManagedWorkflowSnapshot as a4, ParseExecPolicyResult as a5,
|
|
1270
|
+
export { CLASSIFIER_MAX_OUTPUT_TOKENS as C, DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS as M, DEFAULT_CLASSIFIER_TIMEOUT_MS as N, ERROR_THRESHOLD as P, RECENT_DENIAL_THRESHOLD as a6, RECENT_WINDOW_SIZE as a7, createCodingWorkflowBackend as aA, createDenialTracker as aB, createExecPolicyOperation as aC, createRunGraphWriter as aD, createWorkflowRunManager as aE, emitWorkflowAgentDigest as aF, evaluateExecPolicy as aG, evaluateShellExecPolicy as aH, formatAgentsForPrompt as aI, formatExecPolicyConfigurationError as aJ, formatExecPolicyRejection as aK, getDefaultWorkflowRunManager as aL, getKodaxGlobalDir as aM, loadAgentsFiles as aN, loadExecPolicy as aO, parseClassifierOutput as aP, parseExecPolicy as aQ, recordAllow as aR, recordBlock as aS, recordError as aT, resumeWorkflowGenerationTurn as aU, runWorkflowFromOptions as aV, runWorkflowModule as aW, safeWorkflowArtifactName as aX, shouldFallback as aY, shouldFallback$1 as aZ, tokenizeShellCommand as a_, SYSTEM_WORKFLOW_LIMITS as af, WINDOW_MS as aj, buildApprovalSummary as ar, buildClassifierPrompt as as, checkAbsoluteDeny as at, clampWorkflowLimits as au, classify as av, clearAgentsLoaderCache as aw, collectAllSignals as ax, createAutoModeToolGuardrail as ay, createCircuitBreaker as az, CONSECUTIVE_THRESHOLD as t };
|
|
1271
|
+
export type { KodaXMcpTransport as $, AbsoluteDenyCheck as A, BuildClassifierPromptInput as B, ClassifierObservedProtocol as D, ClassifierOutputWarningCode as E, ClassifierParseFailureCode as F, ClassifierPrompt as G, ClassifierProtocol as H, ClassifierToolProjectionResolver as I, ClassifyDecision as J, ClassifyOptions as K, CodingWorkflowBackendDeps as L, DenialTracker as O, ExecPolicyCriticalEffect as Q, ExecPolicyDecision as R, ExecPolicyEvaluation as S, ExecPolicyOperation as T, ExecPolicyRejection as U, ExecPolicyRule as V, ExecPolicyRuleInput as W, ExecPolicySource as X, KodaXMcpConnectMode as Y, KodaXMcpServerConfig as Z, KodaXMcpServersConfig as _, AbsoluteDenyMatch as a, LoadAgentsOptions as a0, LoadExecPolicyOptions as a1, LoadExecPolicyResult as a2, ManagedWorkflowRun as a3, ManagedWorkflowSnapshot as a4, ParseExecPolicyResult as a5, RuleDiagnostic as a8, RunGraphWriter as a9, RunGraphWriterDeps as aa, RunJsonInput as ab, RunWorkflowFromOptionsInput as ac, RunWorkflowModuleOptions as ad, RunWorkflowModuleOutcome as ae, SignalCollector as ag, TierZeroPatternId as ah, ToolCallSignal as ai, WorkflowChildOptions as ak, WorkflowRunManager as al, WorkflowRunProcessMetadata as am, WorkflowScriptSnapshotInput as an, WorkflowScriptSnapshotRef as ao, WorktreeSweepDeps as ap, WorktreeSweepResult as aq, AbsoluteDenyMiss as b, AbsoluteDenyResult as c, AgentsFile as d, AutoModeAskUser as e, AutoModeAskUserVerdict as f, AutoModeCallAnalyzer as g, AutoModeDecisionDiagnostics as h, AutoModeGuardrailConfig as i, AutoModePermissionBoundary as j, AutoModePermissionOperation as k, AutoModePermissionReview as l, AutoModePermissionTarget as m, AutoModeRulesContext as n, AutoModeRulesDecision as o, AutoModeRulesEvaluator as p, AutoModeSharedState as q, AutoModeStats as r, AutoModeToolGuardrail as s, CircuitBreaker as u, ClassifierAttemptDiagnostics as v, ClassifierAttemptOutcome as w, ClassifierDecision as x, ClassifierFailureKind as y, ClassifierHazard as z };
|
package/dist/types-chunks/{runtime-client-info-P_mRDG7j.d.ts → runtime-client-info-oRMrkHmb.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ai as KodaXJsonValue, M as AgentSpawnInput } from './review-inbox.d-
|
|
1
|
+
import { aN as KodaXAgentProfile, aS as KodaXTaskVerificationContract, aU as KodaXToolVisibilityMeta, aB as ClientSubmitInput, aV as KodaXToolVisibilityPolicy, c as ClientCommandInput, ad as ClientReviewInput, aD as ClientToolInvocationInput, aJ as ClientWorkflowStartInput } from './client-contract-B7ZSFKTv.js';
|
|
2
|
+
import { ai as KodaXJsonValue, M as AgentSpawnInput } from './review-inbox.d-yREk25Vf.js';
|
|
3
3
|
|
|
4
4
|
/** Trusted Main bridge contracts; keep this leaf free of Node and Runtime implementation types. */
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aD as RuntimeEventParseResult } from './sdk-runtime-
|
|
1
|
+
import { aD as RuntimeEventParseResult } from './sdk-runtime-CYyXmQok.js';
|
|
2
2
|
|
|
3
3
|
interface RuntimeDaemonShutdownOutcome {
|
|
4
4
|
readonly version: 1;
|
|
@@ -17,6 +17,8 @@ interface RuntimeDaemonShutdownVerificationOwner {
|
|
|
17
17
|
readonly processContainment?: 'windows-job';
|
|
18
18
|
readonly supervisorPid?: number;
|
|
19
19
|
readonly supervisorProcessStartIdentity?: string;
|
|
20
|
+
readonly windowsJobName?: string;
|
|
21
|
+
readonly windowsBootIdentity?: string;
|
|
20
22
|
}
|
|
21
23
|
interface RuntimeDaemonShutdownVerificationInput {
|
|
22
24
|
readonly configHome: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ba as MemoryManagementController, bz as PendingEpisodeReviewSummary, af as KodaXGoalState, aa as KodaXExtensionSessionRecord, w as AgentExecutionKind, N as AgentTreeSnapshot, s as AgentDetail, M as AgentSpawnInput, Q as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, I as AgentOutput, t as AgentEvent } from './review-inbox.d-
|
|
1
|
+
import { ba as MemoryManagementController, bz as PendingEpisodeReviewSummary, af as KodaXGoalState, aa as KodaXExtensionSessionRecord, w as AgentExecutionKind, N as AgentTreeSnapshot, s as AgentDetail, M as AgentSpawnInput, Q as AgentTurnRef, r as AgentDataClassification, y as AgentFollowupResult, I as AgentOutput, t as AgentEvent } from './review-inbox.d-yREk25Vf.js';
|
|
2
2
|
import { U as KodaXReasoningMode, i as KodaXCustomProviderConfig } from './types.d-Bi8iUd6x.js';
|
|
3
3
|
import { b as KodaXContextOverflowFacts } from './errors.d-D73qdYbS.js';
|
|
4
|
-
import { j as AgentDispatchContext, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aQ as LearningSurfaceSnapshot, aJ as LearningEvent, aP as LearningSubscribeOptions, al as KodaXImageInputArtifact, ao as KodaXInputArtifactSource, ap as KodaXVideoInputArtifact, bu as WorkflowProcessSnapshot, bn as WorkflowProcessEvent, K as AgentRegistrationService, ad as DispatchableAgentQuery, ab as DispatchableAgentListing, G as AgentPreflightInput, H as AgentPreflightResult, s as AgentExecutorFactory, k as AgentDispatchPolicy, i as AgentCredentialBroker, b as AgentArtifactPolicy } from './types.d-
|
|
4
|
+
import { j as AgentDispatchContext, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aQ as LearningSurfaceSnapshot, aJ as LearningEvent, aP as LearningSubscribeOptions, al as KodaXImageInputArtifact, ao as KodaXInputArtifactSource, ap as KodaXVideoInputArtifact, bu as WorkflowProcessSnapshot, bn as WorkflowProcessEvent, K as AgentRegistrationService, ad as DispatchableAgentQuery, ab as DispatchableAgentListing, G as AgentPreflightInput, H as AgentPreflightResult, s as AgentExecutorFactory, k as AgentDispatchPolicy, i as AgentCredentialBroker, b as AgentArtifactPolicy } from './types.d-BQ-hbni4.js';
|
|
5
5
|
import { h as SkillHooks, i as SkillMetadata } from './types.d-D8qQjMeo.js';
|
|
6
6
|
import { a as McpServerConfig } from './config.d-CJy1WENT.js';
|
|
7
7
|
import { t as McpServerStatus, u as McpServerToolList } from './manager.d-BMH8Q6TV.js';
|
|
8
|
-
import { K as KodaXSessionHistoryHit } from './history-retrieval.d-
|
|
9
|
-
import { aP as KodaXSkillInvocationContext, ab as KodaXOptions, aC as KodaXShellExecutionContract, V as KodaXEffectiveTaskConfig, Y as KodaXGenerationCheckpoint, X as KodaXExecutionFailure, ag as KodaXOutputSegmentProjection, ba as KodaXToolSandboxObservationUpdate, b8 as KodaXToolEventMeta, a4 as KodaXManagedTaskStatusEvent, W as KodaXEvents, au as KodaXResult, T as KodaXContextOptions, aj as KodaXOutputSegmentStarted, K as KodaXActivityEventMeta, bl as KodaXTurnStartedEvent, bi as KodaXTurnCompletedEvent, bk as KodaXTurnFailedEvent, bR as RuntimeContextBudgetSnapshot, am as KodaXPromptCacheDiagnosticEvent, bY as RuntimeToolExposurePlan, a0 as KodaXLiveEventMeta, O as KodaXCompactionEndResult, bO as RuntimeCompactionSkippedEvent, R as KodaXContextCompactionFinishedEvent, S as KodaXContextIdentity } from './bash-prefix-extractor.d-
|
|
10
|
-
import { M as KodaXSkillInvocationErrorCode, N as LoadedExtensionDiagnostic, v as ExtensionRuntimeDiagnostics } from './skill-invocation-error.d-
|
|
11
|
-
import { W as ExecPolicyRuleInput, h as AutoModeDecisionDiagnostics, r as AutoModeStats, a4 as ManagedWorkflowSnapshot,
|
|
12
|
-
import { e as ClientCommandService,
|
|
13
|
-
import { l as RuntimeExecutionAuthorization, d as RuntimeClientInfo, q as RuntimeExecutionProfile, p as RuntimeExecutionBindingSnapshot, e as RuntimeCredentialBinding, i as RuntimeCredentialService, o as RuntimeExecutionBindingService, y as RuntimeHostToolService, j as RuntimeDaemonClientType } from './runtime-client-info-
|
|
14
|
-
import { Y as saveConfig, d as CommandInfo } from './utils.d-
|
|
15
|
-
import { n as FullTranscriptSessionData, ak as SessionTranscriptEntry, a5 as SessionConversationHistoryData, a9 as SessionConversationHistoryStatus, a7 as SessionConversationHistoryIssue, a6 as SessionConversationHistoryEntry, e as CompactSessionResult } from './public-api.d-
|
|
8
|
+
import { K as KodaXSessionHistoryHit } from './history-retrieval.d-B_AriUJp.js';
|
|
9
|
+
import { aP as KodaXSkillInvocationContext, ab as KodaXOptions, aC as KodaXShellExecutionContract, V as KodaXEffectiveTaskConfig, Y as KodaXGenerationCheckpoint, X as KodaXExecutionFailure, ag as KodaXOutputSegmentProjection, ba as KodaXToolSandboxObservationUpdate, b8 as KodaXToolEventMeta, a4 as KodaXManagedTaskStatusEvent, W as KodaXEvents, au as KodaXResult, T as KodaXContextOptions, aj as KodaXOutputSegmentStarted, K as KodaXActivityEventMeta, bl as KodaXTurnStartedEvent, bi as KodaXTurnCompletedEvent, bk as KodaXTurnFailedEvent, bR as RuntimeContextBudgetSnapshot, am as KodaXPromptCacheDiagnosticEvent, bY as RuntimeToolExposurePlan, a0 as KodaXLiveEventMeta, O as KodaXCompactionEndResult, bO as RuntimeCompactionSkippedEvent, R as KodaXContextCompactionFinishedEvent, S as KodaXContextIdentity } from './bash-prefix-extractor.d-BghXa_md.js';
|
|
10
|
+
import { M as KodaXSkillInvocationErrorCode, N as LoadedExtensionDiagnostic, v as ExtensionRuntimeDiagnostics } from './skill-invocation-error.d-Be3qg4JQ.js';
|
|
11
|
+
import { W as ExecPolicyRuleInput, h as AutoModeDecisionDiagnostics, r as AutoModeStats, a4 as ManagedWorkflowSnapshot, am as WorkflowRunProcessMetadata } from './run-manager.d-D4sa9JYz.js';
|
|
12
|
+
import { e as ClientCommandService, ad as ClientReviewInput, d as ClientCommandResult, c as ClientCommandInput, az as ClientStartupProgress, aA as ClientStatisticsService, N as ClientLifecycleService, A as ClientHistoryTurnSelector, z as ClientHistoryTurnResolution, ax as ClientSessionView, a2 as ClientObserveOptions, a0 as ClientObservation, K as ClientItemReadOptions, J as ClientItemContent, w as ClientHistoryReadOptions, v as ClientHistoryPage, x as ClientHistorySearchInput, y as ClientHistorySearchResult, Q as ClientLineageSummary, j as ClientCreateSessionInput, ak as ClientSession, a7 as ClientPromoteSessionInput, ar as ClientSessionPromotionResult, ao as ClientSessionFilter, aw as ClientSessionSummary, aB as ClientSubmitInput, E as ClientInputAcceptance, G as ClientInteraction, H as ClientInteractionResponse, I as ClientInteractionResult, l as ClientEffectiveExecutionConfig, ab as ClientRepoIntelligenceHostStatus, aU as KodaXToolVisibilityMeta, $ as ClientModelSelection, a as ClientCapabilityProbeResult, a8 as ClientProviderInfo } from './client-contract-B7ZSFKTv.js';
|
|
13
|
+
import { l as RuntimeExecutionAuthorization, d as RuntimeClientInfo, q as RuntimeExecutionProfile, p as RuntimeExecutionBindingSnapshot, e as RuntimeCredentialBinding, i as RuntimeCredentialService, o as RuntimeExecutionBindingService, y as RuntimeHostToolService, j as RuntimeDaemonClientType } from './runtime-client-info-oRMrkHmb.js';
|
|
14
|
+
import { Y as saveConfig, d as CommandInfo } from './utils.d-C0F3Uf2X.js';
|
|
15
|
+
import { n as FullTranscriptSessionData, ak as SessionTranscriptEntry, a5 as SessionConversationHistoryData, a9 as SessionConversationHistoryStatus, a7 as SessionConversationHistoryIssue, a6 as SessionConversationHistoryEntry, e as CompactSessionResult } from './public-api.d-BLv3lFmw.js';
|
|
16
16
|
|
|
17
17
|
interface RuntimeBuildIdentity {
|
|
18
18
|
readonly origin: string;
|
|
@@ -340,7 +340,7 @@ interface RuntimeMemoryService {
|
|
|
340
340
|
|
|
341
341
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
342
342
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
343
|
-
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'client.exit.request' | 'client.exit.read' | 'client.exit.pending' | 'session.facts.read' | 'session.facts.requests' | 'session.facts.tools' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'session.create' | 'session.promote' | 'session.load' | 'session.promotion.read' | 'session.list' | 'session.status' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.conversation' | 'session.conversation.page' | 'session.conversation.entryChunk' | 'session.observe' | 'session.view.observe' | 'session.view.close' | 'session.view.item' | 'session.diagnostics' | 'session.fork' | 'session.recover' | 'session.notice.append' | 'session.goal.get' | 'session.lineage.get' | 'session.lineage.label' | 'session.goal.create' | 'session.goal.pause' | 'session.goal.resume' | 'session.goal.clear' | 'session.rewind' | 'session.identityAlias.confirm' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.cancel' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'input.submit' | 'input.withdraw' | 'run.start' | 'run.recover' | 'run.input.submit' | 'input.read' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'request.cancel' | 'request.ack' | 'subscription.close' | 'permission.grants.list' | 'permission.grants.revoke' | 'interaction.list' | 'interaction.respond' | 'execution.register' | 'execution.revoke' | 'execution.complete' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'workflow.start' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.subscribe' | 'learning.unsubscribe' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.effective' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.reasoning.efforts' | 'provider.reasoning.probe' | 'provider.capabilities.forget' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.status' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'tool.catalog' | 'repo.intelligence.inspect' | 'repo.intelligence.prewarm' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'memory.describe' | 'memory.listReviews' | 'memory.listInbox' | 'memory.showProposal' | 'memory.listRefs' | 'memory.readRef' | 'memory.remember' | 'memory.forgetRef' | 'memory.approveProposal' | 'memory.rejectProposal' | 'memory.rebuild' | 'memory.ensureOpenTarget' | 'invocations.prepareSkill' | 'invocations.prepareCommand' | 'invocations.readCommandPrompt' | 'invocations.executeCommand' | 'invocations.startReview' | 'invocations.startAgentsLean' | 'invocations.prepareReview' | 'invocations.prepareAgentsLean' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait';
|
|
343
|
+
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'client.exit.request' | 'client.exit.read' | 'client.exit.pending' | 'session.facts.read' | 'session.facts.requests' | 'session.facts.tools' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'session.create' | 'session.promote' | 'session.load' | 'session.promotion.read' | 'session.list' | 'session.status' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.conversation' | 'session.conversation.page' | 'session.conversation.entryChunk' | 'session.observe' | 'session.view.observe' | 'session.view.close' | 'session.view.item' | 'session.history.resolveTurn' | 'session.diagnostics' | 'session.fork' | 'session.recover' | 'session.notice.append' | 'session.goal.get' | 'session.lineage.get' | 'session.lineage.label' | 'session.goal.create' | 'session.goal.pause' | 'session.goal.resume' | 'session.goal.clear' | 'session.rewind' | 'session.identityAlias.confirm' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.cancel' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'input.submit' | 'input.withdraw' | 'run.start' | 'run.recover' | 'run.input.submit' | 'input.read' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'request.cancel' | 'request.ack' | 'subscription.close' | 'permission.grants.list' | 'permission.grants.revoke' | 'interaction.list' | 'interaction.respond' | 'execution.register' | 'execution.revoke' | 'execution.complete' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'workflow.start' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.subscribe' | 'learning.unsubscribe' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.effective' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.reasoning.efforts' | 'provider.reasoning.probe' | 'provider.capabilities.forget' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.status' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'tool.catalog' | 'repo.intelligence.inspect' | 'repo.intelligence.prewarm' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'memory.describe' | 'memory.listReviews' | 'memory.listInbox' | 'memory.showProposal' | 'memory.listRefs' | 'memory.readRef' | 'memory.remember' | 'memory.forgetRef' | 'memory.approveProposal' | 'memory.rejectProposal' | 'memory.rebuild' | 'memory.ensureOpenTarget' | 'invocations.prepareSkill' | 'invocations.prepareCommand' | 'invocations.readCommandPrompt' | 'invocations.executeCommand' | 'invocations.startReview' | 'invocations.startAgentsLean' | 'invocations.prepareReview' | 'invocations.prepareAgentsLean' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait';
|
|
344
344
|
type RuntimeDaemonRetiredMethod = 'permission.request' | 'permission.list' | 'permission.listPending' | 'permission.respond' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
345
345
|
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
346
346
|
type RuntimeDaemonNotificationMethod = 'subscription.error' | 'session.view' | 'event' | 'observation.invalidated' | 'execution.resolve' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
@@ -463,6 +463,8 @@ interface RuntimeOwnerIdentity {
|
|
|
463
463
|
readonly supervisorPid?: number;
|
|
464
464
|
/** OS-issued identity used to distinguish the original supervisor from PID reuse. */
|
|
465
465
|
readonly supervisorProcessStartIdentity?: string;
|
|
466
|
+
readonly windowsJobName?: string;
|
|
467
|
+
readonly windowsBootIdentity?: string;
|
|
466
468
|
}
|
|
467
469
|
interface RuntimeOwnerState {
|
|
468
470
|
readonly profile: string;
|
|
@@ -603,6 +605,8 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
603
605
|
}
|
|
604
606
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
605
607
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
608
|
+
readonly productHistoryTurnResolution: 1;
|
|
609
|
+
readonly productHistoryLocation: 1;
|
|
606
610
|
readonly productClient: 1;
|
|
607
611
|
readonly sessionDrafts: 1;
|
|
608
612
|
readonly sessionPromotion: 1;
|
|
@@ -623,6 +627,8 @@ declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
|
623
627
|
readonly liveOutputSegments: 1;
|
|
624
628
|
}>;
|
|
625
629
|
interface RuntimeCapabilityRequirements {
|
|
630
|
+
readonly productHistoryTurnResolution?: 1;
|
|
631
|
+
readonly productHistoryLocation?: 1;
|
|
626
632
|
readonly productExitControl?: 1;
|
|
627
633
|
readonly productExecutionFacts?: 1;
|
|
628
634
|
readonly productActorAuthorization?: 1;
|
|
@@ -976,6 +982,8 @@ interface RuntimeConversationHistorySliceEntry {
|
|
|
976
982
|
readonly entry?: SessionConversationHistoryEntry;
|
|
977
983
|
}
|
|
978
984
|
interface RuntimeConversationHistorySlice {
|
|
985
|
+
readonly locatedBoundaryId?: string;
|
|
986
|
+
readonly newerCursor?: string;
|
|
979
987
|
readonly revision: string;
|
|
980
988
|
readonly sourceRevision: string;
|
|
981
989
|
readonly status: SessionConversationHistoryStatus;
|
|
@@ -985,6 +993,7 @@ interface RuntimeConversationHistorySlice {
|
|
|
985
993
|
readonly nextCursor?: string;
|
|
986
994
|
}
|
|
987
995
|
interface RuntimeConversationHistoryPageInput {
|
|
996
|
+
readonly around?: ClientHistoryReadOptions['around'];
|
|
988
997
|
readonly sessionId: string;
|
|
989
998
|
readonly cursor?: string;
|
|
990
999
|
readonly limit?: number;
|
|
@@ -1301,6 +1310,7 @@ interface RuntimeObservationInvalidation {
|
|
|
1301
1310
|
readonly message: string;
|
|
1302
1311
|
}
|
|
1303
1312
|
interface RuntimeSessionService {
|
|
1313
|
+
resolveHistoryTurn(sessionId: string, selector: ClientHistoryTurnSelector): Promise<ClientHistoryTurnResolution>;
|
|
1304
1314
|
observeView(sessionId: string, listener: (view: ClientSessionView) => void, options?: ClientObserveOptions): Promise<ClientObservation>;
|
|
1305
1315
|
readViewItem(sessionId: string, itemId: string, options?: ClientItemReadOptions): Promise<ClientItemContent | null>;
|
|
1306
1316
|
readHistory(sessionId: string, options?: ClientHistoryReadOptions): Promise<ClientHistoryPage>;
|
|
@@ -1344,11 +1354,15 @@ interface RuntimeSessionService {
|
|
|
1344
1354
|
fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
|
|
1345
1355
|
recover(input: RuntimeRecoverSessionInput): Promise<RuntimeSession>;
|
|
1346
1356
|
getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
|
|
1347
|
-
getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings
|
|
1357
|
+
getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings> & {
|
|
1358
|
+
readonly workModeLocked?: boolean;
|
|
1359
|
+
}>;
|
|
1348
1360
|
/** Runtime-owned Auto classifier state used by diagnostics and status UI. */
|
|
1349
1361
|
getAutoModeStats(sessionId: string): Promise<AutoModeStats | undefined>;
|
|
1350
1362
|
updateSettings(sessionId: string, patch: RuntimeSessionSettingsPatch): Promise<RuntimeSessionSettings>;
|
|
1351
|
-
updateSettingsVersioned(sessionId: string, patch: RuntimeSessionSettingsPatch, options: RuntimeVersionedUpdateOptions): Promise<RuntimeVersionedValue<RuntimeSessionSettings
|
|
1363
|
+
updateSettingsVersioned(sessionId: string, patch: RuntimeSessionSettingsPatch, options: RuntimeVersionedUpdateOptions): Promise<RuntimeVersionedValue<RuntimeSessionSettings> & {
|
|
1364
|
+
readonly workModeLocked?: boolean;
|
|
1365
|
+
}>;
|
|
1352
1366
|
appendNotice(input: RuntimeAppendNoticeInput): Promise<SessionTranscriptEntry | null>;
|
|
1353
1367
|
rewind(input: RuntimeRewindSessionInput): Promise<RuntimeSession | null>;
|
|
1354
1368
|
confirmIdentityAlias(input: RuntimeConfirmIdentityAliasInput): Promise<KodaXExtensionSessionRecord>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { aJ as KodaXSessionUiHistoryItem, aN as KodaXSessionUiToolCall } from './review-inbox.d-
|
|
1
|
+
import { aJ as KodaXSessionUiHistoryItem, aN as KodaXSessionUiToolCall } from './review-inbox.d-yREk25Vf.js';
|
|
2
2
|
import { v as KodaXMessage, a7 as KodaXTaskResultMetadata, h as KodaXContentBlock } from './types.d-Bi8iUd6x.js';
|
|
3
|
-
import { j as CreatableHistoryItem, av as ToolCall } from './public-api.d-
|
|
3
|
+
import { j as CreatableHistoryItem, q as HistoryItemBase, av as ToolCall } from './public-api.d-BLv3lFmw.js';
|
|
4
4
|
import { K as KodaXTaskResultReport } from './task-results.d-XMdWq0eA.js';
|
|
5
5
|
|
|
6
6
|
interface RestoreHistoryItemsFromSessionInput {
|
|
7
|
+
/** Read-time provenance from the same canonical snapshot as messages. */
|
|
8
|
+
historyBoundaries?: ReadonlyMap<KodaXMessage, NonNullable<CreatableHistoryItem['historyBoundary']>>;
|
|
7
9
|
/** Product owns canonical task reports; CLI keeps its existing presentation ownership. */
|
|
8
10
|
structuredTaskResults?: boolean;
|
|
9
11
|
messages: readonly KodaXMessage[];
|
|
@@ -53,6 +55,7 @@ type RestoredHistorySeed = ({
|
|
|
53
55
|
}) & {
|
|
54
56
|
timestamp?: number;
|
|
55
57
|
outputId?: string;
|
|
58
|
+
historyBoundary?: HistoryItemBase['historyBoundary'];
|
|
56
59
|
};
|
|
57
60
|
/** Convert a RestoredHistorySeed to a CreatableHistoryItem. tool_summary / task_completed → event with icon. */
|
|
58
61
|
declare function seedToHistoryItem(seed: RestoredHistorySeed): CreatableHistoryItem;
|
|
@@ -72,7 +75,7 @@ interface HistorySeedSourceMessage {
|
|
|
72
75
|
_source?: string;
|
|
73
76
|
}
|
|
74
77
|
declare function extractHistorySeedsFromMessage(message: HistorySeedSourceMessage): RestoredHistorySeed[];
|
|
75
|
-
declare function extractHistorySeedsFromMessages(messages: readonly HistorySeedSourceMessage[], structuredTaskResults?: boolean): RestoredHistorySeed[];
|
|
78
|
+
declare function extractHistorySeedsFromMessages(messages: readonly HistorySeedSourceMessage[], structuredTaskResults?: boolean, boundaries?: ReadonlyMap<HistorySeedSourceMessage, NonNullable<HistoryItemBase['historyBoundary']>>): RestoredHistorySeed[];
|
|
76
79
|
/**
|
|
77
80
|
* Extract plain text from message content.
|
|
78
81
|
* Thinking/tool blocks are omitted so callers get only visible assistant text.
|