@typesol/cli 0.40.0 → 0.41.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/CHANGELOG.md +28 -0
- package/README.md +7 -4
- package/dist/ai.d.ts +10 -0
- package/dist/ai.js +43 -0
- package/dist/cli.js +15 -1
- package/dist/compiler/analyze.js +3 -2
- package/dist/compiler/diagnostics.d.ts +2 -0
- package/dist/compiler/emit/calls.js +8 -1
- package/dist/tools/mcp.d.ts +11 -0
- package/dist/tools/mcp.js +208 -0
- package/dist/workspace.js +8 -0
- package/docs/ai.md +52 -0
- package/docs/audit.md +16 -14
- package/docs/case-study-raydium-cp-swap.md +77 -41
- package/docs/stability.md +56 -0
- package/llms-full.txt +1195 -0
- package/llms.txt +30 -0
- package/package.json +4 -2
package/llms.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# TypeSOL
|
|
2
|
+
|
|
3
|
+
> Write Solana programs in TypeScript. TypeSOL compiles a TypeScript subset to native SBF (no interpreter, no
|
|
4
|
+
> generated Rust) and writes an Anchor-compatible IDL and a typed client for every program. npm: @typesol/cli.
|
|
5
|
+
|
|
6
|
+
Integers are bigint (1n, u64), everything is imported from "typesol", and there is no throw, async, class or float.
|
|
7
|
+
The rules and the whole reference in one file: https://typesol.com/llms-full.txt
|
|
8
|
+
|
|
9
|
+
## Docs
|
|
10
|
+
|
|
11
|
+
- [language](https://typesol.com/docs/language/): every type, check and built-in of the language
|
|
12
|
+
- [errors](https://typesol.com/docs/errors/): the error codes a program fails with
|
|
13
|
+
- [test-your-program](https://typesol.com/docs/test-your-program/): tests with typesol/testing in LiteSVM
|
|
14
|
+
- [cli](https://typesol.com/docs/cli/): the typesol commands
|
|
15
|
+
- [client](https://typesol.com/docs/client/): the typed client every build writes
|
|
16
|
+
- [migrate-from-anchor](https://typesol.com/docs/migrate-from-anchor/): each Anchor construct and its TypeSOL form
|
|
17
|
+
- [troubleshooting](https://typesol.com/docs/troubleshooting/): common problems
|
|
18
|
+
- [mainnet](https://typesol.com/docs/mainnet/): deploying, verifying and publishing the IDL
|
|
19
|
+
- [security-model](https://typesol.com/docs/security-model/): what a compiled program checks for you and what is left to you
|
|
20
|
+
- [ai](https://typesol.com/docs/ai/): the agent rules, check --json hints and the MCP server
|
|
21
|
+
- [stability](https://typesol.com/docs/stability/): what is stable, what is experimental, the road to 1.0
|
|
22
|
+
|
|
23
|
+
## Tools
|
|
24
|
+
|
|
25
|
+
- `npx @typesol/cli init my-app`: a project with a program, a LiteSVM test, AGENTS.md / CLAUDE.md and the MCP server configured
|
|
26
|
+
- `npx typesol check --json`: errors with hints; `npx typesol mcp`: check, IDL and docs as MCP tools
|
|
27
|
+
|
|
28
|
+
## Optional
|
|
29
|
+
|
|
30
|
+
- [Case studies](https://typesol.com/docs/case-study-marginfi/): mainnet programs (Marginfi v2, Raydium AMM v4, CLMM, CP-Swap, Jito) ported and checked against their binaries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typesol/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Compile a TypeScript-syntax language directly to Solana SBF programs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,7 +55,9 @@
|
|
|
55
55
|
"README.md",
|
|
56
56
|
"CHANGELOG.md",
|
|
57
57
|
"SECURITY.md",
|
|
58
|
-
"docs"
|
|
58
|
+
"docs",
|
|
59
|
+
"llms.txt",
|
|
60
|
+
"llms-full.txt"
|
|
59
61
|
],
|
|
60
62
|
"scripts": {
|
|
61
63
|
"build": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
|