@elizaos/capacitor-bun-runtime 2.0.3-beta.2 → 2.0.3-beta.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.
@@ -1,5 +1,5 @@
1
- import type { ElizaBunRuntimePlugin } from "./definitions";
2
- export * from "./definitions";
1
+ import type { ElizaBunRuntimePlugin } from "./definitions.js";
2
+ export * from "./definitions.js";
3
3
  /**
4
4
  * The native plugin is registered under the JS name `ElizaBunRuntime`. The
5
5
  * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,cAAc,eAAe,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,eAAe,uBAK3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,cAAc,kBAAkB,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,eAAe,uBAK3B,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { registerPlugin } from "@capacitor/core";
2
- export * from "./definitions";
2
+ export * from "./definitions.js";
3
3
  /**
4
4
  * The native plugin is registered under the JS name `ElizaBunRuntime`. The
5
5
  * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`
6
6
  * exposes the matching `jsName`.
7
7
  */
8
8
  export const ElizaBunRuntime = registerPlugin("ElizaBunRuntime", {
9
- web: () => import("./web").then((m) => new m.ElizaBunRuntimeWeb()),
9
+ web: () => import("./web.js").then((m) => new m.ElizaBunRuntimeWeb()),
10
10
  });
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,cAAc,eAAe,CAAC;AAE9B;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAC3C,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACnE,CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,cAAc,kBAAkB,CAAC;AAEjC;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAC3C,iBAAiB,EACjB;IACE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;CACtE,CACF,CAAC"}
package/dist/esm/web.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
- import type { CallOptions, CallResult, ElizaBunRuntimePlugin, GetStatusResult, LocalTtsDiagnosticsOptions, LocalTtsDiagnosticsResult, LocalTtsStatusResult, SendMessageOptions, SendMessageResult, SynthesizeLocalTtsOptions, SynthesizeLocalTtsResult, StartOptions, StartResult } from "./definitions";
2
+ import type { CallOptions, CallResult, ElizaBunRuntimePlugin, GetStatusResult, LocalTtsDiagnosticsOptions, LocalTtsDiagnosticsResult, LocalTtsStatusResult, SendMessageOptions, SendMessageResult, SynthesizeLocalTtsOptions, SynthesizeLocalTtsResult, StartOptions, StartResult } from "./definitions.js";
3
3
  /**
4
4
  * Web fallback for `@elizaos/capacitor-bun-runtime`.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,qBAAa,kBACX,SAAQ,SACR,YAAW,qBAAqB;IAE1B,KAAK,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAQnD,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMrE,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAIrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,iBAAiB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IASlD,sBAAsB,CAC1B,QAAQ,CAAC,EAAE,0BAA0B,GACpC,OAAO,CAAC,yBAAyB,CAAC;IAQ/B,kBAAkB,CACtB,QAAQ,EAAE,yBAAyB,GAClC,OAAO,CAAC,wBAAwB,CAAC;IAM9B,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;CAGvD"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,qBAAa,kBACX,SAAQ,SACR,YAAW,qBAAqB;IAE1B,KAAK,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAQnD,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMrE,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAIrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,iBAAiB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IASlD,sBAAsB,CAC1B,QAAQ,CAAC,EAAE,0BAA0B,GACpC,OAAO,CAAC,yBAAyB,CAAC;IAQ/B,kBAAkB,CACtB,QAAQ,EAAE,yBAAyB,GAClC,OAAO,CAAC,wBAAwB,CAAC;IAM9B,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;CAGvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nexport * from \"./definitions\";\n/**\n * The native plugin is registered under the JS name `ElizaBunRuntime`. The\n * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`\n * exposes the matching `jsName`.\n */\nexport const ElizaBunRuntime = registerPlugin(\"ElizaBunRuntime\", {\n web: () => import(\"./web\").then((m) => new m.ElizaBunRuntimeWeb()),\n});\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\n/**\n * Web fallback for `@elizaos/capacitor-bun-runtime`.\n *\n * Browser environments do not host the native runtime. This implementation\n * reports an unavailable status and throws clear errors for runtime calls.\n */\nexport class ElizaBunRuntimeWeb extends WebPlugin {\n async start(_options) {\n return {\n ok: false,\n error: \"ElizaBunRuntime is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async sendMessage(_options) {\n throw this.unavailable(\"ElizaBunRuntime.sendMessage is unavailable on web.\");\n }\n async getStatus() {\n return { ready: false };\n }\n async stop() {\n return;\n }\n async getLocalTtsStatus() {\n return {\n ready: false,\n status: \"unavailable\",\n message: \"ElizaBunRuntime local TTS is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async getLocalTtsDiagnostics(_options) {\n return {\n available: false,\n message: \"ElizaBunRuntime local TTS diagnostics are not available on web. Run on an iOS device or simulator.\",\n };\n }\n async synthesizeLocalTts(_options) {\n throw this.unavailable(\"ElizaBunRuntime.synthesizeLocalTts is unavailable on web.\");\n }\n async call(_options) {\n throw this.unavailable(\"ElizaBunRuntime.call is unavailable on web.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACY,MAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;AACjE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACtE,CAAC;;ACRD;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;AAC1B,QAAQ,OAAO;AACf,YAAY,EAAE,EAAE,KAAK;AACrB,YAAY,KAAK,EAAE,6EAA6E;AAChG,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;AAChC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,oDAAoD,CAAC;AACpF,IAAI;AACJ,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/B,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ;AACR,IAAI;AACJ,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO;AACf,YAAY,KAAK,EAAE,KAAK;AACxB,YAAY,MAAM,EAAE,aAAa;AACjC,YAAY,OAAO,EAAE,uFAAuF;AAC5G,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,sBAAsB,CAAC,QAAQ,EAAE;AAC3C,QAAQ,OAAO;AACf,YAAY,SAAS,EAAE,KAAK;AAC5B,YAAY,OAAO,EAAE,oGAAoG;AACzH,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,kBAAkB,CAAC,QAAQ,EAAE;AACvC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,2DAA2D,CAAC;AAC3F,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,6CAA6C,CAAC;AAC7E,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nexport * from \"./definitions.js\";\n/**\n * The native plugin is registered under the JS name `ElizaBunRuntime`. The\n * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`\n * exposes the matching `jsName`.\n */\nexport const ElizaBunRuntime = registerPlugin(\"ElizaBunRuntime\", {\n web: () => import(\"./web.js\").then((m) => new m.ElizaBunRuntimeWeb()),\n});\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\n/**\n * Web fallback for `@elizaos/capacitor-bun-runtime`.\n *\n * Browser environments do not host the native runtime. This implementation\n * reports an unavailable status and throws clear errors for runtime calls.\n */\nexport class ElizaBunRuntimeWeb extends WebPlugin {\n async start(_options) {\n return {\n ok: false,\n error: \"ElizaBunRuntime is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async sendMessage(_options) {\n throw this.unavailable(\"ElizaBunRuntime.sendMessage is unavailable on web.\");\n }\n async getStatus() {\n return { ready: false };\n }\n async stop() {\n return;\n }\n async getLocalTtsStatus() {\n return {\n ready: false,\n status: \"unavailable\",\n message: \"ElizaBunRuntime local TTS is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async getLocalTtsDiagnostics(_options) {\n return {\n available: false,\n message: \"ElizaBunRuntime local TTS diagnostics are not available on web. Run on an iOS device or simulator.\",\n };\n }\n async synthesizeLocalTts(_options) {\n throw this.unavailable(\"ElizaBunRuntime.synthesizeLocalTts is unavailable on web.\");\n }\n async call(_options) {\n throw this.unavailable(\"ElizaBunRuntime.call is unavailable on web.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACY,MAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;AACjE,IAAI,GAAG,EAAE,MAAM,mDAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;AACzE,CAAC;;ACRD;AACA;AACA;AACA;AACA;AACA;AACO,MAAM,kBAAkB,SAASC,cAAS,CAAC;AAClD,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;AAC1B,QAAQ,OAAO;AACf,YAAY,EAAE,EAAE,KAAK;AACrB,YAAY,KAAK,EAAE,6EAA6E;AAChG,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;AAChC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,oDAAoD,CAAC;AACpF,IAAI;AACJ,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;AAC/B,IAAI;AACJ,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ;AACR,IAAI;AACJ,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO;AACf,YAAY,KAAK,EAAE,KAAK;AACxB,YAAY,MAAM,EAAE,aAAa;AACjC,YAAY,OAAO,EAAE,uFAAuF;AAC5G,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,sBAAsB,CAAC,QAAQ,EAAE;AAC3C,QAAQ,OAAO;AACf,YAAY,SAAS,EAAE,KAAK;AAC5B,YAAY,OAAO,EAAE,oGAAoG;AACzH,SAAS;AACT,IAAI;AACJ,IAAI,MAAM,kBAAkB,CAAC,QAAQ,EAAE;AACvC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,2DAA2D,CAAC;AAC3F,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,6CAA6C,CAAC;AAC7E,IAAI;AACJ;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nexport * from \"./definitions\";\n/**\n * The native plugin is registered under the JS name `ElizaBunRuntime`. The\n * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`\n * exposes the matching `jsName`.\n */\nexport const ElizaBunRuntime = registerPlugin(\"ElizaBunRuntime\", {\n web: () => import(\"./web\").then((m) => new m.ElizaBunRuntimeWeb()),\n});\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\n/**\n * Web fallback for `@elizaos/capacitor-bun-runtime`.\n *\n * Browser environments do not host the native runtime. This implementation\n * reports an unavailable status and throws clear errors for runtime calls.\n */\nexport class ElizaBunRuntimeWeb extends WebPlugin {\n async start(_options) {\n return {\n ok: false,\n error: \"ElizaBunRuntime is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async sendMessage(_options) {\n throw this.unavailable(\"ElizaBunRuntime.sendMessage is unavailable on web.\");\n }\n async getStatus() {\n return { ready: false };\n }\n async stop() {\n return;\n }\n async getLocalTtsStatus() {\n return {\n ready: false,\n status: \"unavailable\",\n message: \"ElizaBunRuntime local TTS is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async getLocalTtsDiagnostics(_options) {\n return {\n available: false,\n message: \"ElizaBunRuntime local TTS diagnostics are not available on web. Run on an iOS device or simulator.\",\n };\n }\n async synthesizeLocalTts(_options) {\n throw this.unavailable(\"ElizaBunRuntime.synthesizeLocalTts is unavailable on web.\");\n }\n async call(_options) {\n throw this.unavailable(\"ElizaBunRuntime.call is unavailable on web.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;IAEA;IACA;IACA;IACA;IACA;AACY,UAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;IACjE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACtE,CAAC;;ICRD;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;IAC1B,QAAQ,OAAO;IACf,YAAY,EAAE,EAAE,KAAK;IACrB,YAAY,KAAK,EAAE,6EAA6E;IAChG,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;IAChC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,oDAAoD,CAAC;IACpF,IAAI;IACJ,IAAI,MAAM,SAAS,GAAG;IACtB,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,IAAI;IACJ,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ;IACR,IAAI;IACJ,IAAI,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,OAAO;IACf,YAAY,KAAK,EAAE,KAAK;IACxB,YAAY,MAAM,EAAE,aAAa;IACjC,YAAY,OAAO,EAAE,uFAAuF;IAC5G,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,sBAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,OAAO;IACf,YAAY,SAAS,EAAE,KAAK;IAC5B,YAAY,OAAO,EAAE,oGAAoG;IACzH,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,kBAAkB,CAAC,QAAQ,EAAE;IACvC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,2DAA2D,CAAC;IAC3F,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,6CAA6C,CAAC;IAC7E,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nexport * from \"./definitions.js\";\n/**\n * The native plugin is registered under the JS name `ElizaBunRuntime`. The\n * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`\n * exposes the matching `jsName`.\n */\nexport const ElizaBunRuntime = registerPlugin(\"ElizaBunRuntime\", {\n web: () => import(\"./web.js\").then((m) => new m.ElizaBunRuntimeWeb()),\n});\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\n/**\n * Web fallback for `@elizaos/capacitor-bun-runtime`.\n *\n * Browser environments do not host the native runtime. This implementation\n * reports an unavailable status and throws clear errors for runtime calls.\n */\nexport class ElizaBunRuntimeWeb extends WebPlugin {\n async start(_options) {\n return {\n ok: false,\n error: \"ElizaBunRuntime is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async sendMessage(_options) {\n throw this.unavailable(\"ElizaBunRuntime.sendMessage is unavailable on web.\");\n }\n async getStatus() {\n return { ready: false };\n }\n async stop() {\n return;\n }\n async getLocalTtsStatus() {\n return {\n ready: false,\n status: \"unavailable\",\n message: \"ElizaBunRuntime local TTS is not available on web. Run on an iOS device or simulator.\",\n };\n }\n async getLocalTtsDiagnostics(_options) {\n return {\n available: false,\n message: \"ElizaBunRuntime local TTS diagnostics are not available on web. Run on an iOS device or simulator.\",\n };\n }\n async synthesizeLocalTts(_options) {\n throw this.unavailable(\"ElizaBunRuntime.synthesizeLocalTts is unavailable on web.\");\n }\n async call(_options) {\n throw this.unavailable(\"ElizaBunRuntime.call is unavailable on web.\");\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;IAEA;IACA;IACA;IACA;IACA;AACY,UAAC,eAAe,GAAGA,mBAAc,CAAC,iBAAiB,EAAE;IACjE,IAAI,GAAG,EAAE,MAAM,mDAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,kBAAkB,EAAE,CAAC;IACzE,CAAC;;ICRD;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,kBAAkB,SAASC,cAAS,CAAC;IAClD,IAAI,MAAM,KAAK,CAAC,QAAQ,EAAE;IAC1B,QAAQ,OAAO;IACf,YAAY,EAAE,EAAE,KAAK;IACrB,YAAY,KAAK,EAAE,6EAA6E;IAChG,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;IAChC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,oDAAoD,CAAC;IACpF,IAAI;IACJ,IAAI,MAAM,SAAS,GAAG;IACtB,QAAQ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC/B,IAAI;IACJ,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ;IACR,IAAI;IACJ,IAAI,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,OAAO;IACf,YAAY,KAAK,EAAE,KAAK;IACxB,YAAY,MAAM,EAAE,aAAa;IACjC,YAAY,OAAO,EAAE,uFAAuF;IAC5G,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,sBAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,OAAO;IACf,YAAY,SAAS,EAAE,KAAK;IAC5B,YAAY,OAAO,EAAE,oGAAoG;IACzH,SAAS;IACT,IAAI;IACJ,IAAI,MAAM,kBAAkB,CAAC,QAAQ,EAAE;IACvC,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,2DAA2D,CAAC;IAC3F,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,MAAM,IAAI,CAAC,WAAW,CAAC,6CAA6C,CAAC;IAC7E,IAAI;IACJ;;;;;;;;;;;;;;;"}
