Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 26 to 27

Compare

+18 −0 in 1 place
new file, 18 lines
1+// Environment names: ABSO_<NAME>, or the older AVCS_<NAME> from before the rename.
2+// Read the new one first; where abso sets one for a program it runs, it sets both.
3+
4+export type EnvMap = Readonly<Record<string, string | undefined>>;
5+
6+/** ABSO_<name> if set (and not empty), else AVCS_<name>. */
7+export function fromEnv(env: EnvMap, name: string): string | undefined {
8+ return env[`ABSO_${name}`] || env[`AVCS_${name}`] || undefined;
9+}
11+/** Each ABSO_ entry once more under its AVCS_ name, for programs written before the rename. */
12+export function withOldNames<T extends Record<string, string | undefined>>(
13+ vars: T,
14+): Record<string, string | undefined> {
15+ const out: Record<string, string | undefined> = { ...vars };
16+ for (const [k, v] of Object.entries(vars)) if (k.startsWith("ABSO_")) out[`AVCS_${k.slice(5)}`] = v;
17+ return out;
18+}
MCP
compare on this site's /mcp
CLI
abso diff 26 27 client/src/env-names.ts --json
JSON
/christopher/abso-core/compare/26..27?file=client%2Fsrc%2Fenv-names.ts&format=json