datacontract-editor 0.1.2 → 0.1.3
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 +38 -0
- package/dist/{cssMode-BoVWulKV.js → cssMode-D1BKMuoE.js} +1 -1
- package/dist/datacontract-editor.css +1 -1
- package/dist/datacontract-editor.es.js +1 -1
- package/dist/{embed-yrOtk_lG.js → embed-BTxQKyKe.js} +85836 -67071
- package/dist/{freemarker2-C4Imb4UF.js → freemarker2-DJroF-Hr.js} +1 -1
- package/dist/{handlebars-Dpgc8rzt.js → handlebars-raeUt1yS.js} +1 -1
- package/dist/{html-xjtrvWbc.js → html-BCS0QY_V.js} +1 -1
- package/dist/{htmlMode-BoHcn1kx.js → htmlMode-DZYoBGlS.js} +1 -1
- package/dist/index.html +12 -0
- package/dist/{javascript-CnjotNG-.js → javascript-urT9PDrD.js} +1 -1
- package/dist/{jsonMode-DTcm72fY.js → jsonMode-BRpyrU87.js} +1 -1
- package/dist/{liquid-BONgCFz5.js → liquid-BoBEJBsD.js} +1 -1
- package/dist/{mdx-EGJ0P1ky.js → mdx-7D_sT_ZF.js} +1 -1
- package/dist/{python-h_TnfyN_.js → python-EsNGCgP9.js} +1 -1
- package/dist/{razor-DnDxOyC_.js → razor-CK2egutP.js} +1 -1
- package/dist/{tsMode-TqmC4AwV.js → tsMode-Cf0dGAkO.js} +1 -1
- package/dist/{typescript-DLRq2sRy.js → typescript-C36W7Z-E.js} +1 -1
- package/dist/{xml-Du2bjeJj.js → xml-B0NnrJ3h.js} +1 -1
- package/dist/{yaml-CKc6p_JG.js → yaml-Bk4-_-GX.js} +1 -1
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -51,6 +51,44 @@ docker run -d -p 4173:4173 datacontract/editor
|
|
|
51
51
|
|
|
52
52
|
Then open http://localhost:4173
|
|
53
53
|
|
|
54
|
+
#### Configure AI Assistant
|
|
55
|
+
|
|
56
|
+
The AI Assistant is disabled by default in Docker. To enable it, provide your own OpenAI-compatible endpoint:
|
|
57
|
+
|
|
58
|
+
**OpenAI:**
|
|
59
|
+
```bash
|
|
60
|
+
docker run -d -p 4173:4173 \
|
|
61
|
+
-e AI_ENDPOINT=https://api.openai.com/v1/chat/completions \
|
|
62
|
+
-e AI_API_KEY=sk-your-api-key \
|
|
63
|
+
-e AI_MODEL=gpt-4o \
|
|
64
|
+
datacontract/editor
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Azure OpenAI:**
|
|
68
|
+
```bash
|
|
69
|
+
docker run -d -p 4173:4173 \
|
|
70
|
+
-e AI_ENDPOINT=https://your-resource.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-15-preview \
|
|
71
|
+
-e AI_API_KEY=your-azure-key \
|
|
72
|
+
-e AI_AUTH_HEADER=api-key \
|
|
73
|
+
datacontract/editor
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Local LLM (Ollama):**
|
|
77
|
+
```bash
|
|
78
|
+
docker run -d -p 4173:4173 \
|
|
79
|
+
-e AI_ENDPOINT=http://host.docker.internal:11434/v1/chat/completions \
|
|
80
|
+
-e AI_API_KEY=ollama \
|
|
81
|
+
-e AI_MODEL=llama3.2 \
|
|
82
|
+
datacontract/editor
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
| Variable | Description | Default |
|
|
86
|
+
|----------|-------------|---------|
|
|
87
|
+
| `AI_ENDPOINT` | OpenAI-compatible chat completions URL | Hosted API |
|
|
88
|
+
| `AI_API_KEY` | API key for authentication | Hosted API |
|
|
89
|
+
| `AI_MODEL` | Model name | `gpt-4o` |
|
|
90
|
+
| `AI_AUTH_HEADER` | Auth header: `bearer` or `api-key` | `bearer` |
|
|
91
|
+
|
|
54
92
|
|
|
55
93
|
### Data Contract CLI
|
|
56
94
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as tt } from "./embed-
|
|
1
|
+
import { m as tt } from "./embed-BTxQKyKe.js";
|
|
2
2
|
var rt = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, it = Object.getOwnPropertyNames, ot = Object.prototype.hasOwnProperty, at = (e, n, i, r) => {
|
|
3
3
|
if (n && typeof n == "object" || typeof n == "function")
|
|
4
4
|
for (let t of it(n))
|