@dominusnode/mastra-tools 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @dominusnode/mastra-tools
2
2
 
3
- DomiNode rotating proxy tools for [Mastra AI](https://mastra.ai) agents.
3
+ Dominus Node rotating proxy tools for [Mastra AI](https://mastra.ai) agents.
4
4
 
5
- Provides 23 tools for interacting with DomiNode's rotating proxy-as-a-service platform from Mastra AI workflows and agents.
5
+ Provides 23 tools for interacting with Dominus Node's rotating proxy-as-a-service platform from Mastra AI workflows and agents.
6
6
 
7
7
  ## Installation
8
8
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @dominusnode/mastra-tools
3
3
  *
4
- * DomiNode rotating proxy tools for Mastra AI agents.
4
+ * Dominus Node rotating proxy tools for Mastra AI agents.
5
5
  * Provides 23 tools for proxy fetching, wallet management,
6
6
  * team collaboration, and payment operations.
7
7
  *
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @dominusnode/mastra-tools
4
4
  *
5
- * DomiNode rotating proxy tools for Mastra AI agents.
5
+ * Dominus Node rotating proxy tools for Mastra AI agents.
6
6
  * Provides 23 tools for proxy fetching, wallet management,
7
7
  * team collaboration, and payment operations.
8
8
  *
package/dist/toolkit.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * DomiNode Mastra AI Toolkit
2
+ * Dominus Node Mastra AI Toolkit
3
3
  *
4
- * Implements 24 tools for interacting with DomiNode's rotating proxy service
4
+ * Implements 24 tools for interacting with Dominus Node's rotating proxy service
5
5
  * from Mastra AI agents and workflows.
6
6
  *
7
7
  * Uses createTool() from @mastra/core/tools with Zod schemas.
@@ -17,13 +17,13 @@
17
17
  * - Redirect following disabled
18
18
  */
19
19
  export interface DominusNodeToolkitConfig {
20
- /** DomiNode API key (dn_live_... or dn_test_...). Falls back to DOMINUSNODE_API_KEY env var. */
20
+ /** Dominus Node API key (dn_live_... or dn_test_...). Falls back to DOMINUSNODE_API_KEY env var. */
21
21
  apiKey?: string;
22
- /** Base URL of the DomiNode REST API. */
22
+ /** Base URL of the Dominus Node REST API. */
23
23
  baseUrl?: string;
24
- /** Hostname of the DomiNode proxy gateway. */
24
+ /** Hostname of the Dominus Node proxy gateway. */
25
25
  proxyHost?: string;
26
- /** Port of the DomiNode proxy gateway. */
26
+ /** Port of the Dominus Node proxy gateway. */
27
27
  proxyPort?: number;
28
28
  }
29
29
  /** Remove any dn_live_* or dn_test_* tokens from error messages. */
package/dist/toolkit.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  /**
3
- * DomiNode Mastra AI Toolkit
3
+ * Dominus Node Mastra AI Toolkit
4
4
  *
5
- * Implements 24 tools for interacting with DomiNode's rotating proxy service
5
+ * Implements 24 tools for interacting with Dominus Node's rotating proxy service
6
6
  * from Mastra AI agents and workflows.
7
7
  *
8
8
  * Uses createTool() from @mastra/core/tools with Zod schemas.
@@ -399,7 +399,7 @@ class DominusNodeToolkit {
399
399
  getApiKey() {
400
400
  if (!this.apiKey || typeof this.apiKey !== "string" || this.apiKey.trim().length === 0) {
401
401
  throw new Error("DOMINUSNODE_API_KEY is required. " +
402
- 'Set it to your DomiNode API key (starts with "dn_live_" or "dn_test_").');
402
+ 'Set it to your Dominus Node API key (starts with "dn_live_" or "dn_test_").');
403
403
  }
404
404
  const trimmed = this.apiKey.trim();
405
405
  if (!trimmed.startsWith("dn_live_") && !trimmed.startsWith("dn_test_")) {
@@ -431,7 +431,7 @@ class DominusNodeToolkit {
431
431
  return this.cachedJwt;
432
432
  }
433
433
  // -----------------------------------------------------------------------
434
- // HTTP client for DomiNode API
434
+ // HTTP client for Dominus Node API
435
435
  // -----------------------------------------------------------------------
436
436
  async apiRequest(method, path, body) {
437
437
  const jwt = await this.ensureAuth();
@@ -850,7 +850,7 @@ class DominusNodeToolkit {
850
850
  // 1. proxied_fetch
851
851
  (0, tools_1.createTool)({
852
852
  id: "dominusnode_proxied_fetch",
853
- description: "Fetch a URL through DomiNode's rotating proxy network with geo-targeting. " +
853
+ description: "Fetch a URL through Dominus Node's rotating proxy network with geo-targeting. " +
854
854
  "Supports datacenter ($3/GB) and residential ($5/GB) pools. " +
855
855
  "Only GET, HEAD, and OPTIONS methods are allowed.",
856
856
  inputSchema: zod_1.z.object({
@@ -879,7 +879,7 @@ class DominusNodeToolkit {
879
879
  // 2. check_balance
880
880
  (0, tools_1.createTool)({
881
881
  id: "dominusnode_check_balance",
882
- description: "Check your DomiNode wallet balance and estimated remaining bandwidth at current pricing. " +
882
+ description: "Check your Dominus Node wallet balance and estimated remaining bandwidth at current pricing. " +
883
883
  "Shows balance in USD, datacenter GB remaining ($3/GB), and residential GB remaining ($5/GB).",
884
884
  inputSchema: zod_1.z.object({}),
885
885
  outputSchema: zod_1.z.object({
@@ -1326,7 +1326,7 @@ class DominusNodeToolkit {
1326
1326
  // 22. topup_paypal
1327
1327
  (0, tools_1.createTool)({
1328
1328
  id: "dominusnode_topup_paypal",
1329
- description: "Top up your DomiNode wallet balance via PayPal. Creates a PayPal order and returns " +
1329
+ description: "Top up your Dominus Node wallet balance via PayPal. Creates a PayPal order and returns " +
1330
1330
  "an approval URL to complete payment. Minimum $5 (500 cents), maximum $1,000 (100000 cents).",
1331
1331
  inputSchema: zod_1.z.object({
1332
1332
  amountCents: zod_1.z.number().int().min(500).max(100000)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dominusnode/mastra-tools",
3
- "version": "1.0.0",
4
- "description": "DomiNode rotating proxy tools for Mastra AI",
3
+ "version": "1.0.1",
4
+ "description": "Dominus Node rotating proxy tools for Mastra AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {