@kya-os/mcp-i 1.6.3-canary.clientinfo.20251126124133 → 1.6.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/dist/189.js +1 -1
- package/dist/570.js +1 -1
- package/dist/739.js +1 -1
- package/dist/runtime/adapter-express.js +1 -1
- package/dist/runtime/adapter-express.js.LICENSE.txt +6 -0
- package/dist/runtime/adapter-nextjs.js +1 -1
- package/dist/runtime/http.js +1 -1
- package/dist/runtime/http.js.LICENSE.txt +6 -0
- package/dist/runtime/session.js +2 -0
- package/dist/runtime/stdio.js +1 -1
- package/dist/runtime/utils/tools.js +1 -0
- package/package.json +5 -5
package/dist/runtime/session.js
CHANGED
|
@@ -78,6 +78,7 @@ class SessionManager {
|
|
|
78
78
|
const sessionId = this.generateSessionId();
|
|
79
79
|
const clientInfo = this.buildClientInfo(request);
|
|
80
80
|
// Create session context
|
|
81
|
+
// Phase 5: Sessions start anonymous until OAuth completes
|
|
81
82
|
const session = {
|
|
82
83
|
sessionId,
|
|
83
84
|
audience: request.audience,
|
|
@@ -86,6 +87,7 @@ class SessionManager {
|
|
|
86
87
|
createdAt: now,
|
|
87
88
|
lastActivity: now,
|
|
88
89
|
ttlMinutes: this.config.sessionTtlMinutes,
|
|
90
|
+
identityState: "anonymous", // Phase 5: Anonymous until OAuth
|
|
89
91
|
agentDid: request.agentDid, // Pass through agent DID for delegation verification
|
|
90
92
|
...(this.config.serverDid && { serverDid: this.config.serverDid }), // Include server DID if provided
|
|
91
93
|
...(clientInfo && { clientInfo }),
|