hyouji 0.0.16 → 0.0.17
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 +3 -0
- package/dist/index.js +15 -12
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Hyouji(表示) GitHub Label Manager
|
|
2
2
|
|
|
3
|
+
<img width="2816" height="1536" alt="hyouji_generated_image" src="https://github.com/user-attachments/assets/636382d1-a718-4289-81d7-2943f1962ce8" />
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
### article
|
|
4
7
|
|
|
5
8
|
https://levelup.gitconnected.com/create-github-labels-from-terminal-158d4868fab
|
package/dist/index.js
CHANGED
|
@@ -428,7 +428,13 @@ const deleteLabels = async (configs2) => {
|
|
|
428
428
|
log$4(chalk.bgBlueBright(extraGuideText));
|
|
429
429
|
return { deleted, failed };
|
|
430
430
|
};
|
|
431
|
-
|
|
431
|
+
class CryptoUtils {
|
|
432
|
+
static {
|
|
433
|
+
this.ALGORITHM = "aes-256-cbc";
|
|
434
|
+
}
|
|
435
|
+
static {
|
|
436
|
+
this.ENCODING = "hex";
|
|
437
|
+
}
|
|
432
438
|
/**
|
|
433
439
|
* Generate a machine-specific key based on system information
|
|
434
440
|
* This provides basic obfuscation without requiring user passwords
|
|
@@ -507,10 +513,7 @@ const _CryptoUtils = class _CryptoUtils {
|
|
|
507
513
|
const middle = "*".repeat(Math.min(token.length - 8, 20));
|
|
508
514
|
return `${start}${middle}${end}`;
|
|
509
515
|
}
|
|
510
|
-
}
|
|
511
|
-
_CryptoUtils.ALGORITHM = "aes-256-cbc";
|
|
512
|
-
_CryptoUtils.ENCODING = "hex";
|
|
513
|
-
let CryptoUtils = _CryptoUtils;
|
|
516
|
+
}
|
|
514
517
|
class ConfigError extends Error {
|
|
515
518
|
constructor(type, message, originalError) {
|
|
516
519
|
super(message);
|
|
@@ -1348,7 +1351,10 @@ const getTargetLabel = async () => {
|
|
|
1348
1351
|
return [response.name];
|
|
1349
1352
|
};
|
|
1350
1353
|
const GIT_COMMAND_TIMEOUT_MS = 5e3;
|
|
1351
|
-
|
|
1354
|
+
class GitRepositoryDetector {
|
|
1355
|
+
static {
|
|
1356
|
+
this.execAsyncInternal = promisify(exec);
|
|
1357
|
+
}
|
|
1352
1358
|
/**
|
|
1353
1359
|
* Overrides the internal execAsync function for testing purposes.
|
|
1354
1360
|
* @param mock - The mock function to use for execAsync.
|
|
@@ -1544,11 +1550,8 @@ const _GitRepositoryDetector = class _GitRepositoryDetector {
|
|
|
1544
1550
|
return { remotes: [] };
|
|
1545
1551
|
}
|
|
1546
1552
|
}
|
|
1547
|
-
}
|
|
1548
|
-
_GitRepositoryDetector.execAsyncInternal = promisify(exec);
|
|
1549
|
-
let GitRepositoryDetector = _GitRepositoryDetector;
|
|
1553
|
+
}
|
|
1550
1554
|
const getGitHubConfigs = async () => {
|
|
1551
|
-
var _a, _b;
|
|
1552
1555
|
const configManager2 = new ConfigManager();
|
|
1553
1556
|
let validationResult = {
|
|
1554
1557
|
config: null,
|
|
@@ -1632,7 +1635,7 @@ const getGitHubConfigs = async () => {
|
|
|
1632
1635
|
};
|
|
1633
1636
|
}
|
|
1634
1637
|
const promptConfig = [...githubConfigs];
|
|
1635
|
-
if (
|
|
1638
|
+
if (validationResult.preservedData?.owner) {
|
|
1636
1639
|
const ownerPromptIndex = promptConfig.findIndex(
|
|
1637
1640
|
(prompt) => prompt.name === "owner"
|
|
1638
1641
|
);
|
|
@@ -1652,7 +1655,7 @@ const getGitHubConfigs = async () => {
|
|
|
1652
1655
|
owner: response.owner,
|
|
1653
1656
|
lastUpdated: (/* @__PURE__ */ new Date()).toISOString()
|
|
1654
1657
|
});
|
|
1655
|
-
if (
|
|
1658
|
+
if (validationResult.preservedData?.owner && validationResult.preservedData.owner !== response.owner) {
|
|
1656
1659
|
console.log("✓ Configuration updated with new credentials");
|
|
1657
1660
|
} else {
|
|
1658
1661
|
console.log("✓ Configuration saved successfully");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyouji",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Hyouji (表示) — A command-line tool for organizing and displaying GitHub labels with clarity and harmony.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "koji <baxin1919@gmail.com>",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"表示",
|
|
25
25
|
"Hyouji(表示)",
|
|
26
26
|
"JSON",
|
|
27
|
-
"yaml"
|
|
28
|
-
"yml"
|
|
27
|
+
"yaml"
|
|
29
28
|
],
|
|
30
29
|
"scripts": {
|
|
31
30
|
"start": "node dist/index.js",
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
"prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish"
|
|
54
53
|
},
|
|
55
54
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
55
|
+
"node": ">=22.22.0"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
58
|
"@octokit/core": "^7.0.6",
|
|
@@ -63,14 +62,14 @@
|
|
|
63
62
|
"yaml": "^2.8.1"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
|
-
"@biomejs/biome": "2.3.
|
|
65
|
+
"@biomejs/biome": "2.3.11",
|
|
67
66
|
"@types/node": "^24.10.0",
|
|
68
|
-
"@vitest/coverage-v8": "^4.0.
|
|
69
|
-
"@vitest/ui": "^4.0.
|
|
67
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
68
|
+
"@vitest/ui": "^4.0.17",
|
|
70
69
|
"standard-version": "^9.5.0",
|
|
71
70
|
"typescript": "^5.9.3",
|
|
72
|
-
"vite": "^7.
|
|
73
|
-
"vitest": "^4.0.
|
|
71
|
+
"vite": "^7.3.1",
|
|
72
|
+
"vitest": "^4.0.17"
|
|
74
73
|
},
|
|
75
74
|
"files": [
|
|
76
75
|
"dist/**/*",
|