@alphafox/cli 0.3.12 → 0.3.14

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 (36) hide show
  1. package/README.md +26 -0
  2. package/dist/engine-backtest/activity.d.ts +60 -0
  3. package/dist/engine-backtest/activity.js +215 -0
  4. package/dist/engine-backtest/dca-first-order-amount-compat.d.ts +7 -0
  5. package/dist/engine-backtest/dca-first-order-amount-compat.js +71 -0
  6. package/dist/engine-backtest/load-config.d.ts +6 -2
  7. package/dist/engine-backtest/load-config.js +23 -0
  8. package/dist/engine-backtest/persist.d.ts +3 -0
  9. package/dist/engine-backtest/persist.js +22 -1
  10. package/dist/engine-backtest/prepared-tape.d.ts +10 -0
  11. package/dist/engine-backtest/prepared-tape.js +136 -0
  12. package/dist/engine-backtest/result-attribution.d.ts +35 -0
  13. package/dist/engine-backtest/result-attribution.js +156 -0
  14. package/dist/engine-backtest/run-command.js +21 -13
  15. package/dist/engine-backtest/sweep-command.d.ts +2 -2
  16. package/dist/engine-backtest/sweep-command.js +70 -51
  17. package/dist/engine-backtest/types.d.ts +18 -2
  18. package/dist/skills-manifest.json +42 -42
  19. package/dist/version.d.ts +1 -1
  20. package/dist/version.js +1 -1
  21. package/docs/alphafox-cli-installation-guide.md +16 -0
  22. package/docs/release-supply-chain.md +4 -4
  23. package/package.json +2 -1
  24. package/scripts/uninstall.cjs +438 -0
  25. package/skills/account/SKILL.md +1 -1
  26. package/skills/admin/SKILL.md +1 -1
  27. package/skills/alphafox/SKILL.md +3 -3
  28. package/skills/alphafox-shared/SKILL.md +8 -1
  29. package/skills/auth/SKILL.md +1 -1
  30. package/skills/cache/SKILL.md +1 -1
  31. package/skills/engine-backtest/SKILL.md +3 -1
  32. package/skills/exchange/SKILL.md +1 -1
  33. package/skills/market/SKILL.md +1 -1
  34. package/skills/notification/SKILL.md +1 -1
  35. package/skills/strategy/SKILL.md +17 -11
  36. package/skills/trading/SKILL.md +1 -1
@@ -1,153 +1,153 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@alphafox/cli",
4
- "packageVersion": "0.3.12",
4
+ "packageVersion": "0.3.14",
5
5
  "contractVersion": "2026-08-13",
