meetsoma 0.27.5 → 0.28.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/thin-cli.js +4 -4
- package/package.json +1 -1
package/dist/thin-cli.js
CHANGED
|
@@ -678,7 +678,7 @@ import { execSync } from "child_process";
|
|
|
678
678
|
function isInstalled() {
|
|
679
679
|
const hasDist = existsSync2(join2(CORE_DIR, "dist", "extensions")) && existsSync2(join2(CORE_DIR, "dist", "core"));
|
|
680
680
|
const hasDev = existsSync2(join2(CORE_DIR, "extensions")) && existsSync2(join2(CORE_DIR, "core"));
|
|
681
|
-
const hasDeps = existsSync2(join2(CORE_DIR, "node_modules", "@
|
|
681
|
+
const hasDeps = existsSync2(join2(CORE_DIR, "node_modules", "@earendil-works"));
|
|
682
682
|
return (hasDist || hasDev) && hasDeps;
|
|
683
683
|
}
|
|
684
684
|
function getAgentVersion() {
|
|
@@ -1661,7 +1661,7 @@ async function healthCheck() {
|
|
|
1661
1661
|
const pkgPath = join3(CORE_DIR, "package.json");
|
|
1662
1662
|
if (existsSync3(pkgPath)) {
|
|
1663
1663
|
const pkg = JSON.parse(readFileSync3(pkgPath, "utf-8"));
|
|
1664
|
-
const declaredPi = (pkg.dependencies || {})["@
|
|
1664
|
+
const declaredPi = (pkg.dependencies || {})["@earendil-works/pi-coding-agent"];
|
|
1665
1665
|
const declaredClean = (declaredPi || "").replace(/^[\^~]/, "");
|
|
1666
1666
|
let bundledPi = null;
|
|
1667
1667
|
let bundledSource = null;
|
|
@@ -1678,7 +1678,7 @@ async function healthCheck() {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
let fallbackUsed = false;
|
|
1680
1680
|
if (!bundledPi) {
|
|
1681
|
-
const piPkgPath = join3(CORE_DIR, "node_modules", "@
|
|
1681
|
+
const piPkgPath = join3(CORE_DIR, "node_modules", "@earendil-works", "pi-coding-agent", "package.json");
|
|
1682
1682
|
if (existsSync3(piPkgPath)) {
|
|
1683
1683
|
try {
|
|
1684
1684
|
bundledPi = JSON.parse(readFileSync3(piPkgPath, "utf-8")).version;
|
|
@@ -2246,7 +2246,7 @@ ${inject.join("\n")}
|
|
|
2246
2246
|
await healthCheck();
|
|
2247
2247
|
}
|
|
2248
2248
|
async function delegateToCore() {
|
|
2249
|
-
const piPkg = join3(CORE_DIR, "node_modules", "@
|
|
2249
|
+
const piPkg = join3(CORE_DIR, "node_modules", "@earendil-works", "pi-coding-agent");
|
|
2250
2250
|
if (!existsSync3(piPkg)) {
|
|
2251
2251
|
console.log(` ${red("\u2717")} Runtime dependencies missing.`);
|
|
2252
2252
|
console.log(` ${dim("Run")} ${green("soma init")} ${dim("to repair the installation.")}`);
|