@tokenomist-ai/tokenomist-cli 0.1.2 → 0.2.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/README.md CHANGED
@@ -102,6 +102,7 @@ This reads the skill definitions from the local `.agents/skills/` directory inst
102
102
  | `tokenomist-fundraising-lookup` | Fundraising rounds, investors, and valuations |
103
103
  | `tokenomist-burn-buyback` | Token burn and buyback activity |
104
104
  | `tokenomist-allocation-breakdown` | Full allocation distribution for a token |
105
+ | `tokenomist-point-in-time` | Tokenomics as published at a past version (history, audits, backtests) |
105
106
 
106
107
  ## Usage
107
108
 
@@ -155,6 +156,27 @@ tok emission weekly solana --start 2024-01-01 --end 2024-06-30
155
156
  tok allocation detail solana
156
157
  ```
157
158
 
159
+ ### Point-in-time history
160
+ A token's data as it was published at a past version. Select the version with `--as-of` (a date or RFC 3339 instant) or `--version-id` (from `pit versions`), not both; omit both for the current version. Point-in-time answers carry no USD fields. Requires a plan with point-in-time access (API, ELITE or TEAM).
161
+
162
+ ```bash
163
+ tok pit versions arbitrum
164
+ tok pit allocation arbitrum --as-of 2024-01-01
165
+ tok pit daily-emission arbitrum --as-of 2024-01-01 --start 2024-03-01 --end 2024-03-31
166
+ tok pit unlock-events arbitrum --version-id <versionId> --output json
167
+ ```
168
+
169
+ With `--output json`, `pit allocation`, `pit daily-emission` and `pit unlock-events` return `{ "asOf", "version", "data", "pagination" }` (`pagination` on the two series commands only); `pit versions` returns `{ "data", "pagination" }`.
170
+
171
+ ### Pagination
172
+ Unlock, emission, investor list, burn list, buyback list, `pit versions` and the `pit` series commands return one page (20 rows by default). The page position is printed to **stderr**, so stdout stays clean for `--output json` / `csv`:
173
+
174
+ ```
175
+ Page 1/2 · 28 total · next: --page 2 (or raise --page-size)
176
+ ```
177
+
178
+ Use `--page` / `--page-size` to get the rest. A page past the last returns the last page again.
179
+
158
180
  ## Global Options
159
181
 
160
182
  | Option | Description |
@@ -162,6 +184,7 @@ tok allocation detail solana
162
184
  | `-k, --api-key <key>` | Override API key |
163
185
  | `-o, --output <format>` | Output format: `table` (default), `json`, `csv` |
164
186
  | `--base-url <url>` | Override API base URL (default: `https://api.tokenomist.ai`) |
187
+ | `--no-cache` | Bypass the 10-minute response cache |
165
188
  | `-V, --version` | Print version |
166
189
  | `-h, --help` | Show help |
