@evatick/cli 0.3.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +28 -0
  3. package/bin/eva.js +43 -0
  4. package/package.json +32 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EVA Tick CLI contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # EVA CLI
2
+
3
+ EVA CLI is a stable, machine-readable market-data command-line client for LLMs,
4
+ AI agents, and automation. It connects to the versioned EVA HTTP API.
5
+
6
+ ## Install
7
+
8
+ ```shell
9
+ npm install --global @evatick/cli
10
+ eva version
11
+ ```
12
+
13
+ It can also be run without a global installation:
14
+
15
+ ```shell
16
+ npx @evatick/cli health
17
+ ```
18
+
19
+ The npm package installs a native executable for the current platform. Python is
20
+ not required. Supported targets are macOS arm64/x64, Linux x64 (glibc), and
21
+ Windows x64.
22
+
23
+ JSON, JSONL, and CSV exports are supported. Parquet export remains available in
24
+ the Python distribution (`pip install 'evatick[parquet]'`) and is intentionally
25
+ not bundled into the native npm executables.
26
+
27
+ See the [EVA CLI repository](https://github.com/xiaochaohit/evatick-cli) for
28
+ commands, configuration, source code, and license information.
package/bin/eva.js ADDED
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+
3
+ "use strict";
4
+
5
+ const { spawnSync } = require("node:child_process");
6
+
7
+ const targets = {
8
+ "darwin-arm64": ["@evatick/cli-darwin-arm64", "eva"],
9
+ "darwin-x64": ["@evatick/cli-darwin-x64", "eva"],
10
+ "linux-x64": ["@evatick/cli-linux-x64", "eva"],
11
+ "win32-x64": ["@evatick/cli-win32-x64", "eva.exe"],
12
+ };
13
+
14
+ const target = `${process.platform}-${process.arch}`;
15
+ const selected = targets[target];
16
+ if (!selected) {
17
+ console.error(
18
+ `EVA CLI does not support ${target}. Supported targets: ${Object.keys(targets).join(", ")}.`,
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ let executable;
24
+ try {
25
+ executable = require.resolve(`${selected[0]}/bin/${selected[1]}`);
26
+ } catch (error) {
27
+ console.error(
28
+ `The EVA CLI executable for ${target} is missing. Reinstall @evatick/cli without omitting optional dependencies.`,
29
+ );
30
+ process.exit(1);
31
+ }
32
+
33
+ const result = spawnSync(executable, process.argv.slice(2), {
34
+ stdio: "inherit",
35
+ });
36
+ if (result.error) {
37
+ console.error(`Unable to start EVA CLI: ${result.error.message}`);
38
+ process.exit(1);
39
+ }
40
+ if (result.signal) {
41
+ process.kill(process.pid, result.signal);
42
+ }
43
+ process.exit(result.status === null ? 1 : result.status);
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@evatick/cli",
3
+ "version": "0.3.0",
4
+ "description": "EVA market data command-line client for LLMs, agents, and automation",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/xiaochaohit/evatick-cli.git"
9
+ },
10
+ "homepage": "https://github.com/xiaochaohit/evatick-cli#readme",
11
+ "bugs": "https://github.com/xiaochaohit/evatick-cli/issues",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "bin": {
16
+ "eva": "bin/eva.js"
17
+ },
18
+ "files": [
19
+ "bin",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "optionalDependencies": {
27
+ "@evatick/cli-darwin-arm64": "0.3.0",
28
+ "@evatick/cli-darwin-x64": "0.3.0",
29
+ "@evatick/cli-linux-x64": "0.3.0",
30
+ "@evatick/cli-win32-x64": "0.3.0"
31
+ }
32
+ }