@@ -459,7 +459,7 @@ public class ElizaBunRuntimePlugin: CAPPlugin, CAPBridgedPlugin {
459
459
  "kokoroGgufVoice": describeFile(bundle.appendingPathComponent("tts/kokoro/voices/af_bella.bin")),
460
460
  "legacyOmniVoiceBase": describeFile(bundle.appendingPathComponent("tts/omnivoice-base-Q4_K_M.gguf")),
461
461
  "legacyOmniVoiceTokenizer": describeFile(bundle.appendingPathComponent("tts/omnivoice-tokenizer-Q4_K_M.gguf")),
462
- "text": describeFile(bundle.appendingPathComponent("text/eliza-1-0_8b-128k.gguf")),
462
+ "text": describeFile(bundle.appendingPathComponent("text/eliza-1-2b-128k.gguf")),
463
463
  "asr": describeFile(bundle.appendingPathComponent("asr/eliza-1-asr.gguf")),
464
464
  "manifest": describeFile(bundle.appendingPathComponent("eliza-1.manifest.json")),
465
465
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/capacitor-bun-runtime",
3
- "version": "2.0.3-beta.2",
3
+ "version": "2.0.3-beta.3",
4
4
  "description": "Embedded Bun-shape JS runtime bridge for iOS and Android",
5
5
  "keywords": [
6
6
  "capacitor",
@@ -64,5 +64,5 @@
64
64
  "podName": "ElizaosCapacitorBunRuntime"
65
65
  }
66
66
  },
