@t2000/engine 0.33.1 → 0.33.2
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/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3051,12 +3051,11 @@ var createScheduleTool = buildTool({
|
|
|
3051
3051
|
},
|
|
3052
3052
|
required: ["actionType", "amount", "schedule"]
|
|
3053
3053
|
},
|
|
3054
|
-
isReadOnly:
|
|
3055
|
-
permissionLevel: "confirm",
|
|
3054
|
+
isReadOnly: true,
|
|
3056
3055
|
async call(input, context) {
|
|
3057
3056
|
const { apiUrl, internalKey, address } = getApiConfig(context);
|
|
3058
3057
|
if (!apiUrl || !address) {
|
|
3059
|
-
return { data: null, displayText: "Scheduled actions are not available." };
|
|
3058
|
+
return { data: null, displayText: "Scheduled actions are not available \u2014 missing wallet or API configuration." };
|
|
3060
3059
|
}
|
|
3061
3060
|
let cronExpr;
|
|
3062
3061
|
try {
|
|
@@ -3152,8 +3151,7 @@ var cancelScheduleTool = buildTool({
|
|
|
3152
3151
|
},
|
|
3153
3152
|
required: ["scheduleId"]
|
|
3154
3153
|
},
|
|
3155
|
-
isReadOnly:
|
|
3156
|
-
permissionLevel: "confirm",
|
|
3154
|
+
isReadOnly: true,
|
|
3157
3155
|
async call(input, context) {
|
|
3158
3156
|
const { apiUrl, internalKey, address } = getApiConfig(context);
|
|
3159
3157
|
if (!apiUrl || !address) {
|
|
@@ -3505,7 +3503,9 @@ var READ_TOOLS = [
|
|
|
3505
3503
|
spendingAnalyticsTool,
|
|
3506
3504
|
yieldSummaryTool,
|
|
3507
3505
|
activitySummaryTool,
|
|
3508
|
-
listSchedulesTool
|
|
3506
|
+
listSchedulesTool,
|
|
3507
|
+
createScheduleTool,
|
|
3508
|
+
cancelScheduleTool
|
|
3509
3509
|
];
|
|
3510
3510
|
var WRITE_TOOLS = [
|
|
3511
3511
|
saveDepositTool,
|
|
@@ -3518,9 +3518,7 @@ var WRITE_TOOLS = [
|
|
|
3518
3518
|
swapExecuteTool,
|
|
3519
3519
|
voloStakeTool,
|
|
3520
3520
|
voloUnstakeTool,
|
|
3521
|
-
saveContactTool
|
|
3522
|
-
createScheduleTool,
|
|
3523
|
-
cancelScheduleTool
|
|
3521
|
+
saveContactTool
|
|
3524
3522
|
];
|
|
3525
3523
|
function getDefaultTools() {
|
|
3526
3524
|
return applyToolFlags([...READ_TOOLS, ...WRITE_TOOLS]);
|