baml-sap-ts 0.1.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/CHANGELOG.md +36 -0
- package/LICENSE +21 -0
- package/README.md +355 -0
- package/dist/index.d.ts +180 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +274 -0
- package/dist/index.js.map +1 -0
- package/dist/json-extractor.d.ts +57 -0
- package/dist/json-extractor.d.ts.map +1 -0
- package/dist/json-extractor.js +382 -0
- package/dist/json-extractor.js.map +1 -0
- package/dist/schema-renderer.d.ts +34 -0
- package/dist/schema-renderer.d.ts.map +1 -0
- package/dist/schema-renderer.js +329 -0
- package/dist/schema-renderer.js.map +1 -0
- package/dist/type-coercer.d.ts +59 -0
- package/dist/type-coercer.d.ts.map +1 -0
- package/dist/type-coercer.js +589 -0
- package/dist/type-coercer.js.map +1 -0
- package/package.json +79 -0
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "baml-sap-ts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TypeScript implementation of BAML's Schema-Aligned Parsing (SAP) algorithm using TypeBox",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"CHANGELOG.md"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18.0.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc -p tsconfig.build.json",
|
|
30
|
+
"build:examples": "tsc -p tsconfig.examples.json",
|
|
31
|
+
"build:tests": "tsc -p tsconfig.test.json",
|
|
32
|
+
"clean": "rm -rf dist",
|
|
33
|
+
"prebuild": "npm run clean",
|
|
34
|
+
"test": "npm run build:tests && node --test dist/tests/*.js",
|
|
35
|
+
"example": "npm run build:examples && node dist/examples/basic-usage.js",
|
|
36
|
+
"lint": "biome lint src tests examples",
|
|
37
|
+
"lint:fix": "biome lint --write src tests examples",
|
|
38
|
+
"format": "biome format src tests examples",
|
|
39
|
+
"format:fix": "biome format --write src tests examples",
|
|
40
|
+
"check": "biome check src tests examples",
|
|
41
|
+
"check:fix": "biome check --write src tests examples",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"prepublishOnly": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"baml",
|
|
47
|
+
"sap",
|
|
48
|
+
"schema-aligned-parsing",
|
|
49
|
+
"llm",
|
|
50
|
+
"structured-output",
|
|
51
|
+
"typebox",
|
|
52
|
+
"json-extraction",
|
|
53
|
+
"prompt-engineering",
|
|
54
|
+
"ai",
|
|
55
|
+
"openai",
|
|
56
|
+
"anthropic"
|
|
57
|
+
],
|
|
58
|
+
"author": "aiamblichus <aiamblichus@fastmail.com>",
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/aiamblichus/baml-sap-ts.git"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/aiamblichus/baml-sap-ts/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/aiamblichus/baml-sap-ts#readme",
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@sinclair/typebox": "^0.34.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@biomejs/biome": "^2.3.5",
|
|
73
|
+
"@types/node": "^20.0.0",
|
|
74
|
+
"typescript": "^5.3.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@sinclair/typebox": "^0.32.0 || ^0.33.0 || ^0.34.0"
|
|
78
|
+
}
|
|
79
|
+
}
|