@phi-code-admin/camofox-browser 1.0.0 → 1.0.2
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/AGENTS.md +571 -571
- package/Dockerfile +86 -86
- package/LICENSE +21 -21
- package/README.md +691 -691
- package/camofox.config.json +10 -10
- package/lib/auth.js +134 -134
- package/lib/camoufox-executable.js +189 -189
- package/lib/config.js +153 -153
- package/lib/cookies.js +119 -119
- package/lib/downloads.js +168 -168
- package/lib/extract.js +74 -74
- package/lib/fly.js +54 -54
- package/lib/images.js +88 -88
- package/lib/inflight.js +16 -16
- package/lib/launcher.js +47 -47
- package/lib/macros.js +31 -31
- package/lib/metrics.js +184 -184
- package/lib/openapi.js +105 -105
- package/lib/persistence.js +89 -89
- package/lib/plugins.js +178 -175
- package/lib/proxy.js +277 -277
- package/lib/reporter.js +1102 -1102
- package/lib/request-utils.js +59 -59
- package/lib/resources.js +76 -76
- package/lib/snapshot.js +41 -41
- package/lib/tmp-cleanup.js +108 -108
- package/lib/tracing.js +137 -137
- package/openclaw.plugin.json +268 -268
- package/package.json +148 -148
- package/plugin.ts +758 -758
- package/plugins/persistence/AGENTS.md +37 -37
- package/plugins/persistence/README.md +48 -48
- package/plugins/persistence/index.js +124 -124
- package/plugins/vnc/AGENTS.md +42 -42
- package/plugins/vnc/README.md +165 -165
- package/plugins/vnc/apt.txt +7 -7
- package/plugins/vnc/index.js +142 -142
- package/plugins/vnc/spawn.js +8 -8
- package/plugins/vnc/vnc-launcher.js +64 -64
- package/plugins/vnc/vnc-watcher.sh +82 -82
- package/plugins/youtube/AGENTS.md +25 -25
- package/plugins/youtube/apt.txt +1 -1
- package/plugins/youtube/index.js +206 -206
- package/plugins/youtube/post-install.sh +5 -5
- package/plugins/youtube/youtube.js +301 -301
- package/run.sh +37 -37
- package/scripts/exec.js +8 -8
- package/scripts/generate-openapi.js +24 -24
- package/scripts/install-plugin-deps.sh +63 -63
- package/scripts/plugin.js +342 -342
- package/scripts/sync-version.js +25 -25
- package/server.js +6062 -6059
- package/tsconfig.json +12 -12
package/scripts/sync-version.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Sync openclaw.plugin.json version with package.json.
|
|
4
|
-
* Run via: npm run version:sync
|
|
5
|
-
* Auto-runs on npm version via the "version" lifecycle script.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { readFile, writeFile } from 'node:fs/promises';
|
|
9
|
-
import { fileURLToPath } from 'node:url';
|
|
10
|
-
import { dirname, join } from 'node:path';
|
|
11
|
-
|
|
12
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
|
-
const root = join(__dirname, '..');
|
|
14
|
-
|
|
15
|
-
const pkg = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
|
|
16
|
-
const pluginPath = join(root, 'openclaw.plugin.json');
|
|
17
|
-
const plugin = JSON.parse(await readFile(pluginPath, 'utf8'));
|
|
18
|
-
|
|
19
|
-
if (plugin.version !== pkg.version) {
|
|
20
|
-
plugin.version = pkg.version;
|
|
21
|
-
await writeFile(pluginPath, JSON.stringify(plugin, null, 2) + '\n');
|
|
22
|
-
console.log(`openclaw.plugin.json version synced to ${pkg.version}`);
|
|
23
|
-
} else {
|
|
24
|
-
console.log(`openclaw.plugin.json already at ${pkg.version}`);
|
|
25
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Sync openclaw.plugin.json version with package.json.
|
|
4
|
+
* Run via: npm run version:sync
|
|
5
|
+
* Auto-runs on npm version via the "version" lifecycle script.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { readFile, writeFile } from 'node:fs/promises';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
import { dirname, join } from 'node:path';
|
|
11
|
+
|
|
12
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
const root = join(__dirname, '..');
|
|
14
|
+
|
|
15
|
+
const pkg = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
|
|
16
|
+
const pluginPath = join(root, 'openclaw.plugin.json');
|
|
17
|
+
const plugin = JSON.parse(await readFile(pluginPath, 'utf8'));
|
|
18
|
+
|
|
19
|
+
if (plugin.version !== pkg.version) {
|
|
20
|
+
plugin.version = pkg.version;
|
|
21
|
+
await writeFile(pluginPath, JSON.stringify(plugin, null, 2) + '\n');
|
|
22
|
+
console.log(`openclaw.plugin.json version synced to ${pkg.version}`);
|
|
23
|
+
} else {
|
|
24
|
+
console.log(`openclaw.plugin.json already at ${pkg.version}`);
|
|
25
|
+
}
|