chron-mcp 0.1.12 → 0.1.14
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/.claude-plugin/plugin.json +4 -4
- package/README.md +5 -2
- package/dashboards/logscale/ai-tool-usage.lql +5 -0
- package/dashboards/logscale/api-key-alert.lql +5 -0
- package/dashboards/logscale/chron-ai-activity.yaml +66 -0
- package/dashboards/logscale/daily-active-developers.lql +3 -0
- package/dashboards/logscale/secrets-by-type.lql +3 -0
- package/dashboards/logscale/sessions-by-developer.lql +6 -0
- package/dist/cli/index.js +17341 -0
- package/dist/index.js +68457 -84
- package/package.json +8 -4
- package/skills/chron.skill.md +3 -3
- package/dist/db/index.d.ts +0 -5
- package/dist/db/index.js +0 -91
- package/dist/db/schema.d.ts +0 -242
- package/dist/db/schema.js +0 -20
- package/dist/http/middleware.d.ts +0 -2
- package/dist/http/middleware.js +0 -13
- package/dist/http/server.d.ts +0 -3
- package/dist/http/server.js +0 -54
- package/dist/index.d.ts +0 -2
- package/dist/server.d.ts +0 -3
- package/dist/server.js +0 -42
- package/dist/setup.d.ts +0 -8
- package/dist/setup.js +0 -118
- package/dist/tools/messages.d.ts +0 -35
- package/dist/tools/messages.js +0 -95
- package/dist/tools/sessions.d.ts +0 -27
- package/dist/tools/sessions.js +0 -93
- package/dist/tools/verify.d.ts +0 -9
- package/dist/tools/verify.js +0 -49
- package/dist/utils/hash.d.ts +0 -1
- package/dist/utils/hash.js +0 -9
- package/dist/utils/time.d.ts +0 -1
- package/dist/utils/time.js +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chron",
|
|
3
3
|
"description": "Audit-grade timestamped logs for every AI conversation — stored locally, owned by you.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nivaya",
|
|
7
7
|
"email": "ksrinivas07530@gmail.com"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://github.com/
|
|
10
|
-
"repository": "https://github.com/
|
|
11
|
-
"license": "
|
|
9
|
+
"homepage": "https://github.com/sirinivask/chron",
|
|
10
|
+
"repository": "https://github.com/sirinivask/chron",
|
|
11
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
12
12
|
"keywords": [
|
|
13
13
|
"audit",
|
|
14
14
|
"logging",
|
package/README.md
CHANGED
|
@@ -145,12 +145,15 @@ Chron ships with `skills/chron.skill.md` — a plain-text instruction file that
|
|
|
145
145
|
|
|
146
146
|
| Tool | Description |
|
|
147
147
|
|---|---|
|
|
148
|
-
| `
|
|
148
|
+
| `init_session` | Initialize or resume a session — returns session_id, message count, and recent messages in one call |
|
|
149
|
+
| `start_session` | Create a new named audit session (legacy — prefer `init_session`) |
|
|
149
150
|
| `log_message` | Record a single message with the current local datetime |
|
|
150
151
|
| `log_exchange` | Log a user/assistant pair atomically (for batch imports) |
|
|
151
152
|
| `list_sessions` | List all sessions ordered by most recently active |
|
|
152
153
|
| `get_session_history` | Retrieve the full timestamped log for a session |
|
|
153
154
|
| `verify_session` | Verify the tamper-evident hash chain — detects any post-log edits |
|
|
155
|
+
| `scan_prompt` | Scan text for secrets (API keys, credentials) before logging — returns masked detections |
|
|
156
|
+
| `rehydrate_response` | Restore redacted placeholders in an assistant response back to their original values |
|
|
154
157
|
|
|
155
158
|
---
|
|
156
159
|
|
|
@@ -195,7 +198,7 @@ Point your MCP config at the URL:
|
|
|
195
198
|
{
|
|
196
199
|
"mcpServers": {
|
|
197
200
|
"chron": {
|
|
198
|
-
"url": "https://your-server/
|
|
201
|
+
"url": "https://your-server/sse",
|
|
199
202
|
"headers": {
|
|
200
203
|
"Authorization": "Bearer your-key"
|
|
201
204
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Alert: API key or credential sent to AI tool
|
|
2
|
+
// Use as a Scheduled Search alert — notify SOC on any match
|
|
3
|
+
event_type = "secret_detected"
|
|
4
|
+
| detection_type in ["api_key", "aws_key", "gcp_key", "azure_key", "private_key", "jwt"]
|
|
5
|
+
| table([#host, ai_tool, detection_type, masked_value, session_id_prefix, @timestamp])
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
$schema: "https://schemas.humio.com/dashboard/v0.1.0"
|
|
2
|
+
name: "Chron — AI Activity"
|
|
3
|
+
updateFrequency: 60
|
|
4
|
+
timeSelector:
|
|
5
|
+
defaultRelativeTimeRange: "7d"
|
|
6
|
+
|
|
7
|
+
widgets:
|
|
8
|
+
- id: daily-active-developers
|
|
9
|
+
title: "Daily Active Developers"
|
|
10
|
+
type: time-chart
|
|
11
|
+
x: 0
|
|
12
|
+
y: 0
|
|
13
|
+
width: 8
|
|
14
|
+
height: 4
|
|
15
|
+
query: |
|
|
16
|
+
event_type = "session_started"
|
|
17
|
+
| timechart(unit=1d, function=count(#host, distinct=true))
|
|
18
|
+
|
|
19
|
+
- id: ai-tool-usage
|
|
20
|
+
title: "AI Tool Usage"
|
|
21
|
+
type: pie-chart
|
|
22
|
+
x: 8
|
|
23
|
+
y: 0
|
|
24
|
+
width: 4
|
|
25
|
+
height: 4
|
|
26
|
+
query: |
|
|
27
|
+
event_type = "session_started"
|
|
28
|
+
| groupby(ai_tool, function=count())
|
|
29
|
+
| rename(count(), as=sessions)
|
|
30
|
+
| sort(sessions, order=desc)
|
|
31
|
+
|
|
32
|
+
- id: secrets-by-type
|
|
33
|
+
title: "Secrets Detected by Type (7d)"
|
|
34
|
+
type: time-chart
|
|
35
|
+
x: 0
|
|
36
|
+
y: 4
|
|
37
|
+
width: 8
|
|
38
|
+
height: 4
|
|
39
|
+
query: |
|
|
40
|
+
event_type = "secret_detected"
|
|
41
|
+
| timechart(detection_type, unit=1d, function=count())
|
|
42
|
+
|
|
43
|
+
- id: sessions-by-developer
|
|
44
|
+
title: "Sessions by Developer"
|
|
45
|
+
type: table
|
|
46
|
+
x: 8
|
|
47
|
+
y: 4
|
|
48
|
+
width: 4
|
|
49
|
+
height: 4
|
|
50
|
+
query: |
|
|
51
|
+
event_type = "session_started"
|
|
52
|
+
| groupby([#host, ai_tool], function=count())
|
|
53
|
+
| rename(count(), as=sessions)
|
|
54
|
+
| sort(sessions, order=desc)
|
|
55
|
+
|
|
56
|
+
- id: api-key-alerts
|
|
57
|
+
title: "Credential Exposures — Requires Attention"
|
|
58
|
+
type: table
|
|
59
|
+
x: 0
|
|
60
|
+
y: 8
|
|
61
|
+
width: 12
|
|
62
|
+
height: 4
|
|
63
|
+
query: |
|
|
64
|
+
event_type = "secret_detected"
|
|
65
|
+
| detection_type in ["api_key", "aws_key", "gcp_key", "azure_key", "private_key", "jwt"]
|
|
66
|
+
| table([#host, ai_tool, detection_type, masked_value, session_id_prefix, @timestamp])
|