6
- "bundleHash": "5129a939b6c209ec5e5d1a08ee94fe3c4999c53bd251731314c27de29f8ff5f0",
6
+ "bundleHash": "a303dae6ad43e08069748976c7caeb15cfc3ba298613937d27889943635521c4",
7
7
  "skills": [
8
8
  {
9
9
  "name": "alphafox",
10
- "version": "0.3.12",
10
+ "version": "0.3.14",
11
11
  "files": [
12
12
  {
13
13
  "path": "SKILL.md",
14
- "sha256": "37dc3b595471e1130662a54d8aed35e12a32222d2f95d3fadf3c9f5636a52ac9",
15
- "size": 7415
14
+ "sha256": "939e05b9b4ce70d295244d11405d7d2aae4bdd8e3a3702d842baaa65736a8fb7",
15
+ "size": 7426
16
16
  }
17
17
  ],
18
- "hash": "87347f1a8364fa982399b5641d6ff347c85376425e589ad6581001b1d1fefaac"
18
+ "hash": "438cc8c9d80833f35692b3a179c2e9f105c6a3527d88572589160f5d544c8b79"
19
19
  },
20
20
  {
21
21
  "name": "alphafox-account",
22
- "version": "0.3.12",
22
+ "version": "0.3.14",
23
23
  "files": [
24
24
  {
25
25
  "path": "SKILL.md",
26
- "sha256": "c4cdac0a980106ad110c306b5248b9b8f325d9de60e50f39d412b40854238a36",
26
+ "sha256": "e6d03f7993d0b0c44be224757401981e268dc0cf74f8902786ae7bf7666af436",
27
27
  "size": 784
28
28
  }
29
29
  ],
30
- "hash": "743b0f52a8f707f568c8ba9fba28d648d67d7ed524c6b41b550b9dd8d56434a0"
30
+ "hash": "b67a97de103f05bb5b1df458e2afe50e084caf22f7ef043c9fa91546717c4321"
31
31
  },
32
32
  {
33
33
  "name": "alphafox-admin",
34
- "version": "0.3.12",
34
+ "version": "0.3.14",
35
35
  "files": [
36
36
  {
37
37
  "path": "SKILL.md",
38
- "sha256": "6f06d16bd52b3d8651b91b0b6e4dc606d1d98de5827fc5c164f6d23705de3910",
38
+ "sha256": "9bc1859f7d3f3f7bf3fd9d48fb3d21e7553f4bf52944b9727af3d17a76d0e5fa",
39
39
  "size": 788
40
40
  }
41
41
  ],
42
- "hash": "ccbca03ae872a794eb950897b8cac4f398014a9c014ac956245c89ffb08bf4f0"
42
+ "hash": "3e28bca0bd00951477125844aac06e00253e8d4247d5728ccf427a462b5ddf93"
43
43
  },
44
44
  {
45
45
  "name": "alphafox-auth",
46
- "version": "0.3.12",
46
+ "version": "0.3.14",
47
47
  "files": [
48
48
  {
49
49
  "path": "SKILL.md",
50
- "sha256": "5985bdd0663d806e8ae8ab08d2ef2e1c1aa99b541ff5a5e72b14337eff3f22e6",
50
+ "sha256": "6bb282a22450e2ef55f3e7cf1488c8d2f878cb0d863e56f1bd79c1506b2cbd40",
51
51
  "size": 2371
52
52
  }
53
53
  ],
54
- "hash": "a42814a37f6cddf2e21f6badd1f66254091d734d1210c87cff6e11ea17432241"
54
+ "hash": "da361f46c23f048449e92a22206e359f8cc91568ec0472678ffdf5c3810f3f83"
55
55
  },
56
56
  {
57
57
  "name": "alphafox-cache",
58
- "version": "0.3.12",
58
+ "version": "0.3.14",
59
59
  "files": [
60
60
  {
61
61
  "path": "SKILL.md",
62
- "sha256": "9653fe4bc132b2f587a57cebf5c646527faf4f081d51f80645c3be34e952161e",
62
+ "sha256": "e23b41a9f268fcce0fab4c16cac275aa63b3b6a967403f81a4965361441957bb",
63
63
  "size": 1530
64
64
  }
65
65
  ],
66
- "hash": "e3c8c25d221c5b0574f17d455b2c29d8a8c075c2a007cac4302c0fa47ea1e226"
66
+ "hash": "6ca7dac2f003c65e233be6de10a027e1a3bb35ef6c7ebe978f150873fe515394"
67
67
  },
68
68
  {
69
69
  "name": "alphafox-engine-backtest",
70
- "version": "0.3.12",
70
+ "version": "0.3.14",
71
71
  "files": [
72
72
  {
73
73
  "path": "SKILL.md",
74
- "sha256": "1bd19ba3222dd8ab90f69509c8c02db3e2b9ef460c0539816ad83fba396e8e64",
75
- "size": 8278
74
+ "sha256": "69f05e144065d8333d8aafa857c824a524e40e21e432565542a7872bb645b12f",
75
+ "size": 8443
76
76
  }
77
77
  ],
78
- "hash": "ff899b9199e5ac28ef77f6fc8bf582d341483d0617933f669ca4f9a40e8d5bef"
78
+ "hash": "b7002fac218ff2a7d016815175b8f01fdc1615f8c1dd538d80c84295b30cee77"
79
79
  },
80
80
  {
81
81
  "name": "alphafox-exchange",
82
- "version": "0.3.12",
82
+ "version": "0.3.14",
83
83
  "files": [
84
84
  {
85
85
  "path": "SKILL.md",
86
- "sha256": "0dd186a4f7c34b01ad19028da5ecdfe2f15a15e2dc00997e048a7caa54e9d5b2",
86
+ "sha256": "3c3d8f2085f5e6b443c51da49d280eb955307d3bca83bba87f04d386dfc7450c",
87
87
  "size": 744
88
88
  }
89
89
  ],
90
- "hash": "b2a0a6d2ad588da804bbadfd505b395ecace330732b3be5dcc3110f3c4d0a2eb"
90
+ "hash": "7e9ee14179eb097e8e166aeedb96edc5d60c33e41614434b99926feeadec8f35"
91
91
  },
92
92
  {
93
93
  "name": "alphafox-market",
94
- "version": "0.3.12",
94
+ "version": "0.3.14",
95
95
  "files": [
96
96
  {
97
97
  "path": "SKILL.md",
98
- "sha256": "fba7e2e1a8a474234d984ab9bb99a91d003e8e365c10796687d6f7d8b20319ab",
98
+ "sha256": "5e53acb8b08a853377c4bc2df6bf07afced7b32e04eabdaac6095a30ba94dd1b",
99
99
  "size": 3079
100
100
  }
101
101
  ],
102
- "hash": "9e804c4418f4745b18915a4c0b8f7b7ef1a2eb4e5263d43cb5f665523b547425"
102
+ "hash": "4fb075aa2d9e90b932a5645bafbdfb4a14b3db2eceb43625cd014e0f3251e7b2"
103
103
  },
104
104
  {
105
105
  "name": "alphafox-notification",
106
- "version": "0.3.12",
106
+ "version": "0.3.14",
107
107
  "files": [
108
108
  {
109
109
  "path": "SKILL.md",
110
- "sha256": "02fc964294afa9630f220ff9bdaed283df15ddd92d52a9d9e48432072dfe87ed",
110
+ "sha256": "e8f68d39df1472a86b84ec9dbf260300745a462371f1e1ce4288e38c2f747553",
111
111
  "size": 699
112
112
  }
113
113
  ],
114
- "hash": "acc77bfbd3f74625e80b4aeabcf2e29ff55eadb9a20a1a421f8be95ab6f2d84b"
114
+ "hash": "10d397d049af7ab75c35af14c48d6362ffc9bc4703ebb91f471b037a984dcb98"
115
115
  },
116
116
  {
117
117
  "name": "alphafox-shared",
118
- "version": "0.3.12",
118
+ "version": "0.3.14",
119
119
  "files": [
120
120
  {
121
121
  "path": "SKILL.md",
122
- "sha256": "3d9d42c3e63c1f3c524923c9b2c544fe948464e3bf9ea1a7ec898023f68efe7c",
123
- "size": 5643
122
+ "sha256": "519a457d1889cb8eeca669fa6e9016468e34d4107b5a68212b803b9d47465950",
123
+ "size": 5960
124
124
  }
125
125
  ],
126
- "hash": "68affee820b6b6d41d01c0b83cebcd9431fa70eafe975d98736e983d47059d89"
126
+ "hash": "bea3bc79da430a1e5bfb3cd0291da3cb1cfe7f5550ba4f83eacaac2b16f00972"
127
127
  },
128
128
  {
129
129
  "name": "alphafox-strategy",
130
- "version": "0.3.12",
130
+ "version": "0.3.14",
131
131
  "files": [
132
132
  {
133
133
  "path": "SKILL.md",
134
- "sha256": "956198df91f79ae2976d5aed8a5842a9e22c907ecafb28378e89fe5b942ee5c2",
135
- "size": 4398
134
+ "sha256": "31c3a39dc972625a540e782940006b2a7561332439849b2c0e5e605dc7b5612b",
135
+ "size": 4587
136
136
  }
137
137
  ],
138
- "hash": "58e72dbd185c1fa033aa52c63a79478701e3a75c14583fca13459ad55d9b3622"
138
+ "hash": "3a6d9c3ab1a9ee5912509e7e05a75cc64070181fb5df306de669c33c6f15ca08"
139
139
  },
140
140
  {
141
141
  "name": "alphafox-trading",
142
- "version": "0.3.12",
142
+ "version": "0.3.14",
143
143
  "files": [
144
144
  {
145
145
  "path": "SKILL.md",
146
- "sha256": "09da55fd6ff864c6fdac0b79e106e62d7c3f083610ae71b4fad38439b529dd91",
146
+ "sha256": "6ce2a99527334d6beddd65eee8e17f4aae257fce2d93edf7f69e0680435adf53",
147
147
  "size": 3123
148
148
  }
149
149
  ],
150
- "hash": "5ae19801df517c9c7f73c7d1b64fe0feeb0790ea660905f0971eea5ae9f209f9"
150
+ "hash": "d235a9bfc387b32d992131ef1f589f86aa0100600c9bc8f61bf0261fb9b5e606"
151
151
  }
152
152
  ]
