claude-remote-cli 2.9.1 → 2.10.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.
@@ -11,8 +11,8 @@
11
11
  <meta name="apple-mobile-web-app-capable" content="yes" />
12
12
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
13
13
  <meta name="theme-color" content="#1a1a1a" />
14
- <script type="module" crossorigin src="/assets/index-BnHx9G72.js"></script>
15
- <link rel="stylesheet" crossorigin href="/assets/index-CEuXqdk2.css">
14
+ <script type="module" crossorigin src="/assets/index-CNJExn4t.js"></script>
15
+ <link rel="stylesheet" crossorigin href="/assets/index-BVQ78t7Z.css">
16
16
  </head>
17
17
  <body>
18
18
  <div id="app"></div>
@@ -779,6 +779,21 @@ async function main() {
779
779
  });
780
780
  res.status(201).json(session);
781
781
  });
782
+ // POST /sessions/terminal — start a bare shell session (no agent)
783
+ app.post('/sessions/terminal', requireAuth, (_req, res) => {
784
+ const shell = process.env.SHELL || '/bin/sh';
785
+ const displayName = sessions.nextTerminalName();
786
+ const session = sessions.create({
787
+ type: 'terminal',
788
+ agent: 'claude', // placeholder — not used for terminal sessions
789
+ repoPath: os.homedir(),
790
+ cwd: os.homedir(),
791
+ displayName,
792
+ command: shell,
793
+ args: [],
794
+ });
795
+ res.status(201).json(session);
796
+ });
782
797
  // DELETE /sessions/:id
783
798
  app.delete('/sessions/:id', requireAuth, (req, res) => {
784
799
  try {
@@ -8,10 +8,6 @@ const AGENT_COMMANDS = {
8
8
  claude: 'claude',
9
9
  codex: 'codex',
10
10
  };
11
- const AGENT_YOLO_ARGS = {
12
- claude: ['--dangerously-skip-permissions'],
13
- codex: ['--full-auto'],
14
- };
15
11
  const AGENT_CONTINUE_ARGS = {
16
12
  claude: ['--continue'],
17
13
  codex: ['resume', '--last'],
@@ -19,6 +15,7 @@ const AGENT_CONTINUE_ARGS = {
19
15
  // In-memory registry: id -> Session
20
16
  const sessions = new Map();
21
17
  const IDLE_TIMEOUT_MS = 5000;
18
+ let terminalCounter = 0;
22
19
  let idleChangeCallback = null;
23
20
  function onIdleChange(cb) {
24
21
  idleChangeCallback = cb;
@@ -188,4 +185,7 @@ function write(id, data) {
188
185
  function findRepoSession(repoPath) {
189
186
  return list().find((s) => s.type === 'repo' && s.repoPath === repoPath);
190
187
  }
191
- export { create, get, list, kill, resize, updateDisplayName, write, onIdleChange, findRepoSession, AGENT_COMMANDS, AGENT_YOLO_ARGS, AGENT_CONTINUE_ARGS };
188
+ function nextTerminalName() {
189
+ return `Terminal ${++terminalCounter}`;
190
+ }
191
+ export { create, get, list, kill, resize, updateDisplayName, write, onIdleChange, findRepoSession, nextTerminalName, AGENT_COMMANDS, AGENT_CONTINUE_ARGS };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-remote-cli",
3
- "version": "2.9.1",
3
+ "version": "2.10.1",
4
4
  "description": "Remote web interface for Claude Code CLI sessions",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",