@efficy/tribecrm-mcp-server 0.3.0 → 0.4.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 +15 -2
- package/dist/index.js +168 -128
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,12 @@ Model Context Protocol (MCP) server for TribeCRM API integration. This server en
|
|
|
24
24
|
- **Entity Type Definitions**: Access schema and field information for entity types
|
|
25
25
|
- **Dynamic Resources**: Entity data exposed as MCP resources for context
|
|
26
26
|
|
|
27
|
+
### Security Modes
|
|
28
|
+
- **Read-Only Mode** (default): Secure by default - only allows querying and retrieving data
|
|
29
|
+
- **Read-Write Mode**: Full access including create, update, and delete operations
|
|
30
|
+
|
|
31
|
+
> ⚠️ **Breaking Change in v0.4.0**: The server now defaults to read-only mode for security. If you need write access, set `TRIBECRM_MODE=read-write` in your configuration.
|
|
32
|
+
|
|
27
33
|
## 📋 Prerequisites
|
|
28
34
|
|
|
29
35
|
- Node.js 18 or higher
|
|
@@ -66,13 +72,16 @@ Add to your Claude Desktop config file:
|
|
|
66
72
|
"TRIBECRM_AUTH_URL": "https://auth.tribecrm.nl",
|
|
67
73
|
"TRIBECRM_CLIENT_ID": "your_client_id",
|
|
68
74
|
"TRIBECRM_CLIENT_SECRET": "your_client_secret",
|
|
69
|
-
"TRIBECRM_ORGANIZATION_ID": "your_org_id"
|
|
75
|
+
"TRIBECRM_ORGANIZATION_ID": "your_org_id",
|
|
76
|
+
"TRIBECRM_MODE": "read-only"
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
```
|
|
75
82
|
|
|
83
|
+
**Note**: Set `TRIBECRM_MODE` to `read-write` if you need to create, update, or delete entities.
|
|
84
|
+
|
|
76
85
|
#### Using Local Installation
|
|
77
86
|
|
|
78
87
|
```json
|
|
@@ -86,7 +95,8 @@ Add to your Claude Desktop config file:
|
|
|
86
95
|
"TRIBECRM_AUTH_URL": "https://auth.tribecrm.nl",
|
|
87
96
|
"TRIBECRM_CLIENT_ID": "your_client_id",
|
|
88
97
|
"TRIBECRM_CLIENT_SECRET": "your_client_secret",
|
|
89
|
-
"TRIBECRM_ORGANIZATION_ID": "your_org_id"
|
|
98
|
+
"TRIBECRM_ORGANIZATION_ID": "your_org_id",
|
|
99
|
+
"TRIBECRM_MODE": "read-only"
|
|
90
100
|
}
|
|
91
101
|
}
|
|
92
102
|
}
|
|
@@ -108,6 +118,9 @@ Add to your Claude Desktop config file:
|
|
|
108
118
|
- `TRIBECRM_CLIENT_ID` (required): OAuth2 Client ID
|
|
109
119
|
- `TRIBECRM_CLIENT_SECRET` (required): OAuth2 Client Secret
|
|
110
120
|
- `TRIBECRM_ORGANIZATION_ID` (optional): Organization UUID for multi-tenant setups
|
|
121
|
+
- `TRIBECRM_MODE` (optional): Server operation mode - `read-only` (default) or `read-write`
|
|
122
|
+
- `read-only`: Only allows queries and data retrieval (get, query operations). Write tools are hidden.
|
|
123
|
+
- `read-write`: Allows full access including create, update, and delete operations.
|
|
111
124
|
|
|
112
125
|
## 📚 Available Tools
|
|
113
126
|
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,13 @@ import dotenv from 'dotenv';
|
|
|
6
6
|
import { TribeCRMClient } from './client.js';
|
|
7
7
|
// Load environment variables
|
|
8
8
|
dotenv.config();
|
|
9
|
+
// Parse and validate mode
|
|
10
|
+
const mode = (process.env.TRIBECRM_MODE || 'read-only');
|
|
11
|
+
if (mode !== 'read-only' && mode !== 'read-write') {
|
|
12
|
+
console.error('Error: TRIBECRM_MODE must be either "read-only" or "read-write"');
|
|
13
|
+
console.error(`Received: ${process.env.TRIBECRM_MODE}`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
9
16
|
// Validate configuration
|
|
10
17
|
const config = {
|
|
11
18
|
apiUrl: process.env.TRIBECRM_API_URL || '',
|
|
@@ -13,11 +20,12 @@ const config = {
|
|
|
13
20
|
clientId: process.env.TRIBECRM_CLIENT_ID || '',
|
|
14
21
|
clientSecret: process.env.TRIBECRM_CLIENT_SECRET || '',
|
|
15
22
|
organizationId: process.env.TRIBECRM_ORGANIZATION_ID,
|
|
23
|
+
mode,
|
|
16
24
|
};
|
|
17
25
|
if (!config.apiUrl || !config.authUrl || !config.clientId || !config.clientSecret) {
|
|
18
26
|
console.error('Error: Missing required environment variables');
|
|
19
27
|
console.error('Required: TRIBECRM_API_URL, TRIBECRM_AUTH_URL, TRIBECRM_CLIENT_ID, TRIBECRM_CLIENT_SECRET');
|
|
20
|
-
console.error('Optional: TRIBECRM_ORGANIZATION_ID');
|
|
28
|
+
console.error('Optional: TRIBECRM_ORGANIZATION_ID, TRIBECRM_MODE');
|
|
21
29
|
process.exit(1);
|
|
22
30
|
}
|
|
23
31
|
// Initialize client
|
|
@@ -25,7 +33,7 @@ const client = new TribeCRMClient(config);
|
|
|
25
33
|
// Initialize MCP server
|
|
26
34
|
const server = new Server({
|
|
27
35
|
name: process.env.MCP_SERVER_NAME || 'tribecrm',
|
|
28
|
-
version: '0.
|
|
36
|
+
version: '0.4.0',
|
|
29
37
|
}, {
|
|
30
38
|
capabilities: {
|
|
31
39
|
tools: {},
|
|
@@ -34,149 +42,153 @@ const server = new Server({
|
|
|
34
42
|
});
|
|
35
43
|
// Register tool handlers
|
|
36
44
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
description: 'Optional $select parameter (e.g., "Name,EmailAddress,PhoneNumber")',
|
|
60
|
-
},
|
|
45
|
+
const allTools = [
|
|
46
|
+
{
|
|
47
|
+
name: 'tribecrm_get_entity',
|
|
48
|
+
description: 'Get a single entity by ID. Common entity types: Relation_Organization, Relation_Person, Activity_Invoice, Product',
|
|
49
|
+
inputSchema: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
properties: {
|
|
52
|
+
entityType: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'OData entity type (e.g., Relation_Organization, Relation_Person, Activity_Invoice)',
|
|
55
|
+
},
|
|
56
|
+
entityId: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'Entity UUID',
|
|
59
|
+
},
|
|
60
|
+
expand: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'Optional $expand parameter (e.g., "Address", "InvoiceAddress($expand=Country)")',
|
|
63
|
+
},
|
|
64
|
+
select: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'Optional $select parameter (e.g., "Name,EmailAddress,PhoneNumber")',
|
|
61
67
|
},
|
|
62
|
-
required: ['entityType', 'entityId'],
|
|
63
68
|
},
|
|
69
|
+
required: ['entityType', 'entityId'],
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'tribecrm_query_entities',
|
|
74
|
+
description: 'Query entities with OData filters. Supports $filter, $select, $expand, $orderby, $top, $skip, $count',
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
entityType: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: 'OData entity type to query',
|
|
81
|
+
},
|
|
82
|
+
filter: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'OData $filter expression (e.g., "Name eq \'John\' or contains(Name,\'tech\')")',
|
|
85
|
+
},
|
|
86
|
+
select: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Comma-separated list of fields to return',
|
|
89
|
+
},
|
|
90
|
+
expand: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'Related entities to expand',
|
|
93
|
+
},
|
|
94
|
+
orderby: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'Field to sort by with optional desc (e.g., "Name desc")',
|
|
97
|
+
},
|
|
98
|
+
top: {
|
|
99
|
+
type: 'number',
|
|
100
|
+
description: 'Number of records to return (pagination)',
|
|
101
|
+
},
|
|
102
|
+
skip: {
|
|
103
|
+
type: 'number',
|
|
104
|
+
description: 'Number of records to skip (pagination)',
|
|
105
|
+
},
|
|
106
|
+
count: {
|
|
107
|
+
type: 'boolean',
|
|
108
|
+
description: 'Include total count in response',
|
|
103
109
|
},
|
|
104
|
-
required: ['entityType'],
|
|
105
110
|
},
|
|
111
|
+
required: ['entityType'],
|
|
106
112
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'tribecrm_create_entity',
|
|
116
|
+
description: 'Create a new entity in TribeCRM',
|
|
117
|
+
inputSchema: {
|
|
118
|
+
type: 'object',
|
|
119
|
+
properties: {
|
|
120
|
+
entityType: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'OData entity type',
|
|
123
|
+
},
|
|
124
|
+
data: {
|
|
125
|
+
type: 'object',
|
|
126
|
+
description: 'Entity data (do not include ID)',
|
|
121
127
|
},
|
|
122
|
-
required: ['entityType', 'data'],
|
|
123
128
|
},
|
|
129
|
+
required: ['entityType', 'data'],
|
|
124
130
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'tribecrm_update_entity',
|
|
134
|
+
description: 'Update an existing entity in TribeCRM',
|
|
135
|
+
inputSchema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
entityType: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'OData entity type',
|
|
141
|
+
},
|
|
142
|
+
entityId: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
description: 'Entity UUID to update',
|
|
145
|
+
},
|
|
146
|
+
data: {
|
|
147
|
+
type: 'object',
|
|
148
|
+
description: 'Updated entity data',
|
|
143
149
|
},
|
|
144
|
-
required: ['entityType', 'entityId', 'data'],
|
|
145
150
|
},
|
|
151
|
+
required: ['entityType', 'entityId', 'data'],
|
|
146
152
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'tribecrm_delete_entity',
|
|
156
|
+
description: 'Delete an entity from TribeCRM',
|
|
157
|
+
inputSchema: {
|
|
158
|
+
type: 'object',
|
|
159
|
+
properties: {
|
|
160
|
+
entityType: {
|
|
161
|
+
type: 'string',
|
|
162
|
+
description: 'OData entity type',
|
|
163
|
+
},
|
|
164
|
+
entityId: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
description: 'Entity UUID to delete',
|
|
161
167
|
},
|
|
162
|
-
required: ['entityType', 'entityId'],
|
|
163
168
|
},
|
|
169
|
+
required: ['entityType', 'entityId'],
|
|
164
170
|
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'tribecrm_get_current_employee',
|
|
174
|
+
description: 'Get information about the currently authenticated employee',
|
|
175
|
+
inputSchema: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
properties: {
|
|
178
|
+
expand: {
|
|
179
|
+
type: 'string',
|
|
180
|
+
description: 'Optional $expand parameter (e.g., "Person")',
|
|
175
181
|
},
|
|
176
182
|
},
|
|
177
183
|
},
|
|
178
|
-
|
|
179
|
-
|
|
184
|
+
},
|
|
185
|
+
];
|
|
186
|
+
// Filter tools based on mode
|
|
187
|
+
const writeTools = ['tribecrm_create_entity', 'tribecrm_update_entity', 'tribecrm_delete_entity'];
|
|
188
|
+
const availableTools = config.mode === 'read-only'
|
|
189
|
+
? allTools.filter(tool => !writeTools.includes(tool.name))
|
|
190
|
+
: allTools;
|
|
191
|
+
return { tools: availableTools };
|
|
180
192
|
});
|
|
181
193
|
// Register call tool handler
|
|
182
194
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
@@ -216,6 +228,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
216
228
|
};
|
|
217
229
|
}
|
|
218
230
|
case 'tribecrm_create_entity': {
|
|
231
|
+
if (config.mode === 'read-only') {
|
|
232
|
+
return {
|
|
233
|
+
content: [{
|
|
234
|
+
type: 'text',
|
|
235
|
+
text: 'Error: Write operations are disabled. Server is running in read-only mode. Set TRIBECRM_MODE=read-write to enable write operations.',
|
|
236
|
+
}],
|
|
237
|
+
isError: true,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
219
240
|
const { entityType, data } = args;
|
|
220
241
|
const entity = await client.createEntity(entityType, data);
|
|
221
242
|
return {
|
|
@@ -228,6 +249,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
228
249
|
};
|
|
229
250
|
}
|
|
230
251
|
case 'tribecrm_update_entity': {
|
|
252
|
+
if (config.mode === 'read-only') {
|
|
253
|
+
return {
|
|
254
|
+
content: [{
|
|
255
|
+
type: 'text',
|
|
256
|
+
text: 'Error: Write operations are disabled. Server is running in read-only mode. Set TRIBECRM_MODE=read-write to enable write operations.',
|
|
257
|
+
}],
|
|
258
|
+
isError: true,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
231
261
|
const { entityType, entityId, data } = args;
|
|
232
262
|
const entity = await client.updateEntity(entityType, entityId, data);
|
|
233
263
|
return {
|
|
@@ -240,6 +270,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
240
270
|
};
|
|
241
271
|
}
|
|
242
272
|
case 'tribecrm_delete_entity': {
|
|
273
|
+
if (config.mode === 'read-only') {
|
|
274
|
+
return {
|
|
275
|
+
content: [{
|
|
276
|
+
type: 'text',
|
|
277
|
+
text: 'Error: Write operations are disabled. Server is running in read-only mode. Set TRIBECRM_MODE=read-write to enable write operations.',
|
|
278
|
+
}],
|
|
279
|
+
isError: true,
|
|
280
|
+
};
|
|
281
|
+
}
|
|
243
282
|
const { entityType, entityId } = args;
|
|
244
283
|
await client.deleteEntity(entityType, entityId);
|
|
245
284
|
return {
|
|
@@ -327,9 +366,10 @@ server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
|
327
366
|
async function main() {
|
|
328
367
|
const transport = new StdioServerTransport();
|
|
329
368
|
await server.connect(transport);
|
|
330
|
-
console.error('TribeCRM MCP Server v0.
|
|
369
|
+
console.error('TribeCRM MCP Server v0.4.0 running on stdio');
|
|
331
370
|
console.error('Connected to:', config.apiUrl);
|
|
332
371
|
console.error('Auth URL:', config.authUrl);
|
|
372
|
+
console.error('Mode:', config.mode);
|
|
333
373
|
}
|
|
334
374
|
main().catch((error) => {
|
|
335
375
|
console.error('Server error:', error);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,6BAA6B;AAC7B,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,yBAAyB;AACzB,MAAM,MAAM,GAAmB;IAC7B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;IAC1C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,EAAE;IAC5C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,EAAE;IAC9C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,EAAE;IACtD,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE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AAC,CAAC;IAClD,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,2BAA2B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,eAAe;AACf,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;IAC7D,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9C,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;CACnC;AAED,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
package/package.json
CHANGED