@openagentpack/playground 0.3.0-beta-e537ab3-20260722 → 0.3.0-beta-8d9edcd-20260722

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.
@@ -3841,8 +3841,18 @@ async function resolveListenPort(preferred, maxAttempts = MAX_PORT_ATTEMPTS) {
3841
3841
 
3842
3842
  // src/server.ts
3843
3843
  var DEFAULT_PLAYGROUND_PORT = 4848;
3844
- var webRoot = join3(dirname4(fileURLToPath(import.meta.url)), "../../web");
3844
+ var pkgRoot = join3(dirname4(fileURLToPath(import.meta.url)), "../..");
3845
+ var webRoot = join3(pkgRoot, "web");
3845
3846
  var indexHtml = injectPlaygroundRuntimeMarker(readFileSync(join3(webRoot, "index.html"), "utf8"));
3847
+ function readPlaygroundVersion() {
3848
+ try {
3849
+ const manifest = JSON.parse(readFileSync(join3(pkgRoot, "package.json"), "utf8"));
3850
+ return manifest.version ?? "unknown";
3851
+ } catch {
3852
+ return "unknown";
3853
+ }
3854
+ }
3855
+ var playgroundVersion = readPlaygroundVersion();
3846
3856
  function injectPlaygroundRuntimeMarker(html) {
3847
3857
  if (html.includes('name="agents-runtime"')) return html;
3848
3858
  return html.replace("<head>", '<head>\n <meta name="agents-runtime" content="playground" />');
@@ -3859,9 +3869,14 @@ async function startServer() {
3859
3869
  console.log(`Port ${preferred} is in use, using ${port} instead.`);
3860
3870
  }
3861
3871
  const root = new Hono();
3872
+ root.get("/health", (c) => c.json({ status: "ok", playground: { version: playgroundVersion, pid: process.pid } }));
3862
3873
  root.route("/", app);
3863
3874
  root.get("/", (c) => c.html(indexHtml));
3864
3875
  root.get("/index.html", (c) => c.html(indexHtml));
3876
+ root.use("/assets/*", async (c, next) => {
3877
+ await next();
3878
+ c.header("Cache-Control", "no-cache");
3879
+ });
3865
3880
  root.use("/assets/*", serveStatic({ root: webRoot }));
3866
3881
  root.get("*", (c) => c.html(indexHtml));
3867
3882
  serve({ fetch: root.fetch, port }, () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagentpack/playground",
3
- "version": "0.3.0-beta-e537ab3-20260722",
3
+ "version": "0.3.0-beta-8d9edcd-20260722",
4
4
  "description": "OpenAgentPack Playground — one-command local web UI for OpenAgentPack",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@hono/node-server": "^2.0.5",
44
44
  "@hono/zod-openapi": "^1.4.0",
45
- "@openagentpack/sdk": "0.3.0-beta-e537ab3-20260722",
45
+ "@openagentpack/sdk": "0.3.0-beta-8d9edcd-20260722",
46
46
  "hono": "^4.12.28",
47
47
  "zod": "^4.4.3"
48
48
  },