@@ -2,7 +2,7 @@ import type {MemorySyncAdaptorInfo, MemorySyncCommandResult} from '@truenine/mem
22
33import process from 'node:process'
44import { flushOutput , setGlobalLogLevel } from '@truenine/logger'
5- import { createTsFallbackMemorySyncBinding , getMemorySyncSdkBinding } from '@truenine/memory-sync-sdk'
5+ import { getMemorySyncSdkBinding } from '@truenine/memory-sync-sdk'
66import { extractUserArgs , parseArgs } from './cli-args'
77
88const CLI_NAME = 'tnmsc'
@@ -31,7 +31,7 @@ Synchronize AI memory and configuration files across projects.
3131- \`${ CLI_NAME } dry-run\` previews what would be written.
3232- \`${ CLI_NAME } clean\` removes generated files.
3333- \`${ CLI_NAME } clean --dry-run\` previews what would be cleaned.
34- - \`${ CLI_NAME } plugins\` lists the built-in output plugins .
34+ - \`${ CLI_NAME } plugins\` lists the built-in output adaptors .
3535
3636## Log Controls
3737
@@ -58,9 +58,9 @@ function writeUnknownCommand(command: string): void {
5858}
5959
6060function writePluginList ( plugins : readonly MemorySyncAdaptorInfo [ ] ) : void {
61- const lines = [ '# Registered plugins ' , '' ]
61+ const lines = [ '# Registered adaptors ' , '' ]
6262 if ( plugins . length === 0 ) {
63- lines . push ( '- No plugins are currently registered.' )
63+ lines . push ( '- No adaptors are currently registered.' )
6464 } else {
6565 for ( const plugin of plugins ) {
6666 const dependencySuffix = plugin . dependencies . length > 0 ? ` (depends on: ${ plugin . dependencies . join ( ', ' ) } )` : ''
@@ -94,17 +94,7 @@ export async function runCli(argv: readonly string[] = process.argv): Promise<nu
9494 return 1
9595 }
9696
97- const nativeBinding = getMemorySyncSdkBinding ( )
98- const fallbackBinding = createTsFallbackMemorySyncBinding ( )
99- // Pipeline commands (install / dry-run / clean) are not yet fully
100- // implemented in Rust, so use the mature TS fallback for them while
101- // keeping the native binding for prompts and listAdaptors.
102- const binding = {
103- ...nativeBinding ,
104- install : fallbackBinding . install ,
105- dryRun : fallbackBinding . dryRun ,
106- clean : fallbackBinding . clean
107- }
97+ const binding = getMemorySyncSdkBinding ( )
10898 const commandOptions = {
10999 cwd : process . cwd ( ) ,
110100 ...parsedArgs . logLevel != null ? { logLevel : parsedArgs . logLevel } : { }
0 commit comments