@zenithbuild/language-server 0.2.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/.github/workflows/release.yml +254 -0
- package/.releaserc.json +73 -0
- package/CHANGELOG.md +37 -0
- package/LICENSE +21 -0
- package/README.md +32 -0
- package/bun.lock +83 -0
- package/package.json +34 -0
- package/scripts/release.ts +554 -0
- package/src/diagnostics.ts +260 -0
- package/src/imports.ts +207 -0
- package/src/metadata/core-imports.ts +163 -0
- package/src/metadata/directive-metadata.ts +109 -0
- package/src/metadata/plugin-imports.ts +116 -0
- package/src/project.ts +167 -0
- package/src/router.ts +180 -0
- package/src/server.ts +841 -0
- package/test/fixtures/content-plugin.zen +77 -0
- package/test/fixtures/core-only.zen +59 -0
- package/test/fixtures/no-plugins.zen +115 -0
- package/test/fixtures/router-enabled.zen +76 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# Zenith Automated Release Workflow
|
|
3
|
+
# =============================================================================
|
|
4
|
+
# This workflow handles automated releases for all Zenith repositories.
|
|
5
|
+
#
|
|
6
|
+
# TRIGGERS:
|
|
7
|
+
# - Push to 'main' branch (analyzes commits for version bump)
|
|
8
|
+
# - Manual trigger via workflow_dispatch (with optional dry-run mode)
|
|
9
|
+
# - Tag creation (v*) for explicit version releases
|
|
10
|
+
#
|
|
11
|
+
# FEATURES:
|
|
12
|
+
# - Conventional Commits parsing for automatic version determination
|
|
13
|
+
# - Automatic CHANGELOG.md generation
|
|
14
|
+
# - GitHub Release creation
|
|
15
|
+
# - Optional NPM publishing
|
|
16
|
+
# - Commits updated files back to repo
|
|
17
|
+
# - Dry-run mode for testing
|
|
18
|
+
# - Monorepo support (detects changed packages)
|
|
19
|
+
#
|
|
20
|
+
# REQUIRED SECRETS:
|
|
21
|
+
# - NPM_TOKEN: For publishing to NPM (if enabled)
|
|
22
|
+
# - GITHUB_TOKEN: Automatically provided by GitHub Actions
|
|
23
|
+
# =============================================================================
|
|
24
|
+
|
|
25
|
+
name: Release
|
|
26
|
+
|
|
27
|
+
on:
|
|
28
|
+
push:
|
|
29
|
+
branches:
|
|
30
|
+
- main
|
|
31
|
+
tags:
|
|
32
|
+
- 'v*'
|
|
33
|
+
paths-ignore:
|
|
34
|
+
- '**.md'
|
|
35
|
+
- '.github/**'
|
|
36
|
+
- '!.github/workflows/release.yml'
|
|
37
|
+
|
|
38
|
+
workflow_dispatch:
|
|
39
|
+
inputs:
|
|
40
|
+
dry_run:
|
|
41
|
+
description: 'Dry run mode (no actual release)'
|
|
42
|
+
required: false
|
|
43
|
+
default: false
|
|
44
|
+
type: boolean
|
|
45
|
+
package:
|
|
46
|
+
description: 'Specific package to release (for monorepo, leave empty for auto-detect)'
|
|
47
|
+
required: false
|
|
48
|
+
default: ''
|
|
49
|
+
type: string
|
|
50
|
+
bump_type:
|
|
51
|
+
description: 'Force version bump type (leave empty for auto-detect from commits)'
|
|
52
|
+
required: false
|
|
53
|
+
default: ''
|
|
54
|
+
type: choice
|
|
55
|
+
options:
|
|
56
|
+
- ''
|
|
57
|
+
- patch
|
|
58
|
+
- minor
|
|
59
|
+
- major
|
|
60
|
+
publish_npm:
|
|
61
|
+
description: 'Publish to NPM'
|
|
62
|
+
required: false
|
|
63
|
+
default: true
|
|
64
|
+
type: boolean
|
|
65
|
+
|
|
66
|
+
# Prevent concurrent releases
|
|
67
|
+
concurrency:
|
|
68
|
+
group: release-${{ github.ref }}
|
|
69
|
+
cancel-in-progress: false
|
|
70
|
+
|
|
71
|
+
env:
|
|
72
|
+
BUN_VERSION: '1.1.38'
|
|
73
|
+
|
|
74
|
+
jobs:
|
|
75
|
+
# ==========================================================================
|
|
76
|
+
# Detect Changes (for monorepo support)
|
|
77
|
+
# ==========================================================================
|
|
78
|
+
detect-changes:
|
|
79
|
+
name: Detect Changed Packages
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
outputs:
|
|
82
|
+
packages: ${{ steps.detect.outputs.packages }}
|
|
83
|
+
has_changes: ${{ steps.detect.outputs.has_changes }}
|
|
84
|
+
steps:
|
|
85
|
+
- name: Checkout Repository
|
|
86
|
+
uses: actions/checkout@v4
|
|
87
|
+
with:
|
|
88
|
+
fetch-depth: 0
|
|
89
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
90
|
+
|
|
91
|
+
- name: Setup Bun
|
|
92
|
+
uses: oven-sh/setup-bun@v2
|
|
93
|
+
with:
|
|
94
|
+
bun-version: ${{ env.BUN_VERSION }}
|
|
95
|
+
|
|
96
|
+
- name: Detect Changed Packages
|
|
97
|
+
id: detect
|
|
98
|
+
run: |
|
|
99
|
+
# First, check if this is a single-package repo (package.json in root)
|
|
100
|
+
if [ -f "./package.json" ]; then
|
|
101
|
+
# Count subdirectories with package.json (excluding node_modules)
|
|
102
|
+
SUB_PACKAGES=$(find . -mindepth 2 -name "package.json" -not -path "*/node_modules/*" | wc -l)
|
|
103
|
+
|
|
104
|
+
if [ "$SUB_PACKAGES" -eq 0 ]; then
|
|
105
|
+
# Single package repo - always release from root
|
|
106
|
+
echo "Single package repository detected"
|
|
107
|
+
echo "packages=[\".\"]" >> $GITHUB_OUTPUT
|
|
108
|
+
echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
109
|
+
exit 0
|
|
110
|
+
fi
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
# Monorepo detection
|
|
114
|
+
PACKAGES=$(find . -name "package.json" -not -path "*/node_modules/*" -not -path "*/.git/*" | xargs -I {} dirname {} | sed 's|^\./||' | grep -v "^$" | sort -u)
|
|
115
|
+
|
|
116
|
+
# For monorepos, detect which packages changed
|
|
117
|
+
CHANGED_PACKAGES="[]"
|
|
118
|
+
if [ "${{ github.event.inputs.package }}" != "" ]; then
|
|
119
|
+
CHANGED_PACKAGES="[\"${{ github.event.inputs.package }}\"]"
|
|
120
|
+
else
|
|
121
|
+
# Get changed files since last tag or in the current push
|
|
122
|
+
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
|
|
123
|
+
if [ -z "$LAST_TAG" ]; then
|
|
124
|
+
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD 2>/dev/null || git ls-files)
|
|
125
|
+
else
|
|
126
|
+
CHANGED_FILES=$(git diff --name-only $LAST_TAG HEAD)
|
|
127
|
+
fi
|
|
128
|
+
|
|
129
|
+
# Match changed files to packages
|
|
130
|
+
CHANGED_PKGS=""
|
|
131
|
+
for pkg in $PACKAGES; do
|
|
132
|
+
if echo "$CHANGED_FILES" | grep -q "^$pkg/"; then
|
|
133
|
+
if [ -z "$CHANGED_PKGS" ]; then
|
|
134
|
+
CHANGED_PKGS="\"$pkg\""
|
|
135
|
+
else
|
|
136
|
+
CHANGED_PKGS="$CHANGED_PKGS, \"$pkg\""
|
|
137
|
+
fi
|
|
138
|
+
fi
|
|
139
|
+
done
|
|
140
|
+
CHANGED_PACKAGES="[$CHANGED_PKGS]"
|
|
141
|
+
fi
|
|
142
|
+
|
|
143
|
+
echo "packages=$CHANGED_PACKAGES" >> $GITHUB_OUTPUT
|
|
144
|
+
if [ "$CHANGED_PACKAGES" = "[]" ]; then
|
|
145
|
+
echo "has_changes=false" >> $GITHUB_OUTPUT
|
|
146
|
+
else
|
|
147
|
+
echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
148
|
+
fi
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
# ==========================================================================
|
|
152
|
+
# Release Job
|
|
153
|
+
# ==========================================================================
|
|
154
|
+
release:
|
|
155
|
+
name: Release
|
|
156
|
+
needs: detect-changes
|
|
157
|
+
if: needs.detect-changes.outputs.has_changes == 'true'
|
|
158
|
+
runs-on: ubuntu-latest
|
|
159
|
+
permissions:
|
|
160
|
+
contents: write
|
|
161
|
+
packages: write
|
|
162
|
+
|
|
163
|
+
strategy:
|
|
164
|
+
fail-fast: false
|
|
165
|
+
matrix:
|
|
166
|
+
package: ${{ fromJson(needs.detect-changes.outputs.packages) }}
|
|
167
|
+
|
|
168
|
+
steps:
|
|
169
|
+
- name: Checkout Repository
|
|
170
|
+
uses: actions/checkout@v4
|
|
171
|
+
with:
|
|
172
|
+
fetch-depth: 0
|
|
173
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
174
|
+
|
|
175
|
+
- name: Setup Bun
|
|
176
|
+
uses: oven-sh/setup-bun@v2
|
|
177
|
+
with:
|
|
178
|
+
bun-version: ${{ env.BUN_VERSION }}
|
|
179
|
+
|
|
180
|
+
- name: Configure Git
|
|
181
|
+
run: |
|
|
182
|
+
git config user.name "github-actions[bot]"
|
|
183
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
184
|
+
|
|
185
|
+
- name: Install Dependencies
|
|
186
|
+
working-directory: ${{ matrix.package }}
|
|
187
|
+
run: bun install
|
|
188
|
+
|
|
189
|
+
- name: Run Release Script
|
|
190
|
+
id: release
|
|
191
|
+
working-directory: ${{ matrix.package }}
|
|
192
|
+
env:
|
|
193
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
194
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
195
|
+
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
|
|
196
|
+
BUMP_TYPE: ${{ github.event.inputs.bump_type || '' }}
|
|
197
|
+
PUBLISH_NPM: ${{ github.event.inputs.publish_npm || 'true' }}
|
|
198
|
+
run: |
|
|
199
|
+
# Run the Bun release script
|
|
200
|
+
bun run scripts/release.ts
|
|
201
|
+
|
|
202
|
+
- name: Build Package
|
|
203
|
+
if: steps.release.outputs.should_release == 'true'
|
|
204
|
+
working-directory: ${{ matrix.package }}
|
|
205
|
+
run: |
|
|
206
|
+
if bun run build 2>/dev/null; then
|
|
207
|
+
echo "Build completed successfully"
|
|
208
|
+
else
|
|
209
|
+
echo "No build script found or build not required"
|
|
210
|
+
fi
|
|
211
|
+
|
|
212
|
+
- name: Commit Changes
|
|
213
|
+
if: steps.release.outputs.should_release == 'true' && github.event.inputs.dry_run != 'true'
|
|
214
|
+
working-directory: ${{ matrix.package }}
|
|
215
|
+
run: |
|
|
216
|
+
git add CHANGELOG.md package.json
|
|
217
|
+
git commit -m "chore(release): v${{ steps.release.outputs.new_version }} [skip ci]" || echo "No changes to commit"
|
|
218
|
+
git push
|
|
219
|
+
|
|
220
|
+
- name: Create GitHub Release
|
|
221
|
+
if: steps.release.outputs.should_release == 'true' && github.event.inputs.dry_run != 'true'
|
|
222
|
+
uses: softprops/action-gh-release@v2
|
|
223
|
+
with:
|
|
224
|
+
tag_name: v${{ steps.release.outputs.new_version }}
|
|
225
|
+
name: Release v${{ steps.release.outputs.new_version }}
|
|
226
|
+
body_path: ${{ matrix.package }}/RELEASE_NOTES.md
|
|
227
|
+
draft: false
|
|
228
|
+
prerelease: false
|
|
229
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
230
|
+
|
|
231
|
+
- name: Publish to NPM
|
|
232
|
+
if: steps.release.outputs.should_release == 'true' && github.event.inputs.dry_run != 'true' && (github.event.inputs.publish_npm == 'true' || github.event.inputs.publish_npm == '')
|
|
233
|
+
working-directory: ${{ matrix.package }}
|
|
234
|
+
run: |
|
|
235
|
+
# Check if package is not private
|
|
236
|
+
PRIVATE=$(cat package.json | bun -e "console.log(JSON.parse(await Bun.stdin.text()).private || false)")
|
|
237
|
+
if [ "$PRIVATE" = "false" ]; then
|
|
238
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
239
|
+
bun publish --access public || npm publish --access public
|
|
240
|
+
else
|
|
241
|
+
echo "Package is private, skipping NPM publish"
|
|
242
|
+
fi
|
|
243
|
+
|
|
244
|
+
- name: Summary
|
|
245
|
+
run: |
|
|
246
|
+
echo "## Release Summary" >> $GITHUB_STEP_SUMMARY
|
|
247
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
248
|
+
if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then
|
|
249
|
+
echo "⚠️ **DRY RUN MODE** - No actual release was created" >> $GITHUB_STEP_SUMMARY
|
|
250
|
+
fi
|
|
251
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
252
|
+
echo "- **Package**: ${{ matrix.package }}" >> $GITHUB_STEP_SUMMARY
|
|
253
|
+
echo "- **Version**: ${{ steps.release.outputs.new_version }}" >> $GITHUB_STEP_SUMMARY
|
|
254
|
+
echo "- **Bump Type**: ${{ steps.release.outputs.bump_type }}" >> $GITHUB_STEP_SUMMARY
|
package/.releaserc.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"types": {
|
|
4
|
+
"feat": {
|
|
5
|
+
"title": "✨ Features",
|
|
6
|
+
"bump": "minor",
|
|
7
|
+
"description": "New features or functionality"
|
|
8
|
+
},
|
|
9
|
+
"fix": {
|
|
10
|
+
"title": "🐛 Bug Fixes",
|
|
11
|
+
"bump": "patch",
|
|
12
|
+
"description": "Bug fixes and corrections"
|
|
13
|
+
},
|
|
14
|
+
"perf": {
|
|
15
|
+
"title": "⚡ Performance Improvements",
|
|
16
|
+
"bump": "patch",
|
|
17
|
+
"description": "Performance optimizations"
|
|
18
|
+
},
|
|
19
|
+
"refactor": {
|
|
20
|
+
"title": "♻️ Code Refactoring",
|
|
21
|
+
"bump": "patch",
|
|
22
|
+
"description": "Code changes that neither fix bugs nor add features"
|
|
23
|
+
},
|
|
24
|
+
"docs": {
|
|
25
|
+
"title": "📚 Documentation",
|
|
26
|
+
"bump": null,
|
|
27
|
+
"description": "Documentation only changes"
|
|
28
|
+
},
|
|
29
|
+
"style": {
|
|
30
|
+
"title": "💄 Styles",
|
|
31
|
+
"bump": null,
|
|
32
|
+
"description": "Code style changes (formatting, whitespace)"
|
|
33
|
+
},
|
|
34
|
+
"test": {
|
|
35
|
+
"title": "✅ Tests",
|
|
36
|
+
"bump": null,
|
|
37
|
+
"description": "Adding or updating tests"
|
|
38
|
+
},
|
|
39
|
+
"build": {
|
|
40
|
+
"title": "📦 Build System",
|
|
41
|
+
"bump": "patch",
|
|
42
|
+
"description": "Build system or dependency changes"
|
|
43
|
+
},
|
|
44
|
+
"ci": {
|
|
45
|
+
"title": "🔧 CI Configuration",
|
|
46
|
+
"bump": null,
|
|
47
|
+
"description": "CI/CD configuration changes"
|
|
48
|
+
},
|
|
49
|
+
"chore": {
|
|
50
|
+
"title": "🔨 Chores",
|
|
51
|
+
"bump": null,
|
|
52
|
+
"description": "Maintenance tasks and other changes"
|
|
53
|
+
},
|
|
54
|
+
"revert": {
|
|
55
|
+
"title": "⏪ Reverts",
|
|
56
|
+
"bump": "patch",
|
|
57
|
+
"description": "Reverting previous commits"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"skipCI": [
|
|
61
|
+
"[skip ci]",
|
|
62
|
+
"[ci skip]",
|
|
63
|
+
"[no ci]",
|
|
64
|
+
"chore(release)"
|
|
65
|
+
],
|
|
66
|
+
"tagPrefix": "v",
|
|
67
|
+
"branches": {
|
|
68
|
+
"main": "latest",
|
|
69
|
+
"next": "next",
|
|
70
|
+
"beta": "beta",
|
|
71
|
+
"alpha": "alpha"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.2.1] - 2026-01-16
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **release**: use appendFileSync for GitHub Actions output (6804490)
|
|
13
|
+
|
|
14
|
+
### 📚 Documentation
|
|
15
|
+
|
|
16
|
+
- add comprehensive README and MIT license (deefb03)
|
|
17
|
+
|
|
18
|
+
### 📝 Other Changes
|
|
19
|
+
|
|
20
|
+
-
|
|
21
|
+
0ce1eea203f4996a793e69bfcdbd698ed7f2df93 ()
|
|
22
|
+
-
|
|
23
|
+
d7aa26a1ac00dec9f061e575118040e828ba4be5 ()
|
|
24
|
+
-
|
|
25
|
+
b31fe125ca8732d21ee90c1ffef39df02bf1c2f0 ()
|
|
26
|
+
-
|
|
27
|
+
1871b733741dc023b3bf5089189b89fa32cc7f1f ()
|
|
28
|
+
-
|
|
29
|
+
ba3addf298e5752e0968e3a97f32ea99c35bfbaa ()
|
|
30
|
+
- removed node modules (8709b71)
|
|
31
|
+
- accidently uploaded node_modules (fa37f0f)
|
|
32
|
+
-
|
|
33
|
+
02f92516f3aa5050189f284cf4c8293bca3e25a8 ()
|
|
34
|
+
-
|
|
35
|
+
58acde512541446d1008d0dbb154aee69410be87 ()
|
|
36
|
+
- ()
|
|
37
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zenith Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @zenithbuild/language-server ⚡
|
|
2
|
+
|
|
3
|
+
The Language Server Protocol (LSP) implementation for the Zenith framework.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package provides the "brains" for Zenith editor support. It implements the Language Server Protocol to provide features like autocomplete, hover information, diagnostics, and code actions across any supporting editor (VS Code, Vim, etc.).
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Diagnostics**: Real-time error reporting and linting for `.zen` files.
|
|
12
|
+
- **Completion**: Context-aware suggestions for Zenith-specific syntax and standard HTML.
|
|
13
|
+
- **Hover Information**: Detailed documentation on hover for core components and hooks.
|
|
14
|
+
- **Document Symbols**: Outline and navigation support for complex components.
|
|
15
|
+
|
|
16
|
+
## Architecture
|
|
17
|
+
|
|
18
|
+
The server is built with `vscode-languageserver` and is designed to be decoupled from the VS Code extension, allowing it to be reused in other IDEs or environments.
|
|
19
|
+
|
|
20
|
+
## Development
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Build the server
|
|
24
|
+
bun run build
|
|
25
|
+
|
|
26
|
+
# Run in watch mode
|
|
27
|
+
bun run dev
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT
|
package/bun.lock
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lockfileVersion": 1,
|
|
3
|
+
"configVersion": 0,
|
|
4
|
+
"workspaces": {
|
|
5
|
+
"": {
|
|
6
|
+
"name": "@zenithbuild/language-server",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"vscode-languageserver": "^9.0.1",
|
|
9
|
+
"vscode-languageserver-textdocument": "^1.0.11",
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@types/node": "^20.0.0",
|
|
13
|
+
"esbuild": "^0.19.0",
|
|
14
|
+
"typescript": "^5.0.0",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
"packages": {
|
|
19
|
+
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.19.12", "", { "os": "aix", "cpu": "ppc64" }, "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA=="],
|
|
20
|
+
|
|
21
|
+
"@esbuild/android-arm": ["@esbuild/android-arm@0.19.12", "", { "os": "android", "cpu": "arm" }, "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w=="],
|
|
22
|
+
|
|
23
|
+
"@esbuild/android-arm64": ["@esbuild/android-arm64@0.19.12", "", { "os": "android", "cpu": "arm64" }, "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA=="],
|
|
24
|
+
|
|
25
|
+
"@esbuild/android-x64": ["@esbuild/android-x64@0.19.12", "", { "os": "android", "cpu": "x64" }, "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew=="],
|
|
26
|
+
|
|
27
|
+
"@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.19.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g=="],
|
|
28
|
+
|
|
29
|
+
"@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.19.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A=="],
|
|
30
|
+
|
|
31
|
+
"@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.19.12", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA=="],
|
|
32
|
+
|
|
33
|
+
"@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.19.12", "", { "os": "freebsd", "cpu": "x64" }, "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg=="],
|
|
34
|
+
|
|
35
|
+
"@esbuild/linux-arm": ["@esbuild/linux-arm@0.19.12", "", { "os": "linux", "cpu": "arm" }, "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w=="],
|
|
36
|
+
|
|
37
|
+
"@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.19.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA=="],
|
|
38
|
+
|
|
39
|
+
"@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.19.12", "", { "os": "linux", "cpu": "ia32" }, "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA=="],
|
|
40
|
+
|
|
41
|
+
"@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA=="],
|
|
42
|
+
|
|
43
|
+
"@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w=="],
|
|
44
|
+
|
|
45
|
+
"@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.19.12", "", { "os": "linux", "cpu": "ppc64" }, "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg=="],
|
|
46
|
+
|
|
47
|
+
"@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.19.12", "", { "os": "linux", "cpu": "none" }, "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg=="],
|
|
48
|
+
|
|
49
|
+
"@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.19.12", "", { "os": "linux", "cpu": "s390x" }, "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg=="],
|
|
50
|
+
|
|
51
|
+
"@esbuild/linux-x64": ["@esbuild/linux-x64@0.19.12", "", { "os": "linux", "cpu": "x64" }, "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg=="],
|
|
52
|
+
|
|
53
|
+
"@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.19.12", "", { "os": "none", "cpu": "x64" }, "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA=="],
|
|
54
|
+
|
|
55
|
+
"@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.19.12", "", { "os": "openbsd", "cpu": "x64" }, "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw=="],
|
|
56
|
+
|
|
57
|
+
"@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.19.12", "", { "os": "sunos", "cpu": "x64" }, "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA=="],
|
|
58
|
+
|
|
59
|
+
"@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.19.12", "", { "os": "win32", "cpu": "arm64" }, "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A=="],
|
|
60
|
+
|
|
61
|
+
"@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.19.12", "", { "os": "win32", "cpu": "ia32" }, "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ=="],
|
|
62
|
+
|
|
63
|
+
"@esbuild/win32-x64": ["@esbuild/win32-x64@0.19.12", "", { "os": "win32", "cpu": "x64" }, "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA=="],
|
|
64
|
+
|
|
65
|
+
"@types/node": ["@types/node@20.19.27", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-N2clP5pJhB2YnZJ3PIHFk5RkygRX5WO/5f0WC08tp0wd+sv0rsJk3MqWn3CbNmT2J505a5336jaQj4ph1AdMug=="],
|
|
66
|
+
|
|
67
|
+
"esbuild": ["esbuild@0.19.12", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.19.12", "@esbuild/android-arm": "0.19.12", "@esbuild/android-arm64": "0.19.12", "@esbuild/android-x64": "0.19.12", "@esbuild/darwin-arm64": "0.19.12", "@esbuild/darwin-x64": "0.19.12", "@esbuild/freebsd-arm64": "0.19.12", "@esbuild/freebsd-x64": "0.19.12", "@esbuild/linux-arm": "0.19.12", "@esbuild/linux-arm64": "0.19.12", "@esbuild/linux-ia32": "0.19.12", "@esbuild/linux-loong64": "0.19.12", "@esbuild/linux-mips64el": "0.19.12", "@esbuild/linux-ppc64": "0.19.12", "@esbuild/linux-riscv64": "0.19.12", "@esbuild/linux-s390x": "0.19.12", "@esbuild/linux-x64": "0.19.12", "@esbuild/netbsd-x64": "0.19.12", "@esbuild/openbsd-x64": "0.19.12", "@esbuild/sunos-x64": "0.19.12", "@esbuild/win32-arm64": "0.19.12", "@esbuild/win32-ia32": "0.19.12", "@esbuild/win32-x64": "0.19.12" }, "bin": "bin/esbuild" }, "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg=="],
|
|
68
|
+
|
|
69
|
+
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
|
70
|
+
|
|
71
|
+
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
|
72
|
+
|
|
73
|
+
"vscode-jsonrpc": ["vscode-jsonrpc@8.2.0", "", {}, "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA=="],
|
|
74
|
+
|
|
75
|
+
"vscode-languageserver": ["vscode-languageserver@9.0.1", "", { "dependencies": { "vscode-languageserver-protocol": "3.17.5" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g=="],
|
|
76
|
+
|
|
77
|
+
"vscode-languageserver-protocol": ["vscode-languageserver-protocol@3.17.5", "", { "dependencies": { "vscode-jsonrpc": "8.2.0", "vscode-languageserver-types": "3.17.5" } }, "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg=="],
|
|
78
|
+
|
|
79
|
+
"vscode-languageserver-textdocument": ["vscode-languageserver-textdocument@1.0.12", "", {}, "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA=="],
|
|
80
|
+
|
|
81
|
+
"vscode-languageserver-types": ["vscode-languageserver-types@3.17.5", "", {}, "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg=="],
|
|
82
|
+
}
|
|
83
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zenithbuild/language-server",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Language Server for Zenith Framework",
|
|
5
|
+
"main": "./dist/server.js",
|
|
6
|
+
"types": "./dist/server.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "npx esbuild src/server.ts --bundle --outdir=dist --platform=node --format=cjs",
|
|
9
|
+
"dev": "npm run build -- --watch",
|
|
10
|
+
"release": "bun run scripts/release.ts",
|
|
11
|
+
"release:dry": "bun run scripts/release.ts --dry-run",
|
|
12
|
+
"release:patch": "bun run scripts/release.ts --bump=patch",
|
|
13
|
+
"release:minor": "bun run scripts/release.ts --bump=minor",
|
|
14
|
+
"release:major": "bun run scripts/release.ts --bump=major"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"vscode-languageserver": "^9.0.1",
|
|
18
|
+
"vscode-languageserver-textdocument": "^1.0.11"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^20.0.0",
|
|
22
|
+
"esbuild": "^0.19.0",
|
|
23
|
+
"typescript": "^5.0.0"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"private": false,
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/zenithbuild/zenith-language-server.git"
|
|
33
|
+
}
|
|
34
|
+
}
|