@kodax-ai/kodax 0.7.97-alpha.9 → 0.7.97-beta.2
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 +393 -0
- package/README.md +170 -29
- package/README_CN.md +116 -17
- package/config-templates/config.example.jsonc +2 -3
- package/dist/artifacts/skills/artifact-review/SKILL.md +44 -7
- package/dist/builtin/code-review/SKILL.md +5 -17
- package/dist/builtin/git-workflow/SKILL.md +9 -8
- package/dist/builtin/skill-creator/SKILL.md +38 -108
- package/dist/builtin/skill-creator/references/evaluation.md +50 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +2 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +6 -3
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +2 -0
- package/dist/builtin/skill-creator/scripts/compare-runs.js +6 -3
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +2 -0
- package/dist/builtin/skill-creator/scripts/grade-evals.js +6 -3
- package/dist/builtin/skill-creator/scripts/run-eval.js +3 -3
- package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.d.ts +2 -0
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +3 -1
- package/dist/builtin/skill-creator/scripts/utils.d.ts +1 -1
- package/dist/builtin/skill-creator/scripts/utils.js +8 -0
- package/dist/builtin/tdd/SKILL.md +24 -40
- package/dist/builtin/visual-review/SKILL.md +7 -3
- package/dist/chunks/agent-DS7M57WD.js +2 -0
- package/dist/chunks/agent-adapter-TLWGGK3V.js +2 -0
- package/dist/chunks/argument-completer-OGCXKTRQ.js +2 -0
- package/dist/chunks/bedrock-native-Z5VNWF5U.js +4 -0
- package/dist/chunks/cell-LV7MNPNQ.js +2 -0
- package/dist/chunks/chunk-2HH5AS7E.js +1157 -0
- package/dist/chunks/chunk-3CP7AUWY.js +2 -0
- package/dist/chunks/chunk-45ZP2YHG.js +2 -0
- package/dist/chunks/chunk-4Y6U7AH4.js +9 -0
- package/dist/chunks/chunk-52EN2777.js +2 -0
- package/dist/chunks/{chunk-HXCY52Z2.js → chunk-53CJDQS2.js} +1 -1
- package/dist/chunks/{chunk-JNB2FL6P.js → chunk-5MUVRFMU.js} +1 -1
- package/dist/chunks/chunk-65652LR4.js +2 -0
- package/dist/chunks/chunk-6TITQQAI.js +351 -0
- package/dist/chunks/chunk-AGUM5SWX.js +2 -0
- package/dist/chunks/chunk-BBZWF2EA.js +2 -0
- package/dist/chunks/chunk-C6JGLEYD.js +2 -0
- package/dist/chunks/chunk-D36OIMV7.js +142 -0
- package/dist/chunks/chunk-D425EZGC.js +2 -0
- package/dist/chunks/chunk-D5OW7UD5.js +2 -0
- package/dist/chunks/chunk-DCE7XQUG.js +2 -0
- package/dist/chunks/chunk-DV5YPYLW.js +10 -0
- package/dist/chunks/chunk-EISRVOBJ.js +4 -0
- package/dist/chunks/chunk-EPK6EWRI.js +12 -0
- package/dist/chunks/chunk-F6GJXQNA.js +29 -0
- package/dist/chunks/chunk-GJXOTOZB.js +465 -0
- package/dist/chunks/chunk-GZUWQZJD.js +2 -0
- package/dist/chunks/chunk-I325ER7D.js +2 -0
- package/dist/chunks/chunk-ISLK6R2P.js +2 -0
- package/dist/chunks/chunk-J2L2NK6E.js +366 -0
- package/dist/chunks/chunk-JAF2YLZO.js +14 -0
- package/dist/chunks/chunk-KDLOPBFZ.js +2 -0
- package/dist/chunks/chunk-KDSO7V4O.js +5 -0
- package/dist/chunks/chunk-KE2NBMAP.js +20 -0
- package/dist/chunks/chunk-MCDZNQWD.js +634 -0
- package/dist/chunks/chunk-NSR4RW2F.js +3 -0
- package/dist/chunks/chunk-OGTRDK4Q.js +359 -0
- package/dist/chunks/chunk-P55RJIOG.js +18 -0
- package/dist/chunks/chunk-P7OJRV5Z.js +2 -0
- package/dist/chunks/chunk-QP47JIWP.js +3 -0
- package/dist/chunks/chunk-QSZCR5GC.js +190 -0
- package/dist/chunks/chunk-R2HTPDI7.js +2 -0
- package/dist/chunks/chunk-R42S4BLA.js +2 -0
- package/dist/chunks/chunk-RYBUYHDL.js +5 -0
- package/dist/chunks/chunk-SDPZFH6M.js +4 -0
- package/dist/chunks/chunk-SK3RRGHJ.js +142 -0
- package/dist/chunks/chunk-TQ475LOI.js +2 -0
- package/dist/chunks/chunk-UF3GZ5PO.js +2 -0
- package/dist/chunks/chunk-UL6YIT4M.js +2 -0
- package/dist/chunks/chunk-V2XJSFFE.js +19 -0
- package/dist/chunks/chunk-V4WSBIXB.js +2 -0
- package/dist/chunks/chunk-V5RCDBKU.js +2 -0
- package/dist/chunks/{chunk-FX4R5PB3.js → chunk-W2CWO4PQ.js} +1 -1
- package/dist/chunks/chunk-W33QJA3M.js +2 -0
- package/dist/chunks/chunk-WMMESRP3.js +9 -0
- package/dist/chunks/chunk-WWPVEK6B.js +127 -0
- package/dist/chunks/chunk-X5M7TLJV.js +2 -0
- package/dist/chunks/chunk-XDMNJW6J.js +42 -0
- package/dist/chunks/{chunk-L22BDZGE.js → chunk-XZSFUGPN.js} +1 -1
- package/dist/chunks/client-LTIFNED5.js +2 -0
- package/dist/chunks/compaction-config-ECMOFP5H.js +2 -0
- package/dist/chunks/{construction-bootstrap-XBHM6NON.js → construction-bootstrap-OAZKGI5Y.js} +1 -1
- package/dist/chunks/devtools-MVOFT6N7.js +2 -0
- package/dist/chunks/devtools-TXYDDL2A.js +2 -0
- package/dist/chunks/dist-5J53DGAO.js +2 -0
- package/dist/chunks/errors-ER7ZRPWC.js +2 -0
- package/dist/chunks/google-native-WLL27OV7.js +2 -0
- package/dist/chunks/host-65E5NM5P.js +2 -0
- package/dist/chunks/mistral-native-JXPIDDYZ.js +5 -0
- package/dist/chunks/model-DZF6URW3.js +2 -0
- package/dist/chunks/permission-YVVMLQ5I.js +2 -0
- package/dist/chunks/pi-messages-5LLOZH57.js +16 -0
- package/dist/chunks/readline-helpers-UZXWBRXQ.js +2 -0
- package/dist/chunks/responses-websocket-Y4N5GXD3.js +2 -0
- package/dist/chunks/run-manager-ZFACIZM2.js +2 -0
- package/dist/chunks/running-session-Q5Y6A2QV.js +2 -0
- package/dist/chunks/skills-TJP6BLZJ.js +2 -0
- package/dist/chunks/tool-dispatch-MLM3QTSU.js +2 -0
- package/dist/chunks/utils-2QNMYRGA.js +2 -0
- package/dist/generated-config-templates.json +6 -0
- package/dist/index.d.ts +34 -32
- package/dist/index.js +6 -6
- package/dist/kodax_bootstrap.js +4 -2
- package/dist/kodax_cli.js +1755 -2979
- package/dist/kodax_doctor.js +3 -0
- package/dist/kodax_resume.js +30 -30
- package/dist/manual-topics.json +2211 -0
- package/dist/native/darwin-arm64/kodax-text-transaction.node +0 -0
- package/dist/native/darwin-arm64/manifest.json +1 -1
- 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 +2 -0
- package/dist/provider-auth-cli.js +16 -0
- package/dist/provider-capabilities.json +560 -40
- package/dist/runtime-daemon-schema.json +1 -0
- package/dist/sandbox-network-broker.js +260 -795
- package/dist/script-cell.js +1 -0
- package/dist/script-worker.cjs +2189 -0
- package/dist/sdk-a2a.d.ts +23 -22
- package/dist/sdk-a2a.js +6 -8
- package/dist/sdk-agent.d.ts +125 -98
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-client.d.ts +16 -10
- package/dist/sdk-client.js +1 -1
- package/dist/sdk-coding.d.ts +109 -80
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +265 -14
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +3 -3
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +41 -166
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +81 -51
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +216 -2989
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +15 -14
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +2 -2
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +121 -75
- package/dist/static-text.json +371 -0
- package/dist/storage-repair-cli.js +3 -0
- package/dist/types-chunks/auth-file.d-ovsHEqD4.d.ts +178 -0
- package/dist/types-chunks/{bash-prefix-extractor.d-DFH463j2.d.ts → bash-prefix-extractor.d-CJliu5-D.d.ts} +326 -168
- package/dist/types-chunks/{capability-learning.d-B4pxKwP4.d.ts → capability-learning.d-BXDEOON2.d.ts} +4 -4
- package/dist/types-chunks/{capability.d-DOF3r0fJ.d.ts → capability.d-DapzKxy3.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-CwpmHGFB.d.ts → capsule.d-EMwSALqK.d.ts} +5 -5
- package/dist/types-chunks/{client-contract-CRm9ZpL2.d.ts → client-contract-B7q69yMA.d.ts} +265 -67
- package/dist/types-chunks/{controller.d-B4GyqWri.d.ts → controller.d-C0SAuNKu.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-P3H97ddz.d.ts → controller.d-D-hPLKaA.d.ts} +71 -11
- package/dist/types-chunks/{cost-tracker.d-BeaenODW.d.ts → cost-tracker.d-D1CTx-IO.d.ts} +37 -7
- package/dist/types-chunks/{base.d-ZBOdjDUT.d.ts → errors.d-D73qdYbS.d.ts} +91 -74
- package/dist/types-chunks/{history-retrieval.d-BzKWDjzG.d.ts → history-retrieval.d-BwEUR9cb.d.ts} +2 -2
- package/dist/types-chunks/{manager.d-C8OlTe2J.d.ts → manager.d-BMH8Q6TV.d.ts} +1 -1
- package/dist/types-chunks/{manifest.d-COreAnXG.d.ts → manifest.d-YE3-AIeO.d.ts} +1 -1
- package/dist/types-chunks/{provider-credential-context.d-BH2OaB1b.d.ts → provider-credential-context.d-Dw-sWcnu.d.ts} +11 -2
- package/dist/types-chunks/{provider-request-observation.d-C_bEqr4m.d.ts → provider-request-observation.d-CNe9vse3.d.ts} +4 -2
- package/dist/types-chunks/{public-api.d-BLmqDi73.d.ts → public-api.d-BhDU643p.d.ts} +13 -10
- package/dist/types-chunks/queue-BxQhqhFM.d.ts +166 -0
- package/dist/types-chunks/{resolver.d-DLY01RHx.d.ts → resolver.d-DrkpD8wY.d.ts} +142 -103
- package/dist/types-chunks/{review-inbox.d-BTLDdpG2.d.ts → review-inbox.d-Bgt46S7L.d.ts} +16 -3
- package/dist/types-chunks/{review-packet.d-Crra1Q7t.d.ts → review-packet.d-ChOfJaNI.d.ts} +7 -7
- package/dist/types-chunks/{run-manager.d-DmS1edk4.d.ts → run-manager.d-ChzguipG.d.ts} +48 -12
- package/dist/types-chunks/{runtime-client-info-BBBxdU8V.d.ts → runtime-client-info-P_mRDG7j.d.ts} +93 -7
- package/dist/types-chunks/runtime-event-BW5Pla7a.d.ts +48 -0
- package/dist/types-chunks/sdk-runtime-cDe7qmN3.d.ts +2244 -0
- package/dist/types-chunks/{sdk-session-DipY_CCd.d.ts → sdk-session-D3pcSbnA.d.ts} +13 -4
- package/dist/types-chunks/{sdk-skills-DokfOoJF.d.ts → sdk-skills-C-UA1A6I.d.ts} +3 -1
- package/dist/types-chunks/{side-query.d-DTrhVd_r.d.ts → side-query.d-UFKdWSw7.d.ts} +4 -4
- package/dist/types-chunks/{types.d-Jxj49rqO.d.ts → skill-invocation-error.d-gsNNDnnt.d.ts} +24 -14
- package/dist/types-chunks/task-results.d-XMdWq0eA.d.ts +15 -0
- package/dist/types-chunks/{trusted-repl-entry-B1cb7lAn.d.ts → trusted-repl-entry-Bbkd2HlO.d.ts} +10 -10
- package/dist/types-chunks/{types.d-BjOq57-z.d.ts → types.d-Bi8iUd6x.d.ts} +248 -4
- package/dist/types-chunks/{types.d-NyCB6ztO.d.ts → types.d-BlXTogOo.d.ts} +24 -13
- package/dist/types-chunks/types.d-BvEGNdN-.d.ts +131 -0
- package/dist/types-chunks/{types.d-Cb8RdrjU.d.ts → types.d-D8qQjMeo.d.ts} +5 -1
- package/dist/types-chunks/{utils.d-Bt6USYa5.d.ts → utils.d-CxHyBvO6.d.ts} +11 -7
- package/dist/windows-native-scripts.json +5 -0
- package/docs/ARTIFACT_SDK.md +8 -0
- package/docs/CLIENT_CONTRACT.md +195 -9
- package/docs/SDK_MIGRATION.md +887 -2
- package/docs/SPACE_SDK_SEAMS.md +255 -2
- package/package.json +33 -6
- package/public_docs/README.md +27 -2
- package/public_docs/configuration/config-files.md +6 -0
- package/public_docs/configuration/custom-providers.md +62 -0
- package/public_docs/configuration/providers.md +238 -3
- package/public_docs/configuration/sandbox.md +30 -0
- package/public_docs/getting-started/quickstart.md +10 -1
- package/public_docs/sdk/embedder-guide.md +476 -206
- package/dist/chunks/agent-C7MMIRIH.js +0 -2
- package/dist/chunks/argument-completer-WIQAV5GP.js +0 -2
- package/dist/chunks/chunk-2AM3FRQ7.js +0 -137
- package/dist/chunks/chunk-2TBKGO2Q.js +0 -497
- package/dist/chunks/chunk-35P7QL2Q.js +0 -2
- package/dist/chunks/chunk-5DQTOU2E.js +0 -69
- package/dist/chunks/chunk-7NH5BGE4.js +0 -350
- package/dist/chunks/chunk-AWYO4MH3.js +0 -635
- package/dist/chunks/chunk-CIPS75XZ.js +0 -260
- package/dist/chunks/chunk-CRQWSDHV.js +0 -429
- package/dist/chunks/chunk-HD5BDOPC.js +0 -2
- package/dist/chunks/chunk-JXZMES45.js +0 -12
- package/dist/chunks/chunk-KJSZTP5N.js +0 -2
- package/dist/chunks/chunk-KYHMB6XR.js +0 -431
- package/dist/chunks/chunk-ONUPGMER.js +0 -2
- package/dist/chunks/chunk-P42PHZWC.js +0 -351
- package/dist/chunks/chunk-SHG3EIH5.js +0 -19
- package/dist/chunks/chunk-UH6VOCVP.js +0 -2
- package/dist/chunks/chunk-V26LAWJY.js +0 -2
- package/dist/chunks/chunk-WOHHMGEF.js +0 -394
- package/dist/chunks/chunk-WONYJBAA.js +0 -2
- package/dist/chunks/chunk-XJWNIFC2.js +0 -298
- package/dist/chunks/chunk-XMWTEVFZ.js +0 -1481
- package/dist/chunks/chunk-YJTIPSNW.js +0 -22
- package/dist/chunks/chunk-YVBBU6K5.js +0 -5
- package/dist/chunks/client-XFASU74S.js +0 -2
- package/dist/chunks/compaction-config-JZNGDKWW.js +0 -2
- package/dist/chunks/devtools-CD6KSIHE.js +0 -2
- package/dist/chunks/devtools-XR5F2C6T.js +0 -2
- package/dist/chunks/dist-M4HLQAX7.js +0 -2
- package/dist/chunks/dist-ZLR4OTDD.js +0 -2
- package/dist/chunks/host-EHVJWNGS.js +0 -2
- package/dist/chunks/readline-helpers-KIDMSK76.js +0 -2
- package/dist/chunks/run-manager-HNGIYMG7.js +0 -2
- package/dist/chunks/tool-dispatch-ON33NJR5.js +0 -2
- package/dist/chunks/utils-RHR6YHB2.js +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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-BlXTogOo.js';
|
|
3
|
+
import { K as KodaXTaskResultReport } from './task-results.d-XMdWq0eA.js';
|
|
4
|
+
import { ar as ClientSessionSettings } from './client-contract-B7q69yMA.js';
|
|
5
|
+
import { a as BashPrefixExtractor, x as KodaXAgentMode, bp as KodaXWorkMode } from './bash-prefix-extractor.d-CJliu5-D.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-Bgt46S7L.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -511,6 +512,7 @@ interface StatusBarProps {
|
|
|
511
512
|
sessionId: string;
|
|
512
513
|
permissionMode: PermissionMode;
|
|
513
514
|
agentMode: KodaXAgentMode;
|
|
515
|
+
workMode?: KodaXWorkMode;
|
|
514
516
|
provider: string;
|
|
515
517
|
model: string;
|
|
516
518
|
tokenUsage?: {
|
|
@@ -667,6 +669,8 @@ type HistoryItemType = "user" | "assistant" | "system" | "tool_group" | "thinkin
|
|
|
667
669
|
* History item base class - 历史项基类
|
|
668
670
|
*/
|
|
669
671
|
interface HistoryItemBase {
|
|
672
|
+
/** Canonical task facts used by the Product projection; normal CLI ownership is unchanged. */
|
|
673
|
+
taskResult?: Omit<KodaXTaskResultReport, 'summary'>;
|
|
670
674
|
outputId?: string;
|
|
671
675
|
outputState?: 'draft' | 'committed';
|
|
672
676
|
textRevision?: number;
|
|
@@ -1033,10 +1037,6 @@ declare class ConversationPageCacheCapacityError extends Error {
|
|
|
1033
1037
|
constructor();
|
|
1034
1038
|
}
|
|
1035
1039
|
|
|
1036
|
-
/**
|
|
1037
|
-
* KodaX session storage - filesystem implementation.
|
|
1038
|
-
*/
|
|
1039
|
-
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Opaque process-local boundary for a prepared, append-only Session write.
|
|
1042
1042
|
* Obtain a fresh value from {@link FileSessionStorage.prepareSessionAppend};
|
|
@@ -1244,8 +1244,11 @@ declare class FileSessionStorage implements KodaXSessionStorage {
|
|
|
1244
1244
|
createGenerated(id: string, data: SessionData): Promise<void>;
|
|
1245
1245
|
/** Update display metadata under the same writer lock as canonical Session saves. */
|
|
1246
1246
|
mutateUiHistory(id: string, mutation: (history: readonly KodaXSessionUiHistoryItem[], session: Readonly<SessionData>) => KodaXSessionUiHistoryItem[]): Promise<boolean>;
|
|
1247
|
+
appendSessionRecords(id: string, records: readonly KodaXExtensionSessionRecord[]): Promise<boolean>;
|
|
1247
1248
|
mutateLineage(id: string, mutation: (lineage: KodaXSessionLineage) => KodaXSessionLineage): Promise<boolean>;
|
|
1248
1249
|
mutateRuntimeInfo(id: string, mutation: (runtimeInfo: KodaXSessionRuntimeInfo | undefined) => KodaXSessionRuntimeInfo | undefined): Promise<boolean>;
|
|
1250
|
+
/** One Host-owned metadata transaction; never replace history from a caller snapshot. */
|
|
1251
|
+
promoteOwned(id: string, ownerId: string | undefined, input: KodaXSessionPromotionRecord): Promise<boolean>;
|
|
1249
1252
|
/** Phase-aware Actor CAS save; canonical success is observable before cache maintenance. */
|
|
1250
1253
|
beginActorSnapshotSave(id: string, snapshot: AgentActorSnapshot, expectedRevision: number): AgentActorSaveAttempt;
|
|
1251
1254
|
/** F270/F269 owner mutation: CAS-update only the Actor section of a session snapshot. */
|
|
@@ -1485,7 +1488,7 @@ interface SessionTranscriptEntry {
|
|
|
1485
1488
|
readonly active: boolean;
|
|
1486
1489
|
readonly summary?: string;
|
|
1487
1490
|
readonly payload?: unknown;
|
|
1488
|
-
readonly taskResults?: readonly
|
|
1491
|
+
readonly taskResults?: readonly KodaXTaskResultReport[];
|
|
1489
1492
|
}
|
|
1490
1493
|
interface FullTranscriptSessionData extends Omit<SessionData, 'messages'> {
|
|
1491
1494
|
/** Legacy flattened projection. Rewind markers are excluded. */
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { s as KodaXImageBlock } from './types.d-Bi8iUd6x.js';
|
|
2
|
+
|
|
3
|
+
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
4
|
+
interface KodaXMediaErrorOptions {
|
|
5
|
+
readonly detail?: string;
|
|
6
|
+
readonly cause?: unknown;
|
|
7
|
+
}
|
|
8
|
+
declare class KodaXMediaError extends Error {
|
|
9
|
+
readonly code: KodaXMediaErrorCode;
|
|
10
|
+
readonly detail?: string;
|
|
11
|
+
readonly cause?: unknown;
|
|
12
|
+
constructor(code: KodaXMediaErrorCode, message: string, options?: KodaXMediaErrorOptions);
|
|
13
|
+
}
|
|
14
|
+
declare class ImageResizeError extends KodaXMediaError {
|
|
15
|
+
constructor(message: string, options?: KodaXMediaErrorOptions & {
|
|
16
|
+
readonly code?: KodaXMediaErrorCode;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type KodaXImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
|
|
21
|
+
type KodaXVideoMediaType = 'video/mp4' | 'video/mpeg' | 'video/quicktime' | 'video/x-msvideo' | 'video/x-flv' | 'video/webm' | 'video/x-ms-wmv' | 'video/3gpp';
|
|
22
|
+
type KodaXInputArtifactSource = 'user-inline' | 'clipboard' | 'drag-drop' | 'file-picker';
|
|
23
|
+
interface KodaXImageInputArtifact {
|
|
24
|
+
readonly kind: 'image';
|
|
25
|
+
readonly path: string;
|
|
26
|
+
readonly mediaType?: KodaXImageMediaType;
|
|
27
|
+
readonly source?: KodaXInputArtifactSource;
|
|
28
|
+
readonly description?: string;
|
|
29
|
+
}
|
|
30
|
+
interface KodaXFileInputArtifact {
|
|
31
|
+
readonly kind: 'file';
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly mediaType?: string;
|
|
34
|
+
readonly mimeType?: string;
|
|
35
|
+
readonly name?: string;
|
|
36
|
+
readonly source?: KodaXInputArtifactSource;
|
|
37
|
+
readonly description?: string;
|
|
38
|
+
}
|
|
39
|
+
interface KodaXVideoInputArtifact {
|
|
40
|
+
readonly kind: 'video';
|
|
41
|
+
readonly path: string;
|
|
42
|
+
readonly mediaType: KodaXVideoMediaType;
|
|
43
|
+
readonly name?: string;
|
|
44
|
+
readonly source?: KodaXInputArtifactSource;
|
|
45
|
+
readonly description?: string;
|
|
46
|
+
}
|
|
47
|
+
type KodaXInputArtifact = KodaXImageInputArtifact | KodaXFileInputArtifact | KodaXVideoInputArtifact;
|
|
48
|
+
|
|
49
|
+
interface CreateImageArtifactFromPathOptions {
|
|
50
|
+
readonly mediaType?: KodaXImageMediaType;
|
|
51
|
+
readonly source?: KodaXInputArtifactSource;
|
|
52
|
+
readonly description?: string;
|
|
53
|
+
}
|
|
54
|
+
interface CreateFileArtifactFromPathOptions {
|
|
55
|
+
readonly mediaType?: string;
|
|
56
|
+
readonly mimeType?: string;
|
|
57
|
+
readonly name?: string;
|
|
58
|
+
readonly source?: KodaXInputArtifactSource;
|
|
59
|
+
readonly description?: string;
|
|
60
|
+
}
|
|
61
|
+
interface CreateVideoArtifactFromPathOptions {
|
|
62
|
+
readonly mediaType?: KodaXVideoMediaType;
|
|
63
|
+
readonly name?: string;
|
|
64
|
+
readonly source?: KodaXInputArtifactSource;
|
|
65
|
+
readonly description?: string;
|
|
66
|
+
}
|
|
67
|
+
declare function inferImageMediaType(filePath: string): KodaXImageMediaType | undefined;
|
|
68
|
+
declare function inferVideoMediaType(filePath: string): KodaXVideoMediaType | undefined;
|
|
69
|
+
declare function createImageArtifactFromPath(filePath: string, options?: CreateImageArtifactFromPathOptions): KodaXImageInputArtifact;
|
|
70
|
+
declare function createFileArtifactFromPath(filePath: string, options?: CreateFileArtifactFromPathOptions): KodaXFileInputArtifact;
|
|
71
|
+
declare function createVideoArtifactFromPath(filePath: string, options?: CreateVideoArtifactFromPathOptions): KodaXVideoInputArtifact;
|
|
72
|
+
|
|
73
|
+
declare const MAX_DIMENSION = 2000;
|
|
74
|
+
declare const TARGET_RAW_SIZE_BYTES: number;
|
|
75
|
+
interface NormalizedImage {
|
|
76
|
+
readonly buffer: Buffer;
|
|
77
|
+
readonly mediaType: 'image/png' | 'image/jpeg';
|
|
78
|
+
readonly width: number;
|
|
79
|
+
readonly height: number;
|
|
80
|
+
}
|
|
81
|
+
interface NormalizeImageOptions {
|
|
82
|
+
readonly maxDimension?: number;
|
|
83
|
+
readonly targetBytes?: number;
|
|
84
|
+
readonly preferMediaType?: 'image/png' | 'image/jpeg';
|
|
85
|
+
}
|
|
86
|
+
declare function normalizePastedImage(input: Buffer, options?: NormalizeImageOptions): Promise<NormalizedImage>;
|
|
87
|
+
|
|
88
|
+
declare function readClipboardImage(): Promise<Buffer | null>;
|
|
89
|
+
declare function readAndNormalizeClipboardImage(options?: NormalizeImageOptions): Promise<NormalizedImage | null>;
|
|
90
|
+
|
|
91
|
+
declare const PASTE_TMP_DIR_ENV = "KODAX_PASTE_TMP_DIR";
|
|
92
|
+
declare const PASTE_TMP_TTL_MS: number;
|
|
93
|
+
interface PersistImageAsBlockOptions {
|
|
94
|
+
readonly directory?: string;
|
|
95
|
+
readonly fileNamePrefix?: string;
|
|
96
|
+
}
|
|
97
|
+
declare function persistImageAsBlock(image: {
|
|
98
|
+
readonly buffer: Buffer;
|
|
99
|
+
readonly mediaType: KodaXImageMediaType;
|
|
100
|
+
}, options?: PersistImageAsBlockOptions): Promise<KodaXImageBlock>;
|
|
101
|
+
declare function prunePasteTmpDir(now?: number): Promise<number>;
|
|
102
|
+
|
|
103
|
+
type KodaXInputCapabilityStatus = 'supported' | 'provider-native-unwired' | 'unsupported';
|
|
104
|
+
interface KodaXModalityInputCapability<TMediaType extends string> {
|
|
105
|
+
readonly nativeSupported: boolean;
|
|
106
|
+
readonly sdkSupported: boolean;
|
|
107
|
+
readonly status: KodaXInputCapabilityStatus;
|
|
108
|
+
readonly mediaTypes: readonly TMediaType[];
|
|
109
|
+
readonly nativeMediaTypes?: readonly TMediaType[];
|
|
110
|
+
readonly maxBytes?: number;
|
|
111
|
+
readonly maxCount?: number;
|
|
112
|
+
readonly reason?: string;
|
|
113
|
+
}
|
|
114
|
+
interface ModelInputCapabilities {
|
|
115
|
+
readonly text: true;
|
|
116
|
+
readonly image: KodaXModalityInputCapability<KodaXImageMediaType>;
|
|
117
|
+
readonly video: KodaXModalityInputCapability<KodaXVideoMediaType>;
|
|
118
|
+
readonly file: KodaXModalityInputCapability<string>;
|
|
119
|
+
}
|
|
120
|
+
interface GetModelInputCapabilitiesInput {
|
|
121
|
+
readonly provider: string;
|
|
122
|
+
readonly model?: string;
|
|
123
|
+
}
|
|
124
|
+
declare const KODAX_IMAGE_MEDIA_TYPES: readonly KodaXImageMediaType[];
|
|
125
|
+
declare const KODAX_VIDEO_MEDIA_TYPES: readonly KodaXVideoMediaType[];
|
|
126
|
+
declare const KODAX_FILE_MEDIA_TYPES: readonly string[];
|
|
127
|
+
declare function getModelInputCapabilities(input: GetModelInputCapabilitiesInput): ModelInputCapabilities;
|
|
128
|
+
|
|
129
|
+
interface ValidateInputArtifactsOptions {
|
|
130
|
+
readonly provider: string;
|
|
131
|
+
readonly model?: string;
|
|
132
|
+
}
|
|
133
|
+
declare function validateInputArtifactsForModel(artifacts: readonly KodaXInputArtifact[], options: ValidateInputArtifactsOptions): void;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @kodax-ai/agent/messaging — Message queue types
|
|
137
|
+
*
|
|
138
|
+
* FEATURE_115 (v0.7.36): agentId-scoped 2-tier priority queue infrastructure.
|
|
139
|
+
*
|
|
140
|
+
* Per ADR-021: messaging is a generic agent-platform primitive (not coding-
|
|
141
|
+
* specific). Downstream consumers:
|
|
142
|
+
* - @kodax-ai/coding runner-driven mid-turn drain
|
|
143
|
+
* - @kodax-ai/repl InkREPL ESC soft-pause + text injection (FEATURE_111 absorbed)
|
|
144
|
+
* - subagent task-notification routing (FEATURE_155 idle-yield wakeup)
|
|
145
|
+
*
|
|
146
|
+
* Phase 0.6 study (`c:/tmp/claude-code-actual-usage.md`): Claude Code's
|
|
147
|
+
* `'now'` priority has zero production usage; KodaX simplifies to 2 tiers.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
type MessagePriority = 'user' | 'background';
|
|
151
|
+
|
|
152
|
+
interface EnqueueWithArtifactsInput extends ValidateInputArtifactsOptions {
|
|
153
|
+
readonly content: string;
|
|
154
|
+
/** Accepted client input identity stamped onto the drained user message. */
|
|
155
|
+
readonly inputId?: string;
|
|
156
|
+
readonly inputArtifacts?: readonly KodaXInputArtifact[];
|
|
157
|
+
readonly priority?: MessagePriority;
|
|
158
|
+
/** Explicit low-level queue route. Mutually exclusive with sessionId. */
|
|
159
|
+
readonly agentId?: string;
|
|
160
|
+
/** Route to this Actor session's root queue. */
|
|
161
|
+
readonly sessionId?: string;
|
|
162
|
+
}
|
|
163
|
+
declare function enqueueWithArtifacts(input: EnqueueWithArtifactsInput): string;
|
|
164
|
+
|
|
165
|
+
export { inferVideoMediaType as A, normalizePastedImage as B, persistImageAsBlock as D, prunePasteTmpDir as F, readAndNormalizeClipboardImage as H, ImageResizeError as I, readClipboardImage as J, KODAX_FILE_MEDIA_TYPES as K, validateInputArtifactsForModel as L, MAX_DIMENSION as M, PASTE_TMP_DIR_ENV as P, TARGET_RAW_SIZE_BYTES as T, KODAX_IMAGE_MEDIA_TYPES as c, KODAX_VIDEO_MEDIA_TYPES as d, KodaXMediaError as k, PASTE_TMP_TTL_MS as s, createFileArtifactFromPath as u, createImageArtifactFromPath as v, createVideoArtifactFromPath as w, enqueueWithArtifacts as x, getModelInputCapabilities as y, inferImageMediaType as z };
|
|
166
|
+
export type { CreateFileArtifactFromPathOptions as C, EnqueueWithArtifactsInput as E, GetModelInputCapabilitiesInput as G, NormalizeImageOptions as N, ValidateInputArtifactsOptions as V, CreateImageArtifactFromPathOptions as a, CreateVideoArtifactFromPathOptions as b, KodaXFileInputArtifact as e, KodaXImageInputArtifact as f, KodaXImageMediaType as g, KodaXInputArtifact as h, KodaXInputArtifactSource as i, KodaXInputCapabilityStatus as j, KodaXMediaErrorCode as l, KodaXMediaErrorOptions as m, KodaXModalityInputCapability as n, KodaXVideoInputArtifact as o, KodaXVideoMediaType as p, ModelInputCapabilities as q, NormalizedImage as r, PersistImageAsBlockOptions as t };
|
|
@@ -1,7 +1,113 @@
|
|
|
1
|
-
import { G as KodaXReasoningMode, O as KodaXStableEffortIntent, ab as KodaXWireReasoningEffort, H as KodaXReasoningProfile, $ as KodaXThinkingBudgetMap, a0 as KodaXThinkingDepth, r as KodaXProviderConfig, C as KodaXReasoningCapability, I as KodaXReasoningRequest, n as KodaXNormalizedReasoningRequest, X as KodaXTaskType, a9 as KodaXVerifyCredentialResult, a3 as KodaXToolDefinition, k as KodaXMessage, z as KodaXProviderStreamOptions, P as KodaXStreamResult, l as KodaXModelDescriptor, q as KodaXProviderCapabilityProfile, o as KodaXOpenAICompatMaxOutputTokensField, aa as KodaXVerifyStrategy, d as KodaXCustomProviderConfig, j as KodaXListModelsResult } from './types.d-BjOq57-z.js';
|
|
2
|
-
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { K as KodaXBaseProvider } from './base.d-ZBOdjDUT.js';
|
|
4
1
|
import OpenAI from 'openai';
|
|
2
|
+
import { K as KodaXBaseProvider } from './errors.d-D73qdYbS.js';
|
|
3
|
+
import { W as KodaXReasoningRequest, y as KodaXNormalizedReasoningRequest, C as KodaXProviderConfig, ap as KodaXVerifyCredentialResult, v as KodaXMessage, aj as KodaXToolDefinition, N as KodaXProviderStreamOptions, a2 as KodaXStreamResult, U as KodaXReasoningMode, a1 as KodaXStableEffortIntent, ar as KodaXWireReasoningEffort, V as KodaXReasoningProfile, ae as KodaXThinkingBudgetMap, af as KodaXThinkingDepth, Q as KodaXReasoningCapability, aa as KodaXTaskType, m as KodaXGenerationSource, ad as KodaXThinkingBlock, Y as KodaXRedactedThinkingBlock, d as KodaXCacheCapabilities, ai as KodaXToolCapabilities, w as KodaXModelDescriptor, B as KodaXProviderCapabilityProfile, z as KodaXOpenAICompatMaxOutputTokensField, aq as KodaXVerifyStrategy, i as KodaXCustomProviderConfig, u as KodaXListModelsResult } from './types.d-Bi8iUd6x.js';
|
|
4
|
+
import Anthropic from '@anthropic-ai/sdk';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* KodaX OpenAI Compatible Provider
|
|
8
|
+
*
|
|
9
|
+
* 支持 OpenAI API 格式的 Provider 基类
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
declare abstract class KodaXOpenAICompatProvider extends KodaXBaseProvider {
|
|
13
|
+
protected getRequestCredentialFingerprint(): string | undefined;
|
|
14
|
+
private readonly requestRejections;
|
|
15
|
+
usesScopedReasoningLearning(): boolean;
|
|
16
|
+
protected getReasoningApi(): string;
|
|
17
|
+
protected readonly requestObservationBoundary: "physical_attempt";
|
|
18
|
+
protected normalizeReasoning(reasoning?: boolean | KodaXReasoningRequest): KodaXNormalizedReasoningRequest;
|
|
19
|
+
private reasoningAttempts;
|
|
20
|
+
private skipRejectedReasoning;
|
|
21
|
+
private hasReasoningParameter;
|
|
22
|
+
private sentReasoningEffort;
|
|
23
|
+
private recordReasoningRejection;
|
|
24
|
+
abstract readonly name: string;
|
|
25
|
+
readonly supportsThinking = true;
|
|
26
|
+
protected abstract readonly config: KodaXProviderConfig;
|
|
27
|
+
private _client?;
|
|
28
|
+
private _clientPromise?;
|
|
29
|
+
supportsEphemeralSuffix(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The SDK client is built lazily on first use. Constructing it requires the
|
|
32
|
+
* API key (`getApiKey()` throws when the env var is unset), so deferring it
|
|
33
|
+
* lets callers construct a provider and read static metadata (context
|
|
34
|
+
* window, model descriptors) without a key. This also keeps key-less unit
|
|
35
|
+
* tests (which mock the actual LLM calls) from failing at construction time.
|
|
36
|
+
*/
|
|
37
|
+
private clientCredentialFingerprint?;
|
|
38
|
+
protected getClient(): Promise<OpenAI>;
|
|
39
|
+
protected set client(client: OpenAI);
|
|
40
|
+
getBaseUrl(): string;
|
|
41
|
+
protected buildClient(): OpenAI | Promise<OpenAI>;
|
|
42
|
+
private getEffectiveMaxOutputTokensField;
|
|
43
|
+
protected onStaleConnection(): void;
|
|
44
|
+
/**
|
|
45
|
+
* FEATURE_216 v0.7.45 — Lightweight credential verification.
|
|
46
|
+
* Dispatches by `this.config.verifyStrategy`:
|
|
47
|
+
* - `models-list` (default for OpenAI protocol): 0-token
|
|
48
|
+
* `models.list()` — empirically reliable for openai-compat
|
|
49
|
+
* providers where `/v1/models` gates on auth (kimi / qwen /
|
|
50
|
+
* deepseek confirmed). Verified by opencode `setup-recording-env.ts`
|
|
51
|
+
* for OPENAI_API_KEY proper.
|
|
52
|
+
* - `minimal-message`: ~6-token `chat.completions.create({max_tokens:1})`
|
|
53
|
+
* fallback for OpenAI-compat providers whose `/v1/models` is
|
|
54
|
+
* publicly accessible (zhipu — false-positive risk).
|
|
55
|
+
* - `count-tokens`: NOT supported on OpenAI protocol. Custom provider
|
|
56
|
+
* validator rejects this combo at config time; built-in providers
|
|
57
|
+
* never declare it. Orchestrator returns `unsupported` if it slips
|
|
58
|
+
* through, surfacing the misconfiguration.
|
|
59
|
+
*/
|
|
60
|
+
verifyCredential(opts?: {
|
|
61
|
+
timeoutMs?: number;
|
|
62
|
+
signal?: AbortSignal;
|
|
63
|
+
}): Promise<KodaXVerifyCredentialResult>;
|
|
64
|
+
/**
|
|
65
|
+
* FEATURE_116 (v0.7.37) — Strip any `cache-boundary` markers from
|
|
66
|
+
* KodaXMessage content arrays before they reach OpenAI wire
|
|
67
|
+
* serialization. OpenAI / DeepSeek auto-cache prefix tokens
|
|
68
|
+
* server-side, so the client has no marker to lower; Kimi/Zhipu/通义
|
|
69
|
+
* self-cache via separate `cache_id` endpoints that are deferred to
|
|
70
|
+
* v0.7.45+ (FEATURE_102). Stripping is the correct universal action
|
|
71
|
+
* for this base class.
|
|
72
|
+
*
|
|
73
|
+
* Idempotent: a message whose content is a string or contains no
|
|
74
|
+
* boundaries returns the same reference. Safe to call multiple times.
|
|
75
|
+
*/
|
|
76
|
+
protected stripCacheBoundariesFromMessages(messages: KodaXMessage[]): KodaXMessage[];
|
|
77
|
+
/**
|
|
78
|
+
* Collapse every `role: 'system'` message (the `system` parameter plus any
|
|
79
|
+
* system messages embedded in `messages`) into a single top-of-wire system
|
|
80
|
+
* content and return the remaining non-system messages. Some OpenAI-compat
|
|
81
|
+
* gateways — notably third-party Qwen proxies — reject any system message
|
|
82
|
+
* that is not at position 0, so this normalization guarantees the wire has
|
|
83
|
+
* exactly one system entry regardless of what the upstream caller passed.
|
|
84
|
+
*
|
|
85
|
+
* Post-compact attachments, compaction summaries and handoff-time
|
|
86
|
+
* `replaceSystemMessage` can all leave secondary `role: 'system'` entries
|
|
87
|
+
* mid-transcript; merging here is the provider-layer bottleneck that keeps
|
|
88
|
+
* callers from having to coordinate.
|
|
89
|
+
*/
|
|
90
|
+
protected normalizeSystemForWire(system: string, messages: KodaXMessage[]): {
|
|
91
|
+
system: string;
|
|
92
|
+
rest: KodaXMessage[];
|
|
93
|
+
};
|
|
94
|
+
private appendExtraBody;
|
|
95
|
+
private resetReasoningCapabilityParams;
|
|
96
|
+
private applyReasoningCapability;
|
|
97
|
+
private applyReasoningProfile;
|
|
98
|
+
private resolveReasoningProfileBudget;
|
|
99
|
+
stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
100
|
+
complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
101
|
+
private streamInternal;
|
|
102
|
+
supportsNonStreamingFallback(): boolean;
|
|
103
|
+
private completeInternal;
|
|
104
|
+
private serializeAssistantMessage;
|
|
105
|
+
private serializeToolResult;
|
|
106
|
+
private serializeUserMessage;
|
|
107
|
+
private serializeSystemMessage;
|
|
108
|
+
private convertMessages;
|
|
109
|
+
private repairToolCallHistory;
|
|
110
|
+
}
|
|
5
111
|
|
|
6
112
|
declare const KODAX_REASONING_MODE_SEQUENCE: KodaXReasoningMode[];
|
|
7
113
|
declare const KODAX_STABLE_EFFORT_INTENTS: KodaXStableEffortIntent[];
|
|
@@ -44,6 +150,8 @@ interface KodaXModelSwitchEffortResolution {
|
|
|
44
150
|
}
|
|
45
151
|
declare function normalizeReasoningEffortValue(value: string): KodaXWireReasoningEffort;
|
|
46
152
|
declare function mapLegacyReasoningModeToEffortIntent(mode: KodaXReasoningMode): KodaXStableEffortIntent;
|
|
153
|
+
/** Normalize old inputs once; native and provider-specific efforts pass through. */
|
|
154
|
+
declare function mapLegacyReasoningModeToEffortIntent(mode: KodaXWireReasoningEffort): KodaXWireReasoningEffort;
|
|
47
155
|
declare function effortToLegacyReasoningMode(effort: string | undefined): KodaXReasoningMode | undefined;
|
|
48
156
|
declare function parseReasoningEffortEnv(raw: string | undefined): KodaXReasoningEffortEnvOverride;
|
|
49
157
|
declare function resolveReasoningEffort(input: KodaXResolveReasoningEffortInput): KodaXResolvedReasoningEffort;
|
|
@@ -117,6 +225,14 @@ declare function resolveWireEffort(input: ResolveWireEffortInput): ResolvedWireE
|
|
|
117
225
|
*/
|
|
118
226
|
|
|
119
227
|
declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
|
|
228
|
+
usesScopedReasoningLearning(): boolean;
|
|
229
|
+
protected getReasoningApi(): string;
|
|
230
|
+
private controlEffort;
|
|
231
|
+
private skipRejectedControl;
|
|
232
|
+
private learnRejectedControl;
|
|
233
|
+
getGenerationSource(model?: string): KodaXGenerationSource;
|
|
234
|
+
/** Unknown legacy provenance keeps its existing signature policy; known foreign opaque content never replays. */
|
|
235
|
+
canReplayReasoning(block: KodaXThinkingBlock | KodaXRedactedThinkingBlock, model?: string): boolean;
|
|
120
236
|
protected readonly requestObservationBoundary: "physical_attempt";
|
|
121
237
|
abstract readonly name: string;
|
|
122
238
|
readonly supportsThinking = true;
|
|
@@ -130,11 +246,17 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
|
|
|
130
246
|
* window, model descriptors) without a key. This also keeps key-less unit
|
|
131
247
|
* tests (which mock the actual LLM calls) from failing at construction time.
|
|
132
248
|
*/
|
|
249
|
+
private clientCredentialFingerprint?;
|
|
133
250
|
protected getClient(): Promise<Anthropic>;
|
|
134
251
|
protected set client(client: Anthropic);
|
|
252
|
+
getBaseUrl(): string;
|
|
135
253
|
protected buildClient(): Anthropic | Promise<Anthropic>;
|
|
136
254
|
protected onStaleConnection(): void;
|
|
137
255
|
private buildMessageCreateOptions;
|
|
256
|
+
private isNativeHistoryModel;
|
|
257
|
+
private nativeHistoryInput;
|
|
258
|
+
private applyNativeControls;
|
|
259
|
+
private validateNativePayload;
|
|
138
260
|
private applyReasoningProfile;
|
|
139
261
|
private resolveReasoningProfileBudget;
|
|
140
262
|
/**
|
|
@@ -183,7 +305,7 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
|
|
|
183
305
|
*
|
|
184
306
|
* Returns a new array; never mutates input.
|
|
185
307
|
*/
|
|
186
|
-
protected applyCacheControlToTools(tools: KodaXToolDefinition[]): Anthropic.Messages.Tool[];
|
|
308
|
+
protected applyCacheControlToTools(tools: KodaXToolDefinition[], model?: string): Anthropic.Messages.Tool[];
|
|
187
309
|
/**
|
|
188
310
|
* FEATURE_116 follow-up — Place an incremental cache breakpoint on the
|
|
189
311
|
* conversation history (Anthropic breakpoint 3). The system prompt and
|
|
@@ -206,9 +328,11 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
|
|
|
206
328
|
*/
|
|
207
329
|
protected applyCacheControlToMessages(messages: Anthropic.Messages.MessageParam[]): Anthropic.Messages.MessageParam[];
|
|
208
330
|
supportsEphemeralSuffix(): boolean;
|
|
209
|
-
stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest,
|
|
331
|
+
stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
332
|
+
complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
333
|
+
private streamInternal;
|
|
210
334
|
supportsNonStreamingFallback(): boolean;
|
|
211
|
-
|
|
335
|
+
private completeInternal;
|
|
212
336
|
private serializeSystemMessageContent;
|
|
213
337
|
private buildSystemPrompt;
|
|
214
338
|
private convertMessages;
|
|
@@ -236,102 +360,6 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
|
|
|
236
360
|
private repairToolCallHistory;
|
|
237
361
|
}
|
|
238
362
|
|
|
239
|
-
/**
|
|
240
|
-
* KodaX OpenAI Compatible Provider
|
|
241
|
-
*
|
|
242
|
-
* 支持 OpenAI API 格式的 Provider 基类
|
|
243
|
-
*/
|
|
244
|
-
|
|
245
|
-
declare abstract class KodaXOpenAICompatProvider extends KodaXBaseProvider {
|
|
246
|
-
protected readonly requestObservationBoundary: "physical_attempt";
|
|
247
|
-
private reasoningRejections;
|
|
248
|
-
protected normalizeReasoning(reasoning?: boolean | KodaXReasoningRequest): KodaXNormalizedReasoningRequest;
|
|
249
|
-
private reasoningAttempts;
|
|
250
|
-
private skipRejectedReasoning;
|
|
251
|
-
private hasReasoningParameter;
|
|
252
|
-
private sentReasoningEffort;
|
|
253
|
-
private recordReasoningRejection;
|
|
254
|
-
abstract readonly name: string;
|
|
255
|
-
readonly supportsThinking = true;
|
|
256
|
-
protected abstract readonly config: KodaXProviderConfig;
|
|
257
|
-
private _client?;
|
|
258
|
-
private _clientPromise?;
|
|
259
|
-
supportsEphemeralSuffix(): boolean;
|
|
260
|
-
/**
|
|
261
|
-
* The SDK client is built lazily on first use. Constructing it requires the
|
|
262
|
-
* API key (`getApiKey()` throws when the env var is unset), so deferring it
|
|
263
|
-
* lets callers construct a provider and read static metadata (context
|
|
264
|
-
* window, model descriptors) without a key. This also keeps key-less unit
|
|
265
|
-
* tests (which mock the actual LLM calls) from failing at construction time.
|
|
266
|
-
*/
|
|
267
|
-
protected getClient(): Promise<OpenAI>;
|
|
268
|
-
protected set client(client: OpenAI);
|
|
269
|
-
protected buildClient(): OpenAI | Promise<OpenAI>;
|
|
270
|
-
private getEffectiveMaxOutputTokensField;
|
|
271
|
-
protected onStaleConnection(): void;
|
|
272
|
-
/**
|
|
273
|
-
* FEATURE_216 v0.7.45 — Lightweight credential verification.
|
|
274
|
-
* Dispatches by `this.config.verifyStrategy`:
|
|
275
|
-
* - `models-list` (default for OpenAI protocol): 0-token
|
|
276
|
-
* `models.list()` — empirically reliable for openai-compat
|
|
277
|
-
* providers where `/v1/models` gates on auth (kimi / qwen /
|
|
278
|
-
* deepseek confirmed). Verified by opencode `setup-recording-env.ts`
|
|
279
|
-
* for OPENAI_API_KEY proper.
|
|
280
|
-
* - `minimal-message`: ~6-token `chat.completions.create({max_tokens:1})`
|
|
281
|
-
* fallback for OpenAI-compat providers whose `/v1/models` is
|
|
282
|
-
* publicly accessible (zhipu — false-positive risk).
|
|
283
|
-
* - `count-tokens`: NOT supported on OpenAI protocol. Custom provider
|
|
284
|
-
* validator rejects this combo at config time; built-in providers
|
|
285
|
-
* never declare it. Orchestrator returns `unsupported` if it slips
|
|
286
|
-
* through, surfacing the misconfiguration.
|
|
287
|
-
*/
|
|
288
|
-
verifyCredential(opts?: {
|
|
289
|
-
timeoutMs?: number;
|
|
290
|
-
signal?: AbortSignal;
|
|
291
|
-
}): Promise<KodaXVerifyCredentialResult>;
|
|
292
|
-
/**
|
|
293
|
-
* FEATURE_116 (v0.7.37) — Strip any `cache-boundary` markers from
|
|
294
|
-
* KodaXMessage content arrays before they reach OpenAI wire
|
|
295
|
-
* serialization. OpenAI / DeepSeek auto-cache prefix tokens
|
|
296
|
-
* server-side, so the client has no marker to lower; Kimi/Zhipu/通义
|
|
297
|
-
* self-cache via separate `cache_id` endpoints that are deferred to
|
|
298
|
-
* v0.7.45+ (FEATURE_102). Stripping is the correct universal action
|
|
299
|
-
* for this base class.
|
|
300
|
-
*
|
|
301
|
-
* Idempotent: a message whose content is a string or contains no
|
|
302
|
-
* boundaries returns the same reference. Safe to call multiple times.
|
|
303
|
-
*/
|
|
304
|
-
protected stripCacheBoundariesFromMessages(messages: KodaXMessage[]): KodaXMessage[];
|
|
305
|
-
/**
|
|
306
|
-
* Collapse every `role: 'system'` message (the `system` parameter plus any
|
|
307
|
-
* system messages embedded in `messages`) into a single top-of-wire system
|
|
308
|
-
* content and return the remaining non-system messages. Some OpenAI-compat
|
|
309
|
-
* gateways — notably third-party Qwen proxies — reject any system message
|
|
310
|
-
* that is not at position 0, so this normalization guarantees the wire has
|
|
311
|
-
* exactly one system entry regardless of what the upstream caller passed.
|
|
312
|
-
*
|
|
313
|
-
* Post-compact attachments, compaction summaries and handoff-time
|
|
314
|
-
* `replaceSystemMessage` can all leave secondary `role: 'system'` entries
|
|
315
|
-
* mid-transcript; merging here is the provider-layer bottleneck that keeps
|
|
316
|
-
* callers from having to coordinate.
|
|
317
|
-
*/
|
|
318
|
-
private normalizeSystemForWire;
|
|
319
|
-
private appendExtraBody;
|
|
320
|
-
private resetReasoningCapabilityParams;
|
|
321
|
-
private applyReasoningCapability;
|
|
322
|
-
private applyReasoningProfile;
|
|
323
|
-
private resolveReasoningProfileBudget;
|
|
324
|
-
stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
325
|
-
supportsNonStreamingFallback(): boolean;
|
|
326
|
-
complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
|
|
327
|
-
private serializeAssistantMessage;
|
|
328
|
-
private serializeToolResult;
|
|
329
|
-
private serializeUserMessage;
|
|
330
|
-
private serializeSystemMessage;
|
|
331
|
-
private convertMessages;
|
|
332
|
-
private repairToolCallHistory;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
363
|
/**
|
|
336
364
|
* KodaX Provider Registry
|
|
337
365
|
*
|
|
@@ -355,6 +383,8 @@ type ProviderName = 'anthropic' | 'openai' | 'deepseek' | 'kimi' | 'kimi-code' |
|
|
|
355
383
|
* `buildProviderConfig`.
|
|
356
384
|
*/
|
|
357
385
|
type ProviderSnapshot = {
|
|
386
|
+
readonly cacheCapabilities?: KodaXCacheCapabilities;
|
|
387
|
+
readonly toolCapabilities?: KodaXToolCapabilities;
|
|
358
388
|
readonly model: string;
|
|
359
389
|
/**
|
|
360
390
|
* Alternative model descriptors beyond the default `model`. Carries
|
|
@@ -374,6 +404,8 @@ type ProviderSnapshot = {
|
|
|
374
404
|
readonly contextWindow?: number;
|
|
375
405
|
/** Per-turn output token cap KodaX requests. Provider-level default. */
|
|
376
406
|
readonly maxOutputTokens?: number;
|
|
407
|
+
/** Documented service output ceiling; independent of the default request budget. */
|
|
408
|
+
readonly outputTokenLimit?: number;
|
|
377
409
|
/** OpenAI Chat Completions field used for the output-token cap. */
|
|
378
410
|
readonly maxOutputTokensField?: KodaXOpenAICompatMaxOutputTokensField;
|
|
379
411
|
/** Upper bound on `thinking_budget` for native-budget reasoning providers. */
|
|
@@ -394,7 +426,7 @@ declare function getProvider(name?: string): KodaXBaseProvider;
|
|
|
394
426
|
declare function isProviderConfigured(name: string): boolean;
|
|
395
427
|
declare function getProviderModel(name: string): string | null;
|
|
396
428
|
declare function getProviderConfiguredReasoningCapability(name: string, modelOverride?: string): KodaXReasoningCapability | 'unknown';
|
|
397
|
-
declare function getProviderConfiguredCapabilityProfile(name: string): KodaXProviderCapabilityProfile | null;
|
|
429
|
+
declare function getProviderConfiguredCapabilityProfile(name: string, model?: string): KodaXProviderCapabilityProfile | null;
|
|
398
430
|
declare function getProviderList(): Array<{
|
|
399
431
|
name: string;
|
|
400
432
|
model: string;
|
|
@@ -426,6 +458,11 @@ declare function isProviderName(name: string): name is ProviderName;
|
|
|
426
458
|
* values in a popout UI can trust them.
|
|
427
459
|
*/
|
|
428
460
|
interface KodaXModelCapabilities {
|
|
461
|
+
/** Effective model modality, without opening a credential or Provider client. */
|
|
462
|
+
multimodalSupport?: KodaXProviderCapabilityProfile['multimodalSupport'];
|
|
463
|
+
cacheCapabilities?: KodaXCacheCapabilities;
|
|
464
|
+
/** Explicit tool constraints; omission does not advertise support. */
|
|
465
|
+
toolCapabilities?: KodaXToolCapabilities;
|
|
429
466
|
/** Provider name (`anthropic`, `kimi`, `ark-coding`, or any custom name). */
|
|
430
467
|
provider: string;
|
|
431
468
|
/** Model id (the value `runKodaX(... { model } ...)` accepts). */
|
|
@@ -450,6 +487,8 @@ interface KodaXModelCapabilities {
|
|
|
450
487
|
* meta path, not by raising this number per-turn.
|
|
451
488
|
*/
|
|
452
489
|
maxOutputTokens?: number;
|
|
490
|
+
/** Documented service output ceiling; independent of the default request budget. */
|
|
491
|
+
outputTokenLimit?: number;
|
|
453
492
|
/** Upper bound on `thinking_budget` (native-budget providers only). */
|
|
454
493
|
thinkingBudgetCap?: number;
|
|
455
494
|
/** True when the model is the provider's default (the `model` field on the snapshot). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as KodaXMessage } from './types.d-Bi8iUd6x.js';
|
|
2
2
|
|
|
3
3
|
type AgentActorState = 'running' | 'idle' | 'closed';
|
|
4
4
|
type AgentTurnState = 'accepted' | 'running' | 'completed' | 'failed' | 'interrupted';
|
|
@@ -55,6 +55,8 @@ interface AgentIterationProgress {
|
|
|
55
55
|
readonly max: number;
|
|
56
56
|
}
|
|
57
57
|
interface AgentTurn {
|
|
58
|
+
/** Executor-owned continuation; user-supplied metadata cannot create it. */
|
|
59
|
+
readonly checkpoint?: AgentMetadataValue;
|
|
58
60
|
readonly iteration?: AgentIterationProgress;
|
|
59
61
|
readonly terminationReason?: 'iteration_limit';
|
|
60
62
|
readonly turnId: string;
|
|
@@ -197,6 +199,7 @@ interface AgentBudgetPort {
|
|
|
197
199
|
snapshot?(): unknown;
|
|
198
200
|
}
|
|
199
201
|
interface AgentExecutionInput {
|
|
202
|
+
reportCheckpoint?(checkpoint: AgentMetadataValue | undefined): Promise<void>;
|
|
200
203
|
readonly actor: AgentActor;
|
|
201
204
|
readonly turn: AgentTurn;
|
|
202
205
|
readonly priorTurns: readonly AgentTurn[];
|
|
@@ -630,7 +633,15 @@ interface KodaXSessionUiToolGroupHistoryItem {
|
|
|
630
633
|
}
|
|
631
634
|
type KodaXSessionUiHistoryItem = KodaXSessionUiTextHistoryItem | KodaXSessionUiToolGroupHistoryItem;
|
|
632
635
|
type KodaXSessionWorkspaceKind = 'detected' | 'managed';
|
|
636
|
+
/** Durable receipt for the one-way promotion of a consumer's temporary Session. */
|
|
637
|
+
interface KodaXSessionPromotionRecord {
|
|
638
|
+
readonly sessionId: string;
|
|
639
|
+
readonly requestId: string;
|
|
640
|
+
readonly expectedRevision: string;
|
|
641
|
+
readonly tag: string;
|
|
642
|
+
}
|
|
633
643
|
interface KodaXSessionRuntimeInfo {
|
|
644
|
+
readonly sessionPromotion?: KodaXSessionPromotionRecord;
|
|
634
645
|
/** Host-owned task lifetime; delete this Session after its task settles. */
|
|
635
646
|
temporary?: boolean;
|
|
636
647
|
canonicalRepoRoot?: string;
|
|
@@ -759,6 +770,8 @@ interface KodaXExtensionStore {
|
|
|
759
770
|
interface KodaXSessionStorage {
|
|
760
771
|
save(id: string, data: KodaXSessionData): Promise<void>;
|
|
761
772
|
load(id: string): Promise<KodaXSessionData | null>;
|
|
773
|
+
/** Append durable protocol receipts without replacing the host's transcript or metadata. False means missing Session. */
|
|
774
|
+
appendSessionRecords?(id: string, records: readonly KodaXExtensionSessionRecord[]): Promise<boolean>;
|
|
762
775
|
/** Atomically updates Runtime-owned Session metadata without replacing transcript state. */
|
|
763
776
|
mutateRuntimeInfo?(id: string, mutation: (runtimeInfo: KodaXSessionRuntimeInfo | undefined) => KodaXSessionRuntimeInfo | undefined): Promise<boolean>;
|
|
764
777
|
/**
|
|
@@ -1361,5 +1374,5 @@ declare function withPendingEpisodeReviewSessionFence<T>(input: {
|
|
|
1361
1374
|
}, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
|
|
1362
1375
|
declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
|
|
1363
1376
|
|
|
1364
|
-
export { EpisodeReviewBranchChangedError as V, EpisodeReviewFailure as a0, captureEpisodeReviewBranchEpoch as
|
|
1365
|
-
export type { EpisodeReviewDrainResult as $, AgentActor as A, AgentInterruptScope as B, AgentIterationProgress as C, AgentLimitReached as D, AgentListEntry as E, AgentMailboxMessage as F, AgentMetadataValue as G, AgentMutationOptions as H, AgentOutput as I, AgentProgressItem as J, AgentProgressKind as K, AgentProgressUpdate as L, AgentSpawnInput as M, AgentTreeSnapshot as N, AgentTurn as O, AgentTurnExecutor as P, AgentTurnRef as Q, AgentTurnState as R, AgentTurnSummary as S, EpisodeReviewActionInput as T, EpisodeReviewActionReceipt as U, EpisodeReviewClaim as W, EpisodeReviewDecision as X, EpisodeReviewDecisionInput as Y, EpisodeReviewDrainEligibility as Z, EpisodeReviewDrainOptions as _, AgentActorClient as a,
|
|
1377
|
+
export { EpisodeReviewBranchChangedError as V, EpisodeReviewFailure as a0, captureEpisodeReviewBranchEpoch as bD, claimEpisodeReview as bE, commitEpisodeReviewAction as bF, commitEpisodeReviewDecision as bG, completeEpisodeReview as bH, completeFencedEpisodeReview as bI, deferEpisodeReview as bJ, discardFencedEpisodeReview as bK, drainPendingEpisodeReviews as bL, failEpisodeReviewApply as bM, failEpisodeReviewAttempt as bN, freezeEpisodeReviewInput as bO, hashMemoryIdentityComponent as bP, inspectEpisodeReviewJob as bQ, isMemoryManagementController as bR, listPendingEpisodeReviewSummaries as bS, listPendingEpisodeReviews as bT, matchesMemoryApplicability as bU, memoryApplicabilityFingerprint as bV, persistPendingEpisodeReview as bW, withEpisodeReviewClaimAuthority as bX, withPendingEpisodeReviewSessionFence as bY };
|
|
1378
|
+
export type { EpisodeReviewDrainResult as $, AgentActor as A, AgentInterruptScope as B, AgentIterationProgress as C, AgentLimitReached as D, AgentListEntry as E, AgentMailboxMessage as F, AgentMetadataValue as G, AgentMutationOptions as H, AgentOutput as I, AgentProgressItem as J, AgentProgressKind as K, AgentProgressUpdate as L, AgentSpawnInput as M, AgentTreeSnapshot as N, AgentTurn as O, AgentTurnExecutor as P, AgentTurnRef as Q, AgentTurnState as R, AgentTurnSummary as S, EpisodeReviewActionInput as T, EpisodeReviewActionReceipt as U, EpisodeReviewClaim as W, EpisodeReviewDecision as X, EpisodeReviewDecisionInput as Y, EpisodeReviewDrainEligibility as Z, EpisodeReviewDrainOptions as _, AgentActorClient as a, MemoryContextIdentity as a$, EpisodeReviewFailureKind as a1, EpisodeReviewInputCheckpoint as a2, EpisodeReviewInputSpec as a3, EpisodeReviewJobSnapshot as a4, EpisodeReviewJobState as a5, EpisodeReviewJobStatus as a6, EpisodeReviewReceipt as a7, KodaXCompactMemoryProgress as a8, KodaXCompactMemorySeed as a9, KodaXSessionMessageEntry as aA, KodaXSessionMeta as aB, KodaXSessionNavigationOptions as aC, KodaXSessionPromotionRecord as aD, KodaXSessionRewindMarkerEntry as aE, KodaXSessionRuntimeInfo as aF, KodaXSessionScope as aG, KodaXSessionStorage as aH, KodaXSessionTreeNode as aI, KodaXSessionUiHistoryItem as aJ, KodaXSessionUiHistoryItemType as aK, KodaXSessionUiTextHistoryItem as aL, KodaXSessionUiTextHistoryItemType as aM, KodaXSessionUiToolCall as aN, KodaXSessionUiToolCallStatus as aO, KodaXSessionUiToolGroupHistoryItem as aP, KodaXSessionWorkspaceKind as aQ, MemoryActionProposal as aR, MemoryApplicability as aS, MemoryApplyPreview as aT, MemoryApplyResult as aU, MemoryApproval as aV, MemoryAuthority as aW, MemoryAutoCuratorInput as aX, MemoryAutoCuratorResult as aY, MemoryBodySnapshot as aZ, MemoryClaimKind as a_, KodaXExtensionSessionRecord as aa, KodaXExtensionSessionState as ab, KodaXExtensionStore as ac, KodaXExtensionStoreEntry as ad, KodaXGoalEventType as ae, KodaXGoalState as af, KodaXGoalStatus as ag, KodaXHandledMemoryOperation as ah, KodaXJsonValue as ai, KodaXMemoryInfluenceRef as aj, KodaXMemoryIntent as ak, KodaXMemoryOutcomeDigest as al, KodaXMemoryOutcomeEvidence as am, KodaXSessionArchiveMarkerEntry as an, KodaXSessionArtifactLedgerEntry as ao, KodaXSessionBranchSummaryEntry as ap, KodaXSessionClientNoticeEntry as aq, KodaXSessionCompactionEntry as ar, KodaXSessionData as as, KodaXSessionEntry as at, KodaXSessionEntryBase as au, KodaXSessionGoalEntry as av, KodaXSessionLabelEntry as aw, KodaXSessionLineage as ax, KodaXSessionMemoryOutcomeDigestEntry as ay, KodaXSessionMemoryReviewReceiptEntry as az, AgentActorOwner as b, MemoryController as b0, MemoryCuratorInput as b1, MemoryEpisodeReviewResult as b2, MemoryEvent as b3, MemoryGovernanceFinding as b4, MemoryGovernanceFindingKind as b5, MemoryGovernanceReport as b6, MemoryItemRef as b7, MemoryLifecycle as b8, MemoryLifecycleOperationResult as b9, PendingEpisodeReviewV1 as bA, PendingEpisodeReviewV2 as bB, SessionErrorMetadata as bC, MemoryManagementController as ba, MemoryPack as bb, MemoryPackHint as bc, MemoryPackInput as bd, MemoryPackTraceMetadata as be, MemoryProposalAction as bf, MemoryRefFilter as bg, MemoryRefKind as bh, MemoryRejectResult as bi, MemoryRememberInput as bj, MemoryRememberResult as bk, MemoryReviewCandidateRef as bl, MemoryReviewDraftAction as bm, MemoryReviewInput as bn, MemoryReviewModelInput as bo, MemoryReviewPersistenceDecision as bp, MemoryReviewPersistenceKind as bq, MemoryReviewPlan as br, MemoryReviewRunner as bs, MemoryReviewTrigger as bt, MemoryScope as bu, MemorySourceAdapter as bv, MemoryVisibility as bw, PendingEpisodeReview as bx, PendingEpisodeReviewFilter as by, PendingEpisodeReviewSummary as bz, AgentActorSaveAttempt as c, AgentActorSaveDiagnostics as d, AgentActorSavePhase as e, AgentActorSaveTiming as f, AgentActorSnapshot as g, AgentActorSnapshotV1 as h, AgentActorSnapshotV2 as i, AgentActorState as j, AgentActorStore as k, AgentArtifactDescriptor as l, AgentBudgetAdmission as m, AgentBudgetAdmissionInput as n, AgentBudgetExhausted as o, AgentBudgetPort as p, AgentCapabilities as q, AgentDataClassification as r, AgentDetail as s, AgentEvent as t, AgentEventKind as u, AgentExecutionInput as v, AgentExecutionKind as w, AgentExecutionResult as x, AgentFollowupResult as y, AgentForkTurns as z };
|