diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index aad0d03..3a0ed49 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -14,4 +14,4 @@ permissions: jobs: governance: - uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 \ No newline at end of file + uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index 1f8c940..baf722f 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -17,4 +17,4 @@ permissions: jobs: scan: - uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 \ No newline at end of file + uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index 010c16d..f7922b8 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -21,4 +21,4 @@ jobs: pull-requests: write actions: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@7fdc2705df74b4e352d2a1cde3e87a5923fdf329 - secrets: inherit \ No newline at end of file + secrets: inherit diff --git a/RuntimeMessage.d.ts b/RuntimeMessage.d.affine similarity index 94% rename from RuntimeMessage.d.ts rename to RuntimeMessage.d.affine index e7b095b..219a93f 100644 --- a/RuntimeMessage.d.ts +++ b/RuntimeMessage.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module RuntimeMessage.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell namespace RuntimeMessage { interface DkimMessage { @@ -131,3 +139,5 @@ namespace RuntimeMessage { type Messages = SignRules.Messages | KeyDb.Messages | DisplayAction.Messages; } + +==================================== */ diff --git a/WebExtensions.d.ts b/WebExtensions.d.affine similarity index 55% rename from WebExtensions.d.ts rename to WebExtensions.d.affine index d3245da..30b8a69 100644 --- a/WebExtensions.d.ts +++ b/WebExtensions.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module WebExtensions.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell declare module browser { declare module accounts { @@ -6,3 +14,5 @@ declare module browser { var get: (accountId: string) => Promise; } } + +==================================== */ diff --git a/deno.json b/deno.json deleted file mode 100644 index d9e3f43..0000000 --- a/deno.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "tasks": { - "lint": "deno lint --config deno.json", - "fmt": "deno fmt --config deno.json", - "check": "deno check --config deno.json scripts/*.js modules/**/*.mjs.js", - "test": "deno run --allow-read --allow-env npm:mocha --recursive test/unittest", - "test:watch": "deno run --allow-read --allow-env --watch npm:mocha --recursive test/unittest", - "test:deno": "deno test --allow-read tests/", - "test:deno:watch": "deno test --allow-read --watch tests/", - "test:bench": "deno bench --allow-read tests/bench/", - "verify-rsr": "deno run --allow-read scripts/verify-rsr.js", - "verify": "deno task lint && deno task check && deno task test && deno task test:deno && deno task verify-rsr", - "pack": "deno run --allow-read --allow-write --allow-run scripts/pack.js", - "dev": "deno run --allow-net --allow-read npm:http-server . -c-1", - "update-thirdparty": "deno run --allow-read --allow-write --allow-net scripts/update-thirdparty.js" - }, - "lint": { - "files": { - "include": ["modules/", "scripts/", "experiments/", "content/", "test/"], - "exclude": ["thirdparty/", "node_modules/", "_locales/"] - }, - "rules": { - "tags": ["recommended"], - "include": ["no-explicit-any", "no-unused-vars"], - "exclude": ["no-window"] - } - }, - "fmt": { - "useTabs": true, - "lineWidth": 120, - "indentWidth": 4, - "semicolons": true, - "singleQuote": false, - "proseWrap": "preserve", - "files": { - "include": ["modules/", "scripts/", "experiments/", "test/"], - "exclude": ["thirdparty/", "node_modules/"] - } - }, - "imports": { - "@std/assert": "jsr:@std/assert@^1", - "@std/testing": "jsr:@std/testing@^1", - "@std/path": "jsr:@std/path@^1", - "@std/fs": "jsr:@std/fs@^1", - "@std/crypto": "jsr:@std/crypto@^1" - }, - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "strict": true, - "lib": ["esnext", "dom", "dom.iterable"] - }, - "nodeModulesDir": false, - "exclude": [ - "thirdparty/", - "node_modules/", - "_locales/", - "data/", - "*.xpi" - ] -} diff --git a/experiments/ctypes.d.ts b/experiments/ctypes.d.affine similarity index 96% rename from experiments/ctypes.d.ts rename to experiments/ctypes.d.affine index 83b9e29..5cb58f5 100644 --- a/experiments/ctypes.d.ts +++ b/experiments/ctypes.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module ctypes.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell // https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes declare module ctypes { @@ -149,3 +157,5 @@ declare module ctypes { const stdcall_abi: ABI; const winapi_abi: ABI; } + +==================================== */ diff --git a/experiments/dkimHeader.d.ts b/experiments/dkimHeader.d.affine similarity index 88% rename from experiments/dkimHeader.d.ts rename to experiments/dkimHeader.d.affine index 941b056..03e1326 100644 --- a/experiments/dkimHeader.d.ts +++ b/experiments/dkimHeader.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module dkimHeader.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell interface DKIMTooltipElement extends HTMLElement { _target: DKIMTooltipTarget | void @@ -51,3 +59,5 @@ declare module browser { const reset: (tabId: number, messageId: number) => Promise; } } + +==================================== */ diff --git a/experiments/jsdns.d.ts b/experiments/jsdns.d.affine similarity index 74% rename from experiments/jsdns.d.ts rename to experiments/jsdns.d.affine index 8c108e7..e9b6943 100644 --- a/experiments/jsdns.d.ts +++ b/experiments/jsdns.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module jsdns.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell declare module browser { declare module jsdns { @@ -17,3 +25,5 @@ declare module browser { const txt: (name: string) => Promise; } } + +==================================== */ diff --git a/experiments/libunbound.d.ts b/experiments/libunbound.d.affine similarity index 93% rename from experiments/libunbound.d.ts rename to experiments/libunbound.d.affine index 6fcfdad..94967f6 100644 --- a/experiments/libunbound.d.ts +++ b/experiments/libunbound.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module libunbound.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell declare module browser { declare module libunbound { @@ -105,3 +113,5 @@ interface ub_result_data extends ctypes.CData { why_bogus: ctypes.CDataPointerType; ttl: number; } + +==================================== */ diff --git a/experiments/mailUtils.d.ts b/experiments/mailUtils.d.affine similarity index 50% rename from experiments/mailUtils.d.ts rename to experiments/mailUtils.d.affine index 861396a..e99771e 100644 --- a/experiments/mailUtils.d.ts +++ b/experiments/mailUtils.d.affine @@ -1,7 +1,17 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mailUtils.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell declare module browser { declare module mailUtils { const getBaseDomainFromAddr: (addr: string) => Promise; } } + +==================================== */ diff --git a/experiments/mozilla.d.ts b/experiments/mozilla.d.affine similarity index 98% rename from experiments/mozilla.d.ts rename to experiments/mozilla.d.affine index 436eb13..1c82fe7 100644 --- a/experiments/mozilla.d.ts +++ b/experiments/mozilla.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mozilla.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell //////////////////////////////////////////////////////////////////////////////// //// Mozilla specific modules @@ -397,3 +405,5 @@ interface nsIMsgIncomingServer { getCharValue(attr: string): string; getIntValue(attr: string): number; } + +==================================== */ diff --git a/experiments/mozillaDom.d.ts b/experiments/mozillaDom.d.affine similarity index 57% rename from experiments/mozillaDom.d.ts rename to experiments/mozillaDom.d.affine index 79dbb39..be5572c 100644 --- a/experiments/mozillaDom.d.ts +++ b/experiments/mozillaDom.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mozillaDom.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell interface Document { createXULElement(tagName: string, options?: ElementCreationOptions): XULElement; @@ -8,3 +16,5 @@ interface Window { readonly gMessageListeners: object[]; readonly updateExpandedView: () => void; } + +==================================== */ diff --git a/experiments/storageMessage.d.ts b/experiments/storageMessage.d.affine similarity index 58% rename from experiments/storageMessage.d.ts rename to experiments/storageMessage.d.affine index 7cf133f..8aac04b 100644 --- a/experiments/storageMessage.d.ts +++ b/experiments/storageMessage.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module storageMessage.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell declare module browser { declare module storageMessage { @@ -6,3 +14,5 @@ declare module browser { const get: (messageId: number, key: string) => Promise; } } + +==================================== */ diff --git a/modules/authVerifier.d.ts b/modules/authVerifier.d.affine similarity index 78% rename from modules/authVerifier.d.ts rename to modules/authVerifier.d.affine index 81f2db1..753082f 100644 --- a/modules/authVerifier.d.ts +++ b/modules/authVerifier.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module authVerifier.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell // The following is for Visual Studio Code IntelliSense only: // The type detection via JSDoc fails at some places, so we additionally have to specify them here. @@ -18,3 +26,5 @@ declare module IAuthVerifier { favicon?: string | undefined; // url to the favicon of the sdid } } + +==================================== */ diff --git a/modules/dns.d.affine b/modules/dns.d.affine new file mode 100644 index 0000000..86024e1 --- /dev/null +++ b/modules/dns.d.affine @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module dns.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) Jonathan D.A. Jewell +type queryDnsTxtCallback = typeof import("./dns.mjs.js").default.txt; + +==================================== */ diff --git a/modules/dns.d.ts b/modules/dns.d.ts deleted file mode 100644 index 92d7cfe..0000000 --- a/modules/dns.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -// SPDX-License-Identifier: MPL-2.0 -// Copyright (c) Jonathan D.A. Jewell -type queryDnsTxtCallback = typeof import("./dns.mjs.js").default.txt; diff --git a/modules/logging.d.ts b/modules/logging.d.affine similarity index 70% rename from modules/logging.d.ts rename to modules/logging.d.affine index ea5e262..40d32ca 100644 --- a/modules/logging.d.ts +++ b/modules/logging.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module logging.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell interface LoggerI { fatal(message?: any, ...optionalParams: any[]): void; @@ -11,3 +19,5 @@ interface LoggerI { logLevel: number; } + +==================================== */ diff --git a/modules/spf/verifier.d.ts b/modules/spf/verifier.d.affine similarity index 64% rename from modules/spf/verifier.d.ts rename to modules/spf/verifier.d.affine index 0589b9f..b51bcd2 100644 --- a/modules/spf/verifier.d.ts +++ b/modules/spf/verifier.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module verifier.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /** * Type definitions for SPF Verifier @@ -15,3 +23,5 @@ declare module SPFVerifier { } export default SPFVerifier; + +==================================== */ diff --git a/tests/aspect/security_test.ts b/tests/aspect/security_test.affine similarity index 97% rename from tests/aspect/security_test.ts rename to tests/aspect/security_test.affine index 22f5116..3cf8df3 100644 --- a/tests/aspect/security_test.ts +++ b/tests/aspect/security_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module security_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -271,3 +279,5 @@ Deno.test("Security - Oversized Record Handling Graceful", () => { // Should not crash, just return false assertEquals(isRecordSizeValid(hugeRecord), false); }); + +==================================== */ diff --git a/tests/bench/verification_bench.ts b/tests/bench/verification_bench.affine similarity index 95% rename from tests/bench/verification_bench.ts rename to tests/bench/verification_bench.affine index 22a0179..3e51a11 100644 --- a/tests/bench/verification_bench.ts +++ b/tests/bench/verification_bench.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module verification_bench; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -269,3 +277,5 @@ Deno.bench( } }, ); + +==================================== */ diff --git a/tests/e2e/verification_pipeline_test.ts b/tests/e2e/verification_pipeline_test.affine similarity index 97% rename from tests/e2e/verification_pipeline_test.ts rename to tests/e2e/verification_pipeline_test.affine index 1266106..5723841 100644 --- a/tests/e2e/verification_pipeline_test.ts +++ b/tests/e2e/verification_pipeline_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module verification_pipeline_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -372,3 +380,5 @@ Deno.test("E2E - Complete DKIM Flow Steps", async () => { assertEquals(hasStep, true, `Should have step: ${expectedStep}`); } }); + +==================================== */ diff --git a/tests/property/verification_properties_test.ts b/tests/property/verification_properties_test.affine similarity index 96% rename from tests/property/verification_properties_test.ts rename to tests/property/verification_properties_test.affine index 0980d21..8729ea8 100644 --- a/tests/property/verification_properties_test.ts +++ b/tests/property/verification_properties_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module verification_properties_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -239,3 +247,5 @@ Deno.test("Properties - Consistency Under Repetition", () => { assertEquals(results[i].error, results[0].error); } }); + +==================================== */ diff --git a/tests/unit/crypto_types_test.ts b/tests/unit/crypto_types_test.affine similarity index 96% rename from tests/unit/crypto_types_test.ts rename to tests/unit/crypto_types_test.affine index 9eb31e2..f13f220 100644 --- a/tests/unit/crypto_types_test.ts +++ b/tests/unit/crypto_types_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module crypto_types_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -188,3 +196,5 @@ Deno.test("Crypto Types - Signature Algorithm Enum", () => { assertEquals(validateAlgorithmName(algo.name), true); } }); + +==================================== */ diff --git a/tests/unit/dns_record_test.ts b/tests/unit/dns_record_test.affine similarity index 95% rename from tests/unit/dns_record_test.ts rename to tests/unit/dns_record_test.affine index bef7d6a..d4f0ff5 100644 --- a/tests/unit/dns_record_test.ts +++ b/tests/unit/dns_record_test.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module dns_record_test; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell /// @@ -188,3 +196,5 @@ Deno.test("DNS Records - Whitespace Handling", () => { // Should handle gracefully (our regex allows whitespace) assertEquals(parsed !== null, true); }); + +==================================== */