Changeset 3186772
- Timestamp:
- 11/12/2024 10:34:02 PM (17 months ago)
- Location:
- agentwp
- Files:
-
- 30 added
- 42 deleted
- 50 edited
- 1 copied
-
tags/1.3.0 (copied) (copied from agentwp/trunk)
-
tags/1.3.0/agentwp.php (modified) (4 diffs)
-
tags/1.3.0/autoload.php (added)
-
tags/1.3.0/build/assets/Chat-3a9ab25d.js (added)
-
tags/1.3.0/build/assets/Chat-3a9ab25d.js.map (added)
-
tags/1.3.0/build/assets/Chat-cf61fd9c.js (deleted)
-
tags/1.3.0/build/assets/Chat-cf61fd9c.js.map (deleted)
-
tags/1.3.0/build/assets/ClientSettingsProvider-1165ae1b.js (deleted)
-
tags/1.3.0/build/assets/ClientSettingsProvider-1165ae1b.js.map (deleted)
-
tags/1.3.0/build/assets/ClientSettingsProvider-daa02826.js (added)
-
tags/1.3.0/build/assets/ClientSettingsProvider-daa02826.js.map (added)
-
tags/1.3.0/build/assets/LatestConvos-5ae524e7.js (added)
-
tags/1.3.0/build/assets/LatestConvos-5ae524e7.js.map (added)
-
tags/1.3.0/build/assets/LatestConvos-fedbffd9.js (deleted)
-
tags/1.3.0/build/assets/LatestConvos-fedbffd9.js.map (deleted)
-
tags/1.3.0/build/assets/app-0d6e0444.css (added)
-
tags/1.3.0/build/assets/app-8df1dc47.css (deleted)
-
tags/1.3.0/build/assets/chat-32237a72.js (added)
-
tags/1.3.0/build/assets/chat-32237a72.js.map (added)
-
tags/1.3.0/build/assets/chat-9c443414.js (deleted)
-
tags/1.3.0/build/assets/chat-9c443414.js.map (deleted)
-
tags/1.3.0/build/assets/dashboardWidget-141ae2a7.js (deleted)
-
tags/1.3.0/build/assets/dashboardWidget-141ae2a7.js.map (deleted)
-
tags/1.3.0/build/assets/dashboardWidget-329f6361.js (added)
-
tags/1.3.0/build/assets/dashboardWidget-329f6361.js.map (added)
-
tags/1.3.0/build/assets/settings-047c0461.js (added)
-
tags/1.3.0/build/assets/settings-047c0461.js.map (added)
-
tags/1.3.0/build/assets/settings-cc05d060.js (deleted)
-
tags/1.3.0/build/assets/settings-cc05d060.js.map (deleted)
-
tags/1.3.0/build/manifest.json (modified) (6 diffs)
-
tags/1.3.0/readme.txt (modified) (1 diff)
-
tags/1.3.0/server/Client/Locations/Dashboard.php (modified) (1 diff)
-
tags/1.3.0/server/Client/ReactClient.php (modified) (2 diffs)
-
tags/1.3.0/server/Http/Controllers/AwpApi.php (modified) (2 diffs)
-
tags/1.3.0/server/Http/Controllers/MakeMeAManager.php (modified) (1 diff)
-
tags/1.3.0/server/Http/Controllers/TestResponse.php (modified) (2 diffs)
-
tags/1.3.0/server/Http/Controllers/UserController.php (modified) (1 diff)
-
tags/1.3.0/server/Http/HttpRequest.php (modified) (2 diffs)
-
tags/1.3.0/server/Http/WpAwpClient.php (modified) (2 diffs)
-
tags/1.3.0/server/Main.php (modified) (4 diffs)
-
tags/1.3.0/server/Modules/AwpClient/Client.php (modified) (4 diffs)
-
tags/1.3.0/server/Modules/AwpClient/ClientResponse.php (added)
-
tags/1.3.0/server/Page/Admin/DashboardWidget.php (modified) (1 diff)
-
tags/1.3.0/server/Page/Admin/Settings.php (modified) (2 diffs)
-
tags/1.3.0/server/Registry/IndexSiteData.php (modified) (2 diffs)
-
tags/1.3.0/server/Registry/IndexSiteDocs.php (modified) (1 diff)
-
tags/1.3.0/server/Registry/Router.php (modified) (1 diff)
-
tags/1.3.0/server/Services/AccountSettings.php (deleted)
-
tags/1.3.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_files.php (deleted)
-
tags/1.3.0/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/1.3.0/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.3.0/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.3.0/vendor/composer/installed.json (modified) (1 diff)
-
tags/1.3.0/vendor/composer/installed.php (modified) (3 diffs)
-
tags/1.3.0/vendor/composer/platform_check.php (deleted)
-
tags/1.3.0/vendor/guzzlehttp (deleted)
-
tags/1.3.0/vendor/psr (deleted)
-
tags/1.3.0/vendor/ralouphie (deleted)
-
tags/1.3.0/vendor/symfony (deleted)
-
tags/1.3.0/vendor/yahnis-elsts (deleted)
-
trunk/agentwp.php (modified) (4 diffs)
-
trunk/autoload.php (added)
-
trunk/build/assets/Chat-3a9ab25d.js (added)
-
trunk/build/assets/Chat-3a9ab25d.js.map (added)
-
trunk/build/assets/Chat-cf61fd9c.js (deleted)
-
trunk/build/assets/Chat-cf61fd9c.js.map (deleted)
-
trunk/build/assets/ClientSettingsProvider-1165ae1b.js (deleted)
-
trunk/build/assets/ClientSettingsProvider-1165ae1b.js.map (deleted)
-
trunk/build/assets/ClientSettingsProvider-daa02826.js (added)
-
trunk/build/assets/ClientSettingsProvider-daa02826.js.map (added)
-
trunk/build/assets/LatestConvos-5ae524e7.js (added)
-
trunk/build/assets/LatestConvos-5ae524e7.js.map (added)
-
trunk/build/assets/LatestConvos-fedbffd9.js (deleted)
-
trunk/build/assets/LatestConvos-fedbffd9.js.map (deleted)
-
trunk/build/assets/app-0d6e0444.css (added)
-
trunk/build/assets/app-8df1dc47.css (deleted)
-
trunk/build/assets/chat-32237a72.js (added)
-
trunk/build/assets/chat-32237a72.js.map (added)
-
trunk/build/assets/chat-9c443414.js (deleted)
-
trunk/build/assets/chat-9c443414.js.map (deleted)
-
trunk/build/assets/dashboardWidget-141ae2a7.js (deleted)
-
trunk/build/assets/dashboardWidget-141ae2a7.js.map (deleted)
-
trunk/build/assets/dashboardWidget-329f6361.js (added)
-
trunk/build/assets/dashboardWidget-329f6361.js.map (added)
-
trunk/build/assets/settings-047c0461.js (added)
-
trunk/build/assets/settings-047c0461.js.map (added)
-
trunk/build/assets/settings-cc05d060.js (deleted)
-
trunk/build/assets/settings-cc05d060.js.map (deleted)
-
trunk/build/manifest.json (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/server/Client/Locations/Dashboard.php (modified) (1 diff)
-
trunk/server/Client/ReactClient.php (modified) (2 diffs)
-
trunk/server/Http/Controllers/AwpApi.php (modified) (2 diffs)
-
trunk/server/Http/Controllers/MakeMeAManager.php (modified) (1 diff)
-
trunk/server/Http/Controllers/TestResponse.php (modified) (2 diffs)
-
trunk/server/Http/Controllers/UserController.php (modified) (1 diff)
-
trunk/server/Http/HttpRequest.php (modified) (2 diffs)
-
trunk/server/Http/WpAwpClient.php (modified) (2 diffs)
-
trunk/server/Main.php (modified) (4 diffs)
-
trunk/server/Modules/AwpClient/Client.php (modified) (4 diffs)
-
trunk/server/Modules/AwpClient/ClientResponse.php (added)
-
trunk/server/Page/Admin/DashboardWidget.php (modified) (1 diff)
-
trunk/server/Page/Admin/Settings.php (modified) (2 diffs)
-
trunk/server/Registry/IndexSiteData.php (modified) (2 diffs)
-
trunk/server/Registry/IndexSiteDocs.php (modified) (1 diff)
-
trunk/server/Registry/Router.php (modified) (1 diff)
-
trunk/server/Services/AccountSettings.php (deleted)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_files.php (deleted)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/composer/platform_check.php (deleted)
-
trunk/vendor/guzzlehttp (deleted)
-
trunk/vendor/psr (deleted)
-
trunk/vendor/ralouphie (deleted)
-
trunk/vendor/symfony (deleted)
-
trunk/vendor/yahnis-elsts (deleted)
Legend:
- Unmodified
- Added
- Removed
-
agentwp/tags/1.3.0/agentwp.php
r3182786 r3186772 5 5 * Plugin URI: https://agentwp.com 6 6 * Description: Adds a AI Agent to your WordPress installation. 7 * Version: 1. 2.17 * Version: 1.3.0 8 8 * Author: WPAI Inc. 9 9 * Author URI: https://wpai.co … … 17 17 defined('ABSPATH') || exit; 18 18 19 require_once __DIR__.'/vendor/autoload.php'; 20 21 use YahnisElsts\PluginUpdateChecker\v5\PucFactory; 22 23 $awpPrivateRepo = PucFactory::buildUpdateChecker( 24 'https://github.com/wpai-inc/agentwp/', 25 __FILE__, 26 'agentwp' 27 ); 28 $awpPrivateRepo->getVcsApi()->enableReleaseAssets(); 29 $awpPrivateRepo->setBranch('main'); 19 require_once __DIR__.'/autoload.php'; 30 20 31 21 register_activation_hook(__FILE__, 'agentwp_boot_plugin'); … … 48 38 \WpAi\AgentWp\Page\Admin\Chat::class, 49 39 // \WpAi\AgentWp\Page\Frontend\Chat::class, 50 \WpAi\AgentWp\Page\Admin\DashboardWidget::class,51 40 \WpAi\AgentWp\Registry\IndexSiteData::class, 52 41 \WpAi\AgentWp\Registry\IndexSiteSummary::class, … … 56 45 \WpAi\AgentWp\Registry\WpUser::class, 57 46 ]); 47 48 add_action('current_screen', function () use ($registry) { 49 $registry->register([ 50 \WpAi\AgentWp\Page\Admin\DashboardWidget::class, 51 ]); 52 }); 58 53 } -
agentwp/tags/1.3.0/build/manifest.json
r3182786 r3186772 2 2 "Page/Admin/Chat/Index.tsx": { 3 3 "css": [ 4 "assets/app- 8df1dc47.css"4 "assets/app-0d6e0444.css" 5 5 ], 6 "file": "assets/chat- 9c443414.js",6 "file": "assets/chat-32237a72.js", 7 7 "imports": [ 8 "_ClientSettingsProvider- 1165ae1b.js",9 "_Chat- cf61fd9c.js",8 "_ClientSettingsProvider-daa02826.js", 9 "_Chat-3a9ab25d.js", 10 10 "__commonjsHelpers-725317a4.js", 11 11 "_WriteToEditor-63b22c42.js" … … 16 16 "Page/Admin/DashboardWidget/Index.tsx": { 17 17 "css": [ 18 "assets/app- 8df1dc47.css"18 "assets/app-0d6e0444.css" 19 19 ], 20 "file": "assets/dashboardWidget- 141ae2a7.js",20 "file": "assets/dashboardWidget-329f6361.js", 21 21 "imports": [ 22 "_ClientSettingsProvider- 1165ae1b.js",23 "_LatestConvos- fedbffd9.js",22 "_ClientSettingsProvider-daa02826.js", 23 "_LatestConvos-5ae524e7.js", 24 24 "__commonjsHelpers-725317a4.js" 25 25 ], … … 29 29 "Page/Admin/Settings/Index.tsx": { 30 30 "css": [ 31 "assets/app- 8df1dc47.css"31 "assets/app-0d6e0444.css" 32 32 ], 33 "file": "assets/settings- cc05d060.js",33 "file": "assets/settings-047c0461.js", 34 34 "imports": [ 35 "_ClientSettingsProvider- 1165ae1b.js",36 "_Chat- cf61fd9c.js",37 "_LatestConvos- fedbffd9.js",35 "_ClientSettingsProvider-daa02826.js", 36 "_Chat-3a9ab25d.js", 37 "_LatestConvos-5ae524e7.js", 38 38 "__commonjsHelpers-725317a4.js", 39 39 "_WriteToEditor-63b22c42.js" … … 51 51 "src": "Tests/test-blocks-streaming.ts" 52 52 }, 53 "_Chat- cf61fd9c.js": {53 "_Chat-3a9ab25d.js": { 54 54 "assets": [ 55 55 "assets/wpcode-fa5b4e95.png", … … 62 62 "assets/codeable-c7263c7b.png" 63 63 ], 64 "file": "assets/Chat- cf61fd9c.js",64 "file": "assets/Chat-3a9ab25d.js", 65 65 "imports": [ 66 "_ClientSettingsProvider- 1165ae1b.js",66 "_ClientSettingsProvider-daa02826.js", 67 67 "__commonjsHelpers-725317a4.js", 68 68 "_WriteToEditor-63b22c42.js" 69 69 ] 70 70 }, 71 "_ClientSettingsProvider- 1165ae1b.js": {72 "file": "assets/ClientSettingsProvider- 1165ae1b.js",71 "_ClientSettingsProvider-daa02826.js": { 72 "file": "assets/ClientSettingsProvider-daa02826.js", 73 73 "imports": [ 74 74 "__commonjsHelpers-725317a4.js" 75 75 ] 76 76 }, 77 "_LatestConvos- fedbffd9.js": {78 "file": "assets/LatestConvos- fedbffd9.js",77 "_LatestConvos-5ae524e7.js": { 78 "file": "assets/LatestConvos-5ae524e7.js", 79 79 "imports": [ 80 "_ClientSettingsProvider- 1165ae1b.js"80 "_ClientSettingsProvider-daa02826.js" 81 81 ] 82 82 }, … … 99 99 }, 100 100 "assets/styles/app.css": { 101 "file": "assets/app- 8df1dc47.css",101 "file": "assets/app-0d6e0444.css", 102 102 "isEntry": true, 103 103 "src": "assets/styles/app.css" -
agentwp/tags/1.3.0/readme.txt
r3182786 r3186772 3 3 Tags: ai, agent, chatbot 4 4 Requires at least: 6.4 5 Tested up to: 6. 66 Stable tag: 1. 2.15 Tested up to: 6.7 6 Stable tag: 1.3.0 7 7 Requires PHP: 7.4 8 8 License: GPLv3 -
agentwp/tags/1.3.0/server/Client/Locations/Dashboard.php
r3174903 r3186772 17 17 public function active(): bool 18 18 { 19 if (! isset($_SERVER['REQUEST_URI'])) {19 if (! function_exists('get_current_screen')) { 20 20 return false; 21 21 } 22 22 23 /** 24 * @todo: bad method, this should be hooked into the right hook so that 25 * get_current_screen() can be used. 26 */ 27 $requestUri = sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])); 28 $dashboardPage = strpos($requestUri, '/wp-admin/index.php') !== false; 23 $screen = get_current_screen(); 24 if (! $screen || ! isset($screen->id) || $screen->id !== 'dashboard') { 25 return false; 26 } 29 27 30 return is_admin() && $this->client->main->auth()->hasAccess() && $dashboardPage;28 return is_admin() && $this->client->main->auth()->hasAccess(); 31 29 } 32 30 -
agentwp/tags/1.3.0/server/Client/ReactClient.php
r3178174 r3186772 137 137 <?php 138 138 } else { 139 $user_settings = $this->main->client()->user() ;139 $user_settings = $this->main->client()->user()->get(); 140 140 $isOwner = $user_settings['user']['email'] === wp_get_current_user()->user_email; 141 141 $managers = $this->main->auth->managers(); … … 262 262 'user' => $current_user, 263 263 'api_host' => $this->main->apiClientHost(), 264 'account_settings' => $this->main->accountSettings() ->get(),264 'account_settings' => $this->main->accountSettings(), 265 265 'general_settings' => $this->main->settings->getGeneralSettings(), 266 266 'agentwp_manager' => $access_token ? $this->main->auth->isManager() : false, -
agentwp/tags/1.3.0/server/Http/Controllers/AwpApi.php
r3174903 r3186772 17 17 unset($params['endpoint']); 18 18 19 return $this->main->client()->$endpoint($params) ;19 return $this->main->client()->$endpoint($params)->get(); 20 20 } 21 21 22 22 public function createRequest() 23 23 { 24 $response = $this->main->client()->convoCreate($this->handleMentions($this->request->toArray())); 24 $response = $this->main->client()->convoCreate( 25 $this->handleMentions($this->request->toArray()) 26 )->get(); 25 27 26 28 if (\is_wp_error($response)) { … … 35 37 public function retryRequest() 36 38 { 37 $response = $this->main->client()->requestRetry($this->request->toArray()) ;39 $response = $this->main->client()->requestRetry($this->request->toArray())->get(); 38 40 39 41 $response['access_token'] = $this->main->getAccessToken(); -
agentwp/tags/1.3.0/server/Http/Controllers/MakeMeAManager.php
r3178174 r3186772 9 9 public function __invoke(): void 10 10 { 11 $user_settings = $this->main->client()->user() ;11 $user_settings = $this->main->client()->user()->get(); 12 12 $isOwner = $user_settings['user']['email'] === wp_get_current_user()->user_email; 13 13 -
agentwp/tags/1.3.0/server/Http/Controllers/TestResponse.php
r3174903 r3186772 2 2 3 3 namespace WpAi\AgentWp\Http\Controllers; 4 5 use GuzzleHttp\Client;6 4 7 5 class TestResponse extends BaseController … … 18 16 ]); 19 17 } 20 21 /**22 * Stream the response using Guzzle23 */24 public function stream()25 {26 // Set headers to make sure the response is treated as a stream27 header('Content-Type: text/event-stream');28 header('Cache-Control: no-cache');29 header('Connection: keep-alive');30 31 // Start output buffering to prevent sending incomplete chunks32 ob_start();33 34 // Create a Guzzle client instance35 $client = new Client;36 37 try {38 // Make a GET request to the external streaming endpoint39 $response = $client->request('GET', $this->main->client()->getApiBaseUri().'stream/test', [40 'headers' => [41 'Accept' => 'text/event-stream',42 ],43 'stream' => true,44 'timeout' => 30, // Adjust timeout as needed45 ]);46 47 // Get the body of the response as a stream48 $body = $response->getBody();49 50 // Loop over the stream and echo chunks to the client51 while (! $body->eof()) {52 echo esc_html($body->read(1024)); // Read in chunks of 1024 bytes and escape output53 54 // Flush the output buffer to send the data immediately55 ob_flush();56 flush();57 }58 } catch (\Exception $e) {59 // Handle errors appropriately60 echo 'Error: '.esc_html($e->getMessage());61 }62 63 // Finish output64 ob_end_flush();65 exit;66 }67 18 } -
agentwp/tags/1.3.0/server/Http/Controllers/UserController.php
r3174903 r3186772 12 12 'ip' => $this->request->getClientIp(), 13 13 'acceptance_url' => home_url(), 14 ]) ;14 ])->get(); 15 15 16 16 if (\is_wp_error($res)) { -
agentwp/tags/1.3.0/server/Http/HttpRequest.php
r3174903 r3186772 3 3 namespace WpAi\AgentWp\Http; 4 4 5 use Symfony\Component\HttpFoundation\Request;5 use WP_REST_Request; 6 6 7 7 class HttpRequest 8 8 { 9 private $theRequest;9 private WP_Rest_Request $request; 10 10 11 public function __construct() 11 private $content; 12 13 public function __construct(?WP_REST_Request $request = null) 12 14 { 13 $this->theRequest = Request::createFromGlobals(); 15 // If no WP_REST_Request is provided, we create one using the current request globals. 16 $this->request = $request ?: new WP_REST_Request($_SERVER['REQUEST_METHOD'] ?? null, $_SERVER['REQUEST_URI'] ?? null); 17 18 // Populate parameters for `GET` and `POST` (similar to Symfony's `createFromGlobals`). 19 $this->request->set_query_params($_GET); 20 $this->request->set_body_params($_POST); 21 $this->request->set_headers($this->headersFromGlobals($_SERVER)); 22 $this->request->set_body($this->getContent()); 23 } 24 25 /** 26 * Returns the request body content. 27 * 28 * @param bool $asResource If true, a resource will be returned 29 * @return string|resource 30 */ 31 public function getContent(bool $asResource = false) 32 { 33 $currentContentIsResource = \is_resource($this->content); 34 35 if ($asResource === true) { 36 if ($currentContentIsResource) { 37 rewind($this->content); 38 39 return $this->content; 40 } 41 42 // Content passed in parameter (test) 43 if (\is_string($this->content)) { 44 $resource = fopen('php://temp', 'r+'); 45 fwrite($resource, $this->content); 46 rewind($resource); 47 48 return $resource; 49 } 50 51 $this->content = false; 52 53 return fopen('php://input', 'r'); 54 } 55 56 if ($currentContentIsResource) { 57 rewind($this->content); 58 59 return stream_get_contents($this->content); 60 } 61 62 if ($this->content === null || $this->content === false) { 63 $this->content = file_get_contents('php://input'); 64 } 65 66 return $this->content; 67 } 68 69 private function headersFromGlobals(array $server) 70 { 71 $headers = []; 72 foreach ($server as $key => $value) { 73 if (strpos($key, 'HTTP_') === 0) { 74 $headers[str_replace('HTTP_', '', $key)] = $value; 75 } 76 } 77 78 return $headers; 14 79 } 15 80 16 81 public function getMethod() 17 82 { 18 return $this-> theRequest->getMethod();83 return $this->request->get_method(); 19 84 } 20 85 21 86 public function get($name, $sanitize = false, $default = null) 22 87 { 23 $value = $this-> theRequest->query->get($name, $default);88 $value = $this->request->get_param($name) ?: $default; 24 89 25 90 if ($sanitize) { … … 30 95 } 31 96 32 public function post($name, $default = null)33 {34 return $this->theRequest->request->get($name, $default);35 }36 37 public function getContent()38 {39 return $this->theRequest->getContent();40 }41 42 97 public function getJsonContent($key = null, $associative = true) 43 98 { 44 $val = json_decode($this->getContent(), $associative); 99 $content = $this->request->get_body(); 100 $data = json_decode($content, $associative); 101 45 102 if (json_last_error() !== JSON_ERROR_NONE) { 46 103 return null; 47 104 } 48 105 49 if ($key ) {50 return $ val[$key];106 if ($key && isset($data[$key])) { 107 return $data[$key]; 51 108 } 52 109 53 return $ val;110 return $data; 54 111 } 55 112 56 113 public function getHeader($name, $default = null) 57 114 { 58 return $this->theRequest->headers->get($name, $default); 115 $headers = $this->request->get_headers(); 116 117 return $headers[$name][0] ?? $default; 59 118 } 60 119 61 public function toArray() 120 public function toArray(): array 62 121 { 63 return $this-> theRequest->toArray();122 return $this->getJsonContent(); 64 123 } 65 124 66 public function all( $name)125 public function all() 67 126 { 68 return $this->theRequest->query->all($name);127 return array_merge($this->request->get_query_params(), $this->request->get_body_params()); 69 128 } 70 129 71 130 public function getClientIp() 72 131 { 73 return $ this->theRequest->getClientIp();132 return $_SERVER['REMOTE_ADDR'] ?? null; 74 133 } 75 134 } -
agentwp/tags/1.3.0/server/Http/WpAwpClient.php
r3174903 r3186772 3 3 namespace WpAi\AgentWp\Http; 4 4 5 use GuzzleHttp\Exception\ClientException;6 5 use WpAi\AgentWp\Modules\AwpClient\Client; 7 6 … … 22 21 } 23 22 23 /** 24 * Calls the API route by its defined name in ApiRoutes. 25 * 26 * @return ClientResponse|\WP_Error 27 */ 24 28 public function __call(string $name, array $arguments = []) 25 29 { 26 30 $params = isset($arguments[0]) ? $arguments[0] : []; 31 $response = $this->client->$name($params); 32 27 33 try { 28 $response = $this->client->$name($params); 34 if ($response->isError()) { 35 $res = $response->get(); 29 36 30 return json_decode($response->getBody()->getContents(), true); 31 } catch (ClientException $e) { 32 $error = json_decode($e->getResponse()->getBody()->getContents()); 37 $errors = isset($res['errors']) ? $res['errors'] : []; 33 38 34 return new \WP_Error( 35 $e->getCode(), 36 $error->message 37 ); 39 return $response->setErrorResponse(new \WP_Error( 40 $response->status(), 41 $res['message'], 42 ['status' => $response->status(), 'errors' => $errors] 43 )); 44 } 45 46 return $response; 38 47 } catch (\Exception $e) { 39 48 error_log($e->getMessage()); -
agentwp/tags/1.3.0/server/Main.php
r3182786 r3186772 5 5 use WpAi\AgentWp\Factories\ClientFactory; 6 6 use WpAi\AgentWp\Http\WpAwpClient; 7 use WpAi\AgentWp\Services\AccountSettings;8 7 9 8 /** … … 13 12 * All providers depend on this class. 14 13 * 15 * @since 0.1.514 * @since 1.3.0 16 15 */ 17 16 class Main … … 21 20 const SLUG = 'agentwp'; 22 21 23 const PLUGIN_VERSION = '1. 2.1';22 const PLUGIN_VERSION = '1.3.0'; 24 23 25 24 const BUILD_DIR = 'build'; … … 131 130 } 132 131 133 public function accountSettings(): AccountSettings132 public function accountSettings(): array 134 133 { 135 return new AccountSettings($this->client()); 134 $res = $this->client()->siteSettingAll(); 135 if ($res->isError()) { 136 return []; 137 } 138 139 return $res->get() ?? []; 136 140 } 137 141 -
agentwp/tags/1.3.0/server/Modules/AwpClient/Client.php
r3178174 r3186772 3 3 namespace WpAi\AgentWp\Modules\AwpClient; 4 4 5 use GuzzleHttp\Client as GuzzleHttpClient;6 use GuzzleHttp\Exception\GuzzleException;7 use GuzzleHttp\Psr7\Response;8 5 use WpAi\AgentWp\Main; 9 6 … … 48 45 * Calls the API route by its defined name in ApiRoutes. 49 46 * 50 * @throws RouteDoesNotExistException| GuzzleException47 * @throws RouteDoesNotExistException|array 51 48 */ 52 public function __call(string $name, array $args): Response49 public function __call(string $name, array $args): ClientResponse 53 50 { 54 51 $args = isset($args[0]) ? $args[0] : []; 55 52 extract($this->getUrl($name, $args)); 56 57 return $this->getClient()->request($method, $path, [ 58 'json' => $params, 59 ]); 53 $response = $this->makeRequest($method, $url, $params); 54 55 if (is_wp_error($response)) { 56 $errorCode = empty($response->get_error_code()) ? 500 : (int) $response->get_error_code(); 57 58 return new ClientResponse( 59 $errorCode, 60 $response->get_error_message(), 61 ); 62 } 63 64 $code = wp_remote_retrieve_response_code($response); 65 $status = empty($code) ? 500 : $code; 66 67 return new ClientResponse( 68 $status, 69 wp_remote_retrieve_body($response), 70 wp_remote_retrieve_headers($response)->getAll(), 71 ); 60 72 } 61 73 … … 171 183 } 172 184 173 public function getClient(): GuzzleHttpClient174 {175 return new GuzzleHttpClient($this->getClientOptions());176 }177 178 185 public function getRoutes(): ApiRoutes 179 186 { … … 187 194 return $this; 188 195 } 196 197 /** 198 * @return array|\WP_Error 199 */ 200 private function makeRequest(string $method, string $url, array $params = []) 201 { 202 $options = $this->getClientOptions(); 203 $method = \strtoupper($method); 204 if (in_array($method, ['POST', 'PUT', 'PATCH', 'DELETE'])) { 205 $options['body'] = json_encode($params); 206 } elseif ($method === 'GET') { 207 $url = add_query_arg(array_map('urlencode', $params), $url); 208 } 209 210 return wp_remote_request($url, array_merge($options, ['method' => $method])); 211 } 189 212 } -
agentwp/tags/1.3.0/server/Page/Admin/DashboardWidget.php
r3174903 r3186772 20 20 { 21 21 wp_add_dashboard_widget( 22 $this->pageName, // Widget slug.22 'WPAgentDashboardWidget', 23 23 '<!-- @todo: SVG Logo to be embedded here --> AgentWP', 24 [$this, 'appRoot'] // Display function.24 [$this, 'appRoot'] 25 25 ); 26 26 } -
agentwp/tags/1.3.0/server/Page/Admin/Settings.php
r3178174 r3186772 70 70 'site_title' => get_bloginfo('name'), 71 71 'site_icon_url' => get_site_icon_url() ?: '', 72 'plans' => $this->main->client()->plans() ,72 'plans' => $this->main->client()->plans()->get(), 73 73 ]; 74 74 } … … 88 88 'redirect_uri' => $this->main->settingsPageUrl, 89 89 'code' => $code, 90 ]) ;90 ])->get(); 91 91 92 92 if (\is_wp_error($response)) { -
agentwp/tags/1.3.0/server/Registry/IndexSiteData.php
r3174903 r3186772 84 84 foreach ($info['wp-plugins-active']['fields'] as $plugin_name => $plugin_info) { 85 85 foreach ($plugin_data as $slug => $data) { 86 // Match plugin name from debug data with the one retrieved from get_plugin_data 87 if (strpos($plugin_info['label'], $data['Name']) !== false) { 86 if (empty($data['Name'])) { 87 continue; 88 } 89 90 if (! empty($plugin_info['label']) && strpos($plugin_info['label'], $data['Name']) !== false) { 88 91 $info['wp-plugins-active']['fields'][$plugin_name]['slug'] = $slug; 89 92 break; … … 137 140 private function getSetting($key) 138 141 { 139 $accountSettings = $this->main->accountSettings() ->get();142 $accountSettings = $this->main->accountSettings(); 140 143 foreach ($accountSettings as $setting) { 141 144 if ($setting['name'] === $key) { -
agentwp/tags/1.3.0/server/Registry/IndexSiteDocs.php
r3174903 r3186772 52 52 $response = $this->main->client()->siteDocsStore( 53 53 $this->docs->data() 54 ) ;54 )->get(); 55 55 56 56 if (isset($response['error'])) { -
agentwp/tags/1.3.0/server/Registry/Router.php
r3178174 r3186772 44 44 'test_auth' => TestAuthResponse::class, 45 45 'test_route' => [TestResponse::class, 'successfulResponse'], 46 'test_stream_forward' => [TestResponse::class, 'stream'],47 46 'accept_terms' => [UserController::class, 'acceptTerms'], 48 47 'agentwp_users' => GetUsers::class, -
agentwp/tags/1.3.0/vendor/autoload.php
r3174903 r3186772 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe::getLoader();25 return ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f::getLoader(); -
agentwp/tags/1.3.0/vendor/composer/autoload_classmap.php
r3174903 r3186772 7 7 8 8 return array( 9 'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',10 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 11 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',12 'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',13 'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',14 'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',15 10 ); -
agentwp/tags/1.3.0/vendor/composer/autoload_psr4.php
r3174903 r3186772 7 7 8 8 return array( 9 'WpAi\\AgentWp\\' => array($baseDir . '/server'),10 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),11 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),12 'Symfony\\Component\\HttpFoundation\\' => array($vendorDir . '/symfony/http-foundation'),13 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),14 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),15 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),16 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),17 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),18 9 ); -
agentwp/tags/1.3.0/vendor/composer/autoload_real.php
r3174903 r3186772 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe5 class ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 require __DIR__ . '/platform_check.php'; 26 27 spl_autoload_register(array('ComposerAutoloaderInita993cb505e7fbfd61e8c585589277bbe', 'loadClassLoader'), true, true); 25 spl_autoload_register(array('ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f', 'loadClassLoader'), true, true); 28 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f', 'loadClassLoader')); 30 28 31 29 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit a993cb505e7fbfd61e8c585589277bbe::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f::getInitializer($loader)); 33 31 34 32 $loader->register(true); 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$files;37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;40 41 require $file;42 }43 }, null, null);44 foreach ($filesToLoad as $fileIdentifier => $file) {45 $requireFile($fileIdentifier, $file);46 }47 33 48 34 return $loader; -
agentwp/tags/1.3.0/vendor/composer/autoload_static.php
r3174903 r3186772 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a993cb505e7fbfd61e8c585589277bbe7 class ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f 8 8 { 9 public static $files = array (10 '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',11 '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',12 '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',13 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',14 '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',15 'd05ecc14ff93fd612a81ec7e8ab4c2c9' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p4.php',16 );17 18 public static $prefixLengthsPsr4 = array (19 'W' =>20 array (21 'WpAi\\AgentWp\\' => 13,22 ),23 'S' =>24 array (25 'Symfony\\Polyfill\\Php80\\' => 23,26 'Symfony\\Polyfill\\Mbstring\\' => 26,27 'Symfony\\Component\\HttpFoundation\\' => 33,28 ),29 'P' =>30 array (31 'Psr\\Http\\Message\\' => 17,32 'Psr\\Http\\Client\\' => 16,33 ),34 'G' =>35 array (36 'GuzzleHttp\\Psr7\\' => 16,37 'GuzzleHttp\\Promise\\' => 19,38 'GuzzleHttp\\' => 11,39 ),40 );41 42 public static $prefixDirsPsr4 = array (43 'WpAi\\AgentWp\\' =>44 array (45 0 => __DIR__ . '/../..' . '/server',46 ),47 'Symfony\\Polyfill\\Php80\\' =>48 array (49 0 => __DIR__ . '/..' . '/symfony/polyfill-php80',50 ),51 'Symfony\\Polyfill\\Mbstring\\' =>52 array (53 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',54 ),55 'Symfony\\Component\\HttpFoundation\\' =>56 array (57 0 => __DIR__ . '/..' . '/symfony/http-foundation',58 ),59 'Psr\\Http\\Message\\' =>60 array (61 0 => __DIR__ . '/..' . '/psr/http-message/src',62 1 => __DIR__ . '/..' . '/psr/http-factory/src',63 ),64 'Psr\\Http\\Client\\' =>65 array (66 0 => __DIR__ . '/..' . '/psr/http-client/src',67 ),68 'GuzzleHttp\\Psr7\\' =>69 array (70 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',71 ),72 'GuzzleHttp\\Promise\\' =>73 array (74 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',75 ),76 'GuzzleHttp\\' =>77 array (78 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',79 ),80 );81 82 9 public static $classMap = array ( 83 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',84 10 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 85 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',86 'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',87 'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',88 'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',89 11 ); 90 12 … … 92 14 { 93 15 return \Closure::bind(function () use ($loader) { 94 $loader->prefixLengthsPsr4 = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$prefixLengthsPsr4; 95 $loader->prefixDirsPsr4 = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$prefixDirsPsr4; 96 $loader->classMap = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$classMap; 16 $loader->classMap = ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f::$classMap; 97 17 98 18 }, null, ClassLoader::class); -
agentwp/tags/1.3.0/vendor/composer/installed.json
r3174903 r3186772 1 1 { 2 "packages": [ 3 { 4 "name": "guzzlehttp/guzzle", 5 "version": "7.9.2", 6 "version_normalized": "7.9.2.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/guzzle/guzzle.git", 10 "reference": "d281ed313b989f213357e3be1a179f02196ac99b" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", 15 "reference": "d281ed313b989f213357e3be1a179f02196ac99b", 16 "shasum": "" 17 }, 18 "require": { 19 "ext-json": "*", 20 "guzzlehttp/promises": "^1.5.3 || ^2.0.3", 21 "guzzlehttp/psr7": "^2.7.0", 22 "php": "^7.2.5 || ^8.0", 23 "psr/http-client": "^1.0", 24 "symfony/deprecation-contracts": "^2.2 || ^3.0" 25 }, 26 "provide": { 27 "psr/http-client-implementation": "1.0" 28 }, 29 "require-dev": { 30 "bamarni/composer-bin-plugin": "^1.8.2", 31 "ext-curl": "*", 32 "guzzle/client-integration-tests": "3.0.2", 33 "php-http/message-factory": "^1.1", 34 "phpunit/phpunit": "^8.5.39 || ^9.6.20", 35 "psr/log": "^1.1 || ^2.0 || ^3.0" 36 }, 37 "suggest": { 38 "ext-curl": "Required for CURL handler support", 39 "ext-intl": "Required for Internationalized Domain Name (IDN) support", 40 "psr/log": "Required for using the Log middleware" 41 }, 42 "time": "2024-07-24T11:22:20+00:00", 43 "type": "library", 44 "extra": { 45 "bamarni-bin": { 46 "bin-links": true, 47 "forward-command": false 48 } 49 }, 50 "installation-source": "dist", 51 "autoload": { 52 "files": [ 53 "src/functions_include.php" 54 ], 55 "psr-4": { 56 "GuzzleHttp\\": "src/" 57 } 58 }, 59 "notification-url": "https://packagist.org/downloads/", 60 "license": [ 61 "MIT" 62 ], 63 "authors": [ 64 { 65 "name": "Graham Campbell", 66 "email": "hello@gjcampbell.co.uk", 67 "homepage": "https://github.com/GrahamCampbell" 68 }, 69 { 70 "name": "Michael Dowling", 71 "email": "mtdowling@gmail.com", 72 "homepage": "https://github.com/mtdowling" 73 }, 74 { 75 "name": "Jeremy Lindblom", 76 "email": "jeremeamia@gmail.com", 77 "homepage": "https://github.com/jeremeamia" 78 }, 79 { 80 "name": "George Mponos", 81 "email": "gmponos@gmail.com", 82 "homepage": "https://github.com/gmponos" 83 }, 84 { 85 "name": "Tobias Nyholm", 86 "email": "tobias.nyholm@gmail.com", 87 "homepage": "https://github.com/Nyholm" 88 }, 89 { 90 "name": "Márk Sági-Kazár", 91 "email": "mark.sagikazar@gmail.com", 92 "homepage": "https://github.com/sagikazarmark" 93 }, 94 { 95 "name": "Tobias Schultze", 96 "email": "webmaster@tubo-world.de", 97 "homepage": "https://github.com/Tobion" 98 } 99 ], 100 "description": "Guzzle is a PHP HTTP client library", 101 "keywords": [ 102 "client", 103 "curl", 104 "framework", 105 "http", 106 "http client", 107 "psr-18", 108 "psr-7", 109 "rest", 110 "web service" 111 ], 112 "support": { 113 "issues": "https://github.com/guzzle/guzzle/issues", 114 "source": "https://github.com/guzzle/guzzle/tree/7.9.2" 115 }, 116 "funding": [ 117 { 118 "url": "https://github.com/GrahamCampbell", 119 "type": "github" 120 }, 121 { 122 "url": "https://github.com/Nyholm", 123 "type": "github" 124 }, 125 { 126 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", 127 "type": "tidelift" 128 } 129 ], 130 "install-path": "../guzzlehttp/guzzle" 131 }, 132 { 133 "name": "guzzlehttp/promises", 134 "version": "2.0.3", 135 "version_normalized": "2.0.3.0", 136 "source": { 137 "type": "git", 138 "url": "https://github.com/guzzle/promises.git", 139 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" 140 }, 141 "dist": { 142 "type": "zip", 143 "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 144 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 145 "shasum": "" 146 }, 147 "require": { 148 "php": "^7.2.5 || ^8.0" 149 }, 150 "require-dev": { 151 "bamarni/composer-bin-plugin": "^1.8.2", 152 "phpunit/phpunit": "^8.5.39 || ^9.6.20" 153 }, 154 "time": "2024-07-18T10:29:17+00:00", 155 "type": "library", 156 "extra": { 157 "bamarni-bin": { 158 "bin-links": true, 159 "forward-command": false 160 } 161 }, 162 "installation-source": "dist", 163 "autoload": { 164 "psr-4": { 165 "GuzzleHttp\\Promise\\": "src/" 166 } 167 }, 168 "notification-url": "https://packagist.org/downloads/", 169 "license": [ 170 "MIT" 171 ], 172 "authors": [ 173 { 174 "name": "Graham Campbell", 175 "email": "hello@gjcampbell.co.uk", 176 "homepage": "https://github.com/GrahamCampbell" 177 }, 178 { 179 "name": "Michael Dowling", 180 "email": "mtdowling@gmail.com", 181 "homepage": "https://github.com/mtdowling" 182 }, 183 { 184 "name": "Tobias Nyholm", 185 "email": "tobias.nyholm@gmail.com", 186 "homepage": "https://github.com/Nyholm" 187 }, 188 { 189 "name": "Tobias Schultze", 190 "email": "webmaster@tubo-world.de", 191 "homepage": "https://github.com/Tobion" 192 } 193 ], 194 "description": "Guzzle promises library", 195 "keywords": [ 196 "promise" 197 ], 198 "support": { 199 "issues": "https://github.com/guzzle/promises/issues", 200 "source": "https://github.com/guzzle/promises/tree/2.0.3" 201 }, 202 "funding": [ 203 { 204 "url": "https://github.com/GrahamCampbell", 205 "type": "github" 206 }, 207 { 208 "url": "https://github.com/Nyholm", 209 "type": "github" 210 }, 211 { 212 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", 213 "type": "tidelift" 214 } 215 ], 216 "install-path": "../guzzlehttp/promises" 217 }, 218 { 219 "name": "guzzlehttp/psr7", 220 "version": "2.7.0", 221 "version_normalized": "2.7.0.0", 222 "source": { 223 "type": "git", 224 "url": "https://github.com/guzzle/psr7.git", 225 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" 226 }, 227 "dist": { 228 "type": "zip", 229 "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 230 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 231 "shasum": "" 232 }, 233 "require": { 234 "php": "^7.2.5 || ^8.0", 235 "psr/http-factory": "^1.0", 236 "psr/http-message": "^1.1 || ^2.0", 237 "ralouphie/getallheaders": "^3.0" 238 }, 239 "provide": { 240 "psr/http-factory-implementation": "1.0", 241 "psr/http-message-implementation": "1.0" 242 }, 243 "require-dev": { 244 "bamarni/composer-bin-plugin": "^1.8.2", 245 "http-interop/http-factory-tests": "0.9.0", 246 "phpunit/phpunit": "^8.5.39 || ^9.6.20" 247 }, 248 "suggest": { 249 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 250 }, 251 "time": "2024-07-18T11:15:46+00:00", 252 "type": "library", 253 "extra": { 254 "bamarni-bin": { 255 "bin-links": true, 256 "forward-command": false 257 } 258 }, 259 "installation-source": "dist", 260 "autoload": { 261 "psr-4": { 262 "GuzzleHttp\\Psr7\\": "src/" 263 } 264 }, 265 "notification-url": "https://packagist.org/downloads/", 266 "license": [ 267 "MIT" 268 ], 269 "authors": [ 270 { 271 "name": "Graham Campbell", 272 "email": "hello@gjcampbell.co.uk", 273 "homepage": "https://github.com/GrahamCampbell" 274 }, 275 { 276 "name": "Michael Dowling", 277 "email": "mtdowling@gmail.com", 278 "homepage": "https://github.com/mtdowling" 279 }, 280 { 281 "name": "George Mponos", 282 "email": "gmponos@gmail.com", 283 "homepage": "https://github.com/gmponos" 284 }, 285 { 286 "name": "Tobias Nyholm", 287 "email": "tobias.nyholm@gmail.com", 288 "homepage": "https://github.com/Nyholm" 289 }, 290 { 291 "name": "Márk Sági-Kazár", 292 "email": "mark.sagikazar@gmail.com", 293 "homepage": "https://github.com/sagikazarmark" 294 }, 295 { 296 "name": "Tobias Schultze", 297 "email": "webmaster@tubo-world.de", 298 "homepage": "https://github.com/Tobion" 299 }, 300 { 301 "name": "Márk Sági-Kazár", 302 "email": "mark.sagikazar@gmail.com", 303 "homepage": "https://sagikazarmark.hu" 304 } 305 ], 306 "description": "PSR-7 message implementation that also provides common utility methods", 307 "keywords": [ 308 "http", 309 "message", 310 "psr-7", 311 "request", 312 "response", 313 "stream", 314 "uri", 315 "url" 316 ], 317 "support": { 318 "issues": "https://github.com/guzzle/psr7/issues", 319 "source": "https://github.com/guzzle/psr7/tree/2.7.0" 320 }, 321 "funding": [ 322 { 323 "url": "https://github.com/GrahamCampbell", 324 "type": "github" 325 }, 326 { 327 "url": "https://github.com/Nyholm", 328 "type": "github" 329 }, 330 { 331 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", 332 "type": "tidelift" 333 } 334 ], 335 "install-path": "../guzzlehttp/psr7" 336 }, 337 { 338 "name": "psr/http-client", 339 "version": "1.0.3", 340 "version_normalized": "1.0.3.0", 341 "source": { 342 "type": "git", 343 "url": "https://github.com/php-fig/http-client.git", 344 "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" 345 }, 346 "dist": { 347 "type": "zip", 348 "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", 349 "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", 350 "shasum": "" 351 }, 352 "require": { 353 "php": "^7.0 || ^8.0", 354 "psr/http-message": "^1.0 || ^2.0" 355 }, 356 "time": "2023-09-23T14:17:50+00:00", 357 "type": "library", 358 "extra": { 359 "branch-alias": { 360 "dev-master": "1.0.x-dev" 361 } 362 }, 363 "installation-source": "dist", 364 "autoload": { 365 "psr-4": { 366 "Psr\\Http\\Client\\": "src/" 367 } 368 }, 369 "notification-url": "https://packagist.org/downloads/", 370 "license": [ 371 "MIT" 372 ], 373 "authors": [ 374 { 375 "name": "PHP-FIG", 376 "homepage": "https://www.php-fig.org/" 377 } 378 ], 379 "description": "Common interface for HTTP clients", 380 "homepage": "https://github.com/php-fig/http-client", 381 "keywords": [ 382 "http", 383 "http-client", 384 "psr", 385 "psr-18" 386 ], 387 "support": { 388 "source": "https://github.com/php-fig/http-client" 389 }, 390 "install-path": "../psr/http-client" 391 }, 392 { 393 "name": "psr/http-factory", 394 "version": "1.1.0", 395 "version_normalized": "1.1.0.0", 396 "source": { 397 "type": "git", 398 "url": "https://github.com/php-fig/http-factory.git", 399 "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" 400 }, 401 "dist": { 402 "type": "zip", 403 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", 404 "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", 405 "shasum": "" 406 }, 407 "require": { 408 "php": ">=7.1", 409 "psr/http-message": "^1.0 || ^2.0" 410 }, 411 "time": "2024-04-15T12:06:14+00:00", 412 "type": "library", 413 "extra": { 414 "branch-alias": { 415 "dev-master": "1.0.x-dev" 416 } 417 }, 418 "installation-source": "dist", 419 "autoload": { 420 "psr-4": { 421 "Psr\\Http\\Message\\": "src/" 422 } 423 }, 424 "notification-url": "https://packagist.org/downloads/", 425 "license": [ 426 "MIT" 427 ], 428 "authors": [ 429 { 430 "name": "PHP-FIG", 431 "homepage": "https://www.php-fig.org/" 432 } 433 ], 434 "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", 435 "keywords": [ 436 "factory", 437 "http", 438 "message", 439 "psr", 440 "psr-17", 441 "psr-7", 442 "request", 443 "response" 444 ], 445 "support": { 446 "source": "https://github.com/php-fig/http-factory" 447 }, 448 "install-path": "../psr/http-factory" 449 }, 450 { 451 "name": "psr/http-message", 452 "version": "2.0", 453 "version_normalized": "2.0.0.0", 454 "source": { 455 "type": "git", 456 "url": "https://github.com/php-fig/http-message.git", 457 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 458 }, 459 "dist": { 460 "type": "zip", 461 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 462 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 463 "shasum": "" 464 }, 465 "require": { 466 "php": "^7.2 || ^8.0" 467 }, 468 "time": "2023-04-04T09:54:51+00:00", 469 "type": "library", 470 "extra": { 471 "branch-alias": { 472 "dev-master": "2.0.x-dev" 473 } 474 }, 475 "installation-source": "dist", 476 "autoload": { 477 "psr-4": { 478 "Psr\\Http\\Message\\": "src/" 479 } 480 }, 481 "notification-url": "https://packagist.org/downloads/", 482 "license": [ 483 "MIT" 484 ], 485 "authors": [ 486 { 487 "name": "PHP-FIG", 488 "homepage": "https://www.php-fig.org/" 489 } 490 ], 491 "description": "Common interface for HTTP messages", 492 "homepage": "https://github.com/php-fig/http-message", 493 "keywords": [ 494 "http", 495 "http-message", 496 "psr", 497 "psr-7", 498 "request", 499 "response" 500 ], 501 "support": { 502 "source": "https://github.com/php-fig/http-message/tree/2.0" 503 }, 504 "install-path": "../psr/http-message" 505 }, 506 { 507 "name": "ralouphie/getallheaders", 508 "version": "3.0.3", 509 "version_normalized": "3.0.3.0", 510 "source": { 511 "type": "git", 512 "url": "https://github.com/ralouphie/getallheaders.git", 513 "reference": "120b605dfeb996808c31b6477290a714d356e822" 514 }, 515 "dist": { 516 "type": "zip", 517 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 518 "reference": "120b605dfeb996808c31b6477290a714d356e822", 519 "shasum": "" 520 }, 521 "require": { 522 "php": ">=5.6" 523 }, 524 "require-dev": { 525 "php-coveralls/php-coveralls": "^2.1", 526 "phpunit/phpunit": "^5 || ^6.5" 527 }, 528 "time": "2019-03-08T08:55:37+00:00", 529 "type": "library", 530 "installation-source": "dist", 531 "autoload": { 532 "files": [ 533 "src/getallheaders.php" 534 ] 535 }, 536 "notification-url": "https://packagist.org/downloads/", 537 "license": [ 538 "MIT" 539 ], 540 "authors": [ 541 { 542 "name": "Ralph Khattar", 543 "email": "ralph.khattar@gmail.com" 544 } 545 ], 546 "description": "A polyfill for getallheaders.", 547 "support": { 548 "issues": "https://github.com/ralouphie/getallheaders/issues", 549 "source": "https://github.com/ralouphie/getallheaders/tree/develop" 550 }, 551 "install-path": "../ralouphie/getallheaders" 552 }, 553 { 554 "name": "symfony/deprecation-contracts", 555 "version": "v2.5.3", 556 "version_normalized": "2.5.3.0", 557 "source": { 558 "type": "git", 559 "url": "https://github.com/symfony/deprecation-contracts.git", 560 "reference": "80d075412b557d41002320b96a096ca65aa2c98d" 561 }, 562 "dist": { 563 "type": "zip", 564 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", 565 "reference": "80d075412b557d41002320b96a096ca65aa2c98d", 566 "shasum": "" 567 }, 568 "require": { 569 "php": ">=7.1" 570 }, 571 "time": "2023-01-24T14:02:46+00:00", 572 "type": "library", 573 "extra": { 574 "branch-alias": { 575 "dev-main": "2.5-dev" 576 }, 577 "thanks": { 578 "name": "symfony/contracts", 579 "url": "https://github.com/symfony/contracts" 580 } 581 }, 582 "installation-source": "dist", 583 "autoload": { 584 "files": [ 585 "function.php" 586 ] 587 }, 588 "notification-url": "https://packagist.org/downloads/", 589 "license": [ 590 "MIT" 591 ], 592 "authors": [ 593 { 594 "name": "Nicolas Grekas", 595 "email": "p@tchwork.com" 596 }, 597 { 598 "name": "Symfony Community", 599 "homepage": "https://symfony.com/contributors" 600 } 601 ], 602 "description": "A generic function and convention to trigger deprecation notices", 603 "homepage": "https://symfony.com", 604 "support": { 605 "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" 606 }, 607 "funding": [ 608 { 609 "url": "https://symfony.com/sponsor", 610 "type": "custom" 611 }, 612 { 613 "url": "https://github.com/fabpot", 614 "type": "github" 615 }, 616 { 617 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 618 "type": "tidelift" 619 } 620 ], 621 "install-path": "../symfony/deprecation-contracts" 622 }, 623 { 624 "name": "symfony/http-foundation", 625 "version": "v5.4.44", 626 "version_normalized": "5.4.44.0", 627 "source": { 628 "type": "git", 629 "url": "https://github.com/symfony/http-foundation.git", 630 "reference": "ae0d217e5932aa0b70ddb4cf7822cc76d48aee53" 631 }, 632 "dist": { 633 "type": "zip", 634 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ae0d217e5932aa0b70ddb4cf7822cc76d48aee53", 635 "reference": "ae0d217e5932aa0b70ddb4cf7822cc76d48aee53", 636 "shasum": "" 637 }, 638 "require": { 639 "php": ">=7.2.5", 640 "symfony/deprecation-contracts": "^2.1|^3", 641 "symfony/polyfill-mbstring": "~1.1", 642 "symfony/polyfill-php80": "^1.16" 643 }, 644 "require-dev": { 645 "predis/predis": "^1.0|^2.0", 646 "symfony/cache": "^4.4|^5.0|^6.0", 647 "symfony/dependency-injection": "^5.4|^6.0", 648 "symfony/expression-language": "^4.4|^5.0|^6.0", 649 "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", 650 "symfony/mime": "^4.4|^5.0|^6.0", 651 "symfony/rate-limiter": "^5.2|^6.0" 652 }, 653 "suggest": { 654 "symfony/mime": "To use the file extension guesser" 655 }, 656 "time": "2024-09-15T07:55:06+00:00", 657 "type": "library", 658 "installation-source": "dist", 659 "autoload": { 660 "psr-4": { 661 "Symfony\\Component\\HttpFoundation\\": "" 662 }, 663 "exclude-from-classmap": [ 664 "/Tests/" 665 ] 666 }, 667 "notification-url": "https://packagist.org/downloads/", 668 "license": [ 669 "MIT" 670 ], 671 "authors": [ 672 { 673 "name": "Fabien Potencier", 674 "email": "fabien@symfony.com" 675 }, 676 { 677 "name": "Symfony Community", 678 "homepage": "https://symfony.com/contributors" 679 } 680 ], 681 "description": "Defines an object-oriented layer for the HTTP specification", 682 "homepage": "https://symfony.com", 683 "support": { 684 "source": "https://github.com/symfony/http-foundation/tree/v5.4.44" 685 }, 686 "funding": [ 687 { 688 "url": "https://symfony.com/sponsor", 689 "type": "custom" 690 }, 691 { 692 "url": "https://github.com/fabpot", 693 "type": "github" 694 }, 695 { 696 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 697 "type": "tidelift" 698 } 699 ], 700 "install-path": "../symfony/http-foundation" 701 }, 702 { 703 "name": "symfony/polyfill-mbstring", 704 "version": "v1.31.0", 705 "version_normalized": "1.31.0.0", 706 "source": { 707 "type": "git", 708 "url": "https://github.com/symfony/polyfill-mbstring.git", 709 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 710 }, 711 "dist": { 712 "type": "zip", 713 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", 714 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 715 "shasum": "" 716 }, 717 "require": { 718 "php": ">=7.2" 719 }, 720 "provide": { 721 "ext-mbstring": "*" 722 }, 723 "suggest": { 724 "ext-mbstring": "For best performance" 725 }, 726 "time": "2024-09-09T11:45:10+00:00", 727 "type": "library", 728 "extra": { 729 "thanks": { 730 "name": "symfony/polyfill", 731 "url": "https://github.com/symfony/polyfill" 732 } 733 }, 734 "installation-source": "dist", 735 "autoload": { 736 "files": [ 737 "bootstrap.php" 738 ], 739 "psr-4": { 740 "Symfony\\Polyfill\\Mbstring\\": "" 741 } 742 }, 743 "notification-url": "https://packagist.org/downloads/", 744 "license": [ 745 "MIT" 746 ], 747 "authors": [ 748 { 749 "name": "Nicolas Grekas", 750 "email": "p@tchwork.com" 751 }, 752 { 753 "name": "Symfony Community", 754 "homepage": "https://symfony.com/contributors" 755 } 756 ], 757 "description": "Symfony polyfill for the Mbstring extension", 758 "homepage": "https://symfony.com", 759 "keywords": [ 760 "compatibility", 761 "mbstring", 762 "polyfill", 763 "portable", 764 "shim" 765 ], 766 "support": { 767 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" 768 }, 769 "funding": [ 770 { 771 "url": "https://symfony.com/sponsor", 772 "type": "custom" 773 }, 774 { 775 "url": "https://github.com/fabpot", 776 "type": "github" 777 }, 778 { 779 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 780 "type": "tidelift" 781 } 782 ], 783 "install-path": "../symfony/polyfill-mbstring" 784 }, 785 { 786 "name": "symfony/polyfill-php80", 787 "version": "v1.31.0", 788 "version_normalized": "1.31.0.0", 789 "source": { 790 "type": "git", 791 "url": "https://github.com/symfony/polyfill-php80.git", 792 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" 793 }, 794 "dist": { 795 "type": "zip", 796 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 797 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 798 "shasum": "" 799 }, 800 "require": { 801 "php": ">=7.2" 802 }, 803 "time": "2024-09-09T11:45:10+00:00", 804 "type": "library", 805 "extra": { 806 "thanks": { 807 "name": "symfony/polyfill", 808 "url": "https://github.com/symfony/polyfill" 809 } 810 }, 811 "installation-source": "dist", 812 "autoload": { 813 "files": [ 814 "bootstrap.php" 815 ], 816 "psr-4": { 817 "Symfony\\Polyfill\\Php80\\": "" 818 }, 819 "classmap": [ 820 "Resources/stubs" 821 ] 822 }, 823 "notification-url": "https://packagist.org/downloads/", 824 "license": [ 825 "MIT" 826 ], 827 "authors": [ 828 { 829 "name": "Ion Bazan", 830 "email": "ion.bazan@gmail.com" 831 }, 832 { 833 "name": "Nicolas Grekas", 834 "email": "p@tchwork.com" 835 }, 836 { 837 "name": "Symfony Community", 838 "homepage": "https://symfony.com/contributors" 839 } 840 ], 841 "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", 842 "homepage": "https://symfony.com", 843 "keywords": [ 844 "compatibility", 845 "polyfill", 846 "portable", 847 "shim" 848 ], 849 "support": { 850 "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" 851 }, 852 "funding": [ 853 { 854 "url": "https://symfony.com/sponsor", 855 "type": "custom" 856 }, 857 { 858 "url": "https://github.com/fabpot", 859 "type": "github" 860 }, 861 { 862 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 863 "type": "tidelift" 864 } 865 ], 866 "install-path": "../symfony/polyfill-php80" 867 }, 868 { 869 "name": "yahnis-elsts/plugin-update-checker", 870 "version": "v5.4", 871 "version_normalized": "5.4.0.0", 872 "source": { 873 "type": "git", 874 "url": "https://github.com/YahnisElsts/plugin-update-checker.git", 875 "reference": "e8e53e6d98e37fa7c895c93417f52e3775494715" 876 }, 877 "dist": { 878 "type": "zip", 879 "url": "https://api.github.com/repos/YahnisElsts/plugin-update-checker/zipball/e8e53e6d98e37fa7c895c93417f52e3775494715", 880 "reference": "e8e53e6d98e37fa7c895c93417f52e3775494715", 881 "shasum": "" 882 }, 883 "require": { 884 "ext-json": "*", 885 "php": ">=5.6.20" 886 }, 887 "time": "2024-02-24T09:56:49+00:00", 888 "type": "library", 889 "installation-source": "dist", 890 "autoload": { 891 "files": [ 892 "load-v5p4.php" 893 ] 894 }, 895 "notification-url": "https://packagist.org/downloads/", 896 "license": [ 897 "MIT" 898 ], 899 "authors": [ 900 { 901 "name": "Yahnis Elsts", 902 "email": "whiteshadow@w-shadow.com", 903 "homepage": "https://w-shadow.com/", 904 "role": "Developer" 905 } 906 ], 907 "description": "A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.", 908 "homepage": "https://github.com/YahnisElsts/plugin-update-checker/", 909 "keywords": [ 910 "automatic updates", 911 "plugin updates", 912 "theme updates", 913 "wordpress" 914 ], 915 "support": { 916 "issues": "https://github.com/YahnisElsts/plugin-update-checker/issues", 917 "source": "https://github.com/YahnisElsts/plugin-update-checker/tree/v5.4" 918 }, 919 "install-path": "../yahnis-elsts/plugin-update-checker" 920 } 921 ], 2 "packages": [], 922 3 "dev": false, 923 4 "dev-package-names": [] -
agentwp/tags/1.3.0/vendor/composer/installed.php
r3182786 r3186772 2 2 'root' => array( 3 3 'name' => 'wpai/agentwp', 4 'pretty_version' => 'v1. 2.1',5 'version' => '1. 2.1.0',6 'reference' => ' bbfd82b2bb1b2adc21d62c0034dd7406b29126dd',4 'pretty_version' => 'v1.3.0', 5 'version' => '1.3.0.0', 6 'reference' => 'a0baf50a6a3627475142230f5d43b6ab83ff0483', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 11 11 ), 12 12 'versions' => array( 13 'guzzlehttp/guzzle' => array(14 'pretty_version' => '7.9.2',15 'version' => '7.9.2.0',16 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b',17 'type' => 'library',18 'install_path' => __DIR__ . '/../guzzlehttp/guzzle',19 'aliases' => array(),20 'dev_requirement' => false,21 ),22 'guzzlehttp/promises' => array(23 'pretty_version' => '2.0.3',24 'version' => '2.0.3.0',25 'reference' => '6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8',26 'type' => 'library',27 'install_path' => __DIR__ . '/../guzzlehttp/promises',28 'aliases' => array(),29 'dev_requirement' => false,30 ),31 'guzzlehttp/psr7' => array(32 'pretty_version' => '2.7.0',33 'version' => '2.7.0.0',34 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201',35 'type' => 'library',36 'install_path' => __DIR__ . '/../guzzlehttp/psr7',37 'aliases' => array(),38 'dev_requirement' => false,39 ),40 'psr/http-client' => array(41 'pretty_version' => '1.0.3',42 'version' => '1.0.3.0',43 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',44 'type' => 'library',45 'install_path' => __DIR__ . '/../psr/http-client',46 'aliases' => array(),47 'dev_requirement' => false,48 ),49 'psr/http-client-implementation' => array(50 'dev_requirement' => false,51 'provided' => array(52 0 => '1.0',53 ),54 ),55 'psr/http-factory' => array(56 'pretty_version' => '1.1.0',57 'version' => '1.1.0.0',58 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',59 'type' => 'library',60 'install_path' => __DIR__ . '/../psr/http-factory',61 'aliases' => array(),62 'dev_requirement' => false,63 ),64 'psr/http-factory-implementation' => array(65 'dev_requirement' => false,66 'provided' => array(67 0 => '1.0',68 ),69 ),70 'psr/http-message' => array(71 'pretty_version' => '2.0',72 'version' => '2.0.0.0',73 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71',74 'type' => 'library',75 'install_path' => __DIR__ . '/../psr/http-message',76 'aliases' => array(),77 'dev_requirement' => false,78 ),79 'psr/http-message-implementation' => array(80 'dev_requirement' => false,81 'provided' => array(82 0 => '1.0',83 ),84 ),85 'ralouphie/getallheaders' => array(86 'pretty_version' => '3.0.3',87 'version' => '3.0.3.0',88 'reference' => '120b605dfeb996808c31b6477290a714d356e822',89 'type' => 'library',90 'install_path' => __DIR__ . '/../ralouphie/getallheaders',91 'aliases' => array(),92 'dev_requirement' => false,93 ),94 'symfony/deprecation-contracts' => array(95 'pretty_version' => 'v2.5.3',96 'version' => '2.5.3.0',97 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d',98 'type' => 'library',99 'install_path' => __DIR__ . '/../symfony/deprecation-contracts',100 'aliases' => array(),101 'dev_requirement' => false,102 ),103 'symfony/http-foundation' => array(104 'pretty_version' => 'v5.4.44',105 'version' => '5.4.44.0',106 'reference' => 'ae0d217e5932aa0b70ddb4cf7822cc76d48aee53',107 'type' => 'library',108 'install_path' => __DIR__ . '/../symfony/http-foundation',109 'aliases' => array(),110 'dev_requirement' => false,111 ),112 'symfony/polyfill-mbstring' => array(113 'pretty_version' => 'v1.31.0',114 'version' => '1.31.0.0',115 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341',116 'type' => 'library',117 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',118 'aliases' => array(),119 'dev_requirement' => false,120 ),121 'symfony/polyfill-php80' => array(122 'pretty_version' => 'v1.31.0',123 'version' => '1.31.0.0',124 'reference' => '60328e362d4c2c802a54fcbf04f9d3fb892b4cf8',125 'type' => 'library',126 'install_path' => __DIR__ . '/../symfony/polyfill-php80',127 'aliases' => array(),128 'dev_requirement' => false,129 ),130 13 'wpai/agentwp' => array( 131 'pretty_version' => 'v1. 2.1',132 'version' => '1. 2.1.0',133 'reference' => ' bbfd82b2bb1b2adc21d62c0034dd7406b29126dd',14 'pretty_version' => 'v1.3.0', 15 'version' => '1.3.0.0', 16 'reference' => 'a0baf50a6a3627475142230f5d43b6ab83ff0483', 134 17 'type' => 'library', 135 18 'install_path' => __DIR__ . '/../../', … … 137 20 'dev_requirement' => false, 138 21 ), 139 'yahnis-elsts/plugin-update-checker' => array(140 'pretty_version' => 'v5.4',141 'version' => '5.4.0.0',142 'reference' => 'e8e53e6d98e37fa7c895c93417f52e3775494715',143 'type' => 'library',144 'install_path' => __DIR__ . '/../yahnis-elsts/plugin-update-checker',145 'aliases' => array(),146 'dev_requirement' => false,147 ),148 22 ), 149 23 ); -
agentwp/trunk/agentwp.php
r3182786 r3186772 5 5 * Plugin URI: https://agentwp.com 6 6 * Description: Adds a AI Agent to your WordPress installation. 7 * Version: 1. 2.17 * Version: 1.3.0 8 8 * Author: WPAI Inc. 9 9 * Author URI: https://wpai.co … … 17 17 defined('ABSPATH') || exit; 18 18 19 require_once __DIR__.'/vendor/autoload.php'; 20 21 use YahnisElsts\PluginUpdateChecker\v5\PucFactory; 22 23 $awpPrivateRepo = PucFactory::buildUpdateChecker( 24 'https://github.com/wpai-inc/agentwp/', 25 __FILE__, 26 'agentwp' 27 ); 28 $awpPrivateRepo->getVcsApi()->enableReleaseAssets(); 29 $awpPrivateRepo->setBranch('main'); 19 require_once __DIR__.'/autoload.php'; 30 20 31 21 register_activation_hook(__FILE__, 'agentwp_boot_plugin'); … … 48 38 \WpAi\AgentWp\Page\Admin\Chat::class, 49 39 // \WpAi\AgentWp\Page\Frontend\Chat::class, 50 \WpAi\AgentWp\Page\Admin\DashboardWidget::class,51 40 \WpAi\AgentWp\Registry\IndexSiteData::class, 52 41 \WpAi\AgentWp\Registry\IndexSiteSummary::class, … … 56 45 \WpAi\AgentWp\Registry\WpUser::class, 57 46 ]); 47 48 add_action('current_screen', function () use ($registry) { 49 $registry->register([ 50 \WpAi\AgentWp\Page\Admin\DashboardWidget::class, 51 ]); 52 }); 58 53 } -
agentwp/trunk/build/manifest.json
r3182786 r3186772 2 2 "Page/Admin/Chat/Index.tsx": { 3 3 "css": [ 4 "assets/app- 8df1dc47.css"4 "assets/app-0d6e0444.css" 5 5 ], 6 "file": "assets/chat- 9c443414.js",6 "file": "assets/chat-32237a72.js", 7 7 "imports": [ 8 "_ClientSettingsProvider- 1165ae1b.js",9 "_Chat- cf61fd9c.js",8 "_ClientSettingsProvider-daa02826.js", 9 "_Chat-3a9ab25d.js", 10 10 "__commonjsHelpers-725317a4.js", 11 11 "_WriteToEditor-63b22c42.js" … … 16 16 "Page/Admin/DashboardWidget/Index.tsx": { 17 17 "css": [ 18 "assets/app- 8df1dc47.css"18 "assets/app-0d6e0444.css" 19 19 ], 20 "file": "assets/dashboardWidget- 141ae2a7.js",20 "file": "assets/dashboardWidget-329f6361.js", 21 21 "imports": [ 22 "_ClientSettingsProvider- 1165ae1b.js",23 "_LatestConvos- fedbffd9.js",22 "_ClientSettingsProvider-daa02826.js", 23 "_LatestConvos-5ae524e7.js", 24 24 "__commonjsHelpers-725317a4.js" 25 25 ], … … 29 29 "Page/Admin/Settings/Index.tsx": { 30 30 "css": [ 31 "assets/app- 8df1dc47.css"31 "assets/app-0d6e0444.css" 32 32 ], 33 "file": "assets/settings- cc05d060.js",33 "file": "assets/settings-047c0461.js", 34 34 "imports": [ 35 "_ClientSettingsProvider- 1165ae1b.js",36 "_Chat- cf61fd9c.js",37 "_LatestConvos- fedbffd9.js",35 "_ClientSettingsProvider-daa02826.js", 36 "_Chat-3a9ab25d.js", 37 "_LatestConvos-5ae524e7.js", 38 38 "__commonjsHelpers-725317a4.js", 39 39 "_WriteToEditor-63b22c42.js" … … 51 51 "src": "Tests/test-blocks-streaming.ts" 52 52 }, 53 "_Chat- cf61fd9c.js": {53 "_Chat-3a9ab25d.js": { 54 54 "assets": [ 55 55 "assets/wpcode-fa5b4e95.png", … … 62 62 "assets/codeable-c7263c7b.png" 63 63 ], 64 "file": "assets/Chat- cf61fd9c.js",64 "file": "assets/Chat-3a9ab25d.js", 65 65 "imports": [ 66 "_ClientSettingsProvider- 1165ae1b.js",66 "_ClientSettingsProvider-daa02826.js", 67 67 "__commonjsHelpers-725317a4.js", 68 68 "_WriteToEditor-63b22c42.js" 69 69 ] 70 70 }, 71 "_ClientSettingsProvider- 1165ae1b.js": {72 "file": "assets/ClientSettingsProvider- 1165ae1b.js",71 "_ClientSettingsProvider-daa02826.js": { 72 "file": "assets/ClientSettingsProvider-daa02826.js", 73 73 "imports": [ 74 74 "__commonjsHelpers-725317a4.js" 75 75 ] 76 76 }, 77 "_LatestConvos- fedbffd9.js": {78 "file": "assets/LatestConvos- fedbffd9.js",77 "_LatestConvos-5ae524e7.js": { 78 "file": "assets/LatestConvos-5ae524e7.js", 79 79 "imports": [ 80 "_ClientSettingsProvider- 1165ae1b.js"80 "_ClientSettingsProvider-daa02826.js" 81 81 ] 82 82 }, … … 99 99 }, 100 100 "assets/styles/app.css": { 101 "file": "assets/app- 8df1dc47.css",101 "file": "assets/app-0d6e0444.css", 102 102 "isEntry": true, 103 103 "src": "assets/styles/app.css" -
agentwp/trunk/readme.txt
r3182786 r3186772 3 3 Tags: ai, agent, chatbot 4 4 Requires at least: 6.4 5 Tested up to: 6. 66 Stable tag: 1. 2.15 Tested up to: 6.7 6 Stable tag: 1.3.0 7 7 Requires PHP: 7.4 8 8 License: GPLv3 -
agentwp/trunk/server/Client/Locations/Dashboard.php
r3174903 r3186772 17 17 public function active(): bool 18 18 { 19 if (! isset($_SERVER['REQUEST_URI'])) {19 if (! function_exists('get_current_screen')) { 20 20 return false; 21 21 } 22 22 23 /** 24 * @todo: bad method, this should be hooked into the right hook so that 25 * get_current_screen() can be used. 26 */ 27 $requestUri = sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])); 28 $dashboardPage = strpos($requestUri, '/wp-admin/index.php') !== false; 23 $screen = get_current_screen(); 24 if (! $screen || ! isset($screen->id) || $screen->id !== 'dashboard') { 25 return false; 26 } 29 27 30 return is_admin() && $this->client->main->auth()->hasAccess() && $dashboardPage;28 return is_admin() && $this->client->main->auth()->hasAccess(); 31 29 } 32 30 -
agentwp/trunk/server/Client/ReactClient.php
r3178174 r3186772 137 137 <?php 138 138 } else { 139 $user_settings = $this->main->client()->user() ;139 $user_settings = $this->main->client()->user()->get(); 140 140 $isOwner = $user_settings['user']['email'] === wp_get_current_user()->user_email; 141 141 $managers = $this->main->auth->managers(); … … 262 262 'user' => $current_user, 263 263 'api_host' => $this->main->apiClientHost(), 264 'account_settings' => $this->main->accountSettings() ->get(),264 'account_settings' => $this->main->accountSettings(), 265 265 'general_settings' => $this->main->settings->getGeneralSettings(), 266 266 'agentwp_manager' => $access_token ? $this->main->auth->isManager() : false, -
agentwp/trunk/server/Http/Controllers/AwpApi.php
r3174903 r3186772 17 17 unset($params['endpoint']); 18 18 19 return $this->main->client()->$endpoint($params) ;19 return $this->main->client()->$endpoint($params)->get(); 20 20 } 21 21 22 22 public function createRequest() 23 23 { 24 $response = $this->main->client()->convoCreate($this->handleMentions($this->request->toArray())); 24 $response = $this->main->client()->convoCreate( 25 $this->handleMentions($this->request->toArray()) 26 )->get(); 25 27 26 28 if (\is_wp_error($response)) { … … 35 37 public function retryRequest() 36 38 { 37 $response = $this->main->client()->requestRetry($this->request->toArray()) ;39 $response = $this->main->client()->requestRetry($this->request->toArray())->get(); 38 40 39 41 $response['access_token'] = $this->main->getAccessToken(); -
agentwp/trunk/server/Http/Controllers/MakeMeAManager.php
r3178174 r3186772 9 9 public function __invoke(): void 10 10 { 11 $user_settings = $this->main->client()->user() ;11 $user_settings = $this->main->client()->user()->get(); 12 12 $isOwner = $user_settings['user']['email'] === wp_get_current_user()->user_email; 13 13 -
agentwp/trunk/server/Http/Controllers/TestResponse.php
r3174903 r3186772 2 2 3 3 namespace WpAi\AgentWp\Http\Controllers; 4 5 use GuzzleHttp\Client;6 4 7 5 class TestResponse extends BaseController … … 18 16 ]); 19 17 } 20 21 /**22 * Stream the response using Guzzle23 */24 public function stream()25 {26 // Set headers to make sure the response is treated as a stream27 header('Content-Type: text/event-stream');28 header('Cache-Control: no-cache');29 header('Connection: keep-alive');30 31 // Start output buffering to prevent sending incomplete chunks32 ob_start();33 34 // Create a Guzzle client instance35 $client = new Client;36 37 try {38 // Make a GET request to the external streaming endpoint39 $response = $client->request('GET', $this->main->client()->getApiBaseUri().'stream/test', [40 'headers' => [41 'Accept' => 'text/event-stream',42 ],43 'stream' => true,44 'timeout' => 30, // Adjust timeout as needed45 ]);46 47 // Get the body of the response as a stream48 $body = $response->getBody();49 50 // Loop over the stream and echo chunks to the client51 while (! $body->eof()) {52 echo esc_html($body->read(1024)); // Read in chunks of 1024 bytes and escape output53 54 // Flush the output buffer to send the data immediately55 ob_flush();56 flush();57 }58 } catch (\Exception $e) {59 // Handle errors appropriately60 echo 'Error: '.esc_html($e->getMessage());61 }62 63 // Finish output64 ob_end_flush();65 exit;66 }67 18 } -
agentwp/trunk/server/Http/Controllers/UserController.php
r3174903 r3186772 12 12 'ip' => $this->request->getClientIp(), 13 13 'acceptance_url' => home_url(), 14 ]) ;14 ])->get(); 15 15 16 16 if (\is_wp_error($res)) { -
agentwp/trunk/server/Http/HttpRequest.php
r3174903 r3186772 3 3 namespace WpAi\AgentWp\Http; 4 4 5 use Symfony\Component\HttpFoundation\Request;5 use WP_REST_Request; 6 6 7 7 class HttpRequest 8 8 { 9 private $theRequest;9 private WP_Rest_Request $request; 10 10 11 public function __construct() 11 private $content; 12 13 public function __construct(?WP_REST_Request $request = null) 12 14 { 13 $this->theRequest = Request::createFromGlobals(); 15 // If no WP_REST_Request is provided, we create one using the current request globals. 16 $this->request = $request ?: new WP_REST_Request($_SERVER['REQUEST_METHOD'] ?? null, $_SERVER['REQUEST_URI'] ?? null); 17 18 // Populate parameters for `GET` and `POST` (similar to Symfony's `createFromGlobals`). 19 $this->request->set_query_params($_GET); 20 $this->request->set_body_params($_POST); 21 $this->request->set_headers($this->headersFromGlobals($_SERVER)); 22 $this->request->set_body($this->getContent()); 23 } 24 25 /** 26 * Returns the request body content. 27 * 28 * @param bool $asResource If true, a resource will be returned 29 * @return string|resource 30 */ 31 public function getContent(bool $asResource = false) 32 { 33 $currentContentIsResource = \is_resource($this->content); 34 35 if ($asResource === true) { 36 if ($currentContentIsResource) { 37 rewind($this->content); 38 39 return $this->content; 40 } 41 42 // Content passed in parameter (test) 43 if (\is_string($this->content)) { 44 $resource = fopen('php://temp', 'r+'); 45 fwrite($resource, $this->content); 46 rewind($resource); 47 48 return $resource; 49 } 50 51 $this->content = false; 52 53 return fopen('php://input', 'r'); 54 } 55 56 if ($currentContentIsResource) { 57 rewind($this->content); 58 59 return stream_get_contents($this->content); 60 } 61 62 if ($this->content === null || $this->content === false) { 63 $this->content = file_get_contents('php://input'); 64 } 65 66 return $this->content; 67 } 68 69 private function headersFromGlobals(array $server) 70 { 71 $headers = []; 72 foreach ($server as $key => $value) { 73 if (strpos($key, 'HTTP_') === 0) { 74 $headers[str_replace('HTTP_', '', $key)] = $value; 75 } 76 } 77 78 return $headers; 14 79 } 15 80 16 81 public function getMethod() 17 82 { 18 return $this-> theRequest->getMethod();83 return $this->request->get_method(); 19 84 } 20 85 21 86 public function get($name, $sanitize = false, $default = null) 22 87 { 23 $value = $this-> theRequest->query->get($name, $default);88 $value = $this->request->get_param($name) ?: $default; 24 89 25 90 if ($sanitize) { … … 30 95 } 31 96 32 public function post($name, $default = null)33 {34 return $this->theRequest->request->get($name, $default);35 }36 37 public function getContent()38 {39 return $this->theRequest->getContent();40 }41 42 97 public function getJsonContent($key = null, $associative = true) 43 98 { 44 $val = json_decode($this->getContent(), $associative); 99 $content = $this->request->get_body(); 100 $data = json_decode($content, $associative); 101 45 102 if (json_last_error() !== JSON_ERROR_NONE) { 46 103 return null; 47 104 } 48 105 49 if ($key ) {50 return $ val[$key];106 if ($key && isset($data[$key])) { 107 return $data[$key]; 51 108 } 52 109 53 return $ val;110 return $data; 54 111 } 55 112 56 113 public function getHeader($name, $default = null) 57 114 { 58 return $this->theRequest->headers->get($name, $default); 115 $headers = $this->request->get_headers(); 116 117 return $headers[$name][0] ?? $default; 59 118 } 60 119 61 public function toArray() 120 public function toArray(): array 62 121 { 63 return $this-> theRequest->toArray();122 return $this->getJsonContent(); 64 123 } 65 124 66 public function all( $name)125 public function all() 67 126 { 68 return $this->theRequest->query->all($name);127 return array_merge($this->request->get_query_params(), $this->request->get_body_params()); 69 128 } 70 129 71 130 public function getClientIp() 72 131 { 73 return $ this->theRequest->getClientIp();132 return $_SERVER['REMOTE_ADDR'] ?? null; 74 133 } 75 134 } -
agentwp/trunk/server/Http/WpAwpClient.php
r3174903 r3186772 3 3 namespace WpAi\AgentWp\Http; 4 4 5 use GuzzleHttp\Exception\ClientException;6 5 use WpAi\AgentWp\Modules\AwpClient\Client; 7 6 … … 22 21 } 23 22 23 /** 24 * Calls the API route by its defined name in ApiRoutes. 25 * 26 * @return ClientResponse|\WP_Error 27 */ 24 28 public function __call(string $name, array $arguments = []) 25 29 { 26 30 $params = isset($arguments[0]) ? $arguments[0] : []; 31 $response = $this->client->$name($params); 32 27 33 try { 28 $response = $this->client->$name($params); 34 if ($response->isError()) { 35 $res = $response->get(); 29 36 30 return json_decode($response->getBody()->getContents(), true); 31 } catch (ClientException $e) { 32 $error = json_decode($e->getResponse()->getBody()->getContents()); 37 $errors = isset($res['errors']) ? $res['errors'] : []; 33 38 34 return new \WP_Error( 35 $e->getCode(), 36 $error->message 37 ); 39 return $response->setErrorResponse(new \WP_Error( 40 $response->status(), 41 $res['message'], 42 ['status' => $response->status(), 'errors' => $errors] 43 )); 44 } 45 46 return $response; 38 47 } catch (\Exception $e) { 39 48 error_log($e->getMessage()); -
agentwp/trunk/server/Main.php
r3182786 r3186772 5 5 use WpAi\AgentWp\Factories\ClientFactory; 6 6 use WpAi\AgentWp\Http\WpAwpClient; 7 use WpAi\AgentWp\Services\AccountSettings;8 7 9 8 /** … … 13 12 * All providers depend on this class. 14 13 * 15 * @since 0.1.514 * @since 1.3.0 16 15 */ 17 16 class Main … … 21 20 const SLUG = 'agentwp'; 22 21 23 const PLUGIN_VERSION = '1. 2.1';22 const PLUGIN_VERSION = '1.3.0'; 24 23 25 24 const BUILD_DIR = 'build'; … … 131 130 } 132 131 133 public function accountSettings(): AccountSettings132 public function accountSettings(): array 134 133 { 135 return new AccountSettings($this->client()); 134 $res = $this->client()->siteSettingAll(); 135 if ($res->isError()) { 136 return []; 137 } 138 139 return $res->get() ?? []; 136 140 } 137 141 -
agentwp/trunk/server/Modules/AwpClient/Client.php
r3178174 r3186772 3 3 namespace WpAi\AgentWp\Modules\AwpClient; 4 4 5 use GuzzleHttp\Client as GuzzleHttpClient;6 use GuzzleHttp\Exception\GuzzleException;7 use GuzzleHttp\Psr7\Response;8 5 use WpAi\AgentWp\Main; 9 6 … … 48 45 * Calls the API route by its defined name in ApiRoutes. 49 46 * 50 * @throws RouteDoesNotExistException| GuzzleException47 * @throws RouteDoesNotExistException|array 51 48 */ 52 public function __call(string $name, array $args): Response49 public function __call(string $name, array $args): ClientResponse 53 50 { 54 51 $args = isset($args[0]) ? $args[0] : []; 55 52 extract($this->getUrl($name, $args)); 56 57 return $this->getClient()->request($method, $path, [ 58 'json' => $params, 59 ]); 53 $response = $this->makeRequest($method, $url, $params); 54 55 if (is_wp_error($response)) { 56 $errorCode = empty($response->get_error_code()) ? 500 : (int) $response->get_error_code(); 57 58 return new ClientResponse( 59 $errorCode, 60 $response->get_error_message(), 61 ); 62 } 63 64 $code = wp_remote_retrieve_response_code($response); 65 $status = empty($code) ? 500 : $code; 66 67 return new ClientResponse( 68 $status, 69 wp_remote_retrieve_body($response), 70 wp_remote_retrieve_headers($response)->getAll(), 71 ); 60 72 } 61 73 … … 171 183 } 172 184 173 public function getClient(): GuzzleHttpClient174 {175 return new GuzzleHttpClient($this->getClientOptions());176 }177 178 185 public function getRoutes(): ApiRoutes 179 186 { … … 187 194 return $this; 188 195 } 196 197 /** 198 * @return array|\WP_Error 199 */ 200 private function makeRequest(string $method, string $url, array $params = []) 201 { 202 $options = $this->getClientOptions(); 203 $method = \strtoupper($method); 204 if (in_array($method, ['POST', 'PUT', 'PATCH', 'DELETE'])) { 205 $options['body'] = json_encode($params); 206 } elseif ($method === 'GET') { 207 $url = add_query_arg(array_map('urlencode', $params), $url); 208 } 209 210 return wp_remote_request($url, array_merge($options, ['method' => $method])); 211 } 189 212 } -
agentwp/trunk/server/Page/Admin/DashboardWidget.php
r3174903 r3186772 20 20 { 21 21 wp_add_dashboard_widget( 22 $this->pageName, // Widget slug.22 'WPAgentDashboardWidget', 23 23 '<!-- @todo: SVG Logo to be embedded here --> AgentWP', 24 [$this, 'appRoot'] // Display function.24 [$this, 'appRoot'] 25 25 ); 26 26 } -
agentwp/trunk/server/Page/Admin/Settings.php
r3178174 r3186772 70 70 'site_title' => get_bloginfo('name'), 71 71 'site_icon_url' => get_site_icon_url() ?: '', 72 'plans' => $this->main->client()->plans() ,72 'plans' => $this->main->client()->plans()->get(), 73 73 ]; 74 74 } … … 88 88 'redirect_uri' => $this->main->settingsPageUrl, 89 89 'code' => $code, 90 ]) ;90 ])->get(); 91 91 92 92 if (\is_wp_error($response)) { -
agentwp/trunk/server/Registry/IndexSiteData.php
r3174903 r3186772 84 84 foreach ($info['wp-plugins-active']['fields'] as $plugin_name => $plugin_info) { 85 85 foreach ($plugin_data as $slug => $data) { 86 // Match plugin name from debug data with the one retrieved from get_plugin_data 87 if (strpos($plugin_info['label'], $data['Name']) !== false) { 86 if (empty($data['Name'])) { 87 continue; 88 } 89 90 if (! empty($plugin_info['label']) && strpos($plugin_info['label'], $data['Name']) !== false) { 88 91 $info['wp-plugins-active']['fields'][$plugin_name]['slug'] = $slug; 89 92 break; … … 137 140 private function getSetting($key) 138 141 { 139 $accountSettings = $this->main->accountSettings() ->get();142 $accountSettings = $this->main->accountSettings(); 140 143 foreach ($accountSettings as $setting) { 141 144 if ($setting['name'] === $key) { -
agentwp/trunk/server/Registry/IndexSiteDocs.php
r3174903 r3186772 52 52 $response = $this->main->client()->siteDocsStore( 53 53 $this->docs->data() 54 ) ;54 )->get(); 55 55 56 56 if (isset($response['error'])) { -
agentwp/trunk/server/Registry/Router.php
r3178174 r3186772 44 44 'test_auth' => TestAuthResponse::class, 45 45 'test_route' => [TestResponse::class, 'successfulResponse'], 46 'test_stream_forward' => [TestResponse::class, 'stream'],47 46 'accept_terms' => [UserController::class, 'acceptTerms'], 48 47 'agentwp_users' => GetUsers::class, -
agentwp/trunk/vendor/autoload.php
r3174903 r3186772 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe::getLoader();25 return ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f::getLoader(); -
agentwp/trunk/vendor/composer/autoload_classmap.php
r3174903 r3186772 7 7 8 8 return array( 9 'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',10 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 11 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',12 'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',13 'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',14 'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',15 10 ); -
agentwp/trunk/vendor/composer/autoload_psr4.php
r3174903 r3186772 7 7 8 8 return array( 9 'WpAi\\AgentWp\\' => array($baseDir . '/server'),10 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),11 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),12 'Symfony\\Component\\HttpFoundation\\' => array($vendorDir . '/symfony/http-foundation'),13 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),14 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),15 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),16 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'),17 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'),18 9 ); -
agentwp/trunk/vendor/composer/autoload_real.php
r3174903 r3186772 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe5 class ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 require __DIR__ . '/platform_check.php'; 26 27 spl_autoload_register(array('ComposerAutoloaderInita993cb505e7fbfd61e8c585589277bbe', 'loadClassLoader'), true, true); 25 spl_autoload_register(array('ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f', 'loadClassLoader'), true, true); 28 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit a993cb505e7fbfd61e8c585589277bbe', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit2104a222b5b3d64a73baf7a058ceb50f', 'loadClassLoader')); 30 28 31 29 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit a993cb505e7fbfd61e8c585589277bbe::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f::getInitializer($loader)); 33 31 34 32 $loader->register(true); 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$files;37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;40 41 require $file;42 }43 }, null, null);44 foreach ($filesToLoad as $fileIdentifier => $file) {45 $requireFile($fileIdentifier, $file);46 }47 33 48 34 return $loader; -
agentwp/trunk/vendor/composer/autoload_static.php
r3174903 r3186772 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit a993cb505e7fbfd61e8c585589277bbe7 class ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f 8 8 { 9 public static $files = array (10 '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',11 '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',12 '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',13 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',14 '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',15 'd05ecc14ff93fd612a81ec7e8ab4c2c9' => __DIR__ . '/..' . '/yahnis-elsts/plugin-update-checker/load-v5p4.php',16 );17 18 public static $prefixLengthsPsr4 = array (19 'W' =>20 array (21 'WpAi\\AgentWp\\' => 13,22 ),23 'S' =>24 array (25 'Symfony\\Polyfill\\Php80\\' => 23,26 'Symfony\\Polyfill\\Mbstring\\' => 26,27 'Symfony\\Component\\HttpFoundation\\' => 33,28 ),29 'P' =>30 array (31 'Psr\\Http\\Message\\' => 17,32 'Psr\\Http\\Client\\' => 16,33 ),34 'G' =>35 array (36 'GuzzleHttp\\Psr7\\' => 16,37 'GuzzleHttp\\Promise\\' => 19,38 'GuzzleHttp\\' => 11,39 ),40 );41 42 public static $prefixDirsPsr4 = array (43 'WpAi\\AgentWp\\' =>44 array (45 0 => __DIR__ . '/../..' . '/server',46 ),47 'Symfony\\Polyfill\\Php80\\' =>48 array (49 0 => __DIR__ . '/..' . '/symfony/polyfill-php80',50 ),51 'Symfony\\Polyfill\\Mbstring\\' =>52 array (53 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',54 ),55 'Symfony\\Component\\HttpFoundation\\' =>56 array (57 0 => __DIR__ . '/..' . '/symfony/http-foundation',58 ),59 'Psr\\Http\\Message\\' =>60 array (61 0 => __DIR__ . '/..' . '/psr/http-message/src',62 1 => __DIR__ . '/..' . '/psr/http-factory/src',63 ),64 'Psr\\Http\\Client\\' =>65 array (66 0 => __DIR__ . '/..' . '/psr/http-client/src',67 ),68 'GuzzleHttp\\Psr7\\' =>69 array (70 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',71 ),72 'GuzzleHttp\\Promise\\' =>73 array (74 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',75 ),76 'GuzzleHttp\\' =>77 array (78 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',79 ),80 );81 82 9 public static $classMap = array ( 83 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',84 10 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 85 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',86 'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',87 'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',88 'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',89 11 ); 90 12 … … 92 14 { 93 15 return \Closure::bind(function () use ($loader) { 94 $loader->prefixLengthsPsr4 = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$prefixLengthsPsr4; 95 $loader->prefixDirsPsr4 = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$prefixDirsPsr4; 96 $loader->classMap = ComposerStaticInita993cb505e7fbfd61e8c585589277bbe::$classMap; 16 $loader->classMap = ComposerStaticInit2104a222b5b3d64a73baf7a058ceb50f::$classMap; 97 17 98 18 }, null, ClassLoader::class); -
agentwp/trunk/vendor/composer/installed.json
r3174903 r3186772 1 1 { 2 "packages": [ 3 { 4 "name": "guzzlehttp/guzzle", 5 "version": "7.9.2", 6 "version_normalized": "7.9.2.0", 7 "source": { 8 "type": "git", 9 "url": "https://github.com/guzzle/guzzle.git", 10 "reference": "d281ed313b989f213357e3be1a179f02196ac99b" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", 15 "reference": "d281ed313b989f213357e3be1a179f02196ac99b", 16 "shasum": "" 17 }, 18 "require": { 19 "ext-json": "*", 20 "guzzlehttp/promises": "^1.5.3 || ^2.0.3", 21 "guzzlehttp/psr7": "^2.7.0", 22 "php": "^7.2.5 || ^8.0", 23 "psr/http-client": "^1.0", 24 "symfony/deprecation-contracts": "^2.2 || ^3.0" 25 }, 26 "provide": { 27 "psr/http-client-implementation": "1.0" 28 }, 29 "require-dev": { 30 "bamarni/composer-bin-plugin": "^1.8.2", 31 "ext-curl": "*", 32 "guzzle/client-integration-tests": "3.0.2", 33 "php-http/message-factory": "^1.1", 34 "phpunit/phpunit": "^8.5.39 || ^9.6.20", 35 "psr/log": "^1.1 || ^2.0 || ^3.0" 36 }, 37 "suggest": { 38 "ext-curl": "Required for CURL handler support", 39 "ext-intl": "Required for Internationalized Domain Name (IDN) support", 40 "psr/log": "Required for using the Log middleware" 41 }, 42 "time": "2024-07-24T11:22:20+00:00", 43 "type": "library", 44 "extra": { 45 "bamarni-bin": { 46 "bin-links": true, 47 "forward-command": false 48 } 49 }, 50 "installation-source": "dist", 51 "autoload": { 52 "files": [ 53 "src/functions_include.php" 54 ], 55 "psr-4": { 56 "GuzzleHttp\\": "src/" 57 } 58 }, 59 "notification-url": "https://packagist.org/downloads/", 60 "license": [ 61 "MIT" 62 ], 63 "authors": [ 64 { 65 "name": "Graham Campbell", 66 "email": "hello@gjcampbell.co.uk", 67 "homepage": "https://github.com/GrahamCampbell" 68 }, 69 { 70 "name": "Michael Dowling", 71 "email": "mtdowling@gmail.com", 72 "homepage": "https://github.com/mtdowling" 73 }, 74 { 75 "name": "Jeremy Lindblom", 76 "email": "jeremeamia@gmail.com", 77 "homepage": "https://github.com/jeremeamia" 78 }, 79 { 80 "name": "George Mponos", 81 "email": "gmponos@gmail.com", 82 "homepage": "https://github.com/gmponos" 83 }, 84 { 85 "name": "Tobias Nyholm", 86 "email": "tobias.nyholm@gmail.com", 87 "homepage": "https://github.com/Nyholm" 88 }, 89 { 90 "name": "Márk Sági-Kazár", 91 "email": "mark.sagikazar@gmail.com", 92 "homepage": "https://github.com/sagikazarmark" 93 }, 94 { 95 "name": "Tobias Schultze", 96 "email": "webmaster@tubo-world.de", 97 "homepage": "https://github.com/Tobion" 98 } 99 ], 100 "description": "Guzzle is a PHP HTTP client library", 101 "keywords": [ 102 "client", 103 "curl", 104 "framework", 105 "http", 106 "http client", 107 "psr-18", 108 "psr-7", 109 "rest", 110 "web service" 111 ], 112 "support": { 113 "issues": "https://github.com/guzzle/guzzle/issues", 114 "source": "https://github.com/guzzle/guzzle/tree/7.9.2" 115 }, 116 "funding": [ 117 { 118 "url": "https://github.com/GrahamCampbell", 119 "type": "github" 120 }, 121 { 122 "url": "https://github.com/Nyholm", 123 "type": "github" 124 }, 125 { 126 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", 127 "type": "tidelift" 128 } 129 ], 130 "install-path": "../guzzlehttp/guzzle" 131 }, 132 { 133 "name": "guzzlehttp/promises", 134 "version": "2.0.3", 135 "version_normalized": "2.0.3.0", 136 "source": { 137 "type": "git", 138 "url": "https://github.com/guzzle/promises.git", 139 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8" 140 }, 141 "dist": { 142 "type": "zip", 143 "url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 144 "reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8", 145 "shasum": "" 146 }, 147 "require": { 148 "php": "^7.2.5 || ^8.0" 149 }, 150 "require-dev": { 151 "bamarni/composer-bin-plugin": "^1.8.2", 152 "phpunit/phpunit": "^8.5.39 || ^9.6.20" 153 }, 154 "time": "2024-07-18T10:29:17+00:00", 155 "type": "library", 156 "extra": { 157 "bamarni-bin": { 158 "bin-links": true, 159 "forward-command": false 160 } 161 }, 162 "installation-source": "dist", 163 "autoload": { 164 "psr-4": { 165 "GuzzleHttp\\Promise\\": "src/" 166 } 167 }, 168 "notification-url": "https://packagist.org/downloads/", 169 "license": [ 170 "MIT" 171 ], 172 "authors": [ 173 { 174 "name": "Graham Campbell", 175 "email": "hello@gjcampbell.co.uk", 176 "homepage": "https://github.com/GrahamCampbell" 177 }, 178 { 179 "name": "Michael Dowling", 180 "email": "mtdowling@gmail.com", 181 "homepage": "https://github.com/mtdowling" 182 }, 183 { 184 "name": "Tobias Nyholm", 185 "email": "tobias.nyholm@gmail.com", 186 "homepage": "https://github.com/Nyholm" 187 }, 188 { 189 "name": "Tobias Schultze", 190 "email": "webmaster@tubo-world.de", 191 "homepage": "https://github.com/Tobion" 192 } 193 ], 194 "description": "Guzzle promises library", 195 "keywords": [ 196 "promise" 197 ], 198 "support": { 199 "issues": "https://github.com/guzzle/promises/issues", 200 "source": "https://github.com/guzzle/promises/tree/2.0.3" 201 }, 202 "funding": [ 203 { 204 "url": "https://github.com/GrahamCampbell", 205 "type": "github" 206 }, 207 { 208 "url": "https://github.com/Nyholm", 209 "type": "github" 210 }, 211 { 212 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", 213 "type": "tidelift" 214 } 215 ], 216 "install-path": "../guzzlehttp/promises" 217 }, 218 { 219 "name": "guzzlehttp/psr7", 220 "version": "2.7.0", 221 "version_normalized": "2.7.0.0", 222 "source": { 223 "type": "git", 224 "url": "https://github.com/guzzle/psr7.git", 225 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" 226 }, 227 "dist": { 228 "type": "zip", 229 "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 230 "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", 231 "shasum": "" 232 }, 233 "require": { 234 "php": "^7.2.5 || ^8.0", 235 "psr/http-factory": "^1.0", 236 "psr/http-message": "^1.1 || ^2.0", 237 "ralouphie/getallheaders": "^3.0" 238 }, 239 "provide": { 240 "psr/http-factory-implementation": "1.0", 241 "psr/http-message-implementation": "1.0" 242 }, 243 "require-dev": { 244 "bamarni/composer-bin-plugin": "^1.8.2", 245 "http-interop/http-factory-tests": "0.9.0", 246 "phpunit/phpunit": "^8.5.39 || ^9.6.20" 247 }, 248 "suggest": { 249 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 250 }, 251 "time": "2024-07-18T11:15:46+00:00", 252 "type": "library", 253 "extra": { 254 "bamarni-bin": { 255 "bin-links": true, 256 "forward-command": false 257 } 258 }, 259 "installation-source": "dist", 260 "autoload": { 261 "psr-4": { 262 "GuzzleHttp\\Psr7\\": "src/" 263 } 264 }, 265 "notification-url": "https://packagist.org/downloads/", 266 "license": [ 267 "MIT" 268 ], 269 "authors": [ 270 { 271 "name": "Graham Campbell", 272 "email": "hello@gjcampbell.co.uk", 273 "homepage": "https://github.com/GrahamCampbell" 274 }, 275 { 276 "name": "Michael Dowling", 277 "email": "mtdowling@gmail.com", 278 "homepage": "https://github.com/mtdowling" 279 }, 280 { 281 "name": "George Mponos", 282 "email": "gmponos@gmail.com", 283 "homepage": "https://github.com/gmponos" 284 }, 285 { 286 "name": "Tobias Nyholm", 287 "email": "tobias.nyholm@gmail.com", 288 "homepage": "https://github.com/Nyholm" 289 }, 290 { 291 "name": "Márk Sági-Kazár", 292 "email": "mark.sagikazar@gmail.com", 293 "homepage": "https://github.com/sagikazarmark" 294 }, 295 { 296 "name": "Tobias Schultze", 297 "email": "webmaster@tubo-world.de", 298 "homepage": "https://github.com/Tobion" 299 }, 300 { 301 "name": "Márk Sági-Kazár", 302 "email": "mark.sagikazar@gmail.com", 303 "homepage": "https://sagikazarmark.hu" 304 } 305 ], 306 "description": "PSR-7 message implementation that also provides common utility methods", 307 "keywords": [ 308 "http", 309 "message", 310 "psr-7", 311 "request", 312 "response", 313 "stream", 314 "uri", 315 "url" 316 ], 317 "support": { 318 "issues": "https://github.com/guzzle/psr7/issues", 319 "source": "https://github.com/guzzle/psr7/tree/2.7.0" 320 }, 321 "funding": [ 322 { 323 "url": "https://github.com/GrahamCampbell", 324 "type": "github" 325 }, 326 { 327 "url": "https://github.com/Nyholm", 328 "type": "github" 329 }, 330 { 331 "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", 332 "type": "tidelift" 333 } 334 ], 335 "install-path": "../guzzlehttp/psr7" 336 }, 337 { 338 "name": "psr/http-client", 339 "version": "1.0.3", 340 "version_normalized": "1.0.3.0", 341 "source": { 342 "type": "git", 343 "url": "https://github.com/php-fig/http-client.git", 344 "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" 345 }, 346 "dist": { 347 "type": "zip", 348 "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", 349 "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", 350 "shasum": "" 351 }, 352 "require": { 353 "php": "^7.0 || ^8.0", 354 "psr/http-message": "^1.0 || ^2.0" 355 }, 356 "time": "2023-09-23T14:17:50+00:00", 357 "type": "library", 358 "extra": { 359 "branch-alias": { 360 "dev-master": "1.0.x-dev" 361 } 362 }, 363 "installation-source": "dist", 364 "autoload": { 365 "psr-4": { 366 "Psr\\Http\\Client\\": "src/" 367 } 368 }, 369 "notification-url": "https://packagist.org/downloads/", 370 "license": [ 371 "MIT" 372 ], 373 "authors": [ 374 { 375 "name": "PHP-FIG", 376 "homepage": "https://www.php-fig.org/" 377 } 378 ], 379 "description": "Common interface for HTTP clients", 380 "homepage": "https://github.com/php-fig/http-client", 381 "keywords": [ 382 "http", 383 "http-client", 384 "psr", 385 "psr-18" 386 ], 387 "support": { 388 "source": "https://github.com/php-fig/http-client" 389 }, 390 "install-path": "../psr/http-client" 391 }, 392 { 393 "name": "psr/http-factory", 394 "version": "1.1.0", 395 "version_normalized": "1.1.0.0", 396 "source": { 397 "type": "git", 398 "url": "https://github.com/php-fig/http-factory.git", 399 "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" 400 }, 401 "dist": { 402 "type": "zip", 403 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", 404 "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", 405 "shasum": "" 406 }, 407 "require": { 408 "php": ">=7.1", 409 "psr/http-message": "^1.0 || ^2.0" 410 }, 411 "time": "2024-04-15T12:06:14+00:00", 412 "type": "library", 413 "extra": { 414 "branch-alias": { 415 "dev-master": "1.0.x-dev" 416 } 417 }, 418 "installation-source": "dist", 419 "autoload": { 420 "psr-4": { 421 "Psr\\Http\\Message\\": "src/" 422 } 423 }, 424 "notification-url": "https://packagist.org/downloads/", 425 "license": [ 426 "MIT" 427 ], 428 "authors": [ 429 { 430 "name": "PHP-FIG", 431 "homepage": "https://www.php-fig.org/" 432 } 433 ], 434 "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", 435 "keywords": [ 436 "factory", 437 "http", 438 "message", 439 "psr", 440 "psr-17", 441 "psr-7", 442 "request", 443 "response" 444 ], 445 "support": { 446 "source": "https://github.com/php-fig/http-factory" 447 }, 448 "install-path": "../psr/http-factory" 449 }, 450 { 451 "name": "psr/http-message", 452 "version": "2.0", 453 "version_normalized": "2.0.0.0", 454 "source": { 455 "type": "git", 456 "url": "https://github.com/php-fig/http-message.git", 457 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" 458 }, 459 "dist": { 460 "type": "zip", 461 "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", 462 "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", 463 "shasum": "" 464 }, 465 "require": { 466 "php": "^7.2 || ^8.0" 467 }, 468 "time": "2023-04-04T09:54:51+00:00", 469 "type": "library", 470 "extra": { 471 "branch-alias": { 472 "dev-master": "2.0.x-dev" 473 } 474 }, 475 "installation-source": "dist", 476 "autoload": { 477 "psr-4": { 478 "Psr\\Http\\Message\\": "src/" 479 } 480 }, 481 "notification-url": "https://packagist.org/downloads/", 482 "license": [ 483 "MIT" 484 ], 485 "authors": [ 486 { 487 "name": "PHP-FIG", 488 "homepage": "https://www.php-fig.org/" 489 } 490 ], 491 "description": "Common interface for HTTP messages", 492 "homepage": "https://github.com/php-fig/http-message", 493 "keywords": [ 494 "http", 495 "http-message", 496 "psr", 497 "psr-7", 498 "request", 499 "response" 500 ], 501 "support": { 502 "source": "https://github.com/php-fig/http-message/tree/2.0" 503 }, 504 "install-path": "../psr/http-message" 505 }, 506 { 507 "name": "ralouphie/getallheaders", 508 "version": "3.0.3", 509 "version_normalized": "3.0.3.0", 510 "source": { 511 "type": "git", 512 "url": "https://github.com/ralouphie/getallheaders.git", 513 "reference": "120b605dfeb996808c31b6477290a714d356e822" 514 }, 515 "dist": { 516 "type": "zip", 517 "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", 518 "reference": "120b605dfeb996808c31b6477290a714d356e822", 519 "shasum": "" 520 }, 521 "require": { 522 "php": ">=5.6" 523 }, 524 "require-dev": { 525 "php-coveralls/php-coveralls": "^2.1", 526 "phpunit/phpunit": "^5 || ^6.5" 527 }, 528 "time": "2019-03-08T08:55:37+00:00", 529 "type": "library", 530 "installation-source": "dist", 531 "autoload": { 532 "files": [ 533 "src/getallheaders.php" 534 ] 535 }, 536 "notification-url": "https://packagist.org/downloads/", 537 "license": [ 538 "MIT" 539 ], 540 "authors": [ 541 { 542 "name": "Ralph Khattar", 543 "email": "ralph.khattar@gmail.com" 544 } 545 ], 546 "description": "A polyfill for getallheaders.", 547 "support": { 548 "issues": "https://github.com/ralouphie/getallheaders/issues", 549 "source": "https://github.com/ralouphie/getallheaders/tree/develop" 550 }, 551 "install-path": "../ralouphie/getallheaders" 552 }, 553 { 554 "name": "symfony/deprecation-contracts", 555 "version": "v2.5.3", 556 "version_normalized": "2.5.3.0", 557 "source": { 558 "type": "git", 559 "url": "https://github.com/symfony/deprecation-contracts.git", 560 "reference": "80d075412b557d41002320b96a096ca65aa2c98d" 561 }, 562 "dist": { 563 "type": "zip", 564 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", 565 "reference": "80d075412b557d41002320b96a096ca65aa2c98d", 566 "shasum": "" 567 }, 568 "require": { 569 "php": ">=7.1" 570 }, 571 "time": "2023-01-24T14:02:46+00:00", 572 "type": "library", 573 "extra": { 574 "branch-alias": { 575 "dev-main": "2.5-dev" 576 }, 577 "thanks": { 578 "name": "symfony/contracts", 579 "url": "https://github.com/symfony/contracts" 580 } 581 }, 582 "installation-source": "dist", 583 "autoload": { 584 "files": [ 585 "function.php" 586 ] 587 }, 588 "notification-url": "https://packagist.org/downloads/", 589 "license": [ 590 "MIT" 591 ], 592 "authors": [ 593 { 594 "name": "Nicolas Grekas", 595 "email": "p@tchwork.com" 596 }, 597 { 598 "name": "Symfony Community", 599 "homepage": "https://symfony.com/contributors" 600 } 601 ], 602 "description": "A generic function and convention to trigger deprecation notices", 603 "homepage": "https://symfony.com", 604 "support": { 605 "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" 606 }, 607 "funding": [ 608 { 609 "url": "https://symfony.com/sponsor", 610 "type": "custom" 611 }, 612 { 613 "url": "https://github.com/fabpot", 614 "type": "github" 615 }, 616 { 617 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 618 "type": "tidelift" 619 } 620 ], 621 "install-path": "../symfony/deprecation-contracts" 622 }, 623 { 624 "name": "symfony/http-foundation", 625 "version": "v5.4.44", 626 "version_normalized": "5.4.44.0", 627 "source": { 628 "type": "git", 629 "url": "https://github.com/symfony/http-foundation.git", 630 "reference": "ae0d217e5932aa0b70ddb4cf7822cc76d48aee53" 631 }, 632 "dist": { 633 "type": "zip", 634 "url": "https://api.github.com/repos/symfony/http-foundation/zipball/ae0d217e5932aa0b70ddb4cf7822cc76d48aee53", 635 "reference": "ae0d217e5932aa0b70ddb4cf7822cc76d48aee53", 636 "shasum": "" 637 }, 638 "require": { 639 "php": ">=7.2.5", 640 "symfony/deprecation-contracts": "^2.1|^3", 641 "symfony/polyfill-mbstring": "~1.1", 642 "symfony/polyfill-php80": "^1.16" 643 }, 644 "require-dev": { 645 "predis/predis": "^1.0|^2.0", 646 "symfony/cache": "^4.4|^5.0|^6.0", 647 "symfony/dependency-injection": "^5.4|^6.0", 648 "symfony/expression-language": "^4.4|^5.0|^6.0", 649 "symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4", 650 "symfony/mime": "^4.4|^5.0|^6.0", 651 "symfony/rate-limiter": "^5.2|^6.0" 652 }, 653 "suggest": { 654 "symfony/mime": "To use the file extension guesser" 655 }, 656 "time": "2024-09-15T07:55:06+00:00", 657 "type": "library", 658 "installation-source": "dist", 659 "autoload": { 660 "psr-4": { 661 "Symfony\\Component\\HttpFoundation\\": "" 662 }, 663 "exclude-from-classmap": [ 664 "/Tests/" 665 ] 666 }, 667 "notification-url": "https://packagist.org/downloads/", 668 "license": [ 669 "MIT" 670 ], 671 "authors": [ 672 { 673 "name": "Fabien Potencier", 674 "email": "fabien@symfony.com" 675 }, 676 { 677 "name": "Symfony Community", 678 "homepage": "https://symfony.com/contributors" 679 } 680 ], 681 "description": "Defines an object-oriented layer for the HTTP specification", 682 "homepage": "https://symfony.com", 683 "support": { 684 "source": "https://github.com/symfony/http-foundation/tree/v5.4.44" 685 }, 686 "funding": [ 687 { 688 "url": "https://symfony.com/sponsor", 689 "type": "custom" 690 }, 691 { 692 "url": "https://github.com/fabpot", 693 "type": "github" 694 }, 695 { 696 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 697 "type": "tidelift" 698 } 699 ], 700 "install-path": "../symfony/http-foundation" 701 }, 702 { 703 "name": "symfony/polyfill-mbstring", 704 "version": "v1.31.0", 705 "version_normalized": "1.31.0.0", 706 "source": { 707 "type": "git", 708 "url": "https://github.com/symfony/polyfill-mbstring.git", 709 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 710 }, 711 "dist": { 712 "type": "zip", 713 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", 714 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 715 "shasum": "" 716 }, 717 "require": { 718 "php": ">=7.2" 719 }, 720 "provide": { 721 "ext-mbstring": "*" 722 }, 723 "suggest": { 724 "ext-mbstring": "For best performance" 725 }, 726 "time": "2024-09-09T11:45:10+00:00", 727 "type": "library", 728 "extra": { 729 "thanks": { 730 "name": "symfony/polyfill", 731 "url": "https://github.com/symfony/polyfill" 732 } 733 }, 734 "installation-source": "dist", 735 "autoload": { 736 "files": [ 737 "bootstrap.php" 738 ], 739 "psr-4": { 740 "Symfony\\Polyfill\\Mbstring\\": "" 741 } 742 }, 743 "notification-url": "https://packagist.org/downloads/", 744 "license": [ 745 "MIT" 746 ], 747 "authors": [ 748 { 749 "name": "Nicolas Grekas", 750 "email": "p@tchwork.com" 751 }, 752 { 753 "name": "Symfony Community", 754 "homepage": "https://symfony.com/contributors" 755 } 756 ], 757 "description": "Symfony polyfill for the Mbstring extension", 758 "homepage": "https://symfony.com", 759 "keywords": [ 760 "compatibility", 761 "mbstring", 762 "polyfill", 763 "portable", 764 "shim" 765 ], 766 "support": { 767 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" 768 }, 769 "funding": [ 770 { 771 "url": "https://symfony.com/sponsor", 772 "type": "custom" 773 }, 774 { 775 "url": "https://github.com/fabpot", 776 "type": "github" 777 }, 778 { 779 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 780 "type": "tidelift" 781 } 782 ], 783 "install-path": "../symfony/polyfill-mbstring" 784 }, 785 { 786 "name": "symfony/polyfill-php80", 787 "version": "v1.31.0", 788 "version_normalized": "1.31.0.0", 789 "source": { 790 "type": "git", 791 "url": "https://github.com/symfony/polyfill-php80.git", 792 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" 793 }, 794 "dist": { 795 "type": "zip", 796 "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 797 "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", 798 "shasum": "" 799 }, 800 "require": { 801 "php": ">=7.2" 802 }, 803 "time": "2024-09-09T11:45:10+00:00", 804 "type": "library", 805 "extra": { 806 "thanks": { 807 "name": "symfony/polyfill", 808 "url": "https://github.com/symfony/polyfill" 809 } 810 }, 811 "installation-source": "dist", 812 "autoload": { 813 "files": [ 814 "bootstrap.php" 815 ], 816 "psr-4": { 817 "Symfony\\Polyfill\\Php80\\": "" 818 }, 819 "classmap": [ 820 "Resources/stubs" 821 ] 822 }, 823 "notification-url": "https://packagist.org/downloads/", 824 "license": [ 825 "MIT" 826 ], 827 "authors": [ 828 { 829 "name": "Ion Bazan", 830 "email": "ion.bazan@gmail.com" 831 }, 832 { 833 "name": "Nicolas Grekas", 834 "email": "p@tchwork.com" 835 }, 836 { 837 "name": "Symfony Community", 838 "homepage": "https://symfony.com/contributors" 839 } 840 ], 841 "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", 842 "homepage": "https://symfony.com", 843 "keywords": [ 844 "compatibility", 845 "polyfill", 846 "portable", 847 "shim" 848 ], 849 "support": { 850 "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" 851 }, 852 "funding": [ 853 { 854 "url": "https://symfony.com/sponsor", 855 "type": "custom" 856 }, 857 { 858 "url": "https://github.com/fabpot", 859 "type": "github" 860 }, 861 { 862 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 863 "type": "tidelift" 864 } 865 ], 866 "install-path": "../symfony/polyfill-php80" 867 }, 868 { 869 "name": "yahnis-elsts/plugin-update-checker", 870 "version": "v5.4", 871 "version_normalized": "5.4.0.0", 872 "source": { 873 "type": "git", 874 "url": "https://github.com/YahnisElsts/plugin-update-checker.git", 875 "reference": "e8e53e6d98e37fa7c895c93417f52e3775494715" 876 }, 877 "dist": { 878 "type": "zip", 879 "url": "https://api.github.com/repos/YahnisElsts/plugin-update-checker/zipball/e8e53e6d98e37fa7c895c93417f52e3775494715", 880 "reference": "e8e53e6d98e37fa7c895c93417f52e3775494715", 881 "shasum": "" 882 }, 883 "require": { 884 "ext-json": "*", 885 "php": ">=5.6.20" 886 }, 887 "time": "2024-02-24T09:56:49+00:00", 888 "type": "library", 889 "installation-source": "dist", 890 "autoload": { 891 "files": [ 892 "load-v5p4.php" 893 ] 894 }, 895 "notification-url": "https://packagist.org/downloads/", 896 "license": [ 897 "MIT" 898 ], 899 "authors": [ 900 { 901 "name": "Yahnis Elsts", 902 "email": "whiteshadow@w-shadow.com", 903 "homepage": "https://w-shadow.com/", 904 "role": "Developer" 905 } 906 ], 907 "description": "A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.", 908 "homepage": "https://github.com/YahnisElsts/plugin-update-checker/", 909 "keywords": [ 910 "automatic updates", 911 "plugin updates", 912 "theme updates", 913 "wordpress" 914 ], 915 "support": { 916 "issues": "https://github.com/YahnisElsts/plugin-update-checker/issues", 917 "source": "https://github.com/YahnisElsts/plugin-update-checker/tree/v5.4" 918 }, 919 "install-path": "../yahnis-elsts/plugin-update-checker" 920 } 921 ], 2 "packages": [], 922 3 "dev": false, 923 4 "dev-package-names": [] -
agentwp/trunk/vendor/composer/installed.php
r3182786 r3186772 2 2 'root' => array( 3 3 'name' => 'wpai/agentwp', 4 'pretty_version' => 'v1. 2.1',5 'version' => '1. 2.1.0',6 'reference' => ' bbfd82b2bb1b2adc21d62c0034dd7406b29126dd',4 'pretty_version' => 'v1.3.0', 5 'version' => '1.3.0.0', 6 'reference' => 'a0baf50a6a3627475142230f5d43b6ab83ff0483', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 11 11 ), 12 12 'versions' => array( 13 'guzzlehttp/guzzle' => array(14 'pretty_version' => '7.9.2',15 'version' => '7.9.2.0',16 'reference' => 'd281ed313b989f213357e3be1a179f02196ac99b',17 'type' => 'library',18 'install_path' => __DIR__ . '/../guzzlehttp/guzzle',19 'aliases' => array(),20 'dev_requirement' => false,21 ),22 'guzzlehttp/promises' => array(23 'pretty_version' => '2.0.3',24 'version' => '2.0.3.0',25 'reference' => '6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8',26 'type' => 'library',27 'install_path' => __DIR__ . '/../guzzlehttp/promises',28 'aliases' => array(),29 'dev_requirement' => false,30 ),31 'guzzlehttp/psr7' => array(32 'pretty_version' => '2.7.0',33 'version' => '2.7.0.0',34 'reference' => 'a70f5c95fb43bc83f07c9c948baa0dc1829bf201',35 'type' => 'library',36 'install_path' => __DIR__ . '/../guzzlehttp/psr7',37 'aliases' => array(),38 'dev_requirement' => false,39 ),40 'psr/http-client' => array(41 'pretty_version' => '1.0.3',42 'version' => '1.0.3.0',43 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90',44 'type' => 'library',45 'install_path' => __DIR__ . '/../psr/http-client',46 'aliases' => array(),47 'dev_requirement' => false,48 ),49 'psr/http-client-implementation' => array(50 'dev_requirement' => false,51 'provided' => array(52 0 => '1.0',53 ),54 ),55 'psr/http-factory' => array(56 'pretty_version' => '1.1.0',57 'version' => '1.1.0.0',58 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',59 'type' => 'library',60 'install_path' => __DIR__ . '/../psr/http-factory',61 'aliases' => array(),62 'dev_requirement' => false,63 ),64 'psr/http-factory-implementation' => array(65 'dev_requirement' => false,66 'provided' => array(67 0 => '1.0',68 ),69 ),70 'psr/http-message' => array(71 'pretty_version' => '2.0',72 'version' => '2.0.0.0',73 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71',74 'type' => 'library',75 'install_path' => __DIR__ . '/../psr/http-message',76 'aliases' => array(),77 'dev_requirement' => false,78 ),79 'psr/http-message-implementation' => array(80 'dev_requirement' => false,81 'provided' => array(82 0 => '1.0',83 ),84 ),85 'ralouphie/getallheaders' => array(86 'pretty_version' => '3.0.3',87 'version' => '3.0.3.0',88 'reference' => '120b605dfeb996808c31b6477290a714d356e822',89 'type' => 'library',90 'install_path' => __DIR__ . '/../ralouphie/getallheaders',91 'aliases' => array(),92 'dev_requirement' => false,93 ),94 'symfony/deprecation-contracts' => array(95 'pretty_version' => 'v2.5.3',96 'version' => '2.5.3.0',97 'reference' => '80d075412b557d41002320b96a096ca65aa2c98d',98 'type' => 'library',99 'install_path' => __DIR__ . '/../symfony/deprecation-contracts',100 'aliases' => array(),101 'dev_requirement' => false,102 ),103 'symfony/http-foundation' => array(104 'pretty_version' => 'v5.4.44',105 'version' => '5.4.44.0',106 'reference' => 'ae0d217e5932aa0b70ddb4cf7822cc76d48aee53',107 'type' => 'library',108 'install_path' => __DIR__ . '/../symfony/http-foundation',109 'aliases' => array(),110 'dev_requirement' => false,111 ),112 'symfony/polyfill-mbstring' => array(113 'pretty_version' => 'v1.31.0',114 'version' => '1.31.0.0',115 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341',116 'type' => 'library',117 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',118 'aliases' => array(),119 'dev_requirement' => false,120 ),121 'symfony/polyfill-php80' => array(122 'pretty_version' => 'v1.31.0',123 'version' => '1.31.0.0',124 'reference' => '60328e362d4c2c802a54fcbf04f9d3fb892b4cf8',125 'type' => 'library',126 'install_path' => __DIR__ . '/../symfony/polyfill-php80',127 'aliases' => array(),128 'dev_requirement' => false,129 ),130 13 'wpai/agentwp' => array( 131 'pretty_version' => 'v1. 2.1',132 'version' => '1. 2.1.0',133 'reference' => ' bbfd82b2bb1b2adc21d62c0034dd7406b29126dd',14 'pretty_version' => 'v1.3.0', 15 'version' => '1.3.0.0', 16 'reference' => 'a0baf50a6a3627475142230f5d43b6ab83ff0483', 134 17 'type' => 'library', 135 18 'install_path' => __DIR__ . '/../../', … … 137 20 'dev_requirement' => false, 138 21 ), 139 'yahnis-elsts/plugin-update-checker' => array(140 'pretty_version' => 'v5.4',141 'version' => '5.4.0.0',142 'reference' => 'e8e53e6d98e37fa7c895c93417f52e3775494715',143 'type' => 'library',144 'install_path' => __DIR__ . '/../yahnis-elsts/plugin-update-checker',145 'aliases' => array(),146 'dev_requirement' => false,147 ),148 22 ), 149 23 );
Note: See TracChangeset
for help on using the changeset viewer.