@amerged/ohmyhost-mcp 0.1.46 → 0.1.48
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-2GRH5YCK.js → chunk-AHSHRANX.js} +16 -7
- package/dist/index.js +1 -1
- package/dist/stdio-main.js +7 -5
- package/package.json +1 -1
- package/src/apps/mcp/package.json +1 -1
- package/src/apps/product-cli/package.json +1 -1
- package/src/apps/product-cli/src/cli.ts +1 -1
- package/src/apps/product-cli/src/repository-init.ts +5 -0
- package/src/packages/agent-skills/src/generated-skill-resources.ts +15 -6
- package/src/packages/contracts/src/framework-admission.ts +3 -3
- package/src/packages/contracts/src/framework-source-rules.ts +9 -1
- package/src/packages/contracts/src/index.ts +13 -0
- package/src/packages/contracts/src/secret-names.ts +1 -0
- package/src/packages/sdk-ts/package.json +1 -1
|
@@ -209,6 +209,7 @@ export function viteCompanionRequired(configuration: OhmyhostConfig): boolean {
|
|
|
209
209
|
configuration.database?.enabled === true ||
|
|
210
210
|
configuration.auth?.provider === "better-auth" ||
|
|
211
211
|
configuration.mail?.enabled === true ||
|
|
212
|
+
configuration.ai?.enabled === true ||
|
|
212
213
|
configuration.storage !== undefined ||
|
|
213
214
|
(configuration.functions?.crons.length ?? 0) > 0
|
|
214
215
|
);
|
|
@@ -637,12 +638,19 @@ function runtimeModeAdmitted(
|
|
|
637
638
|
configuration.storage === undefined &&
|
|
638
639
|
configuration.database?.enabled !== true &&
|
|
639
640
|
configuration.mail?.enabled !== true &&
|
|
641
|
+
configuration.ai?.enabled !== true &&
|
|
640
642
|
configuration.auth?.provider !== "better-auth")
|
|
641
643
|
);
|
|
642
644
|
if (framework === "nextjs") return mode === "edge";
|
|
643
645
|
if (framework === "vite-static")
|
|
644
646
|
return mode === (viteCompanionRequired(configuration) ? "edge" : "static");
|
|
645
|
-
return
|
|
647
|
+
return (
|
|
648
|
+
mode === "edge" ||
|
|
649
|
+
(mode === "static" &&
|
|
650
|
+
!crons &&
|
|
651
|
+
configuration.storage === undefined &&
|
|
652
|
+
configuration.ai?.enabled !== true)
|
|
653
|
+
);
|
|
646
654
|
}
|
|
647
655
|
|
|
648
656
|
function betterAuthFindings(
|
|
@@ -56,6 +56,11 @@ export interface OhmyhostConfig {
|
|
|
56
56
|
jurisdiction: "us" | "eu";
|
|
57
57
|
public: false;
|
|
58
58
|
}>;
|
|
59
|
+
/** `jurisdiction` is required when `enabled` is true; it has no default. */
|
|
60
|
+
readonly ai?: Readonly<{
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
jurisdiction?: "eu" | "any";
|
|
63
|
+
}>;
|
|
59
64
|
readonly functions?: Readonly<{ crons: readonly string[] }>;
|
|
60
65
|
readonly credits?: Readonly<{
|
|
61
66
|
monthly_budget: number;
|
|
@@ -125,6 +130,14 @@ export function parseOhmyhostConfig(value: unknown): OhmyhostConfig {
|
|
|
125
130
|
public: input.storage.public,
|
|
126
131
|
}),
|
|
127
132
|
}),
|
|
133
|
+
...(input.ai === undefined
|
|
134
|
+
? {}
|
|
135
|
+
: {
|
|
136
|
+
ai: Object.freeze({
|
|
137
|
+
enabled: input.ai.enabled,
|
|
138
|
+
...(input.ai.jurisdiction === undefined ? {} : { jurisdiction: input.ai.jurisdiction }),
|
|
139
|
+
}),
|
|
140
|
+
}),
|
|
128
141
|
...(input.functions === undefined
|
|
129
142
|
? {}
|
|
130
143
|
: {
|