sigrank 1.0.28 → 1.0.30

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.
@@ -2,7 +2,7 @@
2
2
  * cascade.mjs — SigRank yield cascade facade.
3
3
  *
4
4
  * The canonical cascade math (Υ Yield, SNR, Leverage, Velocity, 10xDEV, and the
5
- * 24-stage RS05 class taxonomy) lives in the `@sigrank/cascade` package, which
5
+ * 24-stage RS05 class taxonomy) lives in the `token-cascade` package, which
6
6
  * delegates canonical TTEOP metric computation to `tteop-spec`. This file
7
7
  * re-exports the canonical functions and adds local-only helpers that
8
8
  * are presentation/MCP-specific and intentionally NOT part of the canonical
@@ -12,7 +12,7 @@
12
12
  * - detectMode(), MODE_EXPECTED_YIELD, qualityScore() (mode/quality layer)
13
13
  * - parsePillars() (text → 4 pillars extractor)
14
14
  *
15
- * Authority chain: sigrank-mcp → @sigrank/cascade → tteop-spec
15
+ * Authority chain: sigrank-mcp → token-cascade → tteop-spec
16
16
  *
17
17
  * The cascade() wrapper preserves the object-signature
18
18
  * ({ input, output, cacheCreate, cacheRead }) used throughout this repo and
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * Canonical reference: MO§ES Υ 18436.98 from (1251211, 11296121, 128196310, 2555179769).
24
24
  *
25
- * Degenerate-input policy (inherited from tteop-spec via @sigrank/cascade):
25
+ * Degenerate-input policy (inherited from tteop-spec via token-cascade):
26
26
  * - Any pillar that collapses a denominator (i=0, o=0, cw=0, cr=0) returns null for
27
27
  * the affected metrics rather than Infinity/NaN.
28
28
  * - A `warnings[]` array is attached when any metric is null so callers can surface the
@@ -31,7 +31,7 @@
31
31
  * Callers that require a fully-formed result should check `warnings.length === 0`.
32
32
  */
33
33
 
34
- // ─── Canonical math (from @sigrank/cascade) ─────────────────────────────────
34
+ // ─── Canonical math (from token-cascade) ─────────────────────────────────
35
35
  import {
36
36
  cascade as cascadeCanonical,
37
37
  round,
@@ -42,7 +42,7 @@ import {
42
42
  rankOf,
43
43
  operatorSignature,
44
44
  evaluateOperator,
45
- } from "@sigrank/cascade";
45
+ } from "token-cascade";
46
46
 
47
47
  // Re-export the canonical functions so existing import paths keep working.
