openpalm 0.2.9 → 0.3.0
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.
- package/dist/openpalm.js +14 -8
- package/package.json +1 -1
package/dist/openpalm.js
CHANGED
|
@@ -135,9 +135,6 @@ async function createDirectoryTree(xdg) {
|
|
|
135
135
|
"openmemory",
|
|
136
136
|
"openmemory-ui",
|
|
137
137
|
"assistant",
|
|
138
|
-
"rendered",
|
|
139
|
-
"rendered/caddy",
|
|
140
|
-
"rendered/caddy/snippets",
|
|
141
138
|
"automations",
|
|
142
139
|
"caddy/config",
|
|
143
140
|
"caddy/data",
|
|
@@ -882,8 +879,13 @@ openpalm uninstall
|
|
|
882
879
|
}
|
|
883
880
|
}, null, 2) + `
|
|
884
881
|
`;
|
|
885
|
-
const caddyJsonPath = join4(xdg.state, "
|
|
882
|
+
const caddyJsonPath = join4(xdg.state, "caddy.json");
|
|
886
883
|
await writeFile(caddyJsonPath, minimalCaddyJson, "utf8");
|
|
884
|
+
const fallbackCaddyJsonPath = join4(xdg.state, "caddy-fallback.json");
|
|
885
|
+
const fallbackCaddyJsonExists = await Bun.file(fallbackCaddyJsonPath).exists();
|
|
886
|
+
if (!fallbackCaddyJsonExists) {
|
|
887
|
+
await writeFile(fallbackCaddyJsonPath, minimalCaddyJson, "utf8");
|
|
888
|
+
}
|
|
887
889
|
log(bold(`
|
|
888
890
|
Downloading OpenPalm services (this may take a few minutes on first install)...
|
|
889
891
|
`));
|
|
@@ -895,7 +897,7 @@ Downloading OpenPalm services (this may take a few minutes on first install)...
|
|
|
895
897
|
- "\${OPENPALM_INGRESS_BIND_ADDRESS:-127.0.0.1}:80:80"
|
|
896
898
|
- "\${OPENPALM_INGRESS_BIND_ADDRESS:-127.0.0.1}:443:443"
|
|
897
899
|
volumes:
|
|
898
|
-
- \${OPENPALM_STATE_HOME}/
|
|
900
|
+
- \${OPENPALM_STATE_HOME}/caddy.json:/etc/caddy/caddy.json:ro
|
|
899
901
|
- \${OPENPALM_STATE_HOME}/caddy/data:/data/caddy
|
|
900
902
|
- \${OPENPALM_STATE_HOME}/caddy/config:/config/caddy
|
|
901
903
|
command: caddy run --config /etc/caddy/caddy.json
|
|
@@ -935,6 +937,11 @@ networks:
|
|
|
935
937
|
assistant_net:
|
|
936
938
|
`;
|
|
937
939
|
await writeFile(stateComposeFile, minimalCompose, "utf8");
|
|
940
|
+
const fallbackComposePath = join4(xdg.state, "docker-compose-fallback.yml");
|
|
941
|
+
const fallbackComposeExists = await Bun.file(fallbackComposePath).exists();
|
|
942
|
+
if (!fallbackComposeExists) {
|
|
943
|
+
await writeFile(fallbackComposePath, minimalCompose, "utf8");
|
|
944
|
+
}
|
|
938
945
|
const composeConfig = {
|
|
939
946
|
bin,
|
|
940
947
|
subcommand,
|
|
@@ -1323,8 +1330,7 @@ var requiredDirs = [
|
|
|
1323
1330
|
"data/openmemory",
|
|
1324
1331
|
"data/assistant",
|
|
1325
1332
|
"state/gateway",
|
|
1326
|
-
"state/caddy"
|
|
1327
|
-
"state/rendered/caddy"
|
|
1333
|
+
"state/caddy"
|
|
1328
1334
|
];
|
|
1329
1335
|
function preflight() {
|
|
1330
1336
|
const issues = [];
|
|
@@ -1612,7 +1618,7 @@ ${inboundTokenVar}=
|
|
|
1612
1618
|
// packages/cli/package.json
|
|
1613
1619
|
var package_default = {
|
|
1614
1620
|
name: "openpalm",
|
|
1615
|
-
version: "0.
|
|
1621
|
+
version: "0.3.0",
|
|
1616
1622
|
description: "CLI tool for installing and managing an OpenPalm stack",
|
|
1617
1623
|
type: "module",
|
|
1618
1624
|
license: "MIT",
|