agent-rules-init 0.3.0 → 0.5.0
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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/cli.d.ts +39 -5
- package/dist/cli.js +242 -43
- package/dist/core/canonical-commands.d.ts +4 -0
- package/dist/core/canonical-commands.js +169 -0
- package/dist/core/config.d.ts +25 -0
- package/dist/core/config.js +125 -0
- package/dist/core/i18n.d.ts +20 -9
- package/dist/core/i18n.js +125 -40
- package/dist/core/llm-bridge.d.ts +20 -2
- package/dist/core/llm-bridge.js +161 -9
- package/dist/core/project-unit-output.d.ts +13 -0
- package/dist/core/project-unit-output.js +25 -0
- package/dist/core/project-units.d.ts +16 -0
- package/dist/core/project-units.js +95 -0
- package/dist/core/repo-facts.d.ts +10 -2
- package/dist/core/repo-facts.js +231 -11
- package/dist/core/scanner.js +128 -25
- package/dist/core/templates.js +99 -26
- package/dist/core/types.d.ts +54 -3
- package/dist/core/writer.js +6 -6
- package/dist/packs/cpp.js +3 -3
- package/dist/packs/csharp.js +3 -3
- package/dist/packs/dart.js +4 -4
- package/dist/packs/elixir.js +2 -2
- package/dist/packs/go.js +2 -2
- package/dist/packs/java.js +57 -11
- package/dist/packs/js-ts.js +126 -23
- package/dist/packs/kotlin.js +29 -9
- package/dist/packs/php.js +4 -4
- package/dist/packs/python.js +81 -16
- package/dist/packs/r.js +4 -4
- package/dist/packs/ruby.js +6 -6
- package/dist/packs/rust.js +2 -2
- package/dist/packs/scala.js +3 -3
- package/dist/packs/swift.js +2 -2
- package/package.json +6 -3
package/dist/packs/swift.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { refactorBody, reviewBody, runTestsConvention, summarySentence, testingBody,
|
|
1
|
+
import { refactorBody, reviewBody, runTestsConvention, summarySentence, testingBody, } from "../core/i18n.js";
|
|
2
2
|
function detect(signals) {
|
|
3
3
|
const source = signals.packageSwift;
|
|
4
4
|
if (!source)
|
|
@@ -52,7 +52,7 @@ function rules(detection, lang) {
|
|
|
52
52
|
}
|
|
53
53
|
function promptTemplates(detection, lang) {
|
|
54
54
|
const t = TEXTS[lang];
|
|
55
|
-
const framework = detection.framework?.value !== "none" ? detection.framework
|
|
55
|
+
const framework = detection.framework?.value !== "none" ? detection.framework?.value : undefined;
|
|
56
56
|
return [
|
|
57
57
|
{ id: "review", title: "Code Review (Swift)", body: reviewBody(lang, t.reviewFocus, framework) },
|
|
58
58
|
{ id: "refactor", title: "Refactor (Swift)", body: refactorBody(lang) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-rules-init",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Generates CLAUDE.md, AGENTS.md, copilot-instructions.md and prompt files from what your repo actually is.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"agent-rules-init": "dist/bin.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
14
16
|
],
|
|
15
17
|
"repository": {
|
|
16
18
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/racama29/agent-rules-init.git",
|
|
19
|
+
"url": "git+https://github.com/racama29/agent-rules-init.git",
|
|
18
20
|
"directory": "packages/cli"
|
|
19
21
|
},
|
|
20
22
|
"homepage": "https://github.com/racama29/agent-rules-init#readme",
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
"yaml": "^2.9.0"
|
|
44
46
|
},
|
|
45
47
|
"devDependencies": {
|
|
48
|
+
"@types/node": "^18.19.130",
|
|
46
49
|
"typescript": "^5.6.0",
|
|
47
50
|
"vitest": "^2.1.0"
|
|
48
51
|
}
|