@halfwhey/claudraband 0.4.0 → 0.5.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 (2) hide show
  1. package/dist/bin.js +1 -52
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -8741,32 +8741,6 @@ function validateConfig(config, io) {
8741
8741
  io.stderr(renderHelp("continue"));
8742
8742
  io.exit(1);
8743
8743
  }
8744
- if (config.command === "prompt" && !config.connect && !isDangerousPermissionMode(config)) {
8745
- let resolved;
8746
- try {
8747
- resolved = resolveTerminalBackend(config.terminalBackend);
8748
- } catch {
8749
- resolved = "xterm";
8750
- }
8751
- if (resolved === "xterm") {
8752
- io.stderr(`error: local xterm backend requires dangerous permission settings.
8753
- ` + ` Either:
8754
- ` + ` --connect <host:port>
8755
- ` + ` --backend tmux
8756
- ` + ` -c "--dangerously-skip-permissions"
8757
- `);
8758
- io.exit(1);
8759
- }
8760
- }
8761
- }
8762
- function isDangerousPermissionMode(config) {
8763
- if (config.permissionMode === "bypassPermissions")
8764
- return true;
8765
- if (config.permissionMode === "dontAsk")
8766
- return true;
8767
- if (config.claudeArgs.includes("--dangerously-skip-permissions"))
8768
- return true;
8769
- return false;
8770
8744
  }
8771
8745
  function splitShellWords(input) {
8772
8746
  const out = [];
@@ -9088,32 +9062,7 @@ async function resolveTrackedSession(config, logger) {
9088
9062
  }
9089
9063
  return matches[0] ?? null;
9090
9064
  }
9091
- function validateLocalLaunchPermissions(config) {
9092
- if (config.connect) {
9093
- return;
9094
- }
9095
- if (config.command !== "prompt" && config.command !== "continue") {
9096
- return;
9097
- }
9098
- if (isDangerousPermissionMode(config)) {
9099
- return;
9100
- }
9101
- let resolved;
9102
- try {
9103
- resolved = resolveTerminalBackend(config.terminalBackend);
9104
- } catch {
9105
- resolved = "xterm";
9106
- }
9107
- if (resolved === "xterm") {
9108
- process.stderr.write(`error: local xterm backend requires dangerous permission settings.
9109
- ` + ` Either:
9110
- ` + ` --connect <host:port>
9111
- ` + ` --backend tmux
9112
- ` + ` -c "--dangerously-skip-permissions"
9113
- `);
9114
- process.exit(1);
9115
- }
9116
- }
9065
+ function validateLocalLaunchPermissions(config) {}
9117
9066
  async function pumpEvents(session, renderer) {
9118
9067
  for await (const event of session.events()) {
9119
9068
  renderer.handleEvent(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halfwhey/claudraband",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Control the official Claude Code CLI programmatically. Use as a library, a direct CLI, an ACP server, or a persistent session daemon.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",