@@ -52,9 +52,7 @@ export const registerConvertCommand = (program: Command) => {
5252
5353 const apiKey = await getApiKey ( ) ;
5454 if ( ! apiKey ) {
55- console . error (
56- `API key missing. Run "dws-cli setup" or set ${ API_KEY_ENV_VAR } .`
57- ) ;
55+ console . error ( `API key missing. Run "dws setup" or set ${ API_KEY_ENV_VAR } .` ) ;
5856 process . exit ( 1 ) ;
5957 return ;
6058 }
@@ -78,15 +76,15 @@ export const registerConvertCommand = (program: Command) => {
7876
7977 await fs . readFile ( resolvedInput , "utf8" ) ;
8078
81- const outputValue =
82- normalizeOption ( options . output ) ?? "./output.pdf" ;
79+ const outputValue = normalizeOption ( options . output ) ?? "./output.pdf" ;
8380 const resolvedOutput = resolvePath ( outputValue ) ;
8481 await fs . mkdir ( path . dirname ( resolvedOutput ) , { recursive : true } ) ;
8582
86- const placeholderPdf = "%PDF-1.4\n% DWS placeholder PDF\n%%EOF\n" ;
83+ const placeholderPdf = "%PDF-1.4\n% DWS stub PDF\n%%EOF\n" ;
8784 await fs . writeFile ( resolvedOutput , placeholderPdf , "utf8" ) ;
8885
8986 const summary = {
87+ status : "stub" ,
9088 input : resolvedInput ,
9189 output : resolvedOutput ,
9290 deterministic : Boolean ( options . deterministic ) ,
@@ -96,6 +94,7 @@ export const registerConvertCommand = (program: Command) => {
9694 locale : normalizeOption ( options . locale ) ?? null ,
9795 timezone : normalizeOption ( options . timezone ) ?? null ,
9896 } ,
97+ warnings : [ "Conversion is a stub. Output PDF is a placeholder." ] ,
9998 } ;
10099
101100 console . log ( JSON . stringify ( summary , null , 2 ) ) ;
0 commit comments