@courseecho/ai-core-sdk 1.0.25 → 1.0.26

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/sdk.d.ts CHANGED
@@ -40,6 +40,8 @@ export declare class AiWidgetSDK {
40
40
  * Set JWT token for authentication
41
41
  */
42
42
  setJwtToken(token: string): void;
43
+ /** Get the currently stored JWT token (if any). */
44
+ getJwtToken(): string | undefined;
43
45
  /**
44
46
  * Send a query to the AI backend
45
47
  */
package/dist/sdk.js CHANGED
@@ -111,6 +111,10 @@ export class AiWidgetSDK {
111
111
  setJwtToken(token) {
112
112
  this.communicationService.setJwtToken(token);
113
113
  }
114
+ /** Get the currently stored JWT token (if any). */
115
+ getJwtToken() {
116
+ return this.communicationService.getJwtToken();
117
+ }
114
118
  /**
115
119
  * Send a query to the AI backend
116
120
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@courseecho/ai-core-sdk",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Framework-agnostic core AI chat SDK. Shared logic for all framework wrappers.",
5
5
  "license": "MIT",
6
6
  "author": "CourseEcho",