{"_id":"@alpha-sdk/crsdk","name":"@alpha-sdk/crsdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@alpha-sdk/crsdk","version":"0.1.0","description":"Standalone CLI for the Sony Camera Remote SDK — accept EULA, extract the SDK zip, build and launch the Sony RemoteCli sample, install docs MCP servers","type":"module","bin":{"crsdk":"dist/bin/crsdk.js"},"scripts":{"build":"tsc && chmod +x dist/bin/crsdk.js dist/bin/postinstall.js","dev":"tsc --watch","postinstall":"node dist/bin/postinstall.js 2>/dev/null || true"},"keywords":["sony","camera","crsdk","remote-cli","c++"],"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"devDependencies":{"@types/node":"^25.3.3","typescript":"^5.4.0"},"dependencies":{"chalk":"^5.4.0"},"_id":"@alpha-sdk/crsdk@0.1.0","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-3tGAjz22VyywHB61icrtmuSwH1ya3wQ2h7TUFKCRoYg+GVXnGbx24LbTQyujpO47G8j2bWngpOhKOXi673I0cg==","shasum":"16b801085f921d5f0faafb09ad00cf12dcd19dab","tarball":"https://registry.npmjs.org/@alpha-sdk/crsdk/-/crsdk-0.1.0.tgz","fileCount":54,"unpackedSize":176946,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDuVLODtOh4qxFXc8Su7z4TG23/wyE4BF+XmQEBkEBsXAIgblVCh79oMiAytBE7u9YzWzwHhuBZd9zNnolNy+7g7WM="}]},"_npmUser":{"name":"jplaidev","email":"jplaidev@gmail.com"},"directories":{},"maintainers":[{"name":"jplaidev","email":"jplaidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/crsdk_0.1.0_1777358443742_0.27647201977800906"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-28T06:40:43.671Z","0.1.0":"2026-04-28T06:40:43.893Z","modified":"2026-04-28T06:40:44.125Z"},"maintainers":[{"name":"jplaidev","email":"jplaidev@gmail.com"}],"description":"Standalone CLI for the Sony Camera Remote SDK — accept EULA, extract the SDK zip, build and launch the Sony RemoteCli sample, install docs MCP servers","keywords":["sony","camera","crsdk","remote-cli","c++"],"license":"MIT","readme":"# @alpha-sdk/crsdk\n\nStandalone CLI for the Sony Camera Remote SDK. Accept the EULA, extract the SDK zip, build the Sony-provided `RemoteCli` sample, and launch it — all from one command-line tool. Also installs MCP servers for the Sony SDK docs so coding agents (Claude Code, Cursor, VS Code) can answer SDK questions.\n\n## Install\n\n```\nnpm install -g @alpha-sdk/crsdk\n```\n\n## Quick start\n\n```\ncrsdk doctor                                              # check toolchain\ncrsdk install --zip ~/Downloads/CrSDK_v2.01.00_Mac.zip    # accept EULA, extract\ncrsdk build                                               # build RemoteCli\ncrsdk launch                                              # interactive menu\n```\n\n> **Tip:** commit `cpp-sample/` to git after install. Your diff against the stock SDK is what you'll replay when porting to a future SDK version.\n\n## Commands\n\n| Command | Description |\n| --- | --- |\n| `crsdk help` | Show command list |\n| `crsdk doctor` | Check toolchain + SDK state |\n| `crsdk install --zip <path>` | Accept EULA, extract Sony SDK zip into `cpp-sample/` (first-time only) |\n| `crsdk update --zip <path>` | Swap in a newer SDK zip; auto-archives the previous one |\n| `crsdk versions` | List archived SDK versions |\n| `crsdk use <archive-name>` | Restore an archived SDK version into `cpp-sample/` |\n| `crsdk build [--clean]` | Build Sony RemoteCli sample |\n| `crsdk launch` | Launch RemoteCli (interactive TTY) |\n| `crsdk auth [login\\|status\\|logout]` | Athena Bridge authentication (OAuth 2.1 + PKCE) |\n| `crsdk athena-bridge [install\\|status\\|uninstall] <agent> <scope>` | Install/remove Athena Bridge MCP |\n| `crsdk mcp [status\\|install <agent> <scope> [server\\|--all]]` | Manage C++ docs MCP servers |\n\n## SDK version management\n\n`install` only stages a fresh SDK when no `cpp-sample/` exists. To move between versions:\n\n- `crsdk update --zip <new.zip>` — moves the current `cpp-sample/` (with any edits) to `sdk-archive/<old-version>/`, then extracts the new zip into a clean `cpp-sample/`. Your edits are preserved in the archive; ask Athena to port them onto the new SDK.\n- `crsdk versions` — list what's active and what's archived.\n- `crsdk use <archive-name>` — swap an archived version back in (current tree gets archived first, so swaps are reversible).\n\nEdits in `cpp-sample/` are never wiped silently — `install` refuses if the directory exists, and `update`/`use` always archive before swapping.\n\n## Layout\n\n```\ncrsdk-cli/\n├── cpp-sample/               # active SDK — created by `crsdk install`\n│   ├── app/                  # Sony sample source (RemoteCli)\n│   ├── external/crsdk/       # Sony headers + dylibs\n│   ├── CMakeLists.txt\n│   └── build/                # created by `crsdk build` → RemoteCli binary\n└── sdk-archive/              # created by first `crsdk update`\n    └── v2.01.00/             # prior cpp-sample/, edits intact\n```\n\n## macOS note\n\nSony's V2.01 macOS dylibs are ad-hoc signed. `crsdk install` strips `com.apple.quarantine` automatically. `crsdk build` repeats the clear as a safety net. If you ever copy dylibs in by hand and hit a Gatekeeper error:\n\n```\nxattr -dr com.apple.quarantine cpp-sample/\n```\n\n## MCP servers\n\nInstalled into `claude-code`, `vscode`, or `cursor` via `crsdk mcp install <agent> <scope> [server|--all]`:\n\n| Key | Description | Auth |\n| --- | --- | --- |\n| `CameraRemoteSDK` | C++/C# PTP SDK docs, API functions, code examples | none |\n| `CameraHelp` | Alpha / Cinema / PTZ camera help + compatibility | none |\n| `AthenaBridge` | Personalized SDK plans and bridge tools | `crsdk auth login` |\n\nAthena Bridge is auth-gated and has its own surface:\n\n```\ncrsdk auth login                                    # OAuth 2.1 + PKCE sign-in\ncrsdk athena-bridge install claude-code user        # writes MCP entry with Bearer token\ncrsdk athena-bridge status\ncrsdk athena-bridge uninstall claude-code user\n```\n\nTokens are valid for 30 days — re-auth from the MCP prompt when they expire.\n\n## Getting the Sony SDK\n\nSony gates the SDK behind a contact form. Run `crsdk install` and press Enter at the prompt to see the download URL, or go directly to:\n\n<https://pro.sony/ue_US/digital-imaging/camera-remote-sdk-contact-us>\n\nOnce you have the zip:\n\n```\ncrsdk install --zip <path-to-zip>\n```\n\nEULA acceptance is recorded in `.license-accepted` so you only see the prompt once.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-3fd34c623f1fe413c64a37e335d2a159"}