@dekaruntime/web-ide-kit
v0.3.4
Published
Shared runtime, editor, and UI components for DekaScript web IDEs.
Readme
@dekaruntime/web-ide-kit
Shared runtime, editor, and UI components for DekaScript web IDEs.
Published to npm as @dekaruntime/web-ide-kit.
Usage
Install from npm:
bun add @dekaruntime/web-ide-kitIf you are using Next.js, keep it in transpilePackages so JSX is processed correctly:
transpilePackages: ['@dekaruntime/web-ide-kit'],Configurable seams
Compiler artifact path
import { setCompilerArtifactPath } from '@dekaruntime/web-ide-kit/runtime';
setCompilerArtifactPath('/tour/deka-compiler-artifact.json');Environment capability
runDekaJs, runDekaJsDirect, and DekaSandbox.run leave process uninstalled
by default. Passing cwd or env values does not grant access. Hosts that have
approved an environment capability must pass envGranted: true:
import { runDekaJs } from '@dekaruntime/web-ide-kit/runtime';
await runDekaJs(compiledJs, {
envGranted: true,
cwd: '/tour',
env: { EXAMPLE: 'value' },
});The grant exposes only the supplied environment and virtual working directory.
LSP worker path
import { setLspWorkerPath } from '@dekaruntime/web-ide-kit/editor';
setLspWorkerPath('/tour/deka-diagnostics-worker.js');Exports
@dekaruntime/web-ide-kit/runtime— Deka compiler/runtime client, sandbox, diagnostics, artifact validation.@dekaruntime/web-ide-kit/editor— Monaco helpers and DekaScript LSP bridge.@dekaruntime/web-ide-kit/ui— Shared React components (Button, ConsolePanel, TourOutputPanel, RawPanel, EditorPanel).
