@plurnk/plurnk-grammar 0.76.10 → 1.0.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/package.json +63 -59
package/package.json
CHANGED
|
@@ -1,62 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=26"
|
|
12
|
-
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/src/index.d.ts",
|
|
16
|
-
"default": "./dist/src/index.js"
|
|
2
|
+
"name": "@plurnk/plurnk-grammar",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ANTLR4 grammar for the Plurnk LLM agent protocol",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
17
9
|
},
|
|
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
|
-
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=26"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/src/index.d.ts",
|
|
16
|
+
"plurnk-dev": "./src/index.ts",
|
|
17
|
+
"default": "./dist/src/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json",
|
|
20
|
+
"./plurnk.gbnf": "./dist/plurnk.gbnf",
|
|
21
|
+
"./schema/*.json": {
|
|
22
|
+
"plurnk-dev": "./schema/*.json",
|
|
23
|
+
"default": "./dist/schema/*.json"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"plurnk-grammar": "./bin/plurnk-grammar.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"bin/plurnk-grammar.js",
|
|
31
|
+
"dist/**/*",
|
|
32
|
+
"plurnk.md"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build:grammar": "antlr-ng -D language=TypeScript -o src/generated --generate-visitor true --generate-listener false plurnkLexer.g4 plurnkParser.g4 && node --conditions=plurnk-dev scriptify/fix-generated-imports.ts",
|
|
36
|
+
"build:types": "node --conditions=plurnk-dev scriptify/generate-types.ts",
|
|
37
|
+
"build:dist": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
38
|
+
"build:gbnf": "node --conditions=plurnk-dev scriptify/generate-gbnf.ts",
|
|
39
|
+
"build": "npm run build:grammar && npm run build:types && npm run build:dist && npm run build:gbnf",
|
|
40
|
+
"antlr:tokens": "testrig src/generated/plurnk document --tokens",
|
|
41
|
+
"antlr:trace": "testrig src/generated/plurnk document --trace",
|
|
42
|
+
"antlr:parse": "testrig src/generated/plurnk document --tree",
|
|
43
|
+
"test:lint": "tsc --noEmit",
|
|
44
|
+
"test:unit": "node --conditions=plurnk-dev --test test/unit/*.test.ts",
|
|
45
|
+
"test:intg": "node --conditions=plurnk-dev --test test/integration/*.test.ts",
|
|
46
|
+
"test:demo": "node --conditions=plurnk-dev --test test/demo/*.test.ts",
|
|
47
|
+
"test:smoke": "node --conditions=plurnk-dev scriptify/smoke-test.ts",
|
|
48
|
+
"test:llama": "node --conditions=plurnk-dev --test test/llama/*.test.ts",
|
|
49
|
+
"test:all": "npm run test:lint && npm run test:unit && npm run test:intg && npm run test:demo",
|
|
50
|
+
"test": "npm run test:all",
|
|
51
|
+
"deps:fresh": "npm outdated",
|
|
52
|
+
"prepublishOnly": "npm run deps:fresh && npm audit && npm run build && npm run test:all && npm run test:smoke",
|
|
53
|
+
"prepack": "npm run build",
|
|
54
|
+
"prepare": "npm run build:grammar && npm run build:types && npm run build:gbnf"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@cfworker/json-schema": "^4.1.1",
|
|
58
|
+
"antlr4ng": "^3.0.0",
|
|
59
|
+
"jsonpath-plus": "^10.4.0",
|
|
60
|
+
"xpath": "^0.0.34"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"antlr-ng": "^1.0.10",
|
|
64
|
+
"json-schema-to-typescript": "^15.0.4"
|
|
65
|
+
}
|
|
62
66
|
}
|