@amerged/ohmyhost-mcp 0.1.46 → 0.1.47

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.
@@ -30,7 +30,7 @@ import {
30
30
  serverIdentityOf,
31
31
  setNegotiatedProtocolVersion,
32
32
  validateEnvelopeMeta
33
- } from "./chunk-2GRH5YCK.js";
33
+ } from "./chunk-AH764FGJ.js";
34
34
 
35
35
  // node_modules/.pnpm/ignore@7.0.12/node_modules/ignore/index.js
36
36
  var require_ignore = __commonJS({
@@ -24160,8 +24160,8 @@ var FRAMEWORK_CONVERSION_DETAILS = Object.freeze({
24160
24160
  from: "framework",
24161
24161
  text: {
24162
24162
  nextjs: "runtime.mode: edge",
24163
- "vite-static": "runtime.mode: edge with src/ohmyhost/companion.ts when database, auth, mail, storage or functions.crons is set, and static otherwise",
24164
- "tanstack-start": "runtime.mode: edge, or static without functions.crons and storage",
24163
+ "vite-static": "runtime.mode: edge with src/ohmyhost/companion.ts when database, auth, mail, ai, storage or functions.crons is set, and static otherwise",
24164
+ "tanstack-start": "runtime.mode: edge, or static without functions.crons, storage and ai",
24165
24165
  astro: "runtime.mode: static for prerendered sites, or edge with the Cloudflare adapter"
24166
24166
  }
24167
24167
  }
@@ -24222,7 +24222,7 @@ var FRAMEWORK_CONVERSION_DETAILS = Object.freeze({
24222
24222
  },
24223
24223
  companion_entry_required: {
24224
24224
  paths: ["module"],
24225
- template: '"{{path}}" is missing. A Vite app with runtime.mode: edge or with database, auth, mail, storage or functions.crons needs this Worker module with export default { fetch }. Add it, or use runtime.mode: static without those settings; commit and push the change, then plan the new commit.'
24225
+ template: '"{{path}}" is missing. A Vite app with runtime.mode: edge or with database, auth, mail, ai, storage or functions.crons needs this Worker module with export default { fetch }. Add it, or use runtime.mode: static without those settings; commit and push the change, then plan the new commit.'
24226
24226
  },
24227
24227
  worker_module_required: {
24228
24228
  paths: ["module"],
@@ -27413,7 +27413,7 @@ function exact4(value, keys) {
27413
27413
  // apps/product-cli/package.json
27414
27414
  var package_default2 = {
27415
27415
  name: "@ohmyhost/product-cli",
27416
- version: "0.1.46",
27416
+ version: "0.1.47",
27417
27417
  private: true,
27418
27418
  ohmyhost: {
27419
27419
  deployment: "production",
@@ -27474,6 +27474,7 @@ var FIXED_PLATFORM_NAMES = /* @__PURE__ */ new Set([
27474
27474
  var INSTALLED_PLATFORM_KEYS = /* @__PURE__ */ new Set([
27475
27475
  "OHMYHOST_STORAGE_KEY",
27476
27476
  "OHMYHOST_MAIL_KEY",
27477
+ "OHMYHOST_AI_KEY",
27477
27478
  "BETTER_AUTH_SECRET"
27478
27479
  ]);
27479
27480
  function isUserSecretName(value, action = "set") {
@@ -33653,6 +33654,7 @@ var MAIL_RUNTIME_BINDINGS = Object.freeze([
33653
33654
  "OHMYHOST_MAIL_KEY",
33654
33655
  "OHMYHOST_PROJECT_ID"
33655
33656
  ]);
33657
+ var AI_RUNTIME_BINDINGS = Object.freeze(["OHMYHOST_AI_BASE_URL", "OHMYHOST_AI_KEY"]);
33656
33658
  var CUSTOMER_RUNTIME_SOURCE = `npm:@amerged/ohmyhost-runtime@${package_default2.version}`;
33657
33659
  var PENDING_CHECKS = Object.freeze({
33658
33660
  installed_version: "compatibility.frameworks lists a version range that no lockfile ohmyho.st reads (package-lock.json v2/v3 or pnpm-lock.yaml v6/v9) resolves. Planning admits it; after the frozen install, the build checks the installed version against the same security minimum.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-mcp",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/mcp",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "private": true,
5
5
  "ohmyhost": {
6
6
  "deployment": "production",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/product-cli",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "private": true,
5
5
  "ohmyhost": {
6
6
  "deployment": "production",
@@ -616,7 +616,7 @@ export const invalidCommandAction = (argv: readonly string[], commandPrefix: str
616
616
  if (name !== undefined && !isUserSecretName(name, action))
617
617
  return action === "set"
618
618
  ? "Choose a customer secret name of at most 128 uppercase letters, digits and underscores, starting with a letter. OHMYHOST_* and DATABASE_URL, HYPERDRIVE, BETTER_AUTH_SECRET, BETTER_AUTH_URL, ASSETS, FILES, IMAGES and STORAGE are reserved for the platform. Rename the application's own variable and its source references; platform bindings are installed automatically. Nothing was sent; changing only the idempotency key will not help."
619
- : "Choose an existing customer secret name of at most 128 uppercase letters, digits and underscores, starting with a letter. The installed platform keys OHMYHOST_STORAGE_KEY, OHMYHOST_MAIL_KEY and BETTER_AUTH_SECRET cannot be deleted. Older reserved-name collisions can be removed with secret delete; deployed platform keys stay managed by ohmyho.st. Nothing was sent; changing only the idempotency key will not help.";
619
+ : "Choose an existing customer secret name of at most 128 uppercase letters, digits and underscores, starting with a letter. The installed platform keys OHMYHOST_STORAGE_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_AI_KEY and BETTER_AUTH_SECRET cannot be deleted. Older reserved-name collisions can be removed with secret delete; deployed platform keys stay managed by ohmyho.st. Nothing was sent; changing only the idempotency key will not help.";
620
620
  }
621
621
  const usage = Object.hasOwn(HELP_USAGE, label)
622
622
  ? HELP_USAGE[label as CustomerCommandLabel].split("\n")[0]
@@ -104,6 +104,7 @@ const MAIL_RUNTIME_BINDINGS = Object.freeze([
104
104
  "OHMYHOST_MAIL_KEY",
105
105
  "OHMYHOST_PROJECT_ID",
106
106
  ]);
107
+ const AI_RUNTIME_BINDINGS = Object.freeze(["OHMYHOST_AI_BASE_URL", "OHMYHOST_AI_KEY"]);
107
108
  // The runtime release is published unchanged as `@amerged/ohmyhost-runtime`; this pinned alias keeps
108
109
  // its import name and, unlike the website archive each release removes, stays installable.
109
110
  const CUSTOMER_RUNTIME_SOURCE = `npm:@amerged/ohmyhost-runtime@${cliPackage.version}`;
@@ -376,6 +377,7 @@ export async function initializeRepository(
376
377
  const targetBetterAuth = existingConfiguration?.auth?.provider === "better-auth";
377
378
  // Mail stays an explicit choice: Better Auth or a detected mail package never enables it.
378
379
  const targetMail = existingConfiguration?.mail?.enabled === true;
380
+ const targetAi = existingConfiguration?.ai?.enabled === true;
379
381
  const targetStorage = r2 || supabaseStorage;
380
382
  // TanStack Start binds storage only on edge, as a Vite app does through its companion.
381
383
  const tanStackRuntime =
@@ -423,6 +425,7 @@ export async function initializeRepository(
423
425
  database: selectedDatabaseProvider !== "none",
424
426
  auth: targetBetterAuth,
425
427
  mail: targetMail,
428
+ ai: targetAi,
426
429
  storage: targetStorage,
427
430
  });
428
431
  const companion = companionRequired
@@ -1577,6 +1580,7 @@ type RuntimeCapabilities = Readonly<{
1577
1580
  database: boolean;
1578
1581
  auth: boolean;
1579
1582
  mail: boolean;
1583
+ ai: boolean;
1580
1584
  storage: boolean;
1581
1585
  }>;
1582
1586
 
@@ -1593,6 +1597,7 @@ function runtimeContract(capabilities: RuntimeCapabilities): Readonly<{
1593
1597
  ...(capabilities.storage ? STORAGE_RUNTIME_BINDINGS : []),
1594
1598
  ...(capabilities.database ? ["OHMYHOST_DATABASE"] : []),
1595
1599
  ...(capabilities.mail ? MAIL_RUNTIME_BINDINGS : []),
1600
+ ...(capabilities.ai ? AI_RUNTIME_BINDINGS : []),
1596
1601
  ]),
1597
1602
  ].sort(),
1598
1603
  ),