@pruddiman/dispatch 1.5.0-beta.d367268-beta.59288b9 → 1.5.0-beta.e74ea4e
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/dist/cli.js +140 -47
- package/dist/cli.js.map +1 -1
- package/dist/mcp/dispatch-worker.js +29 -11
- package/dist/mcp/dispatch-worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1645,13 +1645,18 @@ async function checkCopilotAuth() {
|
|
|
1645
1645
|
return { status: "authenticated" };
|
|
1646
1646
|
}
|
|
1647
1647
|
try {
|
|
1648
|
-
await exec3("
|
|
1648
|
+
await exec3("copilot", ["auth", "status"], { timeout: AUTH_PROBE_TIMEOUT_MS });
|
|
1649
1649
|
return { status: "authenticated" };
|
|
1650
1650
|
} catch {
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1651
|
+
try {
|
|
1652
|
+
await exec3("gh", ["auth", "status"], { timeout: AUTH_PROBE_TIMEOUT_MS });
|
|
1653
|
+
return { status: "authenticated" };
|
|
1654
|
+
} catch {
|
|
1655
|
+
return {
|
|
1656
|
+
status: "not-configured",
|
|
1657
|
+
hint: "Run 'copilot login' or set GITHUB_TOKEN"
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1655
1660
|
}
|
|
1656
1661
|
}
|
|
1657
1662
|
async function checkClaudeAuth() {
|
|
@@ -1664,7 +1669,7 @@ async function checkClaudeAuth() {
|
|
|
1664
1669
|
} catch {
|
|
1665
1670
|
return {
|
|
1666
1671
|
status: "not-configured",
|
|
1667
|
-
hint: "
|
|
1672
|
+
hint: "Run 'claude auth login' or set ANTHROPIC_API_KEY"
|
|
1668
1673
|
};
|
|
1669
1674
|
}
|
|
1670
1675
|
}
|
|
@@ -1672,19 +1677,32 @@ async function checkCodexAuth() {
|
|
|
1672
1677
|
if (process.env.OPENAI_API_KEY) {
|
|
1673
1678
|
return { status: "authenticated" };
|
|
1674
1679
|
}
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
}
|
|
1680
|
+
try {
|
|
1681
|
+
await exec3("codex", ["auth", "status"], { timeout: AUTH_PROBE_TIMEOUT_MS });
|
|
1682
|
+
return { status: "authenticated" };
|
|
1683
|
+
} catch {
|
|
1684
|
+
return {
|
|
1685
|
+
status: "not-configured",
|
|
1686
|
+
hint: "Run 'codex login --device-auth' or set OPENAI_API_KEY"
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1679
1689
|
}
|
|
1680
1690
|
async function checkOpencodeAuth() {
|
|
1681
1691
|
try {
|
|
1682
1692
|
await exec3("opencode", ["--version"], { timeout: AUTH_PROBE_TIMEOUT_MS });
|
|
1693
|
+
} catch {
|
|
1694
|
+
return {
|
|
1695
|
+
status: "not-configured",
|
|
1696
|
+
hint: "Install OpenCode (https://opencode.ai)"
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
try {
|
|
1700
|
+
await exec3("opencode", ["auth", "status"], { timeout: AUTH_PROBE_TIMEOUT_MS });
|
|
1683
1701
|
return { status: "authenticated" };
|
|
1684
1702
|
} catch {
|
|
1685
1703
|
return {
|
|
1686
1704
|
status: "not-configured",
|
|
1687
|
-
hint: "
|
|
1705
|
+
hint: "Run 'opencode auth login' or set provider API keys"
|
|
1688
1706
|
};
|
|
1689
1707
|
}
|
|
1690
1708
|
}
|