couchloop-eq-mcp 2.0.8 → 2.0.10
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/developer/managers/context-manager.d.ts +3 -3
- package/dist/developer/managers/context-manager.d.ts.map +1 -1
- package/dist/developer/managers/context-manager.js +21 -12
- package/dist/developer/managers/context-manager.js.map +1 -1
- package/dist/developer/types/ai-errors.js +3 -3
- package/dist/developer/types/ai-errors.js.map +1 -1
- package/dist/server/http-mcp.js +1 -1
- package/dist/server/http-mcp.js.map +1 -1
- package/dist/server/index.js +6 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/middleware/auth.d.ts +6 -0
- package/dist/server/middleware/auth.d.ts.map +1 -1
- package/dist/server/middleware/auth.js +24 -1
- package/dist/server/middleware/auth.js.map +1 -1
- package/dist/server/sse.d.ts.map +1 -1
- package/dist/server/sse.js +54 -0
- package/dist/server/sse.js.map +1 -1
- package/dist/tools/checkpoint.d.ts.map +1 -1
- package/dist/tools/checkpoint.js +7 -4
- package/dist/tools/checkpoint.js.map +1 -1
- package/dist/tools/comprehensive-package-audit.d.ts.map +1 -1
- package/dist/tools/comprehensive-package-audit.js +4 -1
- package/dist/tools/comprehensive-package-audit.js.map +1 -1
- package/dist/tools/insight.d.ts +0 -1
- package/dist/tools/insight.d.ts.map +1 -1
- package/dist/tools/insight.js +6 -6
- package/dist/tools/insight.js.map +1 -1
- package/dist/tools/preserve-context.d.ts +13 -3
- package/dist/tools/preserve-context.d.ts.map +1 -1
- package/dist/tools/preserve-context.js +74 -9
- package/dist/tools/preserve-context.js.map +1 -1
- package/dist/tools/primary-tools.d.ts.map +1 -1
- package/dist/tools/primary-tools.js +2 -1
- package/dist/tools/primary-tools.js.map +1 -1
- package/dist/tools/session-manager.d.ts.map +1 -1
- package/dist/tools/session-manager.js +11 -5
- package/dist/tools/session-manager.js.map +1 -1
- package/dist/tools/smart-context.d.ts.map +1 -1
- package/dist/tools/smart-context.js +9 -3
- package/dist/tools/smart-context.js.map +1 -1
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/status.js +10 -10
- package/dist/tools/status.js.map +1 -1
- package/dist/tools/verify.js +3 -3
- package/dist/tools/verify.js.map +1 -1
- package/dist/types/auth.d.ts +11 -0
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/auth.js +79 -6
- package/dist/types/auth.js.map +1 -1
- package/dist/types/checkpoint.d.ts +5 -0
- package/dist/types/checkpoint.d.ts.map +1 -1
- package/dist/types/context.d.ts +36 -0
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/context.js +3 -0
- package/dist/types/context.js.map +1 -1
- package/dist/types/insight.d.ts +10 -0
- package/dist/types/insight.d.ts.map +1 -1
- package/dist/types/journey.d.ts +5 -0
- package/dist/types/journey.d.ts.map +1 -1
- package/dist/types/session.d.ts +10 -0
- package/dist/types/session.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/types/context.d.ts
CHANGED
|
@@ -7,16 +7,52 @@ export declare const PreserveContextSchema: z.ZodObject<{
|
|
|
7
7
|
content: z.ZodOptional<z.ZodString>;
|
|
8
8
|
search_term: z.ZodOptional<z.ZodString>;
|
|
9
9
|
include_metadata: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
token: z.ZodOptional<z.ZodString>;
|
|
13
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
user_id?: string | undefined;
|
|
19
|
+
thread_id?: string | undefined;
|
|
20
|
+
token?: string | undefined;
|
|
21
|
+
client_id?: string | undefined;
|
|
22
|
+
conversation_id?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
user_id?: string | undefined;
|
|
25
|
+
thread_id?: string | undefined;
|
|
26
|
+
token?: string | undefined;
|
|
27
|
+
client_id?: string | undefined;
|
|
28
|
+
conversation_id?: string | undefined;
|
|
29
|
+
}>>;
|
|
10
30
|
}, "strip", z.ZodTypeAny, {
|
|
11
31
|
action: "check" | "store" | "retrieve" | "cleanup";
|
|
12
32
|
include_metadata: boolean;
|
|
33
|
+
session_id?: string | undefined;
|
|
13
34
|
content?: string | undefined;
|
|
14
35
|
category?: "architecture" | "requirements" | "constraints" | "decisions" | "technical-patterns" | "project-metadata" | undefined;
|
|
36
|
+
auth?: {
|
|
37
|
+
user_id?: string | undefined;
|
|
38
|
+
thread_id?: string | undefined;
|
|
39
|
+
token?: string | undefined;
|
|
40
|
+
client_id?: string | undefined;
|
|
41
|
+
conversation_id?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
15
43
|
search_term?: string | undefined;
|
|
16
44
|
}, {
|
|
17
45
|
action: "check" | "store" | "retrieve" | "cleanup";
|
|
46
|
+
session_id?: string | undefined;
|
|
18
47
|
content?: string | undefined;
|
|
19
48
|
category?: "architecture" | "requirements" | "constraints" | "decisions" | "technical-patterns" | "project-metadata" | undefined;
|
|
49
|
+
auth?: {
|
|
50
|
+
user_id?: string | undefined;
|
|
51
|
+
thread_id?: string | undefined;
|
|
52
|
+
token?: string | undefined;
|
|
53
|
+
client_id?: string | undefined;
|
|
54
|
+
conversation_id?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
20
56
|
search_term?: string | undefined;
|
|
21
57
|
include_metadata?: boolean | undefined;
|
|
22
58
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,mHAO1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,IAAI,CAAC;IACnB,4BAA4B,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,eAAe,GAAG,IAAI,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/types/context.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { AuthContextSchema } from './auth.js';
|
|
2
3
|
export const ContextCategory = z.enum([
|
|
3
4
|
'architecture',
|
|
4
5
|
'requirements',
|
|
@@ -13,5 +14,7 @@ export const PreserveContextSchema = z.object({
|
|
|
13
14
|
content: z.string().optional().describe('Content to store'),
|
|
14
15
|
search_term: z.string().optional().describe('Search term for retrieving context'),
|
|
15
16
|
include_metadata: z.boolean().default(false).describe('Include usage metadata in response'),
|
|
17
|
+
session_id: z.string().uuid().optional().describe('Optional session used to resolve the backing thread scope'),
|
|
18
|
+
auth: AuthContextSchema.optional().describe('Authentication or thread context used for scoping'),
|
|
16
19
|
});
|
|
17
20
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,cAAc;IACd,cAAc;IACd,aAAa;IACb,WAAW;IACX,oBAAoB;IACpB,kBAAkB;CACnB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACvF,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;IACxG,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACjF,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAC3F,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IAC9G,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;CACjG,CAAC,CAAC"}
|
package/dist/types/insight.d.ts
CHANGED
|
@@ -8,14 +8,17 @@ export declare const SaveInsightSchema: z.ZodObject<{
|
|
|
8
8
|
token: z.ZodOptional<z.ZodString>;
|
|
9
9
|
user_id: z.ZodOptional<z.ZodString>;
|
|
10
10
|
client_id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
11
12
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
user_id?: string | undefined;
|
|
15
|
+
thread_id?: string | undefined;
|
|
14
16
|
token?: string | undefined;
|
|
15
17
|
client_id?: string | undefined;
|
|
16
18
|
conversation_id?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
user_id?: string | undefined;
|
|
21
|
+
thread_id?: string | undefined;
|
|
19
22
|
token?: string | undefined;
|
|
20
23
|
client_id?: string | undefined;
|
|
21
24
|
conversation_id?: string | undefined;
|
|
@@ -26,6 +29,7 @@ export declare const SaveInsightSchema: z.ZodObject<{
|
|
|
26
29
|
session_id?: string | undefined;
|
|
27
30
|
auth?: {
|
|
28
31
|
user_id?: string | undefined;
|
|
32
|
+
thread_id?: string | undefined;
|
|
29
33
|
token?: string | undefined;
|
|
30
34
|
client_id?: string | undefined;
|
|
31
35
|
conversation_id?: string | undefined;
|
|
@@ -36,6 +40,7 @@ export declare const SaveInsightSchema: z.ZodObject<{
|
|
|
36
40
|
tags?: string[] | undefined;
|
|
37
41
|
auth?: {
|
|
38
42
|
user_id?: string | undefined;
|
|
43
|
+
thread_id?: string | undefined;
|
|
39
44
|
token?: string | undefined;
|
|
40
45
|
client_id?: string | undefined;
|
|
41
46
|
conversation_id?: string | undefined;
|
|
@@ -49,14 +54,17 @@ export declare const GetUserContextSchema: z.ZodObject<{
|
|
|
49
54
|
token: z.ZodOptional<z.ZodString>;
|
|
50
55
|
user_id: z.ZodOptional<z.ZodString>;
|
|
51
56
|
client_id: z.ZodOptional<z.ZodString>;
|
|
57
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
52
58
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
53
59
|
}, "strip", z.ZodTypeAny, {
|
|
54
60
|
user_id?: string | undefined;
|
|
61
|
+
thread_id?: string | undefined;
|
|
55
62
|
token?: string | undefined;
|
|
56
63
|
client_id?: string | undefined;
|
|
57
64
|
conversation_id?: string | undefined;
|
|
58
65
|
}, {
|
|
59
66
|
user_id?: string | undefined;
|
|
67
|
+
thread_id?: string | undefined;
|
|
60
68
|
token?: string | undefined;
|
|
61
69
|
client_id?: string | undefined;
|
|
62
70
|
conversation_id?: string | undefined;
|
|
@@ -66,6 +74,7 @@ export declare const GetUserContextSchema: z.ZodObject<{
|
|
|
66
74
|
include_session_history: boolean;
|
|
67
75
|
auth?: {
|
|
68
76
|
user_id?: string | undefined;
|
|
77
|
+
thread_id?: string | undefined;
|
|
69
78
|
token?: string | undefined;
|
|
70
79
|
client_id?: string | undefined;
|
|
71
80
|
conversation_id?: string | undefined;
|
|
@@ -73,6 +82,7 @@ export declare const GetUserContextSchema: z.ZodObject<{
|
|
|
73
82
|
}, {
|
|
74
83
|
auth?: {
|
|
75
84
|
user_id?: string | undefined;
|
|
85
|
+
thread_id?: string | undefined;
|
|
76
86
|
token?: string | undefined;
|
|
77
87
|
client_id?: string | undefined;
|
|
78
88
|
conversation_id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insight.d.ts","sourceRoot":"","sources":["../../src/types/insight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE9D,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"insight.d.ts","sourceRoot":"","sources":["../../src/types/insight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,EAAE,OAAO,EAAE,CAAC;IAC3B,eAAe,EAAE,OAAO,EAAE,CAAC;IAC3B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC"}
|
package/dist/types/journey.d.ts
CHANGED
|
@@ -140,14 +140,17 @@ export declare const GetJourneyStatusSchema: z.ZodObject<{
|
|
|
140
140
|
token: z.ZodOptional<z.ZodString>;
|
|
141
141
|
user_id: z.ZodOptional<z.ZodString>;
|
|
142
142
|
client_id: z.ZodOptional<z.ZodString>;
|
|
143
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
143
144
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
144
145
|
}, "strip", z.ZodTypeAny, {
|
|
145
146
|
user_id?: string | undefined;
|
|
147
|
+
thread_id?: string | undefined;
|
|
146
148
|
token?: string | undefined;
|
|
147
149
|
client_id?: string | undefined;
|
|
148
150
|
conversation_id?: string | undefined;
|
|
149
151
|
}, {
|
|
150
152
|
user_id?: string | undefined;
|
|
153
|
+
thread_id?: string | undefined;
|
|
151
154
|
token?: string | undefined;
|
|
152
155
|
client_id?: string | undefined;
|
|
153
156
|
conversation_id?: string | undefined;
|
|
@@ -156,6 +159,7 @@ export declare const GetJourneyStatusSchema: z.ZodObject<{
|
|
|
156
159
|
session_id: string;
|
|
157
160
|
auth?: {
|
|
158
161
|
user_id?: string | undefined;
|
|
162
|
+
thread_id?: string | undefined;
|
|
159
163
|
token?: string | undefined;
|
|
160
164
|
client_id?: string | undefined;
|
|
161
165
|
conversation_id?: string | undefined;
|
|
@@ -164,6 +168,7 @@ export declare const GetJourneyStatusSchema: z.ZodObject<{
|
|
|
164
168
|
session_id: string;
|
|
165
169
|
auth?: {
|
|
166
170
|
user_id?: string | undefined;
|
|
171
|
+
thread_id?: string | undefined;
|
|
167
172
|
token?: string | undefined;
|
|
168
173
|
client_id?: string | undefined;
|
|
169
174
|
conversation_id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey.d.ts","sourceRoot":"","sources":["../../src/types/journey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG3D,eAAO,MAAM,qBAAqB,gDAA8C,CAAC;AACjF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"journey.d.ts","sourceRoot":"","sources":["../../src/types/journey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG3D,eAAO,MAAM,qBAAqB,gDAA8C,CAAC;AACjF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE;QACR,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;CAC9B"}
|
package/dist/types/session.d.ts
CHANGED
|
@@ -9,14 +9,17 @@ export declare const CreateSessionSchema: z.ZodObject<{
|
|
|
9
9
|
token: z.ZodOptional<z.ZodString>;
|
|
10
10
|
user_id: z.ZodOptional<z.ZodString>;
|
|
11
11
|
client_id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
12
13
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
14
15
|
user_id?: string | undefined;
|
|
16
|
+
thread_id?: string | undefined;
|
|
15
17
|
token?: string | undefined;
|
|
16
18
|
client_id?: string | undefined;
|
|
17
19
|
conversation_id?: string | undefined;
|
|
18
20
|
}, {
|
|
19
21
|
user_id?: string | undefined;
|
|
22
|
+
thread_id?: string | undefined;
|
|
20
23
|
token?: string | undefined;
|
|
21
24
|
client_id?: string | undefined;
|
|
22
25
|
conversation_id?: string | undefined;
|
|
@@ -24,6 +27,7 @@ export declare const CreateSessionSchema: z.ZodObject<{
|
|
|
24
27
|
}, "strip", z.ZodTypeAny, {
|
|
25
28
|
auth?: {
|
|
26
29
|
user_id?: string | undefined;
|
|
30
|
+
thread_id?: string | undefined;
|
|
27
31
|
token?: string | undefined;
|
|
28
32
|
client_id?: string | undefined;
|
|
29
33
|
conversation_id?: string | undefined;
|
|
@@ -33,6 +37,7 @@ export declare const CreateSessionSchema: z.ZodObject<{
|
|
|
33
37
|
}, {
|
|
34
38
|
auth?: {
|
|
35
39
|
user_id?: string | undefined;
|
|
40
|
+
thread_id?: string | undefined;
|
|
36
41
|
token?: string | undefined;
|
|
37
42
|
client_id?: string | undefined;
|
|
38
43
|
conversation_id?: string | undefined;
|
|
@@ -47,14 +52,17 @@ export declare const ResumeSessionSchema: z.ZodObject<{
|
|
|
47
52
|
token: z.ZodOptional<z.ZodString>;
|
|
48
53
|
user_id: z.ZodOptional<z.ZodString>;
|
|
49
54
|
client_id: z.ZodOptional<z.ZodString>;
|
|
55
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
50
56
|
conversation_id: z.ZodOptional<z.ZodString>;
|
|
51
57
|
}, "strip", z.ZodTypeAny, {
|
|
52
58
|
user_id?: string | undefined;
|
|
59
|
+
thread_id?: string | undefined;
|
|
53
60
|
token?: string | undefined;
|
|
54
61
|
client_id?: string | undefined;
|
|
55
62
|
conversation_id?: string | undefined;
|
|
56
63
|
}, {
|
|
57
64
|
user_id?: string | undefined;
|
|
65
|
+
thread_id?: string | undefined;
|
|
58
66
|
token?: string | undefined;
|
|
59
67
|
client_id?: string | undefined;
|
|
60
68
|
conversation_id?: string | undefined;
|
|
@@ -63,6 +71,7 @@ export declare const ResumeSessionSchema: z.ZodObject<{
|
|
|
63
71
|
session_id?: string | undefined;
|
|
64
72
|
auth?: {
|
|
65
73
|
user_id?: string | undefined;
|
|
74
|
+
thread_id?: string | undefined;
|
|
66
75
|
token?: string | undefined;
|
|
67
76
|
client_id?: string | undefined;
|
|
68
77
|
conversation_id?: string | undefined;
|
|
@@ -71,6 +80,7 @@ export declare const ResumeSessionSchema: z.ZodObject<{
|
|
|
71
80
|
session_id?: string | undefined;
|
|
72
81
|
auth?: {
|
|
73
82
|
user_id?: string | undefined;
|
|
83
|
+
thread_id?: string | undefined;
|
|
74
84
|
token?: string | undefined;
|
|
75
85
|
client_id?: string | undefined;
|
|
76
86
|
conversation_id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/types/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEpE,eAAO,MAAM,mBAAmB,2DAAyD,CAAC;AAC1F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/types/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEpE,eAAO,MAAM,mBAAmB,2DAAyD,CAAC;AAC1F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchloop-eq-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Behavioral governance layer for LLMs - monitors for hallucination, inconsistency, tone drift, and unsafe reasoning while managing stateful AI sessions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"server:dev": "tsx watch src/server/index.ts",
|
|
63
63
|
"server:v2": "FF_V2_ROLLOUT_PCT=100 tsx src/server/index.ts",
|
|
64
64
|
"smithery:publish:url": "smithery mcp publish \"https://mcp.couchloop.com/mcp\" -n @wisenbergg/couchloop-mcp --config-schema '{\"type\":\"object\",\"properties\":{},\"additionalProperties\":false}'",
|
|
65
|
-
"security:check": "npm run security:secrets && npm run security:audit && npm run security:package",
|
|
65
|
+
"security:check": "npm run security:repo-secrets && npm run security:secrets && npm run security:audit && npm run security:package",
|
|
66
|
+
"security:repo-secrets": "node scripts/scan-repo-secrets.mjs",
|
|
66
67
|
"security:secrets": "node -e \"const{execSync}=require('child_process');try{const r=execSync('grep -rE \\\"(sk-|pk_live_|AKIA)[A-Za-z0-9]{20,}\\\" dist/ --include=*.js 2>/dev/null',{encoding:'utf8'});if(r.trim()){console.log(r);console.log('❌ Hardcoded secrets found!');process.exit(1)}}catch(e){}console.log('✅ No hardcoded secrets found')\"",
|
|
67
68
|
"security:audit": "npm audit --audit-level=high || true",
|
|
68
69
|
"security:package": "npm pack --dry-run 2>&1 | grep -E 'schema\\.|seed\\.|migrate\\.|oauth/' && echo '❌ Sensitive files in package!' && exit 1 || echo '✅ Package clean'",
|