workon 2.1.3 → 3.0.0

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 (66) hide show
  1. package/README.md +19 -4
  2. package/bin/workon +1 -11
  3. package/dist/cli.js +2227 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/index.cjs +1216 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.d.cts +280 -0
  8. package/dist/index.d.ts +280 -0
  9. package/dist/index.js +1173 -0
  10. package/dist/index.js.map +1 -0
  11. package/package.json +68 -21
  12. package/.claude/settings.local.json +0 -11
  13. package/.cursorindexingignore +0 -3
  14. package/.history/.gitignore_20250806202718 +0 -30
  15. package/.history/.gitignore_20250806231444 +0 -32
  16. package/.history/.gitignore_20250806231450 +0 -32
  17. package/.history/lib/tmux_20250806233103.js +0 -109
  18. package/.history/lib/tmux_20250806233219.js +0 -109
  19. package/.history/lib/tmux_20250806233223.js +0 -109
  20. package/.history/lib/tmux_20250806233230.js +0 -109
  21. package/.history/lib/tmux_20250806233231.js +0 -109
  22. package/.history/lib/tmux_20250807120751.js +0 -190
  23. package/.history/lib/tmux_20250807120757.js +0 -190
  24. package/.history/lib/tmux_20250807120802.js +0 -190
  25. package/.history/lib/tmux_20250807120808.js +0 -190
  26. package/.history/package_20250807114243.json +0 -43
  27. package/.history/package_20250807114257.json +0 -43
  28. package/.history/package_20250807114404.json +0 -43
  29. package/.history/package_20250807114409.json +0 -43
  30. package/.history/package_20250807114510.json +0 -43
  31. package/.history/package_20250807114637.json +0 -43
  32. package/.vscode/launch.json +0 -20
  33. package/.vscode/terminals.json +0 -11
  34. package/CHANGELOG.md +0 -110
  35. package/CLAUDE.md +0 -100
  36. package/cli/base.js +0 -16
  37. package/cli/config/index.js +0 -19
  38. package/cli/config/list.js +0 -26
  39. package/cli/config/set.js +0 -19
  40. package/cli/config/unset.js +0 -26
  41. package/cli/index.js +0 -184
  42. package/cli/interactive.js +0 -290
  43. package/cli/manage.js +0 -413
  44. package/cli/open.js +0 -414
  45. package/commands/base.js +0 -105
  46. package/commands/core/cwd/index.js +0 -86
  47. package/commands/core/ide/index.js +0 -84
  48. package/commands/core/web/index.js +0 -109
  49. package/commands/extensions/claude/index.js +0 -211
  50. package/commands/extensions/docker/index.js +0 -167
  51. package/commands/extensions/npm/index.js +0 -208
  52. package/commands/registry.js +0 -196
  53. package/demo-colon-syntax.js +0 -57
  54. package/docs/adr/001-command-centric-architecture.md +0 -304
  55. package/docs/adr/002-positional-command-arguments.md +0 -402
  56. package/docs/ideas.md +0 -93
  57. package/lib/config.js +0 -51
  58. package/lib/environment/base.js +0 -12
  59. package/lib/environment/index.js +0 -108
  60. package/lib/environment/project.js +0 -26
  61. package/lib/project.js +0 -68
  62. package/lib/tmux.js +0 -223
  63. package/lib/validation.js +0 -120
  64. package/test-architecture.js +0 -145
  65. package/test-colon-syntax.js +0 -85
  66. package/test-registry.js +0 -57
package/README.md CHANGED
@@ -14,6 +14,10 @@ A productivity CLI tool that helps developers quickly switch between projects wi
14
14
  ⚡ **Interactive Setup** - Guided project configuration
15
15
  🔄 **Backward Compatible** - Legacy nested shell mode still available
16
16
 
17
+ ## Requirements
18
+
19
+ - Node.js >= 20
20
+
17
21
  ## Installation
18
22
 
19
23
  ### Option 1: Global Installation (Recommended)
@@ -34,7 +38,7 @@ source ~/.zshrc # or ~/.bashrc
34
38
 
35
39
  ```bash
36
40
  # Set up shell integration
37
- echo 'eval "$(npx workon --init)"' >> ~/.zshrc # for zsh
41
+ echo 'eval "$(npx workon --init)"' >> ~/.zshrc # for zsh
38
42
  echo 'eval "$(npx workon --init)"' >> ~/.bashrc # for bash
39
43
 
40
44
  # Reload your shell
@@ -74,6 +78,9 @@ Projects are configured with:
74
78
  - `cwd`: Change directory to project path
75
79
  - `ide`: Open project in configured IDE
76
80
  - `web`: Open project homepage/docs
81
+ - `claude`: Launch Claude Code (with optional tmux split)
82
+ - `npm`: Run npm scripts (with optional tmux pane)
83
+ - `docker`: Start Docker containers
77
84
 
78
85
  ### Interactive Project Setup
79
86
 
@@ -204,12 +211,20 @@ If you've been using the nested shell mode, the new shell integration provides t
204
211
 
205
212
  ## Contributing
206
213
 
207
- This project uses [standard-version](https://github.com/conventional-changelog/standard-version) for releases.
208
-
209
214
  ```bash
210
- npm run release
215
+ # Install dependencies
216
+ pnpm install
217
+
218
+ # Development
219
+ pnpm run dev # Run with tsx
220
+ pnpm run build # Build with tsup
221
+ pnpm run lint # Lint
222
+ pnpm run type-check # Type check
223
+ pnpm run test # Run tests
211
224
  ```
212
225
 
226
+ Releases are automated via [release-please](https://github.com/googleapis/release-please).
227
+
213
228
  ## License
214
229
 
215
230
  MIT © [Israel Roldan](https://github.com/israelroldan)
package/bin/workon CHANGED
@@ -1,12 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const isDebug = !!process.argv.find(param => /-{1,2}de?b?u?g?\b/.test(param));
3
- const console = require('loog')({
4
- prefixStyle: 'ascii',
5
- logLevel: isDebug ? 'debug' : 'info'
6
- });
7
-
8
- const workon = require('../cli');
9
- new workon(console).run().catch(e => {
10
- console.error(isDebug ? e.stack : (e.message ? e.message : e));
11
- process.exit(1);
12
- });
2
+ import '../dist/cli.js';