@omp-provider-capabilities/xai 0.1.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -23
  3. package/package.json +17 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Enver Francisco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -10,36 +10,30 @@ xAI provider features for OMP: batch execution, agentic tools, and Agent SDK wra
10
10
 
11
11
  ## Installation
12
12
 
13
- ```bash
14
- npm install @omp-provider-capabilities/xai @omp-provider-capabilities/core
15
- ```
13
+ Install via OMP plugin manager:
16
14
 
17
- ## Usage
15
+ ```sh
16
+ omp plugin install @omp-provider-capabilities/xai
17
+ ```
18
18
 
19
- ```typescript
20
- import { xAIBatchClient } from "@omp-provider-capabilities/xai";
19
+ Install from GitHub:
21
20
 
22
- const batch = new xAIBatchClient({ apiKey: process.env.XAI_API_KEY });
21
+ ```sh
22
+ omp plugin install https://github.com/blyzer/omp-provider-capabilities/tree/main/packages/xai
23
+ ```
23
24
 
24
- // Submit batch job
25
- const job = await batch.create({
26
- model: "grok-3",
27
- requests: [{ prompt: "Search and summarize..." }]
28
- });
25
+ Link a local checkout:
29
26
 
30
- // Poll for results
31
- const results = await batch.waitForCompletion(job.id);
27
+ ```sh
28
+ omp plugin link /path/to/omp-provider-capabilities/packages/xai
32
29
  ```
33
30
 
34
- ## Agentic Tools
31
+ Load the extension source for one invocation:
35
32
 
36
- - **Web Search**: Real-time web search via Responses API
37
- - **X Search**: Search X (Twitter) content
38
- - **Code Execution**: Execute code in sandboxed environment
39
- - **Collections Search**: Search X collections
33
+ ```sh
34
+ omp -e /path/to/omp-provider-capabilities/packages/xai/src/index.ts
35
+ ```
40
36
 
41
- ## Batch API
37
+ ## License
42
38
 
43
- - **Endpoint**: `/v1/batches` (file upload + JSONL)
44
- - **Discount**: 20% off real-time pricing
45
- - **Status**: Stable
39
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omp-provider-capabilities/xai",
3
- "version": "0.1.2",
3
+ "version": "0.3.0",
4
4
  "description": "xAI provider extension: batch execution, agentic tools (web browse, X search, code execution).",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -17,9 +17,22 @@
17
17
  "omp": {
18
18
  "extensions": [
19
19
  "./src/index.ts"
20
- ]
20
+ ],
21
+ "settings": {
22
+ "batch.enabled": {
23
+ "type": "boolean",
24
+ "default": true,
25
+ "description": "Enable xAI batch API"
26
+ },
27
+ "tools.enabled": {
28
+ "type": "boolean",
29
+ "default": true,
30
+ "description": "Enable xAI agentic tools"
31
+ }
32
+ }
21
33
  },
22
34
  "files": [
35
+ "LICENSE",
23
36
  "src/",
24
37
  "README.md",
25
38
  "!src/**/*.test.ts",
@@ -33,5 +46,6 @@
33
46
  "omp-plugin",
34
47
  "omp-extension",
35
48
  "oh-my-pi"
36
- ]
49
+ ],
50
+ "license": "MIT"
37
51
  }