@sentisec/sdk 0.1.0-rc.1 → 0.1.0-rc.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/dist/index.cjs CHANGED
@@ -17,7 +17,7 @@ var SentisecHijackError = class extends Error {
17
17
  };
18
18
 
19
19
  // src/openai.ts
20
- var DEFAULT_INGRESS_TEMPLATE = "https://ingress.sentisec.ch/ws/{workspace}/v1";
20
+ var DEFAULT_INGRESS_TEMPLATE = "https://api.sentisec.ch/ws/{workspace}/v1";
21
21
  function resolveProxyBaseUrl(workspace, opts) {
22
22
  if (opts?.baseUrl !== void 0) return opts.baseUrl;
23
23
  return DEFAULT_INGRESS_TEMPLATE.replace("{workspace}", workspace);
package/dist/index.d.cts CHANGED
@@ -53,7 +53,7 @@ interface OpenAILike {
53
53
  /**
54
54
  * Optional per-call overrides to `wrap(...)`. The default behaviour
55
55
  * (no second arg) rewrites the client's baseURL to
56
- * `https://ingress.sentisec.ch/ws/<workspace>/v1` per the T-151
56
+ * `https://api.sentisec.ch/ws/<workspace>/v1` per the T-151
57
57
  * acceptance contract. Customers who run an on-prem proxy or who
58
58
  * want to point the wrap at a staging ingress override `baseUrl`
59
59
  * explicitly — the override is a literal string, not a template.
@@ -72,7 +72,7 @@ interface WrapOptions {
72
72
  * to the wrong ingress; the T-151 test
73
73
  * `test_wrap_rewrites_base_url` grep-guards the literal.
74
74
  */
75
- declare const DEFAULT_INGRESS_TEMPLATE = "https://ingress.sentisec.ch/ws/{workspace}/v1";
75
+ declare const DEFAULT_INGRESS_TEMPLATE = "https://api.sentisec.ch/ws/{workspace}/v1";
76
76
 
77
77
  /**
78
78
  * @sentisec/sdk · monitor.ts — Monitor.wrap dispatcher (T-151).
@@ -115,7 +115,7 @@ declare module "./index.js" {
115
115
  * `SentisecHijackError`.
116
116
  *
117
117
  * - The client's `baseURL` is rewritten to the Sentisec proxy
118
- * URL (default `https://ingress.sentisec.ch/ws/<workspace>/v1`,
118
+ * URL (default `https://api.sentisec.ch/ws/<workspace>/v1`,
119
119
  * overridable via `opts.baseUrl`).
120
120
  * - The client's `defaultHeaders` carries
121
121
  * `x-sentisec-session-id` for the proxy to correlate
package/dist/index.d.ts CHANGED
@@ -53,7 +53,7 @@ interface OpenAILike {
53
53
  /**
54
54
  * Optional per-call overrides to `wrap(...)`. The default behaviour
55
55
  * (no second arg) rewrites the client's baseURL to
56
- * `https://ingress.sentisec.ch/ws/<workspace>/v1` per the T-151
56
+ * `https://api.sentisec.ch/ws/<workspace>/v1` per the T-151
57
57
  * acceptance contract. Customers who run an on-prem proxy or who
58
58
  * want to point the wrap at a staging ingress override `baseUrl`
59
59
  * explicitly — the override is a literal string, not a template.
@@ -72,7 +72,7 @@ interface WrapOptions {
72
72
  * to the wrong ingress; the T-151 test
73
73
  * `test_wrap_rewrites_base_url` grep-guards the literal.
74
74
  */
75
- declare const DEFAULT_INGRESS_TEMPLATE = "https://ingress.sentisec.ch/ws/{workspace}/v1";
75
+ declare const DEFAULT_INGRESS_TEMPLATE = "https://api.sentisec.ch/ws/{workspace}/v1";
76
76
 
77
77
  /**
78
78
  * @sentisec/sdk · monitor.ts — Monitor.wrap dispatcher (T-151).
@@ -115,7 +115,7 @@ declare module "./index.js" {
115
115
  * `SentisecHijackError`.
116
116
  *
117
117
  * - The client's `baseURL` is rewritten to the Sentisec proxy
118
- * URL (default `https://ingress.sentisec.ch/ws/<workspace>/v1`,
118
+ * URL (default `https://api.sentisec.ch/ws/<workspace>/v1`,
119
119
  * overridable via `opts.baseUrl`).
120
120
  * - The client's `defaultHeaders` carries
121
121
  * `x-sentisec-session-id` for the proxy to correlate
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var SentisecHijackError = class extends Error {
13
13
  };
14
14
 
15
15
  // src/openai.ts
16
- var DEFAULT_INGRESS_TEMPLATE = "https://ingress.sentisec.ch/ws/{workspace}/v1";
16
+ var DEFAULT_INGRESS_TEMPLATE = "https://api.sentisec.ch/ws/{workspace}/v1";
17
17
  function resolveProxyBaseUrl(workspace, opts) {
18
18
  if (opts?.baseUrl !== void 0) return opts.baseUrl;
19
19
  return DEFAULT_INGRESS_TEMPLATE.replace("{workspace}", workspace);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentisec/sdk",
3
- "version": "0.1.0-rc.1",
3
+ "version": "0.1.0-rc.2",
4
4
  "description": "Sentisec TypeScript SDK — cognitive integrity monitoring for autonomous agents. Monitor + wrap(...) for OpenAI / Anthropic agent loops with SSE streaming support.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",