couchloop-eq-mcp 2.0.7 → 2.0.9
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/index.js +3 -0
- package/dist/index.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 +4 -1
- package/dist/tools/checkpoint.js.map +1 -1
- package/dist/tools/comprehensive-code-review.js +2 -2
- package/dist/tools/comprehensive-code-review.js.map +1 -1
- package/dist/tools/comprehensive-package-audit.d.ts.map +1 -1
- package/dist/tools/comprehensive-package-audit.js +7 -5
- package/dist/tools/comprehensive-package-audit.js.map +1 -1
- package/dist/tools/insight.d.ts +6 -1
- package/dist/tools/insight.d.ts.map +1 -1
- package/dist/tools/insight.js +1 -1
- 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 +5 -1
- package/dist/tools/primary-tools.d.ts.map +1 -1
- package/dist/tools/primary-tools.js +180 -92
- package/dist/tools/primary-tools.js.map +1 -1
- package/dist/tools/session-manager.d.ts +14 -0
- package/dist/tools/session-manager.d.ts.map +1 -1
- package/dist/tools/session-manager.js +112 -12
- 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 +21 -0
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/status.js +31 -15
- package/dist/tools/status.js.map +1 -1
- package/dist/tools/verify.d.ts.map +1 -1
- package/dist/tools/verify.js +9 -3
- package/dist/tools/verify.js.map +1 -1
- package/dist/types/auth.d.ts +3 -0
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/auth.js +30 -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/dist/workflows/definitions/daily-reflection.js +16 -16
- package/dist/workflows/definitions/daily-reflection.js.map +1 -1
- package/dist/workflows/definitions/gratitude-practice.js +15 -15
- package/dist/workflows/definitions/gratitude-practice.js.map +1 -1
- package/dist/workflows/definitions/weekly-review.js +21 -21
- package/dist/workflows/definitions/weekly-review.js.map +1 -1
- package/package.json +3 -2
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"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export const dailyReflection = {
|
|
2
|
-
slug: 'daily-
|
|
3
|
-
name: 'Daily
|
|
4
|
-
description: '
|
|
5
|
-
estimatedMinutes:
|
|
6
|
-
tags: ['
|
|
2
|
+
slug: 'daily-standup',
|
|
3
|
+
name: 'Developer Daily Standup',
|
|
4
|
+
description: 'Quick self-check: what you shipped, what is blocking you, and what is next.',
|
|
5
|
+
estimatedMinutes: 3,
|
|
6
|
+
tags: ['developer', 'daily', 'short'],
|
|
7
7
|
steps: [
|
|
8
8
|
{
|
|
9
9
|
id: 'step_1',
|
|
10
10
|
order: 1,
|
|
11
11
|
type: 'prompt',
|
|
12
12
|
content: {
|
|
13
|
-
prompt: '
|
|
14
|
-
checkpoint_key: '
|
|
15
|
-
instructions: '
|
|
13
|
+
prompt: 'What did you ship or make progress on since last check-in?',
|
|
14
|
+
checkpoint_key: 'shipped',
|
|
15
|
+
instructions: 'Accept anything: a PR, a fix, a design decision, even research. If they did not ship, that is fine too.'
|
|
16
16
|
},
|
|
17
17
|
optional: false
|
|
18
18
|
},
|
|
@@ -21,9 +21,9 @@ export const dailyReflection = {
|
|
|
21
21
|
order: 2,
|
|
22
22
|
type: 'prompt',
|
|
23
23
|
content: {
|
|
24
|
-
prompt: '
|
|
25
|
-
checkpoint_key: '
|
|
26
|
-
instructions: '
|
|
24
|
+
prompt: 'Is anything blocking you right now?',
|
|
25
|
+
checkpoint_key: 'blockers',
|
|
26
|
+
instructions: 'Could be technical (failing CI, unclear API), human (waiting on review), or personal (energy, context switching). Offer to save blockers as constraints.'
|
|
27
27
|
},
|
|
28
28
|
optional: false
|
|
29
29
|
},
|
|
@@ -32,18 +32,18 @@ export const dailyReflection = {
|
|
|
32
32
|
order: 3,
|
|
33
33
|
type: 'prompt',
|
|
34
34
|
content: {
|
|
35
|
-
prompt: '
|
|
36
|
-
checkpoint_key: '
|
|
37
|
-
instructions: '
|
|
35
|
+
prompt: 'What is the one thing you want to finish today?',
|
|
36
|
+
checkpoint_key: 'today_goal',
|
|
37
|
+
instructions: 'Encourage a single, concrete deliverable. Save it as a checkpoint so they can recall it later.'
|
|
38
38
|
},
|
|
39
|
-
optional:
|
|
39
|
+
optional: false
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
id: 'step_4',
|
|
43
43
|
order: 4,
|
|
44
44
|
type: 'summary',
|
|
45
45
|
content: {
|
|
46
|
-
instructions: '
|
|
46
|
+
instructions: 'Recap shipped work, blockers, and today\'s goal. If blockers were mentioned, suggest saving them to memory. Keep it brief and actionable.'
|
|
47
47
|
},
|
|
48
48
|
optional: false
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daily-reflection.js","sourceRoot":"","sources":["../../../src/workflows/definitions/daily-reflection.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAY;IACtC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"daily-reflection.js","sourceRoot":"","sources":["../../../src/workflows/definitions/daily-reflection.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAY;IACtC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,6EAA6E;IAC1F,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC;IACrC,KAAK,EAAE;QACL;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,4DAA4D;gBACpE,cAAc,EAAE,SAAS;gBACzB,YAAY,EAAE,yGAAyG;aACxH;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,qCAAqC;gBAC7C,cAAc,EAAE,UAAU;gBAC1B,YAAY,EAAE,0JAA0J;aACzK;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,iDAAiD;gBACzD,cAAc,EAAE,YAAY;gBAC5B,YAAY,EAAE,gGAAgG;aAC/G;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,YAAY,EAAE,2IAA2I;aAC1J;YACD,QAAQ,EAAE,KAAK;SAChB;KACF;CACF,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export const gratitudePractice = {
|
|
2
|
-
slug: '
|
|
3
|
-
name: '
|
|
4
|
-
description: '
|
|
5
|
-
estimatedMinutes:
|
|
6
|
-
tags: ['
|
|
2
|
+
slug: 'debug-postmortem',
|
|
3
|
+
name: 'Debug Postmortem',
|
|
4
|
+
description: 'Just fixed a tricky bug? Capture what happened and what you learned so you never hit it again.',
|
|
5
|
+
estimatedMinutes: 5,
|
|
6
|
+
tags: ['developer', 'debugging', 'short'],
|
|
7
7
|
steps: [
|
|
8
8
|
{
|
|
9
9
|
id: 'step_1',
|
|
10
10
|
order: 1,
|
|
11
11
|
type: 'prompt',
|
|
12
12
|
content: {
|
|
13
|
-
prompt: 'What
|
|
14
|
-
checkpoint_key: '
|
|
15
|
-
instructions: '
|
|
13
|
+
prompt: 'What was the bug or issue? Describe the symptoms you saw.',
|
|
14
|
+
checkpoint_key: 'bug_symptoms',
|
|
15
|
+
instructions: 'Error messages, wrong behavior, failing test. Get the observable facts first.'
|
|
16
16
|
},
|
|
17
17
|
optional: false
|
|
18
18
|
},
|
|
@@ -21,9 +21,9 @@ export const gratitudePractice = {
|
|
|
21
21
|
order: 2,
|
|
22
22
|
type: 'prompt',
|
|
23
23
|
content: {
|
|
24
|
-
prompt: 'What
|
|
25
|
-
checkpoint_key: '
|
|
26
|
-
instructions: '
|
|
24
|
+
prompt: 'What was the root cause?',
|
|
25
|
+
checkpoint_key: 'root_cause',
|
|
26
|
+
instructions: 'The actual underlying problem. Could be a logic error, wrong assumption, stale cache, race condition, misconfiguration. Dig past the symptom.'
|
|
27
27
|
},
|
|
28
28
|
optional: false
|
|
29
29
|
},
|
|
@@ -32,9 +32,9 @@ export const gratitudePractice = {
|
|
|
32
32
|
order: 3,
|
|
33
33
|
type: 'prompt',
|
|
34
34
|
content: {
|
|
35
|
-
prompt: '
|
|
36
|
-
checkpoint_key: '
|
|
37
|
-
instructions: '
|
|
35
|
+
prompt: 'How did you find it? What debugging steps led you to the fix?',
|
|
36
|
+
checkpoint_key: 'debug_path',
|
|
37
|
+
instructions: 'The process matters as much as the fix. Logging, bisect, reading source, rubber ducking, checking Stack Overflow. Capture the technique.'
|
|
38
38
|
},
|
|
39
39
|
optional: false
|
|
40
40
|
},
|
|
@@ -43,7 +43,7 @@ export const gratitudePractice = {
|
|
|
43
43
|
order: 4,
|
|
44
44
|
type: 'summary',
|
|
45
45
|
content: {
|
|
46
|
-
instructions: '
|
|
46
|
+
instructions: 'Write a compact postmortem: symptom, root cause, fix, and lesson learned. Offer to save the root cause and lesson as a decision or constraint in memory so the AI (and the user) does not repeat this mistake.'
|
|
47
47
|
},
|
|
48
48
|
optional: false
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gratitude-practice.js","sourceRoot":"","sources":["../../../src/workflows/definitions/gratitude-practice.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAY;IACxC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"gratitude-practice.js","sourceRoot":"","sources":["../../../src/workflows/definitions/gratitude-practice.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAY;IACxC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gGAAgG;IAC7G,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC;IACzC,KAAK,EAAE;QACL;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,2DAA2D;gBACnE,cAAc,EAAE,cAAc;gBAC9B,YAAY,EAAE,+EAA+E;aAC9F;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;gBAClC,cAAc,EAAE,YAAY;gBAC5B,YAAY,EAAE,+IAA+I;aAC9J;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,+DAA+D;gBACvE,cAAc,EAAE,YAAY;gBAC5B,YAAY,EAAE,0IAA0I;aACzJ;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,YAAY,EAAE,gNAAgN;aAC/N;YACD,QAAQ,EAAE,KAAK;SAChB;KACF;CACF,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export const weeklyReview = {
|
|
2
|
-
slug: '
|
|
3
|
-
name: '
|
|
4
|
-
description: '
|
|
5
|
-
estimatedMinutes:
|
|
6
|
-
tags: ['
|
|
2
|
+
slug: 'sprint-retro',
|
|
3
|
+
name: 'Sprint Retrospective',
|
|
4
|
+
description: 'Reflect on what worked, what did not, and capture decisions for next sprint.',
|
|
5
|
+
estimatedMinutes: 8,
|
|
6
|
+
tags: ['developer', 'weekly', 'medium'],
|
|
7
7
|
steps: [
|
|
8
8
|
{
|
|
9
9
|
id: 'step_1',
|
|
10
10
|
order: 1,
|
|
11
11
|
type: 'prompt',
|
|
12
12
|
content: {
|
|
13
|
-
prompt: '
|
|
14
|
-
checkpoint_key: '
|
|
15
|
-
instructions: '
|
|
13
|
+
prompt: 'What went well this sprint? What are you proud of?',
|
|
14
|
+
checkpoint_key: 'went_well',
|
|
15
|
+
instructions: 'Shipped features, solved tricky bugs, good team dynamics, learned something new. Anything positive.'
|
|
16
16
|
},
|
|
17
17
|
optional: false
|
|
18
18
|
},
|
|
@@ -21,9 +21,9 @@ export const weeklyReview = {
|
|
|
21
21
|
order: 2,
|
|
22
22
|
type: 'prompt',
|
|
23
23
|
content: {
|
|
24
|
-
prompt: 'What
|
|
25
|
-
checkpoint_key: '
|
|
26
|
-
instructions: '
|
|
24
|
+
prompt: 'What did not go well? What slowed you down?',
|
|
25
|
+
checkpoint_key: 'went_poorly',
|
|
26
|
+
instructions: 'Flaky tests, unclear requirements, scope creep, burnout, bad estimates. Be honest, no judgment.'
|
|
27
27
|
},
|
|
28
28
|
optional: false
|
|
29
29
|
},
|
|
@@ -32,9 +32,9 @@ export const weeklyReview = {
|
|
|
32
32
|
order: 3,
|
|
33
33
|
type: 'prompt',
|
|
34
34
|
content: {
|
|
35
|
-
prompt: '
|
|
36
|
-
checkpoint_key: '
|
|
37
|
-
instructions: '
|
|
35
|
+
prompt: 'Did you make any architectural or design decisions this sprint? What were the tradeoffs?',
|
|
36
|
+
checkpoint_key: 'decisions',
|
|
37
|
+
instructions: 'DB schema choices, library picks, API design, refactor strategies. Offer to save these as decisions in memory so they persist.'
|
|
38
38
|
},
|
|
39
39
|
optional: false
|
|
40
40
|
},
|
|
@@ -43,9 +43,9 @@ export const weeklyReview = {
|
|
|
43
43
|
order: 4,
|
|
44
44
|
type: 'prompt',
|
|
45
45
|
content: {
|
|
46
|
-
prompt: '
|
|
47
|
-
checkpoint_key: '
|
|
48
|
-
instructions: '
|
|
46
|
+
prompt: 'Any recurring mistakes or patterns you want to stop repeating?',
|
|
47
|
+
checkpoint_key: 'anti_patterns',
|
|
48
|
+
instructions: 'Forgetting to add tests, skipping error handling, over-engineering. Offer to save these as constraints (tagged "ai-mistake" if AI-related).'
|
|
49
49
|
},
|
|
50
50
|
optional: true
|
|
51
51
|
},
|
|
@@ -54,9 +54,9 @@ export const weeklyReview = {
|
|
|
54
54
|
order: 5,
|
|
55
55
|
type: 'prompt',
|
|
56
56
|
content: {
|
|
57
|
-
prompt: 'What
|
|
58
|
-
checkpoint_key: '
|
|
59
|
-
instructions: '
|
|
57
|
+
prompt: 'What is one thing you want to do differently next sprint?',
|
|
58
|
+
checkpoint_key: 'action_item',
|
|
59
|
+
instructions: 'A concrete, actionable change. Not a vague aspiration. Save as a decision if the user is committed.'
|
|
60
60
|
},
|
|
61
61
|
optional: false
|
|
62
62
|
},
|
|
@@ -65,7 +65,7 @@ export const weeklyReview = {
|
|
|
65
65
|
order: 6,
|
|
66
66
|
type: 'summary',
|
|
67
67
|
content: {
|
|
68
|
-
instructions: 'Summarize
|
|
68
|
+
instructions: 'Summarize wins, pain points, key decisions, and the action item. Offer to save decisions and anti-patterns to memory for cross-session recall. Keep it structured and developer-friendly.'
|
|
69
69
|
},
|
|
70
70
|
optional: false
|
|
71
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weekly-review.js","sourceRoot":"","sources":["../../../src/workflows/definitions/weekly-review.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAY;IACnC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"weekly-review.js","sourceRoot":"","sources":["../../../src/workflows/definitions/weekly-review.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAY;IACnC,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,8EAA8E;IAC3F,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC;IACvC,KAAK,EAAE;QACL;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,oDAAoD;gBAC5D,cAAc,EAAE,WAAW;gBAC3B,YAAY,EAAE,qGAAqG;aACpH;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,6CAA6C;gBACrD,cAAc,EAAE,aAAa;gBAC7B,YAAY,EAAE,iGAAiG;aAChH;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,0FAA0F;gBAClG,cAAc,EAAE,WAAW;gBAC3B,YAAY,EAAE,gIAAgI;aAC/I;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,gEAAgE;gBACxE,cAAc,EAAE,eAAe;gBAC/B,YAAY,EAAE,6IAA6I;aAC5J;YACD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,MAAM,EAAE,2DAA2D;gBACnE,cAAc,EAAE,aAAa;gBAC7B,YAAY,EAAE,qGAAqG;aACpH;YACD,QAAQ,EAAE,KAAK;SAChB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,YAAY,EAAE,2LAA2L;aAC1M;YACD,QAAQ,EAAE,KAAK;SAChB;KACF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchloop-eq-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
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'",
|