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 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.8",
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. Auto-detected from NODE_ENV if not set. */
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ont-run",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Ontology-enforced API framework for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
  };
@@ -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. Auto-detected from NODE_ENV if not set. */
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 === "production" ? "production" : "development";
41
+ return process.env.NODE_ENV === "development" ? "development" : "production";
41
42
  }
42
43
 
43
44
  /**