mirror of
http://192.168.0.88:13333/lywsvip/openclaw-zero-token.git
synced 2026-05-20 01:55:02 +08:00
Major upgrade from e26988a38 to upstream v2026.3.28 (f9b107928).
Key changes:
- Upstream src/, ui/, extensions/ (89 bundled extensions)
- Zero-token web providers preserved in src/zero-token/
- AskOnce plugin restored and registered as CLI command
- Added missing packages: @anthropic-ai/vertex-sdk, @modelcontextprotocol/sdk
- Fixed tsconfig rootDir, skipLibCheck for plugin-sdk DTS build
- Added askonce to bundled plugin metadata and package.json exports
- Fixed AskOnce CLI command registration (missing commands metadata)
- Restored AskOnce adapter imports (correct 5-level relative paths)
- Removed stale migration artifacts from root directory
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { type EnvMap, resolveAutoNodeExtraCaCerts } from "./node-extra-ca-certs.js";
|
|
|
|
export type NodeStartupTlsEnvironment = {
|
|
NODE_EXTRA_CA_CERTS?: string;
|
|
NODE_USE_SYSTEM_CA?: string;
|
|
};
|
|
|
|
export function resolveNodeStartupTlsEnvironment(
|
|
params: {
|
|
env?: EnvMap;
|
|
platform?: NodeJS.Platform;
|
|
execPath?: string;
|
|
includeDarwinDefaults?: boolean;
|
|
accessSync?: (path: string, mode?: number) => void;
|
|
} = {},
|
|
): NodeStartupTlsEnvironment {
|
|
const env = params.env ?? (process.env as EnvMap);
|
|
const platform = params.platform ?? process.platform;
|
|
const includeDarwinDefaults = params.includeDarwinDefaults ?? true;
|
|
|
|
const nodeExtraCaCerts =
|
|
env.NODE_EXTRA_CA_CERTS ??
|
|
(platform === "darwin" && includeDarwinDefaults
|
|
? "/etc/ssl/cert.pem"
|
|
: resolveAutoNodeExtraCaCerts({
|
|
env,
|
|
platform,
|
|
execPath: params.execPath,
|
|
accessSync: params.accessSync,
|
|
}));
|
|
const nodeUseSystemCa =
|
|
env.NODE_USE_SYSTEM_CA ?? (platform === "darwin" && includeDarwinDefaults ? "1" : undefined);
|
|
|
|
return {
|
|
NODE_EXTRA_CA_CERTS: nodeExtraCaCerts,
|
|
NODE_USE_SYSTEM_CA: nodeUseSystemCa,
|
|
};
|
|
}
|