eric-sdk 0.1.1 → 0.1.3
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 +53 -20
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
- package/src/client.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,40 +3,73 @@
|
|
|
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
|
|
6
|
+
Pre-1.0 releases may introduce intentional breaking changes as the API surface evolves.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## [0.1.3] – 2026-02-06
|
|
11
|
+
|
|
12
|
+
### Changed:
|
|
13
|
+
|
|
14
|
+
* **Removed `client` from request payload**: The SDK no longer includes `client` in the request body when calling `decide()`.
|
|
15
|
+
|
|
16
|
+
### Rationale:
|
|
17
|
+
|
|
18
|
+
`client` is infrastructure identity and is now treated as authoritative header-only metadata (`x-api-client`).
|
|
19
|
+
This change removes ambiguity, prevents spoofing, and aligns the SDK with Eric’s control-plane model, where execution authority lives outside user-provided input.
|
|
20
|
+
|
|
21
|
+
### Notes:
|
|
22
|
+
|
|
23
|
+
* Applications must continue to provide `x-api-client` and `x-api-key` headers.
|
|
24
|
+
* Requests that previously included `client` in the body may be rejected by strict API validation.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## [0.1.2] – 2026-02-03
|
|
29
|
+
|
|
30
|
+
### What's New:
|
|
31
|
+
|
|
32
|
+
* **Updated API Endpoint**: The SDK now calls the API endpoint at `https://us-central1-eric-ai-prod.cloudfunctions.net/decide` for decision-making flows.
|
|
33
|
+
|
|
34
|
+
### Breaking Changes:
|
|
35
|
+
|
|
36
|
+
* **Endpoint Change**: If you were using the previous `decide` endpoint, please update the SDK configuration to use the new endpoint.
|
|
7
37
|
|
|
8
38
|
---
|
|
9
39
|
|
|
10
40
|
## [0.1.1] – 2026-01-30
|
|
11
41
|
|
|
12
|
-
### Changed
|
|
13
|
-
|
|
42
|
+
### Changed:
|
|
43
|
+
|
|
44
|
+
* Removed explicit `flow: "decisionRouter"` from SDK requests.
|
|
45
|
+
|
|
46
|
+
### Rationale:
|
|
14
47
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
All requests are treated as intent submissions and are routed through
|
|
18
|
-
the internal decision router by default.
|
|
48
|
+
The Eric API no longer accepts direct flow invocations.
|
|
49
|
+
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.
|
|
19
50
|
|
|
20
|
-
|
|
21
|
-
to internal execution details.
|
|
51
|
+
---
|
|
22
52
|
|
|
23
53
|
## [0.1.0] – 2026-01-27
|
|
24
54
|
|
|
25
|
-
### Changed
|
|
26
|
-
|
|
27
|
-
|
|
55
|
+
### Changed:
|
|
56
|
+
|
|
57
|
+
* Removed `client.call()` to prevent direct flow invocation.
|
|
58
|
+
* All executions must now be routed through `decide()`.
|
|
28
59
|
|
|
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.
|
|
60
|
+
### Rationale:
|
|
33
61
|
|
|
34
|
-
This release intentionally narrows the public API to reflect Eric’s execution model.
|
|
62
|
+
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
63
|
|
|
36
64
|
---
|
|
37
65
|
|
|
38
66
|
## [0.0.5] – 2025-12-14
|
|
39
67
|
|
|
40
|
-
### Added
|
|
41
|
-
|
|
42
|
-
|
|
68
|
+
### Added:
|
|
69
|
+
|
|
70
|
+
* Initial public SDK release.
|
|
71
|
+
* `decide()` with policy-based routing and optional execution bounds.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
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/
|
|
63
|
+
this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
|
|
64
64
|
}
|
|
65
65
|
/* -------------------------------------------------------------
|
|
66
66
|
* DECIDE — policy-governed execution
|
|
@@ -70,7 +70,6 @@ var EricSDK = class {
|
|
|
70
70
|
const payload = {
|
|
71
71
|
data: {
|
|
72
72
|
...rest,
|
|
73
|
-
client: this.client,
|
|
74
73
|
text: rest.text ?? "implicit_intent"
|
|
75
74
|
}
|
|
76
75
|
};
|
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/
|
|
7
|
+
this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
|
|
8
8
|
}
|
|
9
9
|
/* -------------------------------------------------------------
|
|
10
10
|
* DECIDE — policy-governed execution
|
|
@@ -14,7 +14,6 @@ var EricSDK = class {
|
|
|
14
14
|
const payload = {
|
|
15
15
|
data: {
|
|
16
16
|
...rest,
|
|
17
|
-
client: this.client,
|
|
18
17
|
text: rest.text ?? "implicit_intent"
|
|
19
18
|
}
|
|
20
19
|
};
|
package/package.json
CHANGED
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/
|
|
33
|
+
"https://us-central1-eric-ai-prod.cloudfunctions.net/decide";
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* -------------------------------------------------------------
|
|
@@ -42,7 +42,6 @@ export class EricSDK {
|
|
|
42
42
|
const payload: any = {
|
|
43
43
|
data: {
|
|
44
44
|
...rest,
|
|
45
|
-
client: this.client,
|
|
46
45
|
text: rest.text ?? "implicit_intent",
|
|
47
46
|
},
|
|
48
47
|
};
|