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.
- package/README.md +109 -71
- package/bin/heraspec.js +1866 -89
- package/bin/heraspec.js.map +4 -4
- package/dist/cli/index.d.ts +2 -0
- package/dist/commands/audit.d.ts +37 -0
- package/dist/commands/create.d.ts +12 -0
- package/dist/commands/explore.d.ts +17 -0
- package/dist/commands/helper.d.ts +13 -0
- package/dist/commands/hotfix.d.ts +9 -0
- package/dist/commands/make-code.d.ts +14 -0
- package/dist/commands/make-docs.d.ts +36 -0
- package/dist/commands/make-test.d.ts +60 -0
- package/dist/commands/memory.d.ts +101 -0
- package/dist/commands/pack.d.ts +17 -0
- package/dist/commands/show.d.ts +8 -0
- package/dist/commands/skill.d.ts +8 -0
- package/dist/commands/suggest.d.ts +32 -0
- package/dist/commands/validate.d.ts +8 -0
- package/dist/core/archive.d.ts +14 -0
- package/dist/core/config.d.ts +33 -0
- package/dist/core/init.d.ts +101 -0
- package/dist/core/list.d.ts +7 -0
- package/dist/core/memory/config-advisor.d.ts +30 -0
- package/dist/core/memory/context-config.d.ts +14 -0
- package/dist/core/memory/context-generator.d.ts +19 -0
- package/dist/core/memory/index.d.ts +12 -0
- package/dist/core/memory/memory-schema.d.ts +34 -0
- package/dist/core/memory/memory-search.d.ts +45 -0
- package/dist/core/memory/memory-store.d.ts +71 -0
- package/dist/core/memory/memory-types.d.ts +159 -0
- package/dist/core/memory/memory-vector.d.ts +23 -0
- package/dist/core/parsers/code-parser.d.ts +53 -0
- package/dist/core/parsers/markdown-parser.d.ts +18 -0
- package/dist/core/restore.d.ts +9 -0
- package/dist/core/schemas/base.schema.d.ts +58 -0
- package/dist/core/schemas/change.schema.d.ts +35 -0
- package/dist/core/schemas/index.d.ts +7 -0
- package/dist/core/schemas/spec.schema.d.ts +52 -0
- package/dist/core/skills/index.d.ts +6 -0
- package/dist/core/skills/skill-manager.d.ts +28 -0
- package/dist/core/skills/skill-parser.d.ts +24 -0
- package/dist/core/sync.d.ts +6 -0
- package/dist/core/templates/index.d.ts +10 -0
- package/dist/core/templates/skills/README.md +4 -1
- package/dist/core/templates/skills/content-channel/content-compliance/skill.md +83 -0
- package/dist/core/templates/skills/content-channel/content-prompts/skill.md +74 -0
- package/dist/core/templates/skills/content-channel/content-scaffolding/skill.md +82 -0
- package/dist/core/templates/skills/content-channel/content-scripting/skill.md +147 -0
- package/dist/core/templates/skills/content-channel/content-strategy/skill.md +78 -0
- package/dist/core/templates/skills/content-channel/content-vault-sync/skill.md +74 -0
- package/dist/core/templates/skills/content-channel/content-voice-adapter/skill.md +143 -0
- package/dist/core/templates/skills/content-channel/skill.md +127 -0
- package/dist/core/templates/skills/perfex-module/code-quality-guidelines/skill.md +130 -0
- package/dist/core/templates/skills/perfex-module/envato-review-guidelines/skill.md +132 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/scripts/scaffold-module.js +151 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/skill.md +204 -110
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/Test_Module.php +79 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/controller-admin.php +71 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/controller-api.php +58 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/deploy.ps1 +97 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/helper.php +97 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/install.php +30 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/model-main.php +94 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/module-main.php +91 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/package.json +30 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/uninstall.php +11 -0
- package/dist/core/templates/skills/perfex-module/module-codebase/templates/webpack.config.js +163 -0
- package/dist/core/templates/skills/perfex-module/skill.md +50 -0
- package/dist/core/templates/skills-template-map.d.ts +29 -0
- package/dist/core/validation/validator.d.ts +26 -0
- package/dist/core/view.d.ts +4 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +383 -50
- package/dist/utils/file-system.d.ts +19 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/task-parser.d.ts +26 -0
- 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,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.
|
|
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",
|