@dainprotocol/cli 1.0.29 → 1.0.30
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/commands/deploy.js
CHANGED
|
@@ -53,6 +53,7 @@ function deploy(options) {
|
|
|
53
53
|
switch (_a.label) {
|
|
54
54
|
case 0:
|
|
55
55
|
config = (0, utils_1.getDainConfig)(options.config);
|
|
56
|
+
// disable for now only availible for internal testing for now
|
|
56
57
|
if (config.runtime !== 'workers') {
|
|
57
58
|
(0, utils_1.logError)("Deployment is only supported for 'workers' runtime.");
|
|
58
59
|
process.exit(1);
|
|
@@ -30,7 +30,7 @@ const getWeatherConfig: ToolConfig = {
|
|
|
30
30
|
pricing: { pricePerUse: 0, currency: "USD" },
|
|
31
31
|
handler: async ({ latitude, longitude }, agentInfo) => {
|
|
32
32
|
console.log(
|
|
33
|
-
`Agent ${agentInfo.
|
|
33
|
+
`User / Agent ${agentInfo.id} requested weather at ${latitude},${longitude}`
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
const response = await axios.get(
|
|
@@ -75,7 +75,7 @@ const getWeatherForecastConfig: ToolConfig = {
|
|
|
75
75
|
pricing: { pricePerUse: 0, currency: "USD" },
|
|
76
76
|
handler: async ({ latitude, longitude }, agentInfo) => {
|
|
77
77
|
console.log(
|
|
78
|
-
`Agent ${agentInfo.
|
|
78
|
+
`User / Agent ${agentInfo.id} requested forecast at ${latitude},${longitude}`
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
const response = await axios.get(
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ const getWeatherConfig: ToolConfig = {
|
|
|
30
30
|
pricing: { pricePerUse: 0, currency: "USD" },
|
|
31
31
|
handler: async ({ latitude, longitude }, agentInfo) => {
|
|
32
32
|
console.log(
|
|
33
|
-
`Agent ${agentInfo.
|
|
33
|
+
`User / Agent ${agentInfo.id} requested weather at ${latitude},${longitude}`
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
const response = await axios.get(
|
|
@@ -75,7 +75,7 @@ const getWeatherForecastConfig: ToolConfig = {
|
|
|
75
75
|
pricing: { pricePerUse: 0, currency: "USD" },
|
|
76
76
|
handler: async ({ latitude, longitude }, agentInfo) => {
|
|
77
77
|
console.log(
|
|
78
|
-
`Agent ${agentInfo.
|
|
78
|
+
`User / Agent ${agentInfo.id} requested forecast at ${latitude},${longitude}`
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
const response = await axios.get(
|