@mcp-abap-adt/interfaces 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.1] - 2024-12-04
11
+
12
+ ### Changed
13
+ - **ILogger Interface**: Simplified to include only core logging methods (info, error, warn, debug)
14
+ - Removed domain-specific methods (csrfToken, tlsConfig, browserAuth, refresh, success, browserUrl, browserOpening, testSkip)
15
+ - Interface now focuses on universal logging capabilities without implementation-specific details
16
+ - **ITokenProviderOptions**: Enhanced documentation with detailed descriptions of browser and logger options
17
+
8
18
  ## [0.1.0] - 2025-12-04
9
19
 
10
20
  ### Added
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Logger interface for connection layer
3
- * Allows connection layer to be independent of specific logger implementation
2
+ * Logger interface for MCP ABAP ADT packages
3
+ * Allows packages to be independent of specific logger implementation
4
4
  */
5
5
  export interface ILogger {
6
6
  /**
@@ -19,17 +19,5 @@ export interface ILogger {
19
19
  * Log debug message
20
20
  */
21
21
  debug(message: string, meta?: any): void;
22
- /**
23
- * Log CSRF token operations
24
- * @param action - Type of CSRF operation: "fetch", "retry", "success", or "error"
25
- * @param message - Log message
26
- * @param meta - Additional metadata
27
- */
28
- csrfToken?(action: "fetch" | "retry" | "success" | "error", message: string, meta?: any): void;
29
- /**
30
- * Log TLS configuration
31
- * @param rejectUnauthorized - Whether TLS certificate validation is enabled
32
- */
33
- tlsConfig?(rejectUnauthorized: boolean): void;
34
22
  }
35
23
  //# sourceMappingURL=ILogger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ILogger.d.ts","sourceRoot":"","sources":["../../src/logging/ILogger.ts"],"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options for token providers
3
+ *
4
+ * Used by ITokenProvider implementations to configure token acquisition behavior.
5
+ * All options are optional, allowing providers to use sensible defaults.
3
6
  */
4
7
  import type { ILogger } from '../logging/ILogger';
5
8
  export interface ITokenProviderOptions {
6
- /** Browser type for browser-based authentication (chrome, edge, firefox, system, none) */
9
+ /**
10
+ * Browser type for browser-based authentication
11
+ * Supported values: "chrome", "edge", "firefox", "system" (default), "none"
12
+ * - "system": Uses system default browser
13
+ * - "none": Does not open browser automatically (user must open URL manually)
14
+ */
7
15
  browser?: string;
8
- /** Logger instance for logging */
16
+ /**
17
+ * Logger instance for logging token provider operations
18
+ * Uses ILogger interface to allow any logger implementation
19
+ */
9
20
  logger?: ILogger;
10
21
  }
11
22
  //# sourceMappingURL=ITokenProviderOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITokenProviderOptions.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"ITokenProviderOptions.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderOptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/interfaces",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared interfaces for MCP ABAP ADT packages",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -48,4 +48,3 @@
48
48
  "typescript": "^5.9.2"
49
49
  }
50
50
  }
51
-