poe-code 3.0.418 → 3.0.420-beta.1
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/frontmatter/package.json +8 -2
- package/packages/toolcraft/dist/composition.d.ts +15 -0
- package/packages/toolcraft/dist/composition.js +10 -0
- package/packages/toolcraft/dist/composition.json +10 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@poe-code/frontmatter",
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"
|
|
5
|
+
"publishConfig": { "access": "public" },
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,14 @@
|
|
|
18
18
|
"test:unit": "cd ../.. && vitest run packages/frontmatter/src"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
|
-
"dist"
|
|
21
|
+
"dist",
|
|
22
|
+
"LICENSE"
|
|
22
23
|
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/poe-platform/poe-code.git",
|
|
27
|
+
"directory": "packages/frontmatter"
|
|
28
|
+
},
|
|
23
29
|
"dependencies": {
|
|
24
30
|
"yaml": "^2.8.2"
|
|
25
31
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ToolcraftCompositionPackage {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
license: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ToolcraftComposition {
|
|
7
|
+
schemaVersion: 1;
|
|
8
|
+
packages: ToolcraftCompositionPackage[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Loads Toolcraft's deterministic bundled-package inventory without inspecting source maps.
|
|
12
|
+
* The manifest includes Toolcraft and every package nested inside its published tarball with exact
|
|
13
|
+
* versions and licenses. Incompatible manifest shape changes increment `schemaVersion`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function loadToolcraftComposition(): Promise<ToolcraftComposition>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
/**
|
|
3
|
+
* Loads Toolcraft's deterministic bundled-package inventory without inspecting source maps.
|
|
4
|
+
* The manifest includes Toolcraft and every package nested inside its published tarball with exact
|
|
5
|
+
* versions and licenses. Incompatible manifest shape changes increment `schemaVersion`.
|
|
6
|
+
*/
|
|
7
|
+
export async function loadToolcraftComposition() {
|
|
8
|
+
const manifestUrl = new URL("./composition.json", import.meta.url);
|
|
9
|
+
return JSON.parse(await readFile(manifestUrl, "utf8"));
|
|
10
|
+
}
|