Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (174 loc) · 6 KB
/
Copy pathpackage.json
File metadata and controls
174 lines (174 loc) · 6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"name": "pine-tools",
"displayName": "Pine Script Tools",
"version": "0.5.0",
"description": "Unofficial Pine Script v6 tools, including a language service, LSP, MCP, Visual Studio Code extension, CLI linter tool, and more.",
"categories": [
"Linters",
"Programming Languages",
"Snippets"
],
"keywords": [
"diagnostics",
"indicators",
"intellisense",
"pine",
"pine-script",
"pinescript",
"strategies",
"syntax",
"trading",
"tradingview",
"v6"
],
"license": "MIT",
"author": {
"name": "folknor",
"url": "https://github.com/folknor"
},
"contributors": [
{
"name": "Jaroslav Pantsjoha",
"url": "https://github.com/jpantsjoha"
}
],
"repository": {
"type": "git",
"url": "https://github.com/folknor/pine-tools.git"
},
"publisher": "folknor",
"bin": {
"pine-lsp": "./dist/packages/lsp/bin/pine-lsp.js",
"pine-mcp": "./dist/packages/mcp/bin/pine-mcp.js",
"pine-validate": "./dist/packages/cli/src/cli.js"
},
"main": "./dist/packages/vscode/src/extension.js",
"scripts": {
"audit:fixtures": "pnpm run build:tsc && node scripts/audit-fixtures.mjs",
"build": "node scripts/build-extension.js",
"build:dev": "node scripts/build-extension.js",
"build:prod": "node scripts/build-extension.js --production",
"build:tsc": "tsc -p . && cp pine-data/v6/*.json dist/pine-data/v6/ && chmod +x dist/packages/cli/src/cli.js",
"check": "pnpm lint",
"clean": "rm -rf dist && rm -f build/*.vsix",
"crawl": "node --experimental-strip-types packages/pipeline/src/crawl.ts",
"debug:compare": "node scripts/compare-tv.mjs",
"debug:corpus": "node dev-tools/debug-internals.js corpus",
"debug:diff": "node dev-tools/differential-test.js",
"debug:internals": "node dev-tools/debug-internals.js",
"debug:repro": "node dev-tools/debug-repro.js",
"debug:tokens": "node dev-tools/debug-internals.js tokens",
"fetch:library": "node --experimental-strip-types packages/pipeline/src/fetch-library.ts",
"generate": "node --experimental-strip-types packages/pipeline/src/generate.ts",
"generate:libraries": "node --experimental-strip-types packages/pipeline/src/generate-libraries.ts",
"generate:manual": "node --experimental-strip-types packages/pipeline/src/generate-manual.ts",
"generate:syntax": "node --experimental-strip-types packages/pipeline/src/generate-syntax.ts",
"generate:tests": "node --experimental-strip-types packages/pipeline/src/generate-function-tests.ts",
"install:cli": "node scripts/install-cli.js",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check",
"lint": "oxlint",
"lint:categorize": "node scripts/categorize-failures.mjs",
"lint:failures": "node scripts/find-real-failures.mjs",
"lint:piners": "node scripts/compare-piners.mjs",
"lint:regression": "node scripts/regression-check.mjs",
"lint:snapshot": "node scripts/snapshot-local-lint.mjs",
"lsp:start": "node dist/packages/lsp/bin/pine-lsp.js --stdio",
"mcp:start": "node dist/packages/mcp/bin/pine-mcp.js",
"package": "pnpm run clean && pnpm run build:prod && pnpm exec vsce package --no-dependencies --out dist/",
"prepare": "husky",
"rebuild": "pnpm run clean && pnpm run build:prod && pnpm run build:tsc && pnpm test && pnpm run package",
"rebuild:skip-tests": "pnpm run clean && pnpm run build:prod && pnpm run package",
"reextract:dom": "node --experimental-strip-types packages/pipeline/src/reextract-overload-args.ts",
"reextract:sections": "node --experimental-strip-types packages/pipeline/src/reextract-sections.ts",
"release": "node scripts/release.mjs",
"scrape": "node --experimental-strip-types packages/pipeline/src/scrape.ts",
"scrape:force": "node --experimental-strip-types packages/pipeline/src/scrape.ts --force",
"scrape:manual": "node --experimental-strip-types packages/pipeline/src/scrape-manual.ts",
"test": "pnpm run build:tsc && vitest run",
"test:coverage": "vitest run --coverage",
"test:snippet": "node dev-tools/test-snippet.js",
"test:ui": "vitest --ui",
"test:watch": "vitest",
"watch": "node scripts/build-extension.js --watch"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"glob": "^13.0.6",
"vscode-languageclient": "^10.1.0",
"vscode-languageserver": "^10.1.0",
"vscode-languageserver-textdocument": "^1.0.12",
"zod": "^4.4.3"
},
"devDependencies": {
"@oxlint/plugins": "1.93.0",
"@types/node": "^26.3.0",
"@types/turndown": "^5.0.6",
"@types/vscode": "^1.134.0",
"@vitest/ui": "^4.1.11",
"@vscode/vsce": "^3.9.2",
"@vscode/vsce-sign": "^2.1.0",
"esbuild": "^0.28.2",
"fast-check": "^4.9.0",
"husky": "^9.1.7",
"keytar": "^7.9.0",
"oxfmt": "0.78.0",
"oxlint": "1.93.0",
"puppeteer": "^25.8.0",
"tslib": "^2.8.1",
"turndown": "^7.2.4",
"turndown-plugin-gfm": "^1.0.2",
"typescript": "7.0.2",
"vitest": "^4.1.11"
},
"contributes": {
"commands": [
{
"command": "pine.validate",
"title": "Pine: Validate current file"
},
{
"command": "pine.showDocs",
"title": "Pine: Show docs for symbol"
}
],
"configuration": {
"properties": {
"pine.applyFileAssociation": {
"default": true,
"description": "On activation, ensure files.associations maps *.pine to the pine language.",
"type": "boolean"
}
},
"title": "Pine Script Extension"
},
"grammars": [
{
"language": "pine",
"path": "./syntaxes/pine.tmLanguage.json",
"scopeName": "source.pine"
}
],
"languages": [
{
"aliases": [
"Pine",
"Pine Script",
"pine"
],
"configuration": "./language-configuration.json",
"extensions": [
".pine"
],
"id": "pine"
}
]
},
"activationEvents": [
"onLanguage:pine"
],
"engines": {
"vscode": "^1.125.0"
},
"packageManager": "pnpm"
}