replicas-cli 0.2.410 → 0.2.412
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/index.mjs +13 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24365,13 +24365,21 @@ var DEFAULT_USER_PREFERENCES = {
|
|
|
24365
24365
|
default_fast_mode: false,
|
|
24366
24366
|
agent_defaults: { ...EMPTY_AGENT_DEFAULT_SETTINGS }
|
|
24367
24367
|
};
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
)
|
|
24368
|
+
function defaultReplicasAgentAbilities() {
|
|
24369
|
+
const abilities = {};
|
|
24370
|
+
for (const key of REPLICAS_AGENT_ABILITIES) {
|
|
24371
|
+
abilities[key] = true;
|
|
24372
|
+
}
|
|
24373
|
+
if (hasAllReplicasAgentAbilities(abilities)) return abilities;
|
|
24374
|
+
throw new Error("Default Replicas agent ability flags are incomplete");
|
|
24375
|
+
}
|
|
24376
|
+
function hasAllReplicasAgentAbilities(abilities) {
|
|
24377
|
+
return REPLICAS_AGENT_ABILITIES.every((key) => typeof abilities[key] === "boolean");
|
|
24378
|
+
}
|
|
24371
24379
|
var DEFAULT_DEFAULT_SKILLS = {
|
|
24372
24380
|
replicas_agent: {
|
|
24373
24381
|
enabled: true,
|
|
24374
|
-
abilities:
|
|
24382
|
+
abilities: defaultReplicasAgentAbilities()
|
|
24375
24383
|
}
|
|
24376
24384
|
};
|
|
24377
24385
|
|
|
@@ -24420,7 +24428,7 @@ function formatTurnElapsed(ms) {
|
|
|
24420
24428
|
}
|
|
24421
24429
|
|
|
24422
24430
|
// ../shared/src/cli-version.ts
|
|
24423
|
-
var CLI_VERSION = "0.2.
|
|
24431
|
+
var CLI_VERSION = "0.2.412";
|
|
24424
24432
|
|
|
24425
24433
|
// ../shared/src/version.ts
|
|
24426
24434
|
function compareVersions(v1, v2) {
|