@devness/useai 0.3.7 → 0.3.8
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/index.js +6 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1078,7 +1078,7 @@ var server = new McpServer({
|
|
|
1078
1078
|
});
|
|
1079
1079
|
server.tool(
|
|
1080
1080
|
"useai_session_start",
|
|
1081
|
-
"Start tracking an AI coding session. Call this at the beginning of a conversation.
|
|
1081
|
+
"Start tracking an AI coding session. Call this at the beginning of a conversation.",
|
|
1082
1082
|
{
|
|
1083
1083
|
task_type: z2.enum(["coding", "debugging", "testing", "planning", "reviewing", "documenting", "learning", "other"]).optional().describe("What kind of task is the developer working on?")
|
|
1084
1084
|
},
|
|
@@ -1096,8 +1096,7 @@ server.tool(
|
|
|
1096
1096
|
{
|
|
1097
1097
|
type: "text",
|
|
1098
1098
|
text: `useai session started \u2014 tracking ${sessionTaskType} session on ${clientName}.
|
|
1099
|
-
Session: ${sessionId.slice(0, 8)} \xB7 Chain: ${record.hash.slice(0, 12)} (${signingAvailable ? "signed" : "unsigned"})
|
|
1100
|
-
All data stored locally at ${USEAI_DIR}. No network calls made.`
|
|
1099
|
+
Session: ${sessionId.slice(0, 8)} \xB7 Chain: ${record.hash.slice(0, 12)} (${signingAvailable ? "signed" : "unsigned"})`
|
|
1101
1100
|
}
|
|
1102
1101
|
]
|
|
1103
1102
|
};
|
|
@@ -1105,7 +1104,7 @@ All data stored locally at ${USEAI_DIR}. No network calls made.`
|
|
|
1105
1104
|
);
|
|
1106
1105
|
server.tool(
|
|
1107
1106
|
"useai_heartbeat",
|
|
1108
|
-
"Record a heartbeat for the current AI coding session. Call this periodically during long conversations (every 10-15 minutes).
|
|
1107
|
+
"Record a heartbeat for the current AI coding session. Call this periodically during long conversations (every 10-15 minutes).",
|
|
1109
1108
|
{},
|
|
1110
1109
|
async () => {
|
|
1111
1110
|
incrementHeartbeat();
|
|
@@ -1117,7 +1116,7 @@ server.tool(
|
|
|
1117
1116
|
content: [
|
|
1118
1117
|
{
|
|
1119
1118
|
type: "text",
|
|
1120
|
-
text: `Heartbeat recorded
|
|
1119
|
+
text: `Heartbeat recorded. Session active for ${formatDuration(getSessionDuration())}.`
|
|
1121
1120
|
}
|
|
1122
1121
|
]
|
|
1123
1122
|
};
|
|
@@ -1125,7 +1124,7 @@ server.tool(
|
|
|
1125
1124
|
);
|
|
1126
1125
|
server.tool(
|
|
1127
1126
|
"useai_session_end",
|
|
1128
|
-
"End the current AI coding session
|
|
1127
|
+
"End the current AI coding session and record milestones. IMPORTANT: Milestone descriptions must be GENERIC \u2014 no project names, file names, file paths, or company names. Use general terms like 'authentication system', 'data validation layer', 'responsive dashboard'.",
|
|
1129
1128
|
{
|
|
1130
1129
|
task_type: z2.enum(["coding", "debugging", "testing", "planning", "reviewing", "documenting", "learning", "other"]).optional().describe("What kind of task was the developer working on?"),
|
|
1131
1130
|
languages: z2.array(z2.string()).optional().describe("Programming languages used (e.g. ['typescript', 'python'])"),
|
|
@@ -1236,11 +1235,7 @@ server.tool(
|
|
|
1236
1235
|
content: [
|
|
1237
1236
|
{
|
|
1238
1237
|
type: "text",
|
|
1239
|
-
text: `Session
|
|
1240
|
-
${sessionRecordCount} chain records \xB7 ${signingAvailable ? "Ed25519 signed" : "unsigned"}${milestoneStr}
|
|
1241
|
-
Stored at: ${sealedPath}
|
|
1242
|
-
|
|
1243
|
-
To publish: run \`useai sync\` from your terminal.`
|
|
1238
|
+
text: `Session ended: ${durationStr} ${finalTaskType}${langStr}${milestoneStr}`
|
|
1244
1239
|
}
|
|
1245
1240
|
]
|
|
1246
1241
|
};
|