melchizedek-agents 1.11.0 → 1.11.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ Consumers of the package read this file; it records changes to the
4
4
  **published API surface** (the exports map in `package.json`, the bins,
5
5
  the starter pack and the templates), not the repo's full history.
6
6
 
7
+ ## 1.11.1 — 2026-10-22
8
+
9
+ **Price rows for `grok-4.3`, `gemini-embedding-001` and `gemini-3.5-flash`**
10
+ (migration `0020_embedding_flash_grok_pricing`). Ledgers held calls of these
11
+ models priced NULL for want of a row. `grok-4.3` is checked against xAI's
12
+ list (its rate under 200k prompt tokens); the two Gemini rows come from
13
+ sources other than Google's current page, which no longer lists them, so
14
+ their `verified_at` is NULL. An existing row is never overwritten.
15
+
16
+ **`gemini-3.8-flash` and `grok-4.7` at their vendors' lists** (migration
17
+ `0021_correct_gemini_flash_grok_rates`). Both were 0015 placeholders:
18
+ `gemini-3.8-flash` is now $0.75 / $0.075 cached / $3.75 (was $0.30 / $2.50;
19
+ Google lists a rise to $1.50 / $0.15 / $7.50 from 2027-01-01), `grok-4.7`
20
+ $2.00 / $0.50 / $6.00 (was $3.00 / $15.00). A row changes only while it is
21
+ still the seed, at the seed's rates; an operator's rate is kept. Calls
22
+ already priced keep the rate they were written at.
23
+
7
24
  ## 1.11.0 — 2026-10-22
8
25
 
9
26
  A minor release: DeepSeek joins the providers, and Kimi calls are priced.
