norn-cli 4.0.0 → 4.1.0

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.
@@ -7612,15 +7612,6 @@ var MCP_DIRECTIVES = {
7612
7612
  };
7613
7613
  var MCP_DIRECTIVE_NAMES = Object.keys(MCP_DIRECTIVES);
7614
7614
  var MCP_SESSION_SCOPES = ["run", "agent", "call"];
7615
- function splitCommandParts(value) {
7616
- const parts = [];
7617
- const pattern = /"([^"]*)"|'([^']*)'|(\S+)/g;
7618
- let match;
7619
- while ((match = pattern.exec(value)) !== null) {
7620
- parts.push(match[1] ?? match[2] ?? match[3]);
7621
- }
7622
- return parts;
7623
- }
7624
7615
  function splitNamedDirective(value) {
7625
7616
  const match = value.trim().match(/^(\S+)\s+(.+)$/);
7626
7617
  if (!match) {
@@ -7945,7 +7936,7 @@ end mcp
7945
7936
  mcp.invalid = true;
7946
7937
  }
7947
7938
  }
7948
- if (resolvedTransport === "stdio" && mcp.commandTemplates.length === 0) {
7939
+ if (resolvedTransport === "stdio" && !mcp.commandTemplate) {
7949
7940
  errors.push(parseError(
7950
7941
  mcp.lineNumber,
7951
7942
  `MCP server '${mcp.alias}' uses transport stdio and requires a command directive.`,
@@ -7998,7 +7989,7 @@ end mcp
7998
7989
  mcpServers.set(mcp.alias.toLowerCase(), {
7999
7990
  alias: mcp.alias,
8000
7991
  transportTemplate: transport.value,
8001
- commandTemplates: mcp.commandTemplates,
7992
+ ...mcp.commandTemplate ? { commandTemplate: mcp.commandTemplate } : {},
8002
7993
  ...mcp.values.cwd ? { cwdTemplate: mcp.values.cwd.value } : {},
8003
7994
  ...mcp.envTemplates.length > 0 ? { envTemplates: mcp.envTemplates } : {},
8004
7995
  ...mcp.values.url ? { urlTemplate: mcp.values.url.value } : {},
@@ -8334,7 +8325,7 @@ end mcp
8334
8325
  lineNumber: index
8335
8326
  };
8336
8327
  if (directive === "command") {
8337
- pendingMcp.commandTemplates = splitCommandParts(rawValue);
8328
+ pendingMcp.commandTemplate = rawValue;
8338
8329
  }
8339
8330
  continue;
8340
8331
  }
@@ -8469,7 +8460,6 @@ end model`,
8469
8460
  alias,
8470
8461
  lineNumber: index,
8471
8462
  values: {},
8472
- commandTemplates: [],
8473
8463
  envTemplates: [],
8474
8464
  headerTemplates: [],
8475
8465
  sawDirective: false,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "norn-cli",
3
3
  "displayName": "Norn",
4
4
  "description": "Version-controlled API and database tests. Author in VS Code, then run the same files from the CLI and CI.",
5
- "version": "4.0.0",
5
+ "version": "4.1.0",
6
6
  "publisher": "Norn-PeterKrustanov",
7
7
  "author": {
8
8
  "name": "Peter Krastanov"