@launchchair/agent 0.4.9 → 0.4.11

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.
@@ -15,7 +15,7 @@ import path from "node:path";
15
15
  import process from "node:process";
16
16
  import { fileURLToPath } from "node:url";
17
17
 
18
- const VERSION = "0.4.9";
18
+ const VERSION = "0.4.11";
19
19
  const SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
20
20
  const DEFAULT_BASE_URL = "https://www.launchchair.io";
21
21
  const CONFIG_DIR = process.env.LAUNCHCHAIR_CONFIG_DIR?.trim()
package/local-bridge.mjs CHANGED
@@ -17,7 +17,7 @@ import process from "node:process";
17
17
  import { fileURLToPath } from "node:url";
18
18
  import { buildRunnerCommand, parseRunnerCommand } from "./runner-command.mjs";
19
19
 
20
- const VERSION = "0.4.9";
20
+ const VERSION = "0.4.11";
21
21
  const CLIENT_TYPES = ["codex", "chatgpt", "claude", "claude_code", "other"];
22
22
  const AGENT_SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
23
23
  const CONFIG_DIR = process.env.LAUNCHCHAIR_CONFIG_DIR?.trim()
@@ -19,7 +19,7 @@ import process from "node:process";
19
19
  import { fileURLToPath } from "node:url";
20
20
  import { buildRunnerCommand, parseRunnerCommand } from "./runner-command.mjs";
21
21
 
22
- const VERSION = "0.4.9";
22
+ const VERSION = "0.4.11";
23
23
  const SERVER_NAME = "launchchair-agent-mcp";
24
24
  const AGENT_SCRIPT_DIR = path.dirname(fileURLToPath(import.meta.url));
25
25
  const CONFIG_DIR = process.env.LAUNCHCHAIR_CONFIG_DIR?.trim()
@@ -27,7 +27,7 @@ const CONFIG_DIR = process.env.LAUNCHCHAIR_CONFIG_DIR?.trim()
27
27
  : path.join(os.homedir() || process.cwd(), ".launchchair");
28
28
  const CONFIG_PATH = path.join(CONFIG_DIR, "config.json");
29
29
  const BASE_SERVER_INSTRUCTIONS =
30
- "Use LaunchChair MCP tools—not web browsing—for LaunchChair project discovery, creation, planning, validation scoring, and loops. Call the most specific available tool. When asked for validation scores, call launchchair_get_scorecards and report those scorecards; do not substitute generated direction-option scores. If a requested workflow is unavailable, explain the access or setup issue instead of silently substituting another project type or workflow.";
30
+ "Use LaunchChair MCP tools—not web browsing—for LaunchChair project discovery, creation, planning, validation scoring, and loops. Call the most specific available tool. When asked for validation scores, call launchchair_get_scorecards and report those scorecards; do not substitute generated direction-option scores. Always present completedPhaseLinks, selected choice URLs, and any upgradeUrl returned by a tool to the user as clickable links. If a requested workflow is unavailable, explain the access or setup issue instead of silently substituting another project type or workflow.";
31
31
 
32
32
  function nodeScriptCommand(scriptName) {
33
33
  return `${JSON.stringify(process.execPath)} ${JSON.stringify(path.join(AGENT_SCRIPT_DIR, scriptName))}`;
@@ -1096,6 +1096,9 @@ async function handleRpc(request) {
1096
1096
  }
1097
1097
  writeError(id, -32601, `Unknown tool: ${toolName}`);
1098
1098
  } catch (error) {
1099
+ const errorPayload = error?.payload && typeof error.payload === "object" && !Array.isArray(error.payload)
1100
+ ? error.payload
1101
+ : {};
1099
1102
  writeResult(id, {
1100
1103
  content: [
1101
1104
  {
@@ -1103,6 +1106,11 @@ async function handleRpc(request) {
1103
1106
  text: JSON.stringify(
1104
1107
  {
1105
1108
  error: error instanceof Error ? error.message : String(error ?? "Tool failed"),
1109
+ ...errorPayload,
1110
+ ...(Number.isFinite(error?.status) ? { httpStatus: error.status } : {}),
1111
+ ...(Number.isFinite(error?.retryAfterSeconds)
1112
+ ? { retryAfterSeconds: error.retryAfterSeconds }
1113
+ : {}),
1106
1114
  },
1107
1115
  null,
1108
1116
  2,
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "@launchchair/agent",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "mcpName": "io.launchchair/agent",
5
5
  "description": "LaunchChair Agent CLI, MCP bridge, local bridge, and runners for Codex, Claude Code, ChatGPT, Claude, and Hermes workflows.",
6
6
  "type": "module",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/Alphablank1111/rocket_founder.git",
10
- "directory": "packages/launchchair-agent"
11
- },
12
7
  "bin": {
13
8
  "launchchair": "./launchchair-cli.mjs"
14
9
  },
package/server.json CHANGED
@@ -3,18 +3,13 @@
3
3
  "name": "io.launchchair/agent",
4
4
  "title": "LaunchChair",
5
5
  "description": "Plan, validate, and build products and features with LaunchChair.",
6
- "version": "0.4.9",
6
+ "version": "0.4.11",
7
7
  "websiteUrl": "https://www.launchchair.io/docs/mcp",
8
- "repository": {
9
- "url": "https://github.com/Alphablank1111/rocket_founder",
10
- "source": "github",
11
- "subfolder": "packages/launchchair-agent"
12
- },
13
8
  "packages": [
14
9
  {
15
10
  "registryType": "npm",
16
11
  "identifier": "@launchchair/agent",
17
- "version": "0.4.9",
12
+ "version": "0.4.11",
18
13
  "runtimeHint": "npx",
19
14
  "runtimeArguments": [
20
15
  {