@kodax-ai/kodax 0.7.76 → 0.7.78
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 +758 -371
- package/LICENSE +158 -158
- package/README.md +1702 -1508
- package/README_CN.md +1019 -869
- package/config-templates/config.example.jsonc +86 -4
- package/config-templates/integrations/a2a.example.jsonc +98 -98
- package/config-templates/integrations/extensions.example.jsonc +7 -7
- package/config-templates/integrations/mcp.example.jsonc +16 -16
- package/dist/builtin/code-review/SKILL.md +22 -22
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +62 -62
- package/dist/builtin/skill-creator/scripts/generate-review.d.ts +33 -33
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +73 -73
- package/dist/builtin/skill-creator/scripts/improve-description.d.ts +23 -23
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +14 -14
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +29 -29
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +38 -38
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +8 -8
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +66 -66
- package/dist/builtin/skill-creator/scripts/run-loop.d.ts +49 -49
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.d.ts +58 -58
- package/dist/chunks/agent-ASP4MS3X.js +2 -0
- package/dist/chunks/argument-completer-JYQ7FX3W.js +2 -0
- package/dist/chunks/chunk-2CFHBKRE.js +5 -0
- package/dist/chunks/chunk-35PPHOQ2.js +292 -0
- package/dist/chunks/chunk-43QNNDHR.js +29 -0
- package/dist/chunks/chunk-5BNQXXGY.js +1 -0
- package/dist/chunks/chunk-5GO6FH7L.js +458 -0
- package/dist/chunks/chunk-5NDCSFOP.js +78 -0
- package/dist/chunks/chunk-6FOJVETH.js +22 -0
- package/dist/chunks/chunk-6XM4B6K2.js +48 -0
- package/dist/chunks/chunk-6YZUE6NC.js +240 -0
- package/dist/chunks/{chunk-RDXRM3UI.js → chunk-7OEBJGHK.js} +1 -1
- package/dist/chunks/chunk-KQLQYHWU.js +386 -0
- package/dist/chunks/chunk-NXO6GWSY.js +46 -0
- package/dist/chunks/chunk-T2XZTLYE.js +316 -0
- package/dist/chunks/chunk-TQDBTTIM.js +348 -0
- package/dist/chunks/{chunk-SMT2JSM3.js → chunk-UID7BLAB.js} +9 -9
- package/dist/chunks/chunk-VAT2QYXM.js +765 -0
- package/dist/chunks/chunk-YAZQTC2L.js +5 -0
- package/dist/chunks/chunk-YVRYHC4C.js +655 -0
- package/dist/chunks/{chunk-PXKSE54E.js → chunk-Z3KFRTSB.js} +1 -1
- package/dist/chunks/compaction-config-BQSSIWK5.js +2 -0
- package/dist/chunks/{construction-bootstrap-5F5KF2BZ.js → construction-bootstrap-VQLQGWPY.js} +1 -1
- package/dist/chunks/dist-BFT5YIGU.js +2 -0
- package/dist/chunks/dist-PCFE24YP.js +2 -0
- package/dist/chunks/host-UTFXCYYM.js +2 -0
- package/dist/chunks/run-manager-PJU3WIFJ.js +2 -0
- package/dist/chunks/utils-SID4HW2Q.js +2 -0
- package/dist/index.d.ts +21 -19
- package/dist/index.js +6 -6
- package/dist/kodax_bootstrap.js +25 -25
- package/dist/kodax_cli.js +1787 -1341
- package/dist/kodax_resume.js +17 -17
- package/dist/provider-capabilities.json +392 -362
- package/dist/runtime-worker.js +1707 -1279
- package/dist/sandbox-workspace-session.js +563 -0
- package/dist/sdk-a2a.d.ts +18 -17
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +320 -70
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +135 -168
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +14 -597
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +219 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +70 -27
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +212 -149
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +93 -0
- package/dist/sdk-sandbox.js +2 -0
- package/dist/sdk-session.d.ts +8 -8
- 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 +15 -15
- package/dist/types-chunks/{base.d-ChvpaKjZ.d.ts → base.d-4e74xDdy.d.ts} +13 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-r1beOESM.d.ts → bash-prefix-extractor.d-uAe2Oqda.d.ts} +319 -9
- package/dist/types-chunks/{capability-learning.d-DPrYxRjF.d.ts → capability-learning.d-CVsdHw4j.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-zeqV4IQX.d.ts → capsule.d-BlSv9l3V.d.ts} +2 -2
- package/dist/types-chunks/{guardrail.d-CWYD1bdL.d.ts → guardrail.d-BRE_ErEj.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-qjuKJZ31.d.ts → guardrail.d-CXDYRgZ3.d.ts} +201 -35
- package/dist/types-chunks/{history-retrieval.d-BKTJIrVd.d.ts → history-retrieval.d-DtCy7x64.d.ts} +2 -2
- package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
- package/dist/types-chunks/{public-api.d-CX4B11qY.d.ts → public-api.d-B3AohsxN.d.ts} +37 -8
- package/dist/types-chunks/{commands.d-DUxnK2TU.d.ts → repl.d-Ie_ZXb_U.d.ts} +89 -78
- package/dist/types-chunks/{side-query.d-DWTMsndP.d.ts → resolver.d-iAQ9ocLB.d.ts} +23 -74
- package/dist/types-chunks/{run-manager.d-B9fEIjZk.d.ts → run-manager.d-D1twIhF9.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-B0fhAOPa.d.ts → sdk-session-DB9KksIx.d.ts} +3 -3
- package/dist/types-chunks/side-query.d-DTuLPcC5.d.ts +77 -0
- package/dist/types-chunks/types-D3g6XUQr.d.ts +662 -0
- package/dist/types-chunks/{types.d-sRLugmjy.d.ts → types.d-BA-Jwpfs.d.ts} +506 -11
- package/dist/types-chunks/{types.d-DEctY20M.d.ts → types.d-BH0ZkTGf.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
- package/dist/types-chunks/{types.d-CSmF0t0n.d.ts → types.d-DIpZJKUl.d.ts} +15 -0
- package/dist/types-chunks/{types.d-Bm_y6YuM.d.ts → types.d-DVDTIfB_.d.ts} +4 -4
- package/dist/types-chunks/{utils.d-D0wPxz8y.d.ts → utils.d-CVp6bFl9.d.ts} +23 -7
- package/docs/SDK_EMBEDDER_GUIDE.md +592 -119
- package/package.json +9 -1
- package/scripts/kodax-bin.cjs +28 -28
- package/scripts/production-env.cjs +25 -25
- package/dist/chunks/agent-7X5CFET2.js +0 -2
- package/dist/chunks/argument-completer-3NHIKB4N.js +0 -2
- package/dist/chunks/chunk-4PWPNCNK.js +0 -158
- package/dist/chunks/chunk-7FJNLJLF.js +0 -369
- package/dist/chunks/chunk-COQYLD4U.js +0 -5
- package/dist/chunks/chunk-D3T24FJW.js +0 -78
- package/dist/chunks/chunk-EI4JBQKL.js +0 -46
- package/dist/chunks/chunk-HGT6WQ24.js +0 -321
- package/dist/chunks/chunk-HS3XHF3R.js +0 -622
- package/dist/chunks/chunk-IDCGNQ4H.js +0 -5
- package/dist/chunks/chunk-KAY2XLCP.js +0 -74
- package/dist/chunks/chunk-OD6LVXU6.js +0 -329
- package/dist/chunks/chunk-OSF3H4RR.js +0 -22
- package/dist/chunks/chunk-TGMBHGZO.js +0 -427
- package/dist/chunks/chunk-VWSLC2WO.js +0 -770
- package/dist/chunks/chunk-Y3AMP22L.js +0 -37
- package/dist/chunks/compaction-config-7J2XE35D.js +0 -2
- package/dist/chunks/dist-2RA7LSH3.js +0 -2
- package/dist/chunks/dist-URKXBOC6.js +0 -2
- package/dist/chunks/host-RKZ2OGFT.js +0 -2
- package/dist/chunks/run-manager-7RM4HEH6.js +0 -2
- package/dist/chunks/utils-X3TEH6IO.js +0 -2
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as KodaXMessage, a1 as KodaXToolDefinition, F as KodaXReasoningMode, a9 as KodaXWireReasoningEffort, a3 as KodaXToolResultContentItem, Y as KodaXThinkingBlock, I as KodaXRedactedThinkingBlock } from './types.d-
|
|
1
|
+
import { k as KodaXMessage, a1 as KodaXToolDefinition, F as KodaXReasoningMode, a9 as KodaXWireReasoningEffort, a3 as KodaXToolResultContentItem, Y as KodaXThinkingBlock, I as KodaXRedactedThinkingBlock } from './types.d-DIpZJKUl.js';
|
|
2
2
|
|
|
3
3
|
type AgentActorState = 'running' | 'idle' | 'closed';
|
|
4
4
|
type AgentTurnState = 'accepted' | 'running' | 'completed' | 'failed' | 'interrupted';
|
|
@@ -195,16 +195,19 @@ interface AgentExecutionResult {
|
|
|
195
195
|
readonly artifacts?: readonly string[];
|
|
196
196
|
readonly artifactDetails?: readonly AgentArtifactDescriptor[];
|
|
197
197
|
readonly structured?: AgentMetadataValue;
|
|
198
|
+
/** Runtime-observed completion facts merged into the durable Turn metadata. */
|
|
199
|
+
readonly turnMetadata?: Readonly<Record<string, AgentMetadataValue>>;
|
|
198
200
|
}
|
|
199
201
|
interface AgentMutationOptions {
|
|
200
202
|
/** Optimistic Actor revision checked inside the serialized durable mutation. */
|
|
201
203
|
readonly expectedRevision?: number;
|
|
204
|
+
/** Optimistic tree revision checked inside the serialized durable mutation. */
|
|
205
|
+
readonly expectedTreeRevision?: number;
|
|
202
206
|
}
|
|
203
207
|
interface AgentTurnExecutor {
|
|
204
208
|
execute(input: AgentExecutionInput): Promise<AgentExecutionResult>;
|
|
205
209
|
}
|
|
206
|
-
interface
|
|
207
|
-
readonly schemaVersion: 1;
|
|
210
|
+
interface AgentActorSnapshotContents {
|
|
208
211
|
readonly revision: number;
|
|
209
212
|
readonly maxConcurrentThreads: number;
|
|
210
213
|
readonly actors: readonly AgentActor[];
|
|
@@ -216,14 +219,34 @@ interface AgentActorSnapshot {
|
|
|
216
219
|
readonly pendingRootCompletionTurnIds?: readonly string[];
|
|
217
220
|
readonly events: readonly AgentEvent[];
|
|
218
221
|
}
|
|
222
|
+
/** Runtime process/controller identity that exclusively owns one durable Actor tree. */
|
|
223
|
+
interface AgentActorOwner {
|
|
224
|
+
readonly ownerId: string;
|
|
225
|
+
readonly runtimeId: string;
|
|
226
|
+
readonly pid: number;
|
|
227
|
+
readonly startedAt: string;
|
|
228
|
+
/** Opaque host identity for proving that this exact Runtime, not only its PID, remains alive. */
|
|
229
|
+
readonly livenessId?: string;
|
|
230
|
+
/** Loopback challenge endpoint paired with livenessId. */
|
|
231
|
+
readonly livenessPort?: number;
|
|
232
|
+
}
|
|
233
|
+
interface AgentActorSnapshotV1 extends AgentActorSnapshotContents {
|
|
234
|
+
readonly schemaVersion: 1;
|
|
235
|
+
}
|
|
236
|
+
interface AgentActorSnapshotV2 extends AgentActorSnapshotContents {
|
|
237
|
+
readonly schemaVersion: 2;
|
|
238
|
+
readonly owner?: AgentActorOwner;
|
|
239
|
+
}
|
|
240
|
+
type AgentActorSnapshot = AgentActorSnapshotV1 | AgentActorSnapshotV2;
|
|
219
241
|
interface AgentActorStore {
|
|
220
242
|
load(): Promise<AgentActorSnapshot | undefined>;
|
|
243
|
+
/** CAS save. Implementations must throw actor_snapshot_conflict on a revision mismatch. */
|
|
221
244
|
save(snapshot: AgentActorSnapshot, expectedRevision: number): Promise<void>;
|
|
222
245
|
}
|
|
223
246
|
/** Runtime-bound actor control surface. The caller path is minted by Runtime. */
|
|
224
247
|
interface AgentActorClient {
|
|
225
248
|
readonly callerPath: string;
|
|
226
|
-
spawn(input: AgentSpawnInput): Promise<AgentTurnRef>;
|
|
249
|
+
spawn(input: AgentSpawnInput, options?: AgentMutationOptions): Promise<AgentTurnRef>;
|
|
227
250
|
send(targetPath: string, content: string, classification?: AgentDataClassification, forwardedMessageId?: string): Promise<AgentMailboxMessage>;
|
|
228
251
|
followup(targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
|
|
229
252
|
interrupt(targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
|
|
@@ -342,26 +365,47 @@ interface KodaXSessionClientNoticeEntry extends KodaXSessionEntryBase {
|
|
|
342
365
|
interface KodaXMemoryOutcomeDigest {
|
|
343
366
|
readonly id: string;
|
|
344
367
|
readonly reviewKey: string;
|
|
368
|
+
/** Stable root-episode identity; absent on pre-F263 digests. */
|
|
369
|
+
readonly episodeId?: string;
|
|
345
370
|
readonly sessionId: string;
|
|
346
371
|
readonly branchId: string;
|
|
347
372
|
readonly sequence: number;
|
|
348
373
|
readonly objective: string;
|
|
349
374
|
readonly actionSignature?: string;
|
|
350
375
|
readonly approach: string;
|
|
351
|
-
|
|
376
|
+
/**
|
|
377
|
+
* `cancelled` is reserved for a host-bound explicit Memory intent. Ordinary
|
|
378
|
+
* cancelled episodes do not produce an outcome digest.
|
|
379
|
+
*/
|
|
380
|
+
readonly outcome: 'succeeded' | 'failed' | 'cancelled';
|
|
352
381
|
readonly summary: string;
|
|
353
382
|
readonly preconditions?: string;
|
|
354
383
|
readonly lesson?: string;
|
|
355
384
|
readonly evidenceRefs: readonly string[];
|
|
356
385
|
readonly evidence?: readonly KodaXMemoryOutcomeEvidence[];
|
|
386
|
+
/**
|
|
387
|
+
* Explicit durable intent captured from the Action LLM and bound by the
|
|
388
|
+
* host to an exact quote in the current user turn. It is evidence for the
|
|
389
|
+
* governed reviewer, never proof that Memory was queued or applied.
|
|
390
|
+
*/
|
|
391
|
+
readonly memoryIntent?: KodaXMemoryIntent;
|
|
357
392
|
readonly memoryInfluence?: readonly KodaXMemoryInfluenceRef[];
|
|
358
393
|
readonly visibility: 'prompt_safe' | 'private' | 'sensitive';
|
|
359
394
|
readonly createdAt: string;
|
|
360
395
|
}
|
|
396
|
+
interface KodaXMemoryIntent {
|
|
397
|
+
readonly operation: 'remember' | 'correct';
|
|
398
|
+
readonly evidenceRef: string;
|
|
399
|
+
/** Sanitized model-derived claim proposed for governed review. */
|
|
400
|
+
readonly candidateStatement: string;
|
|
401
|
+
/** Sanitized representation of the exact current-user quote verified by the host. */
|
|
402
|
+
readonly userQuote: string;
|
|
403
|
+
}
|
|
361
404
|
interface KodaXMemoryOutcomeEvidence {
|
|
362
405
|
readonly ref: string;
|
|
363
406
|
readonly grade: 'authoritative' | 'verified' | 'corroborated' | 'observed' | 'inferred';
|
|
364
407
|
readonly source: 'user' | 'host' | 'tool' | 'environment' | 'agent';
|
|
408
|
+
readonly verdict?: 'passed' | 'failed' | 'inconclusive';
|
|
365
409
|
readonly observedAt: string;
|
|
366
410
|
}
|
|
367
411
|
interface KodaXMemoryInfluenceRef {
|
|
@@ -371,9 +415,13 @@ interface KodaXMemoryInfluenceRef {
|
|
|
371
415
|
interface KodaXSessionMemoryOutcomeDigestEntry extends KodaXSessionEntryBase {
|
|
372
416
|
readonly type: 'memory_outcome_digest';
|
|
373
417
|
readonly digest: KodaXMemoryOutcomeDigest;
|
|
418
|
+
/** Durable F263 review job identity. Absent on pre-F263 lineage records. */
|
|
419
|
+
readonly jobId?: string;
|
|
374
420
|
}
|
|
375
421
|
interface KodaXSessionMemoryReviewReceiptEntry extends KodaXSessionEntryBase {
|
|
376
422
|
readonly type: 'memory_review_receipt';
|
|
423
|
+
/** Distinguishes repeated review keys across branch epochs. */
|
|
424
|
+
readonly jobId?: string;
|
|
377
425
|
readonly reviewKey: string;
|
|
378
426
|
readonly proposalIds: readonly string[];
|
|
379
427
|
readonly status: 'completed' | 'no_action';
|
|
@@ -613,6 +661,14 @@ interface KodaXExtensionStore {
|
|
|
613
661
|
interface KodaXSessionStorage {
|
|
614
662
|
save(id: string, data: KodaXSessionData): Promise<void>;
|
|
615
663
|
load(id: string): Promise<KodaXSessionData | null>;
|
|
664
|
+
/**
|
|
665
|
+
* Atomically mutates context-silent lineage state against the latest
|
|
666
|
+
* persisted session. Hosts that own session persistence may expose this
|
|
667
|
+
* without allowing the runner to write a stale full snapshot. Returns
|
|
668
|
+
* true when the session existed and the callback was evaluated, including
|
|
669
|
+
* an idempotent no-op; false only when the session was not found.
|
|
670
|
+
*/
|
|
671
|
+
mutateLineage?(id: string, mutation: (lineage: KodaXSessionLineage) => KodaXSessionLineage): Promise<boolean>;
|
|
616
672
|
getLineage?(id: string): Promise<KodaXSessionLineage | null>;
|
|
617
673
|
/** Exact lineage merged from the active session file and island sidecars. */
|
|
618
674
|
loadFullLineage?(id: string): Promise<KodaXSessionLineage | null>;
|
|
@@ -974,10 +1030,16 @@ interface MemoryDecisionTraceReceipt {
|
|
|
974
1030
|
readonly decisionRevision: string;
|
|
975
1031
|
readonly policyVersion: string;
|
|
976
1032
|
readonly candidateSetFingerprint: string;
|
|
1033
|
+
readonly candidateIds: readonly string[];
|
|
1034
|
+
readonly selectedCandidateIds: readonly string[];
|
|
1035
|
+
readonly injectedEvidenceRefs: readonly string[];
|
|
1036
|
+
readonly triggers?: readonly ('tool_failure' | 'verification_failure' | 'context_compacted')[];
|
|
977
1037
|
readonly candidateRefs: readonly string[];
|
|
978
1038
|
readonly selectedRefs: readonly string[];
|
|
979
1039
|
readonly injectedRefs: readonly string[];
|
|
980
|
-
readonly selectionModes: readonly ('task_hint' | 'exact'
|
|
1040
|
+
readonly selectionModes: readonly ('task_hint' | 'exact'
|
|
1041
|
+
/** @deprecated Retained for source compatibility; F275 no longer emits this mode. */
|
|
1042
|
+
| 'semantic_prefetch' | 'semantic_intervention' | 'deliberate_query')[];
|
|
981
1043
|
readonly actionSignature?: string;
|
|
982
1044
|
readonly throughSequence: number;
|
|
983
1045
|
}
|
|
@@ -1791,6 +1853,13 @@ interface RunnerLlmResult {
|
|
|
1791
1853
|
readonly text: string;
|
|
1792
1854
|
readonly toolCalls?: readonly RunnerToolCall[];
|
|
1793
1855
|
readonly stopReason?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* Provider-visible input messages synthesized by the LLM adapter for this
|
|
1858
|
+
* exact generation (for example a runtime reminder). Runner commits them
|
|
1859
|
+
* immediately before the generated assistant message so the authoritative
|
|
1860
|
+
* transcript remains a faithful prefix of the next provider request.
|
|
1861
|
+
*/
|
|
1862
|
+
readonly injectedInputMessages?: readonly AgentMessage[];
|
|
1794
1863
|
/**
|
|
1795
1864
|
* v0.7.26 parity: extended-thinking blocks from the provider stream.
|
|
1796
1865
|
* Must be preserved on the assistant message so (a) session resume can
|
|
@@ -2123,6 +2192,32 @@ interface RunOptions {
|
|
|
2123
2192
|
/** Executed tool names from the iteration that reached this boundary. */
|
|
2124
2193
|
readonly lastTurnToolNames: readonly string[];
|
|
2125
2194
|
}) => Promise<readonly AgentMessage[]>;
|
|
2195
|
+
/**
|
|
2196
|
+
* Active-run input continuation owned by an embedder that accepts input
|
|
2197
|
+
* against a specific in-flight run.
|
|
2198
|
+
*
|
|
2199
|
+
* Unlike `beforeNextTurn`, this hook is consulted at a terminal candidate:
|
|
2200
|
+
* a no-tool model response or a terminal tool signal. Runner synchronously
|
|
2201
|
+
* closes admission as soon as it recognizes the candidate, then drains input
|
|
2202
|
+
* that was already accepted. A non-empty drain is committed to the
|
|
2203
|
+
* transcript, admission reopens, and the same run continues.
|
|
2204
|
+
* Lifecycle continuations may reserve only a small fixed number of turns
|
|
2205
|
+
* beyond the configured iteration cap; the final absolute turn keeps
|
|
2206
|
+
* admission closed.
|
|
2207
|
+
*
|
|
2208
|
+
* REPL hosts should omit this option so their existing round boundary keeps
|
|
2209
|
+
* ownership of queued follow-ups.
|
|
2210
|
+
*/
|
|
2211
|
+
readonly terminalContinuation?: {
|
|
2212
|
+
readonly closeInputWindow: () => void;
|
|
2213
|
+
readonly reopenInputWindow: () => void;
|
|
2214
|
+
readonly drain: (ctx: {
|
|
2215
|
+
readonly agent: Agent;
|
|
2216
|
+
readonly transcript: readonly AgentMessage[];
|
|
2217
|
+
readonly iteration: number;
|
|
2218
|
+
readonly lastTurnToolNames: readonly string[];
|
|
2219
|
+
}) => Promise<readonly AgentMessage[]>;
|
|
2220
|
+
};
|
|
2126
2221
|
/**
|
|
2127
2222
|
* FEATURE_166 (v0.7.41 follow-up) — agent-switch hook.
|
|
2128
2223
|
*
|
|
@@ -2751,6 +2846,8 @@ interface DiscoveryOptions {
|
|
|
2751
2846
|
declare function discoverInstances(options?: DiscoveryOptions): DiscoveredInstance[];
|
|
2752
2847
|
|
|
2753
2848
|
interface MemoryContextIdentity {
|
|
2849
|
+
/** Explicit owner home for durable runtime state; never persisted in review envelopes. */
|
|
2850
|
+
readonly configHome?: string;
|
|
2754
2851
|
readonly tenantId: string;
|
|
2755
2852
|
readonly workspaceId?: string;
|
|
2756
2853
|
readonly userId?: string;
|
|
@@ -2849,6 +2946,7 @@ interface MemoryApproval {
|
|
|
2849
2946
|
readonly expectedFingerprints: Readonly<Record<string, string>>;
|
|
2850
2947
|
readonly policyId?: string;
|
|
2851
2948
|
readonly policyReason?: string;
|
|
2949
|
+
readonly revalidateAuthority?: () => Promise<void>;
|
|
2852
2950
|
}
|
|
2853
2951
|
interface MemoryApplyResult {
|
|
2854
2952
|
readonly proposalId: string;
|
|
@@ -2921,7 +3019,7 @@ interface MemoryPackInput {
|
|
|
2921
3019
|
readonly includeSensitive?: boolean;
|
|
2922
3020
|
readonly includeSnippets?: boolean;
|
|
2923
3021
|
readonly ignoreMemory?: boolean;
|
|
2924
|
-
readonly purpose?: 'automatic' | 'deliberate_query';
|
|
3022
|
+
readonly purpose?: 'automatic' | 'deliberate_query' | 'intervention';
|
|
2925
3023
|
}
|
|
2926
3024
|
interface MemoryPackHint {
|
|
2927
3025
|
readonly ref: MemoryItemRef;
|
|
@@ -3025,7 +3123,15 @@ interface MemoryController {
|
|
|
3025
3123
|
maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
|
|
3026
3124
|
buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
|
|
3027
3125
|
reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
|
|
3126
|
+
prepareEpisodeReview?(digest: KodaXMemoryOutcomeDigest): Promise<MemoryReviewModelInput>;
|
|
3127
|
+
applyReviewedEpisode?(plan: MemoryReviewPlan, digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal, revalidateAuthority?: () => Promise<void>): Promise<MemoryEpisodeReviewResult>;
|
|
3028
3128
|
persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
|
|
3129
|
+
/**
|
|
3130
|
+
* Resolves which episode-review proposals were actually auto-applied by the
|
|
3131
|
+
* governed host policy. Used to keep durable receipts complete while user
|
|
3132
|
+
* notices remain truthful.
|
|
3133
|
+
*/
|
|
3134
|
+
listHostAppliedEpisodeProposalIds?(proposalIds: readonly string[]): Promise<readonly string[]>;
|
|
3029
3135
|
reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
|
|
3030
3136
|
archiveRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
3031
3137
|
forgetRef(id: string): Promise<MemoryLifecycleOperationResult>;
|
|
@@ -3052,6 +3158,395 @@ type MemoryEvent = {
|
|
|
3052
3158
|
readonly actionCount: number;
|
|
3053
3159
|
};
|
|
3054
3160
|
|
|
3161
|
+
type LearnedCapabilityCarrier = 'skill' | 'extension' | 'workflow_handoff';
|
|
3162
|
+
type LearnedCapabilityLifecycle = 'opportunity' | 'drafting' | 'ready' | 'testing' | 'active_learned' | 'promoted_user' | 'quarantined' | 'archived' | 'rejected';
|
|
3163
|
+
type LearningEventKind = 'opportunity' | 'drafting' | 'ready' | 'testing' | 'activated' | 'promoted' | 'attention' | 'archived' | 'rejected';
|
|
3164
|
+
type LearningAction = 'review' | 'trust' | 'reject' | 'disable' | 'rollback' | 'archive' | 'restore' | 'promote';
|
|
3165
|
+
interface LearnedCapabilitySource {
|
|
3166
|
+
readonly kind: 'learning_controller' | 'f224_proposal' | 'skill_learning_loop' | 'legacy_manual';
|
|
3167
|
+
readonly proposalId?: string;
|
|
3168
|
+
}
|
|
3169
|
+
interface LearnedCapabilityRecordBase {
|
|
3170
|
+
readonly capabilityId: string;
|
|
3171
|
+
readonly displayName: string;
|
|
3172
|
+
readonly slug: string;
|
|
3173
|
+
readonly carrier: LearnedCapabilityCarrier;
|
|
3174
|
+
readonly lifecycle: LearnedCapabilityLifecycle;
|
|
3175
|
+
readonly revision: number;
|
|
3176
|
+
readonly createdAt: string;
|
|
3177
|
+
readonly updatedAt: string;
|
|
3178
|
+
readonly source: LearnedCapabilitySource;
|
|
3179
|
+
/** The control action that produced this revision, when it is not implied by lifecycle. */
|
|
3180
|
+
readonly lastAction?: LearningAction;
|
|
3181
|
+
readonly artifactPath?: string;
|
|
3182
|
+
readonly previousGoodRevision?: number;
|
|
3183
|
+
readonly previousLifecycle?: LearnedCapabilityLifecycle;
|
|
3184
|
+
readonly diagnostics?: readonly string[];
|
|
3185
|
+
}
|
|
3186
|
+
interface LearnedCapabilityRecordV1 extends LearnedCapabilityRecordBase {
|
|
3187
|
+
readonly schemaVersion: 1;
|
|
3188
|
+
}
|
|
3189
|
+
interface LearnedCapabilityScope {
|
|
3190
|
+
readonly configHomeHash: string;
|
|
3191
|
+
readonly tenantHash: string;
|
|
3192
|
+
readonly projectHash: string;
|
|
3193
|
+
}
|
|
3194
|
+
interface LearnedCapabilityArtifact {
|
|
3195
|
+
readonly kind: 'skill_markdown';
|
|
3196
|
+
readonly relativePath: string;
|
|
3197
|
+
readonly fingerprint: string;
|
|
3198
|
+
readonly contentRevision: number;
|
|
3199
|
+
}
|
|
3200
|
+
interface LearnedCapabilityProvenance {
|
|
3201
|
+
readonly jobId: string;
|
|
3202
|
+
readonly inputHash: string;
|
|
3203
|
+
readonly decisionId: string;
|
|
3204
|
+
readonly actionId: string;
|
|
3205
|
+
}
|
|
3206
|
+
interface LearnedCapabilityCanaryBinding {
|
|
3207
|
+
readonly bindingId: string;
|
|
3208
|
+
readonly ownerSessionRef: string;
|
|
3209
|
+
readonly expiresAt: string;
|
|
3210
|
+
}
|
|
3211
|
+
interface LearnedCapabilityCanaryInvocation {
|
|
3212
|
+
readonly invocationId: string;
|
|
3213
|
+
readonly bindingId: string;
|
|
3214
|
+
/** Durable usage-ledger identity for recovery after the binding expires. */
|
|
3215
|
+
readonly usageSessionHash?: string;
|
|
3216
|
+
readonly artifactRevision?: number;
|
|
3217
|
+
readonly artifactFingerprint?: string;
|
|
3218
|
+
readonly status: 'pending' | 'verified_success' | 'credible_negative' | 'inconclusive';
|
|
3219
|
+
readonly evidenceRefs: readonly string[];
|
|
3220
|
+
readonly invokedAt: string;
|
|
3221
|
+
readonly completedAt?: string;
|
|
3222
|
+
}
|
|
3223
|
+
interface LearnedCapabilityCanary {
|
|
3224
|
+
readonly maxInvocations: 3;
|
|
3225
|
+
readonly invocationCount: number;
|
|
3226
|
+
readonly verifiedSuccesses: number;
|
|
3227
|
+
readonly credibleNegatives: number;
|
|
3228
|
+
readonly binding?: LearnedCapabilityCanaryBinding;
|
|
3229
|
+
readonly invocations: readonly LearnedCapabilityCanaryInvocation[];
|
|
3230
|
+
}
|
|
3231
|
+
interface LearnedCapabilityRecordV2 extends LearnedCapabilityRecordBase {
|
|
3232
|
+
readonly schemaVersion: 2;
|
|
3233
|
+
readonly carrier: 'skill';
|
|
3234
|
+
readonly scope: LearnedCapabilityScope;
|
|
3235
|
+
readonly artifact: LearnedCapabilityArtifact;
|
|
3236
|
+
readonly previousGoodArtifact?: LearnedCapabilityArtifact;
|
|
3237
|
+
readonly provenance: LearnedCapabilityProvenance;
|
|
3238
|
+
readonly canary: LearnedCapabilityCanary;
|
|
3239
|
+
}
|
|
3240
|
+
type LearnedCapabilityRecord = LearnedCapabilityRecordV1 | LearnedCapabilityRecordV2;
|
|
3241
|
+
interface LearningEvent {
|
|
3242
|
+
readonly schemaVersion: 1;
|
|
3243
|
+
readonly sequence: number;
|
|
3244
|
+
readonly eventId: string;
|
|
3245
|
+
readonly capabilityId: string;
|
|
3246
|
+
readonly capabilityRevision: number;
|
|
3247
|
+
readonly kind: LearningEventKind;
|
|
3248
|
+
readonly lifecycle: LearnedCapabilityLifecycle;
|
|
3249
|
+
readonly displayName: string;
|
|
3250
|
+
readonly slug: string;
|
|
3251
|
+
readonly carrier: LearnedCapabilityCarrier;
|
|
3252
|
+
readonly createdAt: string;
|
|
3253
|
+
}
|
|
3254
|
+
type LearningNotificationState = 'unread' | 'seen' | 'acknowledged' | 'snoozed';
|
|
3255
|
+
interface LearningClientEventState {
|
|
3256
|
+
readonly state: LearningNotificationState;
|
|
3257
|
+
readonly capabilityRevision: number;
|
|
3258
|
+
readonly updatedAt: string;
|
|
3259
|
+
readonly snoozedUntil?: string;
|
|
3260
|
+
}
|
|
3261
|
+
interface LearningClientRecord {
|
|
3262
|
+
readonly schemaVersion: 1;
|
|
3263
|
+
readonly clientIdentity: string;
|
|
3264
|
+
readonly events: Readonly<Record<string, LearningClientEventState>>;
|
|
3265
|
+
}
|
|
3266
|
+
interface LearningSurfaceSnapshot {
|
|
3267
|
+
readonly ready: number;
|
|
3268
|
+
readonly newlyActive: number;
|
|
3269
|
+
readonly attention: number;
|
|
3270
|
+
readonly active: number;
|
|
3271
|
+
readonly revision: number;
|
|
3272
|
+
}
|
|
3273
|
+
interface LearningQuery {
|
|
3274
|
+
readonly search?: string;
|
|
3275
|
+
readonly carrier?: LearnedCapabilityCarrier;
|
|
3276
|
+
readonly lifecycle?: LearnedCapabilityLifecycle;
|
|
3277
|
+
readonly limit?: number;
|
|
3278
|
+
readonly cursor?: string;
|
|
3279
|
+
}
|
|
3280
|
+
interface LearningPage {
|
|
3281
|
+
readonly items: readonly LearnedCapabilityRecord[];
|
|
3282
|
+
readonly nextCursor?: string;
|
|
3283
|
+
readonly revision: number;
|
|
3284
|
+
}
|
|
3285
|
+
interface LearningSubscribeOptions {
|
|
3286
|
+
readonly afterRevision?: number;
|
|
3287
|
+
}
|
|
3288
|
+
interface LearningExplicitUserAuthority {
|
|
3289
|
+
readonly authority: 'explicit_user';
|
|
3290
|
+
readonly expectedRevision: number;
|
|
3291
|
+
readonly expectedFingerprint?: string;
|
|
3292
|
+
}
|
|
3293
|
+
interface LearningActionDriver {
|
|
3294
|
+
readonly carrier: LearnedCapabilityCarrier;
|
|
3295
|
+
readonly actions: readonly LearningAction[];
|
|
3296
|
+
execute(action: LearningAction, capability: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
|
|
3297
|
+
}
|
|
3298
|
+
type LearningCapabilityErrorCode = 'ambiguous_name' | 'action_failed' | 'capability_not_found' | 'invalid_record' | 'invalid_transition' | 'store_integrity_error' | 'unsupported_action';
|
|
3299
|
+
declare class LearningCapabilityError extends Error {
|
|
3300
|
+
readonly code: LearningCapabilityErrorCode;
|
|
3301
|
+
constructor(code: LearningCapabilityErrorCode, message: string);
|
|
3302
|
+
}
|
|
3303
|
+
declare function canTransitionLearnedCapability(from: LearnedCapabilityLifecycle, to: LearnedCapabilityLifecycle): boolean;
|
|
3304
|
+
declare function assertLearnedCapabilityTransition(from: LearnedCapabilityLifecycle, to: LearnedCapabilityLifecycle): void;
|
|
3305
|
+
declare function slugifyLearnedCapabilityName(displayName: string): string;
|
|
3306
|
+
declare function learningEventKindForLifecycle(lifecycle: LearnedCapabilityLifecycle): LearningEventKind;
|
|
3307
|
+
declare function learningEventIdFor(record: LearnedCapabilityRecord): string;
|
|
3308
|
+
|
|
3309
|
+
interface LearnedAreaPaths {
|
|
3310
|
+
readonly root: string;
|
|
3311
|
+
readonly skills: string;
|
|
3312
|
+
readonly extensions: string;
|
|
3313
|
+
readonly capabilities: string;
|
|
3314
|
+
readonly events: string;
|
|
3315
|
+
readonly clients: string;
|
|
3316
|
+
}
|
|
3317
|
+
declare function resolveLearnedAreaPaths(rootDir: string): LearnedAreaPaths;
|
|
3318
|
+
declare class LearnedAreaStore {
|
|
3319
|
+
#private;
|
|
3320
|
+
readonly paths: LearnedAreaPaths;
|
|
3321
|
+
constructor(rootDir: string);
|
|
3322
|
+
initialize(): Promise<void>;
|
|
3323
|
+
readCapability(capabilityId: string): Promise<LearnedCapabilityRecord | undefined>;
|
|
3324
|
+
listCapabilities(): Promise<readonly LearnedCapabilityRecord[]>;
|
|
3325
|
+
writeCapability(record: LearnedCapabilityRecord): Promise<void>;
|
|
3326
|
+
writeEvent(event: LearningEvent): Promise<void>;
|
|
3327
|
+
listEvents(): Promise<readonly LearningEvent[]>;
|
|
3328
|
+
readClient(identity: string): Promise<LearningClientRecord>;
|
|
3329
|
+
writeClient(record: LearningClientRecord): Promise<void>;
|
|
3330
|
+
withOwnerMutation<T>(operation: () => Promise<T>): Promise<T>;
|
|
3331
|
+
withClientMutation<T>(identity: string, operation: () => Promise<T>): Promise<T>;
|
|
3332
|
+
ensureCurrentEvent(record: LearnedCapabilityRecord): Promise<LearningEvent>;
|
|
3333
|
+
}
|
|
3334
|
+
declare function eventFromCapability(record: LearnedCapabilityRecord, sequence: number): LearningEvent;
|
|
3335
|
+
|
|
3336
|
+
interface DeclarativeSkillSpec {
|
|
3337
|
+
readonly name: string;
|
|
3338
|
+
readonly description: string;
|
|
3339
|
+
readonly purpose: string;
|
|
3340
|
+
readonly triggers: readonly string[];
|
|
3341
|
+
readonly steps: readonly string[];
|
|
3342
|
+
readonly verification: readonly string[];
|
|
3343
|
+
readonly pitfalls: readonly string[];
|
|
3344
|
+
}
|
|
3345
|
+
interface StagedLearnedSkillArtifact extends LearnedCapabilityArtifact {
|
|
3346
|
+
readonly absolutePath: string;
|
|
3347
|
+
}
|
|
3348
|
+
interface CreateLearnedSkillRecordInput {
|
|
3349
|
+
readonly capabilityId: string;
|
|
3350
|
+
readonly displayName: string;
|
|
3351
|
+
readonly scope: LearnedCapabilityScope;
|
|
3352
|
+
readonly artifact: LearnedCapabilityArtifact;
|
|
3353
|
+
readonly provenance: LearnedCapabilityProvenance;
|
|
3354
|
+
readonly now?: string;
|
|
3355
|
+
readonly previous?: LearnedCapabilityRecordV2;
|
|
3356
|
+
}
|
|
3357
|
+
interface LearnedSkillBindingAdmission {
|
|
3358
|
+
readonly bindingId: string;
|
|
3359
|
+
readonly ownerSessionRef: string;
|
|
3360
|
+
readonly expiresAt: string;
|
|
3361
|
+
}
|
|
3362
|
+
interface LearnedSkillInvocationAdmission {
|
|
3363
|
+
readonly invocationId: string;
|
|
3364
|
+
readonly invocationCount: number;
|
|
3365
|
+
readonly maxInvocations: 3;
|
|
3366
|
+
}
|
|
3367
|
+
interface CommitLearnedSkillRevisionInput {
|
|
3368
|
+
readonly scope: LearnedCapabilityScope;
|
|
3369
|
+
readonly spec: DeclarativeSkillSpec;
|
|
3370
|
+
readonly disposition: 'ready' | 'project_canary';
|
|
3371
|
+
readonly operation: 'create' | 'patch';
|
|
3372
|
+
readonly provenance: LearnedCapabilityProvenance;
|
|
3373
|
+
readonly targetCapabilityId?: string;
|
|
3374
|
+
readonly expectedRevision?: number;
|
|
3375
|
+
readonly expectedFingerprint?: string;
|
|
3376
|
+
readonly protectedSkillNames?: readonly string[];
|
|
3377
|
+
readonly now?: string;
|
|
3378
|
+
readonly authority?: {
|
|
3379
|
+
readonly commit: (operation: (revalidateAuthority: () => Promise<void>) => Promise<LearnedCapabilityRecordV2>) => Promise<LearnedCapabilityRecordV2>;
|
|
3380
|
+
};
|
|
3381
|
+
}
|
|
3382
|
+
type LearnedSkillCanaryOutcome = 'verified_success' | 'credible_negative' | 'inconclusive';
|
|
3383
|
+
declare function resolveProjectLearnedAreaRoot(configHome: string, scope: {
|
|
3384
|
+
readonly tenantId: string;
|
|
3385
|
+
readonly projectId: string;
|
|
3386
|
+
}): string;
|
|
3387
|
+
declare function createLearnedCapabilityScope(configHome: string, scope: {
|
|
3388
|
+
readonly tenantId: string;
|
|
3389
|
+
readonly projectId: string;
|
|
3390
|
+
}): LearnedCapabilityScope;
|
|
3391
|
+
declare function validateDeclarativeSkillSpec(spec: DeclarativeSkillSpec): void;
|
|
3392
|
+
declare function renderDeclarativeSkill(spec: DeclarativeSkillSpec): string;
|
|
3393
|
+
declare function stageLearnedSkillRevision(rootDir: string, capabilityId: string, spec: DeclarativeSkillSpec): Promise<StagedLearnedSkillArtifact>;
|
|
3394
|
+
declare function createLearnedSkillRecord(input: CreateLearnedSkillRecordInput): LearnedCapabilityRecordV2;
|
|
3395
|
+
declare function commitLearnedSkillRevision(store: LearnedAreaStore, input: CommitLearnedSkillRevisionInput): Promise<LearnedCapabilityRecordV2>;
|
|
3396
|
+
declare function admitLearnedSkillBinding(store: LearnedAreaStore, capabilityId: string, input: {
|
|
3397
|
+
readonly bindingId: string;
|
|
3398
|
+
readonly ownerSessionRef: string;
|
|
3399
|
+
readonly now?: Date;
|
|
3400
|
+
readonly ttlMs?: number;
|
|
3401
|
+
}): Promise<LearnedSkillBindingAdmission | undefined>;
|
|
3402
|
+
declare function releaseLearnedSkillBinding(store: LearnedAreaStore, capabilityId: string, bindingId: string, now?: string): Promise<boolean>;
|
|
3403
|
+
declare function invokeLearnedSkillCanary(store: LearnedAreaStore, capabilityId: string, input: {
|
|
3404
|
+
readonly bindingId: string;
|
|
3405
|
+
readonly invocationId?: string;
|
|
3406
|
+
readonly usageSessionHash?: string;
|
|
3407
|
+
readonly artifactRevision?: number;
|
|
3408
|
+
readonly artifactFingerprint?: string;
|
|
3409
|
+
readonly now?: Date;
|
|
3410
|
+
}): Promise<LearnedSkillInvocationAdmission>;
|
|
3411
|
+
declare function completeLearnedSkillOutcome(store: LearnedAreaStore, capabilityId: string, input: {
|
|
3412
|
+
readonly invocationId: string;
|
|
3413
|
+
readonly outcome: LearnedSkillCanaryOutcome;
|
|
3414
|
+
readonly evidenceRefs: readonly string[];
|
|
3415
|
+
readonly now?: string;
|
|
3416
|
+
}): Promise<LearnedCapabilityRecordV2>;
|
|
3417
|
+
declare function quarantineLearnedSkillRevision(store: LearnedAreaStore, capabilityId: string, input: {
|
|
3418
|
+
readonly expectedRevision: number;
|
|
3419
|
+
readonly expectedFingerprint: string;
|
|
3420
|
+
readonly reason: string;
|
|
3421
|
+
readonly now?: string;
|
|
3422
|
+
readonly revalidateAuthority?: () => Promise<void>;
|
|
3423
|
+
}): Promise<LearnedCapabilityRecordV2>;
|
|
3424
|
+
declare function isLearnedCapabilityRecordV2(record: LearnedCapabilityRecord): record is LearnedCapabilityRecordV2;
|
|
3425
|
+
|
|
3426
|
+
interface LearnedSkillOfferedReceipt {
|
|
3427
|
+
readonly version: 1;
|
|
3428
|
+
readonly kind: 'offered';
|
|
3429
|
+
readonly receiptId: string;
|
|
3430
|
+
readonly sessionHash: string;
|
|
3431
|
+
readonly bindingId: string;
|
|
3432
|
+
readonly capabilityId: string;
|
|
3433
|
+
readonly revision: number;
|
|
3434
|
+
readonly fingerprint: string;
|
|
3435
|
+
readonly createdAt: string;
|
|
3436
|
+
}
|
|
3437
|
+
interface LearnedSkillInvokedReceipt {
|
|
3438
|
+
readonly version: 1;
|
|
3439
|
+
readonly kind: 'invoked';
|
|
3440
|
+
readonly receiptId: string;
|
|
3441
|
+
readonly sessionHash: string;
|
|
3442
|
+
readonly bindingId: string;
|
|
3443
|
+
readonly invocationId: string;
|
|
3444
|
+
readonly capabilityId: string;
|
|
3445
|
+
readonly revision: number;
|
|
3446
|
+
readonly fingerprint: string;
|
|
3447
|
+
readonly createdAt: string;
|
|
3448
|
+
}
|
|
3449
|
+
interface LearnedSkillOutcomeReceipt {
|
|
3450
|
+
readonly version: 1;
|
|
3451
|
+
readonly kind: 'outcome';
|
|
3452
|
+
readonly receiptId: string;
|
|
3453
|
+
readonly sessionHash: string;
|
|
3454
|
+
readonly invocationId: string;
|
|
3455
|
+
readonly capabilityId: string;
|
|
3456
|
+
readonly outcome: LearnedSkillCanaryOutcome;
|
|
3457
|
+
readonly evidenceRefs: readonly string[];
|
|
3458
|
+
readonly createdAt: string;
|
|
3459
|
+
}
|
|
3460
|
+
type LearnedSkillUsageReceipt = LearnedSkillOfferedReceipt | LearnedSkillInvokedReceipt | LearnedSkillOutcomeReceipt;
|
|
3461
|
+
interface ExactInvokedSkillSnapshot {
|
|
3462
|
+
readonly capabilityId: string;
|
|
3463
|
+
readonly name: string;
|
|
3464
|
+
readonly fingerprint: string;
|
|
3465
|
+
readonly revision: number;
|
|
3466
|
+
readonly invocationId: string;
|
|
3467
|
+
readonly content: string;
|
|
3468
|
+
}
|
|
3469
|
+
declare function recordLearnedSkillOffered(store: LearnedAreaStore, input: {
|
|
3470
|
+
readonly sessionId: string;
|
|
3471
|
+
readonly bindingId: string;
|
|
3472
|
+
readonly capabilityId: string;
|
|
3473
|
+
readonly revision: number;
|
|
3474
|
+
readonly fingerprint: string;
|
|
3475
|
+
readonly now?: string;
|
|
3476
|
+
}): Promise<LearnedSkillOfferedReceipt>;
|
|
3477
|
+
declare function admitAndRecordLearnedSkillInvocation(store: LearnedAreaStore, input: {
|
|
3478
|
+
readonly sessionId: string;
|
|
3479
|
+
readonly bindingId: string;
|
|
3480
|
+
readonly ownerSessionRef: string;
|
|
3481
|
+
readonly capabilityId: string;
|
|
3482
|
+
readonly expectedRevision: number;
|
|
3483
|
+
readonly expectedFingerprint: string;
|
|
3484
|
+
readonly invocationId?: string;
|
|
3485
|
+
readonly now?: Date;
|
|
3486
|
+
}): Promise<LearnedSkillInvokedReceipt>;
|
|
3487
|
+
declare function completeLearnedSkillSessionOutcomes(store: LearnedAreaStore, input: {
|
|
3488
|
+
readonly sessionId: string;
|
|
3489
|
+
/** Restricts completion to invocations from one root-run binding. */
|
|
3490
|
+
readonly bindingId?: string;
|
|
3491
|
+
readonly outcome: LearnedSkillCanaryOutcome;
|
|
3492
|
+
readonly evidenceRefs: readonly string[];
|
|
3493
|
+
readonly now?: string;
|
|
3494
|
+
}): Promise<readonly LearnedSkillOutcomeReceipt[]>;
|
|
3495
|
+
/** Repairs current-binding and stale-canary outcome delivery fail closed. */
|
|
3496
|
+
declare function reconcileLearnedSkillBindingOutcomes(store: LearnedAreaStore, input: {
|
|
3497
|
+
readonly sessionId: string;
|
|
3498
|
+
readonly bindingId: string;
|
|
3499
|
+
readonly now?: string;
|
|
3500
|
+
}): Promise<readonly LearnedSkillOutcomeReceipt[]>;
|
|
3501
|
+
declare function listLearnedSkillUsageReceipts(store: LearnedAreaStore, sessionId: string): Promise<readonly LearnedSkillUsageReceipt[]>;
|
|
3502
|
+
declare function exactInvokedSkillSnapshotForSession(store: LearnedAreaStore, sessionId: string, options?: {
|
|
3503
|
+
readonly bindingId?: string;
|
|
3504
|
+
}): Promise<ExactInvokedSkillSnapshot | null>;
|
|
3505
|
+
|
|
3506
|
+
interface LearningReviewVerifierFact {
|
|
3507
|
+
readonly ref: string;
|
|
3508
|
+
readonly verdict: 'passed' | 'failed' | 'inconclusive';
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
interface LearningReviewQualification {
|
|
3512
|
+
readonly reusableMethodEvidence: boolean;
|
|
3513
|
+
readonly explicitSkillPreservation: boolean;
|
|
3514
|
+
readonly independentEpisodeCount: number;
|
|
3515
|
+
readonly verifiedOutcome: boolean;
|
|
3516
|
+
readonly exactSkillInvoked: boolean;
|
|
3517
|
+
}
|
|
3518
|
+
interface LearningReviewEvidencePacket {
|
|
3519
|
+
readonly outcomeDigest: KodaXMemoryOutcomeDigest;
|
|
3520
|
+
readonly exactInvokedSkill: ExactInvokedSkillSnapshot | null;
|
|
3521
|
+
readonly verifierFacts: readonly LearningReviewVerifierFact[];
|
|
3522
|
+
readonly priorDigests: readonly KodaXMemoryOutcomeDigest[];
|
|
3523
|
+
readonly qualification: LearningReviewQualification;
|
|
3524
|
+
}
|
|
3525
|
+
interface UnifiedLearningReviewModelInput {
|
|
3526
|
+
readonly cacheDomain: 'learning-review';
|
|
3527
|
+
readonly memory: MemoryReviewModelInput;
|
|
3528
|
+
readonly evidence: LearningReviewEvidencePacket;
|
|
3529
|
+
}
|
|
3530
|
+
type LearnedSkillDecisionDisposition = 'discard' | 'ready' | 'project_canary';
|
|
3531
|
+
interface NormalizedLearnedSkillDecision {
|
|
3532
|
+
readonly disposition: LearnedSkillDecisionDisposition;
|
|
3533
|
+
readonly reasonCodes: readonly string[];
|
|
3534
|
+
readonly operation?: 'create' | 'patch';
|
|
3535
|
+
readonly spec?: DeclarativeSkillSpec;
|
|
3536
|
+
readonly targetCapabilityId?: string;
|
|
3537
|
+
readonly expectedFingerprint?: string;
|
|
3538
|
+
readonly expectedRevision?: number;
|
|
3539
|
+
readonly quarantineExactInvokedRevision?: true;
|
|
3540
|
+
}
|
|
3541
|
+
interface UnifiedLearningReviewResult {
|
|
3542
|
+
readonly memoryPlan: MemoryReviewPlan;
|
|
3543
|
+
readonly capabilityDecision?: NormalizedLearnedSkillDecision;
|
|
3544
|
+
}
|
|
3545
|
+
type UnifiedLearningReviewRunner = (input: UnifiedLearningReviewModelInput, signal?: AbortSignal) => Promise<unknown>;
|
|
3546
|
+
declare function sanitizeUnifiedLearningReviewInput(input: UnifiedLearningReviewModelInput): UnifiedLearningReviewModelInput;
|
|
3547
|
+
declare function isUnifiedLearningReviewModelInput(value: unknown): value is UnifiedLearningReviewModelInput;
|
|
3548
|
+
declare function normalizeUnifiedLearningReview(input: UnifiedLearningReviewModelInput, raw: unknown): UnifiedLearningReviewResult;
|
|
3549
|
+
|
|
3055
3550
|
/**
|
|
3056
3551
|
* ../../index.js Compaction Types
|
|
3057
3552
|
*/
|
|
@@ -3964,7 +4459,7 @@ interface AgentExecutorPreflightResult {
|
|
|
3964
4459
|
}
|
|
3965
4460
|
interface AgentExecutor {
|
|
3966
4461
|
preflight?(input: AgentTaskStartInput): Promise<AgentExecutorPreflightResult>;
|
|
3967
|
-
start(input: AgentTaskStartInput): Promise<AgentExecutorTaskReference>;
|
|
4462
|
+
start(input: AgentTaskStartInput, signal?: AbortSignal): Promise<AgentExecutorTaskReference>;
|
|
3968
4463
|
events(reference: AgentExecutorTaskReference): AsyncIterable<AgentExecutorEvent>;
|
|
3969
4464
|
get(reference: AgentExecutorTaskReference): Promise<AgentExecutorTaskSnapshot>;
|
|
3970
4465
|
sendInput(reference: AgentExecutorTaskReference, input: AgentContinuationInput): Promise<void>;
|
|
@@ -4052,7 +4547,7 @@ interface AgentRegistrationService {
|
|
|
4052
4547
|
remove(agentId: string, options?: AgentRegistrationMutationOptions): Promise<boolean>;
|
|
4053
4548
|
}
|
|
4054
4549
|
interface AgentTaskService {
|
|
4055
|
-
start(input: AgentTaskStartInput): Promise<AgentTaskSnapshot>;
|
|
4550
|
+
start(input: AgentTaskStartInput, signal?: AbortSignal): Promise<AgentTaskSnapshot>;
|
|
4056
4551
|
list(filter?: AgentTaskFilter): Promise<readonly AgentTaskSnapshot[]>;
|
|
4057
4552
|
get(taskId: string): Promise<AgentTaskSnapshot>;
|
|
4058
4553
|
events(taskId: string, cursor?: number): Promise<readonly AgentTaskEvent[]>;
|
|
@@ -4097,5 +4592,5 @@ interface CreateAgentExecutorPlaneOptions {
|
|
|
4097
4592
|
readonly closeTimeoutMs?: number;
|
|
4098
4593
|
}
|
|
4099
4594
|
|
|
4100
|
-
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, DEFAULT_SYSTEM_CAP as
|
|
4101
|
-
export type { AgentFollowupResult as $, AgentDetail as B, AgentDispatchContext as C, AgentDispatchPolicy as D, AgentDispatchPolicyDecision as E, AgentDispatchPolicyInput as F, AgentDispatchabilitySnapshot as G, AgentDispatchabilityStatus as H, AgentEffectDeclaration as I, AgentEvent as J, AgentEventKind as K, AgentExecutionInput as L, AgentExecutionKind as M, AgentExecutionResult as N, AgentExecutor as O, AgentExecutorEvent as P, AgentExecutorFactory as Q, AgentExecutorFactoryContext as R, AgentExecutorPlane as S, AgentExecutorPlaneBackgroundErrorContext as T, AgentExecutorPlaneBackgroundErrorHandler as U, AgentExecutorPlaneBinding as V, AgentExecutorPlaneStore as W, AgentExecutorPreflightResult as X, AgentExecutorProtocol as Y, AgentExecutorTaskReference as Z, AgentExecutorTaskSnapshot as _, DispatchableAgentListing as a$, AgentForkTurns as a0, AgentInterruptScope as a1, AgentJsonObject as a2, AgentJsonValue as a3, AgentLimitReached as a4, AgentListEntry as a5, AgentMailboxMessage as a6, AgentManifest as a7, AgentMessage as a8, AgentMetadataValue as a9, AgentTreeSnapshot as aA, AgentTurn as aB, AgentTurnExecutor as aC, AgentTurnRef as aD, AgentTurnState as aE, AgentTurnSummary as aF, AskUserAnswer as aG, AskUserCustomInputAnswer as aH, AskUserMultiOptions as aI, AskUserQuestionItem as aJ, AskUserQuestionOptions as aK, AskUserSelectionAnswer as aL, CapabilitySupport as aM, CompactionAnchor as aN, CompactionConfig as aO, CompactionDetails as aP, CompactionReport as aQ, CompactionResult as aR, CompactionSpanData as aS, CompactionUpdate as aT, CreateAgentExecutorPlaneOptions as aU, CurrentTodoSummary as aV, Deliverable as aX, DiscoveredInstance as aY, DiscoveryOptions as aZ, DispatchableAgentDescriptor as a_, AgentMiddlewareDeclaration as aa, AgentMutationOptions as ab, AgentOutput as ac, AgentPreflightInput as ad, AgentPreflightResult as ae, AgentProgressItem as af, AgentProgressKind as ag, AgentProgressUpdate as ah, AgentReasoningProfile as ai, AgentRegistrationEnabledMutationOptions as aj, AgentRegistrationMutationOptions as ak, AgentRegistrationService as al, AgentSpanData as am, AgentSpawnInput as an, AgentTaskCancellation as ao, AgentTaskCorrelation as ap, AgentTaskEvent as aq, AgentTaskFilter as ar, AgentTaskProgress as as, AgentTaskRegistrationSnapshot as at, AgentTaskService as au, AgentTaskSnapshot as av, AgentTaskStartInput as aw, AgentTaskState as ax, AgentTaskUsage as ay, AgentTool as az, AdmissionAuditOptions as b, KodaXSessionUiToolCall as b$, DispatchableAgentOrigin as b0, DispatchableAgentQuery as b1, EvidenceSpanData as b2, ExternalAgentEffectDeclaration as b3, ExternalAgentHealth as b4, ExternalAgentProtocol as b5, ExternalAgentRegistration as b6, ExternalAgentRegistrationSummary as b7, FanoutSpanData as b8, FileOperations as b9, KodaXMemoryOutcomeDigest as bA, KodaXMemoryOutcomeEvidence as bB, KodaXSessionArchiveMarkerEntry as bC, KodaXSessionArtifactLedgerEntry as bD, KodaXSessionBranchSummaryEntry as bE, KodaXSessionClientNoticeEntry as bF, KodaXSessionCompactionEntry as bG, KodaXSessionData as bH, KodaXSessionEntry as bI, KodaXSessionEntryBase as bJ, KodaXSessionGoalEntry as bK, KodaXSessionLabelEntry as bL, KodaXSessionLineage as bM, KodaXSessionMemoryOutcomeDigestEntry as bN, KodaXSessionMemoryReviewReceiptEntry as bO, KodaXSessionMessageEntry as bP, KodaXSessionMeta as bQ, KodaXSessionNavigationOptions as bR, KodaXSessionRewindMarkerEntry as bS, KodaXSessionRuntimeInfo as bT, KodaXSessionScope as bU, KodaXSessionStorage as bV, KodaXSessionTreeNode as bW, KodaXSessionUiHistoryItem as bX, KodaXSessionUiHistoryItemType as bY, KodaXSessionUiTextHistoryItem as bZ, KodaXSessionUiTextHistoryItemType as b_, GenerationSpanData as ba, Guardrail as bb, GuardrailSpanData as bc, Handoff as bd, HandoffSpanData as be, InMemorySessionOptions as bf, InstanceDiscoveryFs as bg, InvariantId as bh, InvariantResult as bi, KodaXCompactMemoryProgress as bk, KodaXCompactMemorySeed as bl, KodaXExtensionSessionRecord as bm, KodaXExtensionSessionState as bn, KodaXExtensionStore as bo, KodaXExtensionStoreEntry as bp, KodaXFileInputArtifact as bq, KodaXGoalEventType as br, KodaXGoalState as bs, KodaXGoalStatus as bt, KodaXImageInputArtifact as bu, KodaXImageMediaType as bv, KodaXInputArtifact as bw, KodaXInputArtifactSource as bx, KodaXJsonValue as by, KodaXMemoryInfluenceRef as bz, AdmissionCtx as c, RunResult as c$, KodaXSessionUiToolCallStatus as c0, KodaXSessionUiToolGroupHistoryItem as c1, KodaXSessionWorkspaceKind as c2, KodaXVideoInputArtifact as c3, KodaXVideoMediaType as c4, LocalAgentTaskInput as c5, LocalAgentTaskUpdate as c6, ManifestPatch as c8, MemoryActionProposal as c9, MemoryRefFilter as cA, MemoryRefKind as cB, MemoryRejectResult as cC, MemoryReviewCandidateRef as cD, MemoryReviewDraftAction as cE, MemoryReviewInput as cF, MemoryReviewModelInput as cG, MemoryReviewPersistenceDecision as cH, MemoryReviewPersistenceKind as cI, MemoryReviewPlan as cJ, MemoryReviewRunner as cK, MemoryReviewTrigger as cL, MemoryScope as cM, MemorySourceAdapter as cN, MemoryVisibility as cO, MessageEntry as cP, ObserveCtx as cQ, PersistedSessionState as cR, PresetDispatcher as cS, PresetTracingContext as cT, QualityInvariant as cU, ReadonlyMutationTracker as cV, ReadonlyRecorder as cW, ReasoningDepth as cX, RecentlyModifiedFile as cY, RunEvent as cZ, RunOptions as c_, MemoryApplicability as ca, MemoryApplyPreview as cb, MemoryApplyResult as cc, MemoryApproval as cd, MemoryAuthority as ce, MemoryAutoCuratorInput as cf, MemoryAutoCuratorResult as cg, MemoryBodySnapshot as ch, MemoryClaimKind as ci, MemoryContextIdentity as cj, MemoryController as ck, MemoryCuratorInput as cl, MemoryDecisionTraceReceipt as cm, MemoryEpisodeReviewResult as cn, MemoryEvent as co, MemoryGovernanceFinding as cp, MemoryGovernanceFindingKind as cq, MemoryGovernanceReport as cr, MemoryItemRef as cs, MemoryLifecycle as ct, MemoryLifecycleOperationResult as cu, MemoryPack as cv, MemoryPackHint as cw, MemoryPackInput as cx, MemoryPackTraceMetadata as cy, MemoryProposalAction as cz, AdmissionVerdict as d, WorkflowOutcomeStatus as d$, RunnableTool as d0, RunnerEvent as d2, RunnerLlmResult as d3, RunnerLlmReturn as d4, RunnerRecoveryTranscriptCarrier as d5, RunnerToolCall as d6, RunnerToolContext as d7, RunnerToolObserver as d8, RunnerToolResult as d9, ToolCallSpanData as dA, ToolCapability as dB, ToolPermission as dC, Trace as dD, TraceOptions as dE, TracerOptions as dG, UserInteraction as dH, WorkflowAgentBackend as dI, WorkflowApi as dJ, WorkflowApproval as dK, WorkflowApprovalSummary as dL, WorkflowArtifactRef as dM, WorkflowBudget as dN, WorkflowEvent as dO, WorkflowEventCorrelation as dP, WorkflowEventType as dR, WorkflowIsolation as dS, WorkflowLimits as dT, WorkflowLogEvent as dU, WorkflowMeta as dV, WorkflowModelHint as dW, WorkflowModule as dX, WorkflowOutcome as dY, WorkflowOutcomeError as dZ, WorkflowOutcomeResult as d_, RunnerToolResultBatch as da, RunnerToolResultBatchTransform as db, Session as dc, SessionDispatchResult as dd, SessionEntry as de, SessionErrorMetadata as df, SessionExtension as dg, SessionForkOptions as dh, SessionMeta as di, SessionStateSnapshot as dj, Span as dk, SpanData as dl, SpanError as dm, SpanImplOptions as dp, StartTraceOptions as dq, StateWriter as dr, StateWriterFs as ds, StateWriterOptions as dt, StopHookContext as du, StopHookFn as dv, StopHookResult as dw, StopHookSpanData as dx, SystemCap as dy, TerminalCtx as dz, AdmittedHandle as e, WorkflowOutcomeUsage as e0, WorkflowParallelOptions as e1, WorkflowProcessArtifact as e2, WorkflowProcessCounts as e3, WorkflowProcessEvent as e4, WorkflowProcessItem as e5, WorkflowProcessItemKind as e6, WorkflowProcessItemOrigin as e7, WorkflowProcessItemStatus as e8, WorkflowProcessProgress as e9, WorkflowProcessSnapshot as ea, WorkflowProcessSource as eb, WorkflowProcessStatus as ec, WorkflowProcessSummaryStatus as ed, WorkflowProcessTokenUsage as ee, WorkflowProcessTracker as ef, WorkflowProcessTrackerOptions as eg, WorkflowRun as eh, WorkflowRunState as ei, WorkflowRunStatus as ej, WorkflowSpawnAgentInput as ek, WorkflowSynthesis as el, WorkflowSynthesizeInput as em, WorkflowTaskHandle as en, WorkflowTaskResult as eo, WorkflowTaskSnapshot as ep, WorkflowTaskStatus as eq, WorkflowTaskSummaryEventUpdate as er, WorkflowTaskSummaryKind as es, WorkflowTaskSummaryUpdate as et, WorkflowTaskUsage as eu, WorkflowTaskVerification as ev, WorkflowTaskVerificationResult as ew, WorkflowWaitOptions as ex, Agent as f, AgentActor as g, AgentActorClient as h, AgentActorSnapshot as i, AgentActorState as j, AgentActorStore as k, AgentArtifactDescriptor as l, AgentArtifactPolicy as m, AgentArtifactPolicyDecision as n, AgentArtifactPolicyInput as o, AgentArtifactReference as p, AgentBudgetAdmission as q, AgentBudgetAdmissionInput as r, AgentBudgetExhausted as s, AgentBudgetPort as t, AgentCapabilities as u, AgentCapabilityDeclaration as v, AgentCapabilityRequirements as w, AgentContinuationInput as x, AgentCredentialBroker as y, AgentDataClassification as z };
|
|
4595
|
+
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, DEFAULT_SYSTEM_CAP as a$, InvariantSession as bq, LearningCapabilityError as cB, MAX_TOOL_LOOP_ITERATIONS as cS, LearnedAreaStore as ce, Runner as dO, SpanImpl as e8, WorkflowEventRecorder as eE, Tracer as eq, learningEventKindForLifecycle as f$, createAgent as fA, createHandoff as fB, createInMemorySession as fC, createInvariantSessionForAgent as fD, createLearnedCapabilityScope as fE, createLearnedSkillRecord as fF, createStateWriter as fG, createTrace as fH, createWorkflowProcessTracker as fI, defaultTracer as fJ, detectInstructionsInjection as fK, discoverInstances as fL, eventFromCapability as fM, exactInvokedSkillSnapshotForSession as fN, executeRunnerToolCall as fO, extractAssistantTextFromMessage as fP, getActiveUserInteraction as fQ, getAdmittedAgentBindings as fR, hashMemoryIdentityComponent as fS, invokeLearnedSkillCanary as fT, isAskUserCustomInputAnswer as fU, isFinalWorkflowProcessStatus as fV, isLearnedCapabilityRecordV2 as fW, isRunnableTool as fX, isRunnerLlmResult as fY, isUnifiedLearningReviewModelInput as fZ, learningEventIdFor as f_, _resetAdmittedAgentBindings as fm, _resetPresetDispatchers as fn, admitAndRecordLearnedSkillInvocation as fo, admitLearnedSkillBinding as fp, asSingleSelection as fq, assertLearnedCapabilityTransition as fr, attachRunnerRecoveryTranscript as fs, buildAssistantMessageFromLlmResult as ft, buildSystemPrompt as fu, buildToolResultMessage as fv, canTransitionLearnedCapability as fw, commitLearnedSkillRevision as fx, completeLearnedSkillOutcome as fy, completeLearnedSkillSessionOutcomes as fz, listLearnedSkillUsageReceipts as g0, matchesMemoryApplicability as g1, memoryApplicabilityFingerprint as g2, normalizeHostMetadata as g3, normalizeUnifiedLearningReview as g4, quarantineLearnedSkillRevision as g5, readRunnerRecoveryTranscript as g6, reconcileLearnedSkillBindingOutcomes as g7, recordLearnedSkillOffered as g8, registerPresetDispatcher as g9, releaseLearnedSkillBinding as ga, renderDeclarativeSkill as gb, resolveLearnedAreaPaths as gc, resolveProjectLearnedAreaRoot as gd, runAdmissionAudit as ge, sanitizeUnifiedLearningReviewInput as gf, setActiveUserInteraction as gg, setAdmittedAgentBindings as gh, slugifyLearnedCapabilityName as gi, stageLearnedSkillRevision as gj, validateDeclarativeSkillSpec as gk };
|
|
4596
|
+
export type { AgentExecutorProtocol as $, AgentContinuationInput as B, AgentCredentialBroker as C, AgentDataClassification as D, AgentDetail as E, AgentDispatchContext as F, AgentDispatchPolicy as G, AgentDispatchPolicyDecision as H, AgentDispatchPolicyInput as I, AgentDispatchabilitySnapshot as J, AgentDispatchabilityStatus as K, AgentEffectDeclaration as L, AgentEvent as M, AgentEventKind as N, AgentExecutionInput as O, AgentExecutionKind as P, AgentExecutionResult as Q, AgentExecutor as R, AgentExecutorEvent as S, AgentExecutorFactory as T, AgentExecutorFactoryContext as U, AgentExecutorPlane as V, AgentExecutorPlaneBackgroundErrorContext as W, AgentExecutorPlaneBackgroundErrorHandler as X, AgentExecutorPlaneBinding as Y, AgentExecutorPlaneStore as Z, AgentExecutorPreflightResult as _, AgentExecutorTaskReference as a0, AgentExecutorTaskSnapshot as a1, AgentFollowupResult as a2, AgentForkTurns as a3, AgentInterruptScope as a4, AgentJsonObject as a5, AgentJsonValue as a6, AgentLimitReached as a7, AgentListEntry as a8, AgentMailboxMessage as a9, AgentTaskState as aA, AgentTaskUsage as aB, AgentTool as aC, AgentTreeSnapshot as aD, AgentTurn as aE, AgentTurnExecutor as aF, AgentTurnRef as aG, AgentTurnState as aH, AgentTurnSummary as aI, AskUserAnswer as aJ, AskUserCustomInputAnswer as aK, AskUserMultiOptions as aL, AskUserQuestionItem as aM, AskUserQuestionOptions as aN, AskUserSelectionAnswer as aO, CapabilitySupport as aP, CommitLearnedSkillRevisionInput as aQ, CompactionAnchor as aR, CompactionConfig as aS, CompactionDetails as aT, CompactionReport as aU, CompactionResult as aV, CompactionSpanData as aW, CompactionUpdate as aX, CreateAgentExecutorPlaneOptions as aY, CreateLearnedSkillRecordInput as aZ, CurrentTodoSummary as a_, AgentManifest as aa, AgentMessage as ab, AgentMetadataValue as ac, AgentMiddlewareDeclaration as ad, AgentMutationOptions as ae, AgentOutput as af, AgentPreflightInput as ag, AgentPreflightResult as ah, AgentProgressItem as ai, AgentProgressKind as aj, AgentProgressUpdate as ak, AgentReasoningProfile as al, AgentRegistrationEnabledMutationOptions as am, AgentRegistrationMutationOptions as an, AgentRegistrationService as ao, AgentSpanData as ap, AgentSpawnInput as aq, AgentTaskCancellation as ar, AgentTaskCorrelation as as, AgentTaskEvent as at, AgentTaskFilter as au, AgentTaskProgress as av, AgentTaskRegistrationSnapshot as aw, AgentTaskService as ax, AgentTaskSnapshot as ay, AgentTaskStartInput as az, AdmissionAuditOptions as b, KodaXSessionRuntimeInfo as b$, DeclarativeSkillSpec as b0, Deliverable as b1, DiscoveredInstance as b2, DiscoveryOptions as b3, DispatchableAgentDescriptor as b4, DispatchableAgentListing as b5, DispatchableAgentOrigin as b6, DispatchableAgentQuery as b7, EvidenceSpanData as b8, ExactInvokedSkillSnapshot as b9, KodaXGoalStatus as bA, KodaXImageInputArtifact as bB, KodaXImageMediaType as bC, KodaXInputArtifact as bD, KodaXInputArtifactSource as bE, KodaXJsonValue as bF, KodaXMemoryInfluenceRef as bG, KodaXMemoryIntent as bH, KodaXMemoryOutcomeDigest as bI, KodaXMemoryOutcomeEvidence as bJ, KodaXSessionArchiveMarkerEntry as bK, KodaXSessionArtifactLedgerEntry as bL, KodaXSessionBranchSummaryEntry as bM, KodaXSessionClientNoticeEntry as bN, KodaXSessionCompactionEntry as bO, KodaXSessionData as bP, KodaXSessionEntry as bQ, KodaXSessionEntryBase as bR, KodaXSessionGoalEntry as bS, KodaXSessionLabelEntry as bT, KodaXSessionLineage as bU, KodaXSessionMemoryOutcomeDigestEntry as bV, KodaXSessionMemoryReviewReceiptEntry as bW, KodaXSessionMessageEntry as bX, KodaXSessionMeta as bY, KodaXSessionNavigationOptions as bZ, KodaXSessionRewindMarkerEntry as b_, ExternalAgentEffectDeclaration as ba, ExternalAgentHealth as bb, ExternalAgentProtocol as bc, ExternalAgentRegistration as bd, ExternalAgentRegistrationSummary as be, FanoutSpanData as bf, FileOperations as bg, GenerationSpanData as bh, Guardrail as bi, GuardrailSpanData as bj, Handoff as bk, HandoffSpanData as bl, InMemorySessionOptions as bm, InstanceDiscoveryFs as bn, InvariantId as bo, InvariantResult as bp, KodaXCompactMemoryProgress as br, KodaXCompactMemorySeed as bs, KodaXExtensionSessionRecord as bt, KodaXExtensionSessionState as bu, KodaXExtensionStore as bv, KodaXExtensionStoreEntry as bw, KodaXFileInputArtifact as bx, KodaXGoalEventType as by, KodaXGoalState as bz, AdmissionCtx as c, MemoryAutoCuratorResult as c$, KodaXSessionScope as c0, KodaXSessionStorage as c1, KodaXSessionTreeNode as c2, KodaXSessionUiHistoryItem as c3, KodaXSessionUiHistoryItemType as c4, KodaXSessionUiTextHistoryItem as c5, KodaXSessionUiTextHistoryItemType as c6, KodaXSessionUiToolCall as c7, KodaXSessionUiToolCallStatus as c8, KodaXSessionUiToolGroupHistoryItem as c9, LearningActionDriver as cA, LearningCapabilityErrorCode as cC, LearningClientEventState as cD, LearningClientRecord as cE, LearningEvent as cF, LearningEventKind as cG, LearningExplicitUserAuthority as cH, LearningNotificationState as cI, LearningPage as cJ, LearningQuery as cK, LearningReviewEvidencePacket as cL, LearningReviewQualification as cM, LearningReviewVerifierFact as cN, LearningSubscribeOptions as cO, LearningSurfaceSnapshot as cP, LocalAgentTaskInput as cQ, LocalAgentTaskUpdate as cR, ManifestPatch as cT, MemoryActionProposal as cU, MemoryApplicability as cV, MemoryApplyPreview as cW, MemoryApplyResult as cX, MemoryApproval as cY, MemoryAuthority as cZ, MemoryAutoCuratorInput as c_, KodaXSessionWorkspaceKind as ca, KodaXVideoInputArtifact as cb, KodaXVideoMediaType as cc, LearnedAreaPaths as cd, LearnedCapabilityArtifact as cf, LearnedCapabilityCanary as cg, LearnedCapabilityCanaryBinding as ch, LearnedCapabilityCanaryInvocation as ci, LearnedCapabilityCarrier as cj, LearnedCapabilityLifecycle as ck, LearnedCapabilityProvenance as cl, LearnedCapabilityRecord as cm, LearnedCapabilityRecordV1 as cn, LearnedCapabilityRecordV2 as co, LearnedCapabilityScope as cp, LearnedCapabilitySource as cq, LearnedSkillBindingAdmission as cr, LearnedSkillCanaryOutcome as cs, LearnedSkillDecisionDisposition as ct, LearnedSkillInvocationAdmission as cu, LearnedSkillInvokedReceipt as cv, LearnedSkillOfferedReceipt as cw, LearnedSkillOutcomeReceipt as cx, LearnedSkillUsageReceipt as cy, LearningAction as cz, AdmissionVerdict as d, SessionEntry as d$, MemoryBodySnapshot as d0, MemoryClaimKind as d1, MemoryContextIdentity as d2, MemoryController as d3, MemoryCuratorInput as d4, MemoryDecisionTraceReceipt as d5, MemoryEpisodeReviewResult as d6, MemoryEvent as d7, MemoryGovernanceFinding as d8, MemoryGovernanceFindingKind as d9, NormalizedLearnedSkillDecision as dA, ObserveCtx as dB, PersistedSessionState as dC, PresetDispatcher as dD, PresetTracingContext as dE, QualityInvariant as dF, ReadonlyMutationTracker as dG, ReadonlyRecorder as dH, ReasoningDepth as dI, RecentlyModifiedFile as dJ, RunEvent as dK, RunOptions as dL, RunResult as dM, RunnableTool as dN, RunnerEvent as dP, RunnerLlmResult as dQ, RunnerLlmReturn as dR, RunnerRecoveryTranscriptCarrier as dS, RunnerToolCall as dT, RunnerToolContext as dU, RunnerToolObserver as dV, RunnerToolResult as dW, RunnerToolResultBatch as dX, RunnerToolResultBatchTransform as dY, Session as dZ, SessionDispatchResult as d_, MemoryGovernanceReport as da, MemoryItemRef as db, MemoryLifecycle as dc, MemoryLifecycleOperationResult as dd, MemoryPack as de, MemoryPackHint as df, MemoryPackInput as dg, MemoryPackTraceMetadata as dh, MemoryProposalAction as di, MemoryRefFilter as dj, MemoryRefKind as dk, MemoryRejectResult as dl, MemoryReviewCandidateRef as dm, MemoryReviewDraftAction as dn, MemoryReviewInput as dp, MemoryReviewModelInput as dq, MemoryReviewPersistenceDecision as dr, MemoryReviewPersistenceKind as ds, MemoryReviewPlan as dt, MemoryReviewRunner as du, MemoryReviewTrigger as dv, MemoryScope as dw, MemorySourceAdapter as dx, MemoryVisibility as dy, MessageEntry as dz, AdmittedHandle as e, WorkflowProcessSource as e$, SessionErrorMetadata as e0, SessionExtension as e1, SessionForkOptions as e2, SessionMeta as e3, SessionStateSnapshot as e4, Span as e5, SpanData as e6, SpanError as e7, SpanImplOptions as e9, WorkflowArtifactRef as eA, WorkflowBudget as eB, WorkflowEvent as eC, WorkflowEventCorrelation as eD, WorkflowEventType as eF, WorkflowIsolation as eG, WorkflowLimits as eH, WorkflowLogEvent as eI, WorkflowMeta as eJ, WorkflowModelHint as eK, WorkflowModule as eL, WorkflowOutcome as eM, WorkflowOutcomeError as eN, WorkflowOutcomeResult as eO, WorkflowOutcomeStatus as eP, WorkflowOutcomeUsage as eQ, WorkflowParallelOptions as eR, WorkflowProcessArtifact as eS, WorkflowProcessCounts as eT, WorkflowProcessEvent as eU, WorkflowProcessItem as eV, WorkflowProcessItemKind as eW, WorkflowProcessItemOrigin as eX, WorkflowProcessItemStatus as eY, WorkflowProcessProgress as eZ, WorkflowProcessSnapshot as e_, StagedLearnedSkillArtifact as ea, StartTraceOptions as eb, StateWriter as ec, StateWriterFs as ed, StateWriterOptions as ee, StopHookContext as ef, StopHookFn as eg, StopHookResult as eh, StopHookSpanData as ei, SystemCap as ej, TerminalCtx as ek, ToolCallSpanData as el, ToolCapability as em, ToolPermission as en, Trace as eo, TraceOptions as ep, TracerOptions as er, UnifiedLearningReviewModelInput as es, UnifiedLearningReviewResult as et, UnifiedLearningReviewRunner as eu, UserInteraction as ev, WorkflowAgentBackend as ew, WorkflowApi as ex, WorkflowApproval as ey, WorkflowApprovalSummary as ez, Agent as f, WorkflowProcessStatus as f0, WorkflowProcessSummaryStatus as f1, WorkflowProcessTokenUsage as f2, WorkflowProcessTracker as f3, WorkflowProcessTrackerOptions as f4, WorkflowRun as f5, WorkflowRunState as f6, WorkflowRunStatus as f7, WorkflowSpawnAgentInput as f8, WorkflowSynthesis as f9, WorkflowSynthesizeInput as fa, WorkflowTaskHandle as fb, WorkflowTaskResult as fc, WorkflowTaskSnapshot as fd, WorkflowTaskStatus as fe, WorkflowTaskSummaryEventUpdate as ff, WorkflowTaskSummaryKind as fg, WorkflowTaskSummaryUpdate as fh, WorkflowTaskUsage as fi, WorkflowTaskVerification as fj, WorkflowTaskVerificationResult as fk, WorkflowWaitOptions as fl, AgentActor as g, AgentActorClient as h, AgentActorOwner as i, AgentActorSnapshot as j, AgentActorSnapshotV1 as k, AgentActorSnapshotV2 as l, AgentActorState as m, AgentActorStore as n, AgentArtifactDescriptor as o, AgentArtifactPolicy as p, AgentArtifactPolicyDecision as q, AgentArtifactPolicyInput as r, AgentArtifactReference as s, AgentBudgetAdmission as t, AgentBudgetAdmissionInput as u, AgentBudgetExhausted as v, AgentBudgetPort as w, AgentCapabilities as x, AgentCapabilityDeclaration as y, AgentCapabilityRequirements as z };
|