Repository navigation
Conversation
…m package Script Lab now depends on @julclang/julc-wasm (0.1.0-pre21, exact; it brings @julclang/wasm-client at the same version) instead of downloading the julc release archive at build time. Vite bundles the package's worker, launcher and WebAssembly module as hashed assets of the build, served by the viewer itself. - engine.svelte.ts imports createJulc from the package in the browser only (SSR never imports it) and creates the client in package mode, keeping the 60 s request timeout and the existing states (checking, unsupported, loading, ready, error). The manifest comes from the package's small `engine` module; nothing large is fetched before a feature needs the engine. - Removed scripts/fetch-julc.mjs, julc.lock.json, scripts/lib/untar.mjs (and its test), the predev/prebuild hooks and the static/julc ignores. - Removed PUBLIC_JULC_BASE_URL and the blob: worker shim for an engine on another host: the package's worker loads engine files from the page's own origin only. - vite.config.js: the dev server must not pre-bundle the julc packages (their worker and engine files are named relative to their own modules); without this the dev worker 404s. Production builds need nothing. - types.ts: Manifest, Features and FeatureGroup are the package's own types; the package's client is assigned to the viewer's JulcClient without a cast, so a change in the engine's API shows up in svelte-check. - julc 0.1.0-pre21 reads plain Java (ADR-068): the ledger and stdlib are no longer imported implicitly, so the lab's examples import what they use. - User-facing texts no longer name julc 0.1.0-pre18: the Java debugger shows the engine's version, and the V1 replay note drops the pre18 claim. - README: how the engine is installed and upgraded, the dev-server and CSP requirements, and the explicit imports. package-lock.json is not updated: 0.1.0-pre21 is not published yet. Run npm install once it is, before merging (npm ci fails until then). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Initial automated review · Aster Hi @satran004, thanks for the PR! 🙏 This is an automatic first check by an AI reviewer. It does not replace maintainer review and may be wrong. I reviewed this while it was still a draft. Reviewed commit: No issues found in this first check. Not tested: I did not install dependencies, build, or run browser tests, and the published package contents remain unverified. |
JuLC 0.1.0-pre21 is published. The lock adds only @julclang/julc-wasm and @julclang/wasm-client 0.1.0-pre21 from registry.npmjs.org; their integrity matches the tarballs attached to the julc v0.1.0-pre21 GitHub release, and npm audit signatures verifies their registry signatures and provenance (native-image-release.yml at v0.1.0-pre21). npm ci works again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
satran004
marked this pull request as ready for review
November 18, 2026 08:48
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Script Lab now loads the julc engine from the
@julclang/julc-wasmnpm package (JuLC ADR-077), instead of downloading the pre18 release archive intostatic/julc/.Changes (
applications/viewer)package.json: adds@julclang/julc-wasm0.1.0-pre21(exact) to devDependencies; the build bundles it, and the server output never imports it. Thepredevandprebuildfetch hooks are removed.src/lib/julc/engine.svelte.ts:const { createJulc } = await import('@julclang/julc-wasm'), thencreateJulc({ timeoutMs: 60_000 }). The package names its own engine files and checks they belong to its release.available()reads the manifest from the small@julclang/julc-wasm/enginemodule, without downloading the engine.src/lib/julc/types.ts:Manifest,FeaturesandFeatureGroupcome from the package. The package's client is assigned toJulcClientwithout a cast, so API drift shows up in svelte-check.vite.config.js:optimizeDeps.excludefor@julclang/wasm-clientand@julclang/julc-wasm. The dev server needs it (without it the worker 404s); production builds don't.scripts/fetch-julc.mjs,julc.lock.json,scripts/lib/untar.mjsand its test, and thestatic/julcignore lines.Behaviour changes
PUBLIC_JULC_BASE_URLis gone: the package loads its engine only from the page's own origin, and refusesblob:URLs.JULC_SKIPandJULC_ARCHIVEare gone too, so Script Lab is always in the build.applications/viewer/static/julc. It's no longer git-ignored, so the build would copy it in.Tested locally
Tested with tarballs built from JuLC main
77b2bab2, against the Yaci Store athttps://yaci-playground.cf-app.org(Mainnet, read-only), with Node 22.12, Vite 6.0.6, SvelteKit 2.70.3, and Chromium 156 / Chrome 157.node build), both passing:script-src 'self' 'wasm-unsafe-eval'on worker and asset responses, with no'unsafe-eval'. No violations..wasmare emitted as immutable assets, and the.wasmis served asapplication/wasm.svelte-check: 0 errors, 0 warnings.npm ci,npm run check(0 errors) and vitest (181 tests) pass;npm ciinside it, about 1 min) and runs with the same checks passing.🤖 Generated with Claude Code