Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 62f3644

Browse files
vigoonoise64
andauthored
Code-first agent build integration and the initial version of the TS agent templates (#307)
* Custom build steps for agent wrapping * Updated to the latest wasm-rquickjs * Initial version of the prebuilt golem-agent WASM and the new templates * Make the agent template work * Updated golem_agent.wasm * Fixes * Renamed template directories to fix app new issue * Test fix * Fix * fix ts template filter * synchronize js and ts package.json * fix moonbit pkg name case --------- Co-authored-by: Dávid István Bíró <noise64@gmail.com>
1 parent 9a963a5 commit 62f3644

File tree

163 files changed

+6221
-1159
lines changed

Some content is hidden

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

163 files changed

+6221
-1159
lines changed

Cargo.lock

Lines changed: 5 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33

44
members = ["golem", "golem-cli", "golem-templates"]
55

6-
exclude = ["desktop-app/src-tauri"]
6+
exclude = ["desktop-app/src-tauri", "template-golem-agent-ts"]
77

88
[workspace.metadata]
99
license-file = "LICENSE"
@@ -125,7 +125,7 @@ wax = "0.6.0"
125125
wasm-metadata = { version = "0.228", features = ["oci"] }
126126
wasmparser = "0.235.0"
127127
wasm-encoder = "0.235.0"
128-
wasm-rquickjs = "0.0.4"
128+
wasm-rquickjs = "0.0.5"
129129
wasmtime = { version = "33.0.0", features = ["async", "component-model"] }
130130
wasmtime-wasi = { version = "33.0.0" }
131131
wit-bindgen = "0.43.0"

Makefile.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,16 @@ description = "Serve the schema.golem.cloud directory locally to help testing th
259259
install_crate = "miniserve"
260260
command = "miniserve"
261261
args = ["--interfaces", "127.0.0.1", "--port", "41357", "schema.golem.cloud"]
262+
263+
## Agent template management
264+
[tasks.rebuild-ts-agent-template]
265+
description = "Rebuilds the TypeScript agent template WASM"
266+
script_runner = "@duckscript"
267+
script = '''
268+
cd template-golem-agent-ts
269+
exec --fail-on-error npm update
270+
exec --fail-on-error npm install
271+
exec --fail-on-error npm run generate
272+
exec --fail-on-error npm run build
273+
cp dist/wrapper/target/wasm32-wasip1/release/golem_agent.wasm ../golem-templates/templates/ts/ts-agent-app-common/wasm/golem_agent.wasm
274+
'''

0 commit comments

Comments
 (0)