77 CursorOutputPlugin ,
88 defineConfig ,
99 DroidCLIOutputPlugin ,
10- EditorConfigOutputPlugin ,
1110 GeminiCLIOutputPlugin ,
1211 GitExcludeOutputPlugin ,
1312 JetBrainsAIAssistantCodexOutputPlugin ,
@@ -24,6 +23,10 @@ import {
2423 ZedIDEConfigOutputPlugin
2524} from '@truenine/memory-sync-sdk'
2625
26+ type DefineConfigWithOutputPlugins = Parameters < typeof defineConfig > [ 0 ] & {
27+ readonly outputPlugins : PipelineConfig [ 'outputPlugins' ]
28+ }
29+
2730export function resolveRuntimeCommandFromArgv ( argv : readonly string [ ] = process . argv ) : RuntimeCommand {
2831 const args = argv . filter ( ( arg ) : arg is string => arg != null )
2932 const userArgs = args . slice ( 2 )
@@ -39,34 +42,33 @@ export async function createDefaultPluginConfig(
3942 runtimeCommand : RuntimeCommand = resolveRuntimeCommandFromArgv ( argv ) ,
4043 executionCwd : string = process . cwd ( )
4144) : Promise < PipelineConfig > {
45+ const outputPlugins : PipelineConfig [ 'outputPlugins' ] = [
46+ new AgentsOutputPlugin ( ) ,
47+ new ClaudeCodeCLIOutputPlugin ( ) ,
48+ new CodexCLIOutputPlugin ( ) ,
49+ new JetBrainsAIAssistantCodexOutputPlugin ( ) ,
50+ new DroidCLIOutputPlugin ( ) ,
51+ new GeminiCLIOutputPlugin ( ) ,
52+ new KiroCLIOutputPlugin ( ) ,
53+ new OpencodeCLIOutputPlugin ( ) ,
54+ new QoderIDEPluginOutputPlugin ( ) ,
55+ new TraeIDEOutputPlugin ( ) ,
56+ new TraeCNIDEOutputPlugin ( ) ,
57+ new WarpIDEOutputPlugin ( ) ,
58+ new WindsurfOutputPlugin ( ) ,
59+ new CursorOutputPlugin ( ) ,
60+ new GitExcludeOutputPlugin ( ) ,
61+ new JetBrainsIDECodeStyleConfigOutputPlugin ( ) ,
62+ new VisualStudioCodeIDEConfigOutputPlugin ( ) ,
63+ new ZedIDEConfigOutputPlugin ( ) ,
64+ new ReadmeMdConfigFileOutputPlugin ( )
65+ ]
66+
4267 return defineConfig ( {
4368 executionCwd,
4469 runtimeCommand,
45- pluginOptions : {
46- plugins : [
47- new AgentsOutputPlugin ( ) ,
48- new ClaudeCodeCLIOutputPlugin ( ) ,
49- new CodexCLIOutputPlugin ( ) ,
50- new JetBrainsAIAssistantCodexOutputPlugin ( ) ,
51- new DroidCLIOutputPlugin ( ) ,
52- new GeminiCLIOutputPlugin ( ) ,
53- new KiroCLIOutputPlugin ( ) ,
54- new OpencodeCLIOutputPlugin ( ) ,
55- new QoderIDEPluginOutputPlugin ( ) ,
56- new TraeIDEOutputPlugin ( ) ,
57- new TraeCNIDEOutputPlugin ( ) ,
58- new WarpIDEOutputPlugin ( ) ,
59- new WindsurfOutputPlugin ( ) ,
60- new CursorOutputPlugin ( ) ,
61- new GitExcludeOutputPlugin ( ) ,
62- new JetBrainsIDECodeStyleConfigOutputPlugin ( ) ,
63- new EditorConfigOutputPlugin ( ) ,
64- new VisualStudioCodeIDEConfigOutputPlugin ( ) ,
65- new ZedIDEConfigOutputPlugin ( ) ,
66- new ReadmeMdConfigFileOutputPlugin ( )
67- ]
68- }
69- } )
70+ outputPlugins
71+ } as DefineConfigWithOutputPlugins )
7072}
7173
7274export default createDefaultPluginConfig
0 commit comments