underpost 3.2.10 → 3.2.12

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 (54) hide show
  1. package/.vscode/extensions.json +9 -9
  2. package/.vscode/settings.json +12 -1
  3. package/CHANGELOG.md +92 -1
  4. package/CLI-HELP.md +80 -26
  5. package/README.md +6 -10
  6. package/bin/build.js +9 -6
  7. package/bin/build.template.js +187 -0
  8. package/bin/deploy.js +29 -18
  9. package/conf.js +1 -4
  10. package/manifests/cronjobs/dd-cron/dd-cron-backup.yaml +1 -1
  11. package/manifests/cronjobs/dd-cron/dd-cron-dns.yaml +1 -1
  12. package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
  13. package/manifests/deployment/dd-test-development/deployment.yaml +2 -2
  14. package/manifests/lxd/lxd-admin-profile.yaml +12 -3
  15. package/manifests/mongodb-4.4/headless-service.yaml +10 -0
  16. package/manifests/mongodb-4.4/kustomization.yaml +3 -1
  17. package/manifests/mongodb-4.4/mongodb-nodeport.yaml +17 -0
  18. package/manifests/mongodb-4.4/pv-pvc.yaml +10 -14
  19. package/manifests/mongodb-4.4/statefulset.yaml +79 -0
  20. package/manifests/mongodb-4.4/storage-class.yaml +9 -0
  21. package/manifests/valkey/statefulset.yaml +1 -1
  22. package/manifests/valkey/valkey-nodeport.yaml +17 -0
  23. package/package.json +3 -3
  24. package/scripts/ipxe-setup.sh +52 -49
  25. package/scripts/k3s-node-setup.sh +84 -68
  26. package/scripts/lxd-vm-setup.sh +193 -8
  27. package/scripts/maas-nat-firewalld.sh +145 -0
  28. package/src/cli/baremetal.js +115 -93
  29. package/src/cli/cluster.js +548 -221
  30. package/src/cli/deploy.js +131 -166
  31. package/src/cli/fs.js +11 -3
  32. package/src/cli/index.js +75 -17
  33. package/src/cli/lxd.js +1034 -240
  34. package/src/cli/monitor.js +9 -3
  35. package/src/cli/release.js +72 -36
  36. package/src/cli/repository.js +10 -16
  37. package/src/cli/run.js +72 -55
  38. package/src/cli/secrets.js +11 -2
  39. package/src/client/components/core/Auth.js +4 -3
  40. package/src/client/components/core/ClientEvents.js +76 -0
  41. package/src/client/components/core/EventBus.js +4 -0
  42. package/src/client/components/core/Modal.js +82 -41
  43. package/src/db/DataBaseProvider.js +9 -9
  44. package/src/db/mariadb/MariaDB.js +2 -1
  45. package/src/db/mongo/MongoBootstrap.js +592 -522
  46. package/src/db/mongo/MongooseDB.js +19 -15
  47. package/src/index.js +1 -1
  48. package/src/server/conf.js +67 -19
  49. package/src/server/proxy.js +9 -2
  50. package/src/server/start.js +8 -4
  51. package/src/server/valkey.js +2 -0
  52. package/bin/file.js +0 -220
  53. package/bin/vs.js +0 -74
  54. package/bin/zed.js +0 -84
package/bin/zed.js DELETED
@@ -1,84 +0,0 @@
1
- import { shellExec } from '../src/server/process.js';
2
- import fs from 'fs-extra';
3
- import { loggerFactory } from '../src/server/logger.js';
4
- import { getUnderpostRootPath } from '../src/server/conf.js';
5
-
6
- const logger = loggerFactory(import.meta);
7
- const underpostRoot = getUnderpostRootPath();
8
-
9
- const settings = {
10
- ui_font_size: 16,
11
- buffer_font_size: 15,
12
- theme: {
13
- mode: 'system',
14
- light: 'One Dark',
15
- dark: 'One Dark',
16
- },
17
-
18
- features: {
19
- edit_prediction_provider: 'copilot',
20
- copilot: true,
21
- },
22
-
23
- show_edit_predictions: true,
24
-
25
- edit_predictions: {
26
- mode: 'eager',
27
- },
28
- };
29
-
30
- const keyMap = [
31
- {
32
- context: 'Editor',
33
- bindings: {
34
- 'ctrl-c': 'editor::Copy',
35
- 'ctrl-x': 'editor::Cut',
36
- 'ctrl-v': 'editor::Paste',
37
- 'ctrl-shift-c': 'editor::CopyAndTrim',
38
- 'ctrl-shift-v': 'editor::Paste',
39
- 'cmd-c': 'editor::Copy',
40
- 'cmd-x': 'editor::Cut',
41
- 'cmd-v': 'editor::Paste',
42
- },
43
- },
44
- {
45
- context: 'Terminal',
46
- bindings: {
47
- 'ctrl-shift-c': 'terminal::Copy',
48
- 'ctrl-shift-v': 'terminal::Paste',
49
- 'cmd-shift-c': 'terminal::Copy',
50
- 'cmd-shift-v': 'terminal::Paste',
51
- },
52
- },
53
- {
54
- context: 'Editor && edit_prediction',
55
- bindings: {
56
- tab: 'editor::AcceptEditPrediction',
57
- 'alt-tab': 'editor::AcceptEditPrediction',
58
- 'alt-l': null,
59
- },
60
- },
61
- {
62
- context: 'Editor && edit_prediction_conflict',
63
- bindings: {
64
- 'alt-l': 'editor::AcceptEditPrediction',
65
- tab: 'editor::ComposeCompletion',
66
- },
67
- },
68
- ];
69
-
70
- if (!fs.existsSync('/root/.config/zed')) fs.mkdirSync('/root/.config/zed', { recursive: true });
71
- fs.writeFileSync(`/root/.config/zed/settings.json`, JSON.stringify(settings, null, 4), 'utf8');
72
- fs.writeFileSync(`/root/.config/zed/keymap.json`, JSON.stringify(keyMap, null, 4), 'utf8');
73
-
74
- shellExec(`ZED_ALLOW_ROOT=true zed ${process.argv[2] ? process.argv[2] : '.'}`);
75
-
76
- logger.info('Connect copilot device', 'https://github.com/login/device');
77
- logger.info('Comments', 'Ctrl shift 7');
78
- logger.info('Unfold', 'Ctrl K + Ctrl J');
79
- logger.info('Fold', 'Ctrl K + Ctrl 0');
80
- logger.info('Command Palette', 'Ctrl Shift P');
81
- logger.info('Open File', 'Ctrl P');
82
- logger.info('Find in Files', 'Ctrl Shift F');
83
- logger.info('Go to Line', 'Ctrl G');
84
- logger.info('New file', 'Ctrl N');