From 843f4da86b52a21632148b2a45564672c03687d2 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Tue, 13 Jan 2026 00:24:30 +0800 Subject: [PATCH] feat: update deno libries --- libraries/deno-teencrypt-mod.ts | 7 ++++--- python-ts/main.ts | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libraries/deno-teencrypt-mod.ts b/libraries/deno-teencrypt-mod.ts index 5b5ed97..8f687e1 100644 --- a/libraries/deno-teencrypt-mod.ts +++ b/libraries/deno-teencrypt-mod.ts @@ -1,14 +1,15 @@ import { decodeBase64Url, encodeBase64Url, - getHomeDirOrDie, hexStringToUint8Array, + resolveFilename, } from "https://global.hatter.ink/script/get/@9/deno-commons-mod.ts"; import {getRandomValues} from "node:crypto"; import {assertEquals} from "jsr:@std/assert"; -const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = getHomeDirOrDie() + - "/.cache/commons-local-encrypt-tiny-encrypt-master-key"; +const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = resolveFilename( + "~/.cache/commons-local-encrypt-tiny-encrypt-master-key", +); interface TinyEncryptSimpleDecryptObject { code: number; diff --git a/python-ts/main.ts b/python-ts/main.ts index e432cba..e7ec5fc 100644 --- a/python-ts/main.ts +++ b/python-ts/main.ts @@ -3,7 +3,23 @@ const PYTHON_CONFIG_FILE = "~/.config/python-config.json"; interface PythonConfig { - // TODO + default_version?: string; + default_profile?: string; + python_venv_base_path?: string; + versions: Map; + profiles?: Map; +} + +interface PythonVersion { + version: string; + path: string; + comment?: string; +} + +interface PythonVenv { + version: string; + path: string; + comment?: string; } async function main() {