@agentrq/acp-gateway 0.3.0 → 0.3.1

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.3.0`
40
+ `0.3.1`
41
41
 
42
42
  ## Usage
43
43
 
@@ -3107,7 +3107,7 @@ describe("index", () => {
3107
3107
  };
3108
3108
  it("derives the endpoint and passes every option through as a header value", () => {
3109
3109
  const options = parseGatewayArgs([
3110
- "--acp-version", "1", "--agent", "codex-acp", "--model", "m", "--max-concurrency", "4",
3110
+ "--acp-version", "1", "--agent", "codex-acp", "--model", "m", "--effort", "high", "--max-concurrency", "4",
3111
3111
  "--permission-timeout", "5", "--auth-method", "chatgpt",
3112
3112
  ]);
3113
3113
  expect(nativeOptionsFor(options, ["npx", "codex-acp"], agentrq, "/work")).toEqual({
@@ -3118,12 +3118,22 @@ describe("index", () => {
3118
3118
  token: "t",
3119
3119
  agentId: "codex-acp",
3120
3120
  modelId: "m",
3121
+ effort: "high",
3121
3122
  maxConcurrency: 4,
3122
3123
  permissionTimeoutMinutes: 5,
3123
3124
  authMethodId: "chatgpt",
3124
3125
  cwd: "/work",
3125
3126
  });
3126
3127
  });
3128
+ it("parses --effort and warns when missing a value", () => {
3129
+ const consoleSpy = vi.spyOn(console, "error").mockImplementation(() => { });
3130
+ const optsWithVal = parseGatewayArgs(["--effort", "medium"]);
3131
+ expect(optsWithVal.effort).toBe("medium");
3132
+ const optsNoVal = parseGatewayArgs(["--effort", "--verbose"]);
3133
+ expect(optsNoVal.effort).toBeUndefined();
3134
+ expect(consoleSpy).toHaveBeenCalledWith("[acp] Warning: --effort provided without a level; ignoring.");
3135
+ consoleSpy.mockRestore();
3136
+ });
3127
3137
  it("names a command-line agent by its basename and honours --acp-url", () => {
3128
3138
  const options = parseGatewayArgs(["--acp-version", "2", "--acp-url", "ws://other/x"]);
3129
3139
  const native = nativeOptionsFor(options, ["/opt/bin/gemini", "--acp"], agentrq);
@@ -3178,6 +3188,7 @@ describe("index", () => {
3178
3188
  "--list-models",
3179
3189
  "--json",
3180
3190
  "--model",
3191
+ "--effort",
3181
3192
  "--list-auth-methods",
3182
3193
  "--login",
3183
3194
  "--logout",