@moejay/wrightty 0.0.0 → 0.1.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 (92) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.js +83 -0
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.js +8 -0
  5. package/dist/terminal.d.ts +48 -0
  6. package/dist/terminal.js +210 -0
  7. package/dist/types.d.ts +90 -0
  8. package/dist/types.js +3 -0
  9. package/package.json +35 -15
  10. package/.github/workflows/ci.yml +0 -90
  11. package/.github/workflows/release.yml +0 -177
  12. package/Cargo.lock +0 -2662
  13. package/Cargo.toml +0 -38
  14. package/PROTOCOL.md +0 -1351
  15. package/README.md +0 -386
  16. package/agents/ceo/AGENTS.md +0 -24
  17. package/agents/ceo/HEARTBEAT.md +0 -72
  18. package/agents/ceo/SOUL.md +0 -33
  19. package/agents/ceo/TOOLS.md +0 -3
  20. package/agents/founding-engineer/AGENTS.md +0 -44
  21. package/crates/wrightty/Cargo.toml +0 -43
  22. package/crates/wrightty/src/client_cmds.rs +0 -366
  23. package/crates/wrightty/src/discover.rs +0 -78
  24. package/crates/wrightty/src/main.rs +0 -100
  25. package/crates/wrightty/src/server.rs +0 -100
  26. package/crates/wrightty/src/term.rs +0 -338
  27. package/crates/wrightty-bridge-ghostty/Cargo.toml +0 -27
  28. package/crates/wrightty-bridge-ghostty/src/ghostty.rs +0 -422
  29. package/crates/wrightty-bridge-ghostty/src/lib.rs +0 -2
  30. package/crates/wrightty-bridge-ghostty/src/main.rs +0 -146
  31. package/crates/wrightty-bridge-ghostty/src/rpc.rs +0 -307
  32. package/crates/wrightty-bridge-kitty/Cargo.toml +0 -26
  33. package/crates/wrightty-bridge-kitty/src/kitty.rs +0 -269
  34. package/crates/wrightty-bridge-kitty/src/lib.rs +0 -2
  35. package/crates/wrightty-bridge-kitty/src/main.rs +0 -124
  36. package/crates/wrightty-bridge-kitty/src/rpc.rs +0 -304
  37. package/crates/wrightty-bridge-tmux/Cargo.toml +0 -26
  38. package/crates/wrightty-bridge-tmux/src/lib.rs +0 -2
  39. package/crates/wrightty-bridge-tmux/src/main.rs +0 -119
  40. package/crates/wrightty-bridge-tmux/src/rpc.rs +0 -291
  41. package/crates/wrightty-bridge-tmux/src/tmux.rs +0 -215
  42. package/crates/wrightty-bridge-wezterm/Cargo.toml +0 -26
  43. package/crates/wrightty-bridge-wezterm/src/lib.rs +0 -2
  44. package/crates/wrightty-bridge-wezterm/src/main.rs +0 -119
  45. package/crates/wrightty-bridge-wezterm/src/rpc.rs +0 -339
  46. package/crates/wrightty-bridge-wezterm/src/wezterm.rs +0 -190
  47. package/crates/wrightty-bridge-zellij/Cargo.toml +0 -27
  48. package/crates/wrightty-bridge-zellij/src/lib.rs +0 -2
  49. package/crates/wrightty-bridge-zellij/src/main.rs +0 -125
  50. package/crates/wrightty-bridge-zellij/src/rpc.rs +0 -328
  51. package/crates/wrightty-bridge-zellij/src/zellij.rs +0 -199
  52. package/crates/wrightty-client/Cargo.toml +0 -16
  53. package/crates/wrightty-client/src/client.rs +0 -254
  54. package/crates/wrightty-client/src/lib.rs +0 -2
  55. package/crates/wrightty-core/Cargo.toml +0 -21
  56. package/crates/wrightty-core/src/input.rs +0 -212
  57. package/crates/wrightty-core/src/lib.rs +0 -4
  58. package/crates/wrightty-core/src/screen.rs +0 -325
  59. package/crates/wrightty-core/src/session.rs +0 -249
  60. package/crates/wrightty-core/src/session_manager.rs +0 -77
  61. package/crates/wrightty-protocol/Cargo.toml +0 -13
  62. package/crates/wrightty-protocol/src/error.rs +0 -8
  63. package/crates/wrightty-protocol/src/events.rs +0 -138
  64. package/crates/wrightty-protocol/src/lib.rs +0 -4
  65. package/crates/wrightty-protocol/src/methods.rs +0 -321
  66. package/crates/wrightty-protocol/src/types.rs +0 -201
  67. package/crates/wrightty-server/Cargo.toml +0 -23
  68. package/crates/wrightty-server/src/lib.rs +0 -2
  69. package/crates/wrightty-server/src/main.rs +0 -65
  70. package/crates/wrightty-server/src/rpc.rs +0 -455
  71. package/crates/wrightty-server/src/state.rs +0 -39
  72. package/examples/basic_command.py +0 -53
  73. package/examples/interactive_tui.py +0 -86
  74. package/examples/record_session.py +0 -96
  75. package/install.sh +0 -81
  76. package/sdks/node/package-lock.json +0 -85
  77. package/sdks/node/package.json +0 -44
  78. package/sdks/node/src/client.ts +0 -94
  79. package/sdks/node/src/index.ts +0 -19
  80. package/sdks/node/src/terminal.ts +0 -258
  81. package/sdks/node/src/types.ts +0 -105
  82. package/sdks/node/tsconfig.json +0 -17
  83. package/sdks/python/README.md +0 -96
  84. package/sdks/python/pyproject.toml +0 -42
  85. package/sdks/python/wrightty/__init__.py +0 -6
  86. package/sdks/python/wrightty/cli.py +0 -210
  87. package/sdks/python/wrightty/client.py +0 -136
  88. package/sdks/python/wrightty/mcp_server.py +0 -434
  89. package/sdks/python/wrightty/terminal.py +0 -333
  90. package/skills/wrightty/SKILL.md +0 -261
  91. package/src/lib.rs +0 -1
  92. package/tests/integration_test.rs +0 -618
