pulse-coder-engine 0.0.1-alpha.7 → 0.0.1-alpha.9
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/built-in/index.d.cts +1 -1
- package/dist/built-in/index.d.ts +1 -1
- package/dist/{index-Dh5B8P2t.d.cts → index-C7fdydbL.d.cts} +1 -1
- package/dist/{index-Dh5B8P2t.d.ts → index-C7fdydbL.d.ts} +1 -1
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { B as BuiltInPlanModeService, e as BuiltInSkillRegistry, M as ModePolicy,
|
|
1
|
+
export { B as BuiltInPlanModeService, e as BuiltInSkillRegistry, M as ModePolicy, h as PlanIntentLabel, P as PlanMode, i as PlanModeEvent, j as PlanModeEventName, k as PlanModeService, l as PlanModeTransitionResult, t as SubAgentPlugin, m as ToolCategory, n as ToolMeta, o as ToolRisk, p as builtInMCPPlugin, q as builtInPlanModePlugin, r as builtInPlugins, s as builtInSkillsPlugin, r as default } from '../index-C7fdydbL.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import 'events';
|
package/dist/built-in/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { B as BuiltInPlanModeService, e as BuiltInSkillRegistry, M as ModePolicy,
|
|
1
|
+
export { B as BuiltInPlanModeService, e as BuiltInSkillRegistry, M as ModePolicy, h as PlanIntentLabel, P as PlanMode, i as PlanModeEvent, j as PlanModeEventName, k as PlanModeService, l as PlanModeTransitionResult, t as SubAgentPlugin, m as ToolCategory, n as ToolMeta, o as ToolRisk, p as builtInMCPPlugin, q as builtInPlanModePlugin, r as builtInPlugins, s as builtInSkillsPlugin, r as default } from '../index-C7fdydbL.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import 'events';
|
|
@@ -274,4 +274,4 @@ declare const builtInPlanModePlugin: EnginePlugin;
|
|
|
274
274
|
*/
|
|
275
275
|
declare const builtInPlugins: (EnginePlugin | SubAgentPlugin)[];
|
|
276
276
|
|
|
277
|
-
export { BuiltInPlanModeService as B, type ClarificationRequest as C, type EnginePluginLoadOptions as E, type ILogger as I, type LLMProviderFactory as L, type ModePolicy as M, type
|
|
277
|
+
export { BuiltInPlanModeService as B, type ClarificationRequest as C, type EnginePluginLoadOptions as E, type ILogger as I, type LLMProviderFactory as L, type ModePolicy as M, type PlanMode as P, type SystemPromptOption as S, type Tool as T, type ToolHooks as a, type Context as b, type ToolExecutionContext as c, type EngineRunHook as d, BuiltInSkillRegistry as e, type EnginePlugin as f, type EnginePluginContext as g, type PlanIntentLabel as h, type PlanModeEvent as i, type PlanModeEventName as j, type PlanModeService as k, type PlanModeTransitionResult as l, type ToolCategory as m, type ToolMeta as n, type ToolRisk as o, builtInMCPPlugin as p, builtInPlanModePlugin as q, builtInPlugins as r, builtInSkillsPlugin as s, SubAgentPlugin as t };
|
|
@@ -274,4 +274,4 @@ declare const builtInPlanModePlugin: EnginePlugin;
|
|
|
274
274
|
*/
|
|
275
275
|
declare const builtInPlugins: (EnginePlugin | SubAgentPlugin)[];
|
|
276
276
|
|
|
277
|
-
export { BuiltInPlanModeService as B, type ClarificationRequest as C, type EnginePluginLoadOptions as E, type ILogger as I, type LLMProviderFactory as L, type ModePolicy as M, type
|
|
277
|
+
export { BuiltInPlanModeService as B, type ClarificationRequest as C, type EnginePluginLoadOptions as E, type ILogger as I, type LLMProviderFactory as L, type ModePolicy as M, type PlanMode as P, type SystemPromptOption as S, type Tool as T, type ToolHooks as a, type Context as b, type ToolExecutionContext as c, type EngineRunHook as d, BuiltInSkillRegistry as e, type EnginePlugin as f, type EnginePluginContext as g, type PlanIntentLabel as h, type PlanModeEvent as i, type PlanModeEventName as j, type PlanModeService as k, type PlanModeTransitionResult as l, type ToolCategory as m, type ToolMeta as n, type ToolRisk as o, builtInMCPPlugin as p, builtInPlanModePlugin as q, builtInPlugins as r, builtInSkillsPlugin as s, SubAgentPlugin as t };
|
package/dist/index.cjs
CHANGED
|
@@ -2318,6 +2318,29 @@ var Engine = class {
|
|
|
2318
2318
|
getService(name) {
|
|
2319
2319
|
return this.pluginManager.getService(name);
|
|
2320
2320
|
}
|
|
2321
|
+
/**
|
|
2322
|
+
* 获取 plan mode 服务
|
|
2323
|
+
*/
|
|
2324
|
+
getPlanModeService() {
|
|
2325
|
+
return this.getService("planMode") ?? this.getService("planModeService");
|
|
2326
|
+
}
|
|
2327
|
+
/**
|
|
2328
|
+
* 获取当前模式
|
|
2329
|
+
*/
|
|
2330
|
+
getMode() {
|
|
2331
|
+
return this.getPlanModeService()?.getMode();
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* 设置当前模式
|
|
2335
|
+
*/
|
|
2336
|
+
setMode(mode, reason = "manual") {
|
|
2337
|
+
const planModeService = this.getPlanModeService();
|
|
2338
|
+
if (!planModeService) {
|
|
2339
|
+
return false;
|
|
2340
|
+
}
|
|
2341
|
+
planModeService.setMode(mode, reason);
|
|
2342
|
+
return true;
|
|
2343
|
+
}
|
|
2321
2344
|
/**
|
|
2322
2345
|
* 获取配置
|
|
2323
2346
|
*/
|