replicas-cli 0.3.458 → 0.3.460
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.cjs +18 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22105,7 +22105,7 @@ function classifyCanvasFilename(filename) {
|
|
|
22105
22105
|
const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
|
|
22106
22106
|
return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
|
|
22107
22107
|
}
|
|
22108
|
-
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_2_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_2_ASTRA_MODEL, GPT_6_ASTRA_MODEL, GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22108
|
+
var CLAUDE_OPUS_1M_MODEL, LEGACY_CLAUDE_OPUS_1M_MODEL, CLAUDE_FABLE_5_2_MODEL, CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_SONNET_5_MODEL, CLAUDE_HAIKU_5_5_MODEL, CLAUDE_HAIKU_4_5_MODEL, DEFAULT_CLAUDE_MODEL, GPT_6_2_ASTRA_MODEL, GPT_6_ASTRA_MODEL, GPT_6_2_SOL_MODEL, GPT_6_1_SOL_MODEL, GPT_6_1_TERRA_MODEL, GPT_6_SOL_MODEL, GPT_6_LUNA_MODEL, GPT_5_6_SOL_MODEL, GPT_5_6_TERRA_MODEL, GPT_5_6_LUNA_MODEL, DEFAULT_CODEX_MODEL, DEFAULT_OPENCODE_MODEL, GLM_5_3_FLASH_MODEL, DEEPSEEK_V4_PRO_MODEL, DEEPSEEK_V4_FLASH_MODEL, MUSE_WONDER_1_0_MODEL, MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL, DEFAULT_OPENROUTER_MODELS, OPENROUTER_MODELS, CLAUDE_MODEL_CONTEXT_WINDOWS, CLAUDE_MODEL_MIN_SANDBOX_IMAGE, CODEX_MODEL_MIN_SANDBOX_IMAGE, REPLICAS_MODEL_PROVIDERS, REPLICAS_MODELS, AGENT_MODELS, HIDDEN_BY_DEFAULT_MODELS, withoutHiddenByDefault, DEFAULT_STATIC_AGENT_MODELS, DEFAULT_CURSOR_MODELS, MODEL_PREDECESSORS, MODEL_LABELS, IMAGE_MEDIA_TYPES, resourcePressure, sandboxResourceMinuteSchema, MAX_PENDING_RESOURCE_MINUTES, sandboxResourceMinutesSchema, sandboxMemorySampleSchema, engineUpdateProgressSchema, MAX_CANVAS_FILE_BYTES, MAX_CANVAS_PREVIEW_BYTES, CANVAS_KIND_BY_EXTENSION;
|
|
22109
22109
|
var init_types4 = __esm({
|
|
22110
22110
|
"../shared/src/engine/types.ts"() {
|
|
22111
22111
|
"use strict";
|
|
@@ -22202,10 +22202,15 @@ var init_types4 = __esm({
|
|
|
22202
22202
|
"gpt-5.4-mini": null,
|
|
22203
22203
|
"gpt-5.2": null
|
|
22204
22204
|
};
|
|
22205
|
+
REPLICAS_MODEL_PROVIDERS = ["openai", "anthropic"];
|
|
22206
|
+
REPLICAS_MODELS = {
|
|
22207
|
+
openai: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
|
|
22208
|
+
anthropic: [CLAUDE_OPUS_5_5_MODEL, CLAUDE_SONNET_5_5_MODEL, CLAUDE_HAIKU_5_5_MODEL]
|
|
22209
|
+
};
|
|
22205
22210
|
AGENT_MODELS = {
|
|
22206
22211
|
claude: Object.keys(CLAUDE_MODEL_MIN_SANDBOX_IMAGE),
|
|
22207
22212
|
codex: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
|
|
22208
|
-
replicas:
|
|
22213
|
+
replicas: [...REPLICAS_MODELS.openai, ...REPLICAS_MODELS.anthropic],
|
|
22209
22214
|
cursor: [
|
|
22210
22215
|
CLAUDE_FABLE_5_1_MODEL,
|
|
22211
22216
|
CLAUDE_FABLE_5_MODEL,
|
|
@@ -26631,7 +26636,7 @@ function defaultReplicasAgentAbilities() {
|
|
|
26631
26636
|
function hasAllReplicasAgentAbilities(abilities) {
|
|
26632
26637
|
return REPLICAS_AGENT_ABILITIES.every((key) => typeof abilities[key] === "boolean");
|
|
26633
26638
|
}
|
|
26634
|
-
var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS, LINEAR_ROUTING_SKILL_MAX_LENGTH, linearRoutingSkillSchema;
|
|
26639
|
+
var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, WALLPAPER_DITHERS, WALLPAPER_EFFECTS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS, LINEAR_ROUTING_SKILL_MAX_LENGTH, linearRoutingSkillSchema;
|
|
26635
26640
|
var init_preferences = __esm({
|
|
26636
26641
|
"../shared/src/routes/preferences.ts"() {
|
|
26637
26642
|
"use strict";
|
|
@@ -26653,6 +26658,8 @@ var init_preferences = __esm({
|
|
|
26653
26658
|
wood: ["ready", "pluck", "knock", "bloom", "steps"]
|
|
26654
26659
|
};
|
|
26655
26660
|
ALERT_SOUNDS = [...ALERT_SOUND_FAMILIES.glass, ...ALERT_SOUND_FAMILIES.wood];
|
|
26661
|
+
WALLPAPER_DITHERS = ["dither", "halftone", "modulation"];
|
|
26662
|
+
WALLPAPER_EFFECTS = ["soft", "grain", "duotone", ...WALLPAPER_DITHERS, "none"];
|
|
26656
26663
|
PUSH_WHEN_ACTIVE_COPY = {
|
|
26657
26664
|
wait: `Wait ${PUSH_HOLD_MINUTES} minutes`,
|
|
26658
26665
|
skip: "Don\u2019t send",
|
|
@@ -37159,6 +37166,9 @@ function toolCallMessage(id, name, args, timestamp, result) {
|
|
|
37159
37166
|
if ((name === "write" || name === "edit") && typeof args.path === "string") {
|
|
37160
37167
|
return { id, type: "file_change", changes: [{ path: args.path, kind: name === "write" ? "add" : "update" }], status, timestamp };
|
|
37161
37168
|
}
|
|
37169
|
+
if (name === "web_search" && typeof args.query === "string") {
|
|
37170
|
+
return { id, type: "web_search", query: args.query, status, timestamp };
|
|
37171
|
+
}
|
|
37162
37172
|
return createCallDisplayMessage({ id, server: "replicas", tool: name, input: args, output: result?.output, status, timestamp });
|
|
37163
37173
|
}
|
|
37164
37174
|
function parseReplicasEvents(events) {
|
|
@@ -39035,6 +39045,7 @@ var init_worker_routes = __esm({
|
|
|
39035
39045
|
"use strict";
|
|
39036
39046
|
init_zod();
|
|
39037
39047
|
init_types3();
|
|
39048
|
+
init_types4();
|
|
39038
39049
|
harnessWorkerEngineRequestSchema = external_exports.object({
|
|
39039
39050
|
/** The engine we were given didn't answer, so the monolith checks the provider instead of trusting the workspace's status. */
|
|
39040
39051
|
unreachable: external_exports.boolean().optional()
|
|
@@ -39045,7 +39056,9 @@ var init_worker_routes = __esm({
|
|
|
39045
39056
|
]);
|
|
39046
39057
|
harnessWorkerCredentialRequestSchema = external_exports.object({
|
|
39047
39058
|
/** The credential the model rejected, so the monolith refreshes it or moves to the next one instead of handing it back. */
|
|
39048
|
-
failedCredential: agentCredentialSnapshotSchema.optional()
|
|
39059
|
+
failedCredential: agentCredentialSnapshotSchema.optional(),
|
|
39060
|
+
// A worker from before Claude models sends none, and only ever calls OpenAI.
|
|
39061
|
+
modelProvider: external_exports.enum(REPLICAS_MODEL_PROVIDERS).default("openai")
|
|
39049
39062
|
});
|
|
39050
39063
|
harnessWorkerCredentialResponseSchema = external_exports.discriminatedUnion("method", [
|
|
39051
39064
|
external_exports.object({ method: external_exports.literal("oauth"), accessToken: external_exports.string(), expiresAt: external_exports.string(), credential: agentCredentialSnapshotSchema }),
|
|
@@ -39118,7 +39131,7 @@ var CLI_VERSION;
|
|
|
39118
39131
|
var init_cli_version = __esm({
|
|
39119
39132
|
"../shared/src/cli-version.ts"() {
|
|
39120
39133
|
"use strict";
|
|
39121
|
-
CLI_VERSION = "0.3.
|
|
39134
|
+
CLI_VERSION = "0.3.460";
|
|
39122
39135
|
}
|
|
39123
39136
|
});
|
|
39124
39137
|
|