trckable 0.6.4 → 0.7.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.
Files changed (2) hide show
  1. package/dist/mcp.d.ts +87 -87
  2. package/package.json +3 -3
package/dist/mcp.d.ts CHANGED
@@ -19,8 +19,8 @@ export declare function createMcpServer(opts: McpOptions): {
19
19
  inputSchema: {
20
20
  type: string;
21
21
  properties: {
22
- limit?: undefined;
23
22
  site?: undefined;
23
+ limit?: undefined;
24
24
  since?: undefined;
25
25
  };
26
26
  additionalProperties: boolean;
@@ -32,33 +32,33 @@ export declare function createMcpServer(opts: McpOptions): {
32
32
  type: string;
33
33
  properties: {
34
34
  site: {
35
- readonly type: 'string';
36
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
35
+ readonly type: "string";
36
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
37
37
  };
38
38
  period: {
39
- readonly type: 'string';
39
+ readonly type: "string";
40
40
  readonly enum: readonly ["today", "yesterday", "7d", "14d", "28d", "30d", "90d", "12mo", "wtd", "lastweek", "mtd", "lastmonth", "ytd", "lastyear"];
41
- readonly description: 'Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.';
41
+ readonly description: "Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.";
42
42
  };
43
43
  from: {
44
- readonly type: 'string';
45
- readonly description: 'Start date YYYY-MM-DD (inclusive, site timezone). Use with to.';
44
+ readonly type: "string";
45
+ readonly description: "Start date YYYY-MM-DD (inclusive, site timezone). Use with to.";
46
46
  };
47
47
  to: {
48
- readonly type: 'string';
49
- readonly description: 'End date YYYY-MM-DD (inclusive).';
48
+ readonly type: "string";
49
+ readonly description: "End date YYYY-MM-DD (inclusive).";
50
50
  };
51
51
  compare: {
52
- readonly type: 'string';
53
- readonly enum: readonly ['previous', 'year', 'none'];
54
- readonly description: 'Compare with the previous period of equal length (default) or the same period last year.';
52
+ readonly type: "string";
53
+ readonly enum: readonly ["previous", "year", "none"];
54
+ readonly description: "Compare with the previous period of equal length (default) or the same period last year.";
55
55
  };
56
56
  filters: {
57
- readonly type: 'array';
57
+ readonly type: "array";
58
58
  readonly items: {
59
- readonly type: 'string';
59
+ readonly type: "string";
60
60
  };
61
- readonly description: 'Only count visits matching all filters, each "dimension:value". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.';
61
+ readonly description: "Only count visits matching all filters, each \"dimension:value\". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.";
62
62
  };
63
63
  limit?: undefined;
64
64
  since?: undefined;
@@ -71,44 +71,44 @@ export declare function createMcpServer(opts: McpOptions): {
71
71
  inputSchema: {
72
72
  type: string;
73
73
  properties: {
74
+ dimension: {
75
+ type: string;
76
+ enum: string[];
77
+ description: string;
78
+ };
79
+ limit: {
80
+ type: string;
81
+ minimum: number;
82
+ maximum: number;
83
+ };
74
84
  site: {
75
- readonly type: 'string';
76
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
85
+ readonly type: "string";
86
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
77
87
  };
78
88
  period: {
79
- readonly type: 'string';
89
+ readonly type: "string";
80
90
  readonly enum: readonly ["today", "yesterday", "7d", "14d", "28d", "30d", "90d", "12mo", "wtd", "lastweek", "mtd", "lastmonth", "ytd", "lastyear"];
81
- readonly description: 'Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.';
91
+ readonly description: "Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.";
82
92
  };
83
93
  from: {
84
- readonly type: 'string';
85
- readonly description: 'Start date YYYY-MM-DD (inclusive, site timezone). Use with to.';
94
+ readonly type: "string";
95
+ readonly description: "Start date YYYY-MM-DD (inclusive, site timezone). Use with to.";
86
96
  };
87
97
  to: {
88
- readonly type: 'string';
89
- readonly description: 'End date YYYY-MM-DD (inclusive).';
98
+ readonly type: "string";
99
+ readonly description: "End date YYYY-MM-DD (inclusive).";
90
100
  };
91
101
  compare: {
92
- readonly type: 'string';
93
- readonly enum: readonly ['previous', 'year', 'none'];
94
- readonly description: 'Compare with the previous period of equal length (default) or the same period last year.';
102
+ readonly type: "string";
103
+ readonly enum: readonly ["previous", "year", "none"];
104
+ readonly description: "Compare with the previous period of equal length (default) or the same period last year.";
95
105
  };
96
106
  filters: {
97
- readonly type: 'array';
107
+ readonly type: "array";
98
108
  readonly items: {
99
- readonly type: 'string';
109
+ readonly type: "string";
100
110
  };
101
- readonly description: 'Only count visits matching all filters, each "dimension:value". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.';
102
- };
103
- dimension: {
104
- type: string;
105
- enum: string[];
106
- description: string;
107
- };
108
- limit: {
109
- type: string;
110
- minimum: number;
111
- maximum: number;
111
+ readonly description: "Only count visits matching all filters, each \"dimension:value\". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.";
112
112
  };
113
113
  since?: undefined;
114
114
  };
@@ -120,44 +120,44 @@ export declare function createMcpServer(opts: McpOptions): {
120
120
  inputSchema: {
121
121
  type: string;
122
122
  properties: {
123
+ kind: {
124
+ type: string;
125
+ enum: string[];
126
+ description: string;
127
+ };
128
+ limit: {
129
+ type: string;
130
+ minimum: number;
131
+ maximum: number;
132
+ };
123
133
  site: {
124
- readonly type: 'string';
125
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
134
+ readonly type: "string";
135
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
126
136
  };
127
137
  period: {
128
- readonly type: 'string';
138
+ readonly type: "string";
129
139
  readonly enum: readonly ["today", "yesterday", "7d", "14d", "28d", "30d", "90d", "12mo", "wtd", "lastweek", "mtd", "lastmonth", "ytd", "lastyear"];
130
- readonly description: 'Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.';
140
+ readonly description: "Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.";
131
141
  };
132
142
  from: {
133
- readonly type: 'string';
134
- readonly description: 'Start date YYYY-MM-DD (inclusive, site timezone). Use with to.';
143
+ readonly type: "string";
144
+ readonly description: "Start date YYYY-MM-DD (inclusive, site timezone). Use with to.";
135
145
  };
136
146
  to: {
137
- readonly type: 'string';
138
- readonly description: 'End date YYYY-MM-DD (inclusive).';
147
+ readonly type: "string";
148
+ readonly description: "End date YYYY-MM-DD (inclusive).";
139
149
  };
140
150
  compare: {
141
- readonly type: 'string';
142
- readonly enum: readonly ['previous', 'year', 'none'];
143
- readonly description: 'Compare with the previous period of equal length (default) or the same period last year.';
151
+ readonly type: "string";
152
+ readonly enum: readonly ["previous", "year", "none"];
153
+ readonly description: "Compare with the previous period of equal length (default) or the same period last year.";
144
154
  };
145
155
  filters: {
146
- readonly type: 'array';
156
+ readonly type: "array";
147
157
  readonly items: {
148
- readonly type: 'string';
158
+ readonly type: "string";
149
159
  };
150
- readonly description: 'Only count visits matching all filters, each "dimension:value". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.';
151
- };
152
- kind: {
153
- type: string;
154
- enum: string[];
155
- description: string;
156
- };
157
- limit: {
158
- type: string;
159
- minimum: number;
160
- maximum: number;
160
+ readonly description: "Only count visits matching all filters, each \"dimension:value\". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.";
161
161
  };
162
162
  since?: undefined;
163
163
  };
@@ -169,39 +169,39 @@ export declare function createMcpServer(opts: McpOptions): {
169
169
  inputSchema: {
170
170
  type: string;
171
171
  properties: {
172
+ limit: {
173
+ type: string;
174
+ minimum: number;
175
+ maximum: number;
176
+ };
172
177
  site: {
173
- readonly type: 'string';
174
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
178
+ readonly type: "string";
179
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
175
180
  };
176
181
  period: {
177
- readonly type: 'string';
182
+ readonly type: "string";
178
183
  readonly enum: readonly ["today", "yesterday", "7d", "14d", "28d", "30d", "90d", "12mo", "wtd", "lastweek", "mtd", "lastmonth", "ytd", "lastyear"];
179
- readonly description: 'Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.';
184
+ readonly description: "Date range relative to today in the site timezone. 7d/30d/… include today; wtd/mtd/ytd = week/month/year to date. Default 30d. Ignored when from/to are set.";
180
185
  };
181
186
  from: {
182
- readonly type: 'string';
183
- readonly description: 'Start date YYYY-MM-DD (inclusive, site timezone). Use with to.';
187
+ readonly type: "string";
188
+ readonly description: "Start date YYYY-MM-DD (inclusive, site timezone). Use with to.";
184
189
  };
185
190
  to: {
186
- readonly type: 'string';
187
- readonly description: 'End date YYYY-MM-DD (inclusive).';
191
+ readonly type: "string";
192
+ readonly description: "End date YYYY-MM-DD (inclusive).";
188
193
  };
189
194
  compare: {
190
- readonly type: 'string';
191
- readonly enum: readonly ['previous', 'year', 'none'];
192
- readonly description: 'Compare with the previous period of equal length (default) or the same period last year.';
195
+ readonly type: "string";
196
+ readonly enum: readonly ["previous", "year", "none"];
197
+ readonly description: "Compare with the previous period of equal length (default) or the same period last year.";
193
198
  };
194
199
  filters: {
195
- readonly type: 'array';
200
+ readonly type: "array";
196
201
  readonly items: {
197
- readonly type: 'string';
202
+ readonly type: "string";
198
203
  };
199
- readonly description: 'Only count visits matching all filters, each "dimension:value". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.';
200
- };
201
- limit: {
202
- type: string;
203
- minimum: number;
204
- maximum: number;
204
+ readonly description: "Only count visits matching all filters, each \"dimension:value\". Dimensions: channel (Direct, Search, Social, Referral, AI, Email, Paid), referrer, campaign, entry_page, exit_page, page, country (ISO code, e.g. DE), device, browser, os, goal.";
205
205
  };
206
206
  since?: undefined;
207
207
  };
@@ -214,8 +214,8 @@ export declare function createMcpServer(opts: McpOptions): {
214
214
  type: string;
215
215
  properties: {
216
216
  site: {
217
- readonly type: 'string';
218
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
217
+ readonly type: "string";
218
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
219
219
  };
220
220
  limit: {
221
221
  type: string;
@@ -232,15 +232,15 @@ export declare function createMcpServer(opts: McpOptions): {
232
232
  inputSchema: {
233
233
  type: string;
234
234
  properties: {
235
- limit?: undefined;
236
235
  site: {
237
- readonly type: 'string';
238
- readonly description: 'Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.';
236
+ readonly type: "string";
237
+ readonly description: "Site domain (e.g. example.com) or id. Optional when there is only one site; call trckable_sites to list them.";
239
238
  };
240
239
  since: {
241
240
  type: string;
242
241
  description: string;
243
242
  };
243
+ limit?: undefined;
244
244
  };
245
245
  additionalProperties: boolean;
246
246
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trckable",
3
- "version": "0.6.4",
3
+ "version": "0.7.0",
4
4
  "description": "Tiny, free and open-source web analytics that shows which traffic pays. Peekaboo. Every visit counted.",
5
5
  "keywords": [
6
6
  "analytics",
@@ -74,7 +74,7 @@
74
74
  "happy-dom": "^20.14.5",
75
75
  "react": "^19.3.0",
76
76
  "react-dom": "^19.3.0",
77
- "typescript": "^7.0.2",
78
- "vitest": "^5.0.2"
77
+ "typescript": "^5.9.3",
78
+ "vitest": "^5.0.3"
79
79
  }
80
80
  }