replicas-engine 0.1.1599 → 0.1.1601
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-I6D3XFCU.js → asp-host-OTRP5WWS.js} +5 -5
- package/dist/src/{chunk-H46T66CK.js → chunk-4XXV6XF7.js} +1 -1
- package/dist/src/{chunk-67JKD6VG.js → chunk-6DGCGNRD.js} +1 -1
- package/dist/src/{chunk-MPK36Q6E.js → chunk-E5U45B5E.js} +3 -3
- package/dist/src/{chunk-DT6WSNCT.js → chunk-LAVIBP35.js} +2 -2
- package/dist/src/{chunk-JIQRYCNB.js → chunk-LM3GPSH5.js} +6 -6
- package/dist/src/{chunk-U6KFB3LG.js → chunk-O76HWQZW.js} +2 -2
- package/dist/src/{chunk-ILBD3KEP.js → chunk-PUN65MPP.js} +2 -2
- package/dist/src/{chunk-OUWKFKBD.js → chunk-Z744SRUU.js} +437 -228
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +6 -4
- package/dist/src/index.js +18 -12
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -1116,17 +1116,17 @@ var require_luxon = __commonJS({
|
|
|
1116
1116
|
constructor(dt, intl, opts) {
|
|
1117
1117
|
this.opts = opts;
|
|
1118
1118
|
this.originalZone = void 0;
|
|
1119
|
-
let
|
|
1119
|
+
let z44 = void 0;
|
|
1120
1120
|
if (this.opts.timeZone) {
|
|
1121
1121
|
this.dt = dt;
|
|
1122
1122
|
} else if (dt.zone.type === "fixed") {
|
|
1123
1123
|
const gmtOffset = -1 * (dt.offset / 60);
|
|
1124
1124
|
const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;
|
|
1125
1125
|
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
1126
|
-
|
|
1126
|
+
z44 = offsetZ;
|
|
1127
1127
|
this.dt = dt;
|
|
1128
1128
|
} else {
|
|
1129
|
-
|
|
1129
|
+
z44 = "UTC";
|
|
1130
1130
|
this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({
|
|
1131
1131
|
minutes: dt.offset
|
|
1132
1132
|
});
|
|
@@ -1136,9 +1136,9 @@ var require_luxon = __commonJS({
|
|
|
1136
1136
|
this.dt = dt;
|
|
1137
1137
|
} else if (dt.zone.type === "iana") {
|
|
1138
1138
|
this.dt = dt;
|
|
1139
|
-
|
|
1139
|
+
z44 = dt.zone.name;
|
|
1140
1140
|
} else {
|
|
1141
|
-
|
|
1141
|
+
z44 = "UTC";
|
|
1142
1142
|
this.dt = dt.setZone("UTC").plus({
|
|
1143
1143
|
minutes: dt.offset
|
|
1144
1144
|
});
|
|
@@ -1147,7 +1147,7 @@ var require_luxon = __commonJS({
|
|
|
1147
1147
|
const intlOpts = {
|
|
1148
1148
|
...this.opts
|
|
1149
1149
|
};
|
|
1150
|
-
intlOpts.timeZone = intlOpts.timeZone ||
|
|
1150
|
+
intlOpts.timeZone = intlOpts.timeZone || z44;
|
|
1151
1151
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
1152
1152
|
}
|
|
1153
1153
|
format() {
|
|
@@ -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-v16";
|
|
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",
|
|
@@ -20896,6 +21046,64 @@ function parseProxyRouteCheck(output) {
|
|
|
20896
21046
|
return { device: route.match(/\bdev (\S+)/)?.[1] ?? null, firewallRules: lines.filter((line) => line.startsWith("-")) };
|
|
20897
21047
|
}
|
|
20898
21048
|
|
|
21049
|
+
// ../shared/src/harness/types.ts
|
|
21050
|
+
import { z as z32 } from "zod";
|
|
21051
|
+
var HARNESS_THREAD_STATUSES = ["idle", "working", "error"];
|
|
21052
|
+
var textSchema = z32.looseObject({ type: z32.literal("text"), text: z32.string() });
|
|
21053
|
+
var imageSchema = z32.looseObject({ type: z32.literal("image"), data: z32.string(), mimeType: z32.string() });
|
|
21054
|
+
var userMessageSchema = z32.looseObject({
|
|
21055
|
+
role: z32.literal("user"),
|
|
21056
|
+
content: z32.union([z32.string(), z32.array(z32.discriminatedUnion("type", [textSchema, imageSchema]))]),
|
|
21057
|
+
timestamp: z32.number()
|
|
21058
|
+
});
|
|
21059
|
+
var assistantMessageSchema = z32.looseObject({
|
|
21060
|
+
role: z32.literal("assistant"),
|
|
21061
|
+
content: z32.array(z32.discriminatedUnion("type", [
|
|
21062
|
+
textSchema,
|
|
21063
|
+
z32.looseObject({ type: z32.literal("thinking"), thinking: z32.string() }),
|
|
21064
|
+
z32.looseObject({ type: z32.literal("toolCall"), id: z32.string(), name: z32.string(), arguments: z32.record(z32.string(), z32.json()) })
|
|
21065
|
+
])),
|
|
21066
|
+
api: z32.string(),
|
|
21067
|
+
provider: z32.string(),
|
|
21068
|
+
model: z32.string(),
|
|
21069
|
+
usage: z32.looseObject({
|
|
21070
|
+
input: z32.number(),
|
|
21071
|
+
output: z32.number(),
|
|
21072
|
+
cacheRead: z32.number(),
|
|
21073
|
+
cacheWrite: z32.number(),
|
|
21074
|
+
totalTokens: z32.number(),
|
|
21075
|
+
cost: z32.looseObject({ input: z32.number(), output: z32.number(), cacheRead: z32.number(), cacheWrite: z32.number(), total: z32.number() })
|
|
21076
|
+
}),
|
|
21077
|
+
stopReason: z32.enum(["pending", "stop", "length", "toolUse", "error", "aborted", "deferred"]),
|
|
21078
|
+
timestamp: z32.number()
|
|
21079
|
+
});
|
|
21080
|
+
var toolResultMessageSchema = z32.looseObject({
|
|
21081
|
+
role: z32.literal("toolResult"),
|
|
21082
|
+
toolCallId: z32.string(),
|
|
21083
|
+
toolName: z32.string(),
|
|
21084
|
+
content: z32.array(z32.discriminatedUnion("type", [textSchema, imageSchema])),
|
|
21085
|
+
isError: z32.boolean(),
|
|
21086
|
+
timestamp: z32.number()
|
|
21087
|
+
});
|
|
21088
|
+
var harnessInboxPayloadSchemas = {
|
|
21089
|
+
message: z32.looseObject({
|
|
21090
|
+
message: userMessageSchema,
|
|
21091
|
+
userId: z32.string().nullable(),
|
|
21092
|
+
messageId: z32.string().optional(),
|
|
21093
|
+
model: z32.string().optional(),
|
|
21094
|
+
thinkingLevel: z32.enum(VALID_THINKING_LEVELS).optional()
|
|
21095
|
+
}),
|
|
21096
|
+
interrupt: z32.looseObject({ userId: z32.string().nullable() })
|
|
21097
|
+
};
|
|
21098
|
+
var harnessEventBodySchema = z32.discriminatedUnion("type", [
|
|
21099
|
+
z32.object({ type: z32.literal("user_message"), payload: harnessInboxPayloadSchemas.message }),
|
|
21100
|
+
/** Saved before its tool calls run. */
|
|
21101
|
+
z32.object({ type: z32.literal("assistant_message"), payload: z32.looseObject({ message: assistantMessageSchema }) }),
|
|
21102
|
+
z32.object({ type: z32.literal("tool_result"), payload: z32.looseObject({ message: toolResultMessageSchema }) }),
|
|
21103
|
+
z32.object({ type: z32.literal("status"), payload: z32.looseObject({ status: z32.enum(HARNESS_THREAD_STATUSES) }) }),
|
|
21104
|
+
z32.object({ type: z32.literal("error"), payload: z32.looseObject({ message: z32.string() }) })
|
|
21105
|
+
]);
|
|
21106
|
+
|
|
20899
21107
|
// ../shared/src/auth-errors.ts
|
|
20900
21108
|
var AUTHENTICATION_ERROR_PATTERNS = [
|
|
20901
21109
|
/unauthorized/,
|
|
@@ -20958,10 +21166,10 @@ var RECONNECT_GIVE_UP_MS = 2 * 6e4;
|
|
|
20958
21166
|
var encoder3 = new TextEncoder();
|
|
20959
21167
|
|
|
20960
21168
|
// ../shared/src/routes/billing.ts
|
|
20961
|
-
import { z as
|
|
21169
|
+
import { z as z33 } from "zod";
|
|
20962
21170
|
var SOURCE_LIMIT_SOURCES = ["limrun", "modal"];
|
|
20963
|
-
var usageLimitCentsSchema =
|
|
20964
|
-
var sourceLimitsCentsSchema =
|
|
21171
|
+
var usageLimitCentsSchema = z33.number().int().min(100).max(1e8);
|
|
21172
|
+
var sourceLimitsCentsSchema = z33.partialRecord(z33.enum(SOURCE_LIMIT_SOURCES), usageLimitCentsSchema);
|
|
20965
21173
|
|
|
20966
21174
|
// ../shared/src/routes/codex.ts
|
|
20967
21175
|
var CODEX_AUTH_ENV_KEYS = [
|
|
@@ -21115,7 +21323,7 @@ var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
|
|
|
21115
21323
|
};
|
|
21116
21324
|
|
|
21117
21325
|
// ../shared/src/routes/command-protection.ts
|
|
21118
|
-
import { z as
|
|
21326
|
+
import { z as z34 } from "zod";
|
|
21119
21327
|
|
|
21120
21328
|
// ../shared/src/git-invocations.ts
|
|
21121
21329
|
var COMMIT_VALUE_OPTIONS = /* @__PURE__ */ new Set(["message", "file", "trailer", "reuse-message", "reedit-message", "fixup", "squash", "template", "author", "date", "cleanup", "pathspec-from-file"]);
|
|
@@ -21206,27 +21414,27 @@ function findCheckoutTarget(args) {
|
|
|
21206
21414
|
}
|
|
21207
21415
|
|
|
21208
21416
|
// ../shared/src/routes/command-protection.ts
|
|
21209
|
-
var commandProtectionRepoStateSchema =
|
|
21210
|
-
branch:
|
|
21211
|
-
defaultBranch:
|
|
21212
|
-
pushBranch:
|
|
21213
|
-
pushConfig:
|
|
21214
|
-
headMessage:
|
|
21215
|
-
mergeInProgress:
|
|
21417
|
+
var commandProtectionRepoStateSchema = z34.object({
|
|
21418
|
+
branch: z34.string().nullable(),
|
|
21419
|
+
defaultBranch: z34.string().nullable(),
|
|
21420
|
+
pushBranch: z34.string().nullable(),
|
|
21421
|
+
pushConfig: z34.string().nullable(),
|
|
21422
|
+
headMessage: z34.string().nullable(),
|
|
21423
|
+
mergeInProgress: z34.boolean().optional()
|
|
21216
21424
|
});
|
|
21217
|
-
var commandProtectionEvaluateRequestSchema =
|
|
21218
|
-
provider:
|
|
21219
|
-
source:
|
|
21220
|
-
toolName:
|
|
21221
|
-
toolInput:
|
|
21222
|
-
command:
|
|
21223
|
-
cwd:
|
|
21224
|
-
toolUseId:
|
|
21425
|
+
var commandProtectionEvaluateRequestSchema = z34.object({
|
|
21426
|
+
provider: z34.enum(["claude", "codex", "cursor", "opencode", "pi"]),
|
|
21427
|
+
source: z34.enum(["claude_pre_tool_use", "codex_approval_request", "cursor_pre_tool_use", "opencode_pre_tool_use", "pi_tool_call"]),
|
|
21428
|
+
toolName: z34.string(),
|
|
21429
|
+
toolInput: z34.unknown(),
|
|
21430
|
+
command: z34.string().nullish(),
|
|
21431
|
+
cwd: z34.string().nullish(),
|
|
21432
|
+
toolUseId: z34.string().nullish(),
|
|
21225
21433
|
// Read by the engine before the command runs, keyed by absolute path, so the
|
|
21226
21434
|
// policy can see branches and commit messages the command text only references.
|
|
21227
|
-
gitContext:
|
|
21228
|
-
repos:
|
|
21229
|
-
messageFiles:
|
|
21435
|
+
gitContext: z34.object({
|
|
21436
|
+
repos: z34.record(z34.string(), commandProtectionRepoStateSchema),
|
|
21437
|
+
messageFiles: z34.record(z34.string(), z34.string())
|
|
21230
21438
|
}).optional()
|
|
21231
21439
|
});
|
|
21232
21440
|
var COMMAND_PROTECTION_COMMAND_KEYS = ["command", "cmd", "script", "query", "endpoint", "path", "url", "mutation"];
|
|
@@ -21447,125 +21655,125 @@ function shouldRefreshPullRequests(toolName, toolInput) {
|
|
|
21447
21655
|
}
|
|
21448
21656
|
|
|
21449
21657
|
// ../shared/src/routes/scout.ts
|
|
21450
|
-
import { z as
|
|
21658
|
+
import { z as z35 } from "zod";
|
|
21451
21659
|
var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
|
|
21452
|
-
var scoutLinearSessionIntentRequestSchema =
|
|
21453
|
-
comment_id:
|
|
21454
|
-
action:
|
|
21660
|
+
var scoutLinearSessionIntentRequestSchema = z35.object({
|
|
21661
|
+
comment_id: z35.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
|
|
21662
|
+
action: z35.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it hands off the task.")
|
|
21455
21663
|
});
|
|
21456
|
-
var scoutLinearStartRequestSchema =
|
|
21457
|
-
issue_id:
|
|
21458
|
-
agent_session_id:
|
|
21459
|
-
prompt:
|
|
21664
|
+
var scoutLinearStartRequestSchema = z35.object({
|
|
21665
|
+
issue_id: z35.string().describe("Linear issue id from the envelope's `issue_id`."),
|
|
21666
|
+
agent_session_id: z35.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
|
|
21667
|
+
prompt: z35.string().trim().min(1).describe("The latest request, in its author's words. The workspace already receives the issue and its comments.")
|
|
21460
21668
|
});
|
|
21461
|
-
var scoutRouteLinearTicketRequestSchema =
|
|
21462
|
-
agent_session_id:
|
|
21463
|
-
environment_id:
|
|
21464
|
-
mothership_id:
|
|
21669
|
+
var scoutRouteLinearTicketRequestSchema = z35.object({
|
|
21670
|
+
agent_session_id: z35.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
|
|
21671
|
+
environment_id: z35.string().trim().min(1).optional().describe("Start the ticket in this environment."),
|
|
21672
|
+
mothership_id: z35.string().trim().min(1).optional().describe("Hand the ticket to this Mothership instead.")
|
|
21465
21673
|
}).refine((args) => !(args.environment_id && args.mothership_id), "Pass environment_id or mothership_id, not both.");
|
|
21466
|
-
var slackChannelIdSchema =
|
|
21467
|
-
var slackThreadTsSchema =
|
|
21468
|
-
var scoutSlackMessageReferenceSchema =
|
|
21674
|
+
var slackChannelIdSchema = z35.string().describe("Slack channel id from the envelope's `channel_id`.");
|
|
21675
|
+
var slackThreadTsSchema = z35.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
|
|
21676
|
+
var scoutSlackMessageReferenceSchema = z35.object({
|
|
21469
21677
|
channel_id: slackChannelIdSchema,
|
|
21470
21678
|
thread_ts: slackThreadTsSchema,
|
|
21471
|
-
message_ts:
|
|
21472
|
-
user_id:
|
|
21679
|
+
message_ts: z35.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
21680
|
+
user_id: z35.string().describe("Slack user id of that message's author (the envelope's `user_id`).")
|
|
21473
21681
|
});
|
|
21474
|
-
var scoutSlackSpawnRequestSchema =
|
|
21682
|
+
var scoutSlackSpawnRequestSchema = z35.object({
|
|
21475
21683
|
channel_id: slackChannelIdSchema,
|
|
21476
21684
|
thread_ts: slackThreadTsSchema,
|
|
21477
|
-
message_ts:
|
|
21478
|
-
user_id:
|
|
21479
|
-
prompt:
|
|
21480
|
-
acknowledgement_ts:
|
|
21481
|
-
environment_id:
|
|
21685
|
+
message_ts: z35.string().describe("Timestamp of the Slack message that asked for the work (the envelope's `message_ts`). The server verifies this message and its author."),
|
|
21686
|
+
user_id: z35.string().describe("Slack user id of that message's author (the envelope's `user_id`). The workspace is attributed to them."),
|
|
21687
|
+
prompt: z35.string().describe("The person's request in their own words, quoting earlier messages only when it points to them. The workspace already receives the Slack thread, so add no research, plan, or guesses."),
|
|
21688
|
+
acknowledgement_ts: z35.string().optional().describe("`ts` of the one-line reply you posted in this thread before spawning. The server appends the workspace link to it and tells the workspace not to acknowledge again."),
|
|
21689
|
+
environment_id: z35.string().optional().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`. Pass it only when clearly confident it fits; omit it to let routing choose. If routing cannot choose, the call fails and nothing is posted, so pick one or ask the person.`)
|
|
21482
21690
|
});
|
|
21483
21691
|
var scoutSlackSpawnInNewThreadRequestSchema = scoutSlackSpawnRequestSchema.extend({
|
|
21484
|
-
title:
|
|
21485
|
-
prompt:
|
|
21486
|
-
acknowledgement_ts:
|
|
21692
|
+
title: z35.string().trim().min(1).max(500).describe("One or two sentences stating the task, posted as the new top-level message."),
|
|
21693
|
+
prompt: z35.string().describe("The person's request in their own words. The full source thread is attached as background, so add no summary, research, plan, or guesses."),
|
|
21694
|
+
acknowledgement_ts: z35.string().optional().describe("`ts` of the one-line reply you posted in this thread before spawning. The server appends the new thread's link to it.")
|
|
21487
21695
|
});
|
|
21488
|
-
var scoutSlackRelayRequestSchema =
|
|
21696
|
+
var scoutSlackRelayRequestSchema = z35.object({
|
|
21489
21697
|
channel_id: slackChannelIdSchema,
|
|
21490
21698
|
thread_ts: slackThreadTsSchema,
|
|
21491
|
-
message:
|
|
21492
|
-
user_id:
|
|
21493
|
-
queue:
|
|
21494
|
-
workspace_id:
|
|
21495
|
-
message_ts:
|
|
21699
|
+
message: z35.string().describe("The follow-up to deliver: every fresh message that belongs to this update, in its author's words, with no research, plan, or guesses added. When forwarding to a `workspace_id` other than the thread's own workspace, also quote exactly the thread messages the request points to (\"forward this\"), since that workspace gets only this message."),
|
|
21700
|
+
user_id: z35.string().optional().describe("Slack user id of the follow-up's author (the envelope's `user_id`), so it is attributed to them. Defaults to the thread's original requester. Required with `workspace_id`."),
|
|
21701
|
+
queue: z35.boolean().optional().describe("Set true only when the person explicitly asked for this to happen after the current task finishes. Delivers behind the active turn instead of interrupting it."),
|
|
21702
|
+
workspace_id: z35.string().optional().describe(`Existing workspace id, from \`${REPLICAS_MCP_TOOLS.listWorkspaces}\` or a workspace link in the thread, to bind a thread without a workspace to before relaying. The author must be able to see it. Binding a Mothership gives it the person's own Slack message and the thread instead of \`message\`. In a thread already bound to a different workspace, or in a Mothership's channel, nothing is bound: the workspace or Mothership gets only \`message\`, once, with a link back to Slack, and the thread stays where it is. Omit to relay into the thread's own workspace.`),
|
|
21703
|
+
message_ts: z35.string().optional().describe("Timestamp of the Slack message that led to this relay (the envelope's `message_ts`). Required with `workspace_id`; the server verifies this message and its author.")
|
|
21496
21704
|
});
|
|
21497
|
-
var scoutSlackSetThreadMutedRequestSchema =
|
|
21705
|
+
var scoutSlackSetThreadMutedRequestSchema = z35.object({
|
|
21498
21706
|
channel_id: slackChannelIdSchema,
|
|
21499
21707
|
thread_ts: slackThreadTsSchema,
|
|
21500
|
-
muted:
|
|
21708
|
+
muted: z35.boolean().describe("true to mute Replicas in this thread, false to unmute it.")
|
|
21501
21709
|
});
|
|
21502
21710
|
var scoutSlackStopWorkspaceRequestSchema = scoutSlackMessageReferenceSchema.extend({
|
|
21503
|
-
archive:
|
|
21711
|
+
archive: z35.boolean().describe("true only when the person also asked to close or archive the workspace.")
|
|
21504
21712
|
});
|
|
21505
|
-
var scoutListWorkspacesRequestSchema =
|
|
21713
|
+
var scoutListWorkspacesRequestSchema = z35.object({
|
|
21506
21714
|
channel_id: slackChannelIdSchema,
|
|
21507
21715
|
thread_ts: slackThreadTsSchema,
|
|
21508
|
-
message_ts:
|
|
21509
|
-
user_id:
|
|
21510
|
-
query:
|
|
21716
|
+
message_ts: z35.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
21717
|
+
user_id: z35.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
|
|
21718
|
+
query: z35.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Mothership names and pull request URLs.")
|
|
21511
21719
|
});
|
|
21512
|
-
var scoutSlackConfirmationSchema =
|
|
21513
|
-
confirmation_channel_id:
|
|
21514
|
-
confirmation_thread_ts:
|
|
21515
|
-
confirmation_message_ts:
|
|
21516
|
-
confirmation_user_id:
|
|
21720
|
+
var scoutSlackConfirmationSchema = z35.object({
|
|
21721
|
+
confirmation_channel_id: z35.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
|
|
21722
|
+
confirmation_thread_ts: z35.string().describe("`thread_ts` from that message's envelope."),
|
|
21723
|
+
confirmation_message_ts: z35.string().describe("`message_ts` from that message's envelope."),
|
|
21724
|
+
confirmation_user_id: z35.string().describe("`user_id` from that message's envelope.")
|
|
21517
21725
|
});
|
|
21518
21726
|
var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
|
|
21519
21727
|
var scoutSaveChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21520
|
-
preset_id:
|
|
21521
|
-
name:
|
|
21522
|
-
description:
|
|
21523
|
-
icon:
|
|
21524
|
-
instructions:
|
|
21728
|
+
preset_id: z35.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
|
|
21729
|
+
name: z35.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
|
|
21730
|
+
description: z35.string().optional().describe("One-line summary of what the preset is for."),
|
|
21731
|
+
icon: z35.enum(SCOUT_PRESET_ICONS).optional(),
|
|
21732
|
+
instructions: z35.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
|
|
21525
21733
|
});
|
|
21526
21734
|
var scoutUpdateChannelSettingsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21527
|
-
source:
|
|
21528
|
-
external_id:
|
|
21529
|
-
monitored:
|
|
21530
|
-
preset_id:
|
|
21531
|
-
instructions:
|
|
21532
|
-
proactivity:
|
|
21533
|
-
silent:
|
|
21534
|
-
muted:
|
|
21735
|
+
source: z35.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
|
|
21736
|
+
external_id: z35.string().describe("Slack channel id or Linear team id."),
|
|
21737
|
+
monitored: z35.boolean().optional().describe("Linear: `true` starts monitoring the team (organization admins only), `false` stops. Slack: kept for older callers; prefer `proactivity`. `false` means `tagged`, and `true` lifts a `tagged` channel back to the organization's level. Omit to keep it."),
|
|
21738
|
+
preset_id: z35.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
|
|
21739
|
+
instructions: z35.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them."),
|
|
21740
|
+
proactivity: z35.enum([...SCOUT_PROACTIVITY_LEVELS, "organization"]).optional().describe("Slack only: this channel's or group DM's own level, overriding the organization's here alone. `organization` makes it follow the organization's level again. Omit to keep it. 1:1 DMs are always addressed to Replicas, so they take no level."),
|
|
21741
|
+
silent: z35.enum(["on", "off", "default"]).optional().describe(`Slack only, organization admins only: \`on\` puts this channel in silent mode, where Replicas reads it and follows its instructions but never posts, reacts, or starts work there. \`off\` turns silent mode off here, \`default\` follows the Slack Connect default from \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\`. Omit to keep it.`),
|
|
21742
|
+
muted: z35.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
|
|
21535
21743
|
});
|
|
21536
21744
|
var mothershipSlackChannelLevelToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21537
21745
|
proactivity: scoutUpdateChannelSettingsToolInputSchema.shape.proactivity.unwrap().describe("This channel's own level. `organization` makes it follow the organization's level again, which a Mothership's channel raises to at least `balanced`.")
|
|
21538
21746
|
});
|
|
21539
21747
|
var scoutSetSlackConnectMutedToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21540
|
-
muted:
|
|
21748
|
+
muted: z35.boolean().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again.")
|
|
21541
21749
|
});
|
|
21542
21750
|
var scoutSetSlackConnectDefaultsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21543
|
-
silent:
|
|
21544
|
-
muted:
|
|
21545
|
-
preset_id:
|
|
21546
|
-
instructions:
|
|
21547
|
-
proactivity:
|
|
21751
|
+
silent: z35.boolean().optional().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again. Omit to keep it."),
|
|
21752
|
+
muted: z35.boolean().optional().describe("Kept for older callers; prefer `silent`."),
|
|
21753
|
+
preset_id: z35.string().optional().describe("Preset for every Slack Connect channel without its own preset or instructions; an empty string removes it. Omit to keep it."),
|
|
21754
|
+
instructions: z35.string().optional().describe("Complete default instructions, applied after that preset; replaces the existing text. An empty string clears them. Omit to keep them."),
|
|
21755
|
+
proactivity: z35.enum([...SCOUT_PROACTIVITY_LEVELS, "default"]).optional().describe("Level for every Slack Connect channel without its own level. `default` returns them to `tagged`. Omit to keep it.")
|
|
21548
21756
|
});
|
|
21549
21757
|
var scoutSetOrganizationProactivityToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21550
|
-
proactivity:
|
|
21758
|
+
proactivity: z35.enum(SCOUT_PROACTIVITY_LEVELS).describe(`The level every Slack channel and group DM follows unless it has its own. Slack Connect channels without their own level follow the shared-channel default from \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\` instead.`)
|
|
21551
21759
|
});
|
|
21552
21760
|
var scoutDeleteChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21553
|
-
preset_id:
|
|
21761
|
+
preset_id: z35.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
|
|
21554
21762
|
});
|
|
21555
21763
|
var RESET_TO_DEFAULT = "default";
|
|
21556
|
-
var resettable = (schema, description) =>
|
|
21764
|
+
var resettable = (schema, description) => z35.union([schema, z35.literal(RESET_TO_DEFAULT)]).optional().describe(`${description} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
|
|
21557
21765
|
var scoutSetSlackAgentDefaultsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
21558
|
-
agent_provider: resettable(
|
|
21559
|
-
model: resettable(
|
|
21560
|
-
thinking_level: resettable(
|
|
21561
|
-
goal_mode: resettable(
|
|
21562
|
-
fast_mode: resettable(
|
|
21766
|
+
agent_provider: resettable(z35.enum(ENGINE_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
|
|
21767
|
+
model: resettable(z35.string(), "Model id for that agent; the default is the agent's own."),
|
|
21768
|
+
thinking_level: resettable(z35.enum(VALID_THINKING_LEVELS), "Thinking level."),
|
|
21769
|
+
goal_mode: resettable(z35.boolean(), "Goal mode."),
|
|
21770
|
+
fast_mode: resettable(z35.boolean(), "Fast mode.")
|
|
21563
21771
|
});
|
|
21564
|
-
var scoutClaimSettingsOfferToolInputSchema =
|
|
21772
|
+
var scoutClaimSettingsOfferToolInputSchema = z35.object({
|
|
21565
21773
|
channel_id: slackChannelIdSchema,
|
|
21566
|
-
kind:
|
|
21567
|
-
user_id:
|
|
21568
|
-
declined:
|
|
21774
|
+
kind: z35.enum(SCOUT_SETTINGS_OFFERS).describe("`proactivity`: offering a lower level after frustration. `raise_proactivity`: offering a higher level after someone had to @mention you. `instructions`: offering channel instructions or a preset. `organization_proactivity` and `raise_organization_proactivity`: offering to lower or raise the workspace default; only decline them, the server claims them for you."),
|
|
21775
|
+
user_id: z35.string().optional().describe("The envelope's `user_id`. Required for `proactivity` and `raise_proactivity`, so the server can say whether they are an organization admin."),
|
|
21776
|
+
declined: z35.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
|
|
21569
21777
|
});
|
|
21570
21778
|
|
|
21571
21779
|
// ../shared/src/routes/plugin-catalog.ts
|
|
@@ -21923,27 +22131,27 @@ var PLUGIN_CATALOG = [
|
|
|
21923
22131
|
].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
|
|
21924
22132
|
|
|
21925
22133
|
// ../shared/src/routes/sentry.ts
|
|
21926
|
-
import { z as
|
|
21927
|
-
var sentrySelfHostedConnectRequestSchema =
|
|
21928
|
-
baseUrl:
|
|
21929
|
-
token:
|
|
21930
|
-
webhookSecret:
|
|
22134
|
+
import { z as z36 } from "zod";
|
|
22135
|
+
var sentrySelfHostedConnectRequestSchema = z36.object({
|
|
22136
|
+
baseUrl: z36.string().min(1),
|
|
22137
|
+
token: z36.string().trim().min(1),
|
|
22138
|
+
webhookSecret: z36.string().trim().optional()
|
|
21931
22139
|
});
|
|
21932
22140
|
|
|
21933
22141
|
// ../shared/src/routes/user.ts
|
|
21934
22142
|
var PROFILE_AVATAR_MAX_SIZE_BYTES = 5 * 1024 * 1024;
|
|
21935
22143
|
|
|
21936
22144
|
// ../shared/src/routes/web-auth.ts
|
|
21937
|
-
import { z as
|
|
21938
|
-
var webAuthRedeemResponseSchema =
|
|
21939
|
-
path:
|
|
21940
|
-
organizationId:
|
|
21941
|
-
session:
|
|
22145
|
+
import { z as z37 } from "zod";
|
|
22146
|
+
var webAuthRedeemResponseSchema = z37.object({
|
|
22147
|
+
path: z37.string(),
|
|
22148
|
+
organizationId: z37.string().nullable(),
|
|
22149
|
+
session: z37.object({ access_token: z37.string(), refresh_token: z37.string(), user: z37.object({ id: z37.string(), email: z37.string() }) }).nullable()
|
|
21942
22150
|
});
|
|
21943
22151
|
|
|
21944
22152
|
// ../shared/src/routes/themes.ts
|
|
21945
|
-
import { z as
|
|
21946
|
-
var updateThemeRequestSchema =
|
|
22153
|
+
import { z as z38 } from "zod";
|
|
22154
|
+
var updateThemeRequestSchema = z38.object({ theme: z38.string(), palette: z38.string(), accent: z38.string(), code: z38.string() }).partial();
|
|
21947
22155
|
|
|
21948
22156
|
// ../shared/src/routes/client-state.ts
|
|
21949
22157
|
var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
|
|
@@ -21967,105 +22175,105 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
|
|
|
21967
22175
|
var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
|
|
21968
22176
|
|
|
21969
22177
|
// ../shared/src/routes/workspace-events.ts
|
|
21970
|
-
import { z as
|
|
22178
|
+
import { z as z40 } from "zod";
|
|
21971
22179
|
|
|
21972
22180
|
// ../shared/src/routes/presence.ts
|
|
21973
|
-
import { z as
|
|
21974
|
-
var presenceStatusSchema =
|
|
21975
|
-
var presenceLocationSchema =
|
|
21976
|
-
workspaceId:
|
|
22181
|
+
import { z as z39 } from "zod";
|
|
22182
|
+
var presenceStatusSchema = z39.enum(["online", "typing"]);
|
|
22183
|
+
var presenceLocationSchema = z39.object({
|
|
22184
|
+
workspaceId: z39.string().optional()
|
|
21977
22185
|
});
|
|
21978
|
-
var presenceEntrySchema =
|
|
21979
|
-
userId:
|
|
22186
|
+
var presenceEntrySchema = z39.object({
|
|
22187
|
+
userId: z39.string(),
|
|
21980
22188
|
status: presenceStatusSchema,
|
|
21981
22189
|
location: presenceLocationSchema,
|
|
21982
|
-
ts:
|
|
22190
|
+
ts: z39.string()
|
|
21983
22191
|
});
|
|
21984
|
-
var updatePresenceRequestSchema =
|
|
22192
|
+
var updatePresenceRequestSchema = z39.object({
|
|
21985
22193
|
status: presenceStatusSchema,
|
|
21986
22194
|
location: presenceLocationSchema.optional()
|
|
21987
22195
|
});
|
|
21988
22196
|
|
|
21989
22197
|
// ../shared/src/routes/workspace-events.ts
|
|
21990
|
-
var workspaceTurnCompletionSchema =
|
|
21991
|
-
workspaceName:
|
|
21992
|
-
completedAt:
|
|
21993
|
-
processing:
|
|
21994
|
-
pullRequestFeedback:
|
|
21995
|
-
attention:
|
|
22198
|
+
var workspaceTurnCompletionSchema = z40.object({
|
|
22199
|
+
workspaceName: z40.string(),
|
|
22200
|
+
completedAt: z40.string(),
|
|
22201
|
+
processing: z40.boolean().optional(),
|
|
22202
|
+
pullRequestFeedback: z40.boolean().optional(),
|
|
22203
|
+
attention: z40.object({ reason: z40.enum(CHAT_ATTENTION_REASONS), userId: z40.string() }).optional()
|
|
21996
22204
|
});
|
|
21997
|
-
var workspaceEventSchemaByType =
|
|
21998
|
-
|
|
21999
|
-
type:
|
|
22000
|
-
workspaceId:
|
|
22001
|
-
accessChangedFor:
|
|
22002
|
-
accessChangedForOrg:
|
|
22003
|
-
workspace:
|
|
22004
|
-
name:
|
|
22205
|
+
var workspaceEventSchemaByType = z40.discriminatedUnion("type", [
|
|
22206
|
+
z40.object({
|
|
22207
|
+
type: z40.literal("workspace.changed"),
|
|
22208
|
+
workspaceId: z40.string(),
|
|
22209
|
+
accessChangedFor: z40.string().optional(),
|
|
22210
|
+
accessChangedForOrg: z40.literal(true).optional(),
|
|
22211
|
+
workspace: z40.object({ status: z40.enum(WORKSPACE_STATUSES), last_activity_at: z40.string().nullable() }).optional(),
|
|
22212
|
+
name: z40.string().optional(),
|
|
22005
22213
|
completion: workspaceTurnCompletionSchema.optional(),
|
|
22006
|
-
ts:
|
|
22214
|
+
ts: z40.string()
|
|
22007
22215
|
}),
|
|
22008
|
-
|
|
22009
|
-
type:
|
|
22010
|
-
workspaceId:
|
|
22011
|
-
chatId:
|
|
22012
|
-
ts:
|
|
22216
|
+
z40.object({
|
|
22217
|
+
type: z40.literal("workspace.chat.changed"),
|
|
22218
|
+
workspaceId: z40.string(),
|
|
22219
|
+
chatId: z40.string(),
|
|
22220
|
+
ts: z40.string()
|
|
22013
22221
|
}),
|
|
22014
|
-
|
|
22015
|
-
type:
|
|
22016
|
-
workspaceId:
|
|
22017
|
-
chatId:
|
|
22018
|
-
afterCursor:
|
|
22019
|
-
processing:
|
|
22020
|
-
ts:
|
|
22222
|
+
z40.object({
|
|
22223
|
+
type: z40.literal("workspace.chat.advanced"),
|
|
22224
|
+
workspaceId: z40.string(),
|
|
22225
|
+
chatId: z40.string(),
|
|
22226
|
+
afterCursor: z40.string().optional(),
|
|
22227
|
+
processing: z40.boolean(),
|
|
22228
|
+
ts: z40.string()
|
|
22021
22229
|
}),
|
|
22022
|
-
|
|
22023
|
-
type:
|
|
22024
|
-
workspaceId:
|
|
22025
|
-
ts:
|
|
22230
|
+
z40.object({
|
|
22231
|
+
type: z40.literal("mobile-testing.changed"),
|
|
22232
|
+
workspaceId: z40.string(),
|
|
22233
|
+
ts: z40.string()
|
|
22026
22234
|
}),
|
|
22027
|
-
|
|
22028
|
-
type:
|
|
22029
|
-
workspaceId:
|
|
22030
|
-
ts:
|
|
22235
|
+
z40.object({
|
|
22236
|
+
type: z40.literal("variable-request.changed"),
|
|
22237
|
+
workspaceId: z40.string(),
|
|
22238
|
+
ts: z40.string()
|
|
22031
22239
|
}),
|
|
22032
|
-
|
|
22033
|
-
type:
|
|
22034
|
-
workspaceId:
|
|
22035
|
-
ts:
|
|
22240
|
+
z40.object({
|
|
22241
|
+
type: z40.literal("local-control-request.changed"),
|
|
22242
|
+
workspaceId: z40.string(),
|
|
22243
|
+
ts: z40.string()
|
|
22036
22244
|
}),
|
|
22037
|
-
|
|
22038
|
-
type:
|
|
22039
|
-
prUrl:
|
|
22040
|
-
ts:
|
|
22245
|
+
z40.object({
|
|
22246
|
+
type: z40.literal("pull-request.changed"),
|
|
22247
|
+
prUrl: z40.string(),
|
|
22248
|
+
ts: z40.string()
|
|
22041
22249
|
}),
|
|
22042
|
-
|
|
22043
|
-
type:
|
|
22044
|
-
workspaceId:
|
|
22045
|
-
subagent:
|
|
22046
|
-
ts:
|
|
22250
|
+
z40.object({
|
|
22251
|
+
type: z40.literal("mothership.subagent.changed"),
|
|
22252
|
+
workspaceId: z40.string(),
|
|
22253
|
+
subagent: z40.object({ id: z40.string(), name: z40.string(), prUrl: z40.string().nullable() }),
|
|
22254
|
+
ts: z40.string()
|
|
22047
22255
|
}),
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
type:
|
|
22052
|
-
workspaceId:
|
|
22053
|
-
workspaceName:
|
|
22054
|
-
sharedWithUserId:
|
|
22055
|
-
sharedByName:
|
|
22056
|
-
ts:
|
|
22256
|
+
z40.object({ type: z40.literal("mothership.board.changed"), workspaceId: z40.string(), ts: z40.string() }),
|
|
22257
|
+
z40.object({ type: z40.literal("needs-you.changed"), workspaceId: z40.string().nullable(), userId: z40.string().optional(), ts: z40.string() }),
|
|
22258
|
+
z40.object({
|
|
22259
|
+
type: z40.literal("workspace.shared"),
|
|
22260
|
+
workspaceId: z40.string(),
|
|
22261
|
+
workspaceName: z40.string(),
|
|
22262
|
+
sharedWithUserId: z40.string(),
|
|
22263
|
+
sharedByName: z40.string(),
|
|
22264
|
+
ts: z40.string()
|
|
22057
22265
|
}),
|
|
22058
|
-
|
|
22266
|
+
z40.object({ type: z40.literal("client-state.changed"), userId: z40.string(), keys: z40.array(z40.string()), ts: z40.string() })
|
|
22059
22267
|
]);
|
|
22060
|
-
var workspaceChangedEventSchema =
|
|
22268
|
+
var workspaceChangedEventSchema = z40.union([
|
|
22061
22269
|
workspaceEventSchemaByType,
|
|
22062
|
-
|
|
22063
|
-
|
|
22270
|
+
z40.object({ type: z40.literal("presence.changed"), userId: z40.string(), entry: presenceEntrySchema.nullable(), ts: z40.string() }),
|
|
22271
|
+
z40.object({ type: z40.literal("presence.changed"), ts: z40.string() })
|
|
22064
22272
|
]);
|
|
22065
22273
|
|
|
22066
22274
|
// ../shared/src/routes/review-messages.ts
|
|
22067
|
-
import { z as
|
|
22068
|
-
var sendPullRequestReviewMessageRequestSchema =
|
|
22275
|
+
import { z as z41 } from "zod";
|
|
22276
|
+
var sendPullRequestReviewMessageRequestSchema = z41.object({
|
|
22069
22277
|
...sendChatMessageRequestSchema.pick({
|
|
22070
22278
|
message: true,
|
|
22071
22279
|
messageId: true,
|
|
@@ -22078,8 +22286,8 @@ var sendPullRequestReviewMessageRequestSchema = z40.object({
|
|
|
22078
22286
|
ultrafastMode: true
|
|
22079
22287
|
}).shape,
|
|
22080
22288
|
/** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
|
|
22081
|
-
newChat:
|
|
22082
|
-
provider:
|
|
22289
|
+
newChat: z41.boolean().optional(),
|
|
22290
|
+
provider: z41.enum(ENGINE_AGENT_PROVIDERS).optional()
|
|
22083
22291
|
});
|
|
22084
22292
|
|
|
22085
22293
|
// ../shared/src/audit-log.ts
|
|
@@ -22742,40 +22950,40 @@ function isSkillRegistryManifest(value) {
|
|
|
22742
22950
|
}
|
|
22743
22951
|
|
|
22744
22952
|
// ../shared/src/routes/variable-requests.ts
|
|
22745
|
-
import { z as
|
|
22953
|
+
import { z as z42 } from "zod";
|
|
22746
22954
|
var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
|
|
22747
22955
|
var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
|
|
22748
|
-
var requestedVariableSchema =
|
|
22749
|
-
key:
|
|
22750
|
-
required:
|
|
22751
|
-
replace:
|
|
22956
|
+
var requestedVariableSchema = z42.object({
|
|
22957
|
+
key: z42.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
|
|
22958
|
+
required: z42.boolean(),
|
|
22959
|
+
replace: z42.boolean().optional()
|
|
22752
22960
|
});
|
|
22753
|
-
var requestedVariablesSchema =
|
|
22754
|
-
var createVariableRequestSchema =
|
|
22961
|
+
var requestedVariablesSchema = z42.array(requestedVariableSchema).min(1, "must not be empty").max(ENVIRONMENT_SETUP_LIMITS.variables).refine((variables) => new Set(variables.map((variable) => variable.key)).size === variables.length, "must have unique keys");
|
|
22962
|
+
var createVariableRequestSchema = z42.object({
|
|
22755
22963
|
variables: requestedVariablesSchema,
|
|
22756
|
-
reason:
|
|
22757
|
-
wait:
|
|
22964
|
+
reason: z42.string().trim().max(500).nullish().transform((value) => value || null),
|
|
22965
|
+
wait: z42.boolean().default(true)
|
|
22758
22966
|
});
|
|
22759
|
-
var respondVariableRequestSchema =
|
|
22760
|
-
|
|
22761
|
-
action:
|
|
22762
|
-
destination:
|
|
22967
|
+
var respondVariableRequestSchema = z42.discriminatedUnion("action", [
|
|
22968
|
+
z42.object({
|
|
22969
|
+
action: z42.literal("provide"),
|
|
22970
|
+
destination: z42.enum(VARIABLE_REQUEST_DESTINATIONS),
|
|
22763
22971
|
/** Defaults to the workspace's environment, so older clients keep saving there. */
|
|
22764
|
-
environment_ids:
|
|
22765
|
-
overwrite:
|
|
22766
|
-
values:
|
|
22972
|
+
environment_ids: z42.array(z42.string().uuid()).optional(),
|
|
22973
|
+
overwrite: z42.boolean().optional(),
|
|
22974
|
+
values: z42.record(z42.string().regex(VARIABLE_KEY_RE), z42.string())
|
|
22767
22975
|
}),
|
|
22768
|
-
|
|
22976
|
+
z42.object({ action: z42.literal("skip") })
|
|
22769
22977
|
]);
|
|
22770
22978
|
|
|
22771
22979
|
// ../shared/src/routes/local-control-requests.ts
|
|
22772
|
-
import { z as
|
|
22773
|
-
var createLocalControlRequestSchema =
|
|
22774
|
-
reason:
|
|
22775
|
-
wait:
|
|
22980
|
+
import { z as z43 } from "zod";
|
|
22981
|
+
var createLocalControlRequestSchema = z43.object({
|
|
22982
|
+
reason: z43.string().trim().max(500).optional().transform((value) => value || null),
|
|
22983
|
+
wait: z43.boolean().default(true)
|
|
22776
22984
|
});
|
|
22777
|
-
var respondLocalControlRequestSchema =
|
|
22778
|
-
var setLocalControlSchema =
|
|
22985
|
+
var respondLocalControlRequestSchema = z43.object({ action: z43.enum(["allow", "dismiss"]) });
|
|
22986
|
+
var setLocalControlSchema = z43.object({ enabled: z43.boolean() });
|
|
22779
22987
|
|
|
22780
22988
|
export {
|
|
22781
22989
|
ENGINE_SEND_MESSAGE_FAILED_ERROR,
|
|
@@ -22791,6 +22999,7 @@ export {
|
|
|
22791
22999
|
createSuccessResult,
|
|
22792
23000
|
createErrorResult,
|
|
22793
23001
|
AGENT,
|
|
23002
|
+
isEngineAgentProvider,
|
|
22794
23003
|
SUBAGENT_MCP_HARNESSES,
|
|
22795
23004
|
isValidAgentProvider,
|
|
22796
23005
|
isValidThinkingLevel,
|