hotsheet 0.5.0 → 0.5.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.
- package/dist/cli.js +13 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -430,14 +430,15 @@ __export(channel_config_exports, {
|
|
|
430
430
|
unregisterChannel: () => unregisterChannel
|
|
431
431
|
});
|
|
432
432
|
import { existsSync as existsSync6, readFileSync as readFileSync6, writeFileSync as writeFileSync6 } from "fs";
|
|
433
|
-
import { join as join8, resolve } from "path";
|
|
433
|
+
import { dirname, join as join8, resolve } from "path";
|
|
434
|
+
import { fileURLToPath } from "url";
|
|
434
435
|
function getChannelServerPath() {
|
|
435
|
-
const
|
|
436
|
-
const distPath = resolve(
|
|
436
|
+
const thisDir = dirname(fileURLToPath(import.meta.url));
|
|
437
|
+
const distPath = resolve(thisDir, "channel.js");
|
|
437
438
|
if (existsSync6(distPath)) {
|
|
438
439
|
return { command: "node", args: [distPath] };
|
|
439
440
|
}
|
|
440
|
-
const srcPath = resolve(
|
|
441
|
+
const srcPath = resolve(thisDir, "channel.ts");
|
|
441
442
|
if (existsSync6(srcPath)) {
|
|
442
443
|
return { command: "npx", args: ["tsx", srcPath] };
|
|
443
444
|
}
|
|
@@ -2220,8 +2221,8 @@ import { serve } from "@hono/node-server";
|
|
|
2220
2221
|
import { exec } from "child_process";
|
|
2221
2222
|
import { existsSync as existsSync8, readFileSync as readFileSync7 } from "fs";
|
|
2222
2223
|
import { Hono as Hono4 } from "hono";
|
|
2223
|
-
import { dirname, join as join10 } from "path";
|
|
2224
|
-
import { fileURLToPath } from "url";
|
|
2224
|
+
import { dirname as dirname2, join as join10 } from "path";
|
|
2225
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
2225
2226
|
|
|
2226
2227
|
// src/routes/api.ts
|
|
2227
2228
|
import { existsSync as existsSync7, mkdirSync as mkdirSync4, rmSync as rmSync5 } from "fs";
|
|
@@ -2900,14 +2901,14 @@ apiRoutes.post("/attachments/:id/reveal", async (c) => {
|
|
|
2900
2901
|
if (!attachment) return c.json({ error: "Not found" }, 404);
|
|
2901
2902
|
if (!existsSync7(attachment.stored_path)) return c.json({ error: "File not found on disk" }, 404);
|
|
2902
2903
|
const { execFile } = await import("child_process");
|
|
2903
|
-
const { dirname:
|
|
2904
|
+
const { dirname: dirname4 } = await import("path");
|
|
2904
2905
|
const platform = process.platform;
|
|
2905
2906
|
if (platform === "darwin") {
|
|
2906
2907
|
execFile("open", ["-R", attachment.stored_path]);
|
|
2907
2908
|
} else if (platform === "win32") {
|
|
2908
2909
|
execFile("explorer", ["/select,", attachment.stored_path]);
|
|
2909
2910
|
} else {
|
|
2910
|
-
execFile("xdg-open", [
|
|
2911
|
+
execFile("xdg-open", [dirname4(attachment.stored_path)]);
|
|
2911
2912
|
}
|
|
2912
2913
|
return c.json({ ok: true });
|
|
2913
2914
|
});
|
|
@@ -3753,7 +3754,7 @@ async function startServer(port2, dataDir2, options) {
|
|
|
3753
3754
|
c.set("dataDir", dataDir2);
|
|
3754
3755
|
await next();
|
|
3755
3756
|
});
|
|
3756
|
-
const selfDir =
|
|
3757
|
+
const selfDir = dirname2(fileURLToPath2(import.meta.url));
|
|
3757
3758
|
const distDir = existsSync8(join10(selfDir, "client", "styles.css")) ? join10(selfDir, "client") : join10(selfDir, "..", "dist", "client");
|
|
3758
3759
|
app.get("/static/styles.css", (c) => {
|
|
3759
3760
|
const css = readFileSync7(join10(distDir, "styles.css"), "utf-8");
|
|
@@ -3814,14 +3815,14 @@ async function startServer(port2, dataDir2, options) {
|
|
|
3814
3815
|
import { existsSync as existsSync9, mkdirSync as mkdirSync5, readFileSync as readFileSync8, writeFileSync as writeFileSync7 } from "fs";
|
|
3815
3816
|
import { get } from "https";
|
|
3816
3817
|
import { homedir } from "os";
|
|
3817
|
-
import { dirname as
|
|
3818
|
-
import { fileURLToPath as
|
|
3818
|
+
import { dirname as dirname3, join as join11 } from "path";
|
|
3819
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
3819
3820
|
var DATA_DIR = join11(homedir(), ".hotsheet");
|
|
3820
3821
|
var CHECK_FILE = join11(DATA_DIR, "last-update-check");
|
|
3821
3822
|
var PACKAGE_NAME = "hotsheet";
|
|
3822
3823
|
function getCurrentVersion() {
|
|
3823
3824
|
try {
|
|
3824
|
-
const dir =
|
|
3825
|
+
const dir = dirname3(fileURLToPath3(import.meta.url));
|
|
3825
3826
|
const pkg = JSON.parse(readFileSync8(join11(dir, "..", "package.json"), "utf-8"));
|
|
3826
3827
|
return pkg.version;
|
|
3827
3828
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hotsheet",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A lightweight local project management tool. Create, categorize, and prioritize tickets with a fast bullet-list interface, then export an Up Next worklist for AI tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|