homegraph-ohos-api-db-5.0.13 1.5.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.
- package/README.md +5 -0
- package/ohos-api-5.0.13.db +0 -0
- package/package.json +19 -0
- package/scripts/postinstall.js +11 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# homegraph-ohos-api-db-5.0.13
|
|
2
|
+
|
|
3
|
+
Prebuilt HomeGraph OHOS / HarmonyOS API symbol database for DevEco SDK **5.0.13**.
|
|
4
|
+
|
|
5
|
+
Install alongside HomeGraph so agents can query SDK APIs without indexing the full SDK locally. Built with HomeGraph **1.5.3**. After install, `postinstall` copies the db into `~/.homegraph/api/`.
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "homegraph-ohos-api-db-5.0.13",
|
|
3
|
+
"version": "1.5.3",
|
|
4
|
+
"description": "Prebuilt HomeGraph OHOS API database for SDK 5.0.13",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"ohos-api-5.0.13.db",
|
|
8
|
+
"README.md",
|
|
9
|
+
"scripts/postinstall.js"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"postinstall": "node scripts/postinstall.js"
|
|
13
|
+
},
|
|
14
|
+
"homegraph": {
|
|
15
|
+
"ohosApiVersion": "5.0.13",
|
|
16
|
+
"dbFile": "ohos-api-5.0.13.db",
|
|
17
|
+
"builtWith": "1.5.3"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const os = require('os');
|
|
6
|
+
const dbName = "ohos-api-5.0.13.db";
|
|
7
|
+
const src = path.join(__dirname, '..', dbName);
|
|
8
|
+
const dest = path.join(os.homedir(), '.homegraph', 'api', dbName);
|
|
9
|
+
if (!fs.existsSync(src)) process.exit(0);
|
|
10
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
11
|
+
fs.copyFileSync(src, dest);
|