MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / validateBaseUpdateFieldsEnv

Function validateBaseUpdateFieldsEnv

scripts/feishu/smoke.ts:1608–1618  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1606}
1607
1608function validateBaseUpdateFieldsEnv(value: string): string | undefined {
1609 try {
1610 const parsed = JSON.parse(value) as unknown;
1611 if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
1612 return "must_be_json_object";
1613 }
1614 return undefined;
1615 } catch {
1616 return "must_be_valid_json";
1617 }
1618}
1619
1620function loadLarkSdk(): LarkSdkModule {
1621 const require = createRequire(new URL("../../packages/services/package.json", import.meta.url));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected