@shunagent/shun 0.0.0-stage → 0.1.145

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kyles Light
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 CHANGED
@@ -1,3 +1,94 @@
1
- # Temporary Holding Version
1
+ # Shun
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Serious coding agents, running on hardware you own.**
4
+
5
+ [Website](https://shunagent.com) · [GitHub](https://github.com/kyleslight/shun) · [Download Desktop](https://shunagent.com/download) · [Report an issue](https://github.com/kyleslight/shun/issues)
6
+
7
+ Shun brings streaming conversations, coding tools, Agent Skills, and plugins to
8
+ your terminal. Connect a local model server or a hosted model provider.
9
+
10
+ ## Install
11
+
12
+ Requires **Node.js 22.19 or newer** on macOS, Linux, or Windows.
13
+
14
+ ```sh
15
+ npm install -g @shunagent/shun
16
+ shun
17
+ ```
18
+
19
+ Alternatively, use `pnpm add -g @shunagent/shun` or `bun add -g @shunagent/shun`.
20
+ The terminal app can run without Shun Desktop.
21
+
22
+ ## Start a conversation
23
+
24
+ ```sh
25
+ shun # Start without selecting a project
26
+ shun . # Work in the current directory
27
+ shun /path/to/project # Work in another project
28
+ shun -c # Continue the latest conversation in this scope
29
+ shun -r # Choose a conversation from history
30
+ shun --session <id> # Resume a specific conversation
31
+ shun tasks # List conversations
32
+ shun run "Explain this project" --workspace .
33
+ ```
34
+
35
+ On first use, follow the prompts to connect a provider and choose a model.
36
+ Existing local Shun provider settings are reused. Type `/` to open the command
37
+ menu. `/connect` adds a connection, `/providers` manages connections, and `/model`
38
+ chooses a model. `/new` starts a new conversation; `/resume` opens history.
39
+
40
+ Answers stream as they arrive. Markdown and tables render in the terminal.
41
+ Click an activity row to expand its details. Older messages appear in pages of
42
+ 24; scroll up and click **Show earlier messages** to read more.
43
+
44
+ Ctrl+C stops the current generation, cancels an open menu, or returns from a
45
+ finished conversation to the welcome screen. At the welcome screen, press it
46
+ twice to exit. Ctrl+D on an empty prompt detaches from Shun. Exiting the terminal
47
+ does not stop background tasks; use `/stop` to stop the current run.
48
+
49
+ ## Images
50
+
51
+ On macOS, use **Cmd+V**. If iTerm2 asks how to paste an image, choose **Save to
52
+ Temp File and Paste Path**; you can remember that choice. Shun recognizes a single
53
+ pasted image path and adds it as an attachment. Ordinary pasted text stays text.
54
+
55
+ `/paste` reads an image from the local clipboard, `/attach /path/to/image.png`
56
+ attaches an image file, and `/images` previews or removes pending attachments.
57
+ A remote SSH terminal cannot read your computer's local clipboard.
58
+
59
+ ## Desktop, plugins, and saved conversations
60
+
61
+ [Shun Desktop](https://shunagent.com/download) provides the graphical interface.
62
+ Compatible Desktop and terminal versions share conversations and model settings
63
+ on the same machine. With Desktop running, the terminal can also use its browser
64
+ and computer tools. Remote access uses Desktop's existing Remote connection.
65
+ Plugin graphical views stay in Desktop; the terminal exposes supported tools and
66
+ Agent Skills. Standalone Browser Preview uses a separate testing browser.
67
+
68
+ Use `/desktop` to open the current conversation in Desktop. Older Desktop
69
+ versions may need an update to support shared conversations and capabilities.
70
+
71
+ Shun stores its local profile under `~/.shun`. Set `SHUN_HOME` to use an isolated
72
+ profile. A selected project is a working directory, not a filesystem sandbox;
73
+ tools run with your account's permissions.
74
+
75
+ ## Update
76
+
77
+ ```sh
78
+ npm install -g @shunagent/shun@latest
79
+ shun --version
80
+ ```
81
+
82
+ This updates the npm installation. Desktop updates separately. Restart the
83
+ terminal interface to load its new version. If a background service needs a
84
+ restart, use `shun service stop` after its tasks finish. There is currently no
85
+ `shun upgrade` command.
86
+
87
+ ## Learn more
88
+
89
+ - [Shun website](https://shunagent.com)
90
+ - [Source code and documentation](https://github.com/kyleslight/shun)
91
+ - [Desktop downloads](https://shunagent.com/download)
92
+ - [Issues and feedback](https://github.com/kyleslight/shun/issues)
93
+
94
+ MIT licensed.
package/bin/shun.mjs ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ const [major, minor] = process.versions.node.split('.').map(Number)
3
+ if (major < 22 || (major === 22 && minor < 19)) {
4
+ console.error('Shun requires Node.js 22.19 or newer. Use the standalone installer if Node.js is not installed.')
5
+ process.exit(1)
6
+ }
7
+ await import('../dist/cli.js')