b7d9a37981
AgentRegistry plugin model: - createAgentRegistry(agents, adapterFactories) — second param for adapter map - Echo adapter built-in, cursor/hermes via factory injection - Unknown type throws with available adapter list Dynamic prompts: - RoleSpec.prompt: string | ((start, messages) => Promise<string>) - compileWorkflowSpec handles both static and dynamic prompts Adapter packages: - @uncaged/nerve-adapter-cursor — cursor-agent CLI spawn - @uncaged/nerve-adapter-hermes — hermes CLI subagent spawn - Each with own spawn-safe (inline, avoids circular dep) - Moved spawn logic from workflow-utils, kept role factories as thin wrappers Kernel integration: - defaultAgentAdapterFactories() registers cursor + hermes - Hot-reload passes factories on rebuild Ref: #234
20 lines
272 B
TypeScript
20 lines
272 B
TypeScript
import { defineConfig } from "@rslib/core";
|
|
|
|
export default defineConfig({
|
|
lib: [
|
|
{
|
|
format: "esm",
|
|
dts: true,
|
|
},
|
|
],
|
|
source: {
|
|
entry: {
|
|
index: "src/index.ts",
|
|
},
|
|
},
|
|
output: {
|
|
target: "node",
|
|
cleanDistPath: true,
|
|
},
|
|
});
|