@icebreakers/monorepo-templates 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/README.zh-CN.md +6 -0
- package/assets/.github/workflows/ci.yml +11 -0
- package/assets/.github/workflows/release-intent-check.yml +57 -0
- package/assets/CONTRIBUTING.md +3 -1
- package/assets/package.json +54 -11
- package/assets/pnpm-workspace.yaml +13 -0
- package/assets/repoctl.config.ts +6 -1
- package/assets/turbo.json +13 -0
- package/package.json +4 -4
- package/templates/client/eslint.config.js +1 -1
- package/templates/client/package.json +10 -10
- package/templates/client/worker-configuration.d.ts +301 -16
- package/templates/server/package.json +3 -3
- package/templates/server/worker-configuration.d.ts +301 -16
- package/templates/vitepress/package.json +3 -3
- package/templates/vitepress/zh/learn/tools/turborepo.md +10 -10
- package/templates/vue-lib/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Generated by Wrangler by running `wrangler types` (hash: 047568eb9ed6843cb5540fa33180da01)
|
|
3
|
-
// Runtime types generated with workerd@1.
|
|
3
|
+
// Runtime types generated with workerd@1.20260831.1 2025-10-16 nodejs_compat
|
|
4
4
|
interface __BaseEnv_Env {
|
|
5
5
|
}
|
|
6
6
|
declare namespace Cloudflare {
|
|
@@ -554,7 +554,7 @@ interface DurableObjectState<Props = unknown> {
|
|
|
554
554
|
setHibernatableWebSocketEventTimeout(timeoutMs?: number): void;
|
|
555
555
|
getHibernatableWebSocketEventTimeout(): number | null;
|
|
556
556
|
getTags(ws: WebSocket): string[];
|
|
557
|
-
abort(reason?: string): void;
|
|
557
|
+
abort(reason?: string, options?: DurableObjectAbortOptions): void;
|
|
558
558
|
}
|
|
559
559
|
interface DurableObjectTransaction {
|
|
560
560
|
get<T = unknown>(key: string, options?: DurableObjectGetOptions): Promise<T | undefined>;
|
|
@@ -590,6 +590,9 @@ interface DurableObjectStorage {
|
|
|
590
590
|
getBookmarkForTime(timestamp: number | Date): Promise<string>;
|
|
591
591
|
onNextSessionRestoreBookmark(bookmark: string): Promise<string>;
|
|
592
592
|
}
|
|
593
|
+
interface DurableObjectAbortOptions {
|
|
594
|
+
retryAlarm?: boolean;
|
|
595
|
+
}
|
|
593
596
|
interface DurableObjectListOptions {
|
|
594
597
|
start?: string;
|
|
595
598
|
startAfter?: string;
|
|
@@ -1272,10 +1275,13 @@ interface CryptoKeyArbitraryKeyAlgorithm {
|
|
|
1272
1275
|
length?: number;
|
|
1273
1276
|
}
|
|
1274
1277
|
declare class DigestStream extends WritableStream<ArrayBuffer | ArrayBufferView> {
|
|
1275
|
-
constructor(algorithm: string | SubtleCryptoHashAlgorithm);
|
|
1278
|
+
constructor(algorithm: string | SubtleCryptoHashAlgorithm, options?: DigestStreamOptions);
|
|
1276
1279
|
readonly digest: Promise<ArrayBuffer>;
|
|
1277
1280
|
get bytesWritten(): number | bigint;
|
|
1278
1281
|
}
|
|
1282
|
+
interface DigestStreamOptions {
|
|
1283
|
+
toWellFormed?: boolean;
|
|
1284
|
+
}
|
|
1279
1285
|
/**
|
|
1280
1286
|
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as UTF-8, ISO-8859-2, or GBK. A decoder takes an array of bytes as input and returns a JavaScript string.
|
|
1281
1287
|
*
|
|
@@ -1364,6 +1370,9 @@ declare class ErrorEvent extends Event {
|
|
|
1364
1370
|
get error(): any;
|
|
1365
1371
|
}
|
|
1366
1372
|
interface ErrorEventErrorEventInit {
|
|
1373
|
+
bubbles?: boolean;
|
|
1374
|
+
cancelable?: boolean;
|
|
1375
|
+
composed?: boolean;
|
|
1367
1376
|
message?: string;
|
|
1368
1377
|
filename?: string;
|
|
1369
1378
|
lineno?: number;
|
|
@@ -1376,7 +1385,7 @@ interface ErrorEventErrorEventInit {
|
|
|
1376
1385
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
|
|
1377
1386
|
*/
|
|
1378
1387
|
declare class MessageEvent extends Event {
|
|
1379
|
-
constructor(type: string, initializer
|
|
1388
|
+
constructor(type: string, initializer?: MessageEventInit);
|
|
1380
1389
|
/**
|
|
1381
1390
|
* The **`data`** read-only property of the MessageEvent interface represents the data sent by the message emitter.
|
|
1382
1391
|
*
|
|
@@ -1409,7 +1418,14 @@ declare class MessageEvent extends Event {
|
|
|
1409
1418
|
readonly ports: MessagePort[];
|
|
1410
1419
|
}
|
|
1411
1420
|
interface MessageEventInit {
|
|
1412
|
-
|
|
1421
|
+
bubbles?: boolean;
|
|
1422
|
+
cancelable?: boolean;
|
|
1423
|
+
composed?: boolean;
|
|
1424
|
+
data?: any;
|
|
1425
|
+
origin?: string;
|
|
1426
|
+
lastEventId?: string;
|
|
1427
|
+
source?: MessagePort;
|
|
1428
|
+
ports?: MessagePort[];
|
|
1413
1429
|
}
|
|
1414
1430
|
/**
|
|
1415
1431
|
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
|
|
@@ -3165,6 +3181,9 @@ declare class CloseEvent extends Event {
|
|
|
3165
3181
|
readonly wasClean: boolean;
|
|
3166
3182
|
}
|
|
3167
3183
|
interface CloseEventInit {
|
|
3184
|
+
bubbles?: boolean;
|
|
3185
|
+
cancelable?: boolean;
|
|
3186
|
+
composed?: boolean;
|
|
3168
3187
|
code?: number;
|
|
3169
3188
|
reason?: string;
|
|
3170
3189
|
wasClean?: boolean;
|
|
@@ -3418,10 +3437,13 @@ interface ContainerDirectorySnapshotOptions {
|
|
|
3418
3437
|
dir: string;
|
|
3419
3438
|
name?: string;
|
|
3420
3439
|
}
|
|
3421
|
-
|
|
3440
|
+
type ContainerDirectorySnapshotRestoreParams = {
|
|
3422
3441
|
snapshot: ContainerDirectorySnapshot;
|
|
3423
3442
|
mountPoint?: string;
|
|
3424
|
-
}
|
|
3443
|
+
} | {
|
|
3444
|
+
snapshot?: undefined;
|
|
3445
|
+
mountPoint: string;
|
|
3446
|
+
};
|
|
3425
3447
|
interface ContainerSnapshot {
|
|
3426
3448
|
id: string;
|
|
3427
3449
|
size: number;
|
|
@@ -3553,7 +3575,7 @@ interface WorkerLoaderModule {
|
|
|
3553
3575
|
data?: ArrayBuffer;
|
|
3554
3576
|
json?: any;
|
|
3555
3577
|
py?: string;
|
|
3556
|
-
wasm?: ArrayBuffer;
|
|
3578
|
+
wasm?: ArrayBuffer | ArrayBufferView | WebAssembly.Module;
|
|
3557
3579
|
}
|
|
3558
3580
|
interface WorkerLoaderWorkerCode {
|
|
3559
3581
|
compatibilityDate: string;
|
|
@@ -3561,7 +3583,7 @@ interface WorkerLoaderWorkerCode {
|
|
|
3561
3583
|
allowExperimental?: boolean;
|
|
3562
3584
|
limits?: workerdResourceLimits;
|
|
3563
3585
|
mainModule: string;
|
|
3564
|
-
modules: Record<string,
|
|
3586
|
+
modules: Record<string, string | WebAssembly.Module | WorkerLoaderModule>;
|
|
3565
3587
|
env?: any;
|
|
3566
3588
|
globalOutbound?: (Fetcher | null);
|
|
3567
3589
|
tails?: Fetcher[];
|
|
@@ -10142,6 +10164,163 @@ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
|
|
|
10142
10164
|
inputs: ChatCompletionsInput;
|
|
10143
10165
|
postProcessedOutputs: ChatCompletionsOutput;
|
|
10144
10166
|
}
|
|
10167
|
+
declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
|
|
10168
|
+
inputs: ChatCompletionsInput;
|
|
10169
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10170
|
+
}
|
|
10171
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
|
|
10172
|
+
inputs: ChatCompletionsInput;
|
|
10173
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10174
|
+
}
|
|
10175
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
|
|
10176
|
+
/**
|
|
10177
|
+
* Which Moondream skill to run.
|
|
10178
|
+
*/
|
|
10179
|
+
task?: "query" | "caption" | "point" | "detect";
|
|
10180
|
+
/**
|
|
10181
|
+
* Input image as a public HTTPS URL or base64 data URI. Optional for `query`; required for `caption`, `point`, and `detect`.
|
|
10182
|
+
*/
|
|
10183
|
+
image?: string;
|
|
10184
|
+
/**
|
|
10185
|
+
* Question for the `query` task.
|
|
10186
|
+
*/
|
|
10187
|
+
question?: string;
|
|
10188
|
+
/**
|
|
10189
|
+
* Caption length for the `caption` task.
|
|
10190
|
+
*/
|
|
10191
|
+
caption_length?: "short" | "normal" | "long";
|
|
10192
|
+
/**
|
|
10193
|
+
* Object phrase to locate for `point` and `detect` tasks (e.g. 'person wearing a red shirt').
|
|
10194
|
+
*/
|
|
10195
|
+
target?: string;
|
|
10196
|
+
/**
|
|
10197
|
+
* Enable reasoning trace for the `query` task.
|
|
10198
|
+
*/
|
|
10199
|
+
reasoning?: boolean;
|
|
10200
|
+
/**
|
|
10201
|
+
* Sampling temperature.
|
|
10202
|
+
*/
|
|
10203
|
+
temperature?: number;
|
|
10204
|
+
/**
|
|
10205
|
+
* Top-p (nucleus) sampling.
|
|
10206
|
+
*/
|
|
10207
|
+
top_p?: number;
|
|
10208
|
+
/**
|
|
10209
|
+
* Max tokens to generate for `query` and `caption`.
|
|
10210
|
+
*/
|
|
10211
|
+
max_tokens?: number;
|
|
10212
|
+
/**
|
|
10213
|
+
* Max objects to return for `point` and `detect`.
|
|
10214
|
+
*/
|
|
10215
|
+
max_objects?: number;
|
|
10216
|
+
/**
|
|
10217
|
+
* Return incremental tokens for `query` and `caption`. `point` and `detect` do not support streaming.
|
|
10218
|
+
*/
|
|
10219
|
+
stream?: boolean;
|
|
10220
|
+
}
|
|
10221
|
+
interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output {
|
|
10222
|
+
/**
|
|
10223
|
+
* Reason the generation finished.
|
|
10224
|
+
*/
|
|
10225
|
+
finish_reason: string;
|
|
10226
|
+
metrics: {
|
|
10227
|
+
/**
|
|
10228
|
+
* Number of input tokens consumed.
|
|
10229
|
+
*/
|
|
10230
|
+
input_tokens: number;
|
|
10231
|
+
/**
|
|
10232
|
+
* Number of output tokens generated.
|
|
10233
|
+
*/
|
|
10234
|
+
output_tokens: number;
|
|
10235
|
+
/**
|
|
10236
|
+
* Prefill time in milliseconds.
|
|
10237
|
+
*/
|
|
10238
|
+
prefill_time_ms: number;
|
|
10239
|
+
/**
|
|
10240
|
+
* Decode time in milliseconds.
|
|
10241
|
+
*/
|
|
10242
|
+
decode_time_ms: number;
|
|
10243
|
+
/**
|
|
10244
|
+
* Time to first token in milliseconds.
|
|
10245
|
+
*/
|
|
10246
|
+
ttft_ms: number;
|
|
10247
|
+
};
|
|
10248
|
+
/**
|
|
10249
|
+
* Answer text for the `query` task. Null for other tasks.
|
|
10250
|
+
*/
|
|
10251
|
+
answer?: string;
|
|
10252
|
+
/**
|
|
10253
|
+
* Caption text for the `caption` task. Null for other tasks.
|
|
10254
|
+
*/
|
|
10255
|
+
caption?: string;
|
|
10256
|
+
/**
|
|
10257
|
+
* Located points for the `point` task. Null for other tasks.
|
|
10258
|
+
*/
|
|
10259
|
+
points?: {
|
|
10260
|
+
/**
|
|
10261
|
+
* X coordinate.
|
|
10262
|
+
*/
|
|
10263
|
+
x: number;
|
|
10264
|
+
/**
|
|
10265
|
+
* Y coordinate.
|
|
10266
|
+
*/
|
|
10267
|
+
y: number;
|
|
10268
|
+
}[];
|
|
10269
|
+
/**
|
|
10270
|
+
* Detected bounding boxes for the `detect` task. Null for other tasks.
|
|
10271
|
+
*/
|
|
10272
|
+
objects?: {
|
|
10273
|
+
/**
|
|
10274
|
+
* Minimum X coordinate.
|
|
10275
|
+
*/
|
|
10276
|
+
x_min: number;
|
|
10277
|
+
/**
|
|
10278
|
+
* Minimum Y coordinate.
|
|
10279
|
+
*/
|
|
10280
|
+
y_min: number;
|
|
10281
|
+
/**
|
|
10282
|
+
* Maximum X coordinate.
|
|
10283
|
+
*/
|
|
10284
|
+
x_max: number;
|
|
10285
|
+
/**
|
|
10286
|
+
* Maximum Y coordinate.
|
|
10287
|
+
*/
|
|
10288
|
+
y_max: number;
|
|
10289
|
+
}[];
|
|
10290
|
+
/**
|
|
10291
|
+
* Reasoning trace for the `query` task when reasoning=true. Null otherwise.
|
|
10292
|
+
*/
|
|
10293
|
+
reasoning?: {
|
|
10294
|
+
/**
|
|
10295
|
+
* Reasoning text.
|
|
10296
|
+
*/
|
|
10297
|
+
text: string;
|
|
10298
|
+
/**
|
|
10299
|
+
* Grounding information.
|
|
10300
|
+
*/
|
|
10301
|
+
grounding?: {}[];
|
|
10302
|
+
};
|
|
10303
|
+
}
|
|
10304
|
+
declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
|
|
10305
|
+
inputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input;
|
|
10306
|
+
postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
|
|
10307
|
+
}
|
|
10308
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
|
|
10309
|
+
inputs: ChatCompletionsInput;
|
|
10310
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10311
|
+
}
|
|
10312
|
+
declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
|
|
10313
|
+
inputs: ChatCompletionsInput;
|
|
10314
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10315
|
+
}
|
|
10316
|
+
declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
|
|
10317
|
+
inputs: ChatCompletionsInput;
|
|
10318
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10319
|
+
}
|
|
10320
|
+
declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
|
|
10321
|
+
inputs: ChatCompletionsInput;
|
|
10322
|
+
postProcessedOutputs: ChatCompletionsOutput;
|
|
10323
|
+
}
|
|
10145
10324
|
interface AiModels {
|
|
10146
10325
|
"@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
|
|
10147
10326
|
"@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
|
|
@@ -10234,6 +10413,13 @@ interface AiModels {
|
|
|
10234
10413
|
"@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
|
|
10235
10414
|
"@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
|
|
10236
10415
|
"@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
|
|
10416
|
+
"@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
|
|
10417
|
+
"@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
|
|
10418
|
+
"@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
|
|
10419
|
+
"@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
|
|
10420
|
+
"@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
|
|
10421
|
+
"@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
|
|
10422
|
+
"@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
|
|
10237
10423
|
}
|
|
10238
10424
|
type AiOptions = {
|
|
10239
10425
|
/**
|
|
@@ -10900,6 +11086,15 @@ interface BrowserRunBaseOptions {
|
|
|
10900
11086
|
*/
|
|
10901
11087
|
cacheTTL?: number;
|
|
10902
11088
|
}
|
|
11089
|
+
/**
|
|
11090
|
+
* Backend selection, mixed into the options of the quick actions that support it.
|
|
11091
|
+
* Deliberately not part of `BrowserRunBaseOptions`: `scrape`, `links` and `snapshot`
|
|
11092
|
+
* reject an alternate backend, so they must not accept the field.
|
|
11093
|
+
*/
|
|
11094
|
+
interface BrowserRunAlternateBackendOptions {
|
|
11095
|
+
/** Render with an alternate browser backend instead of the default one. */
|
|
11096
|
+
browser?: 'kitesurf';
|
|
11097
|
+
}
|
|
10903
11098
|
/** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
|
|
10904
11099
|
type BrowserRunCommonOptions = (BrowserRunBaseOptions & {
|
|
10905
11100
|
/** URL to navigate to, e.g. `"https://example.com"`. */
|
|
@@ -10934,7 +11129,7 @@ type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
|
|
|
10934
11129
|
scrollPage?: boolean;
|
|
10935
11130
|
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
10936
11131
|
screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
|
|
10937
|
-
};
|
|
11132
|
+
} & BrowserRunAlternateBackendOptions;
|
|
10938
11133
|
type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
10939
11134
|
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
10940
11135
|
pdfOptions?: {
|
|
@@ -10970,7 +11165,7 @@ type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
|
10970
11165
|
/** @default 30000 */
|
|
10971
11166
|
timeout?: number;
|
|
10972
11167
|
};
|
|
10973
|
-
};
|
|
11168
|
+
} & BrowserRunAlternateBackendOptions;
|
|
10974
11169
|
type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
|
|
10975
11170
|
/** CSS selectors to scrape. At least one element is required. */
|
|
10976
11171
|
elements: Array<{
|
|
@@ -11005,7 +11200,7 @@ type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
|
11005
11200
|
* HTTP 200; a malformed selector is an error.
|
|
11006
11201
|
*/
|
|
11007
11202
|
root?: string;
|
|
11008
|
-
};
|
|
11203
|
+
} & BrowserRunAlternateBackendOptions;
|
|
11009
11204
|
interface BrowserRunJsonBaseOptions {
|
|
11010
11205
|
/** Custom AI models to try in order. Max 3. Falls back to next on error. */
|
|
11011
11206
|
custom_ai?: Array<{
|
|
@@ -11019,7 +11214,7 @@ interface BrowserRunJsonBaseOptions {
|
|
|
11019
11214
|
* Options for the `json` quick action.
|
|
11020
11215
|
* At least one of `prompt` or `response_format` must be provided.
|
|
11021
11216
|
*/
|
|
11022
|
-
type BrowserRunJsonOptions = BrowserRunCommonOptions & BrowserRunJsonBaseOptions & ({
|
|
11217
|
+
type BrowserRunJsonOptions = BrowserRunCommonOptions & BrowserRunAlternateBackendOptions & BrowserRunJsonBaseOptions & ({
|
|
11023
11218
|
/** Natural-language prompt describing what data to extract. */
|
|
11024
11219
|
prompt: string;
|
|
11025
11220
|
/** Structured output schema for the AI model. @see https://developers.cloudflare.com/workers-ai/json-mode/ */
|
|
@@ -11030,13 +11225,27 @@ type BrowserRunJsonOptions = BrowserRunCommonOptions & BrowserRunJsonBaseOptions
|
|
|
11030
11225
|
/** Structured output schema for the AI model. @see https://developers.cloudflare.com/workers-ai/json-mode/ */
|
|
11031
11226
|
response_format: AiTextGenerationResponseFormat;
|
|
11032
11227
|
});
|
|
11033
|
-
type BrowserRunContentOptions = BrowserRunCommonOptions;
|
|
11034
|
-
type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
|
|
11228
|
+
type BrowserRunContentOptions = BrowserRunCommonOptions & BrowserRunAlternateBackendOptions;
|
|
11229
|
+
type BrowserRunMarkdownOptions = BrowserRunCommonOptions & BrowserRunAlternateBackendOptions;
|
|
11230
|
+
type BrowserRunRedirectHop = {
|
|
11231
|
+
/** URL that returned the redirect. */
|
|
11232
|
+
url: string;
|
|
11233
|
+
/** HTTP status of the redirect. */
|
|
11234
|
+
status: number;
|
|
11235
|
+
/** Redirect response headers, including `location`. */
|
|
11236
|
+
headers: Record<string, string>;
|
|
11237
|
+
};
|
|
11035
11238
|
type BrowserRunResponseMeta = {
|
|
11036
11239
|
/** HTTP status code of the rendered page */
|
|
11037
11240
|
status: number;
|
|
11038
11241
|
/** Page title */
|
|
11039
11242
|
title: string;
|
|
11243
|
+
/** Origin response headers, lowercased. Repeated headers are joined with a newline. Credential and transport-only headers that do not survive rendering are omitted. */
|
|
11244
|
+
headers?: Record<string, string>;
|
|
11245
|
+
/** URL that served the response, after any redirects the browser followed. */
|
|
11246
|
+
finalUrl?: string;
|
|
11247
|
+
/** HTTP redirects followed to reach `finalUrl`, oldest first. Omitted for direct navigation and for client-side redirects such as meta refresh. An empty array means redirects occurred but their intermediate responses could not be read. */
|
|
11248
|
+
redirectChain?: BrowserRunRedirectHop[];
|
|
11040
11249
|
};
|
|
11041
11250
|
/**
|
|
11042
11251
|
* A node in the page's accessibility tree, as exposed to assistive technology.
|
|
@@ -11102,6 +11311,7 @@ type BrowserRunLinksSuccessResponse = {
|
|
|
11102
11311
|
success: true;
|
|
11103
11312
|
/** Extracted links */
|
|
11104
11313
|
result: string[];
|
|
11314
|
+
meta: BrowserRunResponseMeta;
|
|
11105
11315
|
};
|
|
11106
11316
|
/** Success response for `scrape` action. */
|
|
11107
11317
|
type BrowserRunScrapeSuccessResponse = {
|
|
@@ -11132,6 +11342,7 @@ type BrowserRunScrapeSuccessResponse = {
|
|
|
11132
11342
|
}>;
|
|
11133
11343
|
}>;
|
|
11134
11344
|
}>;
|
|
11345
|
+
meta: BrowserRunResponseMeta;
|
|
11135
11346
|
};
|
|
11136
11347
|
/** Success response for `snapshot` action. Each field is present only when the
|
|
11137
11348
|
* corresponding entry was requested in `formats`.
|
|
@@ -11166,12 +11377,14 @@ type BrowserRunJsonSuccessResponse = {
|
|
|
11166
11377
|
success: true;
|
|
11167
11378
|
/** JSON data extracted from the page using an AI model */
|
|
11168
11379
|
result: Record<string, unknown>;
|
|
11380
|
+
meta: BrowserRunResponseMeta;
|
|
11169
11381
|
};
|
|
11170
11382
|
/** Success response for `markdown` action. */
|
|
11171
11383
|
type BrowserRunMarkdownSuccessResponse = {
|
|
11172
11384
|
success: true;
|
|
11173
11385
|
/** Extracted markdown content */
|
|
11174
11386
|
result: string;
|
|
11387
|
+
meta: BrowserRunResponseMeta;
|
|
11175
11388
|
};
|
|
11176
11389
|
/** Error response for BrowserRun actions. */
|
|
11177
11390
|
type BrowserRunErrorResponse = {
|
|
@@ -12672,6 +12885,78 @@ interface Hyperdrive {
|
|
|
12672
12885
|
*/
|
|
12673
12886
|
readonly database: string;
|
|
12674
12887
|
}
|
|
12888
|
+
/**
|
|
12889
|
+
* A handle to a dynamically-provisioned Hyperdrive connection, returned by
|
|
12890
|
+
* `HyperdriveApi.get()`.
|
|
12891
|
+
*/
|
|
12892
|
+
interface HyperdriveDynamic extends Disposable {
|
|
12893
|
+
/**
|
|
12894
|
+
* The database name to use when connecting through this Hyperdrive.
|
|
12895
|
+
*/
|
|
12896
|
+
readonly database: Promise<string>;
|
|
12897
|
+
/*
|
|
12898
|
+
* The randomly generated user to use when authenticating to your
|
|
12899
|
+
* database via Hyperdrive.
|
|
12900
|
+
*/
|
|
12901
|
+
readonly user: Promise<string>;
|
|
12902
|
+
/*
|
|
12903
|
+
* The randomly generated password to use when authenticating to your
|
|
12904
|
+
* database via Hyperdrive.
|
|
12905
|
+
*/
|
|
12906
|
+
readonly password: Promise<string>;
|
|
12907
|
+
/**
|
|
12908
|
+
* Open a TCP socket to the target database through this Hyperdrive.
|
|
12909
|
+
*
|
|
12910
|
+
*/
|
|
12911
|
+
connect(): Promise<Socket>;
|
|
12912
|
+
}
|
|
12913
|
+
/**
|
|
12914
|
+
* Binding that provisions Hyperdrive connections at request time, rather than
|
|
12915
|
+
* from static configuration.
|
|
12916
|
+
*/
|
|
12917
|
+
interface HyperdriveDynamicApi {
|
|
12918
|
+
/**
|
|
12919
|
+
* Provision a connection for the database described by `args`.
|
|
12920
|
+
*
|
|
12921
|
+
*/
|
|
12922
|
+
get(args: HyperdriveDynamicConfig): Promise<HyperdriveDynamic>;
|
|
12923
|
+
/**
|
|
12924
|
+
* Get a pre-generated connection string used for connecting to dynamic Hyperdrive.
|
|
12925
|
+
*/
|
|
12926
|
+
getHyperdriveConnectionString(connectionString: string): Promise<string>;
|
|
12927
|
+
}
|
|
12928
|
+
/**
|
|
12929
|
+
* Parameters identifying the database that a dynamically-provisioned
|
|
12930
|
+
* Hyperdrive connection should target.
|
|
12931
|
+
*/
|
|
12932
|
+
interface HyperdriveDynamicConfig {
|
|
12933
|
+
/**
|
|
12934
|
+
* Generated connection string to pass into the dynamic worker.
|
|
12935
|
+
*
|
|
12936
|
+
*/
|
|
12937
|
+
dynamicHyperdriveConnectionString: string;
|
|
12938
|
+
/**
|
|
12939
|
+
* Connection string for the origin database Hyperdrive should connect to.
|
|
12940
|
+
* Contains credentials, so treat it as a secret.
|
|
12941
|
+
*
|
|
12942
|
+
* The scheme selects the database engine. PostgreSQL origins are supported.
|
|
12943
|
+
*/
|
|
12944
|
+
connectionString: string;
|
|
12945
|
+
/**
|
|
12946
|
+
* Region in which to place the connection pool. See the Hyperdrive
|
|
12947
|
+
* documentation for the set of supported regions.
|
|
12948
|
+
*/
|
|
12949
|
+
targetRegion: string;
|
|
12950
|
+
/**
|
|
12951
|
+
* Whether Hyperdrive should cache query results for this connection.
|
|
12952
|
+
*/
|
|
12953
|
+
cachingEnabled?: boolean;
|
|
12954
|
+
/**
|
|
12955
|
+
* Maximum number of connections the pool may open to the origin database.
|
|
12956
|
+
* Defaults to 60.
|
|
12957
|
+
*/
|
|
12958
|
+
maxConnections?: number;
|
|
12959
|
+
}
|
|
12675
12960
|
// Copyright (c) 2024 Cloudflare, Inc.
|
|
12676
12961
|
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
|
|
12677
12962
|
// https://opensource.org/licenses/Apache-2.0
|
|
@@ -14397,7 +14682,7 @@ declare namespace TailStream {
|
|
|
14397
14682
|
interface ConnectEventInfo {
|
|
14398
14683
|
readonly type: "connect";
|
|
14399
14684
|
}
|
|
14400
|
-
type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound" | "internalError" | "exceededWallTime";
|
|
14685
|
+
type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound" | "internalError" | "exceededWallTime" | "aborted";
|
|
14401
14686
|
interface ScriptVersion {
|
|
14402
14687
|
readonly id: string;
|
|
14403
14688
|
readonly tag?: string;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "vue-tsc -p tsconfig.json --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"vue": "^3.5.
|
|
36
|
+
"vue": "^3.5.42"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@braintree/sanitize-url": "^7.1.2",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"debug": "^4.4.3",
|
|
45
45
|
"mermaid": "^11.17.2",
|
|
46
46
|
"tailwindcss": "^4.3.3",
|
|
47
|
-
"tsx": "^4.23.
|
|
47
|
+
"tsx": "^4.23.13",
|
|
48
48
|
"vitepress": "^1.6.4",
|
|
49
49
|
"vitepress-plugin-llms": "^1.13.5",
|
|
50
50
|
"vitepress-plugin-mermaid": "^2.0.17",
|
|
51
51
|
"vue-tsc": "^3.3.11",
|
|
52
|
-
"wrangler": "^4.
|
|
52
|
+
"wrangler": "^4.128.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -147,17 +147,17 @@ npx turbo link
|
|
|
147
147
|
|
|
148
148
|
## Turborepo vs Lerna vs Nx
|
|
149
149
|
|
|
150
|
-
| 特性 / 工具 | **Turborepo** | **Lerna** | **Nx**
|
|
151
|
-
| ----------------- | ---------------------------------------- | ------------------------------------------- |
|
|
152
|
-
| **定位** | 高性能构建系统,专注缓存、并行和增量构建 | 最早的 JS monorepo 工具,专注版本管理和发布 | 企业级开发平台,集成构建、测试、代码生成等功能
|
|
150
|
+
| 特性 / 工具 | **Turborepo** | **Lerna** | **Nx** |
|
|
151
|
+
| ----------------- | ---------------------------------------- | ------------------------------------------- | ---------------------------------------------- |
|
|
152
|
+
| **定位** | 高性能构建系统,专注缓存、并行和增量构建 | 最早的 JS monorepo 工具,专注版本管理和发布 | 企业级开发平台,集成构建、测试、代码生成等功能 |
|
|
153
153
|
| **核心优势** | ⚡ 高速缓存(本地 & 远程)、并行任务执行 | 📦 包版本管理(独立/统一模式)、发布到 npm | 🛠 丰富的插件生态、代码生成器、强大的依赖图分析 |
|
|
154
|
-
| **依赖管理** | 基于 pnpm/yarn/npm workspaces | 基于 npm/yarn workspaces | 内置强依赖图(project graph)管理
|
|
155
|
-
| **构建/缓存机制** | ✅ 智能缓存 & 增量构建 | ❌ 无缓存机制 | ✅ 强大缓存 & 增量构建(类似 Bazel)
|
|
156
|
-
| **任务编排** | pipeline 模式(`turbo.json`) | 简单顺序执行 | 高度可配置任务调度器(依赖感知)
|
|
157
|
-
| **语言支持** | 主要是 JS/TS 生态 | 主要是 JS/TS 生态 | 多语言支持(JS/TS/Go/Rust/Python 等)
|
|
158
|
-
| **学习成本** | ⭐⭐ 低(配置简洁,前端友好) | ⭐⭐ 低(老牌工具,功能单一) | ⭐⭐⭐ 高(功能多,配置复杂)
|
|
159
|
-
| **社区活跃度** | 🚀 高(Vercel 维护,发展迅速) | ⚠️ 中等(已过巅峰,更多用于发布流程) | 🚀 高(企业应用广泛,社区和插件丰富)
|
|
160
|
-
| **适合场景** | 前端/全栈项目,追求构建速度 & CI/CD 效率 | 多包库发布(如 npm 包集合项目) | 大型企业级 monorepo,跨语言/跨团队复杂项目
|
|
154
|
+
| **依赖管理** | 基于 pnpm/yarn/npm workspaces | 基于 npm/yarn workspaces | 内置强依赖图(project graph)管理 |
|
|
155
|
+
| **构建/缓存机制** | ✅ 智能缓存 & 增量构建 | ❌ 无缓存机制 | ✅ 强大缓存 & 增量构建(类似 Bazel) |
|
|
156
|
+
| **任务编排** | pipeline 模式(`turbo.json`) | 简单顺序执行 | 高度可配置任务调度器(依赖感知) |
|
|
157
|
+
| **语言支持** | 主要是 JS/TS 生态 | 主要是 JS/TS 生态 | 多语言支持(JS/TS/Go/Rust/Python 等) |
|
|
158
|
+
| **学习成本** | ⭐⭐ 低(配置简洁,前端友好) | ⭐⭐ 低(老牌工具,功能单一) | ⭐⭐⭐ 高(功能多,配置复杂) |
|
|
159
|
+
| **社区活跃度** | 🚀 高(Vercel 维护,发展迅速) | ⚠️ 中等(已过巅峰,更多用于发布流程) | 🚀 高(企业应用广泛,社区和插件丰富) |
|
|
160
|
+
| **适合场景** | 前端/全栈项目,追求构建速度 & CI/CD 效率 | 多包库发布(如 npm 包集合项目) | 大型企业级 monorepo,跨语言/跨团队复杂项目 |
|
|
161
161
|
|
|
162
162
|
## 对比总结
|
|
163
163
|
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
60
|
-
"@vue/test-utils": "^2.
|
|
60
|
+
"@vue/test-utils": "^2.5.0",
|
|
61
61
|
"@vue/tsconfig": "^0.9.1",
|
|
62
62
|
"jsdom": "^30.0.1",
|
|
63
63
|
"vite": "^8.2.2",
|
|
64
|
-
"vite-plugin-dts": "^5.0
|
|
65
|
-
"vue": "^3.5.
|
|
64
|
+
"vite-plugin-dts": "^5.1.0",
|
|
65
|
+
"vue": "^3.5.42",
|
|
66
66
|
"vue-tsc": "^3.3.11"
|
|
67
67
|
}
|
|
68
68
|
}
|