@@ -1,177 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- tags:
6
- - "v*"
7
-
8
- permissions:
9
- contents: write
10
-
11
- env:
12
- CARGO_TERM_COLOR: always
13
-
14
- jobs:
15
- build:
16
- strategy:
17
- matrix:
18
- include:
19
- - target: x86_64-unknown-linux-gnu
20
- os: ubuntu-latest
21
- name: wrightty-linux-x86_64
22
- - target: aarch64-unknown-linux-gnu
23
- os: ubuntu-latest
24
- name: wrightty-linux-aarch64
25
- - target: x86_64-apple-darwin
26
- os: macos-latest
27
- name: wrightty-macos-x86_64
28
- - target: aarch64-apple-darwin
29
- os: macos-latest
30
- name: wrightty-macos-aarch64
31
-
32
- runs-on: ${{ matrix.os }}
33
- steps:
34
- - uses: actions/checkout@v4
35
-
36
- - name: Install Rust
37
- uses: dtolnay/rust-toolchain@stable
38
- with:
39
- targets: ${{ matrix.target }}
40
-
41
- - name: Install cross-compilation tools (Linux aarch64)
42
- if: matrix.target == 'aarch64-unknown-linux-gnu'
43
- run: |
44
- sudo apt-get update
45
- sudo apt-get install -y gcc-aarch64-linux-gnu
46
-
47
- - name: Build
48
- run: cargo build --release --target ${{ matrix.target }} -p wrightty
49
- env:
50
- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
51
-
52
- - name: Package
53
- run: |
54
- mkdir -p dist
55
- cp target/${{ matrix.target }}/release/wrightty dist/
56
- cd dist
57
- tar czf ../${{ matrix.name }}.tar.gz wrightty
58
-
59
- - name: Upload artifact
60
- uses: actions/upload-artifact@v4
61
- with:
62
- name: ${{ matrix.name }}
63
- path: ${{ matrix.name }}.tar.gz
64
-
65
- release:
66
- needs: build
67
- runs-on: ubuntu-latest
68
- steps:
69
- - uses: actions/checkout@v4
70
-
71
- - name: Download all artifacts
72
- uses: actions/download-artifact@v4
73
- with:
74
- path: artifacts
75
-
76
- - name: Create Release
77
- uses: softprops/action-gh-release@v2
78
- with:
79
- files: artifacts/**/*.tar.gz
80
- generate_release_notes: true
81
- draft: false
82
- prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
83
-
84
- publish-crates:
85
- needs: release
86
- runs-on: ubuntu-latest
87
- steps:
88
- - uses: actions/checkout@v4
89
-
90
- - name: Install Rust
91
- uses: dtolnay/rust-toolchain@stable
92
-
93
- - name: Publish to crates.io
94
- env:
95
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
96
- run: |
97
- # Publish in dependency order, skipping crates already at this version.
98
- # crates.io rate limits new crates to ~5 burst then 1 per 10 min.
99
- VERSION="0.1.0"
100
- publish_if_needed() {
101
- local crate=$1
102
- local wait_after=${2:-30}
103
- local existing
104
- existing=$(curl -sf -H "User-Agent: wrightty-ci" \
105
- "https://crates.io/api/v1/crates/$crate" 2>/dev/null | \
106
- grep -o "\"num\":\"$VERSION\"" | head -1)
107
- if [ -n "$existing" ]; then
108
- echo "Skipping $crate: v$VERSION already published"
109
- return 0
110
- fi
111
- echo "Publishing $crate v$VERSION..."
112
- cargo publish -p "$crate"
113
- echo "Waiting ${wait_after}s for indexing / rate limit..."
114
- sleep "$wait_after"
115
- }
116
- # Level 0: no internal deps
117
- publish_if_needed wrightty-protocol 30
118
- # Level 1: depend on protocol
119
- publish_if_needed wrightty-core 30
120
- publish_if_needed wrightty-client 30
121
- publish_if_needed wrightty-bridge-wezterm 30
122
- publish_if_needed wrightty-bridge-tmux 30
123
- publish_if_needed wrightty-bridge-kitty 30
124
- publish_if_needed wrightty-bridge-zellij 30
125
- publish_if_needed wrightty-bridge-ghostty 30
126
- # Level 2: depend on core/protocol
127
- publish_if_needed wrightty-server 30
128
- # Level 3: depends on everything
129
- publish_if_needed wrightty 0
130
-
131
- publish-npm:
132
- needs: release
133
- runs-on: ubuntu-latest
134
- permissions:
135
- id-token: write # Required for npm trusted publishing (OIDC)
136
- steps:
137
- - uses: actions/checkout@v4
138
-
139
- - uses: actions/setup-node@v4
140
- with:
141
- node-version: 24
142
- registry-url: https://registry.npmjs.org
143
-
144
- - name: Build and publish npm package
145
- working-directory: sdks/node
146
- run: |
147
- npm install
148
- npm run build
149
- npm publish --access public --provenance
150
-
151
- publish-pypi:
152
- needs: release
153
- runs-on: ubuntu-latest
154
- environment:
155
- name: pypi
156
- url: https://pypi.org/p/wrightty
157
- permissions:
158
- id-token: write # Required for PyPI trusted publishing (OIDC)
159
- steps:
160
- - uses: actions/checkout@v4
161
-
162
- - uses: actions/setup-python@v5
163
- with:
164
- python-version: "3.12"
165
-
166
- - name: Build Python package
167
- working-directory: sdks/python
168
- run: |
169
- pip install build
170
- python -m build
171
-
172
- - name: Publish to PyPI
173
- uses: pypa/gh-action-pypi-publish@release/v1
174
- with:
175
- packages-dir: sdks/python/dist/
176
- verbose: true
177
- attestations: false