teleton 0.8.4 → 0.8.5
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 +16 -12
- package/dist/{bootstrap-NNEI3Z5H.js → bootstrap-SPDT3XBQ.js} +4 -4
- package/dist/{chunk-GHMXWAXI.js → chunk-2MZP75SH.js} +72 -202
- package/dist/chunk-35X3V6OW.js +139 -0
- package/dist/{chunk-LVTKJQ7O.js → chunk-4KURCUWD.js} +1 -1
- package/dist/{chunk-XDZDOKIF.js → chunk-5K4YDCVU.js} +1 -1
- package/dist/{chunk-LZQOX6YY.js → chunk-6U6VA2OT.js} +512 -1522
- package/dist/{chunk-5LOHRZYY.js → chunk-7ZXUUDQQ.js} +5 -5
- package/dist/{chunk-NH2CNRKJ.js → chunk-FSL2MOYK.js} +14 -3
- package/dist/{chunk-LC4TV3KL.js → chunk-GUX6ZFVF.js} +1 -1
- package/dist/{chunk-CUE4UZXR.js → chunk-KYSAHDYE.js} +2 -2
- package/dist/{chunk-C4NKJT2Z.js → chunk-L3LPVF4Z.js} +1 -1
- package/dist/{chunk-EYWNOHMJ.js → chunk-L653KKCR.js} +1 -0
- package/dist/{chunk-ALKAAG4O.js → chunk-LD24DWWE.js} +4 -4
- package/dist/{chunk-UMUONAD6.js → chunk-LM6AL6LN.js} +2413 -861
- package/dist/{chunk-JROBTXWY.js → chunk-M6M4DCDU.js} +36 -2
- package/dist/{chunk-35MX4ZUI.js → chunk-PK3TVFBT.js} +2 -2
- package/dist/{chunk-G7PCW63M.js → chunk-Z63KUQX4.js} +29 -5
- package/dist/cli/index.js +28 -15
- package/dist/{client-5KD25NOP.js → client-G62EZT6U.js} +3 -3
- package/dist/harden-permissions-6BLHRCQJ.js +100 -0
- package/dist/index.js +14 -13
- package/dist/{local-IHKJFQJS.js → local-HQ3UJ7KR.js} +2 -2
- package/dist/{memory-QMJRM3XJ.js → memory-BJH724PQ.js} +6 -5
- package/dist/{memory-hook-VUNWZ3NY.js → memory-hook-LUAKTXU5.js} +5 -5
- package/dist/{migrate-5VBAP52B.js → migrate-C4LBLOZH.js} +6 -5
- package/dist/{paths-XA2RJH4S.js → paths-WMVV7ZAJ.js} +1 -1
- package/dist/{server-WWGVDFPW.js → server-4J56HS62.js} +8 -14
- package/dist/{server-AJCOURH7.js → server-I6TYJ36S.js} +7 -14
- package/dist/{setup-server-VDY64CWW.js → setup-server-VJ3MGUSM.js} +16 -17
- package/dist/{store-BY7S6IFN.js → store-2IGAMTES.js} +7 -6
- package/dist/{task-dependency-resolver-L6UUMTHK.js → task-dependency-resolver-CQ432Z7J.js} +1 -1
- package/dist/{task-executor-XBNJLUCS.js → task-executor-JELRREUV.js} +1 -1
- package/dist/{tool-index-FTERJSZK.js → tool-index-XPCMWBYY.js} +4 -4
- package/dist/{transcript-IM7G25OS.js → transcript-OEO3HA4Z.js} +2 -2
- package/dist/web/assets/{index-BfYCdwLI.js → index-Dn5ZH1Y6.js} +13 -13
- package/dist/web/assets/{index.es-DitvF-9H.js → index.es-eSR4Qv6s.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +2 -6
- package/src/templates/HEARTBEAT.md +5 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSetupRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7ZXUUDQQ.js";
|
|
4
4
|
import "./chunk-WFTC3JJW.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-M6M4DCDU.js";
|
|
6
|
+
import "./chunk-FSL2MOYK.js";
|
|
7
7
|
import "./chunk-VFA7QMCZ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-L3LPVF4Z.js";
|
|
9
9
|
import "./chunk-WTDAICGT.js";
|
|
10
10
|
import "./chunk-6OOHHJ4N.js";
|
|
11
11
|
import "./chunk-XQUHC3JZ.js";
|
|
12
12
|
import "./chunk-R4YSJ4EY.js";
|
|
13
13
|
import {
|
|
14
14
|
TELETON_ROOT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L653KKCR.js";
|
|
16
16
|
import {
|
|
17
17
|
createLogger
|
|
18
18
|
} from "./chunk-NQ6FZKCE.js";
|
|
@@ -23,13 +23,12 @@ import { Hono } from "hono";
|
|
|
23
23
|
import { serve } from "@hono/node-server";
|
|
24
24
|
import { cors } from "hono/cors";
|
|
25
25
|
import { bodyLimit } from "hono/body-limit";
|
|
26
|
-
import { existsSync, readFileSync } from "fs";
|
|
26
|
+
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
27
27
|
import { join, dirname, resolve, relative } from "path";
|
|
28
28
|
import { fileURLToPath } from "url";
|
|
29
|
-
import {
|
|
29
|
+
import { spawn } from "child_process";
|
|
30
30
|
import { platform } from "os";
|
|
31
31
|
import { randomBytes } from "crypto";
|
|
32
|
-
import { readFileSync as readYaml, writeFileSync } from "fs";
|
|
33
32
|
import YAML from "yaml";
|
|
34
33
|
var log = createLogger("Setup");
|
|
35
34
|
function findWebDist() {
|
|
@@ -45,19 +44,19 @@ function findWebDist() {
|
|
|
45
44
|
}
|
|
46
45
|
function autoOpenBrowser(url) {
|
|
47
46
|
const os = platform();
|
|
48
|
-
let
|
|
47
|
+
let prog;
|
|
49
48
|
if (os === "darwin") {
|
|
50
|
-
|
|
49
|
+
prog = "open";
|
|
51
50
|
} else if (os === "win32") {
|
|
52
|
-
|
|
51
|
+
prog = "explorer";
|
|
53
52
|
} else {
|
|
54
|
-
|
|
53
|
+
prog = "xdg-open";
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
55
|
+
const child = spawn(prog, [url], { detached: true, stdio: "ignore" });
|
|
56
|
+
child.on("error", () => {
|
|
57
|
+
log.info(`Open this URL in your browser: ${url}`);
|
|
60
58
|
});
|
|
59
|
+
child.unref();
|
|
61
60
|
}
|
|
62
61
|
var SetupServer = class {
|
|
63
62
|
constructor(port = 7777) {
|
|
@@ -119,7 +118,7 @@ var SetupServer = class {
|
|
|
119
118
|
try {
|
|
120
119
|
const token = randomBytes(32).toString("hex");
|
|
121
120
|
const configPath = join(TELETON_ROOT, "config.yaml");
|
|
122
|
-
const raw =
|
|
121
|
+
const raw = readFileSync(configPath, "utf-8");
|
|
123
122
|
const config = YAML.parse(raw);
|
|
124
123
|
config.webui = { ...config.webui || {}, enabled: true, auth_token: token };
|
|
125
124
|
writeFileSync(configPath, YAML.stringify(config), { encoding: "utf-8", mode: 384 });
|
|
@@ -9,15 +9,16 @@ import {
|
|
|
9
9
|
saveSessionStore,
|
|
10
10
|
shouldResetSession,
|
|
11
11
|
updateSession
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-5K4YDCVU.js";
|
|
13
|
+
import "./chunk-2MZP75SH.js";
|
|
14
|
+
import "./chunk-35X3V6OW.js";
|
|
15
|
+
import "./chunk-PK3TVFBT.js";
|
|
15
16
|
import "./chunk-VFA7QMCZ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-L3LPVF4Z.js";
|
|
17
18
|
import "./chunk-XQUHC3JZ.js";
|
|
18
19
|
import "./chunk-R4YSJ4EY.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KYSAHDYE.js";
|
|
21
|
+
import "./chunk-L653KKCR.js";
|
|
21
22
|
import "./chunk-NQ6FZKCE.js";
|
|
22
23
|
import "./chunk-4L66JHQE.js";
|
|
23
24
|
import "./chunk-3RG5ZIWI.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serializeEmbedding
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PK3TVFBT.js";
|
|
4
4
|
import "./chunk-VFA7QMCZ.js";
|
|
5
5
|
import {
|
|
6
6
|
TOOL_RAG_KEYWORD_WEIGHT,
|
|
7
7
|
TOOL_RAG_MIN_SCORE,
|
|
8
8
|
TOOL_RAG_VECTOR_WEIGHT
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L3LPVF4Z.js";
|
|
10
10
|
import "./chunk-XQUHC3JZ.js";
|
|
11
11
|
import "./chunk-R4YSJ4EY.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-KYSAHDYE.js";
|
|
13
|
+
import "./chunk-L653KKCR.js";
|
|
14
14
|
import {
|
|
15
15
|
createLogger
|
|
16
16
|
} from "./chunk-NQ6FZKCE.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
getTranscriptSize,
|
|
8
8
|
readTranscript,
|
|
9
9
|
transcriptExists
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-GUX6ZFVF.js";
|
|
11
|
+
import "./chunk-L653KKCR.js";
|
|
12
12
|
import "./chunk-NQ6FZKCE.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|