lua-cli 2.2.2 → 2.2.4

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.
@@ -48,6 +48,7 @@ export interface Basket {
48
48
  agentId: string;
49
49
  data: {
50
50
  currency: string;
51
+ metadata?: any;
51
52
  items: BasketItem[];
52
53
  createdAt: string;
53
54
  };
@@ -62,6 +63,7 @@ export interface Basket {
62
63
  }
63
64
  export interface CreateBasketRequest {
64
65
  currency: string;
66
+ metadata?: any;
65
67
  }
66
68
  export interface CreateBasketResponse {
67
69
  success: boolean;
@@ -172,6 +172,7 @@ export interface Basket {
172
172
  agentId: string;
173
173
  data: {
174
174
  currency: string;
175
+ metadata?: any;
175
176
  items: BasketItem[];
176
177
  createdAt: string;
177
178
  };
@@ -186,6 +187,7 @@ export interface Basket {
186
187
  }
187
188
  export interface CreateBasketRequest {
188
189
  currency: string;
190
+ metadata?: any;
189
191
  }
190
192
  export interface CreateBasketResponse {
191
193
  success: boolean;
@@ -268,8 +270,18 @@ export interface GetUserOrdersResponse {
268
270
  message: string;
269
271
  data: Order[];
270
272
  }
271
- export type BasketStatus = 'active' | 'checked_out' | 'abandoned' | 'expired';
272
- export type OrderStatus = 'pending' | 'confirmed' | 'fulfilled' | 'cancelled';
273
+ export declare enum BasketStatus {
274
+ ACTIVE = "active",
275
+ CHECKED_OUT = "checked_out",
276
+ ABANDONED = "abandoned",
277
+ EXPIRED = "expired"
278
+ }
279
+ export declare enum OrderStatus {
280
+ PENDING = "pending",
281
+ CONFIRMED = "confirmed",
282
+ FULFILLED = "fulfilled",
283
+ CANCELLED = "cancelled"
284
+ }
273
285
  export interface CustomDataEntry {
274
286
  id: string;
275
287
  data: any;
@@ -9,6 +9,20 @@ const BASE_URLS = {
9
9
  AUTH: 'https://auth.heylua.ai',
10
10
  CHAT: 'https://api.heylua.ai'
11
11
  };
12
+ export var BasketStatus;
13
+ (function (BasketStatus) {
14
+ BasketStatus["ACTIVE"] = "active";
15
+ BasketStatus["CHECKED_OUT"] = "checked_out";
16
+ BasketStatus["ABANDONED"] = "abandoned";
17
+ BasketStatus["EXPIRED"] = "expired";
18
+ })(BasketStatus || (BasketStatus = {}));
19
+ export var OrderStatus;
20
+ (function (OrderStatus) {
21
+ OrderStatus["PENDING"] = "pending";
22
+ OrderStatus["CONFIRMED"] = "confirmed";
23
+ OrderStatus["FULFILLED"] = "fulfilled";
24
+ OrderStatus["CANCELLED"] = "cancelled";
25
+ })(OrderStatus || (OrderStatus = {}));
12
26
  /**
13
27
  * Generic HTTP client with common error handling
14
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lua-cli",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Command-line interface for Lua AI platform - develop, test, and deploy LuaSkills with custom tools",
5
5
  "readmeFilename": "README.md",
6
6
  "main": "dist/index.js",
@@ -65,6 +65,7 @@
65
65
  "inquirer": "^12.9.6",
66
66
  "js-yaml": "^4.1.0",
67
67
  "keytar": "^7.9.0",
68
+ "lua-cli": "^2.2.2",
68
69
  "node-fetch": "^3.3.2",
69
70
  "open": "^10.1.0",
70
71
  "react": "^18.2.0",
@@ -19,7 +19,7 @@
19
19
  "axios": "^1.6.0",
20
20
  "inquirer": "^12.9.6",
21
21
  "js-yaml": "^4.1.0",
22
- "lua-cli": "2.2.2",
22
+ "lua-cli": "2.2.4",
23
23
  "openai": "^5.23.0",
24
24
  "uuid": "^13.0.0",
25
25
  "zod": "^3.24.1"