@mearl/agent-runtime 2.21.0 → 2.22.0

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 CHANGED
@@ -4,4 +4,6 @@
4
4
 
5
5
  侧边栏会话由 native-host 持有;后台模型由 client 的独立执行器持有。此包从 browser-core 生成独立协议,只依赖 daemon-core 和 Provider SDK,不依赖 client、setup 或 native-host,避免安装器与执行宿主形成运行时依赖环。
6
6
 
7
+ 生成协议集中在 `src/generated/`,由根目录 `pnpm run generate:client-action-protocol` 同步;修改协议时更新 browser-core 源文件。
8
+
7
9
  `runCodexModel` 每次拥有独立 Provider 进程,只提供 capabilities 中声明的只读 Agent 模式;宿主负责结构化结果校验、任务持久化和进程树终止。纯生成模式需 Provider 提供可靠的无工具执行能力后才能加入。
@@ -1,2 +1,2 @@
1
- import type { PluginModelCapability } from './generated-plugin-models.js';
1
+ import type { PluginModelCapability } from './generated/plugin-models.js';
2
2
  export declare const CODEX_MODEL_CAPABILITY: PluginModelCapability;
@@ -1,6 +1,6 @@
1
- import type { PluginModelOption } from './generated-plugin-models.js';
2
- import type { AgentInstalledSkill } from './generated-agent-skills.js';
3
- import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor } from './generated-agent-chat.js';
1
+ import type { PluginModelOption } from './generated/plugin-models.js';
2
+ import type { AgentInstalledSkill } from './generated/agent-skills.js';
3
+ import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor } from './generated/agent-chat.js';
4
4
  import type { AgentProvider, AgentProviderEvent, AgentProviderListSessionsOptions, AgentProviderListSessionsResult, AgentProviderResumeResult, AgentProviderSessionOptions, AgentProviderTurnOptions } from './provider.js';
5
5
  interface CodexExecutableCandidateOptions {
6
6
  env?: NodeJS.ProcessEnv;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export * from './provider.js';
2
2
  export * from './codex-provider.js';
3
3
  export * from './qoder-provider.js';
4
4
  export * from './model.js';
5
- export type * from './generated-plugin-models.js';
6
- export type * from './generated-agent-chat.js';
7
- export type * from './generated-agent-skills.js';
5
+ export type * from './generated/plugin-models.js';
6
+ export type * from './generated/agent-chat.js';
7
+ export type * from './generated/agent-skills.js';
8
8
  export * from './model-catalog.js';
@@ -1,4 +1,4 @@
1
1
  import { CodexAgentProvider } from './codex-provider.js';
2
- import type { PluginModelOption } from './generated-plugin-models.js';
2
+ import type { PluginModelOption } from './generated/plugin-models.js';
3
3
  /** Discovery starts no thread and always releases its short-lived app-server. */
4
4
  export declare function listCodexModels(signal: AbortSignal, provider?: CodexAgentProvider): Promise<PluginModelOption[]>;
package/dist/model.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PluginModelDiagnostic, PluginModelRequest, PluginModelResult } from './generated-plugin-models.js';
1
+ import type { PluginModelDiagnostic, PluginModelRequest, PluginModelResult } from './generated/plugin-models.js';
2
2
  import { CodexAgentProvider } from './codex-provider.js';
3
3
  export { CODEX_MODEL_CAPABILITY } from './capabilities.js';
4
4
  export interface ModelExecutionContext {
@@ -1,5 +1,5 @@
1
- import type { AgentInstalledSkill } from './generated-agent-skills.js';
2
- import type { AgentChatEventKind, AgentChatImageInput, AgentChatListSessionsOptions, AgentChatModelInfo, AgentChatProviderDescriptor, AgentChatRunOptions, AgentChatSessionSummary } from './generated-agent-chat.js';
1
+ import type { AgentInstalledSkill } from './generated/agent-skills.js';
2
+ import type { AgentChatEventKind, AgentChatImageInput, AgentChatListSessionsOptions, AgentChatModelInfo, AgentChatProviderDescriptor, AgentChatRunOptions, AgentChatSessionSummary } from './generated/agent-chat.js';
3
3
  export interface AgentProviderEvent {
4
4
  providerSessionId?: string;
5
5
  kind: AgentChatEventKind;
@@ -1,7 +1,7 @@
1
- import type { AgentInstalledSkill } from './generated-agent-skills.js';
1
+ import type { AgentInstalledSkill } from './generated/agent-skills.js';
2
2
  import fs from 'node:fs';
3
3
  import type * as acp from '@agentclientprotocol/sdk';
4
- import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor } from './generated-agent-chat.js';
4
+ import type { AgentChatImageInput, AgentChatModelInfo, AgentChatProviderDescriptor } from './generated/agent-chat.js';
5
5
  import type { AgentProvider, AgentProviderEvent, AgentProviderListSessionsOptions, AgentProviderListSessionsResult, AgentProviderResumeResult, AgentProviderSessionOptions } from './provider.js';
6
6
  export declare function qoderModelInfo(configOptions: acp.SessionConfigOption[] | null | undefined): AgentChatModelInfo | undefined;
7
7
  export declare function parseQoderSkillsList(output: string, cwd: string, home?: string): AgentInstalledSkill[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/agent-runtime",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "Shared local agent provider runtimes for Mearl",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@agentclientprotocol/sdk": "^1.2.1",
39
- "@mearl/daemon-core": "2.21.0"
39
+ "@mearl/daemon-core": "2.22.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^24.9.1",