@marktoflow/integrations 2.0.3 → 2.0.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -16
- package/dist/adapters/claude-agent-types.d.ts +28 -28
- package/dist/adapters/claude-agent-workflow.d.ts +16 -16
- package/dist/adapters/codex-types.d.ts +6 -6
- package/dist/adapters/codex-workflow.d.ts +16 -16
- package/dist/adapters/github-copilot-types.d.ts +21 -21
- package/dist/adapters/github-copilot-workflow.d.ts +12 -12
- package/dist/adapters/ollama-types.d.ts +42 -42
- package/dist/adapters/openai-types.d.ts +552 -33
- package/dist/adapters/openai-types.d.ts.map +1 -1
- package/dist/adapters/openai-types.js +58 -5
- package/dist/adapters/openai-types.js.map +1 -1
- package/dist/adapters/openai.d.ts +59 -5
- package/dist/adapters/openai.d.ts.map +1 -1
- package/dist/adapters/openai.js +211 -32
- package/dist/adapters/openai.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/reliability/circuit-breaker.d.ts +67 -0
- package/dist/reliability/circuit-breaker.d.ts.map +1 -0
- package/dist/reliability/circuit-breaker.js +164 -0
- package/dist/reliability/circuit-breaker.js.map +1 -0
- package/dist/reliability/index.d.ts +3 -1
- package/dist/reliability/index.d.ts.map +1 -1
- package/dist/reliability/index.js +3 -1
- package/dist/reliability/index.js.map +1 -1
- package/dist/reliability/rate-limiter.d.ts +62 -0
- package/dist/reliability/rate-limiter.d.ts.map +1 -0
- package/dist/reliability/rate-limiter.js +194 -0
- package/dist/reliability/rate-limiter.js.map +1 -0
- package/dist/reliability/wrapper.d.ts +9 -0
- package/dist/reliability/wrapper.d.ts.map +1 -1
- package/dist/reliability/wrapper.js +62 -12
- package/dist/reliability/wrapper.js.map +1 -1
- package/dist/services/base-client.d.ts.map +1 -1
- package/dist/services/base-client.js +25 -3
- package/dist/services/base-client.js.map +1 -1
- package/dist/services/discord.d.ts.map +1 -1
- package/dist/services/discord.js +6 -0
- package/dist/services/discord.js.map +1 -1
- package/dist/services/gmail.d.ts.map +1 -1
- package/dist/services/gmail.js +65 -47
- package/dist/services/gmail.js.map +1 -1
- package/dist/services/google-calendar.js +9 -5
- package/dist/services/google-calendar.js.map +1 -1
- package/dist/services/google-docs.js +9 -5
- package/dist/services/google-docs.js.map +1 -1
- package/dist/services/google-drive.js +9 -5
- package/dist/services/google-drive.js.map +1 -1
- package/dist/services/google-sheets.js +9 -5
- package/dist/services/google-sheets.js.map +1 -1
- package/dist/services/http.d.ts.map +1 -1
- package/dist/services/http.js +15 -1
- package/dist/services/http.js.map +1 -1
- package/dist/services/mailchimp.d.ts.map +1 -1
- package/dist/services/mailchimp.js +3 -0
- package/dist/services/mailchimp.js.map +1 -1
- package/dist/services/outlook.d.ts.map +1 -1
- package/dist/services/outlook.js +14 -11
- package/dist/services/outlook.js.map +1 -1
- package/dist/services/playwright/client.d.ts +110 -0
- package/dist/services/playwright/client.d.ts.map +1 -0
- package/dist/services/playwright/client.js +690 -0
- package/dist/services/playwright/client.js.map +1 -0
- package/dist/services/playwright/index.d.ts +7 -0
- package/dist/services/playwright/index.d.ts.map +1 -0
- package/dist/services/playwright/index.js +7 -0
- package/dist/services/playwright/index.js.map +1 -0
- package/dist/services/playwright/initializer.d.ts +24 -0
- package/dist/services/playwright/initializer.d.ts.map +1 -0
- package/dist/services/playwright/initializer.js +99 -0
- package/dist/services/playwright/initializer.js.map +1 -0
- package/dist/services/playwright/types.d.ts +270 -0
- package/dist/services/playwright/types.d.ts.map +1 -0
- package/dist/services/playwright/types.js +5 -0
- package/dist/services/playwright/types.js.map +1 -0
- package/dist/services/playwright.d.ts +3 -675
- package/dist/services/playwright.d.ts.map +1 -1
- package/dist/services/playwright.js +3 -1138
- package/dist/services/playwright.js.map +1 -1
- package/dist/services/rss.d.ts +57 -0
- package/dist/services/rss.d.ts.map +1 -0
- package/dist/services/rss.js +190 -0
- package/dist/services/rss.js.map +1 -0
- package/dist/services/shopify.d.ts.map +1 -1
- package/dist/services/shopify.js +3 -0
- package/dist/services/shopify.js.map +1 -1
- package/dist/services/trello.d.ts.map +1 -1
- package/dist/services/trello.js +7 -1
- package/dist/services/trello.js.map +1 -1
- package/package.json +28 -7
- package/dist/adapters/claude-code.d.ts +0 -34
- package/dist/adapters/claude-code.d.ts.map +0 -1
- package/dist/adapters/claude-code.js +0 -89
- package/dist/adapters/claude-code.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @marktoflow/integrations
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 39 native service integrations and AI agent adapters with tool calling, structured output, and local LLM support.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@marktoflow/integrations)
|
|
6
6
|
|
|
7
|
-
Part of [marktoflow](
|
|
7
|
+
Part of [marktoflow](https://github.com/marktoflow/marktoflow) — open-source AI workflow automation.
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
@@ -42,13 +42,73 @@ await registry.executeAction('slack', 'chat.postMessage', slack, { channel: '#ge
|
|
|
42
42
|
|
|
43
43
|
## Features
|
|
44
44
|
|
|
45
|
-
- **
|
|
46
|
-
- **
|
|
45
|
+
- **39 native SDK integrations** with full TypeScript types
|
|
46
|
+
- **7 AI agent adapters** — OpenAI, Claude, Copilot, Codex, OpenCode, Ollama + any OpenAI-compatible endpoint
|
|
47
|
+
- **Tool calling / function calling** — Agentic loops where AI models invoke tools autonomously
|
|
48
|
+
- **Structured output** — JSON mode and JSON Schema validation for reliable AI responses
|
|
49
|
+
- **Local LLM support** — llama.cpp, VLLM, LM Studio, LocalAI with auto model detection
|
|
47
50
|
- **Input validation** via Zod schemas for every action
|
|
48
51
|
- **Automatic retry** with circuit breakers and exponential backoff
|
|
49
52
|
- **Credential encryption** (AES-256-GCM) and OAuth token refresh
|
|
50
53
|
- **256+ contract tests** across 28 services (MSW-based, no API keys needed)
|
|
51
54
|
|
|
55
|
+
## AI Agent Adapters
|
|
56
|
+
|
|
57
|
+
| Agent | Setup | Tool Calling | Structured Output |
|
|
58
|
+
|-------|-------|:------------:|:-----------------:|
|
|
59
|
+
| **OpenAI** | `OPENAI_API_KEY` | ✅ | ✅ |
|
|
60
|
+
| **Local LLM** (llama.cpp, VLLM, LM Studio) | `base_url` + `api_key: dummy` | ✅ | ✅ |
|
|
61
|
+
| **GitHub Copilot** | `copilot auth login` | ✅ | — |
|
|
62
|
+
| **Claude Agent** | Claude CLI or `ANTHROPIC_API_KEY` | ✅ | — |
|
|
63
|
+
| **OpenAI Codex** | Codex CLI | ✅ | — |
|
|
64
|
+
| **OpenCode** | `opencode /connect` | ✅ | — |
|
|
65
|
+
| **Ollama** | Local install | ✅ | — |
|
|
66
|
+
|
|
67
|
+
### OpenAI / Local LLM Methods
|
|
68
|
+
|
|
69
|
+
| Method | Description |
|
|
70
|
+
|--------|-------------|
|
|
71
|
+
| `ai.generate` | Simple text generation |
|
|
72
|
+
| `ai.chatCompletion` | Full chat completion with tools and response_format |
|
|
73
|
+
| `ai.chatWithTools` | Agentic tool-calling loop (model calls tools → execute → repeat) |
|
|
74
|
+
| `ai.generateJSON` | Chat with JSON mode — returns parsed JSON |
|
|
75
|
+
| `ai.generateStructured` | Chat with JSON Schema validation |
|
|
76
|
+
| `ai.chatStream` | Streaming chat completion |
|
|
77
|
+
| `ai.embeddings` | Generate text embeddings |
|
|
78
|
+
| `ai.listModels` | List available models |
|
|
79
|
+
| `ai.autoDetectModel` | Auto-detect model from server |
|
|
80
|
+
|
|
81
|
+
### Tool Calling Example
|
|
82
|
+
|
|
83
|
+
```yaml
|
|
84
|
+
tools:
|
|
85
|
+
ai:
|
|
86
|
+
sdk: openai
|
|
87
|
+
auth:
|
|
88
|
+
base_url: http://localhost:8000/v1 # llama.cpp, VLLM, etc.
|
|
89
|
+
api_key: dummy
|
|
90
|
+
options:
|
|
91
|
+
model: auto
|
|
92
|
+
|
|
93
|
+
steps:
|
|
94
|
+
- action: ai.chatWithTools
|
|
95
|
+
inputs:
|
|
96
|
+
messages:
|
|
97
|
+
- role: user
|
|
98
|
+
content: "What's the weather in London?"
|
|
99
|
+
tools:
|
|
100
|
+
- type: function
|
|
101
|
+
function:
|
|
102
|
+
name: get_weather
|
|
103
|
+
description: Get current weather
|
|
104
|
+
parameters:
|
|
105
|
+
type: object
|
|
106
|
+
properties:
|
|
107
|
+
city: { type: string }
|
|
108
|
+
required: [city]
|
|
109
|
+
maxTurns: 5
|
|
110
|
+
```
|
|
111
|
+
|
|
52
112
|
## Service Reference
|
|
53
113
|
|
|
54
114
|
| Service | Category | Key Actions |
|
|
@@ -85,17 +145,6 @@ await registry.executeAction('slack', 'chat.postMessage', slack, { channel: '#ge
|
|
|
85
145
|
| **MySQL** | Database | `query`, `insert`, `update`, `delete` |
|
|
86
146
|
| **HTTP** | Universal | `request` (any REST API) |
|
|
87
147
|
|
|
88
|
-
## AI Agent Adapters
|
|
89
|
-
|
|
90
|
-
| Agent | Setup | Notes |
|
|
91
|
-
|-------|-------|-------|
|
|
92
|
-
| **GitHub Copilot** | `copilot auth login` | Use existing subscription |
|
|
93
|
-
| **Claude Agent** | Claude CLI | Use existing subscription |
|
|
94
|
-
| **Claude Agent** | `ANTHROPIC_API_KEY` | Direct API with tool calling |
|
|
95
|
-
| **OpenAI Codex** | Codex CLI | Use existing subscription |
|
|
96
|
-
| **OpenCode** | `opencode /connect` | 75+ AI backends |
|
|
97
|
-
| **Ollama** | Local install | Free, runs locally |
|
|
98
|
-
|
|
99
148
|
## Creating Custom Integrations
|
|
100
149
|
|
|
101
150
|
```typescript
|
|
@@ -120,4 +169,4 @@ See the [contributing guide](https://github.com/marktoflow/marktoflow/blob/main/
|
|
|
120
169
|
|
|
121
170
|
## License
|
|
122
171
|
|
|
123
|
-
|
|
172
|
+
[AGPL-3.0](https://github.com/marktoflow/marktoflow/blob/main/LICENSE)
|
|
@@ -295,17 +295,17 @@ export declare const McpServerConfigSchema: z.ZodObject<{
|
|
|
295
295
|
url: z.ZodOptional<z.ZodString>;
|
|
296
296
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
type: "
|
|
298
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
299
299
|
url?: string | undefined;
|
|
300
|
-
env?: Record<string, string> | undefined;
|
|
301
300
|
command?: string | undefined;
|
|
302
301
|
args?: string[] | undefined;
|
|
302
|
+
env?: Record<string, string> | undefined;
|
|
303
303
|
}, {
|
|
304
|
-
type: "
|
|
304
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
305
305
|
url?: string | undefined;
|
|
306
|
-
env?: Record<string, string> | undefined;
|
|
307
306
|
command?: string | undefined;
|
|
308
307
|
args?: string[] | undefined;
|
|
308
|
+
env?: Record<string, string> | undefined;
|
|
309
309
|
}>;
|
|
310
310
|
export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
311
311
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -330,17 +330,17 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
330
330
|
url: z.ZodOptional<z.ZodString>;
|
|
331
331
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
|
-
type: "
|
|
333
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
334
334
|
url?: string | undefined;
|
|
335
|
-
env?: Record<string, string> | undefined;
|
|
336
335
|
command?: string | undefined;
|
|
337
336
|
args?: string[] | undefined;
|
|
337
|
+
env?: Record<string, string> | undefined;
|
|
338
338
|
}, {
|
|
339
|
-
type: "
|
|
339
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
340
340
|
url?: string | undefined;
|
|
341
|
-
env?: Record<string, string> | undefined;
|
|
342
341
|
command?: string | undefined;
|
|
343
342
|
args?: string[] | undefined;
|
|
343
|
+
env?: Record<string, string> | undefined;
|
|
344
344
|
}>>>;
|
|
345
345
|
agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
346
346
|
description: z.ZodString;
|
|
@@ -364,12 +364,19 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
364
364
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
366
|
timeout?: number | undefined;
|
|
367
|
-
env?: Record<string, string> | undefined;
|
|
368
367
|
model?: string | undefined;
|
|
369
|
-
|
|
368
|
+
mcpServers?: Record<string, {
|
|
369
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
370
|
+
url?: string | undefined;
|
|
371
|
+
command?: string | undefined;
|
|
372
|
+
args?: string[] | undefined;
|
|
373
|
+
env?: Record<string, string> | undefined;
|
|
374
|
+
}> | undefined;
|
|
375
|
+
excludeFiles?: string[] | undefined;
|
|
376
|
+
env?: Record<string, string> | undefined;
|
|
370
377
|
cwd?: string | undefined;
|
|
378
|
+
maxTurns?: number | undefined;
|
|
371
379
|
additionalDirectories?: string[] | undefined;
|
|
372
|
-
excludeFiles?: string[] | undefined;
|
|
373
380
|
allowedTools?: string[] | undefined;
|
|
374
381
|
disallowedTools?: string[] | undefined;
|
|
375
382
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
@@ -378,13 +385,6 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
378
385
|
enableFileCheckpointing?: boolean | undefined;
|
|
379
386
|
maxBudgetUsd?: number | undefined;
|
|
380
387
|
maxThinkingTokens?: number | undefined;
|
|
381
|
-
mcpServers?: Record<string, {
|
|
382
|
-
type: "http" | "stdio" | "sse" | "sdk";
|
|
383
|
-
url?: string | undefined;
|
|
384
|
-
env?: Record<string, string> | undefined;
|
|
385
|
-
command?: string | undefined;
|
|
386
|
-
args?: string[] | undefined;
|
|
387
|
-
}> | undefined;
|
|
388
388
|
agents?: Record<string, {
|
|
389
389
|
description: string;
|
|
390
390
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
@@ -395,12 +395,19 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
395
395
|
systemPrompt?: string | undefined;
|
|
396
396
|
}, {
|
|
397
397
|
timeout?: number | undefined;
|
|
398
|
-
env?: Record<string, string> | undefined;
|
|
399
398
|
model?: string | undefined;
|
|
400
|
-
|
|
399
|
+
mcpServers?: Record<string, {
|
|
400
|
+
type: "stdio" | "http" | "sse" | "sdk";
|
|
401
|
+
url?: string | undefined;
|
|
402
|
+
command?: string | undefined;
|
|
403
|
+
args?: string[] | undefined;
|
|
404
|
+
env?: Record<string, string> | undefined;
|
|
405
|
+
}> | undefined;
|
|
406
|
+
excludeFiles?: string[] | undefined;
|
|
407
|
+
env?: Record<string, string> | undefined;
|
|
401
408
|
cwd?: string | undefined;
|
|
409
|
+
maxTurns?: number | undefined;
|
|
402
410
|
additionalDirectories?: string[] | undefined;
|
|
403
|
-
excludeFiles?: string[] | undefined;
|
|
404
411
|
allowedTools?: string[] | undefined;
|
|
405
412
|
disallowedTools?: string[] | undefined;
|
|
406
413
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
@@ -409,13 +416,6 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
409
416
|
enableFileCheckpointing?: boolean | undefined;
|
|
410
417
|
maxBudgetUsd?: number | undefined;
|
|
411
418
|
maxThinkingTokens?: number | undefined;
|
|
412
|
-
mcpServers?: Record<string, {
|
|
413
|
-
type: "http" | "stdio" | "sse" | "sdk";
|
|
414
|
-
url?: string | undefined;
|
|
415
|
-
env?: Record<string, string> | undefined;
|
|
416
|
-
command?: string | undefined;
|
|
417
|
-
args?: string[] | undefined;
|
|
418
|
-
}> | undefined;
|
|
419
419
|
agents?: Record<string, {
|
|
420
420
|
description: string;
|
|
421
421
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
@@ -28,8 +28,8 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
28
28
|
prompt: string;
|
|
29
29
|
model?: string | undefined;
|
|
30
30
|
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "Task" | "TodoWrite")[] | undefined;
|
|
31
|
-
maxTurns?: number | undefined;
|
|
32
31
|
cwd?: string | undefined;
|
|
32
|
+
maxTurns?: number | undefined;
|
|
33
33
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
34
34
|
resume?: string | undefined;
|
|
35
35
|
maxBudgetUsd?: number | undefined;
|
|
@@ -38,8 +38,8 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
38
38
|
prompt: string;
|
|
39
39
|
model?: string | undefined;
|
|
40
40
|
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "Task" | "TodoWrite")[] | undefined;
|
|
41
|
-
maxTurns?: number | undefined;
|
|
42
41
|
cwd?: string | undefined;
|
|
42
|
+
maxTurns?: number | undefined;
|
|
43
43
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
44
44
|
resume?: string | undefined;
|
|
45
45
|
maxBudgetUsd?: number | undefined;
|
|
@@ -55,14 +55,14 @@ export declare const AgentCodeReviewSchema: z.ZodObject<{
|
|
|
55
55
|
outputFormat: z.ZodOptional<z.ZodEnum<["markdown", "json", "sarif"]>>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
prompt: string;
|
|
58
|
+
outputFormat?: "json" | "markdown" | "sarif" | undefined;
|
|
58
59
|
focusAreas?: string[] | undefined;
|
|
59
|
-
severity?: "
|
|
60
|
-
outputFormat?: "markdown" | "json" | "sarif" | undefined;
|
|
60
|
+
severity?: "all" | "high" | "critical" | "medium" | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
prompt: string;
|
|
63
|
+
outputFormat?: "json" | "markdown" | "sarif" | undefined;
|
|
63
64
|
focusAreas?: string[] | undefined;
|
|
64
|
-
severity?: "
|
|
65
|
-
outputFormat?: "markdown" | "json" | "sarif" | undefined;
|
|
65
|
+
severity?: "all" | "high" | "critical" | "medium" | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
/**
|
|
68
68
|
* Schema for agent.codeModify action
|
|
@@ -149,36 +149,36 @@ export declare const AgentWithMcpSchema: z.ZodObject<{
|
|
|
149
149
|
url: z.ZodOptional<z.ZodString>;
|
|
150
150
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
type: "
|
|
152
|
+
type: "stdio" | "http" | "sse";
|
|
153
153
|
url?: string | undefined;
|
|
154
|
-
env?: Record<string, string> | undefined;
|
|
155
154
|
command?: string | undefined;
|
|
156
155
|
args?: string[] | undefined;
|
|
156
|
+
env?: Record<string, string> | undefined;
|
|
157
157
|
}, {
|
|
158
|
-
type: "
|
|
158
|
+
type: "stdio" | "http" | "sse";
|
|
159
159
|
url?: string | undefined;
|
|
160
|
-
env?: Record<string, string> | undefined;
|
|
161
160
|
command?: string | undefined;
|
|
162
161
|
args?: string[] | undefined;
|
|
162
|
+
env?: Record<string, string> | undefined;
|
|
163
163
|
}>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
prompt: string;
|
|
166
165
|
mcpServers: Record<string, {
|
|
167
|
-
type: "
|
|
166
|
+
type: "stdio" | "http" | "sse";
|
|
168
167
|
url?: string | undefined;
|
|
169
|
-
env?: Record<string, string> | undefined;
|
|
170
168
|
command?: string | undefined;
|
|
171
169
|
args?: string[] | undefined;
|
|
170
|
+
env?: Record<string, string> | undefined;
|
|
172
171
|
}>;
|
|
173
|
-
}, {
|
|
174
172
|
prompt: string;
|
|
173
|
+
}, {
|
|
175
174
|
mcpServers: Record<string, {
|
|
176
|
-
type: "
|
|
175
|
+
type: "stdio" | "http" | "sse";
|
|
177
176
|
url?: string | undefined;
|
|
178
|
-
env?: Record<string, string> | undefined;
|
|
179
177
|
command?: string | undefined;
|
|
180
178
|
args?: string[] | undefined;
|
|
179
|
+
env?: Record<string, string> | undefined;
|
|
181
180
|
}>;
|
|
181
|
+
prompt: string;
|
|
182
182
|
}>;
|
|
183
183
|
export type AgentRunInput = z.infer<typeof AgentRunSchema>;
|
|
184
184
|
export type AgentCodeReviewInput = z.infer<typeof AgentCodeReviewSchema>;
|
|
@@ -349,10 +349,10 @@ export declare const CodexThreadOptionsSchema: z.ZodObject<{
|
|
|
349
349
|
excludeFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
model?: string | undefined;
|
|
352
|
+
workingDirectory?: string | undefined;
|
|
352
353
|
excludeFiles?: string[] | undefined;
|
|
353
354
|
additionalDirectories?: string[] | undefined;
|
|
354
355
|
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
355
|
-
workingDirectory?: string | undefined;
|
|
356
356
|
skipGitRepoCheck?: boolean | undefined;
|
|
357
357
|
modelReasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
358
358
|
networkAccessEnabled?: boolean | undefined;
|
|
@@ -361,10 +361,10 @@ export declare const CodexThreadOptionsSchema: z.ZodObject<{
|
|
|
361
361
|
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
362
362
|
}, {
|
|
363
363
|
model?: string | undefined;
|
|
364
|
+
workingDirectory?: string | undefined;
|
|
364
365
|
excludeFiles?: string[] | undefined;
|
|
365
366
|
additionalDirectories?: string[] | undefined;
|
|
366
367
|
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
367
|
-
workingDirectory?: string | undefined;
|
|
368
368
|
skipGitRepoCheck?: boolean | undefined;
|
|
369
369
|
modelReasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
370
370
|
networkAccessEnabled?: boolean | undefined;
|
|
@@ -401,26 +401,26 @@ export declare const CodexWorkflowConfigSchema: z.ZodObject<{
|
|
|
401
401
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
402
402
|
}, "strip", z.ZodTypeAny, {
|
|
403
403
|
model?: string | undefined;
|
|
404
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
405
|
+
workingDirectory?: string | undefined;
|
|
404
406
|
excludeFiles?: string[] | undefined;
|
|
405
407
|
env?: Record<string, string> | undefined;
|
|
406
408
|
additionalDirectories?: string[] | undefined;
|
|
407
409
|
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
408
|
-
workingDirectory?: string | undefined;
|
|
409
410
|
skipGitRepoCheck?: boolean | undefined;
|
|
410
411
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
411
412
|
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
412
|
-
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
413
413
|
}, {
|
|
414
414
|
model?: string | undefined;
|
|
415
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
416
|
+
workingDirectory?: string | undefined;
|
|
415
417
|
excludeFiles?: string[] | undefined;
|
|
416
418
|
env?: Record<string, string> | undefined;
|
|
417
419
|
additionalDirectories?: string[] | undefined;
|
|
418
420
|
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
419
|
-
workingDirectory?: string | undefined;
|
|
420
421
|
skipGitRepoCheck?: boolean | undefined;
|
|
421
422
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
422
423
|
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
423
|
-
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
424
424
|
}>;
|
|
425
425
|
export declare const UserInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
426
426
|
type: z.ZodLiteral<"text">;
|
|
@@ -27,17 +27,17 @@ export declare const CodexChatSchema: z.ZodObject<{
|
|
|
27
27
|
prompt: string;
|
|
28
28
|
threadId?: string | undefined;
|
|
29
29
|
model?: string | undefined;
|
|
30
|
-
|
|
30
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
31
31
|
workingDirectory?: string | undefined;
|
|
32
|
-
|
|
32
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
33
33
|
webSearch?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
prompt: string;
|
|
36
36
|
threadId?: string | undefined;
|
|
37
37
|
model?: string | undefined;
|
|
38
|
-
|
|
38
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
39
39
|
workingDirectory?: string | undefined;
|
|
40
|
-
|
|
40
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
41
41
|
webSearch?: boolean | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
/**
|
|
@@ -51,16 +51,16 @@ export declare const CodexCodeModifySchema: z.ZodObject<{
|
|
|
51
51
|
reasoningEffort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high", "xhigh"]>>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
prompt: string;
|
|
54
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
55
|
+
workingDirectory?: string | undefined;
|
|
54
56
|
excludeFiles?: string[] | undefined;
|
|
55
57
|
additionalDirectories?: string[] | undefined;
|
|
56
|
-
workingDirectory?: string | undefined;
|
|
57
|
-
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
prompt: string;
|
|
60
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
61
|
+
workingDirectory?: string | undefined;
|
|
60
62
|
excludeFiles?: string[] | undefined;
|
|
61
63
|
additionalDirectories?: string[] | undefined;
|
|
62
|
-
workingDirectory?: string | undefined;
|
|
63
|
-
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
/**
|
|
66
66
|
* Schema for codex.codeAnalyze action
|
|
@@ -72,14 +72,14 @@ export declare const CodexCodeAnalyzeSchema: z.ZodObject<{
|
|
|
72
72
|
excludeFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
prompt: string;
|
|
75
|
+
workingDirectory?: string | undefined;
|
|
75
76
|
excludeFiles?: string[] | undefined;
|
|
76
77
|
additionalDirectories?: string[] | undefined;
|
|
77
|
-
workingDirectory?: string | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
prompt: string;
|
|
80
|
+
workingDirectory?: string | undefined;
|
|
80
81
|
excludeFiles?: string[] | undefined;
|
|
81
82
|
additionalDirectories?: string[] | undefined;
|
|
82
|
-
workingDirectory?: string | undefined;
|
|
83
83
|
}>;
|
|
84
84
|
/**
|
|
85
85
|
* Schema for codex.codeReview action
|
|
@@ -91,13 +91,13 @@ export declare const CodexCodeReviewSchema: z.ZodObject<{
|
|
|
91
91
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
prompt: string;
|
|
94
|
-
files?: string[] | undefined;
|
|
95
94
|
workingDirectory?: string | undefined;
|
|
95
|
+
files?: string[] | undefined;
|
|
96
96
|
focusAreas?: string[] | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
prompt: string;
|
|
99
|
-
files?: string[] | undefined;
|
|
100
99
|
workingDirectory?: string | undefined;
|
|
100
|
+
files?: string[] | undefined;
|
|
101
101
|
focusAreas?: string[] | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
/**
|
|
@@ -137,12 +137,12 @@ export declare const CodexStructuredSchema: z.ZodObject<{
|
|
|
137
137
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
138
138
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
prompt: string;
|
|
141
140
|
schema: Record<string, unknown>;
|
|
141
|
+
prompt: string;
|
|
142
142
|
workingDirectory?: string | undefined;
|
|
143
143
|
}, {
|
|
144
|
-
prompt: string;
|
|
145
144
|
schema: Record<string, unknown>;
|
|
145
|
+
prompt: string;
|
|
146
146
|
workingDirectory?: string | undefined;
|
|
147
147
|
}>;
|
|
148
148
|
/**
|
|
@@ -169,12 +169,12 @@ export declare const CodexWithImagesSchema: z.ZodObject<{
|
|
|
169
169
|
images: z.ZodArray<z.ZodString, "many">;
|
|
170
170
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
prompt: string;
|
|
173
172
|
images: string[];
|
|
173
|
+
prompt: string;
|
|
174
174
|
workingDirectory?: string | undefined;
|
|
175
175
|
}, {
|
|
176
|
-
prompt: string;
|
|
177
176
|
images: string[];
|
|
177
|
+
prompt: string;
|
|
178
178
|
workingDirectory?: string | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
export type CodexChatInput = z.infer<typeof CodexChatSchema>;
|
|
@@ -871,6 +871,16 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
871
871
|
}>>;
|
|
872
872
|
}, "strip", z.ZodTypeAny, {
|
|
873
873
|
streaming?: boolean | undefined;
|
|
874
|
+
model?: string | undefined;
|
|
875
|
+
systemMessage?: {
|
|
876
|
+
content?: string | undefined;
|
|
877
|
+
mode?: "append" | undefined;
|
|
878
|
+
} | {
|
|
879
|
+
content: string;
|
|
880
|
+
mode: "replace";
|
|
881
|
+
} | undefined;
|
|
882
|
+
availableTools?: string[] | undefined;
|
|
883
|
+
excludedTools?: string[] | undefined;
|
|
874
884
|
provider?: {
|
|
875
885
|
baseUrl: string;
|
|
876
886
|
type?: "openai" | "anthropic" | "azure" | undefined;
|
|
@@ -881,6 +891,7 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
881
891
|
wireApi?: "completions" | "responses" | undefined;
|
|
882
892
|
bearerToken?: string | undefined;
|
|
883
893
|
} | undefined;
|
|
894
|
+
configDir?: string | undefined;
|
|
884
895
|
mcpServers?: Record<string, {
|
|
885
896
|
tools: string[] | "*";
|
|
886
897
|
command: string;
|
|
@@ -921,6 +932,14 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
921
932
|
}[] | undefined;
|
|
922
933
|
skillDirectories?: string[] | undefined;
|
|
923
934
|
disabledSkills?: string[] | undefined;
|
|
935
|
+
infiniteSessions?: {
|
|
936
|
+
enabled?: boolean | undefined;
|
|
937
|
+
backgroundCompactionThreshold?: number | undefined;
|
|
938
|
+
bufferExhaustionThreshold?: number | undefined;
|
|
939
|
+
} | undefined;
|
|
940
|
+
sessionId?: string | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
streaming?: boolean | undefined;
|
|
924
943
|
model?: string | undefined;
|
|
925
944
|
systemMessage?: {
|
|
926
945
|
content?: string | undefined;
|
|
@@ -931,15 +950,6 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
931
950
|
} | undefined;
|
|
932
951
|
availableTools?: string[] | undefined;
|
|
933
952
|
excludedTools?: string[] | undefined;
|
|
934
|
-
sessionId?: string | undefined;
|
|
935
|
-
configDir?: string | undefined;
|
|
936
|
-
infiniteSessions?: {
|
|
937
|
-
enabled?: boolean | undefined;
|
|
938
|
-
backgroundCompactionThreshold?: number | undefined;
|
|
939
|
-
bufferExhaustionThreshold?: number | undefined;
|
|
940
|
-
} | undefined;
|
|
941
|
-
}, {
|
|
942
|
-
streaming?: boolean | undefined;
|
|
943
953
|
provider?: {
|
|
944
954
|
baseUrl: string;
|
|
945
955
|
type?: "openai" | "anthropic" | "azure" | undefined;
|
|
@@ -950,6 +960,7 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
950
960
|
wireApi?: "completions" | "responses" | undefined;
|
|
951
961
|
bearerToken?: string | undefined;
|
|
952
962
|
} | undefined;
|
|
963
|
+
configDir?: string | undefined;
|
|
953
964
|
mcpServers?: Record<string, {
|
|
954
965
|
tools: string[] | "*";
|
|
955
966
|
command: string;
|
|
@@ -990,23 +1001,12 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
990
1001
|
}[] | undefined;
|
|
991
1002
|
skillDirectories?: string[] | undefined;
|
|
992
1003
|
disabledSkills?: string[] | undefined;
|
|
993
|
-
model?: string | undefined;
|
|
994
|
-
systemMessage?: {
|
|
995
|
-
content?: string | undefined;
|
|
996
|
-
mode?: "append" | undefined;
|
|
997
|
-
} | {
|
|
998
|
-
content: string;
|
|
999
|
-
mode: "replace";
|
|
1000
|
-
} | undefined;
|
|
1001
|
-
availableTools?: string[] | undefined;
|
|
1002
|
-
excludedTools?: string[] | undefined;
|
|
1003
|
-
sessionId?: string | undefined;
|
|
1004
|
-
configDir?: string | undefined;
|
|
1005
1004
|
infiniteSessions?: {
|
|
1006
1005
|
enabled?: boolean | undefined;
|
|
1007
1006
|
backgroundCompactionThreshold?: number | undefined;
|
|
1008
1007
|
bufferExhaustionThreshold?: number | undefined;
|
|
1009
1008
|
} | undefined;
|
|
1009
|
+
sessionId?: string | undefined;
|
|
1010
1010
|
}>;
|
|
1011
1011
|
export {};
|
|
1012
1012
|
//# sourceMappingURL=github-copilot-types.d.ts.map
|
|
@@ -23,12 +23,12 @@ export declare const CopilotChatSchema: z.ZodObject<{
|
|
|
23
23
|
path: z.ZodString;
|
|
24
24
|
displayName: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
type: "file" | "directory";
|
|
27
26
|
path: string;
|
|
27
|
+
type: "file" | "directory";
|
|
28
28
|
displayName?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
type: "file" | "directory";
|
|
31
30
|
path: string;
|
|
31
|
+
type: "file" | "directory";
|
|
32
32
|
displayName?: string | undefined;
|
|
33
33
|
}>, "many">>;
|
|
34
34
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -37,8 +37,8 @@ export declare const CopilotChatSchema: z.ZodObject<{
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
prompt: string;
|
|
39
39
|
attachments?: {
|
|
40
|
-
type: "file" | "directory";
|
|
41
40
|
path: string;
|
|
41
|
+
type: "file" | "directory";
|
|
42
42
|
displayName?: string | undefined;
|
|
43
43
|
}[] | undefined;
|
|
44
44
|
streaming?: boolean | undefined;
|
|
@@ -49,8 +49,8 @@ export declare const CopilotChatSchema: z.ZodObject<{
|
|
|
49
49
|
}, {
|
|
50
50
|
prompt: string;
|
|
51
51
|
attachments?: {
|
|
52
|
-
type: "file" | "directory";
|
|
53
52
|
path: string;
|
|
53
|
+
type: "file" | "directory";
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
}[] | undefined;
|
|
56
56
|
streaming?: boolean | undefined;
|
|
@@ -156,14 +156,14 @@ export declare const CopilotWithAgentsSchema: z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
name: string;
|
|
158
158
|
prompt: string;
|
|
159
|
-
displayName?: string | undefined;
|
|
160
159
|
description?: string | undefined;
|
|
160
|
+
displayName?: string | undefined;
|
|
161
161
|
tools?: string[] | undefined;
|
|
162
162
|
}, {
|
|
163
163
|
name: string;
|
|
164
164
|
prompt: string;
|
|
165
|
-
displayName?: string | undefined;
|
|
166
165
|
description?: string | undefined;
|
|
166
|
+
displayName?: string | undefined;
|
|
167
167
|
tools?: string[] | undefined;
|
|
168
168
|
}>, "many">;
|
|
169
169
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -173,8 +173,8 @@ export declare const CopilotWithAgentsSchema: z.ZodObject<{
|
|
|
173
173
|
agents: {
|
|
174
174
|
name: string;
|
|
175
175
|
prompt: string;
|
|
176
|
-
displayName?: string | undefined;
|
|
177
176
|
description?: string | undefined;
|
|
177
|
+
displayName?: string | undefined;
|
|
178
178
|
tools?: string[] | undefined;
|
|
179
179
|
}[];
|
|
180
180
|
model?: string | undefined;
|
|
@@ -184,8 +184,8 @@ export declare const CopilotWithAgentsSchema: z.ZodObject<{
|
|
|
184
184
|
agents: {
|
|
185
185
|
name: string;
|
|
186
186
|
prompt: string;
|
|
187
|
-
displayName?: string | undefined;
|
|
188
187
|
description?: string | undefined;
|
|
188
|
+
displayName?: string | undefined;
|
|
189
189
|
tools?: string[] | undefined;
|
|
190
190
|
}[];
|
|
191
191
|
model?: string | undefined;
|
|
@@ -220,13 +220,13 @@ export declare const CopilotWithMcpSchema: z.ZodObject<{
|
|
|
220
220
|
url: z.ZodString;
|
|
221
221
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
url: string;
|
|
224
223
|
type: "http" | "sse";
|
|
224
|
+
url: string;
|
|
225
225
|
tools: string[] | "*";
|
|
226
226
|
headers?: Record<string, string> | undefined;
|
|
227
227
|
}, {
|
|
228
|
-
url: string;
|
|
229
228
|
type: "http" | "sse";
|
|
229
|
+
url: string;
|
|
230
230
|
tools: string[] | "*";
|
|
231
231
|
headers?: Record<string, string> | undefined;
|
|
232
232
|
}>]>>;
|
|
@@ -240,8 +240,8 @@ export declare const CopilotWithMcpSchema: z.ZodObject<{
|
|
|
240
240
|
type?: "local" | "stdio" | undefined;
|
|
241
241
|
env?: Record<string, string> | undefined;
|
|
242
242
|
} | {
|
|
243
|
-
url: string;
|
|
244
243
|
type: "http" | "sse";
|
|
244
|
+
url: string;
|
|
245
245
|
tools: string[] | "*";
|
|
246
246
|
headers?: Record<string, string> | undefined;
|
|
247
247
|
}>;
|
|
@@ -256,8 +256,8 @@ export declare const CopilotWithMcpSchema: z.ZodObject<{
|
|
|
256
256
|
type?: "local" | "stdio" | undefined;
|
|
257
257
|
env?: Record<string, string> | undefined;
|
|
258
258
|
} | {
|
|
259
|
-
url: string;
|
|
260
259
|
type: "http" | "sse";
|
|
260
|
+
url: string;
|
|
261
261
|
tools: string[] | "*";
|
|
262
262
|
headers?: Record<string, string> | undefined;
|
|
263
263
|
}>;
|