- Updated all package.json name fields and dependency references - Updated all TypeScript/JavaScript imports - Updated .woodpecker/publish.yml filters and registry paths - Updated tools/install.sh scope default - Updated .npmrc registry paths (worktree + host) - Enhanced update-checker.ts with checkForAllUpdates() multi-package support - Updated CLI update command to show table of all packages - Added KNOWN_PACKAGES, formatAllPackagesTable, getInstallAllCommand - Marked checkForUpdate() with @deprecated JSDoc Closes #391
21 lines
592 B
TypeScript
21 lines
592 B
TypeScript
import type { ParsedCommand } from '@mosaicstack/types';
|
|
|
|
export interface StatusContext {
|
|
connected: boolean;
|
|
model: string | null;
|
|
provider: string | null;
|
|
sessionId: string | null;
|
|
tokenCount: number;
|
|
}
|
|
|
|
export function executeStatus(_parsed: ParsedCommand, ctx: StatusContext): string {
|
|
const lines = [
|
|
`Connection: ${ctx.connected ? 'connected' : 'disconnected'}`,
|
|
`Model: ${ctx.model ?? 'unknown'}`,
|
|
`Provider: ${ctx.provider ?? 'unknown'}`,
|
|
`Session: ${ctx.sessionId ?? 'none'}`,
|
|
`Tokens (session): ${ctx.tokenCount}`,
|
|
];
|
|
return lines.join('\n');
|
|
}
|