lua-cli 2.2.8-alpha.2 → 2.3.0-alpha.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.
Files changed (193) hide show
  1. package/API_REFERENCE.md +1408 -0
  2. package/CLI_REFERENCE.md +818 -0
  3. package/GETTING_STARTED.md +1040 -0
  4. package/README.md +738 -424
  5. package/TEMPLATE_GUIDE.md +1398 -0
  6. package/dist/api/agent.api.service.d.ts +33 -6
  7. package/dist/api/agent.api.service.js +27 -0
  8. package/dist/api/auth.api.service.d.ts +31 -2
  9. package/dist/api/auth.api.service.js +29 -0
  10. package/dist/api/basket.api.service.d.ts +53 -11
  11. package/dist/api/basket.api.service.js +63 -14
  12. package/dist/api/chat.api.service.d.ts +15 -3
  13. package/dist/api/chat.api.service.js +12 -0
  14. package/dist/api/credentials.d.ts +24 -0
  15. package/dist/api/credentials.js +46 -0
  16. package/dist/api/custom.data.api.service.d.ts +45 -9
  17. package/dist/api/custom.data.api.service.js +43 -9
  18. package/dist/api/lazy-instances.d.ts +49 -0
  19. package/dist/api/lazy-instances.js +95 -0
  20. package/dist/api/order.api.service.d.ts +34 -4
  21. package/dist/api/order.api.service.js +41 -3
  22. package/dist/api/products.api.service.d.ts +39 -9
  23. package/dist/api/products.api.service.js +43 -5
  24. package/dist/api/skills.api.service.d.ts +49 -2
  25. package/dist/api/skills.api.service.js +47 -1
  26. package/dist/api/tool.api.service.d.ts +39 -1
  27. package/dist/api/tool.api.service.js +38 -0
  28. package/dist/api/user.data.api.service.d.ts +23 -1
  29. package/dist/api/user.data.api.service.js +22 -0
  30. package/dist/api-exports.d.ts +236 -5
  31. package/dist/api-exports.js +264 -81
  32. package/dist/cli/command-definitions.d.ts +30 -0
  33. package/dist/cli/command-definitions.js +71 -0
  34. package/dist/commands/agents.d.ts +20 -0
  35. package/dist/commands/agents.js +24 -2
  36. package/dist/commands/apiKey.d.ts +23 -0
  37. package/dist/commands/apiKey.js +23 -0
  38. package/dist/commands/compile.d.ts +24 -0
  39. package/dist/commands/compile.js +67 -759
  40. package/dist/commands/configure.d.ts +24 -0
  41. package/dist/commands/configure.js +31 -96
  42. package/dist/commands/deploy.d.ts +31 -19
  43. package/dist/commands/deploy.js +45 -74
  44. package/dist/commands/destroy.d.ts +27 -0
  45. package/dist/commands/destroy.js +27 -1
  46. package/dist/commands/dev.d.ts +25 -62
  47. package/dist/commands/dev.js +58 -878
  48. package/dist/commands/init.d.ts +27 -0
  49. package/dist/commands/init.js +98 -260
  50. package/dist/commands/push.d.ts +24 -21
  51. package/dist/commands/push.js +39 -92
  52. package/dist/commands/test.d.ts +26 -0
  53. package/dist/commands/test.js +41 -188
  54. package/dist/common/basket.instance.d.ts +54 -3
  55. package/dist/common/basket.instance.js +56 -3
  56. package/dist/common/data.entry.instance.d.ts +25 -2
  57. package/dist/common/data.entry.instance.js +24 -0
  58. package/dist/common/http.client.d.ts +51 -1
  59. package/dist/common/http.client.js +50 -0
  60. package/dist/common/order.instance.d.ts +22 -0
  61. package/dist/common/order.instance.js +31 -4
  62. package/dist/common/product.instance.d.ts +22 -1
  63. package/dist/common/product.instance.js +24 -6
  64. package/dist/common/product.pagination.instance.d.ts +22 -2
  65. package/dist/common/product.pagination.instance.js +22 -1
  66. package/dist/common/product.search.instance.d.ts +13 -3
  67. package/dist/common/product.search.instance.js +12 -1
  68. package/dist/common/user.instance.d.ts +27 -3
  69. package/dist/common/user.instance.js +28 -7
  70. package/dist/config/auth.constants.d.ts +11 -0
  71. package/dist/config/auth.constants.js +11 -0
  72. package/dist/config/compile.constants.d.ts +67 -0
  73. package/dist/config/compile.constants.js +99 -0
  74. package/dist/config/constants.d.ts +5 -0
  75. package/dist/config/constants.js +5 -0
  76. package/dist/config/dev.constants.d.ts +65 -0
  77. package/dist/config/dev.constants.js +79 -0
  78. package/dist/config/init.constants.d.ts +23 -0
  79. package/dist/config/init.constants.js +41 -0
  80. package/dist/index.d.ts +19 -3
  81. package/dist/index.js +28 -44
  82. package/dist/interfaces/admin.d.ts +56 -50
  83. package/dist/interfaces/admin.js +4 -0
  84. package/dist/interfaces/agent.d.ts +21 -0
  85. package/dist/interfaces/agent.js +4 -0
  86. package/dist/interfaces/baskets.d.ts +60 -0
  87. package/dist/interfaces/baskets.js +12 -0
  88. package/dist/interfaces/chat.d.ts +48 -4
  89. package/dist/interfaces/chat.js +4 -0
  90. package/dist/interfaces/common.d.ts +62 -0
  91. package/dist/interfaces/common.js +8 -0
  92. package/dist/interfaces/compile.d.ts +11 -0
  93. package/dist/interfaces/compile.js +4 -0
  94. package/dist/interfaces/custom.data.d.ts +49 -19
  95. package/dist/interfaces/custom.data.js +4 -0
  96. package/dist/interfaces/deploy.d.ts +29 -0
  97. package/dist/interfaces/deploy.js +4 -0
  98. package/dist/interfaces/dev.d.ts +53 -0
  99. package/dist/interfaces/dev.js +5 -0
  100. package/dist/interfaces/init.d.ts +60 -0
  101. package/dist/interfaces/init.js +4 -0
  102. package/dist/interfaces/orders.d.ts +37 -0
  103. package/dist/interfaces/orders.js +12 -0
  104. package/dist/interfaces/product.d.ts +38 -10
  105. package/dist/interfaces/product.js +4 -0
  106. package/dist/interfaces/push.d.ts +26 -0
  107. package/dist/interfaces/push.js +4 -0
  108. package/dist/interfaces/test.d.ts +36 -0
  109. package/dist/interfaces/test.js +4 -0
  110. package/dist/services/auth.d.ts +54 -99
  111. package/dist/services/auth.js +76 -12
  112. package/dist/types/api-contracts.d.ts +211 -0
  113. package/dist/types/api-contracts.js +8 -0
  114. package/dist/types/compile.types.d.ts +76 -0
  115. package/dist/types/compile.types.js +4 -0
  116. package/dist/types/index.d.ts +23 -121
  117. package/dist/types/index.js +25 -14
  118. package/dist/types/skill.d.ts +142 -0
  119. package/dist/{skill.js → types/skill.js} +66 -17
  120. package/dist/types/tool-validation.d.ts +34 -0
  121. package/dist/types/tool-validation.js +42 -0
  122. package/dist/utils/auth-flows.d.ts +26 -0
  123. package/dist/utils/auth-flows.js +141 -0
  124. package/dist/utils/bundling.d.ts +36 -0
  125. package/dist/utils/bundling.js +137 -0
  126. package/dist/utils/compile.d.ts +37 -0
  127. package/dist/utils/compile.js +242 -0
  128. package/dist/utils/deploy-api.d.ts +26 -0
  129. package/dist/utils/deploy-api.js +53 -0
  130. package/dist/utils/deploy-helpers.d.ts +46 -0
  131. package/dist/utils/deploy-helpers.js +86 -0
  132. package/dist/utils/deployment.d.ts +25 -0
  133. package/dist/utils/deployment.js +161 -0
  134. package/dist/utils/dev-api.d.ts +61 -0
  135. package/dist/utils/dev-api.js +262 -0
  136. package/dist/utils/dev-helpers.d.ts +46 -0
  137. package/dist/utils/dev-helpers.js +83 -0
  138. package/dist/utils/dev-server.d.ts +24 -0
  139. package/dist/utils/dev-server.js +555 -0
  140. package/dist/utils/dev-watcher.d.ts +31 -0
  141. package/dist/utils/dev-watcher.js +110 -0
  142. package/dist/utils/files.js +0 -5
  143. package/dist/utils/init-agent.d.ts +34 -0
  144. package/dist/utils/init-agent.js +129 -0
  145. package/dist/utils/init-helpers.d.ts +41 -0
  146. package/dist/utils/init-helpers.js +73 -0
  147. package/dist/utils/init-prompts.d.ts +47 -0
  148. package/dist/utils/init-prompts.js +168 -0
  149. package/dist/utils/push-api.d.ts +15 -0
  150. package/dist/utils/push-api.js +48 -0
  151. package/dist/utils/push-helpers.d.ts +38 -0
  152. package/dist/utils/push-helpers.js +84 -0
  153. package/dist/utils/sandbox-storage.d.ts +27 -0
  154. package/dist/utils/sandbox-storage.js +71 -0
  155. package/dist/utils/sandbox.js +78 -114
  156. package/dist/utils/skill-management.d.ts +14 -0
  157. package/dist/utils/skill-management.js +148 -0
  158. package/dist/utils/test-helpers.d.ts +40 -0
  159. package/dist/utils/test-helpers.js +92 -0
  160. package/dist/utils/test-prompts.d.ts +23 -0
  161. package/dist/utils/test-prompts.js +186 -0
  162. package/dist/utils/tool-detection.d.ts +18 -0
  163. package/dist/utils/tool-detection.js +110 -0
  164. package/dist/web/app.css +14 -9
  165. package/package.json +7 -4
  166. package/template/QUICKSTART.md +299 -144
  167. package/template/README.md +928 -349
  168. package/template/TOOL_EXAMPLES.md +655 -0
  169. package/template/package-lock.json +5 -5
  170. package/template/package.json +1 -1
  171. package/template/src/index.ts +147 -207
  172. package/template/src/tools/BasketTool.ts +128 -0
  173. package/template/src/tools/CustomDataTool.ts +7 -13
  174. package/template/src/tools/OrderTool.ts +54 -0
  175. package/template/src/tools/PaymentTool.ts +1 -1
  176. package/template/src/tools/ProductsTool.ts +56 -118
  177. package/template/src/tools/UserDataTool.ts +4 -26
  178. package/dist/common/config.d.ts +0 -5
  179. package/dist/common/config.js +0 -5
  180. package/dist/custom-data-api.d.ts +0 -72
  181. package/dist/custom-data-api.js +0 -174
  182. package/dist/product-api.d.ts +0 -189
  183. package/dist/product-api.js +0 -141
  184. package/dist/services/api.d.ts +0 -549
  185. package/dist/services/api.js +0 -596
  186. package/dist/skill.d.ts +0 -50
  187. package/dist/types.d.ts +0 -1
  188. package/dist/types.js +0 -2
  189. package/dist/user-data-api.d.ts +0 -39
  190. package/dist/user-data-api.js +0 -50
  191. package/template/API.md +0 -604
  192. package/template/DEVELOPER.md +0 -771
  193. package/template/lua.skill.yaml +0 -7
