@vibes.diy/api-types 14.2.7 → 14.2.8
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/app.d.ts +58 -54
- package/app.js +4 -2
- package/app.js.map +1 -1
- package/auth.d.ts +2 -1
- package/auth.js.map +1 -1
- package/cf-env.d.ts +2 -0
- package/chat.d.ts +1145 -1110
- package/chat.js +11 -4
- package/chat.js.map +1 -1
- package/draft-chat.d.ts +1 -1
- package/draft-chat.js +1 -1
- package/draft-chat.js.map +1 -1
- package/draft-runtime.d.ts +65 -0
- package/draft-runtime.js +33 -0
- package/draft-runtime.js.map +1 -0
- package/guest-build.d.ts +82 -0
- package/guest-build.js +43 -0
- package/guest-build.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/invite-flow.d.ts +152 -152
- package/invite.d.ts +128 -128
- package/package.json +4 -4
- package/settings.d.ts +451 -399
- package/settings.js +1 -0
- package/settings.js.map +1 -1
- package/shard-policy.d.ts +3 -0
- package/shard-policy.js +3 -0
- package/shard-policy.js.map +1 -1
- package/shared-mint.d.ts +3 -0
- package/shared-mint.js +3 -0
- package/shared-mint.js.map +1 -1
- package/vibes-diy-api.d.ts +7 -0
- package/vibes-diy-api.js.map +1 -1
- package/vibes-diy-serv-ctx.d.ts +2 -0
- package/vibes-diy-serv-ctx.js +1 -0
- package/vibes-diy-serv-ctx.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -14,16 +14,16 @@ export declare const PromptStyle: import("arktype/internal/variants/string.ts").
|
|
|
14
14
|
export type PromptStyle = typeof PromptStyle.infer;
|
|
15
15
|
export declare function isSourceChangingMode(mode: unknown): boolean;
|
|
16
16
|
export declare function isBuildNotifyMode(mode: unknown): boolean;
|
|
17
|
-
export declare const ModelCapability: import("arktype/internal/variants/string.ts").StringType<"app" | "chat" | "codegen" | "img" | "img-edit" | "runtime", {}>;
|
|
17
|
+
export declare const ModelCapability: import("arktype/internal/variants/string.ts").StringType<"agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime", {}>;
|
|
18
18
|
export type ModelCapability = typeof ModelCapability.infer;
|
|
19
19
|
export declare const Model: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
description: string;
|
|
23
23
|
featured?: boolean | undefined;
|
|
24
|
-
preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
25
|
-
fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
26
|
-
supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
24
|
+
preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
25
|
+
fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
26
|
+
supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
27
27
|
imageInput?: boolean | undefined;
|
|
28
28
|
}, {}>;
|
|
29
29
|
export type Model = typeof Model.infer;
|
|
@@ -34,13 +34,18 @@ export declare const varietyPin: import("arktype/internal/variants/object.ts").O
|
|
|
34
34
|
export type VarietyPinWire = typeof varietyPin.infer;
|
|
35
35
|
export declare const reqOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
36
36
|
type: "vibes.diy.req-open-chat";
|
|
37
|
-
auth
|
|
37
|
+
auth?: {
|
|
38
38
|
type: "clerk" | "device-id" | "ucan";
|
|
39
39
|
token: string;
|
|
40
|
-
};
|
|
40
|
+
} | undefined;
|
|
41
|
+
guest?: {
|
|
42
|
+
type: "guest-build";
|
|
43
|
+
token: string;
|
|
44
|
+
} | undefined;
|
|
41
45
|
appSlug?: string | undefined;
|
|
42
46
|
ownerHandle?: string | undefined;
|
|
43
47
|
chatId?: string | undefined;
|
|
48
|
+
firstBuildRequestId?: string | undefined;
|
|
44
49
|
prompt?: string | undefined;
|
|
45
50
|
dryRun?: boolean | undefined;
|
|
46
51
|
allowDraft?: boolean | undefined;
|
|
@@ -65,6 +70,8 @@ export declare const resOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
65
70
|
chatId: string;
|
|
66
71
|
mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
|
|
67
72
|
firstTurnFired?: boolean | undefined;
|
|
73
|
+
firstBuildReplayed?: boolean | undefined;
|
|
74
|
+
firstBuildNeedsAttachments?: boolean | undefined;
|
|
68
75
|
draft?: boolean | undefined;
|
|
69
76
|
agentFirstTurn?: boolean | undefined;
|
|
70
77
|
firstTurnFire?: "denied" | "fired" | "none" | undefined;
|
|
@@ -151,10 +158,14 @@ export type SlotConfig = typeof slotConfig.infer;
|
|
|
151
158
|
export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<(In: {
|
|
152
159
|
type: "vibes.diy.req-prompt-chat-section";
|
|
153
160
|
mode: "codegen";
|
|
154
|
-
auth
|
|
161
|
+
auth?: {
|
|
155
162
|
type: "clerk" | "device-id" | "ucan";
|
|
156
163
|
token: string;
|
|
157
|
-
};
|
|
164
|
+
} | undefined;
|
|
165
|
+
guest?: {
|
|
166
|
+
type: "guest-build";
|
|
167
|
+
token: string;
|
|
168
|
+
} | undefined;
|
|
158
169
|
chatId: string;
|
|
159
170
|
outerTid: string;
|
|
160
171
|
prompt: {
|
|
@@ -308,10 +319,14 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
308
319
|
}) => import("arktype").Out<{
|
|
309
320
|
type: "vibes.diy.req-prompt-chat-section";
|
|
310
321
|
mode: "codegen";
|
|
311
|
-
auth
|
|
322
|
+
auth?: {
|
|
312
323
|
type: "clerk" | "device-id" | "ucan";
|
|
313
324
|
token: string;
|
|
314
|
-
};
|
|
325
|
+
} | undefined;
|
|
326
|
+
guest?: {
|
|
327
|
+
type: "guest-build";
|
|
328
|
+
token: string;
|
|
329
|
+
} | undefined;
|
|
315
330
|
chatId: string;
|
|
316
331
|
outerTid: string;
|
|
317
332
|
prompt: {
|
|
@@ -992,10 +1007,14 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
992
1007
|
} | ((In: {
|
|
993
1008
|
type: "vibes.diy.req-prompt-chat-section";
|
|
994
1009
|
mode: "codegen";
|
|
995
|
-
auth
|
|
1010
|
+
auth?: {
|
|
996
1011
|
type: "clerk" | "device-id" | "ucan";
|
|
997
1012
|
token: string;
|
|
998
|
-
};
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
guest?: {
|
|
1015
|
+
type: "guest-build";
|
|
1016
|
+
token: string;
|
|
1017
|
+
} | undefined;
|
|
999
1018
|
chatId: string;
|
|
1000
1019
|
outerTid: string;
|
|
1001
1020
|
prompt: {
|
|
@@ -1149,10 +1168,14 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
1149
1168
|
}) => import("arktype").Out<{
|
|
1150
1169
|
type: "vibes.diy.req-prompt-chat-section";
|
|
1151
1170
|
mode: "codegen";
|
|
1152
|
-
auth
|
|
1171
|
+
auth?: {
|
|
1153
1172
|
type: "clerk" | "device-id" | "ucan";
|
|
1154
1173
|
token: string;
|
|
1155
|
-
};
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
guest?: {
|
|
1176
|
+
type: "guest-build";
|
|
1177
|
+
token: string;
|
|
1178
|
+
} | undefined;
|
|
1156
1179
|
chatId: string;
|
|
1157
1180
|
outerTid: string;
|
|
1158
1181
|
prompt: {
|
|
@@ -1725,10 +1748,14 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1725
1748
|
} | ((In: {
|
|
1726
1749
|
type: "vibes.diy.req-prompt-chat-section";
|
|
1727
1750
|
mode: "codegen";
|
|
1728
|
-
auth
|
|
1751
|
+
auth?: {
|
|
1729
1752
|
type: "clerk" | "device-id" | "ucan";
|
|
1730
1753
|
token: string;
|
|
1731
|
-
};
|
|
1754
|
+
} | undefined;
|
|
1755
|
+
guest?: {
|
|
1756
|
+
type: "guest-build";
|
|
1757
|
+
token: string;
|
|
1758
|
+
} | undefined;
|
|
1732
1759
|
chatId: string;
|
|
1733
1760
|
outerTid: string;
|
|
1734
1761
|
prompt: {
|
|
@@ -1882,10 +1909,14 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1882
1909
|
}) => import("arktype").Out<{
|
|
1883
1910
|
type: "vibes.diy.req-prompt-chat-section";
|
|
1884
1911
|
mode: "codegen";
|
|
1885
|
-
auth
|
|
1912
|
+
auth?: {
|
|
1886
1913
|
type: "clerk" | "device-id" | "ucan";
|
|
1887
1914
|
token: string;
|
|
1888
|
-
};
|
|
1915
|
+
} | undefined;
|
|
1916
|
+
guest?: {
|
|
1917
|
+
type: "guest-build";
|
|
1918
|
+
token: string;
|
|
1919
|
+
} | undefined;
|
|
1889
1920
|
chatId: string;
|
|
1890
1921
|
outerTid: string;
|
|
1891
1922
|
prompt: {
|
|
@@ -2050,146 +2081,310 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2050
2081
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
2051
2082
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
2052
2083
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2053
|
-
|
|
2054
|
-
version: 1;
|
|
2055
|
-
streamId: string;
|
|
2056
|
-
chatId: string;
|
|
2057
|
-
seq: number;
|
|
2058
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2059
|
-
researchId: string;
|
|
2060
|
-
status: "complete" | "failed" | "partial";
|
|
2061
|
-
brief: string;
|
|
2062
|
-
sources: {
|
|
2063
|
-
url: string;
|
|
2064
|
-
finalUrl: string | null;
|
|
2065
|
-
contentType: string | null;
|
|
2066
|
-
httpStatus: number | null;
|
|
2067
|
-
backendFetchable: boolean;
|
|
2068
|
-
fetched: boolean;
|
|
2069
|
-
errorCode?: string | undefined;
|
|
2070
|
-
}[];
|
|
2071
|
-
api: {
|
|
2072
|
-
method: string;
|
|
2073
|
-
path: string;
|
|
2074
|
-
description: string;
|
|
2075
|
-
fields: string[];
|
|
2076
|
-
}[];
|
|
2077
|
-
excerpts: {
|
|
2078
|
-
sourceUrl: string;
|
|
2079
|
-
text: string;
|
|
2080
|
-
locator?: string | undefined;
|
|
2081
|
-
}[];
|
|
2082
|
-
seedRows: {
|
|
2083
|
-
sourceUrl: string;
|
|
2084
|
-
dbName: string;
|
|
2085
|
-
key: string;
|
|
2086
|
-
item: unknown;
|
|
2087
|
-
}[];
|
|
2088
|
-
completedAt: string;
|
|
2089
|
-
errorCode?: string | undefined;
|
|
2090
|
-
} | {
|
|
2084
|
+
blockId: string;
|
|
2091
2085
|
streamId: string;
|
|
2092
|
-
chatId: string;
|
|
2093
2086
|
seq: number;
|
|
2087
|
+
blockNr: number;
|
|
2094
2088
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2095
|
-
type: "
|
|
2089
|
+
type: "block.begin";
|
|
2096
2090
|
} | {
|
|
2091
|
+
blockId: string;
|
|
2097
2092
|
streamId: string;
|
|
2098
|
-
chatId: string;
|
|
2099
2093
|
seq: number;
|
|
2094
|
+
blockNr: number;
|
|
2100
2095
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2101
|
-
type: "
|
|
2096
|
+
type: "block.end";
|
|
2097
|
+
stats: {
|
|
2098
|
+
toplevel: {
|
|
2099
|
+
lines: number;
|
|
2100
|
+
bytes: number;
|
|
2101
|
+
cnt?: number | undefined;
|
|
2102
|
+
};
|
|
2103
|
+
code: {
|
|
2104
|
+
lines: number;
|
|
2105
|
+
bytes: number;
|
|
2106
|
+
cnt?: number | undefined;
|
|
2107
|
+
};
|
|
2108
|
+
image: {
|
|
2109
|
+
lines: number;
|
|
2110
|
+
bytes: number;
|
|
2111
|
+
cnt?: number | undefined;
|
|
2112
|
+
};
|
|
2113
|
+
total: {
|
|
2114
|
+
lines: number;
|
|
2115
|
+
bytes: number;
|
|
2116
|
+
cnt?: number | undefined;
|
|
2117
|
+
};
|
|
2118
|
+
};
|
|
2119
|
+
usage: {
|
|
2120
|
+
given: {
|
|
2121
|
+
prompt_tokens: number;
|
|
2122
|
+
completion_tokens: number;
|
|
2123
|
+
total_tokens: number;
|
|
2124
|
+
}[];
|
|
2125
|
+
calculated: {
|
|
2126
|
+
prompt_tokens: number;
|
|
2127
|
+
completion_tokens: number;
|
|
2128
|
+
total_tokens: number;
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2131
|
+
fsRef?: ((In: {
|
|
2132
|
+
appSlug: string;
|
|
2133
|
+
ownerHandle?: string | undefined;
|
|
2134
|
+
userSlug?: string | undefined;
|
|
2135
|
+
mode: "dev" | "production";
|
|
2136
|
+
fsId: string;
|
|
2137
|
+
}) => import("arktype").Out<{
|
|
2138
|
+
appSlug: string;
|
|
2139
|
+
mode: "dev" | "production";
|
|
2140
|
+
fsId: string;
|
|
2141
|
+
ownerHandle: string;
|
|
2142
|
+
}>) | undefined;
|
|
2143
|
+
touchedPaths?: string[] | undefined;
|
|
2144
|
+
settled?: {
|
|
2145
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2146
|
+
entryTouched: boolean;
|
|
2147
|
+
touchedCount: number;
|
|
2148
|
+
applied: boolean;
|
|
2149
|
+
} | undefined;
|
|
2102
2150
|
} | {
|
|
2151
|
+
blockId: string;
|
|
2103
2152
|
streamId: string;
|
|
2104
|
-
chatId: string;
|
|
2105
2153
|
seq: number;
|
|
2154
|
+
blockNr: number;
|
|
2106
2155
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2107
|
-
type: "
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
originalUploadId?: string | undefined;
|
|
2135
|
-
size?: number | undefined;
|
|
2136
|
-
})[];
|
|
2137
|
-
} | {
|
|
2138
|
-
role: "assistant";
|
|
2139
|
-
content: string | null;
|
|
2140
|
-
tool_calls: {
|
|
2141
|
-
id: string;
|
|
2142
|
-
type: "function";
|
|
2143
|
-
function: {
|
|
2144
|
-
name: string;
|
|
2145
|
-
arguments: string;
|
|
2146
|
-
};
|
|
2147
|
-
}[];
|
|
2148
|
-
} | {
|
|
2149
|
-
role: "tool";
|
|
2150
|
-
content: string;
|
|
2151
|
-
tool_call_id: string;
|
|
2152
|
-
})[];
|
|
2153
|
-
stream?: boolean | undefined;
|
|
2154
|
-
temperature?: number | undefined;
|
|
2155
|
-
max_tokens?: number | undefined;
|
|
2156
|
-
top_p?: number | undefined;
|
|
2157
|
-
logprobs?: boolean | undefined;
|
|
2158
|
-
top_logsprobs?: number | undefined;
|
|
2159
|
-
frequency_penalty?: number | undefined;
|
|
2160
|
-
presence_penalty?: number | undefined;
|
|
2161
|
-
stop?: string | string[] | undefined;
|
|
2162
|
-
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2163
|
-
modalities?: string[] | undefined;
|
|
2164
|
-
tools?: {
|
|
2165
|
-
type: "function";
|
|
2166
|
-
function: {
|
|
2167
|
-
name: string;
|
|
2168
|
-
description?: string | undefined;
|
|
2169
|
-
parameters: unknown;
|
|
2170
|
-
};
|
|
2171
|
-
}[] | undefined;
|
|
2172
|
-
tool_choice?: "auto" | "none" | "required" | {
|
|
2173
|
-
type: "function";
|
|
2174
|
-
function: {
|
|
2175
|
-
name: string;
|
|
2176
|
-
};
|
|
2177
|
-
} | undefined;
|
|
2178
|
-
response_format?: unknown;
|
|
2156
|
+
type: "block.stats";
|
|
2157
|
+
stats: {
|
|
2158
|
+
toplevel: {
|
|
2159
|
+
lines: number;
|
|
2160
|
+
bytes: number;
|
|
2161
|
+
cnt?: number | undefined;
|
|
2162
|
+
};
|
|
2163
|
+
code: {
|
|
2164
|
+
lines: number;
|
|
2165
|
+
bytes: number;
|
|
2166
|
+
cnt?: number | undefined;
|
|
2167
|
+
};
|
|
2168
|
+
image: {
|
|
2169
|
+
lines: number;
|
|
2170
|
+
bytes: number;
|
|
2171
|
+
cnt?: number | undefined;
|
|
2172
|
+
};
|
|
2173
|
+
total: {
|
|
2174
|
+
lines: number;
|
|
2175
|
+
bytes: number;
|
|
2176
|
+
cnt?: number | undefined;
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
usage: {
|
|
2180
|
+
prompt_tokens: number;
|
|
2181
|
+
completion_tokens: number;
|
|
2182
|
+
total_tokens: number;
|
|
2179
2183
|
};
|
|
2180
|
-
source?: "suggestion" | undefined;
|
|
2181
|
-
agentDispatched?: true | undefined;
|
|
2182
|
-
platformInitiated?: true | undefined;
|
|
2183
2184
|
} | {
|
|
2185
|
+
blockId: string;
|
|
2184
2186
|
streamId: string;
|
|
2185
|
-
chatId: string;
|
|
2186
2187
|
seq: number;
|
|
2188
|
+
blockNr: number;
|
|
2187
2189
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2190
|
+
stats: {
|
|
2191
|
+
lines: number;
|
|
2192
|
+
bytes: number;
|
|
2193
|
+
cnt?: number | undefined;
|
|
2194
|
+
};
|
|
2195
|
+
type: "block.image";
|
|
2196
|
+
sectionId: string;
|
|
2197
|
+
url?: string | undefined;
|
|
2198
|
+
uploadId?: string | undefined;
|
|
2199
|
+
cid?: string | undefined;
|
|
2200
|
+
mimeType?: string | undefined;
|
|
2201
|
+
size?: number | undefined;
|
|
2202
|
+
docWritten?: boolean | undefined;
|
|
2203
|
+
} | {
|
|
2204
|
+
blockId: string;
|
|
2205
|
+
streamId: string;
|
|
2206
|
+
seq: number;
|
|
2207
|
+
blockNr: number;
|
|
2208
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2209
|
+
type: "block.code.begin";
|
|
2210
|
+
sectionId: string;
|
|
2211
|
+
lang: string;
|
|
2212
|
+
path?: string | undefined;
|
|
2213
|
+
} | {
|
|
2214
|
+
blockId: string;
|
|
2215
|
+
streamId: string;
|
|
2216
|
+
seq: number;
|
|
2217
|
+
blockNr: number;
|
|
2218
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2219
|
+
lineNr: number;
|
|
2220
|
+
line: string;
|
|
2221
|
+
type: "block.code.line";
|
|
2222
|
+
sectionId: string;
|
|
2223
|
+
lang: string;
|
|
2224
|
+
path?: string | undefined;
|
|
2225
|
+
} | {
|
|
2226
|
+
blockId: string;
|
|
2227
|
+
streamId: string;
|
|
2228
|
+
seq: number;
|
|
2229
|
+
blockNr: number;
|
|
2230
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2231
|
+
stats: {
|
|
2232
|
+
lines: number;
|
|
2233
|
+
bytes: number;
|
|
2234
|
+
cnt?: number | undefined;
|
|
2235
|
+
};
|
|
2236
|
+
type: "block.code.end";
|
|
2237
|
+
sectionId: string;
|
|
2238
|
+
lang: string;
|
|
2239
|
+
path?: string | undefined;
|
|
2240
|
+
} | {
|
|
2241
|
+
blockId: string;
|
|
2242
|
+
streamId: string;
|
|
2243
|
+
seq: number;
|
|
2244
|
+
blockNr: number;
|
|
2245
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2246
|
+
type: "block.code.truncated";
|
|
2247
|
+
sectionId: string;
|
|
2248
|
+
lang: string;
|
|
2249
|
+
path?: string | undefined;
|
|
2250
|
+
reason: string;
|
|
2251
|
+
kind: string;
|
|
2252
|
+
truncatedAtLine: number;
|
|
2253
|
+
errorCount: number;
|
|
2254
|
+
} | {
|
|
2255
|
+
blockId: string;
|
|
2256
|
+
streamId: string;
|
|
2257
|
+
seq: number;
|
|
2258
|
+
blockNr: number;
|
|
2259
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2260
|
+
type: "block.toplevel.begin";
|
|
2261
|
+
sectionId: string;
|
|
2262
|
+
} | {
|
|
2263
|
+
blockId: string;
|
|
2264
|
+
streamId: string;
|
|
2265
|
+
seq: number;
|
|
2266
|
+
blockNr: number;
|
|
2267
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2268
|
+
lineNr: number;
|
|
2269
|
+
line: string;
|
|
2270
|
+
type: "block.toplevel.line";
|
|
2271
|
+
sectionId: string;
|
|
2272
|
+
} | {
|
|
2273
|
+
blockId: string;
|
|
2274
|
+
streamId: string;
|
|
2275
|
+
seq: number;
|
|
2276
|
+
blockNr: number;
|
|
2277
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2278
|
+
stats: {
|
|
2279
|
+
lines: number;
|
|
2280
|
+
bytes: number;
|
|
2281
|
+
cnt?: number | undefined;
|
|
2282
|
+
};
|
|
2283
|
+
type: "block.toplevel.end";
|
|
2284
|
+
sectionId: string;
|
|
2285
|
+
} | {
|
|
2286
|
+
streamId: string;
|
|
2287
|
+
chatId: string;
|
|
2288
|
+
seq: number;
|
|
2289
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2290
|
+
type: "prompt.block-begin";
|
|
2291
|
+
} | {
|
|
2292
|
+
streamId: string;
|
|
2293
|
+
chatId: string;
|
|
2294
|
+
seq: number;
|
|
2295
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2296
|
+
type: "prompt.block-end";
|
|
2297
|
+
} | {
|
|
2298
|
+
streamId: string;
|
|
2299
|
+
chatId: string;
|
|
2300
|
+
seq: number;
|
|
2301
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2302
|
+
type: "prompt.req";
|
|
2303
|
+
request: {
|
|
2304
|
+
model?: string | undefined;
|
|
2305
|
+
messages: ({
|
|
2306
|
+
role: "assistant" | "system" | "user";
|
|
2307
|
+
content: ({
|
|
2308
|
+
type: "text";
|
|
2309
|
+
text: string;
|
|
2310
|
+
cache_control?: {
|
|
2311
|
+
type: "ephemeral";
|
|
2312
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2313
|
+
} | undefined;
|
|
2314
|
+
} | {
|
|
2315
|
+
type: "image_url";
|
|
2316
|
+
image_url: {
|
|
2317
|
+
url: string;
|
|
2318
|
+
};
|
|
2319
|
+
cache_control?: {
|
|
2320
|
+
type: "ephemeral";
|
|
2321
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2322
|
+
} | undefined;
|
|
2323
|
+
} | {
|
|
2324
|
+
type: "vibes_file";
|
|
2325
|
+
uploadId: string;
|
|
2326
|
+
name: string;
|
|
2327
|
+
mimeType: string;
|
|
2328
|
+
kind: "image" | "text";
|
|
2329
|
+
originalUploadId?: string | undefined;
|
|
2330
|
+
size?: number | undefined;
|
|
2331
|
+
})[];
|
|
2332
|
+
} | {
|
|
2333
|
+
role: "assistant";
|
|
2334
|
+
content: string | null;
|
|
2335
|
+
tool_calls: {
|
|
2336
|
+
id: string;
|
|
2337
|
+
type: "function";
|
|
2338
|
+
function: {
|
|
2339
|
+
name: string;
|
|
2340
|
+
arguments: string;
|
|
2341
|
+
};
|
|
2342
|
+
}[];
|
|
2343
|
+
} | {
|
|
2344
|
+
role: "tool";
|
|
2345
|
+
content: string;
|
|
2346
|
+
tool_call_id: string;
|
|
2347
|
+
})[];
|
|
2348
|
+
stream?: boolean | undefined;
|
|
2349
|
+
temperature?: number | undefined;
|
|
2350
|
+
max_tokens?: number | undefined;
|
|
2351
|
+
top_p?: number | undefined;
|
|
2352
|
+
logprobs?: boolean | undefined;
|
|
2353
|
+
top_logsprobs?: number | undefined;
|
|
2354
|
+
frequency_penalty?: number | undefined;
|
|
2355
|
+
presence_penalty?: number | undefined;
|
|
2356
|
+
stop?: string | string[] | undefined;
|
|
2357
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2358
|
+
modalities?: string[] | undefined;
|
|
2359
|
+
tools?: {
|
|
2360
|
+
type: "function";
|
|
2361
|
+
function: {
|
|
2362
|
+
name: string;
|
|
2363
|
+
description?: string | undefined;
|
|
2364
|
+
parameters: unknown;
|
|
2365
|
+
};
|
|
2366
|
+
}[] | undefined;
|
|
2367
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2368
|
+
type: "function";
|
|
2369
|
+
function: {
|
|
2370
|
+
name: string;
|
|
2371
|
+
};
|
|
2372
|
+
} | undefined;
|
|
2373
|
+
response_format?: unknown;
|
|
2374
|
+
};
|
|
2375
|
+
source?: "suggestion" | undefined;
|
|
2376
|
+
agentDispatched?: true | undefined;
|
|
2377
|
+
platformInitiated?: true | undefined;
|
|
2378
|
+
} | {
|
|
2379
|
+
streamId: string;
|
|
2380
|
+
chatId: string;
|
|
2381
|
+
seq: number;
|
|
2382
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2383
|
+
type: "prompt.error";
|
|
2384
|
+
error: string;
|
|
2385
|
+
code?: "turn-lost" | undefined;
|
|
2386
|
+
lostBuildPromptIds?: string[] | undefined;
|
|
2387
|
+
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
2193
2388
|
} | {
|
|
2194
2389
|
streamId: string;
|
|
2195
2390
|
chatId: string;
|
|
@@ -2458,253 +2653,253 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2458
2653
|
kind: "edits-incomplete";
|
|
2459
2654
|
path?: string | undefined;
|
|
2460
2655
|
} | {
|
|
2461
|
-
|
|
2656
|
+
type: "prompt.research";
|
|
2657
|
+
version: 1;
|
|
2462
2658
|
streamId: string;
|
|
2659
|
+
chatId: string;
|
|
2463
2660
|
seq: number;
|
|
2464
|
-
blockNr: number;
|
|
2465
2661
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2662
|
+
researchId: string;
|
|
2663
|
+
status: "complete" | "failed" | "partial";
|
|
2664
|
+
brief: string;
|
|
2665
|
+
sources: {
|
|
2666
|
+
url: string;
|
|
2667
|
+
finalUrl: string | null;
|
|
2668
|
+
contentType: string | null;
|
|
2669
|
+
httpStatus: number | null;
|
|
2670
|
+
backendFetchable: boolean;
|
|
2671
|
+
fetched: boolean;
|
|
2672
|
+
errorCode?: string | undefined;
|
|
2673
|
+
}[];
|
|
2674
|
+
api: {
|
|
2675
|
+
method: string;
|
|
2676
|
+
path: string;
|
|
2677
|
+
description: string;
|
|
2678
|
+
fields: string[];
|
|
2679
|
+
}[];
|
|
2680
|
+
excerpts: {
|
|
2681
|
+
sourceUrl: string;
|
|
2682
|
+
text: string;
|
|
2683
|
+
locator?: string | undefined;
|
|
2684
|
+
}[];
|
|
2685
|
+
seedRows: {
|
|
2686
|
+
sourceUrl: string;
|
|
2687
|
+
dbName: string;
|
|
2688
|
+
key: string;
|
|
2689
|
+
item: unknown;
|
|
2690
|
+
}[];
|
|
2691
|
+
completedAt: string;
|
|
2692
|
+
errorCode?: string | undefined;
|
|
2693
|
+
}, {}>;
|
|
2694
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2695
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2696
|
+
type: "vibes.diy.section-event";
|
|
2697
|
+
chatId: string;
|
|
2698
|
+
promptId: string;
|
|
2699
|
+
blockSeq: number;
|
|
2472
2700
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2701
|
+
blocks: ({
|
|
2702
|
+
blockId: string;
|
|
2703
|
+
streamId: string;
|
|
2704
|
+
seq: number;
|
|
2705
|
+
blockNr: number;
|
|
2706
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2707
|
+
type: "block.begin";
|
|
2708
|
+
} | {
|
|
2709
|
+
blockId: string;
|
|
2710
|
+
streamId: string;
|
|
2711
|
+
seq: number;
|
|
2712
|
+
blockNr: number;
|
|
2713
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2714
|
+
type: "block.end";
|
|
2715
|
+
stats: {
|
|
2716
|
+
toplevel: {
|
|
2717
|
+
lines: number;
|
|
2718
|
+
bytes: number;
|
|
2719
|
+
cnt?: number | undefined;
|
|
2720
|
+
};
|
|
2721
|
+
code: {
|
|
2722
|
+
lines: number;
|
|
2723
|
+
bytes: number;
|
|
2724
|
+
cnt?: number | undefined;
|
|
2725
|
+
};
|
|
2726
|
+
image: {
|
|
2727
|
+
lines: number;
|
|
2728
|
+
bytes: number;
|
|
2729
|
+
cnt?: number | undefined;
|
|
2730
|
+
};
|
|
2731
|
+
total: {
|
|
2732
|
+
lines: number;
|
|
2733
|
+
bytes: number;
|
|
2734
|
+
cnt?: number | undefined;
|
|
2735
|
+
};
|
|
2484
2736
|
};
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2737
|
+
usage: {
|
|
2738
|
+
given: {
|
|
2739
|
+
prompt_tokens: number;
|
|
2740
|
+
completion_tokens: number;
|
|
2741
|
+
total_tokens: number;
|
|
2742
|
+
}[];
|
|
2743
|
+
calculated: {
|
|
2744
|
+
prompt_tokens: number;
|
|
2745
|
+
completion_tokens: number;
|
|
2746
|
+
total_tokens: number;
|
|
2747
|
+
};
|
|
2489
2748
|
};
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2749
|
+
fsRef?: ((In: {
|
|
2750
|
+
appSlug: string;
|
|
2751
|
+
ownerHandle?: string | undefined;
|
|
2752
|
+
userSlug?: string | undefined;
|
|
2753
|
+
mode: "dev" | "production";
|
|
2754
|
+
fsId: string;
|
|
2755
|
+
}) => import("arktype").Out<{
|
|
2756
|
+
appSlug: string;
|
|
2757
|
+
mode: "dev" | "production";
|
|
2758
|
+
fsId: string;
|
|
2759
|
+
ownerHandle: string;
|
|
2760
|
+
}>) | undefined;
|
|
2761
|
+
touchedPaths?: string[] | undefined;
|
|
2762
|
+
settled?: {
|
|
2763
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2764
|
+
entryTouched: boolean;
|
|
2765
|
+
touchedCount: number;
|
|
2766
|
+
applied: boolean;
|
|
2767
|
+
} | undefined;
|
|
2768
|
+
} | {
|
|
2769
|
+
blockId: string;
|
|
2770
|
+
streamId: string;
|
|
2771
|
+
seq: number;
|
|
2772
|
+
blockNr: number;
|
|
2773
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2774
|
+
type: "block.stats";
|
|
2775
|
+
stats: {
|
|
2776
|
+
toplevel: {
|
|
2777
|
+
lines: number;
|
|
2778
|
+
bytes: number;
|
|
2779
|
+
cnt?: number | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
code: {
|
|
2782
|
+
lines: number;
|
|
2783
|
+
bytes: number;
|
|
2784
|
+
cnt?: number | undefined;
|
|
2785
|
+
};
|
|
2786
|
+
image: {
|
|
2787
|
+
lines: number;
|
|
2788
|
+
bytes: number;
|
|
2789
|
+
cnt?: number | undefined;
|
|
2790
|
+
};
|
|
2791
|
+
total: {
|
|
2792
|
+
lines: number;
|
|
2793
|
+
bytes: number;
|
|
2794
|
+
cnt?: number | undefined;
|
|
2795
|
+
};
|
|
2494
2796
|
};
|
|
2495
|
-
|
|
2496
|
-
usage: {
|
|
2497
|
-
given: {
|
|
2498
|
-
prompt_tokens: number;
|
|
2499
|
-
completion_tokens: number;
|
|
2500
|
-
total_tokens: number;
|
|
2501
|
-
}[];
|
|
2502
|
-
calculated: {
|
|
2797
|
+
usage: {
|
|
2503
2798
|
prompt_tokens: number;
|
|
2504
2799
|
completion_tokens: number;
|
|
2505
2800
|
total_tokens: number;
|
|
2506
2801
|
};
|
|
2507
|
-
}
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
}) => import("arktype").Out<{
|
|
2515
|
-
appSlug: string;
|
|
2516
|
-
mode: "dev" | "production";
|
|
2517
|
-
fsId: string;
|
|
2518
|
-
ownerHandle: string;
|
|
2519
|
-
}>) | undefined;
|
|
2520
|
-
touchedPaths?: string[] | undefined;
|
|
2521
|
-
settled?: {
|
|
2522
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2523
|
-
entryTouched: boolean;
|
|
2524
|
-
touchedCount: number;
|
|
2525
|
-
applied: boolean;
|
|
2526
|
-
} | undefined;
|
|
2527
|
-
} | {
|
|
2528
|
-
blockId: string;
|
|
2529
|
-
streamId: string;
|
|
2530
|
-
seq: number;
|
|
2531
|
-
blockNr: number;
|
|
2532
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2533
|
-
type: "block.stats";
|
|
2534
|
-
stats: {
|
|
2535
|
-
toplevel: {
|
|
2536
|
-
lines: number;
|
|
2537
|
-
bytes: number;
|
|
2538
|
-
cnt?: number | undefined;
|
|
2539
|
-
};
|
|
2540
|
-
code: {
|
|
2802
|
+
} | {
|
|
2803
|
+
blockId: string;
|
|
2804
|
+
streamId: string;
|
|
2805
|
+
seq: number;
|
|
2806
|
+
blockNr: number;
|
|
2807
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2808
|
+
stats: {
|
|
2541
2809
|
lines: number;
|
|
2542
2810
|
bytes: number;
|
|
2543
2811
|
cnt?: number | undefined;
|
|
2544
2812
|
};
|
|
2545
|
-
|
|
2813
|
+
type: "block.image";
|
|
2814
|
+
sectionId: string;
|
|
2815
|
+
url?: string | undefined;
|
|
2816
|
+
uploadId?: string | undefined;
|
|
2817
|
+
cid?: string | undefined;
|
|
2818
|
+
mimeType?: string | undefined;
|
|
2819
|
+
size?: number | undefined;
|
|
2820
|
+
docWritten?: boolean | undefined;
|
|
2821
|
+
} | {
|
|
2822
|
+
blockId: string;
|
|
2823
|
+
streamId: string;
|
|
2824
|
+
seq: number;
|
|
2825
|
+
blockNr: number;
|
|
2826
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2827
|
+
type: "block.code.begin";
|
|
2828
|
+
sectionId: string;
|
|
2829
|
+
lang: string;
|
|
2830
|
+
path?: string | undefined;
|
|
2831
|
+
} | {
|
|
2832
|
+
blockId: string;
|
|
2833
|
+
streamId: string;
|
|
2834
|
+
seq: number;
|
|
2835
|
+
blockNr: number;
|
|
2836
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2837
|
+
lineNr: number;
|
|
2838
|
+
line: string;
|
|
2839
|
+
type: "block.code.line";
|
|
2840
|
+
sectionId: string;
|
|
2841
|
+
lang: string;
|
|
2842
|
+
path?: string | undefined;
|
|
2843
|
+
} | {
|
|
2844
|
+
blockId: string;
|
|
2845
|
+
streamId: string;
|
|
2846
|
+
seq: number;
|
|
2847
|
+
blockNr: number;
|
|
2848
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2849
|
+
stats: {
|
|
2546
2850
|
lines: number;
|
|
2547
2851
|
bytes: number;
|
|
2548
2852
|
cnt?: number | undefined;
|
|
2549
2853
|
};
|
|
2550
|
-
|
|
2854
|
+
type: "block.code.end";
|
|
2855
|
+
sectionId: string;
|
|
2856
|
+
lang: string;
|
|
2857
|
+
path?: string | undefined;
|
|
2858
|
+
} | {
|
|
2859
|
+
blockId: string;
|
|
2860
|
+
streamId: string;
|
|
2861
|
+
seq: number;
|
|
2862
|
+
blockNr: number;
|
|
2863
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2864
|
+
type: "block.code.truncated";
|
|
2865
|
+
sectionId: string;
|
|
2866
|
+
lang: string;
|
|
2867
|
+
path?: string | undefined;
|
|
2868
|
+
reason: string;
|
|
2869
|
+
kind: string;
|
|
2870
|
+
truncatedAtLine: number;
|
|
2871
|
+
errorCount: number;
|
|
2872
|
+
} | {
|
|
2873
|
+
blockId: string;
|
|
2874
|
+
streamId: string;
|
|
2875
|
+
seq: number;
|
|
2876
|
+
blockNr: number;
|
|
2877
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2878
|
+
type: "block.toplevel.begin";
|
|
2879
|
+
sectionId: string;
|
|
2880
|
+
} | {
|
|
2881
|
+
blockId: string;
|
|
2882
|
+
streamId: string;
|
|
2883
|
+
seq: number;
|
|
2884
|
+
blockNr: number;
|
|
2885
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2886
|
+
lineNr: number;
|
|
2887
|
+
line: string;
|
|
2888
|
+
type: "block.toplevel.line";
|
|
2889
|
+
sectionId: string;
|
|
2890
|
+
} | {
|
|
2891
|
+
blockId: string;
|
|
2892
|
+
streamId: string;
|
|
2893
|
+
seq: number;
|
|
2894
|
+
blockNr: number;
|
|
2895
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2896
|
+
stats: {
|
|
2551
2897
|
lines: number;
|
|
2552
2898
|
bytes: number;
|
|
2553
2899
|
cnt?: number | undefined;
|
|
2554
2900
|
};
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
prompt_tokens: number;
|
|
2558
|
-
completion_tokens: number;
|
|
2559
|
-
total_tokens: number;
|
|
2560
|
-
};
|
|
2561
|
-
} | {
|
|
2562
|
-
blockId: string;
|
|
2563
|
-
streamId: string;
|
|
2564
|
-
seq: number;
|
|
2565
|
-
blockNr: number;
|
|
2566
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2567
|
-
stats: {
|
|
2568
|
-
lines: number;
|
|
2569
|
-
bytes: number;
|
|
2570
|
-
cnt?: number | undefined;
|
|
2571
|
-
};
|
|
2572
|
-
type: "block.image";
|
|
2573
|
-
sectionId: string;
|
|
2574
|
-
url?: string | undefined;
|
|
2575
|
-
uploadId?: string | undefined;
|
|
2576
|
-
cid?: string | undefined;
|
|
2577
|
-
mimeType?: string | undefined;
|
|
2578
|
-
size?: number | undefined;
|
|
2579
|
-
docWritten?: boolean | undefined;
|
|
2580
|
-
} | {
|
|
2581
|
-
blockId: string;
|
|
2582
|
-
streamId: string;
|
|
2583
|
-
seq: number;
|
|
2584
|
-
blockNr: number;
|
|
2585
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2586
|
-
type: "block.code.begin";
|
|
2587
|
-
sectionId: string;
|
|
2588
|
-
lang: string;
|
|
2589
|
-
path?: string | undefined;
|
|
2590
|
-
} | {
|
|
2591
|
-
blockId: string;
|
|
2592
|
-
streamId: string;
|
|
2593
|
-
seq: number;
|
|
2594
|
-
blockNr: number;
|
|
2595
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2596
|
-
lineNr: number;
|
|
2597
|
-
line: string;
|
|
2598
|
-
type: "block.code.line";
|
|
2599
|
-
sectionId: string;
|
|
2600
|
-
lang: string;
|
|
2601
|
-
path?: string | undefined;
|
|
2602
|
-
} | {
|
|
2603
|
-
blockId: string;
|
|
2604
|
-
streamId: string;
|
|
2605
|
-
seq: number;
|
|
2606
|
-
blockNr: number;
|
|
2607
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2608
|
-
stats: {
|
|
2609
|
-
lines: number;
|
|
2610
|
-
bytes: number;
|
|
2611
|
-
cnt?: number | undefined;
|
|
2612
|
-
};
|
|
2613
|
-
type: "block.code.end";
|
|
2614
|
-
sectionId: string;
|
|
2615
|
-
lang: string;
|
|
2616
|
-
path?: string | undefined;
|
|
2617
|
-
} | {
|
|
2618
|
-
blockId: string;
|
|
2619
|
-
streamId: string;
|
|
2620
|
-
seq: number;
|
|
2621
|
-
blockNr: number;
|
|
2622
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2623
|
-
type: "block.code.truncated";
|
|
2624
|
-
sectionId: string;
|
|
2625
|
-
lang: string;
|
|
2626
|
-
path?: string | undefined;
|
|
2627
|
-
reason: string;
|
|
2628
|
-
kind: string;
|
|
2629
|
-
truncatedAtLine: number;
|
|
2630
|
-
errorCount: number;
|
|
2631
|
-
} | {
|
|
2632
|
-
blockId: string;
|
|
2633
|
-
streamId: string;
|
|
2634
|
-
seq: number;
|
|
2635
|
-
blockNr: number;
|
|
2636
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2637
|
-
type: "block.toplevel.begin";
|
|
2638
|
-
sectionId: string;
|
|
2639
|
-
} | {
|
|
2640
|
-
blockId: string;
|
|
2641
|
-
streamId: string;
|
|
2642
|
-
seq: number;
|
|
2643
|
-
blockNr: number;
|
|
2644
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2645
|
-
lineNr: number;
|
|
2646
|
-
line: string;
|
|
2647
|
-
type: "block.toplevel.line";
|
|
2648
|
-
sectionId: string;
|
|
2649
|
-
} | {
|
|
2650
|
-
blockId: string;
|
|
2651
|
-
streamId: string;
|
|
2652
|
-
seq: number;
|
|
2653
|
-
blockNr: number;
|
|
2654
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2655
|
-
stats: {
|
|
2656
|
-
lines: number;
|
|
2657
|
-
bytes: number;
|
|
2658
|
-
cnt?: number | undefined;
|
|
2659
|
-
};
|
|
2660
|
-
type: "block.toplevel.end";
|
|
2661
|
-
sectionId: string;
|
|
2662
|
-
}, {}>;
|
|
2663
|
-
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2664
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2665
|
-
type: "vibes.diy.section-event";
|
|
2666
|
-
chatId: string;
|
|
2667
|
-
promptId: string;
|
|
2668
|
-
blockSeq: number;
|
|
2669
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2670
|
-
blocks: ({
|
|
2671
|
-
type: "prompt.research";
|
|
2672
|
-
version: 1;
|
|
2673
|
-
streamId: string;
|
|
2674
|
-
chatId: string;
|
|
2675
|
-
seq: number;
|
|
2676
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2677
|
-
researchId: string;
|
|
2678
|
-
status: "complete" | "failed" | "partial";
|
|
2679
|
-
brief: string;
|
|
2680
|
-
sources: {
|
|
2681
|
-
url: string;
|
|
2682
|
-
finalUrl: string | null;
|
|
2683
|
-
contentType: string | null;
|
|
2684
|
-
httpStatus: number | null;
|
|
2685
|
-
backendFetchable: boolean;
|
|
2686
|
-
fetched: boolean;
|
|
2687
|
-
errorCode?: string | undefined;
|
|
2688
|
-
}[];
|
|
2689
|
-
api: {
|
|
2690
|
-
method: string;
|
|
2691
|
-
path: string;
|
|
2692
|
-
description: string;
|
|
2693
|
-
fields: string[];
|
|
2694
|
-
}[];
|
|
2695
|
-
excerpts: {
|
|
2696
|
-
sourceUrl: string;
|
|
2697
|
-
text: string;
|
|
2698
|
-
locator?: string | undefined;
|
|
2699
|
-
}[];
|
|
2700
|
-
seedRows: {
|
|
2701
|
-
sourceUrl: string;
|
|
2702
|
-
dbName: string;
|
|
2703
|
-
key: string;
|
|
2704
|
-
item: unknown;
|
|
2705
|
-
}[];
|
|
2706
|
-
completedAt: string;
|
|
2707
|
-
errorCode?: string | undefined;
|
|
2901
|
+
type: "block.toplevel.end";
|
|
2902
|
+
sectionId: string;
|
|
2708
2903
|
} | {
|
|
2709
2904
|
streamId: string;
|
|
2710
2905
|
chatId: string;
|
|
@@ -3076,6 +3271,69 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3076
3271
|
kind: "edits-incomplete";
|
|
3077
3272
|
path?: string | undefined;
|
|
3078
3273
|
} | {
|
|
3274
|
+
type: "prompt.research";
|
|
3275
|
+
version: 1;
|
|
3276
|
+
streamId: string;
|
|
3277
|
+
chatId: string;
|
|
3278
|
+
seq: number;
|
|
3279
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3280
|
+
researchId: string;
|
|
3281
|
+
status: "complete" | "failed" | "partial";
|
|
3282
|
+
brief: string;
|
|
3283
|
+
sources: {
|
|
3284
|
+
url: string;
|
|
3285
|
+
finalUrl: string | null;
|
|
3286
|
+
contentType: string | null;
|
|
3287
|
+
httpStatus: number | null;
|
|
3288
|
+
backendFetchable: boolean;
|
|
3289
|
+
fetched: boolean;
|
|
3290
|
+
errorCode?: string | undefined;
|
|
3291
|
+
}[];
|
|
3292
|
+
api: {
|
|
3293
|
+
method: string;
|
|
3294
|
+
path: string;
|
|
3295
|
+
description: string;
|
|
3296
|
+
fields: string[];
|
|
3297
|
+
}[];
|
|
3298
|
+
excerpts: {
|
|
3299
|
+
sourceUrl: string;
|
|
3300
|
+
text: string;
|
|
3301
|
+
locator?: string | undefined;
|
|
3302
|
+
}[];
|
|
3303
|
+
seedRows: {
|
|
3304
|
+
sourceUrl: string;
|
|
3305
|
+
dbName: string;
|
|
3306
|
+
key: string;
|
|
3307
|
+
item: unknown;
|
|
3308
|
+
}[];
|
|
3309
|
+
completedAt: string;
|
|
3310
|
+
errorCode?: string | undefined;
|
|
3311
|
+
})[];
|
|
3312
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3313
|
+
}, {}>;
|
|
3314
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
3315
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3316
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3317
|
+
type: "vibes.diy.req-get-chat-response";
|
|
3318
|
+
auth?: {
|
|
3319
|
+
type: "clerk" | "device-id" | "ucan";
|
|
3320
|
+
token: string;
|
|
3321
|
+
} | undefined;
|
|
3322
|
+
guest?: {
|
|
3323
|
+
type: "guest-build";
|
|
3324
|
+
token: string;
|
|
3325
|
+
} | undefined;
|
|
3326
|
+
ownerHandle: string;
|
|
3327
|
+
appSlug: string;
|
|
3328
|
+
chatId?: string | undefined;
|
|
3329
|
+
promptId?: string | undefined;
|
|
3330
|
+
usageOnly?: boolean | undefined;
|
|
3331
|
+
}, {}>;
|
|
3332
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3333
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3334
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3335
|
+
blockSeq: number;
|
|
3336
|
+
blocks: ({
|
|
3079
3337
|
blockId: string;
|
|
3080
3338
|
streamId: string;
|
|
3081
3339
|
seq: number;
|
|
@@ -3277,65 +3535,6 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3277
3535
|
};
|
|
3278
3536
|
type: "block.toplevel.end";
|
|
3279
3537
|
sectionId: string;
|
|
3280
|
-
})[];
|
|
3281
|
-
initiator?: "platform" | "seed" | undefined;
|
|
3282
|
-
}, {}>;
|
|
3283
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
3284
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3285
|
-
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3286
|
-
type: "vibes.diy.req-get-chat-response";
|
|
3287
|
-
auth: {
|
|
3288
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3289
|
-
token: string;
|
|
3290
|
-
};
|
|
3291
|
-
ownerHandle: string;
|
|
3292
|
-
appSlug: string;
|
|
3293
|
-
chatId?: string | undefined;
|
|
3294
|
-
promptId?: string | undefined;
|
|
3295
|
-
usageOnly?: boolean | undefined;
|
|
3296
|
-
}, {}>;
|
|
3297
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3298
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3299
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3300
|
-
blockSeq: number;
|
|
3301
|
-
blocks: ({
|
|
3302
|
-
type: "prompt.research";
|
|
3303
|
-
version: 1;
|
|
3304
|
-
streamId: string;
|
|
3305
|
-
chatId: string;
|
|
3306
|
-
seq: number;
|
|
3307
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3308
|
-
researchId: string;
|
|
3309
|
-
status: "complete" | "failed" | "partial";
|
|
3310
|
-
brief: string;
|
|
3311
|
-
sources: {
|
|
3312
|
-
url: string;
|
|
3313
|
-
finalUrl: string | null;
|
|
3314
|
-
contentType: string | null;
|
|
3315
|
-
httpStatus: number | null;
|
|
3316
|
-
backendFetchable: boolean;
|
|
3317
|
-
fetched: boolean;
|
|
3318
|
-
errorCode?: string | undefined;
|
|
3319
|
-
}[];
|
|
3320
|
-
api: {
|
|
3321
|
-
method: string;
|
|
3322
|
-
path: string;
|
|
3323
|
-
description: string;
|
|
3324
|
-
fields: string[];
|
|
3325
|
-
}[];
|
|
3326
|
-
excerpts: {
|
|
3327
|
-
sourceUrl: string;
|
|
3328
|
-
text: string;
|
|
3329
|
-
locator?: string | undefined;
|
|
3330
|
-
}[];
|
|
3331
|
-
seedRows: {
|
|
3332
|
-
sourceUrl: string;
|
|
3333
|
-
dbName: string;
|
|
3334
|
-
key: string;
|
|
3335
|
-
item: unknown;
|
|
3336
|
-
}[];
|
|
3337
|
-
completedAt: string;
|
|
3338
|
-
errorCode?: string | undefined;
|
|
3339
3538
|
} | {
|
|
3340
3539
|
streamId: string;
|
|
3341
3540
|
chatId: string;
|
|
@@ -3682,232 +3881,68 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3682
3881
|
fsId?: string | undefined;
|
|
3683
3882
|
name?: string | undefined;
|
|
3684
3883
|
round?: number | undefined;
|
|
3685
|
-
epoch?: number | undefined;
|
|
3686
|
-
text?: string | undefined;
|
|
3687
|
-
truncated?: boolean | undefined;
|
|
3688
|
-
};
|
|
3689
|
-
} | {
|
|
3690
|
-
type: "prompt.status";
|
|
3691
|
-
streamId: string;
|
|
3692
|
-
chatId: string;
|
|
3693
|
-
seq: number;
|
|
3694
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3695
|
-
round: number;
|
|
3696
|
-
maxRounds: number;
|
|
3697
|
-
tools: {
|
|
3698
|
-
name: string;
|
|
3699
|
-
path?: string | undefined;
|
|
3700
|
-
}[];
|
|
3701
|
-
} | {
|
|
3702
|
-
streamId: string;
|
|
3703
|
-
chatId: string;
|
|
3704
|
-
seq: number;
|
|
3705
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3706
|
-
type: "prompt.notice";
|
|
3707
|
-
kind: "edits-incomplete";
|
|
3708
|
-
path?: string | undefined;
|
|
3709
|
-
} | {
|
|
3710
|
-
blockId: string;
|
|
3711
|
-
streamId: string;
|
|
3712
|
-
seq: number;
|
|
3713
|
-
blockNr: number;
|
|
3714
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3715
|
-
type: "block.begin";
|
|
3716
|
-
} | {
|
|
3717
|
-
blockId: string;
|
|
3718
|
-
streamId: string;
|
|
3719
|
-
seq: number;
|
|
3720
|
-
blockNr: number;
|
|
3721
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3722
|
-
type: "block.end";
|
|
3723
|
-
stats: {
|
|
3724
|
-
toplevel: {
|
|
3725
|
-
lines: number;
|
|
3726
|
-
bytes: number;
|
|
3727
|
-
cnt?: number | undefined;
|
|
3728
|
-
};
|
|
3729
|
-
code: {
|
|
3730
|
-
lines: number;
|
|
3731
|
-
bytes: number;
|
|
3732
|
-
cnt?: number | undefined;
|
|
3733
|
-
};
|
|
3734
|
-
image: {
|
|
3735
|
-
lines: number;
|
|
3736
|
-
bytes: number;
|
|
3737
|
-
cnt?: number | undefined;
|
|
3738
|
-
};
|
|
3739
|
-
total: {
|
|
3740
|
-
lines: number;
|
|
3741
|
-
bytes: number;
|
|
3742
|
-
cnt?: number | undefined;
|
|
3743
|
-
};
|
|
3744
|
-
};
|
|
3745
|
-
usage: {
|
|
3746
|
-
given: {
|
|
3747
|
-
prompt_tokens: number;
|
|
3748
|
-
completion_tokens: number;
|
|
3749
|
-
total_tokens: number;
|
|
3750
|
-
}[];
|
|
3751
|
-
calculated: {
|
|
3752
|
-
prompt_tokens: number;
|
|
3753
|
-
completion_tokens: number;
|
|
3754
|
-
total_tokens: number;
|
|
3755
|
-
};
|
|
3756
|
-
};
|
|
3757
|
-
fsRef?: ((In: {
|
|
3758
|
-
appSlug: string;
|
|
3759
|
-
ownerHandle?: string | undefined;
|
|
3760
|
-
userSlug?: string | undefined;
|
|
3761
|
-
mode: "dev" | "production";
|
|
3762
|
-
fsId: string;
|
|
3763
|
-
}) => import("arktype").Out<{
|
|
3764
|
-
appSlug: string;
|
|
3765
|
-
mode: "dev" | "production";
|
|
3766
|
-
fsId: string;
|
|
3767
|
-
ownerHandle: string;
|
|
3768
|
-
}>) | undefined;
|
|
3769
|
-
touchedPaths?: string[] | undefined;
|
|
3770
|
-
settled?: {
|
|
3771
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
3772
|
-
entryTouched: boolean;
|
|
3773
|
-
touchedCount: number;
|
|
3774
|
-
applied: boolean;
|
|
3775
|
-
} | undefined;
|
|
3776
|
-
} | {
|
|
3777
|
-
blockId: string;
|
|
3778
|
-
streamId: string;
|
|
3779
|
-
seq: number;
|
|
3780
|
-
blockNr: number;
|
|
3781
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3782
|
-
type: "block.stats";
|
|
3783
|
-
stats: {
|
|
3784
|
-
toplevel: {
|
|
3785
|
-
lines: number;
|
|
3786
|
-
bytes: number;
|
|
3787
|
-
cnt?: number | undefined;
|
|
3788
|
-
};
|
|
3789
|
-
code: {
|
|
3790
|
-
lines: number;
|
|
3791
|
-
bytes: number;
|
|
3792
|
-
cnt?: number | undefined;
|
|
3793
|
-
};
|
|
3794
|
-
image: {
|
|
3795
|
-
lines: number;
|
|
3796
|
-
bytes: number;
|
|
3797
|
-
cnt?: number | undefined;
|
|
3798
|
-
};
|
|
3799
|
-
total: {
|
|
3800
|
-
lines: number;
|
|
3801
|
-
bytes: number;
|
|
3802
|
-
cnt?: number | undefined;
|
|
3803
|
-
};
|
|
3804
|
-
};
|
|
3805
|
-
usage: {
|
|
3806
|
-
prompt_tokens: number;
|
|
3807
|
-
completion_tokens: number;
|
|
3808
|
-
total_tokens: number;
|
|
3809
|
-
};
|
|
3810
|
-
} | {
|
|
3811
|
-
blockId: string;
|
|
3812
|
-
streamId: string;
|
|
3813
|
-
seq: number;
|
|
3814
|
-
blockNr: number;
|
|
3815
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3816
|
-
stats: {
|
|
3817
|
-
lines: number;
|
|
3818
|
-
bytes: number;
|
|
3819
|
-
cnt?: number | undefined;
|
|
3820
|
-
};
|
|
3821
|
-
type: "block.image";
|
|
3822
|
-
sectionId: string;
|
|
3823
|
-
url?: string | undefined;
|
|
3824
|
-
uploadId?: string | undefined;
|
|
3825
|
-
cid?: string | undefined;
|
|
3826
|
-
mimeType?: string | undefined;
|
|
3827
|
-
size?: number | undefined;
|
|
3828
|
-
docWritten?: boolean | undefined;
|
|
3829
|
-
} | {
|
|
3830
|
-
blockId: string;
|
|
3831
|
-
streamId: string;
|
|
3832
|
-
seq: number;
|
|
3833
|
-
blockNr: number;
|
|
3834
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3835
|
-
type: "block.code.begin";
|
|
3836
|
-
sectionId: string;
|
|
3837
|
-
lang: string;
|
|
3838
|
-
path?: string | undefined;
|
|
3839
|
-
} | {
|
|
3840
|
-
blockId: string;
|
|
3841
|
-
streamId: string;
|
|
3842
|
-
seq: number;
|
|
3843
|
-
blockNr: number;
|
|
3844
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3845
|
-
lineNr: number;
|
|
3846
|
-
line: string;
|
|
3847
|
-
type: "block.code.line";
|
|
3848
|
-
sectionId: string;
|
|
3849
|
-
lang: string;
|
|
3850
|
-
path?: string | undefined;
|
|
3851
|
-
} | {
|
|
3852
|
-
blockId: string;
|
|
3853
|
-
streamId: string;
|
|
3854
|
-
seq: number;
|
|
3855
|
-
blockNr: number;
|
|
3856
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3857
|
-
stats: {
|
|
3858
|
-
lines: number;
|
|
3859
|
-
bytes: number;
|
|
3860
|
-
cnt?: number | undefined;
|
|
3884
|
+
epoch?: number | undefined;
|
|
3885
|
+
text?: string | undefined;
|
|
3886
|
+
truncated?: boolean | undefined;
|
|
3861
3887
|
};
|
|
3862
|
-
type: "block.code.end";
|
|
3863
|
-
sectionId: string;
|
|
3864
|
-
lang: string;
|
|
3865
|
-
path?: string | undefined;
|
|
3866
|
-
} | {
|
|
3867
|
-
blockId: string;
|
|
3868
|
-
streamId: string;
|
|
3869
|
-
seq: number;
|
|
3870
|
-
blockNr: number;
|
|
3871
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3872
|
-
type: "block.code.truncated";
|
|
3873
|
-
sectionId: string;
|
|
3874
|
-
lang: string;
|
|
3875
|
-
path?: string | undefined;
|
|
3876
|
-
reason: string;
|
|
3877
|
-
kind: string;
|
|
3878
|
-
truncatedAtLine: number;
|
|
3879
|
-
errorCount: number;
|
|
3880
3888
|
} | {
|
|
3881
|
-
|
|
3889
|
+
type: "prompt.status";
|
|
3882
3890
|
streamId: string;
|
|
3891
|
+
chatId: string;
|
|
3883
3892
|
seq: number;
|
|
3884
|
-
blockNr: number;
|
|
3885
3893
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3886
|
-
|
|
3887
|
-
|
|
3894
|
+
round: number;
|
|
3895
|
+
maxRounds: number;
|
|
3896
|
+
tools: {
|
|
3897
|
+
name: string;
|
|
3898
|
+
path?: string | undefined;
|
|
3899
|
+
}[];
|
|
3888
3900
|
} | {
|
|
3889
|
-
blockId: string;
|
|
3890
3901
|
streamId: string;
|
|
3902
|
+
chatId: string;
|
|
3891
3903
|
seq: number;
|
|
3892
|
-
blockNr: number;
|
|
3893
3904
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
sectionId: string;
|
|
3905
|
+
type: "prompt.notice";
|
|
3906
|
+
kind: "edits-incomplete";
|
|
3907
|
+
path?: string | undefined;
|
|
3898
3908
|
} | {
|
|
3899
|
-
|
|
3909
|
+
type: "prompt.research";
|
|
3910
|
+
version: 1;
|
|
3900
3911
|
streamId: string;
|
|
3912
|
+
chatId: string;
|
|
3901
3913
|
seq: number;
|
|
3902
|
-
blockNr: number;
|
|
3903
3914
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3915
|
+
researchId: string;
|
|
3916
|
+
status: "complete" | "failed" | "partial";
|
|
3917
|
+
brief: string;
|
|
3918
|
+
sources: {
|
|
3919
|
+
url: string;
|
|
3920
|
+
finalUrl: string | null;
|
|
3921
|
+
contentType: string | null;
|
|
3922
|
+
httpStatus: number | null;
|
|
3923
|
+
backendFetchable: boolean;
|
|
3924
|
+
fetched: boolean;
|
|
3925
|
+
errorCode?: string | undefined;
|
|
3926
|
+
}[];
|
|
3927
|
+
api: {
|
|
3928
|
+
method: string;
|
|
3929
|
+
path: string;
|
|
3930
|
+
description: string;
|
|
3931
|
+
fields: string[];
|
|
3932
|
+
}[];
|
|
3933
|
+
excerpts: {
|
|
3934
|
+
sourceUrl: string;
|
|
3935
|
+
text: string;
|
|
3936
|
+
locator?: string | undefined;
|
|
3937
|
+
}[];
|
|
3938
|
+
seedRows: {
|
|
3939
|
+
sourceUrl: string;
|
|
3940
|
+
dbName: string;
|
|
3941
|
+
key: string;
|
|
3942
|
+
item: unknown;
|
|
3943
|
+
}[];
|
|
3944
|
+
completedAt: string;
|
|
3945
|
+
errorCode?: string | undefined;
|
|
3911
3946
|
})[];
|
|
3912
3947
|
}, {}>;
|
|
3913
3948
|
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
@@ -3927,43 +3962,207 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3927
3962
|
sections: {
|
|
3928
3963
|
blockSeq: number;
|
|
3929
3964
|
blocks: ({
|
|
3930
|
-
|
|
3931
|
-
|
|
3965
|
+
blockId: string;
|
|
3966
|
+
streamId: string;
|
|
3967
|
+
seq: number;
|
|
3968
|
+
blockNr: number;
|
|
3969
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3970
|
+
type: "block.begin";
|
|
3971
|
+
} | {
|
|
3972
|
+
blockId: string;
|
|
3973
|
+
streamId: string;
|
|
3974
|
+
seq: number;
|
|
3975
|
+
blockNr: number;
|
|
3976
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3977
|
+
type: "block.end";
|
|
3978
|
+
stats: {
|
|
3979
|
+
toplevel: {
|
|
3980
|
+
lines: number;
|
|
3981
|
+
bytes: number;
|
|
3982
|
+
cnt?: number | undefined;
|
|
3983
|
+
};
|
|
3984
|
+
code: {
|
|
3985
|
+
lines: number;
|
|
3986
|
+
bytes: number;
|
|
3987
|
+
cnt?: number | undefined;
|
|
3988
|
+
};
|
|
3989
|
+
image: {
|
|
3990
|
+
lines: number;
|
|
3991
|
+
bytes: number;
|
|
3992
|
+
cnt?: number | undefined;
|
|
3993
|
+
};
|
|
3994
|
+
total: {
|
|
3995
|
+
lines: number;
|
|
3996
|
+
bytes: number;
|
|
3997
|
+
cnt?: number | undefined;
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
4000
|
+
usage: {
|
|
4001
|
+
given: {
|
|
4002
|
+
prompt_tokens: number;
|
|
4003
|
+
completion_tokens: number;
|
|
4004
|
+
total_tokens: number;
|
|
4005
|
+
}[];
|
|
4006
|
+
calculated: {
|
|
4007
|
+
prompt_tokens: number;
|
|
4008
|
+
completion_tokens: number;
|
|
4009
|
+
total_tokens: number;
|
|
4010
|
+
};
|
|
4011
|
+
};
|
|
4012
|
+
fsRef?: ((In: {
|
|
4013
|
+
appSlug: string;
|
|
4014
|
+
ownerHandle?: string | undefined;
|
|
4015
|
+
userSlug?: string | undefined;
|
|
4016
|
+
mode: "dev" | "production";
|
|
4017
|
+
fsId: string;
|
|
4018
|
+
}) => import("arktype").Out<{
|
|
4019
|
+
appSlug: string;
|
|
4020
|
+
mode: "dev" | "production";
|
|
4021
|
+
fsId: string;
|
|
4022
|
+
ownerHandle: string;
|
|
4023
|
+
}>) | undefined;
|
|
4024
|
+
touchedPaths?: string[] | undefined;
|
|
4025
|
+
settled?: {
|
|
4026
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4027
|
+
entryTouched: boolean;
|
|
4028
|
+
touchedCount: number;
|
|
4029
|
+
applied: boolean;
|
|
4030
|
+
} | undefined;
|
|
4031
|
+
} | {
|
|
4032
|
+
blockId: string;
|
|
4033
|
+
streamId: string;
|
|
4034
|
+
seq: number;
|
|
4035
|
+
blockNr: number;
|
|
4036
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4037
|
+
type: "block.stats";
|
|
4038
|
+
stats: {
|
|
4039
|
+
toplevel: {
|
|
4040
|
+
lines: number;
|
|
4041
|
+
bytes: number;
|
|
4042
|
+
cnt?: number | undefined;
|
|
4043
|
+
};
|
|
4044
|
+
code: {
|
|
4045
|
+
lines: number;
|
|
4046
|
+
bytes: number;
|
|
4047
|
+
cnt?: number | undefined;
|
|
4048
|
+
};
|
|
4049
|
+
image: {
|
|
4050
|
+
lines: number;
|
|
4051
|
+
bytes: number;
|
|
4052
|
+
cnt?: number | undefined;
|
|
4053
|
+
};
|
|
4054
|
+
total: {
|
|
4055
|
+
lines: number;
|
|
4056
|
+
bytes: number;
|
|
4057
|
+
cnt?: number | undefined;
|
|
4058
|
+
};
|
|
4059
|
+
};
|
|
4060
|
+
usage: {
|
|
4061
|
+
prompt_tokens: number;
|
|
4062
|
+
completion_tokens: number;
|
|
4063
|
+
total_tokens: number;
|
|
4064
|
+
};
|
|
4065
|
+
} | {
|
|
4066
|
+
blockId: string;
|
|
4067
|
+
streamId: string;
|
|
4068
|
+
seq: number;
|
|
4069
|
+
blockNr: number;
|
|
4070
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4071
|
+
stats: {
|
|
4072
|
+
lines: number;
|
|
4073
|
+
bytes: number;
|
|
4074
|
+
cnt?: number | undefined;
|
|
4075
|
+
};
|
|
4076
|
+
type: "block.image";
|
|
4077
|
+
sectionId: string;
|
|
4078
|
+
url?: string | undefined;
|
|
4079
|
+
uploadId?: string | undefined;
|
|
4080
|
+
cid?: string | undefined;
|
|
4081
|
+
mimeType?: string | undefined;
|
|
4082
|
+
size?: number | undefined;
|
|
4083
|
+
docWritten?: boolean | undefined;
|
|
4084
|
+
} | {
|
|
4085
|
+
blockId: string;
|
|
4086
|
+
streamId: string;
|
|
4087
|
+
seq: number;
|
|
4088
|
+
blockNr: number;
|
|
4089
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4090
|
+
type: "block.code.begin";
|
|
4091
|
+
sectionId: string;
|
|
4092
|
+
lang: string;
|
|
4093
|
+
path?: string | undefined;
|
|
4094
|
+
} | {
|
|
4095
|
+
blockId: string;
|
|
4096
|
+
streamId: string;
|
|
4097
|
+
seq: number;
|
|
4098
|
+
blockNr: number;
|
|
4099
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4100
|
+
lineNr: number;
|
|
4101
|
+
line: string;
|
|
4102
|
+
type: "block.code.line";
|
|
4103
|
+
sectionId: string;
|
|
4104
|
+
lang: string;
|
|
4105
|
+
path?: string | undefined;
|
|
4106
|
+
} | {
|
|
4107
|
+
blockId: string;
|
|
4108
|
+
streamId: string;
|
|
4109
|
+
seq: number;
|
|
4110
|
+
blockNr: number;
|
|
4111
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4112
|
+
stats: {
|
|
4113
|
+
lines: number;
|
|
4114
|
+
bytes: number;
|
|
4115
|
+
cnt?: number | undefined;
|
|
4116
|
+
};
|
|
4117
|
+
type: "block.code.end";
|
|
4118
|
+
sectionId: string;
|
|
4119
|
+
lang: string;
|
|
4120
|
+
path?: string | undefined;
|
|
4121
|
+
} | {
|
|
4122
|
+
blockId: string;
|
|
4123
|
+
streamId: string;
|
|
4124
|
+
seq: number;
|
|
4125
|
+
blockNr: number;
|
|
4126
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4127
|
+
type: "block.code.truncated";
|
|
4128
|
+
sectionId: string;
|
|
4129
|
+
lang: string;
|
|
4130
|
+
path?: string | undefined;
|
|
4131
|
+
reason: string;
|
|
4132
|
+
kind: string;
|
|
4133
|
+
truncatedAtLine: number;
|
|
4134
|
+
errorCount: number;
|
|
4135
|
+
} | {
|
|
4136
|
+
blockId: string;
|
|
3932
4137
|
streamId: string;
|
|
3933
|
-
chatId: string;
|
|
3934
4138
|
seq: number;
|
|
4139
|
+
blockNr: number;
|
|
3935
4140
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
}
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
dbName: string;
|
|
3962
|
-
key: string;
|
|
3963
|
-
item: unknown;
|
|
3964
|
-
}[];
|
|
3965
|
-
completedAt: string;
|
|
3966
|
-
errorCode?: string | undefined;
|
|
4141
|
+
type: "block.toplevel.begin";
|
|
4142
|
+
sectionId: string;
|
|
4143
|
+
} | {
|
|
4144
|
+
blockId: string;
|
|
4145
|
+
streamId: string;
|
|
4146
|
+
seq: number;
|
|
4147
|
+
blockNr: number;
|
|
4148
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4149
|
+
lineNr: number;
|
|
4150
|
+
line: string;
|
|
4151
|
+
type: "block.toplevel.line";
|
|
4152
|
+
sectionId: string;
|
|
4153
|
+
} | {
|
|
4154
|
+
blockId: string;
|
|
4155
|
+
streamId: string;
|
|
4156
|
+
seq: number;
|
|
4157
|
+
blockNr: number;
|
|
4158
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4159
|
+
stats: {
|
|
4160
|
+
lines: number;
|
|
4161
|
+
bytes: number;
|
|
4162
|
+
cnt?: number | undefined;
|
|
4163
|
+
};
|
|
4164
|
+
type: "block.toplevel.end";
|
|
4165
|
+
sectionId: string;
|
|
3967
4166
|
} | {
|
|
3968
4167
|
streamId: string;
|
|
3969
4168
|
chatId: string;
|
|
@@ -4329,213 +4528,49 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4329
4528
|
} | {
|
|
4330
4529
|
streamId: string;
|
|
4331
4530
|
chatId: string;
|
|
4332
|
-
seq: number;
|
|
4333
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4334
|
-
type: "prompt.notice";
|
|
4335
|
-
kind: "edits-incomplete";
|
|
4336
|
-
path?: string | undefined;
|
|
4337
|
-
} | {
|
|
4338
|
-
blockId: string;
|
|
4339
|
-
streamId: string;
|
|
4340
|
-
seq: number;
|
|
4341
|
-
blockNr: number;
|
|
4342
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4343
|
-
type: "block.begin";
|
|
4344
|
-
} | {
|
|
4345
|
-
blockId: string;
|
|
4346
|
-
streamId: string;
|
|
4347
|
-
seq: number;
|
|
4348
|
-
blockNr: number;
|
|
4349
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4350
|
-
type: "block.end";
|
|
4351
|
-
stats: {
|
|
4352
|
-
toplevel: {
|
|
4353
|
-
lines: number;
|
|
4354
|
-
bytes: number;
|
|
4355
|
-
cnt?: number | undefined;
|
|
4356
|
-
};
|
|
4357
|
-
code: {
|
|
4358
|
-
lines: number;
|
|
4359
|
-
bytes: number;
|
|
4360
|
-
cnt?: number | undefined;
|
|
4361
|
-
};
|
|
4362
|
-
image: {
|
|
4363
|
-
lines: number;
|
|
4364
|
-
bytes: number;
|
|
4365
|
-
cnt?: number | undefined;
|
|
4366
|
-
};
|
|
4367
|
-
total: {
|
|
4368
|
-
lines: number;
|
|
4369
|
-
bytes: number;
|
|
4370
|
-
cnt?: number | undefined;
|
|
4371
|
-
};
|
|
4372
|
-
};
|
|
4373
|
-
usage: {
|
|
4374
|
-
given: {
|
|
4375
|
-
prompt_tokens: number;
|
|
4376
|
-
completion_tokens: number;
|
|
4377
|
-
total_tokens: number;
|
|
4378
|
-
}[];
|
|
4379
|
-
calculated: {
|
|
4380
|
-
prompt_tokens: number;
|
|
4381
|
-
completion_tokens: number;
|
|
4382
|
-
total_tokens: number;
|
|
4383
|
-
};
|
|
4384
|
-
};
|
|
4385
|
-
fsRef?: ((In: {
|
|
4386
|
-
appSlug: string;
|
|
4387
|
-
ownerHandle?: string | undefined;
|
|
4388
|
-
userSlug?: string | undefined;
|
|
4389
|
-
mode: "dev" | "production";
|
|
4390
|
-
fsId: string;
|
|
4391
|
-
}) => import("arktype").Out<{
|
|
4392
|
-
appSlug: string;
|
|
4393
|
-
mode: "dev" | "production";
|
|
4394
|
-
fsId: string;
|
|
4395
|
-
ownerHandle: string;
|
|
4396
|
-
}>) | undefined;
|
|
4397
|
-
touchedPaths?: string[] | undefined;
|
|
4398
|
-
settled?: {
|
|
4399
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4400
|
-
entryTouched: boolean;
|
|
4401
|
-
touchedCount: number;
|
|
4402
|
-
applied: boolean;
|
|
4403
|
-
} | undefined;
|
|
4404
|
-
} | {
|
|
4405
|
-
blockId: string;
|
|
4406
|
-
streamId: string;
|
|
4407
|
-
seq: number;
|
|
4408
|
-
blockNr: number;
|
|
4409
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4410
|
-
type: "block.stats";
|
|
4411
|
-
stats: {
|
|
4412
|
-
toplevel: {
|
|
4413
|
-
lines: number;
|
|
4414
|
-
bytes: number;
|
|
4415
|
-
cnt?: number | undefined;
|
|
4416
|
-
};
|
|
4417
|
-
code: {
|
|
4418
|
-
lines: number;
|
|
4419
|
-
bytes: number;
|
|
4420
|
-
cnt?: number | undefined;
|
|
4421
|
-
};
|
|
4422
|
-
image: {
|
|
4423
|
-
lines: number;
|
|
4424
|
-
bytes: number;
|
|
4425
|
-
cnt?: number | undefined;
|
|
4426
|
-
};
|
|
4427
|
-
total: {
|
|
4428
|
-
lines: number;
|
|
4429
|
-
bytes: number;
|
|
4430
|
-
cnt?: number | undefined;
|
|
4431
|
-
};
|
|
4432
|
-
};
|
|
4433
|
-
usage: {
|
|
4434
|
-
prompt_tokens: number;
|
|
4435
|
-
completion_tokens: number;
|
|
4436
|
-
total_tokens: number;
|
|
4437
|
-
};
|
|
4438
|
-
} | {
|
|
4439
|
-
blockId: string;
|
|
4440
|
-
streamId: string;
|
|
4441
|
-
seq: number;
|
|
4442
|
-
blockNr: number;
|
|
4443
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4444
|
-
stats: {
|
|
4445
|
-
lines: number;
|
|
4446
|
-
bytes: number;
|
|
4447
|
-
cnt?: number | undefined;
|
|
4448
|
-
};
|
|
4449
|
-
type: "block.image";
|
|
4450
|
-
sectionId: string;
|
|
4451
|
-
url?: string | undefined;
|
|
4452
|
-
uploadId?: string | undefined;
|
|
4453
|
-
cid?: string | undefined;
|
|
4454
|
-
mimeType?: string | undefined;
|
|
4455
|
-
size?: number | undefined;
|
|
4456
|
-
docWritten?: boolean | undefined;
|
|
4457
|
-
} | {
|
|
4458
|
-
blockId: string;
|
|
4459
|
-
streamId: string;
|
|
4460
|
-
seq: number;
|
|
4461
|
-
blockNr: number;
|
|
4462
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4463
|
-
type: "block.code.begin";
|
|
4464
|
-
sectionId: string;
|
|
4465
|
-
lang: string;
|
|
4466
|
-
path?: string | undefined;
|
|
4467
|
-
} | {
|
|
4468
|
-
blockId: string;
|
|
4469
|
-
streamId: string;
|
|
4470
|
-
seq: number;
|
|
4471
|
-
blockNr: number;
|
|
4472
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4473
|
-
lineNr: number;
|
|
4474
|
-
line: string;
|
|
4475
|
-
type: "block.code.line";
|
|
4476
|
-
sectionId: string;
|
|
4477
|
-
lang: string;
|
|
4478
|
-
path?: string | undefined;
|
|
4479
|
-
} | {
|
|
4480
|
-
blockId: string;
|
|
4481
|
-
streamId: string;
|
|
4482
|
-
seq: number;
|
|
4483
|
-
blockNr: number;
|
|
4484
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4485
|
-
stats: {
|
|
4486
|
-
lines: number;
|
|
4487
|
-
bytes: number;
|
|
4488
|
-
cnt?: number | undefined;
|
|
4489
|
-
};
|
|
4490
|
-
type: "block.code.end";
|
|
4491
|
-
sectionId: string;
|
|
4492
|
-
lang: string;
|
|
4493
|
-
path?: string | undefined;
|
|
4494
|
-
} | {
|
|
4495
|
-
blockId: string;
|
|
4496
|
-
streamId: string;
|
|
4497
|
-
seq: number;
|
|
4498
|
-
blockNr: number;
|
|
4499
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4500
|
-
type: "block.code.truncated";
|
|
4501
|
-
sectionId: string;
|
|
4502
|
-
lang: string;
|
|
4503
|
-
path?: string | undefined;
|
|
4504
|
-
reason: string;
|
|
4505
|
-
kind: string;
|
|
4506
|
-
truncatedAtLine: number;
|
|
4507
|
-
errorCount: number;
|
|
4508
|
-
} | {
|
|
4509
|
-
blockId: string;
|
|
4510
|
-
streamId: string;
|
|
4511
|
-
seq: number;
|
|
4512
|
-
blockNr: number;
|
|
4513
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4514
|
-
type: "block.toplevel.begin";
|
|
4515
|
-
sectionId: string;
|
|
4516
|
-
} | {
|
|
4517
|
-
blockId: string;
|
|
4518
|
-
streamId: string;
|
|
4519
|
-
seq: number;
|
|
4520
|
-
blockNr: number;
|
|
4521
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4522
|
-
lineNr: number;
|
|
4523
|
-
line: string;
|
|
4524
|
-
type: "block.toplevel.line";
|
|
4525
|
-
sectionId: string;
|
|
4531
|
+
seq: number;
|
|
4532
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4533
|
+
type: "prompt.notice";
|
|
4534
|
+
kind: "edits-incomplete";
|
|
4535
|
+
path?: string | undefined;
|
|
4526
4536
|
} | {
|
|
4527
|
-
|
|
4537
|
+
type: "prompt.research";
|
|
4538
|
+
version: 1;
|
|
4528
4539
|
streamId: string;
|
|
4540
|
+
chatId: string;
|
|
4529
4541
|
seq: number;
|
|
4530
|
-
blockNr: number;
|
|
4531
4542
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4543
|
+
researchId: string;
|
|
4544
|
+
status: "complete" | "failed" | "partial";
|
|
4545
|
+
brief: string;
|
|
4546
|
+
sources: {
|
|
4547
|
+
url: string;
|
|
4548
|
+
finalUrl: string | null;
|
|
4549
|
+
contentType: string | null;
|
|
4550
|
+
httpStatus: number | null;
|
|
4551
|
+
backendFetchable: boolean;
|
|
4552
|
+
fetched: boolean;
|
|
4553
|
+
errorCode?: string | undefined;
|
|
4554
|
+
}[];
|
|
4555
|
+
api: {
|
|
4556
|
+
method: string;
|
|
4557
|
+
path: string;
|
|
4558
|
+
description: string;
|
|
4559
|
+
fields: string[];
|
|
4560
|
+
}[];
|
|
4561
|
+
excerpts: {
|
|
4562
|
+
sourceUrl: string;
|
|
4563
|
+
text: string;
|
|
4564
|
+
locator?: string | undefined;
|
|
4565
|
+
}[];
|
|
4566
|
+
seedRows: {
|
|
4567
|
+
sourceUrl: string;
|
|
4568
|
+
dbName: string;
|
|
4569
|
+
key: string;
|
|
4570
|
+
item: unknown;
|
|
4571
|
+
}[];
|
|
4572
|
+
completedAt: string;
|
|
4573
|
+
errorCode?: string | undefined;
|
|
4539
4574
|
})[];
|
|
4540
4575
|
}[];
|
|
4541
4576
|
usage?: {
|
|
@@ -4560,43 +4595,207 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4560
4595
|
sections: {
|
|
4561
4596
|
blockSeq: number;
|
|
4562
4597
|
blocks: ({
|
|
4563
|
-
|
|
4564
|
-
version: 1;
|
|
4598
|
+
blockId: string;
|
|
4565
4599
|
streamId: string;
|
|
4566
|
-
chatId: string;
|
|
4567
4600
|
seq: number;
|
|
4601
|
+
blockNr: number;
|
|
4568
4602
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4603
|
+
type: "block.begin";
|
|
4604
|
+
} | {
|
|
4605
|
+
blockId: string;
|
|
4606
|
+
streamId: string;
|
|
4607
|
+
seq: number;
|
|
4608
|
+
blockNr: number;
|
|
4609
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4610
|
+
type: "block.end";
|
|
4611
|
+
stats: {
|
|
4612
|
+
toplevel: {
|
|
4613
|
+
lines: number;
|
|
4614
|
+
bytes: number;
|
|
4615
|
+
cnt?: number | undefined;
|
|
4616
|
+
};
|
|
4617
|
+
code: {
|
|
4618
|
+
lines: number;
|
|
4619
|
+
bytes: number;
|
|
4620
|
+
cnt?: number | undefined;
|
|
4621
|
+
};
|
|
4622
|
+
image: {
|
|
4623
|
+
lines: number;
|
|
4624
|
+
bytes: number;
|
|
4625
|
+
cnt?: number | undefined;
|
|
4626
|
+
};
|
|
4627
|
+
total: {
|
|
4628
|
+
lines: number;
|
|
4629
|
+
bytes: number;
|
|
4630
|
+
cnt?: number | undefined;
|
|
4631
|
+
};
|
|
4632
|
+
};
|
|
4633
|
+
usage: {
|
|
4634
|
+
given: {
|
|
4635
|
+
prompt_tokens: number;
|
|
4636
|
+
completion_tokens: number;
|
|
4637
|
+
total_tokens: number;
|
|
4638
|
+
}[];
|
|
4639
|
+
calculated: {
|
|
4640
|
+
prompt_tokens: number;
|
|
4641
|
+
completion_tokens: number;
|
|
4642
|
+
total_tokens: number;
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
fsRef?: ((In: {
|
|
4646
|
+
appSlug: string;
|
|
4647
|
+
ownerHandle?: string | undefined;
|
|
4648
|
+
userSlug?: string | undefined;
|
|
4649
|
+
mode: "dev" | "production";
|
|
4650
|
+
fsId: string;
|
|
4651
|
+
}) => import("arktype").Out<{
|
|
4652
|
+
appSlug: string;
|
|
4653
|
+
mode: "dev" | "production";
|
|
4654
|
+
fsId: string;
|
|
4655
|
+
ownerHandle: string;
|
|
4656
|
+
}>) | undefined;
|
|
4657
|
+
touchedPaths?: string[] | undefined;
|
|
4658
|
+
settled?: {
|
|
4659
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4660
|
+
entryTouched: boolean;
|
|
4661
|
+
touchedCount: number;
|
|
4662
|
+
applied: boolean;
|
|
4663
|
+
} | undefined;
|
|
4664
|
+
} | {
|
|
4665
|
+
blockId: string;
|
|
4666
|
+
streamId: string;
|
|
4667
|
+
seq: number;
|
|
4668
|
+
blockNr: number;
|
|
4669
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4670
|
+
type: "block.stats";
|
|
4671
|
+
stats: {
|
|
4672
|
+
toplevel: {
|
|
4673
|
+
lines: number;
|
|
4674
|
+
bytes: number;
|
|
4675
|
+
cnt?: number | undefined;
|
|
4676
|
+
};
|
|
4677
|
+
code: {
|
|
4678
|
+
lines: number;
|
|
4679
|
+
bytes: number;
|
|
4680
|
+
cnt?: number | undefined;
|
|
4681
|
+
};
|
|
4682
|
+
image: {
|
|
4683
|
+
lines: number;
|
|
4684
|
+
bytes: number;
|
|
4685
|
+
cnt?: number | undefined;
|
|
4686
|
+
};
|
|
4687
|
+
total: {
|
|
4688
|
+
lines: number;
|
|
4689
|
+
bytes: number;
|
|
4690
|
+
cnt?: number | undefined;
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4693
|
+
usage: {
|
|
4694
|
+
prompt_tokens: number;
|
|
4695
|
+
completion_tokens: number;
|
|
4696
|
+
total_tokens: number;
|
|
4697
|
+
};
|
|
4698
|
+
} | {
|
|
4699
|
+
blockId: string;
|
|
4700
|
+
streamId: string;
|
|
4701
|
+
seq: number;
|
|
4702
|
+
blockNr: number;
|
|
4703
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4704
|
+
stats: {
|
|
4705
|
+
lines: number;
|
|
4706
|
+
bytes: number;
|
|
4707
|
+
cnt?: number | undefined;
|
|
4708
|
+
};
|
|
4709
|
+
type: "block.image";
|
|
4710
|
+
sectionId: string;
|
|
4711
|
+
url?: string | undefined;
|
|
4712
|
+
uploadId?: string | undefined;
|
|
4713
|
+
cid?: string | undefined;
|
|
4714
|
+
mimeType?: string | undefined;
|
|
4715
|
+
size?: number | undefined;
|
|
4716
|
+
docWritten?: boolean | undefined;
|
|
4717
|
+
} | {
|
|
4718
|
+
blockId: string;
|
|
4719
|
+
streamId: string;
|
|
4720
|
+
seq: number;
|
|
4721
|
+
blockNr: number;
|
|
4722
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4723
|
+
type: "block.code.begin";
|
|
4724
|
+
sectionId: string;
|
|
4725
|
+
lang: string;
|
|
4726
|
+
path?: string | undefined;
|
|
4727
|
+
} | {
|
|
4728
|
+
blockId: string;
|
|
4729
|
+
streamId: string;
|
|
4730
|
+
seq: number;
|
|
4731
|
+
blockNr: number;
|
|
4732
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4733
|
+
lineNr: number;
|
|
4734
|
+
line: string;
|
|
4735
|
+
type: "block.code.line";
|
|
4736
|
+
sectionId: string;
|
|
4737
|
+
lang: string;
|
|
4738
|
+
path?: string | undefined;
|
|
4739
|
+
} | {
|
|
4740
|
+
blockId: string;
|
|
4741
|
+
streamId: string;
|
|
4742
|
+
seq: number;
|
|
4743
|
+
blockNr: number;
|
|
4744
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4745
|
+
stats: {
|
|
4746
|
+
lines: number;
|
|
4747
|
+
bytes: number;
|
|
4748
|
+
cnt?: number | undefined;
|
|
4749
|
+
};
|
|
4750
|
+
type: "block.code.end";
|
|
4751
|
+
sectionId: string;
|
|
4752
|
+
lang: string;
|
|
4753
|
+
path?: string | undefined;
|
|
4754
|
+
} | {
|
|
4755
|
+
blockId: string;
|
|
4756
|
+
streamId: string;
|
|
4757
|
+
seq: number;
|
|
4758
|
+
blockNr: number;
|
|
4759
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4760
|
+
type: "block.code.truncated";
|
|
4761
|
+
sectionId: string;
|
|
4762
|
+
lang: string;
|
|
4763
|
+
path?: string | undefined;
|
|
4764
|
+
reason: string;
|
|
4765
|
+
kind: string;
|
|
4766
|
+
truncatedAtLine: number;
|
|
4767
|
+
errorCount: number;
|
|
4768
|
+
} | {
|
|
4769
|
+
blockId: string;
|
|
4770
|
+
streamId: string;
|
|
4771
|
+
seq: number;
|
|
4772
|
+
blockNr: number;
|
|
4773
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4774
|
+
type: "block.toplevel.begin";
|
|
4775
|
+
sectionId: string;
|
|
4776
|
+
} | {
|
|
4777
|
+
blockId: string;
|
|
4778
|
+
streamId: string;
|
|
4779
|
+
seq: number;
|
|
4780
|
+
blockNr: number;
|
|
4781
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4782
|
+
lineNr: number;
|
|
4783
|
+
line: string;
|
|
4784
|
+
type: "block.toplevel.line";
|
|
4785
|
+
sectionId: string;
|
|
4786
|
+
} | {
|
|
4787
|
+
blockId: string;
|
|
4788
|
+
streamId: string;
|
|
4789
|
+
seq: number;
|
|
4790
|
+
blockNr: number;
|
|
4791
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4792
|
+
stats: {
|
|
4793
|
+
lines: number;
|
|
4794
|
+
bytes: number;
|
|
4795
|
+
cnt?: number | undefined;
|
|
4796
|
+
};
|
|
4797
|
+
type: "block.toplevel.end";
|
|
4798
|
+
sectionId: string;
|
|
4600
4799
|
} | {
|
|
4601
4800
|
streamId: string;
|
|
4602
4801
|
chatId: string;
|
|
@@ -4968,207 +5167,43 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4968
5167
|
kind: "edits-incomplete";
|
|
4969
5168
|
path?: string | undefined;
|
|
4970
5169
|
} | {
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
seq: number;
|
|
4974
|
-
blockNr: number;
|
|
4975
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4976
|
-
type: "block.begin";
|
|
4977
|
-
} | {
|
|
4978
|
-
blockId: string;
|
|
4979
|
-
streamId: string;
|
|
4980
|
-
seq: number;
|
|
4981
|
-
blockNr: number;
|
|
4982
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4983
|
-
type: "block.end";
|
|
4984
|
-
stats: {
|
|
4985
|
-
toplevel: {
|
|
4986
|
-
lines: number;
|
|
4987
|
-
bytes: number;
|
|
4988
|
-
cnt?: number | undefined;
|
|
4989
|
-
};
|
|
4990
|
-
code: {
|
|
4991
|
-
lines: number;
|
|
4992
|
-
bytes: number;
|
|
4993
|
-
cnt?: number | undefined;
|
|
4994
|
-
};
|
|
4995
|
-
image: {
|
|
4996
|
-
lines: number;
|
|
4997
|
-
bytes: number;
|
|
4998
|
-
cnt?: number | undefined;
|
|
4999
|
-
};
|
|
5000
|
-
total: {
|
|
5001
|
-
lines: number;
|
|
5002
|
-
bytes: number;
|
|
5003
|
-
cnt?: number | undefined;
|
|
5004
|
-
};
|
|
5005
|
-
};
|
|
5006
|
-
usage: {
|
|
5007
|
-
given: {
|
|
5008
|
-
prompt_tokens: number;
|
|
5009
|
-
completion_tokens: number;
|
|
5010
|
-
total_tokens: number;
|
|
5011
|
-
}[];
|
|
5012
|
-
calculated: {
|
|
5013
|
-
prompt_tokens: number;
|
|
5014
|
-
completion_tokens: number;
|
|
5015
|
-
total_tokens: number;
|
|
5016
|
-
};
|
|
5017
|
-
};
|
|
5018
|
-
fsRef?: ((In: {
|
|
5019
|
-
appSlug: string;
|
|
5020
|
-
ownerHandle?: string | undefined;
|
|
5021
|
-
userSlug?: string | undefined;
|
|
5022
|
-
mode: "dev" | "production";
|
|
5023
|
-
fsId: string;
|
|
5024
|
-
}) => import("arktype").Out<{
|
|
5025
|
-
appSlug: string;
|
|
5026
|
-
mode: "dev" | "production";
|
|
5027
|
-
fsId: string;
|
|
5028
|
-
ownerHandle: string;
|
|
5029
|
-
}>) | undefined;
|
|
5030
|
-
touchedPaths?: string[] | undefined;
|
|
5031
|
-
settled?: {
|
|
5032
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
5033
|
-
entryTouched: boolean;
|
|
5034
|
-
touchedCount: number;
|
|
5035
|
-
applied: boolean;
|
|
5036
|
-
} | undefined;
|
|
5037
|
-
} | {
|
|
5038
|
-
blockId: string;
|
|
5039
|
-
streamId: string;
|
|
5040
|
-
seq: number;
|
|
5041
|
-
blockNr: number;
|
|
5042
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5043
|
-
type: "block.stats";
|
|
5044
|
-
stats: {
|
|
5045
|
-
toplevel: {
|
|
5046
|
-
lines: number;
|
|
5047
|
-
bytes: number;
|
|
5048
|
-
cnt?: number | undefined;
|
|
5049
|
-
};
|
|
5050
|
-
code: {
|
|
5051
|
-
lines: number;
|
|
5052
|
-
bytes: number;
|
|
5053
|
-
cnt?: number | undefined;
|
|
5054
|
-
};
|
|
5055
|
-
image: {
|
|
5056
|
-
lines: number;
|
|
5057
|
-
bytes: number;
|
|
5058
|
-
cnt?: number | undefined;
|
|
5059
|
-
};
|
|
5060
|
-
total: {
|
|
5061
|
-
lines: number;
|
|
5062
|
-
bytes: number;
|
|
5063
|
-
cnt?: number | undefined;
|
|
5064
|
-
};
|
|
5065
|
-
};
|
|
5066
|
-
usage: {
|
|
5067
|
-
prompt_tokens: number;
|
|
5068
|
-
completion_tokens: number;
|
|
5069
|
-
total_tokens: number;
|
|
5070
|
-
};
|
|
5071
|
-
} | {
|
|
5072
|
-
blockId: string;
|
|
5073
|
-
streamId: string;
|
|
5074
|
-
seq: number;
|
|
5075
|
-
blockNr: number;
|
|
5076
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5077
|
-
stats: {
|
|
5078
|
-
lines: number;
|
|
5079
|
-
bytes: number;
|
|
5080
|
-
cnt?: number | undefined;
|
|
5081
|
-
};
|
|
5082
|
-
type: "block.image";
|
|
5083
|
-
sectionId: string;
|
|
5084
|
-
url?: string | undefined;
|
|
5085
|
-
uploadId?: string | undefined;
|
|
5086
|
-
cid?: string | undefined;
|
|
5087
|
-
mimeType?: string | undefined;
|
|
5088
|
-
size?: number | undefined;
|
|
5089
|
-
docWritten?: boolean | undefined;
|
|
5090
|
-
} | {
|
|
5091
|
-
blockId: string;
|
|
5092
|
-
streamId: string;
|
|
5093
|
-
seq: number;
|
|
5094
|
-
blockNr: number;
|
|
5095
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5096
|
-
type: "block.code.begin";
|
|
5097
|
-
sectionId: string;
|
|
5098
|
-
lang: string;
|
|
5099
|
-
path?: string | undefined;
|
|
5100
|
-
} | {
|
|
5101
|
-
blockId: string;
|
|
5102
|
-
streamId: string;
|
|
5103
|
-
seq: number;
|
|
5104
|
-
blockNr: number;
|
|
5105
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5106
|
-
lineNr: number;
|
|
5107
|
-
line: string;
|
|
5108
|
-
type: "block.code.line";
|
|
5109
|
-
sectionId: string;
|
|
5110
|
-
lang: string;
|
|
5111
|
-
path?: string | undefined;
|
|
5112
|
-
} | {
|
|
5113
|
-
blockId: string;
|
|
5114
|
-
streamId: string;
|
|
5115
|
-
seq: number;
|
|
5116
|
-
blockNr: number;
|
|
5117
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5118
|
-
stats: {
|
|
5119
|
-
lines: number;
|
|
5120
|
-
bytes: number;
|
|
5121
|
-
cnt?: number | undefined;
|
|
5122
|
-
};
|
|
5123
|
-
type: "block.code.end";
|
|
5124
|
-
sectionId: string;
|
|
5125
|
-
lang: string;
|
|
5126
|
-
path?: string | undefined;
|
|
5127
|
-
} | {
|
|
5128
|
-
blockId: string;
|
|
5129
|
-
streamId: string;
|
|
5130
|
-
seq: number;
|
|
5131
|
-
blockNr: number;
|
|
5132
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5133
|
-
type: "block.code.truncated";
|
|
5134
|
-
sectionId: string;
|
|
5135
|
-
lang: string;
|
|
5136
|
-
path?: string | undefined;
|
|
5137
|
-
reason: string;
|
|
5138
|
-
kind: string;
|
|
5139
|
-
truncatedAtLine: number;
|
|
5140
|
-
errorCount: number;
|
|
5141
|
-
} | {
|
|
5142
|
-
blockId: string;
|
|
5143
|
-
streamId: string;
|
|
5144
|
-
seq: number;
|
|
5145
|
-
blockNr: number;
|
|
5146
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5147
|
-
type: "block.toplevel.begin";
|
|
5148
|
-
sectionId: string;
|
|
5149
|
-
} | {
|
|
5150
|
-
blockId: string;
|
|
5151
|
-
streamId: string;
|
|
5152
|
-
seq: number;
|
|
5153
|
-
blockNr: number;
|
|
5154
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5155
|
-
lineNr: number;
|
|
5156
|
-
line: string;
|
|
5157
|
-
type: "block.toplevel.line";
|
|
5158
|
-
sectionId: string;
|
|
5159
|
-
} | {
|
|
5160
|
-
blockId: string;
|
|
5170
|
+
type: "prompt.research";
|
|
5171
|
+
version: 1;
|
|
5161
5172
|
streamId: string;
|
|
5173
|
+
chatId: string;
|
|
5162
5174
|
seq: number;
|
|
5163
|
-
blockNr: number;
|
|
5164
5175
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5176
|
+
researchId: string;
|
|
5177
|
+
status: "complete" | "failed" | "partial";
|
|
5178
|
+
brief: string;
|
|
5179
|
+
sources: {
|
|
5180
|
+
url: string;
|
|
5181
|
+
finalUrl: string | null;
|
|
5182
|
+
contentType: string | null;
|
|
5183
|
+
httpStatus: number | null;
|
|
5184
|
+
backendFetchable: boolean;
|
|
5185
|
+
fetched: boolean;
|
|
5186
|
+
errorCode?: string | undefined;
|
|
5187
|
+
}[];
|
|
5188
|
+
api: {
|
|
5189
|
+
method: string;
|
|
5190
|
+
path: string;
|
|
5191
|
+
description: string;
|
|
5192
|
+
fields: string[];
|
|
5193
|
+
}[];
|
|
5194
|
+
excerpts: {
|
|
5195
|
+
sourceUrl: string;
|
|
5196
|
+
text: string;
|
|
5197
|
+
locator?: string | undefined;
|
|
5198
|
+
}[];
|
|
5199
|
+
seedRows: {
|
|
5200
|
+
sourceUrl: string;
|
|
5201
|
+
dbName: string;
|
|
5202
|
+
key: string;
|
|
5203
|
+
item: unknown;
|
|
5204
|
+
}[];
|
|
5205
|
+
completedAt: string;
|
|
5206
|
+
errorCode?: string | undefined;
|
|
5172
5207
|
})[];
|
|
5173
5208
|
}[];
|
|
5174
5209
|
usage?: {
|
|
@@ -5288,9 +5323,9 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
|
|
|
5288
5323
|
name: string;
|
|
5289
5324
|
description: string;
|
|
5290
5325
|
featured?: boolean | undefined;
|
|
5291
|
-
preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5292
|
-
fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5293
|
-
supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5326
|
+
preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5327
|
+
fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5328
|
+
supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5294
5329
|
imageInput?: boolean | undefined;
|
|
5295
5330
|
}[];
|
|
5296
5331
|
}, {}>;
|