67
- "gitHead": "82fe0f44215954c2417328203f5bd6510985c1fc"
67
+ "gitHead": "f54b0f4eaed317d59fa7dbcdce20f4cdb0734420"
68
68
  }
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { registerPlugin } from "@capacitor/core";
2
- import type { ElizaBunRuntimePlugin } from "./definitions";
2
+ import type { ElizaBunRuntimePlugin } from "./definitions.js";
3
3
 
4
- export * from "./definitions";
4
+ export * from "./definitions.js";
5
5
 
6
6
  /**
7
7
  * The native plugin is registered under the JS name `ElizaBunRuntime`. The
@@ -11,6 +11,6 @@ export * from "./definitions";
11
11
  export const ElizaBunRuntime = registerPlugin<ElizaBunRuntimePlugin>(
12
12
  "ElizaBunRuntime",
13
13
  {
14
- web: () => import("./web").then((m) => new m.ElizaBunRuntimeWeb()),
14
+ web: () => import("./web.js").then((m) => new m.ElizaBunRuntimeWeb()),
15
15
  },
16
16
  );
package/src/web.ts CHANGED
@@ -13,7 +13,7 @@ import type {
13
13
  SynthesizeLocalTtsResult,
14
14
  StartOptions,
15
15
  StartResult,
16
- } from "./definitions";
16
+ } from "./definitions.js";
17
17
 
18
18
  /**
19
19
  * Web fallback for `@elizaos/capacitor-bun-runtime`.
@@ -1,136 +0,0 @@
1
- /**
2
- * @elizaos/capacitor-bun-runtime — iOS embedded Bun-shape JS runtime.
3
- *
4
- * Hosts a JavaScriptCore JSContext on a dedicated worker thread. The native
5
- * plugin either starts a bundled full Bun engine framework or installs the
6
- * `__ELIZA_BRIDGE__` host functions for the compatibility JSContext path.
7
- * The full-engine ABI lives in packages/native/bun-runtime/BRIDGE_CONTRACT.md.
8
- *
9
- * The plugin exposes a tiny surface to the React UI: start the runtime,
10
- * send messages, check status, and stop it. Everything else flows over the
11
- * `ui_post_message` / `ui_register_handler` channel inside the native side.
12
- */
13
- export interface StartOptions {
14
- /**
15
- * Runtime engine selection:
16
- * - "auto" (default): use a bundled full Bun engine when present. The
17
- * JSContext compatibility fallback is for development/sideload builds only;
18
- * iOS store local mode must request "bun" and fail if the engine is missing.
19
- * - "bun": require ElizaBunEngine.framework and fail if it is missing.
20
- * - "compat": force the JSContext compatibility bridge for development.
21
- */
22
- engine?: "auto" | "bun" | "compat";
23
- /**
24
- * Path to the agent bundle JavaScript file. When omitted, the runtime
25
- * loads the staged iOS agent payload from `public/agent/agent-bundle.js`
26
- * in the main app bundle resources. Legacy JSContext development bundles
27
- * named `agent-bundle-ios.js` are still probed for compatibility.
28
- * Use this only for development overrides.
29
- */
30
- bundlePath?: string;
31
- /**
32
- * Optional polyfill prefix loaded before the agent bundle. When omitted,
33
- * the runtime loads `eliza-polyfill-prefix.js` from the main app bundle
34
- * resources, or falls back to a minimal embedded prefix.
35
- */
36
- polyfillPath?: string;
37
- /**
38
- * Initial environment variables visible to the agent via `env_get` / `env_keys`.
39
- */
40
- env?: Record<string, string>;
41
- /**
42
- * argv vector exposed to the agent via `argv()`. Defaults to
43
- * `["bun", "public/agent/agent-bundle.js"]`.
44
- */
45
- argv?: string[];
46
- }
47
- export interface StartResult {
48
- ok: boolean;
49
- error?: string;
50
- /** Version string emitted by `__ELIZA_BRIDGE_VERSION__`. */
51
- bridgeVersion?: string;
52
- }
53
- export interface SendMessageOptions {
54
- message: string;
55
- /** Optional conversation/thread identifier passed through to the agent. */
56
- conversationId?: string;
57
- }
58
- export interface SendMessageResult {
59
- reply: string;
60
- }
61
- export interface GetStatusResult {
62
- ready: boolean;
63
- /** Active runtime engine: full Bun framework or compatibility bridge. */
64
- engine?: "bun" | "compat";
65
- /** Currently loaded llama model path, if any. */
66
- model?: string;
67
- /** Last observed generation throughput. */
68
- tokensPerSecond?: number;
69
- /** Bridge version string, e.g. "v1". */
70
- bridgeVersion?: string;
71
- }
72
- /**
73
- * Generic call surface for any UI handler the agent has registered via
74
- * `bridge.ui_register_handler`. The React UI passes a method name and args;
75
- * the native plugin dispatches into the JSContext and returns the result.
76
- */
77
- export interface CallOptions {
78
- method: string;
79
- args?: unknown;
80
- }
81
- export interface CallResult {
82
- result: unknown;
83
- }
84
- export interface LocalTtsStatusResult {
85
- ready: boolean;
86
- status: "assets-ready" | "engine-ready" | "ready" | "missing" | "unavailable";
87
- message: string;
88
- modelId?: string;
89
- bundleDir?: string;
90
- }
91
- export interface LocalTtsDiagnosticsOptions {
92
- bundleDir?: string;
93
- probe?: boolean;
94
- text?: string;
95
- }
96
- export interface LocalTtsDiagnosticsResult {
97
- available: boolean;
98
- selectedBundleDir?: string;
99
- modelId?: string;
100
- message?: string;
101
- [key: string]: unknown;
102
- }
103
- export interface SynthesizeLocalTtsOptions {
104
- text: string;
105
- bundleDir?: string;
106
- speakerPresetId?: string;
107
- voice?: string;
108
- voiceId?: string;
109
- maxSamples?: number;
110
- play?: boolean;
111
- }
112
- export interface SynthesizeLocalTtsResult {
113
- audioBase64?: string;
114
- contentType: "audio/wav";
115
- sampleRate: number;
116
- samples: number;
117
- durationMs: number;
118
- modelId?: string;
119
- played?: boolean;
120
- }
121
- export interface ElizaBunRuntimePlugin {
122
- start(options: StartOptions): Promise<StartResult>;
123
- sendMessage(options: SendMessageOptions): Promise<SendMessageResult>;
124
- getStatus(): Promise<GetStatusResult>;
125
- stop(): Promise<void>;
126
- getLocalTtsStatus(): Promise<LocalTtsStatusResult>;
127
- getLocalTtsDiagnostics(options?: LocalTtsDiagnosticsOptions): Promise<LocalTtsDiagnosticsResult>;
128
- synthesizeLocalTts(options: SynthesizeLocalTtsOptions): Promise<SynthesizeLocalTtsResult>;
129
- /**
130
- * Invoke an arbitrary UI handler that the agent has registered via
131
- * `bridge.ui_register_handler`. Useful for routing arbitrary RPC-style
132
- * traffic from the React UI into the agent.
133
- */
134
- call(options: CallOptions): Promise<CallResult>;
135
- }
136
- //# sourceMappingURL=definitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,YAAY;IAC3B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,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CAAC,UAAU,CAAC,CAAC;CACjD"}
package/src/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { ElizaBunRuntimePlugin } from "./definitions";
2
- export * from "./definitions";
3
- /**
4
- * The native plugin is registered under the JS name `ElizaBunRuntime`. The
5
- * Swift class in `ios/Sources/ElizaBunRuntimePlugin/ElizaBunRuntimePlugin.swift`
6
- * exposes the matching `jsName`.
7
- */
8
- export declare const ElizaBunRuntime: ElizaBunRuntimePlugin;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,cAAc,eAAe,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,eAAe,uBAK3B,CAAC"}
package/src/web.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import { WebPlugin } from "@capacitor/core";
2
- import type { CallOptions, CallResult, ElizaBunRuntimePlugin, GetStatusResult, LocalTtsDiagnosticsOptions, LocalTtsDiagnosticsResult, LocalTtsStatusResult, SendMessageOptions, SendMessageResult, SynthesizeLocalTtsOptions, SynthesizeLocalTtsResult, StartOptions, StartResult } from "./definitions";
3
- /**
4
- * Web fallback for `@elizaos/capacitor-bun-runtime`.
5
- *
6
- * Browser environments do not host the native runtime. This implementation
7
- * reports an unavailable status and throws clear errors for runtime calls.
8
- */
9
- export declare class ElizaBunRuntimeWeb extends WebPlugin implements ElizaBunRuntimePlugin {
10
- start(_options: StartOptions): Promise<StartResult>;
11
- sendMessage(_options: SendMessageOptions): Promise<SendMessageResult>;
12
- getStatus(): Promise<GetStatusResult>;
13
- stop(): Promise<void>;
14
- getLocalTtsStatus(): Promise<LocalTtsStatusResult>;
15
- getLocalTtsDiagnostics(_options?: LocalTtsDiagnosticsOptions): Promise<LocalTtsDiagnosticsResult>;
16
- synthesizeLocalTts(_options: SynthesizeLocalTtsOptions): Promise<SynthesizeLocalTtsResult>;
17
- call(_options: CallOptions): Promise<CallResult>;
18
- }
19
- //# sourceMappingURL=web.d.ts.map
package/src/web.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;;;;GAKG;AACH,qBAAa,kBACX,SAAQ,SACR,YAAW,qBAAqB;IAE1B,KAAK,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAQnD,WAAW,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMrE,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAIrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,iBAAiB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IASlD,sBAAsB,CAC1B,QAAQ,CAAC,EAAE,0BAA0B,GACpC,OAAO,CAAC,yBAAyB,CAAC;IAQ/B,kBAAkB,CACtB,QAAQ,EAAE,yBAAyB,GAClC,OAAO,CAAC,wBAAwB,CAAC;IAM9B,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;CAGvD"}