@qoder-ai/qoder-agent-sdk 1.0.53 → 1.0.55

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.
@@ -133,6 +133,11 @@ export declare class QueryRunner implements InternalQuery {
133
133
  * `--plugin-dir` 配置的插件。详见 DaemonAccountQueryPlane 的头注释。
134
134
  */
135
135
  private readonly daemonAccountQueries?;
136
+ /**
137
+ * daemon 绑定时读取当前 daemon 级代理。存在即表示本 Query 不能单独切代理:
138
+ * `setProxy` 只允许与 daemon 当前值一致(no-op),不一致直接报错。
139
+ */
140
+ private readonly daemonProxyProvider?;
136
141
  private resolveStreamInitialization;
137
142
  private initResponse?;
138
143
  private latestCommands;
@@ -160,7 +165,7 @@ export declare class QueryRunner implements InternalQuery {
160
165
  private closePromise?;
161
166
  private sessionStoreForkBarrierComplete;
162
167
  private inputEnded;
163
- constructor(transport: Transport, isSingleTurn: boolean, canUseTool?: CanUseTool, hooks?: Partial<Record<InternalHookEvent, HookCallbackMatcher[]>>, abortController?: AbortController, sdkMcpServers?: Map<string, McpServer>, initConfig?: InitConfig, onElicitation?: OnElicitation, diagnostics?: DiagnosticsSink, onAuthExpired?: () => void, controlRequestTimeoutMs?: number, sdkMcpTransports?: Map<string, SdkMcpTransport>, pendingMcpResponses?: Map<string, PendingMcpResponse>, fetchJobToken?: FetchJobToken, resolveModel?: ModelPolicyProvider, resolveModelTimeoutMs?: number, sessionStore?: SessionStore, sessionStoreFlush?: SessionStoreFlush, sdkMcpToolOverrides?: Record<string, Record<string, McpToolRuntimeOverride>>, fetchServiceAccountToken?: FetchServiceAccountToken, memoryCallbacks?: MemoryRuntimeCallbacks, skillEvolutionCallbacks?: SkillEvolutionRuntimeCallbacks, resolveSessionArtifacts?: ResolveSessionArtifacts, hostActionFallback?: (event: HostActionEvent) => Promise<void>, hostActionDirect?: boolean, daemonAccountQueries?: DaemonAccountQueryPlane);
168
+ constructor(transport: Transport, isSingleTurn: boolean, canUseTool?: CanUseTool, hooks?: Partial<Record<InternalHookEvent, HookCallbackMatcher[]>>, abortController?: AbortController, sdkMcpServers?: Map<string, McpServer>, initConfig?: InitConfig, onElicitation?: OnElicitation, diagnostics?: DiagnosticsSink, onAuthExpired?: () => void, controlRequestTimeoutMs?: number, sdkMcpTransports?: Map<string, SdkMcpTransport>, pendingMcpResponses?: Map<string, PendingMcpResponse>, fetchJobToken?: FetchJobToken, resolveModel?: ModelPolicyProvider, resolveModelTimeoutMs?: number, sessionStore?: SessionStore, sessionStoreFlush?: SessionStoreFlush, sdkMcpToolOverrides?: Record<string, Record<string, McpToolRuntimeOverride>>, fetchServiceAccountToken?: FetchServiceAccountToken, memoryCallbacks?: MemoryRuntimeCallbacks, skillEvolutionCallbacks?: SkillEvolutionRuntimeCallbacks, resolveSessionArtifacts?: ResolveSessionArtifacts, hostActionFallback?: (event: HostActionEvent) => Promise<void>, hostActionDirect?: boolean, daemonAccountQueries?: DaemonAccountQueryPlane, daemonProxyProvider?: () => string | null);
164
169
  private getRecord;
165
170
  private normalizeLogPreview;
166
171
  private extractMessagePreview;
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "version": 1,
3
3
  "brand": "global",
4
- "sdkVersion": "1.0.53",
5
- "qoderCliVersion": "1.1.71",
4
+ "sdkVersion": "1.0.55",
5
+ "qoderCliVersion": "1.1.75",
6
6
  "defaultTransport": "worker",
7
7
  "workerRuntime": {
8
8
  "packaged": false,
9
9
  "delivery": "install",
10
10
  "source": "qodercli-worker-runtime",
11
- "urlTemplate": "https://download.qoder.com/qodercli/releases/1.1.71/qodercli-worker-runtime-{target}.tgz",
11
+ "urlTemplate": "https://download.qoder.com/qodercli/releases/1.1.75/qodercli-worker-runtime-{target}.tgz",
12
12
  "artifactNameTemplate": "qodercli-worker-runtime-{target}.tgz",
13
- "sdkVersion": "1.0.53",
14
- "qoderCliVersion": "1.1.71"
13
+ "sdkVersion": "1.0.55",
14
+ "qoderCliVersion": "1.1.75"
15
15
  }
16
16
  }
@@ -130,9 +130,26 @@ export type PluginValidationReport = {
130
130
  };
131
131
  resources?: PluginResources;
132
132
  };
133
+ /**
134
+ * The daemon surface `validatePlugin` needs. A real `Daemon` satisfies it
135
+ * structurally; hosts inject their handle so validation can run in-process.
136
+ */
137
+ export type PluginValidationDaemon = {
138
+ readonly state: string;
139
+ supportsCapability(capability: string): boolean;
140
+ validatePlugins(paths: readonly string[], options?: {
141
+ configDir?: string;
142
+ }): Promise<PluginValidationReport[]>;
143
+ };
133
144
  export type ValidatePluginOptions = {
134
145
  /** Optional qodercli executable or qoder Worker runtime entry override. */
135
146
  cliPath?: string;
136
147
  env?: Record<string, string>;
137
148
  signal?: AbortSignal;
149
+ /**
150
+ * Optional daemon handle. When it is ready and advertises
151
+ * `daemon_validate_plugins_v1`, validation runs inside the daemon instead of
152
+ * spawning a Worker process; otherwise it falls back transparently.
153
+ */
154
+ daemon?: PluginValidationDaemon;
138
155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoder-ai/qoder-agent-sdk",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "TypeScript SDK for building Qoder-powered coding agents.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "zod": "^3.25.0 || ^4.0.0"
52
52
  },
53
- "qoderCliVersion": "1.1.71",
53
+ "qoderCliVersion": "1.1.75",
54
54
  "qoderSdkBrand": "global",
55
55
  "license": "SEE LICENSE IN LICENSE"
56
56
  }