@amerged/ohmyhost-mcp 0.1.25 → 0.1.27
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 +1 -1
- package/dist/{chunk-L5A5FEGY.js → chunk-QF7MOXLY.js} +7 -7
- package/dist/index.js +1 -1
- package/dist/stdio-main.js +7 -6
- package/package.json +1 -1
- package/src/apps/mcp/package.json +1 -1
- package/src/apps/mcp/src/local-server.ts +2 -2
- package/src/apps/product-cli/package.json +1 -1
- package/src/apps/product-cli/src/repository-init.ts +6 -4
- package/src/apps/product-cli/src/runtime-contract.ts +9 -1
- package/src/packages/agent-skills/src/generated-skill-resources.ts +6 -6
- package/src/packages/contracts/src/framework-admission.ts +3 -6
- package/src/packages/contracts/src/framework-build-script.mjs +19 -0
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +2 -2
- package/src/packages/sdk-ts/src/generated/types.gen.ts +6 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PINNED_BUN_VERSION } from "./framework-build-script.mjs";
|
|
1
|
+
import { isAdmittedNextVersion, PINNED_BUN_VERSION } from "./framework-build-script.mjs";
|
|
2
2
|
import { managedCustomerAuthDatabaseMessage } from "./customer-auth-admission.js";
|
|
3
3
|
export { managedCustomerAuthAdmissionIssue } from "./customer-auth-admission.js";
|
|
4
4
|
|
|
@@ -129,7 +129,7 @@ export interface FrameworkVersionAdmission {
|
|
|
129
129
|
const VERIFIED_VERSIONS: Readonly<Record<AdmittedFramework, ReadonlySet<string>>> = Object.freeze({
|
|
130
130
|
vite: new Set(["5.4.21", "8.0.16", "8.2.2"]),
|
|
131
131
|
"tanstack-start": new Set(["1.168.26", "1.168.49"]),
|
|
132
|
-
nextjs: new Set(["15.5.
|
|
132
|
+
nextjs: new Set(["15.5.26", "16.3.7"]),
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
export function classifyFrameworkVersion(
|
|
@@ -173,10 +173,7 @@ function insideAdmittedWindow(framework: AdmittedFramework, version: VersionTupl
|
|
|
173
173
|
compareVersions(version, [1, 168, 26]) >= 0 && compareVersions(version, [1, 168, 49]) <= 0
|
|
174
174
|
);
|
|
175
175
|
case "nextjs":
|
|
176
|
-
return (
|
|
177
|
-
(version[0] === 15 && version[1] === 5) ||
|
|
178
|
-
(compareVersions(version, [16, 0, 0]) >= 0 && compareVersions(version, [16, 3, 4]) <= 0)
|
|
179
|
-
);
|
|
176
|
+
return isAdmittedNextVersion(version.join("."));
|
|
180
177
|
}
|
|
181
178
|
}
|
|
182
179
|
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export const PINNED_BUN_VERSION = "1.2.22";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* The installed Next.js release must satisfy the same window as source admission.
|
|
5
|
+
* @param {unknown} version
|
|
6
|
+
* @returns {boolean}
|
|
7
|
+
*/
|
|
8
|
+
export function isAdmittedNextVersion(version) {
|
|
9
|
+
if (typeof version !== "string") return false;
|
|
10
|
+
const match = /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/u.exec(version);
|
|
11
|
+
if (match === null) return false;
|
|
12
|
+
const major = Number(match[1]);
|
|
13
|
+
const minor = Number(match[2]);
|
|
14
|
+
const patch = Number(match[3]);
|
|
15
|
+
if (![major, minor, patch].every(Number.isSafeInteger)) return false;
|
|
16
|
+
return (
|
|
17
|
+
(major === 15 && minor === 5 && patch >= 26) ||
|
|
18
|
+
(major === 16 && minor === 3 && patch >= 6 && patch <= 7)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
3
22
|
const TYPESCRIPT_BUILD_STAGE = /^tsc(?:[ \t]+(?:--noEmit|-b|--build))?$/u;
|
|
4
23
|
|
|
5
24
|
/**
|
|
@@ -2560,7 +2560,7 @@ export const configureProjectDomains = <ThrowOnError extends boolean = true>(
|
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Plan one Paid customer-owned hostname
|
|
2562
2562
|
*
|
|
2563
|
-
*
|
|
2563
|
+
* Plan the customer's requested hostname before or after the first Prod deployment. This read-only plan explains declaration, Cloudflare consent and activation; it does not claim the hostname, create provider resources or change DNS.
|
|
2564
2564
|
*/
|
|
2565
2565
|
export const planPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
2566
2566
|
parameters: {
|
|
@@ -2698,7 +2698,7 @@ export const getPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
|
2698
2698
|
/**
|
|
2699
2699
|
* Apply one Paid customer-owned hostname
|
|
2700
2700
|
*
|
|
2701
|
-
* Requires Paid access (a Stripe period or a grant) or, for a Free workspace, a project that currently shows the powered-by flag, and no expired credit-exhaustion grace. Returns paid_plan_required otherwise, or insufficient_organization_credits after seven days with no available credits, without provider mutation. Top-ups lift a credit-exhaustion block but never start or extend Paid access.
|
|
2701
|
+
* Requires Paid access (a Stripe period or a grant) or, for a Free workspace, a project that currently shows the powered-by flag, and no expired credit-exhaustion grace. Returns paid_plan_required otherwise, or insufficient_organization_credits after seven days with no available credits, without provider mutation. Top-ups lift a credit-exhaustion block but never start or extend Paid access. Without an active Prod deployment, apply declares the hostname as awaiting_deployment, enabling Cloudflare consent without provider resources, DNS changes or domain charges. After a successful Prod deployment, replay the same hostname and idempotency key to activate it. A changed request under a used key returns idempotency_key_reused (409).
|
|
2702
2702
|
*/
|
|
2703
2703
|
export const applyPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
2704
2704
|
parameters: {
|
|
@@ -351,9 +351,13 @@ export type PaidDomainPlan = {
|
|
|
351
351
|
risks: Array<string>;
|
|
352
352
|
};
|
|
353
353
|
|
|
354
|
+
/**
|
|
355
|
+
* awaiting_deployment means the requested hostname is declared but not provisioned. Its hostname is present, suspension_reason, custom_hostname_status, ssl_status and url are null, and validation_records is empty. Authorize Cloudflare, deploy to Prod, then repeat the same apply.
|
|
356
|
+
*/
|
|
354
357
|
export type PaidDomain = {
|
|
355
358
|
status:
|
|
356
359
|
| "not_configured"
|
|
360
|
+
| "awaiting_deployment"
|
|
357
361
|
| "pending"
|
|
358
362
|
| "active"
|
|
359
363
|
| "reconciliation_required"
|
|
@@ -4686,7 +4690,7 @@ export type PlanPaidProjectDomainError =
|
|
|
4686
4690
|
|
|
4687
4691
|
export type PlanPaidProjectDomainResponses = {
|
|
4688
4692
|
/**
|
|
4689
|
-
*
|
|
4693
|
+
* The requested hostname, routing target and staged provider effects.
|
|
4690
4694
|
*/
|
|
4691
4695
|
200: PaidDomainPlan;
|
|
4692
4696
|
};
|
|
@@ -4880,7 +4884,7 @@ export type ApplyPaidProjectDomainError =
|
|
|
4880
4884
|
|
|
4881
4885
|
export type ApplyPaidProjectDomainResponses = {
|
|
4882
4886
|
/**
|
|
4883
|
-
*
|
|
4887
|
+
* Declared hostname or current Cloudflare for SaaS hostname and certificate state.
|
|
4884
4888
|
*/
|
|
4885
4889
|
200: PaidDomain;
|
|
4886
4890
|
};
|