@qoder-ai/qoder-agent-sdk 1.0.29 → 1.0.31
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/dist/daemon/daemon-connection.d.ts +3 -0
- package/dist/daemon/session-store-rpc.d.ts +9 -1
- package/dist/daemon/start-daemon.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +30 -30
- package/dist/protocol/common.d.ts +6 -3
- package/dist/protocol/index.d.ts +1 -1
- package/dist/query/query-runner.d.ts +6 -0
- package/dist/runtime-manifest.json +5 -5
- package/dist/session/transcript-mirror.d.ts +11 -1
- package/dist/types/common.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@ import type { Readable, Writable } from "node:stream";
|
|
|
2
2
|
import { type DaemonControlRequestFrame, type DaemonEventFrame, type DaemonWireSessionMessage, type JsonObject, type JsonValue, type EnableRemoteControlParams, type EnableRemoteControlResult, type OpenSessionParams, type RenameSessionResult, type SubscribeSessionResult, type UpdateSessionMetadataResult } from "./protocol.js";
|
|
3
3
|
import { DaemonSessionTransport, type DaemonSessionTransportOptions } from "./daemon-session-transport.js";
|
|
4
4
|
export declare const SESSION_STORE_FILE_CHECKPOINTING_CAPABILITY = "session_store_file_checkpointing_v1";
|
|
5
|
+
export declare const SESSION_STORE_FORK_BARRIER_CAPABILITY = "session_store_fork_barrier_v1";
|
|
5
6
|
export interface DaemonConnectionOptions {
|
|
6
7
|
input: Writable;
|
|
7
8
|
output: Readable;
|
|
@@ -16,10 +17,12 @@ export type RemoteControlFailure = {
|
|
|
16
17
|
export declare class DaemonRpcError extends Error {
|
|
17
18
|
readonly code: string;
|
|
18
19
|
readonly retryable: boolean;
|
|
20
|
+
readonly details: JsonObject | undefined;
|
|
19
21
|
constructor(options: {
|
|
20
22
|
code: string;
|
|
21
23
|
message: string;
|
|
22
24
|
retryable: boolean;
|
|
25
|
+
details?: JsonObject;
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
export declare class DaemonRequestError extends Error {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { SessionKey, SessionStore } from "../session/session-store.js";
|
|
1
|
+
import type { SessionKey, SessionStore, SessionStoreEntry } from "../session/session-store.js";
|
|
2
2
|
import { DaemonRequestError, type DaemonRequestHandler } from "./daemon-connection.js";
|
|
3
|
+
import type { JsonObject } from "./protocol.js";
|
|
3
4
|
import { type SessionExtra, type SessionMetadataUpdate } from "./session-metadata.js";
|
|
5
|
+
export declare const DEFAULT_SESSION_STORE_MAX_PAYLOAD_BYTES: number;
|
|
4
6
|
export interface DaemonSessionStore extends SessionStore {
|
|
5
7
|
listAllSessions(): Promise<readonly DaemonSessionSummary[]>;
|
|
6
8
|
/**
|
|
@@ -23,6 +25,11 @@ export interface DaemonSessionStoreRpcOptions {
|
|
|
23
25
|
maxEntriesPerPage?: number;
|
|
24
26
|
maxPayloadBytes?: number;
|
|
25
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns the UTF-8 wire size of one SessionStore entry when transported as a
|
|
30
|
+
* single-item page or append batch, including the surrounding array brackets.
|
|
31
|
+
*/
|
|
32
|
+
export declare function measureSessionStoreEntryPayloadBytes(entry: SessionStoreEntry): number;
|
|
26
33
|
export type DaemonSessionStoreRequestHandler = DaemonRequestHandler & {
|
|
27
34
|
dispose(): Promise<void>;
|
|
28
35
|
};
|
|
@@ -32,6 +39,7 @@ export declare class DaemonSessionStoreRpcError extends DaemonRequestError {
|
|
|
32
39
|
message: string;
|
|
33
40
|
retryable?: boolean;
|
|
34
41
|
operation?: string;
|
|
42
|
+
details?: JsonObject;
|
|
35
43
|
});
|
|
36
44
|
}
|
|
37
45
|
export declare function createDaemonSessionStoreRequestHandler(store: DaemonSessionStore, options?: DaemonSessionStoreRpcOptions): DaemonSessionStoreRequestHandler;
|
|
@@ -90,6 +90,7 @@ interface InternalDaemonRuntime {
|
|
|
90
90
|
readonly transportProvider: QueryTransportProvider<ProcessTransportOptions>;
|
|
91
91
|
readonly sessionStore?: DaemonSessionStore;
|
|
92
92
|
readonly supportsSessionStoreFileCheckpointing: boolean;
|
|
93
|
+
readonly supportsSessionStoreForkBarrier: boolean;
|
|
93
94
|
}
|
|
94
95
|
export declare function getDaemonRuntime(daemon: Daemon): InternalDaemonRuntime | undefined;
|
|
95
96
|
export declare function startDaemon(options: StartDaemonOptions): Promise<Daemon>;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export { startDaemon } from './daemon/start-daemon.js';
|
|
|
59
59
|
export type { Daemon, DaemonEvent, DaemonEventCallback, DaemonState, AttachSessionOptions, DaemonSessionInfo, SessionRuntimeState, EnableRemoteControlOptions, RemoteControl, RemoteControlState, StartDaemonOptions, } from './daemon/start-daemon.js';
|
|
60
60
|
export type { RemoteSessionLaunch, RemoteSessionLaunchRequest, ResolveRemoteSessionLaunch, SessionExtra, SessionExtraValue, SessionMetadataUpdate, } from './daemon/session-metadata.js';
|
|
61
61
|
export type { DaemonSessionStore, DaemonSessionSummary, } from './daemon/session-store-rpc.js';
|
|
62
|
+
export { DEFAULT_SESSION_STORE_MAX_PAYLOAD_BYTES, measureSessionStoreEntryPayloadBytes, } from './daemon/session-store-rpc.js';
|
|
62
63
|
export { DEFAULT_RUNTIME_TRANSPORT, } from './core/default-runtime.js';
|
|
63
64
|
export { ProcessTransport, QoderCliProcessError, } from './core/process-transport.js';
|
|
64
65
|
export { hasResolvableQoderWorkerRuntime, QoderWorkerRuntimeError, WorkerTransport, resolveQoderWorkerRuntimePath, } from './core/worker-transport.js';
|
|
@@ -78,6 +79,7 @@ export type { PluginScope, PluginToggleOptions, PluginDetails, PluginResources,
|
|
|
78
79
|
export { submitFeedback } from './feedback.js';
|
|
79
80
|
export type { SubmitFeedbackParams, SubmitFeedbackOptions, IntegrationMode, } from './feedback.js';
|
|
80
81
|
export { AbortError, ModelPolicyTimeoutError, ProtocolVersionMismatchError, UnsupportedCliCapabilityError, } from './core/errors.js';
|
|
82
|
+
export { DaemonRpcError } from './daemon/daemon-connection.js';
|
|
81
83
|
export { AuthAccessTokenEnvVarError, AuthServiceAccountEnvVarError, } from './core/runtime-launch-options.js';
|
|
82
84
|
export { WIRE_PROTOCOL_VERSION } from './protocol/version.js';
|
|
83
85
|
export type { ModelPromptPatch, ModelPromptPatches, } from './protocol/model-prompt-patches.js';
|
|
@@ -89,7 +91,7 @@ export type { AccessTokenInput, AuthOptions, FetchServiceAccountToken, ServiceAc
|
|
|
89
91
|
* @internal Internal auth types for first-party host integration, not general public use.
|
|
90
92
|
*/
|
|
91
93
|
export type { FetchJobToken, JobTokenAuthOptions, JobTokenRequest, JobTokenResult, } from './types/auth.js';
|
|
92
|
-
export type { Base64ImageSource, UrlImageSource, ImageSource, ImageContentBlock, ContentBlock, MessageParam, AccountInfo, UsageAddOnQuotaBucket, UsageInfo, UsageOrgResourcePackage, UsageQuotaBucket, SessionCreditsUsage, ApiKeySource, ExitReason, FastModeState, ConfigScope, SettingSource, SDKAssistantMessageError, SDKStatus, EffortLevel, ThinkingAdaptive, ThinkingEnabled, ThinkingDisabled, ThinkingConfig, ModelInfo, ModelSource, ServerModelJson, ServerModelJsonValue, ModelStrategy, ModelPromotion, LocalizedModelText, ModelContextConfig, ModelContextWindowEntry, ModelEffortEntry, ModelThinkingConfig, ModelThinkingDisabled, ModelThinkingEnabled, ModelUsage, NonNullableUsage, SlashCommand, ToolConfig, SdkPluginConfig, } from './types/common.js';
|
|
94
|
+
export type { Base64ImageSource, UrlImageSource, URLImageSource, ImageSource, ImageContentBlock, ImageBlockParam, ContentBlock, MessageParam, AccountInfo, UsageAddOnQuotaBucket, UsageInfo, UsageOrgResourcePackage, UsageQuotaBucket, SessionCreditsUsage, ApiKeySource, ExitReason, FastModeState, ConfigScope, SettingSource, SDKAssistantMessageError, SDKStatus, EffortLevel, ThinkingAdaptive, ThinkingEnabled, ThinkingDisabled, ThinkingConfig, ModelInfo, ModelSource, ServerModelJson, ServerModelJsonValue, ModelStrategy, ModelPromotion, LocalizedModelText, ModelContextConfig, ModelContextWindowEntry, ModelEffortEntry, ModelThinkingConfig, ModelThinkingDisabled, ModelThinkingEnabled, ModelUsage, NonNullableUsage, SlashCommand, ToolConfig, SdkPluginConfig, } from './types/common.js';
|
|
93
95
|
export type { SDKMessage, SDKAssistantMessage, SDKToolNonExecutionKind, SDKToolResultMeta, SDKArtifactInfo, SDKArtifactUpdateMessage, SDKAvailableModelsUpdateMessage, SDKUserMessage, SDKUserMessageReplay, SDKResultMessage, SDKResultSuccess, SDKResultError, SDKSystemMessage, SDKSystemInitMessage, SDKSystemMessageSubtype, SDKSystemMessageBySubtype, SDKPartialAssistantMessage, SDKCompactBoundaryMessage, SDKStatusMessage, SDKAPIRetryMessage, SDKModelQueueStatusMessage, SDKControlRequestProgressMessage, SDKCommandLifecycleMessage, SDKHookStartedMessage, SDKHookProgressMessage, SDKHookResponseMessage, SDKPermissionDeniedMessage, SDKMirrorErrorMessage, SDKTaskNotificationMessage, SDKTaskStartedMessage, SDKTaskProgressMessage, SDKTaskUpdatedMessage, SDKBackgroundTasksChangedMessage, SDKSessionStateChangedMessage, SDKPlanModeChangedMessage, SDKSessionTitleChangedMessage, SDKFilesPersistedEvent, SDKElicitationCompleteMessage, SDKPromptSuggestionMessage, SDKCloudAgentEventMessage, SDKMemoryGenerationMessage, SDKMemoryConsumptionMessage, SDKSkillEvolutionMessage, SDKPermissionDenial, } from './types/messages.js';
|
|
94
96
|
export type { DefaultRuntimeTransport, } from './core/default-runtime.js';
|
|
95
97
|
export type { QueryTransportCreateOptions, QueryTransportProviderOption, } from './core/query-transport.js';
|