@xpert-ai/plugin-markitdown 0.0.1 → 0.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"markitdown-bootstrap.service.d.ts","sourceRoot":"","sources":["../../src/lib/markitdown-bootstrap.service.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAKL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAA;AAI9B,KAAK,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,aAAa,CAAC,CAAA;AAQ9E,qBACa,0BAA0B;IAInC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;gBAArB,oBAAoB,CAAC,EAAE,qBAAqB;IAG/D,aAAa,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAmBnE,YAAY,IAAI,MAAM;IAItB,iBAAiB,CAAC,MAAM;;;;KAAuB,GAAG,MAAM;IAwBxD,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAOvC,eAAe,CAAC,OAAO,EAAE,0BAA0B,EAAE,MAAM;;;;KAAuB;IA2DxF,OAAO,CAAC,kBAAkB;YAIZ,UAAU;YAaV,WAAW;CA4B1B"}
1
+ {"version":3,"file":"markitdown-bootstrap.service.d.ts","sourceRoot":"","sources":["../../src/lib/markitdown-bootstrap.service.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAKL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAA;AAI9B,KAAK,0BAA0B,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,aAAa,CAAC,CAAA;AAQ9E,qBACa,0BAA0B;IAInC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;gBAArB,oBAAoB,CAAC,EAAE,qBAAqB;IAG/D,aAAa,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAmBnE,YAAY,IAAI,MAAM;IAItB,iBAAiB,CAAC,MAAM;;;;KAAuB,GAAG,MAAM;IAwBxD,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAOvC,eAAe,CAAC,OAAO,EAAE,0BAA0B,EAAE,MAAM;;;;KAAuB;IA6DxF,OAAO,CAAC,kBAAkB;YAIZ,UAAU;YAaV,WAAW;CA4B1B"}
@@ -93,9 +93,11 @@ let MarkItDownBootstrapService = class MarkItDownBootstrapService {
93
93
  }
94
94
  const pipCmd = pipCheck.output.trim().split('\n')[0];
95
95
  // 2. Install markitdown via pip
96
+ // --break-system-packages is needed for PEP 668 compliant environments
97
+ // (Debian/Ubuntu with externally-managed Python). Safe in a disposable sandbox.
96
98
  const versionSpec = config.version === 'latest' ? '' : `==${config.version}`;
97
99
  const extrasSpec = config.extras ? `[${config.extras}]` : '';
98
- const installCmd = `${pipCmd} install "markitdown${extrasSpec}${versionSpec}"`;
100
+ const installCmd = `${pipCmd} install --break-system-packages "markitdown${extrasSpec}${versionSpec}"`;
99
101
  const installResult = await backend.execute(installCmd);
100
102
  if (installResult?.exitCode !== 0) {
101
103
  throw new Error(`MarkItDown install failed: ${installResult?.output || 'Unknown error'}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-markitdown",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": {
5
5
  "name": "XpertAI",
6
6
  "url": "https://xpertai.cn"