@onairosofficial/capacitor-llm-onairos
v0.1.4
Published
Reusable Capacitor iOS plugin for the Onairos native ChatGPT connector.
Readme
capacitor-llm-onairos
Reusable Capacitor iOS plugin for the native Onairos ChatGPT connector.
What It Provides
OnairosChatGPTNative.connectChatGPTNative({ jwtToken })OnairosChatGPTNative.closeChatGPTConnector()OnairosChatGPTNative.openChatGPTConnector()onairosNativeConnectorEventlistener updates for ChatGPT status
Install
npm install @onairosofficial/capacitor-llm-onairos
npx cap syncUsage
import { OnairosChatGPTNative } from '@onairosofficial/capacitor-llm-onairos';
await OnairosChatGPTNative.connectChatGPTNative({ jwtToken });The plugin registers under window.Capacitor.Plugins.OnairosChatGPTNative, which matches the current SDK lookup path.
Note: the CocoaPods target name is OnairosofficialCapacitorLlmOnairos, which is generated from the full scoped package name by Capacitor. The runtime JS plugin name remains OnairosChatGPTNative.
Current Scope
- iOS implementation only
- ChatGPT login, session verification, conversation scrape, memory fetch, and upload through the Onairos import bridge
- extracted from the current
mobile-previewapp host so it can be published and reused
Release Hardening
prepackobfuscates the JS bridge entrypoint withjavascript-obfuscatorprepackalso strips comments and extra whitespace from the native iOS source files and podspecpostpackrestores the original working files afternpm packornpm publish
Publish
npm install
npm run pack:dry-run
npm publish --access public