@humanu/orchestra 0.5.29 → 0.5.30

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 (78) hide show
  1. package/install.js +27 -3
  2. package/package.json +1 -1
  3. package/resources/prebuilt/linux-x64/orchestra +0 -0
  4. package/resources/prebuilt/macos-arm64/orchestra +0 -0
  5. package/resources/prebuilt/macos-intel/orchestra +0 -0
  6. package/resources/scripts/gw-bridge.sh +50 -1024
  7. package/resources/scripts/gw.sh +25 -19
  8. package/resources/scripts/gwr.sh +41 -139
  9. package/resources/scripts/shell/bridge/ai.sh +175 -0
  10. package/resources/scripts/shell/bridge/copy_env.sh +84 -0
  11. package/resources/scripts/shell/bridge/tmux.sh +162 -0
  12. package/resources/scripts/shell/bridge/utils.sh +449 -0
  13. package/resources/scripts/shell/build/build_bridge.sh +17 -0
  14. package/resources/scripts/shell/build/build_dependencies.sh +23 -0
  15. package/resources/scripts/shell/build/build_install.sh +7 -0
  16. package/resources/scripts/shell/build/build_load.sh +10 -0
  17. package/resources/scripts/shell/build/build_logging.sh +6 -0
  18. package/resources/scripts/shell/build/build_rust.sh +18 -0
  19. package/resources/scripts/shell/build/build_usage.sh +27 -0
  20. package/resources/scripts/shell/env/copy_env_command.sh +27 -0
  21. package/resources/scripts/shell/env/copy_env_constants.sh +3 -0
  22. package/resources/scripts/shell/env/copy_env_core.sh +171 -0
  23. package/resources/scripts/shell/env/copy_env_debug_parse.sh +14 -0
  24. package/resources/scripts/shell/env/copy_env_load.sh +9 -0
  25. package/resources/scripts/shell/env/copy_env_locations.sh +34 -0
  26. package/resources/scripts/shell/env/copy_env_logging.sh +17 -0
  27. package/resources/scripts/shell/env/copy_env_state.sh +5 -0
  28. package/resources/scripts/shell/fix_hanging_colors.sh +9 -0
  29. package/resources/scripts/shell/fix_hanging_load.sh +9 -0
  30. package/resources/scripts/shell/fix_hanging_logging.sh +6 -0
  31. package/resources/scripts/shell/fix_hanging_script.sh +19 -0
  32. package/resources/scripts/shell/fix_hanging_steps.sh +81 -0
  33. package/resources/scripts/shell/git/bridge_check_branch.sh +53 -0
  34. package/resources/scripts/shell/git/bridge_create_worktree.sh +35 -0
  35. package/resources/scripts/shell/git/bridge_create_worktree_from_existing.sh +32 -0
  36. package/resources/scripts/shell/git/bridge_create_worktree_from_remote.sh +28 -0
  37. package/resources/scripts/shell/git/bridge_delete_branch_only.sh +25 -0
  38. package/resources/scripts/shell/git/bridge_delete_worktree.sh +26 -0
  39. package/resources/scripts/shell/git/bridge_delete_worktree_only.sh +28 -0
  40. package/resources/scripts/shell/git/bridge_enhanced_git_status.sh +106 -0
  41. package/resources/scripts/shell/git/bridge_git_status.sh +13 -0
  42. package/resources/scripts/shell/git/bridge_list_worktrees.sh +12 -0
  43. package/resources/scripts/shell/git/bridge_merge.sh +12 -0
  44. package/resources/scripts/shell/git/bridge_merge_from_primary.sh +112 -0
  45. package/resources/scripts/shell/git/bridge_merge_into_primary.sh +116 -0
  46. package/resources/scripts/shell/git/bridge_primary_branch.sh +15 -0
  47. package/resources/scripts/shell/git/bridge_rebase_from_primary.sh +72 -0
  48. package/resources/scripts/shell/git/bridge_repo.sh +12 -0
  49. package/resources/scripts/shell/git/bridge_repo_info.sh +23 -0
  50. package/resources/scripts/shell/git/bridge_squash_into_primary.sh +144 -0
  51. package/resources/scripts/shell/git/bridge_switch_worktree.sh +23 -0
  52. package/resources/scripts/shell/git/bridge_worktree.sh +17 -0
  53. package/resources/scripts/shell/git/checkout_worktree.sh +68 -0
  54. package/resources/scripts/shell/git/create_worktree.sh +23 -0
  55. package/resources/scripts/shell/git/delete_worktree.sh +27 -0
  56. package/resources/scripts/shell/git/gwr_worktree_title.sh +29 -0
  57. package/resources/scripts/shell/git/list_worktrees.sh +22 -0
  58. package/resources/scripts/shell/git/merge.sh +12 -0
  59. package/resources/scripts/shell/git/repo.sh +12 -0
  60. package/resources/scripts/shell/git/status.sh +21 -0
  61. package/resources/scripts/shell/git/worktree.sh +17 -0
  62. package/resources/scripts/shell/gw_debug.sh +3 -0
  63. package/resources/scripts/shell/gw_err.sh +3 -0
  64. package/resources/scripts/shell/gw_have_cmd.sh +3 -0
  65. package/resources/scripts/shell/gw_info.sh +3 -0
  66. package/resources/scripts/shell/gw_legacy_wrappers.sh +7 -0
  67. package/resources/scripts/shell/gw_load.sh +9 -0
  68. package/resources/scripts/shell/gwr_binary.sh +25 -0
  69. package/resources/scripts/shell/gwr_bridge.sh +10 -0
  70. package/resources/scripts/shell/gwr_colors.sh +7 -0
  71. package/resources/scripts/shell/gwr_git.sh +8 -0
  72. package/resources/scripts/shell/gwr_load.sh +12 -0
  73. package/resources/scripts/shell/gwr_logging.sh +6 -0
  74. package/resources/scripts/shell/gwr_terminal.sh +13 -0
  75. package/resources/scripts/shell/gwr_usage.sh +49 -0
  76. package/resources/scripts/shell/orchestra-command-hook.sh +109 -0
  77. package/resources/scripts/shell/orchestra-local.sh +87 -0
  78. package/resources/scripts/commands.sh +0 -208
