@uniswap/ai-toolkit-nx-claude 0.5.30-next.1 → 0.5.30-next.3

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 (31) hide show
  1. package/README.md +28 -27
  2. package/dist/cli-generator.cjs +4 -10
  3. package/dist/generators/addons/CLAUDE.md +91 -91
  4. package/dist/generators/addons/generator.cjs +13 -338
  5. package/dist/generators/addons/schema.json +1 -32
  6. package/dist/index.cjs +25 -1180
  7. package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts +1 -2
  8. package/dist/packages/ai-toolkit-nx-claude/src/cli-generator.d.ts.map +1 -1
  9. package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/addon-registry.d.ts.map +1 -1
  10. package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/aws-log-analyzer-setup.d.ts.map +1 -1
  11. package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/generator.d.ts.map +1 -1
  12. package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts +0 -1
  13. package/dist/packages/ai-toolkit-nx-claude/src/index.d.ts.map +1 -1
  14. package/generators.json +0 -5
  15. package/package.json +2 -3
  16. package/dist/generators/hooks/CLAUDE.md +0 -378
  17. package/dist/generators/hooks/README.md +0 -220
  18. package/dist/generators/hooks/generator.cjs +0 -1265
  19. package/dist/generators/hooks/schema.json +0 -41
  20. package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/spec-workflow-setup.d.ts +0 -52
  21. package/dist/packages/ai-toolkit-nx-claude/src/generators/addons/spec-workflow-setup.d.ts.map +0 -1
  22. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/cli-parser.d.ts +0 -2
  23. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/cli-parser.d.ts.map +0 -1
  24. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/dependency-checker.d.ts +0 -46
  25. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/dependency-checker.d.ts.map +0 -1
  26. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/generator.d.ts +0 -9
  27. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/generator.d.ts.map +0 -1
  28. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/install-orchestrator.d.ts +0 -55
  29. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/install-orchestrator.d.ts.map +0 -1
  30. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/repo-manager.d.ts +0 -63
  31. package/dist/packages/ai-toolkit-nx-claude/src/generators/hooks/repo-manager.d.ts.map +0 -1
