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

33
node_modules/@vercel/detect-agent/dist/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,33 @@
declare const CURSOR: "cursor";
declare const CURSOR_CLI: "cursor-cli";
declare const CLAUDE: "claude";
declare const DEVIN: "devin";
declare const REPLIT: "replit";
declare const GEMINI: "gemini";
declare const CODEX: "codex";
declare const AUGMENT_CLI: "augment-cli";
declare const OPENCODE: "opencode";
export type KnownAgentNames = typeof CURSOR | typeof CURSOR_CLI | typeof CLAUDE | typeof DEVIN | typeof REPLIT | typeof GEMINI | typeof CODEX | typeof AUGMENT_CLI | typeof OPENCODE;
export interface KnownAgentDetails {
name: KnownAgentNames;
}
export type AgentResult = {
isAgent: true;
agent: KnownAgentDetails;
} | {
isAgent: false;
agent: undefined;
};
export declare const KNOWN_AGENTS: {
readonly CURSOR: "cursor";
readonly CURSOR_CLI: "cursor-cli";
readonly CLAUDE: "claude";
readonly DEVIN: "devin";
readonly REPLIT: "replit";
readonly GEMINI: "gemini";
readonly CODEX: "codex";
readonly AUGMENT_CLI: "augment-cli";
readonly OPENCODE: "opencode";
};
export declare function determineAgent(): Promise<AgentResult>;
export {};

93
node_modules/@vercel/detect-agent/dist/index.js generated vendored Normal file
View file

@ -0,0 +1,93 @@
"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 src_exports = {};
__export(src_exports, {
KNOWN_AGENTS: () => KNOWN_AGENTS,
determineAgent: () => determineAgent
});
module.exports = __toCommonJS(src_exports);
var import_promises = require("node:fs/promises");
var import_node_fs = require("node:fs");
const DEVIN_LOCAL_PATH = "/opt/.devin";
const CURSOR = "cursor";
const CURSOR_CLI = "cursor-cli";
const CLAUDE = "claude";
const DEVIN = "devin";
const REPLIT = "replit";
const GEMINI = "gemini";
const CODEX = "codex";
const AUGMENT_CLI = "augment-cli";
const OPENCODE = "opencode";
const KNOWN_AGENTS = {
CURSOR,
CURSOR_CLI,
CLAUDE,
DEVIN,
REPLIT,
GEMINI,
CODEX,
AUGMENT_CLI,
OPENCODE
};
async function determineAgent() {
if (process.env.AI_AGENT) {
const name = process.env.AI_AGENT.trim();
if (name) {
return {
isAgent: true,
agent: { name }
};
}
}
if (process.env.CURSOR_TRACE_ID) {
return { isAgent: true, agent: { name: CURSOR } };
}
if (process.env.CURSOR_AGENT) {
return { isAgent: true, agent: { name: CURSOR_CLI } };
}
if (process.env.GEMINI_CLI) {
return { isAgent: true, agent: { name: GEMINI } };
}
if (process.env.CODEX_SANDBOX) {
return { isAgent: true, agent: { name: CODEX } };
}
if (process.env.AUGMENT_AGENT) {
return { isAgent: true, agent: { name: AUGMENT_CLI } };
}
if (process.env.OPENCODE_CLIENT) {
return { isAgent: true, agent: { name: OPENCODE } };
}
if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) {
return { isAgent: true, agent: { name: CLAUDE } };
}
if (process.env.REPL_ID) {
return { isAgent: true, agent: { name: REPLIT } };
}
try {
await (0, import_promises.access)(DEVIN_LOCAL_PATH, import_node_fs.constants.F_OK);
return { isAgent: true, agent: { name: DEVIN } };
} catch (error) {
}
return { isAgent: false, agent: void 0 };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
KNOWN_AGENTS,
determineAgent
});