@marktoflow/integrations 2.0.1 → 2.0.2
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/dist/adapters/claude-agent-hooks.d.ts +176 -0
- package/dist/adapters/claude-agent-types.d.ts +24 -24
- package/dist/adapters/claude-agent-workflow.d.ts +10 -10
- package/dist/adapters/codex-types.d.ts +20 -20
- package/dist/adapters/codex-workflow.d.ts +12 -12
- package/dist/adapters/github-copilot-types.d.ts +44 -44
- package/dist/adapters/github-copilot-workflow.d.ts +28 -28
- package/dist/adapters/ollama-types.d.ts +126 -126
- package/dist/services/github.d.ts +3 -0
- package/dist/services/gmail-trigger.d.ts +92 -0
- package/dist/services/gmail.d.ts +116 -0
- package/dist/services/google-calendar.d.ts +220 -0
- package/dist/services/google-docs.d.ts +197 -0
- package/dist/services/google-drive.d.ts +149 -0
- package/dist/services/google-sheets.d.ts +165 -0
- package/dist/services/http.d.ts +120 -0
- package/dist/services/jira.d.ts +3 -0
- package/dist/services/linear.d.ts +163 -0
- package/dist/services/mysql.d.ts +91 -0
- package/dist/services/outlook-trigger.d.ts +121 -0
- package/dist/services/outlook.d.ts +237 -0
- package/dist/services/postgres.d.ts +83 -0
- package/dist/services/slack-socket.d.ts +18 -0
- package/dist/services/slack.d.ts +3 -0
- package/dist/services/whatsapp.d.ts +311 -0
- package/package.json +2 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Agent SDK Hooks for marktoflow
|
|
3
|
+
*
|
|
4
|
+
* Provides pre-built hook configurations for common use cases:
|
|
5
|
+
* - Audit logging
|
|
6
|
+
* - Cost tracking
|
|
7
|
+
* - Approval workflows
|
|
8
|
+
* - File change monitoring
|
|
9
|
+
* - Security enforcement
|
|
10
|
+
*/
|
|
11
|
+
import { HookCallback, HookEvent, ToolPermissionHandler } from './claude-agent-types.js';
|
|
12
|
+
/**
|
|
13
|
+
* Audit log entry
|
|
14
|
+
*/
|
|
15
|
+
export interface AuditLogEntry {
|
|
16
|
+
timestamp: Date;
|
|
17
|
+
event: HookEvent;
|
|
18
|
+
toolName?: string;
|
|
19
|
+
toolInput?: Record<string, unknown>;
|
|
20
|
+
toolResponse?: string;
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
duration?: number;
|
|
24
|
+
metadata?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Audit logger interface
|
|
28
|
+
*/
|
|
29
|
+
export interface AuditLogger {
|
|
30
|
+
log(entry: AuditLogEntry): Promise<void>;
|
|
31
|
+
flush(): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Console audit logger (default)
|
|
35
|
+
*/
|
|
36
|
+
export declare class ConsoleAuditLogger implements AuditLogger {
|
|
37
|
+
private prefix;
|
|
38
|
+
constructor(prefix?: string);
|
|
39
|
+
log(entry: AuditLogEntry): Promise<void>;
|
|
40
|
+
flush(): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* File audit logger
|
|
44
|
+
*/
|
|
45
|
+
export declare class FileAuditLogger implements AuditLogger {
|
|
46
|
+
private filePath;
|
|
47
|
+
private buffer;
|
|
48
|
+
private bufferSize;
|
|
49
|
+
constructor(filePath: string, bufferSize?: number);
|
|
50
|
+
log(entry: AuditLogEntry): Promise<void>;
|
|
51
|
+
flush(): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create audit logging hooks
|
|
55
|
+
*/
|
|
56
|
+
export declare function createAuditHooks(logger?: AuditLogger): Partial<Record<HookEvent, HookCallback[]>>;
|
|
57
|
+
/**
|
|
58
|
+
* Cost tracker for monitoring spending
|
|
59
|
+
*/
|
|
60
|
+
export interface CostTracker {
|
|
61
|
+
/** Current total cost in USD */
|
|
62
|
+
totalCostUsd: number;
|
|
63
|
+
/** Cost per model */
|
|
64
|
+
costByModel: Record<string, number>;
|
|
65
|
+
/** Tool execution counts */
|
|
66
|
+
toolCounts: Record<string, number>;
|
|
67
|
+
/** Start time */
|
|
68
|
+
startTime: Date;
|
|
69
|
+
/** Number of API calls */
|
|
70
|
+
apiCalls: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Cost tracking callback
|
|
74
|
+
*/
|
|
75
|
+
export type CostCallback = (tracker: CostTracker) => void | Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a cost tracker
|
|
78
|
+
*/
|
|
79
|
+
export declare function createCostTracker(): CostTracker;
|
|
80
|
+
/**
|
|
81
|
+
* Create cost tracking hooks
|
|
82
|
+
*/
|
|
83
|
+
export declare function createCostTrackingHooks(tracker: CostTracker, callbacks?: {
|
|
84
|
+
onToolUse?: CostCallback;
|
|
85
|
+
onBudgetWarning?: CostCallback;
|
|
86
|
+
budgetWarningThreshold?: number;
|
|
87
|
+
}): Partial<Record<HookEvent, HookCallback[]>>;
|
|
88
|
+
/**
|
|
89
|
+
* Approval request
|
|
90
|
+
*/
|
|
91
|
+
export interface ApprovalRequest {
|
|
92
|
+
toolName: string;
|
|
93
|
+
toolInput: Record<string, unknown>;
|
|
94
|
+
reason?: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Approval handler
|
|
98
|
+
*/
|
|
99
|
+
export type ApprovalHandler = (request: ApprovalRequest) => Promise<boolean>;
|
|
100
|
+
/**
|
|
101
|
+
* Create approval workflow hooks
|
|
102
|
+
*/
|
|
103
|
+
export declare function createApprovalHooks(approvalHandler: ApprovalHandler, toolsRequiringApproval?: string[]): Partial<Record<HookEvent, HookCallback[]>>;
|
|
104
|
+
/**
|
|
105
|
+
* File change record
|
|
106
|
+
*/
|
|
107
|
+
export interface FileChange {
|
|
108
|
+
timestamp: Date;
|
|
109
|
+
operation: 'read' | 'write' | 'edit';
|
|
110
|
+
filePath: string;
|
|
111
|
+
toolInput?: Record<string, unknown>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* File change callback
|
|
115
|
+
*/
|
|
116
|
+
export type FileChangeCallback = (change: FileChange) => void | Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Create file monitoring hooks
|
|
119
|
+
*/
|
|
120
|
+
export declare function createFileMonitoringHooks(callback: FileChangeCallback): Partial<Record<HookEvent, HookCallback[]>>;
|
|
121
|
+
/**
|
|
122
|
+
* Security policy for tool execution
|
|
123
|
+
*/
|
|
124
|
+
export interface SecurityPolicy {
|
|
125
|
+
/** Blocked file patterns (glob) */
|
|
126
|
+
blockedPaths?: string[];
|
|
127
|
+
/** Blocked commands (regex) */
|
|
128
|
+
blockedCommands?: string[];
|
|
129
|
+
/** Allowed working directories */
|
|
130
|
+
allowedDirectories?: string[];
|
|
131
|
+
/** Maximum file size for writes (bytes) */
|
|
132
|
+
maxFileSize?: number;
|
|
133
|
+
/** Block network access */
|
|
134
|
+
blockNetwork?: boolean;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create a security-enforcing permission handler
|
|
138
|
+
*/
|
|
139
|
+
export declare function createSecurityPermissionHandler(policy: SecurityPolicy): ToolPermissionHandler;
|
|
140
|
+
/**
|
|
141
|
+
* Preset hook configurations for common use cases
|
|
142
|
+
*/
|
|
143
|
+
export declare const PresetHooks: {
|
|
144
|
+
/**
|
|
145
|
+
* Development mode - permissive with logging
|
|
146
|
+
*/
|
|
147
|
+
development: (logger?: AuditLogger) => {
|
|
148
|
+
PreToolUse?: HookCallback[] | undefined;
|
|
149
|
+
PostToolUse?: HookCallback[] | undefined;
|
|
150
|
+
PostToolUseFailure?: HookCallback[] | undefined;
|
|
151
|
+
PermissionRequest?: HookCallback[] | undefined;
|
|
152
|
+
SessionStart?: HookCallback[] | undefined;
|
|
153
|
+
SessionEnd?: HookCallback[] | undefined;
|
|
154
|
+
Stop?: HookCallback[] | undefined;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Production mode - strict with approval and monitoring
|
|
158
|
+
*/
|
|
159
|
+
production: (approvalHandler: ApprovalHandler, logger?: AuditLogger) => Partial<Record<HookEvent, HookCallback[]>>;
|
|
160
|
+
/**
|
|
161
|
+
* CI/CD mode - automated with cost tracking
|
|
162
|
+
*/
|
|
163
|
+
cicd: (costTracker: CostTracker, maxBudget?: number) => Partial<Record<HookEvent, HookCallback[]>>;
|
|
164
|
+
/**
|
|
165
|
+
* Secure mode - strict security with file monitoring
|
|
166
|
+
*/
|
|
167
|
+
secure: (policy: SecurityPolicy, fileChangeCallback?: FileChangeCallback) => {
|
|
168
|
+
hooks: Partial<Record<HookEvent, HookCallback[]>>;
|
|
169
|
+
canUseTool: ToolPermissionHandler;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Merge multiple hook configurations
|
|
174
|
+
*/
|
|
175
|
+
export declare function mergeHooks(...hookConfigs: Array<Partial<Record<HookEvent, HookCallback[]>>>): Partial<Record<HookEvent, HookCallback[]>>;
|
|
176
|
+
//# sourceMappingURL=claude-agent-hooks.d.ts.map
|
|
@@ -275,13 +275,13 @@ export declare const SubagentDefinitionSchema: z.ZodObject<{
|
|
|
275
275
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
description: string;
|
|
278
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
278
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
279
279
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
280
280
|
prompt?: string | undefined;
|
|
281
281
|
maxTurns?: number | undefined;
|
|
282
282
|
}, {
|
|
283
283
|
description: string;
|
|
284
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
284
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
285
285
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
286
286
|
prompt?: string | undefined;
|
|
287
287
|
maxTurns?: number | undefined;
|
|
@@ -348,13 +348,13 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
348
348
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
350
|
description: string;
|
|
351
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
351
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
352
352
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
353
353
|
prompt?: string | undefined;
|
|
354
354
|
maxTurns?: number | undefined;
|
|
355
355
|
}, {
|
|
356
356
|
description: string;
|
|
357
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
357
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
358
358
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
359
359
|
prompt?: string | undefined;
|
|
360
360
|
maxTurns?: number | undefined;
|
|
@@ -373,24 +373,24 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
373
373
|
excludeFiles?: string[] | undefined;
|
|
374
374
|
env?: Record<string, string> | undefined;
|
|
375
375
|
cwd?: string | undefined;
|
|
376
|
+
maxTurns?: number | undefined;
|
|
376
377
|
additionalDirectories?: string[] | undefined;
|
|
378
|
+
allowedTools?: string[] | undefined;
|
|
379
|
+
disallowedTools?: string[] | undefined;
|
|
380
|
+
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
381
|
+
resume?: string | undefined;
|
|
382
|
+
continue?: boolean | undefined;
|
|
383
|
+
enableFileCheckpointing?: boolean | undefined;
|
|
384
|
+
maxBudgetUsd?: number | undefined;
|
|
385
|
+
maxThinkingTokens?: number | undefined;
|
|
377
386
|
agents?: Record<string, {
|
|
378
387
|
description: string;
|
|
379
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
388
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
380
389
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
381
390
|
prompt?: string | undefined;
|
|
382
391
|
maxTurns?: number | undefined;
|
|
383
392
|
}> | undefined;
|
|
384
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
385
|
-
maxTurns?: number | undefined;
|
|
386
|
-
maxBudgetUsd?: number | undefined;
|
|
387
393
|
systemPrompt?: string | undefined;
|
|
388
|
-
resume?: string | undefined;
|
|
389
|
-
allowedTools?: string[] | undefined;
|
|
390
|
-
disallowedTools?: string[] | undefined;
|
|
391
|
-
continue?: boolean | undefined;
|
|
392
|
-
enableFileCheckpointing?: boolean | undefined;
|
|
393
|
-
maxThinkingTokens?: number | undefined;
|
|
394
394
|
}, {
|
|
395
395
|
timeout?: number | undefined;
|
|
396
396
|
mcpServers?: Record<string, {
|
|
@@ -404,23 +404,23 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
404
404
|
excludeFiles?: string[] | undefined;
|
|
405
405
|
env?: Record<string, string> | undefined;
|
|
406
406
|
cwd?: string | undefined;
|
|
407
|
+
maxTurns?: number | undefined;
|
|
407
408
|
additionalDirectories?: string[] | undefined;
|
|
409
|
+
allowedTools?: string[] | undefined;
|
|
410
|
+
disallowedTools?: string[] | undefined;
|
|
411
|
+
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
412
|
+
resume?: string | undefined;
|
|
413
|
+
continue?: boolean | undefined;
|
|
414
|
+
enableFileCheckpointing?: boolean | undefined;
|
|
415
|
+
maxBudgetUsd?: number | undefined;
|
|
416
|
+
maxThinkingTokens?: number | undefined;
|
|
408
417
|
agents?: Record<string, {
|
|
409
418
|
description: string;
|
|
410
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "
|
|
419
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
411
420
|
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
412
421
|
prompt?: string | undefined;
|
|
413
422
|
maxTurns?: number | undefined;
|
|
414
423
|
}> | undefined;
|
|
415
|
-
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
416
|
-
maxTurns?: number | undefined;
|
|
417
|
-
maxBudgetUsd?: number | undefined;
|
|
418
424
|
systemPrompt?: string | undefined;
|
|
419
|
-
resume?: string | undefined;
|
|
420
|
-
allowedTools?: string[] | undefined;
|
|
421
|
-
disallowedTools?: string[] | undefined;
|
|
422
|
-
continue?: boolean | undefined;
|
|
423
|
-
enableFileCheckpointing?: boolean | undefined;
|
|
424
|
-
maxThinkingTokens?: number | undefined;
|
|
425
425
|
}>;
|
|
426
426
|
//# sourceMappingURL=claude-agent-types.d.ts.map
|
|
@@ -57,12 +57,12 @@ export declare const AgentCodeReviewSchema: z.ZodObject<{
|
|
|
57
57
|
prompt: string;
|
|
58
58
|
outputFormat?: "json" | "markdown" | "sarif" | undefined;
|
|
59
59
|
focusAreas?: string[] | undefined;
|
|
60
|
-
severity?: "
|
|
60
|
+
severity?: "high" | "all" | "critical" | "medium" | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
prompt: string;
|
|
63
63
|
outputFormat?: "json" | "markdown" | "sarif" | undefined;
|
|
64
64
|
focusAreas?: string[] | undefined;
|
|
65
|
-
severity?: "
|
|
65
|
+
severity?: "high" | "all" | "critical" | "medium" | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
/**
|
|
68
68
|
* Schema for agent.codeModify action
|
|
@@ -149,34 +149,34 @@ 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: "
|
|
153
|
-
env?: Record<string, string> | undefined;
|
|
152
|
+
type: "stdio" | "http" | "sse";
|
|
154
153
|
url?: string | undefined;
|
|
155
154
|
command?: string | undefined;
|
|
156
155
|
args?: string[] | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
type: "http" | "stdio" | "sse";
|
|
159
156
|
env?: Record<string, string> | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
type: "stdio" | "http" | "sse";
|
|
160
159
|
url?: 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
165
|
mcpServers: Record<string, {
|
|
166
|
-
type: "
|
|
167
|
-
env?: Record<string, string> | undefined;
|
|
166
|
+
type: "stdio" | "http" | "sse";
|
|
168
167
|
url?: string | undefined;
|
|
169
168
|
command?: string | undefined;
|
|
170
169
|
args?: string[] | undefined;
|
|
170
|
+
env?: Record<string, string> | undefined;
|
|
171
171
|
}>;
|
|
172
172
|
prompt: string;
|
|
173
173
|
}, {
|
|
174
174
|
mcpServers: Record<string, {
|
|
175
|
-
type: "
|
|
176
|
-
env?: Record<string, string> | undefined;
|
|
175
|
+
type: "stdio" | "http" | "sse";
|
|
177
176
|
url?: string | undefined;
|
|
178
177
|
command?: string | undefined;
|
|
179
178
|
args?: string[] | undefined;
|
|
179
|
+
env?: Record<string, string> | undefined;
|
|
180
180
|
}>;
|
|
181
181
|
prompt: string;
|
|
182
182
|
}>;
|
|
@@ -350,27 +350,27 @@ export declare const CodexThreadOptionsSchema: z.ZodObject<{
|
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
model?: string | undefined;
|
|
352
352
|
excludeFiles?: string[] | undefined;
|
|
353
|
-
workingDirectory?: string | undefined;
|
|
354
|
-
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
355
353
|
additionalDirectories?: string[] | undefined;
|
|
356
|
-
|
|
354
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
355
|
+
workingDirectory?: string | undefined;
|
|
357
356
|
skipGitRepoCheck?: boolean | undefined;
|
|
358
|
-
modelReasoningEffort?: "
|
|
357
|
+
modelReasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
359
358
|
networkAccessEnabled?: boolean | undefined;
|
|
360
359
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
361
360
|
webSearchEnabled?: boolean | undefined;
|
|
361
|
+
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
362
362
|
}, {
|
|
363
363
|
model?: string | undefined;
|
|
364
364
|
excludeFiles?: string[] | undefined;
|
|
365
|
-
workingDirectory?: string | undefined;
|
|
366
|
-
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
367
365
|
additionalDirectories?: string[] | undefined;
|
|
368
|
-
|
|
366
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
367
|
+
workingDirectory?: string | undefined;
|
|
369
368
|
skipGitRepoCheck?: boolean | undefined;
|
|
370
|
-
modelReasoningEffort?: "
|
|
369
|
+
modelReasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
371
370
|
networkAccessEnabled?: boolean | undefined;
|
|
372
371
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
373
372
|
webSearchEnabled?: boolean | undefined;
|
|
373
|
+
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
374
374
|
}>;
|
|
375
375
|
export declare const CodexClientConfigSchema: z.ZodObject<{
|
|
376
376
|
codexPathOverride: z.ZodOptional<z.ZodString>;
|
|
@@ -403,24 +403,24 @@ export declare const CodexWorkflowConfigSchema: z.ZodObject<{
|
|
|
403
403
|
model?: string | undefined;
|
|
404
404
|
excludeFiles?: string[] | undefined;
|
|
405
405
|
env?: Record<string, string> | undefined;
|
|
406
|
-
workingDirectory?: string | undefined;
|
|
407
|
-
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
408
|
-
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
409
406
|
additionalDirectories?: string[] | undefined;
|
|
410
|
-
|
|
407
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
408
|
+
workingDirectory?: string | undefined;
|
|
411
409
|
skipGitRepoCheck?: boolean | undefined;
|
|
412
410
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
411
|
+
approvalPolicy?: "never" | "on-request" | "on-failure" | "untrusted" | undefined;
|
|
412
|
+
reasoningEffort?: "minimal" | "low" | "high" | "medium" | "xhigh" | undefined;
|
|
413
413
|
}, {
|
|
414
414
|
model?: string | undefined;
|
|
415
415
|
excludeFiles?: string[] | undefined;
|
|
416
416
|
env?: Record<string, string> | undefined;
|
|
417
|
-
workingDirectory?: string | undefined;
|
|
418
|
-
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
419
|
-
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
420
417
|
additionalDirectories?: string[] | undefined;
|
|
421
|
-
|
|
418
|
+
sandboxMode?: "read-only" | "workspace-write" | "danger-full-access" | undefined;
|
|
419
|
+
workingDirectory?: string | undefined;
|
|
422
420
|
skipGitRepoCheck?: boolean | undefined;
|
|
423
421
|
webSearchMode?: "disabled" | "cached" | "live" | undefined;
|
|
422
|
+
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">;
|
|
@@ -435,11 +435,11 @@ export declare const UserInputSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
435
435
|
type: z.ZodLiteral<"local_image">;
|
|
436
436
|
path: z.ZodString;
|
|
437
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
|
-
type: "local_image";
|
|
439
438
|
path: string;
|
|
440
|
-
}, {
|
|
441
439
|
type: "local_image";
|
|
440
|
+
}, {
|
|
442
441
|
path: string;
|
|
442
|
+
type: "local_image";
|
|
443
443
|
}>]>;
|
|
444
444
|
export declare const InputSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
445
445
|
type: z.ZodLiteral<"text">;
|
|
@@ -454,10 +454,10 @@ export declare const InputSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion
|
|
|
454
454
|
type: z.ZodLiteral<"local_image">;
|
|
455
455
|
path: z.ZodString;
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
|
-
type: "local_image";
|
|
458
457
|
path: string;
|
|
459
|
-
}, {
|
|
460
458
|
type: "local_image";
|
|
459
|
+
}, {
|
|
461
460
|
path: string;
|
|
461
|
+
type: "local_image";
|
|
462
462
|
}>]>, "many">]>;
|
|
463
463
|
//# sourceMappingURL=codex-types.d.ts.map
|
|
@@ -26,18 +26,18 @@ export declare const CodexChatSchema: z.ZodObject<{
|
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
prompt: string;
|
|
28
28
|
threadId?: string | undefined;
|
|
29
|
-
sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
|
|
30
29
|
model?: string | undefined;
|
|
30
|
+
sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
|
|
31
31
|
workingDirectory?: string | undefined;
|
|
32
|
-
reasoningEffort?: "
|
|
32
|
+
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
33
33
|
webSearch?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
prompt: string;
|
|
36
36
|
threadId?: string | undefined;
|
|
37
|
-
sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
|
|
38
37
|
model?: string | undefined;
|
|
38
|
+
sandboxMode?: "workspace-write" | "read-only" | "danger-full-access" | undefined;
|
|
39
39
|
workingDirectory?: string | undefined;
|
|
40
|
-
reasoningEffort?: "
|
|
40
|
+
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | 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
|
-
additionalDirectories?: string[] | undefined;
|
|
55
54
|
excludeFiles?: string[] | undefined;
|
|
55
|
+
additionalDirectories?: string[] | undefined;
|
|
56
56
|
workingDirectory?: string | undefined;
|
|
57
|
-
reasoningEffort?: "
|
|
57
|
+
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
prompt: string;
|
|
60
|
-
additionalDirectories?: string[] | undefined;
|
|
61
60
|
excludeFiles?: string[] | undefined;
|
|
61
|
+
additionalDirectories?: string[] | undefined;
|
|
62
62
|
workingDirectory?: string | undefined;
|
|
63
|
-
reasoningEffort?: "
|
|
63
|
+
reasoningEffort?: "low" | "high" | "minimal" | "medium" | "xhigh" | undefined;
|
|
64
64
|
}>;
|
|
65
65
|
/**
|
|
66
66
|
* Schema for codex.codeAnalyze action
|
|
@@ -72,13 +72,13 @@ 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
|
-
additionalDirectories?: string[] | undefined;
|
|
76
75
|
excludeFiles?: string[] | undefined;
|
|
76
|
+
additionalDirectories?: string[] | undefined;
|
|
77
77
|
workingDirectory?: string | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
prompt: string;
|
|
80
|
-
additionalDirectories?: string[] | undefined;
|
|
81
80
|
excludeFiles?: string[] | undefined;
|
|
81
|
+
additionalDirectories?: string[] | undefined;
|
|
82
82
|
workingDirectory?: string | undefined;
|
|
83
83
|
}>;
|
|
84
84
|
/**
|
|
@@ -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
|
-
workingDirectory?: string | undefined;
|
|
95
94
|
files?: string[] | undefined;
|
|
95
|
+
workingDirectory?: string | undefined;
|
|
96
96
|
focusAreas?: string[] | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
prompt: string;
|
|
99
|
-
workingDirectory?: string | undefined;
|
|
100
99
|
files?: string[] | undefined;
|
|
100
|
+
workingDirectory?: string | undefined;
|
|
101
101
|
focusAreas?: string[] | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
/**
|