@sable-ai/sdk-core 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.
Files changed (46) hide show
  1. package/README.md +55 -0
  2. package/dist/esm/index.js +2431 -0
  3. package/dist/sable.iife.js +1486 -0
  4. package/dist/types/browser-bridge/actions.d.ts +27 -0
  5. package/dist/types/browser-bridge/dom-state.d.ts +37 -0
  6. package/dist/types/browser-bridge/index.d.ts +19 -0
  7. package/dist/types/connection/index.d.ts +26 -0
  8. package/dist/types/events/index.d.ts +15 -0
  9. package/dist/types/global.d.ts +26 -0
  10. package/dist/types/index.d.ts +23 -0
  11. package/dist/types/rpc.d.ts +22 -0
  12. package/dist/types/runtime/clipboard.d.ts +14 -0
  13. package/dist/types/runtime/index.d.ts +36 -0
  14. package/dist/types/runtime/video-overlay.d.ts +14 -0
  15. package/dist/types/session/debug-panel.d.ts +29 -0
  16. package/dist/types/session/index.d.ts +41 -0
  17. package/dist/types/types/index.d.ts +131 -0
  18. package/dist/types/version.d.ts +7 -0
  19. package/dist/types/vision/frame-source.d.ts +34 -0
  20. package/dist/types/vision/index.d.ts +29 -0
  21. package/dist/types/vision/publisher.d.ts +44 -0
  22. package/dist/types/vision/wireframe.d.ts +22 -0
  23. package/package.json +61 -0
  24. package/src/assets/visible-dom.js.txt +764 -0
  25. package/src/assets/wireframe.js.txt +678 -0
  26. package/src/assets.d.ts +24 -0
  27. package/src/browser-bridge/actions.ts +161 -0
  28. package/src/browser-bridge/dom-state.ts +103 -0
  29. package/src/browser-bridge/index.ts +99 -0
  30. package/src/connection/index.ts +49 -0
  31. package/src/events/index.ts +50 -0
  32. package/src/global.ts +35 -0
  33. package/src/index.test.ts +6 -0
  34. package/src/index.ts +43 -0
  35. package/src/rpc.ts +31 -0
  36. package/src/runtime/clipboard.ts +47 -0
  37. package/src/runtime/index.ts +138 -0
  38. package/src/runtime/video-overlay.ts +94 -0
  39. package/src/session/debug-panel.ts +254 -0
  40. package/src/session/index.ts +375 -0
  41. package/src/types/index.ts +176 -0
  42. package/src/version.ts +8 -0
  43. package/src/vision/frame-source.ts +111 -0
  44. package/src/vision/index.ts +70 -0
  45. package/src/vision/publisher.ts +106 -0
  46. package/src/vision/wireframe.ts +43 -0
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@sable-ai/sdk-core",
3
+ "version": "0.1.0",
4
+ "description": "Sable SDK core — headless runtime (voice + vision + agent RPC) that runs in the user's browser.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": [
8
+ "./dist/sable.iife.js",
9
+ "./dist/esm/index.js"
10
+ ],
11
+ "main": "./dist/esm/index.js",
12
+ "module": "./dist/esm/index.js",
13
+ "types": "./dist/types/index.d.ts",
14
+ "unpkg": "./dist/sable.iife.js",
15
+ "jsdelivr": "./dist/sable.iife.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/types/index.d.ts",
19
+ "import": "./dist/esm/index.js",
20
+ "default": "./dist/esm/index.js"
21
+ },
22
+ "./iife": "./dist/sable.iife.js",
23
+ "./package.json": "./package.json"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "src",
28
+ "README.md"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "provenance": true
33
+ },
34
+ "scripts": {
35
+ "clean": "rm -rf dist",
36
+ "build": "bun run clean && bun run build:iife && bun run build:esm && bun run build:types",
37
+ "build:iife": "bun build src/index.ts --outfile dist/sable.iife.js --format=iife --minify",
38
+ "build:esm": "bun build src/index.ts --outdir dist/esm --format=esm --target=browser --external livekit-client",
39
+ "build:types": "tsc -p tsconfig.build.json",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "bun test",
42
+ "prepublishOnly": "bun run typecheck && bun test && bun run build"
43
+ },
44
+ "dependencies": {
45
+ "livekit-client": "^2.17.0"
46
+ },
47
+ "keywords": [
48
+ "sable",
49
+ "voice-agent",
50
+ "ai",
51
+ "webrtc",
52
+ "livekit",
53
+ "browser-automation"
54
+ ],
55
+ "homepage": "https://withsable.com",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "https://github.com/sable-inc/js-sdk.git",
59
+ "directory": "packages/sdk-core"
60
+ }
61
+ }