ont-run 0.0.8 → 0.0.9
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/bin/ont.js +2 -2
- package/dist/src/server/start.d.ts +1 -1
- package/package.json +1 -1
- package/src/cli/commands/init.ts +1 -1
- package/src/server/start.ts +4 -3
package/dist/bin/ont.js
CHANGED
|
@@ -3342,7 +3342,7 @@ await startOnt();
|
|
|
3342
3342
|
packageJson.type = "module";
|
|
3343
3343
|
packageJson.scripts = {
|
|
3344
3344
|
...packageJson.scripts || {},
|
|
3345
|
-
dev: "bun run server.ts",
|
|
3345
|
+
dev: "NODE_ENV=development bun run server.ts",
|
|
3346
3346
|
start: "NODE_ENV=production bun run server.ts",
|
|
3347
3347
|
review: "bunx ont-run review"
|
|
3348
3348
|
};
|
|
@@ -8737,7 +8737,7 @@ var reviewCommand = defineCommand({
|
|
|
8737
8737
|
// package.json
|
|
8738
8738
|
var package_default = {
|
|
8739
8739
|
name: "ont-run",
|
|
8740
|
-
version: "0.0.
|
|
8740
|
+
version: "0.0.9",
|
|
8741
8741
|
description: "Ontology-enforced API framework for AI coding agents",
|
|
8742
8742
|
type: "module",
|
|
8743
8743
|
bin: {
|
|
@@ -6,7 +6,7 @@ export interface StartOntOptions {
|
|
|
6
6
|
mcpPort?: number;
|
|
7
7
|
/** Environment to use (default: 'dev') */
|
|
8
8
|
env?: string;
|
|
9
|
-
/** Mode: 'development' warns on lockfile issues, 'production' fails.
|
|
9
|
+
/** Mode: 'development' warns on lockfile issues, 'production' fails. Defaults to 'production' unless NODE_ENV is explicitly 'development'. */
|
|
10
10
|
mode?: "development" | "production";
|
|
11
11
|
/** Set to true to only start the API server */
|
|
12
12
|
apiOnly?: boolean;
|
package/package.json
CHANGED
package/src/cli/commands/init.ts
CHANGED
|
@@ -235,7 +235,7 @@ await startOnt();
|
|
|
235
235
|
packageJson.type = "module";
|
|
236
236
|
packageJson.scripts = {
|
|
237
237
|
...(packageJson.scripts as Record<string, string> || {}),
|
|
238
|
-
dev: "bun run server.ts",
|
|
238
|
+
dev: "NODE_ENV=development bun run server.ts",
|
|
239
239
|
start: "NODE_ENV=production bun run server.ts",
|
|
240
240
|
review: "bunx ont-run review",
|
|
241
241
|
};
|
package/src/server/start.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface StartOntOptions {
|
|
|
19
19
|
mcpPort?: number;
|
|
20
20
|
/** Environment to use (default: 'dev') */
|
|
21
21
|
env?: string;
|
|
22
|
-
/** Mode: 'development' warns on lockfile issues, 'production' fails.
|
|
22
|
+
/** Mode: 'development' warns on lockfile issues, 'production' fails. Defaults to 'production' unless NODE_ENV is explicitly 'development'. */
|
|
23
23
|
mode?: "development" | "production";
|
|
24
24
|
/** Set to true to only start the API server */
|
|
25
25
|
apiOnly?: boolean;
|
|
@@ -33,11 +33,12 @@ export interface StartOntResult {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Detect mode from NODE_ENV if not explicitly set
|
|
36
|
+
* Detect mode from NODE_ENV if not explicitly set.
|
|
37
|
+
* Defaults to 'production' (strict) unless NODE_ENV is explicitly 'development'.
|
|
37
38
|
*/
|
|
38
39
|
function detectMode(explicit?: "development" | "production"): "development" | "production" {
|
|
39
40
|
if (explicit) return explicit;
|
|
40
|
-
return process.env.NODE_ENV === "
|
|
41
|
+
return process.env.NODE_ENV === "development" ? "development" : "production";
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
/**
|