@kodax-ai/kodax 0.7.93 → 0.7.94
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 +98 -0
- package/README.md +54 -18
- package/README_CN.md +22 -0
- package/dist/builtin/skill-creator/SKILL.md +5 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +5 -4
- package/dist/chunks/{agent-R7HVNARP.js → agent-Q3FB3GNZ.js} +1 -1
- package/dist/chunks/argument-completer-SS2Q2ZKT.js +2 -0
- package/dist/chunks/chunk-56CIZI5I.js +418 -0
- package/dist/chunks/{chunk-PRASABCC.js → chunk-6BATYA47.js} +2 -2
- package/dist/chunks/chunk-77PNP27P.js +92 -0
- package/dist/chunks/chunk-7CKGNNTU.js +383 -0
- package/dist/chunks/{chunk-YVG6OKN7.js → chunk-BVV3IA5W.js} +1 -1
- package/dist/chunks/chunk-EASGM7W7.js +687 -0
- package/dist/chunks/{chunk-GRWUC6H7.js → chunk-IIIAUDGW.js} +1 -1
- package/dist/chunks/{chunk-GH3KBC2H.js → chunk-N7HIJNJH.js} +1 -1
- package/dist/chunks/{chunk-XTWIGVUL.js → chunk-NGOPE4KK.js} +10 -10
- package/dist/chunks/chunk-NK5AWGNW.js +319 -0
- package/dist/chunks/{chunk-7XSZVOG7.js → chunk-UNRHTOT5.js} +134 -133
- package/dist/chunks/{chunk-HLZWPB32.js → chunk-YMNFQ7SQ.js} +2 -2
- package/dist/chunks/{chunk-JTZKC4TV.js → chunk-ZGZLSKN6.js} +214 -213
- package/dist/chunks/{chunk-3YOZIFSJ.js → chunk-ZKEXHAXA.js} +238 -239
- package/dist/chunks/{chunk-4BY53JTF.js → chunk-ZMGATMXN.js} +121 -122
- package/dist/chunks/{client-OVYKC3ND.js → client-4IOUU4U3.js} +1 -1
- package/dist/chunks/compaction-config-2DTN3OHT.js +2 -0
- package/dist/chunks/{construction-bootstrap-474QPSYB.js → construction-bootstrap-BL56XTNW.js} +1 -1
- package/dist/chunks/dist-B4CB7KHY.js +2 -0
- package/dist/chunks/host-7747QS3X.js +2 -0
- package/dist/chunks/run-manager-NLNMI3P2.js +2 -0
- package/dist/chunks/{utils-5J4BHNBV.js → utils-CGGQLMJS.js} +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +2 -2
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1553 -1383
- package/dist/runtime-worker.js +1561 -1391
- package/dist/sandbox-workspace-session.js +429 -260
- package/dist/sdk-a2a.d.ts +6 -6
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +17 -6
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +32 -15
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +32 -14
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +31 -8
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +7 -0
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +2 -333
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +61 -60
- package/dist/types-chunks/{bash-prefix-extractor.d-BMi_TJIY.d.ts → bash-prefix-extractor.d-AOJdvO4r.d.ts} +53 -3
- package/dist/types-chunks/{guardrail.d-CKkoea7y.d.ts → guardrail.d-D8RyuTrv.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-BsZWOq3P.d.ts → public-api.d-BNmLxGnR.d.ts} +1 -1
- package/dist/types-chunks/{repl.d-DxD0Olm0.d.ts → repl.d-Q6Z3lV2-.d.ts} +4 -4
- package/dist/types-chunks/{sdk-session-BTzblJTQ.d.ts → sdk-session-BwC_i6JB.d.ts} +1 -1
- package/dist/types-chunks/sdk-skills-Bg1yL4i4.d.ts +335 -0
- package/dist/types-chunks/{shell-command-sets.d-C2cc9Hwi.d.ts → shell-command-sets.d-hkYPr4Dy.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Dc3kwcjC.d.ts → types.d-Bdv2JoiC.d.ts} +12 -1
- package/dist/types-chunks/{types.d-DrtP1ceI.d.ts → types.d-CzrUifXB.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BEMcUOng.d.ts → types.d-ssh6zRaf.d.ts} +5 -4
- package/dist/types-chunks/{utils.d-50Q24Few.d.ts → utils.d-Buv_Gxhi.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunks/argument-completer-JHXUJWHC.js +0 -2
- package/dist/chunks/chunk-A3ZQE2BX.js +0 -519
- package/dist/chunks/chunk-D27EY4XC.js +0 -383
- package/dist/chunks/chunk-JJ2YDBSN.js +0 -415
- package/dist/chunks/chunk-QFV6YCIH.js +0 -92
- package/dist/chunks/chunk-SMVC3Q3U.js +0 -320
- package/dist/chunks/compaction-config-2TVSYSB4.js +0 -2
- package/dist/chunks/dist-H4PT2QAV.js +0 -2
- package/dist/chunks/host-OR3IO2A4.js +0 -2
- package/dist/chunks/run-manager-MNOTWIFX.js +0 -2
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KodaXReasoningMode, KodaXCustomProviderConfig } from './index.js';
|
|
2
2
|
export { b as KodaXMessage } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
|
-
import { Q as KodaXEvents, al as KodaXResult,
|
|
3
|
+
import { Q as KodaXEvents, al as KodaXResult, bx as RuntimeContextBudgetSnapshot, bE as RuntimeToolExposurePlan, ad as KodaXPromptCacheDiagnosticEvent } from './types-chunks/bash-prefix-extractor.d-AOJdvO4r.js';
|
|
4
4
|
import { KodaXOptions, KodaXShellExecutionContract, KodaXOutputSegmentProjection, KodaXToolSandboxObservationUpdate, KodaXToolEventMeta, KodaXManagedTaskStatusEvent, KodaXContextOptions, KodaXOutputSegmentStarted, KodaXActivityEventMeta, KodaXTurnStartedEvent, KodaXTurnCompletedEvent, KodaXTurnFailedEvent, KodaXLiveEventMeta, KodaXCompactionEndResult, RuntimeCompactionSkippedEvent, KodaXContextCompactionFinishedEvent, KodaXContextIdentity } from './index.js';
|
|
5
5
|
import { AgentExecutionKind, AgentTreeSnapshot, AgentDetail, AgentSpawnInput, AgentTurnRef, AgentDataClassification, AgentFollowupResult, AgentOutput, AgentEvent } from './sdk-agent.js';
|
|
6
6
|
import { KodaXImageInputArtifact, KodaXInputArtifactSource, KodaXVideoInputArtifact } from './index.js';
|
|
@@ -14,7 +14,7 @@ import { LoadedExtensionDiagnostic, ExtensionRuntimeDiagnostics } from './index.
|
|
|
14
14
|
import { AutoModeDecisionDiagnostics, AutoModeStats } from './index.js';
|
|
15
15
|
import { saveConfig } from './index.js';
|
|
16
16
|
import { CommandInfo } from './sdk-repl.js';
|
|
17
|
-
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-
|
|
17
|
+
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-BNmLxGnR.js';
|
|
18
18
|
import { FullTranscriptSessionData, SessionConversationHistoryData, SessionConversationHistoryStatus, SessionConversationHistoryIssue, SessionConversationHistoryEntry, CompactSessionResult } from './sdk-repl.js';
|
|
19
19
|
import 'vscode-languageserver-protocol';
|
|
20
20
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
@@ -238,12 +238,16 @@ interface RuntimeDaemonRequestControl {
|
|
|
238
238
|
readonly signal?: AbortSignal;
|
|
239
239
|
readonly onLateResult?: (value: unknown) => void;
|
|
240
240
|
}
|
|
241
|
+
/** Factual state for one daemon connection; disconnected does not imply daemon crash. */
|
|
241
242
|
interface RuntimeDaemonTransportLifecycleState {
|
|
242
243
|
readonly state: 'connected' | 'disconnected';
|
|
243
244
|
readonly connectionId: string;
|
|
245
|
+
readonly code?: RuntimeDaemonDisconnectCode;
|
|
244
246
|
readonly reason?: string;
|
|
245
247
|
readonly reconnectable: boolean;
|
|
246
248
|
}
|
|
249
|
+
/** Transport-observable close reason. Run/daemon crash classification needs durable evidence. */
|
|
250
|
+
type RuntimeDaemonDisconnectCode = 'protocol_closed' | 'transport_error' | 'invalid_frame' | 'client_closed';
|
|
247
251
|
declare class RuntimeTransportBoundaryError extends Error {
|
|
248
252
|
readonly path: string;
|
|
249
253
|
readonly code: "invalid_transport_value";
|
|
@@ -378,6 +382,14 @@ interface RuntimeDaemonEndpoint {
|
|
|
378
382
|
readonly kind: 'pipe' | 'unix';
|
|
379
383
|
readonly path: string;
|
|
380
384
|
}
|
|
385
|
+
/** Pending RPC failure enriched with the same facts published by the lifecycle stream. */
|
|
386
|
+
declare class RuntimeDaemonDisconnectError extends Error {
|
|
387
|
+
readonly code: RuntimeDaemonDisconnectCode;
|
|
388
|
+
readonly connectionId: string;
|
|
389
|
+
readonly reconnectable: boolean;
|
|
390
|
+
constructor(message: string, code: RuntimeDaemonDisconnectCode, connectionId: string, reconnectable: boolean, options?: ErrorOptions);
|
|
391
|
+
}
|
|
392
|
+
declare function isRuntimeDaemonDisconnectError(error: unknown): error is RuntimeDaemonDisconnectError;
|
|
381
393
|
|
|
382
394
|
declare function parseRuntimeEvent(value: unknown): RuntimeEventParseResult;
|
|
383
395
|
|
|
@@ -1193,6 +1205,7 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1193
1205
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
1194
1206
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
1195
1207
|
readonly actorSettlementConvergence: 2;
|
|
1208
|
+
readonly conversationHistory: 2;
|
|
1196
1209
|
readonly crashOutcomeModel: 2;
|
|
1197
1210
|
readonly daemonOrphanExit: 1;
|
|
1198
1211
|
readonly daemonShutdownVerification: 1;
|
|
@@ -1234,8 +1247,8 @@ interface RuntimeCapabilityRequirements {
|
|
|
1234
1247
|
readonly transcriptPaging?: 1;
|
|
1235
1248
|
/** Require deterministic exact-history search over merged persisted lineage. */
|
|
1236
1249
|
readonly transcriptSearch?: 1;
|
|
1237
|
-
/**
|
|
1238
|
-
readonly conversationHistory?: 1;
|
|
1250
|
+
/** v2 also requires topology-transparent managed context and direct clone provenance. */
|
|
1251
|
+
readonly conversationHistory?: 1 | 2;
|
|
1239
1252
|
readonly connectionLifecycle?: 1;
|
|
1240
1253
|
readonly typedRuntimeEvents?: 1;
|
|
1241
1254
|
readonly daemonSafeRunInput?: 1;
|
|
@@ -1304,6 +1317,7 @@ interface RuntimeConnectionState {
|
|
|
1304
1317
|
readonly connectionId: string;
|
|
1305
1318
|
readonly runtimeEpoch: string;
|
|
1306
1319
|
readonly journalEpoch?: string;
|
|
1320
|
+
readonly code?: RuntimeDaemonTransportLifecycleState["code"];
|
|
1307
1321
|
readonly reason?: string;
|
|
1308
1322
|
readonly reconnectable: boolean;
|
|
1309
1323
|
}
|
|
@@ -1399,6 +1413,7 @@ interface RuntimeCommandInfo {
|
|
|
1399
1413
|
}
|
|
1400
1414
|
interface RuntimeSkillListFilter {
|
|
1401
1415
|
readonly projectRoot?: string;
|
|
1416
|
+
/** @deprecated Every enabled Skill is explicitly user-invocable. */
|
|
1402
1417
|
readonly userInvocableOnly?: boolean;
|
|
1403
1418
|
}
|
|
1404
1419
|
interface RuntimeSkillDescribeInput {
|
|
@@ -1413,10 +1428,12 @@ interface RuntimeSkillFileSummary {
|
|
|
1413
1428
|
interface RuntimeSkillSummary {
|
|
1414
1429
|
readonly name: string;
|
|
1415
1430
|
readonly description: string;
|
|
1431
|
+
/** Always true for enabled Skills; retained for wire compatibility. */
|
|
1416
1432
|
readonly userInvocable: boolean;
|
|
1417
1433
|
readonly argumentHint?: string;
|
|
1418
1434
|
readonly path: string;
|
|
1419
1435
|
readonly source: SkillMetadata["source"];
|
|
1436
|
+
/** True when the Skill is hidden from model discovery and the model tool. */
|
|
1420
1437
|
readonly disableModelInvocation: boolean;
|
|
1421
1438
|
}
|
|
1422
1439
|
interface RuntimeSkillDescription extends RuntimeSkillSummary {
|
|
@@ -1591,7 +1608,8 @@ interface RuntimeSessionDiagnosticsInput extends RuntimeReadOptions {
|
|
|
1591
1608
|
/** Select one Run control record; otherwise the authoritative Session Run is used. */
|
|
1592
1609
|
readonly runId?: string;
|
|
1593
1610
|
}
|
|
1594
|
-
|
|
1611
|
+
/** Bounded support classification; `unknown` settlement remains fail-closed. */
|
|
1612
|
+
type RuntimeSessionDiagnosticErrorCode = "run_control_unknown" | "run_status_unknown" | "owner_liveness_unconfirmed" | "owner_recovery_required" | "stop_outcome_unconfirmed" | "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_settlement_not_persisted" | "run_failed" | "terminal_time_unknown";
|
|
1595
1613
|
interface RuntimeSessionDiagnosticError {
|
|
1596
1614
|
readonly code: RuntimeSessionDiagnosticErrorCode;
|
|
1597
1615
|
readonly message: string;
|
|
@@ -2013,8 +2031,9 @@ interface RuntimeRunStatus {
|
|
|
2013
2031
|
readonly stop?: RuntimeRunStopStatus;
|
|
2014
2032
|
readonly requirements?: RuntimeRunRequirements;
|
|
2015
2033
|
}
|
|
2034
|
+
/** Durable lifecycle uncertainty reported without converting it into a successful terminal. */
|
|
2016
2035
|
interface RuntimeRunLifecycleError {
|
|
2017
|
-
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted";
|
|
2036
|
+
readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_settlement_not_persisted";
|
|
2018
2037
|
readonly message: string;
|
|
2019
2038
|
readonly retryable: boolean;
|
|
2020
2039
|
}
|
|
@@ -2067,12 +2086,16 @@ interface RuntimeRunStopReceipt {
|
|
|
2067
2086
|
readonly revision: number;
|
|
2068
2087
|
}
|
|
2069
2088
|
type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "actor_settlement_not_persisted" | "control_history_untrusted";
|
|
2089
|
+
/** Credential-safe failure category; raw provider error text is never required. */
|
|
2090
|
+
type RuntimeRunFailureKind = "auth" | "rate_limit" | "network" | "provider_aborted" | "invalid_response" | "runtime_cleanup" | "provider";
|
|
2070
2091
|
interface RuntimeTerminalFact {
|
|
2071
2092
|
readonly revision: number;
|
|
2072
2093
|
readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
|
|
2073
2094
|
readonly code: RuntimeTerminalCode;
|
|
2074
2095
|
readonly effectOutcome: "none" | "known" | "unknown";
|
|
2075
2096
|
readonly message?: string;
|
|
2097
|
+
/** Safe diagnostic category for failed terminals, independent from display text. */
|
|
2098
|
+
readonly failureKind?: RuntimeRunFailureKind;
|
|
2076
2099
|
}
|
|
2077
2100
|
interface RuntimeRunResult {
|
|
2078
2101
|
readonly runId: string;
|
|
@@ -2671,5 +2694,5 @@ declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Prom
|
|
|
2671
2694
|
*/
|
|
2672
2695
|
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2673
2696
|
|
|
2674
|
-
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2675
|
-
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
|
2697
|
+
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimeDaemonDisconnectError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, isRuntimeDaemonDisconnectError, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2698
|
+
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonDisconnectCode, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFailureKind, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
package/dist/sdk-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"./chunks/chunk-
|
|
2
|
+
import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunks/chunk-7CKGNNTU.js";import"./chunks/chunk-EASGM7W7.js";import"./chunks/chunk-NK5AWGNW.js";import"./chunks/chunk-ZKEXHAXA.js";import"./chunks/chunk-YMNFQ7SQ.js";import"./chunks/chunk-IIIAUDGW.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,v as KODAX_RUNTIME_SDK_CAPABILITIES,d as RUNTIME_DAEMON_METHODS,i as RUNTIME_DAEMON_METHOD_SCHEMAS,j as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,k as RUNTIME_DAEMON_PROTOCOL_SCHEMA,l as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,p as RuntimeAutoModeConfigurationError,o as RuntimeDaemonCapabilityUpgradeError,g as RuntimeDaemonDisconnectError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,q as acquireKodaXInlineOwner,x as captureRuntimeSessionDiagnostics,z as connectKodaXRuntime,y as createKodaXRuntime,t as enableKodaXDaemonOwner,r as getKodaXRuntimeOwnerPolicy,s as getKodaXRuntimeOwnerState,w as handleRuntimePermissionRequest,h as isRuntimeDaemonDisconnectError,m as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,u as setKodaXRuntimeOwnerMode,A as settleKodaXRuntimeExit,n as waitForRuntimeDaemonShutdown};
|
package/dist/sdk-sandbox.d.ts
CHANGED
|
@@ -69,6 +69,13 @@ interface KodaXSandboxCapability {
|
|
|
69
69
|
readonly setupMayElevate: boolean;
|
|
70
70
|
readonly unavailableBehavior: 'structured-no-execution';
|
|
71
71
|
readonly permissionFallback: 'normal-permission-policy';
|
|
72
|
+
/**
|
|
73
|
+
* Marker field (v4, non-versioned): Windows sandboxed git trusts exactly the
|
|
74
|
+
* session-authorized repo roots through per-exec `safe.directory` env entries.
|
|
75
|
+
* A daemon that reports `sandboxRuntime` without this field predates that
|
|
76
|
+
* behavior; clients surface a restart diagnostic instead of failing the gate.
|
|
77
|
+
*/
|
|
78
|
+
readonly gitSafeDirectory: 'authorized-repo-roots';
|
|
72
79
|
}
|
|
73
80
|
declare function sandboxRuntimeCapability(): KodaXSandboxCapability;
|
|
74
81
|
declare function doctorSandboxRuntime(options?: {
|
package/dist/sdk-sandbox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunks/chunk-5BNQXXGY.js";import{a,b,h as c,i as d,j as e,k as f,l as g}from"./chunks/chunk-
|
|
2
|
+
import"./chunks/chunk-5BNQXXGY.js";import{a,b,h as c,i as d,j as e,k as f,l as g}from"./chunks/chunk-EASGM7W7.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{a as KODAX_ASRT_VERSION,f as activateKodaXSandbox,c as doctorKodaXSandbox,b as getKodaXSandboxCapability,e as getKodaXSandboxSetupGuidance,g as runKodaXSandboxed,d as setupKodaXSandbox};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-
|
|
1
|
+
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-BNmLxGnR.js';
|
|
2
2
|
export { a as KodaXTaskResultMetadata, G as KodaXTaskResultSource } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
3
|
export { S as KodaXSessionUiHistoryItem, T as KodaXSessionUiHistoryItemType, U as KodaXSessionUiTextHistoryItem, V as KodaXSessionUiTextHistoryItemType, W as KodaXSessionUiToolCall, X as KodaXSessionUiToolCallStatus, Y as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-EjZTEEVu.js';
|
|
4
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
4
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-BwC_i6JB.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-AOJdvO4r.js';
|
|
6
6
|
import 'vscode-languageserver-protocol';
|
|
7
7
|
import './types-chunks/controller.d-Bm1i9RVj.js';
|
|
8
|
-
import './types-chunks/types.d-
|
|
8
|
+
import './types-chunks/types.d-ssh6zRaf.js';
|
|
9
9
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
10
10
|
import './types-chunks/types-D8OiIEwA.js';
|
|
11
11
|
import './types-chunks/capability.d-K664nHOS.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{Ub as n,Vb as t,Wb as r,Xb as a,Yb as S,Zb as d,ac as l,bc as p,cb as o,cc as u,dc as y,ec as c,fc as m,gc as H,hc as C,ic as T,jc as x,kc as R,nb as i}from"./chunks/chunk-NK5AWGNW.js";import{S as s,T as e}from"./chunks/chunk-ZKEXHAXA.js";import"./chunks/chunk-YMNFQ7SQ.js";import"./chunks/chunk-IIIAUDGW.js";import"./chunks/chunk-ZMGATMXN.js";import"./chunks/chunk-NGOPE4KK.js";import"./chunks/chunk-56CIZI5I.js";import"./chunks/chunk-7QBWHCIZ.js";import"./chunks/chunk-6BATYA47.js";import"./chunks/chunk-ZGZLSKN6.js";import"./chunks/chunk-N7HIJNJH.js";import"./chunks/chunk-BVV3IA5W.js";import"./chunks/chunk-BHE66SP3.js";import"./chunks/chunk-UNRHTOT5.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{i as SessionReadError,p as appendClientNotice,C as archiveSession,n as compactSession,R as createSessionManager,H as deleteSession,l as exportSessionBundle,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,u as forkSession,m as listRunningSessions,t as listSessions,a as loadFullTranscript,r as loadSession,d as readConversationHistory,S as readFullTranscript,o as restoreHistoryItemsFromSession,y as rewindSession,c as setActiveEntry,T as unarchiveSession,x as watchSessions};
|
package/dist/sdk-skills.d.ts
CHANGED
|
@@ -1,333 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
declare function registerPluginSkillPath(skillPath: string): () => void;
|
|
5
|
-
declare function unregisterPluginSkillPath(skillPath: string): boolean;
|
|
6
|
-
declare function listPluginSkillPaths(): string[];
|
|
7
|
-
declare function clearPluginSkillPaths(): void;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Skill Loader - YAML Frontmatter Parsing and Skill Loading
|
|
11
|
-
*
|
|
12
|
-
* Parses SKILL.md files with YAML frontmatter and loads skill content.
|
|
13
|
-
* Implements fallback sanitization for non-standard YAML formats.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Parse SKILL.md file with YAML frontmatter
|
|
18
|
-
*/
|
|
19
|
-
declare function parseSkillMarkdown(content: string): {
|
|
20
|
-
frontmatter: SkillFrontmatter;
|
|
21
|
-
body: string;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Load skill metadata from SKILL.md file
|
|
25
|
-
*/
|
|
26
|
-
declare function loadSkillMetadata(skillDir: string, source: ResolvedSkillSource): Promise<SkillMetadata | null>;
|
|
27
|
-
/**
|
|
28
|
-
* Load full skill content
|
|
29
|
-
*/
|
|
30
|
-
declare function loadFullSkill(skillDir: string, source: ResolvedSkillSource): Promise<Skill | null>;
|
|
31
|
-
/**
|
|
32
|
-
* Load a specific support file's content
|
|
33
|
-
*/
|
|
34
|
-
declare function loadSkillFileContent(file: SkillFile): Promise<string>;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Skill Discovery - Multi-path skill scanning
|
|
38
|
-
*
|
|
39
|
-
* Discovers skills from multiple paths with priority handling.
|
|
40
|
-
* Supports nested directory discovery for monorepos.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Result of skill discovery
|
|
45
|
-
*/
|
|
46
|
-
interface DiscoveryResult {
|
|
47
|
-
skills: Map<string, SkillMetadata>;
|
|
48
|
-
errors: Array<{
|
|
49
|
-
path: string;
|
|
50
|
-
error: string;
|
|
51
|
-
}>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Discover all skills from configured paths
|
|
55
|
-
*/
|
|
56
|
-
declare function discoverSkills(projectRoot?: string, customPaths?: Partial<SkillPathsConfig>): Promise<DiscoveryResult>;
|
|
57
|
-
/**
|
|
58
|
-
* Get nested skill paths for monorepo support
|
|
59
|
-
* When in a subdirectory, also check parent directories for skills
|
|
60
|
-
*/
|
|
61
|
-
declare function getNestedSkillPaths(currentDir: string, projectRoot: string): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Discover skills with monorepo support
|
|
64
|
-
*/
|
|
65
|
-
declare function discoverSkillsWithMonorepo(currentDir: string, projectRoot: string): Promise<DiscoveryResult>;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Skill Resolver - Variable Replacement System
|
|
69
|
-
*
|
|
70
|
-
* Handles variable replacement in skill content:
|
|
71
|
-
* - $ARGUMENTS - All arguments
|
|
72
|
-
* - $0, $1, $2... - Positional arguments
|
|
73
|
-
* - ${VAR_NAME} - Environment variables
|
|
74
|
-
* - !`command` - Dynamic context injection
|
|
75
|
-
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Split arguments string into positional arguments
|
|
79
|
-
* Handles quoted strings correctly
|
|
80
|
-
*/
|
|
81
|
-
declare function parseArguments(args: string): string[];
|
|
82
|
-
/**
|
|
83
|
-
* Variable resolver implementation
|
|
84
|
-
*/
|
|
85
|
-
declare class VariableResolver implements IVariableResolver {
|
|
86
|
-
private context;
|
|
87
|
-
constructor(context: SkillContext);
|
|
88
|
-
/**
|
|
89
|
-
* Resolve all variables in content
|
|
90
|
-
*/
|
|
91
|
-
resolve(content: string, args: string): Promise<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Replace $0, $1, $2... with positional arguments
|
|
94
|
-
*/
|
|
95
|
-
private resolvePositionalArgs;
|
|
96
|
-
/**
|
|
97
|
-
* Replace $ARGUMENTS with all arguments
|
|
98
|
-
*/
|
|
99
|
-
private resolveArguments;
|
|
100
|
-
/**
|
|
101
|
-
* Replace ${VAR_NAME} with environment variables
|
|
102
|
-
*/
|
|
103
|
-
private resolveEnvVars;
|
|
104
|
-
/**
|
|
105
|
-
* Replace !`command` with command output (dynamic context).
|
|
106
|
-
*
|
|
107
|
-
* Three-tier dispatch (v0.7.42):
|
|
108
|
-
* 1. `context.disableDynamicContext === true` → throw immediately,
|
|
109
|
-
* surfaced to the LLM as `[Error: …]`. Host-level kill switch.
|
|
110
|
-
* 2. `context.executeDynamicContext` provided → route there. Embedder
|
|
111
|
-
* mediates shell execution (broker, audit, deny).
|
|
112
|
-
* 3. else → legacy built-in path (`isSafeDynamicContextCommand`
|
|
113
|
-
* whitelist + `execSync` with 5s timeout).
|
|
114
|
-
*
|
|
115
|
-
* The resolver inlines an `[Error: …]` placeholder for any thrown
|
|
116
|
-
* exception so a single bad token doesn't poison the whole skill load.
|
|
117
|
-
*/
|
|
118
|
-
private resolveDynamicContext;
|
|
119
|
-
/**
|
|
120
|
-
* Execute a dynamic context command via the appropriate dispatch tier.
|
|
121
|
-
* See `resolveDynamicContext` JSDoc for the 3-tier ordering rationale.
|
|
122
|
-
*/
|
|
123
|
-
private executeDynamicCommand;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Create a variable resolver for a given context
|
|
127
|
-
*/
|
|
128
|
-
declare function createResolver(context: SkillContext): IVariableResolver;
|
|
129
|
-
/**
|
|
130
|
-
* Resolve skill content with arguments and context
|
|
131
|
-
*/
|
|
132
|
-
declare function resolveSkillContent(content: string, args: string, context: SkillContext): Promise<string>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Skill Registry - Progressive Disclosure and Skill Management
|
|
136
|
-
*
|
|
137
|
-
* Manages skill discovery, loading, and invocation with progressive disclosure:
|
|
138
|
-
* - Level 1: Metadata preloaded at startup (name, description)
|
|
139
|
-
* - Level 2: Full content loaded on invoke
|
|
140
|
-
* - Level 3: Support files loaded on demand
|
|
141
|
-
*/
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Skill Registry implementation
|
|
145
|
-
*/
|
|
146
|
-
declare class SkillRegistry implements ISkillRegistry {
|
|
147
|
-
private readonly skillsByName;
|
|
148
|
-
private readonly fullSkillsByName;
|
|
149
|
-
private readonly projectRoot?;
|
|
150
|
-
private readonly customPaths?;
|
|
151
|
-
constructor(projectRoot?: string, customPaths?: Partial<SkillPathsConfig>);
|
|
152
|
-
/**
|
|
153
|
-
* Discover skills from all configured paths
|
|
154
|
-
*/
|
|
155
|
-
discover(): Promise<void>;
|
|
156
|
-
/**
|
|
157
|
-
* Get skill metadata by name
|
|
158
|
-
*/
|
|
159
|
-
get skills(): ReadonlyMap<string, SkillMetadata>;
|
|
160
|
-
/**
|
|
161
|
-
* Get skill metadata by name
|
|
162
|
-
*/
|
|
163
|
-
get(name: string): SkillMetadata | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Load full skill content
|
|
166
|
-
*/
|
|
167
|
-
loadFull(name: string): Promise<Skill>;
|
|
168
|
-
/**
|
|
169
|
-
* Invoke a skill with arguments
|
|
170
|
-
*/
|
|
171
|
-
invoke(name: string, args: string, context: SkillContext): Promise<SkillResult>;
|
|
172
|
-
/**
|
|
173
|
-
* Reload skills from disk
|
|
174
|
-
*/
|
|
175
|
-
reload(): Promise<void>;
|
|
176
|
-
/**
|
|
177
|
-
* List all available skills
|
|
178
|
-
*/
|
|
179
|
-
list(): SkillMetadata[];
|
|
180
|
-
/**
|
|
181
|
-
* List user-invocable skills (for / menu)
|
|
182
|
-
*/
|
|
183
|
-
listUserInvocable(): SkillMetadata[];
|
|
184
|
-
/**
|
|
185
|
-
* Get skills formatted for system prompt injection.
|
|
186
|
-
*
|
|
187
|
-
* FEATURE_143 (v0.7.36): manifest wording hardened toward Claude
|
|
188
|
-
* Code-style strong constraints. The previous wording ("when a user
|
|
189
|
-
* request matches a skill description, use read to load the skill")
|
|
190
|
-
* was too soft — the LLM treated skill invocation as one option among
|
|
191
|
-
* many and frequently authored its own answer instead of loading the
|
|
192
|
-
* SKILL.md instructions. Aligns with the
|
|
193
|
-
* `c:/Works/claudecode/src/tools/SkillTool/prompt.ts` ruleset:
|
|
194
|
-
* BLOCKING REQUIREMENT to load the relevant skill BEFORE generating
|
|
195
|
-
* any other response when a skill matches.
|
|
196
|
-
*
|
|
197
|
-
* Filters out skills with disableModelInvocation=true (Issue 056).
|
|
198
|
-
*/
|
|
199
|
-
getSystemPromptSnippet(): string;
|
|
200
|
-
/**
|
|
201
|
-
* Check if a name is a valid skill
|
|
202
|
-
*/
|
|
203
|
-
has(name: string): boolean;
|
|
204
|
-
/**
|
|
205
|
-
* Get the count of discovered skills
|
|
206
|
-
*/
|
|
207
|
-
get size(): number;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Get the global skill registry instance
|
|
211
|
-
*
|
|
212
|
-
* IMPORTANT: If projectRoot is undefined, returns existing instance without reset.
|
|
213
|
-
* This prevents accidental singleton reset when called without arguments.
|
|
214
|
-
*/
|
|
215
|
-
declare function getSkillRegistry(projectRoot?: string, customPaths?: Partial<SkillPathsConfig>): SkillRegistry;
|
|
216
|
-
/**
|
|
217
|
-
* Initialize the skill registry and discover skills
|
|
218
|
-
*/
|
|
219
|
-
declare function initializeSkillRegistry(projectRoot?: string, customPaths?: Partial<SkillPathsConfig>): Promise<SkillRegistry>;
|
|
220
|
-
/**
|
|
221
|
-
* Reset the global registry (for testing or hot reload)
|
|
222
|
-
*/
|
|
223
|
-
declare function resetSkillRegistry(): void;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Skill Executor - Execution Engine
|
|
227
|
-
*
|
|
228
|
-
* Handles skill execution with support for:
|
|
229
|
-
* - Inline execution (default)
|
|
230
|
-
* - Fork execution (sub-agent)
|
|
231
|
-
* - Tool restrictions
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Execution mode
|
|
236
|
-
*/
|
|
237
|
-
type ExecutionMode = 'inline' | 'fork';
|
|
238
|
-
/**
|
|
239
|
-
* Execution options
|
|
240
|
-
*/
|
|
241
|
-
interface ExecutionOptions {
|
|
242
|
-
/** Force a specific execution mode */
|
|
243
|
-
mode?: ExecutionMode;
|
|
244
|
-
/** Override model */
|
|
245
|
-
model?: string;
|
|
246
|
-
/** Override agent type (for fork mode) */
|
|
247
|
-
agent?: string;
|
|
248
|
-
/** Override allowed tools */
|
|
249
|
-
allowedTools?: string[];
|
|
250
|
-
/** Callback for inline execution */
|
|
251
|
-
onExecute?: (content: string, skill: Skill) => Promise<string>;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Skill executor class
|
|
255
|
-
*/
|
|
256
|
-
declare class SkillExecutor {
|
|
257
|
-
private context;
|
|
258
|
-
constructor(context: SkillContext);
|
|
259
|
-
/**
|
|
260
|
-
* Execute a skill
|
|
261
|
-
*/
|
|
262
|
-
execute(skillName: string, args: string, options?: ExecutionOptions): Promise<SkillResult>;
|
|
263
|
-
/**
|
|
264
|
-
* Execute skill inline (in current context)
|
|
265
|
-
*/
|
|
266
|
-
private executeInline;
|
|
267
|
-
/**
|
|
268
|
-
* Execute skill in fork mode (sub-agent)
|
|
269
|
-
*/
|
|
270
|
-
private executeFork;
|
|
271
|
-
/**
|
|
272
|
-
* Build the execution prompt
|
|
273
|
-
*/
|
|
274
|
-
private buildPrompt;
|
|
275
|
-
/**
|
|
276
|
-
* Parse allowed tools string into array
|
|
277
|
-
*/
|
|
278
|
-
private parseAllowedTools;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Create a skill executor
|
|
282
|
-
*/
|
|
283
|
-
declare function createExecutor(context: SkillContext): SkillExecutor;
|
|
284
|
-
/**
|
|
285
|
-
* Execute a skill with default context
|
|
286
|
-
*/
|
|
287
|
-
declare function executeSkill(skillName: string, args: string, context: SkillContext, options?: ExecutionOptions): Promise<SkillResult>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Skill Expander - Expand skill commands for LLM context injection
|
|
291
|
-
*
|
|
292
|
-
* Takes a skill invocation and produces content that can be injected
|
|
293
|
-
* into the user message for LLM execution.
|
|
294
|
-
*
|
|
295
|
-
* Design based on pi-mono's _expandSkillCommand:
|
|
296
|
-
* - Wraps content in XML blocks for clear context
|
|
297
|
-
* - Includes skill metadata (name, location)
|
|
298
|
-
* - Resolves all variables ($ARGUMENTS, $0, etc.)
|
|
299
|
-
* - Handles dynamic context (!`command`)
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Result of skill expansion
|
|
304
|
-
*/
|
|
305
|
-
interface SkillExpansionResult {
|
|
306
|
-
/** The expanded skill content ready for LLM injection */
|
|
307
|
-
content: string;
|
|
308
|
-
/** Whether the skill has model invocation disabled */
|
|
309
|
-
disableModelInvocation: boolean;
|
|
310
|
-
/** Original skill metadata */
|
|
311
|
-
skill: Skill;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Expand a skill into LLM-ready content
|
|
315
|
-
*
|
|
316
|
-
* This function:
|
|
317
|
-
* 1. Resolves all variables in the skill content ($ARGUMENTS, $0, $1, etc.)
|
|
318
|
-
* 2. Executes dynamic context commands (!`command`)
|
|
319
|
-
* 3. Wraps the content in an XML block for clear context boundaries
|
|
320
|
-
*
|
|
321
|
-
* @param skill - The full skill object with content
|
|
322
|
-
* @param args - Raw arguments string from user input
|
|
323
|
-
* @param context - Execution context (working directory, session ID, etc.)
|
|
324
|
-
* @returns Expansion result with content ready for LLM injection
|
|
325
|
-
*/
|
|
326
|
-
declare function expandSkillForLLM(skill: Skill, args: string, context: SkillContext): Promise<SkillExpansionResult>;
|
|
327
|
-
/**
|
|
328
|
-
* Format skill activation message for user display
|
|
329
|
-
*/
|
|
330
|
-
declare function formatSkillActivationMessage(skillName: string, args: string): string;
|
|
331
|
-
|
|
332
|
-
export { ISkillRegistry, IVariableResolver, ResolvedSkillSource, Skill, SkillContext, SkillExecutor, SkillFile, SkillFrontmatter, SkillMetadata, SkillPathsConfig, SkillRegistry, SkillResult, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath };
|
|
333
|
-
export type { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExpansionResult };
|
|
1
|
+
export { I as ISkillRegistry, c as IVariableResolver, R as ResolvedSkillSource, d as Skill, e as SkillArtifact, b as SkillContext, a as SkillDynamicContextExecutor, f as SkillFile, g as SkillFrontmatter, h as SkillHook, i as SkillHooks, S as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-ssh6zRaf.js';
|
|
2
|
+
export { D as DiscoveryResult, E as ExecutionMode, a as ExecutionOptions, S as SkillExecutor, b as SkillExpansionResult, c as SkillRegistry, V as VariableResolver, d as clearPluginSkillPaths, e as createExecutor, f as createResolver, g as discoverSkills, h as discoverSkillsWithMonorepo, i as executeSkill, j as expandSkillForLLM, k as formatSkillActivationMessage, m as getNestedSkillPaths, n as getSkillRegistry, o as initializeSkillRegistry, p as listPluginSkillPaths, q as loadFullSkill, r as loadSkillFileContent, s as loadSkillMetadata, t as parseArguments, u as parseSkillMarkdown, v as registerPluginSkillPath, w as resetSkillRegistry, x as resolveSkillContent, y as unregisterPluginSkillPath } from './types-chunks/sdk-skills-Bg1yL4i4.js';
|
package/dist/sdk-skills.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ad as g,Bd as u,Cd as c,Dd as d,Ed as x,Fd as P,
|
|
2
|
+
import{Ad as g,Bd as u,Cd as c,Dd as d,Ed as x,Fd as P,Hd as R,Id as h,Jd as p,Kd as v,Ld as y,Md as M,Nd as f,Od as m,Pd as E,gc as l,hc as e,ic as i,jc as t,kc as o,lc as a,pc as k,qc as r,rc as S,sc as s,zd as n}from"./chunks/chunk-UNRHTOT5.js";import"./chunks/chunk-77PNP27P.js";import"./chunks/chunk-ONUPGMER.js";export{y as SkillExecutor,R as SkillRegistry,d as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,x as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,o as getDefaultSkillPaths,g as getNestedSkillPaths,a as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};
|