167
190
 
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+
3
+ // package.json
4
+ var package_default = {
5
+ name: "@tokenomist-ai/tokenomist-cli",
6
+ version: "0.2.0",
7
+ description: "CLI tool for the Tokenomist API \u2014 query token unlocks, emissions, fundraising, burns, buybacks, and point-in-time history from the terminal",
8
+ type: "module",
9
+ main: "dist/index.js",
10
+ bin: {
11
+ tok: "dist/index.js"
12
+ },
13
+ scripts: {
14
+ postinstall: "node scripts/postinstall.js",
15
+ build: "tsup",
16
+ dev: "tsup --watch",
17
+ start: "node dist/index.js",
18
+ test: "vitest run",
19
+ "test:watch": "vitest",
20
+ lint: "eslint src/ tests/",
21
+ "lint:fix": "eslint src/ tests/ --fix",
22
+ format: "prettier --write 'src/**/*.ts' 'tests/**/*.ts'",
23
+ "format:check": "prettier --check 'src/**/*.ts' 'tests/**/*.ts'",
24
+ prepublishOnly: "npm run build"
25
+ },
26
+ keywords: [
27
+ "tokenomist",
28
+ "crypto",
29
+ "token",
30
+ "unlock",
31
+ "emission",
32
+ "fundraising",
33
+ "burn",
34
+ "buyback",
35
+ "cli",
36
+ "api"
37
+ ],
38
+ author: {
39
+ name: "tokenomist-ai",
40
+ email: "support@tokenomist.ai",
41
+ url: "https://tokenomist.ai"
42
+ },
43
+ license: "MIT",
44
+ repository: {
45
+ type: "git",
46
+ url: "git+https://github.com/tokenomist-ai/tokenomist-cli.git"
47
+ },
48
+ homepage: "https://github.com/tokenomist-ai/tokenomist-cli#readme",
49
+ bugs: {
50
+ url: "https://github.com/tokenomist-ai/tokenomist-cli/issues"
51
+ },
52
+ engines: {
53
+ node: ">=18.0.0"
54
+ },
55
+ publishConfig: {
56
+ access: "public"
57
+ },
58
+ files: [
59
+ "dist",
60
+ "skills/**",
61
+ "scripts/postinstall.js",
62
+ "LICENSE",
63
+ "README.md"
64
+ ],
65
+ dependencies: {
66
+ "cli-table3": "^0.6.5",
67
+ commander: "^12.1.0",
68
+ dotenv: "^16.4.7"
69
+ },
70
+ devDependencies: {
71
+ "@types/node": "^22.10.0",
72
+ eslint: "^9.16.0",
73
+ prettier: "^3.4.2",
74
+ tsup: "^8.3.5",
75
+ typescript: "^5.7.2",
76
+ "typescript-eslint": "^8.57.0",
77
+ vitest: "^3.2.4"
78
+ }
79
+ };
80
+
81
+ export {
82
+ package_default
83
+ };
84
+ //# sourceMappingURL=chunk-DCGA3ANT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@tokenomist-ai/tokenomist-cli\",\n \"version\": \"0.2.0\",\n \"description\": \"CLI tool for the Tokenomist API — query token unlocks, emissions, fundraising, burns, buybacks, and point-in-time history from the terminal\",\n \"type\": \"module\",\n \"main\": \"dist/index.js\",\n \"bin\": {\n \"tok\": \"dist/index.js\"\n },\n \"scripts\": {\n \"postinstall\": \"node scripts/postinstall.js\",\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"start\": \"node dist/index.js\",\n \"test\": \"vitest run\",\n \"test:watch\": \"vitest\",\n \"lint\": \"eslint src/ tests/\",\n \"lint:fix\": \"eslint src/ tests/ --fix\",\n \"format\": \"prettier --write 'src/**/*.ts' 'tests/**/*.ts'\",\n \"format:check\": \"prettier --check 'src/**/*.ts' 'tests/**/*.ts'\",\n \"prepublishOnly\": \"npm run build\"\n },\n \"keywords\": [\n \"tokenomist\",\n \"crypto\",\n \"token\",\n \"unlock\",\n \"emission\",\n \"fundraising\",\n \"burn\",\n \"buyback\",\n \"cli\",\n \"api\"\n ],\n \"author\": {\n \"name\": \"tokenomist-ai\",\n \"email\": \"support@tokenomist.ai\",\n \"url\": \"https://tokenomist.ai\"\n },\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/tokenomist-ai/tokenomist-cli.git\"\n },\n \"homepage\": \"https://github.com/tokenomist-ai/tokenomist-cli#readme\",\n \"bugs\": {\n \"url\": \"https://github.com/tokenomist-ai/tokenomist-cli/issues\"\n },\n \"engines\": {\n \"node\": \">=18.0.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"files\": [\n \"dist\",\n \"skills/**\",\n \"scripts/postinstall.js\",\n \"LICENSE\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^12.1.0\",\n \"dotenv\": \"^16.4.7\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^22.10.0\",\n \"eslint\": \"^9.16.0\",\n \"prettier\": \"^3.4.2\",\n \"tsup\": \"^8.3.5\",\n \"typescript\": \"^5.7.2\",\n \"typescript-eslint\": \"^8.57.0\",\n \"vitest\": \"^3.2.4\"\n }\n}\n"],"mappings":";;;AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,MAAQ;AAAA,EACR,KAAO;AAAA,IACL,KAAO;AAAA,EACT;AAAA,EACA,SAAW;AAAA,IACT,aAAe;AAAA,IACf,OAAS;AAAA,IACT,KAAO;AAAA,IACP,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,cAAc;AAAA,IACd,MAAQ;AAAA,IACR,YAAY;AAAA,IACZ,QAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,gBAAkB;AAAA,EACpB;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,QAAU;AAAA,IACR,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,KAAO;AAAA,EACT;AAAA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