@aibranch/llm-meta-widget 0.8.0 → 0.8.1
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 +11 -1
- package/docs/custom-element-distribution.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ that is not Rails needs no gem, no template engine and no asset pipeline — two
|
|
|
124
124
|
lines of HTML:
|
|
125
125
|
|
|
126
126
|
```html
|
|
127
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.
|
|
127
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.8"></script>
|
|
128
128
|
<llm-meta-widget llm-url="https://your-meta-server.example"
|
|
129
129
|
model="qwen3-6-35b-fast"
|
|
130
130
|
greeting="Hi — ask me anything about this page."></llm-meta-widget>
|
|
@@ -135,6 +135,16 @@ instead of ERB. Both produce the same widget, so the advice in that section
|
|
|
135
135
|
— CORS, a reachable `llm_url`, the hub's name for the model — applies here
|
|
136
136
|
too.
|
|
137
137
|
|
|
138
|
+
**`@0.8` is a range, and it stops at 0.8.x on purpose.** You get patches without
|
|
139
|
+
touching your page, and you do not get a breaking release by surprise. The cost
|
|
140
|
+
is that moving to 0.9 is a deliberate edit: read [CHANGELOG.md](CHANGELOG.md)
|
|
141
|
+
first, because a major-or-minor bump here is where the page's own contract can
|
|
142
|
+
change — 0.8.0 changed the shape of `window.aiState`, and a page that followed
|
|
143
|
+
the new documentation while still loading `@0.7` would have had every state
|
|
144
|
+
value silently replaced by an error string. Rails hosts are protected from that
|
|
145
|
+
mismatch by the Gemfile constraint; a CDN embed has no such guard, so the
|
|
146
|
+
version in that URL is the guard.
|
|
147
|
+
|
|
138
148
|
Nothing else is needed: the stylesheets and the markdown renderer are bundled
|
|
139
149
|
in, and the element injects its own styles. The host serves no CSS and no JS.
|
|
140
150
|
|
|
@@ -17,7 +17,7 @@ reduced to the element tag. The gem keeps its helper signature, so
|
|
|
17
17
|
PubDictionaries needs no edit.
|
|
18
18
|
|
|
19
19
|
Landed since: the npm package and the CDN URL. `@aibranch/llm-meta-widget` is on
|
|
20
|
-
npm, and `https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.
|
|
20
|
+
npm, and `https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.8` resolves to
|
|
21
21
|
the bundle, so the two-line integration in the example below is now literally
|
|
22
22
|
true — no gem, no Rails and no self-hosting required. The gem and the npm package
|
|
23
23
|
ship the identical file, which is checked rather than assumed: both 0.7.2 copies
|
|
@@ -95,7 +95,7 @@ to npm and served from a CDN. Integration in any stack, or none:
|
|
|
95
95
|
|
|
96
96
|
```html
|
|
97
97
|
<script type="module"
|
|
98
|
-
src="https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.
|
|
98
|
+
src="https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.8"></script>
|
|
99
99
|
<llm-meta-widget llm-url="https://hub.aibranch.org"
|
|
100
100
|
tool-hub-url="https://hub.aibranch.org"
|
|
101
101
|
model="qwen3-8-27b-fast"
|
|
@@ -195,7 +195,7 @@ adopter of it.
|
|
|
195
195
|
The CDN URL has no path:
|
|
196
196
|
|
|
197
197
|
```
|
|
198
|
-
https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.
|
|
198
|
+
https://cdn.jsdelivr.net/npm/@aibranch/llm-meta-widget@0.8
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
`main` and `exports["."]` both point at the bundle, so jsdelivr resolves the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aibranch/llm-meta-widget",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"//version": "Must stay in step with lib/llm_meta_widget/version.rb. Two independently versioned copies of the same client is the drift docs/custom-element-distribution.md warns about: bump both, release both.",
|
|
5
5
|
"description": "Embeddable browser chat widget: a custom element that discovers tools at page, origin and hub scope and dispatches each tool call to the right one. Two lines of HTML on any host, Rails or not.",
|
|
6
6
|
"keywords": [
|