@involvex/fresh-editor 0.1.76 → 0.1.78

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 (90) hide show
  1. package/bin/CHANGELOG.md +1017 -0
  2. package/bin/LICENSE +117 -0
  3. package/bin/README.md +248 -0
  4. package/bin/fresh.exe +0 -0
  5. package/bin/plugins/README.md +71 -0
  6. package/bin/plugins/audit_mode.i18n.json +821 -0
  7. package/bin/plugins/audit_mode.ts +1810 -0
  8. package/bin/plugins/buffer_modified.i18n.json +67 -0
  9. package/bin/plugins/buffer_modified.ts +281 -0
  10. package/bin/plugins/calculator.i18n.json +93 -0
  11. package/bin/plugins/calculator.ts +770 -0
  12. package/bin/plugins/clangd-lsp.ts +168 -0
  13. package/bin/plugins/clangd_support.i18n.json +223 -0
  14. package/bin/plugins/clangd_support.md +20 -0
  15. package/bin/plugins/clangd_support.ts +325 -0
  16. package/bin/plugins/color_highlighter.i18n.json +145 -0
  17. package/bin/plugins/color_highlighter.ts +304 -0
  18. package/bin/plugins/config-schema.json +768 -0
  19. package/bin/plugins/csharp-lsp.ts +147 -0
  20. package/bin/plugins/csharp_support.i18n.json +80 -0
  21. package/bin/plugins/csharp_support.ts +170 -0
  22. package/bin/plugins/css-lsp.ts +143 -0
  23. package/bin/plugins/diagnostics_panel.i18n.json +236 -0
  24. package/bin/plugins/diagnostics_panel.ts +642 -0
  25. package/bin/plugins/examples/README.md +85 -0
  26. package/bin/plugins/examples/async_demo.ts +165 -0
  27. package/bin/plugins/examples/bookmarks.ts +329 -0
  28. package/bin/plugins/examples/buffer_query_demo.ts +110 -0
  29. package/bin/plugins/examples/git_grep.ts +262 -0
  30. package/bin/plugins/examples/hello_world.ts +93 -0
  31. package/bin/plugins/examples/virtual_buffer_demo.ts +116 -0
  32. package/bin/plugins/find_references.i18n.json +275 -0
  33. package/bin/plugins/find_references.ts +359 -0
  34. package/bin/plugins/git_blame.i18n.json +496 -0
  35. package/bin/plugins/git_blame.ts +707 -0
  36. package/bin/plugins/git_find_file.i18n.json +314 -0
  37. package/bin/plugins/git_find_file.ts +300 -0
  38. package/bin/plugins/git_grep.i18n.json +171 -0
  39. package/bin/plugins/git_grep.ts +191 -0
  40. package/bin/plugins/git_gutter.i18n.json +93 -0
  41. package/bin/plugins/git_gutter.ts +477 -0
  42. package/bin/plugins/git_log.i18n.json +481 -0
  43. package/bin/plugins/git_log.ts +1285 -0
  44. package/bin/plugins/go-lsp.ts +143 -0
  45. package/bin/plugins/html-lsp.ts +145 -0
  46. package/bin/plugins/json-lsp.ts +145 -0
  47. package/bin/plugins/lib/fresh.d.ts +1321 -0
  48. package/bin/plugins/lib/index.ts +24 -0
  49. package/bin/plugins/lib/navigation-controller.ts +214 -0
  50. package/bin/plugins/lib/panel-manager.ts +220 -0
  51. package/bin/plugins/lib/types.ts +72 -0
  52. package/bin/plugins/lib/virtual-buffer-factory.ts +130 -0
  53. package/bin/plugins/live_grep.i18n.json +171 -0
  54. package/bin/plugins/live_grep.ts +422 -0
  55. package/bin/plugins/markdown_compose.i18n.json +223 -0
  56. package/bin/plugins/markdown_compose.ts +630 -0
  57. package/bin/plugins/merge_conflict.i18n.json +821 -0
  58. package/bin/plugins/merge_conflict.ts +1810 -0
  59. package/bin/plugins/path_complete.i18n.json +80 -0
  60. package/bin/plugins/path_complete.ts +165 -0
  61. package/bin/plugins/python-lsp.ts +162 -0
  62. package/bin/plugins/rust-lsp.ts +166 -0
  63. package/bin/plugins/search_replace.i18n.json +405 -0
  64. package/bin/plugins/search_replace.ts +484 -0
  65. package/bin/plugins/test_i18n.i18n.json +67 -0
  66. package/bin/plugins/test_i18n.ts +18 -0
  67. package/bin/plugins/theme_editor.i18n.json +3746 -0
  68. package/bin/plugins/theme_editor.ts +2063 -0
  69. package/bin/plugins/todo_highlighter.i18n.json +184 -0
  70. package/bin/plugins/todo_highlighter.ts +206 -0
  71. package/bin/plugins/typescript-lsp.ts +167 -0
  72. package/bin/plugins/vi_mode.i18n.json +1549 -0
  73. package/bin/plugins/vi_mode.ts +2747 -0
  74. package/bin/plugins/welcome.i18n.json +236 -0
  75. package/bin/plugins/welcome.ts +76 -0
  76. package/bin/themes/dark.json +102 -0
  77. package/bin/themes/dracula.json +62 -0
  78. package/bin/themes/high-contrast.json +102 -0
  79. package/bin/themes/light.json +102 -0
  80. package/bin/themes/nord.json +62 -0
  81. package/bin/themes/nostalgia.json +102 -0
  82. package/bin/themes/solarized-dark.json +62 -0
  83. package/binary-install.js +1 -1
  84. package/dist/bin/fresh.js +9 -0
  85. package/dist/binary-install.js +149 -0
  86. package/dist/binary.js +30 -0
  87. package/dist/fresh-6yhknp07.exe +0 -0
  88. package/dist/install.js +158 -0
  89. package/dist/run-fresh.js +43 -0
  90. package/package.json +7 -2
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+ // @bun
3
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
4
+ var __require = import.meta.require;
5
+
6
+ // binary.js
7
+ var require_binary = __commonJS((exports, module) => {
8
+ var os = __require("os");
9
+ function getBinaryInfo() {
10
+ const platform = os.platform();
11
+ const arch = os.arch();
12
+ const targets = {
13
+ "darwin-x64": { target: "x86_64-apple-darwin", ext: "tar.xz" },
14
+ "darwin-arm64": { target: "aarch64-apple-darwin", ext: "tar.xz" },
15
+ "linux-x64": { target: "x86_64-unknown-linux-gnu", ext: "tar.xz" },
16
+ "linux-arm64": { target: "aarch64-unknown-linux-gnu", ext: "tar.xz" },
17
+ "win32-x64": { target: "x86_64-pc-windows-msvc", ext: "zip" }
18
+ };
19
+ const key = `${platform}-${arch}`;
20
+ const info = targets[key];
21
+ if (!info) {
22
+ throw new Error(`Unsupported platform: ${platform}-${arch}`);
23
+ }
24
+ return {
25
+ ...info,
26
+ binaryName: platform === "win32" ? "fresh.exe" : "fresh"
27
+ };
28
+ }
29
+ module.exports = { getBinaryInfo };
30
+ });
31
+
32
+ // run-fresh.js
33
+ var require_run_fresh = __commonJS(() => {
34
+ var __dirname = "D:\\repos\\fresh\\npm-package";
35
+ var { spawn } = __require("child_process");
36
+ var path = __require("path");
37
+ var { getBinaryInfo } = require_binary();
38
+ var info = getBinaryInfo();
39
+ var binPath = path.join(__dirname, "bin", info.binaryName);
40
+ var child = spawn(binPath, process.argv.slice(2), { stdio: "inherit" });
41
+ child.on("exit", (code) => process.exit(code || 0));
42
+ });
43
+ export default require_run_fresh();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@involvex/fresh-editor",
3
- "version": "0.1.76",
3
+ "version": "0.1.78",
4
4
  "description": "A modern terminal-based text editor with plugin support",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,8 @@
13
13
  "scripts": {
14
14
  "postinstall": "node install.js",
15
15
  "start": "node run-fresh.js",
16
- "dev": "node run-fresh.js -- --dev"
16
+ "dev": "node run-fresh.js -- --dev",
17
+ "build": "bun build bin/fresh.exe --root . --preload run-fresh.js binary.js binary-install.js install.js --target bun --outdir dist "
17
18
  },
18
19
  "files": [
19
20
  "binary.js",
@@ -23,9 +24,13 @@
23
24
  "plugins/**/*",
24
25
  "themes/**/*",
25
26
  "README.md",
27
+ "bin/fresh.exe",
28
+ "bin/**/*",
29
+ "dist/**/*",
26
30
  "LICENSE",
27
31
  "CHANGELOG.md"
28
32
  ],
33
+ "main": "run-fresh.js",
29
34
  "os": ["darwin", "linux", "win32"],
30
35
  "cpu": ["x64", "arm64"],
31
36
  "keywords": ["editor", "terminal", "cli", "text-editor", "vim"],