chore: 1.0.1 release

This commit is contained in:
binaryify
2026-08-06 12:36:09 +08:00
parent 37d2272f55
commit 4fca104a44
7 changed files with 191 additions and 14 deletions
+11
View File
@@ -8,9 +8,19 @@ import { fileURLToPath } from "node:url";
import { startEditorServer } from "../lib/editor-server.js";
const SKILL_NAME = "open-kimi-ppt";
const MIN_NODE_MAJOR = 18;
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const sourceDirectory = join(packageRoot, "skills", SKILL_NAME);
function assertNodeVersion() {
const major = Number.parseInt(process.versions.node.split(".")[0], 10);
if (!Number.isInteger(major) || major < MIN_NODE_MAJOR) {
throw new Error(
`Node.js ${MIN_NODE_MAJOR}+ is required; found ${process.version}. Install from https://nodejs.org`,
);
}
}
function printHelp(command) {
if (command === "serve") {
console.log(`Start the local PPTD editor and exporter.
@@ -138,6 +148,7 @@ function installSkill({ force, target }) {
}
async function main() {
assertNodeVersion();
const options = parseArguments(process.argv.slice(2));
if (options.help) {
printHelp(options.command);