@agentrq/acp-gateway 0.2.29 → 0.2.30

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/README.md CHANGED
@@ -37,7 +37,7 @@ npm install -g @agentrq/acp-gateway
37
37
 
38
38
  ## Current Version
39
39
 
40
- `0.2.29`
40
+ `0.2.30`
41
41
 
42
42
  ## Usage
43
43
 
@@ -173,7 +173,7 @@ Credentials are never stored by the gateway; the agent keeps its own, exactly as
173
173
 
174
174
  `acp-gateway` searches for `.mcp.json` starting in the current working directory and up to 3 parent directories.
175
175
 
176
- `--list-models`, `--agent-info` and `--list-auth-methods` only ask the agent about itself, so they do not need a workspace: they skip the search and run without a `.mcp.json`. They still read a config named with `--mcp-json`, but `--list-models` never connects to the workspace: it runs the agent in an empty temporary directory, so the agent does not pick up the workspace's `.mcp.json` and get taken for the workspace's agent.
176
+ `--list-models`, `--agent-info`, `--list-auth-methods`, `--login` and `--logout` only deal with the agent itself, so they do not need a workspace: they skip the search and run without a `.mcp.json`. They still read a config named with `--mcp-json`, but `--list-models` never connects to the workspace: it runs the agent in an empty temporary directory, so the agent does not pick up the workspace's `.mcp.json` and get taken for the workspace's agent.
177
177
 
178
178
  `--mcp-json <path>` names a config directly, wherever it lives and whatever it is called. It is read *as well as* whatever the search finds, with the named file winning any name collision — so a gateway started from somewhere other than its workspace still connects to the right one.
179
179
 
@@ -2663,10 +2663,10 @@ describe("index", () => {
2663
2663
  writeFileSync(file, JSON.stringify({ mcpServers: { "agentrq-ws": { type: "http", url: "http://localhost:1/mcp" } } }));
2664
2664
  return file;
2665
2665
  }
2666
- it("should name the commands that only ask the agent about itself", () => {
2667
- expect([...WORKSPACE_OPTIONAL_COMMANDS].sort()).toEqual(["agent-info", "list-auth-methods", "list-models"]);
2666
+ it("should name the commands that only deal with the agent itself", () => {
2667
+ expect([...WORKSPACE_OPTIONAL_COMMANDS].sort()).toEqual(["agent-info", "list-auth-methods", "list-models", "login", "logout"]);
2668
2668
  });
2669
- it.each(["list-models", "agent-info", "list-auth-methods"])("should let --%s run without a .mcp.json", (command) => {
2669
+ it.each(["list-models", "agent-info", "list-auth-methods", "login", "logout"])("should let --%s run without a .mcp.json", (command) => {
2670
2670
  const workspace = loadWorkspace(command, undefined, emptyWorkspaceDir());
2671
2671
  expect(workspace.configs).toEqual([]);
2672
2672
  expect(workspace.agentrqConfig.env).toEqual({});
@@ -2678,7 +2678,7 @@ describe("index", () => {
2678
2678
  writeFileSync(join(dir, ".mcp.json"), "{ not json");
2679
2679
  expect(loadWorkspace("list-models", undefined, dir).configs).toEqual([]);
2680
2680
  });
2681
- it.each(["agent-info", "list-auth-methods"])("should still use a config named with --mcp-json for --%s", (command) => {
2681
+ it.each(["agent-info", "list-auth-methods", "login", "logout"])("should still use a config named with --mcp-json for --%s", (command) => {
2682
2682
  const file = writeMcpJson(emptyWorkspaceDir(), "servers.json");
2683
2683
  const workspace = loadWorkspace(command, file, emptyWorkspaceDir());
2684
2684
  expect(workspace.agentrqConfig.name).toBe("agentrq-ws");
@@ -2694,8 +2694,8 @@ describe("index", () => {
2694
2694
  it("should still report a --mcp-json path that is wrong", () => {
2695
2695
  expect(() => loadWorkspace("list-models", "/nowhere/servers.json", emptyWorkspaceDir())).toThrow();
2696
2696
  });
2697
- it.each(["run", "login", "logout"])("should still require a .mcp.json to %s", (command) => {
2698
- expect(() => loadWorkspace(command, undefined, emptyWorkspaceDir())).toThrow("Could not find .mcp.json");
2697
+ it("should still require a .mcp.json to run tasks", () => {
2698
+ expect(() => loadWorkspace("run", undefined, emptyWorkspaceDir())).toThrow("Could not find .mcp.json");
2699
2699
  });
2700
2700
  it("should connect running tasks to the workspace it finds", () => {
2701
2701
  const dir = emptyWorkspaceDir();