Update app and tooling

This commit is contained in:
Lawrence Chen 2026-01-29 17:36:26 -08:00
parent 3046531bdd
commit e620ec7349
4950 changed files with 2975120 additions and 10 deletions

View file

@ -0,0 +1,2 @@
export declare const BUILDER_INSTALLER_STEP = "vc.builder.install";
export declare const BUILDER_COMPILE_STEP = "vc.builder.build";

View file

@ -0,0 +1,31 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var constants_exports = {};
__export(constants_exports, {
BUILDER_COMPILE_STEP: () => BUILDER_COMPILE_STEP,
BUILDER_INSTALLER_STEP: () => BUILDER_INSTALLER_STEP
});
module.exports = __toCommonJS(constants_exports);
const BUILDER_INSTALLER_STEP = "vc.builder.install";
const BUILDER_COMPILE_STEP = "vc.builder.build";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
BUILDER_COMPILE_STEP,
BUILDER_INSTALLER_STEP
});

View file

@ -0,0 +1,3 @@
export { Span } from './trace';
export { BUILDER_COMPILE_STEP, BUILDER_INSTALLER_STEP } from './constants';
export type { SpanId, TraceEvent, Reporter } from './trace';

33
node_modules/@vercel/build-utils/dist/trace/index.js generated vendored Normal file
View file

@ -0,0 +1,33 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var trace_exports = {};
__export(trace_exports, {
BUILDER_COMPILE_STEP: () => import_constants.BUILDER_COMPILE_STEP,
BUILDER_INSTALLER_STEP: () => import_constants.BUILDER_INSTALLER_STEP,
Span: () => import_trace.Span
});
module.exports = __toCommonJS(trace_exports);
var import_trace = require("./trace");
var import_constants = require("./constants");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
BUILDER_COMPILE_STEP,
BUILDER_INSTALLER_STEP,
Span
});

37
node_modules/@vercel/build-utils/dist/trace/trace.d.ts generated vendored Normal file
View file

@ -0,0 +1,37 @@
export type SpanId = string;
export type TraceEvent = {
parentId?: SpanId;
name: string;
id: SpanId;
timestamp: number;
duration: number;
tags: Record<string, string>;
startTime: number;
};
export type Reporter = {
report: (event: TraceEvent) => void;
};
interface Attributes {
[key: string]: string | undefined;
}
export declare class Span {
private name;
private id;
private parentId?;
private attrs;
private status;
private _start;
private now;
private _reporter;
constructor({ name, parentId, attrs, reporter, }: {
name: string;
parentId?: SpanId;
attrs?: Attributes;
reporter?: Reporter;
});
stop(): void;
setAttributes(attrs: Attributes): void;
child(name: string, attrs?: Attributes): Span;
trace<T>(fn: (span: Span) => T | Promise<T>): Promise<T>;
}
export {};

92
node_modules/@vercel/build-utils/dist/trace/trace.js generated vendored Normal file
View file

@ -0,0 +1,92 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var trace_exports = {};
__export(trace_exports, {
Span: () => Span
});
module.exports = __toCommonJS(trace_exports);
var import_node_crypto = require("node:crypto");
const NUM_OF_MICROSEC_IN_NANOSEC = BigInt("1000");
function mapUndefinedAttributes(attrs) {
return Object.fromEntries(
Object.entries(attrs ?? {}).filter(
(attr) => !!attr[1]
)
);
}
class Span {
constructor({
name,
parentId,
attrs,
reporter
}) {
this.name = name;
this.parentId = parentId;
this.attrs = mapUndefinedAttributes(attrs);
this.status = "started";
this.id = (0, import_node_crypto.randomUUID)();
this._reporter = reporter;
this.now = Date.now();
this._start = process.hrtime.bigint();
}
stop() {
if (this.status === "stopped") {
throw new Error(`Cannot stop a span which is already stopped`);
}
this.status = "stopped";
const end = process.hrtime.bigint();
const duration = Number((end - this._start) / NUM_OF_MICROSEC_IN_NANOSEC);
const timestamp = Number(this._start / NUM_OF_MICROSEC_IN_NANOSEC);
const traceEvent = {
name: this.name,
duration,
timestamp,
id: this.id,
parentId: this.parentId,
tags: this.attrs,
startTime: this.now
};
if (this._reporter) {
this._reporter.report(traceEvent);
}
}
setAttributes(attrs) {
Object.assign(this.attrs, mapUndefinedAttributes(attrs));
}
child(name, attrs) {
return new Span({
name,
parentId: this.id,
attrs,
reporter: this._reporter
});
}
async trace(fn) {
try {
return await fn(this);
} finally {
this.stop();
}
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Span
});