@sellable/mcp 0.1.519 → 0.1.520

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.
@@ -99,11 +99,18 @@ function apiErrorBody(error) {
99
99
  return stringValue(record?.body) ?? stringValue(record?.message);
100
100
  }
101
101
  export function sourceImportInProgressPayloadFromError(error) {
102
- if (apiErrorStatus(error) !== 409)
103
- return null;
104
102
  const body = apiErrorBody(error);
105
103
  if (!body)
106
104
  return null;
105
+ if (body.includes("Source import still running") &&
106
+ body.includes("Import still in progress")) {
107
+ return {
108
+ error: body,
109
+ jobId: null,
110
+ };
111
+ }
112
+ if (apiErrorStatus(error) !== 409)
113
+ return null;
107
114
  try {
108
115
  const parsed = JSON.parse(body);
109
116
  const message = stringValue(parsed.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.519",
3
+ "version": "0.1.520",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",