feat: update deno libries

This commit is contained in:
2026-01-13 00:24:30 +08:00
parent b8efe22886
commit 843f4da86b
2 changed files with 21 additions and 4 deletions

View File

@@ -1,14 +1,15 @@
import { import {
decodeBase64Url, decodeBase64Url,
encodeBase64Url, encodeBase64Url,
getHomeDirOrDie,
hexStringToUint8Array, hexStringToUint8Array,
resolveFilename,
} from "https://global.hatter.ink/script/get/@9/deno-commons-mod.ts"; } from "https://global.hatter.ink/script/get/@9/deno-commons-mod.ts";
import {getRandomValues} from "node:crypto"; import {getRandomValues} from "node:crypto";
import {assertEquals} from "jsr:@std/assert"; import {assertEquals} from "jsr:@std/assert";
const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = getHomeDirOrDie() + const COMMONS_LOCAL_ENCRYPT_TINY_ENCRYPT_MASTER_KEY_FILE = resolveFilename(
"/.cache/commons-local-encrypt-tiny-encrypt-master-key"; "~/.cache/commons-local-encrypt-tiny-encrypt-master-key",
);
interface TinyEncryptSimpleDecryptObject { interface TinyEncryptSimpleDecryptObject {
code: number; code: number;

View File

@@ -3,7 +3,23 @@
const PYTHON_CONFIG_FILE = "~/.config/python-config.json"; const PYTHON_CONFIG_FILE = "~/.config/python-config.json";
interface PythonConfig { interface PythonConfig {
// TODO default_version?: string;
default_profile?: string;
python_venv_base_path?: string;
versions: Map<string, PythonVersion>;
profiles?: Map<string, PythonVenv>;
}
interface PythonVersion {
version: string;
path: string;
comment?: string;
}
interface PythonVenv {
version: string;
path: string;
comment?: string;
} }
async function main() { async function main() {