JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 59
  • Score
    100M100P100Q88204F

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@headless-coder-sdk/gemini-adapter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @headless-coder-sdk/gemini-adapter

    Google Gemini CLI adapter for the Headless Coder SDK. It shells out to the Gemini binary in headless mode and exposes the same ThreadHandle contract used by the other providers.

    Installation

    npm install @headless-coder-sdk/core @headless-coder-sdk/gemini-adapter

    You will also need the Gemini CLI installed somewhere on your PATH (or pass geminiBinaryPath when starting the adapter).

    Usage

    import { createHeadlessGemini } from '@headless-coder-sdk/gemini-adapter';
    
    const coder = createHeadlessGemini({
      includeDirectories: [process.cwd()],
      workingDirectory: process.cwd(),
    });
    
    const thread = await coder.startThread();
    const result = await thread.run('List the areas of the repo that need more tests.');
    console.log(result.text);

    createHeadlessGemini registers the adapter and returns a coder, so you can instantiate it inside server code without touching the registry manually.

    Note: resume support depends on the Gemini CLI version—check the package README or upstream release notes for the latest status. The adapter shells out via Node’s child_process, so keep it on the server (Next.js API routes, background workers, etc.).