@bendyline/gezel-cli 1.2.11 → 1.2.13
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 +9 -1
- package/dist/app-author-command.js +6 -3
- package/dist/app-command.js +3 -0
- package/dist/bin/gezel-main.js +1186 -96
- package/dist/handboek-export.js +2756 -1435
- package/dist/knowledge-command.js +3 -0
- package/dist/tui/index.js +54 -3
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -5,12 +5,20 @@ them to work from your terminal.
|
|
|
5
5
|
|
|
6
6
|
## Quick start
|
|
7
7
|
|
|
8
|
-
Install the CLI globally. It needs Node.js 24 or newer
|
|
8
|
+
Install the CLI globally. It needs Node.js 24 or newer; check with
|
|
9
|
+
`node --version`, and if it is older, `brew install node` (macOS),
|
|
10
|
+
`winget install OpenJS.NodeJS.LTS` (Windows) or `nvm install 24` (anywhere)
|
|
11
|
+
installs a current one.
|
|
9
12
|
|
|
10
13
|
```bash
|
|
11
14
|
npm install -g @bendyline/gezel-cli
|
|
12
15
|
```
|
|
13
16
|
|
|
17
|
+
The unscoped [`gezel-cli`](https://www.npmjs.com/package/gezel-cli) package is the
|
|
18
|
+
short name for this one: `npx gezel-cli` runs it without installing, and
|
|
19
|
+
`npm install -g gezel-cli` installs the same program. Install one of the two
|
|
20
|
+
globally, not both: they both provide the `gezel` command.
|
|
21
|
+
|
|
14
22
|
Then choose where the AI runs.
|
|
15
23
|
|
|
16
24
|
**On this computer.** See which chat models fit your machine, download one,
|
|
@@ -471,6 +471,7 @@ import { createHash, randomUUID } from "crypto";
|
|
|
471
471
|
import { chmod, mkdir, readFile, realpath, rm, writeFile } from "fs/promises";
|
|
472
472
|
import { homedir } from "os";
|
|
473
473
|
import { basename, dirname, join, resolve } from "path";
|
|
474
|
+
import { fileURLToPath } from "url";
|
|
474
475
|
import {
|
|
475
476
|
evaluateApiCompat,
|
|
476
477
|
getLogLevel,
|
|
@@ -488,6 +489,7 @@ import {
|
|
|
488
489
|
authorizeLocalOwner
|
|
489
490
|
} from "@bendyline/gezel-app-sdk";
|
|
490
491
|
import {
|
|
492
|
+
DaemonInAnotherNamespaceError,
|
|
491
493
|
GezelApiError,
|
|
492
494
|
GezelClient,
|
|
493
495
|
LiveDaemonUnhealthyError,
|
|
@@ -501,6 +503,7 @@ import {
|
|
|
501
503
|
readSystemServiceEndpoint,
|
|
502
504
|
resolveDaemonEntry,
|
|
503
505
|
stopOwnedDaemon,
|
|
506
|
+
systemServiceRuntimeIsStale,
|
|
504
507
|
systemSharedAssetsDir
|
|
505
508
|
} from "@bendyline/gezel-client/node";
|
|
506
509
|
import { gezelHome, gezelPaths, nativePayloadVerificationPath } from "@bendyline/gezel/paths";
|
|
@@ -516,7 +519,7 @@ import { createHash as createHash2 } from "crypto";
|
|
|
516
519
|
import { readFileSync as readFileSync2 } from "fs";
|
|
517
520
|
import { mkdir as mkdir2, writeFile as writeFile2 } from "fs/promises";
|
|
518
521
|
import { dirname as dirname2, join as join3, relative } from "path";
|
|
519
|
-
import { fileURLToPath } from "url";
|
|
522
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
520
523
|
import { injectPageDemo, pageDemoBootstrapSource } from "@bendyline/gezel";
|
|
521
524
|
|
|
522
525
|
// ../../scripts/project-page-typography.mjs
|
|
@@ -538,8 +541,8 @@ function buildProjectPageTypography(uiRoot) {
|
|
|
538
541
|
// src/page-demo-export.ts
|
|
539
542
|
function pageDemoAssets() {
|
|
540
543
|
const sourceMode = import.meta.url.endsWith(".ts");
|
|
541
|
-
const fonts =
|
|
542
|
-
const css = sourceMode ? buildProjectPageTypography(
|
|
544
|
+
const fonts = fileURLToPath2(new URL("../../ui/src/assets/fonts/", import.meta.url));
|
|
545
|
+
const css = sourceMode ? buildProjectPageTypography(fileURLToPath2(new URL("../../ui", import.meta.url))) : readFileSync2(new URL("./page-typography.css", import.meta.url), "utf8");
|
|
543
546
|
const versioned = (stem, extension, source) => ({
|
|
544
547
|
path: `${stem}-${createHash2("sha256").update(source).digest("hex").slice(0, 16)}.${extension}`,
|
|
545
548
|
bytes: Buffer.from(source)
|
package/dist/app-command.js
CHANGED
|
@@ -10,6 +10,7 @@ import { createHash, randomUUID } from "crypto";
|
|
|
10
10
|
import { chmod, mkdir, readFile, realpath, rm, writeFile } from "fs/promises";
|
|
11
11
|
import { homedir } from "os";
|
|
12
12
|
import { basename, dirname, join, resolve } from "path";
|
|
13
|
+
import { fileURLToPath } from "url";
|
|
13
14
|
import {
|
|
14
15
|
evaluateApiCompat,
|
|
15
16
|
getLogLevel,
|
|
@@ -27,6 +28,7 @@ import {
|
|
|
27
28
|
authorizeLocalOwner
|
|
28
29
|
} from "@bendyline/gezel-app-sdk";
|
|
29
30
|
import {
|
|
31
|
+
DaemonInAnotherNamespaceError,
|
|
30
32
|
GezelApiError,
|
|
31
33
|
GezelClient,
|
|
32
34
|
LiveDaemonUnhealthyError,
|
|
@@ -40,6 +42,7 @@ import {
|
|
|
40
42
|
readSystemServiceEndpoint,
|
|
41
43
|
resolveDaemonEntry,
|
|
42
44
|
stopOwnedDaemon,
|
|
45
|
+
systemServiceRuntimeIsStale,
|
|
43
46
|
systemSharedAssetsDir
|
|
44
47
|
} from "@bendyline/gezel-client/node";
|
|
45
48
|
import { gezelHome, gezelPaths, nativePayloadVerificationPath } from "@bendyline/gezel/paths";
|