@agentistics/mcp 2.101.2 → 2.103.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.
@@ -60,6 +60,7 @@ function isLocalModelId(modelId) {
60
60
  var LOCAL_MODEL_PRICE = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, cacheWrite1h: 0 };
61
61
 
62
62
  // ../core/src/types.ts
63
+ var NATIVE_HARNESS_ID = "agentistics";
63
64
  var HARNESS_CAPABILITIES = {
64
65
  claude: { tokens: true, cost: true, model: true, tools: true, agents: true, gitLines: true, dynamicWorkflows: true, activeTime: true, contextWindow: true, compaction: true, skills: true, mcpServers: true },
65
66
  codex: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: true, contextWindow: true, compaction: false, skills: false, mcpServers: false },
@@ -67,7 +68,8 @@ var HARNESS_CAPABILITIES = {
67
68
  copilot: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: true, dynamicWorkflows: false, activeTime: true, contextWindow: false, compaction: false, skills: false, mcpServers: false },
68
69
  antigravity: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: true, contextWindow: true, compaction: false, skills: false, mcpServers: false },
69
70
  kimi: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: true, contextWindow: true, compaction: false, skills: false, mcpServers: true },
70
- opencode: { tokens: false, cost: false, model: false, tools: false, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: false, contextWindow: false, compaction: false, skills: false, mcpServers: false }
71
+ opencode: { tokens: false, cost: false, model: false, tools: false, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: false, contextWindow: false, compaction: false, skills: false, mcpServers: false },
72
+ agentistics: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: false, contextWindow: false, compaction: false, skills: false, mcpServers: false }
71
73
  };
