omnara 0.1.5 → 0.1.6

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.
@@ -22,6 +22,7 @@ export declare class RelayBridge extends EventEmitter {
22
22
  private authProviderPromise;
23
23
  private userSessionId;
24
24
  private currentAgentSessionId;
25
+ private browserOpened;
25
26
  constructor(orchestrator: AgentOrchestrator, options: RelayBridgeOptions);
26
27
  start(): Promise<void>;
27
28
  stop(): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function tryOpenBrowser(url: string): void;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Checks if Claude Code is installed and available in the system
3
+ */
4
+ export declare function checkClaudeCodeInstallation(): boolean;
5
+ /**
6
+ * Displays a warning message if Claude Code is not installed
7
+ */
8
+ export declare function displayClaudeCodeWarning(): void;
9
+ /**
10
+ * Performs the Claude Code check and displays warning if needed
11
+ * @param options - Optional configuration for the check
12
+ * @returns boolean indicating if Claude Code is installed
13
+ */
14
+ export declare function performClaudeCodeCheck(options?: {
15
+ silent?: boolean;
16
+ exitOnMissing?: boolean;
17
+ }): boolean;
18
+ /**
19
+ * Gets Claude Code version if installed
20
+ */
21
+ export declare function getClaudeCodeVersion(): string | null;
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Logger utility for controlling console output based on environment
3
+ *
4
+ * Production detection:
5
+ * 1. NODE_ENV === 'production'
6
+ * 2. OMNARA_LOG_LEVEL === 'none' or 'error'
7
+ * 3. Running from compiled dist/ directory (not tsx/ts-node)
8
+ */
9
+ /**
10
+ * Log levels for controlling output verbosity
11
+ */
12
+ export declare enum LogLevel {
13
+ NONE = 0,
14
+ ERROR = 1,
15
+ WARN = 2,
16
+ INFO = 3,
17
+ DEBUG = 4,
18
+ VERBOSE = 5
19
+ }
20
+ /**
21
+ * Detects if the CLI is running in production mode
22
+ */
23
+ export declare function isProduction(): boolean;
24
+ /**
25
+ * Gets the current log level from environment or defaults
26
+ */
27
+ export declare function getLogLevel(): LogLevel;
28
+ /**
29
+ * Logger interface that extends Console but can be controlled
30
+ */
31
+ export interface Logger extends Console {
32
+ important(...args: any[]): void;
33
+ success(...args: any[]): void;
34
+ }
35
+ /**
36
+ * Creates a controlled logger instance
37
+ */
38
+ export declare class ControlledLogger implements Logger {
39
+ private logLevel;
40
+ private forceOutput;
41
+ private _console;
42
+ Console: typeof console.Console;
43
+ constructor(options?: {
44
+ logLevel?: LogLevel;
45
+ forceOutput?: boolean;
46
+ });
47
+ /**
48
+ * Standard log output (INFO level)
49
+ */
50
+ log(...args: any[]): void;
51
+ /**
52
+ * Error output (always shown unless NONE)
53
+ */
54
+ error(...args: any[]): void;
55
+ /**
56
+ * Warning output
57
+ */
58
+ warn(...args: any[]): void;
59
+ /**
60
+ * Info level output
61
+ */
62
+ info(...args: any[]): void;
63
+ /**
64
+ * Debug output (only in development)
65
+ */
66
+ debug(...args: any[]): void;
67
+ /**
68
+ * Verbose/trace output
69
+ */
70
+ trace(...args: any[]): void;
71
+ /**
72
+ * Important messages that should always be shown to user
73
+ * (authentication status, connection info, etc.)
74
+ */
75
+ important(...args: any[]): void;
76
+ /**
77
+ * Success messages that should typically be shown
78
+ */
79
+ success(...args: any[]): void;
80
+ /**
81
+ * Check if a message should be logged at the given level
82
+ */
83
+ private shouldLog;
84
+ /**
85
+ * Update the log level dynamically
86
+ */
87
+ setLogLevel(level: LogLevel): void;
88
+ /**
89
+ * Get current log level
90
+ */
91
+ getLogLevel(): LogLevel;
92
+ assert(condition?: boolean, ...data: any[]): void;
93
+ clear(): void;
94
+ count(label?: string): void;
95
+ countReset(label?: string): void;
96
+ dir(item?: any, options?: any): void;
97
+ dirxml(...data: any[]): void;
98
+ group(...data: any[]): void;
99
+ groupCollapsed(...data: any[]): void;
100
+ groupEnd(): void;
101
+ table(tabularData?: any, properties?: string[]): void;
102
+ time(label?: string): void;
103
+ timeEnd(label?: string): void;
104
+ timeLog(label?: string, ...data: any[]): void;
105
+ timeStamp(label?: string): void;
106
+ profile(label?: string): void;
107
+ profileEnd(label?: string): void;
108
+ }
109
+ /**
110
+ * Global logger instance
111
+ */
112
+ export declare const logger: ControlledLogger;
113
+ /**
114
+ * Creates a logger for a specific component
115
+ */
116
+ export declare function createLogger(componentName?: string, options?: {
117
+ logLevel?: LogLevel;
118
+ forceOutput?: boolean;
119
+ }): Logger;
120
+ /**
121
+ * Helper to extract error messages consistently
122
+ */
123
+ export declare function extractErrorMessage(error: unknown): string;
124
+ /**
125
+ * Print current logger configuration (useful for debugging)
126
+ */
127
+ export declare function printLoggerConfig(): void;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Checks if a newer version is available and logs a message if so.
3
+ * This function is non-blocking and will not throw errors.
4
+ */
5
+ export declare function checkForUpdates(): Promise<void>;
6
+ /**
7
+ * Checks for updates in the background without blocking
8
+ */
9
+ export declare function checkForUpdatesInBackground(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "Command-line interface for Omnara.",
6
6
  "main": "dist/cli.js",
@@ -43,6 +43,7 @@
43
43
  "@supabase/supabase-js": "^2.76.1",
44
44
  "ajv": "^8.17.1",
45
45
  "ajv-formats": "^2.1.1",
46
+ "chalk": "^4.1.2",
46
47
  "commander": "^11.1.0",
47
48
  "ws": "^8.18.3",
48
49
  "zod": "^3.25.76"