@devness/useai 0.4.6 → 0.4.7

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ var VERSION;
112
112
  var init_version = __esm({
113
113
  "../shared/dist/constants/version.js"() {
114
114
  "use strict";
115
- VERSION = "0.4.6";
115
+ VERSION = "0.4.7";
116
116
  }
117
117
  });
118
118
 
@@ -1016,7 +1016,6 @@ var init_session_state = __esm({
1016
1016
  this.heartbeatCount = 0;
1017
1017
  this.sessionRecordCount = 0;
1018
1018
  this.chainTipHash = GENESIS_HASH;
1019
- this.clientName = "unknown";
1020
1019
  this.sessionTaskType = "coding";
1021
1020
  }
1022
1021
  setClient(name) {
@@ -1091,7 +1090,9 @@ function registerTools(server2, session2) {
1091
1090
  },
1092
1091
  async ({ task_type }) => {
1093
1092
  session2.reset();
1094
- session2.setClient(detectClient());
1093
+ if (session2.clientName === "unknown") {
1094
+ session2.setClient(detectClient());
1095
+ }
1095
1096
  session2.setTaskType(task_type ?? "coding");
1096
1097
  const record = session2.appendToChain("session_start", {
1097
1098
  client: session2.clientName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devness/useai",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Track your AI-assisted development workflow. MCP server that records usage metrics across all your AI tools.",
5
5
  "keywords": [
6
6
  "mcp",