@conarium-ai/core 0.2.7 → 0.2.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/CHANGELOG.md +23 -1
- package/README.md +63 -0
- package/assets/conarium-mark-512.png +0 -0
- package/assets/conarium-mark.icns +0 -0
- package/assets/conarium-mark.ico +0 -0
- package/assets/conarium-mark.svg +4 -0
- package/assets/hero/eye-base.webp +0 -0
- package/assets/hero/iris.webp +0 -0
- package/bin/conarium-console.mjs +89 -4
- package/dist/audit.d.ts +3 -1
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +7 -1
- package/dist/audit.js.map +1 -1
- package/dist/config.d.ts +68 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +38 -1
- package/dist/config.js.map +1 -1
- package/dist/console-handoff.d.ts +24 -0
- package/dist/console-handoff.d.ts.map +1 -0
- package/dist/console-handoff.js +49 -0
- package/dist/console-handoff.js.map +1 -0
- package/dist/console-notify.d.ts +6 -0
- package/dist/console-notify.d.ts.map +1 -0
- package/dist/console-notify.js +41 -0
- package/dist/console-notify.js.map +1 -0
- package/dist/console-ready.d.ts +5 -0
- package/dist/console-ready.d.ts.map +1 -0
- package/dist/console-ready.js +27 -0
- package/dist/console-ready.js.map +1 -0
- package/dist/console-receipts.d.ts +30 -0
- package/dist/console-receipts.d.ts.map +1 -0
- package/dist/console-receipts.js +137 -0
- package/dist/console-receipts.js.map +1 -0
- package/dist/console-shortcut.d.ts +57 -0
- package/dist/console-shortcut.d.ts.map +1 -0
- package/dist/console-shortcut.js +210 -0
- package/dist/console-shortcut.js.map +1 -0
- package/dist/console.d.ts +4 -0
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +131 -18
- package/dist/console.js.map +1 -1
- package/dist/custom_patterns.d.ts +42 -0
- package/dist/custom_patterns.d.ts.map +1 -0
- package/dist/custom_patterns.js +164 -0
- package/dist/custom_patterns.js.map +1 -0
- package/dist/governance.d.ts +7 -1
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +38 -13
- package/dist/governance.js.map +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +9 -0
- package/dist/http.js.map +1 -1
- package/dist/receipt-view.d.ts +90 -0
- package/dist/receipt-view.d.ts.map +1 -0
- package/dist/receipt-view.js +338 -0
- package/dist/receipt-view.js.map +1 -0
- package/dist/receipt.d.ts +14 -0
- package/dist/receipt.d.ts.map +1 -1
- package/dist/receipt.js +39 -0
- package/dist/receipt.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -1
- package/docs/specs/2026-08-14-oracle-mssql-dialect-design.md +232 -0
- package/package.json +3 -2
- package/public/app.js +103 -14
- package/public/index.html +30 -1
- package/public/receipts-panel.js +87 -0
- package/public/style.css +18 -4
- package/scripts/render-conarium-mark.py +70 -0
- package/scripts/start-mcp-c1.mjs +23 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Rasterize assets/conarium-mark.svg geometry. No redesign — same circles, same #fff."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import struct
|
|
5
|
+
from io import BytesIO
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from PIL import Image, ImageDraw
|
|
9
|
+
|
|
10
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
11
|
+
ASSETS = ROOT / "assets"
|
|
12
|
+
# viewBox 0 0 32 32 — exact numbers from the extracted mark
|
|
13
|
+
CX, CY, R_RING, STROKE, R_DOT = 16.0, 16.0, 9.0, 1.7, 3.4
|
|
14
|
+
FILL = (255, 255, 255, 255)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def render(size: int) -> Image.Image:
|
|
18
|
+
img = Image.new("RGBA", (size, size), (0, 0, 0, 0))
|
|
19
|
+
draw = ImageDraw.Draw(img)
|
|
20
|
+
s = size / 32.0
|
|
21
|
+
cx, cy = CX * s, CY * s
|
|
22
|
+
r = R_RING * s
|
|
23
|
+
sw = max(STROKE * s, 1.0)
|
|
24
|
+
# Pillow ellipse outline is centered on the path; match SVG stroke.
|
|
25
|
+
outer = (cx - r - sw / 2, cy - r - sw / 2, cx + r + sw / 2, cy + r + sw / 2)
|
|
26
|
+
inner = (cx - r + sw / 2, cy - r + sw / 2, cx + r - sw / 2, cy + r - sw / 2)
|
|
27
|
+
draw.ellipse(outer, fill=FILL)
|
|
28
|
+
draw.ellipse(inner, fill=(0, 0, 0, 0))
|
|
29
|
+
rd = R_DOT * s
|
|
30
|
+
draw.ellipse((cx - rd, cy - rd, cx + rd, cy + rd), fill=FILL)
|
|
31
|
+
return img
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def png_bytes(img: Image.Image) -> bytes:
|
|
35
|
+
buf = BytesIO()
|
|
36
|
+
img.save(buf, format="PNG")
|
|
37
|
+
return buf.getvalue()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def write_icns(path: Path, pngs: dict[bytes, bytes]) -> None:
|
|
41
|
+
"""Minimal ICNS with PNG media (icp5/icp6/ic07/ic08/ic09)."""
|
|
42
|
+
chunks = b""
|
|
43
|
+
for typ, data in pngs.items():
|
|
44
|
+
chunks += typ + struct.pack(">I", 8 + len(data)) + data
|
|
45
|
+
path.write_bytes(b"icns" + struct.pack(">I", 8 + len(chunks)) + chunks)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def main() -> None:
|
|
49
|
+
ASSETS.mkdir(exist_ok=True)
|
|
50
|
+
sizes = (16, 32, 48, 64, 128, 256, 512)
|
|
51
|
+
rasters = {n: render(n) for n in sizes}
|
|
52
|
+
rasters[512].save(ASSETS / "conarium-mark-512.png")
|
|
53
|
+
rasters[256].save(ASSETS / "conarium-mark.ico", format="ICO", sizes=[(n, n) for n in (16, 32, 48, 64, 128, 256)])
|
|
54
|
+
write_icns(
|
|
55
|
+
ASSETS / "conarium-mark.icns",
|
|
56
|
+
{
|
|
57
|
+
b"icp5": png_bytes(rasters[32]),
|
|
58
|
+
b"icp6": png_bytes(rasters[64]),
|
|
59
|
+
b"ic07": png_bytes(rasters[128]),
|
|
60
|
+
b"ic08": png_bytes(rasters[256]),
|
|
61
|
+
b"ic09": png_bytes(rasters[512]),
|
|
62
|
+
},
|
|
63
|
+
)
|
|
64
|
+
print("wrote", ASSETS / "conarium-mark-512.png")
|
|
65
|
+
print("wrote", ASSETS / "conarium-mark.ico")
|
|
66
|
+
print("wrote", ASSETS / "conarium-mark.icns")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
if __name__ == "__main__":
|
|
70
|
+
main()
|
package/scripts/start-mcp-c1.mjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Loads Supabase URL/key from jarvis-web .env.local, never prints secrets.
|
|
4
4
|
*/
|
|
5
5
|
import { readFileSync, existsSync } from 'fs'
|
|
6
|
+
import { homedir } from 'os'
|
|
6
7
|
import { pathToFileURL } from 'url'
|
|
7
8
|
import { dirname, join } from 'path'
|
|
8
9
|
import { fileURLToPath } from 'url'
|
|
@@ -51,6 +52,28 @@ if (!url || !key) {
|
|
|
51
52
|
process.env.CONARIUM_SUPABASE_URL = url
|
|
52
53
|
process.env.CONARIUM_SUPABASE_KEY = key
|
|
53
54
|
|
|
55
|
+
// receiptSink in c1 config requires Ed25519 at boot. Cursor mcp.json does not
|
|
56
|
+
// set CONARIUM_AUDIT_SIGNING_KEY — that is why receipts-c1.jsonl never appeared
|
|
57
|
+
// after the sink was added. Do not create an empty sink; the first governed
|
|
58
|
+
// access writes the first line.
|
|
59
|
+
if (!process.env.CONARIUM_AUDIT_SIGNING_KEY?.trim()) {
|
|
60
|
+
let receiptSink = ''
|
|
61
|
+
try {
|
|
62
|
+
receiptSink = JSON.parse(readFileSync(configPath, 'utf8'))?.audit?.receiptSink || ''
|
|
63
|
+
} catch { /* probe below still runs */ }
|
|
64
|
+
if (receiptSink) {
|
|
65
|
+
const fallback = join(homedir(), '.conarium', 'audit-ed25519.pem')
|
|
66
|
+
if (!existsSync(fallback)) {
|
|
67
|
+
console.error('[conarium-c1] receiptSink is set but CONARIUM_AUDIT_SIGNING_KEY is missing')
|
|
68
|
+
console.error(`[conarium-c1] expected signing key at ${fallback}`)
|
|
69
|
+
process.exit(1)
|
|
70
|
+
}
|
|
71
|
+
process.env.CONARIUM_AUDIT_SIGNING_KEY = fallback
|
|
72
|
+
console.error(`[conarium-c1] signing key=${fallback}`)
|
|
73
|
+
console.error('[conarium-c1] receipt file is created on the first governed access, not at start')
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
54
77
|
// Ensure dist/index.js sees --config (it reads process.argv)
|
|
55
78
|
process.argv = [process.argv[0], dist, '--config', configPath]
|
|
56
79
|
|