openpalm 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/dist/openpalm.js +10 -19
  2. package/package.json +1 -1
package/dist/openpalm.js CHANGED
@@ -855,21 +855,13 @@ openpalm uninstall
855
855
  listen: [":80"],
856
856
  routes: [
857
857
  {
858
- match: [{ path: ["/admin*"] }],
858
+ match: [{ path: ["/api*"] }],
859
859
  handle: [{
860
860
  handler: "subroute",
861
861
  routes: [
862
862
  {
863
- match: [{ path: ["/admin/api*"] }],
864
863
  handle: [
865
- { handler: "rewrite", uri_substring: [{ find: "/admin/api", replace: "/admin" }] },
866
- { handler: "reverse_proxy", upstreams: [{ dial: "admin:8100" }] }
867
- ],
868
- terminal: true
869
- },
870
- {
871
- handle: [
872
- { handler: "rewrite", strip_path_prefix: "/admin" },
864
+ { handler: "rewrite", strip_path_prefix: "/api" },
873
865
  { handler: "reverse_proxy", upstreams: [{ dial: "admin:8100" }] }
874
866
  ]
875
867
  }
@@ -879,9 +871,8 @@ openpalm uninstall
879
871
  },
880
872
  {
881
873
  handle: [{
882
- handler: "static_response",
883
- body: "OpenPalm is starting... Please visit /admin/ to complete setup.",
884
- status_code: "503"
874
+ handler: "reverse_proxy",
875
+ upstreams: [{ dial: "admin:8100" }]
885
876
  }]
886
877
  }
887
878
  ]
@@ -971,8 +962,8 @@ networks:
971
962
  const spin7 = spinner("Starting core services...");
972
963
  await composeUp(composeConfig, coreServices, { detach: true });
973
964
  spin7.stop(green("Core services started"));
974
- const adminUrl = "http://localhost/admin";
975
- const healthUrl = `${adminUrl}/api/setup/status`;
965
+ const adminUrl = "http://localhost";
966
+ const healthUrl = `${adminUrl}/setup/status`;
976
967
  const spin8 = spinner("Waiting for admin interface...");
977
968
  let healthy = false;
978
969
  let delay = 1000;
@@ -1273,7 +1264,7 @@ async function extensions(subcommand, args) {
1273
1264
  info("Usage: openpalm extensions install --plugin <id>");
1274
1265
  process.exit(1);
1275
1266
  }
1276
- const response = await fetch(`${base}/admin/plugins/install`, {
1267
+ const response = await fetch(`${base}/plugins/install`, {
1277
1268
  method: "POST",
1278
1269
  headers,
1279
1270
  body: JSON.stringify({ pluginId })
@@ -1290,7 +1281,7 @@ async function extensions(subcommand, args) {
1290
1281
  info("Usage: openpalm extensions uninstall --plugin <id>");
1291
1282
  process.exit(1);
1292
1283
  }
1293
- const response = await fetch(`${base}/admin/plugins/uninstall`, {
1284
+ const response = await fetch(`${base}/plugins/uninstall`, {
1294
1285
  method: "POST",
1295
1286
  headers,
1296
1287
  body: JSON.stringify({ pluginId })
@@ -1301,7 +1292,7 @@ async function extensions(subcommand, args) {
1301
1292
  break;
1302
1293
  }
1303
1294
  case "list": {
1304
- const response = await fetch(`${base}/admin/installed`, {
1295
+ const response = await fetch(`${base}/installed`, {
1305
1296
  method: "GET",
1306
1297
  headers
1307
1298
  });
@@ -1621,7 +1612,7 @@ ${inboundTokenVar}=
1621
1612
  // packages/cli/package.json
1622
1613
  var package_default = {
1623
1614
  name: "openpalm",
1624
- version: "0.2.6",
1615
+ version: "0.2.7",
1625
1616
  description: "CLI tool for installing and managing an OpenPalm stack",
1626
1617
  type: "module",
1627
1618
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpalm",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "CLI tool for installing and managing an OpenPalm stack",
5
5
  "type": "module",
6
6
  "license": "MIT",