@quietloudlab/ai-interaction-atlas 1.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/LICENSE +201 -0
- package/README.md +493 -0
- package/dist/data.d.mts +21 -0
- package/dist/data.d.ts +21 -0
- package/dist/data.js +5374 -0
- package/dist/data.js.map +1 -0
- package/dist/data.mjs +5372 -0
- package/dist/data.mjs.map +1 -0
- package/dist/index.d.mts +309 -0
- package/dist/index.d.ts +309 -0
- package/dist/index.js +5603 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5568 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types.d.mts +294 -0
- package/dist/types.d.ts +294 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/types.mjs +3 -0
- package/dist/types.mjs.map +1 -0
- package/package.json +69 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { Meta, Layer, AiTask, HumanTask, SystemTask, DataArtifactDefinition, ConstraintDefinition, TouchpointDefinition, WorkflowTemplate, Example } from './types.mjs';
|
|
2
|
+
export { ActorCategory, AtlasData, BaseTask, BuilderEdge, BuilderNode, BuilderState, Capability, ConstraintCategory, DataCategory, IOItem, IOSpec, ImplementationNotes, LayerGuidance, Node, NodeAttachment, NodeType, Persona, Project, Relation, Task, TemplateAttachment, TouchpointCategory, UxNotes, WorkflowTaskStep, WorkflowTemplateEdge } from './types.mjs';
|
|
3
|
+
export { ATLAS_DATA } from './data.mjs';
|
|
4
|
+
|
|
5
|
+
declare const META: Meta;
|
|
6
|
+
|
|
7
|
+
declare const LAYERS: Layer[];
|
|
8
|
+
|
|
9
|
+
declare const AI_TASKS: AiTask[];
|
|
10
|
+
|
|
11
|
+
declare const HUMAN_TASKS: HumanTask[];
|
|
12
|
+
|
|
13
|
+
declare const SYSTEM_TASKS: SystemTask[];
|
|
14
|
+
|
|
15
|
+
declare const DATA_ARTIFACTS: DataArtifactDefinition[];
|
|
16
|
+
|
|
17
|
+
declare const CONSTRAINTS: ConstraintDefinition[];
|
|
18
|
+
|
|
19
|
+
declare const TOUCHPOINTS: TouchpointDefinition[];
|
|
20
|
+
|
|
21
|
+
declare const WORKFLOW_TEMPLATES: WorkflowTemplate[];
|
|
22
|
+
|
|
23
|
+
declare const EXAMPLES: Example[];
|
|
24
|
+
|
|
25
|
+
type SearchableItem = AiTask | HumanTask | SystemTask | DataArtifactDefinition | ConstraintDefinition | TouchpointDefinition;
|
|
26
|
+
interface SearchOptions {
|
|
27
|
+
/** Dimensions to search within (default: all) */
|
|
28
|
+
dimensions?: Array<'ai' | 'human' | 'system' | 'data' | 'constraints' | 'touchpoints'>;
|
|
29
|
+
/** Case sensitive search (default: false) */
|
|
30
|
+
caseSensitive?: boolean;
|
|
31
|
+
/** Search in description field (default: true) */
|
|
32
|
+
searchDescription?: boolean;
|
|
33
|
+
/** Limit number of results (default: no limit) */
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Search across all Atlas patterns by keyword
|
|
38
|
+
*
|
|
39
|
+
* @param query - Search query string
|
|
40
|
+
* @param options - Search options
|
|
41
|
+
* @returns Array of matching patterns
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* // Search all dimensions
|
|
46
|
+
* const results = searchPatterns('review');
|
|
47
|
+
*
|
|
48
|
+
* // Search only human tasks
|
|
49
|
+
* const humanResults = searchPatterns('review', { dimensions: ['human'] });
|
|
50
|
+
*
|
|
51
|
+
* // Case sensitive search
|
|
52
|
+
* const exact = searchPatterns('API', { caseSensitive: true });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare function searchPatterns(query: string, options?: SearchOptions): SearchableItem[];
|
|
56
|
+
/**
|
|
57
|
+
* Get a specific pattern by ID (slug or target_id)
|
|
58
|
+
*
|
|
59
|
+
* @param id - Pattern ID (slug or target_id)
|
|
60
|
+
* @returns The pattern if found, undefined otherwise
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const task = getPattern('classify-intent');
|
|
65
|
+
* const artifact = getPattern('embedding');
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare function getPattern(id: string): SearchableItem | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Get all patterns from a specific dimension
|
|
71
|
+
*
|
|
72
|
+
* @param dimension - Dimension name
|
|
73
|
+
* @returns Array of patterns in that dimension
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const aiTasks = getPatternsByDimension('ai');
|
|
78
|
+
* const constraints = getPatternsByDimension('constraints');
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare function getPatternsByDimension(dimension: 'ai' | 'human' | 'system' | 'data' | 'constraints' | 'touchpoints'): SearchableItem[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Filter AI/Human/System tasks by layer
|
|
85
|
+
*
|
|
86
|
+
* @param tasks - Array of tasks to filter
|
|
87
|
+
* @param layerId - Layer ID to filter by
|
|
88
|
+
* @returns Filtered tasks
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* import { AI_TASKS, filterByLayer } from '@quietloudlab/ai-interaction-atlas';
|
|
93
|
+
*
|
|
94
|
+
* const inboundTasks = filterByLayer(AI_TASKS, 'layer_inbound');
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare function filterByLayer<T extends AiTask | HumanTask | SystemTask>(tasks: T[], layerId: string): T[];
|
|
98
|
+
/**
|
|
99
|
+
* Get all tasks in a specific layer
|
|
100
|
+
*
|
|
101
|
+
* @param layerId - Layer ID
|
|
102
|
+
* @returns Object containing ai, human, and system tasks in that layer
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```typescript
|
|
106
|
+
* const inbound = getTasksByLayer('layer_inbound');
|
|
107
|
+
* console.log(inbound.ai); // All AI tasks in inbound layer
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
declare function getTasksByLayer(layerId: string): {
|
|
111
|
+
ai: AiTask[];
|
|
112
|
+
human: HumanTask[];
|
|
113
|
+
system: SystemTask[];
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Get a layer definition by ID
|
|
117
|
+
*
|
|
118
|
+
* @param layerId - Layer ID
|
|
119
|
+
* @returns Layer definition or undefined
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const layer = getLayer('layer_inbound');
|
|
124
|
+
* console.log(layer?.name); // "Inbound (Sensing & Structuring)"
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
declare function getLayer(layerId: string): Layer | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Filter data artifacts by category
|
|
130
|
+
*
|
|
131
|
+
* @param category - Category to filter by (e.g., 'text', 'visual', 'audio')
|
|
132
|
+
* @returns Filtered artifacts
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const textArtifacts = filterArtifactsByCategory('text');
|
|
137
|
+
* const visualArtifacts = filterArtifactsByCategory('visual');
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
declare function filterArtifactsByCategory(category: string): DataArtifactDefinition[];
|
|
141
|
+
/**
|
|
142
|
+
* Filter constraints by category
|
|
143
|
+
*
|
|
144
|
+
* @param category - Category to filter by
|
|
145
|
+
* @returns Filtered constraints
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* const qualityConstraints = filterConstraintsByCategory('Quality & Safety');
|
|
150
|
+
* const performanceConstraints = filterConstraintsByCategory('Performance & Resource');
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
declare function filterConstraintsByCategory(category: string): ConstraintDefinition[];
|
|
154
|
+
/**
|
|
155
|
+
* Filter touchpoints by category
|
|
156
|
+
*
|
|
157
|
+
* @param category - Category to filter by
|
|
158
|
+
* @returns Filtered touchpoints
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* const screenTouchpoints = filterTouchpointsByCategory('Screen Interface');
|
|
163
|
+
* const voiceTouchpoints = filterTouchpointsByCategory('Voice/Audio');
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function filterTouchpointsByCategory(category: string): TouchpointDefinition[];
|
|
167
|
+
/**
|
|
168
|
+
* Get all unique categories for a dimension
|
|
169
|
+
*
|
|
170
|
+
* @param dimension - Dimension to get categories from
|
|
171
|
+
* @returns Array of unique category names
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const artifactCategories = getCategories('data');
|
|
176
|
+
* // ['text', 'visual', 'audio', 'structured', 'system']
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
declare function getCategories(dimension: 'data' | 'constraints' | 'touchpoints'): string[];
|
|
180
|
+
/**
|
|
181
|
+
* Get statistics about the Atlas
|
|
182
|
+
*
|
|
183
|
+
* @returns Object with counts for each dimension
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const stats = getAtlasStats();
|
|
188
|
+
* console.log(stats);
|
|
189
|
+
* // {
|
|
190
|
+
* // ai: 45,
|
|
191
|
+
* // human: 28,
|
|
192
|
+
* // system: 31,
|
|
193
|
+
* // data: 52,
|
|
194
|
+
* // constraints: 42,
|
|
195
|
+
* // touchpoints: 18,
|
|
196
|
+
* // total: 216
|
|
197
|
+
* // }
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
declare function getAtlasStats(): {
|
|
201
|
+
ai: number;
|
|
202
|
+
human: number;
|
|
203
|
+
system: number;
|
|
204
|
+
data: number;
|
|
205
|
+
constraints: number;
|
|
206
|
+
touchpoints: number;
|
|
207
|
+
layers: number;
|
|
208
|
+
total: number;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Type guards for runtime type checking
|
|
213
|
+
*/
|
|
214
|
+
declare function isAiTask(task: any): task is AiTask;
|
|
215
|
+
declare function isHumanTask(task: any): task is HumanTask;
|
|
216
|
+
declare function isSystemTask(task: any): task is SystemTask;
|
|
217
|
+
/**
|
|
218
|
+
* Validation helpers
|
|
219
|
+
*/
|
|
220
|
+
/**
|
|
221
|
+
* Check if a task ID exists in the Atlas
|
|
222
|
+
*
|
|
223
|
+
* @param taskId - Task ID to check
|
|
224
|
+
* @returns true if the task exists
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```typescript
|
|
228
|
+
* if (isValidTaskId('ai_classify_intent')) {
|
|
229
|
+
* console.log('Valid task!');
|
|
230
|
+
* }
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
declare function isValidTaskId(taskId: string): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Check if an artifact ID exists in the Atlas
|
|
236
|
+
*
|
|
237
|
+
* @param artifactId - Artifact ID to check
|
|
238
|
+
* @returns true if the artifact exists
|
|
239
|
+
*/
|
|
240
|
+
declare function isValidArtifactId(artifactId: string): boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Check if a constraint ID exists in the Atlas
|
|
243
|
+
*
|
|
244
|
+
* @param constraintId - Constraint ID to check
|
|
245
|
+
* @returns true if the constraint exists
|
|
246
|
+
*/
|
|
247
|
+
declare function isValidConstraintId(constraintId: string): boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Check if a touchpoint ID exists in the Atlas
|
|
250
|
+
*
|
|
251
|
+
* @param touchpointId - Touchpoint ID to check
|
|
252
|
+
* @returns true if the touchpoint exists
|
|
253
|
+
*/
|
|
254
|
+
declare function isValidTouchpointId(touchpointId: string): boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Validate a workflow/canvas design
|
|
257
|
+
*
|
|
258
|
+
* @param nodeIds - Array of node IDs used in the workflow
|
|
259
|
+
* @returns Validation result with invalid IDs if any
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* const result = validateWorkflow([
|
|
264
|
+
* 'ai_classify_intent',
|
|
265
|
+
* 'human_review_output',
|
|
266
|
+
* 'system_log_event'
|
|
267
|
+
* ]);
|
|
268
|
+
*
|
|
269
|
+
* if (!result.valid) {
|
|
270
|
+
* console.error('Invalid IDs:', result.invalidIds);
|
|
271
|
+
* }
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
declare function validateWorkflow(nodeIds: string[]): {
|
|
275
|
+
valid: boolean;
|
|
276
|
+
invalidIds: string[];
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Get all valid task IDs
|
|
280
|
+
*
|
|
281
|
+
* @returns Array of all task IDs in the Atlas
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```typescript
|
|
285
|
+
* const allTaskIds = getAllTaskIds();
|
|
286
|
+
* console.log(allTaskIds.length); // e.g., 104
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
declare function getAllTaskIds(): string[];
|
|
290
|
+
/**
|
|
291
|
+
* Get all valid artifact IDs
|
|
292
|
+
*
|
|
293
|
+
* @returns Array of all artifact IDs in the Atlas
|
|
294
|
+
*/
|
|
295
|
+
declare function getAllArtifactIds(): string[];
|
|
296
|
+
/**
|
|
297
|
+
* Get all valid constraint IDs
|
|
298
|
+
*
|
|
299
|
+
* @returns Array of all constraint IDs in the Atlas
|
|
300
|
+
*/
|
|
301
|
+
declare function getAllConstraintIds(): string[];
|
|
302
|
+
/**
|
|
303
|
+
* Get all valid touchpoint IDs
|
|
304
|
+
*
|
|
305
|
+
* @returns Array of all touchpoint IDs in the Atlas
|
|
306
|
+
*/
|
|
307
|
+
declare function getAllTouchpointIds(): string[];
|
|
308
|
+
|
|
309
|
+
export { AI_TASKS, AiTask, CONSTRAINTS, ConstraintDefinition, DATA_ARTIFACTS, DataArtifactDefinition, EXAMPLES, Example, HUMAN_TASKS, HumanTask, LAYERS, Layer, META, Meta, SYSTEM_TASKS, type SearchOptions, type SearchableItem, SystemTask, TOUCHPOINTS, TouchpointDefinition, WORKFLOW_TEMPLATES, WorkflowTemplate, filterArtifactsByCategory, filterByLayer, filterConstraintsByCategory, filterTouchpointsByCategory, getAllArtifactIds, getAllConstraintIds, getAllTaskIds, getAllTouchpointIds, getAtlasStats, getCategories, getLayer, getPattern, getPatternsByDimension, getTasksByLayer, isAiTask, isHumanTask, isSystemTask, isValidArtifactId, isValidConstraintId, isValidTaskId, isValidTouchpointId, searchPatterns, validateWorkflow };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { Meta, Layer, AiTask, HumanTask, SystemTask, DataArtifactDefinition, ConstraintDefinition, TouchpointDefinition, WorkflowTemplate, Example } from './types.js';
|
|
2
|
+
export { ActorCategory, AtlasData, BaseTask, BuilderEdge, BuilderNode, BuilderState, Capability, ConstraintCategory, DataCategory, IOItem, IOSpec, ImplementationNotes, LayerGuidance, Node, NodeAttachment, NodeType, Persona, Project, Relation, Task, TemplateAttachment, TouchpointCategory, UxNotes, WorkflowTaskStep, WorkflowTemplateEdge } from './types.js';
|
|
3
|
+
export { ATLAS_DATA } from './data.js';
|
|
4
|
+
|
|
5
|
+
declare const META: Meta;
|
|
6
|
+
|
|
7
|
+
declare const LAYERS: Layer[];
|
|
8
|
+
|
|
9
|
+
declare const AI_TASKS: AiTask[];
|
|
10
|
+
|
|
11
|
+
declare const HUMAN_TASKS: HumanTask[];
|
|
12
|
+
|
|
13
|
+
declare const SYSTEM_TASKS: SystemTask[];
|
|
14
|
+
|
|
15
|
+
declare const DATA_ARTIFACTS: DataArtifactDefinition[];
|
|
16
|
+
|
|
17
|
+
declare const CONSTRAINTS: ConstraintDefinition[];
|
|
18
|
+
|
|
19
|
+
declare const TOUCHPOINTS: TouchpointDefinition[];
|
|
20
|
+
|
|
21
|
+
declare const WORKFLOW_TEMPLATES: WorkflowTemplate[];
|
|
22
|
+
|
|
23
|
+
declare const EXAMPLES: Example[];
|
|
24
|
+
|
|
25
|
+
type SearchableItem = AiTask | HumanTask | SystemTask | DataArtifactDefinition | ConstraintDefinition | TouchpointDefinition;
|
|
26
|
+
interface SearchOptions {
|
|
27
|
+
/** Dimensions to search within (default: all) */
|
|
28
|
+
dimensions?: Array<'ai' | 'human' | 'system' | 'data' | 'constraints' | 'touchpoints'>;
|
|
29
|
+
/** Case sensitive search (default: false) */
|
|
30
|
+
caseSensitive?: boolean;
|
|
31
|
+
/** Search in description field (default: true) */
|
|
32
|
+
searchDescription?: boolean;
|
|
33
|
+
/** Limit number of results (default: no limit) */
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Search across all Atlas patterns by keyword
|
|
38
|
+
*
|
|
39
|
+
* @param query - Search query string
|
|
40
|
+
* @param options - Search options
|
|
41
|
+
* @returns Array of matching patterns
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* // Search all dimensions
|
|
46
|
+
* const results = searchPatterns('review');
|
|
47
|
+
*
|
|
48
|
+
* // Search only human tasks
|
|
49
|
+
* const humanResults = searchPatterns('review', { dimensions: ['human'] });
|
|
50
|
+
*
|
|
51
|
+
* // Case sensitive search
|
|
52
|
+
* const exact = searchPatterns('API', { caseSensitive: true });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare function searchPatterns(query: string, options?: SearchOptions): SearchableItem[];
|
|
56
|
+
/**
|
|
57
|
+
* Get a specific pattern by ID (slug or target_id)
|
|
58
|
+
*
|
|
59
|
+
* @param id - Pattern ID (slug or target_id)
|
|
60
|
+
* @returns The pattern if found, undefined otherwise
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const task = getPattern('classify-intent');
|
|
65
|
+
* const artifact = getPattern('embedding');
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare function getPattern(id: string): SearchableItem | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Get all patterns from a specific dimension
|
|
71
|
+
*
|
|
72
|
+
* @param dimension - Dimension name
|
|
73
|
+
* @returns Array of patterns in that dimension
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const aiTasks = getPatternsByDimension('ai');
|
|
78
|
+
* const constraints = getPatternsByDimension('constraints');
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare function getPatternsByDimension(dimension: 'ai' | 'human' | 'system' | 'data' | 'constraints' | 'touchpoints'): SearchableItem[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Filter AI/Human/System tasks by layer
|
|
85
|
+
*
|
|
86
|
+
* @param tasks - Array of tasks to filter
|
|
87
|
+
* @param layerId - Layer ID to filter by
|
|
88
|
+
* @returns Filtered tasks
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```typescript
|
|
92
|
+
* import { AI_TASKS, filterByLayer } from '@quietloudlab/ai-interaction-atlas';
|
|
93
|
+
*
|
|
94
|
+
* const inboundTasks = filterByLayer(AI_TASKS, 'layer_inbound');
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare function filterByLayer<T extends AiTask | HumanTask | SystemTask>(tasks: T[], layerId: string): T[];
|
|
98
|
+
/**
|
|
99
|
+
* Get all tasks in a specific layer
|
|
100
|
+
*
|
|
101
|
+
* @param layerId - Layer ID
|
|
102
|
+
* @returns Object containing ai, human, and system tasks in that layer
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```typescript
|
|
106
|
+
* const inbound = getTasksByLayer('layer_inbound');
|
|
107
|
+
* console.log(inbound.ai); // All AI tasks in inbound layer
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
declare function getTasksByLayer(layerId: string): {
|
|
111
|
+
ai: AiTask[];
|
|
112
|
+
human: HumanTask[];
|
|
113
|
+
system: SystemTask[];
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Get a layer definition by ID
|
|
117
|
+
*
|
|
118
|
+
* @param layerId - Layer ID
|
|
119
|
+
* @returns Layer definition or undefined
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const layer = getLayer('layer_inbound');
|
|
124
|
+
* console.log(layer?.name); // "Inbound (Sensing & Structuring)"
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
declare function getLayer(layerId: string): Layer | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Filter data artifacts by category
|
|
130
|
+
*
|
|
131
|
+
* @param category - Category to filter by (e.g., 'text', 'visual', 'audio')
|
|
132
|
+
* @returns Filtered artifacts
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const textArtifacts = filterArtifactsByCategory('text');
|
|
137
|
+
* const visualArtifacts = filterArtifactsByCategory('visual');
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
declare function filterArtifactsByCategory(category: string): DataArtifactDefinition[];
|
|
141
|
+
/**
|
|
142
|
+
* Filter constraints by category
|
|
143
|
+
*
|
|
144
|
+
* @param category - Category to filter by
|
|
145
|
+
* @returns Filtered constraints
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* const qualityConstraints = filterConstraintsByCategory('Quality & Safety');
|
|
150
|
+
* const performanceConstraints = filterConstraintsByCategory('Performance & Resource');
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
declare function filterConstraintsByCategory(category: string): ConstraintDefinition[];
|
|
154
|
+
/**
|
|
155
|
+
* Filter touchpoints by category
|
|
156
|
+
*
|
|
157
|
+
* @param category - Category to filter by
|
|
158
|
+
* @returns Filtered touchpoints
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* const screenTouchpoints = filterTouchpointsByCategory('Screen Interface');
|
|
163
|
+
* const voiceTouchpoints = filterTouchpointsByCategory('Voice/Audio');
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function filterTouchpointsByCategory(category: string): TouchpointDefinition[];
|
|
167
|
+
/**
|
|
168
|
+
* Get all unique categories for a dimension
|
|
169
|
+
*
|
|
170
|
+
* @param dimension - Dimension to get categories from
|
|
171
|
+
* @returns Array of unique category names
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* const artifactCategories = getCategories('data');
|
|
176
|
+
* // ['text', 'visual', 'audio', 'structured', 'system']
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
declare function getCategories(dimension: 'data' | 'constraints' | 'touchpoints'): string[];
|
|
180
|
+
/**
|
|
181
|
+
* Get statistics about the Atlas
|
|
182
|
+
*
|
|
183
|
+
* @returns Object with counts for each dimension
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const stats = getAtlasStats();
|
|
188
|
+
* console.log(stats);
|
|
189
|
+
* // {
|
|
190
|
+
* // ai: 45,
|
|
191
|
+
* // human: 28,
|
|
192
|
+
* // system: 31,
|
|
193
|
+
* // data: 52,
|
|
194
|
+
* // constraints: 42,
|
|
195
|
+
* // touchpoints: 18,
|
|
196
|
+
* // total: 216
|
|
197
|
+
* // }
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
declare function getAtlasStats(): {
|
|
201
|
+
ai: number;
|
|
202
|
+
human: number;
|
|
203
|
+
system: number;
|
|
204
|
+
data: number;
|
|
205
|
+
constraints: number;
|
|
206
|
+
touchpoints: number;
|
|
207
|
+
layers: number;
|
|
208
|
+
total: number;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Type guards for runtime type checking
|
|
213
|
+
*/
|
|
214
|
+
declare function isAiTask(task: any): task is AiTask;
|
|
215
|
+
declare function isHumanTask(task: any): task is HumanTask;
|
|
216
|
+
declare function isSystemTask(task: any): task is SystemTask;
|
|
217
|
+
/**
|
|
218
|
+
* Validation helpers
|
|
219
|
+
*/
|
|
220
|
+
/**
|
|
221
|
+
* Check if a task ID exists in the Atlas
|
|
222
|
+
*
|
|
223
|
+
* @param taskId - Task ID to check
|
|
224
|
+
* @returns true if the task exists
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```typescript
|
|
228
|
+
* if (isValidTaskId('ai_classify_intent')) {
|
|
229
|
+
* console.log('Valid task!');
|
|
230
|
+
* }
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
declare function isValidTaskId(taskId: string): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Check if an artifact ID exists in the Atlas
|
|
236
|
+
*
|
|
237
|
+
* @param artifactId - Artifact ID to check
|
|
238
|
+
* @returns true if the artifact exists
|
|
239
|
+
*/
|
|
240
|
+
declare function isValidArtifactId(artifactId: string): boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Check if a constraint ID exists in the Atlas
|
|
243
|
+
*
|
|
244
|
+
* @param constraintId - Constraint ID to check
|
|
245
|
+
* @returns true if the constraint exists
|
|
246
|
+
*/
|
|
247
|
+
declare function isValidConstraintId(constraintId: string): boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Check if a touchpoint ID exists in the Atlas
|
|
250
|
+
*
|
|
251
|
+
* @param touchpointId - Touchpoint ID to check
|
|
252
|
+
* @returns true if the touchpoint exists
|
|
253
|
+
*/
|
|
254
|
+
declare function isValidTouchpointId(touchpointId: string): boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Validate a workflow/canvas design
|
|
257
|
+
*
|
|
258
|
+
* @param nodeIds - Array of node IDs used in the workflow
|
|
259
|
+
* @returns Validation result with invalid IDs if any
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* const result = validateWorkflow([
|
|
264
|
+
* 'ai_classify_intent',
|
|
265
|
+
* 'human_review_output',
|
|
266
|
+
* 'system_log_event'
|
|
267
|
+
* ]);
|
|
268
|
+
*
|
|
269
|
+
* if (!result.valid) {
|
|
270
|
+
* console.error('Invalid IDs:', result.invalidIds);
|
|
271
|
+
* }
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
declare function validateWorkflow(nodeIds: string[]): {
|
|
275
|
+
valid: boolean;
|
|
276
|
+
invalidIds: string[];
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Get all valid task IDs
|
|
280
|
+
*
|
|
281
|
+
* @returns Array of all task IDs in the Atlas
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```typescript
|
|
285
|
+
* const allTaskIds = getAllTaskIds();
|
|
286
|
+
* console.log(allTaskIds.length); // e.g., 104
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
declare function getAllTaskIds(): string[];
|
|
290
|
+
/**
|
|
291
|
+
* Get all valid artifact IDs
|
|
292
|
+
*
|
|
293
|
+
* @returns Array of all artifact IDs in the Atlas
|
|
294
|
+
*/
|
|
295
|
+
declare function getAllArtifactIds(): string[];
|
|
296
|
+
/**
|
|
297
|
+
* Get all valid constraint IDs
|
|
298
|
+
*
|
|
299
|
+
* @returns Array of all constraint IDs in the Atlas
|
|
300
|
+
*/
|
|
301
|
+
declare function getAllConstraintIds(): string[];
|
|
302
|
+
/**
|
|
303
|
+
* Get all valid touchpoint IDs
|
|
304
|
+
*
|
|
305
|
+
* @returns Array of all touchpoint IDs in the Atlas
|
|
306
|
+
*/
|
|
307
|
+
declare function getAllTouchpointIds(): string[];
|
|
308
|
+
|
|
309
|
+
export { AI_TASKS, AiTask, CONSTRAINTS, ConstraintDefinition, DATA_ARTIFACTS, DataArtifactDefinition, EXAMPLES, Example, HUMAN_TASKS, HumanTask, LAYERS, Layer, META, Meta, SYSTEM_TASKS, type SearchOptions, type SearchableItem, SystemTask, TOUCHPOINTS, TouchpointDefinition, WORKFLOW_TEMPLATES, WorkflowTemplate, filterArtifactsByCategory, filterByLayer, filterConstraintsByCategory, filterTouchpointsByCategory, getAllArtifactIds, getAllConstraintIds, getAllTaskIds, getAllTouchpointIds, getAtlasStats, getCategories, getLayer, getPattern, getPatternsByDimension, getTasksByLayer, isAiTask, isHumanTask, isSystemTask, isValidArtifactId, isValidConstraintId, isValidTaskId, isValidTouchpointId, searchPatterns, validateWorkflow };
|