@qoder-ai/qoder-agent-sdk 1.0.24 → 1.0.25
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/core/brand.d.ts +10 -0
- package/dist/core/constants.d.ts +5 -4
- package/dist/core/process-transport.d.ts +5 -0
- package/dist/core/runtime-launch-options.d.ts +1 -0
- package/dist/global/plugins.d.ts +3 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -28
- package/dist/protocol/control.d.ts +42 -1
- package/dist/protocol/index.d.ts +2 -2
- package/dist/protocol/index.js +1 -1
- package/dist/protocol/memory.d.ts +4 -0
- package/dist/protocol/messages.d.ts +24 -1
- package/dist/query/query-runner.d.ts +19 -1
- package/dist/runtime-manifest.json +5 -5
- package/dist/types/control.d.ts +1 -1
- package/dist/types/memory.d.ts +16 -1
- package/dist/types/options.d.ts +33 -0
- package/dist/types/plugins.d.ts +11 -0
- package/package.json +2 -2
package/dist/core/brand.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
export type SdkBrand = 'global' | 'cn';
|
|
2
2
|
export declare const SDK_BRAND: SdkBrand;
|
|
3
3
|
export declare const IS_CN_SDK: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Prefix for all Qoder environment variables recognized by the CLI.
|
|
6
|
+
* Global builds use `QODER_`, CN builds use `QODERCN_`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SDK_BRAND_ENV_PREFIX: string;
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable the CLI reads to resolve a VPC private-deployment
|
|
11
|
+
* endpoint. VPC mode only activates in CN builds.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SDK_VPC_ENDPOINT_ENV: string;
|
|
4
14
|
export declare const SDK_BRAND_CONFIG: {
|
|
5
15
|
productName: string;
|
|
6
16
|
packageName: string;
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -40,11 +40,12 @@ export declare const CLI_EXIT_CODE_AUTH_ERROR = 41;
|
|
|
40
40
|
* `options.tools`.
|
|
41
41
|
*
|
|
42
42
|
* Keep this list explicit so new qodercli built-ins do not automatically
|
|
43
|
-
* become SDK-visible.
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* become SDK-visible. UpdateGoal is included so an active goal started through
|
|
44
|
+
* the SDK control plane can terminate itself. Goal creation/read, cron,
|
|
45
|
+
* workflow, plan-mode transition, Bash PTY, worktree, topic, and
|
|
46
|
+
* background-task control tools remain opt-in via `options.tools`.
|
|
46
47
|
*/
|
|
47
|
-
export declare const SDK_DEFAULT_TOOLS: readonly ["Agent", "AskUserQuestion", "Bash", "Edit", "Glob", "Grep", "ImageGen", "ImageSearch", "NotebookEdit", "Read", "Skill", "TaskCreate", "TaskGet", "TaskUpdate", "TaskList", "WebFetch", "WebSearch", "Write"];
|
|
48
|
+
export declare const SDK_DEFAULT_TOOLS: readonly ["Agent", "AskUserQuestion", "Bash", "Edit", "Glob", "Grep", "ImageGen", "ImageSearch", "NotebookEdit", "Read", "Skill", "TaskCreate", "TaskGet", "TaskUpdate", "TaskList", "UpdateGoal", "WebFetch", "WebSearch", "Write"];
|
|
48
49
|
export declare const SDK_TASK_TOOLS: readonly ["TaskCreate", "TaskGet", "TaskUpdate", "TaskList"];
|
|
49
50
|
/**
|
|
50
51
|
* Resolve the SDK's curated default tool surface against qodercli's Task
|
|
@@ -47,6 +47,11 @@ export interface ProcessTransportOptions {
|
|
|
47
47
|
/** Custom environment variables (defaults to process.env) */
|
|
48
48
|
env?: Record<string, string | undefined>;
|
|
49
49
|
proxy?: string;
|
|
50
|
+
/**
|
|
51
|
+
* VPC private-deployment endpoint (CN deployments only). Written to the
|
|
52
|
+
* `QODERCN_VPC_ENDPOINT` / `QODER_VPC_ENDPOINT` env var for the child.
|
|
53
|
+
*/
|
|
54
|
+
vpcEndpoint?: string;
|
|
50
55
|
/** stderr handling mode */
|
|
51
56
|
stderr?: 'inherit' | 'pipe' | 'ignore';
|
|
52
57
|
/** Optional callback for child-process stderr output */
|
package/dist/global/plugins.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import type { PluginDetails, InstallPluginResult, PluginValidationReport, ValidatePluginOptions, UninstallPluginResult } from '../types/plugins.js';
|
|
1
|
+
import type { PluginDetails, InstallPluginResult, PluginToggleOptions, PluginValidationReport, ValidatePluginOptions, UninstallPluginResult } from '../types/plugins.js';
|
|
2
2
|
export declare function listPlugins(opts?: {
|
|
3
3
|
orgId?: string;
|
|
4
4
|
cliPath?: string;
|
|
5
5
|
env?: Record<string, string>;
|
|
6
6
|
}): Promise<PluginDetails[]>;
|
|
7
|
-
export declare function enablePlugin(id: string, opts?:
|
|
8
|
-
|
|
9
|
-
env?: Record<string, string>;
|
|
10
|
-
}): Promise<void>;
|
|
11
|
-
export declare function disablePlugin(id: string, opts?: {
|
|
12
|
-
cliPath?: string;
|
|
13
|
-
env?: Record<string, string>;
|
|
14
|
-
}): Promise<void>;
|
|
7
|
+
export declare function enablePlugin(id: string, opts?: PluginToggleOptions): Promise<void>;
|
|
8
|
+
export declare function disablePlugin(id: string, opts?: PluginToggleOptions): Promise<void>;
|
|
15
9
|
export declare function installPlugin(path: string, opts?: {
|
|
16
10
|
cliPath?: string;
|
|
17
11
|
env?: Record<string, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export { importSessionToStore } from './session/session-import.js';
|
|
|
70
70
|
export type { ImportSessionToStoreOptions } from './session/session-import.js';
|
|
71
71
|
export type { SessionKey, SessionStore, SessionStoreEntry, SessionStoreFlush, } from './session/session-store.js';
|
|
72
72
|
export { listPlugins, enablePlugin, disablePlugin, installPlugin, uninstallPlugin, validatePlugin, } from './global/plugins.js';
|
|
73
|
-
export type { PluginDetails, PluginResources, InstallPluginResult, UninstallPluginResult, PluginValidationSeverity, PluginValidationPhase, PluginValidationPosition, PluginValidationLocation, PluginValidationDiagnostic, PluginValidationReport, ValidatePluginOptions, } from './types/plugins.js';
|
|
73
|
+
export type { PluginScope, PluginToggleOptions, PluginDetails, PluginResources, InstallPluginResult, UninstallPluginResult, PluginValidationSeverity, PluginValidationPhase, PluginValidationPosition, PluginValidationLocation, PluginValidationDiagnostic, PluginValidationReport, ValidatePluginOptions, } from './types/plugins.js';
|
|
74
74
|
export { submitFeedback } from './feedback.js';
|
|
75
75
|
export type { SubmitFeedbackParams, SubmitFeedbackOptions, IntegrationMode, } from './feedback.js';
|
|
76
76
|
export { AbortError, ModelPolicyTimeoutError, ProtocolVersionMismatchError, UnsupportedCliCapabilityError, } from './core/errors.js';
|