* feat(goja): embed ESM-free e-signature bundle for in-process cloud fold Port the Hanzo Sign server-side domain (documents, recipients, fields, signing flow/state, audit trail, completion) to a self-contained goja bundle exposing globalThis.handle(req), plus a std-lib-only Go embed module (Bundle()). This is the HIP-0106 (task #100) fold: the unified hanzoai/cloud binary runs the sign flow as TS-on-goja backed by Hanzo Base/SQLite — no Next.js/Remix, no Prisma, no Postgres. Persistence (globalThis.db) and the PDF/PKI seal primitives (globalThis.pdf) are injected by cloud/clients/sign as Go host-functions. Claude-Session: https://claude.ai/code/session_016yg7GPhYdWCh9vpp4HEwLZ * docs(llm): note the in-process cloud goja fold (task #100) Claude-Session: https://claude.ai/code/session_016yg7GPhYdWCh9vpp4HEwLZ * refactor(goja): run on the reusable gojabase RW-Base host (__db/__newId/__now/__pdf) Retarget the bundle to the clients/gojabase contract the captable pilot (#96) established: handle({route,params,query,orgId,body}); persistence via __db.query/__db.exec + __newId/__now (one txn per dispatch, commits iff status<400); the PDF/PKI seal via __pdf.stamp/__pdf.sign injected through gojabase Config.HostFns. One binding, not two. No behavior change to the flow. Claude-Session: https://claude.ai/code/session_016yg7GPhYdWCh9vpp4HEwLZ --------- Co-authored-by: hanzo-dev <dev@hanzo.ai>
16 lines
767 B
AMPL
16 lines
767 B
AMPL
// hanzoai/sign — Go embed module.
|
|
//
|
|
// This repo's PRIMARY artifact is the Hanzo Sign application (the Documenso
|
|
// fork: TypeScript/Remix + Prisma). This tiny Go module exists ONLY so the
|
|
// unified hanzoai/cloud binary (HIP-0106, task #100) can embed the ESM-free
|
|
// goja bundle (goja/bundle.js) — the port of the server-side e-signature domain
|
|
// (documents, recipients, fields, signing flow, audit trail, completion) — and
|
|
// run it in-process via dop251/goja, backed by Hanzo Base/SQLite. Cloud imports
|
|
// github.com/hanzoai/sign and gets Bundle().
|
|
//
|
|
// std-lib only — no third-party Go deps. The signing crypto/PDF primitives live
|
|
// in cloud (Go host-functions); this module carries only the domain bundle.
|
|
module github.com/hanzoai/sign
|
|
|
|
go 1.26.4
|