replicas-engine 0.1.1598 → 0.1.1600
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/src/{asp-host-RJQYOIXN.js → asp-host-HR3U7S5P.js} +5 -5
- package/dist/src/{chunk-MU23LQAX.js → chunk-23OSWBDM.js} +2 -2
- package/dist/src/{chunk-VO4QZI4T.js → chunk-2KSEOMCI.js} +6 -6
- package/dist/src/{chunk-TDZXKLLY.js → chunk-5M22SZHQ.js} +1 -1
- package/dist/src/{chunk-6CGBIWI7.js → chunk-6WSVDW2W.js} +2 -2
- package/dist/src/{chunk-5YXEJTR3.js → chunk-GN2YE77J.js} +170 -19
- package/dist/src/{chunk-6PNCUPSY.js → chunk-V4EFZGCN.js} +2 -2
- package/dist/src/{chunk-3XBU5JDE.js → chunk-YZ465CA2.js} +1 -1
- package/dist/src/{chunk-267R5L3G.js → chunk-ZDOSFRWB.js} +3 -3
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +6 -4
- package/dist/src/index.js +14 -11
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-2KSEOMCI.js";
|
|
12
|
+
import "./chunk-6WSVDW2W.js";
|
|
13
|
+
import "./chunk-ZDOSFRWB.js";
|
|
14
|
+
import "./chunk-5M22SZHQ.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-GN2YE77J.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZDOSFRWB.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
readOllamaAuthEnv,
|
|
17
17
|
readOpenAICompatibleAuthEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GN2YE77J.js";
|
|
19
19
|
|
|
20
20
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
21
21
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
resolveDiffBase,
|
|
13
13
|
runGitCommand,
|
|
14
14
|
setAgentCredentialSnapshot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6WSVDW2W.js";
|
|
16
16
|
import {
|
|
17
17
|
AppServerProcess,
|
|
18
18
|
buildCodexAgentEnv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZDOSFRWB.js";
|
|
20
20
|
import {
|
|
21
21
|
SUBPROCESS_MAX_BUFFER,
|
|
22
22
|
execFileAsync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5M22SZHQ.js";
|
|
24
24
|
import {
|
|
25
25
|
isRecord
|
|
26
26
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
shrunkImageSize,
|
|
62
62
|
splitMothershipInstructions,
|
|
63
63
|
withTimeout
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-GN2YE77J.js";
|
|
65
65
|
|
|
66
66
|
// src/managers/codex-token-manager.ts
|
|
67
67
|
import { promises as fs } from "fs";
|
|
@@ -461,7 +461,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
461
461
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
462
462
|
await this.applyCredentialsResponse(data);
|
|
463
463
|
setAgentCredentialSnapshot("codex", data);
|
|
464
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
464
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-HR3U7S5P.js");
|
|
465
465
|
await restartCodexAspHostIfRunning2();
|
|
466
466
|
});
|
|
467
467
|
await this.start(true);
|
|
@@ -483,7 +483,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
483
483
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
484
484
|
await this.applyCredentialsResponse(data);
|
|
485
485
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
486
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
486
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-HR3U7S5P.js");
|
|
487
487
|
await restartCodexAspHostIfRunning2();
|
|
488
488
|
}
|
|
489
489
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GN2YE77J.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5M22SZHQ.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
provisionedDeviceSchema,
|
|
22
22
|
readReplicasRuntimeEnv,
|
|
23
23
|
serializePosixEnvFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GN2YE77J.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -9269,9 +9269,14 @@ var AGENT = {
|
|
|
9269
9269
|
CURSOR: "cursor",
|
|
9270
9270
|
MUSE: "muse",
|
|
9271
9271
|
OPENCODE: "opencode",
|
|
9272
|
-
PI: "pi"
|
|
9272
|
+
PI: "pi",
|
|
9273
|
+
REPLICAS: "replicas"
|
|
9273
9274
|
};
|
|
9274
9275
|
var VALID_AGENT_PROVIDERS = Object.values(AGENT);
|
|
9276
|
+
function isEngineAgentProvider(value) {
|
|
9277
|
+
return value !== AGENT.REPLICAS && isValidAgentProvider(value);
|
|
9278
|
+
}
|
|
9279
|
+
var ENGINE_AGENT_PROVIDERS = VALID_AGENT_PROVIDERS.filter(isEngineAgentProvider);
|
|
9275
9280
|
var SUBAGENT_MCP_HARNESSES = [AGENT.CLAUDE, AGENT.CODEX];
|
|
9276
9281
|
function isValidAgentProvider(value) {
|
|
9277
9282
|
return VALID_AGENT_PROVIDERS.some((p) => p === value);
|
|
@@ -9284,7 +9289,8 @@ var THINKING_LEVELS_BY_AGENT = {
|
|
|
9284
9289
|
cursor: STANDARD_THINKING_LEVELS,
|
|
9285
9290
|
muse: VALID_THINKING_LEVELS.filter((level) => level !== "max" && level !== "ultracode"),
|
|
9286
9291
|
opencode: STANDARD_THINKING_LEVELS,
|
|
9287
|
-
pi: STANDARD_THINKING_LEVELS
|
|
9292
|
+
pi: STANDARD_THINKING_LEVELS,
|
|
9293
|
+
replicas: STANDARD_THINKING_LEVELS
|
|
9288
9294
|
};
|
|
9289
9295
|
function isValidThinkingLevel(value) {
|
|
9290
9296
|
return VALID_THINKING_LEVELS.some((l) => l === value);
|
|
@@ -9313,6 +9319,8 @@ function getProviderDisplayName(provider2, variant = "short") {
|
|
|
9313
9319
|
return "Opencode";
|
|
9314
9320
|
case "pi":
|
|
9315
9321
|
return "Pi";
|
|
9322
|
+
case "replicas":
|
|
9323
|
+
return "Replicas";
|
|
9316
9324
|
case "claude":
|
|
9317
9325
|
return variant === "long" ? "Claude Code" : "Claude";
|
|
9318
9326
|
}
|
|
@@ -9547,7 +9555,7 @@ function serviceTierRequestFields(tier) {
|
|
|
9547
9555
|
return { fastMode: tier !== "default", ...tier === "ultrafast" ? { ultrafastMode: true } : {} };
|
|
9548
9556
|
}
|
|
9549
9557
|
var mothershipSubagentSettingsSchema = z4.object({
|
|
9550
|
-
coding_agent: z4.enum(
|
|
9558
|
+
coding_agent: z4.enum(ENGINE_AGENT_PROVIDERS),
|
|
9551
9559
|
model: z4.string().nullable(),
|
|
9552
9560
|
thinking_level: z4.enum(VALID_THINKING_LEVELS).nullable(),
|
|
9553
9561
|
service_tier: z4.enum(SUBAGENT_SERVICE_TIERS),
|
|
@@ -9816,7 +9824,8 @@ var DEFAULT_CHAT_TITLES = {
|
|
|
9816
9824
|
cursor: "Cursor",
|
|
9817
9825
|
muse: "Muse Code",
|
|
9818
9826
|
opencode: "Opencode",
|
|
9819
|
-
pi: "Pi"
|
|
9827
|
+
pi: "Pi",
|
|
9828
|
+
replicas: "Replicas"
|
|
9820
9829
|
};
|
|
9821
9830
|
function isDefaultChat(chat) {
|
|
9822
9831
|
return chat.title === DEFAULT_CHAT_TITLES[chat.provider];
|
|
@@ -9877,7 +9886,8 @@ var FALLBACK_AGENT_MODEL = {
|
|
|
9877
9886
|
cursor: DEFAULT_CURSOR_MODEL,
|
|
9878
9887
|
muse: DEFAULT_MUSE_MODEL,
|
|
9879
9888
|
opencode: DEFAULT_OPENCODE_MODEL,
|
|
9880
|
-
pi: DEFAULT_PI_MODEL
|
|
9889
|
+
pi: DEFAULT_PI_MODEL,
|
|
9890
|
+
replicas: DEFAULT_CODEX_MODEL
|
|
9881
9891
|
};
|
|
9882
9892
|
function getDefaultAgentModel(provider2, overrides) {
|
|
9883
9893
|
const catalogDefault = overrides?.defaultModels?.[provider2];
|
|
@@ -9955,6 +9965,7 @@ var CODEX_MODEL_MIN_SANDBOX_IMAGE = {
|
|
|
9955
9965
|
var AGENT_MODELS = {
|
|
9956
9966
|
claude: Object.keys(CLAUDE_MODEL_MIN_SANDBOX_IMAGE),
|
|
9957
9967
|
codex: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
|
|
9968
|
+
replicas: Object.keys(CODEX_MODEL_MIN_SANDBOX_IMAGE),
|
|
9958
9969
|
cursor: [
|
|
9959
9970
|
CLAUDE_FABLE_5_1_MODEL,
|
|
9960
9971
|
CLAUDE_FABLE_5_MODEL,
|
|
@@ -10566,6 +10577,10 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
|
|
|
10566
10577
|
{ method: CREDENTIAL_METHOD.OPENAI_COMPATIBLE, credentialType: CREDENTIAL_TYPE.OPENAI_COMPATIBLE },
|
|
10567
10578
|
{ method: CREDENTIAL_METHOD.OLLAMA, credentialType: CREDENTIAL_TYPE.OLLAMA }
|
|
10568
10579
|
],
|
|
10580
|
+
[AGENT.REPLICAS]: [
|
|
10581
|
+
{ method: CREDENTIAL_METHOD.OAUTH, credentialType: CREDENTIAL_TYPE.CODEX_OAUTH },
|
|
10582
|
+
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.OPENAI_API_KEY }
|
|
10583
|
+
],
|
|
10569
10584
|
[AGENT.PI]: [
|
|
10570
10585
|
{ method: CREDENTIAL_METHOD.OPENCODE_GO, credentialType: CREDENTIAL_TYPE.OPENCODE_GO_API_KEY },
|
|
10571
10586
|
{ method: CREDENTIAL_METHOD.ASTER, credentialType: CREDENTIAL_TYPE.ASTER_API_KEY },
|
|
@@ -10580,10 +10595,10 @@ function agentCredentialMethods(agent) {
|
|
|
10580
10595
|
function getCredentialMethodLabel(agent, method) {
|
|
10581
10596
|
switch (method) {
|
|
10582
10597
|
case CREDENTIAL_METHOD.OAUTH:
|
|
10583
|
-
if (agent === AGENT.CODEX) return "ChatGPT account";
|
|
10598
|
+
if (agent === AGENT.CODEX || agent === AGENT.REPLICAS) return "ChatGPT account";
|
|
10584
10599
|
return "Claude account";
|
|
10585
10600
|
case CREDENTIAL_METHOD.API_KEY:
|
|
10586
|
-
if (agent === AGENT.CODEX) return "OpenAI API key";
|
|
10601
|
+
if (agent === AGENT.CODEX || agent === AGENT.REPLICAS) return "OpenAI API key";
|
|
10587
10602
|
if (agent === AGENT.CURSOR) return "Cursor API key";
|
|
10588
10603
|
if (agent === AGENT.MUSE) return "Muse API key";
|
|
10589
10604
|
return "Anthropic API key";
|
|
@@ -10935,7 +10950,7 @@ var updateChatDisplayNameRequestSchema = z9.object({
|
|
|
10935
10950
|
var createChatRequestSchema = z9.object({
|
|
10936
10951
|
id: z9.string().uuid().optional(),
|
|
10937
10952
|
createdAt: z9.string().datetime().optional(),
|
|
10938
|
-
provider: z9.enum(
|
|
10953
|
+
provider: z9.enum(ENGINE_AGENT_PROVIDERS),
|
|
10939
10954
|
title: z9.string().min(1).optional(),
|
|
10940
10955
|
parentChatId: z9.string().uuid().optional(),
|
|
10941
10956
|
forkSourceChatId: z9.string().uuid().optional(),
|
|
@@ -10947,7 +10962,7 @@ var createChatRequestSchema = z9.object({
|
|
|
10947
10962
|
message: "A side chat must fork its parent chat"
|
|
10948
10963
|
});
|
|
10949
10964
|
var spawnSubagentRequestSchema = z9.object({
|
|
10950
|
-
provider: z9.enum(
|
|
10965
|
+
provider: z9.enum(ENGINE_AGENT_PROVIDERS),
|
|
10951
10966
|
prompt: z9.string().min(1),
|
|
10952
10967
|
forkTurns: z9.string().regex(/^(all|none|[1-9]\d*)$/).refine(
|
|
10953
10968
|
(value) => value === "all" || value === "none" || Number.isSafeInteger(Number(value)),
|
|
@@ -10998,7 +11013,7 @@ var sendChatMessageRequestSchema = z9.object({
|
|
|
10998
11013
|
messageId: z9.string().min(1).optional(),
|
|
10999
11014
|
submittedAt: z9.string().datetime().optional(),
|
|
11000
11015
|
message: z9.string().min(1),
|
|
11001
|
-
provider: z9.enum(
|
|
11016
|
+
provider: z9.enum(ENGINE_AGENT_PROVIDERS).optional(),
|
|
11002
11017
|
model: z9.string().optional(),
|
|
11003
11018
|
customInstructions: z9.string().optional(),
|
|
11004
11019
|
planMode: z9.boolean().optional(),
|
|
@@ -12174,7 +12189,7 @@ import { z as z19 } from "zod";
|
|
|
12174
12189
|
import { z as z18 } from "zod";
|
|
12175
12190
|
var fallbackHarnessStepSchema = z18.object({
|
|
12176
12191
|
kind: z18.literal("harness"),
|
|
12177
|
-
provider: z18.enum(
|
|
12192
|
+
provider: z18.enum(ENGINE_AGENT_PROVIDERS),
|
|
12178
12193
|
model: z18.string().min(1),
|
|
12179
12194
|
thinkingLevel: z18.enum(VALID_THINKING_LEVELS).optional().catch(void 0)
|
|
12180
12195
|
});
|
|
@@ -12211,7 +12226,7 @@ function coerceChatForkInfo(value) {
|
|
|
12211
12226
|
return parsed.success ? parsed.data : null;
|
|
12212
12227
|
}
|
|
12213
12228
|
var forkChatRequestSchema = z19.object({
|
|
12214
|
-
provider: z19.enum(
|
|
12229
|
+
provider: z19.enum(ENGINE_AGENT_PROVIDERS),
|
|
12215
12230
|
model: z19.string().min(1).optional(),
|
|
12216
12231
|
thinkingLevel: z19.enum(VALID_THINKING_LEVELS).optional(),
|
|
12217
12232
|
title: z19.string().min(1).max(200).optional(),
|
|
@@ -12433,6 +12448,10 @@ var PROVIDER_ICON_DEFINITIONS = {
|
|
|
12433
12448
|
viewBox: "0 0 800 800",
|
|
12434
12449
|
paths: ["M165.29 165.29h352.07V400H400v117.36H282.65v117.36H165.29V165.29Zm117.36 117.36V400H400V282.65H282.65Z", "M517.36 400h117.36v234.72H517.36V400Z"],
|
|
12435
12450
|
fillRules: ["evenodd", void 0]
|
|
12451
|
+
},
|
|
12452
|
+
replicas: {
|
|
12453
|
+
viewBox: "0 0 225 300",
|
|
12454
|
+
paths: ["M0 0H150V75H0V0ZM150 75H225V150H150V75ZM0 150H150V225H0V150ZM0 225H75V300H0V225ZM150 225H225V300H150V225Z"]
|
|
12436
12455
|
}
|
|
12437
12456
|
};
|
|
12438
12457
|
var SLACK_ICON_DEFINITION = {
|
|
@@ -12652,7 +12671,7 @@ var automationCreateToolInputSchema = automationToolInputSchema.extend({
|
|
|
12652
12671
|
var automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
|
|
12653
12672
|
automation_id: z24.string().describe("Automation ID"),
|
|
12654
12673
|
enabled: z24.boolean().optional(),
|
|
12655
|
-
agent_provider: z24.enum(
|
|
12674
|
+
agent_provider: z24.enum(ENGINE_AGENT_PROVIDERS).nullable().optional(),
|
|
12656
12675
|
model: z24.string().nullable().optional(),
|
|
12657
12676
|
thinking_level: z24.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
12658
12677
|
workspace_size: z24.enum(WORKSPACE_SIZES).optional(),
|
|
@@ -15314,7 +15333,7 @@ var EMPTY_AGENT_DEFAULT_SETTINGS = {
|
|
|
15314
15333
|
goal_mode: null,
|
|
15315
15334
|
fast_mode: null
|
|
15316
15335
|
};
|
|
15317
|
-
var DEFAULT_SUBAGENT_MCP_PROVIDERS = [...
|
|
15336
|
+
var DEFAULT_SUBAGENT_MCP_PROVIDERS = [...ENGINE_AGENT_PROVIDERS];
|
|
15318
15337
|
var ALERT_SOUND_FAMILIES = {
|
|
15319
15338
|
glass: ["glint", "tap", "ripple", "halo"],
|
|
15320
15339
|
wood: ["ready", "pluck", "knock", "bloom", "steps"]
|
|
@@ -15358,6 +15377,7 @@ var DEFAULT_USER_PREFERENCES = {
|
|
|
15358
15377
|
slack_settings_moved_notice: false,
|
|
15359
15378
|
mothership_board_opened: false,
|
|
15360
15379
|
follow_up_mode: "steer",
|
|
15380
|
+
send_key: "enter",
|
|
15361
15381
|
memory_enabled: null,
|
|
15362
15382
|
subagent_mcp_enabled: null,
|
|
15363
15383
|
default_fast_mode: false,
|
|
@@ -20456,7 +20476,7 @@ var VOICE_WAVEFORM = {
|
|
|
20456
20476
|
};
|
|
20457
20477
|
|
|
20458
20478
|
// ../shared/src/e2b.ts
|
|
20459
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-16-
|
|
20479
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-16-v15";
|
|
20460
20480
|
|
|
20461
20481
|
// ../shared/src/e2b-retry.ts
|
|
20462
20482
|
var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
|
|
@@ -20655,7 +20675,7 @@ var SLASH_COMMANDS = [
|
|
|
20655
20675
|
command,
|
|
20656
20676
|
description: "Open a side chat about this chat without interrupting it.",
|
|
20657
20677
|
argumentHint: "[question]",
|
|
20658
|
-
providers: [...
|
|
20678
|
+
providers: [...ENGINE_AGENT_PROVIDERS]
|
|
20659
20679
|
}))
|
|
20660
20680
|
];
|
|
20661
20681
|
function mergeSlashCommands(...commandGroups) {
|
|
@@ -20703,6 +20723,136 @@ function getGoalCommandObjectiveValidationError(message2, goalMode) {
|
|
|
20703
20723
|
}
|
|
20704
20724
|
|
|
20705
20725
|
// ../shared/src/keyboard-shortcuts.ts
|
|
20726
|
+
var KEYBOARD_SHORTCUTS = {
|
|
20727
|
+
search: { label: "Search", group: "General", keys: { key: "k", mod: true } },
|
|
20728
|
+
newWorkspace: {
|
|
20729
|
+
label: "New workspace",
|
|
20730
|
+
group: "General",
|
|
20731
|
+
keys: { key: "o", mod: true, shift: true },
|
|
20732
|
+
desktopKeys: { key: "n", mod: true }
|
|
20733
|
+
},
|
|
20734
|
+
toggleSidebar: { label: "Toggle sidebar", group: "General", keys: { key: "b", mod: true } },
|
|
20735
|
+
toggleRightPane: { label: "Toggle right pane", group: "General", keys: { key: "b", mod: true, alt: true } },
|
|
20736
|
+
openSettings: { label: "Settings", group: "General", keys: { key: ",", mod: true } },
|
|
20737
|
+
showKeyboardShortcuts: {
|
|
20738
|
+
label: "Keyboard shortcuts",
|
|
20739
|
+
group: "General",
|
|
20740
|
+
keys: { key: "/", mod: true },
|
|
20741
|
+
allowInDialog: true
|
|
20742
|
+
},
|
|
20743
|
+
saveFile: { label: "Save the open file", group: "General", keys: { key: "s", mod: true } },
|
|
20744
|
+
previousWorkspace: {
|
|
20745
|
+
label: "Previous workspace",
|
|
20746
|
+
group: "Navigation",
|
|
20747
|
+
keys: { key: "ArrowUp", alt: true },
|
|
20748
|
+
macKeys: { key: "ArrowUp", mod: true, alt: true }
|
|
20749
|
+
},
|
|
20750
|
+
nextWorkspace: {
|
|
20751
|
+
label: "Next workspace",
|
|
20752
|
+
group: "Navigation",
|
|
20753
|
+
keys: { key: "ArrowDown", alt: true },
|
|
20754
|
+
macKeys: { key: "ArrowDown", mod: true, alt: true }
|
|
20755
|
+
},
|
|
20756
|
+
nextWorkspaceNeedingYou: {
|
|
20757
|
+
label: "Next workspace that needs you",
|
|
20758
|
+
group: "Navigation",
|
|
20759
|
+
keys: { key: "ArrowDown", mod: true, alt: true, shift: true },
|
|
20760
|
+
linuxKeys: { key: "ArrowDown", alt: true, shift: true }
|
|
20761
|
+
},
|
|
20762
|
+
jumpToWorkspace: { label: "Workspace 1\u20139 in the sidebar", group: "Navigation", desktopKeys: { key: "1", mod: true } },
|
|
20763
|
+
goBack: { label: "Back", group: "Navigation", desktopKeys: { key: "[", mod: true } },
|
|
20764
|
+
goForward: { label: "Forward", group: "Navigation", desktopKeys: { key: "]", mod: true } },
|
|
20765
|
+
stopAgent: { label: "Stop the agent", group: "Chat", keys: { key: "Escape" } },
|
|
20766
|
+
newChat: { label: "New chat", group: "Chat", desktopKeys: { key: "t", mod: true } },
|
|
20767
|
+
previousChat: {
|
|
20768
|
+
label: "Previous chat",
|
|
20769
|
+
group: "Chat",
|
|
20770
|
+
keys: { key: "[", alt: true },
|
|
20771
|
+
macKeys: { key: "[", mod: true, alt: true },
|
|
20772
|
+
desktopKeys: { key: "Tab", ctrl: true, shift: true }
|
|
20773
|
+
},
|
|
20774
|
+
nextChat: {
|
|
20775
|
+
label: "Next chat",
|
|
20776
|
+
group: "Chat",
|
|
20777
|
+
keys: { key: "]", alt: true },
|
|
20778
|
+
macKeys: { key: "]", mod: true, alt: true },
|
|
20779
|
+
desktopKeys: { key: "Tab", ctrl: true }
|
|
20780
|
+
},
|
|
20781
|
+
findInChat: { label: "Find in chat", group: "Chat", desktopKeys: { key: "f", mod: true } },
|
|
20782
|
+
findInCanvas: { label: "Find in canvas", group: "Chat", desktopKeys: { key: "f", mod: true } },
|
|
20783
|
+
shareWorkspace: { label: "Share workspace", group: "Chat", keys: { key: "s", mod: true, shift: true } },
|
|
20784
|
+
archiveWorkspace: { label: "Archive workspace", group: "Chat", keys: { key: "e", mod: true, shift: true } },
|
|
20785
|
+
// Cursor's binding. Claimed only while the Add to chat toolbar is showing, so the browser keeps it otherwise.
|
|
20786
|
+
addToChat: { label: "Add selection to chat", group: "Chat", keys: { key: "l", mod: true } },
|
|
20787
|
+
// Zed's agent panel bindings (ToggleModelSelector, CycleFavoriteModels); Cursor also uses ⌥⌘/ on macOS.
|
|
20788
|
+
openModelPicker: {
|
|
20789
|
+
label: "Choose model",
|
|
20790
|
+
group: "Chat",
|
|
20791
|
+
keys: { key: "/", alt: true, shift: true },
|
|
20792
|
+
macKeys: { key: "/", mod: true, alt: true },
|
|
20793
|
+
linuxKeys: { key: "/", mod: true, alt: true }
|
|
20794
|
+
},
|
|
20795
|
+
nextModel: {
|
|
20796
|
+
label: "Next model",
|
|
20797
|
+
group: "Chat",
|
|
20798
|
+
keys: { key: "l", alt: true },
|
|
20799
|
+
macKeys: { key: "Tab", alt: true }
|
|
20800
|
+
},
|
|
20801
|
+
send: { label: "Send", group: "Composer", keys: { key: "Enter" } },
|
|
20802
|
+
sendAlternate: { label: "Queue or steer instead", group: "Composer", keys: { key: "Enter", alt: true } },
|
|
20803
|
+
newLine: { label: "New line", group: "Composer", keys: { key: "Enter", shift: true } },
|
|
20804
|
+
toggleTaskMode: { label: "Switch Plan / Build", group: "Composer", keys: { key: "Tab", shift: true } },
|
|
20805
|
+
toggleVoiceInput: { label: "Voice input", group: "Composer", keys: { key: " ", mod: true, shift: true } },
|
|
20806
|
+
previousPrompt: { label: "Previous prompt", group: "Composer", keys: { key: "ArrowUp" } },
|
|
20807
|
+
searchPromptHistory: { label: "Search prompt history", group: "Composer", keys: { key: "r", ctrl: true } },
|
|
20808
|
+
mentionFile: { label: "Mention a file", group: "Composer", keys: { key: "@" } },
|
|
20809
|
+
slashCommand: { label: "Commands and skills", group: "Composer", keys: { key: "/" } },
|
|
20810
|
+
previousCanvasItem: { label: "Previous item", group: "Canvas", keys: { key: "ArrowLeft" } },
|
|
20811
|
+
nextCanvasItem: { label: "Next item", group: "Canvas", keys: { key: "ArrowRight" } },
|
|
20812
|
+
exitCanvasFullScreen: { label: "Exit full screen", group: "Canvas", keys: { key: "Escape" } },
|
|
20813
|
+
previousMedia: { label: "Previous", group: "Media viewer", keys: { key: "ArrowLeft" } },
|
|
20814
|
+
nextMedia: { label: "Next", group: "Media viewer", keys: { key: "ArrowRight" } },
|
|
20815
|
+
zoomInMedia: { label: "Zoom in", group: "Media viewer", keys: { key: "+" } },
|
|
20816
|
+
zoomOutMedia: { label: "Zoom out", group: "Media viewer", keys: { key: "-" } },
|
|
20817
|
+
fitMediaToScreen: { label: "Fit to screen", group: "Media viewer", keys: { key: "0" } },
|
|
20818
|
+
toggleMediaPlayback: { label: "Play or pause", group: "Media viewer", keys: { key: " " } },
|
|
20819
|
+
toggleMediaText: { label: "Show text", group: "Media viewer", keys: { key: "t" } },
|
|
20820
|
+
showReviewShortcuts: { label: "Show help", group: "Review", keys: { key: "?" }, allowInDialog: true },
|
|
20821
|
+
toggleReviewSidebar: { label: "Toggle left sidebar", group: "Review", keys: { key: "[" } },
|
|
20822
|
+
toggleReviewSidePanel: { label: "Show or hide chat", group: "Review", keys: { key: "]" } },
|
|
20823
|
+
goToReviewInbox: { label: "Go to review inbox", group: "Review", prefix: "g", keys: { key: "i" } },
|
|
20824
|
+
showReviewShortcutsSequence: { label: "Show keyboard shortcut help", group: "Review", prefix: "g", keys: { key: "k" } },
|
|
20825
|
+
toggleReviewFileTree: { label: "Show or hide file tree", group: "Review", keys: { key: "f" } },
|
|
20826
|
+
toggleReviewMode: { label: "Switch Files / Tour", group: "Review", keys: { key: "t" } },
|
|
20827
|
+
showReviewDiscussion: { label: "Jump to comments", group: "Review", keys: { key: "2" } },
|
|
20828
|
+
showReviewCommits: { label: "Jump to commits", group: "Review", keys: { key: "3" } },
|
|
20829
|
+
toggleReviewComments: { label: "Show or hide comments", group: "Review", keys: { key: "i" } },
|
|
20830
|
+
approvePullRequest: { label: "Approve", group: "Review", prefix: "r", keys: { key: "y" } },
|
|
20831
|
+
nextReviewFile: { label: "Next file", group: "Review", keys: { key: "ArrowDown", mod: true } },
|
|
20832
|
+
previousReviewFile: { label: "Previous file", group: "Review", keys: { key: "ArrowUp", mod: true } },
|
|
20833
|
+
markReviewFileViewed: { label: "Mark file as viewed", group: "Review", keys: { key: "Enter", mod: true }, ignoreWhileTyping: true },
|
|
20834
|
+
nextReviewComment: { label: "Next thread", group: "Review", keys: { key: "ArrowDown", shift: true } },
|
|
20835
|
+
previousReviewComment: { label: "Previous thread", group: "Review", keys: { key: "ArrowUp", shift: true } },
|
|
20836
|
+
nextPullRequest: { label: "Next pull request to review", group: "Review", keys: { key: "ArrowDown", mod: true, shift: true } },
|
|
20837
|
+
previousPullRequest: { label: "Previous pull request to review", group: "Review", keys: { key: "ArrowUp", mod: true, shift: true } },
|
|
20838
|
+
copyReviewLink: { label: "Copy link", group: "Review", prefix: "c", keys: { key: "l" } },
|
|
20839
|
+
copyPullRequestNumber: { label: "Copy PR number", group: "Review", prefix: "c", keys: { key: "n" } },
|
|
20840
|
+
copyPullRequestTitle: { label: "Copy title", group: "Review", prefix: "c", keys: { key: "t" } },
|
|
20841
|
+
copyPullRequestBranch: { label: "Copy branch name", group: "Review", prefix: "c", keys: { key: "b" } },
|
|
20842
|
+
copyPullRequestCheckout: { label: "Copy checkout command", group: "Review", prefix: "c", keys: { key: "c" } },
|
|
20843
|
+
copyPullRequestGitHubLink: { label: "Copy GitHub link", group: "Review", prefix: "c", keys: { key: "g" } },
|
|
20844
|
+
copyPullRequest: { label: "Copy PR", group: "Review", prefix: "c", keys: { key: "p" } },
|
|
20845
|
+
openReviewChat: { label: "Start chat", group: "Review", keys: { key: ";", mod: true } },
|
|
20846
|
+
mergePullRequest: { label: "Merge", group: "Review", keys: { key: "m" } }
|
|
20847
|
+
};
|
|
20848
|
+
var COMPOSER_SEND_SHORTCUTS = {
|
|
20849
|
+
enter: { send: KEYBOARD_SHORTCUTS.send, sendAlternate: KEYBOARD_SHORTCUTS.sendAlternate, newLine: KEYBOARD_SHORTCUTS.newLine },
|
|
20850
|
+
mod_enter: {
|
|
20851
|
+
send: { ...KEYBOARD_SHORTCUTS.send, keys: { key: "Enter", mod: true } },
|
|
20852
|
+
sendAlternate: { ...KEYBOARD_SHORTCUTS.sendAlternate, keys: { key: "Enter", mod: true, alt: true } },
|
|
20853
|
+
newLine: { ...KEYBOARD_SHORTCUTS.newLine, keys: { key: "Enter" } }
|
|
20854
|
+
}
|
|
20855
|
+
};
|
|
20706
20856
|
var MAC_KEY_LABELS = {
|
|
20707
20857
|
ArrowUp: "\u2191",
|
|
20708
20858
|
ArrowDown: "\u2193",
|
|
@@ -21555,7 +21705,7 @@ var scoutDeleteChannelPresetToolInputSchema = scoutSlackConfirmationSchema.exten
|
|
|
21555
21705
|
var RESET_TO_DEFAULT = "default";
|
|
21556
21706
|
var resettable = (schema, description) => z34.union([schema, z34.literal(RESET_TO_DEFAULT)]).optional().describe(`${description} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
|
|
21557
21707
|
var scoutSetSlackAgentDefaultsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21558
|
-
agent_provider: resettable(z34.enum(
|
|
21708
|
+
agent_provider: resettable(z34.enum(ENGINE_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
|
|
21559
21709
|
model: resettable(z34.string(), "Model id for that agent; the default is the agent's own."),
|
|
21560
21710
|
thinking_level: resettable(z34.enum(VALID_THINKING_LEVELS), "Thinking level."),
|
|
21561
21711
|
goal_mode: resettable(z34.boolean(), "Goal mode."),
|
|
@@ -22079,7 +22229,7 @@ var sendPullRequestReviewMessageRequestSchema = z40.object({
|
|
|
22079
22229
|
}).shape,
|
|
22080
22230
|
/** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
|
|
22081
22231
|
newChat: z40.boolean().optional(),
|
|
22082
|
-
provider: z40.enum(
|
|
22232
|
+
provider: z40.enum(ENGINE_AGENT_PROVIDERS).optional()
|
|
22083
22233
|
});
|
|
22084
22234
|
|
|
22085
22235
|
// ../shared/src/audit-log.ts
|
|
@@ -22605,7 +22755,7 @@ var WORKSPACE_SOURCE_ICONS = {
|
|
|
22605
22755
|
github: "github",
|
|
22606
22756
|
gitlab: "gitlab",
|
|
22607
22757
|
automation: "zap",
|
|
22608
|
-
api: "
|
|
22758
|
+
api: "codeXml",
|
|
22609
22759
|
[SCOUT_SOURCE]: "binoculars"
|
|
22610
22760
|
};
|
|
22611
22761
|
var FIRST_BOOT_GRACE_MS = 15 * 6e4;
|
|
@@ -22791,6 +22941,7 @@ export {
|
|
|
22791
22941
|
createSuccessResult,
|
|
22792
22942
|
createErrorResult,
|
|
22793
22943
|
AGENT,
|
|
22944
|
+
isEngineAgentProvider,
|
|
22794
22945
|
SUBAGENT_MCP_HARNESSES,
|
|
22795
22946
|
isValidAgentProvider,
|
|
22796
22947
|
isValidThinkingLevel,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOriginDefaultBranch,
|
|
7
7
|
monolithRequest,
|
|
8
8
|
runGitCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6WSVDW2W.js";
|
|
10
10
|
import {
|
|
11
11
|
extractCommandProtectionCommandText,
|
|
12
12
|
findCommandProtectionGitLookups,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
findScoutRepoWriteSignals,
|
|
16
16
|
parseCommandProtectionRequest,
|
|
17
17
|
withE2BRetry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GN2YE77J.js";
|
|
19
19
|
|
|
20
20
|
// src/services/command-protection-service.ts
|
|
21
21
|
import { readFile, stat } from "fs/promises";
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5M22SZHQ.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GN2YE77J.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1600";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-V4EFZGCN.js";
|
|
7
|
+
import "./chunk-6WSVDW2W.js";
|
|
8
|
+
import "./chunk-5M22SZHQ.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GN2YE77J.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
recoverCompletedTurn,
|
|
15
15
|
spawnMuseMsp,
|
|
16
16
|
startMuseSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-23OSWBDM.js";
|
|
18
18
|
import {
|
|
19
19
|
AppServerProcess,
|
|
20
20
|
buildCodexAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-ZDOSFRWB.js";
|
|
22
|
+
import "./chunk-5M22SZHQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT,
|
|
25
25
|
OPENCODE_GO_PROVIDER,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
headlessAgentUsagePath,
|
|
30
30
|
isRecord,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GN2YE77J.js";
|
|
33
33
|
import "./chunk-VEQXQN22.js";
|
|
34
34
|
|
|
35
35
|
// src/headless-agent.ts
|
|
@@ -288,6 +288,8 @@ async function main() {
|
|
|
288
288
|
break;
|
|
289
289
|
case AGENT.PI:
|
|
290
290
|
throw new Error("Send Pi credentials as an Opencode request, which reads the same stored secrets");
|
|
291
|
+
case AGENT.REPLICAS:
|
|
292
|
+
throw new Error("Replicas chats run on the harness worker, not the engine");
|
|
291
293
|
default: {
|
|
292
294
|
const unsupported = request.agent;
|
|
293
295
|
throw new Error(`Unsupported headless agent: ${String(unsupported)}`);
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-V4EFZGCN.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
spawnMuseMsp,
|
|
66
66
|
startMuseSession,
|
|
67
67
|
uuidV7
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-23OSWBDM.js";
|
|
69
69
|
import {
|
|
70
70
|
publishedPullRequestUrls
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-YZ465CA2.js";
|
|
72
72
|
import {
|
|
73
73
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
74
74
|
AsyncLock,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
transcriptSecrets,
|
|
148
148
|
upsertCredentialFileLines,
|
|
149
149
|
writeSecureCredentialFile
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-2KSEOMCI.js";
|
|
151
151
|
import {
|
|
152
152
|
ENGINE_ENV,
|
|
153
153
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -158,16 +158,16 @@ import {
|
|
|
158
158
|
resolveDiffBase,
|
|
159
159
|
setAgentCredentialSnapshot,
|
|
160
160
|
setLinearSessionId
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-6WSVDW2W.js";
|
|
162
162
|
import {
|
|
163
163
|
buildCodexAgentEnv,
|
|
164
164
|
getCodexModelProvider
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-ZDOSFRWB.js";
|
|
166
166
|
import {
|
|
167
167
|
SUBPROCESS_MAX_BUFFER,
|
|
168
168
|
execAsync,
|
|
169
169
|
execFileAsync
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-5M22SZHQ.js";
|
|
171
171
|
import {
|
|
172
172
|
isRecord as isRecord2
|
|
173
173
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -382,6 +382,7 @@ import {
|
|
|
382
382
|
isCodexAuthError,
|
|
383
383
|
isCompactCommand,
|
|
384
384
|
isDefaultChat,
|
|
385
|
+
isEngineAgentProvider,
|
|
385
386
|
isExcludedRepoFilePath,
|
|
386
387
|
isLatestChatHistoryPage,
|
|
387
388
|
isNonEmptyString,
|
|
@@ -393,7 +394,6 @@ import {
|
|
|
393
394
|
isTokenUsageUploadRecord,
|
|
394
395
|
isToolInputQuestion,
|
|
395
396
|
isTransientErrorText,
|
|
396
|
-
isValidAgentProvider,
|
|
397
397
|
isValidEngineLogSessionId,
|
|
398
398
|
isValidThinkingLevel,
|
|
399
399
|
lastPlainStepLabel,
|
|
@@ -463,7 +463,7 @@ import {
|
|
|
463
463
|
workspaceTokenRequestSchema,
|
|
464
464
|
workspaceTokenResponseSchema,
|
|
465
465
|
wrapInTag
|
|
466
|
-
} from "./chunk-
|
|
466
|
+
} from "./chunk-GN2YE77J.js";
|
|
467
467
|
import {
|
|
468
468
|
cloneMcpConfig,
|
|
469
469
|
ensureCompatibilityImports,
|
|
@@ -9955,6 +9955,8 @@ function detectAgentAuthMethod(provider) {
|
|
|
9955
9955
|
case AGENT.PI:
|
|
9956
9956
|
if (readOpenAICompatibleAuthEnv(provider, process.env)) return "openai-compatible";
|
|
9957
9957
|
return existsSync(provider === AGENT.OPENCODE ? OPENCODE_AUTH_PATH : PI_AUTH_PATH) ? "api_key" : "none";
|
|
9958
|
+
case AGENT.REPLICAS:
|
|
9959
|
+
return "none";
|
|
9958
9960
|
}
|
|
9959
9961
|
}
|
|
9960
9962
|
function isAgentAvailable(provider) {
|
|
@@ -11158,7 +11160,7 @@ import { z as z4 } from "zod";
|
|
|
11158
11160
|
|
|
11159
11161
|
// ../shared/src/persisted-query-hashes.ts
|
|
11160
11162
|
var PERSISTED_QUERY_HASHES = {
|
|
11161
|
-
workspaceChats: "
|
|
11163
|
+
workspaceChats: "79951346"
|
|
11162
11164
|
};
|
|
11163
11165
|
|
|
11164
11166
|
// ../shared/src/workspace-chat.ts
|
|
@@ -61539,7 +61541,7 @@ function isPersistedChat(value) {
|
|
|
61539
61541
|
return false;
|
|
61540
61542
|
}
|
|
61541
61543
|
const candidate = value;
|
|
61542
|
-
return typeof candidate.id === "string" && typeof candidate.provider === "string" &&
|
|
61544
|
+
return typeof candidate.id === "string" && typeof candidate.provider === "string" && isEngineAgentProvider(candidate.provider) && typeof candidate.title === "string" && (candidate.displayName === void 0 || typeof candidate.displayName === "string") && typeof candidate.createdAt === "string" && typeof candidate.updatedAt === "string" && (candidate.providerSessionId === null || typeof candidate.providerSessionId === "string") && (candidate.parentChatId === void 0 || candidate.parentChatId === null || typeof candidate.parentChatId === "string") && (candidate.deletedAt === void 0 || candidate.deletedAt === null || typeof candidate.deletedAt === "string");
|
|
61543
61545
|
}
|
|
61544
61546
|
function normalizePersistedChat(chat) {
|
|
61545
61547
|
return {
|
|
@@ -61990,6 +61992,7 @@ var ChatService = class {
|
|
|
61990
61992
|
return { ...forwarded, chatId: forwarded.chatId ?? continuation.id };
|
|
61991
61993
|
}
|
|
61992
61994
|
const { provider, ...sameHarnessRequest } = request;
|
|
61995
|
+
if (provider && !isEngineAgentProvider(provider)) throw new ChatProviderUnavailableError(provider);
|
|
61993
61996
|
if (provider && provider !== chat.persisted.provider) return this.switchHarness(chat, { ...sameHarnessRequest, provider });
|
|
61994
61997
|
request = sameHarnessRequest;
|
|
61995
61998
|
const nameFromMessage = !chat.persisted.displayName && !chat.persisted.fork && !chat.persisted.parentChatId && getChatKind(chat.persisted) === "standard" && hasGeneratedChatTitle(chat.persisted) && !hasChatStarted(this.toSummary(chat));
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YZ465CA2.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GN2YE77J.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED