New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@gapi/cli-builder

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gapi/cli-builder

## Installation:

latest
Source
npmnpm
Version
1.8.214
Version published
Maintainers
1
Created
Source

@Gapi Graphql CLI Builder

Installation:

$ npm install @gapi/cli-builer
import {
  CLIBuilder,
  Environment,
  GenericEnum,
  Bootstrap,
  executeCommand,
  SpawnOptionsWithoutStdio,
} from '@gapi/cli-builder';

export const Git = (
  args: string[] = [],
  options?: SpawnOptionsWithoutStdio
) => executeCommand('git', args, options);

export enum Commands {
  GIT = 1,
}

Bootstrap(
  CLIBuilder.forRoot<typeof Commands>(
    {
      GIT: async (args: string[]) => {
        console.log('[RUN_GIT]: started arguments: ', args);
        const data = await Git(args);
        console.log('[RUN_GIT]: exited');
        return data;
      },
    },
    Commands
  )
).subscribe(() => {
  if (Environment.GRAPHQL_RUNNER_SUBSCRIPTION_URI) {
    console.log(
      'STARTED_SUBSCRIPTIONS:',
      Environment.GRAPHQL_RUNNER_SUBSCRIPTION_URI
    );
  } else {
    console.log(
      'SIGNAL_MAIN_API_STARTED',
      `Running at http://localhost:${Environment.GRAPHQL_RUNNER_API_PORT}`
    );
  }
});

Open http://localhost:42043` Execute graphql query

mutation {
  execute(cmd: GIT, args: ["status"]) {
    code
    data
    error
  }
}

Subscribing to other topic

mutation subscribeToGraphqlPubsub {
  subscribeToGraphqlPubsub(
    uri: "ws://localhost:9000/subscriptions"
    worker_type: "runner"
  ) {
    code
    data
    error
  }
}

mutation unsubscribeToGraphqlPubsub {
  unsubscribeToGraphqlPubsub {
    code
    data
    error
  }
}

Keywords

graphql

FAQs

Package last updated on 27 Mar 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