@marktoflow/integrations 2.0.3 → 2.0.4

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 (55) hide show
  1. package/README.md +65 -16
  2. package/dist/adapters/claude-agent-types.d.ts +28 -28
  3. package/dist/adapters/claude-agent-workflow.d.ts +16 -16
  4. package/dist/adapters/codex-types.d.ts +6 -6
  5. package/dist/adapters/codex-workflow.d.ts +16 -16
  6. package/dist/adapters/github-copilot-types.d.ts +22 -22
  7. package/dist/adapters/github-copilot-workflow.d.ts +14 -14
  8. package/dist/adapters/ollama-types.d.ts +42 -42
  9. package/dist/adapters/openai-types.d.ts +552 -33
  10. package/dist/adapters/openai-types.d.ts.map +1 -1
  11. package/dist/adapters/openai-types.js +58 -5
  12. package/dist/adapters/openai-types.js.map +1 -1
  13. package/dist/adapters/openai.d.ts +59 -5
  14. package/dist/adapters/openai.d.ts.map +1 -1
  15. package/dist/adapters/openai.js +211 -32
  16. package/dist/adapters/openai.js.map +1 -1
  17. package/dist/services/playwright/client.d.ts +110 -0
  18. package/dist/services/playwright/client.d.ts.map +1 -0
  19. package/dist/services/playwright/client.js +690 -0
  20. package/dist/services/playwright/client.js.map +1 -0
  21. package/dist/services/playwright/index.d.ts +7 -0
  22. package/dist/services/playwright/index.d.ts.map +1 -0
  23. package/dist/services/playwright/index.js +7 -0
  24. package/dist/services/playwright/index.js.map +1 -0
  25. package/dist/services/playwright/initializer.d.ts +24 -0
  26. package/dist/services/playwright/initializer.d.ts.map +1 -0
  27. package/dist/services/playwright/initializer.js +99 -0
  28. package/dist/services/playwright/initializer.js.map +1 -0
  29. package/dist/services/playwright/types.d.ts +270 -0
  30. package/dist/services/playwright/types.d.ts.map +1 -0
  31. package/dist/services/playwright/types.js +5 -0
  32. package/dist/services/playwright/types.js.map +1 -0
  33. package/dist/services/playwright.d.ts +3 -675
  34. package/dist/services/playwright.d.ts.map +1 -1
  35. package/dist/services/playwright.js +3 -1138
  36. package/dist/services/playwright.js.map +1 -1
  37. package/package.json +25 -7
  38. package/dist/adapters/claude-agent-hooks.d.ts +0 -176
  39. package/dist/services/github.d.ts +0 -3
  40. package/dist/services/gmail-trigger.d.ts +0 -92
  41. package/dist/services/gmail.d.ts +0 -116
  42. package/dist/services/google-calendar.d.ts +0 -220
  43. package/dist/services/google-docs.d.ts +0 -197
  44. package/dist/services/google-drive.d.ts +0 -149
  45. package/dist/services/google-sheets.d.ts +0 -165
  46. package/dist/services/http.d.ts +0 -120
  47. package/dist/services/jira.d.ts +0 -3
  48. package/dist/services/linear.d.ts +0 -163
  49. package/dist/services/mysql.d.ts +0 -91
  50. package/dist/services/outlook-trigger.d.ts +0 -121
  51. package/dist/services/outlook.d.ts +0 -237
  52. package/dist/services/postgres.d.ts +0 -83
  53. package/dist/services/slack-socket.d.ts +0 -18
  54. package/dist/services/slack.d.ts +0 -3
  55. package/dist/services/whatsapp.d.ts +0 -311
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @marktoflow/integrations
2
2
 
3
- > 30+ native service integrations and AI agent adapters for workflow automation.
3
+ > 38 native service integrations and AI agent adapters with tool calling, structured output, and local LLM support.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@marktoflow/integrations)](https://www.npmjs.com/package/@marktoflow/integrations)
6
6
 
7
- Part of [marktoflow](../../README.md) — open-source markdown workflow automation.
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
- - **30+ native SDK integrations** with full TypeScript types
46
- - **6 AI agent adapters** (Copilot, Claude, Codex, OpenCode, Ollama)
45
+ - **38 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
- Apache-2.0
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: "http" | "stdio" | "sse" | "sdk";
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: "http" | "stdio" | "sse" | "sdk";
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: "http" | "stdio" | "sse" | "sdk";
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: "http" | "stdio" | "sse" | "sdk";
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
- maxTurns?: number | undefined;
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
- maxTurns?: number | undefined;
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?: "medium" | "high" | "all" | "critical" | undefined;
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?: "medium" | "high" | "all" | "critical" | undefined;
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: "http" | "stdio" | "sse";
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: "http" | "stdio" | "sse";
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: "http" | "stdio" | "sse";
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: "http" | "stdio" | "sse";
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
- sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
30
+ reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
31
31
  workingDirectory?: string | undefined;
32
- reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
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
- sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
38
+ reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
39
39
  workingDirectory?: string | undefined;
40
- reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
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>;
@@ -870,7 +870,16 @@ export declare const SessionConfigSchema: z.ZodObject<{
870
870
  bufferExhaustionThreshold?: number | undefined;
871
871
  }>>;
872
872
  }, "strip", z.ZodTypeAny, {
873
- streaming?: boolean | undefined;
873
+ model?: string | undefined;
874
+ systemMessage?: {
875
+ content?: string | undefined;
876
+ mode?: "append" | undefined;
877
+ } | {
878
+ content: string;
879
+ mode: "replace";
880
+ } | undefined;
881
+ availableTools?: string[] | undefined;
882
+ excludedTools?: string[] | undefined;
874
883
  provider?: {
875
884
  baseUrl: string;
876
885
  type?: "openai" | "anthropic" | "azure" | undefined;
@@ -881,6 +890,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
881
890
  wireApi?: "completions" | "responses" | undefined;
882
891
  bearerToken?: string | undefined;
883
892
  } | undefined;
893
+ streaming?: boolean | undefined;
894
+ configDir?: string | undefined;
884
895
  mcpServers?: Record<string, {
885
896
  tools: string[] | "*";
886
897
  command: string;
@@ -921,6 +932,13 @@ 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
+ }, {
924
942
  model?: string | undefined;
925
943
  systemMessage?: {
926
944
  content?: string | undefined;
@@ -931,15 +949,6 @@ export declare const SessionConfigSchema: z.ZodObject<{
931
949
  } | undefined;
932
950
  availableTools?: string[] | undefined;
933
951
  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
952
  provider?: {
944
953
  baseUrl: string;
945
954
  type?: "openai" | "anthropic" | "azure" | undefined;
@@ -950,6 +959,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
950
959
  wireApi?: "completions" | "responses" | undefined;
951
960
  bearerToken?: string | undefined;
952
961
  } | undefined;
962
+ streaming?: boolean | 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,25 +37,25 @@ 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
- streaming?: boolean | undefined;
45
44
  model?: string | undefined;
46
45
  systemMessage?: string | undefined;
46
+ streaming?: boolean | undefined;
47
47
  excludeFiles?: string[] | undefined;
48
48
  sessionId?: string | undefined;
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
- streaming?: boolean | undefined;
57
56
  model?: string | undefined;
58
57
  systemMessage?: string | undefined;
58
+ streaming?: boolean | undefined;
59
59
  excludeFiles?: string[] | undefined;
60
60
  sessionId?: string | undefined;
61
61
  }>;
@@ -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
  }>;