@marktoflow/integrations 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +34 -34
- package/dist/adapters/codex-types.d.ts +20 -20
- package/dist/adapters/github-copilot-types.d.ts +16 -16
- package/dist/adapters/ollama-types.d.ts +128 -128
- 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/hubspot.d.ts +315 -0
- package/dist/services/hubspot.d.ts.map +1 -0
- package/dist/services/hubspot.js +246 -0
- package/dist/services/hubspot.js.map +1 -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/salesforce.d.ts +269 -0
- package/dist/services/salesforce.d.ts.map +1 -0
- package/dist/services/salesforce.js +286 -0
- package/dist/services/salesforce.js.map +1 -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 +5 -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,15 +275,15 @@ 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" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
279
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
280
278
|
prompt?: string | undefined;
|
|
279
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
280
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
281
281
|
maxTurns?: number | undefined;
|
|
282
282
|
}, {
|
|
283
283
|
description: string;
|
|
284
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
285
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
286
284
|
prompt?: string | undefined;
|
|
285
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
286
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
287
287
|
maxTurns?: number | undefined;
|
|
288
288
|
}>;
|
|
289
289
|
export declare const McpServerConfigSchema: z.ZodObject<{
|
|
@@ -348,19 +348,21 @@ 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" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
352
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
353
351
|
prompt?: string | undefined;
|
|
352
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
353
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
354
354
|
maxTurns?: number | undefined;
|
|
355
355
|
}, {
|
|
356
356
|
description: string;
|
|
357
|
-
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
358
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
359
357
|
prompt?: string | undefined;
|
|
358
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
359
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
360
360
|
maxTurns?: number | undefined;
|
|
361
361
|
}>>>;
|
|
362
362
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
model?: string | undefined;
|
|
365
|
+
excludeFiles?: string[] | undefined;
|
|
364
366
|
timeout?: number | undefined;
|
|
365
367
|
mcpServers?: Record<string, {
|
|
366
368
|
type: "stdio" | "http" | "sse" | "sdk";
|
|
@@ -369,29 +371,29 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
369
371
|
args?: string[] | undefined;
|
|
370
372
|
env?: Record<string, string> | undefined;
|
|
371
373
|
}> | undefined;
|
|
372
|
-
model?: string | undefined;
|
|
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" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
380
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
381
388
|
prompt?: string | undefined;
|
|
389
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
390
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | 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
|
+
model?: string | undefined;
|
|
396
|
+
excludeFiles?: string[] | undefined;
|
|
395
397
|
timeout?: number | undefined;
|
|
396
398
|
mcpServers?: Record<string, {
|
|
397
399
|
type: "stdio" | "http" | "sse" | "sdk";
|
|
@@ -400,27 +402,25 @@ export declare const ClaudeAgentOptionsSchema: z.ZodObject<{
|
|
|
400
402
|
args?: string[] | undefined;
|
|
401
403
|
env?: Record<string, string> | undefined;
|
|
402
404
|
}> | undefined;
|
|
403
|
-
model?: string | undefined;
|
|
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" | "Task" | "TodoWrite" | "AskUserQuestion" | "NotebookEdit" | "BashOutput" | "KillBash")[] | undefined;
|
|
411
|
-
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
412
419
|
prompt?: string | undefined;
|
|
420
|
+
model?: "sonnet" | "opus" | "haiku" | undefined;
|
|
421
|
+
tools?: ("Read" | "Write" | "Edit" | "Bash" | "Glob" | "Grep" | "WebSearch" | "WebFetch" | "AskUserQuestion" | "Task" | "TodoWrite" | "NotebookEdit" | "BashOutput" | "KillBash")[] | 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
|
|
@@ -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
357
|
modelReasoningEffort?: "low" | "high" | "minimal" | "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
369
|
modelReasoningEffort?: "low" | "high" | "minimal" | "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>;
|
|
@@ -378,13 +378,13 @@ export declare const CodexClientConfigSchema: z.ZodObject<{
|
|
|
378
378
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
379
379
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
380
380
|
}, "strip", z.ZodTypeAny, {
|
|
381
|
-
apiKey?: string | undefined;
|
|
382
381
|
baseUrl?: string | undefined;
|
|
382
|
+
apiKey?: string | undefined;
|
|
383
383
|
env?: Record<string, string> | undefined;
|
|
384
384
|
codexPathOverride?: string | undefined;
|
|
385
385
|
}, {
|
|
386
|
-
apiKey?: string | undefined;
|
|
387
386
|
baseUrl?: string | undefined;
|
|
387
|
+
apiKey?: string | undefined;
|
|
388
388
|
env?: Record<string, string> | undefined;
|
|
389
389
|
codexPathOverride?: string | undefined;
|
|
390
390
|
}>;
|
|
@@ -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?: "low" | "high" | "minimal" | "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?: "low" | "high" | "minimal" | "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
|
|
@@ -582,8 +582,8 @@ export declare const CustomAgentConfigSchema: z.ZodObject<{
|
|
|
582
582
|
}>]>>>;
|
|
583
583
|
infer: z.ZodOptional<z.ZodBoolean>;
|
|
584
584
|
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
name: string;
|
|
586
585
|
prompt: string;
|
|
586
|
+
name: string;
|
|
587
587
|
displayName?: string | undefined;
|
|
588
588
|
description?: string | undefined;
|
|
589
589
|
tools?: string[] | null | undefined;
|
|
@@ -604,8 +604,8 @@ export declare const CustomAgentConfigSchema: z.ZodObject<{
|
|
|
604
604
|
}> | undefined;
|
|
605
605
|
infer?: boolean | undefined;
|
|
606
606
|
}, {
|
|
607
|
-
name: string;
|
|
608
607
|
prompt: string;
|
|
608
|
+
name: string;
|
|
609
609
|
displayName?: string | undefined;
|
|
610
610
|
description?: string | undefined;
|
|
611
611
|
tools?: string[] | null | undefined;
|
|
@@ -666,20 +666,20 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
666
666
|
mode: z.ZodOptional<z.ZodLiteral<"append">>;
|
|
667
667
|
content: z.ZodOptional<z.ZodString>;
|
|
668
668
|
}, "strip", z.ZodTypeAny, {
|
|
669
|
-
content?: string | undefined;
|
|
670
669
|
mode?: "append" | undefined;
|
|
671
|
-
}, {
|
|
672
670
|
content?: string | undefined;
|
|
671
|
+
}, {
|
|
673
672
|
mode?: "append" | undefined;
|
|
673
|
+
content?: string | undefined;
|
|
674
674
|
}>, z.ZodObject<{
|
|
675
675
|
mode: z.ZodLiteral<"replace">;
|
|
676
676
|
content: z.ZodString;
|
|
677
677
|
}, "strip", z.ZodTypeAny, {
|
|
678
|
-
content: string;
|
|
679
678
|
mode: "replace";
|
|
680
|
-
}, {
|
|
681
679
|
content: string;
|
|
680
|
+
}, {
|
|
682
681
|
mode: "replace";
|
|
682
|
+
content: string;
|
|
683
683
|
}>]>>;
|
|
684
684
|
availableTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
685
685
|
excludedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -810,8 +810,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
810
810
|
}>]>>>;
|
|
811
811
|
infer: z.ZodOptional<z.ZodBoolean>;
|
|
812
812
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
name: string;
|
|
814
813
|
prompt: string;
|
|
814
|
+
name: string;
|
|
815
815
|
displayName?: string | undefined;
|
|
816
816
|
description?: string | undefined;
|
|
817
817
|
tools?: string[] | null | undefined;
|
|
@@ -832,8 +832,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
832
832
|
}> | undefined;
|
|
833
833
|
infer?: boolean | undefined;
|
|
834
834
|
}, {
|
|
835
|
-
name: string;
|
|
836
835
|
prompt: string;
|
|
836
|
+
name: string;
|
|
837
837
|
displayName?: string | undefined;
|
|
838
838
|
description?: string | undefined;
|
|
839
839
|
tools?: string[] | null | undefined;
|
|
@@ -870,6 +870,7 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
870
870
|
bufferExhaustionThreshold?: number | undefined;
|
|
871
871
|
}>>;
|
|
872
872
|
}, "strip", z.ZodTypeAny, {
|
|
873
|
+
model?: string | undefined;
|
|
873
874
|
provider?: {
|
|
874
875
|
baseUrl: string;
|
|
875
876
|
type?: "openai" | "anthropic" | "azure" | undefined;
|
|
@@ -897,8 +898,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
897
898
|
timeout?: number | undefined;
|
|
898
899
|
}> | undefined;
|
|
899
900
|
customAgents?: {
|
|
900
|
-
name: string;
|
|
901
901
|
prompt: string;
|
|
902
|
+
name: string;
|
|
902
903
|
displayName?: string | undefined;
|
|
903
904
|
description?: string | undefined;
|
|
904
905
|
tools?: string[] | null | undefined;
|
|
@@ -921,13 +922,12 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
921
922
|
}[] | undefined;
|
|
922
923
|
skillDirectories?: string[] | undefined;
|
|
923
924
|
disabledSkills?: string[] | undefined;
|
|
924
|
-
model?: string | undefined;
|
|
925
925
|
systemMessage?: {
|
|
926
|
-
content?: string | undefined;
|
|
927
926
|
mode?: "append" | undefined;
|
|
927
|
+
content?: string | undefined;
|
|
928
928
|
} | {
|
|
929
|
-
content: string;
|
|
930
929
|
mode: "replace";
|
|
930
|
+
content: string;
|
|
931
931
|
} | undefined;
|
|
932
932
|
availableTools?: string[] | undefined;
|
|
933
933
|
excludedTools?: string[] | undefined;
|
|
@@ -939,6 +939,7 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
939
939
|
bufferExhaustionThreshold?: number | undefined;
|
|
940
940
|
} | undefined;
|
|
941
941
|
}, {
|
|
942
|
+
model?: string | undefined;
|
|
942
943
|
provider?: {
|
|
943
944
|
baseUrl: string;
|
|
944
945
|
type?: "openai" | "anthropic" | "azure" | undefined;
|
|
@@ -966,8 +967,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
966
967
|
timeout?: number | undefined;
|
|
967
968
|
}> | undefined;
|
|
968
969
|
customAgents?: {
|
|
969
|
-
name: string;
|
|
970
970
|
prompt: string;
|
|
971
|
+
name: string;
|
|
971
972
|
displayName?: string | undefined;
|
|
972
973
|
description?: string | undefined;
|
|
973
974
|
tools?: string[] | null | undefined;
|
|
@@ -990,13 +991,12 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
990
991
|
}[] | undefined;
|
|
991
992
|
skillDirectories?: string[] | undefined;
|
|
992
993
|
disabledSkills?: string[] | undefined;
|
|
993
|
-
model?: string | undefined;
|
|
994
994
|
systemMessage?: {
|
|
995
|
-
content?: string | undefined;
|
|
996
995
|
mode?: "append" | undefined;
|
|
996
|
+
content?: string | undefined;
|
|
997
997
|
} | {
|
|
998
|
-
content: string;
|
|
999
998
|
mode: "replace";
|
|
999
|
+
content: string;
|
|
1000
1000
|
} | undefined;
|
|
1001
1001
|
availableTools?: string[] | undefined;
|
|
1002
1002
|
excludedTools?: string[] | undefined;
|