@sentisec/sdk 0.1.0-rc.7 → 1.0.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/CHANGELOG.md +17 -0
- package/dist/index.cjs +4 -6
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,23 @@ Versions that were prepared but never reached npm are listed under
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [1.0.0] — 2026-10-17
|
|
18
|
+
|
|
19
|
+
### Changed (in the source, not yet in any published version)
|
|
20
|
+
|
|
21
|
+
- **`Monitor.wrap()`'s "no adapter matched" error tells the truth.** It
|
|
22
|
+
ended with "Anthropic support lands with T-152", an internal card number
|
|
23
|
+
promising a release — but the Anthropic adapter has shipped since
|
|
24
|
+
`0.1.0-rc.4` and is registered. The message now names both shapes it
|
|
25
|
+
accepts: OpenAI `{baseURL, defaultHeaders, chat.completions.create}` and
|
|
26
|
+
Anthropic `{baseURL, defaultHeaders, messages.create}`.
|
|
27
|
+
- **The three methods this SDK does not implement say so.**
|
|
28
|
+
`Monitor.session()`, `Session.wrap()` and
|
|
29
|
+
`Session.exportForensicBundle()` threw messages promising they would
|
|
30
|
+
"land with" internal cards. They still throw, now with "is not
|
|
31
|
+
implemented in this SDK" and, where one exists, the method to use
|
|
32
|
+
instead (`Monitor.wrap(client)`). No signature or export changed.
|
|
33
|
+
|
|
17
34
|
### 0.1.0 (GA)
|
|
18
35
|
|
|
19
36
|
Not published. The GA version number has never been cut; the general
|
package/dist/index.cjs
CHANGED
|
@@ -299,7 +299,7 @@ function installWrap(MonitorCtor) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
throw new Error(
|
|
302
|
-
`Monitor.wrap: no registered vendor adapter matched the client. Registered vendors: [${registry.map((e) => e.name).join(", ")}]. OpenAI shape requires {baseURL, defaultHeaders, chat.completions.create}; Anthropic
|
|
302
|
+
`Monitor.wrap: no registered vendor adapter matched the client. Registered vendors: [${registry.map((e) => e.name).join(", ")}]. OpenAI shape requires {baseURL, defaultHeaders, chat.completions.create}; Anthropic shape requires {baseURL, defaultHeaders, messages.create}.`
|
|
303
303
|
);
|
|
304
304
|
};
|
|
305
305
|
}
|
|
@@ -718,16 +718,14 @@ var Session = class {
|
|
|
718
718
|
*/
|
|
719
719
|
wrap(_client) {
|
|
720
720
|
throw new Error(
|
|
721
|
-
"Session.wrap
|
|
721
|
+
"Session.wrap() is not implemented in this SDK. Use Monitor.wrap(client) for OpenAI and Anthropic clients."
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
724
|
/**
|
|
725
725
|
* Reserved forensic export method; currently throws.
|
|
726
726
|
*/
|
|
727
727
|
exportForensicBundle() {
|
|
728
|
-
throw new Error(
|
|
729
|
-
"Forensic bundle export lands with T-153: Session.exportForensicBundle lands with T-153."
|
|
730
|
-
);
|
|
728
|
+
throw new Error("Session.exportForensicBundle() is not implemented in this SDK.");
|
|
731
729
|
}
|
|
732
730
|
};
|
|
733
731
|
function isBuiltinPolicy(policy) {
|
|
@@ -765,7 +763,7 @@ var Monitor = class {
|
|
|
765
763
|
*/
|
|
766
764
|
session() {
|
|
767
765
|
throw new Error(
|
|
768
|
-
"Monitor.session()
|
|
766
|
+
"Monitor.session() is not implemented in this SDK. Use Monitor.wrap(client) to route a provider client through Sentisec."
|
|
769
767
|
);
|
|
770
768
|
}
|
|
771
769
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -385,8 +385,9 @@ declare function wrapAnthropicStream<T extends AnthropicStreamingLike>(client: T
|
|
|
385
385
|
* @sentisec/sdk — TypeScript SDK public surface.
|
|
386
386
|
*
|
|
387
387
|
* Use `Monitor.wrap()` for OpenAI and Anthropic clients, and the
|
|
388
|
-
* separate streaming wrappers for SSE responses.
|
|
389
|
-
* and
|
|
388
|
+
* separate streaming wrappers for SSE responses. `Monitor.session()`,
|
|
389
|
+
* `Session.wrap()` and `Session.exportForensicBundle()` are not
|
|
390
|
+
* implemented and throw saying so.
|
|
390
391
|
*/
|
|
391
392
|
/**
|
|
392
393
|
* Base class for all Sentisec SDK exceptions. Frozen at
|
package/dist/index.d.ts
CHANGED
|
@@ -385,8 +385,9 @@ declare function wrapAnthropicStream<T extends AnthropicStreamingLike>(client: T
|
|
|
385
385
|
* @sentisec/sdk — TypeScript SDK public surface.
|
|
386
386
|
*
|
|
387
387
|
* Use `Monitor.wrap()` for OpenAI and Anthropic clients, and the
|
|
388
|
-
* separate streaming wrappers for SSE responses.
|
|
389
|
-
* and
|
|
388
|
+
* separate streaming wrappers for SSE responses. `Monitor.session()`,
|
|
389
|
+
* `Session.wrap()` and `Session.exportForensicBundle()` are not
|
|
390
|
+
* implemented and throw saying so.
|
|
390
391
|
*/
|
|
391
392
|
/**
|
|
392
393
|
* Base class for all Sentisec SDK exceptions. Frozen at
|
package/dist/index.js
CHANGED
|
@@ -295,7 +295,7 @@ function installWrap(MonitorCtor) {
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
throw new Error(
|
|
298
|
-
`Monitor.wrap: no registered vendor adapter matched the client. Registered vendors: [${registry.map((e) => e.name).join(", ")}]. OpenAI shape requires {baseURL, defaultHeaders, chat.completions.create}; Anthropic
|
|
298
|
+
`Monitor.wrap: no registered vendor adapter matched the client. Registered vendors: [${registry.map((e) => e.name).join(", ")}]. OpenAI shape requires {baseURL, defaultHeaders, chat.completions.create}; Anthropic shape requires {baseURL, defaultHeaders, messages.create}.`
|
|
299
299
|
);
|
|
300
300
|
};
|
|
301
301
|
}
|
|
@@ -714,16 +714,14 @@ var Session = class {
|
|
|
714
714
|
*/
|
|
715
715
|
wrap(_client) {
|
|
716
716
|
throw new Error(
|
|
717
|
-
"Session.wrap
|
|
717
|
+
"Session.wrap() is not implemented in this SDK. Use Monitor.wrap(client) for OpenAI and Anthropic clients."
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
721
721
|
* Reserved forensic export method; currently throws.
|
|
722
722
|
*/
|
|
723
723
|
exportForensicBundle() {
|
|
724
|
-
throw new Error(
|
|
725
|
-
"Forensic bundle export lands with T-153: Session.exportForensicBundle lands with T-153."
|
|
726
|
-
);
|
|
724
|
+
throw new Error("Session.exportForensicBundle() is not implemented in this SDK.");
|
|
727
725
|
}
|
|
728
726
|
};
|
|
729
727
|
function isBuiltinPolicy(policy) {
|
|
@@ -761,7 +759,7 @@ var Monitor = class {
|
|
|
761
759
|
*/
|
|
762
760
|
session() {
|
|
763
761
|
throw new Error(
|
|
764
|
-
"Monitor.session()
|
|
762
|
+
"Monitor.session() is not implemented in this SDK. Use Monitor.wrap(client) to route a provider client through Sentisec."
|
|
765
763
|
);
|
|
766
764
|
}
|
|
767
765
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentisec/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
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",
|