@qpjoy/electron-plugin-sdk 0.1.0 → 0.1.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/dist/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,17 @@ export interface PluginHostBridge {
|
|
|
55
55
|
app: import('electron').App;
|
|
56
56
|
ipcMain: import('electron').IpcMain;
|
|
57
57
|
session: import('electron').Session;
|
|
58
|
+
/**
|
|
59
|
+
* Shared marketplace SQLite facade. First-party plugins and games can
|
|
60
|
+
* extend this database with their own tables so local behavior remains
|
|
61
|
+
* queryable alongside `installed_plugins`, `marketplace_entries`, and logs.
|
|
62
|
+
*
|
|
63
|
+
* Kept structural on purpose: plugin authors should not need to depend on
|
|
64
|
+
* `@qpjoy/marketplace-db` just to compile against the SDK.
|
|
65
|
+
*/
|
|
66
|
+
marketplaceDb?: {
|
|
67
|
+
raw(): unknown;
|
|
68
|
+
};
|
|
58
69
|
/** Ask the host to re-apply session proxy. Requires `system:proxy`. */
|
|
59
70
|
applyProxy(): Promise<void>;
|
|
60
71
|
}
|
package/package.json
CHANGED