From 24c78b048f0f479e0e58c7697ea4f0e75ad37801 Mon Sep 17 00:00:00 2001 From: daydreamer-json Date: Thu, 22 Jan 2026 19:15:05 +0900 Subject: [PATCH] Update README --- .gitignore | 2 +- README.md | 19 +++++++++++++++++++ src/cmd.ts | 3 ++- src/utils/config.ts | 7 ------- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 50368f6..b1b921b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -config +config/config.yaml # dependencies (bun install) node_modules diff --git a/README.md b/README.md index 83c1d0b..49fbe94 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ # ak-endfield-api-archive +Monitor changes to responses from various Arknights Endfield APIs and record them in this repository. + +Updates are checked hourly and automatically pushed via GitHub Actions. +API outputs are stored in the [`output`](/output/) directory. + +The APIs currently being monitored are as follows: +- Launcher + - Get latest game + - Get latest game resources + - Get latest launcher + +## Disclaimer + +This project has no affiliation with Hypergryph and was created solely for private use, educational, and research purposes. + +I assume no responsibility whatsoever. Please use it at your own risk. + +--- + This project was created using `bun init` in bun v1.3.5. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime. diff --git a/src/cmd.ts b/src/cmd.ts index b35d09d..7119d99 100644 --- a/src/cmd.ts +++ b/src/cmd.ts @@ -1,3 +1,4 @@ +import path from 'node:path'; import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import cmds from './cmds.js'; @@ -33,7 +34,7 @@ async function parseCommand() { 'output-dir': { alias: ['o'], desc: 'Output root directory', - default: appConfig.file.outputDirPath, + default: path.resolve('output'), normalize: true, type: 'string', }, diff --git a/src/utils/config.ts b/src/utils/config.ts index b5e1c4b..770b914 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -1,4 +1,3 @@ -import path from 'node:path'; import deepmerge from 'deepmerge'; import YAML from 'yaml'; // import * as TypesGameEntry from '../types/GameEntry.js'; @@ -13,9 +12,6 @@ type AllRequired = Required<{ type ConfigType = AllRequired< Freeze<{ - file: { - outputDirPath: string; - }; network: { api: { akEndfield: { @@ -56,9 +52,6 @@ type ConfigType = AllRequired< >; const initialConfig: ConfigType = { - file: { - outputDirPath: path.resolve('output'), - }, network: { api: { akEndfield: {