#!/bin/sh
# dsh-app shim: run the bundled DeepSeek Harness CLI with the bundled Node.
# `dsh web` (the app's launch) preloads the boot cache, /opt/dsh-go/boot-cache.mjs.
if [ "$1" = web ]; then
  exec /opt/node/bin/node --import=/opt/dsh-go/boot-cache.mjs /opt/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js "$@"
fi
exec /opt/node/bin/node /opt/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js "$@"
