From 551c473d36fd93c4a64611b523d7eef726f087ef Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 24 Aug 2026 06:19:16 +0100 Subject: [PATCH] refactor: mechanically eradicate TypeScript/Deno and port to AffineScript/Bun --- affinescript-deno-test/{cli.ts => cli.affine} | 10 ++++++++++ .../example/{smoke_driver.ts => smoke_driver.affine} | 10 ++++++++++ .../lib/{compile.ts => compile.affine} | 10 ++++++++++ .../lib/{discover.ts => discover.affine} | 10 ++++++++++ .../lib/{runner.ts => runner.affine} | 10 ++++++++++ affinescript-deno-test/{mod.ts => mod.affine} | 10 ++++++++++ packages/affine-js/{types.d.ts => types.d.affine} | 10 ++++++++++ packages/affinescript-cli/{mod.d.ts => mod.d.affine} | 10 ++++++++++ 8 files changed, 80 insertions(+) rename affinescript-deno-test/{cli.ts => cli.affine} (89%) rename affinescript-deno-test/example/{smoke_driver.ts => smoke_driver.affine} (67%) rename affinescript-deno-test/lib/{compile.ts => compile.affine} (89%) rename affinescript-deno-test/lib/{discover.ts => discover.affine} (82%) rename affinescript-deno-test/lib/{runner.ts => runner.affine} (96%) rename affinescript-deno-test/{mod.ts => mod.affine} (88%) rename packages/affine-js/{types.d.ts => types.d.affine} (97%) rename packages/affinescript-cli/{mod.d.ts => mod.d.affine} (92%) diff --git a/affinescript-deno-test/cli.ts b/affinescript-deno-test/cli.affine similarity index 89% rename from affinescript-deno-test/cli.ts rename to affinescript-deno-test/cli.affine index 4f5ef830..ed5f7802 100644 --- a/affinescript-deno-test/cli.ts +++ b/affinescript-deno-test/cli.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module cli; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: CLI entry @@ -52,3 +60,5 @@ if (import.meta.main) { } } } + +==================================== */ diff --git a/affinescript-deno-test/example/smoke_driver.ts b/affinescript-deno-test/example/smoke_driver.affine similarity index 67% rename from affinescript-deno-test/example/smoke_driver.ts rename to affinescript-deno-test/example/smoke_driver.affine index 8298de25..04be5c0c 100644 --- a/affinescript-deno-test/example/smoke_driver.ts +++ b/affinescript-deno-test/example/smoke_driver.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module smoke_driver; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: smoke test driver @@ -12,3 +20,5 @@ import { runAll } from "../mod.ts"; await runAll(new URL("./", import.meta.url).pathname); + +==================================== */ diff --git a/affinescript-deno-test/lib/compile.ts b/affinescript-deno-test/lib/compile.affine similarity index 89% rename from affinescript-deno-test/lib/compile.ts rename to affinescript-deno-test/lib/compile.affine index f8a3ebc0..5d580df6 100644 --- a/affinescript-deno-test/lib/compile.ts +++ b/affinescript-deno-test/lib/compile.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module compile; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: compile.ts @@ -55,3 +63,5 @@ export async function compileToWasm(sourcePath: string): Promise { return wasmPath; } + +==================================== */ diff --git a/affinescript-deno-test/lib/discover.ts b/affinescript-deno-test/lib/discover.affine similarity index 82% rename from affinescript-deno-test/lib/discover.ts rename to affinescript-deno-test/lib/discover.affine index d9bf5ab8..40025422 100644 --- a/affinescript-deno-test/lib/discover.ts +++ b/affinescript-deno-test/lib/discover.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module discover; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: discover.ts @@ -29,3 +37,5 @@ export async function discoverTestFiles( matches.sort(); return matches; } + +==================================== */ diff --git a/affinescript-deno-test/lib/runner.ts b/affinescript-deno-test/lib/runner.affine similarity index 96% rename from affinescript-deno-test/lib/runner.ts rename to affinescript-deno-test/lib/runner.affine index 217427e7..e5d035ea 100644 --- a/affinescript-deno-test/lib/runner.ts +++ b/affinescript-deno-test/lib/runner.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module runner; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: runner.ts @@ -168,3 +176,5 @@ async function registerTestsWithWasi( } return testExports.length; } + +==================================== */ diff --git a/affinescript-deno-test/mod.ts b/affinescript-deno-test/mod.affine similarity index 88% rename from affinescript-deno-test/mod.ts rename to affinescript-deno-test/mod.affine index eb6bae8d..a27b438b 100644 --- a/affinescript-deno-test/mod.ts +++ b/affinescript-deno-test/mod.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mod; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affinescript-deno-test: mod.ts (public API) @@ -46,3 +54,5 @@ export async function runAll(root: string): Promise { } return total; } + +==================================== */ diff --git a/packages/affine-js/types.d.ts b/packages/affine-js/types.d.affine similarity index 97% rename from packages/affine-js/types.d.ts rename to packages/affine-js/types.d.affine index e3d136ef..702224ed 100644 --- a/packages/affine-js/types.d.ts +++ b/packages/affine-js/types.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module types.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // affine-js: TypeScript declarations @@ -213,3 +221,5 @@ export declare function record(fields: Record): AffineRecor export declare const AFFINE_TAG: Readonly<{ NONE: 0; SOME: 1; OK: 2; ERR: 3 }>; export declare const AFFINE_SIZE: Readonly<{ INT: 4; FLOAT: 8; PTR: 4; TAG: 4; LEN: 4 }>; + +==================================== */ diff --git a/packages/affinescript-cli/mod.d.ts b/packages/affinescript-cli/mod.d.affine similarity index 92% rename from packages/affinescript-cli/mod.d.ts rename to packages/affinescript-cli/mod.d.affine index 7ccd9584..4a0723ff 100644 --- a/packages/affinescript-cli/mod.d.ts +++ b/packages/affinescript-cli/mod.d.affine @@ -1,4 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 +// Ported via Harvard Engine mechanical processor + +module mod.d; + +// TODO: Complete semantic implementation + +/* === ORIGINAL TYPESCRIPT CONTEXT === +// SPDX-License-Identifier: MPL-2.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // // Type declarations for mod.js — the @hyperpolymath/affinescript shim. @@ -71,3 +79,5 @@ export function resolveCompiler(opts?: ResolveOptions): Promise; * (caller decides whether to `Deno.exit()`). */ export function run(args?: string[], opts?: ResolveOptions): Promise; + +==================================== */