@kybernesis/create 0.18.0 → 0.18.1

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/dist/templates.js CHANGED
@@ -404,9 +404,12 @@ function agentModelTemplate(host, config) {
404
404
  }
405
405
  if (host === "exe") {
406
406
  return {
407
- imports: `import { createOpenAI } from "@ai-sdk/openai";\n` +
407
+ // createAnthropic: the gateway serves Claude on Messages only, so an
408
+ // anthropic/* EXE_MODEL through the OpenAI client answers 404.
409
+ imports: `import { createAnthropic } from "@ai-sdk/anthropic";\n` +
410
+ `import { createOpenAI } from "@ai-sdk/openai";\n` +
408
411
  `import { exeModel } from "@kybernesis/exe";\n\n`,
409
- fields: ` model: exeModel({ model: process.env.EXE_MODEL ?? ${JSON.stringify(config.model)}, createOpenAI }),\n` +
412
+ fields: ` model: exeModel({ model: process.env.EXE_MODEL ?? ${JSON.stringify(config.model)}, createOpenAI, createAnthropic }),\n` +
410
413
  ` modelContextWindowTokens: 200_000,\n`,
411
414
  };
412
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kybernesis/create",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "The Kybernesis agent scaffolder and FDE toolkit: one command to a governed, remembering, multiplayer, self-testing eve agent \u2014 plus doctor and upgrade.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",