eric-sdk 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -3,40 +3,55 @@
3
3
  All notable changes to the Eric SDK are documented here.
4
4
 
5
5
  This project follows semantic versioning.
6
- Pre-1.0 releases may introduce intentional breaking changes as the API surface hardens.
6
+ Pre-1.0 releases may introduce intentional breaking changes as the API surface evolves.
7
+
8
+ ---
9
+
10
+ ## [0.1.2] – 2026-02-03
11
+
12
+ ### What's New:
13
+
14
+ * **Updated API Endpoint**: The SDK now calls the API endpoint at `https://us-central1-eric-ai-prod.cloudfunctions.net/decide` for decision-making flows.
15
+
16
+ ### Breaking Changes:
17
+
18
+ * **Endpoint Change**: If you were using the previous `decide` endpoint, please update the SDK configuration to use the new endpoint.
7
19
 
8
20
  ---
9
21
 
10
22
  ## [0.1.1] – 2026-01-30
11
23
 
12
- ### Changed
13
- - Removed explicit `flow: "decisionRouter"` from SDK requests.
24
+ ### Changed:
25
+
26
+ * Removed explicit `flow: "decisionRouter"` from SDK requests.
14
27
 
15
- ### Rationale
16
- The Eric API no longer accepts direct flow invocation.
17
- All requests are treated as intent submissions and are routed through
18
- the internal decision router by default.
28
+ ### Rationale:
19
29
 
20
- This change simplifies the SDK payload and prevents accidental coupling
21
- to internal execution details.
30
+ The Eric API no longer accepts direct flow invocations.
31
+ All requests are now treated as intent submissions and are routed through the internal decision router by default. This change simplifies the SDK payload and prevents accidental coupling to internal execution details.
32
+
33
+ ---
22
34
 
23
35
  ## [0.1.0] – 2026-01-27
24
36
 
25
- ### Changed
26
- - Removed `client.call()` to prevent direct flow invocation.
27
- - All executions must now be routed through `decide()`.
37
+ ### Changed:
28
38
 
29
- ### Rationale
30
- Direct flow execution allowed applications to bypass policy enforcement.
31
- Eric is designed as a governance and control layer; all execution must pass through
32
- policy evaluation to ensure deterministic, auditable outcomes.
39
+ * Removed `client.call()` to prevent direct flow invocation.
40
+ * All executions must now be routed through `decide()`.
33
41
 
34
- This release intentionally narrows the public API to reflect Eric’s execution model.
42
+ ### Rationale:
43
+
44
+ Direct flow execution allowed applications to bypass policy enforcement. Eric is designed as a governance and control layer, and all execution must pass through policy evaluation to ensure deterministic, auditable outcomes. This release intentionally narrows the public API to reflect Eric’s execution model.
35
45
 
36
46
  ---
37
47
 
38
48
  ## [0.0.5] – 2025-12-14
39
49
 
40
- ### Added
41
- - Initial public SDK release.
42
- - `decide()` with policy-based routing and optional execution bounds.
50
+ ### Added:
51
+
52
+ * Initial public SDK release.
53
+ * `decide()` with policy-based routing and optional execution bounds.
54
+
55
+ ---
56
+
57
+ This version ensures clarity and consistency across all sections while providing users with the necessary context on each update.
package/dist/index.cjs CHANGED
@@ -60,7 +60,7 @@ var EricSDK = class {
60
60
  constructor(options) {
61
61
  this.apiKey = options.apiKey;
62
62
  this.client = options.client;
63
- this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
63
+ this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
64
64
  }
65
65
  /* -------------------------------------------------------------
66
66
  * DECIDE — policy-governed execution
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var EricSDK = class {
4
4
  constructor(options) {
5
5
  this.apiKey = options.apiKey;
6
6
  this.client = options.client;
7
- this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
7
+ this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
8
8
  }
9
9
  /* -------------------------------------------------------------
10
10
  * DECIDE — policy-governed execution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eric-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official SDK for enforcing policy-governed AI execution using the Eric AI governance layer",
5
5
  "author": "Rod Bridges",
6
6
  "license": "MIT",
package/src/client.ts CHANGED
@@ -30,7 +30,7 @@ export class EricSDK {
30
30
  this.client = options.client;
31
31
  this.baseUrl =
32
32
  options.baseUrl ??
33
- "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
33
+ "https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
34
34
  }
35
35
 
36
36
  /* -------------------------------------------------------------