@@ -0,0 +1,38 @@
1
+ -- ============================================================================
2
+ -- 0020_embedding_flash_grok_pricing — price rows for three models a ledger
3
+ -- already holds calls of (extends ADR 0136)
4
+ -- ============================================================================
5
+ -- Rows only, in 0017's column layout (USD per million tokens). A deployment's
6
+ -- ledger (penguin's, 2026-10-22) had calls of these three models priced NULL
7
+ -- because no row existed; scripts that re-price NULL rows can now fill them.
8
+ --
9
+ -- grok-4.3: xAI first-party, docs.x.ai/docs/models, checked 2026-10-22. The
10
+ -- row holds the rate under 200k prompt tokens ($1.25 in / $0.20 cached /
11
+ -- $2.50 out); a request of 200k or more is billed at double for all its
12
+ -- tokens ($2.50 / $0.40 / $5.00), which a flat row cannot say: such a call
13
+ -- is underestimated by half.
14
+ --
15
+ -- gemini-embedding-001: Google's GA announcement for the Gemini API
16
+ -- (developers.googleblog.com, "Gemini Embedding now generally available"):
17
+ -- $0.15 per 1M input tokens, no output tokens. Google's current pricing page
18
+ -- lists only its successor (gemini-embedding-2), so verified_at stays NULL.
19
+ --
20
+ -- gemini-3.5-flash: $1.50 in / $0.15 cached / $9.00 out, as two pricing
21
+ -- guides give it, one citing Google's Gemini API pricing documentation
22
+ -- (June 2026). Google's current page no longer lists the model (superseded
23
+ -- by 3.6 and 3.8 Flash), so this could not be checked against the vendor:
24
+ -- verified_at NULL, a steering estimate (0015's convention).
25
+ --
26
+ -- New rows never overwrite a row that exists: an operator's own rates
27
+ -- survive. Nothing secret, nothing personal. Idempotent; safe to re-run.
28
+ -- ============================================================================
29
+
30
+ INSERT INTO model_pricing (model, input_per_mtok, output_per_mtok, cache_read_per_mtok, cache_write_per_mtok, verified_at, source, note) VALUES
31
+ ('grok-4.3', 1.25, 2.50, 0.20, NULL, '2026-10-22', 'docs.x.ai/docs/models', 'xAI first-party, checked 2026-10-22; rate under 200k prompt tokens (a request of 200k or more bills $2.50 / $0.40 / $5.00)'),
32
+ ('gemini-embedding-001', 0.15, 0.00, NULL, NULL, NULL, 'developers.googleblog.com, Gemini Embedding now generally available in the Gemini API', 'Google first-party announcement; input only; no longer on the current pricing page (successor gemini-embedding-2), not re-checked'),
33
+ ('gemini-3.5-flash', 1.50, 9.00, 0.15, NULL, NULL, 'eesel.ai Gemini 3 pricing guide (citing ai.google.dev pricing, June 2026), agreeing with other guides', 'unverified: off Google''s current pricing page (superseded by 3.6 and 3.8 Flash)')
34
+ ON CONFLICT (model) DO NOTHING;
35
+
36
+ INSERT INTO melchizedek_schema_version (version, name)
37
+ VALUES (20, '0020_embedding_flash_grok_pricing')
38
+ ON CONFLICT (version) DO NOTHING;
@@ -0,0 +1,46 @@
1
+ -- ============================================================================
2
+ -- 0021_correct_gemini_flash_grok_rates — two seed rows to their vendors'
3
+ -- current lists (extends ADR 0136)
4
+ -- ============================================================================
5
+ -- 0015 seeded gemini-3.8-flash and grok-4.7 from melch-obs's pricing.toml as
6
+ -- unverified estimates. Checked 2026-10-22 against the vendors' lists, both
7
+ -- were wrong:
8
+ --
9
+ -- gemini-3.8-flash ai.google.dev/gemini-api/docs/pricing (paid, standard):
10
+ -- $0.75 in / $0.075 cached / $3.75 out, thinking billed
11
+ -- as output, through 2026-12-31. Google has announced
12
+ -- $1.50 / $0.15 / $7.50 from 2027-01-01; a flat row cannot
13
+ -- say the date, so that needs its own row change then.
14
+ -- Seed: $0.30 / $2.50 (a placeholder at 3.7's rate).
15
+ -- grok-4.7 docs.x.ai/docs/models: $2.00 in / $0.50 cached / $6.00
16
+ -- out under 200k prompt tokens (a request of 200k or more
17
+ -- bills $4.00 / $1.00 / $12.00 for all its tokens, which a
18
+ -- flat row underestimates by half). Seed: $3.00 / $15.00.
19
+ --
20
+ -- A row changes only while it is still the seed: source melch-obs/pricing.toml,
21
+ -- verified_at NULL, and the seed's own rates. A rate an operator set is kept.
22
+ --
23
+ -- Rows already priced keep what they were priced at: the ledger records the
24
+ -- rate in force at write time (db/telemetry.sql). Re-pricing history is a
25
+ -- deliberate UPDATE, never a migration. Idempotent; safe to re-run.
26
+ -- ============================================================================
27
+
28
+ UPDATE model_pricing
29
+ SET input_per_mtok = 0.75, output_per_mtok = 3.75, cache_read_per_mtok = 0.075,
30
+ verified_at = '2026-10-22', source = 'ai.google.dev/gemini-api/docs/pricing',
31
+ note = 'Gemini API paid standard tier, checked 2026-10-22; rate through 2026-12-31 (Google lists $1.50 / $0.15 / $7.50 from 2027-01-01)',
32
+ updated_at = now()
33
+ WHERE model = 'gemini-3.8-flash' AND source = 'melch-obs/pricing.toml' AND verified_at IS NULL
34
+ AND input_per_mtok = 0.30 AND output_per_mtok = 2.50;
35
+
36
+ UPDATE model_pricing
37
+ SET input_per_mtok = 2.00, output_per_mtok = 6.00, cache_read_per_mtok = 0.50,
38
+ verified_at = '2026-10-22', source = 'docs.x.ai/docs/models',
39
+ note = 'xAI first-party, checked 2026-10-22; rate under 200k prompt tokens (a request of 200k or more bills $4.00 / $1.00 / $12.00)',
40
+ updated_at = now()
41
+ WHERE model = 'grok-4.7' AND source = 'melch-obs/pricing.toml' AND verified_at IS NULL
42
+ AND input_per_mtok = 3.00 AND output_per_mtok = 15.00;
43
+
44
+ INSERT INTO melchizedek_schema_version (version, name)
45
+ VALUES (21, '0021_correct_gemini_flash_grok_rates')
46
+ ON CONFLICT (version) DO NOTHING;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "melchizedek-agents",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "A multi-model, multi-agent orchestration framework — YAML-defined syndicates on the engine's own agent loop, Supabase or Postgres session persistence, pgvector long-term memory. Companion repo to the lyceumagents.com curriculum.",
5
5
  "type": "module",
6
6
  "license": "MIT",