@t2000/engine 1.13.0 → 1.13.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.
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5506,7 +5506,8 @@ function describeAction(tool, call) {
|
|
|
5506
5506
|
const input = call.input;
|
|
5507
5507
|
switch (tool.name) {
|
|
5508
5508
|
case "save_deposit": {
|
|
5509
|
-
|
|
5509
|
+
const sAsset = input.asset ?? "USDC";
|
|
5510
|
+
return `Save ${input.amount} ${sAsset} into lending`;
|
|
5510
5511
|
}
|
|
5511
5512
|
case "withdraw": {
|
|
5512
5513
|
const wAsset = input.asset ?? "";
|
|
@@ -5514,10 +5515,14 @@ function describeAction(tool, call) {
|
|
|
5514
5515
|
}
|
|
5515
5516
|
case "send_transfer":
|
|
5516
5517
|
return `Send $${input.amount} to ${input.to}`;
|
|
5517
|
-
case "borrow":
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5518
|
+
case "borrow": {
|
|
5519
|
+
const bAsset = input.asset ?? "USDC";
|
|
5520
|
+
return `Borrow $${input.amount} ${bAsset} against collateral`;
|
|
5521
|
+
}
|
|
5522
|
+
case "repay_debt": {
|
|
5523
|
+
const rAsset = input.asset ?? "USDC";
|
|
5524
|
+
return `Repay $${input.amount} ${rAsset} of outstanding debt`;
|
|
5525
|
+
}
|
|
5521
5526
|
case "claim_rewards":
|
|
5522
5527
|
return "Claim all pending protocol rewards";
|
|
5523
5528
|
case "pay_api": {
|
|
@@ -6808,6 +6813,10 @@ function composeBundleFromToolResults(input) {
|
|
|
6808
6813
|
const consumer = input.pendingWrites[i];
|
|
6809
6814
|
if (shouldChainCoin(producer, consumer)) {
|
|
6810
6815
|
steps[i].inputCoinFromStep = i - 1;
|
|
6816
|
+
getTelemetrySink().counter("engine.bundle_chain_mode_set", {
|
|
6817
|
+
producer: producer.name,
|
|
6818
|
+
consumer: consumer.name
|
|
6819
|
+
});
|
|
6811
6820
|
}
|
|
6812
6821
|
}
|
|
6813
6822
|
const regenerateToolUseIds = input.readResults.filter((r) => REGENERATABLE_READ_TOOLS.has(r.toolName)).map((r) => r.toolUseId);
|