@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.
Files changed (71) hide show
  1. package/.prettierignore +1 -0
  2. package/.turbo/turbo-build.log +4 -0
  3. package/.turbo/turbo-format.log +6 -0
  4. package/.turbo/turbo-lint.log +4 -0
  5. package/.turbo/turbo-test.log +21 -0
  6. package/.turbo/turbo-typecheck.log +4 -0
  7. package/LICENSE +21 -0
  8. package/dist/catalog/facets/architecture.d.ts +2 -0
  9. package/dist/catalog/facets/architecture.js +424 -0
  10. package/dist/catalog/facets/backpressure.d.ts +2 -0
  11. package/dist/catalog/facets/backpressure.js +123 -0
  12. package/dist/catalog/facets/practices.d.ts +2 -0
  13. package/dist/catalog/facets/practices.js +163 -0
  14. package/dist/catalog/facets/process.d.ts +2 -0
  15. package/dist/catalog/facets/process.js +47 -0
  16. package/dist/catalog/index.d.ts +14 -0
  17. package/dist/catalog/index.js +71 -0
  18. package/dist/config.d.ts +5 -0
  19. package/dist/config.js +29 -0
  20. package/dist/index.d.ts +12 -0
  21. package/dist/index.js +6 -0
  22. package/dist/registry.d.ts +7 -0
  23. package/dist/registry.js +41 -0
  24. package/dist/resolver.d.ts +7 -0
  25. package/dist/resolver.js +142 -0
  26. package/dist/types.d.ts +110 -0
  27. package/dist/types.js +2 -0
  28. package/dist/writers/git-hooks.d.ts +2 -0
  29. package/dist/writers/git-hooks.js +7 -0
  30. package/dist/writers/instruction.d.ts +2 -0
  31. package/dist/writers/instruction.js +6 -0
  32. package/dist/writers/knowledge.d.ts +2 -0
  33. package/dist/writers/knowledge.js +9 -0
  34. package/dist/writers/setup-note.d.ts +2 -0
  35. package/dist/writers/setup-note.js +7 -0
  36. package/dist/writers/skills.d.ts +2 -0
  37. package/dist/writers/skills.js +7 -0
  38. package/dist/writers/workflows.d.ts +2 -0
  39. package/dist/writers/workflows.js +16 -0
  40. package/eslint.config.mjs +40 -0
  41. package/nodemon.json +7 -0
  42. package/package.json +34 -0
  43. package/src/catalog/catalog.spec.ts +531 -0
  44. package/src/catalog/facets/architecture.ts +438 -0
  45. package/src/catalog/facets/backpressure.ts +143 -0
  46. package/src/catalog/facets/practices.ts +173 -0
  47. package/src/catalog/facets/process.ts +50 -0
  48. package/src/catalog/index.ts +86 -0
  49. package/src/config.spec.ts +165 -0
  50. package/src/config.ts +39 -0
  51. package/src/index.ts +49 -0
  52. package/src/registry.spec.ts +144 -0
  53. package/src/registry.ts +68 -0
  54. package/src/resolver.spec.ts +581 -0
  55. package/src/resolver.ts +170 -0
  56. package/src/types.ts +151 -0
  57. package/src/writers/git-hooks.ts +9 -0
  58. package/src/writers/instruction.spec.ts +42 -0
  59. package/src/writers/instruction.ts +8 -0
  60. package/src/writers/knowledge.spec.ts +26 -0
  61. package/src/writers/knowledge.ts +15 -0
  62. package/src/writers/setup-note.ts +9 -0
  63. package/src/writers/skills.spec.ts +109 -0
  64. package/src/writers/skills.ts +9 -0
  65. package/src/writers/workflows.spec.ts +72 -0
  66. package/src/writers/workflows.ts +26 -0
  67. package/tsconfig.build.json +8 -0
  68. package/tsconfig.json +7 -0
  69. package/tsconfig.tsbuildinfo +1 -0
  70. package/tsconfig.vitest.json +7 -0
  71. package/vitest.config.ts +5 -0
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ // --- Catalog types ---
2
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const gitHooksWriter: ProvisionWriterDef;
@@ -0,0 +1,7 @@
1
+ export const gitHooksWriter = {
2
+ id: "git-hooks",
3
+ async write(config) {
4
+ const { hooks } = config;
5
+ return { git_hooks: hooks };
6
+ }
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const instructionWriter: ProvisionWriterDef;
@@ -0,0 +1,6 @@
1
+ export const instructionWriter = {
2
+ id: "instruction",
3
+ async write(config) {
4
+ return { instructions: [config.text] };
5
+ }
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const knowledgeWriter: ProvisionWriterDef;
@@ -0,0 +1,9 @@
1
+ export const knowledgeWriter = {
2
+ id: "knowledge",
3
+ async write(config) {
4
+ const { name, origin, description } = config;
5
+ return {
6
+ knowledge_sources: [{ name, origin, description }]
7
+ };
8
+ }
9
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const setupNoteWriter: ProvisionWriterDef;
@@ -0,0 +1,7 @@
1
+ export const setupNoteWriter = {
2
+ id: "setup-note",
3
+ async write(config) {
4
+ const { text } = config;
5
+ return { setup_notes: [text] };
6
+ }
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const skillsWriter: ProvisionWriterDef;
@@ -0,0 +1,7 @@
1
+ export const skillsWriter = {
2
+ id: "skills",
3
+ async write(config) {
4
+ const { skills } = config;
5
+ return { skills };
6
+ }
7
+ };
@@ -0,0 +1,2 @@
1
+ import type { ProvisionWriterDef } from "../types.js";
2
+ export declare const workflowsWriter: ProvisionWriterDef;
@@ -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
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/nodemon.json",
3
+ "watch": ["./src/**", "./node_modules/@mme/**/dist/**"],
4
+ "ignoreRoot": [],
5
+ "ext": "ts,js",
6
+ "exec": "pnpm typecheck && pnpm build"
7
+ }
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
+ }