@nevescloud/pip 3.0.0 → 3.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/README.md CHANGED
@@ -37,6 +37,11 @@ const pip = createPip({ onSubmit: rt.onSubmit, onSlash: rt.onSlash, slashSource:
37
37
  import { createPip, createRuntime, openai } from 'https://cdn.jsdelivr.net/npm/@nevescloud/pip@latest/bundle/openai';
38
38
  ```
39
39
 
40
+ ```js
41
+ // Local — in-browser inference via transformers.js + WebGPU (different shape: no runtime, renderer is host-driven)
42
+ import { createPip, createTransformersRenderer } from 'https://cdn.jsdelivr.net/npm/@nevescloud/pip@latest/bundle/local';
43
+ ```
44
+
40
45
  `pip/bundle` (no provider segment) is an alias for `pip/bundle/anthropic` — the default when you haven't picked a brain. Bundles are sugar over the layered files; hosts with a different brain shape (UI only, custom provider, in-browser model) import the granular files directly. See [CONSUMERS.md](../../CONSUMERS.md) for the full entry-point list.
41
46
 
42
47
  ## Options
@@ -0,0 +1,9 @@
1
+ // Quickstart entry — pip wired to an in-browser model in one import.
2
+ // Re-exports the two primitives most local-renderer hosts compose.
3
+ // Different shape from bundle/anthropic and bundle/openai: there's no
4
+ // runtime here — the renderer is host-driven (one-shot generate),
5
+ // not part of the turn loop. Consumers shouldn't need to know which
6
+ // underlying library powers the renderer; that's why this entry exists.
7
+
8
+ export { createPip } from '../pip-core.esm.js';
9
+ export { createTransformersRenderer, splitThinking } from '../providers/local.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nevescloud/pip",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Floating assistant bubble + panel + chat runtime. ESM, no build.",
5
5
  "type": "module",
6
6
  "main": "pip-core.esm.js",
@@ -13,6 +13,8 @@
13
13
  "./bundle/anthropic.esm.js": "./bundle/anthropic.esm.js",
14
14
  "./bundle/openai": "./bundle/openai.esm.js",
15
15
  "./bundle/openai.esm.js": "./bundle/openai.esm.js",
16
+ "./bundle/local": "./bundle/local.esm.js",
17
+ "./bundle/local.esm.js": "./bundle/local.esm.js",
16
18
  "./providers/anthropic.esm.js": "./providers/anthropic.esm.js",
17
19
  "./providers/openai.esm.js": "./providers/openai.esm.js",
18
20
  "./providers/local.esm.js": "./providers/local.esm.js"