MCPcopy Index your code
hub / github.com/github/copilot-sdk / isNodeFullyExperimental

Function isNodeFullyExperimental

scripts/codegen/utils.ts:564–576  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

562
563/** Returns true when every leaf RPC method inside `node` is marked experimental. */
564export function isNodeFullyExperimental(node: Record<string, unknown>): boolean {
565 const methods: RpcMethod[] = [];
566 (function collect(n: Record<string, unknown>) {
567 for (const value of Object.values(n)) {
568 if (isRpcMethod(value)) {
569 methods.push(value);
570 } else if (typeof value === "object" && value !== null) {
571 collect(value as Record<string, unknown>);
572 }
573 }
574 })(node);
575 return methods.length > 0 && methods.every(m => m.stability === "experimental");
576}
577
578/** Returns true when every leaf RPC method inside `node` is marked deprecated. */
579export function isNodeFullyDeprecated(node: Record<string, unknown>): boolean {

Callers 15

emitGroupFunction · 0.85
emitServerApiClassFunction · 0.85
emitSessionApiClassFunction · 0.85
emitApiGroupFunction · 0.85
emitRpcWrapperFunction · 0.85
emitPyApiGroupFunction · 0.85

Calls 2

isRpcMethodFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…