moralis-cli 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
  3. package/src/cli.js +3 -0
package/README.md CHANGED
@@ -6,8 +6,6 @@ Use the Moralis API via Moralis CLI directly inside your AI agent 🤖 while kee
6
6
 
7
7
  Follow these steps to start using Moralis CLI with your AI agent.
8
8
 
9
- ## Getting Started
10
-
11
9
  Install:
12
10
 
13
11
  ```bash
@@ -32,6 +30,10 @@ Connect to AI
32
30
 
33
31
  Import the [@moralis-cli](.codex/skills/moralis-cli/SKILL.md) skill into your AI agent and start making Moralis API calls securely.
34
32
 
33
+ ```
34
+ › Please install this skill: https://raw.githubusercontent.com/MoralisWeb3/moralis-cli/refs/heads/main/.codex/skills/moralis-cli/SKILL.md
35
+ ```
36
+
35
37
  ## Examples
36
38
 
37
39
  Codex:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moralis-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Use Moralis API via Moralis CLI directly inside AI agents with secure API key handling and access to EVM and Solana blockchain data.",
5
5
  "bin": {
6
6
  "moralis-cli": "bin/moralis-cli.js"
package/src/cli.js CHANGED
@@ -3,6 +3,7 @@
3
3
  const fsp = require('node:fs/promises');
4
4
  const os = require('node:os');
5
5
  const path = require('node:path');
6
+ const { version: CLI_VERSION } = require('../package.json');
6
7
 
7
8
  const CONFIG_DIR = process.env.MORALIS_CLI_CONFIG_DIR || path.join(os.homedir(), '.moralis-cli');
8
9
  const CONFIG_PATH = path.join(CONFIG_DIR, 'config.json');
@@ -436,6 +437,8 @@ function buildHttpRequest(apiTarget, spec, operation, params, parsedArgs, config
436
437
  }
437
438
 
438
439
  applyApiKeyAuth(spec, operation, config, headers, url);
440
+ headers.set('x-moralis-product', 'moralis-cli');
441
+ headers.set('x-moralis-cli-version', CLI_VERSION);
439
442
 
440
443
  let requestBody = undefined;
441
444
  if (bodyParamSeen && body !== undefined) {