ghostfill 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -152,14 +152,14 @@ const clients: Record<Provider, OpenAI> = {
152
152
  }),
153
153
  moonshot: new OpenAI({
154
154
  apiKey: process.env.MOONSHOT_API_KEY,
155
- baseURL: "https://api.moonshot.cn/v1",
155
+ baseURL: "https://api.moonshot.ai/v1",
156
156
  }),
157
157
  };
158
158
 
159
159
  const models: Record<Provider, string> = {
160
160
  openai: process.env.GHOSTFILL_OPENAI_MODEL || "gpt-4o-mini",
161
161
  xai: process.env.GHOSTFILL_XAI_MODEL || "grok-4-fast",
162
- moonshot: process.env.GHOSTFILL_MOONSHOT_MODEL || "moonshot-v1-8k",
162
+ moonshot: process.env.GHOSTFILL_MOONSHOT_MODEL || "kimi-k2",
163
163
  };
164
164
 
165
165
  function isProvider(value: unknown): value is Provider {
@@ -255,6 +255,32 @@ await fill({
255
255
 
256
256
  Returns `{ filled: number, errors: string[] }`.
257
257
 
258
+ ## MCP Server
259
+
260
+ GhostFill includes an MCP (Model Context Protocol) server so AI agents like Claude Code and Cursor can generate form data directly.
261
+
262
+ ```json
263
+ {
264
+ "mcpServers": {
265
+ "ghostfill": {
266
+ "command": "npx",
267
+ "args": ["ghostfill-mcp"]
268
+ }
269
+ }
270
+ }
271
+ ```
272
+
273
+ **Tools:**
274
+
275
+ - `ghostfill_generate` — Generate realistic fake data locally. No API key required.
276
+ - `ghostfill_generate_ai` — Generate context-aware data via OpenAI, xAI, or Moonshot. Requires an API key.
277
+
278
+ Requires `@modelcontextprotocol/sdk` and `zod` as peer dependencies:
279
+
280
+ ```bash
281
+ npm install @modelcontextprotocol/sdk zod
282
+ ```
283
+
258
284
  ## License
259
285
 
260
286
  [PolyForm Shield 1.0.0](https://polyformproject.org/licenses/shield/1.0.0) — free to use, but you can't use it to build a competing product.
package/dist/index.js CHANGED
@@ -600,9 +600,6 @@ function startSelection(onSelect, onCancel, ghostfillRoot, highlightColor = "#63
600
600
  return cleanup;
601
601
  }
602
602
 
603
- // package.json
604
- var version = "0.2.4";
605
-
606
603
  // src/overlay.ts
607
604
  var STORAGE_KEY = "ghostfill_settings";
608
605
  var POS_KEY = "ghostfill_pos";
@@ -1260,7 +1257,7 @@ function createOverlay(options) {
1260
1257
  <div class="gf-pop-header">
1261
1258
  <h3><span class="gf-slash">/</span>ghostfill</h3>
1262
1259
  <div class="gf-header-right">
1263
- <span class="gf-version">v${version}</span>
1260
+ <span class="gf-version">v0.2.3</span>
1264
1261
  <button class="gf-theme-btn" id="gf-s-theme" title="Toggle theme">
1265
1262
  ${saved.theme === "dark" ? ICONS.sun : ICONS.moon}
1266
1263
  </button>