rl-workspaces 0.0.0-stage → 0.6.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 (88) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +735 -2
  3. package/bin/rl +54 -0
  4. package/config.example.zsh +9 -0
  5. package/dist/access.js +40 -0
  6. package/dist/activity.js +90 -0
  7. package/dist/agent-claude.js +16 -0
  8. package/dist/agent-codex.js +22 -0
  9. package/dist/agent-launch.js +74 -0
  10. package/dist/agent-presets.js +70 -0
  11. package/dist/agent-registry.js +8 -0
  12. package/dist/agent-resume.js +96 -0
  13. package/dist/agent-runner.js +386 -0
  14. package/dist/agent-workflows.js +275 -0
  15. package/dist/agents.js +73 -0
  16. package/dist/automation-config.js +381 -0
  17. package/dist/base.js +66 -0
  18. package/dist/cleanup-path.js +33 -0
  19. package/dist/cli.js +57 -0
  20. package/dist/codex-sessions.js +188 -0
  21. package/dist/command-context.js +67 -0
  22. package/dist/common.js +262 -0
  23. package/dist/delete.js +113 -0
  24. package/dist/display.js +134 -0
  25. package/dist/doctor.js +145 -0
  26. package/dist/git-safety.js +24 -0
  27. package/dist/git-workflow.js +89 -0
  28. package/dist/help.js +726 -0
  29. package/dist/hooks.js +159 -0
  30. package/dist/json.js +34 -0
  31. package/dist/mcp.js +336 -0
  32. package/dist/picker.js +182 -0
  33. package/dist/pr-discovery.js +223 -0
  34. package/dist/pr-update.js +419 -0
  35. package/dist/pr-workflow.js +161 -0
  36. package/dist/repos.js +537 -0
  37. package/dist/review-policy.js +150 -0
  38. package/dist/session-workflows.js +650 -0
  39. package/dist/session.js +12 -0
  40. package/dist/state.js +250 -0
  41. package/dist/storage.js +366 -0
  42. package/dist/store.js +379 -0
  43. package/dist/summary.js +164 -0
  44. package/dist/task-state.js +65 -0
  45. package/dist/task.js +192 -0
  46. package/dist/templates.js +4 -0
  47. package/dist/workflow-collaboration.js +531 -0
  48. package/dist/workflow-config.js +177 -0
  49. package/dist/workflow.js +211 -0
  50. package/lib/rl.zsh +329 -0
  51. package/node_modules/graceful-fs/LICENSE +15 -0
  52. package/node_modules/graceful-fs/README.md +143 -0
  53. package/node_modules/graceful-fs/clone.js +23 -0
  54. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  55. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  56. package/node_modules/graceful-fs/package.json +53 -0
  57. package/node_modules/graceful-fs/polyfills.js +355 -0
  58. package/node_modules/proper-lockfile/LICENSE +21 -0
  59. package/node_modules/proper-lockfile/README.md +183 -0
  60. package/node_modules/proper-lockfile/index.js +40 -0
  61. package/node_modules/proper-lockfile/lib/adapter.js +85 -0
  62. package/node_modules/proper-lockfile/lib/lockfile.js +342 -0
  63. package/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
  64. package/node_modules/proper-lockfile/package.json +71 -0
  65. package/node_modules/retry/.npmignore +3 -0
  66. package/node_modules/retry/.travis.yml +15 -0
  67. package/node_modules/retry/License +21 -0
  68. package/node_modules/retry/Makefile +18 -0
  69. package/node_modules/retry/README.md +227 -0
  70. package/node_modules/retry/equation.gif +0 -0
  71. package/node_modules/retry/example/dns.js +31 -0
  72. package/node_modules/retry/example/stop.js +40 -0
  73. package/node_modules/retry/index.js +1 -0
  74. package/node_modules/retry/lib/retry.js +100 -0
  75. package/node_modules/retry/lib/retry_operation.js +158 -0
  76. package/node_modules/retry/package.json +32 -0
  77. package/node_modules/retry/test/common.js +10 -0
  78. package/node_modules/retry/test/integration/test-forever.js +24 -0
  79. package/node_modules/retry/test/integration/test-retry-operation.js +258 -0
  80. package/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
  81. package/node_modules/retry/test/integration/test-timeouts.js +69 -0
  82. package/node_modules/signal-exit/LICENSE.txt +16 -0
  83. package/node_modules/signal-exit/README.md +39 -0
  84. package/node_modules/signal-exit/index.js +202 -0
  85. package/node_modules/signal-exit/package.json +38 -0
  86. package/node_modules/signal-exit/signals.js +53 -0
  87. package/package.json +57 -4
  88. package/shell/rl.zsh +11 -0
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "signal-exit",
3
+ "version": "3.0.7",
4
+ "description": "when you want to fire an event no matter how a process exits.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "tap",
8
+ "snap": "tap",
9
+ "preversion": "npm test",
10
+ "postversion": "npm publish",
11
+ "prepublishOnly": "git push origin --follow-tags"
12
+ },
13
+ "files": [
14
+ "index.js",
15
+ "signals.js"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/tapjs/signal-exit.git"
20
+ },
21
+ "keywords": [
22
+ "signal",
23
+ "exit"
24
+ ],
25
+ "author": "Ben Coe <ben@npmjs.com>",
26
+ "license": "ISC",
27
+ "bugs": {
28
+ "url": "https://github.com/tapjs/signal-exit/issues"
29
+ },
30
+ "homepage": "https://github.com/tapjs/signal-exit",
31
+ "devDependencies": {
32
+ "chai": "^3.5.0",
33
+ "coveralls": "^3.1.1",
34
+ "nyc": "^15.1.0",
35
+ "standard-version": "^9.3.1",
36
+ "tap": "^15.1.1"
37
+ }
38
+ }
@@ -0,0 +1,53 @@
1
+ // This is not the set of all possible signals.
2
+ //
3
+ // It IS, however, the set of all signals that trigger
4
+ // an exit on either Linux or BSD systems. Linux is a
5
+ // superset of the signal names supported on BSD, and
6
+ // the unknown signals just fail to register, so we can
7
+ // catch that easily enough.
8
+ //
9
+ // Don't bother with SIGKILL. It's uncatchable, which
10
+ // means that we can't fire any callbacks anyway.
11
+ //
12
+ // If a user does happen to register a handler on a non-
13
+ // fatal signal like SIGWINCH or something, and then
14
+ // exit, it'll end up firing `process.emit('exit')`, so
15
+ // the handler will be fired anyway.
16
+ //
17
+ // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
18
+ // artificially, inherently leave the process in a
19
+ // state from which it is not safe to try and enter JS
20
+ // listeners.
21
+ module.exports = [
22
+ 'SIGABRT',
23
+ 'SIGALRM',
24
+ 'SIGHUP',
25
+ 'SIGINT',
26
+ 'SIGTERM'
27
+ ]
28
+
29
+ if (process.platform !== 'win32') {
30
+ module.exports.push(
31
+ 'SIGVTALRM',
32
+ 'SIGXCPU',
33
+ 'SIGXFSZ',
34
+ 'SIGUSR2',
35
+ 'SIGTRAP',
36
+ 'SIGSYS',
37
+ 'SIGQUIT',
38
+ 'SIGIOT'
39
+ // should detect profiler and enable/disable accordingly.
40
+ // see #21
41
+ // 'SIGPROF'
42
+ )
43
+ }
44
+
45
+ if (process.platform === 'linux') {
46
+ module.exports.push(
47
+ 'SIGIO',
48
+ 'SIGPOLL',
49
+ 'SIGPWR',
50
+ 'SIGSTKFLT',
51
+ 'SIGUNUSED'
52
+ )
53
+ }
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "rl-workspaces",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.6.0",
4
+ "description": "Manage Git worktrees, project notes, and Codex or Claude sessions from your terminal",
5
+ "license": "MIT",
6
+ "bin": {
7
+ "rl": "bin/rl"
8
+ },
9
+ "files": [
10
+ "bin/rl",
11
+ "dist/*.js",
12
+ "lib/*.zsh",
13
+ "shell/rl.zsh",
14
+ "config.example.zsh"
15
+ ],
16
+ "os": [
17
+ "darwin",
18
+ "linux"
19
+ ],
20
+ "keywords": [
21
+ "git",
22
+ "worktree",
23
+ "codex",
24
+ "claude",
25
+ "cli"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsc -p tsconfig.json",
29
+ "prepack": "npm run build",
30
+ "test": "npm run build && tsc -p tsconfig.test.json && node --test --test-concurrency=4 .test-dist/*.test.js && zsh -f tests/smoke.zsh",
31
+ "test:package": "npm run build && tsc -p tsconfig.test.json && node --test .test-dist/package.test.js",
32
+ "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"tsconfig*.json\" package.json",
33
+ "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"tsconfig*.json\" package.json"
34
+ },
35
+ "dependencies": {
36
+ "proper-lockfile": "^4.1.2"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^22.20.4",
40
+ "@types/proper-lockfile": "^4.1.4",
41
+ "prettier": "^3.9.9",
42
+ "typescript": "^7.0.2"
43
+ },
44
+ "type": "module",
45
+ "engines": {
46
+ "node": ">=22"
47
+ },
48
+ "bundleDependencies": [
49
+ "proper-lockfile"
50
+ ],
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "git+https://github.com/Clemen-RosterLab/rl.git"
54
+ },
55
+ "homepage": "https://github.com/Clemen-RosterLab/rl#readme",
56
+ "bugs": {
57
+ "url": "https://github.com/Clemen-RosterLab/rl/issues"
58
+ }
59
+ }
package/shell/rl.zsh ADDED
@@ -0,0 +1,11 @@
1
+ # Load with: eval "$(command rl init zsh)"
2
+ rl() {
3
+ local RL_INTERNAL_SHELL=1
4
+ if [[ "$1" == init || "$1" == --version || "$1" == -V || "$1" == __hook ]]; then
5
+ command rl "$@"
6
+ else
7
+ # npm upgrades replace the runtime, while interactive shells retain functions.
8
+ source "${${functions_source[rl]}:A:h:h}/lib/rl.zsh" || return 1
9
+ _rl_main "$@"
10
+ fi
11
+ }