@kienha/anti-chaotic 1.0.1 → 1.0.2
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/bin/ag.js +6 -11
- package/package.json +2 -2
package/bin/ag.js
CHANGED
|
@@ -5,8 +5,6 @@ const fs = require("fs-extra");
|
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const chalk = require("chalk");
|
|
7
7
|
|
|
8
|
-
const tiged = require("tiged");
|
|
9
|
-
|
|
10
8
|
program.version("0.0.1").description("Anti-Chaotic Agent Kit CLI");
|
|
11
9
|
|
|
12
10
|
const REPO_URI = "kienhaminh/anti-chaotic/.agent";
|
|
@@ -22,13 +20,12 @@ program
|
|
|
22
20
|
console.log(chalk.blue("Initializing Anti-Chaotic Agent Kit..."));
|
|
23
21
|
console.log(chalk.yellow(`Fetching from GitHub: ${REPO_URI}...`));
|
|
24
22
|
|
|
25
|
-
const
|
|
26
|
-
|
|
23
|
+
const { downloadTemplate } = await import("giget");
|
|
24
|
+
await downloadTemplate(`github:${REPO_URI}`, {
|
|
25
|
+
dir: targetAgentDir,
|
|
27
26
|
force: true,
|
|
28
|
-
mode: "git",
|
|
29
27
|
});
|
|
30
28
|
|
|
31
|
-
await emitter.clone(targetAgentDir);
|
|
32
29
|
console.log(
|
|
33
30
|
chalk.green("✔ Successfully installed Anti-Chaotic Agent Kit."),
|
|
34
31
|
);
|
|
@@ -50,14 +47,12 @@ program
|
|
|
50
47
|
chalk.blue(`Updating Anti-Chaotic Agent Kit from ${REPO_URI}...`),
|
|
51
48
|
);
|
|
52
49
|
|
|
53
|
-
const
|
|
54
|
-
|
|
50
|
+
const { downloadTemplate } = await import("giget");
|
|
51
|
+
await downloadTemplate(`github:${REPO_URI}`, {
|
|
52
|
+
dir: targetAgentDir,
|
|
55
53
|
force: true,
|
|
56
|
-
mode: "git",
|
|
57
54
|
});
|
|
58
55
|
|
|
59
|
-
await emitter.clone(targetAgentDir);
|
|
60
|
-
|
|
61
56
|
console.log(chalk.green("✔ Successfully updated .agent from GitHub."));
|
|
62
57
|
console.log(chalk.dim(` Location: ${targetAgentDir}`));
|
|
63
58
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kienha/anti-chaotic",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Anti-Chaotic - An agent kit for Antigravity to standardize the software development process",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"commander": "^14.0.2",
|
|
39
39
|
"fs-extra": "^11.3.3",
|
|
40
|
-
"
|
|
40
|
+
"giget": "^2.0.0"
|
|
41
41
|
}
|
|
42
42
|
}
|