package/install.js CHANGED
@@ -5,7 +5,8 @@ const fs = require('fs');
5
5
  const path = require('path');
6
6
 
7
7
  const BINARY_NAME = 'orchestra';
8
- const SHELL_SCRIPTS = ['gwr.sh', 'gw.sh', 'gw-bridge.sh', 'commands.sh', 'copy_env.sh', 'orchestra-local.sh'];
8
+ const SHELL_SCRIPTS = ['gwr.sh', 'gw.sh', 'gw-bridge.sh', 'copy_env.sh', 'orchestra-local.sh'];
9
+ const SHELL_DIRS = ['shell'];
9
10
  const SUPPORTED_PLATFORMS = {
10
11
  'darwin-x64': 'macos-intel',
11
12
  'darwin-arm64': 'macos-arm64',
@@ -46,6 +47,20 @@ function getPlatformKey() {
46
47
  return mapped;
47
48
  }
48
49
 
50
+ function copyRecursive(src, dest) {
51
+ const stats = fs.statSync(src);
52
+ if (stats.isDirectory()) {
53
+ ensureDir(dest);
54
+ for (const entry of fs.readdirSync(src)) {
55
+ copyRecursive(path.join(src, entry), path.join(dest, entry));
56
+ }
57
+ } else {
58
+ ensureDir(path.dirname(dest));
59
+ fs.copyFileSync(src, dest);
60
+ fs.chmodSync(dest, 0o755);
61
+ }
62
+ }
63
+
49
64
  function copyShellScripts() {
50
65
  let sourceBase = scriptsDir;
51
66
  if (!fs.existsSync(sourceBase)) {
@@ -63,8 +78,17 @@ function copyShellScripts() {
63
78
  process.exit(1);
64
79
  }
65
80
  const destinationPath = path.join(distDir, script);
66
- fs.copyFileSync(sourcePath, destinationPath);
67
- fs.chmodSync(destinationPath, 0o755);
81
+ copyRecursive(sourcePath, destinationPath);
82
+ }
83
+
84
+ for (const dirName of SHELL_DIRS) {
85
+ const sourcePath = path.join(sourceBase, dirName);
86
+ if (!fs.existsSync(sourcePath)) {
87
+ console.error(`Required shell directory missing: ${sourcePath}`);
88
+ process.exit(1);
89
+ }
90
+ const destinationPath = path.join(distDir, dirName);
91
+ copyRecursive(sourcePath, destinationPath);
68
92
  }
69
93
  }
70
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanu/orchestra",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "description": "AI-powered Git worktree and tmux session manager with modern TUI",
5
5
  "keywords": [
6
6
  "git",