hazo_llm_api 1.2.10 → 1.2.11
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/README.md +28 -0
- package/package.json +31 -18
package/README.md
CHANGED
|
@@ -917,6 +917,34 @@ The PromptEditor bundles its own UI components (based on shadcn/ui) so consuming
|
|
|
917
917
|
- **Tailwind CSS** configured in the project
|
|
918
918
|
- **React 18+** as a peer dependency
|
|
919
919
|
|
|
920
|
+
### Tailwind v4 Setup (Required)
|
|
921
|
+
|
|
922
|
+
The PromptEditor component uses Tailwind CSS utility classes. If you're using **Tailwind v4**, you must add the following to your `globals.css` or main CSS file:
|
|
923
|
+
|
|
924
|
+
```css
|
|
925
|
+
@import "tailwindcss";
|
|
926
|
+
|
|
927
|
+
/* REQUIRED: Enable Tailwind to scan hazo_llm_api classes */
|
|
928
|
+
@source "../node_modules/hazo_llm_api/dist";
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
Without this directive, the PromptEditor styling will not work correctly. Symptoms include:
|
|
932
|
+
- Invisible or missing hover states
|
|
933
|
+
- Missing background colors and text colors
|
|
934
|
+
- Broken layout with flex/grid utilities
|
|
935
|
+
- Dialog/modal styling issues
|
|
936
|
+
|
|
937
|
+
**For Tailwind v3 users**, add hazo_llm_api to your content paths in `tailwind.config.ts`:
|
|
938
|
+
|
|
939
|
+
```typescript
|
|
940
|
+
export default {
|
|
941
|
+
content: [
|
|
942
|
+
// ... your other content paths
|
|
943
|
+
"./node_modules/hazo_llm_api/dist/**/*.{js,ts,jsx,tsx}",
|
|
944
|
+
],
|
|
945
|
+
}
|
|
946
|
+
```
|
|
947
|
+
|
|
920
948
|
## hazo_connect Abstraction
|
|
921
949
|
|
|
922
950
|
The `hazo_connect` interface provides a unified way to access prompt data, whether from a REST API (client-side) or directly from the database (server-side).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_llm_api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Wrapper to call different LLMs and includes prompt management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LLM",
|
|
@@ -52,41 +52,54 @@
|
|
|
52
52
|
"techdoc.md",
|
|
53
53
|
"config/hazo_llm_api_config.ini"
|
|
54
54
|
],
|
|
55
|
-
"workspaces": [
|
|
56
|
-
"test-app"
|
|
57
|
-
],
|
|
58
55
|
"scripts": {
|
|
59
56
|
"build": "tsc -p tsconfig.build.json",
|
|
60
57
|
"dev:package": "tsc -p tsconfig.build.json --watch",
|
|
61
|
-
"dev:test-app": "npm run dev
|
|
62
|
-
"build:test-app": "npm run build
|
|
63
|
-
"start:test-app": "
|
|
58
|
+
"dev:test-app": "cd test-app && npm run dev",
|
|
59
|
+
"build:test-app": "cd test-app && npm run build",
|
|
60
|
+
"start:test-app": "cd test-app && npm start",
|
|
64
61
|
"install:all": "npm install",
|
|
65
62
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
66
63
|
},
|
|
67
64
|
"dependencies": {
|
|
68
|
-
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
69
|
-
"@radix-ui/react-checkbox": "^1.1.4",
|
|
70
|
-
"@radix-ui/react-dialog": "^1.1.5",
|
|
71
|
-
"@radix-ui/react-tooltip": "^1.1.7",
|
|
72
65
|
"class-variance-authority": "^0.7.1",
|
|
73
66
|
"clsx": "^2.1.1",
|
|
74
|
-
"hazo_ui": ">=2.0.0",
|
|
75
67
|
"ini": "^6.0.0",
|
|
76
|
-
"lucide-react": "^0.474.0",
|
|
77
68
|
"sql.js": "^1.10.0",
|
|
78
|
-
"tailwind-merge": "^2.6.0"
|
|
79
|
-
"winston": "^3.17.0",
|
|
80
|
-
"winston-daily-rotate-file": "^5.0.0"
|
|
69
|
+
"tailwind-merge": "^2.6.0"
|
|
81
70
|
},
|
|
82
71
|
"engines": {
|
|
83
72
|
"node": ">=18.0.0"
|
|
84
73
|
},
|
|
85
74
|
"peerDependencies": {
|
|
86
|
-
"react": "^
|
|
87
|
-
"react-
|
|
75
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
76
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
77
|
+
"@radix-ui/react-dialog": "^1.1.5",
|
|
78
|
+
"@radix-ui/react-tooltip": "^1.1.7",
|
|
79
|
+
"hazo_ui": ">=2.0.0",
|
|
80
|
+
"lucide-react": ">=0.300.0",
|
|
81
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
82
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
88
83
|
},
|
|
89
84
|
"peerDependenciesMeta": {
|
|
85
|
+
"@radix-ui/react-alert-dialog": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@radix-ui/react-checkbox": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@radix-ui/react-dialog": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@radix-ui/react-tooltip": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"hazo_ui": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"lucide-react": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
90
103
|
"react": {
|
|
91
104
|
"optional": true
|
|
92
105
|
},
|