@undefineds.co/models 0.2.19 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -522
- package/dist/agent.repository.js +2 -2
- package/dist/agent.schema.d.ts +20 -3
- package/dist/agent.schema.js +3 -1
- package/dist/ai-config/index.d.ts +24 -0
- package/dist/ai-config/index.js +133 -23
- package/dist/ai-model.schema.d.ts +13 -3
- package/dist/ai-model.schema.js +6 -4
- package/dist/ai-provider.schema.d.ts +13 -3
- package/dist/ai-provider.schema.js +7 -3
- package/dist/ai-runtime.schema.d.ts +84 -0
- package/dist/ai-runtime.schema.js +64 -0
- package/dist/approval.schema.d.ts +1 -0
- package/dist/approval.schema.js +11 -0
- package/dist/audit.schema.d.ts +1 -0
- package/dist/audit.schema.js +11 -0
- package/dist/chat.repository.js +2 -2
- package/dist/chat.schema.d.ts +1 -1
- package/dist/chat.schema.js +1 -1
- package/dist/contact.repository.js +2 -2
- package/dist/contact.schema.d.ts +26 -4
- package/dist/contact.schema.js +4 -2
- package/dist/credential.schema.d.ts +111 -3
- package/dist/credential.schema.js +15 -2
- package/dist/favorite/favorite.schema.d.ts +18 -4
- package/dist/favorite/favorite.schema.js +4 -2
- package/dist/favorite/index.d.ts +1 -1
- package/dist/favorite/index.js +1 -1
- package/dist/favorite/starred-sync.d.ts +2 -2
- package/dist/favorite/starred-sync.js +4 -4
- package/dist/file/file.schema.d.ts +26 -5
- package/dist/file/file.schema.js +5 -3
- package/dist/file/index.d.ts +1 -1
- package/dist/file/index.js +1 -1
- package/dist/grant.schema.d.ts +1 -0
- package/dist/grant.schema.js +3 -0
- package/dist/inbox-notification.schema.d.ts +10 -3
- package/dist/inbox-notification.schema.js +3 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +17 -21
- package/dist/message.repository.js +2 -2
- package/dist/message.schema.js +8 -8
- package/dist/namespaces.d.ts +0 -3
- package/dist/namespaces.js +33 -7
- package/dist/profile.d.ts +2 -1
- package/dist/profile.js +6 -3
- package/dist/profile.repository.js +3 -3
- package/dist/profile.schema.d.ts +16 -3
- package/dist/profile.schema.js +3 -1
- package/dist/repository.d.ts +6 -1
- package/dist/repository.js +6 -1
- package/dist/schema.d.ts +102 -10
- package/dist/schema.js +31 -21
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/session.schema.d.ts +7 -2
- package/dist/session/session.schema.js +32 -4
- package/dist/session.repository.d.ts +4 -0
- package/dist/session.repository.js +2 -2
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/settings/settings.schema.d.ts +17 -5
- package/dist/settings/settings.schema.js +4 -2
- package/dist/thread.repository.js +2 -2
- package/dist/thread.schema.js +2 -2
- package/dist/vocab/message.vocab.js +8 -8
- package/dist/vocab/thread.vocab.js +2 -2
- package/package.json +15 -8
- package/dist/watch/index.d.ts +0 -281
- package/dist/watch/index.js +0 -1493
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DCTerms, FOAF,
|
|
1
|
+
import { DCTerms, FOAF, SCHEMA, SIOC, UDFS, WF } from '../namespaces.js';
|
|
2
2
|
export const MessageVocab = {
|
|
3
3
|
// Existing
|
|
4
4
|
thread: SIOC.has_member,
|
|
@@ -13,12 +13,12 @@ export const MessageVocab = {
|
|
|
13
13
|
createdAt: DCTerms.created,
|
|
14
14
|
updatedAt: DCTerms.modified,
|
|
15
15
|
// Group message extensions
|
|
16
|
-
senderName:
|
|
17
|
-
senderAvatarUrl:
|
|
18
|
-
mentions:
|
|
19
|
-
replyTo:
|
|
16
|
+
senderName: UDFS.senderName,
|
|
17
|
+
senderAvatarUrl: UDFS.senderAvatarUrl,
|
|
18
|
+
mentions: UDFS.mentions,
|
|
19
|
+
replyTo: UDFS.replyTo,
|
|
20
20
|
// Multi-AI routing
|
|
21
|
-
routedBy:
|
|
22
|
-
routeTargetAgentId:
|
|
23
|
-
coordinationId:
|
|
21
|
+
routedBy: UDFS.routedBy,
|
|
22
|
+
routeTargetAgentId: UDFS.routeTargetAgentId,
|
|
23
|
+
coordinationId: UDFS.coordinationId,
|
|
24
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DCTerms,
|
|
1
|
+
import { DCTerms, SIOC, UDFS } from '../namespaces.js';
|
|
2
2
|
export const ThreadVocab = {
|
|
3
3
|
chat: SIOC.has_parent,
|
|
4
4
|
title: DCTerms.title,
|
|
@@ -7,7 +7,7 @@ export const ThreadVocab = {
|
|
|
7
7
|
createdAt: DCTerms.created,
|
|
8
8
|
updatedAt: DCTerms.modified,
|
|
9
9
|
// Execution context: workspace URI for the runnable root
|
|
10
|
-
workspace:
|
|
10
|
+
workspace: UDFS.workspace,
|
|
11
11
|
// Type marker (for SPARQL convenience)
|
|
12
12
|
type: SIOC.Thread,
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undefineds.co/models",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/undefinedsco/models.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/undefinedsco/models/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/undefinedsco/models#readme",
|
|
8
16
|
"exports": {
|
|
9
17
|
".": {
|
|
10
18
|
"types": "./dist/index.d.ts",
|
|
@@ -45,24 +53,22 @@
|
|
|
45
53
|
"./vocab/sidecar": {
|
|
46
54
|
"types": "./dist/vocab/sidecar.vocab.d.ts",
|
|
47
55
|
"default": "./dist/vocab/sidecar.vocab.js"
|
|
48
|
-
},
|
|
49
|
-
"./watch": {
|
|
50
|
-
"types": "./dist/watch/index.d.ts",
|
|
51
|
-
"default": "./dist/watch/index.js"
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
"scripts": {
|
|
59
|
+
"prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
55
60
|
"build": "tsc -p tsconfig.json && node scripts/fix-dist-esm.mjs",
|
|
56
61
|
"lint": "echo \"lint not configured\"",
|
|
57
62
|
"pack:release": "node scripts/pack-release.mjs",
|
|
58
63
|
"sync:discovery:vercel": "node --experimental-strip-types scripts/sync-discovery-vercel.ts",
|
|
59
|
-
"test": "vitest",
|
|
60
|
-
"test:
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:ci": "vitest run tests/ai-config.test.ts tests/ai-runtime-schema.test.ts tests/client.test.ts tests/contracts-chat-contact.contract.test.ts tests/discovery-vercel.test.ts tests/discovery.test.ts tests/profile.test.ts tests/repository.test.ts tests/resource-utils.test.ts tests/session-schema.test.ts tests/sidecar-events.contract.test.ts tests/resource-schema.test.ts",
|
|
66
|
+
"test:pod": "dotenv -e ../linx-models/.env -- vitest run tests/pod.integration.test.ts"
|
|
61
67
|
},
|
|
62
68
|
"dependencies": {
|
|
63
69
|
"@comunica/query-sparql-solid": "^4.0.2",
|
|
64
70
|
"@inrupt/vocab-common-rdf": "^1.0.5",
|
|
65
|
-
"@undefineds.co/drizzle-solid": "^0.3.
|
|
71
|
+
"@undefineds.co/drizzle-solid": "^0.3.10",
|
|
66
72
|
"n3": "^1.26.0",
|
|
67
73
|
"zod": "^3.22.4"
|
|
68
74
|
},
|
|
@@ -71,6 +77,7 @@
|
|
|
71
77
|
"typescript": "^5.4.0",
|
|
72
78
|
"vitest": "^1.6.0"
|
|
73
79
|
},
|
|
80
|
+
"packageManager": "yarn@1.22.22",
|
|
74
81
|
"files": [
|
|
75
82
|
"dist",
|
|
76
83
|
"README.md",
|
package/dist/watch/index.d.ts
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
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
|
-
export type WatchSecretaryApprovalDecision = 'accept' | 'decline' | 'cancel';
|
|
58
|
-
export type WatchApprovalOptionKind = 'allow_once' | 'allow_always' | 'reject_once' | 'reject_always' | (string & {});
|
|
59
|
-
export interface WatchApprovalOption {
|
|
60
|
-
optionId: string;
|
|
61
|
-
label: string;
|
|
62
|
-
kind?: WatchApprovalOptionKind;
|
|
63
|
-
description?: string;
|
|
64
|
-
}
|
|
65
|
-
interface WatchInteractionRequestBase {
|
|
66
|
-
kind: WatchInteractionRequestKind;
|
|
67
|
-
message: string;
|
|
68
|
-
approvalOptions?: WatchApprovalOption[];
|
|
69
|
-
timeoutMs?: number;
|
|
70
|
-
expiresAt?: string;
|
|
71
|
-
raw?: unknown;
|
|
72
|
-
}
|
|
73
|
-
export interface WatchCommandApprovalRequest extends WatchInteractionRequestBase {
|
|
74
|
-
kind: 'command-approval';
|
|
75
|
-
command?: string;
|
|
76
|
-
cwd?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface WatchFileChangeApprovalRequest extends WatchInteractionRequestBase {
|
|
79
|
-
kind: 'file-change-approval';
|
|
80
|
-
reason?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface WatchPermissionsApprovalRequest extends WatchInteractionRequestBase {
|
|
83
|
-
kind: 'permissions-approval';
|
|
84
|
-
permissions: Record<string, unknown>;
|
|
85
|
-
}
|
|
86
|
-
export interface WatchCodexApprovalRequest extends WatchInteractionRequestBase {
|
|
87
|
-
kind: 'codex-approval';
|
|
88
|
-
}
|
|
89
|
-
export interface WatchUserInputOption {
|
|
90
|
-
label: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface WatchUserInputQuestion {
|
|
94
|
-
id: string;
|
|
95
|
-
header: string;
|
|
96
|
-
question: string;
|
|
97
|
-
options: WatchUserInputOption[];
|
|
98
|
-
}
|
|
99
|
-
export interface WatchUserInputRequest extends WatchInteractionRequestBase {
|
|
100
|
-
kind: 'user-input';
|
|
101
|
-
questions: WatchUserInputQuestion[];
|
|
102
|
-
}
|
|
103
|
-
export type WatchApprovalRequest = WatchCommandApprovalRequest | WatchFileChangeApprovalRequest | WatchPermissionsApprovalRequest | WatchCodexApprovalRequest;
|
|
104
|
-
export type WatchInteractionRequest = WatchApprovalRequest | WatchUserInputRequest;
|
|
105
|
-
export interface WatchUserInputAnswerRecord {
|
|
106
|
-
answers: string[];
|
|
107
|
-
}
|
|
108
|
-
export type WatchUserInputAnswers = Record<string, WatchUserInputAnswerRecord>;
|
|
109
|
-
export type WatchSecretaryRecommendationSource = 'model' | 'fallback';
|
|
110
|
-
export interface WatchSecretaryRecommendationBase {
|
|
111
|
-
kind: WatchInteractionRequestKind;
|
|
112
|
-
canAutoDecide: boolean;
|
|
113
|
-
confidence?: number;
|
|
114
|
-
reason?: string;
|
|
115
|
-
reactionWindowMs?: number;
|
|
116
|
-
source?: WatchSecretaryRecommendationSource;
|
|
117
|
-
}
|
|
118
|
-
export interface WatchSecretaryApprovalRecommendation extends WatchSecretaryRecommendationBase {
|
|
119
|
-
kind: WatchApprovalRequestKind;
|
|
120
|
-
decision?: WatchSecretaryApprovalDecision;
|
|
121
|
-
}
|
|
122
|
-
export interface WatchSecretaryUserInputRecommendation extends WatchSecretaryRecommendationBase {
|
|
123
|
-
kind: 'user-input';
|
|
124
|
-
answers?: WatchUserInputAnswers;
|
|
125
|
-
}
|
|
126
|
-
export type WatchSecretaryRecommendation = WatchSecretaryApprovalRecommendation | WatchSecretaryUserInputRecommendation;
|
|
127
|
-
export interface WatchGrantCoverageDecision {
|
|
128
|
-
covers: boolean;
|
|
129
|
-
confidence?: number;
|
|
130
|
-
reason?: string;
|
|
131
|
-
source?: WatchSecretaryRecommendationSource;
|
|
132
|
-
}
|
|
133
|
-
export interface ParseWatchSecretaryRecommendationOptions {
|
|
134
|
-
mode: WatchMode;
|
|
135
|
-
request: WatchInteractionRequest;
|
|
136
|
-
defaultReactionWindowMs?: number;
|
|
137
|
-
}
|
|
138
|
-
export declare const DEFAULT_WATCH_SECRETARY_REACTION_WINDOW_MS = 5000;
|
|
139
|
-
export declare const MIN_WATCH_SECRETARY_REACTION_WINDOW_MS = 5000;
|
|
140
|
-
export declare const MAX_WATCH_SECRETARY_REACTION_WINDOW_MS = 60000;
|
|
141
|
-
export interface WatchToolCallEvent {
|
|
142
|
-
type: 'tool.call';
|
|
143
|
-
name: string;
|
|
144
|
-
arguments?: Record<string, unknown>;
|
|
145
|
-
raw?: unknown;
|
|
146
|
-
}
|
|
147
|
-
export interface WatchApprovalRequiredEvent {
|
|
148
|
-
type: 'approval.required';
|
|
149
|
-
message: string;
|
|
150
|
-
request?: WatchApprovalRequest;
|
|
151
|
-
raw?: unknown;
|
|
152
|
-
}
|
|
153
|
-
export interface WatchInputRequiredEvent {
|
|
154
|
-
type: 'input.required';
|
|
155
|
-
message: string;
|
|
156
|
-
request: WatchUserInputRequest;
|
|
157
|
-
raw?: unknown;
|
|
158
|
-
}
|
|
159
|
-
export interface WatchAssistantDeltaEvent {
|
|
160
|
-
type: 'assistant.delta';
|
|
161
|
-
text: string;
|
|
162
|
-
raw?: unknown;
|
|
163
|
-
}
|
|
164
|
-
export interface WatchAssistantDoneEvent {
|
|
165
|
-
type: 'assistant.done';
|
|
166
|
-
text?: string;
|
|
167
|
-
raw?: unknown;
|
|
168
|
-
}
|
|
169
|
-
export interface WatchNoteEvent {
|
|
170
|
-
type: 'session.note';
|
|
171
|
-
message: string;
|
|
172
|
-
raw?: unknown;
|
|
173
|
-
}
|
|
174
|
-
export type WatchNormalizedEvent = WatchToolCallEvent | WatchApprovalRequiredEvent | WatchInputRequiredEvent | WatchAssistantDeltaEvent | WatchAssistantDoneEvent | WatchNoteEvent;
|
|
175
|
-
export interface WatchEventLogEntry {
|
|
176
|
-
timestamp: string;
|
|
177
|
-
stream: WatchOutputStream;
|
|
178
|
-
line: string;
|
|
179
|
-
events: WatchNormalizedEvent[];
|
|
180
|
-
}
|
|
181
|
-
export interface WatchThreadMetadata extends Record<string, unknown> {
|
|
182
|
-
kind: 'watch';
|
|
183
|
-
delegatedTo: 'secretary';
|
|
184
|
-
sessionId: string;
|
|
185
|
-
backend: WatchBackend;
|
|
186
|
-
runtime: WatchRuntime;
|
|
187
|
-
transport?: WatchTransport;
|
|
188
|
-
mode: WatchMode;
|
|
189
|
-
cwd: string;
|
|
190
|
-
model?: string;
|
|
191
|
-
credentialSource: WatchCredentialSource;
|
|
192
|
-
resolvedCredentialSource?: WatchResolvedCredentialSource;
|
|
193
|
-
approvalSource?: WatchApprovalSource;
|
|
194
|
-
status: WatchSessionStatus;
|
|
195
|
-
backendSessionId?: string;
|
|
196
|
-
}
|
|
197
|
-
export type WatchTranscriptMessageRole = 'user' | 'assistant' | 'system';
|
|
198
|
-
export type WatchTranscriptMessageSource = 'user' | 'primary-agent' | 'secretary' | 'tool' | 'system';
|
|
199
|
-
export interface WatchTranscriptMessage {
|
|
200
|
-
role: WatchTranscriptMessageRole;
|
|
201
|
-
source: WatchTranscriptMessageSource;
|
|
202
|
-
content: string;
|
|
203
|
-
createdAt: string;
|
|
204
|
-
}
|
|
205
|
-
export interface CreateWatchSessionIdOptions {
|
|
206
|
-
now?: Date;
|
|
207
|
-
randomId?: string;
|
|
208
|
-
}
|
|
209
|
-
export interface WatchArchiveRelativePaths {
|
|
210
|
-
sessionDir: string;
|
|
211
|
-
sessionFile: string;
|
|
212
|
-
eventsFile: string;
|
|
213
|
-
}
|
|
214
|
-
export declare const WATCH_HOME_DIRNAME = "watch";
|
|
215
|
-
export declare const WATCH_SESSIONS_DIRNAME = "sessions";
|
|
216
|
-
export declare const WATCH_SESSION_FILE_NAME = "session.json";
|
|
217
|
-
export declare const WATCH_EVENTS_FILE_NAME = "events.jsonl";
|
|
218
|
-
export declare function normalizeWatchUserInputQuestion(value: unknown, fallbackId?: string): WatchUserInputQuestion | null;
|
|
219
|
-
export declare function resolveWatchQuestionAnswer(question: WatchUserInputQuestion, answer: string): string[];
|
|
220
|
-
export declare function normalizeWatchApprovalOptions(value: unknown): WatchApprovalOption[];
|
|
221
|
-
export declare function createWatchSessionId(options?: CreateWatchSessionIdOptions): string;
|
|
222
|
-
export declare function normalizeWatchCredentialSource(source?: WatchCredentialSource | null): WatchCredentialSource;
|
|
223
|
-
export declare function shouldAttemptCloudCredentialProbe(requestedSource: WatchCredentialSource, localAuthStatus: WatchAuthStatus): boolean;
|
|
224
|
-
export declare function formatWatchAutoFallbackMessage(localMessage: string, detail: string): string;
|
|
225
|
-
export declare function resolveWatchCredentialSourceResolution(input: {
|
|
226
|
-
requestedSource?: WatchCredentialSource | null;
|
|
227
|
-
localAuthStatus: WatchAuthStatus;
|
|
228
|
-
cloudCredentialProbe?: WatchCloudCredentialProbe;
|
|
229
|
-
defaultLocalMessage?: string;
|
|
230
|
-
}): WatchCredentialSourceResolution;
|
|
231
|
-
export declare function resolveWatchAutoApprovalDecision(input: {
|
|
232
|
-
mode: WatchMode;
|
|
233
|
-
request: WatchApprovalRequest;
|
|
234
|
-
}): WatchApprovalDecision | null;
|
|
235
|
-
export declare function createFallbackWatchSecretaryRecommendation(input: {
|
|
236
|
-
mode: WatchMode;
|
|
237
|
-
request: WatchInteractionRequest;
|
|
238
|
-
}): WatchSecretaryRecommendation | null;
|
|
239
|
-
export declare function parseWatchSecretaryRecommendation(text: string, options: ParseWatchSecretaryRecommendationOptions): WatchSecretaryRecommendation | null;
|
|
240
|
-
export declare function watchApprovalDecisionLabel(decision: WatchApprovalDecision): string;
|
|
241
|
-
export declare function watchUserInputAnswersSummary(answers: WatchUserInputAnswers): string;
|
|
242
|
-
export declare function parseWatchGrantCoverageDecision(text: string): WatchGrantCoverageDecision | null;
|
|
243
|
-
export declare function computeWatchSecretaryReactionWindowMs(confidence: number | undefined, fallback?: number): number;
|
|
244
|
-
export declare function getWatchAuthLoginCommand(backend: WatchBackend): string | null;
|
|
245
|
-
export declare function formatWatchBackendAuthMessage(backend: WatchBackend, detail?: string): string;
|
|
246
|
-
export declare function looksLikeWatchAuthFailureText(text: string): boolean;
|
|
247
|
-
export declare function parseWatchClaudeAuthStatus(stdout: string): WatchAuthStatus;
|
|
248
|
-
export declare function detectWatchAuthFailure(backend: WatchBackend, line: string): WatchAuthFailure | null;
|
|
249
|
-
export declare function parseWatchJsonLine(line: string): Record<string, unknown> | null;
|
|
250
|
-
export declare function extractWatchSessionIdFromJsonLine(line: string): string | undefined;
|
|
251
|
-
export declare function isTrustedWatchCommand(command: string | null | undefined): boolean;
|
|
252
|
-
export declare function normalizeCodexAppServerInteractionRequest(message: Record<string, unknown>): WatchInteractionRequest | null;
|
|
253
|
-
export declare function resolveWatchInteractionAutoResponse(input: {
|
|
254
|
-
mode: WatchMode;
|
|
255
|
-
request: WatchInteractionRequest;
|
|
256
|
-
}): unknown | null;
|
|
257
|
-
export declare function buildCodexApprovalResponse(request: WatchApprovalRequest, decision: WatchApprovalDecision): unknown;
|
|
258
|
-
export declare function buildCodexUserInputResponse(answers: WatchUserInputAnswers): {
|
|
259
|
-
answers: WatchUserInputAnswers;
|
|
260
|
-
};
|
|
261
|
-
export declare function buildWatchUserInputResponse(answers: WatchUserInputAnswers): {
|
|
262
|
-
answers: WatchUserInputAnswers;
|
|
263
|
-
};
|
|
264
|
-
export declare function normalizeAcpInteractionRequest(message: Record<string, unknown>): WatchInteractionRequest | null;
|
|
265
|
-
export declare function normalizeAcpRequest(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
266
|
-
export declare function normalizeAcpSessionNotification(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
267
|
-
export declare function buildAcpPermissionResponse(request: WatchApprovalRequest, decision: WatchApprovalDecision): {
|
|
268
|
-
outcome: {
|
|
269
|
-
outcome: 'selected';
|
|
270
|
-
optionId: string;
|
|
271
|
-
} | {
|
|
272
|
-
outcome: 'cancelled';
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
export declare function parseWatchJsonProtocolLine(line: string): WatchNormalizedEvent[];
|
|
276
|
-
export declare function normalizeCodexAppServerNotification(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
277
|
-
export declare function normalizeCodexAppServerRequest(message: Record<string, unknown>): WatchNormalizedEvent[];
|
|
278
|
-
export declare function getWatchArchiveRelativePaths(sessionId: string): WatchArchiveRelativePaths;
|
|
279
|
-
export declare function buildWatchThreadMetadata(record: WatchSessionRecord): WatchThreadMetadata;
|
|
280
|
-
export declare function buildWatchTranscriptMessages(entries: WatchEventLogEntry[]): WatchTranscriptMessage[];
|
|
281
|
-
export {};
|