@agentistics/mcp 2.63.0 → 2.64.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/dist/agentistics-mcp.js +57 -4
- package/package.json +1 -1
package/dist/agentistics-mcp.js
CHANGED
|
@@ -30,7 +30,8 @@ var HARNESS_CAPABILITIES = {
|
|
|
30
30
|
gemini: { tokens: true, cost: true, model: true, tools: true, agents: false, gitLines: false, dynamicWorkflows: false, activeTime: true, contextWindow: false, compaction: false, skills: false, mcpServers: false },
|
|
31
31
|
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 },
|
|
32
32
|
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 },
|
|
33
|
-
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 }
|
|
33
|
+
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 },
|
|
34
|
+
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 }
|
|
34
35
|
};
|
|
35
36
|
var HARNESS_SORT = {
|
|
36
37
|
claude: 0,
|
|
@@ -38,7 +39,8 @@ var HARNESS_SORT = {
|
|
|
38
39
|
gemini: 2,
|
|
39
40
|
copilot: 3,
|
|
40
41
|
antigravity: 4,
|
|
41
|
-
kimi: 5
|
|
42
|
+
kimi: 5,
|
|
43
|
+
opencode: 6
|
|
42
44
|
};
|
|
43
45
|
var HARNESS_ORDER = Object.keys(HARNESS_SORT).sort((a, b) => HARNESS_SORT[a] - HARNESS_SORT[b]);
|
|
44
46
|
var BASE_MODEL_PRICING = {
|
|
@@ -412,7 +414,8 @@ var HARNESS_MODELS = {
|
|
|
412
414
|
{ id: "gemini-3.1-pro-low", label: "Gemini 3.1 Pro (Low)", verifiedAt: "2026-09-04", source: "agy models (agy 1.1.25)" },
|
|
413
415
|
{ id: "gemini-3.1-pro-high", label: "Gemini 3.1 Pro (High)", verifiedAt: "2026-09-04", source: "agy models (agy 1.1.25)" }
|
|
414
416
|
],
|
|
415
|
-
kimi: []
|
|
417
|
+
kimi: [],
|
|
418
|
+
opencode: []
|
|
416
419
|
};
|
|
417
420
|
var SPAWN_SPECS_MODEL_IDS = Object.fromEntries(Object.entries(HARNESS_MODELS).map(([h, opts]) => [h, opts.map((o) => o.id)]));
|
|
418
421
|
// ../core/src/attachments.ts
|
|
@@ -586,6 +589,12 @@ var LEGACY_FALSE_NOTES = {
|
|
|
586
589
|
agents: { state: "not_supported", reason: "Kimi's agent tree is merged into one set of session totals with no per-agent breakdown.", source: `${MASTER} §5` },
|
|
587
590
|
gitLines: { state: "not_supported", reason: "Kimi records the Edit/Write strings but no diff counters.", source: `${TYPES} HARNESS_CAPABILITIES entry comment (kimi)` },
|
|
588
591
|
compaction: COMPACTION
|
|
592
|
+
},
|
|
593
|
+
opencode: {
|
|
594
|
+
agents: { state: "not_supported", reason: "Every real session had parent_id/workspace_id null; the schema's nested-session columns exist but were never observed populated, so every session folds into one main agent with no per-agent breakdown.", source: "integrations/opencode/index.ts header (measured on the real store, 2 sessions)" },
|
|
595
|
+
gitLines: { state: "not_supported", reason: "The session table carries git-shaped summary columns but both real sessions show 0, and no tool part carries a diff field, so this is not wired into the replay.", source: "integrations/opencode/replay.ts header (measured on the real store)" },
|
|
596
|
+
dynamicWorkflows: { state: "not_supported", reason: "opencode has no equivalent of the multi-agent orchestration tool this flag gates.", source: `${TYPES} HarnessCapabilities.dynamicWorkflows docstring` },
|
|
597
|
+
mcpServers: { state: "not_supported", reason: "No mcp__-shaped (or any MCP-prefixed) tool name was observed among the real tool parts measured (bash, write, read, skill), so this replay never has a server to read back.", source: "integrations/opencode/replay.ts header (measured on the real store)" }
|
|
589
598
|
}
|
|
590
599
|
};
|
|
591
600
|
var NO_RECORDED_REASON = "no reason recorded — needs review";
|
|
@@ -612,7 +621,51 @@ function fromLegacyCapabilities(legacy, notes = LEGACY_FALSE_NOTES) {
|
|
|
612
621
|
}
|
|
613
622
|
return result;
|
|
614
623
|
}
|
|
615
|
-
var
|
|
624
|
+
var LEGACY_CAPABILITY_STATES = fromLegacyCapabilities(HARNESS_CAPABILITIES);
|
|
625
|
+
var P2 = "docs/superpowers/specs/2026-09-19-runtime-p2-adapters-import.md §3";
|
|
626
|
+
var REPLAY = (h) => `packages/server/server/integrations/${h}/ + projections/differential-${h}.ts (A3)`;
|
|
627
|
+
var CAPABILITY_REFINEMENTS = {
|
|
628
|
+
codex: {
|
|
629
|
+
tokens: { source: REPLAY("codex"), state: { state: "partial", exactness: "exact", limit: "three of four counters: the cache-write counter is not read (newer Codex writes cache_write_input_tokens, whose relation to input_tokens is unverified); usage is a per-turn delta of cumulative totals, not per response." } },
|
|
630
|
+
cost: { source: REPLAY("codex"), state: { state: "partial", exactness: "estimated", limit: "priced from the table over three of four counters; the unread cache-write counter is not priced." } }
|
|
631
|
+
},
|
|
632
|
+
gemini: {
|
|
633
|
+
tokens: { source: `${P2}; ${REPLAY("gemini")}`, state: { state: "partial", exactness: "exact", limit: "rich-JSON chat shape only; the append-journal shape carries per-record tokens that are deliberately not read until the owner decides (it changes money on every cost surface)." } },
|
|
634
|
+
cost: { source: `${P2}; ${REPLAY("gemini")}`, state: { state: "partial", exactness: "estimated", limit: "rich-JSON chat shape only, priced from the table; see tokens." } },
|
|
635
|
+
model: { source: `${P2}; ${REPLAY("gemini")}`, state: { state: "partial", exactness: "exact", limit: "rich-JSON chat shape only; the append-journal shape is not read for its model." } },
|
|
636
|
+
tools: { source: `${P2}; ${REPLAY("gemini")}`, state: { state: "partial", exactness: "exact", limit: "rich-JSON chat shape only; the append-journal shape is not read for tool calls." } }
|
|
637
|
+
},
|
|
638
|
+
copilot: {
|
|
639
|
+
tokens: { source: `${P2}; ${REPLAY("copilot")}`, state: { state: "partial", exactness: "exact", limit: "only at session.shutdown, one cumulative report per model; a crashed session has none (absent, never zero)." } },
|
|
640
|
+
cost: { source: `${P2}; ${REPLAY("copilot")}`, state: { state: "partial", exactness: "estimated", limit: "priced from the table over the shutdown-only totals; see tokens." } },
|
|
641
|
+
gitLines: { source: `${P2}; ${REPLAY("copilot")}`, state: { state: "partial", exactness: "exact", limit: "one aggregate for the whole session at shutdown (codeChanges); no per-call attribution." } }
|
|
642
|
+
},
|
|
643
|
+
kimi: {
|
|
644
|
+
agents: { source: `${P2}; ${REPLAY("kimi")}`, state: { state: "partial", exactness: "exact", limit: "the canonical replay emits one Agent per agent id with its own usage; the legacy SessionMeta still folds them into the session totals, with no per-invocation breakdown." } }
|
|
645
|
+
},
|
|
646
|
+
antigravity: {
|
|
647
|
+
agents: { source: REPLAY("antigravity"), state: { state: "partial", exactness: "exact", limit: "an invoke_subagent child becomes a child Agent under the parent run with its own tokens, cost and tools; linked to its launch only by INVOKE_SUBAGENT content, with no duration or agent type." } },
|
|
648
|
+
gitLines: { source: `${P2}; ${REPLAY("antigravity")}`, state: { state: "partial", exactness: "exact", limit: "request-time line counts from edit payloads (CodeContent / ReplacementContent vs TargetContent), not git diff; agy stores no git metadata." } }
|
|
649
|
+
},
|
|
650
|
+
opencode: {
|
|
651
|
+
tokens: { source: REPLAY("opencode"), state: { state: "partial", exactness: "exact", limit: "no legacy adapter surfaces an opencode SessionMeta at all; the canonical counters (input/output/cacheRead/cacheWrite + a separate additive reasoning counter) are real, read from each assistant message's own tokens field and proven equal to session.tokens_* by an independent recount." } },
|
|
652
|
+
cost: { source: REPLAY("opencode"), state: { state: "partial", exactness: "exact", limit: "opencode's own per-message cost is carried as costSource: 'harness' (not the shared table) because both real sessions measured used unpriced local/free models (cost 0); no legacy adapter surfaces it on any surface." } },
|
|
653
|
+
model: { source: REPLAY("opencode"), state: { state: "partial", exactness: "exact", limit: "the bare model id (message.modelID) is real; no legacy adapter surfaces it on any surface." } },
|
|
654
|
+
tools: { source: REPLAY("opencode"), state: { state: "partial", exactness: "exact", limit: 'real tool calls (name, status, timing) from part rows of type "tool"; no legacy adapter surfaces them on any surface, and only the four tool names measured on the real store (bash, write, read, skill) are known to map through canonicalTool.' } },
|
|
655
|
+
activeTime: { source: REPLAY("opencode"), state: { state: "partial", exactness: "exact", limit: "turn.started/turn.ended are emitted per user message and per settled assistant reply, closing 'last-line' always (opencode states no whole-turn duration, only per-step timing); no legacy adapter surfaces active_minutes on any surface." } }
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
function applyCapabilityRefinements(base, refinements = CAPABILITY_REFINEMENTS) {
|
|
659
|
+
const out = {};
|
|
660
|
+
for (const h of Object.keys(base)) {
|
|
661
|
+
out[h] = { ...base[h] };
|
|
662
|
+
for (const [m, r] of Object.entries(refinements[h] ?? {})) {
|
|
663
|
+
out[h][m] = { ...r.state };
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return out;
|
|
667
|
+
}
|
|
668
|
+
var CAPABILITY_STATES = applyCapabilityRefinements(LEGACY_CAPABILITY_STATES);
|
|
616
669
|
// ../core/src/provider/edit-policy.ts
|
|
617
670
|
var ANTHROPIC_EDIT_POLICY = Object.freeze({
|
|
618
671
|
provider: "anthropic",
|