sigrank-mcp 0.6.7 → 0.6.9
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/cli.mjs +1 -1
- package/package.json +1 -1
- package/tokenpull.mjs +8 -0
package/cli.mjs
CHANGED
|
@@ -441,7 +441,7 @@ function tokscalePillars() {
|
|
|
441
441
|
const claude = entries.filter(e =>
|
|
442
442
|
e.client === 'claude' &&
|
|
443
443
|
e.model !== '<synthetic>' && e.model !== 'unknown' &&
|
|
444
|
-
e.
|
|
444
|
+
(e.input > 0 || e.output > 0)
|
|
445
445
|
)
|
|
446
446
|
const p = claude.reduce((acc, e) => ({
|
|
447
447
|
input: acc.input + (e.input ?? 0),
|
package/package.json
CHANGED
package/tokenpull.mjs
CHANGED
|
@@ -263,6 +263,14 @@ export async function tokenpullAny(platform, opts = {}) {
|
|
|
263
263
|
}
|
|
264
264
|
return tokenpullCodex({ ioRatio, ...opts })
|
|
265
265
|
}
|
|
266
|
+
// Cloud agents (Devin, etc.) run server-side — no local JSONL to read
|
|
267
|
+
const CLOUD_AGENTS = { devin: 'Cognition/Devin', }
|
|
268
|
+
if (platform in CLOUD_AGENTS) {
|
|
269
|
+
throw new Error(
|
|
270
|
+
`"${platform}" (${CLOUD_AGENTS[platform]}) runs in the cloud — sessions are not written to local JSONL files. ` +
|
|
271
|
+
`There is no local data source to read. If ${CLOUD_AGENTS[platform]} exposes a usage API in future, an adapter can be added.`
|
|
272
|
+
)
|
|
273
|
+
}
|
|
266
274
|
const adapter = ADAPTERS[platform]
|
|
267
275
|
if (!adapter) throw new Error(`Unknown platform "${platform}". Valid platforms: claude, codex, ${Object.keys(ADAPTERS).join(', ')}`)
|
|
268
276
|
const result = await tokenpull({ adapter, ...opts })
|