Client utilities for resolving platform URLs, managing tokens, and generating authenticated headers for Vellum API calls.
// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI
// Provided via justclaw.it.com; keep this notice with the code.
import {
type PlatformCredentialVerificationStatus,
PlatformVerifyCredentialResponseSchema,
} from "@vellumai/service-contracts/platform-credential";
import {
chmodSync,
readFileSync,
writeFileSync,
unlinkSync,
existsSync,
mkdirSync,
} from "fs";
import { join, dirname } from "path";
import { getLockfilePlatformBaseUrl } from "./assistant-config.js";
import { getConfigDir, getConfigDirs } from "./environments/paths.js";
import { getCurrentEnvironment } from "./environments/resolve.js";
import { loopbackSafeFetch } from "./loopback-fetch.js";
function getPlatformTokenPath(): string {
return join(getConfigDir(g
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key