@fronti/core 1.0.1 → 1.0.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/dist/runtime.js +9 -9
- package/package.json +39 -37
- package/runtime/host.bat +2 -2
- package/runtime/host.js +4 -4
- package/runtime/host.sh +3 -3
- package/runtime/manifest.json +0 -10
package/dist/runtime.js
CHANGED
|
@@ -36,17 +36,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.ensureRuntimeFiles = ensureRuntimeFiles;
|
|
37
37
|
const fs = __importStar(require("fs"));
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
|
-
const HOST_JS_CONTENT = `#!/usr/bin/env node
|
|
40
|
-
const { runNativeHost } = require('@fronti/native-host');
|
|
41
|
-
|
|
42
|
-
runNativeHost();
|
|
39
|
+
const HOST_JS_CONTENT = `#!/usr/bin/env node
|
|
40
|
+
const { runNativeHost } = require('@fronti/native-host');
|
|
41
|
+
|
|
42
|
+
runNativeHost();
|
|
43
43
|
`;
|
|
44
|
-
const HOST_BAT_CONTENT = `@echo off
|
|
45
|
-
node "%~dp0host.js" %*
|
|
44
|
+
const HOST_BAT_CONTENT = `@echo off
|
|
45
|
+
node "%~dp0host.js" %*
|
|
46
46
|
`;
|
|
47
|
-
const HOST_SH_CONTENT = `#!/usr/bin/env bash
|
|
48
|
-
DIR="$(cd "$(dirname "\${BASH_SOURCE[0]}")" && pwd)"
|
|
49
|
-
node "\${DIR}/host.js"
|
|
47
|
+
const HOST_SH_CONTENT = `#!/usr/bin/env bash
|
|
48
|
+
DIR="$(cd "$(dirname "\${BASH_SOURCE[0]}")" && pwd)"
|
|
49
|
+
node "\${DIR}/host.js"
|
|
50
50
|
`;
|
|
51
51
|
function ensureRuntimeFiles(targetDir, platform) {
|
|
52
52
|
if (!fs.existsSync(targetDir)) {
|
package/package.json
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fronti/core",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Visual-first AI coding agent for local codebases. Select elements in browser, describe changes, agent applies edits.",
|
|
5
|
-
"type": "commonjs",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"fronti-core": "dist/cli.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"runtime"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@fronti/core",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Visual-first AI coding agent for local codebases. Select elements in browser, describe changes, agent applies edits.",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"fronti-core": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"runtime/host.bat",
|
|
13
|
+
"runtime/host.js",
|
|
14
|
+
"runtime/host.sh"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -p ./tsconfig.json",
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"prepare": "npm run build",
|
|
20
|
+
"postinstall": "node ./dist/cli.js auto-install || true"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"fronti",
|
|
24
|
+
"native-messaging",
|
|
25
|
+
"claude",
|
|
26
|
+
"chrome"
|
|
27
|
+
],
|
|
28
|
+
"author": "Fronti",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"yargs": "^17.7.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "^20.16.11",
|
|
35
|
+
"@types/yargs": "^17.0.33",
|
|
36
|
+
"rimraf": "^5.0.10",
|
|
37
|
+
"typescript": "^5.6.3"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/runtime/host.bat
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
node "%~dp0host.js" %*
|
|
1
|
+
@echo off
|
|
2
|
+
node "%~dp0host.js" %*
|
package/runtime/host.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const { runNativeHost } = require('@fronti/native-host');
|
|
3
|
-
|
|
4
|
-
runNativeHost();
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { runNativeHost } = require('@fronti/native-host');
|
|
3
|
+
|
|
4
|
+
runNativeHost();
|
package/runtime/host.sh
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
3
|
-
node "${DIR}/host.js"
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
3
|
+
node "${DIR}/host.js"
|
package/runtime/manifest.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "com.fronti.core",
|
|
3
|
-
"description": "Fronti Core - Bridge component for browser, VS Code, and Claude Code",
|
|
4
|
-
"path": "C:\\Users\\zafer\\Desktop\\visualeditor\\fronti-core\\runtime\\host.bat",
|
|
5
|
-
"type": "stdio",
|
|
6
|
-
"allowed_origins": [
|
|
7
|
-
"chrome-extension://fjidllehmalodkbffegpihbcfolplneg/",
|
|
8
|
-
"chrome-extension://jojjbmgmggenijlkhjeaiodfoggjcjgj/"
|
|
9
|
-
]
|
|
10
|
-
}
|