153
153
  }
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare const CLI_NAME = "alphafox";
2
2
  export declare const CLI_PACKAGE = "@alphafox/cli";
3
- export declare const CLI_VERSION = "0.3.12";
3
+ export declare const CLI_VERSION = "0.3.14";
4
4
  export { CATALOG_VERSION as CLI_CONTRACT_VERSION } from "./catalog/operations";
package/dist/version.js CHANGED
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLI_CONTRACT_VERSION = exports.CLI_VERSION = exports.CLI_PACKAGE = exports.CLI_NAME = void 0;
4
4
  exports.CLI_NAME = "alphafox";
5
5
  exports.CLI_PACKAGE = "@alphafox/cli";
6
- exports.CLI_VERSION = "0.3.12";
6
+ exports.CLI_VERSION = "0.3.14";
7
7
  var operations_1 = require("./catalog/operations");
8
8
  Object.defineProperty(exports, "CLI_CONTRACT_VERSION", { enumerable: true, get: function () { return operations_1.CATALOG_VERSION; } });
@@ -113,3 +113,19 @@ npx @alphafox/cli@latest install
113
113
  That wizard installs the CLI globally, verifies and syncs the packaged Skills,
114
114
  and may prompt for `alphafox auth login --browser`. It is TTY-oriented.
