Skip to content

Commit 49e621f

Browse files
committed
MeTTaScript 2.0.0
1 parent 12baf0f commit 49e621f

241 files changed

Lines changed: 2786 additions & 1246 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Publish
22

3-
# Publishes all @metta-ts/* packages to npm with provenance (a signed link back
4-
# to this repo and commit). Runs when a v* tag is pushed, or on demand.
3+
# Publishes the @mettascript/* packages and their @metta-ts/* compatibility shims
4+
# to npm with provenance (a signed link back to this repo and commit). Runs when a
5+
# v* tag is pushed, or on demand.
56
on:
67
push:
78
tags: ["v*"]
@@ -23,6 +24,6 @@ jobs:
2324
cache: pnpm
2425
- run: pnpm install --frozen-lockfile
2526
- run: pnpm -r build
26-
- run: pnpm -r --filter "./packages/*" publish --access public --provenance --no-git-checks
27+
- run: pnpm -r --filter "./packages/*" --filter "./compat/*" publish --access public --provenance --no-git-checks
2728
env:
2829
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 75 additions & 73 deletions
Large diffs are not rendered by default.

RELEASE_NOTES.md

Lines changed: 151 additions & 74 deletions
Large diffs are not rendered by default.

compat/browser/package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "@metta-ts/browser",
3+
"version": "2.0.0",
4+
"license": "MIT",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
},
13+
"./host": {
14+
"types": "./dist/host.d.ts",
15+
"default": "./dist/host.js"
16+
},
17+
"./hyperpose-worker": {
18+
"types": "./dist/hyperpose-worker.d.ts",
19+
"default": "./dist/hyperpose-worker.js"
20+
},
21+
"./source": {
22+
"types": "./dist/source.d.ts",
23+
"default": "./dist/source.js"
24+
},
25+
"./package.json": "./package.json"
26+
},
27+
"files": [
28+
"dist"
29+
],
30+
"scripts": {
31+
"build": "tsup src/index.ts src/host.ts src/hyperpose-worker.ts src/source.ts --format esm --dts --clean"
32+
},
33+
"dependencies": {
34+
"@mettascript/browser": "workspace:*"
35+
},
36+
"author": "MesTTo",
37+
"engines": {
38+
"node": ">=20"
39+
},
40+
"sideEffects": false,
41+
"module": "./dist/index.js",
42+
"publishConfig": {
43+
"access": "public"
44+
},
45+
"description": "Compatibility shim for @mettascript/browser.",
46+
"repository": {
47+
"type": "git",
48+
"url": "git+https://github.com/MesTTo/MeTTaScript.git",
49+
"directory": "packages/browser"
50+
},
51+
"homepage": "https://github.com/MesTTo/MeTTaScript#readme",
52+
"bugs": {
53+
"url": "https://github.com/MesTTo/MeTTaScript/issues"
54+
}
55+
}

compat/browser/src/host.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-FileCopyrightText: 2026 MesTTo
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
export * from "@mettascript/browser/host";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-FileCopyrightText: 2026 MesTTo
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
export * from "@mettascript/browser/hyperpose-worker";

compat/browser/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-FileCopyrightText: 2026 MesTTo
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
export * from "@mettascript/browser";

compat/browser/src/source.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// SPDX-FileCopyrightText: 2026 MesTTo
2+
//
3+
// SPDX-License-Identifier: MIT
4+
5+
export * from "@mettascript/browser/source";

compat/browser/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"outDir": "dist",
6+
"rootDir": "src",
7+
"types": ["node"]
8+
}
9+
}

compat/core/package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "@metta-ts/core",
3+
"version": "2.0.0",
4+
"license": "MIT",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"default": "./dist/index.js"
12+
},
13+
"./host": {
14+
"types": "./dist/host.d.ts",
15+
"default": "./dist/host.js"
16+
},
17+
"./package.json": "./package.json"
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"scripts": {
23+
"build": "tsup src/index.ts src/host.ts --format esm --dts --clean"
24+
},
25+
"dependencies": {
26+
"@mettascript/core": "workspace:*"
27+
},
28+
"author": "MesTTo",
29+
"engines": {
30+
"node": ">=20"
31+
},
32+
"sideEffects": false,
33+
"module": "./dist/index.js",
34+
"publishConfig": {
35+
"access": "public"
36+
},
37+
"description": "Compatibility shim for @mettascript/core.",
38+
"repository": {
39+
"type": "git",
40+
"url": "git+https://github.com/MesTTo/MeTTaScript.git",
41+
"directory": "packages/core"
42+
},
43+
"homepage": "https://github.com/MesTTo/MeTTaScript#readme",
44+
"bugs": {
45+
"url": "https://github.com/MesTTo/MeTTaScript/issues"
46+
}
47+
}

0 commit comments

Comments
 (0)