@labelbox/rl-sdk 0.0.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.
- package/README.md +90 -0
- package/dist/client-options.d.ts +39 -0
- package/dist/client-options.js +29 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +216 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +120 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +37 -0
- package/dist/generated/client/utils.gen.js +228 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/client.gen.js +3 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/serverSentEvents.gen.js +132 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +2 -0
- package/dist/generated/sdk.gen.d.ts +3054 -0
- package/dist/generated/sdk.gen.js +5962 -0
- package/dist/generated/types.gen.d.ts +39711 -0
- package/dist/generated/types.gen.js +2 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +39 -0
- package/dist/nesting.d.ts +18 -0
- package/dist/nesting.js +75 -0
- package/dist/reference/concepts-reference.generated.d.ts +9 -0
- package/dist/reference/concepts-reference.generated.js +356 -0
- package/dist/reference/concepts-schema.d.ts +16 -0
- package/dist/reference/concepts-schema.js +39 -0
- package/dist/reference/concepts.d.ts +15 -0
- package/dist/reference/concepts.js +354 -0
- package/dist/reference/domains.d.ts +65 -0
- package/dist/reference/domains.js +32 -0
- package/dist/reference/recipes-reference.generated.d.ts +11 -0
- package/dist/reference/recipes-reference.generated.js +11415 -0
- package/dist/reference/recipes-schema.d.ts +676 -0
- package/dist/reference/recipes-schema.js +406 -0
- package/dist/reference/resources-reference.generated.d.ts +11 -0
- package/dist/reference/resources-reference.generated.js +7174 -0
- package/dist/reference/resources-schema.d.ts +78 -0
- package/dist/reference/resources-schema.js +71 -0
- package/dist/reference/schema.d.ts +153 -0
- package/dist/reference/schema.js +151 -0
- package/dist/reference/sdk-reference.generated.d.ts +10 -0
- package/dist/reference/sdk-reference.generated.js +65703 -0
- package/dist/reference/tutorials.d.ts +76 -0
- package/dist/reference/tutorials.js +65 -0
- package/dist/session-events.d.ts +92 -0
- package/dist/session-events.js +213 -0
- package/package.json +126 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authoritative concept registry. A concept exists because it is declared here;
|
|
3
|
+
* an optional `apps/recursion/web/public/docs/concepts/<id>.md` file enriches its rendered
|
|
4
|
+
* body and search text but never controls membership or metadata.
|
|
5
|
+
*/
|
|
6
|
+
export const CONCEPT_REFERENCE = {
|
|
7
|
+
'anatomy-of-a-problem-version': {
|
|
8
|
+
id: 'anatomy-of-a-problem-version',
|
|
9
|
+
title: 'Anatomy of a problem version',
|
|
10
|
+
domain: 'problems',
|
|
11
|
+
related: [
|
|
12
|
+
'concept:problem-lifecycle',
|
|
13
|
+
'concept:run-config-roles',
|
|
14
|
+
'resource:problem-versions',
|
|
15
|
+
'resource:problems',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
'authentication-and-access': {
|
|
19
|
+
id: 'authentication-and-access',
|
|
20
|
+
title: 'Authentication and access',
|
|
21
|
+
domain: 'platform',
|
|
22
|
+
related: ['concept:the-permission-model', 'concept:organizations-and-users'],
|
|
23
|
+
},
|
|
24
|
+
computes: {
|
|
25
|
+
id: 'computes',
|
|
26
|
+
title: 'Computes',
|
|
27
|
+
domain: 'run-configs',
|
|
28
|
+
related: [
|
|
29
|
+
'concept:run-config-anatomy',
|
|
30
|
+
'concept:snapshot-solvers-on-compute',
|
|
31
|
+
'resource:computes',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
'container-images-and-the-marketplace': {
|
|
35
|
+
id: 'container-images-and-the-marketplace',
|
|
36
|
+
title: 'Container images and the marketplace',
|
|
37
|
+
domain: 'run-configs',
|
|
38
|
+
related: [
|
|
39
|
+
'concept:computes',
|
|
40
|
+
'recipe:browse-images-and-models',
|
|
41
|
+
'resource:images',
|
|
42
|
+
'resource:marketplace',
|
|
43
|
+
'resource:models',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
'cost-accounting': {
|
|
47
|
+
id: 'cost-accounting',
|
|
48
|
+
title: 'How cost is accounted',
|
|
49
|
+
domain: 'cost',
|
|
50
|
+
related: [
|
|
51
|
+
'resource:cost-limits',
|
|
52
|
+
'resource:problem-runs',
|
|
53
|
+
'resource:evaluations',
|
|
54
|
+
'concept:cost-limits-and-budgets',
|
|
55
|
+
'concept:the-cost-explorer',
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
'cost-limits-and-budgets': {
|
|
59
|
+
id: 'cost-limits-and-budgets',
|
|
60
|
+
title: 'Cost limits and budgets',
|
|
61
|
+
domain: 'cost',
|
|
62
|
+
related: [
|
|
63
|
+
'recipe:set-a-per-problem-cost-limit',
|
|
64
|
+
'recipe:set-an-environment-cost-limit',
|
|
65
|
+
'recipe:remove-a-cost-limit',
|
|
66
|
+
'resource:cost-limits',
|
|
67
|
+
'concept:cost-accounting',
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
'designing-an-evaluation': {
|
|
71
|
+
id: 'designing-an-evaluation',
|
|
72
|
+
title: 'Designing an evaluation',
|
|
73
|
+
domain: 'evaluations',
|
|
74
|
+
related: [
|
|
75
|
+
'concept:evaluation-vs-problem-run',
|
|
76
|
+
'recipe:run-an-evaluation',
|
|
77
|
+
'recipe:export-evaluation-results',
|
|
78
|
+
'resource:evaluations',
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
'environment-files': {
|
|
82
|
+
id: 'environment-files',
|
|
83
|
+
title: 'Environment files',
|
|
84
|
+
domain: 'environments',
|
|
85
|
+
related: ['resource:environment-files', 'concept:problem-files', 'resource:environments'],
|
|
86
|
+
},
|
|
87
|
+
'environment-snapshots-and-duplication': {
|
|
88
|
+
id: 'environment-snapshots-and-duplication',
|
|
89
|
+
title: 'Environment duplication',
|
|
90
|
+
domain: 'integrations',
|
|
91
|
+
related: [
|
|
92
|
+
'concept:exporting-and-reusing-an-environment',
|
|
93
|
+
'recipe:export-an-environment',
|
|
94
|
+
'resource:environments',
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
'environment-templates-and-defaults': {
|
|
98
|
+
id: 'environment-templates-and-defaults',
|
|
99
|
+
title: 'Environment templates and defaults',
|
|
100
|
+
domain: 'environments',
|
|
101
|
+
related: ['resource:environments', 'resource:run-configs', 'resource:forms'],
|
|
102
|
+
},
|
|
103
|
+
'evaluation-vs-problem-run': {
|
|
104
|
+
id: 'evaluation-vs-problem-run',
|
|
105
|
+
title: 'Evaluations vs. problem runs',
|
|
106
|
+
domain: 'evaluations',
|
|
107
|
+
related: ['resource:evaluations', 'resource:problem-runs', 'recipe:run-an-evaluation'],
|
|
108
|
+
},
|
|
109
|
+
'exporting-and-reusing-an-environment': {
|
|
110
|
+
id: 'exporting-and-reusing-an-environment',
|
|
111
|
+
title: 'Exporting and reusing an environment',
|
|
112
|
+
domain: 'environments',
|
|
113
|
+
related: [
|
|
114
|
+
'recipe:export-an-environment',
|
|
115
|
+
'concept:environment-templates-and-defaults',
|
|
116
|
+
'concept:environment-snapshots-and-duplication',
|
|
117
|
+
'resource:exports',
|
|
118
|
+
'resource:environments',
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
'forms-and-structured-capture': {
|
|
122
|
+
id: 'forms-and-structured-capture',
|
|
123
|
+
title: 'Forms and structured capture',
|
|
124
|
+
domain: 'problems',
|
|
125
|
+
related: ['resource:forms', 'resource:form-answers'],
|
|
126
|
+
},
|
|
127
|
+
'grading-strategies': {
|
|
128
|
+
id: 'grading-strategies',
|
|
129
|
+
title: 'Grading strategies',
|
|
130
|
+
domain: 'review-qa',
|
|
131
|
+
related: [
|
|
132
|
+
'resource:rubrics',
|
|
133
|
+
'resource:problem-versions',
|
|
134
|
+
'recipe:create-and-grade-a-problem',
|
|
135
|
+
'recipe:grade-with-a-rubric-grader',
|
|
136
|
+
'recipe:grade-with-an-agentic-grader',
|
|
137
|
+
'recipe:grade-with-a-programmatic-grader',
|
|
138
|
+
'recipe:grade-with-a-composite-grader',
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
'guided-tours': {
|
|
142
|
+
id: 'guided-tours',
|
|
143
|
+
title: 'Guided tours',
|
|
144
|
+
domain: 'authoring-aids',
|
|
145
|
+
related: ['recipe:set-up-a-guided-tour', 'concept:anatomy-of-a-problem-version'],
|
|
146
|
+
},
|
|
147
|
+
'how-async-work-runs': {
|
|
148
|
+
id: 'how-async-work-runs',
|
|
149
|
+
title: 'How async work runs',
|
|
150
|
+
domain: 'jobs-observability',
|
|
151
|
+
related: [
|
|
152
|
+
'recipe:run-a-job-and-read-results',
|
|
153
|
+
'recipe:cancel-a-job',
|
|
154
|
+
'resource:jobs',
|
|
155
|
+
'resource:problem-runs',
|
|
156
|
+
'concept:runs-transcripts-and-results',
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
'how-grading-works': {
|
|
160
|
+
id: 'how-grading-works',
|
|
161
|
+
title: 'How grading works',
|
|
162
|
+
domain: 'review-qa',
|
|
163
|
+
related: [
|
|
164
|
+
'concept:grading-strategies',
|
|
165
|
+
'concept:run-config-roles',
|
|
166
|
+
'recipe:add-and-refine-a-rubric',
|
|
167
|
+
'recipe:create-and-grade-a-problem',
|
|
168
|
+
'resource:rubrics',
|
|
169
|
+
'resource:rubric-scores',
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
'human-review-and-issues': {
|
|
173
|
+
id: 'human-review-and-issues',
|
|
174
|
+
title: 'Human review and issues',
|
|
175
|
+
domain: 'review-qa',
|
|
176
|
+
related: ['recipe:submit-and-review-a-problem', 'resource:issues', 'resource:issue-comments'],
|
|
177
|
+
},
|
|
178
|
+
'importing-problems-and-claiming': {
|
|
179
|
+
id: 'importing-problems-and-claiming',
|
|
180
|
+
title: 'Importing problems and claiming',
|
|
181
|
+
domain: 'problems',
|
|
182
|
+
related: ['recipe:import-problems', 'resource:imports', 'resource:problems'],
|
|
183
|
+
},
|
|
184
|
+
'interfaces-ui-cli-sdk-api': {
|
|
185
|
+
id: 'interfaces-ui-cli-sdk-api',
|
|
186
|
+
title: 'Interfaces: UI, CLI, SDK, and API',
|
|
187
|
+
domain: 'platform',
|
|
188
|
+
related: ['resource:problems', 'resource:environments'],
|
|
189
|
+
},
|
|
190
|
+
'monitoring-and-health': {
|
|
191
|
+
id: 'monitoring-and-health',
|
|
192
|
+
title: 'Monitoring and health',
|
|
193
|
+
domain: 'jobs-observability',
|
|
194
|
+
related: ['concept:how-async-work-runs'],
|
|
195
|
+
},
|
|
196
|
+
'organizations-and-users': {
|
|
197
|
+
id: 'organizations-and-users',
|
|
198
|
+
title: 'Organizations and users',
|
|
199
|
+
domain: 'administration',
|
|
200
|
+
related: [
|
|
201
|
+
'concept:the-permission-model',
|
|
202
|
+
'concept:platform-architecture',
|
|
203
|
+
'concept:cost-accounting',
|
|
204
|
+
'resource:environments',
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
'platform-architecture': {
|
|
208
|
+
id: 'platform-architecture',
|
|
209
|
+
title: 'Platform architecture',
|
|
210
|
+
domain: 'platform',
|
|
211
|
+
related: [
|
|
212
|
+
'concept:problem-lifecycle',
|
|
213
|
+
'concept:run-config-roles',
|
|
214
|
+
'concept:how-async-work-runs',
|
|
215
|
+
'resource:environments',
|
|
216
|
+
'resource:problems',
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
'problem-files': {
|
|
220
|
+
id: 'problem-files',
|
|
221
|
+
title: 'Problem files',
|
|
222
|
+
domain: 'problems',
|
|
223
|
+
related: [
|
|
224
|
+
'recipe:attach-a-file',
|
|
225
|
+
'recipe:detach-and-download-a-file',
|
|
226
|
+
'recipe:set-gold-standard-and-tags',
|
|
227
|
+
'resource:files',
|
|
228
|
+
'concept:environment-files',
|
|
229
|
+
],
|
|
230
|
+
},
|
|
231
|
+
'problem-lifecycle': {
|
|
232
|
+
id: 'problem-lifecycle',
|
|
233
|
+
title: 'The problem lifecycle',
|
|
234
|
+
domain: 'problems',
|
|
235
|
+
related: ['resource:problems', 'resource:problem-versions', 'resource:problem-runs'],
|
|
236
|
+
},
|
|
237
|
+
'public-environments': {
|
|
238
|
+
id: 'public-environments',
|
|
239
|
+
title: 'Public environments',
|
|
240
|
+
domain: 'integrations',
|
|
241
|
+
related: ['concept:organizations-and-users', 'resource:environments'],
|
|
242
|
+
},
|
|
243
|
+
'quality-gates-and-qa': {
|
|
244
|
+
id: 'quality-gates-and-qa',
|
|
245
|
+
title: 'Quality gates and QA',
|
|
246
|
+
domain: 'review-qa',
|
|
247
|
+
related: ['recipe:gate-a-stage-on-qa', 'resource:qa', 'resource:qa-gates'],
|
|
248
|
+
},
|
|
249
|
+
'run-config-anatomy': {
|
|
250
|
+
id: 'run-config-anatomy',
|
|
251
|
+
title: 'Anatomy of a run config',
|
|
252
|
+
domain: 'run-configs',
|
|
253
|
+
related: [
|
|
254
|
+
'concept:run-config-roles',
|
|
255
|
+
'concept:verifying-with-the-probe',
|
|
256
|
+
'concept:secrets-and-credentials',
|
|
257
|
+
'recipe:configure-a-run-config',
|
|
258
|
+
'recipe:create-a-claude-code-run-config',
|
|
259
|
+
'resource:run-configs',
|
|
260
|
+
],
|
|
261
|
+
},
|
|
262
|
+
'run-config-roles': {
|
|
263
|
+
id: 'run-config-roles',
|
|
264
|
+
title: 'Run config roles and scopes',
|
|
265
|
+
domain: 'run-configs',
|
|
266
|
+
related: [
|
|
267
|
+
'concept:snapshot-solvers-on-compute',
|
|
268
|
+
'resource:run-configs',
|
|
269
|
+
'recipe:configure-a-run-config',
|
|
270
|
+
'recipe:bind-a-run-config-to-an-environment',
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
'runs-transcripts-and-results': {
|
|
274
|
+
id: 'runs-transcripts-and-results',
|
|
275
|
+
title: 'Runs, transcripts, and results',
|
|
276
|
+
domain: 'jobs-observability',
|
|
277
|
+
related: [
|
|
278
|
+
'recipe:inspect-run-history-and-transcript',
|
|
279
|
+
'resource:transcripts',
|
|
280
|
+
'resource:problem-runs',
|
|
281
|
+
'concept:how-async-work-runs',
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
'secrets-and-credentials': {
|
|
285
|
+
id: 'secrets-and-credentials',
|
|
286
|
+
title: 'Secrets and credentials',
|
|
287
|
+
domain: 'administration',
|
|
288
|
+
related: [
|
|
289
|
+
'recipe:attach-a-customer-secret',
|
|
290
|
+
'concept:run-config-anatomy',
|
|
291
|
+
'resource:run-configs',
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
'snapshot-solvers-on-compute': {
|
|
295
|
+
id: 'snapshot-solvers-on-compute',
|
|
296
|
+
title: 'Snapshot solvers and compute runs',
|
|
297
|
+
domain: 'run-configs',
|
|
298
|
+
related: [
|
|
299
|
+
'concept:run-config-roles',
|
|
300
|
+
'concept:computes',
|
|
301
|
+
'concept:grading-strategies',
|
|
302
|
+
'resource:run-configs',
|
|
303
|
+
'recipe:create-and-grade-a-problem',
|
|
304
|
+
'recipe:run-a-job-and-read-results',
|
|
305
|
+
],
|
|
306
|
+
},
|
|
307
|
+
tags: {
|
|
308
|
+
id: 'tags',
|
|
309
|
+
title: 'Tags',
|
|
310
|
+
domain: 'problems',
|
|
311
|
+
related: ['recipe:set-gold-standard-and-tags', 'resource:problems'],
|
|
312
|
+
},
|
|
313
|
+
'the-cost-explorer': {
|
|
314
|
+
id: 'the-cost-explorer',
|
|
315
|
+
title: 'The cost explorer',
|
|
316
|
+
domain: 'cost',
|
|
317
|
+
related: ['concept:cost-accounting', 'resource:cost-limits'],
|
|
318
|
+
},
|
|
319
|
+
'the-permission-model': {
|
|
320
|
+
id: 'the-permission-model',
|
|
321
|
+
title: 'The permission model',
|
|
322
|
+
domain: 'administration',
|
|
323
|
+
related: ['concept:organizations-and-users', 'concept:authentication-and-access'],
|
|
324
|
+
},
|
|
325
|
+
'the-synthesizer': {
|
|
326
|
+
id: 'the-synthesizer',
|
|
327
|
+
title: 'The synthesizer',
|
|
328
|
+
domain: 'synthesizer',
|
|
329
|
+
related: [
|
|
330
|
+
'resource:synthesizer',
|
|
331
|
+
'recipe:improve-a-problem-with-the-synthesizer',
|
|
332
|
+
'recipe:cancel-a-synthesizer-run',
|
|
333
|
+
'concept:run-config-roles',
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
'the-taiga-integration': {
|
|
337
|
+
id: 'the-taiga-integration',
|
|
338
|
+
title: 'The Taiga integration',
|
|
339
|
+
domain: 'integrations',
|
|
340
|
+
related: ['resource:environments', 'resource:jobs'],
|
|
341
|
+
},
|
|
342
|
+
'verifying-with-the-probe': {
|
|
343
|
+
id: 'verifying-with-the-probe',
|
|
344
|
+
title: 'Verifying a run config with the probe',
|
|
345
|
+
domain: 'run-configs',
|
|
346
|
+
related: ['concept:run-config-roles', 'concept:run-config-anatomy', 'resource:run-configs'],
|
|
347
|
+
},
|
|
348
|
+
'worldsim-authoring': {
|
|
349
|
+
id: 'worldsim-authoring',
|
|
350
|
+
title: 'Worldsim authoring',
|
|
351
|
+
domain: 'authoring-aids',
|
|
352
|
+
related: ['concept:run-config-anatomy'],
|
|
353
|
+
},
|
|
354
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface Domain {
|
|
2
|
+
/** Stable kebab-case id; the value carried by recipes, concepts, and resource roots. */
|
|
3
|
+
readonly id: string;
|
|
4
|
+
/** Human-facing section label in the docs nav. */
|
|
5
|
+
readonly title: string;
|
|
6
|
+
/** Nav order within How-to / Explanation (ascending). */
|
|
7
|
+
readonly order: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const DOMAINS: readonly [{
|
|
10
|
+
readonly id: "platform";
|
|
11
|
+
readonly title: "Platform & interfaces";
|
|
12
|
+
readonly order: 1;
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "environments";
|
|
15
|
+
readonly title: "Environments";
|
|
16
|
+
readonly order: 2;
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: "problems";
|
|
19
|
+
readonly title: "Problems";
|
|
20
|
+
readonly order: 3;
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "authoring-aids";
|
|
23
|
+
readonly title: "Authoring aids";
|
|
24
|
+
readonly order: 4;
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "run-configs";
|
|
27
|
+
readonly title: "Run configs";
|
|
28
|
+
readonly order: 5;
|
|
29
|
+
}, {
|
|
30
|
+
readonly id: "evaluations";
|
|
31
|
+
readonly title: "Evaluations";
|
|
32
|
+
readonly order: 6;
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "synthesizer";
|
|
35
|
+
readonly title: "Synthesizer";
|
|
36
|
+
readonly order: 7;
|
|
37
|
+
}, {
|
|
38
|
+
readonly id: "tuning";
|
|
39
|
+
readonly title: "Tuning";
|
|
40
|
+
readonly order: 8;
|
|
41
|
+
}, {
|
|
42
|
+
readonly id: "review-qa";
|
|
43
|
+
readonly title: "Review & QA";
|
|
44
|
+
readonly order: 9;
|
|
45
|
+
}, {
|
|
46
|
+
readonly id: "jobs-observability";
|
|
47
|
+
readonly title: "Jobs & observability";
|
|
48
|
+
readonly order: 10;
|
|
49
|
+
}, {
|
|
50
|
+
readonly id: "cost";
|
|
51
|
+
readonly title: "Cost";
|
|
52
|
+
readonly order: 11;
|
|
53
|
+
}, {
|
|
54
|
+
readonly id: "administration";
|
|
55
|
+
readonly title: "Administration";
|
|
56
|
+
readonly order: 12;
|
|
57
|
+
}, {
|
|
58
|
+
readonly id: "integrations";
|
|
59
|
+
readonly title: "Integrations";
|
|
60
|
+
readonly order: 13;
|
|
61
|
+
}];
|
|
62
|
+
/** Union of the thirteen canonical domain ids. */
|
|
63
|
+
export type DomainId = (typeof DOMAINS)[number]['id'];
|
|
64
|
+
/** Runtime guard: is `value` one of the canonical domain ids? */
|
|
65
|
+
export declare function isDomainId(value: unknown): value is DomainId;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Canonical **product-domain taxonomy** — the single source of truth for the
|
|
2
|
+
// docs information architecture. The How-to (recipes) and Explanation (concepts)
|
|
3
|
+
// quadrants group their entries under these thirteen flat domains; Reference keeps
|
|
4
|
+
// its own deep, spec-derived tree (it is not domain-grouped).
|
|
5
|
+
//
|
|
6
|
+
// Consumed by the frontend docs nav, the `rl` CLI, and the dx generators. The
|
|
7
|
+
// backend cannot import this (the spec → sdk-ts flow is one-way), so the
|
|
8
|
+
// backend `x-docs-resource.domain` stays a plain string and the
|
|
9
|
+
// `resources:generate` membership guard enforces that every value here is a
|
|
10
|
+
// real `DomainId`.
|
|
11
|
+
//
|
|
12
|
+
// Pure data — no dependency. Order is the nav order (top → bottom).
|
|
13
|
+
export const DOMAINS = [
|
|
14
|
+
{ id: 'platform', title: 'Platform & interfaces', order: 1 },
|
|
15
|
+
{ id: 'environments', title: 'Environments', order: 2 },
|
|
16
|
+
{ id: 'problems', title: 'Problems', order: 3 },
|
|
17
|
+
{ id: 'authoring-aids', title: 'Authoring aids', order: 4 },
|
|
18
|
+
{ id: 'run-configs', title: 'Run configs', order: 5 },
|
|
19
|
+
{ id: 'evaluations', title: 'Evaluations', order: 6 },
|
|
20
|
+
{ id: 'synthesizer', title: 'Synthesizer', order: 7 },
|
|
21
|
+
{ id: 'tuning', title: 'Tuning', order: 8 },
|
|
22
|
+
{ id: 'review-qa', title: 'Review & QA', order: 9 },
|
|
23
|
+
{ id: 'jobs-observability', title: 'Jobs & observability', order: 10 },
|
|
24
|
+
{ id: 'cost', title: 'Cost', order: 11 },
|
|
25
|
+
{ id: 'administration', title: 'Administration', order: 12 },
|
|
26
|
+
{ id: 'integrations', title: 'Integrations', order: 13 },
|
|
27
|
+
];
|
|
28
|
+
const DOMAIN_IDS = new Set(DOMAINS.map((d) => d.id));
|
|
29
|
+
/** Runtime guard: is `value` one of the canonical domain ids? */
|
|
30
|
+
export function isDomainId(value) {
|
|
31
|
+
return typeof value === 'string' && DOMAIN_IDS.has(value);
|
|
32
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED by 'yarn dx recipes:generate'.
|
|
3
|
+
* Do not edit manually — changes will be overwritten.
|
|
4
|
+
*
|
|
5
|
+
* Recipe reference, keyed by recipe id. Derived from the declarative
|
|
6
|
+
* recipe folders under `tests/smoke/recipes/`: each step's inputs and
|
|
7
|
+
* captures are statically validated against the SDK reference, then composed
|
|
8
|
+
* into runnable SDK/CLI/cURL examples.
|
|
9
|
+
*/
|
|
10
|
+
import type { RecipeReferenceEntry } from './recipes-schema.js';
|
|
11
|
+
export declare const RECIPE_REFERENCE: Record<string, RecipeReferenceEntry>;
|