@t2000/engine 0.38.0 → 0.40.0
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 +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2005,7 +2005,7 @@ var portfolioAnalysisTool = buildTool({
|
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
let weekChange;
|
|
2008
|
-
const apiUrl = context.env?.
|
|
2008
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2009
2009
|
if (apiUrl && address) {
|
|
2010
2010
|
try {
|
|
2011
2011
|
const histRes = await fetch(
|
|
@@ -2240,7 +2240,7 @@ var createPaymentLinkTool = buildTool({
|
|
|
2240
2240
|
},
|
|
2241
2241
|
isReadOnly: true,
|
|
2242
2242
|
async call(input, context) {
|
|
2243
|
-
const apiUrl = context.env?.
|
|
2243
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2244
2244
|
if (!apiUrl || !context.walletAddress) {
|
|
2245
2245
|
return { data: null, displayText: "Payment link creation is not available." };
|
|
2246
2246
|
}
|
|
@@ -2273,7 +2273,7 @@ var listPaymentLinksTool = buildTool({
|
|
|
2273
2273
|
jsonSchema: { type: "object", properties: {}, required: [] },
|
|
2274
2274
|
isReadOnly: true,
|
|
2275
2275
|
async call(_input, context) {
|
|
2276
|
-
const apiUrl = context.env?.
|
|
2276
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2277
2277
|
if (!apiUrl || !context.walletAddress) {
|
|
2278
2278
|
return { data: { links: [] }, displayText: "No payment links found." };
|
|
2279
2279
|
}
|
|
@@ -2325,7 +2325,7 @@ var createInvoiceTool = buildTool({
|
|
|
2325
2325
|
},
|
|
2326
2326
|
isReadOnly: true,
|
|
2327
2327
|
async call(input, context) {
|
|
2328
|
-
const apiUrl = context.env?.
|
|
2328
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2329
2329
|
if (!apiUrl || !context.walletAddress) {
|
|
2330
2330
|
return { data: null, displayText: "Invoice creation is not available." };
|
|
2331
2331
|
}
|
|
@@ -2366,7 +2366,7 @@ var cancelPaymentLinkTool = buildTool({
|
|
|
2366
2366
|
},
|
|
2367
2367
|
isReadOnly: true,
|
|
2368
2368
|
async call(input, context) {
|
|
2369
|
-
const apiUrl = context.env?.
|
|
2369
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2370
2370
|
if (!apiUrl || !context.walletAddress) {
|
|
2371
2371
|
return { data: null, displayText: "Payment link cancellation is not available." };
|
|
2372
2372
|
}
|
|
@@ -2406,7 +2406,7 @@ var cancelInvoiceTool = buildTool({
|
|
|
2406
2406
|
},
|
|
2407
2407
|
isReadOnly: true,
|
|
2408
2408
|
async call(input, context) {
|
|
2409
|
-
const apiUrl = context.env?.
|
|
2409
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2410
2410
|
if (!apiUrl || !context.walletAddress) {
|
|
2411
2411
|
return { data: null, displayText: "Invoice cancellation is not available." };
|
|
2412
2412
|
}
|
|
@@ -2438,7 +2438,7 @@ var listInvoicesTool = buildTool({
|
|
|
2438
2438
|
jsonSchema: { type: "object", properties: {}, required: [] },
|
|
2439
2439
|
isReadOnly: true,
|
|
2440
2440
|
async call(_input, context) {
|
|
2441
|
-
const apiUrl = context.env?.
|
|
2441
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2442
2442
|
if (!apiUrl || !context.walletAddress) {
|
|
2443
2443
|
return { data: { invoices: [] }, displayText: "No invoices found." };
|
|
2444
2444
|
}
|
|
@@ -2696,7 +2696,7 @@ var spendingAnalyticsTool = buildTool({
|
|
|
2696
2696
|
isReadOnly: true,
|
|
2697
2697
|
async call(input, context) {
|
|
2698
2698
|
const period = input.period ?? "month";
|
|
2699
|
-
const apiUrl = context.env?.
|
|
2699
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2700
2700
|
const address = context.walletAddress;
|
|
2701
2701
|
const empty = { period, totalSpent: 0, requestCount: 0, serviceCount: 0, byService: [] };
|
|
2702
2702
|
if (!apiUrl || !address) {
|
|
@@ -2732,7 +2732,7 @@ var yieldSummaryTool = buildTool({
|
|
|
2732
2732
|
jsonSchema: { type: "object", properties: {}, required: [] },
|
|
2733
2733
|
isReadOnly: true,
|
|
2734
2734
|
async call(_input, context) {
|
|
2735
|
-
const apiUrl = context.env?.
|
|
2735
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2736
2736
|
const address = context.walletAddress;
|
|
2737
2737
|
const empty = {
|
|
2738
2738
|
today: 0,
|
|
@@ -2782,7 +2782,7 @@ var activitySummaryTool = buildTool({
|
|
|
2782
2782
|
isReadOnly: true,
|
|
2783
2783
|
async call(input, context) {
|
|
2784
2784
|
const period = input.period ?? "month";
|
|
2785
|
-
const apiUrl = context.env?.
|
|
2785
|
+
const apiUrl = context.env?.AUDRIC_INTERNAL_API_URL;
|
|
2786
2786
|
const address = context.walletAddress;
|
|
2787
2787
|
const empty = {
|
|
2788
2788
|
period,
|