@@ -8,7 +8,29 @@ process.env.OBJECTSTACK_EAGER_SCHEMAS = '1';
88import fs from 'fs' ;
99import path from 'path' ;
1010import { z } from 'zod' ;
11- import * as Protocol from '../src/index' ;
11+ import * as AI from '../src/ai' ;
12+ import * as API from '../src/api' ;
13+ import * as Automation from '../src/automation' ;
14+ import * as Cloud from '../src/cloud' ;
15+ import * as Contracts from '../src/contracts' ;
16+ import * as Data from '../src/data' ;
17+ import * as Identity from '../src/identity' ;
18+ import * as Integration from '../src/integration' ;
19+ import * as Kernel from '../src/kernel' ;
20+ import * as QA from '../src/qa' ;
21+ import * as Security from '../src/security' ;
22+ import * as Shared from '../src/shared' ;
23+ import * as Studio from '../src/studio' ;
24+ import * as System from '../src/system' ;
25+ import * as UI from '../src/ui' ;
26+
27+ // Root index no longer re-exports namespaces (removed for tree-shaking — see
28+ // packages/spec/src/index.ts). Build subpath-by-subpath instead so every
29+ // category folder under json-schema/ gets populated.
30+ const Protocol : Record < string , Record < string , unknown > > = {
31+ AI , API , Automation, Cloud, Contracts, Data, Identity, Integration,
32+ Kernel, QA , Security, Shared, Studio, System, UI ,
33+ } ;
1234
1335const OUT_DIR = path . resolve ( __dirname , '../json-schema' ) ;
1436const SPEC_VERSION = JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , '../package.json' ) , 'utf-8' ) ) . version ;
0 commit comments