
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@gapi/cli-builder
Advanced tools
$ 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
}
}
FAQs
## Installation:
We found that @gapi/cli-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.