@theagenthealth/agenthealth 0.15.0 → 0.16.0

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 CHANGED
@@ -6,10 +6,10 @@ not supported. All implemented adapters and graph configurations use the same
6
6
  AHS v1 configuration and result contracts as the CLI.
7
7
 
8
8
  ```sh
9
- npm install @theagenthealth/agenthealth@0.15.0
9
+ npm install @theagenthealth/agenthealth@0.16.0
10
10
  ```
11
11
 
12
- Install and verify CLI **v0.15.0** separately using the
12
+ Install and verify CLI **v0.16.0** separately using the
13
13
  [installation guide](../../docs/installation.md). The SDK never downloads or
14
14
  executes binaries at import/install time. A mismatched CLI raises
15
15
  `CompatibilityError` before running checks.
@@ -58,5 +58,8 @@ See the [SDK guide](../../docs/javascript-sdk.md),
58
58
  [example](../../examples/javascript-sdk/README.md), and
59
59
  [Phase 16 impact review](../../docs/phase-16-alignment.md).
60
60
 
61
- Source release target: v0.15.0. Requires the matching CLI; model/LLM
61
+ Published software: v0.16.0. Requires the matching CLI; model/LLM
62
62
  configuration is supported through the canonical schema.
63
+
64
+ Native database targets use the matching CLI; fixed SQL queries require explicit
65
+ functional opt-in. Passwords use `database.password_env` references.
package/index.js CHANGED
@@ -7,7 +7,7 @@ import { performance } from 'node:perf_hooks';
7
7
  import Ajv2020 from 'ajv/dist/2020.js';
8
8
  import { parseDocument } from 'yaml';
9
9
 
10
- export const version = '0.15.0';
10
+ export const version = '0.16.0';
11
11
  export const healthStates = Object.freeze(['HEALTHY', 'DEGRADED', 'UNHEALTHY', 'UNREACHABLE', 'MISCONFIGURED', 'UNKNOWN']);
12
12
  export class AgentHealthError extends Error {
13
13
  constructor(message) { super(message); this.name = new.target.name; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theagenthealth/agenthealth",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Typed Node.js SDK for the AgentHealth reference CLI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -183,6 +183,9 @@
183
183
  "gateway",
184
184
  "router"
185
185
  ]
186
+ },
187
+ "database": {
188
+ "$ref": "#/$defs/DatabaseOptions"
186
189
  }
187
190
  },
188
191
  "required": [
@@ -625,6 +628,25 @@
625
628
  }
626
629
  }
627
630
  }
631
+ },
632
+ {
633
+ "if": {
634
+ "required": [
635
+ "database"
636
+ ]
637
+ },
638
+ "then": {
639
+ "properties": {
640
+ "type": {
641
+ "const": "database"
642
+ }
643
+ },
644
+ "not": {
645
+ "required": [
646
+ "auth"
647
+ ]
648
+ }
649
+ }
628
650
  }
629
651
  ]
630
652
  },
@@ -753,6 +775,9 @@
753
775
  },
754
776
  "model": {
755
777
  "$ref": "#/$defs/ModelOptions"
778
+ },
779
+ "database": {
780
+ "$ref": "#/$defs/DatabaseOptions"
756
781
  }
757
782
  },
758
783
  "required": [
@@ -1331,6 +1356,25 @@
1331
1356
  }
1332
1357
  },
1333
1358
  "then": false
1359
+ },
1360
+ {
1361
+ "if": {
1362
+ "required": [
1363
+ "database"
1364
+ ]
1365
+ },
1366
+ "then": {
1367
+ "properties": {
1368
+ "type": {
1369
+ "const": "database"
1370
+ }
1371
+ },
1372
+ "not": {
1373
+ "required": [
1374
+ "auth"
1375
+ ]
1376
+ }
1377
+ }
1334
1378
  }
1335
1379
  ]
1336
1380
  },
@@ -1875,6 +1919,31 @@
1875
1919
  "description": "OpenAI-compatible output limit field; empty selects max_tokens. The anthropic api always uses max_tokens."
1876
1920
  }
1877
1921
  }
1922
+ },
1923
+ "DatabaseOptions": {
1924
+ "type": "object",
1925
+ "additionalProperties": false,
1926
+ "properties": {
1927
+ "username": {
1928
+ "type": "string"
1929
+ },
1930
+ "password_env": {
1931
+ "type": "string",
1932
+ "minLength": 1,
1933
+ "pattern": "^[^=\\u0000]+$",
1934
+ "allOf": [
1935
+ {
1936
+ "pattern": "\\S"
1937
+ }
1938
+ ]
1939
+ },
1940
+ "tls": {
1941
+ "enum": [
1942
+ "required",
1943
+ "disabled"
1944
+ ]
1945
+ }
1946
+ }
1878
1947
  }
1879
1948
  },
1880
1949
  "type": "object",