@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.
Files changed (53) hide show
  1. package/AGENTS.md +571 -571
  2. package/Dockerfile +86 -86
  3. package/LICENSE +21 -21
  4. package/README.md +691 -691
  5. package/camofox.config.json +10 -10
  6. package/lib/auth.js +134 -134
  7. package/lib/camoufox-executable.js +189 -189
  8. package/lib/config.js +153 -153
  9. package/lib/cookies.js +119 -119
  10. package/lib/downloads.js +168 -168
  11. package/lib/extract.js +74 -74
  12. package/lib/fly.js +54 -54
  13. package/lib/images.js +88 -88
  14. package/lib/inflight.js +16 -16
  15. package/lib/launcher.js +47 -47
  16. package/lib/macros.js +31 -31
  17. package/lib/metrics.js +184 -184
  18. package/lib/openapi.js +105 -105
  19. package/lib/persistence.js +89 -89
  20. package/lib/plugins.js +178 -175
  21. package/lib/proxy.js +277 -277
  22. package/lib/reporter.js +1102 -1102
  23. package/lib/request-utils.js +59 -59
  24. package/lib/resources.js +76 -76
  25. package/lib/snapshot.js +41 -41
  26. package/lib/tmp-cleanup.js +108 -108
  27. package/lib/tracing.js +137 -137
  28. package/openclaw.plugin.json +268 -268
  29. package/package.json +148 -148
  30. package/plugin.ts +758 -758
  31. package/plugins/persistence/AGENTS.md +37 -37
  32. package/plugins/persistence/README.md +48 -48
  33. package/plugins/persistence/index.js +124 -124
  34. package/plugins/vnc/AGENTS.md +42 -42
  35. package/plugins/vnc/README.md +165 -165
  36. package/plugins/vnc/apt.txt +7 -7
  37. package/plugins/vnc/index.js +142 -142
  38. package/plugins/vnc/spawn.js +8 -8
  39. package/plugins/vnc/vnc-launcher.js +64 -64
  40. package/plugins/vnc/vnc-watcher.sh +82 -82
  41. package/plugins/youtube/AGENTS.md +25 -25
  42. package/plugins/youtube/apt.txt +1 -1
  43. package/plugins/youtube/index.js +206 -206
  44. package/plugins/youtube/post-install.sh +5 -5
  45. package/plugins/youtube/youtube.js +301 -301
  46. package/run.sh +37 -37
  47. package/scripts/exec.js +8 -8
  48. package/scripts/generate-openapi.js +24 -24
  49. package/scripts/install-plugin-deps.sh +63 -63
  50. package/scripts/plugin.js +342 -342
  51. package/scripts/sync-version.js +25 -25
  52. package/server.js +6062 -6059
  53. package/tsconfig.json +12 -12
@@ -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
+ }