dsh-asc: Structured App Store Connect Access for DeepSeek Harness

Introduction

When extending the toolchain in DeepSeek Harness (DSH), a common approach for invoking command-line tools is to have the model generate raw shell command strings, which are then parsed or executed directly by the host process. This approach is prone to shell injection risks, makes it difficult to guarantee structured output, and causes downstream JSON parsing to depend on host-side implementations.

App Store Connect CLI (asc) provides 76 top-level command groups and 1,200+ App Store Connect API endpoints, but its native output is typically JSON. Concatenating these directly into a shell pipeline loses structured information. The DSH plugin tangwei227/dsh-asc wraps asc as a native DSH tool, bypassing shell execution through structured parameters and JSON output, so agents can safely perform operations such as uploads, metadata retrieval, and build releases.

What Is This

dsh-asc is a DSH client plugin maintained by Tangwei227. It registers a tool named asc, invokes the local asc binary, passes arguments as a structured array, and returns asc’s JSON output. The plugin does not depend on a shell; it executes solely via execFile('asc', argv), preventing command injection. It also reuses the host environment’s asc auth login, ~/.asc/config.json, or ASC_* environment variables for authentication.

Core Features

  • Structured invocation: Accepts an argv token array (e.g., ["apps", "list"]) rather than free-form strings, reducing parsing and injection risks.
  • JSON output: asc automatically outputs JSON in non-interactive mode. The plugin wraps the result into { ok, exitCode, stdout, stderr } and passes it through, making downstream parsing straightforward.
  • No shell execution: Uses execFile to skip the shell, preventing model-supplied arguments from being misinterpreted as shell commands.
  • Safety guardrails: Destructive operations still require asc’s native --confirm flag; the plugin does not bypass this restriction.
  • Shared authentication: Reuses the host-side asc auth login, ~/.asc/config.json, or ASC_* environment variables, eliminating the need for duplicate configuration.

Installation & Enablement

Before installing, ensure asc is installed locally and authentication is complete. You can run:

curl -fsSL https://asccli.sh/install | bash
# or
brew install asc
asc auth login

Install the plugin:

# Local checkout
dsh plugin --profile web add ./dsh-asc

# Or install from GitHub
dsh plugin --profile web add github:Tangwei227/dsh-asc

After installation, restart dsh web (or the corresponding profile). New sessions will have the asc tool available.

Typical Usage

In a DSH session, invoke asc with natural language directly—the model will automatically construct the structured parameters. Examples:

  • List apps under the account:
  List the apps on my account

Generated call:

  asc: ["apps", "list"]
  • Upload a build to TestFlight:
  Upload this build to TestFlight

Generated call:

  asc: ["builds", "upload", "--app", "123", "--ipa", "build.ipa"]
  • Pull localized metadata:
  Pull localized metadata for this app

Generated call:

  asc: ["metadata", "pull", "--app", "123"]
  • Check authentication status:
  Check my current asc auth status

Generated call:

  asc: ["auth", "status"]

Use Cases & Caveats

This plugin is well-suited for scenarios where you need to operate App Store Connect directly from the DSH agent side, including build uploads, metadata management, version releases, code signing, screenshot and keyword management, and more.

Note: The plugin runs with the permissions of the current dsh process. Before executing, review the source code and license (MIT), and assess trust level according to your own security policies.

Summary

dsh-asc integrates the capabilities of App Store Connect CLI into DeepSeek Harness with structured, JSON-based output, reducing shell dependencies and injection risks. It is ideal for developers who need to automate App Store Connect management. The plugin directory and source repository are as follows:

  • Plugin directory: https://www.skillhub.cn/plugins/Tangwei227/dsh-asc
  • GitHub: https://github.com/Tangwei227/dsh-asc
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye