@undefineds.co/models 0.1.1 → 0.2.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/dist/agent.repository.d.ts +20 -40
- package/dist/agent.schema.d.ts +20 -1
- package/dist/agent.schema.js +25 -1
- package/dist/ai-config/index.d.ts +8 -6
- package/dist/ai-config/index.js +41 -23
- package/dist/ai-model.schema.d.ts +13 -1
- package/dist/ai-model.schema.js +17 -1
- package/dist/ai-provider.schema.d.ts +9 -1
- package/dist/ai-provider.schema.js +13 -1
- package/dist/approval.schema.d.ts +21 -1
- package/dist/approval.schema.js +33 -1
- package/dist/audit.schema.d.ts +17 -1
- package/dist/audit.schema.js +29 -1
- package/dist/chat.repository.d.ts +19 -15
- package/dist/chat.schema.d.ts +37 -1
- package/dist/chat.schema.js +47 -1
- package/dist/client/index.d.ts +121 -0
- package/dist/client/index.js +299 -0
- package/dist/contact.repository.d.ts +21 -21
- package/dist/contact.schema.d.ts +48 -1
- package/dist/contact.schema.js +60 -1
- package/dist/credential.schema.d.ts +15 -1
- package/dist/credential.schema.js +19 -1
- package/dist/discovery/index.d.ts +2 -2
- package/dist/discovery/index.js +2 -2
- package/dist/extension/extension.schema.d.ts +4 -1
- package/dist/extension/extension.schema.js +11 -1
- package/dist/extension/index.d.ts +1 -1
- package/dist/favorite/favorite.schema.d.ts +24 -1
- package/dist/favorite/favorite.schema.js +34 -1
- package/dist/favorite/index.d.ts +2 -2
- package/dist/file/file.schema.d.ts +39 -1
- package/dist/file/file.schema.js +51 -1
- package/dist/file/index.d.ts +1 -1
- package/dist/fixtures/contracts-chat-contact.d.ts +5 -5
- package/dist/fixtures/contracts-chat-contact.js +1 -1
- package/dist/grant.schema.d.ts +16 -1
- package/dist/grant.schema.js +29 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/inbox-notification.schema.d.ts +9 -1
- package/dist/inbox-notification.schema.js +16 -1
- package/dist/index.d.ts +42 -40
- package/dist/index.js +20 -16
- package/dist/knowledge/index.d.ts +1 -1
- package/dist/knowledge/knowledge-folder.schema.d.ts +7 -1
- package/dist/knowledge/knowledge-folder.schema.js +6 -1
- package/dist/message.repository.d.ts +20 -20
- package/dist/message.schema.d.ts +32 -1
- package/dist/message.schema.js +47 -1
- package/dist/namespaces.d.ts +178 -1
- package/dist/namespaces.js +253 -1
- package/dist/profile.d.ts +22 -1
- package/dist/profile.js +88 -1
- package/dist/profile.repository.d.ts +105 -0
- package/dist/profile.repository.js +47 -0
- package/dist/profile.schema.d.ts +16 -0
- package/dist/{core/profile.js → profile.schema.js} +4 -4
- package/dist/repository.d.ts +49 -9
- package/dist/repository.js +49 -46
- package/dist/schema.d.ts +244 -1
- package/dist/schema.js +37 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/session.schema.d.ts +43 -1
- package/dist/session/session.schema.js +46 -1
- package/dist/session.repository.d.ts +61 -0
- package/dist/session.repository.js +8 -0
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/settings.schema.d.ts +49 -1
- package/dist/settings/settings.schema.js +63 -1
- package/dist/sidecar/persistence-mapping.d.ts +5 -5
- package/dist/sidecar/sidecar-events.d.ts +30 -30
- package/dist/thread.repository.d.ts +15 -19
- package/dist/thread.schema.d.ts +30 -1
- package/dist/thread.schema.js +39 -1
- package/dist/types/message-block.d.ts +1 -1
- package/dist/vocab/_namespaces.d.ts +1 -1
- package/dist/vocab/index.d.ts +5 -6
- package/dist/vocab/index.js +0 -1
- package/dist/vocab/message.vocab.js +1 -1
- package/dist/vocab/thread.vocab.d.ts +1 -2
- package/dist/vocab/thread.vocab.js +2 -3
- package/dist/watch/index.d.ts +226 -0
- package/dist/watch/index.js +1156 -0
- package/package.json +41 -31
- package/dist/_drizzle-solid/columns.d.ts +0 -37
- package/dist/_drizzle-solid/columns.js +0 -1
- package/dist/_drizzle-solid/pod-table.d.ts +0 -3
- package/dist/_drizzle-solid/pod-table.js +0 -1
- package/dist/_drizzle-solid/types.d.ts +0 -40
- package/dist/_drizzle-solid/types.js +0 -1
- package/dist/ai-config.d.ts +0 -1
- package/dist/ai-config.js +0 -1
- package/dist/chat.utils.d.ts +0 -3
- package/dist/chat.utils.js +0 -30
- package/dist/core/agent-provider.schema.d.ts +0 -1
- package/dist/core/agent-provider.schema.js +0 -1
- package/dist/core/agent-status.schema.d.ts +0 -12
- package/dist/core/agent-status.schema.js +0 -18
- package/dist/core/agent.schema.d.ts +0 -72
- package/dist/core/agent.schema.js +0 -38
- package/dist/core/ai-config.schema.d.ts +0 -11
- package/dist/core/ai-config.schema.js +0 -18
- package/dist/core/ai-model.schema.d.ts +0 -15
- package/dist/core/ai-model.schema.js +0 -21
- package/dist/core/ai-provider.schema.d.ts +0 -16
- package/dist/core/ai-provider.schema.js +0 -28
- package/dist/core/approval.schema.d.ts +0 -21
- package/dist/core/approval.schema.js +0 -33
- package/dist/core/audit.schema.d.ts +0 -17
- package/dist/core/audit.schema.js +0 -29
- package/dist/core/chat.schema.d.ts +0 -36
- package/dist/core/chat.schema.js +0 -45
- package/dist/core/contact.schema.d.ts +0 -47
- package/dist/core/contact.schema.js +0 -59
- package/dist/core/credential.schema.d.ts +0 -56
- package/dist/core/credential.schema.js +0 -40
- package/dist/core/extension/extension.schema.d.ts +0 -4
- package/dist/core/extension/extension.schema.js +0 -11
- package/dist/core/extension/index.d.ts +0 -1
- package/dist/core/extension/index.js +0 -1
- package/dist/core/extension.d.ts +0 -1
- package/dist/core/extension.js +0 -1
- package/dist/core/favorite/favorite.schema.d.ts +0 -24
- package/dist/core/favorite/favorite.schema.js +0 -34
- package/dist/core/favorite/index.d.ts +0 -1
- package/dist/core/favorite/index.js +0 -1
- package/dist/core/file/file.schema.d.ts +0 -39
- package/dist/core/file/file.schema.js +0 -51
- package/dist/core/file/index.d.ts +0 -1
- package/dist/core/file/index.js +0 -1
- package/dist/core/file.d.ts +0 -1
- package/dist/core/file.js +0 -1
- package/dist/core/grant.schema.d.ts +0 -16
- package/dist/core/grant.schema.js +0 -29
- package/dist/core/import/import-job.schema.d.ts +0 -5
- package/dist/core/import/import-job.schema.js +0 -5
- package/dist/core/import/index.d.ts +0 -1
- package/dist/core/import/index.js +0 -1
- package/dist/core/import.d.ts +0 -1
- package/dist/core/import.js +0 -1
- package/dist/core/inbox-notification.schema.d.ts +0 -9
- package/dist/core/inbox-notification.schema.js +0 -16
- package/dist/core/index.d.ts +0 -31
- package/dist/core/index.js +0 -32
- package/dist/core/knowledge/index.d.ts +0 -1
- package/dist/core/knowledge/index.js +0 -1
- package/dist/core/knowledge/knowledge-folder.schema.d.ts +0 -7
- package/dist/core/knowledge/knowledge-folder.schema.js +0 -6
- package/dist/core/knowledge.d.ts +0 -1
- package/dist/core/knowledge.js +0 -1
- package/dist/core/message.schema.d.ts +0 -33
- package/dist/core/message.schema.js +0 -49
- package/dist/core/namespaces.d.ts +0 -176
- package/dist/core/namespaces.js +0 -289
- package/dist/core/profile.d.ts +0 -16
- package/dist/core/schema.d.ts +0 -304
- package/dist/core/schema.js +0 -46
- package/dist/core/session/index.d.ts +0 -1
- package/dist/core/session/index.js +0 -1
- package/dist/core/session/session.schema.d.ts +0 -6
- package/dist/core/session/session.schema.js +0 -6
- package/dist/core/session.d.ts +0 -1
- package/dist/core/session.js +0 -1
- package/dist/core/settings/index.d.ts +0 -1
- package/dist/core/settings/index.js +0 -1
- package/dist/core/settings/settings.schema.d.ts +0 -49
- package/dist/core/settings/settings.schema.js +0 -63
- package/dist/core/settings.d.ts +0 -1
- package/dist/core/settings.js +0 -1
- package/dist/core/thread.schema.d.ts +0 -28
- package/dist/core/thread.schema.js +0 -36
- package/dist/core/types/collaboration-blocks.d.ts +0 -52
- package/dist/core/types/collaboration-blocks.js +0 -7
- package/dist/core/types/message-block.d.ts +0 -270
- package/dist/core/types/message-block.js +0 -125
- package/dist/core/vector-store.schema.d.ts +0 -25
- package/dist/core/vector-store.schema.js +0 -35
- package/dist/core/vocab/_namespaces.d.ts +0 -1
- package/dist/core/vocab/_namespaces.js +0 -3
- package/dist/core/vocab/chat.vocab.d.ts +0 -16
- package/dist/core/vocab/chat.vocab.js +0 -22
- package/dist/core/vocab/contact.vocab.d.ts +0 -21
- package/dist/core/vocab/contact.vocab.js +0 -22
- package/dist/core/vocab/index.d.ts +0 -6
- package/dist/core/vocab/index.js +0 -6
- package/dist/core/vocab/message.vocab.d.ts +0 -20
- package/dist/core/vocab/message.vocab.js +0 -24
- package/dist/core/vocab/sidecar.vocab.d.ts +0 -46
- package/dist/core/vocab/sidecar.vocab.js +0 -47
- package/dist/core/vocab/thread.vocab.d.ts +0 -11
- package/dist/core/vocab/thread.vocab.js +0 -14
- package/dist/core/vocab/workspace.vocab.d.ts +0 -12
- package/dist/core/vocab/workspace.vocab.js +0 -13
- package/dist/core/vocab.d.ts +0 -1
- package/dist/core/vocab.js +0 -1
- package/dist/core/workspace.schema.d.ts +0 -35
- package/dist/core/workspace.schema.js +0 -106
- package/dist/core.d.ts +0 -1
- package/dist/core.js +0 -1
- package/dist/discovery/vercel.d.ts +0 -25
- package/dist/discovery/vercel.js +0 -95
- package/dist/discovery.d.ts +0 -1
- package/dist/discovery.js +0 -1
- package/dist/extension.d.ts +0 -1
- package/dist/extension.js +0 -1
- package/dist/favorite.d.ts +0 -1
- package/dist/favorite.js +0 -1
- package/dist/file.d.ts +0 -1
- package/dist/file.js +0 -1
- package/dist/import.d.ts +0 -1
- package/dist/import.js +0 -1
- package/dist/knowledge.d.ts +0 -1
- package/dist/knowledge.js +0 -1
- package/dist/session.d.ts +0 -1
- package/dist/session.js +0 -1
- package/dist/settings.d.ts +0 -1
- package/dist/settings.js +0 -1
- package/dist/sidecar/index.d.ts +0 -2
- package/dist/sidecar/index.js +0 -2
- package/dist/vocab/workspace.vocab.d.ts +0 -12
- package/dist/vocab/workspace.vocab.js +0 -13
- package/dist/vocab.d.ts +0 -1
- package/dist/vocab.js +0 -1
- package/dist/workspace.repository.d.ts +0 -45
- package/dist/workspace.repository.js +0 -8
- package/dist/workspace.schema.d.ts +0 -1
- package/dist/workspace.schema.js +0 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
export type WatchBackend = 'codex' | 'claude' | 'codebuddy';
|
|
2
|
+
export type WatchMode = 'manual' | 'smart' | 'auto';
|
|
3
|
+
export type WatchSessionStatus = 'running' | 'completed' | 'failed';
|
|
4
|
+
export type WatchOutputStream = 'stdout' | 'stderr' | 'system';
|
|
5
|
+
export type WatchCredentialSource = 'auto' | 'local' | 'cloud';
|
|
6
|
+
export type WatchResolvedCredentialSource = 'local' | 'cloud';
|
|
7
|
+
export type WatchApprovalSource = 'local' | 'remote' | 'hybrid';
|
|
8
|
+
export type WatchRuntime = 'local';
|
|
9
|
+
export type WatchTransport = 'native' | 'acp';
|
|
10
|
+
export type WatchAuthState = 'authenticated' | 'unauthenticated' | 'unknown';
|
|
11
|
+
export interface WatchAuthStatus {
|
|
12
|
+
state: WatchAuthState;
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface WatchAuthFailure {
|
|
16
|
+
message: string;
|
|
17
|
+
}
|
|
18
|
+
export type WatchCloudCredentialProbeStatus = 'available' | 'unavailable' | 'error';
|
|
19
|
+
export interface WatchCloudCredentialProbe {
|
|
20
|
+
status: WatchCloudCredentialProbeStatus;
|
|
21
|
+
message?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface WatchCredentialSourceResolution {
|
|
24
|
+
requestedSource: WatchCredentialSource;
|
|
25
|
+
resolvedSource?: WatchResolvedCredentialSource;
|
|
26
|
+
authStatus: WatchAuthStatus;
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface WatchSessionRecord {
|
|
30
|
+
id: string;
|
|
31
|
+
backend: WatchBackend;
|
|
32
|
+
runtime: WatchRuntime;
|
|
33
|
+
transport?: WatchTransport;
|
|
34
|
+
mode: WatchMode;
|
|
35
|
+
cwd: string;
|
|
36
|
+
model?: string;
|
|
37
|
+
prompt?: string;
|
|
38
|
+
passthroughArgs: string[];
|
|
39
|
+
credentialSource: WatchCredentialSource;
|
|
40
|
+
resolvedCredentialSource?: WatchResolvedCredentialSource;
|
|
41
|
+
approvalSource?: WatchApprovalSource;
|
|
42
|
+
command: string;
|
|
43
|
+
args: string[];
|
|
44
|
+
status: WatchSessionStatus;
|
|
45
|
+
startedAt: string;
|
|
46
|
+
endedAt?: string;
|
|
47
|
+
exitCode?: number | null;
|
|
48
|
+
signal?: string | null;
|
|
49
|
+
error?: string;
|
|
50
|
+
backendSessionId?: string;
|
|
51
|
+
archiveDir: string;
|
|
52
|
+
eventsFile: string;
|
|
53
|
+
}
|
|
54
|
+
export type WatchApprovalRequestKind = 'command-approval' | 'file-change-approval' | 'permissions-approval' | 'codex-approval';
|
|
55
|
+
export type WatchInteractionRequestKind = WatchApprovalRequestKind | 'user-input';
|
|
56
|
+
export type WatchApprovalDecision = 'accept' | 'accept_for_session' | 'decline' | 'cancel';
|
|
57
|
+
interface WatchInteractionRequestBase {
|
|
58
|
+
kind: WatchInteractionRequestKind;
|
|
59
|
+
message: string;
|
|
60
|
+
raw?: unknown;
|
|
61
|
+
}
|
|
62
|
+
export interface WatchCommandApprovalRequest extends WatchInteractionRequestBase {
|
|
63
|
+
kind: 'command-approval';
|
|
64
|
+
command?: string;
|
|
65
|
+
cwd?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface WatchFileChangeApprovalRequest extends WatchInteractionRequestBase {
|
|
68
|
+
kind: 'file-change-approval';
|
|
69
|
+
reason?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface WatchPermissionsApprovalRequest extends WatchInteractionRequestBase {
|
|
72
|
+
kind: 'permissions-approval';
|
|
73
|
+
permissions: Record<string, unknown>;
|
|
74
|
+
}
|
|
75
|
+
export interface WatchCodexApprovalRequest extends WatchInteractionRequestBase {
|
|
76
|
+
kind: 'codex-approval';
|
|
77
|
+
}
|
|
78
|
+
export interface WatchUserInputOption {
|
|
79
|
+
label: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface WatchUserInputQuestion {
|
|
83
|
+
id: string;
|
|
84
|
+
header: string;
|
|
85
|
+
question: string;
|
|
86
|
+
options: WatchUserInputOption[];
|
|
87
|
+
}
|
|
88
|
+
export interface WatchUserInputRequest extends WatchInteractionRequestBase {
|
|
89
|
+
kind: 'user-input';
|
|
90
|
+
questions: WatchUserInputQuestion[];
|
|
91
|
+
}
|
|
92
|
+
export type WatchApprovalRequest = WatchCommandApprovalRequest | WatchFileChangeApprovalRequest | WatchPermissionsApprovalRequest | WatchCodexApprovalRequest;
|
|
93
|
+
export type WatchInteractionRequest = WatchApprovalRequest | WatchUserInputRequest;
|
|
94
|
+
export interface WatchUserInputAnswerRecord {
|
|
95
|
+
answers: string[];
|
|
96
|
+
}
|
|
97
|
+
export type WatchUserInputAnswers = Record<string, WatchUserInputAnswerRecord>;
|
|
98
|
+
export interface WatchToolCallEvent {
|
|
99
|
+
type: 'tool.call';
|
|
100
|
+
name: string;
|
|
101
|
+
arguments?: Record<string, unknown>;
|
|
102
|
+
raw?: unknown;
|
|
103
|
+
}
|
|
104
|
+
export interface WatchApprovalRequiredEvent {
|
|
105
|
+
type: 'approval.required';
|
|
106
|
+
message: string;
|
|
107
|
+
request?: WatchApprovalRequest;
|
|
108
|
+
raw?: unknown;
|
|
109
|
+
}
|
|
110
|
+
export interface WatchInputRequiredEvent {
|
|
111
|
+
type: 'input.required';
|
|
112
|
+
message: string;
|
|
113
|
+
request: WatchUserInputRequest;
|
|
114
|
+
raw?: unknown;
|
|
115
|
+
}
|
|
116
|
+
export interface WatchAssistantDeltaEvent {
|
|
117
|
+
type: 'assistant.delta';
|
|
118
|
+
text: string;
|
|
119
|
+
raw?: unknown;
|
|
120
|
+
}
|
|
121
|
+
export interface WatchAssistantDoneEvent {
|
|
122
|
+
type: 'assistant.done';
|
|
123
|
+
text?: string;
|
|
124
|
+
raw?: unknown;
|
|
125
|
+
}
|
|
126
|
+
export interface WatchNoteEvent {
|
|
127
|
+
type: 'session.note';
|
|
128
|
+
message: string;
|
|
129
|
+
raw?: unknown;
|
|
130
|
+
}
|
|
131
|
+
export type WatchNormalizedEvent = WatchToolCallEvent | WatchApprovalRequiredEvent | WatchInputRequiredEvent | WatchAssistantDeltaEvent | WatchAssistantDoneEvent | WatchNoteEvent;
|
|
132
|
+
export interface WatchEventLogEntry {
|
|
133
|
+
timestamp: string;
|
|
134
|
+
stream: WatchOutputStream;
|
|
135
|
+
line: string;
|
|
136
|
+
events: WatchNormalizedEvent[];
|
|
137
|
+
}
|
|
138
|
+
export interface WatchThreadMetadata extends Record<string, unknown> {
|
|
139
|
+
kind: 'watch';
|
|
140
|
+
delegatedTo: 'secretary';
|
|
141
|
+
sessionId: string;
|
|
142
|
+
backend: WatchBackend;
|
|
143
|
+
runtime: WatchRuntime;
|
|
144
|
+
transport?: WatchTransport;
|
|
145
|
+
mode: WatchMode;
|
|
146
|
+
cwd: string;
|
|
147
|
+
model?: string;
|
|
148
|
+
credentialSource: WatchCredentialSource;
|
|
149
|
+
resolvedCredentialSource?: WatchResolvedCredentialSource;
|
|
150
|
+
approvalSource?: WatchApprovalSource;
|
|
151
|
+
status: WatchSessionStatus;
|
|
152
|
+
backendSessionId?: string;
|
|
153
|
+
}
|
|
154
|
+
export type WatchTranscriptMessageRole = 'user' | 'assistant' | 'system';
|
|
155
|
+
export interface WatchTranscriptMessage {
|
|
156
|
+
role: WatchTranscriptMessageRole;
|
|
157
|
+
content: string;
|
|
158
|
+
createdAt: string;
|
|
159
|
+
}
|
|
160
|
+
export interface CreateWatchSessionIdOptions {
|
|
161
|
+
now?: Date;
|
|
162
|
+
randomId?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface WatchArchiveRelativePaths {
|
|
165
|
+
sessionDir: string;
|
|
166
|
+
sessionFile: string;
|
|
167
|
+
eventsFile: string;
|
|
168
|
+
}
|
|
169
|
+
export declare const WATCH_HOME_DIRNAME = "watch";
|
|
170
|
+
export declare const WATCH_SESSIONS_DIRNAME = "sessions";
|
|
171
|
+
export declare const WATCH_SESSION_FILE_NAME = "session.json";
|
|
172
|
+
export declare const WATCH_EVENTS_FILE_NAME = "events.jsonl";
|
|
173
|
+
export declare function normalizeWatchUserInputQuestion(value: unknown, fallbackId?: string): WatchUserInputQuestion | null;
|
|
174
|
+
export declare function resolveWatchQuestionAnswer(question: WatchUserInputQuestion, answer: string): string[];
|
|
175
|
+
export declare function createWatchSessionId(options?: CreateWatchSessionIdOptions): string;
|
|
176
|
+
export declare function normalizeWatchCredentialSource(source?: WatchCredentialSource | null): WatchCredentialSource;
|
|
177
|
+
export declare function shouldAttemptCloudCredentialProbe(requestedSource: WatchCredentialSource, localAuthStatus: WatchAuthStatus): boolean;
|
|
178
|
+
export declare function formatWatchAutoFallbackMessage(localMessage: string, detail: string): string;
|
|
179
|
+
export declare function resolveWatchCredentialSourceResolution(input: {
|
|
180
|
+
requestedSource?: WatchCredentialSource | null;
|
|
181
|
+
localAuthStatus: WatchAuthStatus;
|
|
182
|
+
cloudCredentialProbe?: WatchCloudCredentialProbe;
|
|
183
|
+
defaultLocalMessage?: string;
|
|
184
|
+
}): WatchCredentialSourceResolution;
|
|
185
|
+
export declare function resolveWatchAutoApprovalDecision(input: {
|
|
186
|
+
mode: WatchMode;
|
|
187
|
+
request: WatchApprovalRequest;
|
|
188
|
+
}): WatchApprovalDecision | null;
|
|
189
|
+
export declare function getWatchAuthLoginCommand(backend: WatchBackend): string | null;
|
|
190
|
+
export declare function formatWatchBackendAuthMessage(backend: WatchBackend, detail?: string): string;
|
|
191
|
+
export declare function looksLikeWatchAuthFailureText(text: string): boolean;
|
|
192
|
+
export declare function parseWatchClaudeAuthStatus(stdout: string): WatchAuthStatus;
|
|
193
|
+
export declare function detectWatchAuthFailure(backend: WatchBackend, line: string): WatchAuthFailure | null;
|
|
194
|
+
export declare function parseWatchJsonLine(line: string): Record<string, unknown> | null;
|
|
195
|
+
export declare function extractWatchSessionIdFromJsonLine(line: string): string | undefined;
|
|
196
|
+
export declare function isTrustedWatchCommand(command: string | null | undefined): boolean;
|
|
197
|
+
export declare function normalizeCodexAppServerInteractionRequest(message: Record<string, unknown>): WatchInteractionRequest | null;
|
|
198
|
+
export declare function resolveWatchInteractionAutoResponse(input: {
|
|
199
|
+
mode: WatchMode;
|
|
200
|
+
request: WatchInteractionRequest;
|
|
201
|
+
}): unknown | null;
|
|
202
|
+
export declare function buildCodexApprovalResponse(request: WatchApprovalRequest, decision: WatchApprovalDecision): unknown;
|
|
203
|
+
export declare function buildCodexUserInputResponse(answers: WatchUserInputAnswers): {
|
|
204
|
+
answers: WatchUserInputAnswers;
|
|
205
|
+
};
|
|
206
|
+
export declare function buildWatchUserInputResponse(answers: WatchUserInputAnswers): {
|
|
207
|
+
answers: WatchUserInputAnswers;
|
|
208
|
+
};
|
|
209
|
+
export declare function normalizeAcpInteractionRequest(message: Record<string, unknown>): WatchInteractionRequest | null;
|
|
210
|
+
export declare function normalizeAcpRequest(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
211
|
+
export declare function normalizeAcpSessionNotification(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
212
|
+
export declare function buildAcpPermissionResponse(request: WatchApprovalRequest, decision: WatchApprovalDecision): {
|
|
213
|
+
outcome: {
|
|
214
|
+
outcome: 'selected';
|
|
215
|
+
optionId: string;
|
|
216
|
+
} | {
|
|
217
|
+
outcome: 'cancelled';
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
export declare function parseWatchJsonProtocolLine(line: string): WatchNormalizedEvent[];
|
|
221
|
+
export declare function normalizeCodexAppServerNotification(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
222
|
+
export declare function normalizeCodexAppServerRequest(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
223
|
+
export declare function getWatchArchiveRelativePaths(sessionId: string): WatchArchiveRelativePaths;
|
|
224
|
+
export declare function buildWatchThreadMetadata(record: WatchSessionRecord): WatchThreadMetadata;
|
|
225
|
+
export declare function buildWatchTranscriptMessages(entries: WatchEventLogEntry[]): WatchTranscriptMessage[];
|
|
226
|
+
export {};
|