115
115
  Agents must follow Steps 1–4 in this document rather than the wizard.
116
+
117
+ ## Uninstall
118
+
119
+ Uninstall is a standalone script, not `alphafox uninstall`. After the user
120
+ explicitly asks to uninstall:
121
+
122
+ ```shell
123
+ curl -fsSL https://raw.githubusercontent.com/alphafoxai/alphafox-cli/main/scripts/uninstall.cjs | node -- --dry-run
124
+ curl -fsSL https://raw.githubusercontent.com/alphafoxai/alphafox-cli/main/scripts/uninstall.cjs | node -- --yes
125
+ ```
126
+
127
+ That removes the global `@alphafox/cli` package, Agent Skills under
128
+ `~/.agents/skills` (and Claude / Cursor / Codex / Grok links),
129
+ `~/.config/alphafox`, login tokens, and local Engine backtest caches.
130
+ It does not delete running traders or other server-side data. Ask the user
131
+ to restart the AI tool afterwards. Do not invent a CLI subcommand.
@@ -19,7 +19,7 @@ named `@alphafoxai/cli` (that name was never published; npmjs returns 404).
19
19
  | License | MIT |
20
20
  | Node | LTS **≥ 20** (`engines.node`) |
21
21
  | OS | macOS, Linux, Windows (npm install; no standalone native binary in v1) |
22
- | Package contents | `bin/`, `dist/`, `skills/`, `README.md`, `docs/`, `LICENSE` |
22
+ | Package contents | `bin/`, `dist/`, `skills/`, `README.md`, `docs/`, `scripts/uninstall.cjs`, `LICENSE` |
23
23
 
24
24
  v1 does **not** ship independent GitHub Release binaries, so there is no extra
25
25
  binary signing/checksum channel. Integrity is npm pack integrity plus
@@ -92,9 +92,9 @@ OIDC-provenance release.
92
92
 
93
93
  | Platform | Install | Update | Uninstall | Secrets |
94
94
  |----------|---------|--------|-----------|---------|
95
- | macOS | `npm install -g @alphafox/cli` or `npx @alphafox/cli` | `npm update -g @alphafox/cli` or pin `@<version>` | `npm uninstall -g @alphafox/cli` | Keychain Access |
96
- | Linux | same | same | same | Secret Service, or file fallback mode `0600` |
97
- | Windows | same | same | same | Credential Manager (`CredWrite`/`CredRead`); file fallback mode `0600` if unavailable |
95
+ | macOS | `npm install -g @alphafox/cli` or `npx @alphafox/cli` | `npm update -g @alphafox/cli` or pin `@<version>` | `scripts/uninstall.cjs` (or `npm uninstall -g @alphafox/cli` plus local Skills/config/cache) | Keychain Access |
96
+ | Linux | same | same | same (`scripts/uninstall.cjs`) | Secret Service, or file fallback mode `0600` |
97
+ | Windows | same | same | same (`scripts/uninstall.cjs`) | Credential Manager (`CredWrite`/`CredRead`); file fallback mode `0600` if unavailable |
98
98
 
99
99
  Fresh-machine acceptance (release checklist, not optional):
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphafox/cli",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "AlphaFox CLI — Agent/Human entry for the public Application API.",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -15,6 +15,7 @@
15
15
  "vendor",
16
16
  "README.md",
17
17
  "docs",
18
+ "scripts/uninstall.cjs",
18
19
  "LICENSE"
19
20
  ],
20
21
  "scripts": {