48
48
  export {
@@ -59,7 +59,7 @@ export {
59
59
  /**
60
60
  * The four raw token pillars → the cascade.
61
61
  *
62
- * Object-signature wrapper around the canonical `@sigrank/cascade` cascade()
62
+ * Object-signature wrapper around the canonical `token-cascade` cascade()
63
63
  * (which takes positional args). Re-attaches the `mode` field via detectMode()
64
64
  * so the 20+ call sites in this repo that read `result.mode` keep working.
65
65
  */
@@ -71,7 +71,7 @@ export function cascade({ input, output, cacheCreate, cacheRead }) {
71
71
  return result;
72
72
  }
73
73
 
74
- // ─── Local-only display taxonomy (not in @sigrank/cascade) ───────────────────
74
+ // ─── Local-only display taxonomy (not in token-cascade) ───────────────────
75
75
 
76
76
  /**
77
77
  * CLASS_TIERS — the 8 base tier names (K.01–K.08) for display: glyph, color,
@@ -79,7 +79,7 @@ export function cascade({ input, output, cacheCreate, cacheRead }) {
79
79
  *
80
80
  * The permanent class is an EXPERIENCE ladder keyed on TOTAL TOKENS. Each tier
81
81
  * has 3 sub-stages (I/II/III) — 24 stages total. The 24 thresholds live in
82
- * RS05_CLASS_THRESHOLDS (re-exported from @sigrank/cascade above). classify()
82
+ * RS05_CLASS_THRESHOLDS (re-exported from token-cascade above). classify()
83
83
  * returns the full sub-stage string (e.g. "REFINER II"). Use tierOf() to
84
84
  * extract the base tier name.
85
85
  *
@@ -144,7 +144,7 @@ export function stageOf(cls) {
144
144
  return stage === "I" || stage === "II" || stage === "III" ? stage : null;
145
145
  }
146
146
 
147
- // ─── Mode / quality layer (not in @sigrank/cascade) ──────────────────────────
147
+ // ─── Mode / quality layer (not in token-cascade) ──────────────────────────
148
148
 
149
149
  /**
150
150
  * detectMode — classify an operator's current working mode from 4 token pillars.
@@ -222,7 +222,7 @@ export function qualityScore(actualYield, mode) {
222
222
  return actualYield / expected;
223
223
  }
224
224
 
225
- // ─── Text parsing (not in @sigrank/cascade) ──────────────────────────────────
225
+ // ─── Text parsing (not in token-cascade) ──────────────────────────────────
226
226
 
227
227
  /**
228
228
  * Extract the 4 pillars from pasted text: JSON object OR 4 whitespace numbers.
package/bin/sigrank.mjs CHANGED
@@ -47,7 +47,7 @@ function printStandard() {
47
47
  },
48
48
  privacy:
49
49
  "Core metrics do not require prompt text, response text, source code, or repository contents.",
50
- reference_math: "@sigrank/cascade",
50
+ reference_math: "token-cascade",
51
51
  reference_platform: "Upsilon on SignalAF",
52
52
  standard_url: STANDARD_URL,
53
53
  schema_url: SCHEMA_URL,
@@ -63,7 +63,7 @@ function printStandard() {
63
63
  process.stdout.write(`Scope: ${payload.scope}\n`);
64
64
  process.stdout.write(`Primitives: input / output / cache_write / cache_read\n`);
65
65
  process.stdout.write(`Core metrics: Yield / Leverage / Velocity / SNR / 10xDEV\n`);
66
- process.stdout.write(`Reference math: @sigrank/cascade\n`);
66
+ process.stdout.write(`Reference math: token-cascade\n`);
67
67
  process.stdout.write(`Reference platform: Upsilon on SignalAF\n`);
68
68
  process.stdout.write(`Spec: ${STANDARD_URL}\n`);
69
69
  process.stdout.write(`Schema: ${SCHEMA_URL}\n`);
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/anthropics/mcpb/main/schemas/mcpb-manifest-v0.4.schema.json",
3
3
  "manifest_version": "0.4",
4
4
  "name": "sigrank",
5
- "version": "1.0.27",
5
+ "version": "1.0.29",
6
6
  "description": "Ranks AI coding operators by token cascade efficiency (Yield = cache_read \u00d7 output / input\u00b2). 25 tools including SigRank Standard record, yield calculation, local token usage pulls, signed submission, and tokscale-powered analytics (market share, developer profiles, model trends, cost analysis, device profiles, MCP usage, competitive intelligence). Privacy-first: runs locally, only four token counts leave the machine.",
7
7
  "author": {
8
8
  "name": "SunrisesIllNeverSee",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigrank",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "author": "SunrisesIllNeverSee (https://github.com/SunrisesIllNeverSee)",
5
5
  "description": "Upsilon measurement engine distributed through the sigrank CLI/MCP compatibility package, with SigRank public leaderboard tools.",
6
6
  "mcpName": "io.github.SunrisesIllNeverSee/sigrank-mcp",
@@ -85,7 +85,7 @@
85
85
  ],
86
86
  "dependencies": {
87
87
  "@modelcontextprotocol/sdk": "^1.0.0",
88
- "@sigrank/cascade": "^0.2.1",
88
+ "token-cascade": "^0.2.1",
89
89
  "ccusage": "^20.0.19",
90
90
  "tokscale": "^4.7.0",
91
91
  "tteop-spec": "0.1.5-draft"
@@ -17,7 +17,7 @@ export const PRODUCT_ARCHITECTURE = Object.freeze({
17
17
  export const TOOL_DEF = {
18
18
  name: "get_sigrank_standard_record",
19
19
  description:
20
- "Build Upsilon's portable sigrank/0.1-draft compatibility record from available token telemetry. Input and output are required; unavailable cache telemetry remains null. Computes the canonical cascade locally through @sigrank/cascade and returns Yield, Leverage, Velocity, SNR, and 10xDEV. Upsilon is the measurement product; SigRank is the public leaderboard. No data is submitted or persisted.",
20
+ "Build Upsilon's portable sigrank/0.1-draft compatibility record from available token telemetry. Input and output are required; unavailable cache telemetry remains null. Computes the canonical cascade locally through token-cascade and returns Yield, Leverage, Velocity, SNR, and 10xDEV. Upsilon is the measurement product; SigRank is the public leaderboard. No data is submitted or persisted.",
21
21
  annotations: {
22
22
  title: "Export Upsilon measurement record",
23
23
  ...ANNOTATIONS.readOnlyHint,