72
74
  var HARNESS_SORT = {
73
75
  claude: 0,
@@ -79,6 +81,7 @@ var HARNESS_SORT = {
79
81
  opencode: 6
80
82
  };
81
83
  var HARNESS_ORDER = Object.keys(HARNESS_SORT).sort((a, b) => HARNESS_SORT[a] - HARNESS_SORT[b]);
84
+ var SURFACE_HARNESS_ORDER = [...HARNESS_ORDER, NATIVE_HARNESS_ID];
82
85
  function canonicalProjectPath(path) {
83
86
  if (!path)
84
87
  return path;
@@ -122,11 +125,9 @@ var BASE_MODEL_PRICING = {
122
125
  };
123
126
  var MODEL_PRICING = Object.fromEntries(Object.entries(BASE_MODEL_PRICING).map(([id, p]) => [id, { ...p, cacheWrite1h: p.input * 2 }]));
124
127
  var UNPRICED_PRICE = Object.freeze({ input: 0, output: 0, cacheRead: 0, cacheWrite: 0, cacheWrite1h: 0 });
125
- function getModelPrice(modelId) {
128
+ function pricingKey(modelId) {
126
129
  if (MODEL_PRICING[modelId])
127
- return MODEL_PRICING[modelId];
128
- if (isLocalModelId(modelId))
129
- return LOCAL_MODEL_PRICE;
130
+ return modelId;
130
131
  const id = String(modelId ?? "");
131
132
  let forwardKey = "";
132
133
  let reverseKey = "";
@@ -139,7 +140,14 @@ function getModelPrice(modelId) {
139
140
  reverseKey = key;
140
141
  }
141
142
  }
142
- const hit = forwardKey || reverseKey;
143
+ return forwardKey || reverseKey || null;
144
+ }
145
+ function getModelPrice(modelId) {
146
+ if (MODEL_PRICING[modelId])
147
+ return MODEL_PRICING[modelId];
148
+ if (isLocalModelId(modelId))
149
+ return LOCAL_MODEL_PRICE;
150
+ const hit = pricingKey(modelId);
143
151
  return hit ? MODEL_PRICING[hit] : UNPRICED_PRICE;
144
152
  }
145
153
  var isUnpricedModel = (modelId) => getModelPrice(modelId) === UNPRICED_PRICE;
@@ -273,6 +281,148 @@ function redactSecrets(text) {
273
281
  out = out.replace(BEARER, (whole, prefix, value) => guarded(whole, prefix, value));
274
282
  return out;
275
283
  }
284
+ // ../core/src/canonical/event.ts
285
+ var REQUIRED_EVENT_TYPES = [
286
+ "session.started",
287
+ "session.ended",
288
+ "run.started",
289
+ "run.ended",
290
+ "agent.started",
291
+ "agent.ended",
292
+ "model.invoked",
293
+ "model.completed",
294
+ "model.failed",
295
+ "tool.requested",
296
+ "tool.completed",
297
+ "tool.failed"
298
+ ];
299
+ var EVENT_TYPES = [
300
+ ...REQUIRED_EVENT_TYPES,
301
+ "model.started",
302
+ "model.delta",
303
+ "tool.approved",
304
+ "tool.denied",
305
+ "tool.progress",
306
+ "tool.executed",
307
+ "mcp.requested",
308
+ "mcp.completed",
309
+ "browser.session.started",
310
+ "browser.tab.created",
311
+ "browser.tab.focused",
312
+ "browser.navigation",
313
+ "browser.click",
314
+ "browser.input",
315
+ "browser.scroll",
316
+ "browser.screenshot",
317
+ "browser.download",
318
+ "browser.tab.closed",
319
+ "context.compacted",
320
+ "context.window.observed",
321
+ "context.recalled",
322
+ "policy.requested",
323
+ "policy.approved",
324
+ "policy.denied",
325
+ "attention.raised",
326
+ "attention.cleared",
327
+ "alm.task.created",
328
+ "alm.task.updated",
329
+ "alm.task.completed",
330
+ "alm.evidence.attached",
331
+ "process.started",
332
+ "process.ended",
333
+ "turn.started",
334
+ "turn.ended",
335
+ "session.model.changed",
336
+ "memory.noted",
337
+ "memory.forgotten",
338
+ "artifact.created",
339
+ "artifact.versioned",
340
+ "artifact.blocked",
341
+ "artifact.pinned",
342
+ "artifact.unpinned",
343
+ "artifact.expired",
344
+ "structured.attempt",
345
+ "structured.exhausted",
346
+ "completion.blocked",
347
+ "completion.released"
348
+ ];
349
+ var EVENT_TYPE_SET = new Set(EVENT_TYPES);
350
+
351
+ // ../core/src/canonical/event-id.ts
352
+ var PROVIDER_KEYED_TYPES = [
353
+ "model.invoked",
354
+ "model.started",
355
+ "model.delta",
356
+ "model.completed",
357
+ "model.failed"
358
+ ];
359
+ var PROVIDER_KEYED = new Set(PROVIDER_KEYED_TYPES);
360
+ var K = new Uint32Array([
361
+ 1116352408,
362
+ 1899447441,
363
+ 3049323471,
364
+ 3921009573,
365
+ 961987163,
366
+ 1508970993,
367
+ 2453635748,
368
+ 2870763221,
369
+ 3624381080,
370
+ 310598401,
371
+ 607225278,
372
+ 1426881987,
373
+ 1925078388,
374
+ 2162078206,
375
+ 2614888103,
376
+ 3248222580,
377
+ 3835390401,
378
+ 4022224774,
379
+ 264347078,
380
+ 604807628,
381
+ 770255983,
382
+ 1249150122,
383
+ 1555081692,
384
+ 1996064986,
385
+ 2554220882,
386
+ 2821834349,
387
+ 2952996808,
388
+ 3210313671,
389
+ 3336571891,
390
+ 3584528711,
391
+ 113926993,
392
+ 338241895,
393
+ 666307205,
394
+ 773529912,
395
+ 1294757372,
396
+ 1396182291,
397
+ 1695183700,
398
+ 1986661051,
399
+ 2177026350,
400
+ 2456956037,
401
+ 2730485921,
402
+ 2820302411,
403
+ 3259730800,
404
+ 3345764771,
405
+ 3516065817,
406
+ 3600352804,
407
+ 4094571909,
408
+ 275423344,
409
+ 430227734,
410
+ 506948616,
411
+ 659060556,
412
+ 883997877,
413
+ 958139571,
414
+ 1322822218,
415
+ 1537002063,
416
+ 1747873779,
417
+ 1955562222,
418
+ 2024104815,
419
+ 2227730452,
420
+ 2361852424,
421
+ 2428436474,
422
+ 2756734187,
423
+ 3204031479,
424
+ 3329325298
425
+ ]);
276
426
  // ../core/src/projection-surfaces.ts
277
427
  var PROJECTION_SURFACES_ENV = "AGENTISTICS_PROJECTIONS_SURFACES";
278
428
  var PROJECTION_SURFACE_IDS = ["mcp", "vscode", "tui", "web"];
@@ -633,134 +783,6 @@ var IMAGE_EXTENSIONS = new Set(["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg
633
783
  // ../core/src/pasteSanitize.ts
634
784
  var BRACKETED_PASTE_START = "\x1B[200~";
635
785
  var MARKER_LEN = BRACKETED_PASTE_START.length;
636
- // ../core/src/canonical/event.ts
637
- var REQUIRED_EVENT_TYPES = [
638
- "session.started",
639
- "session.ended",
640
- "run.started",
641
- "run.ended",
642
- "agent.started",
643
- "agent.ended",
644
- "model.invoked",
645
- "model.completed",
646
- "model.failed",
647
- "tool.requested",
648
- "tool.completed",
649
- "tool.failed"
650
- ];
651
- var EVENT_TYPES = [
652
- ...REQUIRED_EVENT_TYPES,
653
- "model.started",
654
- "model.delta",
655
- "tool.approved",
656
- "tool.denied",
657
- "tool.progress",
658
- "tool.executed",
659
- "mcp.requested",
660
- "mcp.completed",
661
- "browser.session.started",
662
- "browser.tab.created",
663
- "browser.tab.focused",
664
- "browser.navigation",
665
- "browser.click",
666
- "browser.input",
667
- "browser.scroll",
668
- "browser.screenshot",
669
- "browser.download",
670
- "browser.tab.closed",
671
- "context.compacted",
672
- "context.window.observed",
673
- "context.recalled",
674
- "policy.requested",
675
- "policy.approved",
676
- "policy.denied",
677
- "attention.raised",
678
- "attention.cleared",
679
- "alm.task.created",
680
- "alm.task.updated",
681
- "alm.task.completed",
682
- "alm.evidence.attached",
683
- "process.started",
684
- "process.ended",
685
- "turn.started",
686
- "turn.ended"
687
- ];
688
- var EVENT_TYPE_SET = new Set(EVENT_TYPES);
689
- // ../core/src/canonical/event-id.ts
690
- var PROVIDER_KEYED_TYPES = [
691
- "model.invoked",
692
- "model.started",
693
- "model.delta",
694
- "model.completed",
695
- "model.failed"
696
- ];
697
- var PROVIDER_KEYED = new Set(PROVIDER_KEYED_TYPES);
698
- var K = new Uint32Array([
699
- 1116352408,
700
- 1899447441,
701
- 3049323471,
702
- 3921009573,
703
- 961987163,
704
- 1508970993,
705
- 2453635748,
706
- 2870763221,
707
- 3624381080,
708
- 310598401,
709
- 607225278,
710
- 1426881987,
711
- 1925078388,
712
- 2162078206,
713
- 2614888103,
714
- 3248222580,
715
- 3835390401,
716
- 4022224774,
717
- 264347078,
718
- 604807628,
719
- 770255983,
720
- 1249150122,
721
- 1555081692,
722
- 1996064986,
723
- 2554220882,
724
- 2821834349,
725
- 2952996808,
726
- 3210313671,
727
- 3336571891,
728
- 3584528711,
729
- 113926993,
730
- 338241895,
731
- 666307205,
732
- 773529912,
733
- 1294757372,
734
- 1396182291,
735
- 1695183700,
736
- 1986661051,
737
- 2177026350,
738
- 2456956037,
739
- 2730485921,
740
- 2820302411,
741
- 3259730800,
742
- 3345764771,
743
- 3516065817,
744
- 3600352804,
745
- 4094571909,
746
- 275423344,
747
- 430227734,
748
- 506948616,
749
- 659060556,
750
- 883997877,
751
- 958139571,
752
- 1322822218,
753
- 1537002063,
754
- 1747873779,
755
- 1955562222,
756
- 2024104815,
757
- 2227730452,
758
- 2361852424,
759
- 2428436474,
760
- 2756734187,
761
- 3204031479,
762
- 3329325298
763
- ]);
764
786
  // ../core/src/canonical/capabilities.ts
765
787
  var CAPABILITY_METRICS = Object.keys(HARNESS_CAPABILITIES.claude);
766
788
  var SUPPORTED_EXACTNESS = {
@@ -1046,8 +1068,8 @@ function statsCacheTotals(sc) {
1046
1068
  function harnessParam() {
1047
1069
  return {
1048
1070
  type: "string",
1049
- enum: ["all", ...HARNESS_ORDER],
1050
- description: `Scope to one harness (${HARNESS_ORDER.join(" | ")}), or 'all' (default) for the unified view across every harness.`
1071
+ enum: ["all", ...SURFACE_HARNESS_ORDER],
1072
+ description: `Scope to one harness (${SURFACE_HARNESS_ORDER.join(" | ")}), or 'all' (default) for the unified view across every harness.`
1051
1073
  };
1052
1074
  }
1053
1075
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentistics/mcp",
3
- "version": "2.101.2",
3
+ "version": "2.103.0",
4
4
  "description": "Agentistics MCP server — Claude Code analytics for Claude Desktop and Claude Code",
5
5
  "type": "module",
6
6
  "main": "./dist/agentistics-mcp.js",