Skip to content

feat: JS/TS adapter — lh_standard_adapter for npm - #15

Closed
laurentketterle-hub wants to merge 3 commits into
UID9622:mainfrom
laurentketterle-hub:adapter/javascript-v1.0
Closed

feat: JS/TS adapter — lh_standard_adapter for npm#15
laurentketterle-hub wants to merge 3 commits into
UID9622:mainfrom
laurentketterle-hub:adapter/javascript-v1.0

Conversation

@laurentketterle-hub

@laurentketterle-hub laurentketterle-hub commented Jul 24, 2026

Copy link
Copy Markdown

Summary

JavaScript/TypeScript adapter — full v∞ DNA traceability + seven-factor behavioral audit for npm.

Files

  • src/dna_generator.js — DNA generation, byte-compatible with Python
  • src/audit_wrapper.js — Seven-factor audit wrapper
  • src/validator.js — Full validation (DNA regex, audit keys, signature)
  • src/index.js — LongHunAdapter main class
  • index.d.ts — TypeScript declarations
  • src/index.cjs — CJS compatibility wrapper
  • test/test.js — 120 tests (all passing)

Testing

Spec compliance

  • Zero external dependencies (Node.js built-ins only)
  • DNA format byte-for-byte compatible with Python reference
  • ESM + CommonJS dual exports
  • CC-BY-NC-SA 4.0 licensed

Note

Generated with the assistance of an AI agent (Bounty Hunter Pro).

Closes #1

Bounty-Hunter-Pro and others added 3 commits July 24, 2026 16:46
Implements the Rust adapter for the LongHun Standard Adapter.

Modules:
- dna_generator: v∞ DNA traceability code generation
- audit_wrapper: Seven-factor behavioral audit metadata
- validator: Full payload validation
- LongHunAdapter: Main public API

Includes 17 integration tests — all passing.
Zero external dependencies (serde + sha2 + chrono only).

Closes UID9622#3
120 tests pass — DNA generator, audit wrapper, validator.

Zero deps, byte-compatible with Python.

ESM + CJS exports + TypeScript declarations.

Closes UID9622#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏆 [BOUNTY] JavaScript/TypeScript Adapter — lh_standard_adapter for npm

1 participant