@qoder-ai/qoder-agent-sdk 1.0.14 → 1.0.16
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/README.md +128 -0
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/deferred-transport.d.ts +23 -0
- package/dist/core/errors.d.ts +0 -8
- package/dist/core/process-transport.d.ts +3 -0
- package/dist/core/runtime-launch-options.d.ts +4 -1
- package/dist/core/transport.d.ts +2 -4
- package/dist/index.d.ts +10 -11
- package/dist/index.js +27 -22
- package/dist/mcp/sdk-mcp-server.d.ts +13 -1
- package/dist/mcp/tool-policy.d.ts +6 -0
- package/dist/protocol/agents.d.ts +0 -3
- package/dist/protocol/common.d.ts +0 -9
- package/dist/protocol/control.d.ts +41 -11
- package/dist/protocol/index.d.ts +4 -3
- package/dist/protocol/index.js +1 -1
- package/dist/protocol/mcp.d.ts +29 -0
- package/dist/protocol/messages.d.ts +34 -18
- package/dist/protocol/model-prompt-patches.d.ts +18 -0
- package/dist/protocol/version.d.ts +1 -1
- package/dist/query/query-runner.d.ts +14 -5
- package/dist/session/session-fork.d.ts +1 -27
- package/dist/session/session-import.d.ts +10 -0
- package/dist/session/session-manager.d.ts +3 -1
- package/dist/session/session-materializer.d.ts +15 -0
- package/dist/session/session-store.d.ts +45 -0
- package/dist/session/transcript-mirror.d.ts +25 -0
- package/dist/session/transcript-paths.d.ts +1 -2
- package/dist/types/common.d.ts +1 -1
- package/dist/types/control.d.ts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/mcp.d.ts +9 -3
- package/dist/types/messages.d.ts +21 -2
- package/dist/types/options.d.ts +48 -10
- package/dist/types/session.d.ts +17 -7
- package/dist/types/settings.d.ts +19 -232
- package/package.json +4 -14
- package/dist/bridge/bridge-api.d.ts +0 -14
- package/dist/bridge/bridge-session.d.ts +0 -6
- package/dist/bridge/ccr-client.d.ts +0 -72
- package/dist/bridge/index.d.ts +0 -9
- package/dist/bridge/index.js +0 -3
- package/dist/bridge/sse-transport.d.ts +0 -37
- package/dist/browser/browser-query.d.ts +0 -24
- package/dist/browser/index.d.ts +0 -14
- package/dist/browser/index.js +0 -9
- package/dist/browser/websocket-transport.d.ts +0 -40
- package/dist/direct-connect/direct-connect-transport.d.ts +0 -31
- package/dist/direct-connect/url-parser.d.ts +0 -14
- package/dist/embed/embed.d.ts +0 -2
- package/dist/embed/embed.js +0 -1
- package/dist/embed/extract-from-bunfs.d.ts +0 -5
- package/dist/types/bridge.d.ts +0 -62
- package/dist/types/browser.d.ts +0 -26
package/README.md
CHANGED
|
@@ -306,6 +306,101 @@ workflows that need state across multiple turns. Runtime helpers include
|
|
|
306
306
|
`q.streamInput(...)`, `q.interrupt()`, `q.setPermissionMode(...)`,
|
|
307
307
|
`q.mcpAuthenticate(...)`, and `q.mcpSubmitOAuthCallbackUrl(...)`.
|
|
308
308
|
|
|
309
|
+
Streaming user messages support three delivery priorities:
|
|
310
|
+
|
|
311
|
+
- `priority: "now"` stops the current response and handles the message immediately.
|
|
312
|
+
- `priority: "next"` is the default and handles the message at the next suitable point.
|
|
313
|
+
- `priority: "later"` waits until the current response finishes.
|
|
314
|
+
|
|
315
|
+
`shouldQuery: false` adds the message to the conversation without starting a
|
|
316
|
+
response by itself. Its processing time still follows `priority`.
|
|
317
|
+
|
|
318
|
+
Assign `uuid` to messages that need delivery tracking or cancellation.
|
|
319
|
+
Do not reuse UUIDs within a session. `await q.interrupt()` stops the current
|
|
320
|
+
response without closing the session. `await q.cancelAsyncMessage(uuid)` returns
|
|
321
|
+
`true` when the queued message is cancelled and `false` when it can no longer
|
|
322
|
+
be cancelled.
|
|
323
|
+
|
|
324
|
+
## External Session Storage
|
|
325
|
+
|
|
326
|
+
Queries persist their local session by default. Set `persistSession: false` for
|
|
327
|
+
an ephemeral query that must not create resumable session state. Ephemeral
|
|
328
|
+
queries cannot use `sessionStore` because mirroring starts from locally
|
|
329
|
+
committed transcript entries.
|
|
330
|
+
|
|
331
|
+
Use `sessionStore` when a host needs durable transcripts outside the local
|
|
332
|
+
machine. The SDK mirrors entries after qodercli commits them locally. A later
|
|
333
|
+
process can restore the same session before qodercli starts:
|
|
334
|
+
|
|
335
|
+
```text
|
|
336
|
+
qodercli commit -> SDK append(key, entries) -> external store
|
|
337
|
+
external store -> SDK load(key) -> temporary QODER_CONFIG_DIR -> qodercli resume
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
```ts
|
|
341
|
+
import {
|
|
342
|
+
InMemorySessionStore,
|
|
343
|
+
qodercliAuth,
|
|
344
|
+
query,
|
|
345
|
+
} from "@qoder-ai/qoder-agent-sdk";
|
|
346
|
+
|
|
347
|
+
const sessionStore = new InMemorySessionStore();
|
|
348
|
+
|
|
349
|
+
const first = query({
|
|
350
|
+
prompt: "Inspect this project.",
|
|
351
|
+
options: {
|
|
352
|
+
auth: qodercliAuth(),
|
|
353
|
+
cwd: "/path/to/project",
|
|
354
|
+
sessionStore,
|
|
355
|
+
},
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
for await (const message of first) {
|
|
359
|
+
console.dir(message, { depth: null });
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
const resumed = query({
|
|
363
|
+
prompt: "Continue the analysis.",
|
|
364
|
+
options: {
|
|
365
|
+
auth: qodercliAuth(),
|
|
366
|
+
cwd: "/path/to/project",
|
|
367
|
+
resume: "11111111-1111-4111-8111-111111111111",
|
|
368
|
+
sessionStore,
|
|
369
|
+
},
|
|
370
|
+
});
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Every store implements `append(key, entries)` and `load(key)`. Implement
|
|
374
|
+
`listSessions(projectKey)` for `continue: true` and session listing,
|
|
375
|
+
`listSubkeys(key)` to restore and inspect child-agent transcripts, and
|
|
376
|
+
`delete(key)` for deletion. Entries are opaque JSON objects and must remain in
|
|
377
|
+
append order. A child transcript uses an opaque `subpath` such as
|
|
378
|
+
`subagents/agent-<id>`; the key does not include the on-disk `.jsonl`
|
|
379
|
+
extension.
|
|
380
|
+
|
|
381
|
+
When `load()` returns `null` or an empty array for an explicit `resume`, the SDK
|
|
382
|
+
falls back to the same local session ID. Store-backed `continue` starts a new
|
|
383
|
+
session when `listSessions()` has no restorable session. Unsafe subpaths are
|
|
384
|
+
ignored, and missing or empty child transcripts do not prevent restoration of
|
|
385
|
+
the main session.
|
|
386
|
+
|
|
387
|
+
`sessionStoreFlush: "batched"` is the default. `"eager"` starts each append
|
|
388
|
+
without waiting for the result boundary. Final append failures are emitted as
|
|
389
|
+
non-fatal `system/mirror_error` messages. `loadTimeoutMs` defaults to 60,000 ms.
|
|
390
|
+
Session storage cannot be combined with `persistSession: false`, file
|
|
391
|
+
checkpointing, custom transports, or the Cloud Agent runtime. Session storage
|
|
392
|
+
supports the built-in Process and Worker transports. Use
|
|
393
|
+
`importSessionToStore(sessionId, store, options)` to copy an existing local main
|
|
394
|
+
transcript, child-agent transcripts, and metadata into a store.
|
|
395
|
+
|
|
396
|
+
### Production stores
|
|
397
|
+
|
|
398
|
+
The SDK exports the `SessionStore` interface but does not ship a
|
|
399
|
+
production-ready external storage implementation. Implement the interface
|
|
400
|
+
against shared storage operated by your application, then validate its
|
|
401
|
+
append/load ordering, project isolation, subkey handling, and deletion behavior
|
|
402
|
+
with the shared conformance suite under `examples/session-stores/`.
|
|
403
|
+
|
|
309
404
|
## Custom Tools
|
|
310
405
|
|
|
311
406
|
You can expose JavaScript or TypeScript functions to Qoder Agent as in-process
|
|
@@ -344,6 +439,39 @@ const q = query({
|
|
|
344
439
|
});
|
|
345
440
|
```
|
|
346
441
|
|
|
442
|
+
For stdio, SSE, and Streamable HTTP MCP servers, set `timeout` to the hard
|
|
443
|
+
wall-clock limit for each tool call. The value is in milliseconds, progress
|
|
444
|
+
notifications do not extend it, and values below 1,000 ms are ignored.
|
|
445
|
+
|
|
446
|
+
An effective server `timeout` overrides `MCP_TOOL_TIMEOUT`. If neither is set,
|
|
447
|
+
the CLI uses 100,000,000 ms (about 27.8 hours). Connection and discovery
|
|
448
|
+
requests are independent: they use `MCP_TIMEOUT`, which defaults to 30,000 ms.
|
|
449
|
+
|
|
450
|
+
```ts
|
|
451
|
+
const q = query({
|
|
452
|
+
prompt: "Run the long report.",
|
|
453
|
+
options: {
|
|
454
|
+
auth: qodercliAuth(),
|
|
455
|
+
mcpServers: {
|
|
456
|
+
reports: {
|
|
457
|
+
type: "stdio",
|
|
458
|
+
command: "report-mcp-server",
|
|
459
|
+
timeout: 1_800_000,
|
|
460
|
+
},
|
|
461
|
+
},
|
|
462
|
+
allowedTools: ["mcp__reports__run_report"],
|
|
463
|
+
},
|
|
464
|
+
});
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
The CLI also protects silent tool calls with an idle timeout: 30 minutes for
|
|
468
|
+
stdio and 5 minutes for remote transports. Progress resets the idle timer but
|
|
469
|
+
not the hard timeout. Set `QODER_MCP_TOOL_IDLE_TIMEOUT` to adjust the global
|
|
470
|
+
idle baseline, or to `0` to disable it; a valid server `timeout` can extend the
|
|
471
|
+
idle limit up to the hard timeout. In-process servers returned by
|
|
472
|
+
`createSdkMcpServer()` do not expose a server-level `timeout` field and do not
|
|
473
|
+
use the idle watchdog.
|
|
474
|
+
|
|
347
475
|
## Hooks
|
|
348
476
|
|
|
349
477
|
Hooks are deterministic callbacks invoked at specific points in the agent loop.
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Hook events supported by the public SDK hook registration API.
|
|
8
8
|
*/
|
|
9
|
-
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "CwdChanged", "InstructionsLoaded", "FileChanged", "PermissionRequest"];
|
|
9
|
+
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "CwdChanged", "InstructionsLoaded", "FileChanged", "PermissionRequest", "PermissionDenied"];
|
|
10
10
|
/**
|
|
11
11
|
* All supported exit reasons for session termination.
|
|
12
12
|
*/
|
|
@@ -24,7 +24,7 @@ export declare const KILL_GRACE_MS = 5000;
|
|
|
24
24
|
/**
|
|
25
25
|
* Current SDK version, sent to CLI as QODER_AGENT_SDK_VERSION environment variable.
|
|
26
26
|
*/
|
|
27
|
-
export declare const SDK_VERSION = "1.0.
|
|
27
|
+
export declare const SDK_VERSION = "1.0.16";
|
|
28
28
|
/**
|
|
29
29
|
* Value for the `--permission-prompt-tool` CLI flag.
|
|
30
30
|
*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StdoutMessage } from '../types/control.js';
|
|
2
|
+
import type { Transport } from './transport.js';
|
|
3
|
+
export declare class DeferredTransport implements Transport {
|
|
4
|
+
private readonly bootstrap;
|
|
5
|
+
private transport;
|
|
6
|
+
private bootstrapPromise;
|
|
7
|
+
private readonly pending;
|
|
8
|
+
private closed;
|
|
9
|
+
constructor(bootstrap: () => Promise<{
|
|
10
|
+
transport: Transport;
|
|
11
|
+
cleanup?: () => Promise<void>;
|
|
12
|
+
}>);
|
|
13
|
+
private cleanup;
|
|
14
|
+
private cleanupPromise;
|
|
15
|
+
initialize(): Promise<void>;
|
|
16
|
+
write(data: string): void;
|
|
17
|
+
close(): void;
|
|
18
|
+
isReady(): boolean;
|
|
19
|
+
readMessages(): AsyncGenerator<StdoutMessage, void, unknown>;
|
|
20
|
+
endInput(): void;
|
|
21
|
+
private getTransport;
|
|
22
|
+
private runCleanup;
|
|
23
|
+
}
|
package/dist/core/errors.d.ts
CHANGED
|
@@ -8,14 +8,6 @@
|
|
|
8
8
|
export declare class AbortError extends Error {
|
|
9
9
|
constructor(message?: string);
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Thrown when a direct-connect transport encounters an error.
|
|
13
|
-
* Direct-connect is an alternative transport that connects to a
|
|
14
|
-
* running qodercli server via network rather than spawning a subprocess.
|
|
15
|
-
*/
|
|
16
|
-
export declare class DirectConnectError extends Error {
|
|
17
|
-
constructor(message: string);
|
|
18
|
-
}
|
|
19
11
|
/**
|
|
20
12
|
* Thrown when the CLI's wire protocol version is incompatible with the
|
|
21
13
|
* version this SDK was built against (cross-major mismatch).
|
|
@@ -70,6 +70,7 @@ export interface ProcessTransportOptions {
|
|
|
70
70
|
continue?: boolean;
|
|
71
71
|
resume?: string;
|
|
72
72
|
forkSession?: boolean;
|
|
73
|
+
persistSession?: boolean;
|
|
73
74
|
maxTurns?: number;
|
|
74
75
|
permissionMode?: PermissionMode;
|
|
75
76
|
allowDangerouslySkipPermissions?: boolean;
|
|
@@ -78,6 +79,8 @@ export interface ProcessTransportOptions {
|
|
|
78
79
|
canUseTool?: boolean;
|
|
79
80
|
includePartialMessages?: boolean;
|
|
80
81
|
includeHookEvents?: boolean;
|
|
82
|
+
/** Request SDK-internal post-commit transcript frames from qodercli. */
|
|
83
|
+
sessionMirror?: boolean;
|
|
81
84
|
allowedTools?: string[];
|
|
82
85
|
disallowedTools?: string[];
|
|
83
86
|
tools?: ToolsOption;
|
|
@@ -2,7 +2,8 @@ import type { DiagnosticsSink } from './sdk-diagnostics.js';
|
|
|
2
2
|
import type { SdkPluginConfig, ToolConfig } from '../types/common.js';
|
|
3
3
|
import type { InternalAuthOptions } from '../types/auth.js';
|
|
4
4
|
import type { PermissionMode } from '../types/permissions.js';
|
|
5
|
-
import type { McpServerConfigForProcessTransport
|
|
5
|
+
import type { McpServerConfigForProcessTransport } from '../protocol/mcp.js';
|
|
6
|
+
import type { McpServerToolPolicy } from '../types/mcp.js';
|
|
6
7
|
import type { SettingSource } from '../types/options.js';
|
|
7
8
|
export declare class AuthAccessTokenEnvVarError extends Error {
|
|
8
9
|
readonly code: "auth_access_token_env_var_not_configured";
|
|
@@ -24,6 +25,7 @@ export interface RuntimeLaunchOptions {
|
|
|
24
25
|
continue?: boolean;
|
|
25
26
|
resume?: string;
|
|
26
27
|
forkSession?: boolean;
|
|
28
|
+
persistSession?: boolean;
|
|
27
29
|
maxTurns?: number;
|
|
28
30
|
permissionMode?: PermissionMode;
|
|
29
31
|
allowDangerouslySkipPermissions?: boolean;
|
|
@@ -31,6 +33,7 @@ export interface RuntimeLaunchOptions {
|
|
|
31
33
|
canUseTool?: boolean;
|
|
32
34
|
includePartialMessages?: boolean;
|
|
33
35
|
includeHookEvents?: boolean;
|
|
36
|
+
sessionMirror?: boolean;
|
|
34
37
|
allowedTools?: string[];
|
|
35
38
|
disallowedTools?: string[];
|
|
36
39
|
tools?: ToolsOption;
|
package/dist/core/transport.d.ts
CHANGED
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
* A Transport abstracts the bidirectional communication channel between
|
|
5
5
|
* the SDK and the CLI. All transports must implement this interface.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* - WebSocketTransport: connects via WebSocket (browser environments)
|
|
10
|
-
* - DirectConnectTransport: connects to a direct-connect server
|
|
7
|
+
* The default implementation spawns qodercli as a subprocess and uses
|
|
8
|
+
* stdin/stdout. Custom transports can implement this interface.
|
|
11
9
|
*/
|
|
12
10
|
import type { StdoutMessage } from '../types/control.js';
|
|
13
11
|
export interface Transport {
|
package/dist/index.d.ts
CHANGED
|
@@ -60,16 +60,19 @@ export { createSdkMcpServer, tool } from './mcp/sdk-mcp-server.js';
|
|
|
60
60
|
export type { AnyZodRawShape, InferShape, SdkMcpToolDefinition, ToolExtras, CreateSdkMcpServerOptions, } from './mcp/sdk-mcp-server.js';
|
|
61
61
|
export type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
62
62
|
export type { ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
|
|
63
|
-
export { listSessions, getSessionInfo, getSessionMessages, getSubagentMessages, listSubagents, renameSession, tagSession, } from './session/session-manager.js';
|
|
63
|
+
export { listSessions, getSessionInfo, getSessionMessages, getSubagentMessages, listSubagents, renameSession, tagSession, deleteSession, } from './session/session-manager.js';
|
|
64
64
|
export { forkSession } from './session/session-fork.js';
|
|
65
|
+
export { InMemorySessionStore } from './session/session-store.js';
|
|
66
|
+
export { importSessionToStore } from './session/session-import.js';
|
|
67
|
+
export type { ImportSessionToStoreOptions } from './session/session-import.js';
|
|
68
|
+
export type { SessionKey, SessionStore, SessionStoreEntry, SessionStoreFlush, } from './session/session-store.js';
|
|
65
69
|
export { listPlugins, enablePlugin, disablePlugin, installPlugin, uninstallPlugin } from './global/plugins.js';
|
|
66
70
|
export type { PluginDetails, PluginResources, InstallPluginResult, UninstallPluginResult } from './types/plugins.js';
|
|
67
71
|
export { submitFeedback } from './feedback.js';
|
|
68
72
|
export type { SubmitFeedbackParams, SubmitFeedbackOptions, IntegrationMode, } from './feedback.js';
|
|
69
|
-
export { AbortError,
|
|
73
|
+
export { AbortError, ModelPolicyTimeoutError, ProtocolVersionMismatchError, } from './core/errors.js';
|
|
70
74
|
export { WIRE_PROTOCOL_VERSION } from './protocol/version.js';
|
|
71
|
-
export {
|
|
72
|
-
export { parseDirectConnectUrl } from './direct-connect/url-parser.js';
|
|
75
|
+
export type { ModelPromptPatch, ModelPromptPatches, } from './protocol/model-prompt-patches.js';
|
|
73
76
|
export { HOOK_EVENTS, EXIT_REASONS } from './core/constants.js';
|
|
74
77
|
import * as coreTypes from './types/index.js';
|
|
75
78
|
export { coreTypes };
|
|
@@ -78,8 +81,8 @@ export type { AccessTokenInput, AuthOptions } from './types/auth.js';
|
|
|
78
81
|
* @internal Internal auth types for first-party host integration, not general public use.
|
|
79
82
|
*/
|
|
80
83
|
export type { FetchJobToken, JobTokenAuthOptions, JobTokenRequest, JobTokenResult, } from './types/auth.js';
|
|
81
|
-
export type { AccountInfo, UsageAddOnQuotaBucket, UsageInfo, UsageOrgResourcePackage, UsageQuotaBucket, ApiKeySource, ExitReason, FastModeState, ConfigScope, SettingSource, SDKAssistantMessageError, SDKStatus, EffortLevel, ThinkingAdaptive, ThinkingEnabled, ThinkingDisabled, ThinkingConfig,
|
|
82
|
-
export type { SDKMessage, SDKAssistantMessage, SDKUserMessage, SDKUserMessageReplay, SDKResultMessage, SDKResultSuccess, SDKResultError, SDKSystemMessage, SDKSystemInitMessage, SDKSystemMessageSubtype, SDKSystemMessageBySubtype, SDKPartialAssistantMessage, SDKCompactBoundaryMessage, SDKStatusMessage, SDKAPIRetryMessage,
|
|
84
|
+
export type { AccountInfo, UsageAddOnQuotaBucket, UsageInfo, UsageOrgResourcePackage, UsageQuotaBucket, 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';
|
|
85
|
+
export type { SDKMessage, SDKAssistantMessage, SDKUserMessage, SDKUserMessageReplay, SDKResultMessage, SDKResultSuccess, SDKResultError, SDKSystemMessage, SDKSystemInitMessage, SDKSystemMessageSubtype, SDKSystemMessageBySubtype, SDKPartialAssistantMessage, SDKCompactBoundaryMessage, SDKStatusMessage, SDKAPIRetryMessage, SDKHookStartedMessage, SDKHookProgressMessage, SDKHookResponseMessage, SDKPermissionDeniedMessage, SDKMirrorErrorMessage, SDKTaskNotificationMessage, SDKTaskStartedMessage, SDKTaskProgressMessage, SDKSessionStateChangedMessage, SDKSessionTitleChangedMessage, SDKFilesPersistedEvent, SDKElicitationCompleteMessage, SDKPromptSuggestionMessage, SDKCloudAgentEventMessage, SDKPermissionDenial, } from './types/messages.js';
|
|
83
86
|
export type { DefaultRuntimeTransport, } from './core/default-runtime.js';
|
|
84
87
|
export type { QueryTransportCreateOptions, QueryTransportProviderOption, } from './core/query-transport.js';
|
|
85
88
|
export type { ProcessTransportOptions } from './core/process-transport.js';
|
|
@@ -96,12 +99,8 @@ export type { SDKSessionInfo, SessionMessage, ListSessionsOptions, GetSessionInf
|
|
|
96
99
|
export type { Settings, ResolvedSettings, ResolvedSettingsSource, } from './types/settings.js';
|
|
97
100
|
export { filterEscalatingDefaultMode } from './types/settings.js';
|
|
98
101
|
export type { QoderModelPurpose } from './types/control.js';
|
|
99
|
-
export type { SDKControlRequest, SDKControlResponse, SDKControlInitializeResponse, SDKControlGetContextUsageResponse, SDKControlGetUsageInfoRequest, SDKControlGetUsageInfoResponse, SDKControlAddDirectoriesResponse, SDKControlReloadPluginsResponse, } from './types/control.js';
|
|
102
|
+
export type { SDKControlRequest, SDKControlResponse, SDKControlInterruptResponse, SDKControlInitializeResponse, SDKControlGetContextUsageResponse, SDKControlGetUsageInfoRequest, SDKControlGetUsageInfoResponse, SDKControlAddDirectoriesResponse, SDKControlReloadPluginsResponse, } from './types/control.js';
|
|
100
103
|
export type { SDKControlGetModelPolicyRequest, SDKControlGetModelPolicyResponse, SDKCapabilities, ModelPolicyContext, ModelPolicyResult, ModelPolicyProvider, } from './types/model-policy-provider.js';
|
|
101
104
|
export type { SDKControlGetByokConfigRequest, SDKControlGetByokConfigResponse, SDKControlValidateByokModelRequest, SDKControlValidateByokModelResponse, BYOKModelValidationInput, BYOKProviderInfo, BYOKModelTypeInfo, BYOKModelInfo, CustomModel, } from './types/byok.js';
|
|
102
|
-
export type { SessionState, BridgeSessionHandle, AttachBridgeSessionOptions, RemoteCredentials, } from './types/bridge.js';
|
|
103
|
-
export type { OAuthCredential, AuthMessage, WebSocketOptions, BrowserQueryOptions, } from './types/browser.js';
|
|
104
105
|
export type { AgentInput, AgentOutput, BashInput, FileReadInput, FileReadOutput, FileEditInput, FileWriteInput, GlobInput, GrepInput, WebFetchInput, WebSearchInput, AskUserQuestionInput, NotebookEditInput, ExitPlanModeInput, TodoWriteInput, ToolInputSchemas, ToolOutputSchemas, } from './types/tools.js';
|
|
105
|
-
export type { DirectConnectOptions } from './direct-connect/direct-connect-transport.js';
|
|
106
|
-
export type { DirectConnectUrlResult } from './direct-connect/url-parser.js';
|
|
107
106
|
export type { FeedbackResult } from './types/account.js';
|