ff1-cli 1.0.0 → 1.0.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.
- package/config.json.example +1 -1
- package/dist/index.js +426 -107
- package/dist/src/ai-orchestrator/index.js +21 -21
- package/dist/src/config.js +23 -9
- package/dist/src/intent-parser/index.js +55 -44
- package/dist/src/intent-parser/utils.js +2 -5
- package/dist/src/logger.js +1 -1
- package/dist/src/main.js +41 -28
- package/dist/src/utilities/domain-resolver.js +2 -2
- package/dist/src/utilities/feed-fetcher.js +2 -2
- package/dist/src/utilities/functions.js +12 -12
- package/dist/src/utilities/index.js +65 -14
- package/dist/src/utilities/nft-indexer.js +30 -7
- package/dist/src/utilities/playlist-send.js +18 -18
- package/dist/src/utilities/playlist-verifier.js +11 -11
- package/docs/CONFIGURATION.md +3 -3
- package/docs/EXAMPLES.md +1 -1
- package/docs/README.md +1 -1
- package/docs/RELEASING.md +28 -4
- package/package.json +2 -10
package/docs/CONFIGURATION.md
CHANGED
|
@@ -94,7 +94,7 @@ DP‑1 Feed API configuration.
|
|
|
94
94
|
|
|
95
95
|
- `feed.baseURLs` (string[]): Array of DP‑1 Feed Operator API v1 base URLs. The CLI queries all feeds in parallel.
|
|
96
96
|
- Legacy support: `feed.baseURL` (string) is still accepted and normalized to an array.
|
|
97
|
-
- Default: `https://feed.
|
|
97
|
+
- Default: `https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1` if not set.
|
|
98
98
|
- Compatibility: API v1 of the DP‑1 Feed Operator server. See the repository for endpoints and behavior: [dp1-feed](https://github.com/display-protocol/dp1-feed).
|
|
99
99
|
|
|
100
100
|
Endpoints used by the CLI:
|
|
@@ -105,7 +105,7 @@ Endpoints used by the CLI:
|
|
|
105
105
|
Environment variable alternative:
|
|
106
106
|
|
|
107
107
|
```env
|
|
108
|
-
FEED_BASE_URLS=https://feed.
|
|
108
|
+
FEED_BASE_URLS=https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1,https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
## ff1Devices
|
|
@@ -150,7 +150,7 @@ Minimal `config.json` example (selected fields):
|
|
|
150
150
|
},
|
|
151
151
|
"feed": {
|
|
152
152
|
"baseURLs": [
|
|
153
|
-
"https://feed.
|
|
153
|
+
"https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1"
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
156
|
"ff1Devices": {
|
package/docs/EXAMPLES.md
CHANGED
|
@@ -67,7 +67,7 @@ The CLI recognizes publishing keywords like "publish", "publish to my feed", "pu
|
|
|
67
67
|
npm run dev -- chat "Build playlist from Ethereum contract 0xb932a70A57673d89f4acfFBE830E8ed7f75Fb9e0 with tokens 52932 and 52457; publish to my feed" -o playlist.json -v
|
|
68
68
|
|
|
69
69
|
# With feed selection (if multiple servers configured)
|
|
70
|
-
# The CLI will ask: "Which feed server? 1) https://feed.
|
|
70
|
+
# The CLI will ask: "Which feed server? 1) https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1 2) http://localhost:8787"
|
|
71
71
|
npm run dev -- chat "Get 3 from Social Codes and publish to feed" -v
|
|
72
72
|
|
|
73
73
|
# Publish existing playlist (defaults to ./playlist.json)
|
package/docs/README.md
CHANGED
|
@@ -57,7 +57,7 @@ See the full configuration reference here: `./CONFIGURATION.md`.
|
|
|
57
57
|
"playlist": {
|
|
58
58
|
"privateKey": "your_ed25519_private_key_base64_here"
|
|
59
59
|
},
|
|
60
|
-
"feed": { "baseURLs": ["https://feed.
|
|
60
|
+
"feed": { "baseURLs": ["https://dp1-feed-operator-api-prod.autonomy-system.workers.dev/api/v1"] },
|
|
61
61
|
"ff1Devices": {
|
|
62
62
|
"devices": [
|
|
63
63
|
{
|
package/docs/RELEASING.md
CHANGED
|
@@ -4,16 +4,40 @@ The curl installer downloads prebuilt binaries from GitHub Releases. Build one a
|
|
|
4
4
|
|
|
5
5
|
## Build a Release Asset (local)
|
|
6
6
|
|
|
7
|
+
**macOS / Linux:**
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
10
|
./scripts/release/build-asset.sh
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
**Windows (PowerShell):**
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
.\scripts\release\build-asset-windows.ps1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This produces (names vary by OS/arch):
|
|
20
|
+
|
|
21
|
+
- `release/ff1-cli-darwin-arm64.tar.gz` (and `.sha256`) on macOS
|
|
22
|
+
- `release/ff1-cli-linux-x64.tar.gz` (and `.sha256`) on Linux
|
|
23
|
+
- `release/ff1-cli-windows-x64.zip` (and `.sha256`) on Windows
|
|
24
|
+
|
|
25
|
+
Run the appropriate script on each target platform and upload each pair to the GitHub release.
|
|
12
26
|
|
|
13
|
-
|
|
14
|
-
|
|
27
|
+
## GitHub Actions
|
|
28
|
+
|
|
29
|
+
- **Build** (`build.yml`): Trigger manually (Actions → Build → Run workflow) or on pull requests. Builds binaries on macOS, Linux, and Windows and uploads them as workflow artifacts for download.
|
|
30
|
+
- **Release** (`release.yml`): Triggered when you **publish a release** (create a release from the repo Releases page, or publish an existing draft). Builds the same binaries, then uploads them to that release. Pushing a tag alone does not run this; only creating/publishing a release does.
|
|
31
|
+
|
|
32
|
+
## Installer Redirect
|
|
33
|
+
|
|
34
|
+
`https://feralfile.com/ff1-cli-install` should redirect to:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
https://raw.githubusercontent.com/feral-file/ff1-cli/main/scripts/install.sh
|
|
38
|
+
```
|
|
15
39
|
|
|
16
|
-
The
|
|
40
|
+
The installer script then fetches the release assets from GitHub Releases.
|
|
17
41
|
|
|
18
42
|
## Environment Overrides
|
|
19
43
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ff1-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI to fetch NFT information and build DP1 playlists using Grok API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"ff1": "
|
|
7
|
+
"ff1": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
@@ -43,24 +43,16 @@
|
|
|
43
43
|
"author": "",
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@lancedb/lancedb": "^0.22.1",
|
|
47
|
-
"@mozilla/readability": "^0.6.0",
|
|
48
|
-
"@xenova/transformers": "^2.17.2",
|
|
49
46
|
"axios": "^1.6.2",
|
|
50
47
|
"chalk": "^4.1.2",
|
|
51
|
-
"cheerio": "^1.0.0-rc.12",
|
|
52
48
|
"commander": "^11.1.0",
|
|
53
49
|
"dotenv": "^16.3.1",
|
|
54
50
|
"dp1-js": "^1.1.0",
|
|
55
51
|
"fuzzysort": "^3.1.0",
|
|
56
|
-
"jsdom": "^27.0.0",
|
|
57
52
|
"openai": "^4.58.1",
|
|
58
|
-
"ora": "^5.4.1",
|
|
59
|
-
"puppeteer": "^24.22.3",
|
|
60
53
|
"viem": "^2.38.2"
|
|
61
54
|
},
|
|
62
55
|
"devDependencies": {
|
|
63
|
-
"@types/jsdom": "^27.0.0",
|
|
64
56
|
"@types/node": "^24.7.1",
|
|
65
57
|
"@typescript-eslint/eslint-plugin": "^8.46.0",
|
|
66
58
|
"@typescript-eslint/parser": "^8.46.0",
|