@@ -1,41 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "Hooks",
4
- "title": "Install Claude Code notification hooks",
5
- "type": "object",
6
- "properties": {
7
- "backup": {
8
- "type": "boolean",
9
- "description": "Backup existing hooks configuration before installation",
10
- "default": true,
11
- "prompt-message": "💾 Backup existing hooks configuration (if any)?",
12
- "prompt-type": "confirm"
13
- },
14
- "dry": {
15
- "type": "boolean",
16
- "description": "Preview installation without making changes",
17
- "default": false,
18
- "prompt-message": "👁️ Run in dry-run mode (preview only)?",
19
- "prompt-type": "confirm"
20
- },
21
- "verbose": {
22
- "type": "boolean",
23
- "description": "Show detailed output during installation",
24
- "default": false,
25
- "prompt-message": "📝 Show verbose output during installation?",
26
- "prompt-type": "confirm"
27
- },
28
- "force": {
29
- "type": "boolean",
30
- "description": "Skip confirmation prompts and overwrite existing configuration",
31
- "default": false
32
- },
33
- "installMode": {
34
- "type": "string",
35
- "description": "Installation mode from parent generator (default or custom). When set to 'default', skips all prompts and uses defaults.",
36
- "enum": ["default", "custom"],
37
- "hidden": true
38
- }
39
- },
40
- "required": []
41
- }
@@ -1,52 +0,0 @@
1
- import type { AddonsGeneratorSchema } from './schema';
2
- /**
3
- * Result of the setup operation
4
- */
5
- export interface SetupResult {
6
- success: boolean;
7
- message: string;
8
- projectPath: string;
9
- createdFiles?: string[];
10
- }
11
- /**
12
- * Result of cloning a repository
13
- */
14
- interface CloneResult {
15
- success: boolean;
16
- message: string;
17
- clonePath?: string;
18
- error?: string;
19
- }
20
- /**
21
- * Result of copying configuration files
22
- */
23
- interface CopyResult {
24
- success: boolean;
25
- message: string;
26
- copiedFiles?: string[];
27
- error?: string;
28
- }
29
- /**
30
- * Setup spec-workflow in an existing project
31
- */
32
- export declare function setupSpecWorkflow(projectPath: string, options: AddonsGeneratorSchema & {
33
- dryRun?: boolean;
34
- }): Promise<SetupResult>;
35
- /**
36
- * Clone a git repository to a specified directory
37
- */
38
- export declare function cloneRepository(repositoryUrl: string, targetDir: string): Promise<CloneResult>;
39
- /**
40
- * Update .gitignore file to include a pattern if not already present
41
- */
42
- export declare function updateGitignore(projectPath: string, pattern: string): Promise<{
43
- success: boolean;
44
- message: string;
45
- }>;
46
- /**
47
- * Copy configuration files from source to target directory
48
- * This will overwrite existing files but preserve any additional files in the target
49
- */
50
- export declare function copyConfigFiles(sourceDir: string, targetDir: string): Promise<CopyResult>;
51
- export {};
52
- //# sourceMappingURL=spec-workflow-setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec-workflow-setup.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/addons/spec-workflow-setup.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,UAAU,WAAW;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,UAAU,UAAU;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,qBAAqB,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GACpD,OAAO,CAAC,WAAW,CAAC,CAyGtB;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,CAgDtB;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CA8ChD;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAwDrB"}
@@ -1,2 +0,0 @@
1
- export { getExplicitlyProvidedOptions, isNxDryRunProvided, isNxNoInteractiveProvided, } from '../../utils/cli-parser';
2
- //# sourceMappingURL=cli-parser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli-parser.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/hooks/cli-parser.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Interface for dependency status information
3
- */
4
- export interface DependencyStatus {
5
- hasNode: boolean;
6
- nodeVersion?: string;
7
- hasNpm: boolean;
8
- npmVersion?: string;
9
- hasGit: boolean;
10
- gitVersion?: string;
11
- missingDependencies: string[];
12
- }
13
- /**
14
- * Check all required dependencies for the hooks generator
15
- * @returns Structured dependency status
16
- */
17
- export declare function checkDependencies(): DependencyStatus;
18
- /**
19
- * Log dependency status to the console
20
- * @param status The dependency status to log
21
- */
22
- export declare function logDependencyStatus(status: DependencyStatus): void;
23
- /**
24
- * Check if all required dependencies are installed
25
- * @param status The dependency status to check
26
- * @returns true if all dependencies are installed, false otherwise
27
- */
28
- export declare function hasAllDependencies(status: DependencyStatus): boolean;
29
- /**
30
- * Get installation instructions for missing dependencies
31
- * @param missingDeps Array of missing dependency names
32
- * @returns Installation instructions string
33
- */
34
- export declare function getInstallInstructions(missingDeps: string[]): string;
35
- /**
36
- * Validate that required dependencies meet minimum version requirements
37
- * @param status The dependency status to validate
38
- * @returns true if all version requirements are met, false otherwise
39
- */
40
- export declare function validateVersions(status: DependencyStatus): boolean;
41
- /**
42
- * Main function to check and validate all dependencies
43
- * @returns true if all dependencies are satisfied, false otherwise
44
- */
45
- export declare function checkAndValidateDependencies(): Promise<boolean>;
46
- //# sourceMappingURL=dependency-checker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependency-checker.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/hooks/dependency-checker.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAwCD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,gBAAgB,CAiCpD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAoBlE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAEpE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,CAwBpE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAmDlE;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC,CAwBrE"}
@@ -1,9 +0,0 @@
1
- import type { Tree } from '@nx/devkit';
2
- import type { HooksGeneratorSchema } from './schema';
3
- /**
4
- * Main generator function for installing Claude Code hooks
5
- * Sets up notification system for user input alerts
6
- */
7
- export declare function hooksGenerator(tree: Tree, options: HooksGeneratorSchema): Promise<void>;
8
- export default hooksGenerator;
9
- //# sourceMappingURL=generator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/hooks/generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAWrD;;;GAGG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CA6Jf;AAED,eAAe,cAAc,CAAC"}
@@ -1,55 +0,0 @@
1
- /**
2
- * Installation options for notification hooks
3
- */
4
- export interface InstallOptions {
5
- backupExisting: boolean;
6
- verbose: boolean;
7
- dryRun?: boolean;
8
- }
9
- /**
10
- * Installation result information
11
- */
12
- export interface InstallResult {
13
- success: boolean;
14
- installedPath: string;
15
- backupPath?: string;
16
- error?: string;
17
- installedFiles?: string[];
18
- }
19
- /**
20
- * Backup existing hooks configuration
21
- * @param verbose Show detailed output
22
- * @returns Backup path if successful, null otherwise
23
- */
24
- export declare function backupExistingHooks(verbose?: boolean): string | null;
25
- /**
26
- * Execute the install-global.sh script with user options
27
- * @param scriptPath Path to the install script
28
- * @param options Installation options
29
- * @returns Promise that resolves when installation completes
30
- */
31
- export declare function executeInstallScript(scriptPath: string, options: InstallOptions): Promise<boolean>;
32
- /**
33
- * Verify the installation was successful
34
- * @returns Array of installed files or null if verification fails
35
- */
36
- export declare function verifyInstallation(): string[] | null;
37
- /**
38
- * Main installation orchestrator
39
- * @param repoPath Path to the cloned repository
40
- * @param options Installation options
41
- * @returns Installation result
42
- */
43
- export declare function runInstallation(repoPath: string, options: InstallOptions): Promise<InstallResult>;
44
- /**
45
- * Restore hooks from backup
46
- * @param backupPath Path to the backup directory
47
- * @returns true if successful
48
- */
49
- export declare function restoreBackup(backupPath: string): Promise<boolean>;
50
- /**
51
- * Test the installed hooks
52
- * @returns true if test successful
53
- */
54
- export declare function testHooks(): Promise<boolean>;
55
- //# sourceMappingURL=install-orchestrator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install-orchestrator.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/hooks/install-orchestrator.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAKD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,UAAQ,GAAG,MAAM,GAAG,IAAI,CAqClE;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,OAAO,CAAC,CAiDlB;AA6ED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,GAAG,IAAI,CAwCpD;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,CAkExB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA0BxE;AAED;;;GAGG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAmClD"}
@@ -1,63 +0,0 @@
1
- /**
2
- * Interface for repository status
3
- */
4
- export interface RepoStatus {
5
- exists: boolean;
6
- path: string;
7
- isGitRepo: boolean;
8
- currentBranch?: string;
9
- lastCommit?: string;
10
- isDirty?: boolean;
11
- remoteUrl?: string;
12
- }
13
- /**
14
- * Get the temporary directory path for cloning the repository
15
- * @param customPath Optional custom path
16
- * @returns Path to the repository directory
17
- */
18
- export declare function getRepoPath(customPath?: string): string;
19
- /**
20
- * Get the status of the repository
21
- * @param repoPath Path to check
22
- * @returns Repository status information
23
- */
24
- export declare function getRepoStatus(repoPath: string): RepoStatus;
25
- /**
26
- * Clone the notification hooks repository
27
- * @param repoUrl Repository URL to clone
28
- * @param targetPath Target directory path
29
- * @param verbose Show detailed output
30
- * @returns true if successful
31
- */
32
- export declare function cloneRepository(repoUrl?: string, targetPath?: string, verbose?: boolean): Promise<boolean>;
33
- /**
34
- * Update the repository to the latest version
35
- * @param repoPath Path to the repository
36
- * @param verbose Show detailed output
37
- * @returns true if successful
38
- */
39
- export declare function updateRepository(repoPath: string, verbose?: boolean): Promise<boolean>;
40
- /**
41
- * Get the latest version/tag of the repository
42
- * @param repoPath Path to the repository
43
- * @returns Latest version string or undefined
44
- */
45
- export declare function getLatestVersion(repoPath: string): string | undefined;
46
- /**
47
- * Clean up the repository directory
48
- * @param repoPath Path to the repository
49
- * @returns true if successful
50
- */
51
- export declare function cleanupRepository(repoPath: string): boolean;
52
- /**
53
- * Ensure the repository is available and up-to-date
54
- * @param options Configuration options
55
- * @returns Repository path if successful, null otherwise
56
- */
57
- export declare function ensureRepository(options: {
58
- repoUrl?: string;
59
- targetPath?: string;
60
- update?: boolean;
61
- verbose?: boolean;
62
- }): Promise<string | null>;
63
- //# sourceMappingURL=repo-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"repo-manager.d.ts","sourceRoot":"","sources":["../../../../../../src/generators/hooks/repo-manager.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAKvD;AA0FD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAkB1D;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,OAAO,GAAE,MAAyB,EAClC,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,UAAQ,GACd,OAAO,CAAC,OAAO,CAAC,CAoDlB;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,UAAQ,GACd,OAAO,CAAC,OAAO,CAAC,CAsClB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAiBrE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAY3D;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAwDzB"}