@@ -1,9 +1,25 @@
1
+ /**
2
+ * Basket Interfaces
3
+ * Shopping basket management and operations
4
+ */
5
+ /**
6
+ * Basket status enumeration.
7
+ * Represents the lifecycle states of a shopping basket.
8
+ */
1
9
  export declare enum BasketStatus {
10
+ /** Basket is active and can be modified */
2
11
  ACTIVE = "active",
12
+ /** Basket has been checked out (converted to order) */
3
13
  CHECKED_OUT = "checked_out",
14
+ /** Basket was abandoned by the user */
4
15
  ABANDONED = "abandoned",
16
+ /** Basket has expired (TTL exceeded) */
5
17
  EXPIRED = "expired"
6
18
  }
19
+ /**
20
+ * Item in a basket.
21
+ * Represents a single product or service in the basket.
22
+ */
7
23
  export interface BasketItem {
8
24
  id: string;
9
25
  price: number;
@@ -12,17 +28,29 @@ export interface BasketItem {
12
28
  addedAt?: string;
13
29
  [key: string]: any;
14
30
  }
31
+ /**
32
+ * Basket data container.
33
+ * Contains the actual basket contents and metadata.
34
+ */
15
35
  export interface BasketData {
16
36
  currency: string;
17
37
  metadata?: any;
18
38
  items: BasketItem[];
19
39
  createdAt: string;
20
40
  }
41
+ /**
42
+ * Common basket properties.
43
+ * Calculated/derived properties maintained by the system.
44
+ */
21
45
  export interface BasketCommon {
22
46
  status: BasketStatus;
23
47
  totalAmount: string | number;
24
48
  itemCount: number;
25
49
  }
50
+ /**
51
+ * Complete basket entity.
52
+ * Full basket object as stored in the database.
53
+ */
26
54
  export interface Basket {
27
55
  id: string;
28
56
  userId: string;
@@ -33,43 +61,75 @@ export interface Basket {
33
61
  updatedAt: string;
34
62
  __v: number;
35
63
  }
64
+ /**
65
+ * Request to create a new basket.
66
+ */
36
67
  export interface CreateBasketRequest {
37
68
  currency: string;
38
69
  metadata?: any;
39
70
  }
71
+ /**
72
+ * Response from basket creation.
73
+ */
40
74
  export interface CreateBasketResponse {
41
75
  success: boolean;
42
76
  message: string;
43
77
  data?: Basket;
44
78
  }
79
+ /**
80
+ * Response from get baskets API.
81
+ */
45
82
  export interface GetBasketsResponse {
46
83
  success: boolean;
47
84
  message: string;
48
85
  data?: Basket[];
49
86
  }
87
+ /**
88
+ * Request to add an item to a basket.
89
+ */
50
90
  export interface AddItemToBasketRequest {
51
91
  id: string;
52
92
  price: number;
53
93
  quantity: number;
54
94
  [key: string]: any;
55
95
  }
96
+ /**
97
+ * Response from adding item to basket.
98
+ */
56
99
  export interface AddItemToBasketResponse {
57
100
  success: boolean;
58
101
  message: string;
59
102
  data?: Basket;
60
103
  }
104
+ /**
105
+ * Response from removing item from basket.
106
+ */
61
107
  export interface RemoveItemFromBasketResponse {
62
108
  success: boolean;
63
109
  message: string;
64
110
  data?: Basket;
65
111
  }
112
+ /**
113
+ * Response from clearing basket.
114
+ */
66
115
  export interface ClearBasketResponse {
67
116
  success: boolean;
68
117
  message: string;
69
118
  data?: Basket;
70
119
  }
120
+ /**
121
+ * Response from updating basket status.
122
+ */
71
123
  export interface UpdateBasketStatusResponse {
72
124
  success: boolean;
73
125
  message: string;
74
126
  data?: Basket;
75
127
  }
128
+ /**
129
+ * Response from updating basket metadata.
130
+ */
131
+ export interface UpdateBasketMetadataResponse {
132
+ success: boolean;
133
+ message: string;
134
+ data?: Basket;
135
+ }
@@ -1,7 +1,19 @@
1
+ /**
2
+ * Basket Interfaces
3
+ * Shopping basket management and operations
4
+ */
5
+ /**
6
+ * Basket status enumeration.
7
+ * Represents the lifecycle states of a shopping basket.
8
+ */
1
9
  export var BasketStatus;
2
10
  (function (BasketStatus) {
11
+ /** Basket is active and can be modified */
3
12
  BasketStatus["ACTIVE"] = "active";
13
+ /** Basket has been checked out (converted to order) */
4
14
  BasketStatus["CHECKED_OUT"] = "checked_out";
15
+ /** Basket was abandoned by the user */
5
16
  BasketStatus["ABANDONED"] = "abandoned";
17
+ /** Basket has expired (TTL exceeded) */
6
18
  BasketStatus["EXPIRED"] = "expired";
7
19
  })(BasketStatus || (BasketStatus = {}));
@@ -1,17 +1,61 @@
1
+ /**
2
+ * Chat Interfaces
3
+ * Chat API structures for agent conversations
4
+ */
5
+ /**
6
+ * Chat message structure.
7
+ * Currently only supports text messages.
8
+ */
1
9
  export interface ChatMessage {
2
10
  type: 'text';
3
11
  text: string;
4
12
  }
13
+ /**
14
+ * Skill override for testing specific skill versions.
15
+ * Used in dev mode to override production skills with sandbox versions.
16
+ */
17
+ export interface SkillOverride {
18
+ skillId: string;
19
+ sandboxId: string;
20
+ }
21
+ /**
22
+ * Chat request payload.
23
+ * Sent to the chat API to start or continue a conversation.
24
+ */
5
25
  export interface ChatRequest {
6
26
  messages: ChatMessage[];
7
27
  navigate: boolean;
8
- skillOverride: Array<{
9
- skillId: string;
10
- sandboxId: string;
11
- }>;
28
+ skillOverride: SkillOverride[];
29
+ personaOverride?: string;
12
30
  }
31
+ /**
32
+ * Chat response from API.
33
+ * Contains the agent's response and metadata.
34
+ */
13
35
  export interface ChatResponse {
14
36
  success: boolean;
15
37
  text?: string;
16
38
  error?: string;
17
39
  }
40
+ /**
41
+ * Detailed chat response with full conversation context.
42
+ * Used in dev mode for detailed debugging.
43
+ */
44
+ export interface DetailedChatResponse {
45
+ text: string;
46
+ files: any[];
47
+ reasoningDetails: any[];
48
+ toolCalls: any[];
49
+ toolResults: any[];
50
+ finishReason: string;
51
+ usage: {
52
+ promptTokens: number;
53
+ completionTokens: number;
54
+ totalTokens: number;
55
+ };
56
+ warnings: any[];
57
+ request: any;
58
+ response: any;
59
+ steps: any[];
60
+ sources: any[];
61
+ }
@@ -1 +1,5 @@
1
+ /**
2
+ * Chat Interfaces
3
+ * Chat API structures for agent conversations
4
+ */
1
5
  export {};
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Common Interfaces
3
+ * Shared interfaces used across multiple modules
4
+ *
5
+ * This file contains base interfaces that are used throughout the application,
6
+ * particularly standard API response patterns.
7
+ */
8
+ /**
9
+ * Standard API response wrapper.
10
+ * Used by all API endpoints to provide consistent response structure.
11
+ *
12
+ * @template T - Type of data returned on success
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const response: ApiResponse<User> = await api.getUser();
17
+ * if (response.success) {
18
+ * console.log(response.data); // User object
19
+ * } else {
20
+ * console.error(response.error?.message);
21
+ * }
22
+ * ```
23
+ */
24
+ export interface ApiResponse<T = any> {
25
+ success: boolean;
26
+ message?: string;
27
+ data?: T;
28
+ error?: {
29
+ message: string;
30
+ statusCode?: number;
31
+ };
32
+ }
33
+ /**
34
+ * Standard pagination information for list responses.
35
+ * Used by APIs that return paginated results.
36
+ */
37
+ export interface Pagination {
38
+ currentPage: number;
39
+ totalPages: number;
40
+ totalCount: number;
41
+ limit: number;
42
+ hasNextPage: boolean;
43
+ hasPrevPage: boolean;
44
+ nextPage: number | null;
45
+ prevPage: number | null;
46
+ }
47
+ /**
48
+ * Base interface for entities with timestamps.
49
+ * Most database entities include these fields.
50
+ */
51
+ export interface TimestampedEntity {
52
+ createdAt: string | number;
53
+ updatedAt: string | number;
54
+ __v?: number;
55
+ }
56
+ /**
57
+ * Base interface for entities with string IDs.
58
+ */
59
+ export interface IdentifiedEntity {
60
+ id: string;
61
+ _id?: string;
62
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Common Interfaces
3
+ * Shared interfaces used across multiple modules
4
+ *
5
+ * This file contains base interfaces that are used throughout the application,
6
+ * particularly standard API response patterns.
7
+ */
8
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Interface definitions for compile command
3
+ */
4
+ export interface ToolInfo {
5
+ name: string;
6
+ className: string;
7
+ filePath: string;
8
+ description?: string;
9
+ inputSchema?: any;
10
+ executeCode?: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interface definitions for compile command
3
+ */
4
+ export {};
@@ -1,52 +1,82 @@
1
- export interface CustomDataEntry {
1
+ /**
2
+ * Custom Data Interfaces
3
+ * Custom data collections with vector search capabilities
4
+ */
5
+ import { Pagination, TimestampedEntity, IdentifiedEntity } from './common.js';
6
+ /**
7
+ * Custom data entry.
8
+ * Represents a single entry in a custom data collection.
9
+ *
10
+ * Features:
11
+ * - Flexible schema (data can be any JSON object)
12
+ * - Vector search via searchText
13
+ * - Automatic timestamps
14
+ */
15
+ export interface CustomDataEntry extends IdentifiedEntity, TimestampedEntity {
2
16
  id: string;
3
17
  data: any;
4
18
  createdAt: number;
5
19
  updatedAt: number;
6
20
  searchText?: string;
7
21
  }
22
+ /**
23
+ * Request to create a new custom data entry.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const request: CreateCustomDataRequest = {
28
+ * data: { name: 'John Doe', email: 'john@example.com' },
29
+ * searchText: 'John Doe john@example.com'
30
+ * };
31
+ * ```
32
+ */
8
33
  export interface CreateCustomDataRequest {
9
34
  data: any;
10
35
  searchText?: string;
11
36
  }
12
- export interface CreateCustomDataResponse {
13
- id: string;
14
- data: any;
15
- createdAt: number;
16
- updatedAt: number;
17
- searchText?: string;
37
+ /**
38
+ * Response from creating custom data entry.
39
+ * Includes optional similarity score for search results.
40
+ */
41
+ export interface CreateCustomDataResponse extends CustomDataEntry {
18
42
  score?: number;
19
43
  }
44
+ /**
45
+ * Response from getting custom data entries.
46
+ * Includes pagination information.
47
+ */
20
48
  export interface GetCustomDataResponse {
21
49
  data: CustomDataEntry[];
22
- pagination: {
23
- currentPage: number;
24
- totalPages: number;
25
- totalCount: number;
26
- limit: number;
27
- hasNextPage: boolean;
28
- hasPrevPage: boolean;
29
- };
50
+ pagination: Pagination;
30
51
  }
52
+ /**
53
+ * Request to update a custom data entry.
54
+ */
31
55
  export interface UpdateCustomDataRequest {
32
56
  data: any;
33
57
  searchText?: string;
34
58
  }
59
+ /**
60
+ * Response from updating custom data entry.
61
+ */
35
62
  export interface UpdateCustomDataResponse {
36
63
  status: string;
37
64
  message: string;
38
65
  }
66
+ /**
67
+ * Response from searching custom data.
68
+ * Includes similarity scores for each result.
69
+ */
39
70
  export interface SearchCustomDataResponse {
40
71
  data: Array<CustomDataEntry & {
41
72
  score: number;
42
73
  }>;
43
74
  count: number;
44
75
  }
76
+ /**
77
+ * Response from deleting custom data entry.
78
+ */
45
79
  export interface DeleteCustomDataResponse {
46
80
  status: string;
47
81
  message: string;
48
82
  }
49
- export interface UpdateBasketMetadataResponse {
50
- status: string;
51
- message: string;
52
- }
@@ -1 +1,5 @@
1
+ /**
2
+ * Custom Data Interfaces
3
+ * Custom data collections with vector search capabilities
4
+ */
1
5
  export {};
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Interface definitions for deploy command
3
+ */
4
+ /**
5
+ * Version information from API
6
+ */
7
+ export interface VersionInfo {
8
+ version: string;
9
+ createdDate: string;
10
+ createdBy: string;
11
+ isCurrent: boolean;
12
+ createdByEmail: string;
13
+ createdByFullName: string;
14
+ }
15
+ /**
16
+ * Response from versions API endpoint
17
+ */
18
+ export interface VersionsResponse {
19
+ versions: VersionInfo[];
20
+ }
21
+ /**
22
+ * Response from publish API endpoint
23
+ */
24
+ export interface PublishResponse {
25
+ message: string;
26
+ skillId: string;
27
+ activeVersionId: string;
28
+ publishedAt: string;
29
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interface definitions for deploy command
3
+ */
4
+ export {};
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Dev Mode Interfaces
3
+ * Development mode specific structures
4
+ */
5
+ import { ChatMessage, ChatRequest, DetailedChatResponse, SkillOverride } from './chat.js';
6
+ export { ChatMessage, ChatRequest, SkillOverride };
7
+ /**
8
+ * Response from dev version API endpoint.
9
+ * Used when pushing skills to sandbox environment.
10
+ */
11
+ export interface DevVersionResponse {
12
+ success: boolean;
13
+ data?: {
14
+ message: string;
15
+ skillId: string;
16
+ version: string;
17
+ publishedAt: string;
18
+ };
19
+ error?: {
20
+ message: string;
21
+ error: string;
22
+ statusCode: number;
23
+ };
24
+ }
25
+ /**
26
+ * Response from update dev version API endpoint.
27
+ * Used when updating existing sandbox versions.
28
+ */
29
+ export interface UpdateDevVersionResponse {
30
+ success: boolean;
31
+ data?: {
32
+ message: string;
33
+ skillId: string;
34
+ version: string;
35
+ updatedAt: string;
36
+ };
37
+ error?: {
38
+ message: string;
39
+ error: string;
40
+ statusCode: number;
41
+ };
42
+ }
43
+ /**
44
+ * Chat response type alias.
45
+ * Re-exported from chat.ts for backward compatibility.
46
+ */
47
+ export type ChatResponse = DetailedChatResponse;
48
+ /**
49
+ * Map of skill names to their sandbox IDs.
50
+ */
51
+ export interface SandboxIdsMap {
52
+ [skillName: string]: string;
53
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Dev Mode Interfaces
3
+ * Development mode specific structures
4
+ */
5
+ export {};
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Interface definitions for init command
3
+ */
4
+ /**
5
+ * Agent choice options
6
+ */
7
+ export type AgentChoiceType = 'existing' | 'create';
8
+ /**
9
+ * Selected agent information
10
+ */
11
+ export interface SelectedAgent {
12
+ agentId: string;
13
+ name: string;
14
+ }
15
+ /**
16
+ * Selected organization information
17
+ */
18
+ export interface SelectedOrg {
19
+ id: string;
20
+ registeredName?: string;
21
+ name?: string;
22
+ agents?: any[];
23
+ }
24
+ /**
25
+ * Organization from API response
26
+ */
27
+ export interface OrganizationData {
28
+ id: string;
29
+ registeredName?: string;
30
+ name?: string;
31
+ agents: any[];
32
+ }
33
+ /**
34
+ * Persona information for new agents
35
+ */
36
+ export interface PersonaInfo {
37
+ agentName: string;
38
+ businessType: string;
39
+ brandPersonality: string;
40
+ brandTraits: string;
41
+ }
42
+ /**
43
+ * Business configuration options
44
+ */
45
+ export interface BusinessConfig {
46
+ businessName: string;
47
+ agentName: string;
48
+ businessType: string;
49
+ brandPersonality: string;
50
+ brandTraits: string;
51
+ }
52
+ /**
53
+ * Agent creation result
54
+ */
55
+ export interface AgentCreationResult {
56
+ agent: SelectedAgent;
57
+ org: SelectedOrg;
58
+ persona?: string;
59
+ welcomeMessage?: string;
60
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interface definitions for init command
3
+ */
4
+ export {};
@@ -1,10 +1,26 @@
1
+ /**
2
+ * Order Interfaces
3
+ * Order management and fulfillment
4
+ */
1
5
  import { BasketItem } from "./baskets.js";
6
+ /**
7
+ * Order status enumeration.
8
+ * Represents the lifecycle states of an order.
9
+ */
2
10
  export declare enum OrderStatus {
11
+ /** Order created but not yet confirmed */
3
12
  PENDING = "pending",
13
+ /** Order confirmed and being processed */
4
14
  CONFIRMED = "confirmed",
15
+ /** Order completed and delivered */
5
16
  FULFILLED = "fulfilled",
17
+ /** Order cancelled */
6
18
  CANCELLED = "cancelled"
7
19
  }
20
+ /**
21
+ * Order data container.
22
+ * Contains the order details, items, and metadata.
23
+ */
8
24
  export interface OrderData {
9
25
  currency: string;
10
26
  items: BasketItem[];
@@ -14,12 +30,20 @@ export interface OrderData {
14
30
  orderId: string;
15
31
  [key: string]: any;
16
32
  }
33
+ /**
34
+ * Common order properties.
35
+ * Calculated/derived properties maintained by the system.
36
+ */
17
37
  export interface OrderCommon {
18
38
  status: 'pending' | 'confirmed' | 'fulfilled' | 'cancelled';
19
39
  totalAmount: string | number;
20
40
  currency: string;
21
41
  itemCount: number;
22
42
  }
43
+ /**
44
+ * Complete order entity.
45
+ * Full order object as stored in the database.
46
+ */
23
47
  export interface OrderResponse {
24
48
  id: string;
25
49
  userId: string;
@@ -31,22 +55,35 @@ export interface OrderResponse {
31
55
  updatedAt: string;
32
56
  __v: number;
33
57
  }
58
+ /**
59
+ * Request to create a new order.
60
+ * Typically created from a basket.
61
+ */
34
62
  export interface CreateOrderRequest {
35
63
  basketId: string;
36
64
  data: {
37
65
  [key: string]: any;
38
66
  };
39
67
  }
68
+ /**
69
+ * Response from order creation.
70
+ */
40
71
  export interface CreateOrderResponse {
41
72
  success: boolean;
42
73
  message: string;
43
74
  data: OrderResponse;
44
75
  }
76
+ /**
77
+ * Response from updating order status.
78
+ */
45
79
  export interface UpdateOrderStatusResponse {
46
80
  success: boolean;
47
81
  message: string;
48
82
  data: OrderResponse;
49
83
  }
84
+ /**
85
+ * Response from getting user orders.
86
+ */
50
87
  export interface GetUserOrdersResponse {
51
88
  success: boolean;
52
89
  message: string;
@@ -1,7 +1,19 @@
1
+ /**
2
+ * Order Interfaces
3
+ * Order management and fulfillment
4
+ */
5
+ /**
6
+ * Order status enumeration.
7
+ * Represents the lifecycle states of an order.
8
+ */
1
9
  export var OrderStatus;
2
10
  (function (OrderStatus) {
11
+ /** Order created but not yet confirmed */
3
12
  OrderStatus["PENDING"] = "pending";
13
+ /** Order confirmed and being processed */
4
14
  OrderStatus["CONFIRMED"] = "confirmed";
15
+ /** Order completed and delivered */
5
16
  OrderStatus["FULFILLED"] = "fulfilled";
17
+ /** Order cancelled */
6
18
  OrderStatus["CANCELLED"] = "cancelled";
7
19
  })(OrderStatus || (OrderStatus = {}));