replicas-cli 0.3.469 → 0.3.470
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 +101 -101
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -303,6 +303,105 @@ var init_json = __esm({
|
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
|
|
306
|
+
// ../shared/src/agent.ts
|
|
307
|
+
function isEngineAgentProvider(value) {
|
|
308
|
+
return value !== AGENT.REPLICAS && isValidAgentProvider(value);
|
|
309
|
+
}
|
|
310
|
+
function isValidAgentProvider(value) {
|
|
311
|
+
return VALID_AGENT_PROVIDERS.some((p) => p === value);
|
|
312
|
+
}
|
|
313
|
+
function getThinkingLevelOptions(provider2) {
|
|
314
|
+
return provider2 ? THINKING_LEVELS_BY_AGENT[provider2] : VALID_THINKING_LEVELS;
|
|
315
|
+
}
|
|
316
|
+
function isValidThinkingLevel(value) {
|
|
317
|
+
return VALID_THINKING_LEVELS.some((l) => l === value);
|
|
318
|
+
}
|
|
319
|
+
function isProviderSpecificThinkingLevel(value) {
|
|
320
|
+
return value === "ultra" || value === "ultracode";
|
|
321
|
+
}
|
|
322
|
+
function getProviderDisplayName(provider2, variant = "short") {
|
|
323
|
+
switch (provider2) {
|
|
324
|
+
case "codex":
|
|
325
|
+
return "Codex";
|
|
326
|
+
case "cursor":
|
|
327
|
+
return "Cursor";
|
|
328
|
+
case "muse":
|
|
329
|
+
return variant === "long" ? "Muse Code" : "Muse";
|
|
330
|
+
case "opencode":
|
|
331
|
+
return "Opencode";
|
|
332
|
+
case "pi":
|
|
333
|
+
return "Pi";
|
|
334
|
+
case "replicas":
|
|
335
|
+
return "Replicas";
|
|
336
|
+
case "claude":
|
|
337
|
+
return variant === "long" ? "Claude Code" : "Claude";
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
function getCodingAgentDisplayNames() {
|
|
341
|
+
return ENGINE_AGENT_PROVIDERS.map((provider2) => getProviderDisplayName(provider2)).join(", ");
|
|
342
|
+
}
|
|
343
|
+
var AGENT, VALID_AGENT_PROVIDERS, ENGINE_AGENT_PROVIDERS, SUBAGENT_MCP_HARNESSES, AGENT_PROVIDER_OPTIONS, VALID_THINKING_LEVELS, STANDARD_THINKING_LEVELS, THINKING_LEVELS_BY_AGENT;
|
|
344
|
+
var init_agent = __esm({
|
|
345
|
+
"../shared/src/agent.ts"() {
|
|
346
|
+
"use strict";
|
|
347
|
+
AGENT = {
|
|
348
|
+
CLAUDE: "claude",
|
|
349
|
+
CODEX: "codex",
|
|
350
|
+
CURSOR: "cursor",
|
|
351
|
+
MUSE: "muse",
|
|
352
|
+
OPENCODE: "opencode",
|
|
353
|
+
PI: "pi",
|
|
354
|
+
REPLICAS: "replicas"
|
|
355
|
+
};
|
|
356
|
+
VALID_AGENT_PROVIDERS = Object.values(AGENT);
|
|
357
|
+
ENGINE_AGENT_PROVIDERS = VALID_AGENT_PROVIDERS.filter(isEngineAgentProvider);
|
|
358
|
+
SUBAGENT_MCP_HARNESSES = [AGENT.CLAUDE, AGENT.CODEX];
|
|
359
|
+
AGENT_PROVIDER_OPTIONS = [
|
|
360
|
+
{
|
|
361
|
+
value: "claude",
|
|
362
|
+
label: "Claude Code",
|
|
363
|
+
description: "Use Claude Code for tasks"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
value: "codex",
|
|
367
|
+
label: "OpenAI Codex",
|
|
368
|
+
description: "Use OpenAI Codex for tasks"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
value: "cursor",
|
|
372
|
+
label: "Cursor",
|
|
373
|
+
description: "Use Cursor for tasks"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
value: "muse",
|
|
377
|
+
label: "Muse Code",
|
|
378
|
+
description: "Use Muse Code for tasks"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: "opencode",
|
|
382
|
+
label: "Opencode",
|
|
383
|
+
description: "Use Opencode for tasks"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: "pi",
|
|
387
|
+
label: "Pi",
|
|
388
|
+
description: "Use Pi for tasks"
|
|
389
|
+
}
|
|
390
|
+
];
|
|
391
|
+
VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max", "ultra", "ultracode"];
|
|
392
|
+
STANDARD_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
393
|
+
THINKING_LEVELS_BY_AGENT = {
|
|
394
|
+
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
395
|
+
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
396
|
+
cursor: STANDARD_THINKING_LEVELS,
|
|
397
|
+
muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
|
|
398
|
+
opencode: STANDARD_THINKING_LEVELS,
|
|
399
|
+
pi: STANDARD_THINKING_LEVELS,
|
|
400
|
+
replicas: STANDARD_THINKING_LEVELS
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
|
|
306
405
|
// ../shared/src/api-request.ts
|
|
307
406
|
async function fetchWithRedirects(url2, init, attempt = 0) {
|
|
308
407
|
const response = await fetch(url2, { ...init, redirect: "manual" });
|
|
@@ -328,6 +427,7 @@ var REDIRECT_STATUSES, MAX_REDIRECTS;
|
|
|
328
427
|
var init_api_request = __esm({
|
|
329
428
|
"../shared/src/api-request.ts"() {
|
|
330
429
|
"use strict";
|
|
430
|
+
init_agent();
|
|
331
431
|
REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
332
432
|
MAX_REDIRECTS = 5;
|
|
333
433
|
}
|
|
@@ -20917,105 +21017,6 @@ var init_zod = __esm({
|
|
|
20917
21017
|
}
|
|
20918
21018
|
});
|
|
20919
21019
|
|
|
20920
|
-
// ../shared/src/agent.ts
|
|
20921
|
-
function isEngineAgentProvider(value) {
|
|
20922
|
-
return value !== AGENT.REPLICAS && isValidAgentProvider(value);
|
|
20923
|
-
}
|
|
20924
|
-
function isValidAgentProvider(value) {
|
|
20925
|
-
return VALID_AGENT_PROVIDERS.some((p) => p === value);
|
|
20926
|
-
}
|
|
20927
|
-
function getThinkingLevelOptions(provider2) {
|
|
20928
|
-
return provider2 ? THINKING_LEVELS_BY_AGENT[provider2] : VALID_THINKING_LEVELS;
|
|
20929
|
-
}
|
|
20930
|
-
function isValidThinkingLevel(value) {
|
|
20931
|
-
return VALID_THINKING_LEVELS.some((l) => l === value);
|
|
20932
|
-
}
|
|
20933
|
-
function isProviderSpecificThinkingLevel(value) {
|
|
20934
|
-
return value === "ultra" || value === "ultracode";
|
|
20935
|
-
}
|
|
20936
|
-
function getProviderDisplayName(provider2, variant = "short") {
|
|
20937
|
-
switch (provider2) {
|
|
20938
|
-
case "codex":
|
|
20939
|
-
return "Codex";
|
|
20940
|
-
case "cursor":
|
|
20941
|
-
return "Cursor";
|
|
20942
|
-
case "muse":
|
|
20943
|
-
return variant === "long" ? "Muse Code" : "Muse";
|
|
20944
|
-
case "opencode":
|
|
20945
|
-
return "Opencode";
|
|
20946
|
-
case "pi":
|
|
20947
|
-
return "Pi";
|
|
20948
|
-
case "replicas":
|
|
20949
|
-
return "Replicas";
|
|
20950
|
-
case "claude":
|
|
20951
|
-
return variant === "long" ? "Claude Code" : "Claude";
|
|
20952
|
-
}
|
|
20953
|
-
}
|
|
20954
|
-
function getCodingAgentDisplayNames() {
|
|
20955
|
-
return ENGINE_AGENT_PROVIDERS.map((provider2) => getProviderDisplayName(provider2)).join(", ");
|
|
20956
|
-
}
|
|
20957
|
-
var AGENT, VALID_AGENT_PROVIDERS, ENGINE_AGENT_PROVIDERS, SUBAGENT_MCP_HARNESSES, AGENT_PROVIDER_OPTIONS, VALID_THINKING_LEVELS, STANDARD_THINKING_LEVELS, THINKING_LEVELS_BY_AGENT;
|
|
20958
|
-
var init_agent = __esm({
|
|
20959
|
-
"../shared/src/agent.ts"() {
|
|
20960
|
-
"use strict";
|
|
20961
|
-
AGENT = {
|
|
20962
|
-
CLAUDE: "claude",
|
|
20963
|
-
CODEX: "codex",
|
|
20964
|
-
CURSOR: "cursor",
|
|
20965
|
-
MUSE: "muse",
|
|
20966
|
-
OPENCODE: "opencode",
|
|
20967
|
-
PI: "pi",
|
|
20968
|
-
REPLICAS: "replicas"
|
|
20969
|
-
};
|
|
20970
|
-
VALID_AGENT_PROVIDERS = Object.values(AGENT);
|
|
20971
|
-
ENGINE_AGENT_PROVIDERS = VALID_AGENT_PROVIDERS.filter(isEngineAgentProvider);
|
|
20972
|
-
SUBAGENT_MCP_HARNESSES = [AGENT.CLAUDE, AGENT.CODEX];
|
|
20973
|
-
AGENT_PROVIDER_OPTIONS = [
|
|
20974
|
-
{
|
|
20975
|
-
value: "claude",
|
|
20976
|
-
label: "Claude Code",
|
|
20977
|
-
description: "Use Claude Code for tasks"
|
|
20978
|
-
},
|
|
20979
|
-
{
|
|
20980
|
-
value: "codex",
|
|
20981
|
-
label: "OpenAI Codex",
|
|
20982
|
-
description: "Use OpenAI Codex for tasks"
|
|
20983
|
-
},
|
|
20984
|
-
{
|
|
20985
|
-
value: "cursor",
|
|
20986
|
-
label: "Cursor",
|
|
20987
|
-
description: "Use Cursor for tasks"
|
|
20988
|
-
},
|
|
20989
|
-
{
|
|
20990
|
-
value: "muse",
|
|
20991
|
-
label: "Muse Code",
|
|
20992
|
-
description: "Use Muse Code for tasks"
|
|
20993
|
-
},
|
|
20994
|
-
{
|
|
20995
|
-
value: "opencode",
|
|
20996
|
-
label: "Opencode",
|
|
20997
|
-
description: "Use Opencode for tasks"
|
|
20998
|
-
},
|
|
20999
|
-
{
|
|
21000
|
-
value: "pi",
|
|
21001
|
-
label: "Pi",
|
|
21002
|
-
description: "Use Pi for tasks"
|
|
21003
|
-
}
|
|
21004
|
-
];
|
|
21005
|
-
VALID_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max", "ultra", "ultracode"];
|
|
21006
|
-
STANDARD_THINKING_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
21007
|
-
THINKING_LEVELS_BY_AGENT = {
|
|
21008
|
-
claude: [...STANDARD_THINKING_LEVELS, "ultracode"],
|
|
21009
|
-
codex: [...STANDARD_THINKING_LEVELS, "ultra"],
|
|
21010
|
-
cursor: STANDARD_THINKING_LEVELS,
|
|
21011
|
-
muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
|
|
21012
|
-
opencode: STANDARD_THINKING_LEVELS,
|
|
21013
|
-
pi: STANDARD_THINKING_LEVELS,
|
|
21014
|
-
replicas: STANDARD_THINKING_LEVELS
|
|
21015
|
-
};
|
|
21016
|
-
}
|
|
21017
|
-
});
|
|
21018
|
-
|
|
21019
21020
|
// ../shared/src/external-api-host.ts
|
|
21020
21021
|
var init_external_api_host = __esm({
|
|
21021
21022
|
"../shared/src/external-api-host.ts"() {
|
|
@@ -38905,7 +38906,6 @@ var init_replicas_loader = __esm({
|
|
|
38905
38906
|
var init_e2b = __esm({
|
|
38906
38907
|
"../shared/src/e2b.ts"() {
|
|
38907
38908
|
"use strict";
|
|
38908
|
-
init_sandbox();
|
|
38909
38909
|
}
|
|
38910
38910
|
});
|
|
38911
38911
|
|
|
@@ -39629,7 +39629,7 @@ var CLI_VERSION;
|
|
|
39629
39629
|
var init_cli_version = __esm({
|
|
39630
39630
|
"../shared/src/cli-version.ts"() {
|
|
39631
39631
|
"use strict";
|
|
39632
|
-
CLI_VERSION = "0.3.
|
|
39632
|
+
CLI_VERSION = "0.3.470";
|
|
39633
39633
|
}
|
|
39634
39634
|
});
|
|
39635
39635
|
|