@kapishdima/ai-ledger 0.0.3 → 0.0.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.
- package/dist/plugin.js +5 -4
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -3769,11 +3769,12 @@ var plugin_default = async (input) => {
|
|
|
3769
3769
|
created_at: new Date().toISOString(),
|
|
3770
3770
|
synced: 0
|
|
3771
3771
|
});
|
|
3772
|
-
input.client.
|
|
3772
|
+
input.client.tui.showToast({
|
|
3773
3773
|
body: {
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3774
|
+
title: `ai-ledger \xB7 ${msg.providerID}`,
|
|
3775
|
+
message: `-$${msg.cost.toFixed(4)} | balance: $${newBalance.toFixed(2)}`,
|
|
3776
|
+
variant: newBalance < 0 ? "warning" : "info",
|
|
3777
|
+
duration: 4000
|
|
3777
3778
|
}
|
|
3778
3779
|
});
|
|
3779
3780
|
}
|