eric-sdk 0.1.0 → 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,27 +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.
19
+
20
+ ---
21
+
22
+ ## [0.1.1] – 2026-01-30
23
+
24
+ ### Changed:
25
+
26
+ * Removed explicit `flow: "decisionRouter"` from SDK requests.
27
+
28
+ ### Rationale:
29
+
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.
7
32
 
8
33
  ---
9
34
 
10
35
  ## [0.1.0] – 2026-01-27
11
36
 
12
- ### Changed
13
- - Removed `client.call()` to prevent direct flow invocation.
14
- - All executions must now be routed through `decide()`.
37
+ ### Changed:
38
+
39
+ * Removed `client.call()` to prevent direct flow invocation.
40
+ * All executions must now be routed through `decide()`.
15
41
 
16
- ### Rationale
17
- Direct flow execution allowed applications to bypass policy enforcement.
18
- Eric is designed as a governance and control layer; all execution must pass through
19
- policy evaluation to ensure deterministic, auditable outcomes.
42
+ ### Rationale:
20
43
 
21
- This release intentionally narrows the public API to reflect Eric’s execution model.
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.
22
45
 
23
46
  ---
24
47
 
25
48
  ## [0.0.5] – 2025-12-14
26
49
 
27
- ### Added
28
- - Initial public SDK release.
29
- - `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/README.md CHANGED
@@ -101,6 +101,7 @@ All fields are guaranteed to be present according to the executed capability’s
101
101
  * **Deterministic behavior** — predictable outputs by design
102
102
  * **Auditability** — every decision and execution is logged
103
103
  * **Infrastructure-grade** — built for production systems, not chatbots
104
+ * **Intend-base API** — clients describe what they want, not what to run
104
105
 
105
106
  ---
106
107
 
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
@@ -68,7 +68,6 @@ var EricSDK = class {
68
68
  async decide(input) {
69
69
  const { allowedFlows, requestType, ...rest } = input;
70
70
  const payload = {
71
- flow: "decisionRouter",
72
71
  data: {
73
72
  ...rest,
74
73
  client: this.client,
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
@@ -12,7 +12,6 @@ var EricSDK = class {
12
12
  async decide(input) {
13
13
  const { allowedFlows, requestType, ...rest } = input;
14
14
  const payload = {
15
- flow: "decisionRouter",
16
15
  data: {
17
16
  ...rest,
18
17
  client: this.client,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eric-sdk",
3
- "version": "0.1.0",
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
  /* -------------------------------------------------------------
@@ -40,7 +40,6 @@ export class EricSDK {
40
40
  const { allowedFlows, requestType, ...rest } = input;
41
41
 
42
42
  const payload: any = {
43
- flow: "decisionRouter",
44
43
  data: {
45
44
  ...rest,
46
45
  client: this.client,