heraspec 0.1.15 → 0.1.17

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 (77) hide show
  1. package/README.md +109 -71
  2. package/bin/heraspec.js +1866 -89
  3. package/bin/heraspec.js.map +4 -4
  4. package/dist/cli/index.d.ts +2 -0
  5. package/dist/commands/audit.d.ts +37 -0
  6. package/dist/commands/create.d.ts +12 -0
  7. package/dist/commands/explore.d.ts +17 -0
  8. package/dist/commands/helper.d.ts +13 -0
  9. package/dist/commands/hotfix.d.ts +9 -0
  10. package/dist/commands/make-code.d.ts +14 -0
  11. package/dist/commands/make-docs.d.ts +36 -0
  12. package/dist/commands/make-test.d.ts +60 -0
  13. package/dist/commands/memory.d.ts +101 -0
  14. package/dist/commands/pack.d.ts +17 -0
  15. package/dist/commands/show.d.ts +8 -0
  16. package/dist/commands/skill.d.ts +8 -0
  17. package/dist/commands/suggest.d.ts +32 -0
  18. package/dist/commands/validate.d.ts +8 -0
  19. package/dist/core/archive.d.ts +14 -0
  20. package/dist/core/config.d.ts +33 -0
  21. package/dist/core/init.d.ts +101 -0
  22. package/dist/core/list.d.ts +7 -0
  23. package/dist/core/memory/config-advisor.d.ts +30 -0
  24. package/dist/core/memory/context-config.d.ts +14 -0
  25. package/dist/core/memory/context-generator.d.ts +19 -0
  26. package/dist/core/memory/index.d.ts +12 -0
  27. package/dist/core/memory/memory-schema.d.ts +34 -0
  28. package/dist/core/memory/memory-search.d.ts +45 -0
  29. package/dist/core/memory/memory-store.d.ts +71 -0
  30. package/dist/core/memory/memory-types.d.ts +159 -0
  31. package/dist/core/memory/memory-vector.d.ts +23 -0
  32. package/dist/core/parsers/code-parser.d.ts +53 -0
  33. package/dist/core/parsers/markdown-parser.d.ts +18 -0
  34. package/dist/core/restore.d.ts +9 -0
  35. package/dist/core/schemas/base.schema.d.ts +58 -0
  36. package/dist/core/schemas/change.schema.d.ts +35 -0
  37. package/dist/core/schemas/index.d.ts +7 -0
  38. package/dist/core/schemas/spec.schema.d.ts +52 -0
  39. package/dist/core/skills/index.d.ts +6 -0
  40. package/dist/core/skills/skill-manager.d.ts +28 -0
  41. package/dist/core/skills/skill-parser.d.ts +24 -0
  42. package/dist/core/sync.d.ts +6 -0
  43. package/dist/core/templates/index.d.ts +10 -0
  44. package/dist/core/templates/skills/README.md +4 -1
  45. package/dist/core/templates/skills/content-channel/content-compliance/skill.md +83 -0
  46. package/dist/core/templates/skills/content-channel/content-prompts/skill.md +74 -0
  47. package/dist/core/templates/skills/content-channel/content-scaffolding/skill.md +82 -0
  48. package/dist/core/templates/skills/content-channel/content-scripting/skill.md +147 -0
  49. package/dist/core/templates/skills/content-channel/content-strategy/skill.md +78 -0
  50. package/dist/core/templates/skills/content-channel/content-vault-sync/skill.md +74 -0
  51. package/dist/core/templates/skills/content-channel/content-voice-adapter/skill.md +143 -0
  52. package/dist/core/templates/skills/content-channel/skill.md +127 -0
  53. package/dist/core/templates/skills/perfex-module/code-quality-guidelines/skill.md +130 -0
  54. package/dist/core/templates/skills/perfex-module/envato-review-guidelines/skill.md +132 -0
  55. package/dist/core/templates/skills/perfex-module/module-codebase/scripts/scaffold-module.js +151 -0
  56. package/dist/core/templates/skills/perfex-module/module-codebase/skill.md +204 -110
  57. package/dist/core/templates/skills/perfex-module/module-codebase/templates/Test_Module.php +79 -0
  58. package/dist/core/templates/skills/perfex-module/module-codebase/templates/controller-admin.php +71 -0
  59. package/dist/core/templates/skills/perfex-module/module-codebase/templates/controller-api.php +58 -0
  60. package/dist/core/templates/skills/perfex-module/module-codebase/templates/deploy.ps1 +97 -0
  61. package/dist/core/templates/skills/perfex-module/module-codebase/templates/helper.php +97 -0
  62. package/dist/core/templates/skills/perfex-module/module-codebase/templates/install.php +30 -0
  63. package/dist/core/templates/skills/perfex-module/module-codebase/templates/model-main.php +94 -0
  64. package/dist/core/templates/skills/perfex-module/module-codebase/templates/module-main.php +91 -0
  65. package/dist/core/templates/skills/perfex-module/module-codebase/templates/package.json +30 -0
  66. package/dist/core/templates/skills/perfex-module/module-codebase/templates/uninstall.php +11 -0
  67. package/dist/core/templates/skills/perfex-module/module-codebase/templates/webpack.config.js +163 -0
  68. package/dist/core/templates/skills/perfex-module/skill.md +50 -0
  69. package/dist/core/templates/skills-template-map.d.ts +29 -0
  70. package/dist/core/validation/validator.d.ts +26 -0
  71. package/dist/core/view.d.ts +4 -0
  72. package/dist/index.d.ts +11 -0
  73. package/dist/index.js +383 -50
  74. package/dist/utils/file-system.d.ts +19 -0
  75. package/dist/utils/index.d.ts +6 -0
  76. package/dist/utils/task-parser.d.ts +26 -0
  77. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ export declare class FileSystemUtils {
2
+ static createDirectory(dirPath: string): Promise<void>;
3
+ static fileExists(filePath: string): Promise<boolean>;
4
+ static readFile(filePath: string): Promise<string>;
5
+ static writeFile(filePath: string, content: string): Promise<void>;
6
+ static readDirectory(dirPath: string): Promise<string[]>;
7
+ static stat(filePath: string): Promise<import("fs").Stats>;
8
+ static copyFile(src: string, dest: string): Promise<void>;
9
+ static copyDirectory(src: string, dest: string): Promise<void>;
10
+ static removeFile(filePath: string): Promise<void>;
11
+ static removeDirectory(dirPath: string, recursive?: boolean): Promise<void>;
12
+ static moveFile(src: string, dest: string): Promise<void>;
13
+ static joinPath(...segments: string[]): string;
14
+ static resolvePath(...segments: string[]): string;
15
+ static getDirectoryName(filePath: string): string;
16
+ static getBaseName(filePath: string): string;
17
+ static generateTree(dirPath: string, maxDepth?: number, ignoreDirs?: string[], currentDepth?: number, prefix?: string): Promise<string>;
18
+ }
19
+ //# sourceMappingURL=file-system.d.ts.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Utility exports
3
+ */
4
+ export * from './file-system.js';
5
+ export * from './task-parser.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,26 @@
1
+ export interface TaskGroup {
2
+ title: string;
3
+ projectType?: string;
4
+ skill?: string;
5
+ tasks: Array<{
6
+ id: string;
7
+ description: string;
8
+ completed: boolean;
9
+ }>;
10
+ }
11
+ export interface ParsedTasks {
12
+ groups: TaskGroup[];
13
+ skillsUsed: Array<{
14
+ projectType?: string;
15
+ skill: string;
16
+ }>;
17
+ }
18
+ export declare class TaskParser {
19
+ static parseTasks(filePath: string): ParsedTasks;
20
+ static getSkillsForTasks(filePath: string): Promise<Array<{
21
+ projectType?: string;
22
+ skill: string;
23
+ path: string;
24
+ }>>;
25
+ }
26
+ //# sourceMappingURL=task-parser.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heraspec",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Universal spec-first development framework + CLI for all project types and AI tools",
5
5
  "keywords": [
6
6
  "heraspec",
@@ -47,7 +47,7 @@
47
47
  "!dist/**/*.map"
48
48
  ],
49
49
  "scripts": {
50
- "build": "node build.js",
50
+ "build": "node build.js && tsc --emitDeclarationOnly",
51
51
  "dev": "tsc --watch",
52
52
  "dev:cli": "npm run build && node bin/heraspec.js",
53
53
  "test": "echo \"Error: no test specified\" && exit 1",