@tangle-network/starter-foundry 0.5.3 → 0.7.0
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/README.md +77 -5
- package/corpus/held-out-validation.json +1 -1
- package/corpus/ideasai-prompts.json +119 -58
- package/corpus/model-rates.json +56 -0
- package/dist/cli.js +35 -6
- package/dist/cli.js.map +1 -1
- package/dist/eval/diagnoser.d.ts +37 -0
- package/dist/eval/diagnoser.js +113 -0
- package/dist/eval/diagnoser.js.map +1 -0
- package/dist/eval/propose.d.ts +20 -0
- package/dist/eval/propose.js +75 -0
- package/dist/eval/propose.js.map +1 -0
- package/dist/eval/replay.d.ts +137 -0
- package/dist/eval/replay.js +392 -0
- package/dist/eval/replay.js.map +1 -0
- package/dist/eval/scaffold-bridge.d.ts +100 -0
- package/dist/eval/scaffold-bridge.js +492 -0
- package/dist/eval/scaffold-bridge.js.map +1 -0
- package/dist/lib/ab.d.ts +61 -0
- package/dist/lib/ab.js +80 -0
- package/dist/lib/ab.js.map +1 -0
- package/dist/lib/agent-context.js +34 -22
- package/dist/lib/agent-context.js.map +1 -1
- package/dist/lib/batch-export.js +1 -11
- package/dist/lib/batch-export.js.map +1 -1
- package/dist/lib/brand/first-turn-flows.d.ts +10 -0
- package/dist/lib/brand/first-turn-flows.js +114 -0
- package/dist/lib/brand/first-turn-flows.js.map +1 -0
- package/dist/lib/brand/i18n.d.ts +15 -0
- package/dist/lib/brand/i18n.js +100 -0
- package/dist/lib/brand/i18n.js.map +1 -0
- package/dist/lib/brand/index.d.ts +27 -0
- package/dist/lib/brand/index.js +100 -0
- package/dist/lib/brand/index.js.map +1 -0
- package/dist/lib/brand/media-manifest.d.ts +26 -0
- package/dist/lib/brand/media-manifest.js +98 -0
- package/dist/lib/brand/media-manifest.js.map +1 -0
- package/dist/lib/brand/user-segments.d.ts +7 -0
- package/dist/lib/brand/user-segments.js +81 -0
- package/dist/lib/brand/user-segments.js.map +1 -0
- package/dist/lib/brand/voice.d.ts +10 -0
- package/dist/lib/brand/voice.js +92 -0
- package/dist/lib/brand/voice.js.map +1 -0
- package/dist/lib/bridge.d.ts +38 -0
- package/dist/lib/bridge.js +130 -0
- package/dist/lib/bridge.js.map +1 -0
- package/dist/lib/build-plan.d.ts +43 -0
- package/dist/lib/build-plan.js +139 -1
- package/dist/lib/build-plan.js.map +1 -1
- package/dist/lib/buildout-traces.d.ts +182 -0
- package/dist/lib/buildout-traces.js +149 -0
- package/dist/lib/buildout-traces.js.map +1 -0
- package/dist/lib/canary.d.ts +38 -0
- package/dist/lib/canary.js +91 -0
- package/dist/lib/canary.js.map +1 -0
- package/dist/lib/capability-inferrer.d.ts +41 -0
- package/dist/lib/capability-inferrer.js +82 -0
- package/dist/lib/capability-inferrer.js.map +1 -0
- package/dist/lib/compose-prompt.d.ts +8 -7
- package/dist/lib/compose-prompt.js +30 -7
- package/dist/lib/compose-prompt.js.map +1 -1
- package/dist/lib/compose-seed.d.ts +15 -0
- package/dist/lib/compose-seed.js +44 -0
- package/dist/lib/compose-seed.js.map +1 -0
- package/dist/lib/compose.js +106 -1
- package/dist/lib/compose.js.map +1 -1
- package/dist/lib/context-pack.d.ts +6 -1
- package/dist/lib/context-pack.js +9 -3
- package/dist/lib/context-pack.js.map +1 -1
- package/dist/lib/cost.d.ts +53 -0
- package/dist/lib/cost.js +77 -0
- package/dist/lib/cost.js.map +1 -0
- package/dist/lib/fs.d.ts +1 -0
- package/dist/lib/fs.js +10 -0
- package/dist/lib/fs.js.map +1 -1
- package/dist/lib/index.d.ts +42 -1
- package/dist/lib/index.js +22 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/industry-flows.d.ts +6 -0
- package/dist/lib/industry-flows.js +165 -0
- package/dist/lib/industry-flows.js.map +1 -0
- package/dist/lib/keywords.js +85 -18
- package/dist/lib/keywords.js.map +1 -1
- package/dist/lib/llm.d.ts +14 -0
- package/dist/lib/llm.js +199 -0
- package/dist/lib/llm.js.map +1 -0
- package/dist/lib/planner/contracts.d.ts +12 -0
- package/dist/lib/planner/contracts.js +119 -0
- package/dist/lib/planner/contracts.js.map +1 -0
- package/dist/lib/planner/detectors.d.ts +14 -0
- package/dist/lib/planner/detectors.js +221 -0
- package/dist/lib/planner/detectors.js.map +1 -0
- package/dist/lib/planner/helpers.d.ts +2 -0
- package/dist/lib/planner/helpers.js +292 -0
- package/dist/lib/planner/helpers.js.map +1 -0
- package/dist/lib/planner/implicit-caps.d.ts +1 -0
- package/dist/lib/planner/implicit-caps.js +153 -0
- package/dist/lib/planner/implicit-caps.js.map +1 -0
- package/dist/lib/planner/partner-first.d.ts +31 -0
- package/dist/lib/planner/partner-first.js +137 -0
- package/dist/lib/planner/partner-first.js.map +1 -0
- package/dist/lib/planner/projects.d.ts +13 -0
- package/dist/lib/planner/projects.js +631 -0
- package/dist/lib/planner/projects.js.map +1 -0
- package/dist/lib/planner/signals.d.ts +24 -0
- package/dist/lib/planner/signals.js +526 -0
- package/dist/lib/planner/signals.js.map +1 -0
- package/dist/lib/planner/zk-preferences.d.ts +9 -0
- package/dist/lib/planner/zk-preferences.js +91 -0
- package/dist/lib/planner/zk-preferences.js.map +1 -0
- package/dist/lib/product-brief.d.ts +25 -0
- package/dist/lib/product-brief.js +129 -0
- package/dist/lib/product-brief.js.map +1 -0
- package/dist/lib/prompt-planner.d.ts +5 -1
- package/dist/lib/prompt-planner.js +246 -624
- package/dist/lib/prompt-planner.js.map +1 -1
- package/dist/lib/prompt-rewriter.d.ts +22 -0
- package/dist/lib/prompt-rewriter.js +129 -0
- package/dist/lib/prompt-rewriter.js.map +1 -0
- package/dist/lib/registry-mirror.d.ts +28 -0
- package/dist/lib/registry-mirror.js +64 -0
- package/dist/lib/registry-mirror.js.map +1 -0
- package/dist/lib/release.js +1 -11
- package/dist/lib/release.js.map +1 -1
- package/dist/lib/reproducibility.d.ts +39 -0
- package/dist/lib/reproducibility.js +96 -0
- package/dist/lib/reproducibility.js.map +1 -0
- package/dist/lib/reviewer-route.d.ts +12 -0
- package/dist/lib/reviewer-route.js +99 -0
- package/dist/lib/reviewer-route.js.map +1 -0
- package/dist/lib/safety/license-check.d.ts +9 -0
- package/dist/lib/safety/license-check.js +61 -0
- package/dist/lib/safety/license-check.js.map +1 -0
- package/dist/lib/safety/secret-scan.d.ts +7 -0
- package/dist/lib/safety/secret-scan.js +67 -0
- package/dist/lib/safety/secret-scan.js.map +1 -0
- package/dist/lib/sbom.d.ts +34 -0
- package/dist/lib/sbom.js +89 -0
- package/dist/lib/sbom.js.map +1 -0
- package/dist/lib/selection.d.ts +22 -0
- package/dist/lib/selection.js +225 -36
- package/dist/lib/selection.js.map +1 -1
- package/dist/lib/semantic-router.d.ts +2 -1
- package/dist/lib/synthetic/index.d.ts +45 -0
- package/dist/lib/synthetic/index.js +101 -0
- package/dist/lib/synthetic/index.js.map +1 -0
- package/dist/lib/telemetry/stream.d.ts +52 -0
- package/dist/lib/telemetry/stream.js +153 -0
- package/dist/lib/telemetry/stream.js.map +1 -0
- package/dist/lib/telemetry.d.ts +6 -11
- package/dist/lib/telemetry.js +3 -3
- package/dist/lib/telemetry.js.map +1 -1
- package/dist/lib/template-quality.d.ts +61 -0
- package/dist/lib/template-quality.js +84 -0
- package/dist/lib/template-quality.js.map +1 -0
- package/dist/lib/validate-plan.d.ts +10 -0
- package/dist/lib/validate-plan.js +74 -0
- package/dist/lib/validate-plan.js.map +1 -0
- package/dist/lib/vb-outcomes.d.ts +62 -0
- package/dist/lib/vb-outcomes.js +88 -0
- package/dist/lib/vb-outcomes.js.map +1 -0
- package/dist/lib/version-history.d.ts +15 -0
- package/dist/lib/version-history.js +40 -0
- package/dist/lib/version-history.js.map +1 -0
- package/dist/lib/visual-regression.d.ts +75 -0
- package/dist/lib/visual-regression.js +125 -0
- package/dist/lib/visual-regression.js.map +1 -0
- package/dist/training/capability_proposer/propose.d.ts +26 -0
- package/dist/training/capability_proposer/propose.js +305 -0
- package/dist/training/capability_proposer/propose.js.map +1 -0
- package/dist/training/family_proposer/propose.d.ts +35 -0
- package/dist/training/family_proposer/propose.js +664 -0
- package/dist/training/family_proposer/propose.js.map +1 -0
- package/dist/training/routing/train.d.ts +49 -0
- package/dist/training/routing/train.js +249 -0
- package/dist/training/routing/train.js.map +1 -0
- package/dist/training/template_v1/audit.d.ts +15 -0
- package/dist/training/template_v1/audit.js +83 -0
- package/dist/training/template_v1/audit.js.map +1 -0
- package/dist/training/template_v1/correctness.d.ts +25 -0
- package/dist/training/template_v1/correctness.js +194 -0
- package/dist/training/template_v1/correctness.js.map +1 -0
- package/dist/training/template_v1/harvest.d.ts +25 -0
- package/dist/training/template_v1/harvest.js +101 -0
- package/dist/training/template_v1/harvest.js.map +1 -0
- package/dist/training/template_v1/judge.d.ts +26 -0
- package/dist/training/template_v1/judge.js +104 -0
- package/dist/training/template_v1/judge.js.map +1 -0
- package/dist/training/template_v1/multi-propose.d.ts +27 -0
- package/dist/training/template_v1/multi-propose.js +34 -0
- package/dist/training/template_v1/multi-propose.js.map +1 -0
- package/dist/training/template_v1/run.d.ts +1 -0
- package/dist/training/template_v1/run.js +369 -0
- package/dist/training/template_v1/run.js.map +1 -0
- package/dist/training/template_v1/synthesize.d.ts +14 -0
- package/dist/training/template_v1/synthesize.js +101 -0
- package/dist/training/template_v1/synthesize.js.map +1 -0
- package/dist/training/variant_b/brief-loader.d.ts +5 -0
- package/dist/training/variant_b/brief-loader.js +263 -0
- package/dist/training/variant_b/brief-loader.js.map +1 -0
- package/dist/training/variant_b/flow.d.ts +51 -0
- package/dist/training/variant_b/flow.js +80 -0
- package/dist/training/variant_b/flow.js.map +1 -0
- package/dist/training/variant_b/generate.d.ts +7 -0
- package/dist/training/variant_b/generate.js +70 -0
- package/dist/training/variant_b/generate.js.map +1 -0
- package/dist/training/variant_b/judge.d.ts +8 -0
- package/dist/training/variant_b/judge.js +24 -0
- package/dist/training/variant_b/judge.js.map +1 -0
- package/dist/training/variant_b/nodes/collect.d.ts +31 -0
- package/dist/training/variant_b/nodes/collect.js +122 -0
- package/dist/training/variant_b/nodes/collect.js.map +1 -0
- package/dist/training/variant_b/nodes/generate.d.ts +22 -0
- package/dist/training/variant_b/nodes/generate.js +171 -0
- package/dist/training/variant_b/nodes/generate.js.map +1 -0
- package/dist/training/variant_b/nodes/judge.d.ts +26 -0
- package/dist/training/variant_b/nodes/judge.js +64 -0
- package/dist/training/variant_b/nodes/judge.js.map +1 -0
- package/dist/training/variant_b/nodes/promote.d.ts +15 -0
- package/dist/training/variant_b/nodes/promote.js +64 -0
- package/dist/training/variant_b/nodes/promote.js.map +1 -0
- package/dist/training/variant_b/nodes/rank.d.ts +12 -0
- package/dist/training/variant_b/nodes/rank.js +46 -0
- package/dist/training/variant_b/nodes/rank.js.map +1 -0
- package/dist/training/variant_b/nodes/train.d.ts +34 -0
- package/dist/training/variant_b/nodes/train.js +209 -0
- package/dist/training/variant_b/nodes/train.js.map +1 -0
- package/dist/training/variant_b/run-flow.d.ts +12 -0
- package/dist/training/variant_b/run-flow.js +21 -0
- package/dist/training/variant_b/run-flow.js.map +1 -0
- package/dist/training/variant_b/train.d.ts +15 -0
- package/dist/training/variant_b/train.js +37 -0
- package/dist/training/variant_b/train.js.map +1 -0
- package/dist/types/registry-schemas.generated.d.ts +105 -0
- package/dist/types/registry-schemas.generated.js +5 -0
- package/dist/types/registry-schemas.generated.js.map +1 -0
- package/dist/types.d.ts +135 -0
- package/package.json +58 -15
- package/registry/_mirrors.json +29 -0
- package/registry/_schemas/buildhints.schema.json +30 -0
- package/registry/_schemas/family.schema.json +92 -0
- package/registry/_schemas/layer.schema.json +59 -0
- package/registry/_schemas/partner.schema.json +27 -0
- package/registry/families/agent-service-py/manifest.json +9 -0
- package/registry/families/agent-service-ts/files/package.json +8 -0
- package/registry/families/agent-service-ts/manifest.json +1 -4
- package/registry/families/agent-swarm-ts/files/package.json +31 -0
- package/registry/families/agent-swarm-ts/files/tsconfig.json +14 -0
- package/registry/families/agent-swarm-ts/files/validate-swarm.mjs +28 -0
- package/registry/families/agent-swarm-ts/manifest.json +174 -0
- package/registry/families/angular-ts/files/package.json +8 -0
- package/registry/families/aptos-move/files/README.md +45 -0
- package/registry/families/aptos-move/files/validate-aptos.mjs +33 -0
- package/registry/families/aptos-move/manifest.json +106 -0
- package/registry/families/arkworks-prover/files/Cargo.toml +25 -0
- package/registry/families/arkworks-prover/files/README.md +77 -0
- package/registry/families/arkworks-prover/files/rust-toolchain.toml +3 -0
- package/registry/families/arkworks-prover/files/src/circuit.rs +39 -0
- package/registry/families/arkworks-prover/files/src/main.rs +31 -0
- package/registry/families/arkworks-prover/files/src/prover.rs +47 -0
- package/registry/families/arkworks-prover/files/validate-arkworks.mjs +25 -0
- package/registry/families/arkworks-prover/manifest.json +84 -0
- package/registry/families/astro-static/files/package.json +28 -0
- package/registry/families/astro-static/files/tsconfig.json +5 -0
- package/registry/families/astro-static/files/validate-astro.mjs +26 -0
- package/registry/families/astro-static/manifest.json +141 -0
- package/registry/families/bevy-web/files/Cargo.toml +27 -0
- package/registry/families/bevy-web/files/Trunk.toml +20 -0
- package/registry/families/bevy-web/files/build.sh +32 -0
- package/registry/families/bevy-web/files/index.html +30 -0
- package/registry/families/bevy-web/files/validate-bevy-web.mjs +46 -0
- package/registry/families/bevy-web/manifest.json +171 -0
- package/registry/families/browser-extension-ts/files/package.json +4 -1
- package/registry/families/bun-http/files/bunfig.toml +9 -0
- package/registry/families/bun-http/files/package.json +23 -0
- package/registry/families/bun-http/files/tsconfig.json +16 -0
- package/registry/families/bun-http/files/validate-bun.mjs +21 -0
- package/registry/families/bun-http/manifest.json +163 -0
- package/registry/families/celestia-da/files/README.md +53 -0
- package/registry/families/celestia-da/files/validate-celestia.mjs +43 -0
- package/registry/families/celestia-da/manifest.json +117 -0
- package/registry/families/cli-ts/files/package.json +13 -0
- package/registry/families/cloudflare-worker-ts/files/package.json +8 -0
- package/registry/families/crm-backend/files/package.json +23 -0
- package/registry/families/crm-backend/files/tsconfig.json +14 -0
- package/registry/families/crm-backend/files/validate-crm.mjs +32 -0
- package/registry/families/crm-backend/manifest.json +132 -0
- package/registry/families/deno-edge/files/deno.json +17 -0
- package/registry/families/deno-edge/files/validate-deno.mjs +21 -0
- package/registry/families/deno-edge/manifest.json +153 -0
- package/registry/families/ecommerce-headless/files/package.json +24 -0
- package/registry/families/ecommerce-headless/files/tsconfig.json +14 -0
- package/registry/families/ecommerce-headless/files/validate-commerce.mjs +37 -0
- package/registry/families/ecommerce-headless/manifest.json +68 -0
- package/registry/families/electron-desktop-ts/files/package.json +11 -1
- package/registry/families/electron-native-os/files/package.json +35 -0
- package/registry/families/electron-native-os/files/preview-server.mjs +34 -0
- package/registry/families/electron-native-os/files/validate-types.mjs +39 -0
- package/registry/families/electron-native-os/manifest.json +200 -0
- package/registry/families/eleventy-static/files/.eleventy.js +16 -0
- package/registry/families/eleventy-static/files/package.json +23 -0
- package/registry/families/eleventy-static/files/validate-eleventy.mjs +25 -0
- package/registry/families/eleventy-static/manifest.json +106 -0
- package/registry/families/esp32-rust/files/Cargo.toml +47 -0
- package/registry/families/esp32-rust/files/build.rs +9 -0
- package/registry/families/esp32-rust/files/cargo-config.toml +22 -0
- package/registry/families/esp32-rust/files/rust-toolchain.toml +10 -0
- package/registry/families/esp32-rust/files/sdkconfig.defaults +28 -0
- package/registry/families/esp32-rust/files/validate-esp32.mjs +54 -0
- package/registry/families/esp32-rust/manifest.json +168 -0
- package/registry/families/expo-react-native-ts/files/package.json +13 -1
- package/registry/families/expo-rn-rich/files/package.json +37 -0
- package/registry/families/expo-rn-rich/files/validate-expo-rn-rich.mjs +43 -0
- package/registry/families/expo-rn-rich/manifest.json +181 -0
- package/registry/families/fhenix-contracts/files/package.json +1 -1
- package/registry/families/fhevm-contracts/files/package.json +1 -1
- package/registry/families/fintech-ledger-backend/files/package.json +30 -0
- package/registry/families/fintech-ledger-backend/files/tsconfig.json +14 -0
- package/registry/families/fintech-ledger-backend/files/validate-fintech.mjs +43 -0
- package/registry/families/fintech-ledger-backend/manifest.json +138 -0
- package/registry/families/flutter-app/files/analysis_options.yaml +17 -0
- package/registry/families/flutter-app/files/android/app/build.gradle +38 -0
- package/registry/families/flutter-app/files/ios/Runner/Info.plist +49 -0
- package/registry/families/flutter-app/files/pubspec.yaml +24 -0
- package/registry/families/flutter-app/files/validate-flutter.mjs +43 -0
- package/registry/families/flutter-app/manifest.json +189 -0
- package/registry/families/fraud-ops-console/files/.env.example +6 -0
- package/registry/families/fraud-ops-console/files/.gitkeep +0 -0
- package/registry/families/fraud-ops-console/files/README.md +43 -0
- package/registry/families/fraud-ops-console/files/index.html +12 -0
- package/registry/families/fraud-ops-console/files/package.json +37 -0
- package/registry/families/fraud-ops-console/files/src/App.tsx +19 -0
- package/registry/families/fraud-ops-console/files/src/main.tsx +9 -0
- package/registry/families/fraud-ops-console/files/tsconfig.json +12 -0
- package/registry/families/fraud-ops-console/files/validate-node.mjs +49 -0
- package/registry/families/fraud-ops-console/files/vite.config.ts +10 -0
- package/registry/families/fraud-ops-console/manifest.json +138 -0
- package/registry/families/frontend-static/files/package.json +8 -0
- package/registry/families/frontend-static/manifest.json +17 -0
- package/registry/families/fullstack-ts/files/package.json +11 -1
- package/registry/families/fullstack-ts/manifest.json +22 -0
- package/registry/families/gdpr-compliance-pack/files/docs/DPIA-template.md +55 -0
- package/registry/families/gdpr-compliance-pack/files/docs/GDPR-controls.md +65 -0
- package/registry/families/gdpr-compliance-pack/files/package.json +14 -0
- package/registry/families/gdpr-compliance-pack/files/src/components/CookieBanner.tsx +115 -0
- package/registry/families/gdpr-compliance-pack/files/src/consent.ts +71 -0
- package/registry/families/gdpr-compliance-pack/files/src/data-inventory.ts +94 -0
- package/registry/families/gdpr-compliance-pack/files/src/data-subject-rights.ts +98 -0
- package/registry/families/gdpr-compliance-pack/files/tsconfig.json +14 -0
- package/registry/families/gdpr-compliance-pack/files/validate-gdpr-pack.mjs +31 -0
- package/registry/families/gdpr-compliance-pack/manifest.json +56 -0
- package/registry/families/godot-web/files/README.md +71 -0
- package/registry/families/godot-web/files/export_presets.cfg +44 -0
- package/registry/families/godot-web/files/icon.svg +7 -0
- package/registry/families/godot-web/files/project.godot +28 -0
- package/registry/families/godot-web/files/validate-godot-web.mjs +46 -0
- package/registry/families/godot-web/manifest.json +172 -0
- package/registry/families/hardhat-contracts/files/package.json +11 -1
- package/registry/families/healthcare-hipaa-backend/files/package.json +29 -0
- package/registry/families/healthcare-hipaa-backend/files/tsconfig.json +15 -0
- package/registry/families/healthcare-hipaa-backend/files/validate-hipaa.mjs +35 -0
- package/registry/families/healthcare-hipaa-backend/manifest.json +145 -0
- package/registry/families/hipaa-compliance-pack/files/docs/BAA-template.md +60 -0
- package/registry/families/hipaa-compliance-pack/files/docs/HIPAA-controls.md +58 -0
- package/registry/families/hipaa-compliance-pack/files/package.json +14 -0
- package/registry/families/hipaa-compliance-pack/files/src/audit-log.ts +54 -0
- package/registry/families/hipaa-compliance-pack/files/src/encryption.ts +74 -0
- package/registry/families/hipaa-compliance-pack/files/src/phi-access.ts +83 -0
- package/registry/families/hipaa-compliance-pack/files/tsconfig.json +14 -0
- package/registry/families/hipaa-compliance-pack/files/validate-hipaa-pack.mjs +33 -0
- package/registry/families/hipaa-compliance-pack/manifest.json +63 -0
- package/registry/families/hls-origin/files/docker-compose.yml +32 -0
- package/registry/families/hls-origin/files/nginx.conf +68 -0
- package/registry/families/hls-origin/files/package.json +30 -0
- package/registry/families/hls-origin/files/start-stream.sh +58 -0
- package/registry/families/hls-origin/files/tsconfig.json +15 -0
- package/registry/families/hls-origin/files/validate-hls.mjs +50 -0
- package/registry/families/hls-origin/manifest.json +159 -0
- package/registry/families/hugo-static/files/config.toml +12 -0
- package/registry/families/hugo-static/files/validate-hugo.mjs +22 -0
- package/registry/families/hugo-static/manifest.json +99 -0
- package/registry/families/jupyter-book/files/_config.yml +26 -0
- package/registry/families/jupyter-book/files/_toc.yml +4 -0
- package/registry/families/jupyter-book/files/intro.md +16 -0
- package/registry/families/jupyter-book/files/requirements.txt +3 -0
- package/registry/families/jupyter-book/files/validate-jupyter-book.mjs +26 -0
- package/registry/families/jupyter-book/manifest.json +115 -0
- package/registry/families/k12-edtech/files/package.json +23 -0
- package/registry/families/k12-edtech/files/tsconfig.json +14 -0
- package/registry/families/k12-edtech/files/validate-k12.mjs +28 -0
- package/registry/families/k12-edtech/manifest.json +64 -0
- package/registry/families/kotlin-multiplatform/files/build.gradle.kts +67 -0
- package/registry/families/kotlin-multiplatform/files/gradle.properties +12 -0
- package/registry/families/kotlin-multiplatform/files/root-build.gradle.kts +12 -0
- package/registry/families/kotlin-multiplatform/files/settings.gradle.kts +30 -0
- package/registry/families/kotlin-multiplatform/files/validate-kmp.mjs +52 -0
- package/registry/families/kotlin-multiplatform/manifest.json +196 -0
- package/registry/families/kyc-onboarding/files/.env.example +6 -0
- package/registry/families/kyc-onboarding/files/.gitkeep +0 -0
- package/registry/families/kyc-onboarding/files/README.md +23 -0
- package/registry/families/kyc-onboarding/files/index.html +12 -0
- package/registry/families/kyc-onboarding/files/package.json +24 -0
- package/registry/families/kyc-onboarding/files/src/App.tsx +40 -0
- package/registry/families/kyc-onboarding/files/src/main.ts +12 -0
- package/registry/families/kyc-onboarding/files/tsconfig.json +17 -0
- package/registry/families/kyc-onboarding/files/validate-node.mjs +17 -0
- package/registry/families/kyc-onboarding/files/vite.config.ts +15 -0
- package/registry/families/kyc-onboarding/manifest.json +140 -0
- package/registry/families/legal-case-mgmt/files/package.json +24 -0
- package/registry/families/legal-case-mgmt/files/tsconfig.json +14 -0
- package/registry/families/legal-case-mgmt/files/validate-legal.mjs +12 -0
- package/registry/families/legal-case-mgmt/manifest.json +85 -0
- package/registry/families/livekit-sfu/files/.env.example +8 -0
- package/registry/families/livekit-sfu/files/docker-compose.yml +27 -0
- package/registry/families/livekit-sfu/files/livekit.yaml +30 -0
- package/registry/families/livekit-sfu/files/package.json +31 -0
- package/registry/families/livekit-sfu/files/tsconfig.json +15 -0
- package/registry/families/livekit-sfu/files/validate-livekit.mjs +46 -0
- package/registry/families/livekit-sfu/manifest.json +152 -0
- package/registry/families/lora-training/files/.env.example +8 -0
- package/registry/families/lora-training/files/README-lora.md +71 -0
- package/registry/families/lora-training/files/config/train.yaml +54 -0
- package/registry/families/lora-training/files/data/sample.jsonl +5 -0
- package/registry/families/lora-training/files/pyproject.toml +29 -0
- package/registry/families/lora-training/files/validate-lora.mjs +63 -0
- package/registry/families/lora-training/manifest.json +183 -0
- package/registry/families/move-contracts/files/validate-move.mjs +1 -1
- package/registry/families/move-contracts/manifest.json +0 -1
- package/registry/families/multimodal-agent/files/api/README.md +108 -0
- package/registry/families/multimodal-agent/files/index.html +105 -0
- package/registry/families/multimodal-agent/files/package.json +31 -0
- package/registry/families/multimodal-agent/files/tsconfig.json +15 -0
- package/registry/families/multimodal-agent/files/validate-multimodal.mjs +64 -0
- package/registry/families/multimodal-agent/files/vite.config.ts +15 -0
- package/registry/families/multimodal-agent/manifest.json +143 -0
- package/registry/families/nextjs-ts/files/package.json +16 -6
- package/registry/families/nextjs-ts/manifest.json +35 -0
- package/registry/families/nextjs-ts/prompt-fragment.md +12 -0
- package/registry/families/observable-notebook/files/index.md +23 -0
- package/registry/families/observable-notebook/files/observablehq.config.ts +15 -0
- package/registry/families/observable-notebook/files/package.json +26 -0
- package/registry/families/observable-notebook/files/tsconfig.json +13 -0
- package/registry/families/observable-notebook/files/validate-observable.mjs +24 -0
- package/registry/families/observable-notebook/manifest.json +110 -0
- package/registry/families/ollama-server/files/Modelfile +10 -0
- package/registry/families/ollama-server/files/README.md +32 -0
- package/registry/families/ollama-server/files/docker-compose.yml +23 -0
- package/registry/families/ollama-server/files/package.json +14 -0
- package/registry/families/ollama-server/files/tsconfig.json +13 -0
- package/registry/families/ollama-server/files/validate-ollama.mjs +19 -0
- package/registry/families/ollama-server/manifest.json +101 -0
- package/registry/families/pci-dss-compliance-pack/files/docs/PCI-DSS-controls.md +43 -0
- package/registry/families/pci-dss-compliance-pack/files/package.json +14 -0
- package/registry/families/pci-dss-compliance-pack/files/src/pan-redact.ts +50 -0
- package/registry/families/pci-dss-compliance-pack/files/src/tokenize.ts +39 -0
- package/registry/families/pci-dss-compliance-pack/files/tsconfig.json +14 -0
- package/registry/families/pci-dss-compliance-pack/files/validate-pci-pack.mjs +19 -0
- package/registry/families/pci-dss-compliance-pack/manifest.json +50 -0
- package/registry/families/phaser-game/files/index.html +17 -0
- package/registry/families/phaser-game/files/package.json +18 -0
- package/registry/families/phaser-game/files/tsconfig.json +15 -0
- package/registry/families/phaser-game/files/validate-phaser.mjs +19 -0
- package/registry/families/phaser-game/files/vite.config.ts +11 -0
- package/registry/families/phaser-game/manifest.json +91 -0
- package/registry/families/pixijs-game/files/index.html +16 -0
- package/registry/families/pixijs-game/files/package.json +18 -0
- package/registry/families/pixijs-game/files/tsconfig.json +13 -0
- package/registry/families/pixijs-game/files/validate-pixi.mjs +14 -0
- package/registry/families/pixijs-game/files/vite.config.ts +6 -0
- package/registry/families/pixijs-game/manifest.json +90 -0
- package/registry/families/playwright-worker/files/package.json +8 -0
- package/registry/families/polymarket-portfolio-hedging/files/.env.example +5 -0
- package/registry/families/polymarket-portfolio-hedging/files/.gitkeep +0 -0
- package/registry/families/polymarket-portfolio-hedging/files/README.md +37 -0
- package/registry/families/polymarket-portfolio-hedging/files/index.html +1 -0
- package/registry/families/polymarket-portfolio-hedging/files/package.json +32 -0
- package/registry/families/polymarket-portfolio-hedging/files/src/App.tsx +45 -0
- package/registry/families/polymarket-portfolio-hedging/files/src/main.tsx +9 -0
- package/registry/families/polymarket-portfolio-hedging/files/tsconfig.json +12 -0
- package/registry/families/polymarket-portfolio-hedging/files/validate-node.mjs +1 -0
- package/registry/families/polymarket-portfolio-hedging/files/vite.config.ts +10 -0
- package/registry/families/polymarket-portfolio-hedging/manifest.json +127 -0
- package/registry/families/python-api/manifest.json +1 -3
- package/registry/families/rag-pipeline-py/files/.env.example +20 -0
- package/registry/families/rag-pipeline-py/files/README-rag.md +57 -0
- package/registry/families/rag-pipeline-py/files/docs/sample.md +14 -0
- package/registry/families/rag-pipeline-py/files/pyproject.toml +26 -0
- package/registry/families/rag-pipeline-py/files/validate-rag.mjs +38 -0
- package/registry/families/rag-pipeline-py/manifest.json +174 -0
- package/registry/families/react-vite-ts/files/package.json +16 -6
- package/registry/families/react-vite-ts/files/src/components/ui/badge.tsx +9 -0
- package/registry/families/react-vite-ts/files/src/components/ui/button.tsx +18 -0
- package/registry/families/react-vite-ts/files/src/components/ui/card.tsx +22 -0
- package/registry/families/react-vite-ts/manifest.json +45 -2
- package/registry/families/realtime-audio-ts/files/package.json +25 -0
- package/registry/families/realtime-audio-ts/files/validate-realtime-audio.mjs +43 -0
- package/registry/families/realtime-audio-ts/manifest.json +177 -0
- package/registry/families/remix-ts/files/package.json +16 -8
- package/registry/families/remix-ts/manifest.json +30 -0
- package/registry/families/risczero-zkvm/files/Cargo.toml +23 -0
- package/registry/families/risczero-zkvm/files/README.md +66 -0
- package/registry/families/risczero-zkvm/files/host/main.rs +25 -0
- package/registry/families/risczero-zkvm/files/host/prover.rs +48 -0
- package/registry/families/risczero-zkvm/files/host-Cargo.toml +16 -0
- package/registry/families/risczero-zkvm/files/methods/Cargo.toml +11 -0
- package/registry/families/risczero-zkvm/files/methods/build.rs +6 -0
- package/registry/families/risczero-zkvm/files/methods/guest/main.rs +38 -0
- package/registry/families/risczero-zkvm/files/methods/guest-Cargo.toml +12 -0
- package/registry/families/risczero-zkvm/files/methods/src-lib.rs +3 -0
- package/registry/families/risczero-zkvm/files/rust-toolchain.toml +3 -0
- package/registry/families/risczero-zkvm/files/validate-risczero.mjs +41 -0
- package/registry/families/risczero-zkvm/manifest.json +109 -0
- package/registry/families/ros2-node-py/files/README-ros2.md +46 -0
- package/registry/families/ros2-node-py/files/package.xml +28 -0
- package/registry/families/ros2-node-py/files/resource-marker +1 -0
- package/registry/families/ros2-node-py/files/setup.cfg +5 -0
- package/registry/families/ros2-node-py/files/setup.py +32 -0
- package/registry/families/ros2-node-py/files/validate-ros2-py.mjs +96 -0
- package/registry/families/ros2-node-py/manifest.json +197 -0
- package/registry/families/sglang-server/files/.env.example +21 -0
- package/registry/families/sglang-server/files/README-sglang.md +60 -0
- package/registry/families/sglang-server/files/client.py +87 -0
- package/registry/families/sglang-server/files/docker-compose.yml +46 -0
- package/registry/families/sglang-server/files/launch.sh +26 -0
- package/registry/families/sglang-server/files/requirements.txt +5 -0
- package/registry/families/sglang-server/files/validate-sglang.mjs +49 -0
- package/registry/families/sglang-server/manifest.json +182 -0
- package/registry/families/skypilot-serving/files/.env.example +12 -0
- package/registry/families/skypilot-serving/files/README-skypilot.md +73 -0
- package/registry/families/skypilot-serving/files/requirements.txt +5 -0
- package/registry/families/skypilot-serving/files/service.yaml +44 -0
- package/registry/families/skypilot-serving/files/sky-serve.yaml +25 -0
- package/registry/families/skypilot-serving/files/validate-skypilot.mjs +41 -0
- package/registry/families/skypilot-serving/manifest.json +181 -0
- package/registry/families/soc2-compliance-pack/files/docs/SOC2-controls.md +54 -0
- package/registry/families/soc2-compliance-pack/files/docs/incident-response.md +33 -0
- package/registry/families/soc2-compliance-pack/files/docs/vendor-attestations.md +36 -0
- package/registry/families/soc2-compliance-pack/files/package.json +14 -0
- package/registry/families/soc2-compliance-pack/files/src/audit.ts +46 -0
- package/registry/families/soc2-compliance-pack/files/src/change-mgmt.ts +36 -0
- package/registry/families/soc2-compliance-pack/files/tsconfig.json +14 -0
- package/registry/families/soc2-compliance-pack/files/validate-soc2-pack.mjs +25 -0
- package/registry/families/soc2-compliance-pack/manifest.json +60 -0
- package/registry/families/sp1-zkvm/files/Cargo.toml +18 -0
- package/registry/families/sp1-zkvm/files/README.md +68 -0
- package/registry/families/sp1-zkvm/files/program/main.rs +21 -0
- package/registry/families/sp1-zkvm/files/program-Cargo.toml +11 -0
- package/registry/families/sp1-zkvm/files/rust-toolchain.toml +3 -0
- package/registry/families/sp1-zkvm/files/script/main.rs +13 -0
- package/registry/families/sp1-zkvm/files/script/prover.rs +36 -0
- package/registry/families/sp1-zkvm/files/script-Cargo.toml +17 -0
- package/registry/families/sp1-zkvm/files/validate-sp1.mjs +30 -0
- package/registry/families/sp1-zkvm/manifest.json +92 -0
- package/registry/families/stm32-rust/files/Cargo.toml +69 -0
- package/registry/families/stm32-rust/files/Embed.toml +26 -0
- package/registry/families/stm32-rust/files/build.rs +24 -0
- package/registry/families/stm32-rust/files/cargo-config.toml +20 -0
- package/registry/families/stm32-rust/files/memory.x +25 -0
- package/registry/families/stm32-rust/files/validate-stm32.mjs +19 -0
- package/registry/families/stm32-rust/manifest.json +170 -0
- package/registry/families/streamlit-advanced/files/config.toml +12 -0
- package/registry/families/streamlit-advanced/files/requirements.txt +5 -0
- package/registry/families/streamlit-advanced/files/validate-streamlit.mjs +27 -0
- package/registry/families/streamlit-advanced/manifest.json +109 -0
- package/registry/families/sveltekit-ts/files/package.json +9 -1
- package/registry/families/tauri-desktop/files/package.json +7 -5
- package/registry/families/tauri-menubar/files/package.json +31 -0
- package/registry/families/tauri-menubar/files/preview-server.mjs +36 -0
- package/registry/families/tauri-menubar/files/validate-types.mjs +31 -0
- package/registry/families/tauri-menubar/manifest.json +174 -0
- package/registry/families/tauri-tray/files/package.json +23 -0
- package/registry/families/tauri-tray/files/preview-server.mjs +63 -0
- package/registry/families/tauri-tray/files/validate-types.mjs +27 -0
- package/registry/families/tauri-tray/manifest.json +174 -0
- package/registry/families/tgi-server/files/.env.example +22 -0
- package/registry/families/tgi-server/files/README-tgi.md +59 -0
- package/registry/families/tgi-server/files/client.py +78 -0
- package/registry/families/tgi-server/files/docker-compose.yml +46 -0
- package/registry/families/tgi-server/files/requirements.txt +3 -0
- package/registry/families/tgi-server/files/validate-tgi.mjs +44 -0
- package/registry/families/tgi-server/manifest.json +178 -0
- package/registry/families/threejs-game/files/index.html +16 -0
- package/registry/families/threejs-game/files/package.json +27 -0
- package/registry/families/threejs-game/files/tsconfig.json +13 -0
- package/registry/families/threejs-game/files/validate-threejs.mjs +32 -0
- package/registry/families/threejs-game/files/vite.config.ts +10 -0
- package/registry/families/threejs-game/manifest.json +164 -0
- package/registry/families/triton-server/files/README-triton.md +65 -0
- package/registry/families/triton-server/files/client.py +54 -0
- package/registry/families/triton-server/files/docker-compose.yml +41 -0
- package/registry/families/triton-server/files/model_repository/identity/1/.gitkeep +9 -0
- package/registry/families/triton-server/files/model_repository/identity/config.pbtxt +43 -0
- package/registry/families/triton-server/files/requirements.txt +2 -0
- package/registry/families/triton-server/files/validate-triton.mjs +53 -0
- package/registry/families/triton-server/manifest.json +190 -0
- package/registry/families/unity-web-proxy/files/Build/.gitkeep +17 -0
- package/registry/families/unity-web-proxy/files/README.md +68 -0
- package/registry/families/unity-web-proxy/files/package.json +24 -0
- package/registry/families/unity-web-proxy/files/scripts/build-webgl.sh +62 -0
- package/registry/families/unity-web-proxy/files/tsconfig.json +13 -0
- package/registry/families/unity-web-proxy/files/validate-unity.mjs +60 -0
- package/registry/families/unity-web-proxy/files/vite.config.ts +32 -0
- package/registry/families/unity-web-proxy/manifest.json +175 -0
- package/registry/families/vision-first-agent/files/api/README.md +92 -0
- package/registry/families/vision-first-agent/files/index.html +67 -0
- package/registry/families/vision-first-agent/files/package.json +24 -0
- package/registry/families/vision-first-agent/files/tsconfig.json +13 -0
- package/registry/families/vision-first-agent/files/validate-vision.mjs +48 -0
- package/registry/families/vision-first-agent/files/vite.config.ts +13 -0
- package/registry/families/vision-first-agent/manifest.json +142 -0
- package/registry/families/vllm-server/files/README-serving.md +60 -0
- package/registry/families/vllm-server/files/config.yaml +26 -0
- package/registry/families/vllm-server/files/requirements.txt +6 -0
- package/registry/families/vllm-server/files/validate-vllm.mjs +30 -0
- package/registry/families/vllm-server/manifest.json +165 -0
- package/registry/families/voice-first-agent/files/api/README.md +83 -0
- package/registry/families/voice-first-agent/files/index.html +59 -0
- package/registry/families/voice-first-agent/files/package.json +24 -0
- package/registry/families/voice-first-agent/files/tsconfig.json +13 -0
- package/registry/families/voice-first-agent/files/validate-voice.mjs +46 -0
- package/registry/families/voice-first-agent/files/vite.config.ts +16 -0
- package/registry/families/voice-first-agent/manifest.json +140 -0
- package/registry/families/vue-ts/files/package.json +9 -1
- package/registry/families/wasm-rust/files/Cargo.toml +20 -0
- package/registry/families/wasm-rust/files/build-wasm.mjs +22 -0
- package/registry/families/wasm-rust/files/package.json +27 -0
- package/registry/families/wasm-rust/files/tsconfig.json +14 -0
- package/registry/families/wasm-rust/files/validate-wasm.mjs +30 -0
- package/registry/families/wasm-rust/files/vite.config.ts +11 -0
- package/registry/families/wasm-rust/manifest.json +156 -0
- package/registry/families/webgpu-inference/files/index.html +25 -0
- package/registry/families/webgpu-inference/files/package.json +24 -0
- package/registry/families/webgpu-inference/files/tsconfig.json +14 -0
- package/registry/families/webgpu-inference/files/validate-webgpu-inference.mjs +52 -0
- package/registry/families/webgpu-inference/files/vite.config.ts +13 -0
- package/registry/families/webgpu-inference/manifest.json +173 -0
- package/registry/families/webgpu-render/files/index.html +19 -0
- package/registry/families/webgpu-render/files/package.json +24 -0
- package/registry/families/webgpu-render/files/tsconfig.json +14 -0
- package/registry/families/webgpu-render/files/validate-webgpu-render.mjs +58 -0
- package/registry/families/webgpu-render/files/vite.config.ts +11 -0
- package/registry/families/webgpu-render/manifest.json +171 -0
- package/registry/families/zk-prover-service/manifest.json +2 -6
- package/registry/families/zola-static/files/config.toml +13 -0
- package/registry/families/zola-static/files/validate-zola.mjs +23 -0
- package/registry/families/zola-static/manifest.json +96 -0
- package/registry/layers/auth/better-auth/manifest.json +40 -18
- package/registry/layers/auth/clerk/manifest.json +40 -18
- package/registry/layers/auth/none/manifest.json +42 -18
- package/registry/layers/auth/supabase-auth/manifest.json +29 -18
- package/registry/layers/capability/agent-multi-agent/manifest.json +9 -9
- package/registry/layers/capability/ai-chat-ui/manifest.json +112 -1
- package/registry/layers/capability/banking-baas/files/banking-config.json +25 -0
- package/registry/layers/capability/banking-baas/files/banking.ts +125 -0
- package/registry/layers/capability/banking-baas/manifest.json +59 -0
- package/registry/layers/capability/chart-widget/manifest.json +69 -3
- package/registry/layers/capability/code-editor/files/code-editor.tsx +82 -0
- package/registry/layers/capability/code-editor/manifest.json +90 -0
- package/registry/layers/capability/date-utils/manifest.json +64 -0
- package/registry/layers/capability/evm-nft-mint-page/files/.gitkeep +0 -0
- package/registry/layers/capability/evm-nft-mint-page/files/evm-nft-mint.md +21 -0
- package/registry/layers/capability/evm-nft-mint-page/files/src/components/MintPage.tsx +38 -0
- package/registry/layers/capability/evm-nft-mint-page/files/src/mint-page-config.json +1 -0
- package/registry/layers/capability/evm-nft-mint-page/manifest.json +75 -0
- package/registry/layers/capability/evm-wallet-dashboard/manifest.json +6 -1
- package/registry/layers/capability/layout-admin/manifest.json +84 -14
- package/registry/layers/capability/layout-auth/manifest.json +12 -0
- package/registry/layers/capability/layout-chat/manifest.json +100 -14
- package/registry/layers/capability/layout-dashboard/manifest.json +0 -1
- package/registry/layers/capability/logging/manifest.json +10 -14
- package/registry/layers/capability/multi-tenancy/manifest.json +60 -0
- package/registry/layers/capability/passkey-onboarding/files/.gitkeep +0 -0
- package/registry/layers/capability/passkey-onboarding/files/passkey-onboarding.md +37 -0
- package/registry/layers/capability/passkey-onboarding/files/src/components/PasskeyRegister.tsx +25 -0
- package/registry/layers/capability/passkey-onboarding/files/src/components/PasskeySignIn.tsx +84 -0
- package/registry/layers/capability/passkey-onboarding/files/src/passkey-onboarding-config.json +1 -0
- package/registry/layers/capability/passkey-onboarding/manifest.json +78 -0
- package/registry/layers/capability/routing/files/router.tsx +63 -0
- package/registry/layers/capability/routing/files/routing-notes.md +33 -0
- package/registry/layers/capability/routing/manifest.json +66 -0
- package/registry/layers/capability/saas-billing/manifest.json +5 -0
- package/registry/layers/capability/shadcn/files/breadcrumb.tsx +1 -1
- package/registry/layers/capability/shadcn/files/collapsible.tsx +50 -0
- package/registry/layers/capability/shadcn/files/popover.tsx +54 -0
- package/registry/layers/capability/shadcn/manifest.json +22 -1
- package/registry/layers/capability/stripe-checkout-onetime/files/checkout.ts +60 -0
- package/registry/layers/capability/stripe-checkout-onetime/manifest.json +36 -0
- package/registry/layers/capability/stripe-connect/files/connect-api.ts +57 -0
- package/registry/layers/capability/stripe-connect/files/connect-config.json +8 -0
- package/registry/layers/capability/stripe-connect/manifest.json +40 -0
- package/registry/layers/capability/stripe-metered/files/metered.ts +43 -0
- package/registry/layers/capability/stripe-metered/manifest.json +35 -0
- package/registry/layers/capability/tailwind/manifest.json +13 -1
- package/registry/layers/capability/tangle-gpu-provider/files/gpu-config.json +14 -0
- package/registry/layers/capability/tangle-gpu-provider/manifest.json +34 -0
- package/registry/layers/capability/tangle-mpp/files/mpp-config.json +18 -0
- package/registry/layers/capability/tangle-mpp/manifest.json +30 -0
- package/registry/layers/capability/tangle-remote-provider/files/remote-config.json +28 -0
- package/registry/layers/capability/tangle-remote-provider/manifest.json +29 -0
- package/registry/layers/capability/tangle-tee/files/tee-config.json +20 -0
- package/registry/layers/capability/tangle-tee/manifest.json +31 -0
- package/registry/layers/capability/tangle-x402/files/x402-config.json +11 -0
- package/registry/layers/capability/tangle-x402/manifest.json +24 -0
- package/registry/layers/capability/webhook-processor/manifest.json +10 -14
- package/registry/layers/capability/webrtc/manifest.json +79 -10
- package/registry/layers/capability/zk-browser/files/mixer-deposit-panel.tsx +64 -0
- package/registry/layers/capability/zk-browser/files/mixer-merkle-panel.tsx +41 -0
- package/registry/layers/capability/zk-browser/files/mixer-note.ts +90 -0
- package/registry/layers/capability/zk-browser/files/mixer-verify-panel.tsx +66 -0
- package/registry/layers/capability/zk-browser/files/mixer-withdraw-panel.tsx +105 -0
- package/registry/layers/capability/zk-browser/files/zk-circuits.md +73 -0
- package/registry/layers/capability/zk-browser/files/zkproof.ts +94 -0
- package/registry/layers/capability/zk-browser/manifest.json +112 -0
- package/registry/layers/capability/zk-gnark/files/circuit.go +28 -0
- package/registry/layers/capability/zk-gnark/files/gnark-notes.md +80 -0
- package/registry/layers/capability/zk-gnark/files/prover.go +70 -0
- package/registry/layers/capability/zk-gnark/manifest.json +63 -0
- package/registry/layers/capability/zk-noir/files/circuits/Nargo.toml +7 -0
- package/registry/layers/capability/zk-noir/files/circuits/main.nr +22 -0
- package/registry/layers/capability/zk-noir/files/noir-notes.md +72 -0
- package/registry/layers/capability/zk-noir/files/prover.ts +53 -0
- package/registry/layers/capability/zk-noir/manifest.json +72 -0
- package/registry/layers/database/convex/manifest.json +12 -9
- package/registry/layers/database/mongodb/manifest.json +12 -9
- package/registry/layers/database/postgres/manifest.json +18 -9
- package/registry/layers/database/sqlite/manifest.json +18 -9
- package/registry/layers/framework/agent-swarm-ts/files/researcher.ts +30 -0
- package/registry/layers/framework/agent-swarm-ts/files/server.ts +35 -0
- package/registry/layers/framework/agent-swarm-ts/files/state.ts +33 -0
- package/registry/layers/framework/agent-swarm-ts/files/supervisor.ts +31 -0
- package/registry/layers/framework/agent-swarm-ts/files/writer.ts +27 -0
- package/registry/layers/framework/agent-swarm-ts/manifest.json +27 -0
- package/registry/layers/framework/aptos-move/files/AGENTS.md +58 -0
- package/registry/layers/framework/aptos-move/files/Move.toml +10 -0
- package/registry/layers/framework/aptos-move/files/module.move +46 -0
- package/registry/layers/framework/aptos-move/files/package.json +9 -0
- package/registry/layers/framework/aptos-move/files/scripts/deploy.sh +21 -0
- package/registry/layers/framework/aptos-move/files/test.move +30 -0
- package/registry/layers/framework/aptos-move/manifest.json +88 -0
- package/registry/layers/framework/arkworks-prover/manifest.json +6 -0
- package/registry/layers/framework/astro-static/files/astro.config.mjs +9 -0
- package/registry/layers/framework/astro-static/files/src/env.d.ts +1 -0
- package/registry/layers/framework/astro-static/files/src/layouts/Base.astro +33 -0
- package/registry/layers/framework/astro-static/files/src/pages/index.astro +18 -0
- package/registry/layers/framework/astro-static/manifest.json +75 -0
- package/registry/layers/framework/bevy-web/files/src/main.rs +79 -0
- package/registry/layers/framework/bevy-web/manifest.json +48 -0
- package/registry/layers/framework/bun-http/files/handlers.ts +25 -0
- package/registry/layers/framework/bun-http/files/server.ts +15 -0
- package/registry/layers/framework/bun-http/manifest.json +15 -0
- package/registry/layers/framework/celestia-da/files/AGENTS.md +70 -0
- package/registry/layers/framework/celestia-da/files/cmd/celestia-node/main.go +146 -0
- package/registry/layers/framework/celestia-da/files/config.toml +32 -0
- package/registry/layers/framework/celestia-da/files/docker-compose.yml +30 -0
- package/registry/layers/framework/celestia-da/files/go.mod +3 -0
- package/registry/layers/framework/celestia-da/files/go.sum +0 -0
- package/registry/layers/framework/celestia-da/files/submit-blob.sh +54 -0
- package/registry/layers/framework/celestia-da/manifest.json +65 -0
- package/registry/layers/framework/crm-backend/files/contacts.ts +93 -0
- package/registry/layers/framework/crm-backend/files/db.ts +8 -0
- package/registry/layers/framework/crm-backend/files/drizzle.config.ts +9 -0
- package/registry/layers/framework/crm-backend/files/package.json +22 -0
- package/registry/layers/framework/crm-backend/files/pipeline.ts +158 -0
- package/registry/layers/framework/crm-backend/files/reporting.ts +69 -0
- package/registry/layers/framework/crm-backend/files/schema.ts +146 -0
- package/registry/layers/framework/crm-backend/files/server.ts +42 -0
- package/registry/layers/framework/crm-backend/manifest.json +89 -0
- package/registry/layers/framework/deno-edge/files/handlers.ts +24 -0
- package/registry/layers/framework/deno-edge/files/server.ts +12 -0
- package/registry/layers/framework/deno-edge/manifest.json +15 -0
- package/registry/layers/framework/ecommerce-headless/files/.env.example +12 -0
- package/registry/layers/framework/ecommerce-headless/files/AGENTS.md +57 -0
- package/registry/layers/framework/ecommerce-headless/files/cart.ts +119 -0
- package/registry/layers/framework/ecommerce-headless/files/checkout.ts +113 -0
- package/registry/layers/framework/ecommerce-headless/files/db.ts +8 -0
- package/registry/layers/framework/ecommerce-headless/files/drizzle.config.ts +9 -0
- package/registry/layers/framework/ecommerce-headless/files/package.json +23 -0
- package/registry/layers/framework/ecommerce-headless/files/products.ts +33 -0
- package/registry/layers/framework/ecommerce-headless/files/schema.ts +160 -0
- package/registry/layers/framework/ecommerce-headless/files/server.ts +43 -0
- package/registry/layers/framework/ecommerce-headless/files/stripe-webhook.ts +148 -0
- package/registry/layers/framework/ecommerce-headless/files/tsconfig.json +14 -0
- package/registry/layers/framework/ecommerce-headless/manifest.json +81 -0
- package/registry/layers/framework/electron-native-os/files/App.tsx +87 -0
- package/registry/layers/framework/electron-native-os/files/deeplinks.ts +59 -0
- package/registry/layers/framework/electron-native-os/files/electron-builder.json +39 -0
- package/registry/layers/framework/electron-native-os/files/electron.vite.config.ts +14 -0
- package/registry/layers/framework/electron-native-os/files/index.ts +119 -0
- package/registry/layers/framework/electron-native-os/files/menu.ts +99 -0
- package/registry/layers/framework/electron-native-os/files/package.json +30 -0
- package/registry/layers/framework/electron-native-os/files/preload.ts +33 -0
- package/registry/layers/framework/electron-native-os/files/protocol.ts +56 -0
- package/registry/layers/framework/electron-native-os/files/renderer-index.html +14 -0
- package/registry/layers/framework/electron-native-os/files/renderer-main.tsx +12 -0
- package/registry/layers/framework/electron-native-os/files/styles.css +72 -0
- package/registry/layers/framework/electron-native-os/files/tsconfig.json +14 -0
- package/registry/layers/framework/electron-native-os/files/updater.ts +29 -0
- package/registry/layers/framework/electron-native-os/manifest.json +121 -0
- package/registry/layers/framework/eleventy-static/files/base.njk +23 -0
- package/registry/layers/framework/eleventy-static/files/index.md +11 -0
- package/registry/layers/framework/eleventy-static/files/src/assets/.gitkeep +0 -0
- package/registry/layers/framework/eleventy-static/manifest.json +75 -0
- package/registry/layers/framework/esp32-rust/files/.cargo/config.toml +3 -0
- package/registry/layers/framework/esp32-rust/files/Cargo.toml +11 -0
- package/registry/layers/framework/esp32-rust/files/README.md +51 -0
- package/registry/layers/framework/esp32-rust/files/build.rs +1 -0
- package/registry/layers/framework/esp32-rust/files/rust-toolchain.toml +2 -0
- package/registry/layers/framework/esp32-rust/files/src/main.rs +16 -0
- package/registry/layers/framework/esp32-rust/manifest.json +48 -0
- package/registry/layers/framework/expo-react-native-ts/files/tsconfig.json +2 -1
- package/registry/layers/framework/expo-rn-rich/files/App.tsx +28 -0
- package/registry/layers/framework/expo-rn-rich/files/CanvasScreen.tsx +84 -0
- package/registry/layers/framework/expo-rn-rich/files/HomeScreen.tsx +43 -0
- package/registry/layers/framework/expo-rn-rich/files/RootNavigator.tsx +37 -0
- package/registry/layers/framework/expo-rn-rich/files/app.json +27 -0
- package/registry/layers/framework/expo-rn-rich/files/babel.config.js +10 -0
- package/registry/layers/framework/expo-rn-rich/files/metro.config.cjs +9 -0
- package/registry/layers/framework/expo-rn-rich/files/metro.config.js +14 -0
- package/registry/layers/framework/expo-rn-rich/files/tsconfig.json +12 -0
- package/registry/layers/framework/expo-rn-rich/manifest.json +101 -0
- package/registry/layers/framework/fintech-ledger-backend/files/db.ts +10 -0
- package/registry/layers/framework/fintech-ledger-backend/files/drizzle.config.ts +9 -0
- package/registry/layers/framework/fintech-ledger-backend/files/ledger/query.ts +66 -0
- package/registry/layers/framework/fintech-ledger-backend/files/money.ts +32 -0
- package/registry/layers/framework/fintech-ledger-backend/files/post.ts +141 -0
- package/registry/layers/framework/fintech-ledger-backend/files/schema.ts +87 -0
- package/registry/layers/framework/fintech-ledger-backend/files/server.ts +26 -0
- package/registry/layers/framework/fintech-ledger-backend/files/transactions-api.ts +59 -0
- package/registry/layers/framework/fintech-ledger-backend/files/tsconfig.json +17 -0
- package/registry/layers/framework/fintech-ledger-backend/manifest.json +82 -0
- package/registry/layers/framework/flutter-app/files/main.dart +189 -0
- package/registry/layers/framework/flutter-app/manifest.json +15 -0
- package/registry/layers/framework/forge-foundation/files/foundry.toml +11 -1
- package/registry/layers/framework/fraud-ops-console/manifest.json +8 -0
- package/registry/layers/framework/fullstack-node-ts/files/personalize.json +5 -5
- package/registry/layers/framework/gdpr-compliance-pack/files/AGENTS.md +40 -0
- package/registry/layers/framework/gdpr-compliance-pack/files/package.json +19 -0
- package/registry/layers/framework/gdpr-compliance-pack/files/tsconfig.json +14 -0
- package/registry/layers/framework/gdpr-compliance-pack/manifest.json +60 -0
- package/registry/layers/framework/godot-web/files/export/web/.gitkeep +0 -0
- package/registry/layers/framework/godot-web/files/export_presets.cfg +5 -0
- package/registry/layers/framework/godot-web/files/exports/web/.gitkeep +0 -0
- package/registry/layers/framework/godot-web/files/package.json +15 -0
- package/registry/layers/framework/godot-web/files/project.godot +5 -0
- package/registry/layers/framework/godot-web/files/scenes/main.tscn +19 -0
- package/registry/layers/framework/godot-web/files/scripts/main.gd +29 -0
- package/registry/layers/framework/godot-web/files/src/main.ts +2 -0
- package/registry/layers/framework/godot-web/files/tsconfig.json +11 -0
- package/registry/layers/framework/godot-web/manifest.json +62 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/db.ts +13 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/drizzle.config.ts +11 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/encounters.ts +89 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/encryption.ts +69 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/hipaa.md +65 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/package.json +22 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/patients.ts +86 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/phi-access.ts +85 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/schema.ts +82 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/server.ts +43 -0
- package/registry/layers/framework/healthcare-hipaa-backend/files/tsconfig.json +15 -0
- package/registry/layers/framework/healthcare-hipaa-backend/manifest.json +138 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/AGENTS.md +39 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/docs/BAA-template.md +60 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/docs/HIPAA-controls.md +58 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/package.json +14 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/src/audit-log.ts +54 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/src/encryption.ts +74 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/src/phi-access.ts +83 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/tsconfig.json +14 -0
- package/registry/layers/framework/hipaa-compliance-pack/files/validate-hipaa-pack.mjs +33 -0
- package/registry/layers/framework/hipaa-compliance-pack/manifest.json +56 -0
- package/registry/layers/framework/hls-origin/files/server.ts +83 -0
- package/registry/layers/framework/hls-origin/manifest.json +72 -0
- package/registry/layers/framework/hugo-static/files/_index.md +18 -0
- package/registry/layers/framework/hugo-static/files/baseof.html +22 -0
- package/registry/layers/framework/hugo-static/files/index.html +13 -0
- package/registry/layers/framework/hugo-static/files/package.json +13 -0
- package/registry/layers/framework/hugo-static/manifest.json +70 -0
- package/registry/layers/framework/jupyter-book/files/chapter-1.md +30 -0
- package/registry/layers/framework/jupyter-book/manifest.json +63 -0
- package/registry/layers/framework/k12-edtech/files/README.md +79 -0
- package/registry/layers/framework/k12-edtech/files/classroom.ts +119 -0
- package/registry/layers/framework/k12-edtech/files/db.ts +8 -0
- package/registry/layers/framework/k12-edtech/files/drizzle.config.ts +9 -0
- package/registry/layers/framework/k12-edtech/files/gradebook.ts +161 -0
- package/registry/layers/framework/k12-edtech/files/schema.ts +171 -0
- package/registry/layers/framework/k12-edtech/files/server.ts +58 -0
- package/registry/layers/framework/k12-edtech/files/tsconfig.json +15 -0
- package/registry/layers/framework/k12-edtech/manifest.json +105 -0
- package/registry/layers/framework/kotlin-multiplatform/files/AGENTS.md +67 -0
- package/registry/layers/framework/kotlin-multiplatform/files/App.kt +46 -0
- package/registry/layers/framework/kotlin-multiplatform/files/Platform.android.kt +5 -0
- package/registry/layers/framework/kotlin-multiplatform/files/Platform.ios.kt +6 -0
- package/registry/layers/framework/kotlin-multiplatform/files/build.gradle.kts +3 -0
- package/registry/layers/framework/kotlin-multiplatform/files/pom.xml +38 -0
- package/registry/layers/framework/kotlin-multiplatform/files/settings.gradle.kts +7 -0
- package/registry/layers/framework/kotlin-multiplatform/files/src/commonMain/kotlin/App.kt +3 -0
- package/registry/layers/framework/kotlin-multiplatform/manifest.json +74 -0
- package/registry/layers/framework/kyc-onboarding/manifest.json +8 -0
- package/registry/layers/framework/legal-case-mgmt/files/.env.example +5 -0
- package/registry/layers/framework/legal-case-mgmt/files/AGENTS.md +62 -0
- package/registry/layers/framework/legal-case-mgmt/files/billing.ts +130 -0
- package/registry/layers/framework/legal-case-mgmt/files/db.ts +8 -0
- package/registry/layers/framework/legal-case-mgmt/files/drizzle.config.ts +9 -0
- package/registry/layers/framework/legal-case-mgmt/files/matter.ts +111 -0
- package/registry/layers/framework/legal-case-mgmt/files/package.json +23 -0
- package/registry/layers/framework/legal-case-mgmt/files/schema.ts +148 -0
- package/registry/layers/framework/legal-case-mgmt/files/server.ts +50 -0
- package/registry/layers/framework/legal-case-mgmt/files/tsconfig.json +16 -0
- package/registry/layers/framework/legal-case-mgmt/files/validate-legal.mjs +26 -0
- package/registry/layers/framework/legal-case-mgmt/manifest.json +79 -0
- package/registry/layers/framework/livekit-sfu/files/AGENTS.md +76 -0
- package/registry/layers/framework/livekit-sfu/files/server.ts +84 -0
- package/registry/layers/framework/livekit-sfu/manifest.json +67 -0
- package/registry/layers/framework/lora-training/files/infer.py +102 -0
- package/registry/layers/framework/lora-training/files/pyrightconfig.json +8 -0
- package/registry/layers/framework/lora-training/files/train.py +174 -0
- package/registry/layers/framework/lora-training/manifest.json +78 -0
- package/registry/layers/framework/move-package/files/Move.toml +20 -1
- package/registry/layers/framework/move-package/files/module.move +1 -1
- package/registry/layers/framework/move-package/files/test.move +4 -6
- package/registry/layers/framework/multimodal-agent/files/App.tsx +219 -0
- package/registry/layers/framework/multimodal-agent/files/main.tsx +12 -0
- package/registry/layers/framework/multimodal-agent/manifest.json +60 -0
- package/registry/layers/framework/observable-notebook/files/data/rows.json.ts +11 -0
- package/registry/layers/framework/observable-notebook/files/overview.md +28 -0
- package/registry/layers/framework/observable-notebook/files/src/observablehq.d.ts +12 -0
- package/registry/layers/framework/observable-notebook/files/tsconfig.json +13 -0
- package/registry/layers/framework/observable-notebook/manifest.json +55 -0
- package/registry/layers/framework/ollama-server/files/.env.example +6 -0
- package/registry/layers/framework/ollama-server/files/src/client.ts +52 -0
- package/registry/layers/framework/ollama-server/manifest.json +52 -0
- package/registry/layers/framework/pci-dss-compliance-pack/files/AGENTS.md +52 -0
- package/registry/layers/framework/pci-dss-compliance-pack/files/README.md +51 -0
- package/registry/layers/framework/pci-dss-compliance-pack/files/src/index.ts +3 -0
- package/registry/layers/framework/pci-dss-compliance-pack/manifest.json +50 -0
- package/registry/layers/framework/phaser-game/files/src/main.ts +19 -0
- package/registry/layers/framework/phaser-game/files/src/scenes/MainScene.ts +38 -0
- package/registry/layers/framework/phaser-game/manifest.json +55 -0
- package/registry/layers/framework/pixijs-game/files/src/main.ts +49 -0
- package/registry/layers/framework/pixijs-game/files/src/vite-env.d.ts +1 -0
- package/registry/layers/framework/pixijs-game/manifest.json +51 -0
- package/registry/layers/framework/polymarket-portfolio-hedging/manifest.json +8 -0
- package/registry/layers/framework/rag-pipeline-py/files/AGENTS.md +55 -0
- package/registry/layers/framework/rag-pipeline-py/files/__init__.py +1 -0
- package/registry/layers/framework/rag-pipeline-py/files/pipeline.py +220 -0
- package/registry/layers/framework/rag-pipeline-py/manifest.json +56 -0
- package/registry/layers/framework/react-vite-ts/files/App.tsx +9 -72
- package/registry/layers/framework/realtime-audio-ts/files/audio.ts +75 -0
- package/registry/layers/framework/realtime-audio-ts/files/index.html +34 -0
- package/registry/layers/framework/realtime-audio-ts/files/main.ts +93 -0
- package/registry/layers/framework/realtime-audio-ts/files/peer.ts +68 -0
- package/registry/layers/framework/realtime-audio-ts/files/styles.css +59 -0
- package/registry/layers/framework/realtime-audio-ts/files/tsconfig.json +12 -0
- package/registry/layers/framework/realtime-audio-ts/files/visualizer.ts +59 -0
- package/registry/layers/framework/realtime-audio-ts/files/vite.config.ts +16 -0
- package/registry/layers/framework/realtime-audio-ts/manifest.json +54 -0
- package/registry/layers/framework/risczero-zkvm/manifest.json +6 -0
- package/registry/layers/framework/ros2-node-py/files/AGENTS.md +58 -0
- package/registry/layers/framework/ros2-node-py/files/__init__.py +0 -0
- package/registry/layers/framework/ros2-node-py/files/bringup.launch.py +23 -0
- package/registry/layers/framework/ros2-node-py/files/minimal_publisher.py +43 -0
- package/registry/layers/framework/ros2-node-py/files/minimal_subscriber.py +36 -0
- package/registry/layers/framework/ros2-node-py/files/my_node.py +24 -0
- package/registry/layers/framework/ros2-node-py/files/setup.py +28 -0
- package/registry/layers/framework/ros2-node-py/manifest.json +90 -0
- package/registry/layers/framework/sglang-server/files/Makefile +22 -0
- package/registry/layers/framework/sglang-server/files/README.md +56 -0
- package/registry/layers/framework/sglang-server/files/__init__.py +1 -0
- package/registry/layers/framework/sglang-server/files/pyproject.toml +30 -0
- package/registry/layers/framework/sglang-server/manifest.json +62 -0
- package/registry/layers/framework/skypilot-serving/files/AGENTS.md +85 -0
- package/registry/layers/framework/skypilot-serving/manifest.json +68 -0
- package/registry/layers/framework/soc2-compliance-pack/files/AGENTS.md +46 -0
- package/registry/layers/framework/soc2-compliance-pack/files/README.md +61 -0
- package/registry/layers/framework/soc2-compliance-pack/files/src/index.ts +3 -0
- package/registry/layers/framework/soc2-compliance-pack/manifest.json +52 -0
- package/registry/layers/framework/sp1-zkvm/manifest.json +6 -0
- package/registry/layers/framework/stm32-rust/files/.cargo/config.toml +9 -0
- package/registry/layers/framework/stm32-rust/files/Embed.toml +27 -0
- package/registry/layers/framework/stm32-rust/files/rust-toolchain.toml +3 -0
- package/registry/layers/framework/stm32-rust/files/src/main.rs +54 -0
- package/registry/layers/framework/stm32-rust/manifest.json +66 -0
- package/registry/layers/framework/streamlit-advanced/files/.env.example +3 -0
- package/registry/layers/framework/streamlit-advanced/files/README.md +58 -0
- package/registry/layers/framework/streamlit-advanced/files/analysis.py +40 -0
- package/registry/layers/framework/streamlit-advanced/files/app.py +76 -0
- package/registry/layers/framework/streamlit-advanced/manifest.json +60 -0
- package/registry/layers/framework/tangle-blueprint/files/TOOLCHAIN.md +16 -0
- package/registry/layers/framework/tangle-blueprint/files/lib.rs +29 -15
- package/registry/layers/framework/tangle-blueprint/files/rust-toolchain.toml +1 -1
- package/registry/layers/framework/tangle-blueprint/manifest.json +4 -0
- package/registry/layers/framework/tauri-menubar/README.md +54 -0
- package/registry/layers/framework/tauri-menubar/files/App.tsx +65 -0
- package/registry/layers/framework/tauri-menubar/files/Cargo.toml +18 -0
- package/registry/layers/framework/tauri-menubar/files/build.rs +3 -0
- package/registry/layers/framework/tauri-menubar/files/index.html +13 -0
- package/registry/layers/framework/tauri-menubar/files/lib.rs +75 -0
- package/registry/layers/framework/tauri-menubar/files/main.rs +7 -0
- package/registry/layers/framework/tauri-menubar/files/main.tsx +14 -0
- package/registry/layers/framework/tauri-menubar/files/styles.css +112 -0
- package/registry/layers/framework/tauri-menubar/files/tauri.conf.json +45 -0
- package/registry/layers/framework/tauri-menubar/files/tsconfig.json +13 -0
- package/registry/layers/framework/tauri-menubar/files/vite.config.ts +18 -0
- package/registry/layers/framework/tauri-menubar/manifest.json +92 -0
- package/registry/layers/framework/tauri-tray/files/Cargo.toml +19 -0
- package/registry/layers/framework/tauri-tray/files/build.rs +3 -0
- package/registry/layers/framework/tauri-tray/files/lib.rs +89 -0
- package/registry/layers/framework/tauri-tray/files/main.rs +5 -0
- package/registry/layers/framework/tauri-tray/files/src/main.ts +1 -0
- package/registry/layers/framework/tauri-tray/files/src/tray.ts +5 -0
- package/registry/layers/framework/tauri-tray/files/tauri.conf.json +28 -0
- package/registry/layers/framework/tauri-tray/files/tsconfig.json +11 -0
- package/registry/layers/framework/tauri-tray/manifest.json +80 -0
- package/registry/layers/framework/tgi-server/files/pyproject.toml +20 -0
- package/registry/layers/framework/tgi-server/files/src/__init__.py +1 -0
- package/registry/layers/framework/tgi-server/files/src/main.py +50 -0
- package/registry/layers/framework/tgi-server/manifest.json +41 -0
- package/registry/layers/framework/threejs-game/files/src/main.ts +62 -0
- package/registry/layers/framework/threejs-game/files/src/vite-env.d.ts +1 -0
- package/registry/layers/framework/threejs-game/manifest.json +50 -0
- package/registry/layers/framework/triton-server/files/AGENTS.md +71 -0
- package/registry/layers/framework/triton-server/files/Makefile +25 -0
- package/registry/layers/framework/triton-server/files/__init__.py +1 -0
- package/registry/layers/framework/triton-server/files/pyproject.toml +33 -0
- package/registry/layers/framework/triton-server/manifest.json +70 -0
- package/registry/layers/framework/unity-web-proxy/files/index.html +104 -0
- package/registry/layers/framework/unity-web-proxy/manifest.json +63 -0
- package/registry/layers/framework/vision-first-agent/files/main.ts +143 -0
- package/registry/layers/framework/vision-first-agent/files/vite-env.d.ts +1 -0
- package/registry/layers/framework/vision-first-agent/manifest.json +47 -0
- package/registry/layers/framework/vllm-server/files/__init__.py +0 -0
- package/registry/layers/framework/vllm-server/files/server.py +134 -0
- package/registry/layers/framework/vllm-server/manifest.json +15 -0
- package/registry/layers/framework/voice-first-agent/files/main.ts +160 -0
- package/registry/layers/framework/voice-first-agent/files/vite-env.d.ts +1 -0
- package/registry/layers/framework/voice-first-agent/manifest.json +48 -0
- package/registry/layers/framework/wasm-rust/files/index.html +12 -0
- package/registry/layers/framework/wasm-rust/files/lib.rs +43 -0
- package/registry/layers/framework/wasm-rust/files/main.ts +24 -0
- package/registry/layers/framework/wasm-rust/files/pkg/starter_foundry_wasm.d.ts +7 -0
- package/registry/layers/framework/wasm-rust/manifest.json +23 -0
- package/registry/layers/framework/webgpu-inference/files/src/main.ts +167 -0
- package/registry/layers/framework/webgpu-inference/files/src/shaders/matmul.wgsl +30 -0
- package/registry/layers/framework/webgpu-inference/manifest.json +55 -0
- package/registry/layers/framework/webgpu-render/files/src/main.ts +113 -0
- package/registry/layers/framework/webgpu-render/files/src/shaders/main.wgsl +37 -0
- package/registry/layers/framework/webgpu-render/files/src/vite-env.d.ts +1 -0
- package/registry/layers/framework/webgpu-render/manifest.json +56 -0
- package/registry/layers/framework/zola-static/files/_index.md +10 -0
- package/registry/layers/framework/zola-static/files/base.html +12 -0
- package/registry/layers/framework/zola-static/files/gitignore +3 -0
- package/registry/layers/framework/zola-static/files/index.html +26 -0
- package/registry/layers/framework/zola-static/files/main.scss +21 -0
- package/registry/layers/framework/zola-static/files/package.json +12 -0
- package/registry/layers/framework/zola-static/files/static.gitkeep +0 -0
- package/registry/layers/framework/zola-static/manifest.json +72 -0
- package/registry/layers/payments/coinbase-commerce/manifest.json +26 -17
- package/registry/layers/payments/none/manifest.json +28 -17
- package/registry/layers/payments/stripe/manifest.json +27 -17
- package/registry/layers/queue/bullmq/manifest.json +15 -13
- package/registry/layers/queue/none/manifest.json +15 -13
- package/registry/layers/queue/trigger-dev/manifest.json +15 -13
- package/registry/layers/sdk/coinbase-cdp/manifest.json +24 -17
- package/registry/layers/sdk/evm-wallet/manifest.json +24 -17
- package/registry/layers/sdk/none/manifest.json +26 -17
- package/registry/layers/sdk/solana-web3/manifest.json +24 -17
- package/registry/package-to-capability.json +63 -0
- package/registry/partners/avalanche/files/partner-config.json +14 -0
- package/registry/partners/avalanche/files/starter-brand.json +5 -0
- package/registry/partners/avalanche/manifest.json +46 -0
- package/registry/partners/chainlink/files/chainlink-config.json +29 -0
- package/registry/partners/chainlink/manifest.json +43 -0
- package/registry/partners/farcaster/files/partner-config.json +10 -0
- package/registry/partners/farcaster/files/starter-brand.json +5 -0
- package/registry/partners/farcaster/manifest.json +44 -0
- package/registry/partners/hyperliquid/files/partner-config.json +12 -0
- package/registry/partners/hyperliquid/files/starter-brand.json +5 -0
- package/registry/partners/hyperliquid/manifest.json +46 -0
- package/registry/partners/lens/files/partner-config.json +12 -0
- package/registry/partners/lens/files/starter-brand.json +5 -0
- package/registry/partners/lens/manifest.json +44 -0
- package/registry/partners/linea/files/partner-config.json +13 -0
- package/registry/partners/linea/files/starter-brand.json +5 -0
- package/registry/partners/linea/manifest.json +45 -0
- package/registry/partners/monad/files/partner-config.json +10 -0
- package/registry/partners/monad/files/starter-brand.json +5 -0
- package/registry/partners/monad/manifest.json +46 -0
- package/registry/partners/polygon/files/partner-config.json +16 -0
- package/registry/partners/polygon/files/starter-brand.json +5 -0
- package/registry/partners/polygon/manifest.json +46 -0
- package/registry/partners/sei-evm/files/partner-config.json +12 -0
- package/registry/partners/sei-evm/files/starter-brand.json +5 -0
- package/registry/partners/sei-evm/manifest.json +45 -0
- package/registry/partners/sui/files/sui-config.json +18 -0
- package/registry/partners/sui/manifest.json +41 -0
- package/registry/partners/tempo/files/tempo-config.json +26 -0
- package/registry/partners/tempo/manifest.json +46 -0
- package/registry/partners/tether/files/partner-config.json +17 -0
- package/registry/partners/tether/files/starter-brand.json +5 -0
- package/registry/partners/tether/manifest.json +49 -0
- package/registry/partners/usdc-circle/files/partner-config.json +25 -0
- package/registry/partners/usdc-circle/files/starter-brand.json +5 -0
- package/registry/partners/usdc-circle/manifest.json +50 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Native stack at the root, bottom tabs nested inside the first
|
|
2
|
+
// screen. This is the canonical two-level nav pattern — deep linking
|
|
3
|
+
// resolves cleanly and transitions stay native.
|
|
4
|
+
|
|
5
|
+
import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
|
6
|
+
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
|
|
7
|
+
import HomeScreen from "../screens/HomeScreen";
|
|
8
|
+
import CanvasScreen from "../screens/CanvasScreen";
|
|
9
|
+
|
|
10
|
+
export type RootStackParamList = {
|
|
11
|
+
MainTabs: undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type MainTabParamList = {
|
|
15
|
+
Home: undefined;
|
|
16
|
+
Canvas: undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const Stack = createNativeStackNavigator<RootStackParamList>();
|
|
20
|
+
const Tabs = createBottomTabNavigator<MainTabParamList>();
|
|
21
|
+
|
|
22
|
+
function MainTabs() {
|
|
23
|
+
return (
|
|
24
|
+
<Tabs.Navigator screenOptions={{ headerShown: true }}>
|
|
25
|
+
<Tabs.Screen name="Home" component={HomeScreen} />
|
|
26
|
+
<Tabs.Screen name="Canvas" component={CanvasScreen} />
|
|
27
|
+
</Tabs.Navigator>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default function RootNavigator() {
|
|
32
|
+
return (
|
|
33
|
+
<Stack.Navigator screenOptions={{ headerShown: false }}>
|
|
34
|
+
<Stack.Screen name="MainTabs" component={MainTabs} />
|
|
35
|
+
</Stack.Navigator>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"expo": {
|
|
3
|
+
"name": "{{projectName}}",
|
|
4
|
+
"slug": "{{packageName}}",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"orientation": "portrait",
|
|
7
|
+
"userInterfaceStyle": "automatic",
|
|
8
|
+
"newArchEnabled": true,
|
|
9
|
+
"ios": {
|
|
10
|
+
"supportsTablet": true,
|
|
11
|
+
"bundleIdentifier": "com.starterfoundry.{{packageName}}"
|
|
12
|
+
},
|
|
13
|
+
"android": {
|
|
14
|
+
"package": "com.starterfoundry.{{packageName}}",
|
|
15
|
+
"useLegacyPackaging": true
|
|
16
|
+
},
|
|
17
|
+
"plugins": [
|
|
18
|
+
[
|
|
19
|
+
"expo-build-properties",
|
|
20
|
+
{
|
|
21
|
+
"ios": { "newArchEnabled": true },
|
|
22
|
+
"android": { "newArchEnabled": true }
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// IMPORTANT: react-native-reanimated/plugin MUST be the LAST plugin in
|
|
2
|
+
// this list. Misordering produces "Reanimated 2 failed to create a
|
|
3
|
+
// worklet" at runtime with no indication that babel was the cause.
|
|
4
|
+
export default function (api) {
|
|
5
|
+
api.cache(true);
|
|
6
|
+
return {
|
|
7
|
+
presets: ["babel-preset-expo"],
|
|
8
|
+
plugins: ["react-native-reanimated/plugin"],
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Skia ships a .wasm asset for its CanvasKit fallback on some
|
|
2
|
+
// environments; register the extension so Metro doesn't skip it.
|
|
3
|
+
import { getDefaultConfig } from "expo/metro-config";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { dirname } from "node:path";
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const config = getDefaultConfig(__dirname);
|
|
9
|
+
|
|
10
|
+
config.resolver.assetExts = Array.from(
|
|
11
|
+
new Set([...config.resolver.assetExts, "wasm", "ttf"]),
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export default config;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "expo-rn-rich",
|
|
3
|
+
"description": "Expo React Native scaffold with Skia GPU canvas, Reanimated v3 worklets, Gesture Handler, and React Navigation (native stack + bottom tabs). Requires a custom dev client — Expo Go is incompatible with Skia and Reanimated v3.",
|
|
4
|
+
"appliesTo": ["expo-rn-rich"],
|
|
5
|
+
"files": [
|
|
6
|
+
{ "source": "files/App.tsx", "target": "App.tsx" },
|
|
7
|
+
{ "source": "files/app.json", "target": "app.json" },
|
|
8
|
+
{ "source": "files/babel.config.js", "target": "babel.config.js" },
|
|
9
|
+
{ "source": "files/metro.config.cjs", "target": "metro.config.cjs" },
|
|
10
|
+
{ "source": "files/tsconfig.json", "target": "tsconfig.json" },
|
|
11
|
+
{ "source": "files/RootNavigator.tsx", "target": "src/navigation/RootNavigator.tsx" },
|
|
12
|
+
{ "source": "files/HomeScreen.tsx", "target": "src/screens/HomeScreen.tsx" },
|
|
13
|
+
{ "source": "files/CanvasScreen.tsx", "target": "src/screens/CanvasScreen.tsx" }
|
|
14
|
+
],
|
|
15
|
+
"packageDeps": {
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@react-navigation/bottom-tabs": "^7.2.0",
|
|
18
|
+
"@react-navigation/native": "^7.0.0",
|
|
19
|
+
"@react-navigation/native-stack": "^7.2.0",
|
|
20
|
+
"@shopify/react-native-skia": "^1.7.0",
|
|
21
|
+
"expo": "~52.0.0",
|
|
22
|
+
"expo-build-properties": "~0.13.0",
|
|
23
|
+
"expo-status-bar": "~2.0.0",
|
|
24
|
+
"react": "^19.2.0",
|
|
25
|
+
"react-native": "^0.79.0",
|
|
26
|
+
"react-native-gesture-handler": "~2.20.0",
|
|
27
|
+
"react-native-reanimated": "~3.16.0",
|
|
28
|
+
"react-native-safe-area-context": "~4.12.0",
|
|
29
|
+
"react-native-screens": "~4.1.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/core": "^7.25.0",
|
|
33
|
+
"@types/react": "^19.2.0",
|
|
34
|
+
"typescript": "^5.9.0"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"buildHints": {
|
|
38
|
+
"whenToUse": "Pick expo-rn-rich when the app needs GPU-backed 2D drawing (Skia), worklet-driven 60fps animations (Reanimated v3), native gesture composition (Gesture Handler), and stack+tab navigation (React Navigation). If the user just needs a plain React Native shell without the animation stack, use expo-react-native-ts — this family pulls in ~15MB of extra native deps that need a dev client build.",
|
|
39
|
+
"firstSteps": [
|
|
40
|
+
"Run `pnpm install` to install all JS dependencies — no native build required at this step.",
|
|
41
|
+
"Run `npx tsc --noEmit` to verify that all types compile cleanly against the installed packages.",
|
|
42
|
+
"Run `expo prebuild --clean` to generate the ios/ and android/ native project folders from app.json config.",
|
|
43
|
+
"Build a custom dev client with `eas build --profile development` or `expo run:ios` / `expo run:android` — Expo Go cannot load Skia or Reanimated v3 native modules.",
|
|
44
|
+
"Once the dev client is installed on device/simulator, start the bundler with `npx expo start --dev-client` and open it in the custom client app.",
|
|
45
|
+
"Replace {{headline}} / {{subheadline}} in HomeScreen.tsx with real copy, or let the compose tool substitute them via the defaults in the family manifest."
|
|
46
|
+
],
|
|
47
|
+
"gotchas": [
|
|
48
|
+
"Expo Go INCOMPATIBILITY: Skia + Reanimated v3 require a custom dev client. Users who run `npx expo start` and scan the QR with Expo Go will see 'Native module RNReanimated is not installed'.",
|
|
49
|
+
"Reanimated babel plugin order: `react-native-reanimated/plugin` MUST be the LAST entry in the babel.config.js plugins array. Misordering silently breaks worklets with a 'Reanimated 2 failed to create a worklet' runtime error.",
|
|
50
|
+
"`react-native-gesture-handler` must be imported at the TOP of App.tsx before any other imports — any import before it initialises without the gesture patches applied and fires warnings in production.",
|
|
51
|
+
"GestureHandlerRootView must wrap the entire app tree in App.tsx, not just individual screens, or nested gestures drop events on Android.",
|
|
52
|
+
"expo-build-properties is required as a dependency because it is referenced as an Expo config plugin in app.json → plugins. Missing it causes `expo prebuild` to fail with 'Cannot find module expo-build-properties'.",
|
|
53
|
+
"Android: The `android.useLegacyPackaging: true` flag in app.json is needed for Hermes-compatible Reanimated — without it the APK balloons by ~20MB.",
|
|
54
|
+
"Worklet constraints: code inside `useAnimatedStyle` / `useAnimatedReaction` runs on the UI thread and cannot close over JS-thread variables unless marked with `'worklet'`. Mis-use shows up as 'ReferenceError: X is not defined' on interaction.",
|
|
55
|
+
"EAS Build: Reanimated + Skia push the build past Expo's free-tier 45-minute limit on first run — set `cache.key` in eas.json to cache native pods, or upgrade to a paid tier."
|
|
56
|
+
],
|
|
57
|
+
"architectureNotes": [
|
|
58
|
+
"Reanimated v3 requires its Babel plugin to be the LAST plugin in babel.config.js — misordering silently breaks worklets.",
|
|
59
|
+
"GestureHandlerRootView MUST wrap the entire app tree (App.tsx), not individual screens, or nested gestures drop events on Android.",
|
|
60
|
+
"@shopify/react-native-skia ships its own native module — it will NOT run inside Expo Go. The project requires a dev client (`eas build --profile development`) or `expo prebuild` to generate ios/android folders.",
|
|
61
|
+
"react-native-screens is enabled via `enableScreens()` before any navigator renders — this yields 30–40% lower memory on large stacks.",
|
|
62
|
+
"Screens live under src/screens/, navigators under src/navigation/. This split lets agents add screens without rewriting the root navigator."
|
|
63
|
+
],
|
|
64
|
+
"placeholders": [
|
|
65
|
+
{
|
|
66
|
+
"path": "src/screens/HomeScreen.tsx",
|
|
67
|
+
"description": "{{headline}} and {{subheadline}} are template vars substituted at compose time. The three Section cards (Navigation, Auth, Payments) are stubs — replace or extend with real app content."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "src/screens/CanvasScreen.tsx",
|
|
71
|
+
"description": "Orbiting circle driven by Reanimated shared values + Skia Canvas. Replace the Circle/Path primitives with your GPU-backed UI — keep the Canvas, GestureDetector, and shared-value scaffolding."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "app.json",
|
|
75
|
+
"description": "{{projectName}} and {{packageName}} are substituted at compose time. Update ios.bundleIdentifier and android.package to match your real bundle ID before running eas build."
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"contextHints": {
|
|
80
|
+
"commands": [
|
|
81
|
+
"pnpm install",
|
|
82
|
+
"npx tsc --noEmit",
|
|
83
|
+
"expo prebuild --clean",
|
|
84
|
+
"npx expo start --dev-client",
|
|
85
|
+
"eas build --profile development",
|
|
86
|
+
"node validate-expo-rn-rich.mjs"
|
|
87
|
+
],
|
|
88
|
+
"entrypoints": [
|
|
89
|
+
"App.tsx",
|
|
90
|
+
"src/navigation/RootNavigator.tsx",
|
|
91
|
+
"src/screens/HomeScreen.tsx",
|
|
92
|
+
"src/screens/CanvasScreen.tsx"
|
|
93
|
+
],
|
|
94
|
+
"preview": null,
|
|
95
|
+
"extensionPoints": [
|
|
96
|
+
"src/screens/",
|
|
97
|
+
"src/navigation/RootNavigator.tsx",
|
|
98
|
+
"app.json"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import postgres from 'postgres'
|
|
2
|
+
import { drizzle } from 'drizzle-orm/postgres-js'
|
|
3
|
+
import * as schema from './schema.js'
|
|
4
|
+
|
|
5
|
+
// ── env ──────────────────────────────────────────────────────────────────────
|
|
6
|
+
const DATABASE_URL: string = process.env['DATABASE_URL'] ?? 'postgres://localhost:5432/ledger'
|
|
7
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
8
|
+
|
|
9
|
+
const client = postgres(DATABASE_URL, { ssl: 'prefer', max: 10 })
|
|
10
|
+
export const db = drizzle(client, { schema })
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineConfig } from 'drizzle-kit'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
schema: './src/db/schema.ts',
|
|
5
|
+
out: './drizzle',
|
|
6
|
+
dialect: 'postgresql',
|
|
7
|
+
dbCredentials: { url: process.env.DATABASE_URL ?? 'postgres://localhost:5432/ledger' },
|
|
8
|
+
strict: true,
|
|
9
|
+
})
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Decimal } from 'decimal.js'
|
|
2
|
+
import { and, desc, eq, gte, lte } from 'drizzle-orm'
|
|
3
|
+
import { db } from '../db/client.js'
|
|
4
|
+
import { entries, transactions } from '../db/schema.js'
|
|
5
|
+
|
|
6
|
+
export interface LedgerBalance {
|
|
7
|
+
accountId: string
|
|
8
|
+
balance: string
|
|
9
|
+
asOf: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface LedgerEntry {
|
|
13
|
+
id: string
|
|
14
|
+
transactionId: string
|
|
15
|
+
accountId: string
|
|
16
|
+
direction: 'debit' | 'credit'
|
|
17
|
+
amount: string
|
|
18
|
+
currency: string
|
|
19
|
+
postedAt: Date
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export async function accountBalance(accountId: string, asOf: Date = new Date()): Promise<LedgerBalance> {
|
|
23
|
+
const rows = await db
|
|
24
|
+
.select({
|
|
25
|
+
direction: entries.direction,
|
|
26
|
+
amount: entries.amount,
|
|
27
|
+
})
|
|
28
|
+
.from(entries)
|
|
29
|
+
.innerJoin(transactions, eq(entries.transactionId, transactions.id))
|
|
30
|
+
.where(and(eq(entries.accountId, accountId), lte(transactions.postedAt, asOf)))
|
|
31
|
+
|
|
32
|
+
const balance = rows.reduce<Decimal>((acc, r) => {
|
|
33
|
+
const amt = new Decimal(r.amount)
|
|
34
|
+
return r.direction === 'credit' ? acc.plus(amt) : acc.minus(amt)
|
|
35
|
+
}, new Decimal(0))
|
|
36
|
+
|
|
37
|
+
return { accountId, balance: balance.toFixed(2), asOf: asOf.toISOString() }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export async function accountEntries(
|
|
41
|
+
accountId: string,
|
|
42
|
+
options: { limit?: number; from?: Date; to?: Date } = {},
|
|
43
|
+
): Promise<LedgerEntry[]> {
|
|
44
|
+
const limit = options.limit ?? 100
|
|
45
|
+
const conditions = [eq(entries.accountId, accountId)]
|
|
46
|
+
if (options.from) conditions.push(gte(transactions.postedAt, options.from))
|
|
47
|
+
if (options.to) conditions.push(lte(transactions.postedAt, options.to))
|
|
48
|
+
|
|
49
|
+
const rows = await db
|
|
50
|
+
.select({
|
|
51
|
+
id: entries.id,
|
|
52
|
+
transactionId: entries.transactionId,
|
|
53
|
+
accountId: entries.accountId,
|
|
54
|
+
direction: entries.direction,
|
|
55
|
+
amount: entries.amount,
|
|
56
|
+
currency: entries.currency,
|
|
57
|
+
postedAt: transactions.postedAt,
|
|
58
|
+
})
|
|
59
|
+
.from(entries)
|
|
60
|
+
.innerJoin(transactions, eq(entries.transactionId, transactions.id))
|
|
61
|
+
.where(and(...conditions))
|
|
62
|
+
.orderBy(desc(transactions.postedAt))
|
|
63
|
+
.limit(limit)
|
|
64
|
+
|
|
65
|
+
return rows
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Decimal from 'decimal.js'
|
|
2
|
+
|
|
3
|
+
// Money always flows through Decimal. Everywhere a numeric string enters
|
|
4
|
+
// from the outside world, it goes through `m(...)`. Everywhere it leaves,
|
|
5
|
+
// it's `.toFixed(4)` so NUMERIC storage is byte-stable.
|
|
6
|
+
Decimal.set({ precision: 40, rounding: Decimal.ROUND_HALF_EVEN })
|
|
7
|
+
|
|
8
|
+
export function m(raw: string | number | Decimal): Decimal {
|
|
9
|
+
if (raw instanceof Decimal) return raw
|
|
10
|
+
if (typeof raw === 'number') {
|
|
11
|
+
if (!Number.isFinite(raw)) throw new Error('invalid amount (non-finite)')
|
|
12
|
+
// Funnel through string to avoid IEEE-754 artifacts from float->Decimal.
|
|
13
|
+
return new Decimal(raw.toString())
|
|
14
|
+
}
|
|
15
|
+
if (typeof raw === 'string') {
|
|
16
|
+
if (!/^-?\d+(\.\d+)?$/.test(raw)) throw new Error(`invalid amount string: ${raw}`)
|
|
17
|
+
return new Decimal(raw)
|
|
18
|
+
}
|
|
19
|
+
throw new Error('unsupported amount type')
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function sum(values: Iterable<Decimal>): Decimal {
|
|
23
|
+
let total = new Decimal(0)
|
|
24
|
+
for (const v of values) total = total.plus(v)
|
|
25
|
+
return total
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function toDbString(value: Decimal): string {
|
|
29
|
+
// 4 scale matches the NUMERIC(20,4) column. HALF_EVEN (banker's rounding)
|
|
30
|
+
// minimizes drift under repeated rounding.
|
|
31
|
+
return value.toFixed(4, Decimal.ROUND_HALF_EVEN)
|
|
32
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// Atomic post_transaction: validates the debit=credit invariant per currency
|
|
2
|
+
// and inserts the transaction + entries in a single DB transaction. Any
|
|
3
|
+
// error rolls the whole thing back so the ledger can never land unbalanced.
|
|
4
|
+
import { eq } from 'drizzle-orm'
|
|
5
|
+
import { db } from '../db/client.js'
|
|
6
|
+
import { entries, transactions, type Entry, type Transaction } from '../db/schema.js'
|
|
7
|
+
import { m, toDbString } from './money.js'
|
|
8
|
+
import Decimal from 'decimal.js'
|
|
9
|
+
|
|
10
|
+
export interface PostEntryInput {
|
|
11
|
+
accountId: string
|
|
12
|
+
direction: 'debit' | 'credit'
|
|
13
|
+
amount: string | number
|
|
14
|
+
currency: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PostTransactionInput {
|
|
18
|
+
idempotencyKey?: string
|
|
19
|
+
externalRef?: string
|
|
20
|
+
memo?: string
|
|
21
|
+
postedAt?: Date
|
|
22
|
+
entries: PostEntryInput[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface PostResult {
|
|
26
|
+
transaction: Transaction
|
|
27
|
+
entries: Entry[]
|
|
28
|
+
idempotent: boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class LedgerError extends Error {
|
|
32
|
+
constructor(message: string, public readonly code: string) {
|
|
33
|
+
super(message)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export async function postTransaction(input: PostTransactionInput): Promise<PostResult> {
|
|
38
|
+
if (input.entries.length < 2) {
|
|
39
|
+
throw new LedgerError('a transaction needs at least two entries', 'NOT_ENOUGH_ENTRIES')
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Group by currency; each currency group must balance debits == credits.
|
|
43
|
+
const byCurrency = new Map<string, { debit: Decimal; credit: Decimal }>()
|
|
44
|
+
for (const e of input.entries) {
|
|
45
|
+
if (!/^[A-Z]{3}$/.test(e.currency)) {
|
|
46
|
+
throw new LedgerError(`bad currency code: ${e.currency}`, 'BAD_CURRENCY')
|
|
47
|
+
}
|
|
48
|
+
const amount = m(e.amount)
|
|
49
|
+
if (amount.isNegative() || amount.isZero()) {
|
|
50
|
+
throw new LedgerError('entry amount must be positive', 'BAD_AMOUNT')
|
|
51
|
+
}
|
|
52
|
+
const bucket = byCurrency.get(e.currency) ?? { debit: new Decimal(0), credit: new Decimal(0) }
|
|
53
|
+
if (e.direction === 'debit') bucket.debit = bucket.debit.plus(amount)
|
|
54
|
+
else bucket.credit = bucket.credit.plus(amount)
|
|
55
|
+
byCurrency.set(e.currency, bucket)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
for (const [ccy, { debit, credit }] of byCurrency) {
|
|
59
|
+
if (!debit.equals(credit)) {
|
|
60
|
+
throw new LedgerError(
|
|
61
|
+
`unbalanced ${ccy}: debits=${debit.toFixed(4)} credits=${credit.toFixed(4)}`,
|
|
62
|
+
'UNBALANCED',
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return db.transaction(async (tx) => {
|
|
68
|
+
// Idempotency: if the key already exists, return the existing transaction.
|
|
69
|
+
if (input.idempotencyKey) {
|
|
70
|
+
const existing = await tx
|
|
71
|
+
.select()
|
|
72
|
+
.from(transactions)
|
|
73
|
+
.where(eq(transactions.idempotencyKey, input.idempotencyKey))
|
|
74
|
+
.limit(1)
|
|
75
|
+
const txn = existing[0]
|
|
76
|
+
if (txn) {
|
|
77
|
+
const rows = await tx.select().from(entries).where(eq(entries.transactionId, txn.id))
|
|
78
|
+
return { transaction: txn, entries: rows, idempotent: true }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const [txnRow] = await tx
|
|
83
|
+
.insert(transactions)
|
|
84
|
+
.values({
|
|
85
|
+
idempotencyKey: input.idempotencyKey ?? null,
|
|
86
|
+
externalRef: input.externalRef ?? null,
|
|
87
|
+
memo: input.memo ?? null,
|
|
88
|
+
postedAt: input.postedAt ?? new Date(),
|
|
89
|
+
})
|
|
90
|
+
.returning()
|
|
91
|
+
if (!txnRow) throw new LedgerError('insert returned no rows', 'INSERT_FAILED')
|
|
92
|
+
|
|
93
|
+
const entryRows = await tx
|
|
94
|
+
.insert(entries)
|
|
95
|
+
.values(
|
|
96
|
+
input.entries.map((e) => ({
|
|
97
|
+
transactionId: txnRow.id,
|
|
98
|
+
accountId: e.accountId,
|
|
99
|
+
direction: e.direction,
|
|
100
|
+
amount: toDbString(m(e.amount)),
|
|
101
|
+
currency: e.currency,
|
|
102
|
+
postedAt: input.postedAt ?? new Date(),
|
|
103
|
+
})),
|
|
104
|
+
)
|
|
105
|
+
.returning()
|
|
106
|
+
|
|
107
|
+
// Defense-in-depth: re-check balance after insert in case a trigger
|
|
108
|
+
// altered anything. Cheap and protects against silent corruption.
|
|
109
|
+
const postedByCcy = new Map<string, Decimal>()
|
|
110
|
+
for (const row of entryRows) {
|
|
111
|
+
const signed = row.direction === 'debit' ? m(row.amount) : m(row.amount).negated()
|
|
112
|
+
postedByCcy.set(row.currency, (postedByCcy.get(row.currency) ?? new Decimal(0)).plus(signed))
|
|
113
|
+
}
|
|
114
|
+
for (const [ccy, net] of postedByCcy) {
|
|
115
|
+
if (!net.isZero()) {
|
|
116
|
+
throw new LedgerError(`post-insert invariant violated: ${ccy} net=${net.toFixed(4)}`, 'INVARIANT')
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return { transaction: txnRow, entries: entryRows, idempotent: false }
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Convenience: a two-entry transfer. Not a replacement for postTransaction — use it for tests & trivial cases only. */
|
|
125
|
+
export async function postTransfer(params: {
|
|
126
|
+
fromAccountId: string
|
|
127
|
+
toAccountId: string
|
|
128
|
+
amount: string | number
|
|
129
|
+
currency: string
|
|
130
|
+
memo?: string
|
|
131
|
+
idempotencyKey?: string
|
|
132
|
+
}): Promise<PostResult> {
|
|
133
|
+
return postTransaction({
|
|
134
|
+
idempotencyKey: params.idempotencyKey,
|
|
135
|
+
memo: params.memo,
|
|
136
|
+
entries: [
|
|
137
|
+
{ accountId: params.fromAccountId, direction: 'credit', amount: params.amount, currency: params.currency },
|
|
138
|
+
{ accountId: params.toAccountId, direction: 'debit', amount: params.amount, currency: params.currency },
|
|
139
|
+
],
|
|
140
|
+
})
|
|
141
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Double-entry ledger schema. Every transaction is N entries; sum of debits
|
|
2
|
+
// MUST equal sum of credits per currency. Amounts are NUMERIC(20,4) — never
|
|
3
|
+
// float. See src/ledger/post.ts for the posting invariant.
|
|
4
|
+
import { pgTable, uuid, varchar, timestamp, numeric, text, index, uniqueIndex, pgEnum } from 'drizzle-orm/pg-core'
|
|
5
|
+
import { relations } from 'drizzle-orm'
|
|
6
|
+
|
|
7
|
+
export const accountTypeEnum = pgEnum('account_type', [
|
|
8
|
+
'asset',
|
|
9
|
+
'liability',
|
|
10
|
+
'equity',
|
|
11
|
+
'income',
|
|
12
|
+
'expense',
|
|
13
|
+
])
|
|
14
|
+
|
|
15
|
+
export const entryDirectionEnum = pgEnum('entry_direction', ['debit', 'credit'])
|
|
16
|
+
|
|
17
|
+
export const accounts = pgTable(
|
|
18
|
+
'accounts',
|
|
19
|
+
{
|
|
20
|
+
id: uuid('id').primaryKey().defaultRandom(),
|
|
21
|
+
// Human-readable code for the chart of accounts, e.g. "1000" (cash), "4000" (revenue).
|
|
22
|
+
code: varchar('code', { length: 32 }).notNull(),
|
|
23
|
+
name: varchar('name', { length: 200 }).notNull(),
|
|
24
|
+
type: accountTypeEnum('type').notNull(),
|
|
25
|
+
// ISO 4217 currency code. Multi-currency accounts use a separate account per currency.
|
|
26
|
+
currency: varchar('currency', { length: 3 }).notNull(),
|
|
27
|
+
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
|
|
28
|
+
},
|
|
29
|
+
(t) => ({
|
|
30
|
+
codeCurrencyUnique: uniqueIndex('accounts_code_currency_uniq').on(t.code, t.currency),
|
|
31
|
+
}),
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
export const transactions = pgTable(
|
|
35
|
+
'transactions',
|
|
36
|
+
{
|
|
37
|
+
id: uuid('id').primaryKey().defaultRandom(),
|
|
38
|
+
externalRef: varchar('external_ref', { length: 200 }),
|
|
39
|
+
// Idempotency key — retried requests with the same key return the existing txn.
|
|
40
|
+
idempotencyKey: varchar('idempotency_key', { length: 128 }),
|
|
41
|
+
memo: text('memo'),
|
|
42
|
+
postedAt: timestamp('posted_at', { withTimezone: true }).notNull().defaultNow(),
|
|
43
|
+
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
|
|
44
|
+
},
|
|
45
|
+
(t) => ({
|
|
46
|
+
idempotencyUniq: uniqueIndex('transactions_idempotency_uniq').on(t.idempotencyKey),
|
|
47
|
+
externalRefIdx: index('transactions_external_ref_idx').on(t.externalRef),
|
|
48
|
+
postedAtIdx: index('transactions_posted_at_idx').on(t.postedAt),
|
|
49
|
+
}),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
export const entries = pgTable(
|
|
53
|
+
'entries',
|
|
54
|
+
{
|
|
55
|
+
id: uuid('id').primaryKey().defaultRandom(),
|
|
56
|
+
transactionId: uuid('transaction_id')
|
|
57
|
+
.notNull()
|
|
58
|
+
.references(() => transactions.id, { onDelete: 'restrict' }),
|
|
59
|
+
accountId: uuid('account_id')
|
|
60
|
+
.notNull()
|
|
61
|
+
.references(() => accounts.id, { onDelete: 'restrict' }),
|
|
62
|
+
direction: entryDirectionEnum('direction').notNull(),
|
|
63
|
+
// NUMERIC(20,4): 20 total digits, 4 after the decimal. Handles >99 trillion USD with 4-dp precision.
|
|
64
|
+
amount: numeric('amount', { precision: 20, scale: 4 }).notNull(),
|
|
65
|
+
currency: varchar('currency', { length: 3 }).notNull(),
|
|
66
|
+
postedAt: timestamp('posted_at', { withTimezone: true }).notNull().defaultNow(),
|
|
67
|
+
},
|
|
68
|
+
(t) => ({
|
|
69
|
+
accountPostedIdx: index('entries_account_posted_idx').on(t.accountId, t.postedAt),
|
|
70
|
+
transactionIdx: index('entries_transaction_idx').on(t.transactionId),
|
|
71
|
+
}),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
export const transactionsRelations = relations(transactions, ({ many }) => ({
|
|
75
|
+
entries: many(entries),
|
|
76
|
+
}))
|
|
77
|
+
|
|
78
|
+
export const entriesRelations = relations(entries, ({ one }) => ({
|
|
79
|
+
transaction: one(transactions, { fields: [entries.transactionId], references: [transactions.id] }),
|
|
80
|
+
account: one(accounts, { fields: [entries.accountId], references: [accounts.id] }),
|
|
81
|
+
}))
|
|
82
|
+
|
|
83
|
+
export type Account = typeof accounts.$inferSelect
|
|
84
|
+
export type NewAccount = typeof accounts.$inferInsert
|
|
85
|
+
export type Transaction = typeof transactions.$inferSelect
|
|
86
|
+
export type Entry = typeof entries.$inferSelect
|
|
87
|
+
export type NewEntry = typeof entries.$inferInsert
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Fastify from 'fastify'
|
|
2
|
+
import { transactionsPlugin } from './api/transactions.js'
|
|
3
|
+
|
|
4
|
+
// ── env ──────────────────────────────────────────────────────────────────────
|
|
5
|
+
const PORT: number = parseInt(process.env['PORT'] ?? '3000', 10)
|
|
6
|
+
const HOST: string = process.env['HOST'] ?? '0.0.0.0'
|
|
7
|
+
const DATABASE_URL: string = process.env['DATABASE_URL'] ?? 'postgres://localhost:5432/ledger'
|
|
8
|
+
const BASE_CURRENCY: string = process.env['BASE_CURRENCY'] ?? 'USD'
|
|
9
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
const server = Fastify({ logger: true })
|
|
12
|
+
|
|
13
|
+
server.get('/health', async () => ({
|
|
14
|
+
status: 'ok',
|
|
15
|
+
service: 'starter-foundry-ledger',
|
|
16
|
+
baseCurrency: BASE_CURRENCY,
|
|
17
|
+
}))
|
|
18
|
+
|
|
19
|
+
await server.register(transactionsPlugin)
|
|
20
|
+
|
|
21
|
+
server.log.info(
|
|
22
|
+
{ port: PORT, host: HOST, db: DATABASE_URL.replace(/:[^:@]+@/, ':***@'), currency: BASE_CURRENCY },
|
|
23
|
+
'starter-foundry-ledger starting',
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
await server.listen({ port: PORT, host: HOST })
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { FastifyPluginAsync } from 'fastify'
|
|
2
|
+
import { LedgerError, postTransaction } from '../ledger/post.js'
|
|
3
|
+
import { accountBalance, accountEntries } from '../ledger/query.js'
|
|
4
|
+
|
|
5
|
+
interface PostTransactionBody {
|
|
6
|
+
idempotencyKey?: string
|
|
7
|
+
externalRef?: string
|
|
8
|
+
memo?: string
|
|
9
|
+
entries?: Array<{
|
|
10
|
+
accountId: string
|
|
11
|
+
direction: 'debit' | 'credit'
|
|
12
|
+
amount: string | number
|
|
13
|
+
currency: string
|
|
14
|
+
}>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const transactionsPlugin: FastifyPluginAsync = async (app) => {
|
|
18
|
+
app.post<{ Body: PostTransactionBody }>('/api/transactions', async (req, reply) => {
|
|
19
|
+
const body = req.body
|
|
20
|
+
if (!body?.entries || body.entries.length === 0) {
|
|
21
|
+
return reply.code(422).send({ error: 'entries[] required' })
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const result = await postTransaction({
|
|
25
|
+
idempotencyKey: body.idempotencyKey,
|
|
26
|
+
externalRef: body.externalRef,
|
|
27
|
+
memo: body.memo,
|
|
28
|
+
entries: body.entries,
|
|
29
|
+
})
|
|
30
|
+
return reply.code(result.idempotent ? 200 : 201).send(result)
|
|
31
|
+
} catch (err) {
|
|
32
|
+
if (err instanceof LedgerError) {
|
|
33
|
+
return reply.code(422).send({ error: err.message, code: err.code })
|
|
34
|
+
}
|
|
35
|
+
throw err
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
app.get<{ Params: { id: string }; Querystring: { asOf?: string } }>(
|
|
40
|
+
'/api/accounts/:id/balance',
|
|
41
|
+
async (req, reply) => {
|
|
42
|
+
const asOfRaw = req.query.asOf
|
|
43
|
+
const asOf = asOfRaw ? new Date(asOfRaw) : new Date()
|
|
44
|
+
if (Number.isNaN(asOf.getTime())) {
|
|
45
|
+
return reply.code(400).send({ error: 'invalid asOf timestamp' })
|
|
46
|
+
}
|
|
47
|
+
return accountBalance(req.params.id, asOf)
|
|
48
|
+
},
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
app.get<{ Params: { id: string }; Querystring: { limit?: string } }>(
|
|
52
|
+
'/api/accounts/:id/entries',
|
|
53
|
+
async (req, reply) => {
|
|
54
|
+
const limit = Math.min(parseInt(req.query.limit ?? '100', 10) || 100, 500)
|
|
55
|
+
const rows = await accountEntries(req.params.id, { limit })
|
|
56
|
+
return { entries: rows }
|
|
57
|
+
},
|
|
58
|
+
)
|
|
59
|
+
}
|