@longleash/cli 0.1.0-rc.1

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 (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -0
  3. package/THIRD_PARTY_NOTICES.md +35 -0
  4. package/bin/longleash.mjs +821 -0
  5. package/npm-shrinkwrap.json +2787 -0
  6. package/package.json +77 -0
  7. package/runtime/app/dist/_headers +15 -0
  8. package/runtime/app/dist/apple-touch-icon.png +0 -0
  9. package/runtime/app/dist/assets/app-CxamvvoS.js +27 -0
  10. package/runtime/app/dist/assets/styles-C-1gzhnT.js +9 -0
  11. package/runtime/app/dist/assets/styles-CkAMG7sK.css +1 -0
  12. package/runtime/app/dist/assets/welcome-CG_rEa--.js +27 -0
  13. package/runtime/app/dist/assets/welcome-ai7kxCj7.css +1 -0
  14. package/runtime/app/dist/build.json +1 -0
  15. package/runtime/app/dist/favicon.png +0 -0
  16. package/runtime/app/dist/fonts/geist-mono-latin.woff2 +0 -0
  17. package/runtime/app/dist/fonts/instrument-sans-latin.woff2 +0 -0
  18. package/runtime/app/dist/fonts/instrument-serif-latin.woff2 +0 -0
  19. package/runtime/app/dist/icon-192.png +0 -0
  20. package/runtime/app/dist/icon-512.png +0 -0
  21. package/runtime/app/dist/index.html +37 -0
  22. package/runtime/app/dist/manifest.webmanifest +23 -0
  23. package/runtime/app/dist/robots.txt +2 -0
  24. package/runtime/app/dist/sw.js +138 -0
  25. package/runtime/app/dist/welcome.html +44 -0
  26. package/runtime/daemon/bin/longleash-devices.mjs +203 -0
  27. package/runtime/daemon/bin/longleashd.mjs +12845 -0
  28. package/runtime/daemon/hooks/agent-pid.mjs +35 -0
  29. package/runtime/daemon/hooks/install-codex-hooks.mjs +191 -0
  30. package/runtime/daemon/hooks/install-hooks.mjs +78 -0
  31. package/runtime/daemon/hooks/local-handoff.mjs +47 -0
  32. package/runtime/daemon/hooks/longleash-codex-hook.mjs +118 -0
  33. package/runtime/daemon/hooks/longleash-hook.mjs +148 -0
  34. package/runtime/daemon/hooks/surface.mjs +41 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LongLeash contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @longleash/cli
2
+
3
+ LongLeash keeps Claude Code and Codex running on your laptop while you review, reply, approve, and
4
+ stop work from your phone. Repositories, provider credentials, agent processes, transcripts, and
5
+ durable audit data remain on the laptop.
6
+
7
+ This package supports macOS and Linux with Node.js 22.14 or newer.
8
+
9
+ ## Release-candidate setup
10
+
11
+ ```sh
12
+ npx --registry=https://registry.npmjs.org/ @longleash/cli@rc setup
13
+ ```
14
+
15
+ Setup shows the exact folders agents may use and the selected connectivity mode before it changes
16
+ configuration. It installs the verified package into a versioned directory owned by your user,
17
+ creates `~/.local/bin/longleash`, and connects only the provider hooks you approve. It does not use
18
+ `sudo`, start a root service, clone a mutable Git branch, or start LongLeash automatically.
19
+
20
+ If `~/.local/bin` is not already on your shell path, setup prints the exact profile line and the
21
+ absolute executable path. It never edits a shell startup file without asking.
22
+
23
+ ```sh
24
+ longleash --help
25
+ longleash doctor
26
+ longleash run ~/code
27
+ ```
28
+
29
+ Until the background-service workstream ships, `longleash run` is foreground operation and the
30
+ terminal must remain open. See the [first-party setup guide](https://longleash.dev/docs/getting-started)
31
+ and [connectivity comparison](https://longleash.dev/docs/connectivity) before pairing.
32
+
33
+ ## Security notes
34
+
35
+ - Pairing URLs are single-use secrets. Do not paste them into issues, chat, or screenshots.
36
+ - Setup defaults to the current directory, never the entire filesystem.
37
+ - Updates are staged and verified before the active version changes.
38
+ - Uninstall removes the managed executable and hooks but preserves devices, settings, and audit data.
39
+ - npm provenance is required for public releases from the official repository workflow.
40
+
41
+ LongLeash is licensed under the MIT License.
@@ -0,0 +1,35 @@
1
+ # Third-party notices
2
+
3
+ The LongLeash daemon bundle contains code from the packages below. Each is distributed under the
4
+ MIT License. Their copyright notices and license terms are preserved here.
5
+
6
+ ## Zod 3.25.76
7
+
8
+ Copyright (c) 2025 Colin McDonnell
9
+
10
+ ## @noble/ciphers 2.2.0
11
+
12
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
13
+
14
+ Copyright (c) 2016 Thomas Pornin <pornin@bolet.org>
15
+
16
+ ## @noble/hashes 2.2.0
17
+
18
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
19
+
20
+ ## MIT License
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
23
+ associated documentation files (the "Software"), to deal in the Software without restriction,
24
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
25
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
26
+ furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all copies or
29
+ substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
32
+ NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
35
+ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.