Skip to content

Commit

Permalink
Merge pull request #7 from newfold-labs/sitegen
Browse files Browse the repository at this point in the history
add all api wrappers for generating content
  • Loading branch information
amartya-dev authored Nov 17, 2023
2 parents 728d5dd + 09c7784 commit 623eaab
Show file tree
Hide file tree
Showing 6 changed files with 622 additions and 117 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
.idea/
node_modules/
.vscode/
8 changes: 5 additions & 3 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ function () {

if ( ! defined( 'NFD_AI_SERVICE_BASE' ) ) {
define( 'NFD_AI_SERVICE_BASE', 'https://hiive.cloud/workers/ai-proxy/v1/' );
define( 'NFD_AI_BASE', 'https://hiive.cloud/workers/ai-proxy/' );
define( 'NFD_PATTERNS_BASE', 'https://patterns.hiive.cloud/' );
define( 'NFD_SITEGEN_OPTION', 'nfd-ai-site-gen' );
}

register(
[
array(
'name' => 'ai',
'label' => __( 'ai', 'newfold-ai-module' ),
'callback' => function ( Container $container ) {
return new AI( $container );
},
'isActive' => true,
'isHidden' => true,
]
)
);

}
);

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"newfold-labs/wp-module-data": "^2.3.1"
},
"require-dev": {
"newfold-labs/wp-php-standards": "@stable"
"newfold-labs/wp-php-standards": "^1.2"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 623eaab

Please sign in to comment.