deuk-agent-rule 1.0.13 → 2.2.1
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/CHANGELOG.md +139 -85
- package/README.ko.md +125 -106
- package/README.ko.pdf +0 -0
- package/README.md +123 -106
- package/bundle/.cursorrules +7 -0
- package/bundle/AGENTS.md +87 -96
- package/bundle/rules/delivery-and-parallel-work.mdc +26 -26
- package/bundle/rules/git-commit.mdc +18 -24
- package/bundle/rules/multi-ai-workflow.mdc +76 -26
- package/package.json +4 -3
- package/scripts/cli-args.mjs +43 -0
- package/scripts/cli-init-commands.mjs +65 -0
- package/scripts/cli-init-logic.mjs +21 -0
- package/scripts/cli-prompts.mjs +123 -0
- package/scripts/cli-ticket-commands.mjs +159 -0
- package/scripts/cli-ticket-logic.mjs +229 -0
- package/scripts/cli-utils.mjs +82 -0
- package/scripts/cli.mjs +110 -441
- package/scripts/merge-logic.mjs +365 -195
- package/scripts/sync-bundle.mjs +50 -44
- package/scripts/sync-oss.mjs +10 -9
package/scripts/sync-oss.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Populates ../DeukAgentRulesOSS for the public GitHub repo.
|
|
3
3
|
* Run: cd deuk-agent-rule && npm run sync:oss
|
|
4
4
|
*/
|
|
5
|
-
import { cpSync, existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
5
|
+
import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "fs";
|
|
6
6
|
import { dirname, join } from "path";
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ function gitBase() {
|
|
|
25
25
|
const base = gitBase();
|
|
26
26
|
const gitUrl = base.startsWith("http") ? "git+" + base + ".git" : base;
|
|
27
27
|
|
|
28
|
-
/**
|
|
28
|
+
/** Strip OSS package.json hooks not used in the public mirror. */
|
|
29
29
|
function stripOssVersionrcScripts(ossVersionrcPath) {
|
|
30
30
|
let t = readFileSync(ossVersionrcPath, "utf8").replace(/\r\n/g, "\n");
|
|
31
31
|
t = t.replace(/\n scripts:\s*\{\n[\s\S]*?\n \},\s*\n/, "\n");
|
|
@@ -39,13 +39,14 @@ cpSync(join(pkgRoot, "publish"), join(ossRoot, "publish"), { recursive: true, fo
|
|
|
39
39
|
if (existsSync(join(pkgRoot, ".github"))) {
|
|
40
40
|
cpSync(join(pkgRoot, ".github"), join(ossRoot, ".github"), { recursive: true, force: true });
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
42
|
+
|
|
43
|
+
// Modular CLI: Copy all runtime scripts, exclude internal sync tools
|
|
44
|
+
const scriptsDir = join(pkgRoot, "scripts");
|
|
45
|
+
for (const name of readdirSync(scriptsDir)) {
|
|
46
|
+
if (!name.endsWith(".mjs")) continue;
|
|
47
|
+
if (name === "sync-oss.mjs" || name === "sync-bundle.mjs") continue;
|
|
48
|
+
cpSync(join(scriptsDir, name), join(ossRoot, "scripts", name), { force: true });
|
|
49
|
+
}
|
|
49
50
|
|
|
50
51
|
if (!existsSync(ossPublic)) {
|
|
51
52
|
throw new Error("Missing oss-public/: " + ossPublic);
|