@desplega.ai/agent-swarm 1.71.1 → 1.71.2

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/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Agent Swarm API",
5
- "version": "1.71.1",
5
+ "version": "1.71.2",
6
6
  "description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
7
7
  },
8
8
  "servers": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desplega.ai/agent-swarm",
3
- "version": "1.71.1",
3
+ "version": "1.71.2",
4
4
  "description": "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
5
5
  "license": "MIT",
6
6
  "author": "desplega.sh <contact@desplega.sh>",
package/src/jira/app.ts CHANGED
@@ -36,9 +36,15 @@ export function initJira(): boolean {
36
36
 
37
37
  const clientId = process.env.JIRA_CLIENT_ID!;
38
38
  const clientSecret = process.env.JIRA_CLIENT_SECRET ?? "";
39
- const redirectUri =
40
- process.env.JIRA_REDIRECT_URI ??
41
- `http://localhost:${process.env.PORT || "3013"}/api/trackers/jira/callback`;
39
+ // Boot-time redirect URI gets persisted into oauth_apps.redirectUri and used
40
+ // verbatim by the OAuth flow — so it must match what's registered with
41
+ // Atlassian. Prefer MCP_BASE_URL over the localhost dev default; in prod
42
+ // with no JIRA_REDIRECT_URI set, this is what stops Atlassian from sending
43
+ // the user back to localhost.
44
+ const apiBaseUrl =
45
+ process.env.MCP_BASE_URL?.trim().replace(/\/+$/, "") ||
46
+ `http://localhost:${process.env.PORT || "3013"}`;
47
+ const redirectUri = process.env.JIRA_REDIRECT_URI ?? `${apiBaseUrl}/api/trackers/jira/callback`;
42
48
 
43
49
  upsertOAuthApp("jira", {
44
50
  clientId,
package/src/linear/app.ts CHANGED
@@ -27,9 +27,15 @@ export function initLinear(): boolean {
27
27
 
28
28
  const clientId = process.env.LINEAR_CLIENT_ID!;
29
29
  const clientSecret = process.env.LINEAR_CLIENT_SECRET ?? "";
30
+ // Boot-time redirect URI gets persisted into oauth_apps.redirectUri and used
31
+ // verbatim by the OAuth flow. Prefer MCP_BASE_URL over the localhost default
32
+ // so prod doesn't send users back to localhost when LINEAR_REDIRECT_URI is
33
+ // unset.
34
+ const apiBaseUrl =
35
+ process.env.MCP_BASE_URL?.trim().replace(/\/+$/, "") ||
36
+ `http://localhost:${process.env.PORT || "3013"}`;
30
37
  const redirectUri =
31
- process.env.LINEAR_REDIRECT_URI ??
32
- `http://localhost:${process.env.PORT || "3013"}/api/trackers/linear/callback`;
38
+ process.env.LINEAR_REDIRECT_URI ?? `${apiBaseUrl}/api/trackers/linear/callback`;
33
39
 
34
40
  upsertOAuthApp("linear", {
35
41
  clientId,