Merge origin/main into agent-guided birth time rectification

This commit is contained in:
Jesse_Chen
2026-07-18 18:54:21 +08:00
170 changed files with 77128 additions and 355 deletions
@@ -0,0 +1,19 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
test("passes transparent public-case references into the agent context", () => {
const source = readFileSync(new URL("../src/mastra/index.ts", import.meta.url), "utf8");
assert.match(source, /reference_transparency:\s*record\(data\.reference_transparency\)/);
assert.match(source, /vedastro_gateway:\s*record\(data\.vedastro_gateway\)/);
assert.match(source, /high_similarity_public_references_available/);
assert.match(source, /requested_uncovered_domains/);
assert.match(source, /public_context_only/);
assert.match(source, /timing_state/);
assert.match(source, /partial_match/);
assert.match(source, /narayana_status/);
assert.match(source, /transit_status/);
assert.match(source, /Jupiter and Saturn relative houses/);
assert.match(source, /exact_triggers as technical trigger points/);
});
@@ -0,0 +1,21 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
test("upserts a missing profile when saving account details", () => {
const source = readFileSync(new URL("../src/app/page.tsx", import.meta.url), "utf8");
assert.match(source, /fetch\("\/api\/account",\s*\{\s*method:\s*"PATCH"/s);
assert.match(source, /credentials:\s*"same-origin"/);
});
test("account route upserts profiles with the server admin client", () => {
const source = readFileSync(new URL("../src/app/api/account/route.ts", import.meta.url), "utf8");
assert.match(source, /createAdminSupabaseClient\(\)/);
assert.match(source, /\.from\("profiles"\)\s*\.upsert\(/);
});
test("account route can fall back when coordinate columns are not deployed", () => {
const source = readFileSync(new URL("../src/app/api/account/route.ts", import.meta.url), "utf8");
assert.match(source, /withoutCoordinates/);
assert.match(source, /PGRST204|42703|schema cache|column/i);
});