orchajs 0.23.3 → 0.23.4

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.
@@ -6,7 +6,6 @@ import { extname, isAbsolute, relative, resolve } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import { createServer, } from "node:http";
8
8
  import { watch } from "chokidar";
9
- import { build } from "esbuild";
10
9
  import { orcha } from "../orcha.js";
11
10
  import { loadProject } from "../project-loader.js";
12
11
  import { listTests, runTests } from "../testing.js";
@@ -475,10 +474,12 @@ async function serveAsset(response, pathname, publicRoot) {
475
474
  response.end(await readFile(path));
476
475
  }
477
476
  async function buildPlaygroundAssets(projectRoot) {
478
- let entryPath;
477
+ let scriptPath;
478
+ let stylesheetPath;
479
479
  let logoPath;
480
480
  try {
481
- entryPath = fileURLToPath(import.meta.resolve("@orchajs/playground-ui/mount"));
481
+ scriptPath = fileURLToPath(import.meta.resolve("@orchajs/playground-ui/app.js"));
482
+ stylesheetPath = fileURLToPath(import.meta.resolve("@orchajs/playground-ui/app.css"));
482
483
  logoPath = fileURLToPath(import.meta.resolve("@orchajs/playground-ui/orcha-logo.svg"));
483
484
  }
484
485
  catch (error) {
@@ -487,20 +488,8 @@ async function buildPlaygroundAssets(projectRoot) {
487
488
  const publicRoot = resolve(projectRoot, ".orcha/playground");
488
489
  await mkdir(publicRoot, { recursive: true });
489
490
  await Promise.all([
490
- build({
491
- entryPoints: [entryPath],
492
- outfile: resolve(publicRoot, "app.js"),
493
- bundle: true,
494
- format: "esm",
495
- platform: "browser",
496
- target: ["chrome110", "firefox110", "safari16"],
497
- minify: true,
498
- sourcemap: false,
499
- legalComments: "none",
500
- define: {
501
- "process.env.NODE_ENV": JSON.stringify("production"),
502
- },
503
- }),
491
+ copyFile(scriptPath, resolve(publicRoot, "app.js")),
492
+ copyFile(stylesheetPath, resolve(publicRoot, "app.css")),
504
493
  copyFile(logoPath, resolve(publicRoot, "orcha-logo.svg")),
505
494
  writeFile(resolve(publicRoot, "index.html"), `<!doctype html>
506
495
  <html lang="en">
@@ -30,7 +30,6 @@ var import_path = require("path");
30
30
  var import_url = require("url");
31
31
  var import_http = require("http");
32
32
  var import_chokidar = require("chokidar");
33
- var import_esbuild = require("esbuild");
34
33
  var import_orcha = require("../orcha.js");
35
34
  var import_project_loader = require("../project-loader.js");
36
35
  var import_testing = require("../testing.js");
@@ -502,11 +501,15 @@ async function serveAsset(response, pathname, publicRoot) {
502
501
  response.end(await (0, import_promises.readFile)(path));
503
502
  }
504
503
  async function buildPlaygroundAssets(projectRoot) {
505
- let entryPath;
504
+ let scriptPath;
505
+ let stylesheetPath;
506
506
  let logoPath;
507
507
  try {
508
- entryPath = (0, import_url.fileURLToPath)(
509
- import_meta.resolve("@orchajs/playground-ui/mount")
508
+ scriptPath = (0, import_url.fileURLToPath)(
509
+ import_meta.resolve("@orchajs/playground-ui/app.js")
510
+ );
511
+ stylesheetPath = (0, import_url.fileURLToPath)(
512
+ import_meta.resolve("@orchajs/playground-ui/app.css")
510
513
  );
511
514
  logoPath = (0, import_url.fileURLToPath)(
512
515
  import_meta.resolve("@orchajs/playground-ui/orcha-logo.svg")
@@ -520,20 +523,8 @@ async function buildPlaygroundAssets(projectRoot) {
520
523
  const publicRoot = (0, import_path.resolve)(projectRoot, ".orcha/playground");
521
524
  await (0, import_promises.mkdir)(publicRoot, { recursive: true });
522
525
  await Promise.all([
523
- (0, import_esbuild.build)({
524
- entryPoints: [entryPath],
525
- outfile: (0, import_path.resolve)(publicRoot, "app.js"),
526
- bundle: true,
527
- format: "esm",
528
- platform: "browser",
529
- target: ["chrome110", "firefox110", "safari16"],
530
- minify: true,
531
- sourcemap: false,
532
- legalComments: "none",
533
- define: {
534
- "process.env.NODE_ENV": JSON.stringify("production")
535
- }
536
- }),
526
+ (0, import_promises.copyFile)(scriptPath, (0, import_path.resolve)(publicRoot, "app.js")),
527
+ (0, import_promises.copyFile)(stylesheetPath, (0, import_path.resolve)(publicRoot, "app.css")),
537
528
  (0, import_promises.copyFile)(logoPath, (0, import_path.resolve)(publicRoot, "orcha-logo.svg")),
538
529
  (0, import_promises.writeFile)(
539
530
  (0, import_path.resolve)(publicRoot, "index.html"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchajs",
3
- "version": "0.23.3",
3
+ "version": "0.23.4",
4
4
  "description": "A filesystem-convention, stateful agent framework for JavaScript.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -124,7 +124,7 @@
124
124
  "node": ">=18.20.8"
125
125
  },
126
126
  "peerDependencies": {
127
- "@orchajs/playground-ui": ">=0.2.3",
127
+ "@orchajs/playground-ui": ">=0.2.4",
128
128
  "@react-native-async-storage/async-storage": ">=2 <3",
129
129
  "@aws-sdk/client-bedrock-runtime": ">=3.864.0 <4",
130
130
  "@google/genai": ">=2.22.0 <3",