teleton 0.8.0 → 0.8.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/README.md +28 -11
- package/dist/{chunk-H36RFKRI.js → chunk-2IZU3REP.js} +572 -174
- package/dist/chunk-3UFPFWYP.js +12 -0
- package/dist/{chunk-NUGDTPE4.js → chunk-4L66JHQE.js} +2 -1
- package/dist/{chunk-TVRZJIZX.js → chunk-55SKE6YH.js} +4 -4
- package/dist/{setup-server-QXED3D2L.js → chunk-57URFK6M.js} +161 -210
- package/dist/chunk-5SEMA47R.js +75 -0
- package/dist/{chunk-JHYZYFZJ.js → chunk-7YKSXOQQ.js} +17 -2
- package/dist/{chunk-IJBWWQE4.js → chunk-C4NKJT2Z.js} +12 -0
- package/dist/{chunk-RQBAMUCV.js → chunk-GGXJLMOH.js} +1451 -743
- package/dist/{chunk-WIKM24GZ.js → chunk-H7MFXJZK.js} +7 -2
- package/dist/{chunk-U56QTM46.js → chunk-HEDJCLA6.js} +85 -44
- package/dist/{chunk-QVBSUYVX.js → chunk-J73TA3UM.js} +17 -9
- package/dist/{chunk-P36I6OIV.js → chunk-LC4TV3KL.js} +13 -2
- package/dist/{chunk-RCMD3U65.js → chunk-NQ6FZKCE.js} +13 -0
- package/dist/{chunk-SD4NLLYG.js → chunk-VYKW7FMV.js} +224 -93
- package/dist/chunk-W25Z7CM6.js +487 -0
- package/dist/{chunk-OJCLKU5Z.js → chunk-WFTC3JJW.js} +16 -0
- package/dist/{server-H3QA252W.js → chunk-XBSCYMKM.js} +369 -374
- package/dist/{chunk-PHSAHTK4.js → chunk-YOSUPUAJ.js} +75 -7
- package/dist/cli/index.js +67 -22
- package/dist/{client-LNZTDQSA.js → client-YOOHI776.js} +4 -4
- package/dist/{get-my-gifts-OMGKOEPM.js → get-my-gifts-Y7EN7RK4.js} +3 -3
- package/dist/index.js +15 -14
- package/dist/{memory-AS7WKGTW.js → memory-Q6EWGK2S.js} +7 -5
- package/dist/memory-hook-WUXJNVT5.js +18 -0
- package/dist/{migrate-POHWYEIW.js → migrate-WFU6COBN.js} +5 -5
- package/dist/server-GYZXKIKU.js +787 -0
- package/dist/server-YODFBZKG.js +392 -0
- package/dist/setup-server-IZBUOJRU.js +215 -0
- package/dist/{store-GAFULOOX.js → store-7M4XV6M5.js} +6 -6
- package/dist/{task-dependency-resolver-3FIKQ7Z6.js → task-dependency-resolver-L6UUMTHK.js} +3 -3
- package/dist/{task-executor-RUTFG6VG.js → task-executor-XBNJLUCS.js} +3 -3
- package/dist/{tasks-BEZ4QRI2.js → tasks-WQIKXDX5.js} +1 -1
- package/dist/{tool-adapter-IH5VGBOO.js → tool-adapter-IVX2XQJE.js} +1 -1
- package/dist/{tool-index-H3SHOJC3.js → tool-index-NYH57UWP.js} +9 -6
- package/dist/{transcript-IMNE6KU3.js → transcript-IM7G25OS.js} +2 -2
- package/dist/web/assets/index-BfYCdwLI.js +80 -0
- package/dist/web/assets/{index-BrVqauzj.css → index-DmlyQVhR.css} +1 -1
- package/dist/web/assets/{index.es-DkU1GvWU.js → index.es-DitvF-9H.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +14 -5
- package/dist/chunk-XBE4JB7C.js +0 -8
- package/dist/web/assets/index-DYeEkvJ6.js +0 -72
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQ6FZKCE.js";
|
|
4
4
|
|
|
5
5
|
// src/config/providers.ts
|
|
6
6
|
var PROVIDER_REGISTRY = {
|
|
@@ -30,12 +30,12 @@ var PROVIDER_REGISTRY = {
|
|
|
30
30
|
},
|
|
31
31
|
openai: {
|
|
32
32
|
id: "openai",
|
|
33
|
-
displayName: "OpenAI (GPT-
|
|
33
|
+
displayName: "OpenAI (GPT-5.4)",
|
|
34
34
|
envVar: "OPENAI_API_KEY",
|
|
35
35
|
keyPrefix: "sk-",
|
|
36
36
|
keyHint: "sk-proj-...",
|
|
37
37
|
consoleUrl: "https://platform.openai.com/api-keys",
|
|
38
|
-
defaultModel: "gpt-
|
|
38
|
+
defaultModel: "gpt-5.4",
|
|
39
39
|
utilityModel: "gpt-4o-mini",
|
|
40
40
|
toolLimit: 128,
|
|
41
41
|
piAiProvider: "openai"
|
|
@@ -207,13 +207,17 @@ function validateApiKeyFormat(provider, key) {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
// src/providers/claude-code-credentials.ts
|
|
210
|
-
import { readFileSync, existsSync } from "fs";
|
|
210
|
+
import { readFileSync, writeFileSync, existsSync } from "fs";
|
|
211
211
|
import { execSync } from "child_process";
|
|
212
212
|
import { homedir } from "os";
|
|
213
213
|
import { join } from "path";
|
|
214
214
|
var log = createLogger("ClaudeCodeCreds");
|
|
215
|
+
var OAUTH_TOKEN_URL = "https://platform.claude.com/v1/oauth/token";
|
|
216
|
+
var OAUTH_CLIENT_ID = "9d1c250a-e61b-44d9-88ed-5944d1962f5e";
|
|
217
|
+
var OAUTH_SCOPES = "user:profile user:inference user:sessions:claude_code user:mcp_servers";
|
|
215
218
|
var cachedToken = null;
|
|
216
219
|
var cachedExpiresAt = 0;
|
|
220
|
+
var cachedRefreshToken = null;
|
|
217
221
|
function getClaudeConfigDir() {
|
|
218
222
|
return process.env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude");
|
|
219
223
|
}
|
|
@@ -261,7 +265,8 @@ function extractToken(creds) {
|
|
|
261
265
|
}
|
|
262
266
|
return {
|
|
263
267
|
token: oauth.accessToken,
|
|
264
|
-
expiresAt: oauth.expiresAt ?? 0
|
|
268
|
+
expiresAt: oauth.expiresAt ?? 0,
|
|
269
|
+
refreshToken: oauth.refreshToken
|
|
265
270
|
};
|
|
266
271
|
}
|
|
267
272
|
function getClaudeCodeApiKey(fallbackKey) {
|
|
@@ -274,6 +279,7 @@ function getClaudeCodeApiKey(fallbackKey) {
|
|
|
274
279
|
if (extracted) {
|
|
275
280
|
cachedToken = extracted.token;
|
|
276
281
|
cachedExpiresAt = extracted.expiresAt;
|
|
282
|
+
cachedRefreshToken = extracted.refreshToken ?? null;
|
|
277
283
|
log.debug("Claude Code credentials loaded successfully");
|
|
278
284
|
return cachedToken;
|
|
279
285
|
}
|
|
@@ -284,20 +290,82 @@ function getClaudeCodeApiKey(fallbackKey) {
|
|
|
284
290
|
}
|
|
285
291
|
throw new Error("No Claude Code credentials found. Run 'claude login' or set api_key in config.");
|
|
286
292
|
}
|
|
287
|
-
function
|
|
293
|
+
async function performOAuthRefresh(refreshToken) {
|
|
294
|
+
try {
|
|
295
|
+
const res = await fetch(OAUTH_TOKEN_URL, {
|
|
296
|
+
method: "POST",
|
|
297
|
+
headers: { "Content-Type": "application/json" },
|
|
298
|
+
body: JSON.stringify({
|
|
299
|
+
grant_type: "refresh_token",
|
|
300
|
+
refresh_token: refreshToken,
|
|
301
|
+
client_id: OAUTH_CLIENT_ID,
|
|
302
|
+
scope: OAUTH_SCOPES
|
|
303
|
+
})
|
|
304
|
+
});
|
|
305
|
+
if (!res.ok) {
|
|
306
|
+
log.warn(`OAuth token refresh failed: ${res.status} ${res.statusText}`);
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
const data = await res.json();
|
|
310
|
+
if (!data.access_token || !data.expires_in) {
|
|
311
|
+
log.warn("OAuth token refresh: unexpected response shape");
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
const newExpiresAt = Date.now() + data.expires_in * 1e3;
|
|
315
|
+
const newRefreshToken = data.refresh_token ?? refreshToken;
|
|
316
|
+
const filePath = getCredentialsFilePath();
|
|
317
|
+
try {
|
|
318
|
+
const existing = existsSync(filePath) ? JSON.parse(readFileSync(filePath, "utf-8")) : {};
|
|
319
|
+
const updated = {
|
|
320
|
+
...existing,
|
|
321
|
+
claudeAiOauth: {
|
|
322
|
+
...existing.claudeAiOauth,
|
|
323
|
+
accessToken: data.access_token,
|
|
324
|
+
refreshToken: newRefreshToken,
|
|
325
|
+
expiresAt: newExpiresAt
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
writeFileSync(filePath, JSON.stringify(updated, null, 2), { mode: 384 });
|
|
329
|
+
} catch (e) {
|
|
330
|
+
log.warn({ err: e }, "Failed to persist refreshed OAuth credentials to disk");
|
|
331
|
+
}
|
|
332
|
+
cachedToken = data.access_token;
|
|
333
|
+
cachedExpiresAt = newExpiresAt;
|
|
334
|
+
cachedRefreshToken = newRefreshToken;
|
|
335
|
+
log.info("Claude Code OAuth token refreshed successfully");
|
|
336
|
+
return cachedToken;
|
|
337
|
+
} catch (e) {
|
|
338
|
+
log.warn({ err: e }, "OAuth token refresh request failed");
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
async function refreshClaudeCodeApiKey() {
|
|
288
343
|
cachedToken = null;
|
|
289
344
|
cachedExpiresAt = 0;
|
|
345
|
+
if (!cachedRefreshToken) {
|
|
346
|
+
const creds2 = readCredentials();
|
|
347
|
+
if (creds2) {
|
|
348
|
+
const extracted = extractToken(creds2);
|
|
349
|
+
cachedRefreshToken = extracted?.refreshToken ?? null;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
if (cachedRefreshToken) {
|
|
353
|
+
const refreshed = await performOAuthRefresh(cachedRefreshToken);
|
|
354
|
+
if (refreshed) return refreshed;
|
|
355
|
+
log.warn("OAuth refresh failed, falling back to disk read");
|
|
356
|
+
}
|
|
290
357
|
const creds = readCredentials();
|
|
291
358
|
if (creds) {
|
|
292
359
|
const extracted = extractToken(creds);
|
|
293
360
|
if (extracted) {
|
|
294
361
|
cachedToken = extracted.token;
|
|
295
362
|
cachedExpiresAt = extracted.expiresAt;
|
|
363
|
+
cachedRefreshToken = extracted.refreshToken ?? null;
|
|
296
364
|
log.info("Claude Code credentials refreshed from disk");
|
|
297
365
|
return cachedToken;
|
|
298
366
|
}
|
|
299
367
|
}
|
|
300
|
-
log.warn("Failed to refresh Claude Code credentials
|
|
368
|
+
log.warn("Failed to refresh Claude Code credentials");
|
|
301
369
|
return null;
|
|
302
370
|
}
|
|
303
371
|
function isClaudeCodeTokenValid() {
|
package/dist/cli/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ensureTlsCert
|
|
3
|
+
} from "../chunk-5SEMA47R.js";
|
|
1
4
|
import {
|
|
2
5
|
getModelsForProvider
|
|
3
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-WFTC3JJW.js";
|
|
4
7
|
import {
|
|
5
8
|
TelegramUserClient,
|
|
6
9
|
main
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-2IZU3REP.js";
|
|
11
|
+
import "../chunk-H7MFXJZK.js";
|
|
9
12
|
import {
|
|
10
13
|
CONFIGURABLE_KEYS,
|
|
11
14
|
configExists,
|
|
@@ -15,7 +18,7 @@ import {
|
|
|
15
18
|
readRawConfig,
|
|
16
19
|
setNestedValue,
|
|
17
20
|
writeRawConfig
|
|
18
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-GGXJLMOH.js";
|
|
19
22
|
import {
|
|
20
23
|
ConfigSchema,
|
|
21
24
|
DealsConfigSchema,
|
|
@@ -26,27 +29,28 @@ import {
|
|
|
26
29
|
loadWallet,
|
|
27
30
|
saveWallet,
|
|
28
31
|
walletExists
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-7YKSXOQQ.js";
|
|
33
|
+
import "../chunk-55SKE6YH.js";
|
|
34
|
+
import "../chunk-W25Z7CM6.js";
|
|
32
35
|
import {
|
|
33
36
|
getErrorMessage
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
37
|
+
} from "../chunk-3UFPFWYP.js";
|
|
38
|
+
import "../chunk-7TECSLJ4.js";
|
|
39
|
+
import "../chunk-J73TA3UM.js";
|
|
36
40
|
import {
|
|
37
41
|
getClaudeCodeApiKey,
|
|
38
42
|
getProviderMetadata,
|
|
39
43
|
getSupportedProviders,
|
|
40
44
|
isClaudeCodeTokenValid,
|
|
41
45
|
validateApiKeyFormat
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-YOSUPUAJ.js";
|
|
47
|
+
import "../chunk-LC4TV3KL.js";
|
|
48
|
+
import "../chunk-VYKW7FMV.js";
|
|
49
|
+
import "../chunk-HEDJCLA6.js";
|
|
46
50
|
import "../chunk-VFA7QMCZ.js";
|
|
47
51
|
import {
|
|
48
52
|
TELEGRAM_MAX_MESSAGE_LENGTH
|
|
49
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-C4NKJT2Z.js";
|
|
50
54
|
import {
|
|
51
55
|
fetchWithTimeout
|
|
52
56
|
} from "../chunk-XQUHC3JZ.js";
|
|
@@ -54,8 +58,8 @@ import "../chunk-R4YSJ4EY.js";
|
|
|
54
58
|
import {
|
|
55
59
|
TELETON_ROOT
|
|
56
60
|
} from "../chunk-EYWNOHMJ.js";
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-NQ6FZKCE.js";
|
|
62
|
+
import "../chunk-4L66JHQE.js";
|
|
59
63
|
import "../chunk-3RG5ZIWI.js";
|
|
60
64
|
|
|
61
65
|
// src/cli/index.ts
|
|
@@ -379,7 +383,7 @@ function sleep(ms) {
|
|
|
379
383
|
}
|
|
380
384
|
async function onboardCommand(options = {}) {
|
|
381
385
|
if (options.ui) {
|
|
382
|
-
const { SetupServer } = await import("../setup-server-
|
|
386
|
+
const { SetupServer } = await import("../setup-server-IZBUOJRU.js");
|
|
383
387
|
const port = parseInt(options.uiPort || "7777") || 7777;
|
|
384
388
|
const url = `http://localhost:${port}/setup`;
|
|
385
389
|
const blue2 = "\x1B[34m";
|
|
@@ -402,9 +406,8 @@ ${blue2} \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25
|
|
|
402
406
|
`);
|
|
403
407
|
const server = new SetupServer(port);
|
|
404
408
|
await server.start();
|
|
405
|
-
process.on("SIGINT",
|
|
406
|
-
|
|
407
|
-
process.exit(0);
|
|
409
|
+
process.on("SIGINT", () => {
|
|
410
|
+
void server.stop().then(() => process.exit(0));
|
|
408
411
|
});
|
|
409
412
|
await server.waitForLaunch();
|
|
410
413
|
console.log("\n Launch signal received \u2014 stopping setup server");
|
|
@@ -1110,6 +1113,7 @@ Get it at: ${providerMeta.consoleUrl}`,
|
|
|
1110
1113
|
audit: { log_commands: true }
|
|
1111
1114
|
}
|
|
1112
1115
|
},
|
|
1116
|
+
ton_proxy: { enabled: false, port: 8080 },
|
|
1113
1117
|
plugins: {},
|
|
1114
1118
|
...selectedProvider === "cocoon" ? { cocoon: { port: cocoonInstance } } : {},
|
|
1115
1119
|
tonapi_key: tonapiKey,
|
|
@@ -1275,6 +1279,7 @@ async function runNonInteractiveOnboarding(options, prompter) {
|
|
|
1275
1279
|
audit: { log_commands: true }
|
|
1276
1280
|
}
|
|
1277
1281
|
},
|
|
1282
|
+
ton_proxy: { enabled: false, port: 8080 },
|
|
1278
1283
|
mcp: { servers: {} },
|
|
1279
1284
|
plugins: {},
|
|
1280
1285
|
tavily_api_key: options.tavilyApiKey
|
|
@@ -1683,7 +1688,7 @@ function ensureMcpSection(raw) {
|
|
|
1683
1688
|
return mcp2.servers;
|
|
1684
1689
|
}
|
|
1685
1690
|
function deriveServerName(pkg) {
|
|
1686
|
-
const unscoped = pkg.includes("/") ? pkg.split("/").pop() : pkg;
|
|
1691
|
+
const unscoped = pkg.includes("/") ? pkg.split("/").pop() ?? pkg : pkg;
|
|
1687
1692
|
return unscoped.replace(/^server-/, "").replace(/^mcp-server-/, "").replace(/^mcp-/, "");
|
|
1688
1693
|
}
|
|
1689
1694
|
async function mcpAddCommand(pkg, extraArgs, options) {
|
|
@@ -1889,6 +1894,21 @@ Available: set, get, list, unset`);
|
|
|
1889
1894
|
}
|
|
1890
1895
|
}
|
|
1891
1896
|
|
|
1897
|
+
// src/cli/commands/api.ts
|
|
1898
|
+
import { createHash, randomBytes } from "crypto";
|
|
1899
|
+
async function apiRotateKeyCommand(options) {
|
|
1900
|
+
const key = "tltn_" + randomBytes(32).toString("base64url");
|
|
1901
|
+
const hash = createHash("sha256").update(key).digest("hex");
|
|
1902
|
+
const raw = readRawConfig(options.config);
|
|
1903
|
+
setNestedValue(raw, "api.key_hash", hash);
|
|
1904
|
+
writeRawConfig(raw, options.config);
|
|
1905
|
+
console.log(key);
|
|
1906
|
+
}
|
|
1907
|
+
async function apiFingerprintCommand() {
|
|
1908
|
+
const tls = await ensureTlsCert(TELETON_ROOT);
|
|
1909
|
+
console.log(tls.fingerprint);
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1892
1912
|
// src/cli/index.ts
|
|
1893
1913
|
import { readFileSync as readFileSync3, existsSync as existsSync3 } from "fs";
|
|
1894
1914
|
import { dirname, join as join3 } from "path";
|
|
@@ -1927,7 +1947,7 @@ program.command("setup").description("Interactive wizard to set up Teleton").opt
|
|
|
1927
1947
|
process.exit(1);
|
|
1928
1948
|
}
|
|
1929
1949
|
});
|
|
1930
|
-
program.command("start").description("Start the Teleton agent").option("-c, --config <path>", "Config file path", getDefaultConfigPath()).option("--webui", "Enable WebUI server (overrides config)").option("--webui-port <port>", "WebUI server port (default: 7777)").action(async (options) => {
|
|
1950
|
+
program.command("start").description("Start the Teleton agent").option("-c, --config <path>", "Config file path", getDefaultConfigPath()).option("--webui", "Enable WebUI server (overrides config)").option("--webui-port <port>", "WebUI server port (default: 7777)").option("--api", "Enable Management API server (overrides config)").option("--api-port <port>", "Management API port (default: 7778)").option("--json-credentials", "Output API credentials as JSON to stdout on start").action(async (options) => {
|
|
1931
1951
|
try {
|
|
1932
1952
|
if (!configExists(options.config)) {
|
|
1933
1953
|
console.error("\u274C Configuration not found");
|
|
@@ -1941,6 +1961,15 @@ program.command("start").description("Start the Teleton agent").option("-c, --co
|
|
|
1941
1961
|
if (options.webuiPort) {
|
|
1942
1962
|
process.env.TELETON_WEBUI_PORT = options.webuiPort;
|
|
1943
1963
|
}
|
|
1964
|
+
if (options.api) {
|
|
1965
|
+
process.env.TELETON_API_ENABLED = "true";
|
|
1966
|
+
}
|
|
1967
|
+
if (options.apiPort) {
|
|
1968
|
+
process.env.TELETON_API_PORT = options.apiPort;
|
|
1969
|
+
}
|
|
1970
|
+
if (options.jsonCredentials) {
|
|
1971
|
+
process.env.TELETON_JSON_CREDENTIALS = "true";
|
|
1972
|
+
}
|
|
1944
1973
|
await main(options.config);
|
|
1945
1974
|
} catch (error) {
|
|
1946
1975
|
console.error("Error:", getErrorMessage(error));
|
|
@@ -1995,6 +2024,22 @@ program.command("config").description("Manage configuration keys (set, get, list
|
|
|
1995
2024
|
process.exit(1);
|
|
1996
2025
|
}
|
|
1997
2026
|
});
|
|
2027
|
+
program.command("api-rotate-key").description("Generate a new Management API key").option("-c, --config <path>", "Config file path", getDefaultConfigPath()).action(async (options) => {
|
|
2028
|
+
try {
|
|
2029
|
+
await apiRotateKeyCommand({ config: options.config });
|
|
2030
|
+
} catch (error) {
|
|
2031
|
+
console.error("Error:", getErrorMessage(error));
|
|
2032
|
+
process.exit(1);
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
program.command("api-fingerprint").description("Show TLS certificate fingerprint").action(async () => {
|
|
2036
|
+
try {
|
|
2037
|
+
await apiFingerprintCommand();
|
|
2038
|
+
} catch (error) {
|
|
2039
|
+
console.error("Error:", getErrorMessage(error));
|
|
2040
|
+
process.exit(1);
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
1998
2043
|
program.action(() => {
|
|
1999
2044
|
program.help();
|
|
2000
2045
|
});
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
loadContextFromTranscript,
|
|
9
9
|
registerCocoonModels,
|
|
10
10
|
registerLocalModels
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-J73TA3UM.js";
|
|
12
|
+
import "./chunk-YOSUPUAJ.js";
|
|
13
|
+
import "./chunk-LC4TV3KL.js";
|
|
14
14
|
import "./chunk-XQUHC3JZ.js";
|
|
15
15
|
import "./chunk-R4YSJ4EY.js";
|
|
16
16
|
import "./chunk-EYWNOHMJ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-NQ6FZKCE.js";
|
|
18
18
|
import "./chunk-3RG5ZIWI.js";
|
|
19
19
|
export {
|
|
20
20
|
chatWithContext,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
telegramGetMyGiftsExecutor,
|
|
3
3
|
telegramGetMyGiftsTool
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-H7MFXJZK.js";
|
|
5
|
+
import "./chunk-3UFPFWYP.js";
|
|
6
|
+
import "./chunk-NQ6FZKCE.js";
|
|
7
7
|
import "./chunk-3RG5ZIWI.js";
|
|
8
8
|
export {
|
|
9
9
|
telegramGetMyGiftsExecutor,
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TeletonApp,
|
|
3
3
|
main
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2IZU3REP.js";
|
|
5
|
+
import "./chunk-H7MFXJZK.js";
|
|
6
|
+
import "./chunk-GGXJLMOH.js";
|
|
7
|
+
import "./chunk-7YKSXOQQ.js";
|
|
8
|
+
import "./chunk-55SKE6YH.js";
|
|
9
|
+
import "./chunk-W25Z7CM6.js";
|
|
10
|
+
import "./chunk-3UFPFWYP.js";
|
|
9
11
|
import "./chunk-7TECSLJ4.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-U56QTM46.js";
|
|
12
|
+
import "./chunk-J73TA3UM.js";
|
|
13
|
+
import "./chunk-YOSUPUAJ.js";
|
|
14
|
+
import "./chunk-LC4TV3KL.js";
|
|
15
|
+
import "./chunk-VYKW7FMV.js";
|
|
16
|
+
import "./chunk-HEDJCLA6.js";
|
|
16
17
|
import "./chunk-VFA7QMCZ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-C4NKJT2Z.js";
|
|
18
19
|
import "./chunk-XQUHC3JZ.js";
|
|
19
20
|
import "./chunk-R4YSJ4EY.js";
|
|
20
21
|
import "./chunk-EYWNOHMJ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NQ6FZKCE.js";
|
|
23
|
+
import "./chunk-4L66JHQE.js";
|
|
23
24
|
import "./chunk-3RG5ZIWI.js";
|
|
24
25
|
export {
|
|
25
26
|
TeletonApp,
|
|
@@ -14,9 +14,10 @@ import {
|
|
|
14
14
|
getDatabase,
|
|
15
15
|
getSchemaVersion,
|
|
16
16
|
initializeMemory,
|
|
17
|
+
parseTemporalIntent,
|
|
17
18
|
runMigrations,
|
|
18
19
|
setSchemaVersion
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VYKW7FMV.js";
|
|
20
21
|
import {
|
|
21
22
|
AnthropicEmbeddingProvider,
|
|
22
23
|
CachedEmbeddingProvider,
|
|
@@ -26,17 +27,17 @@ import {
|
|
|
26
27
|
deserializeEmbedding,
|
|
27
28
|
hashText,
|
|
28
29
|
serializeEmbedding
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HEDJCLA6.js";
|
|
30
31
|
import "./chunk-VFA7QMCZ.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-C4NKJT2Z.js";
|
|
32
33
|
import "./chunk-XQUHC3JZ.js";
|
|
33
34
|
import "./chunk-R4YSJ4EY.js";
|
|
34
35
|
import "./chunk-EYWNOHMJ.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-NQ6FZKCE.js";
|
|
36
37
|
import {
|
|
37
38
|
TaskStore,
|
|
38
39
|
getTaskStore
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4L66JHQE.js";
|
|
40
41
|
import "./chunk-3RG5ZIWI.js";
|
|
41
42
|
export {
|
|
42
43
|
AnthropicEmbeddingProvider,
|
|
@@ -63,6 +64,7 @@ export {
|
|
|
63
64
|
getTaskStore,
|
|
64
65
|
hashText,
|
|
65
66
|
initializeMemory,
|
|
67
|
+
parseTemporalIntent,
|
|
66
68
|
runMigrations,
|
|
67
69
|
serializeEmbedding,
|
|
68
70
|
setSchemaVersion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
consolidateOldMemoryFiles,
|
|
3
|
+
saveSessionMemory
|
|
4
|
+
} from "./chunk-W25Z7CM6.js";
|
|
5
|
+
import "./chunk-3UFPFWYP.js";
|
|
6
|
+
import "./chunk-J73TA3UM.js";
|
|
7
|
+
import "./chunk-YOSUPUAJ.js";
|
|
8
|
+
import "./chunk-LC4TV3KL.js";
|
|
9
|
+
import "./chunk-C4NKJT2Z.js";
|
|
10
|
+
import "./chunk-XQUHC3JZ.js";
|
|
11
|
+
import "./chunk-R4YSJ4EY.js";
|
|
12
|
+
import "./chunk-EYWNOHMJ.js";
|
|
13
|
+
import "./chunk-NQ6FZKCE.js";
|
|
14
|
+
import "./chunk-3RG5ZIWI.js";
|
|
15
|
+
export {
|
|
16
|
+
consolidateOldMemoryFiles,
|
|
17
|
+
saveSessionMemory
|
|
18
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VYKW7FMV.js";
|
|
4
|
+
import "./chunk-HEDJCLA6.js";
|
|
5
5
|
import "./chunk-VFA7QMCZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-C4NKJT2Z.js";
|
|
7
7
|
import "./chunk-XQUHC3JZ.js";
|
|
8
8
|
import "./chunk-R4YSJ4EY.js";
|
|
9
9
|
import {
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from "./chunk-EYWNOHMJ.js";
|
|
12
12
|
import {
|
|
13
13
|
createLogger
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-NQ6FZKCE.js";
|
|
15
|
+
import "./chunk-4L66JHQE.js";
|
|
16
16
|
import "./chunk-3RG5ZIWI.js";
|
|
17
17
|
|
|
18
18
|
// src/session/migrate.ts
|