Socket
Book a DemoInstallSign in
Socket

@cmdop/core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmdop/core

CMDOP SDK Core - Shared types, interfaces, and configuration

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@cmdop/core

Shared TypeScript types, interfaces, and configuration for the CMDOP SDK.

Installation

npm install @cmdop/core
# or
pnpm add @cmdop/core
# or
yarn add @cmdop/core

Overview

This package provides shared code between @cmdop/node and @cmdop/react packages:

  • TypeScript interfaces and types
  • Error classes
  • Configuration types
  • HTTP API clients (optional, for REST API)

Note: This package has no protobuf/gRPC dependencies to keep the bundle small for browser usage.

Usage

Types & Errors

import {
  // Types
  CMDOPConfig,
  SessionInfo,
  FileInfo,
  AgentEvent,

  // Errors
  CMDOPError,
  ConnectionError,
  AuthenticationError,
  SessionError,
  TimeoutError,
  NotFoundError,
  PermissionError,

  // Config
  DEFAULT_CONFIG,
} from '@cmdop/core';

HTTP API Clients (Optional)

HTTP API clients for the CMDOP REST API. These are provided for convenience if you need to manage machines, workspaces, etc. via REST.

import { api } from '@cmdop/core';

// Set JWT token (from OAuth or API key exchange)
api.machines.setToken('jwt-token');

// Use REST API
const list = await api.machines.machines_machines.machinesList();
const machine = await api.machines.machines_machines.machinesRetrieve({ id: 'machine-id' });

Pre-configured for https://api.cmdop.com. For a custom URL:

import { MachinesModule } from '@cmdop/core';

const customApi = new MachinesModule.API('https://custom.api.com');
  • @cmdop/node - Node.js SDK with gRPC (terminal, files, agent)
  • @cmdop/react - React hooks for browser-based interaction

Documentation

For full documentation, visit https://cmdop.com/docs

License

MIT

Keywords

cmdop

FAQs

Package last updated on 01 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts