knowns 0.2.0 → 0.2.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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.2.1] - 2025-12-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Web UI Static Files**: Fixed `NotFoundError` when running `knowns browser` from global install
|
|
12
|
+
- Bun creates symlinks in `~/.bun/bin/` which broke path resolution for UI files
|
|
13
|
+
- Added `realpathSync` to resolve symlinks before computing paths
|
|
14
|
+
- Changed Express `sendFile` to use `root` option for reliable file serving
|
|
15
|
+
|
|
8
16
|
## [0.2.0] - 2025-12-27
|
|
9
17
|
|
|
10
18
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -43181,7 +43181,7 @@ import { join as join11 } from "node:path";
|
|
|
43181
43181
|
|
|
43182
43182
|
// src/server/index.ts
|
|
43183
43183
|
import { spawn } from "node:child_process";
|
|
43184
|
-
import { existsSync as existsSync7 } from "node:fs";
|
|
43184
|
+
import { existsSync as existsSync7, realpathSync } from "node:fs";
|
|
43185
43185
|
import { mkdir as mkdir5, readFile as readFile4, readdir as readdir4, writeFile as writeFile3 } from "node:fs/promises";
|
|
43186
43186
|
import { createServer } from "node:http";
|
|
43187
43187
|
import { basename as basename2, dirname as dirname3, join as join10, relative } from "node:path";
|
|
@@ -43211,7 +43211,7 @@ async function startServer(options2) {
|
|
|
43211
43211
|
}
|
|
43212
43212
|
}
|
|
43213
43213
|
};
|
|
43214
|
-
const currentFile = fileURLToPath(import.meta.url);
|
|
43214
|
+
const currentFile = realpathSync(fileURLToPath(import.meta.url));
|
|
43215
43215
|
const currentDir = dirname3(currentFile);
|
|
43216
43216
|
let packageRoot = currentDir;
|
|
43217
43217
|
const normalizedDir = currentDir.replace(/[/\\]+$/, "");
|
|
@@ -43633,7 +43633,7 @@ async function startServer(options2) {
|
|
|
43633
43633
|
app.get("/{*path}", (_req, res) => {
|
|
43634
43634
|
const indexPath = join10(uiDistPath, "index.html");
|
|
43635
43635
|
if (existsSync7(indexPath)) {
|
|
43636
|
-
res.sendFile(
|
|
43636
|
+
res.sendFile("index.html", { root: uiDistPath });
|
|
43637
43637
|
} else {
|
|
43638
43638
|
res.status(404).send("Not Found");
|
|
43639
43639
|
}
|
|
@@ -57785,7 +57785,7 @@ var configCommand = new Command("config").description("Manage configuration sett
|
|
|
57785
57785
|
// package.json
|
|
57786
57786
|
var package_default = {
|
|
57787
57787
|
name: "knowns",
|
|
57788
|
-
version: "0.2.
|
|
57788
|
+
version: "0.2.1",
|
|
57789
57789
|
description: "CLI tool for dev teams to manage tasks and documentation",
|
|
57790
57790
|
module: "index.ts",
|
|
57791
57791
|
type: "module",
|
|
@@ -57833,6 +57833,7 @@ var package_default = {
|
|
|
57833
57833
|
"@radix-ui/react-separator": "^1.1.8",
|
|
57834
57834
|
"@radix-ui/react-slot": "^1.2.4",
|
|
57835
57835
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
57836
|
+
"@types/cors": "^2.8.19",
|
|
57836
57837
|
"@uiw/react-md-editor": "^4.0.11",
|
|
57837
57838
|
chalk: "^5.3.0",
|
|
57838
57839
|
"class-variance-authority": "^0.7.1",
|