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