indra-mcp 0.1.4 → 0.1.5

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/build/index.js +7 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -115,7 +115,13 @@ catch (err) {
115
115
  }
116
116
  let activeTask = process.env.INDRA_TASK || "Initialize Session";
117
117
  let missionToken = "";
118
- const agentName = process.env.INDRA_AGENT_NAME || "dev-agent";
118
+ let agentName = process.env.INDRA_AGENT_NAME || "dev-agent";
119
+ for (let i = 0; i < cliArgs.length; i++) {
120
+ if (cliArgs[i] === '--agent' && i + 1 < cliArgs.length) {
121
+ agentName = cliArgs[i + 1];
122
+ break;
123
+ }
124
+ }
119
125
  // Perform cryptographic Edge session handshake during startup
120
126
  async function startSession() {
121
127
  logDebug('[HANDSHAKE] Preparing cryptographic session handshake...');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indra-mcp",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "build/index.js",
5
5
  "bin": {
6
6
  "indra-mcp": "build/index.js"