modality-kit 0.1.6 → 0.1.7

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.js CHANGED
@@ -210,9 +210,9 @@ class ModalityLogger {
210
210
  this.log("success", this.cook(message, data));
211
211
  }
212
212
  }
213
- var loggerInstance = ModalityLogger.getInstance.bind(ModalityLogger);
213
+ var getLoggerInstance = ModalityLogger.getInstance.bind(ModalityLogger);
214
214
  // src/util_error.ts
215
- var logger = loggerInstance("Error");
215
+ var logger = getLoggerInstance("General Error");
216
216
 
217
217
  class ErrorCode extends Error {
218
218
  constructor(message) {
@@ -244,9 +244,8 @@ function withErrorHandling(fn, operation) {
244
244
  export {
245
245
  withErrorHandling,
246
246
  setupAITools,
247
- loggerInstance,
247
+ getLoggerInstance,
248
248
  formatSuccessResponse,
249
249
  formatErrorResponse,
250
- ModalityLogger,
251
250
  ErrorCode
252
251
  };
@@ -1,5 +1,5 @@
1
1
  export { setupAITools } from "./util_mcp_tools_converter";
2
2
  export type { AITools, AITool } from "./schemas/schemas_tool_config";
3
3
  export { formatErrorResponse, formatSuccessResponse } from "./util_response";
4
- export { ModalityLogger, loggerInstance } from "./util_logger";
4
+ export { getLoggerInstance } from "./util_logger";
5
5
  export { withErrorHandling, ErrorCode } from "./util_error";
@@ -7,7 +7,7 @@ export interface LoggerOptions {
7
7
  timestampFormat?: "iso" | "locale" | false;
8
8
  name?: string;
9
9
  }
10
- export declare class ModalityLogger {
10
+ declare class ModalityLogger {
11
11
  private options;
12
12
  private logLevel;
13
13
  private constructor();
@@ -24,4 +24,5 @@ export declare class ModalityLogger {
24
24
  error(message: string, error?: Error | unknown, additionalData?: any): void;
25
25
  success(message: string, data?: any): void;
26
26
  }
27
- export declare const loggerInstance: typeof ModalityLogger.getInstance;
27
+ export declare const getLoggerInstance: typeof ModalityLogger.getInstance;
28
+ export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.6",
2
+ "version": "0.1.7",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",