@frockbot/kernel-composition 0.0.0 → 0.1.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/package.json +31 -6
- package/src/activation.ts +417 -0
- package/src/compiler.test.ts +230 -0
- package/src/compiler.ts +288 -0
- package/src/generation.test.ts +203 -0
- package/src/generation.ts +423 -0
- package/src/index.test.ts +1072 -0
- package/src/index.ts +328 -0
- package/src/isolate-host.test.ts +423 -0
- package/src/isolate-host.ts +467 -0
- package/src/isolate-wrapper.test.ts +125 -0
- package/src/isolate-wrapper.ts +247 -0
- package/src/manifest.ts +1233 -0
- package/src/runtime.ts +18 -0
- package/tsconfig.json +15 -0
- package/README.md +0 -3
package/src/runtime.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Context } from "cordis";
|
|
2
|
+
import {
|
|
3
|
+
type ContributionResolver,
|
|
4
|
+
LocalCordisContributionHost,
|
|
5
|
+
type PackageCatalogConfig,
|
|
6
|
+
} from "./index.ts";
|
|
7
|
+
|
|
8
|
+
// Runtime hosts accept only canonical run-scoped contributions.
|
|
9
|
+
export const runtimePackageCatalogConfig: PackageCatalogConfig = {
|
|
10
|
+
kinds: ["runtime"],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function createRuntimeContributionHost(
|
|
14
|
+
ctx: Context,
|
|
15
|
+
resolve: ContributionResolver,
|
|
16
|
+
): LocalCordisContributionHost {
|
|
17
|
+
return new LocalCordisContributionHost("runtime", ctx, resolve);
|
|
18
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"resolveJsonModule": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"lib": ["ES2023", "DOM"],
|
|
11
|
+
"types": ["bun", "node"],
|
|
12
|
+
"allowImportingTsExtensions": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src/**/*.ts"]
|
|
15
|
+
}
|
package/README.md
DELETED