@codemcp/ade-core 0.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/.prettierignore +1 -0
- package/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-format.log +6 -0
- package/.turbo/turbo-lint.log +4 -0
- package/.turbo/turbo-test.log +21 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/LICENSE +21 -0
- package/dist/catalog/facets/architecture.d.ts +2 -0
- package/dist/catalog/facets/architecture.js +424 -0
- package/dist/catalog/facets/backpressure.d.ts +2 -0
- package/dist/catalog/facets/backpressure.js +123 -0
- package/dist/catalog/facets/practices.d.ts +2 -0
- package/dist/catalog/facets/practices.js +163 -0
- package/dist/catalog/facets/process.d.ts +2 -0
- package/dist/catalog/facets/process.js +47 -0
- package/dist/catalog/index.d.ts +14 -0
- package/dist/catalog/index.js +71 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +29 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -0
- package/dist/registry.d.ts +7 -0
- package/dist/registry.js +41 -0
- package/dist/resolver.d.ts +7 -0
- package/dist/resolver.js +142 -0
- package/dist/types.d.ts +110 -0
- package/dist/types.js +2 -0
- package/dist/writers/git-hooks.d.ts +2 -0
- package/dist/writers/git-hooks.js +7 -0
- package/dist/writers/instruction.d.ts +2 -0
- package/dist/writers/instruction.js +6 -0
- package/dist/writers/knowledge.d.ts +2 -0
- package/dist/writers/knowledge.js +9 -0
- package/dist/writers/setup-note.d.ts +2 -0
- package/dist/writers/setup-note.js +7 -0
- package/dist/writers/skills.d.ts +2 -0
- package/dist/writers/skills.js +7 -0
- package/dist/writers/workflows.d.ts +2 -0
- package/dist/writers/workflows.js +16 -0
- package/eslint.config.mjs +40 -0
- package/nodemon.json +7 -0
- package/package.json +34 -0
- package/src/catalog/catalog.spec.ts +531 -0
- package/src/catalog/facets/architecture.ts +438 -0
- package/src/catalog/facets/backpressure.ts +143 -0
- package/src/catalog/facets/practices.ts +173 -0
- package/src/catalog/facets/process.ts +50 -0
- package/src/catalog/index.ts +86 -0
- package/src/config.spec.ts +165 -0
- package/src/config.ts +39 -0
- package/src/index.ts +49 -0
- package/src/registry.spec.ts +144 -0
- package/src/registry.ts +68 -0
- package/src/resolver.spec.ts +581 -0
- package/src/resolver.ts +170 -0
- package/src/types.ts +151 -0
- package/src/writers/git-hooks.ts +9 -0
- package/src/writers/instruction.spec.ts +42 -0
- package/src/writers/instruction.ts +8 -0
- package/src/writers/knowledge.spec.ts +26 -0
- package/src/writers/knowledge.ts +15 -0
- package/src/writers/setup-note.ts +9 -0
- package/src/writers/skills.spec.ts +109 -0
- package/src/writers/skills.ts +9 -0
- package/src/writers/workflows.spec.ts +72 -0
- package/src/writers/workflows.ts +26 -0
- package/tsconfig.build.json +8 -0
- package/tsconfig.json +7 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsconfig.vitest.json +7 -0
- package/vitest.config.ts +5 -0
package/dist/types.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const workflowsWriter = {
|
|
2
|
+
id: "workflows",
|
|
3
|
+
async write(config) {
|
|
4
|
+
const { package: pkg, ref, env } = config;
|
|
5
|
+
return {
|
|
6
|
+
mcp_servers: [
|
|
7
|
+
{
|
|
8
|
+
ref: ref ?? pkg,
|
|
9
|
+
command: "npx",
|
|
10
|
+
args: [pkg],
|
|
11
|
+
env: env ?? {}
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import { parser, configs } from "typescript-eslint";
|
|
3
|
+
import prettier from "eslint-config-prettier";
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
js.configs.recommended,
|
|
7
|
+
...configs.recommended,
|
|
8
|
+
prettier,
|
|
9
|
+
{
|
|
10
|
+
// Config for TypeScript files
|
|
11
|
+
files: ["**/*.{ts,tsx}"],
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parser,
|
|
14
|
+
parserOptions: {
|
|
15
|
+
project: ["./tsconfig.json", "./tsconfig.vitest.json"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
// Config for JavaScript files - no TypeScript parsing
|
|
21
|
+
files: ["**/*.{js,jsx}"],
|
|
22
|
+
...js.configs.recommended
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
// Relaxed rules for test files
|
|
26
|
+
files: ["**/*.test.ts", "**/*.spec.ts"],
|
|
27
|
+
rules: {
|
|
28
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
29
|
+
"@typescript-eslint/no-unused-vars": "off"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
ignores: [
|
|
34
|
+
"**/node_modules/**",
|
|
35
|
+
"**/dist/**",
|
|
36
|
+
".pnpm-store/**",
|
|
37
|
+
"pnpm-lock.yaml"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
];
|
package/nodemon.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemcp/ade-core",
|
|
3
|
+
"main": "dist/index.js",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
11
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
12
|
+
"eslint": "^9.18.0",
|
|
13
|
+
"eslint-config-prettier": "^10.0.1",
|
|
14
|
+
"prettier": "^3.4.2",
|
|
15
|
+
"rimraf": "^6.0.1",
|
|
16
|
+
"typescript": "^5.7.3"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"yaml": "^2.8.2"
|
|
20
|
+
},
|
|
21
|
+
"version": "0.0.2",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.build.json",
|
|
24
|
+
"clean:build": "rimraf ./dist",
|
|
25
|
+
"dev": "nodemon",
|
|
26
|
+
"lint": "eslint .",
|
|
27
|
+
"lint:fix": "eslint --fix .",
|
|
28
|
+
"format": "prettier --check .",
|
|
29
|
+
"format:fix": "prettier --write .",
|
|
30
|
+
"test": "vitest --run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"typecheck": "tsc"
|
|
33
|
+
}
|
|
34
|
+
}
|