mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
- Enhanced AGENTS.md with clearer project structure and development commands. - Updated CHANGELOG.md to reflect recent fixes and additions. - Improved formatting in CONTRIBUTING.md for better readability. - Adjusted package.json and configuration files for consistent command structure. - Refined README.md and VISION.md for clarity and organization. - Standardized code formatting in various TypeScript files for consistency. These changes aim to enhance documentation clarity and maintainability across the repository.
15 lines
375 B
TypeScript
15 lines
375 B
TypeScript
import { query } from "./functions";
|
|
|
|
function normalizeEnv(value: string | undefined) {
|
|
const normalized = value?.trim();
|
|
return normalized ? normalized : null;
|
|
}
|
|
|
|
export const getDeploymentInfo = query({
|
|
args: {},
|
|
handler: async () => ({
|
|
appBuildSha: normalizeEnv(process.env.APP_BUILD_SHA),
|
|
deployedAt: normalizeEnv(process.env.APP_DEPLOYED_AT),
|
|
}),
|
|
});
|