@lumeo_hq/openbooks 0.1.2 → 0.2.0
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/README.md +1 -1
- package/dist/install-engine.d.ts +2 -0
- package/dist/install-engine.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,5 +12,5 @@ Commands: `run`, `statements run`, `gateways run`, `tax run`, `doctor`, `install
|
|
|
12
12
|
|
|
13
13
|
Exit codes: `0` everything released, `1` something was refused, `2` usage error, `3` the engine could not run.
|
|
14
14
|
Needs the Python engine; this package does not parse documents itself. Installing this package fetches it with `pip install openbooks`
|
|
15
|
-
(Python 3.11+). Skip
|
|
15
|
+
(Python 3.11+); npm and PyPI share a major.minor line, so this 0.2.x installs `openbooks` 0.2.x. Skip the install with `--ignore-scripts` or `OPENBOOKS_SKIP_PYTHON=1`, and run `openbooks install-engine` (`--scan` for OCR) later.
|
|
16
16
|
If your system Python refuses global installs, create a `.venv` in your project and run `.venv/bin/pip install openbooks`; it is picked up automatically.
|
package/dist/install-engine.d.ts
CHANGED
|
@@ -19,5 +19,7 @@ export type InstallResult = {
|
|
|
19
19
|
detail: string;
|
|
20
20
|
hint?: string;
|
|
21
21
|
};
|
|
22
|
+
/** npm and PyPI share a major.minor line (the contract version); patch releases are independent. So 0.1.x of this CLI takes any openbooks 0.1.x. */
|
|
23
|
+
export declare function engineRange(): string;
|
|
22
24
|
/** Install the Python engine (the `openbooks` PyPI package: core, statements with PDF, gateways, tax, doctor) so the JS packages can run. Never throws. */
|
|
23
25
|
export declare function installEngine(opts?: InstallOptions): Promise<InstallResult>;
|
package/dist/install-engine.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { clearEngineCache, EngineError, findEngine, runProcess } from "@lumeo_hq/openbooks-core";
|
|
3
3
|
/** npm and PyPI share a major.minor line (the contract version); patch releases are independent. So 0.1.x of this CLI takes any openbooks 0.1.x. */
|
|
4
|
-
function engineRange() {
|
|
4
|
+
export function engineRange() {
|
|
5
5
|
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
6
6
|
const [major, minor] = pkg.version.split(".");
|
|
7
7
|
return `~=${major}.${minor}.0`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumeo_hq/openbooks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Open Books: financial documents in, one proven JSON per file out (or a typed refusal). `npm i @lumeo_hq/openbooks` installs every JS package and the Python engine.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"commander": "^14.0.0",
|
|
22
|
-
"@lumeo_hq/openbooks-statements": "0.
|
|
23
|
-
"@lumeo_hq/openbooks-gateways": "0.
|
|
24
|
-
"@lumeo_hq/openbooks-tax": "0.
|
|
25
|
-
"@lumeo_hq/openbooks-core": "0.
|
|
26
|
-
"@lumeo_hq/openbooks-doctor": "0.
|
|
22
|
+
"@lumeo_hq/openbooks-statements": "0.2.0",
|
|
23
|
+
"@lumeo_hq/openbooks-gateways": "0.2.0",
|
|
24
|
+
"@lumeo_hq/openbooks-tax": "0.2.0",
|
|
25
|
+
"@lumeo_hq/openbooks-core": "0.2.0",
|
|
26
|
+
"@lumeo_hq/openbooks-doctor": "0.2.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"postinstall": "node scripts/postinstall.mjs"
|