@pleri/olam-cli 0.1.98 → 0.1.100
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/image-digests.json +3 -3
- package/dist/index.js +13 -0
- package/dist/mcp-server.js +12 -0
- package/package.json +1 -1
package/dist/image-digests.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"auth": "sha256:a985e5fb7cce881316e5bb005195255008c884aede2344151485937e7f7304a2",
|
|
3
|
-
"devbox": "sha256:
|
|
4
|
-
"host-cp": "sha256:
|
|
3
|
+
"devbox": "sha256:ea8cd296e6b55046ac0534b340d9897e7316253527f83f6fecb1d599d83e65a4",
|
|
4
|
+
"host-cp": "sha256:8c75b71fb6c8bad20544b03d010ed5d34a3dd840c9bc50eb736d8a4862061d51",
|
|
5
5
|
"mcp-auth": "sha256:e47169ad3fbc9cab216248fecbc56874343a5daab84b1f18d67529b7d415cf95",
|
|
6
6
|
"$schema_version": 1,
|
|
7
|
-
"$published_version": "0.1.
|
|
7
|
+
"$published_version": "0.1.100",
|
|
8
8
|
"$registry": "ghcr.io/pleri"
|
|
9
9
|
}
|
package/dist/index.js
CHANGED
|
@@ -10282,6 +10282,7 @@ __export(manager_exports, {
|
|
|
10282
10282
|
BotIdentityError: () => BotIdentityError,
|
|
10283
10283
|
WorkspaceNotFoundError: () => WorkspaceNotFoundError,
|
|
10284
10284
|
WorldManager: () => WorldManager,
|
|
10285
|
+
applyPostgresNetworkOverrides: () => applyPostgresNetworkOverrides,
|
|
10285
10286
|
buildManifestRuntimeForTest: () => buildManifestRuntime,
|
|
10286
10287
|
deriveReadinessChain: () => deriveReadinessChain,
|
|
10287
10288
|
getTokenScopes: () => getTokenScopes,
|
|
@@ -10633,6 +10634,17 @@ function buildManifestRuntime(worldId, repos) {
|
|
|
10633
10634
|
}
|
|
10634
10635
|
return { worldId, repos: runtimeRepos };
|
|
10635
10636
|
}
|
|
10637
|
+
function applyPostgresNetworkOverrides(worldEnv, enrichedRepos) {
|
|
10638
|
+
const hasPostgres = enrichedRepos.some((r) => r.manifest?.services?.["postgres"] !== void 0);
|
|
10639
|
+
if (!hasPostgres)
|
|
10640
|
+
return;
|
|
10641
|
+
worldEnv["POSTGRESQL_HOST"] = "postgres";
|
|
10642
|
+
worldEnv["POSTGRESQL_PORT"] = "5432";
|
|
10643
|
+
if ("POSTGRESQL_COMMON_HOST" in worldEnv)
|
|
10644
|
+
worldEnv["POSTGRESQL_COMMON_HOST"] = "postgres";
|
|
10645
|
+
if ("POSTGRESQL_COMMON_PORT" in worldEnv)
|
|
10646
|
+
worldEnv["POSTGRESQL_COMMON_PORT"] = "5432";
|
|
10647
|
+
}
|
|
10636
10648
|
var BotIdentityError, ADJECTIVES, NOUNS, AuthPreflightError, WorkspaceNotFoundError, WorldManager;
|
|
10637
10649
|
var init_manager = __esm({
|
|
10638
10650
|
"../core/dist/world/manager.js"() {
|
|
@@ -11098,6 +11110,7 @@ ${detail}`);
|
|
|
11098
11110
|
}
|
|
11099
11111
|
}
|
|
11100
11112
|
}
|
|
11113
|
+
applyPostgresNetworkOverrides(worldEnv, enrichedRepos);
|
|
11101
11114
|
await this.provider.createWorld({
|
|
11102
11115
|
id: worldId,
|
|
11103
11116
|
name: opts.name,
|
package/dist/mcp-server.js
CHANGED
|
@@ -32125,6 +32125,7 @@ ${detail}`);
|
|
|
32125
32125
|
}
|
|
32126
32126
|
}
|
|
32127
32127
|
}
|
|
32128
|
+
applyPostgresNetworkOverrides(worldEnv, enrichedRepos);
|
|
32128
32129
|
await this.provider.createWorld({
|
|
32129
32130
|
id: worldId,
|
|
32130
32131
|
name: opts.name,
|
|
@@ -32587,6 +32588,17 @@ ${opts.task}`;
|
|
|
32587
32588
|
return services;
|
|
32588
32589
|
}
|
|
32589
32590
|
};
|
|
32591
|
+
function applyPostgresNetworkOverrides(worldEnv, enrichedRepos) {
|
|
32592
|
+
const hasPostgres = enrichedRepos.some((r) => r.manifest?.services?.["postgres"] !== void 0);
|
|
32593
|
+
if (!hasPostgres)
|
|
32594
|
+
return;
|
|
32595
|
+
worldEnv["POSTGRESQL_HOST"] = "postgres";
|
|
32596
|
+
worldEnv["POSTGRESQL_PORT"] = "5432";
|
|
32597
|
+
if ("POSTGRESQL_COMMON_HOST" in worldEnv)
|
|
32598
|
+
worldEnv["POSTGRESQL_COMMON_HOST"] = "postgres";
|
|
32599
|
+
if ("POSTGRESQL_COMMON_PORT" in worldEnv)
|
|
32600
|
+
worldEnv["POSTGRESQL_COMMON_PORT"] = "5432";
|
|
32601
|
+
}
|
|
32590
32602
|
|
|
32591
32603
|
// ../core/dist/cost/tracker.js
|
|
32592
32604
|
var CostTracker = class {
|