antechamber 2.0.18 → 2.0.19
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.0.19] - 2026-11-28
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Folder-installed extensions now recognize when OpenChamber's default settings already select their launcher, so
|
|
15
|
+
OmO Graph and OmO Work no longer claim that sessions are not running on OmO while Antechamber is active.
|
|
16
|
+
|
|
10
17
|
## [2.0.18] - 2026-11-27
|
|
11
18
|
|
|
12
19
|
### Changed
|
|
@@ -40,9 +40,10 @@ the npm `--auto-update` launcher); a CLI you picked yourself, then or later, sta
|
|
|
40
40
|
as OpenCode CLI**. OpenChamber reads the setting each time it starts OpenCode, so the OmO panel and the Work section
|
|
41
41
|
ask for **Restart OpenCode** until the launcher has started once since the switch; the launcher records its starts,
|
|
42
42
|
and the service its switch, under `~/.antechamber/launches/`. They show nothing once antechamber runs. A folder
|
|
43
|
-
install
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
install reads OpenChamber's default `~/.config/openchamber/settings.json` to recognize an already selected launcher.
|
|
44
|
+
It cannot switch that file automatically because the folder might belong to another OpenChamber data directory;
|
|
45
|
+
set the launcher in **Settings → General → OpenCode CLI** if it is not selected. The panel's settings (the sliders
|
|
46
|
+
icon) list the installed versions and the launcher path while it is not the OpenCode CLI.
|
|
46
47
|
|
|
47
48
|
Other ways to add it: a **Folder** (`extensions/antechamber` of an npm install or a built checkout; `antechamber
|
|
48
49
|
setup` prints it), or the release **ZIP**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antechamber-openchamber",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.19",
|
|
4
4
|
"description": "OpenChamber extension for antechamber: installs and pins the antechamber server and OmO, draws the OmO Graph and the OmO Work section, and titles OmO tool cards",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
@@ -6,13 +6,15 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
// extensions/antechamber/src/runtime/activate.ts
|
|
7
7
|
import { chmodSync, copyFileSync, existsSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, join } from "node:path";
|
|
9
|
-
function openchamberSettingsPath(extensionDir2) {
|
|
9
|
+
function openchamberSettingsPath(extensionDir2, home) {
|
|
10
10
|
for (let dir = extensionDir2; dirname(dir) !== dir; dir = dirname(dir)) {
|
|
11
11
|
if (basename(dirname(dir)) !== "extensions") continue;
|
|
12
|
-
const
|
|
13
|
-
if (existsSync(
|
|
12
|
+
const settings2 = join(dirname(dirname(dir)), "settings.json");
|
|
13
|
+
if (existsSync(settings2)) return settings2;
|
|
14
14
|
}
|
|
15
|
-
return void 0;
|
|
15
|
+
if (home === void 0) return void 0;
|
|
16
|
+
const settings = join(home, ".config", "openchamber", "settings.json");
|
|
17
|
+
return existsSync(settings) ? settings : void 0;
|
|
16
18
|
}
|
|
17
19
|
function launcherPath(extensionDir2) {
|
|
18
20
|
return join(extensionDir2, "bin", "opencode-antechamber");
|
|
@@ -875,7 +877,7 @@ function createService(options) {
|
|
|
875
877
|
const launcher = launcherPath(options.extensionDir);
|
|
876
878
|
const launchStamp = launchStampPath(options.home, launcher);
|
|
877
879
|
const switchStamp = `${launchStamp}.switched`;
|
|
878
|
-
const
|
|
880
|
+
const findWritableSettings = () => options.settingsPath ?? openchamberSettingsPath(options.extensionDir);
|
|
879
881
|
const readSettings = (settingsPath) => {
|
|
880
882
|
try {
|
|
881
883
|
const configured = configuredBinary(settingsPath);
|
|
@@ -890,7 +892,7 @@ function createService(options) {
|
|
|
890
892
|
return activated;
|
|
891
893
|
};
|
|
892
894
|
const activateUnasked = () => {
|
|
893
|
-
const settingsPath =
|
|
895
|
+
const settingsPath = findWritableSettings();
|
|
894
896
|
if (settingsPath === void 0 || runtimeState(options.paths, deps).state !== "ready") return;
|
|
895
897
|
if (readStamp(switchStamp) !== void 0) return;
|
|
896
898
|
try {
|
|
@@ -909,9 +911,11 @@ function createService(options) {
|
|
|
909
911
|
return installing;
|
|
910
912
|
};
|
|
911
913
|
const status = () => {
|
|
912
|
-
const
|
|
914
|
+
const writableSettings = findWritableSettings();
|
|
915
|
+
const settingsPath = writableSettings ?? openchamberSettingsPath(options.extensionDir, options.home);
|
|
913
916
|
const current = runtimeState(options.paths, deps);
|
|
914
|
-
const { configured, error
|
|
917
|
+
const { configured, error } = settingsPath === void 0 ? {} : readSettings(settingsPath);
|
|
918
|
+
const settingsError = writableSettings === void 0 ? void 0 : error;
|
|
915
919
|
const active = configured === launcher;
|
|
916
920
|
const switchedAt = readStamp(switchStamp);
|
|
917
921
|
const base = {
|
|
@@ -919,7 +923,7 @@ function createService(options) {
|
|
|
919
923
|
spec: options.paths.spec,
|
|
920
924
|
launcher,
|
|
921
925
|
bun: options.bun ?? null,
|
|
922
|
-
settings:
|
|
926
|
+
settings: writableSettings ?? null,
|
|
923
927
|
configured: configured?.trim() ? configured : null,
|
|
924
928
|
active,
|
|
925
929
|
...settingsError ? { settingsError } : {},
|
|
@@ -959,7 +963,7 @@ function createService(options) {
|
|
|
959
963
|
}
|
|
960
964
|
if (pathname === "/runtime/activate" && req.method === "POST") {
|
|
961
965
|
req.resume();
|
|
962
|
-
const settingsPath =
|
|
966
|
+
const settingsPath = findWritableSettings();
|
|
963
967
|
if (settingsPath === void 0)
|
|
964
968
|
return send(res, 409, {
|
|
965
969
|
error: "settings-not-found",
|