lua-cli 2.1.0-alpha.4 → 2.1.0-alpha.6
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/product-api.d.ts +36 -1
- package/package.json +1 -1
- package/template/lua.skill.yaml +5 -7
- package/template/package-lock.json +88 -2279
- package/template/package.json +1 -1
- package/template/src/index.ts +6 -1
- package/template/src/tools/ProductsTool.ts +56 -28
package/dist/product-api.d.ts
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
export interface Product {
|
|
2
|
+
id: string;
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface ProductsResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
data: Product[];
|
|
8
|
+
pagination: {
|
|
9
|
+
currentPage: number;
|
|
10
|
+
totalPages: number;
|
|
11
|
+
totalCount: number;
|
|
12
|
+
limit: number;
|
|
13
|
+
hasNextPage: boolean;
|
|
14
|
+
hasPrevPage: boolean;
|
|
15
|
+
nextPage: number | null;
|
|
16
|
+
prevPage: number | null;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface CreateProductResponse {
|
|
20
|
+
updated: boolean;
|
|
21
|
+
isNew: boolean;
|
|
22
|
+
product: Product;
|
|
23
|
+
}
|
|
24
|
+
export interface UpdateProductResponse {
|
|
25
|
+
updated: boolean;
|
|
26
|
+
isNew: boolean;
|
|
27
|
+
product: Product;
|
|
28
|
+
}
|
|
29
|
+
export interface DeleteProductResponse {
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface SearchProductsResponse {
|
|
33
|
+
success: boolean;
|
|
34
|
+
message: string;
|
|
35
|
+
data: Product[];
|
|
36
|
+
}
|
|
2
37
|
export declare class ProductAPI {
|
|
3
38
|
products: any;
|
|
4
39
|
constructor();
|
package/package.json
CHANGED
package/template/lua.skill.yaml
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
agent:
|
|
2
|
-
agentId:
|
|
3
|
-
orgId:
|
|
4
|
-
persona: Your name is Stefan always remember that
|
|
5
|
-
welcomeMessage: 'Hi, I am your AI assistant. How can I help you today?'
|
|
2
|
+
agentId: baseAgent_agent_1759165790010_cmu8t35ta
|
|
3
|
+
orgId: 845c77a8-88b9-4381-ba4a-fd7496ef1f57
|
|
6
4
|
skills:
|
|
7
5
|
- name: general-skill
|
|
8
6
|
version: 0.0.2
|
|
9
|
-
skillId:
|
|
7
|
+
skillId: 5d990e43-6204-43af-8246-67dedeb80c68
|
|
10
8
|
- name: user-data-skill
|
|
11
9
|
version: 0.0.1
|
|
12
|
-
skillId:
|
|
10
|
+
skillId: 457bb68a-a136-4671-9bb0-9263a262eb41
|
|
13
11
|
- name: eccomerce-skill
|
|
14
12
|
version: 0.0.1
|
|
15
|
-
skillId:
|
|
13
|
+
skillId: e1976320-2bdb-4622-bfde-fe20eabe8360
|