busy-cli 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -684,7 +684,7 @@ type Section = {
684
684
  children: Section[];
685
685
  };
686
686
  type ConceptBase = {
687
- kind: 'concept' | 'document' | 'operation' | 'checklist' | 'tool' | 'playbook' | 'localdef' | 'importdef' | 'setup';
687
+ kind: 'concept' | 'document' | 'operation' | 'checklist' | 'tool' | 'playbook' | 'view' | 'config' | 'localdef' | 'importdef' | 'setup';
688
688
  id: string;
689
689
  docId: string;
690
690
  slug: string;
@@ -1702,55 +1702,57 @@ export declare const PlaybookSchema: z.ZodObject<{
1702
1702
  }[];
1703
1703
  sequence: string[];
1704
1704
  }>;
1705
- export declare const EdgeRoleSchema: z.ZodEnum<["ref", "calls", "extends", "imports"]>;
1706
- export declare const EdgeSchema: z.ZodObject<{
1707
- from: z.ZodString;
1708
- to: z.ZodString;
1709
- role: z.ZodEnum<["ref", "calls", "extends", "imports"]>;
1710
- }, "strip", z.ZodTypeAny, {
1711
- from: string;
1712
- to: string;
1713
- role: "imports" | "extends" | "ref" | "calls";
1714
- }, {
1715
- from: string;
1716
- to: string;
1717
- role: "imports" | "extends" | "ref" | "calls";
1718
- }>;
1719
- export declare const FileSchema: z.ZodObject<{
1705
+ export declare const ViewSchema: z.ZodObject<{
1706
+ id: z.ZodString;
1720
1707
  docId: z.ZodString;
1721
- path: z.ZodString;
1708
+ slug: z.ZodString;
1722
1709
  name: z.ZodString;
1723
- sections: z.ZodArray<z.ZodType<Section, z.ZodTypeDef, Section>, "many">;
1724
- }, "strip", z.ZodTypeAny, {
1725
- name: string;
1726
- path: string;
1727
- docId: string;
1728
- sections: Section[];
1729
- }, {
1730
- name: string;
1731
- path: string;
1732
- docId: string;
1733
- sections: Section[];
1734
- }>;
1735
- export declare const RepoSchema: z.ZodObject<{
1736
- files: z.ZodArray<z.ZodObject<{
1710
+ content: z.ZodString;
1711
+ types: z.ZodArray<z.ZodString, "many">;
1712
+ extends: z.ZodArray<z.ZodString, "many">;
1713
+ sectionRef: z.ZodString;
1714
+ imports: z.ZodArray<z.ZodObject<{
1715
+ id: z.ZodString;
1737
1716
  docId: z.ZodString;
1738
- path: z.ZodString;
1717
+ slug: z.ZodString;
1739
1718
  name: z.ZodString;
1740
- sections: z.ZodArray<z.ZodType<Section, z.ZodTypeDef, Section>, "many">;
1719
+ content: z.ZodString;
1720
+ types: z.ZodArray<z.ZodString, "many">;
1721
+ extends: z.ZodArray<z.ZodString, "many">;
1722
+ sectionRef: z.ZodString;
1723
+ } & {
1724
+ kind: z.ZodLiteral<"importdef">;
1725
+ label: z.ZodString;
1726
+ target: z.ZodString;
1727
+ resolved: z.ZodOptional<z.ZodString>;
1741
1728
  }, "strip", z.ZodTypeAny, {
1742
1729
  name: string;
1743
- path: string;
1730
+ content: string;
1731
+ kind: "importdef";
1732
+ id: string;
1744
1733
  docId: string;
1745
- sections: Section[];
1734
+ slug: string;
1735
+ types: string[];
1736
+ extends: string[];
1737
+ sectionRef: string;
1738
+ label: string;
1739
+ target: string;
1740
+ resolved?: string | undefined;
1746
1741
  }, {
1747
1742
  name: string;
1748
- path: string;
1743
+ content: string;
1744
+ kind: "importdef";
1745
+ id: string;
1749
1746
  docId: string;
1750
- sections: Section[];
1747
+ slug: string;
1748
+ types: string[];
1749
+ extends: string[];
1750
+ sectionRef: string;
1751
+ label: string;
1752
+ target: string;
1753
+ resolved?: string | undefined;
1751
1754
  }>, "many">;
1752
- concepts: z.ZodArray<z.ZodType<ConceptBase, z.ZodTypeDef, ConceptBase>, "many">;
1753
- localdefs: z.ZodRecord<z.ZodString, z.ZodObject<{
1755
+ localdefs: z.ZodArray<z.ZodObject<{
1754
1756
  id: z.ZodString;
1755
1757
  docId: z.ZodString;
1756
1758
  slug: z.ZodString;
@@ -1781,8 +1783,40 @@ export declare const RepoSchema: z.ZodObject<{
1781
1783
  types: string[];
1782
1784
  extends: string[];
1783
1785
  sectionRef: string;
1784
- }>>;
1785
- operations: z.ZodRecord<z.ZodString, z.ZodObject<{
1786
+ }>, "many">;
1787
+ setup: z.ZodObject<{
1788
+ id: z.ZodString;
1789
+ docId: z.ZodString;
1790
+ slug: z.ZodString;
1791
+ name: z.ZodString;
1792
+ content: z.ZodString;
1793
+ types: z.ZodArray<z.ZodString, "many">;
1794
+ extends: z.ZodArray<z.ZodString, "many">;
1795
+ sectionRef: z.ZodString;
1796
+ } & {
1797
+ kind: z.ZodLiteral<"setup">;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ name: string;
1800
+ content: string;
1801
+ kind: "setup";
1802
+ id: string;
1803
+ docId: string;
1804
+ slug: string;
1805
+ types: string[];
1806
+ extends: string[];
1807
+ sectionRef: string;
1808
+ }, {
1809
+ name: string;
1810
+ content: string;
1811
+ kind: "setup";
1812
+ id: string;
1813
+ docId: string;
1814
+ slug: string;
1815
+ types: string[];
1816
+ extends: string[];
1817
+ sectionRef: string;
1818
+ }>;
1819
+ operations: z.ZodArray<z.ZodObject<{
1786
1820
  id: z.ZodString;
1787
1821
  docId: z.ZodString;
1788
1822
  slug: z.ZodString;
@@ -1819,7 +1853,140 @@ export declare const RepoSchema: z.ZodObject<{
1819
1853
  types: string[];
1820
1854
  extends: string[];
1821
1855
  sectionRef: string;
1822
- }>>;
1856
+ }>, "many">;
1857
+ } & {
1858
+ kind: z.ZodLiteral<"view">;
1859
+ display: z.ZodOptional<z.ZodString>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ name: string;
1862
+ content: string;
1863
+ imports: {
1864
+ name: string;
1865
+ content: string;
1866
+ kind: "importdef";
1867
+ id: string;
1868
+ docId: string;
1869
+ slug: string;
1870
+ types: string[];
1871
+ extends: string[];
1872
+ sectionRef: string;
1873
+ label: string;
1874
+ target: string;
1875
+ resolved?: string | undefined;
1876
+ }[];
1877
+ setup: {
1878
+ name: string;
1879
+ content: string;
1880
+ kind: "setup";
1881
+ id: string;
1882
+ docId: string;
1883
+ slug: string;
1884
+ types: string[];
1885
+ extends: string[];
1886
+ sectionRef: string;
1887
+ };
1888
+ operations: {
1889
+ name: string;
1890
+ content: string;
1891
+ steps: string[];
1892
+ checklist: string[];
1893
+ kind: "operation";
1894
+ id: string;
1895
+ docId: string;
1896
+ slug: string;
1897
+ types: string[];
1898
+ extends: string[];
1899
+ sectionRef: string;
1900
+ }[];
1901
+ kind: "view";
1902
+ id: string;
1903
+ docId: string;
1904
+ slug: string;
1905
+ types: string[];
1906
+ extends: string[];
1907
+ sectionRef: string;
1908
+ localdefs: {
1909
+ name: string;
1910
+ content: string;
1911
+ kind: "localdef";
1912
+ id: string;
1913
+ docId: string;
1914
+ slug: string;
1915
+ types: string[];
1916
+ extends: string[];
1917
+ sectionRef: string;
1918
+ }[];
1919
+ display?: string | undefined;
1920
+ }, {
1921
+ name: string;
1922
+ content: string;
1923
+ imports: {
1924
+ name: string;
1925
+ content: string;
1926
+ kind: "importdef";
1927
+ id: string;
1928
+ docId: string;
1929
+ slug: string;
1930
+ types: string[];
1931
+ extends: string[];
1932
+ sectionRef: string;
1933
+ label: string;
1934
+ target: string;
1935
+ resolved?: string | undefined;
1936
+ }[];
1937
+ setup: {
1938
+ name: string;
1939
+ content: string;
1940
+ kind: "setup";
1941
+ id: string;
1942
+ docId: string;
1943
+ slug: string;
1944
+ types: string[];
1945
+ extends: string[];
1946
+ sectionRef: string;
1947
+ };
1948
+ operations: {
1949
+ name: string;
1950
+ content: string;
1951
+ steps: string[];
1952
+ checklist: string[];
1953
+ kind: "operation";
1954
+ id: string;
1955
+ docId: string;
1956
+ slug: string;
1957
+ types: string[];
1958
+ extends: string[];
1959
+ sectionRef: string;
1960
+ }[];
1961
+ kind: "view";
1962
+ id: string;
1963
+ docId: string;
1964
+ slug: string;
1965
+ types: string[];
1966
+ extends: string[];
1967
+ sectionRef: string;
1968
+ localdefs: {
1969
+ name: string;
1970
+ content: string;
1971
+ kind: "localdef";
1972
+ id: string;
1973
+ docId: string;
1974
+ slug: string;
1975
+ types: string[];
1976
+ extends: string[];
1977
+ sectionRef: string;
1978
+ }[];
1979
+ display?: string | undefined;
1980
+ }>;
1981
+ export declare const ConfigSchema: z.ZodObject<{
1982
+ id: z.ZodString;
1983
+ docId: z.ZodString;
1984
+ slug: z.ZodString;
1985
+ name: z.ZodString;
1986
+ content: z.ZodString;
1987
+ types: z.ZodArray<z.ZodString, "many">;
1988
+ extends: z.ZodArray<z.ZodString, "many">;
1989
+ sectionRef: z.ZodString;
1823
1990
  imports: z.ZodArray<z.ZodObject<{
1824
1991
  id: z.ZodString;
1825
1992
  docId: z.ZodString;
@@ -1861,7 +2028,7 @@ export declare const RepoSchema: z.ZodObject<{
1861
2028
  target: string;
1862
2029
  resolved?: string | undefined;
1863
2030
  }>, "many">;
1864
- byId: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<Section, z.ZodTypeDef, Section>, z.ZodObject<{
2031
+ localdefs: z.ZodArray<z.ZodObject<{
1865
2032
  id: z.ZodString;
1866
2033
  docId: z.ZodString;
1867
2034
  slug: z.ZodString;
@@ -1892,7 +2059,8 @@ export declare const RepoSchema: z.ZodObject<{
1892
2059
  types: string[];
1893
2060
  extends: string[];
1894
2061
  sectionRef: string;
1895
- }>, z.ZodObject<{
2062
+ }>, "many">;
2063
+ setup: z.ZodObject<{
1896
2064
  id: z.ZodString;
1897
2065
  docId: z.ZodString;
1898
2066
  slug: z.ZodString;
@@ -1902,15 +2070,11 @@ export declare const RepoSchema: z.ZodObject<{
1902
2070
  extends: z.ZodArray<z.ZodString, "many">;
1903
2071
  sectionRef: z.ZodString;
1904
2072
  } & {
1905
- kind: z.ZodLiteral<"operation">;
1906
- steps: z.ZodArray<z.ZodString, "many">;
1907
- checklist: z.ZodArray<z.ZodString, "many">;
2073
+ kind: z.ZodLiteral<"setup">;
1908
2074
  }, "strip", z.ZodTypeAny, {
1909
2075
  name: string;
1910
2076
  content: string;
1911
- steps: string[];
1912
- checklist: string[];
1913
- kind: "operation";
2077
+ kind: "setup";
1914
2078
  id: string;
1915
2079
  docId: string;
1916
2080
  slug: string;
@@ -1920,8 +2084,32 @@ export declare const RepoSchema: z.ZodObject<{
1920
2084
  }, {
1921
2085
  name: string;
1922
2086
  content: string;
1923
- steps: string[];
1924
- checklist: string[];
2087
+ kind: "setup";
2088
+ id: string;
2089
+ docId: string;
2090
+ slug: string;
2091
+ types: string[];
2092
+ extends: string[];
2093
+ sectionRef: string;
2094
+ }>;
2095
+ operations: z.ZodArray<z.ZodObject<{
2096
+ id: z.ZodString;
2097
+ docId: z.ZodString;
2098
+ slug: z.ZodString;
2099
+ name: z.ZodString;
2100
+ content: z.ZodString;
2101
+ types: z.ZodArray<z.ZodString, "many">;
2102
+ extends: z.ZodArray<z.ZodString, "many">;
2103
+ sectionRef: z.ZodString;
2104
+ } & {
2105
+ kind: z.ZodLiteral<"operation">;
2106
+ steps: z.ZodArray<z.ZodString, "many">;
2107
+ checklist: z.ZodArray<z.ZodString, "many">;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ name: string;
2110
+ content: string;
2111
+ steps: string[];
2112
+ checklist: string[];
1925
2113
  kind: "operation";
1926
2114
  id: string;
1927
2115
  docId: string;
@@ -1929,9 +2117,917 @@ export declare const RepoSchema: z.ZodObject<{
1929
2117
  types: string[];
1930
2118
  extends: string[];
1931
2119
  sectionRef: string;
1932
- }>, z.ZodType<ConceptBase, z.ZodTypeDef, ConceptBase>]>>;
1933
- byFile: z.ZodRecord<z.ZodString, z.ZodObject<{
1934
- concept: z.ZodUnion<[z.ZodObject<{
2120
+ }, {
2121
+ name: string;
2122
+ content: string;
2123
+ steps: string[];
2124
+ checklist: string[];
2125
+ kind: "operation";
2126
+ id: string;
2127
+ docId: string;
2128
+ slug: string;
2129
+ types: string[];
2130
+ extends: string[];
2131
+ sectionRef: string;
2132
+ }>, "many">;
2133
+ } & {
2134
+ kind: z.ZodLiteral<"config">;
2135
+ }, "strip", z.ZodTypeAny, {
2136
+ name: string;
2137
+ content: string;
2138
+ imports: {
2139
+ name: string;
2140
+ content: string;
2141
+ kind: "importdef";
2142
+ id: string;
2143
+ docId: string;
2144
+ slug: string;
2145
+ types: string[];
2146
+ extends: string[];
2147
+ sectionRef: string;
2148
+ label: string;
2149
+ target: string;
2150
+ resolved?: string | undefined;
2151
+ }[];
2152
+ setup: {
2153
+ name: string;
2154
+ content: string;
2155
+ kind: "setup";
2156
+ id: string;
2157
+ docId: string;
2158
+ slug: string;
2159
+ types: string[];
2160
+ extends: string[];
2161
+ sectionRef: string;
2162
+ };
2163
+ operations: {
2164
+ name: string;
2165
+ content: string;
2166
+ steps: string[];
2167
+ checklist: string[];
2168
+ kind: "operation";
2169
+ id: string;
2170
+ docId: string;
2171
+ slug: string;
2172
+ types: string[];
2173
+ extends: string[];
2174
+ sectionRef: string;
2175
+ }[];
2176
+ kind: "config";
2177
+ id: string;
2178
+ docId: string;
2179
+ slug: string;
2180
+ types: string[];
2181
+ extends: string[];
2182
+ sectionRef: string;
2183
+ localdefs: {
2184
+ name: string;
2185
+ content: string;
2186
+ kind: "localdef";
2187
+ id: string;
2188
+ docId: string;
2189
+ slug: string;
2190
+ types: string[];
2191
+ extends: string[];
2192
+ sectionRef: string;
2193
+ }[];
2194
+ }, {
2195
+ name: string;
2196
+ content: string;
2197
+ imports: {
2198
+ name: string;
2199
+ content: string;
2200
+ kind: "importdef";
2201
+ id: string;
2202
+ docId: string;
2203
+ slug: string;
2204
+ types: string[];
2205
+ extends: string[];
2206
+ sectionRef: string;
2207
+ label: string;
2208
+ target: string;
2209
+ resolved?: string | undefined;
2210
+ }[];
2211
+ setup: {
2212
+ name: string;
2213
+ content: string;
2214
+ kind: "setup";
2215
+ id: string;
2216
+ docId: string;
2217
+ slug: string;
2218
+ types: string[];
2219
+ extends: string[];
2220
+ sectionRef: string;
2221
+ };
2222
+ operations: {
2223
+ name: string;
2224
+ content: string;
2225
+ steps: string[];
2226
+ checklist: string[];
2227
+ kind: "operation";
2228
+ id: string;
2229
+ docId: string;
2230
+ slug: string;
2231
+ types: string[];
2232
+ extends: string[];
2233
+ sectionRef: string;
2234
+ }[];
2235
+ kind: "config";
2236
+ id: string;
2237
+ docId: string;
2238
+ slug: string;
2239
+ types: string[];
2240
+ extends: string[];
2241
+ sectionRef: string;
2242
+ localdefs: {
2243
+ name: string;
2244
+ content: string;
2245
+ kind: "localdef";
2246
+ id: string;
2247
+ docId: string;
2248
+ slug: string;
2249
+ types: string[];
2250
+ extends: string[];
2251
+ sectionRef: string;
2252
+ }[];
2253
+ }>;
2254
+ export declare const EdgeRoleSchema: z.ZodEnum<["ref", "calls", "extends", "imports"]>;
2255
+ export declare const EdgeSchema: z.ZodObject<{
2256
+ from: z.ZodString;
2257
+ to: z.ZodString;
2258
+ role: z.ZodEnum<["ref", "calls", "extends", "imports"]>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ from: string;
2261
+ to: string;
2262
+ role: "imports" | "extends" | "ref" | "calls";
2263
+ }, {
2264
+ from: string;
2265
+ to: string;
2266
+ role: "imports" | "extends" | "ref" | "calls";
2267
+ }>;
2268
+ export declare const FileSchema: z.ZodObject<{
2269
+ docId: z.ZodString;
2270
+ path: z.ZodString;
2271
+ name: z.ZodString;
2272
+ sections: z.ZodArray<z.ZodType<Section, z.ZodTypeDef, Section>, "many">;
2273
+ }, "strip", z.ZodTypeAny, {
2274
+ name: string;
2275
+ path: string;
2276
+ docId: string;
2277
+ sections: Section[];
2278
+ }, {
2279
+ name: string;
2280
+ path: string;
2281
+ docId: string;
2282
+ sections: Section[];
2283
+ }>;
2284
+ export declare const RepoSchema: z.ZodObject<{
2285
+ files: z.ZodArray<z.ZodObject<{
2286
+ docId: z.ZodString;
2287
+ path: z.ZodString;
2288
+ name: z.ZodString;
2289
+ sections: z.ZodArray<z.ZodType<Section, z.ZodTypeDef, Section>, "many">;
2290
+ }, "strip", z.ZodTypeAny, {
2291
+ name: string;
2292
+ path: string;
2293
+ docId: string;
2294
+ sections: Section[];
2295
+ }, {
2296
+ name: string;
2297
+ path: string;
2298
+ docId: string;
2299
+ sections: Section[];
2300
+ }>, "many">;
2301
+ concepts: z.ZodArray<z.ZodType<ConceptBase, z.ZodTypeDef, ConceptBase>, "many">;
2302
+ localdefs: z.ZodRecord<z.ZodString, z.ZodObject<{
2303
+ id: z.ZodString;
2304
+ docId: z.ZodString;
2305
+ slug: z.ZodString;
2306
+ name: z.ZodString;
2307
+ content: z.ZodString;
2308
+ types: z.ZodArray<z.ZodString, "many">;
2309
+ extends: z.ZodArray<z.ZodString, "many">;
2310
+ sectionRef: z.ZodString;
2311
+ } & {
2312
+ kind: z.ZodLiteral<"localdef">;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ name: string;
2315
+ content: string;
2316
+ kind: "localdef";
2317
+ id: string;
2318
+ docId: string;
2319
+ slug: string;
2320
+ types: string[];
2321
+ extends: string[];
2322
+ sectionRef: string;
2323
+ }, {
2324
+ name: string;
2325
+ content: string;
2326
+ kind: "localdef";
2327
+ id: string;
2328
+ docId: string;
2329
+ slug: string;
2330
+ types: string[];
2331
+ extends: string[];
2332
+ sectionRef: string;
2333
+ }>>;
2334
+ operations: z.ZodRecord<z.ZodString, z.ZodObject<{
2335
+ id: z.ZodString;
2336
+ docId: z.ZodString;
2337
+ slug: z.ZodString;
2338
+ name: z.ZodString;
2339
+ content: z.ZodString;
2340
+ types: z.ZodArray<z.ZodString, "many">;
2341
+ extends: z.ZodArray<z.ZodString, "many">;
2342
+ sectionRef: z.ZodString;
2343
+ } & {
2344
+ kind: z.ZodLiteral<"operation">;
2345
+ steps: z.ZodArray<z.ZodString, "many">;
2346
+ checklist: z.ZodArray<z.ZodString, "many">;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ name: string;
2349
+ content: string;
2350
+ steps: string[];
2351
+ checklist: string[];
2352
+ kind: "operation";
2353
+ id: string;
2354
+ docId: string;
2355
+ slug: string;
2356
+ types: string[];
2357
+ extends: string[];
2358
+ sectionRef: string;
2359
+ }, {
2360
+ name: string;
2361
+ content: string;
2362
+ steps: string[];
2363
+ checklist: string[];
2364
+ kind: "operation";
2365
+ id: string;
2366
+ docId: string;
2367
+ slug: string;
2368
+ types: string[];
2369
+ extends: string[];
2370
+ sectionRef: string;
2371
+ }>>;
2372
+ imports: z.ZodArray<z.ZodObject<{
2373
+ id: z.ZodString;
2374
+ docId: z.ZodString;
2375
+ slug: z.ZodString;
2376
+ name: z.ZodString;
2377
+ content: z.ZodString;
2378
+ types: z.ZodArray<z.ZodString, "many">;
2379
+ extends: z.ZodArray<z.ZodString, "many">;
2380
+ sectionRef: z.ZodString;
2381
+ } & {
2382
+ kind: z.ZodLiteral<"importdef">;
2383
+ label: z.ZodString;
2384
+ target: z.ZodString;
2385
+ resolved: z.ZodOptional<z.ZodString>;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ name: string;
2388
+ content: string;
2389
+ kind: "importdef";
2390
+ id: string;
2391
+ docId: string;
2392
+ slug: string;
2393
+ types: string[];
2394
+ extends: string[];
2395
+ sectionRef: string;
2396
+ label: string;
2397
+ target: string;
2398
+ resolved?: string | undefined;
2399
+ }, {
2400
+ name: string;
2401
+ content: string;
2402
+ kind: "importdef";
2403
+ id: string;
2404
+ docId: string;
2405
+ slug: string;
2406
+ types: string[];
2407
+ extends: string[];
2408
+ sectionRef: string;
2409
+ label: string;
2410
+ target: string;
2411
+ resolved?: string | undefined;
2412
+ }>, "many">;
2413
+ byId: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<Section, z.ZodTypeDef, Section>, z.ZodObject<{
2414
+ id: z.ZodString;
2415
+ docId: z.ZodString;
2416
+ slug: z.ZodString;
2417
+ name: z.ZodString;
2418
+ content: z.ZodString;
2419
+ types: z.ZodArray<z.ZodString, "many">;
2420
+ extends: z.ZodArray<z.ZodString, "many">;
2421
+ sectionRef: z.ZodString;
2422
+ } & {
2423
+ kind: z.ZodLiteral<"localdef">;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ name: string;
2426
+ content: string;
2427
+ kind: "localdef";
2428
+ id: string;
2429
+ docId: string;
2430
+ slug: string;
2431
+ types: string[];
2432
+ extends: string[];
2433
+ sectionRef: string;
2434
+ }, {
2435
+ name: string;
2436
+ content: string;
2437
+ kind: "localdef";
2438
+ id: string;
2439
+ docId: string;
2440
+ slug: string;
2441
+ types: string[];
2442
+ extends: string[];
2443
+ sectionRef: string;
2444
+ }>, z.ZodObject<{
2445
+ id: z.ZodString;
2446
+ docId: z.ZodString;
2447
+ slug: z.ZodString;
2448
+ name: z.ZodString;
2449
+ content: z.ZodString;
2450
+ types: z.ZodArray<z.ZodString, "many">;
2451
+ extends: z.ZodArray<z.ZodString, "many">;
2452
+ sectionRef: z.ZodString;
2453
+ } & {
2454
+ kind: z.ZodLiteral<"operation">;
2455
+ steps: z.ZodArray<z.ZodString, "many">;
2456
+ checklist: z.ZodArray<z.ZodString, "many">;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ name: string;
2459
+ content: string;
2460
+ steps: string[];
2461
+ checklist: string[];
2462
+ kind: "operation";
2463
+ id: string;
2464
+ docId: string;
2465
+ slug: string;
2466
+ types: string[];
2467
+ extends: string[];
2468
+ sectionRef: string;
2469
+ }, {
2470
+ name: string;
2471
+ content: string;
2472
+ steps: string[];
2473
+ checklist: string[];
2474
+ kind: "operation";
2475
+ id: string;
2476
+ docId: string;
2477
+ slug: string;
2478
+ types: string[];
2479
+ extends: string[];
2480
+ sectionRef: string;
2481
+ }>, z.ZodType<ConceptBase, z.ZodTypeDef, ConceptBase>]>>;
2482
+ byFile: z.ZodRecord<z.ZodString, z.ZodObject<{
2483
+ concept: z.ZodUnion<[z.ZodObject<{
2484
+ id: z.ZodString;
2485
+ docId: z.ZodString;
2486
+ slug: z.ZodString;
2487
+ name: z.ZodString;
2488
+ content: z.ZodString;
2489
+ types: z.ZodArray<z.ZodString, "many">;
2490
+ extends: z.ZodArray<z.ZodString, "many">;
2491
+ sectionRef: z.ZodString;
2492
+ } & {
2493
+ kind: z.ZodLiteral<"document">;
2494
+ imports: z.ZodArray<z.ZodObject<{
2495
+ id: z.ZodString;
2496
+ docId: z.ZodString;
2497
+ slug: z.ZodString;
2498
+ name: z.ZodString;
2499
+ content: z.ZodString;
2500
+ types: z.ZodArray<z.ZodString, "many">;
2501
+ extends: z.ZodArray<z.ZodString, "many">;
2502
+ sectionRef: z.ZodString;
2503
+ } & {
2504
+ kind: z.ZodLiteral<"importdef">;
2505
+ label: z.ZodString;
2506
+ target: z.ZodString;
2507
+ resolved: z.ZodOptional<z.ZodString>;
2508
+ }, "strip", z.ZodTypeAny, {
2509
+ name: string;
2510
+ content: string;
2511
+ kind: "importdef";
2512
+ id: string;
2513
+ docId: string;
2514
+ slug: string;
2515
+ types: string[];
2516
+ extends: string[];
2517
+ sectionRef: string;
2518
+ label: string;
2519
+ target: string;
2520
+ resolved?: string | undefined;
2521
+ }, {
2522
+ name: string;
2523
+ content: string;
2524
+ kind: "importdef";
2525
+ id: string;
2526
+ docId: string;
2527
+ slug: string;
2528
+ types: string[];
2529
+ extends: string[];
2530
+ sectionRef: string;
2531
+ label: string;
2532
+ target: string;
2533
+ resolved?: string | undefined;
2534
+ }>, "many">;
2535
+ localdefs: z.ZodArray<z.ZodObject<{
2536
+ id: z.ZodString;
2537
+ docId: z.ZodString;
2538
+ slug: z.ZodString;
2539
+ name: z.ZodString;
2540
+ content: z.ZodString;
2541
+ types: z.ZodArray<z.ZodString, "many">;
2542
+ extends: z.ZodArray<z.ZodString, "many">;
2543
+ sectionRef: z.ZodString;
2544
+ } & {
2545
+ kind: z.ZodLiteral<"localdef">;
2546
+ }, "strip", z.ZodTypeAny, {
2547
+ name: string;
2548
+ content: string;
2549
+ kind: "localdef";
2550
+ id: string;
2551
+ docId: string;
2552
+ slug: string;
2553
+ types: string[];
2554
+ extends: string[];
2555
+ sectionRef: string;
2556
+ }, {
2557
+ name: string;
2558
+ content: string;
2559
+ kind: "localdef";
2560
+ id: string;
2561
+ docId: string;
2562
+ slug: string;
2563
+ types: string[];
2564
+ extends: string[];
2565
+ sectionRef: string;
2566
+ }>, "many">;
2567
+ setup: z.ZodObject<{
2568
+ id: z.ZodString;
2569
+ docId: z.ZodString;
2570
+ slug: z.ZodString;
2571
+ name: z.ZodString;
2572
+ content: z.ZodString;
2573
+ types: z.ZodArray<z.ZodString, "many">;
2574
+ extends: z.ZodArray<z.ZodString, "many">;
2575
+ sectionRef: z.ZodString;
2576
+ } & {
2577
+ kind: z.ZodLiteral<"setup">;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ name: string;
2580
+ content: string;
2581
+ kind: "setup";
2582
+ id: string;
2583
+ docId: string;
2584
+ slug: string;
2585
+ types: string[];
2586
+ extends: string[];
2587
+ sectionRef: string;
2588
+ }, {
2589
+ name: string;
2590
+ content: string;
2591
+ kind: "setup";
2592
+ id: string;
2593
+ docId: string;
2594
+ slug: string;
2595
+ types: string[];
2596
+ extends: string[];
2597
+ sectionRef: string;
2598
+ }>;
2599
+ operations: z.ZodArray<z.ZodObject<{
2600
+ id: z.ZodString;
2601
+ docId: z.ZodString;
2602
+ slug: z.ZodString;
2603
+ name: z.ZodString;
2604
+ content: z.ZodString;
2605
+ types: z.ZodArray<z.ZodString, "many">;
2606
+ extends: z.ZodArray<z.ZodString, "many">;
2607
+ sectionRef: z.ZodString;
2608
+ } & {
2609
+ kind: z.ZodLiteral<"operation">;
2610
+ steps: z.ZodArray<z.ZodString, "many">;
2611
+ checklist: z.ZodArray<z.ZodString, "many">;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ name: string;
2614
+ content: string;
2615
+ steps: string[];
2616
+ checklist: string[];
2617
+ kind: "operation";
2618
+ id: string;
2619
+ docId: string;
2620
+ slug: string;
2621
+ types: string[];
2622
+ extends: string[];
2623
+ sectionRef: string;
2624
+ }, {
2625
+ name: string;
2626
+ content: string;
2627
+ steps: string[];
2628
+ checklist: string[];
2629
+ kind: "operation";
2630
+ id: string;
2631
+ docId: string;
2632
+ slug: string;
2633
+ types: string[];
2634
+ extends: string[];
2635
+ sectionRef: string;
2636
+ }>, "many">;
2637
+ }, "strip", z.ZodTypeAny, {
2638
+ name: string;
2639
+ content: string;
2640
+ imports: {
2641
+ name: string;
2642
+ content: string;
2643
+ kind: "importdef";
2644
+ id: string;
2645
+ docId: string;
2646
+ slug: string;
2647
+ types: string[];
2648
+ extends: string[];
2649
+ sectionRef: string;
2650
+ label: string;
2651
+ target: string;
2652
+ resolved?: string | undefined;
2653
+ }[];
2654
+ setup: {
2655
+ name: string;
2656
+ content: string;
2657
+ kind: "setup";
2658
+ id: string;
2659
+ docId: string;
2660
+ slug: string;
2661
+ types: string[];
2662
+ extends: string[];
2663
+ sectionRef: string;
2664
+ };
2665
+ operations: {
2666
+ name: string;
2667
+ content: string;
2668
+ steps: string[];
2669
+ checklist: string[];
2670
+ kind: "operation";
2671
+ id: string;
2672
+ docId: string;
2673
+ slug: string;
2674
+ types: string[];
2675
+ extends: string[];
2676
+ sectionRef: string;
2677
+ }[];
2678
+ kind: "document";
2679
+ id: string;
2680
+ docId: string;
2681
+ slug: string;
2682
+ types: string[];
2683
+ extends: string[];
2684
+ sectionRef: string;
2685
+ localdefs: {
2686
+ name: string;
2687
+ content: string;
2688
+ kind: "localdef";
2689
+ id: string;
2690
+ docId: string;
2691
+ slug: string;
2692
+ types: string[];
2693
+ extends: string[];
2694
+ sectionRef: string;
2695
+ }[];
2696
+ }, {
2697
+ name: string;
2698
+ content: string;
2699
+ imports: {
2700
+ name: string;
2701
+ content: string;
2702
+ kind: "importdef";
2703
+ id: string;
2704
+ docId: string;
2705
+ slug: string;
2706
+ types: string[];
2707
+ extends: string[];
2708
+ sectionRef: string;
2709
+ label: string;
2710
+ target: string;
2711
+ resolved?: string | undefined;
2712
+ }[];
2713
+ setup: {
2714
+ name: string;
2715
+ content: string;
2716
+ kind: "setup";
2717
+ id: string;
2718
+ docId: string;
2719
+ slug: string;
2720
+ types: string[];
2721
+ extends: string[];
2722
+ sectionRef: string;
2723
+ };
2724
+ operations: {
2725
+ name: string;
2726
+ content: string;
2727
+ steps: string[];
2728
+ checklist: string[];
2729
+ kind: "operation";
2730
+ id: string;
2731
+ docId: string;
2732
+ slug: string;
2733
+ types: string[];
2734
+ extends: string[];
2735
+ sectionRef: string;
2736
+ }[];
2737
+ kind: "document";
2738
+ id: string;
2739
+ docId: string;
2740
+ slug: string;
2741
+ types: string[];
2742
+ extends: string[];
2743
+ sectionRef: string;
2744
+ localdefs: {
2745
+ name: string;
2746
+ content: string;
2747
+ kind: "localdef";
2748
+ id: string;
2749
+ docId: string;
2750
+ slug: string;
2751
+ types: string[];
2752
+ extends: string[];
2753
+ sectionRef: string;
2754
+ }[];
2755
+ }>, z.ZodObject<{
2756
+ id: z.ZodString;
2757
+ docId: z.ZodString;
2758
+ slug: z.ZodString;
2759
+ name: z.ZodString;
2760
+ content: z.ZodString;
2761
+ types: z.ZodArray<z.ZodString, "many">;
2762
+ extends: z.ZodArray<z.ZodString, "many">;
2763
+ sectionRef: z.ZodString;
2764
+ imports: z.ZodArray<z.ZodObject<{
2765
+ id: z.ZodString;
2766
+ docId: z.ZodString;
2767
+ slug: z.ZodString;
2768
+ name: z.ZodString;
2769
+ content: z.ZodString;
2770
+ types: z.ZodArray<z.ZodString, "many">;
2771
+ extends: z.ZodArray<z.ZodString, "many">;
2772
+ sectionRef: z.ZodString;
2773
+ } & {
2774
+ kind: z.ZodLiteral<"importdef">;
2775
+ label: z.ZodString;
2776
+ target: z.ZodString;
2777
+ resolved: z.ZodOptional<z.ZodString>;
2778
+ }, "strip", z.ZodTypeAny, {
2779
+ name: string;
2780
+ content: string;
2781
+ kind: "importdef";
2782
+ id: string;
2783
+ docId: string;
2784
+ slug: string;
2785
+ types: string[];
2786
+ extends: string[];
2787
+ sectionRef: string;
2788
+ label: string;
2789
+ target: string;
2790
+ resolved?: string | undefined;
2791
+ }, {
2792
+ name: string;
2793
+ content: string;
2794
+ kind: "importdef";
2795
+ id: string;
2796
+ docId: string;
2797
+ slug: string;
2798
+ types: string[];
2799
+ extends: string[];
2800
+ sectionRef: string;
2801
+ label: string;
2802
+ target: string;
2803
+ resolved?: string | undefined;
2804
+ }>, "many">;
2805
+ localdefs: z.ZodArray<z.ZodObject<{
2806
+ id: z.ZodString;
2807
+ docId: z.ZodString;
2808
+ slug: z.ZodString;
2809
+ name: z.ZodString;
2810
+ content: z.ZodString;
2811
+ types: z.ZodArray<z.ZodString, "many">;
2812
+ extends: z.ZodArray<z.ZodString, "many">;
2813
+ sectionRef: z.ZodString;
2814
+ } & {
2815
+ kind: z.ZodLiteral<"localdef">;
2816
+ }, "strip", z.ZodTypeAny, {
2817
+ name: string;
2818
+ content: string;
2819
+ kind: "localdef";
2820
+ id: string;
2821
+ docId: string;
2822
+ slug: string;
2823
+ types: string[];
2824
+ extends: string[];
2825
+ sectionRef: string;
2826
+ }, {
2827
+ name: string;
2828
+ content: string;
2829
+ kind: "localdef";
2830
+ id: string;
2831
+ docId: string;
2832
+ slug: string;
2833
+ types: string[];
2834
+ extends: string[];
2835
+ sectionRef: string;
2836
+ }>, "many">;
2837
+ setup: z.ZodObject<{
2838
+ id: z.ZodString;
2839
+ docId: z.ZodString;
2840
+ slug: z.ZodString;
2841
+ name: z.ZodString;
2842
+ content: z.ZodString;
2843
+ types: z.ZodArray<z.ZodString, "many">;
2844
+ extends: z.ZodArray<z.ZodString, "many">;
2845
+ sectionRef: z.ZodString;
2846
+ } & {
2847
+ kind: z.ZodLiteral<"setup">;
2848
+ }, "strip", z.ZodTypeAny, {
2849
+ name: string;
2850
+ content: string;
2851
+ kind: "setup";
2852
+ id: string;
2853
+ docId: string;
2854
+ slug: string;
2855
+ types: string[];
2856
+ extends: string[];
2857
+ sectionRef: string;
2858
+ }, {
2859
+ name: string;
2860
+ content: string;
2861
+ kind: "setup";
2862
+ id: string;
2863
+ docId: string;
2864
+ slug: string;
2865
+ types: string[];
2866
+ extends: string[];
2867
+ sectionRef: string;
2868
+ }>;
2869
+ operations: z.ZodArray<z.ZodObject<{
2870
+ id: z.ZodString;
2871
+ docId: z.ZodString;
2872
+ slug: z.ZodString;
2873
+ name: z.ZodString;
2874
+ content: z.ZodString;
2875
+ types: z.ZodArray<z.ZodString, "many">;
2876
+ extends: z.ZodArray<z.ZodString, "many">;
2877
+ sectionRef: z.ZodString;
2878
+ } & {
2879
+ kind: z.ZodLiteral<"operation">;
2880
+ steps: z.ZodArray<z.ZodString, "many">;
2881
+ checklist: z.ZodArray<z.ZodString, "many">;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ name: string;
2884
+ content: string;
2885
+ steps: string[];
2886
+ checklist: string[];
2887
+ kind: "operation";
2888
+ id: string;
2889
+ docId: string;
2890
+ slug: string;
2891
+ types: string[];
2892
+ extends: string[];
2893
+ sectionRef: string;
2894
+ }, {
2895
+ name: string;
2896
+ content: string;
2897
+ steps: string[];
2898
+ checklist: string[];
2899
+ kind: "operation";
2900
+ id: string;
2901
+ docId: string;
2902
+ slug: string;
2903
+ types: string[];
2904
+ extends: string[];
2905
+ sectionRef: string;
2906
+ }>, "many">;
2907
+ } & {
2908
+ kind: z.ZodLiteral<"playbook">;
2909
+ sequence: z.ZodArray<z.ZodString, "many">;
2910
+ }, "strip", z.ZodTypeAny, {
2911
+ name: string;
2912
+ content: string;
2913
+ imports: {
2914
+ name: string;
2915
+ content: string;
2916
+ kind: "importdef";
2917
+ id: string;
2918
+ docId: string;
2919
+ slug: string;
2920
+ types: string[];
2921
+ extends: string[];
2922
+ sectionRef: string;
2923
+ label: string;
2924
+ target: string;
2925
+ resolved?: string | undefined;
2926
+ }[];
2927
+ setup: {
2928
+ name: string;
2929
+ content: string;
2930
+ kind: "setup";
2931
+ id: string;
2932
+ docId: string;
2933
+ slug: string;
2934
+ types: string[];
2935
+ extends: string[];
2936
+ sectionRef: string;
2937
+ };
2938
+ operations: {
2939
+ name: string;
2940
+ content: string;
2941
+ steps: string[];
2942
+ checklist: string[];
2943
+ kind: "operation";
2944
+ id: string;
2945
+ docId: string;
2946
+ slug: string;
2947
+ types: string[];
2948
+ extends: string[];
2949
+ sectionRef: string;
2950
+ }[];
2951
+ kind: "playbook";
2952
+ id: string;
2953
+ docId: string;
2954
+ slug: string;
2955
+ types: string[];
2956
+ extends: string[];
2957
+ sectionRef: string;
2958
+ localdefs: {
2959
+ name: string;
2960
+ content: string;
2961
+ kind: "localdef";
2962
+ id: string;
2963
+ docId: string;
2964
+ slug: string;
2965
+ types: string[];
2966
+ extends: string[];
2967
+ sectionRef: string;
2968
+ }[];
2969
+ sequence: string[];
2970
+ }, {
2971
+ name: string;
2972
+ content: string;
2973
+ imports: {
2974
+ name: string;
2975
+ content: string;
2976
+ kind: "importdef";
2977
+ id: string;
2978
+ docId: string;
2979
+ slug: string;
2980
+ types: string[];
2981
+ extends: string[];
2982
+ sectionRef: string;
2983
+ label: string;
2984
+ target: string;
2985
+ resolved?: string | undefined;
2986
+ }[];
2987
+ setup: {
2988
+ name: string;
2989
+ content: string;
2990
+ kind: "setup";
2991
+ id: string;
2992
+ docId: string;
2993
+ slug: string;
2994
+ types: string[];
2995
+ extends: string[];
2996
+ sectionRef: string;
2997
+ };
2998
+ operations: {
2999
+ name: string;
3000
+ content: string;
3001
+ steps: string[];
3002
+ checklist: string[];
3003
+ kind: "operation";
3004
+ id: string;
3005
+ docId: string;
3006
+ slug: string;
3007
+ types: string[];
3008
+ extends: string[];
3009
+ sectionRef: string;
3010
+ }[];
3011
+ kind: "playbook";
3012
+ id: string;
3013
+ docId: string;
3014
+ slug: string;
3015
+ types: string[];
3016
+ extends: string[];
3017
+ sectionRef: string;
3018
+ localdefs: {
3019
+ name: string;
3020
+ content: string;
3021
+ kind: "localdef";
3022
+ id: string;
3023
+ docId: string;
3024
+ slug: string;
3025
+ types: string[];
3026
+ extends: string[];
3027
+ sectionRef: string;
3028
+ }[];
3029
+ sequence: string[];
3030
+ }>, z.ZodObject<{
1935
3031
  id: z.ZodString;
1936
3032
  docId: z.ZodString;
1937
3033
  slug: z.ZodString;
@@ -1940,8 +3036,6 @@ export declare const RepoSchema: z.ZodObject<{
1940
3036
  types: z.ZodArray<z.ZodString, "many">;
1941
3037
  extends: z.ZodArray<z.ZodString, "many">;
1942
3038
  sectionRef: z.ZodString;
1943
- } & {
1944
- kind: z.ZodLiteral<"document">;
1945
3039
  imports: z.ZodArray<z.ZodObject<{
1946
3040
  id: z.ZodString;
1947
3041
  docId: z.ZodString;
@@ -2085,6 +3179,9 @@ export declare const RepoSchema: z.ZodObject<{
2085
3179
  extends: string[];
2086
3180
  sectionRef: string;
2087
3181
  }>, "many">;
3182
+ } & {
3183
+ kind: z.ZodLiteral<"view">;
3184
+ display: z.ZodOptional<z.ZodString>;
2088
3185
  }, "strip", z.ZodTypeAny, {
2089
3186
  name: string;
2090
3187
  content: string;
@@ -2126,7 +3223,7 @@ export declare const RepoSchema: z.ZodObject<{
2126
3223
  extends: string[];
2127
3224
  sectionRef: string;
2128
3225
  }[];
2129
- kind: "document";
3226
+ kind: "view";
2130
3227
  id: string;
2131
3228
  docId: string;
2132
3229
  slug: string;
@@ -2144,6 +3241,7 @@ export declare const RepoSchema: z.ZodObject<{
2144
3241
  extends: string[];
2145
3242
  sectionRef: string;
2146
3243
  }[];
3244
+ display?: string | undefined;
2147
3245
  }, {
2148
3246
  name: string;
2149
3247
  content: string;
@@ -2185,7 +3283,7 @@ export declare const RepoSchema: z.ZodObject<{
2185
3283
  extends: string[];
2186
3284
  sectionRef: string;
2187
3285
  }[];
2188
- kind: "document";
3286
+ kind: "view";
2189
3287
  id: string;
2190
3288
  docId: string;
2191
3289
  slug: string;
@@ -2203,6 +3301,7 @@ export declare const RepoSchema: z.ZodObject<{
2203
3301
  extends: string[];
2204
3302
  sectionRef: string;
2205
3303
  }[];
3304
+ display?: string | undefined;
2206
3305
  }>, z.ZodObject<{
2207
3306
  id: z.ZodString;
2208
3307
  docId: z.ZodString;
@@ -2356,8 +3455,7 @@ export declare const RepoSchema: z.ZodObject<{
2356
3455
  sectionRef: string;
2357
3456
  }>, "many">;
2358
3457
  } & {
2359
- kind: z.ZodLiteral<"playbook">;
2360
- sequence: z.ZodArray<z.ZodString, "many">;
3458
+ kind: z.ZodLiteral<"config">;
2361
3459
  }, "strip", z.ZodTypeAny, {
2362
3460
  name: string;
2363
3461
  content: string;
@@ -2399,7 +3497,247 @@ export declare const RepoSchema: z.ZodObject<{
2399
3497
  extends: string[];
2400
3498
  sectionRef: string;
2401
3499
  }[];
2402
- kind: "playbook";
3500
+ kind: "config";
3501
+ id: string;
3502
+ docId: string;
3503
+ slug: string;
3504
+ types: string[];
3505
+ extends: string[];
3506
+ sectionRef: string;
3507
+ localdefs: {
3508
+ name: string;
3509
+ content: string;
3510
+ kind: "localdef";
3511
+ id: string;
3512
+ docId: string;
3513
+ slug: string;
3514
+ types: string[];
3515
+ extends: string[];
3516
+ sectionRef: string;
3517
+ }[];
3518
+ }, {
3519
+ name: string;
3520
+ content: string;
3521
+ imports: {
3522
+ name: string;
3523
+ content: string;
3524
+ kind: "importdef";
3525
+ id: string;
3526
+ docId: string;
3527
+ slug: string;
3528
+ types: string[];
3529
+ extends: string[];
3530
+ sectionRef: string;
3531
+ label: string;
3532
+ target: string;
3533
+ resolved?: string | undefined;
3534
+ }[];
3535
+ setup: {
3536
+ name: string;
3537
+ content: string;
3538
+ kind: "setup";
3539
+ id: string;
3540
+ docId: string;
3541
+ slug: string;
3542
+ types: string[];
3543
+ extends: string[];
3544
+ sectionRef: string;
3545
+ };
3546
+ operations: {
3547
+ name: string;
3548
+ content: string;
3549
+ steps: string[];
3550
+ checklist: string[];
3551
+ kind: "operation";
3552
+ id: string;
3553
+ docId: string;
3554
+ slug: string;
3555
+ types: string[];
3556
+ extends: string[];
3557
+ sectionRef: string;
3558
+ }[];
3559
+ kind: "config";
3560
+ id: string;
3561
+ docId: string;
3562
+ slug: string;
3563
+ types: string[];
3564
+ extends: string[];
3565
+ sectionRef: string;
3566
+ localdefs: {
3567
+ name: string;
3568
+ content: string;
3569
+ kind: "localdef";
3570
+ id: string;
3571
+ docId: string;
3572
+ slug: string;
3573
+ types: string[];
3574
+ extends: string[];
3575
+ sectionRef: string;
3576
+ }[];
3577
+ }>]>;
3578
+ bySlug: z.ZodRecord<z.ZodString, z.ZodType<Section, z.ZodTypeDef, Section>>;
3579
+ }, "strip", z.ZodTypeAny, {
3580
+ concept: {
3581
+ name: string;
3582
+ content: string;
3583
+ imports: {
3584
+ name: string;
3585
+ content: string;
3586
+ kind: "importdef";
3587
+ id: string;
3588
+ docId: string;
3589
+ slug: string;
3590
+ types: string[];
3591
+ extends: string[];
3592
+ sectionRef: string;
3593
+ label: string;
3594
+ target: string;
3595
+ resolved?: string | undefined;
3596
+ }[];
3597
+ setup: {
3598
+ name: string;
3599
+ content: string;
3600
+ kind: "setup";
3601
+ id: string;
3602
+ docId: string;
3603
+ slug: string;
3604
+ types: string[];
3605
+ extends: string[];
3606
+ sectionRef: string;
3607
+ };
3608
+ operations: {
3609
+ name: string;
3610
+ content: string;
3611
+ steps: string[];
3612
+ checklist: string[];
3613
+ kind: "operation";
3614
+ id: string;
3615
+ docId: string;
3616
+ slug: string;
3617
+ types: string[];
3618
+ extends: string[];
3619
+ sectionRef: string;
3620
+ }[];
3621
+ kind: "document";
3622
+ id: string;
3623
+ docId: string;
3624
+ slug: string;
3625
+ types: string[];
3626
+ extends: string[];
3627
+ sectionRef: string;
3628
+ localdefs: {
3629
+ name: string;
3630
+ content: string;
3631
+ kind: "localdef";
3632
+ id: string;
3633
+ docId: string;
3634
+ slug: string;
3635
+ types: string[];
3636
+ extends: string[];
3637
+ sectionRef: string;
3638
+ }[];
3639
+ } | {
3640
+ name: string;
3641
+ content: string;
3642
+ imports: {
3643
+ name: string;
3644
+ content: string;
3645
+ kind: "importdef";
3646
+ id: string;
3647
+ docId: string;
3648
+ slug: string;
3649
+ types: string[];
3650
+ extends: string[];
3651
+ sectionRef: string;
3652
+ label: string;
3653
+ target: string;
3654
+ resolved?: string | undefined;
3655
+ }[];
3656
+ setup: {
3657
+ name: string;
3658
+ content: string;
3659
+ kind: "setup";
3660
+ id: string;
3661
+ docId: string;
3662
+ slug: string;
3663
+ types: string[];
3664
+ extends: string[];
3665
+ sectionRef: string;
3666
+ };
3667
+ operations: {
3668
+ name: string;
3669
+ content: string;
3670
+ steps: string[];
3671
+ checklist: string[];
3672
+ kind: "operation";
3673
+ id: string;
3674
+ docId: string;
3675
+ slug: string;
3676
+ types: string[];
3677
+ extends: string[];
3678
+ sectionRef: string;
3679
+ }[];
3680
+ kind: "playbook";
3681
+ id: string;
3682
+ docId: string;
3683
+ slug: string;
3684
+ types: string[];
3685
+ extends: string[];
3686
+ sectionRef: string;
3687
+ localdefs: {
3688
+ name: string;
3689
+ content: string;
3690
+ kind: "localdef";
3691
+ id: string;
3692
+ docId: string;
3693
+ slug: string;
3694
+ types: string[];
3695
+ extends: string[];
3696
+ sectionRef: string;
3697
+ }[];
3698
+ sequence: string[];
3699
+ } | {
3700
+ name: string;
3701
+ content: string;
3702
+ imports: {
3703
+ name: string;
3704
+ content: string;
3705
+ kind: "importdef";
3706
+ id: string;
3707
+ docId: string;
3708
+ slug: string;
3709
+ types: string[];
3710
+ extends: string[];
3711
+ sectionRef: string;
3712
+ label: string;
3713
+ target: string;
3714
+ resolved?: string | undefined;
3715
+ }[];
3716
+ setup: {
3717
+ name: string;
3718
+ content: string;
3719
+ kind: "setup";
3720
+ id: string;
3721
+ docId: string;
3722
+ slug: string;
3723
+ types: string[];
3724
+ extends: string[];
3725
+ sectionRef: string;
3726
+ };
3727
+ operations: {
3728
+ name: string;
3729
+ content: string;
3730
+ steps: string[];
3731
+ checklist: string[];
3732
+ kind: "operation";
3733
+ id: string;
3734
+ docId: string;
3735
+ slug: string;
3736
+ types: string[];
3737
+ extends: string[];
3738
+ sectionRef: string;
3739
+ }[];
3740
+ kind: "view";
2403
3741
  id: string;
2404
3742
  docId: string;
2405
3743
  slug: string;
@@ -2417,8 +3755,8 @@ export declare const RepoSchema: z.ZodObject<{
2417
3755
  extends: string[];
2418
3756
  sectionRef: string;
2419
3757
  }[];
2420
- sequence: string[];
2421
- }, {
3758
+ display?: string | undefined;
3759
+ } | {
2422
3760
  name: string;
2423
3761
  content: string;
2424
3762
  imports: {
@@ -2459,7 +3797,7 @@ export declare const RepoSchema: z.ZodObject<{
2459
3797
  extends: string[];
2460
3798
  sectionRef: string;
2461
3799
  }[];
2462
- kind: "playbook";
3800
+ kind: "config";
2463
3801
  id: string;
2464
3802
  docId: string;
2465
3803
  slug: string;
@@ -2477,10 +3815,9 @@ export declare const RepoSchema: z.ZodObject<{
2477
3815
  extends: string[];
2478
3816
  sectionRef: string;
2479
3817
  }[];
2480
- sequence: string[];
2481
- }>]>;
2482
- bySlug: z.ZodRecord<z.ZodString, z.ZodType<Section, z.ZodTypeDef, Section>>;
2483
- }, "strip", z.ZodTypeAny, {
3818
+ };
3819
+ bySlug: Record<string, Section>;
3820
+ }, {
2484
3821
  concept: {
2485
3822
  name: string;
2486
3823
  content: string;
@@ -2600,10 +3937,7 @@ export declare const RepoSchema: z.ZodObject<{
2600
3937
  sectionRef: string;
2601
3938
  }[];
2602
3939
  sequence: string[];
2603
- };
2604
- bySlug: Record<string, Section>;
2605
- }, {
2606
- concept: {
3940
+ } | {
2607
3941
  name: string;
2608
3942
  content: string;
2609
3943
  imports: {
@@ -2644,7 +3978,7 @@ export declare const RepoSchema: z.ZodObject<{
2644
3978
  extends: string[];
2645
3979
  sectionRef: string;
2646
3980
  }[];
2647
- kind: "document";
3981
+ kind: "view";
2648
3982
  id: string;
2649
3983
  docId: string;
2650
3984
  slug: string;
@@ -2662,6 +3996,7 @@ export declare const RepoSchema: z.ZodObject<{
2662
3996
  extends: string[];
2663
3997
  sectionRef: string;
2664
3998
  }[];
3999
+ display?: string | undefined;
2665
4000
  } | {
2666
4001
  name: string;
2667
4002
  content: string;
@@ -2703,7 +4038,7 @@ export declare const RepoSchema: z.ZodObject<{
2703
4038
  extends: string[];
2704
4039
  sectionRef: string;
2705
4040
  }[];
2706
- kind: "playbook";
4041
+ kind: "config";
2707
4042
  id: string;
2708
4043
  docId: string;
2709
4044
  slug: string;
@@ -2721,7 +4056,6 @@ export declare const RepoSchema: z.ZodObject<{
2721
4056
  extends: string[];
2722
4057
  sectionRef: string;
2723
4058
  }[];
2724
- sequence: string[];
2725
4059
  };
2726
4060
  bySlug: Record<string, Section>;
2727
4061
  }>>;
@@ -2927,6 +4261,125 @@ export declare const RepoSchema: z.ZodObject<{
2927
4261
  sectionRef: string;
2928
4262
  }[];
2929
4263
  sequence: string[];
4264
+ } | {
4265
+ name: string;
4266
+ content: string;
4267
+ imports: {
4268
+ name: string;
4269
+ content: string;
4270
+ kind: "importdef";
4271
+ id: string;
4272
+ docId: string;
4273
+ slug: string;
4274
+ types: string[];
4275
+ extends: string[];
4276
+ sectionRef: string;
4277
+ label: string;
4278
+ target: string;
4279
+ resolved?: string | undefined;
4280
+ }[];
4281
+ setup: {
4282
+ name: string;
4283
+ content: string;
4284
+ kind: "setup";
4285
+ id: string;
4286
+ docId: string;
4287
+ slug: string;
4288
+ types: string[];
4289
+ extends: string[];
4290
+ sectionRef: string;
4291
+ };
4292
+ operations: {
4293
+ name: string;
4294
+ content: string;
4295
+ steps: string[];
4296
+ checklist: string[];
4297
+ kind: "operation";
4298
+ id: string;
4299
+ docId: string;
4300
+ slug: string;
4301
+ types: string[];
4302
+ extends: string[];
4303
+ sectionRef: string;
4304
+ }[];
4305
+ kind: "view";
4306
+ id: string;
4307
+ docId: string;
4308
+ slug: string;
4309
+ types: string[];
4310
+ extends: string[];
4311
+ sectionRef: string;
4312
+ localdefs: {
4313
+ name: string;
4314
+ content: string;
4315
+ kind: "localdef";
4316
+ id: string;
4317
+ docId: string;
4318
+ slug: string;
4319
+ types: string[];
4320
+ extends: string[];
4321
+ sectionRef: string;
4322
+ }[];
4323
+ display?: string | undefined;
4324
+ } | {
4325
+ name: string;
4326
+ content: string;
4327
+ imports: {
4328
+ name: string;
4329
+ content: string;
4330
+ kind: "importdef";
4331
+ id: string;
4332
+ docId: string;
4333
+ slug: string;
4334
+ types: string[];
4335
+ extends: string[];
4336
+ sectionRef: string;
4337
+ label: string;
4338
+ target: string;
4339
+ resolved?: string | undefined;
4340
+ }[];
4341
+ setup: {
4342
+ name: string;
4343
+ content: string;
4344
+ kind: "setup";
4345
+ id: string;
4346
+ docId: string;
4347
+ slug: string;
4348
+ types: string[];
4349
+ extends: string[];
4350
+ sectionRef: string;
4351
+ };
4352
+ operations: {
4353
+ name: string;
4354
+ content: string;
4355
+ steps: string[];
4356
+ checklist: string[];
4357
+ kind: "operation";
4358
+ id: string;
4359
+ docId: string;
4360
+ slug: string;
4361
+ types: string[];
4362
+ extends: string[];
4363
+ sectionRef: string;
4364
+ }[];
4365
+ kind: "config";
4366
+ id: string;
4367
+ docId: string;
4368
+ slug: string;
4369
+ types: string[];
4370
+ extends: string[];
4371
+ sectionRef: string;
4372
+ localdefs: {
4373
+ name: string;
4374
+ content: string;
4375
+ kind: "localdef";
4376
+ id: string;
4377
+ docId: string;
4378
+ slug: string;
4379
+ types: string[];
4380
+ extends: string[];
4381
+ sectionRef: string;
4382
+ }[];
2930
4383
  };
2931
4384
  bySlug: Record<string, Section>;
2932
4385
  }>;
@@ -3124,6 +4577,125 @@ export declare const RepoSchema: z.ZodObject<{
3124
4577
  sectionRef: string;
3125
4578
  }[];
3126
4579
  sequence: string[];
4580
+ } | {
4581
+ name: string;
4582
+ content: string;
4583
+ imports: {
4584
+ name: string;
4585
+ content: string;
4586
+ kind: "importdef";
4587
+ id: string;
4588
+ docId: string;
4589
+ slug: string;
4590
+ types: string[];
4591
+ extends: string[];
4592
+ sectionRef: string;
4593
+ label: string;
4594
+ target: string;
4595
+ resolved?: string | undefined;
4596
+ }[];
4597
+ setup: {
4598
+ name: string;
4599
+ content: string;
4600
+ kind: "setup";
4601
+ id: string;
4602
+ docId: string;
4603
+ slug: string;
4604
+ types: string[];
4605
+ extends: string[];
4606
+ sectionRef: string;
4607
+ };
4608
+ operations: {
4609
+ name: string;
4610
+ content: string;
4611
+ steps: string[];
4612
+ checklist: string[];
4613
+ kind: "operation";
4614
+ id: string;
4615
+ docId: string;
4616
+ slug: string;
4617
+ types: string[];
4618
+ extends: string[];
4619
+ sectionRef: string;
4620
+ }[];
4621
+ kind: "view";
4622
+ id: string;
4623
+ docId: string;
4624
+ slug: string;
4625
+ types: string[];
4626
+ extends: string[];
4627
+ sectionRef: string;
4628
+ localdefs: {
4629
+ name: string;
4630
+ content: string;
4631
+ kind: "localdef";
4632
+ id: string;
4633
+ docId: string;
4634
+ slug: string;
4635
+ types: string[];
4636
+ extends: string[];
4637
+ sectionRef: string;
4638
+ }[];
4639
+ display?: string | undefined;
4640
+ } | {
4641
+ name: string;
4642
+ content: string;
4643
+ imports: {
4644
+ name: string;
4645
+ content: string;
4646
+ kind: "importdef";
4647
+ id: string;
4648
+ docId: string;
4649
+ slug: string;
4650
+ types: string[];
4651
+ extends: string[];
4652
+ sectionRef: string;
4653
+ label: string;
4654
+ target: string;
4655
+ resolved?: string | undefined;
4656
+ }[];
4657
+ setup: {
4658
+ name: string;
4659
+ content: string;
4660
+ kind: "setup";
4661
+ id: string;
4662
+ docId: string;
4663
+ slug: string;
4664
+ types: string[];
4665
+ extends: string[];
4666
+ sectionRef: string;
4667
+ };
4668
+ operations: {
4669
+ name: string;
4670
+ content: string;
4671
+ steps: string[];
4672
+ checklist: string[];
4673
+ kind: "operation";
4674
+ id: string;
4675
+ docId: string;
4676
+ slug: string;
4677
+ types: string[];
4678
+ extends: string[];
4679
+ sectionRef: string;
4680
+ }[];
4681
+ kind: "config";
4682
+ id: string;
4683
+ docId: string;
4684
+ slug: string;
4685
+ types: string[];
4686
+ extends: string[];
4687
+ sectionRef: string;
4688
+ localdefs: {
4689
+ name: string;
4690
+ content: string;
4691
+ kind: "localdef";
4692
+ id: string;
4693
+ docId: string;
4694
+ slug: string;
4695
+ types: string[];
4696
+ extends: string[];
4697
+ sectionRef: string;
4698
+ }[];
3127
4699
  };
3128
4700
  bySlug: Record<string, Section>;
3129
4701
  }>;
@@ -3226,6 +4798,8 @@ export type DocId = z.infer<typeof DocIdSchema>;
3226
4798
  export type Slug = z.infer<typeof SlugSchema>;
3227
4799
  export type LegacyBusyDocument = z.infer<typeof LegacyBusyDocumentSchema>;
3228
4800
  export type Playbook = z.infer<typeof PlaybookSchema>;
4801
+ export type View = z.infer<typeof ViewSchema>;
4802
+ export type Config = z.infer<typeof ConfigSchema>;
3229
4803
  export type LocalDef = z.infer<typeof LocalDefSchema>;
3230
4804
  export type LegacyOperation = z.infer<typeof LegacyOperationSchema>;
3231
4805
  export type ImportDef = z.infer<typeof ImportDefSchema>;