@aster-cloud/aster-lang-ts 0.0.5 → 0.0.7
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/dist/scripts/aster.js +0 -0
- package/dist/scripts/emit-core.js +0 -0
- package/dist/src/browser.d.ts +168 -0
- package/dist/src/browser.d.ts.map +1 -0
- package/dist/src/browser.js +311 -0
- package/dist/src/browser.js.map +1 -0
- package/dist/src/cli/policy-converter.js +0 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lsp/server.js +0 -0
- package/dist/src/parser/constraint-parser.d.ts.map +1 -1
- package/dist/src/parser/constraint-parser.js +63 -9
- package/dist/src/parser/constraint-parser.js.map +1 -1
- package/dist/src/parser/input-generator.d.ts +68 -0
- package/dist/src/parser/input-generator.d.ts.map +1 -0
- package/dist/src/parser/input-generator.js +577 -0
- package/dist/src/parser/input-generator.js.map +1 -0
- package/dist/test/unit/parser/input-generator.test.d.ts +5 -0
- package/dist/test/unit/parser/input-generator.test.d.ts.map +1 -0
- package/dist/test/unit/parser/input-generator.test.js +239 -0
- package/dist/test/unit/parser/input-generator.test.js.map +1 -0
- package/dist/test/unit/parser/parser.test.js +55 -0
- package/dist/test/unit/parser/parser.test.js.map +1 -1
- package/package.json +44 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aster-cloud/aster-lang-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Aster CNL (Controlled Natural Language) TypeScript Compiler - Lexer, Parser, AST, Core IR, Type Checker",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/src/index.js",
|
|
@@ -61,6 +61,14 @@
|
|
|
61
61
|
"./lsp/diagnostics": {
|
|
62
62
|
"types": "./dist/src/lsp/diagnostics.d.ts",
|
|
63
63
|
"import": "./dist/src/lsp/diagnostics.js"
|
|
64
|
+
},
|
|
65
|
+
"./browser": {
|
|
66
|
+
"types": "./dist/src/browser.d.ts",
|
|
67
|
+
"import": "./dist/src/browser.js"
|
|
68
|
+
},
|
|
69
|
+
"./browser/bundle": {
|
|
70
|
+
"types": "./dist/src/browser.d.ts",
|
|
71
|
+
"import": "./dist/browser.bundle.js"
|
|
64
72
|
}
|
|
65
73
|
},
|
|
66
74
|
"bin": {
|
|
@@ -69,39 +77,6 @@
|
|
|
69
77
|
"aster-lsp": "./dist/src/lsp/server.js",
|
|
70
78
|
"aster-convert": "./dist/src/cli/policy-converter.js"
|
|
71
79
|
},
|
|
72
|
-
"scripts": {
|
|
73
|
-
"build": "tsc && node dist/scripts/build-peg.js",
|
|
74
|
-
"build:watch": "tsc --watch",
|
|
75
|
-
"clean": "rm -rf dist",
|
|
76
|
-
"dev": "pnpm run build:watch",
|
|
77
|
-
"test": "pnpm run build && pnpm run test:unit:run && pnpm run test:integration:run",
|
|
78
|
-
"test:unit": "pnpm run build && pnpm run test:unit:run",
|
|
79
|
-
"test:unit:run": "node --test 'dist/test/unit/**/*.test.js' 'dist/test/type-checker/**/*.test.js'",
|
|
80
|
-
"test:unit:coverage": "pnpm run build && c8 node --test 'dist/test/unit/**/*.test.js' 'dist/test/type-checker/**/*.test.js'",
|
|
81
|
-
"test:integration": "pnpm run build && pnpm run test:integration:run",
|
|
82
|
-
"test:integration:run": "node --test 'dist/test/integration/**/*.test.js'",
|
|
83
|
-
"test:golden": "pnpm run build && pnpm run test:golden:run",
|
|
84
|
-
"test:golden:run": "node dist/scripts/golden.js",
|
|
85
|
-
"test:property": "pnpm run build && pnpm run test:property:run",
|
|
86
|
-
"test:property:run": "node --test 'dist/test/property/**/*.test.js'",
|
|
87
|
-
"test:fuzz": "pnpm run build && pnpm run test:fuzz:run",
|
|
88
|
-
"test:fuzz:run": "node --test 'dist/test/fuzz/**/*.test.js'",
|
|
89
|
-
"test:lsp": "pnpm run build && pnpm run test:lsp:run",
|
|
90
|
-
"test:lsp:run": "node dist/test/property/lsp-props.test.js",
|
|
91
|
-
"test:converter": "pnpm run build && pnpm run test:converter:run",
|
|
92
|
-
"test:converter:run": "node --test 'dist/test/policy-converter/**/*.test.js'",
|
|
93
|
-
"coverage:report": "c8 report --reporter=html --reporter=text",
|
|
94
|
-
"coverage:check": "c8 check-coverage --lines 75 --functions 75 --branches 70",
|
|
95
|
-
"lint": "eslint src scripts --ext .ts",
|
|
96
|
-
"lint:fix": "eslint src scripts --ext .ts --fix",
|
|
97
|
-
"format": "prettier --write src scripts",
|
|
98
|
-
"format:check": "prettier --check src scripts",
|
|
99
|
-
"typecheck": "tsc --noEmit",
|
|
100
|
-
"lsp": "node dist/src/lsp/server.js --stdio",
|
|
101
|
-
"repl": "node dist/scripts/repl.js",
|
|
102
|
-
"docs:api": "typedoc --options typedoc.json",
|
|
103
|
-
"prepublishOnly": "pnpm run clean && pnpm run build && pnpm run test"
|
|
104
|
-
},
|
|
105
80
|
"keywords": [
|
|
106
81
|
"programming-language",
|
|
107
82
|
"compiler",
|
|
@@ -142,6 +117,7 @@
|
|
|
142
117
|
},
|
|
143
118
|
"devDependencies": {
|
|
144
119
|
"@changesets/cli": "^2.29.8",
|
|
120
|
+
"esbuild": "^0.24.0",
|
|
145
121
|
"@types/node": "^24.6.0",
|
|
146
122
|
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
147
123
|
"@typescript-eslint/parser": "^8.45.0",
|
|
@@ -167,5 +143,37 @@
|
|
|
167
143
|
"publishConfig": {
|
|
168
144
|
"access": "public"
|
|
169
145
|
},
|
|
170
|
-
"
|
|
171
|
-
|
|
146
|
+
"scripts": {
|
|
147
|
+
"build": "tsc && node dist/scripts/build-peg.js",
|
|
148
|
+
"build:browser": "pnpm run build && node scripts/build-browser.js",
|
|
149
|
+
"build:watch": "tsc --watch",
|
|
150
|
+
"clean": "rm -rf dist",
|
|
151
|
+
"dev": "pnpm run build:watch",
|
|
152
|
+
"test": "pnpm run build && pnpm run test:unit:run && pnpm run test:integration:run",
|
|
153
|
+
"test:unit": "pnpm run build && pnpm run test:unit:run",
|
|
154
|
+
"test:unit:run": "node --test 'dist/test/unit/**/*.test.js' 'dist/test/type-checker/**/*.test.js'",
|
|
155
|
+
"test:unit:coverage": "pnpm run build && c8 node --test 'dist/test/unit/**/*.test.js' 'dist/test/type-checker/**/*.test.js'",
|
|
156
|
+
"test:integration": "pnpm run build && pnpm run test:integration:run",
|
|
157
|
+
"test:integration:run": "node --test 'dist/test/integration/**/*.test.js'",
|
|
158
|
+
"test:golden": "pnpm run build && pnpm run test:golden:run",
|
|
159
|
+
"test:golden:run": "node dist/scripts/golden.js",
|
|
160
|
+
"test:property": "pnpm run build && pnpm run test:property:run",
|
|
161
|
+
"test:property:run": "node --test 'dist/test/property/**/*.test.js'",
|
|
162
|
+
"test:fuzz": "pnpm run build && pnpm run test:fuzz:run",
|
|
163
|
+
"test:fuzz:run": "node --test 'dist/test/fuzz/**/*.test.js'",
|
|
164
|
+
"test:lsp": "pnpm run build && pnpm run test:lsp:run",
|
|
165
|
+
"test:lsp:run": "node dist/test/property/lsp-props.test.js",
|
|
166
|
+
"test:converter": "pnpm run build && pnpm run test:converter:run",
|
|
167
|
+
"test:converter:run": "node --test 'dist/test/policy-converter/**/*.test.js'",
|
|
168
|
+
"coverage:report": "c8 report --reporter=html --reporter=text",
|
|
169
|
+
"coverage:check": "c8 check-coverage --lines 75 --functions 75 --branches 70",
|
|
170
|
+
"lint": "eslint src scripts --ext .ts",
|
|
171
|
+
"lint:fix": "eslint src scripts --ext .ts --fix",
|
|
172
|
+
"format": "prettier --write src scripts",
|
|
173
|
+
"format:check": "prettier --check src scripts",
|
|
174
|
+
"typecheck": "tsc --noEmit",
|
|
175
|
+
"lsp": "node dist/src/lsp/server.js --stdio",
|
|
176
|
+
"repl": "node dist/scripts/repl.js",
|
|
177
|
+
"docs:api": "typedoc --options typedoc.json"
|
|
178
|
+
}
|
|
179
|
+
}
|