@agentknight/sdk 0.9.35

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.
@@ -0,0 +1,24 @@
1
+ import {
2
+ SessionOperationError
3
+ } from "./chunk-SJHJER3B.js";
4
+
5
+ // src/adapters/copilot/runtime/session-identity.ts
6
+ function assertMainSessionId(sessionId) {
7
+ if (sessionId.startsWith("managed:")) {
8
+ throw new SessionOperationError("AGENT_OPERATION_UNSUPPORTED", "Managed sessions require their owning agent router");
9
+ }
10
+ if (isResearchSessionId(sessionId)) {
11
+ throw new SessionOperationError(
12
+ "RESEARCH_SESSION_ISOLATED",
13
+ "Research sessions require the isolated research runtime"
14
+ );
15
+ }
16
+ }
17
+ function isResearchSessionId(sessionId) {
18
+ return sessionId.trim().toLowerCase().startsWith("research-");
19
+ }
20
+
21
+ export {
22
+ assertMainSessionId,
23
+ isResearchSessionId
24
+ };