merco-agents 0.1.7 → 0.1.8

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/index.d.ts CHANGED
@@ -58,7 +58,9 @@ export declare class JsSession {
58
58
  static new(name: string): JsSession
59
59
  /** Create a session with description */
60
60
  static withDescription(name: string, description: string): JsSession
61
- /** Get session ID as string to avoid precision loss with large u64 values */
61
+ /** Create a session with a specific UUID (useful for loading existing sessions) */
62
+ static withUuid(id: string, name: string): JsSession
63
+ /** Get session ID as UUID string */
62
64
  get id(): string
63
65
  /** Get session name */
64
66
  get name(): string
@@ -84,14 +86,14 @@ export declare class JsSession {
84
86
  export declare class JsStorageHandler {
85
87
  /** Create a new session */
86
88
  createSession(session: JsSession): Promise<void>
87
- /** Get a session by ID */
88
- getSession(id: number): Promise<JsSession | null>
89
+ /** Get a session by ID (UUID as string) */
90
+ getSession(id: string): Promise<JsSession | null>
89
91
  /** List all sessions */
90
92
  listSessions(): Promise<Array<JsSession>>
91
93
  /** Update a session */
92
94
  updateSession(session: JsSession): Promise<void>
93
- /** Delete a session by ID */
94
- deleteSession(id: number): Promise<void>
95
+ /** Delete a session by ID (UUID as string) */
96
+ deleteSession(id: string): Promise<void>
95
97
  /** Close the storage connection */
96
98
  close(): Promise<void>
97
99
  }
@@ -151,14 +153,14 @@ export interface CreateSessionOperation {
151
153
  /** Typed parameter for delete session operation */
152
154
  export interface DeleteSessionOperation {
153
155
  operationId: string
154
- /** Session ID as string to avoid precision loss with large u64 values */
156
+ /** Session ID as UUID string */
155
157
  sessionId: string
156
158
  }
157
159
 
158
160
  /** Typed parameter for get session operation */
159
161
  export interface GetSessionOperation {
160
162
  operationId: string
161
- /** Session ID as string to avoid precision loss with large u64 values */
163
+ /** Session ID as UUID string */
162
164
  sessionId: string
163
165
  }
164
166
 
@@ -314,7 +316,8 @@ export declare const enum JsReasoningEffort {
314
316
 
315
317
  /** JavaScript representation of SessionInfo */
316
318
  export interface JsSessionInfo {
317
- sessionId: number
319
+ /** Session ID as UUID string */
320
+ sessionId: string
318
321
  sessionName: string
319
322
  totalMessages: number
320
323
  totalTokens: number
Binary file
Binary file
Binary file
Binary file
package/merco-agents.node CHANGED
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merco-agents",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A powerful Rust library for building intelligent AI agents with Node.js bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",