@neta-art/cohub-cli 3.1.0 → 3.1.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/dist/board-export.d.ts +3 -4
- package/dist/board-export.js +3 -4
- package/package.json +3 -3
package/dist/board-export.d.ts
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
* Board image export for the CLI.
|
|
3
3
|
*
|
|
4
4
|
* Rendering runs through the same PixiJS card renderers the web editor uses (see
|
|
5
|
-
* `@neta-art/cohub
|
|
5
|
+
* `@neta-art/cohub/board`), on a Canvas2D backend. Everything platform-specific
|
|
6
6
|
* lives here: fetching the document over HTTP, pulling image bytes out of the
|
|
7
7
|
* space, and locating fonts on disk.
|
|
8
8
|
*/
|
|
9
|
-
import { type BoardDocument, type BoardItem } from "@neta-art/cohub
|
|
10
|
-
import { type
|
|
11
|
-
import { type BoardHeadlessExportFormat, type BoardHeadlessFont, type BoardHeadlessRenderer, type BoardHeadlessTexture } from "@neta-art/cohub-board/headless";
|
|
9
|
+
import { type BoardDocument, type BoardExportRegion, type BoardItem } from "@neta-art/cohub/board";
|
|
10
|
+
import { type BoardHeadlessExportFormat, type BoardHeadlessFont, type BoardHeadlessRenderer, type BoardHeadlessTexture } from "@neta-art/cohub/board/headless";
|
|
12
11
|
export declare const BOARD_EXPORT_FORMATS: BoardHeadlessExportFormat[];
|
|
13
12
|
/** Infer the output format from the file extension, defaulting to PNG. */
|
|
14
13
|
export declare function formatFromPath(path: string): BoardHeadlessExportFormat;
|
package/dist/board-export.js
CHANGED
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
* Board image export for the CLI.
|
|
3
3
|
*
|
|
4
4
|
* Rendering runs through the same PixiJS card renderers the web editor uses (see
|
|
5
|
-
* `@neta-art/cohub
|
|
5
|
+
* `@neta-art/cohub/board`), on a Canvas2D backend. Everything platform-specific
|
|
6
6
|
* lives here: fetching the document over HTTP, pulling image bytes out of the
|
|
7
7
|
* space, and locating fonts on disk.
|
|
8
8
|
*/
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
|
-
import { boardBootstrapToDocument, boardImageKeySource, imageAssetKey, isBoardPath, parseBoardManifest, } from "@neta-art/cohub
|
|
13
|
-
import {
|
|
14
|
-
import { createBoardHeadlessRenderer, exportBoardImageBytes, } from "@neta-art/cohub-board/headless";
|
|
12
|
+
import { boardBootstrapToDocument, boardImageKeySource, imageAssetKey, isBoardPath, parseBoardManifest, planBoardExport, selectBoardExportAssets, } from "@neta-art/cohub/board";
|
|
13
|
+
import { createBoardHeadlessRenderer, exportBoardImageBytes, } from "@neta-art/cohub/board/headless";
|
|
15
14
|
import { createClient } from "./client.js";
|
|
16
15
|
export const BOARD_EXPORT_FORMATS = ["png", "jpeg", "webp"];
|
|
17
16
|
/** Infer the output format from the file extension, defaulting to PNG. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neta-art/cohub-cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "CLI for Cohub — spaces, sessions, and agent collaboration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@neta-art/generation": "^0.1.16",
|
|
19
19
|
"commander": "^15.0.0",
|
|
20
|
+
"pixi.js": "^8.19.0",
|
|
20
21
|
"sharp": "^0.35.3",
|
|
21
|
-
"@neta-art/cohub": "3.
|
|
22
|
-
"@neta-art/cohub-board": "0.2.0"
|
|
22
|
+
"@neta-art/cohub": "3.2.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|