@delegance/cli 0.2.1 → 0.2.2

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/index.d.ts CHANGED
@@ -139,7 +139,7 @@ declare function createConfigCommand(): Command;
139
139
  declare function createProgram(): Command;
140
140
 
141
141
  /** Kept equal to package.json "version"; a unit test fails on drift. */
142
- declare const CLI_VERSION = "0.2.1";
142
+ declare const CLI_VERSION = "0.2.2";
143
143
 
144
144
  /**
145
145
  * Configuration management for the Delegance CLI
@@ -248,7 +248,13 @@ declare function header(text: string): void;
248
248
  */
249
249
  declare function keyValue(keyOrData: string | Record<string, unknown>, value?: unknown): void;
250
250
  /**
251
- * Print a table
251
+ * A light table: header, one rule line, then the rows. No borders and no
252
+ * dividers between rows. Cells are printed as given (strings keep any color).
253
+ */
254
+ declare function renderCompactTable(headers: string[], rows: (string | number | null | undefined)[][]): string;
255
+ /**
256
+ * Print a table. `compact` prints the light style (header, one rule, rows);
257
+ * the default is the bordered cli-table3 grid.
252
258
  */
253
259
  declare function table(headers: string[], rows: (string | number | null | undefined)[][], options?: {
254
260
  compact?: boolean;
@@ -265,6 +271,12 @@ declare function output(data: unknown, format?: OutputFormat): void;
265
271
  * Format a date for display
266
272
  */
267
273
  declare function formatDate(dateStr: string | Date | undefined): string;
274
+ /**
275
+ * "2026-11-01" (or a full ISO timestamp) -> "Nov 1, 2026". Reads the date
276
+ * part only, so the local time zone never shifts the day. Anything else is
277
+ * returned as given.
278
+ */
279
+ declare function formatDateOnly(iso: string | null | undefined): string;
268
280
  /**
269
281
  * Format file size for display
270
282
  */
@@ -283,6 +295,7 @@ declare const output$1_debug: typeof debug;
283
295
  declare const output$1_error: typeof error;
284
296
  declare const output$1_formatCurrency: typeof formatCurrency;
285
297
  declare const output$1_formatDate: typeof formatDate;
298
+ declare const output$1_formatDateOnly: typeof formatDateOnly;
286
299
  declare const output$1_formatFileSize: typeof formatFileSize;
287
300
  declare const output$1_formatStatus: typeof formatStatus;
288
301
  declare const output$1_header: typeof header;
@@ -290,11 +303,12 @@ declare const output$1_info: typeof info;
290
303
  declare const output$1_json: typeof json;
291
304
  declare const output$1_keyValue: typeof keyValue;
292
305
  declare const output$1_output: typeof output;
306
+ declare const output$1_renderCompactTable: typeof renderCompactTable;
293
307
  declare const output$1_success: typeof success;
294
308
  declare const output$1_table: typeof table;
295
309
  declare const output$1_warn: typeof warn;
296
310
  declare namespace output$1 {
297
- export { type output$1_OutputFormat as OutputFormat, output$1_debug as debug, output$1_error as error, output$1_formatCurrency as formatCurrency, output$1_formatDate as formatDate, output$1_formatFileSize as formatFileSize, output$1_formatStatus as formatStatus, output$1_header as header, output$1_info as info, output$1_json as json, output$1_keyValue as keyValue, output$1_output as output, output$1_success as success, output$1_table as table, output$1_warn as warn };
311
+ export { type output$1_OutputFormat as OutputFormat, output$1_debug as debug, output$1_error as error, output$1_formatCurrency as formatCurrency, output$1_formatDate as formatDate, output$1_formatDateOnly as formatDateOnly, output$1_formatFileSize as formatFileSize, output$1_formatStatus as formatStatus, output$1_header as header, output$1_info as info, output$1_json as json, output$1_keyValue as keyValue, output$1_output as output, output$1_renderCompactTable as renderCompactTable, output$1_success as success, output$1_table as table, output$1_warn as warn };
298
312
  }
299
313
 
300
314
  export { CLI_VERSION, clearConfig, clearCredentials, createAppetiteCommand, createAuthCommand, createCOICommand, createChatCommand, createCompanyCommand, createConfigCommand, createDocumentCommand, createKeysCommand, createKnowledgeCommand, createLeadCommand, createOnboardingCommand, createPolicyCommand, createProgram, createQuoteCommand, createSOVCommand, createUsageCommand, getAllConfig, getApiKey, getBaseUrl, getConfig, getConfigPath, isAuthenticated, maskApiKey, output$1 as output, setConfig, storeApiKey };