@fargowealth/fargo-ai-cli 0.2.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fargowealth/fargo-ai-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Fargo AI authentication and stdio MCP bridge for WorkBuddy",
5
5
  "type": "module",
6
6
  "bin": {
package/src/constants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export const CLI_VERSION = "0.2.0";
1
+ export const CLI_VERSION = "0.2.1";
2
2
  export const DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
3
3
  export const DEFAULT_AUTH_URL = "https://auth.fargowealth.app";
4
4
  export const DEFAULT_MCP_URL = "https://mcp.fargowealth.app/mcp";
@@ -8,7 +8,7 @@ const PACKAGE_NAME = "@fargowealth/fargo-ai-cli";
8
8
  export async function installWorkBuddyMcp(options = {}) {
9
9
  const configPath = options.configPath
10
10
  ?? process.env.FARGO_WORKBUDDY_MCP_CONFIG
11
- ?? join(homedir(), ".workbuddy", "mcp.json");
11
+ ?? defaultWorkBuddyConfigPath();
12
12
  const packageSpec = `${PACKAGE_NAME}@${options.packageVersion ?? CLI_VERSION}`;
13
13
  const config = await readConfig(configPath);
14
14
  const nextServer = {
@@ -37,6 +37,10 @@ export async function installWorkBuddyMcp(options = {}) {
37
37
  };
38
38
  }
39
39
 
40
+ export function defaultWorkBuddyConfigPath(homeDirectory = homedir()) {
41
+ return join(homeDirectory, ".workbuddy-ai", "mcp.json");
42
+ }
43
+
40
44
  async function readConfig(configPath) {
41
45
  let text;
42
46
  try {