mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-30 18:56:16 +00:00
Lean proof fixes: - N3L_Energy.lean: fully close gaussian_line_integral_unit_dir (nlinarith+hab for unit-circle quadratic, sqrt_mul+neg_div for integral_gaussian_1d match, exp_sum_of_sq order fix, add_assoc for h_gauss_shift, sq_sqrt for field_simp, sq_abs for perpDistance hd) - Add Adapters/AlphaProofNexus: 12 Erdos/graph adapter stubs (AlphaProof nexus) - Add Adapters/ErgodicAdditive.lean, SidonMatroid.lean - Add AntiDiophantine.lean, EffectiveBoundDQ.lean, PVGS_DQ_Bridge.lean - Add FormalConjectures/Util/ProblemImports.lean - Add RRC/EntropyCandidates/Candidates.lean - Add OTOM external project (lakefile.toml, lake-manifest.json, lean-toolchain) Infrastructure: - Add 4-Infrastructure/shim/: 17 Python probes (RRC manifold, Sidon kernel, Wannier, arxiv harvest, math_symbols DB, coverage density, geometric entropy) - Add 4-Infrastructure/NoDupeLabs/: Node server + package files - Add 6-Documentation/docs/specs/DP_RRC_RECEIPT_ENCODING_SPEC.md - Add fix_offloat.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
954 B
JavaScript
31 lines
954 B
JavaScript
import express from "express";
|
|
import wolframRouter from "./connectors/wolfram/wolfram_alpha_connector_router.js";
|
|
|
|
/**
|
|
* NoDupeLabs connector server.
|
|
*
|
|
* Mounts private connector surfaces behind a single Express app.
|
|
* Only bind to localhost or a Tailscale/VPN interface — never expose to the public internet.
|
|
*
|
|
* Required env vars:
|
|
* WOLFRAM_APP_ID — Wolfram Alpha App ID (from SOPS api-keys.yaml)
|
|
* WOLFRAM_CONNECTOR_TOKEN — >=32-char random bearer token for /wolfram endpoints
|
|
*
|
|
* Start:
|
|
* node server.js
|
|
* PORT=3000 node server.js
|
|
*/
|
|
|
|
const app = express();
|
|
const PORT = Number(process.env.PORT || 3000);
|
|
const HOST = process.env.HOST || "127.0.0.1";
|
|
|
|
app.get("/health", (_req, res) =>
|
|
res.json({ ok: true, ts: Date.now(), service: "nodupelabs-connector" })
|
|
);
|
|
|
|
app.use("/wolfram", wolframRouter);
|
|
|
|
app.listen(PORT, HOST, () => {
|
|
console.log(`NoDupeLabs connector server listening on ${HOST}:${PORT}`);
|
|
});
|