replicas-engine 0.1.1102 → 0.1.1105
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-KQVVNINL.js → asp-host-CA4JGNK7.js} +5 -5
- package/dist/src/{chunk-V4L455YV.js → chunk-A4X7FJ7J.js} +10 -10
- package/dist/src/{chunk-YYIBXIYU.js → chunk-AM3WYV3T.js} +1 -1
- package/dist/src/{chunk-S36NKSWX.js → chunk-G5QOC3DT.js} +3 -3
- package/dist/src/{chunk-XPDCNBFF.js → chunk-HIUST67H.js} +1 -1
- package/dist/src/{chunk-ODZPKMY4.js → chunk-HSZJM6EM.js} +2 -2
- package/dist/src/{chunk-BBOCCI2I.js → chunk-PGRHUXG2.js} +2 -2
- package/dist/src/{chunk-I7BLDKKQ.js → chunk-TWN6IBMC.js} +2 -2
- package/dist/src/{chunk-XWOBGEZ3.js → chunk-VMGYO3JE.js} +187 -174
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +19 -19
- 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
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-A4X7FJ7J.js";
|
|
12
|
+
import "./chunk-PGRHUXG2.js";
|
|
13
|
+
import "./chunk-G5QOC3DT.js";
|
|
14
|
+
import "./chunk-HIUST67H.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VMGYO3JE.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
resolveDiffBase,
|
|
11
11
|
runGitCommand,
|
|
12
12
|
setAgentCredentialSnapshot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PGRHUXG2.js";
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-G5QOC3DT.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HIUST67H.js";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
24
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
GIT_CREDENTIAL_HELPER_FILENAME,
|
|
32
32
|
IMAGE_MEDIA_TYPES,
|
|
33
33
|
InFlightMap,
|
|
34
|
-
|
|
34
|
+
MOTHERSHIP_INSTRUCTIONS_TAG,
|
|
35
35
|
SUBAGENT_MCP_SERVER_NAME,
|
|
36
36
|
SUBAGENT_MCP_TOOL_NAMES,
|
|
37
37
|
buildCodeHostPrUrl,
|
|
@@ -53,9 +53,9 @@ import {
|
|
|
53
53
|
parseGitRemote,
|
|
54
54
|
readOllamaAuthEnv,
|
|
55
55
|
resolveOpenAICompatibleModelsUrl,
|
|
56
|
-
|
|
56
|
+
splitMothershipInstructions,
|
|
57
57
|
withTimeout
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-VMGYO3JE.js";
|
|
59
59
|
|
|
60
60
|
// src/managers/codex-token-manager.ts
|
|
61
61
|
import { promises as fs } from "fs";
|
|
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
291
291
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
292
292
|
await this.applyCredentialsResponse(data);
|
|
293
293
|
setAgentCredentialSnapshot("codex", data);
|
|
294
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
294
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CA4JGNK7.js");
|
|
295
295
|
await restartCodexAspHostIfRunning2();
|
|
296
296
|
});
|
|
297
297
|
await this.start(true);
|
|
@@ -312,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
312
312
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
313
313
|
await this.applyCredentialsResponse(data);
|
|
314
314
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
315
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
315
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CA4JGNK7.js");
|
|
316
316
|
await restartCodexAspHostIfRunning2();
|
|
317
317
|
}
|
|
318
318
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -1818,12 +1818,12 @@ async function buildTurnStartParams(threadId, request, serviceTier) {
|
|
|
1818
1818
|
const effort = toReasoningEffort(request.thinkingLevel);
|
|
1819
1819
|
const model = request.model ?? DEFAULT_MODEL;
|
|
1820
1820
|
const { input, tempImagePaths } = await buildTurnInput(request);
|
|
1821
|
-
const {
|
|
1821
|
+
const { mothershipInstructions } = splitMothershipInstructions(request.customInstructions);
|
|
1822
1822
|
return {
|
|
1823
1823
|
params: {
|
|
1824
1824
|
threadId,
|
|
1825
1825
|
input,
|
|
1826
|
-
...
|
|
1826
|
+
...mothershipInstructions ? { additionalContext: { [MOTHERSHIP_INSTRUCTIONS_TAG]: { kind: "application", value: mothershipInstructions } } } : {},
|
|
1827
1827
|
model,
|
|
1828
1828
|
...serviceTier !== void 0 ? { serviceTier } : {},
|
|
1829
1829
|
...codexApprovalPolicyOverrides(),
|
|
@@ -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-HIUST67H.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VMGYO3JE.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.1105";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -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-VMGYO3JE.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -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-G5QOC3DT.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
codexReasoningEffortForThinkingLevel,
|
|
12
12
|
isRecord,
|
|
13
13
|
readOllamaAuthEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VMGYO3JE.js";
|
|
15
15
|
|
|
16
16
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
17
17
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -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-HIUST67H.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isValidAgentProvider,
|
|
19
19
|
parsePosixEnvFile,
|
|
20
20
|
readReplicasRuntimeEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VMGYO3JE.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-env-loader.ts
|
|
24
24
|
import { readFileSync } from "fs";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getOriginDefaultBranch,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PGRHUXG2.js";
|
|
9
9
|
import {
|
|
10
10
|
extractCommandProtectionCommandText,
|
|
11
11
|
findCommandProtectionGitLookups,
|
|
12
12
|
findGitCommitSignals,
|
|
13
13
|
findPrMergeSignals,
|
|
14
14
|
parseCommandProtectionRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VMGYO3JE.js";
|
|
16
16
|
|
|
17
17
|
// src/services/command-protection-service.ts
|
|
18
18
|
import { readFile, stat } from "fs/promises";
|
|
@@ -1212,7 +1212,8 @@ var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZ
|
|
|
1212
1212
|
|
|
1213
1213
|
// ../shared/src/pricing.ts
|
|
1214
1214
|
var TRIAL_CREDIT_CENTS = 1e4;
|
|
1215
|
-
var
|
|
1215
|
+
var SCOUT_SOURCE = "mothership";
|
|
1216
|
+
var WORKSPACE_SOURCES = ["api", "dashboard", "slack", "linear", "github", "gitlab", "automation", SCOUT_SOURCE];
|
|
1216
1217
|
var CLIENT_MESSAGE_SOURCES = ["web", "desktop", "mobile", "tui"];
|
|
1217
1218
|
var MESSAGE_SOURCES = [...CLIENT_MESSAGE_SOURCES, ...WORKSPACE_SOURCES];
|
|
1218
1219
|
function isClientMessageSource(value) {
|
|
@@ -3072,11 +3073,11 @@ function subagentChatId(message2) {
|
|
|
3072
3073
|
return chatIdFrom(message2.output);
|
|
3073
3074
|
}
|
|
3074
3075
|
|
|
3075
|
-
// ../shared/src/
|
|
3076
|
+
// ../shared/src/mothership-events.ts
|
|
3076
3077
|
import { z as z16 } from "zod";
|
|
3077
3078
|
|
|
3078
3079
|
// ../shared/src/replicas-mcp.ts
|
|
3079
|
-
import { z as
|
|
3080
|
+
import { z as z14 } from "zod";
|
|
3080
3081
|
|
|
3081
3082
|
// ../shared/src/automations/trigger-schemas.ts
|
|
3082
3083
|
import { z as z11 } from "zod";
|
|
@@ -3136,7 +3137,89 @@ var createEnvironmentMcpRequestSchema = z12.object({
|
|
|
3136
3137
|
var updateEnvironmentMcpRequestSchema = createEnvironmentMcpRequestSchema.partial();
|
|
3137
3138
|
|
|
3138
3139
|
// ../shared/src/routes/workspaces.ts
|
|
3139
|
-
import { z as
|
|
3140
|
+
import { z as z13 } from "zod";
|
|
3141
|
+
var WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
|
|
3142
|
+
var STALE_PREPARING_MS = 10 * 6e4;
|
|
3143
|
+
var VALID_LIFECYCLE_POLICIES = ["default", "archive_when_done", "sleep_when_done", "delete_after_inactivity"];
|
|
3144
|
+
var WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
3145
|
+
var DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
3146
|
+
var DEFAULT_WORKSPACE_FILTERS = {
|
|
3147
|
+
statuses: [...DEFAULT_STATUS_FILTERS],
|
|
3148
|
+
ownerIds: [],
|
|
3149
|
+
activity: "any"
|
|
3150
|
+
};
|
|
3151
|
+
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
3152
|
+
var workspaceExecRequestSchema = z13.object({
|
|
3153
|
+
command: z13.string().regex(/\S/, "command is required"),
|
|
3154
|
+
timeout_seconds: z13.number().int().min(1).max(50).optional().describe("Default: 30")
|
|
3155
|
+
});
|
|
3156
|
+
var terminalRtcCandidateSchema = z13.object({ type: z13.literal("rtc-candidate"), candidate: z13.string(), mid: z13.string() });
|
|
3157
|
+
var terminalSocketServerMessageSchema = z13.discriminatedUnion("type", [
|
|
3158
|
+
z13.object({ type: z13.literal("output"), data: z13.string() }),
|
|
3159
|
+
z13.object({ type: z13.literal("rtc-answer"), sdp: z13.string() }),
|
|
3160
|
+
terminalRtcCandidateSchema,
|
|
3161
|
+
z13.object({ type: z13.literal("rtc-switch") })
|
|
3162
|
+
]);
|
|
3163
|
+
var TERMINAL_RTC_ICE_SERVER = "stun:stun.l.google.com:19302";
|
|
3164
|
+
|
|
3165
|
+
// ../shared/src/replicas-mcp.ts
|
|
3166
|
+
var REPLICAS_MCP_SERVER_NAME = "replicas-mcp";
|
|
3167
|
+
var REPLICAS_MCP_TOOLS = {
|
|
3168
|
+
listEnvironments: "list_environments",
|
|
3169
|
+
createAutomation: "create_automation",
|
|
3170
|
+
spawn: "spawn_workspace",
|
|
3171
|
+
relay: "relay_to_workspace",
|
|
3172
|
+
listWorkspaces: "list_workspaces",
|
|
3173
|
+
linearStart: "start_linear_session",
|
|
3174
|
+
linearSessionIntent: "register_linear_session_intent",
|
|
3175
|
+
listChannelSettings: "list_channel_settings",
|
|
3176
|
+
saveChannelPreset: "save_channel_preset",
|
|
3177
|
+
deleteChannelPreset: "delete_channel_preset",
|
|
3178
|
+
updateChannelSettings: "update_channel_settings",
|
|
3179
|
+
spawnSubagent: "spawn_subagent",
|
|
3180
|
+
messageSubagent: "message_subagent",
|
|
3181
|
+
listSubagents: "list_subagents",
|
|
3182
|
+
readSubagent: "read_subagent",
|
|
3183
|
+
archiveSubagent: "archive_subagent",
|
|
3184
|
+
waitForSubagents: "wait_for_subagents"
|
|
3185
|
+
};
|
|
3186
|
+
var automationToolInputSchema = z14.object({
|
|
3187
|
+
name: z14.string().describe("Short automation name."),
|
|
3188
|
+
prompt: z14.string().describe("Prompt each automation run starts with."),
|
|
3189
|
+
environment_id: z14.string().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`.`),
|
|
3190
|
+
triggers: z14.array(automationTriggerSchema).min(1).describe(
|
|
3191
|
+
'One or more triggers. Cron: `{ "type": "cron", "config": { "schedule": "0 9 * * 1", "timezone": "America/New_York" } }`. GitHub: `{ "type": "github", "config": { "event": "pull_request.opened", "repository_ids": ["<repository uuid>"] } }`.'
|
|
3192
|
+
),
|
|
3193
|
+
description: z14.string().optional().describe("One-line summary shown in the dashboard."),
|
|
3194
|
+
plan_mode: z14.boolean().optional(),
|
|
3195
|
+
goal_mode: z14.boolean().optional(),
|
|
3196
|
+
fast_mode: z14.boolean().optional()
|
|
3197
|
+
});
|
|
3198
|
+
var automationCreateToolInputSchema = automationToolInputSchema.extend({
|
|
3199
|
+
scope: z14.enum(["org", "user"]).optional().describe("`org` (default) or `user` for a personal automation, which needs a personal API key.")
|
|
3200
|
+
});
|
|
3201
|
+
var automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
|
|
3202
|
+
automation_id: z14.string().describe("Automation ID"),
|
|
3203
|
+
enabled: z14.boolean().optional(),
|
|
3204
|
+
agent_provider: z14.enum(AGENT).nullable().optional(),
|
|
3205
|
+
model: z14.string().nullable().optional(),
|
|
3206
|
+
thinking_level: z14.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
3207
|
+
workspace_lifecycle_policy: z14.enum(VALID_LIFECYCLE_POLICIES).optional(),
|
|
3208
|
+
workspace_size: z14.enum(WORKSPACE_SIZES).optional()
|
|
3209
|
+
});
|
|
3210
|
+
var chatPath = { id: z14.string().describe("Workspace ID"), chat_id: z14.string().describe("Chat ID") };
|
|
3211
|
+
var { provider, model, thinkingLevel, title, message } = forkChatRequestSchema.shape;
|
|
3212
|
+
var createChatToolInputSchema = z14.object({ id: chatPath.id, provider, title: createChatRequestSchema.shape.title });
|
|
3213
|
+
var forkChatToolInputSchema = z14.object({ ...chatPath, provider, model, thinking_level: thinkingLevel, title, message });
|
|
3214
|
+
var renameChatToolInputSchema = z14.object({ ...chatPath, display_name: updateChatDisplayNameRequestSchema.shape.displayName });
|
|
3215
|
+
var runCommandToolInputSchema = z14.object({ id: chatPath.id, ...workspaceExecRequestSchema.shape });
|
|
3216
|
+
var environmentMcpPath = { environment_id: z14.string().describe("Environment ID") };
|
|
3217
|
+
var createEnvironmentMcpToolInputSchema = z14.object({ ...environmentMcpPath, ...createEnvironmentMcpRequestSchema.shape });
|
|
3218
|
+
var updateEnvironmentMcpToolInputSchema = z14.object({
|
|
3219
|
+
...environmentMcpPath,
|
|
3220
|
+
mcp_id: z14.string().describe("MCP ID"),
|
|
3221
|
+
...updateEnvironmentMcpRequestSchema.shape
|
|
3222
|
+
});
|
|
3140
3223
|
|
|
3141
3224
|
// ../shared/src/default-skills/replicas-agent/abilities/computer.ts
|
|
3142
3225
|
var SECTION = `### Computer use (Linux desktop control)
|
|
@@ -3408,7 +3491,7 @@ var DOCKER_ABILITY = {
|
|
|
3408
3491
|
};
|
|
3409
3492
|
|
|
3410
3493
|
// ../shared/src/routes/environment-setups.ts
|
|
3411
|
-
import { z as
|
|
3494
|
+
import { z as z15 } from "zod";
|
|
3412
3495
|
var ENVIRONMENT_SETUP_STEPS = [
|
|
3413
3496
|
{ key: "understand", label: "Understand the codebase" },
|
|
3414
3497
|
{ key: "install", label: "Install dependencies and run the app" },
|
|
@@ -3442,17 +3525,17 @@ var ENVIRONMENT_SETUP_LIMITS = {
|
|
|
3442
3525
|
};
|
|
3443
3526
|
var ENVIRONMENT_SETUP_VARIABLE_WAIT = { defaultMs: 5 * 6e4, maxMs: 15 * 6e4, pollMs: 5e3 };
|
|
3444
3527
|
var VARIABLE_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
3445
|
-
var text2 = (max) => max === void 0 ?
|
|
3528
|
+
var text2 = (max) => max === void 0 ? z15.string().trim() : z15.string().trim().max(max);
|
|
3446
3529
|
var requiredText = (max) => text2(max).min(1, "must not be empty");
|
|
3447
3530
|
var optionalText2 = (max) => text2(max).nullish().transform((value) => value || null);
|
|
3448
3531
|
var clearableText = (max) => text2(max).nullish().transform((value) => value === void 0 ? void 0 : value || null);
|
|
3449
|
-
var list = (item, max) => max === void 0 ?
|
|
3532
|
+
var list = (item, max) => max === void 0 ? z15.array(item) : z15.array(item).max(max);
|
|
3450
3533
|
var ENVIRONMENT_SETUP_AUTHORED_TRIGGER_TYPES = ["cron", "github", "gitlab"];
|
|
3451
3534
|
function isEnvironmentSetupAuthoredTriggerType(type) {
|
|
3452
3535
|
return ENVIRONMENT_SETUP_AUTHORED_TRIGGER_TYPES.some((authored) => authored === type);
|
|
3453
3536
|
}
|
|
3454
|
-
var proposalTriggerSchema =
|
|
3455
|
-
var existingTriggerSchema =
|
|
3537
|
+
var proposalTriggerSchema = z15.discriminatedUnion("type", [cronTriggerSchema, githubTriggerSchema, gitlabTriggerSchema]);
|
|
3538
|
+
var existingTriggerSchema = z15.custom(
|
|
3456
3539
|
(value) => isRecord(value) && typeof value.type === "string" && isRecord(value.config),
|
|
3457
3540
|
"must be an automation trigger"
|
|
3458
3541
|
);
|
|
@@ -3460,17 +3543,17 @@ var carriedTriggerSchema = existingTriggerSchema.refine(
|
|
|
3460
3543
|
(trigger) => !isEnvironmentSetupAuthoredTriggerType(trigger.type)
|
|
3461
3544
|
);
|
|
3462
3545
|
function automationSchema(limits) {
|
|
3463
|
-
const authored =
|
|
3546
|
+
const authored = z15.object({
|
|
3464
3547
|
name: text2(limits.nameChars),
|
|
3465
3548
|
description: text2(limits.descriptionChars),
|
|
3466
3549
|
prompt: text2(limits.automationPromptChars),
|
|
3467
3550
|
triggers: list(proposalTriggerSchema, limits.automationTriggers)
|
|
3468
3551
|
});
|
|
3469
|
-
const updated = authored.extend({ triggers: list(
|
|
3470
|
-
return
|
|
3552
|
+
const updated = authored.extend({ triggers: list(z15.union([proposalTriggerSchema, carriedTriggerSchema]), limits.automationTriggers) });
|
|
3553
|
+
return z15.object({
|
|
3471
3554
|
key: requiredText(limits.automationKeyChars),
|
|
3472
|
-
action:
|
|
3473
|
-
automation_id:
|
|
3555
|
+
action: z15.enum(ENVIRONMENT_SETUP_AUTOMATION_ACTIONS).default("create"),
|
|
3556
|
+
automation_id: z15.string().regex(UUID_RE, "must be an automation id").nullable().default(null),
|
|
3474
3557
|
name: text2().default(""),
|
|
3475
3558
|
description: optionalText2().transform((value) => value ?? ""),
|
|
3476
3559
|
prompt: text2().default(""),
|
|
@@ -3493,7 +3576,7 @@ function automationSchema(limits) {
|
|
|
3493
3576
|
const content = (automation.action === "update" ? updated : authored).safeParse(automation);
|
|
3494
3577
|
if (content.success) return { ...automation, ...content.data };
|
|
3495
3578
|
for (const issue of content.error.issues) ctx.addIssue({ ...issue, code: "custom" });
|
|
3496
|
-
return
|
|
3579
|
+
return z15.NEVER;
|
|
3497
3580
|
});
|
|
3498
3581
|
}
|
|
3499
3582
|
function automationListSchema(limits) {
|
|
@@ -3511,7 +3594,7 @@ function automationListSchema(limits) {
|
|
|
3511
3594
|
});
|
|
3512
3595
|
}
|
|
3513
3596
|
function environmentSchema(limits) {
|
|
3514
|
-
return
|
|
3597
|
+
return z15.object({
|
|
3515
3598
|
name: optionalText2(limits.nameChars).transform((value) => value ?? void 0),
|
|
3516
3599
|
description: clearableText(limits.descriptionChars),
|
|
3517
3600
|
system_prompt: clearableText(limits.systemPromptChars),
|
|
@@ -3520,26 +3603,26 @@ function environmentSchema(limits) {
|
|
|
3520
3603
|
});
|
|
3521
3604
|
}
|
|
3522
3605
|
function variableSchema(limits, requiredDefault) {
|
|
3523
|
-
return
|
|
3524
|
-
key:
|
|
3606
|
+
return z15.object({
|
|
3607
|
+
key: z15.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(limits.variableKeyChars ?? Number.POSITIVE_INFINITY),
|
|
3525
3608
|
description: optionalText2(limits.variableDescriptionChars).transform((value) => value ?? ""),
|
|
3526
|
-
required:
|
|
3609
|
+
required: z15.boolean().default(requiredDefault)
|
|
3527
3610
|
});
|
|
3528
3611
|
}
|
|
3529
3612
|
function proposalSchema(limits) {
|
|
3530
|
-
return
|
|
3613
|
+
return z15.object({
|
|
3531
3614
|
summary: requiredText(limits.summaryChars),
|
|
3532
3615
|
stack: list(text2(), limits.stackItems).default([]).transform((items) => items.filter(Boolean)),
|
|
3533
3616
|
environment: environmentSchema(limits),
|
|
3534
3617
|
variables: list(variableSchema(limits, false), limits.variables).default([]),
|
|
3535
3618
|
automations: automationListSchema(limits),
|
|
3536
|
-
verification: list(
|
|
3619
|
+
verification: list(z15.object({
|
|
3537
3620
|
label: requiredText(limits.nameChars),
|
|
3538
|
-
status:
|
|
3621
|
+
status: z15.enum(ENVIRONMENT_SETUP_VERIFICATION_STATUSES),
|
|
3539
3622
|
detail: optionalText2(limits.verificationDetailChars).transform((value) => value ?? void 0)
|
|
3540
3623
|
}), limits.verificationItems).default([]),
|
|
3541
|
-
media: list(
|
|
3542
|
-
media_id:
|
|
3624
|
+
media: list(z15.object({
|
|
3625
|
+
media_id: z15.string().regex(UUID_RE, "must be a media id"),
|
|
3543
3626
|
title: requiredText(limits.nameChars)
|
|
3544
3627
|
}), limits.mediaItems).default([])
|
|
3545
3628
|
});
|
|
@@ -3547,35 +3630,35 @@ function proposalSchema(limits) {
|
|
|
3547
3630
|
var environmentSetupProposalSchema = proposalSchema({});
|
|
3548
3631
|
var environmentSetupProposalSubmissionSchema = proposalSchema(ENVIRONMENT_SETUP_LIMITS);
|
|
3549
3632
|
var environmentSetupVariableRequestSchema = variableSchema({}, false).extend({
|
|
3550
|
-
status:
|
|
3551
|
-
requested_at:
|
|
3552
|
-
resolved_at:
|
|
3633
|
+
status: z15.enum(["pending", "provided", "skipped"]),
|
|
3634
|
+
requested_at: z15.string(),
|
|
3635
|
+
resolved_at: z15.string().nullable().default(null)
|
|
3553
3636
|
});
|
|
3554
|
-
var environmentSetupRunStateSchema =
|
|
3555
|
-
status:
|
|
3556
|
-
steps:
|
|
3637
|
+
var environmentSetupRunStateSchema = z15.object({
|
|
3638
|
+
status: z15.enum(ENVIRONMENT_SETUP_RUN_STATUSES),
|
|
3639
|
+
steps: z15.partialRecord(z15.enum(ENVIRONMENT_SETUP_STEPS.map((step) => step.key)), z15.enum(ENVIRONMENT_SETUP_STEP_STATUSES)).default({}),
|
|
3557
3640
|
proposal: environmentSetupProposalSchema.nullable().default(null),
|
|
3558
|
-
applied:
|
|
3559
|
-
applied_at:
|
|
3560
|
-
automation_ids:
|
|
3641
|
+
applied: z15.object({
|
|
3642
|
+
applied_at: z15.string(),
|
|
3643
|
+
automation_ids: z15.array(z15.string())
|
|
3561
3644
|
}).nullable().default(null),
|
|
3562
|
-
variable_requests:
|
|
3645
|
+
variable_requests: z15.array(environmentSetupVariableRequestSchema).default([])
|
|
3563
3646
|
});
|
|
3564
|
-
var applyEnvironmentSetupRequestSchema =
|
|
3647
|
+
var applyEnvironmentSetupRequestSchema = z15.object({
|
|
3565
3648
|
environment: environmentSchema(ENVIRONMENT_SETUP_LIMITS).extend({ name: requiredText(ENVIRONMENT_SETUP_LIMITS.nameChars) }),
|
|
3566
|
-
variables: list(
|
|
3649
|
+
variables: list(z15.object({ key: z15.string().regex(VARIABLE_KEY_RE), value: z15.string() }), ENVIRONMENT_SETUP_LIMITS.variables).default([]).refine((variables) => new Set(variables.map((variable) => variable.key)).size === variables.length, "must have unique keys").transform((variables) => variables.filter((variable) => variable.value.length > 0)),
|
|
3567
3650
|
automations: automationListSchema(ENVIRONMENT_SETUP_LIMITS)
|
|
3568
3651
|
});
|
|
3569
|
-
var requestEnvironmentSetupVariablesSchema =
|
|
3652
|
+
var requestEnvironmentSetupVariablesSchema = z15.object({
|
|
3570
3653
|
variables: list(variableSchema(ENVIRONMENT_SETUP_LIMITS, true), ENVIRONMENT_SETUP_LIMITS.variables).min(1, "must not be empty")
|
|
3571
3654
|
}).superRefine(({ variables }, ctx) => {
|
|
3572
3655
|
if (new Set(variables.map((variable) => variable.key)).size !== variables.length) {
|
|
3573
3656
|
ctx.addIssue({ code: "custom", path: ["variables"], message: "must have unique keys" });
|
|
3574
3657
|
}
|
|
3575
3658
|
});
|
|
3576
|
-
var respondEnvironmentSetupVariablesSchema =
|
|
3577
|
-
values:
|
|
3578
|
-
skipped:
|
|
3659
|
+
var respondEnvironmentSetupVariablesSchema = z15.object({
|
|
3660
|
+
values: z15.record(z15.string().regex(VARIABLE_KEY_RE), z15.string()).default({}),
|
|
3661
|
+
skipped: z15.array(z15.string().regex(VARIABLE_KEY_RE)).default([])
|
|
3579
3662
|
});
|
|
3580
3663
|
|
|
3581
3664
|
// ../shared/src/default-skills/replicas-agent/abilities/environment-setup.ts
|
|
@@ -5301,90 +5384,6 @@ var REPLICAS_AGENT_ABILITIES = Object.keys(
|
|
|
5301
5384
|
REPLICAS_AGENT_ABILITY_REGISTRY
|
|
5302
5385
|
);
|
|
5303
5386
|
|
|
5304
|
-
// ../shared/src/routes/workspaces.ts
|
|
5305
|
-
var WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
|
|
5306
|
-
var STALE_PREPARING_MS = 10 * 6e4;
|
|
5307
|
-
var VALID_LIFECYCLE_POLICIES = ["default", "archive_when_done", "sleep_when_done", "delete_after_inactivity"];
|
|
5308
|
-
var WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
5309
|
-
var DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
5310
|
-
var DEFAULT_WORKSPACE_FILTERS = {
|
|
5311
|
-
statuses: [...DEFAULT_STATUS_FILTERS],
|
|
5312
|
-
ownerIds: [],
|
|
5313
|
-
activity: "any"
|
|
5314
|
-
};
|
|
5315
|
-
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5316
|
-
var workspaceExecRequestSchema = z14.object({
|
|
5317
|
-
command: z14.string().regex(/\S/, "command is required"),
|
|
5318
|
-
timeout_seconds: z14.number().int().min(1).max(50).optional().describe("Default: 30")
|
|
5319
|
-
});
|
|
5320
|
-
var terminalRtcCandidateSchema = z14.object({ type: z14.literal("rtc-candidate"), candidate: z14.string(), mid: z14.string() });
|
|
5321
|
-
var terminalSocketServerMessageSchema = z14.discriminatedUnion("type", [
|
|
5322
|
-
z14.object({ type: z14.literal("output"), data: z14.string() }),
|
|
5323
|
-
z14.object({ type: z14.literal("rtc-answer"), sdp: z14.string() }),
|
|
5324
|
-
terminalRtcCandidateSchema,
|
|
5325
|
-
z14.object({ type: z14.literal("rtc-switch") })
|
|
5326
|
-
]);
|
|
5327
|
-
var TERMINAL_RTC_ICE_SERVER = "stun:stun.l.google.com:19302";
|
|
5328
|
-
|
|
5329
|
-
// ../shared/src/replicas-mcp.ts
|
|
5330
|
-
var REPLICAS_MCP_SERVER_NAME = "replicas-mcp";
|
|
5331
|
-
var REPLICAS_MCP_TOOLS = {
|
|
5332
|
-
listEnvironments: "list_environments",
|
|
5333
|
-
createAutomation: "create_automation",
|
|
5334
|
-
spawn: "spawn_workspace",
|
|
5335
|
-
relay: "relay_to_workspace",
|
|
5336
|
-
listWorkspaces: "list_workspaces",
|
|
5337
|
-
linearStart: "start_linear_session",
|
|
5338
|
-
linearSessionIntent: "register_linear_session_intent",
|
|
5339
|
-
listChannelSettings: "list_channel_settings",
|
|
5340
|
-
saveChannelPreset: "save_channel_preset",
|
|
5341
|
-
deleteChannelPreset: "delete_channel_preset",
|
|
5342
|
-
updateChannelSettings: "update_channel_settings",
|
|
5343
|
-
spawnSubagent: "spawn_subagent",
|
|
5344
|
-
messageSubagent: "message_subagent",
|
|
5345
|
-
listSubagents: "list_subagents",
|
|
5346
|
-
readSubagent: "read_subagent",
|
|
5347
|
-
archiveSubagent: "archive_subagent",
|
|
5348
|
-
waitForSubagents: "wait_for_subagents"
|
|
5349
|
-
};
|
|
5350
|
-
var automationToolInputSchema = z15.object({
|
|
5351
|
-
name: z15.string().describe("Short automation name."),
|
|
5352
|
-
prompt: z15.string().describe("Prompt each automation run starts with."),
|
|
5353
|
-
environment_id: z15.string().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`.`),
|
|
5354
|
-
triggers: z15.array(automationTriggerSchema).min(1).describe(
|
|
5355
|
-
'One or more triggers. Cron: `{ "type": "cron", "config": { "schedule": "0 9 * * 1", "timezone": "America/New_York" } }`. GitHub: `{ "type": "github", "config": { "event": "pull_request.opened", "repository_ids": ["<repository uuid>"] } }`.'
|
|
5356
|
-
),
|
|
5357
|
-
description: z15.string().optional().describe("One-line summary shown in the dashboard."),
|
|
5358
|
-
plan_mode: z15.boolean().optional(),
|
|
5359
|
-
goal_mode: z15.boolean().optional(),
|
|
5360
|
-
fast_mode: z15.boolean().optional()
|
|
5361
|
-
});
|
|
5362
|
-
var automationCreateToolInputSchema = automationToolInputSchema.extend({
|
|
5363
|
-
scope: z15.enum(["org", "user"]).optional().describe("`org` (default) or `user` for a personal automation, which needs a personal API key.")
|
|
5364
|
-
});
|
|
5365
|
-
var automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
|
|
5366
|
-
automation_id: z15.string().describe("Automation ID"),
|
|
5367
|
-
enabled: z15.boolean().optional(),
|
|
5368
|
-
agent_provider: z15.enum(AGENT).nullable().optional(),
|
|
5369
|
-
model: z15.string().nullable().optional(),
|
|
5370
|
-
thinking_level: z15.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
5371
|
-
workspace_lifecycle_policy: z15.enum(VALID_LIFECYCLE_POLICIES).optional(),
|
|
5372
|
-
workspace_size: z15.enum(WORKSPACE_SIZES).optional()
|
|
5373
|
-
});
|
|
5374
|
-
var chatPath = { id: z15.string().describe("Workspace ID"), chat_id: z15.string().describe("Chat ID") };
|
|
5375
|
-
var { provider, model, thinkingLevel, title, message } = forkChatRequestSchema.shape;
|
|
5376
|
-
var createChatToolInputSchema = z15.object({ id: chatPath.id, provider, title: createChatRequestSchema.shape.title });
|
|
5377
|
-
var forkChatToolInputSchema = z15.object({ ...chatPath, provider, model, thinking_level: thinkingLevel, title, message });
|
|
5378
|
-
var renameChatToolInputSchema = z15.object({ ...chatPath, display_name: updateChatDisplayNameRequestSchema.shape.displayName });
|
|
5379
|
-
var runCommandToolInputSchema = z15.object({ id: chatPath.id, ...workspaceExecRequestSchema.shape });
|
|
5380
|
-
var environmentMcpPath = { environment_id: z15.string().describe("Environment ID") };
|
|
5381
|
-
var createEnvironmentMcpToolInputSchema = z15.object({ ...environmentMcpPath, ...createEnvironmentMcpRequestSchema.shape });
|
|
5382
|
-
var updateEnvironmentMcpToolInputSchema = z15.object({
|
|
5383
|
-
...environmentMcpPath,
|
|
5384
|
-
mcp_id: z15.string().describe("MCP ID"),
|
|
5385
|
-
...updateEnvironmentMcpRequestSchema.shape
|
|
5386
|
-
});
|
|
5387
|
-
|
|
5388
5387
|
// ../shared/src/routes/preferences.ts
|
|
5389
5388
|
var EMPTY_AGENT_DEFAULT_SETTINGS = {
|
|
5390
5389
|
agent_provider: null,
|
|
@@ -5441,7 +5440,7 @@ var DEFAULT_DEFAULT_SKILLS = {
|
|
|
5441
5440
|
|
|
5442
5441
|
// ../shared/src/prompts.ts
|
|
5443
5442
|
var REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
|
|
5444
|
-
var
|
|
5443
|
+
var MOTHERSHIP_INSTRUCTIONS_TAG = "multitask_instructions";
|
|
5445
5444
|
function wrapInTag(content, tag) {
|
|
5446
5445
|
return `<${tag}>
|
|
5447
5446
|
${content}
|
|
@@ -5454,22 +5453,22 @@ function removeTag(text3, tag) {
|
|
|
5454
5453
|
function removeReplicasInstructions(text3) {
|
|
5455
5454
|
return removeTag(text3, REPLICAS_INSTRUCTIONS_TAG);
|
|
5456
5455
|
}
|
|
5457
|
-
var
|
|
5458
|
-
function
|
|
5459
|
-
const match = customInstructions?.match(
|
|
5456
|
+
var MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
|
|
5457
|
+
function splitMothershipInstructions(customInstructions) {
|
|
5458
|
+
const match = customInstructions?.match(MOTHERSHIP_INSTRUCTIONS_BLOCK);
|
|
5460
5459
|
return {
|
|
5461
5460
|
customInstructions: match ? customInstructions?.replace(match[0], "").trim() || void 0 : customInstructions,
|
|
5462
|
-
|
|
5461
|
+
mothershipInstructions: match?.[1]
|
|
5463
5462
|
};
|
|
5464
5463
|
}
|
|
5465
5464
|
|
|
5466
|
-
// ../shared/src/
|
|
5467
|
-
var
|
|
5468
|
-
var
|
|
5469
|
-
var
|
|
5465
|
+
// ../shared/src/mothership-events.ts
|
|
5466
|
+
var MOTHERSHIP_EVENT_KINDS = ["finished", "ready", "needs_attention", "merged", "closed", "archived"];
|
|
5467
|
+
var MOTHERSHIP_EVENT_TYPE = "multitask-event";
|
|
5468
|
+
var mothershipEventSchema = z16.object({
|
|
5470
5469
|
id: z16.string(),
|
|
5471
5470
|
at: z16.string(),
|
|
5472
|
-
kind: z16.enum(
|
|
5471
|
+
kind: z16.enum(MOTHERSHIP_EVENT_KINDS),
|
|
5473
5472
|
agentId: z16.string(),
|
|
5474
5473
|
agentName: z16.string(),
|
|
5475
5474
|
summary: z16.string(),
|
|
@@ -5481,10 +5480,10 @@ var TAG = "multitask_event";
|
|
|
5481
5480
|
var BLOCK = new RegExp(`<${TAG}((?:\\s+\\w+="[^"]*")*)>\\n?([\\s\\S]*?)\\n?</${TAG}>`, "g");
|
|
5482
5481
|
var ATTRIBUTE = /(\w+)="([^"]*)"/g;
|
|
5483
5482
|
var unescapeAttribute = (value) => value.replace(/</g, "<").replace(/"/g, '"').replace(/&/g, "&");
|
|
5484
|
-
function
|
|
5483
|
+
function extractMothershipEvents(text3) {
|
|
5485
5484
|
return [...text3.matchAll(BLOCK)].flatMap((match) => {
|
|
5486
5485
|
const attributes = Object.fromEntries([...match[1].matchAll(ATTRIBUTE)].map(([, key, value]) => [key, unescapeAttribute(value)]));
|
|
5487
|
-
const kind =
|
|
5486
|
+
const kind = MOTHERSHIP_EVENT_KINDS.find((candidate) => candidate === attributes.kind);
|
|
5488
5487
|
if (!kind || !attributes.id || !attributes.agent_id) return [];
|
|
5489
5488
|
const [summary, ...rest] = match[2].replaceAll(`<\\/${TAG}`, `</${TAG}`).split("\n\n");
|
|
5490
5489
|
const detail = rest.join("\n\n").trim();
|
|
@@ -5500,8 +5499,8 @@ function extractMultitaskEvents(text3) {
|
|
|
5500
5499
|
}];
|
|
5501
5500
|
});
|
|
5502
5501
|
}
|
|
5503
|
-
function
|
|
5504
|
-
const events =
|
|
5502
|
+
function parseMothershipEvents(text3) {
|
|
5503
|
+
const events = extractMothershipEvents(text3);
|
|
5505
5504
|
return events.length > 0 && text3.replace(BLOCK, "").replaceAll(MERGED_MESSAGE_SEPARATOR.trim(), "").trim() === "" ? events : null;
|
|
5506
5505
|
}
|
|
5507
5506
|
|
|
@@ -5693,7 +5692,7 @@ var SUBAGENT_STEPS = {
|
|
|
5693
5692
|
[SUBAGENT_MCP_TOOLS.deleteAgent]: { icon: "trash", live: "Deleting", done: "Deleted" },
|
|
5694
5693
|
[SUBAGENT_MCP_TOOLS.getProviders]: { icon: "list", live: "Listing available providers", done: "Listed available providers" }
|
|
5695
5694
|
};
|
|
5696
|
-
var
|
|
5695
|
+
var MOTHERSHIP_TOOL_ACTIONS = {
|
|
5697
5696
|
[REPLICAS_MCP_TOOLS.spawnSubagent]: "spawn",
|
|
5698
5697
|
[REPLICAS_MCP_TOOLS.messageSubagent]: "send",
|
|
5699
5698
|
[REPLICAS_MCP_TOOLS.listSubagents]: "list",
|
|
@@ -5723,21 +5722,21 @@ function describeToolCall(message2, base) {
|
|
|
5723
5722
|
return { ...base, key, category: "tool", ...SUBAGENT_STEPS[subagentTool], failed, target: agent ? { text: agent, plain: true } : void 0, detail: "subagent" };
|
|
5724
5723
|
}
|
|
5725
5724
|
const mcp = parseMcpToolName(tool);
|
|
5726
|
-
const
|
|
5727
|
-
if (
|
|
5725
|
+
const mothershipAction = (mcp?.server ?? message2.server) === REPLICAS_MCP_SERVER_NAME ? MOTHERSHIP_TOOL_ACTIONS[mcp?.tool ?? tool] : void 0;
|
|
5726
|
+
if (mothershipAction) {
|
|
5728
5727
|
const step = {
|
|
5729
5728
|
...base,
|
|
5730
5729
|
key,
|
|
5731
5730
|
failed: base.failed || Boolean(message2.output?.startsWith("Error:")),
|
|
5732
|
-
|
|
5731
|
+
mothership: { action: mothershipAction, name: inputString(input, "name"), agentId: inputString(input, "agent_id"), chatId: inputString(input, "chat_id"), text: inputString(input, "prompt", "message") }
|
|
5733
5732
|
};
|
|
5734
|
-
if (
|
|
5735
|
-
if (
|
|
5736
|
-
if (
|
|
5737
|
-
return { ...step, category: "agent", icon: "clock", live: "Waiting for subagents", done: "Waited for subagents", detail: "
|
|
5733
|
+
if (mothershipAction === "spawn") return { ...step, category: "agent", icon: "network", live: "Spawning", done: "Spawned", detail: "mothership" };
|
|
5734
|
+
if (mothershipAction === "send") return { ...step, category: "agent", icon: "message", live: "Messaging", done: "Messaged", detail: "mothership" };
|
|
5735
|
+
if (mothershipAction === "wait") {
|
|
5736
|
+
return { ...step, category: "agent", icon: "clock", live: "Waiting for subagents", done: "Waited for subagents", detail: "mothership", mothership: { ...step.mothership, events: extractMothershipEvents(message2.output ?? "") } };
|
|
5738
5737
|
}
|
|
5739
|
-
if (
|
|
5740
|
-
return
|
|
5738
|
+
if (mothershipAction === "archive") return { ...step, category: "tool", icon: "archive", live: "Archiving subagent", done: "Archived subagent", detail: "io" };
|
|
5739
|
+
return mothershipAction === "list" ? { ...step, category: "tool", icon: "network", live: "Listing subagents", done: "Listed subagents", detail: "io" } : { ...step, category: "tool", icon: "network", live: "Reading subagent response", done: "Read subagent response", detail: "io" };
|
|
5741
5740
|
}
|
|
5742
5741
|
const shellCommand = /^(bash|shell|run_shell_command)$/i.test(tool) ? inputString(input, "command", "cmd") : void 0;
|
|
5743
5742
|
if (shellCommand) {
|
|
@@ -7672,8 +7671,8 @@ function applyInterruptions(messages, events) {
|
|
|
7672
7671
|
function applyEngineNotices(messages, events) {
|
|
7673
7672
|
const notices = [];
|
|
7674
7673
|
events.forEach((event, index) => {
|
|
7675
|
-
if (event.type ===
|
|
7676
|
-
const parsed = typeof event.payload.text === "string" ?
|
|
7674
|
+
if (event.type === MOTHERSHIP_EVENT_TYPE) {
|
|
7675
|
+
const parsed = typeof event.payload.text === "string" ? parseMothershipEvents(event.payload.text) : null;
|
|
7677
7676
|
if (parsed) notices.push({ id: `multitask-event-${event.timestamp}-${index}`, type: "multitask_event", events: parsed, timestamp: event.timestamp });
|
|
7678
7677
|
return;
|
|
7679
7678
|
}
|
|
@@ -8387,10 +8386,10 @@ function getGoalCommandObjectiveValidationError(message2, goalMode) {
|
|
|
8387
8386
|
return `Goal objective must be at most ${MAX_CODEX_GOAL_OBJECTIVE_CHARS} characters (${length} provided). Shorten the /goal objective, or send the extra details as a regular message after setting the goal.`;
|
|
8388
8387
|
}
|
|
8389
8388
|
|
|
8390
|
-
// ../shared/src/
|
|
8391
|
-
var
|
|
8392
|
-
var
|
|
8393
|
-
var
|
|
8389
|
+
// ../shared/src/scout.ts
|
|
8390
|
+
var SCOUT_SOURCE_TYPES = ["slack", "linear"];
|
|
8391
|
+
var SCOUT_PRESET_NAME_MAX_LENGTH = 50;
|
|
8392
|
+
var SCOUT_PRESET_ICONS = [
|
|
8394
8393
|
"users",
|
|
8395
8394
|
"user",
|
|
8396
8395
|
"inbox",
|
|
@@ -9102,21 +9101,21 @@ var linearSessionMetadataSchema = z19.object({
|
|
|
9102
9101
|
}).optional()
|
|
9103
9102
|
});
|
|
9104
9103
|
|
|
9105
|
-
// ../shared/src/routes/
|
|
9104
|
+
// ../shared/src/routes/scout.ts
|
|
9106
9105
|
import { z as z20 } from "zod";
|
|
9107
|
-
var
|
|
9108
|
-
var
|
|
9106
|
+
var SCOUT_LINEAR_ACTIONS = ["ask", "start"];
|
|
9107
|
+
var scoutLinearSessionIntentRequestSchema = z20.object({
|
|
9109
9108
|
comment_id: z20.string().trim().min(1).describe("Id of the Linear comment the session will be created on."),
|
|
9110
|
-
action: z20.enum(
|
|
9109
|
+
action: z20.enum(SCOUT_LINEAR_ACTIONS).describe("`ask` when the comment is a clarifying question, `start` when it is the complete task prompt.")
|
|
9111
9110
|
});
|
|
9112
|
-
var
|
|
9111
|
+
var scoutLinearStartRequestSchema = z20.object({
|
|
9113
9112
|
issue_id: z20.string().describe("Linear issue id from the envelope's `issue_id`."),
|
|
9114
9113
|
agent_session_id: z20.string().describe("Existing Linear agent session id from the envelope's `agent_session_id`."),
|
|
9115
9114
|
prompt: z20.string().trim().min(1).describe("Complete task prompt for the coding workspace.")
|
|
9116
9115
|
});
|
|
9117
9116
|
var slackChannelIdSchema = z20.string().describe("Slack channel id from the envelope's `channel_id`.");
|
|
9118
9117
|
var slackThreadTsSchema = z20.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
|
|
9119
|
-
var
|
|
9118
|
+
var scoutSlackSpawnRequestSchema = z20.object({
|
|
9120
9119
|
channel_id: slackChannelIdSchema,
|
|
9121
9120
|
thread_ts: slackThreadTsSchema,
|
|
9122
9121
|
message_ts: z20.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."),
|
|
@@ -9124,7 +9123,7 @@ var mothershipSlackSpawnRequestSchema = z20.object({
|
|
|
9124
9123
|
prompt: z20.string().describe("Complete task for the new workspace, written so it stands on its own."),
|
|
9125
9124
|
environment_id: z20.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.`)
|
|
9126
9125
|
});
|
|
9127
|
-
var
|
|
9126
|
+
var scoutSlackRelayRequestSchema = z20.object({
|
|
9128
9127
|
channel_id: slackChannelIdSchema,
|
|
9129
9128
|
thread_ts: slackThreadTsSchema,
|
|
9130
9129
|
message: z20.string().describe("The follow-up to deliver, combining every fresh message that belongs to this update."),
|
|
@@ -9133,35 +9132,35 @@ var mothershipSlackRelayRequestSchema = z20.object({
|
|
|
9133
9132
|
workspace_id: z20.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. Omit to relay into the thread's own workspace.`),
|
|
9134
9133
|
message_ts: z20.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.")
|
|
9135
9134
|
});
|
|
9136
|
-
var
|
|
9135
|
+
var scoutListWorkspacesRequestSchema = z20.object({
|
|
9137
9136
|
channel_id: slackChannelIdSchema,
|
|
9138
9137
|
thread_ts: slackThreadTsSchema,
|
|
9139
9138
|
message_ts: z20.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
9140
9139
|
user_id: z20.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
|
|
9141
9140
|
query: z20.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace names and pull request URLs.")
|
|
9142
9141
|
});
|
|
9143
|
-
var
|
|
9142
|
+
var scoutSlackConfirmationSchema = z20.object({
|
|
9144
9143
|
confirmation_channel_id: z20.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
|
|
9145
9144
|
confirmation_thread_ts: z20.string().describe("`thread_ts` from that message's envelope."),
|
|
9146
9145
|
confirmation_message_ts: z20.string().describe("`message_ts` from that message's envelope."),
|
|
9147
9146
|
confirmation_user_id: z20.string().describe("`user_id` from that message's envelope.")
|
|
9148
9147
|
});
|
|
9149
|
-
var
|
|
9150
|
-
var
|
|
9148
|
+
var scoutAutomationToolInputSchema = automationToolInputSchema.extend(scoutSlackConfirmationSchema.shape);
|
|
9149
|
+
var scoutSaveChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
9151
9150
|
preset_id: z20.string().optional().describe(`Id of the preset to update, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Omit to create a new preset.`),
|
|
9152
|
-
name: z20.string().trim().min(1).max(
|
|
9151
|
+
name: z20.string().trim().min(1).max(SCOUT_PRESET_NAME_MAX_LENGTH).optional().describe("Preset name. Required when creating."),
|
|
9153
9152
|
description: z20.string().optional().describe("One-line summary shown in settings."),
|
|
9154
|
-
icon: z20.enum(
|
|
9153
|
+
icon: z20.enum(SCOUT_PRESET_ICONS).optional(),
|
|
9155
9154
|
instructions: z20.string().optional().describe("Complete preset instructions; replaces the existing text. Required when creating.")
|
|
9156
9155
|
});
|
|
9157
|
-
var
|
|
9158
|
-
source: z20.enum(
|
|
9156
|
+
var scoutUpdateChannelSettingsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
9157
|
+
source: z20.enum(SCOUT_SOURCE_TYPES).optional().describe("Defaults to `slack`."),
|
|
9159
9158
|
external_id: z20.string().describe("Slack channel id or Linear team id."),
|
|
9160
9159
|
monitored: z20.boolean().optional().describe("`false` stops Scout from handling the source: it excludes a Slack channel or stops monitoring a Linear team. `true` resumes a Slack channel or starts monitoring a Linear team, and only an organization admin can ask for that. Omit to keep it."),
|
|
9161
9160
|
preset_id: z20.string().nullable().optional().describe("Preset to assign; `null` removes the preset. Omit to keep it."),
|
|
9162
9161
|
instructions: z20.string().nullable().optional().describe("Complete channel-specific instructions, applied after the preset; replaces the existing text. `null` clears them. Omit to keep them.")
|
|
9163
9162
|
});
|
|
9164
|
-
var
|
|
9163
|
+
var scoutDeleteChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
9165
9164
|
preset_id: z20.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
|
|
9166
9165
|
});
|
|
9167
9166
|
|
|
@@ -9511,6 +9510,15 @@ var workspaceMarkedUnreadClientStateKey = orgUserClientStateKey(WORKSPACE_MARKED
|
|
|
9511
9510
|
var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_STATE_KEY_PREFIX);
|
|
9512
9511
|
|
|
9513
9512
|
// ../shared/src/workspace-sidebar-state.ts
|
|
9513
|
+
var WORKSPACE_SOURCE_LABELS = {
|
|
9514
|
+
slack: "Slack",
|
|
9515
|
+
linear: "Linear",
|
|
9516
|
+
github: "GitHub",
|
|
9517
|
+
gitlab: "GitLab",
|
|
9518
|
+
automation: "an automation",
|
|
9519
|
+
api: "the API",
|
|
9520
|
+
[SCOUT_SOURCE]: "Scout"
|
|
9521
|
+
};
|
|
9514
9522
|
var FIRST_BOOT_GRACE_MS = 15 * 6e4;
|
|
9515
9523
|
var SLOW_ENGINE_GRACE_MS = 10 * 6e4;
|
|
9516
9524
|
var WORKSPACE_STAGES = ["progress", "review", "backlog", "done"];
|
|
@@ -9553,6 +9561,11 @@ var workspaceChangedEventSchema = z21.discriminatedUnion("type", [
|
|
|
9553
9561
|
type: z21.literal("mobile-testing.changed"),
|
|
9554
9562
|
workspaceId: z21.string(),
|
|
9555
9563
|
ts: z21.string()
|
|
9564
|
+
}),
|
|
9565
|
+
z21.object({
|
|
9566
|
+
type: z21.literal("pull-request.changed"),
|
|
9567
|
+
prUrl: z21.string(),
|
|
9568
|
+
ts: z21.string()
|
|
9556
9569
|
})
|
|
9557
9570
|
]);
|
|
9558
9571
|
|
|
@@ -10039,14 +10052,14 @@ export {
|
|
|
10039
10052
|
workspaceTokenResponseSchema,
|
|
10040
10053
|
legacyWorkspaceTokenBundleSchema,
|
|
10041
10054
|
engineMcpOAuthTokenResponseSchema,
|
|
10055
|
+
TERMINAL_RTC_ICE_SERVER,
|
|
10042
10056
|
HISTORY_ROOT,
|
|
10043
10057
|
HISTORY_INDEX_FILENAME,
|
|
10044
|
-
TERMINAL_RTC_ICE_SERVER,
|
|
10045
10058
|
REPLICAS_INSTRUCTIONS_TAG,
|
|
10046
|
-
|
|
10059
|
+
MOTHERSHIP_INSTRUCTIONS_TAG,
|
|
10047
10060
|
wrapInTag,
|
|
10048
|
-
|
|
10049
|
-
|
|
10061
|
+
splitMothershipInstructions,
|
|
10062
|
+
MOTHERSHIP_EVENT_TYPE,
|
|
10050
10063
|
parseFrontmatter,
|
|
10051
10064
|
LEARNED_SKILLS_MANIFEST_PATH,
|
|
10052
10065
|
LEARNED_SKILL_DIR_PREFIX,
|
|
@@ -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-TWN6IBMC.js";
|
|
7
|
+
import "./chunk-PGRHUXG2.js";
|
|
8
|
+
import "./chunk-HIUST67H.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VMGYO3JE.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
recoverCompletedTurn,
|
|
14
14
|
spawnMuseMsp,
|
|
15
15
|
startMuseSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HSZJM6EM.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-G5QOC3DT.js";
|
|
21
|
+
import "./chunk-HIUST67H.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT,
|
|
24
24
|
OPENCODE_GO_PROVIDER,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
headlessAgentUsagePath,
|
|
29
29
|
isRecord,
|
|
30
30
|
withTimeout
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VMGYO3JE.js";
|
|
32
32
|
import "./chunk-VEQXQN22.js";
|
|
33
33
|
|
|
34
34
|
// src/headless-agent.ts
|
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-TWN6IBMC.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
spawnMuseMsp,
|
|
65
65
|
startMuseSession,
|
|
66
66
|
uuidV7
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-HSZJM6EM.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-AM3WYV3T.js";
|
|
71
71
|
import {
|
|
72
72
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
73
73
|
AsyncLock,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
timestampFromSeconds,
|
|
131
131
|
upsertCredentialFileLines,
|
|
132
132
|
writeSecureCredentialFile
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-A4X7FJ7J.js";
|
|
134
134
|
import {
|
|
135
135
|
ENGINE_ENV,
|
|
136
136
|
monolithRequest,
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
reloadEngineEnv,
|
|
140
140
|
resolveDiffBase,
|
|
141
141
|
setAgentCredentialSnapshot
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-PGRHUXG2.js";
|
|
143
143
|
import {
|
|
144
144
|
getCodexModelProvider
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-G5QOC3DT.js";
|
|
146
146
|
import {
|
|
147
147
|
SUBPROCESS_MAX_BUFFER,
|
|
148
148
|
execAsync,
|
|
149
149
|
execFileAsync
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-HIUST67H.js";
|
|
151
151
|
import {
|
|
152
152
|
isRecord as isRecord2
|
|
153
153
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -213,8 +213,8 @@ import {
|
|
|
213
213
|
MAX_CODEX_GOAL_OBJECTIVE_CHARS,
|
|
214
214
|
MAX_REPO_FILE_CONTENT_BYTES,
|
|
215
215
|
MERGED_MESSAGE_SEPARATOR,
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
MOTHERSHIP_EVENT_TYPE,
|
|
217
|
+
MOTHERSHIP_INSTRUCTIONS_TAG,
|
|
218
218
|
OLLAMA_AGENTS,
|
|
219
219
|
OPENCODE_GO_BASE_URL,
|
|
220
220
|
OPENCODE_GO_PROVIDER,
|
|
@@ -365,7 +365,7 @@ import {
|
|
|
365
365
|
shouldRefreshPullRequests,
|
|
366
366
|
skillNamesFromCommand,
|
|
367
367
|
spawnSubagentRequestSchema,
|
|
368
|
-
|
|
368
|
+
splitMothershipInstructions,
|
|
369
369
|
stripAgentDiagnosticErrors,
|
|
370
370
|
toClaudeCodeModel,
|
|
371
371
|
updateChatDisplayNameRequestSchema,
|
|
@@ -376,7 +376,7 @@ import {
|
|
|
376
376
|
workspaceTokenRequestSchema,
|
|
377
377
|
workspaceTokenResponseSchema,
|
|
378
378
|
wrapInTag
|
|
379
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-VMGYO3JE.js";
|
|
380
380
|
import {
|
|
381
381
|
cloneMcpConfig,
|
|
382
382
|
ensureCompatibilityImports,
|
|
@@ -14393,14 +14393,14 @@ var CodexAspManager = class extends CodingAgentManager {
|
|
|
14393
14393
|
}
|
|
14394
14394
|
async prepareGoalCommand(request, recordUserMessage) {
|
|
14395
14395
|
const host = await getCodexAspHost();
|
|
14396
|
-
const developerInstructions = this.buildCombinedInstructions(
|
|
14396
|
+
const developerInstructions = this.buildCombinedInstructions(splitMothershipInstructions(request.customInstructions).customInstructions, true);
|
|
14397
14397
|
recordUserMessage({ command: "goal" });
|
|
14398
14398
|
const threadId = await this.ensureThread(host, request, developerInstructions);
|
|
14399
14399
|
return { host, threadId };
|
|
14400
14400
|
}
|
|
14401
14401
|
async executeAspTurn(request, recordUserMessage, signal, options = {}) {
|
|
14402
14402
|
const host = await getCodexAspHost();
|
|
14403
|
-
const developerInstructions = this.buildCombinedInstructions(
|
|
14403
|
+
const developerInstructions = this.buildCombinedInstructions(splitMothershipInstructions(request.customInstructions).customInstructions, true);
|
|
14404
14404
|
recordUserMessage(options.userMessagePayload);
|
|
14405
14405
|
const threadId = await this.ensureThread(host, request, developerInstructions);
|
|
14406
14406
|
const serviceTier = await this.resolveRequestedServiceTier(host, request);
|
|
@@ -14546,12 +14546,12 @@ ${text.slice(-24e3)}`
|
|
|
14546
14546
|
});
|
|
14547
14547
|
}
|
|
14548
14548
|
async runGoalTurn(host, threadId, request, objective, signal) {
|
|
14549
|
-
const {
|
|
14549
|
+
const { mothershipInstructions } = splitMothershipInstructions(request.customInstructions);
|
|
14550
14550
|
return this.observeTurn(host, threadId, request, signal, async () => {
|
|
14551
|
-
if (
|
|
14551
|
+
if (mothershipInstructions) {
|
|
14552
14552
|
await host.client.request(THREAD_INJECT_ITEMS_METHOD, {
|
|
14553
14553
|
threadId,
|
|
14554
|
-
items: [{ type: "message", role: "developer", content: [{ type: "input_text", text: wrapInTag(
|
|
14554
|
+
items: [{ type: "message", role: "developer", content: [{ type: "input_text", text: wrapInTag(mothershipInstructions, MOTHERSHIP_INSTRUCTIONS_TAG) }] }]
|
|
14555
14555
|
});
|
|
14556
14556
|
}
|
|
14557
14557
|
const response = await host.client.request(
|
|
@@ -59883,8 +59883,8 @@ var ChatService = class {
|
|
|
59883
59883
|
return [];
|
|
59884
59884
|
});
|
|
59885
59885
|
}
|
|
59886
|
-
|
|
59887
|
-
this.requireChat(chatId).provider.recordNotice(
|
|
59886
|
+
recordMothershipEvents(chatId, text) {
|
|
59887
|
+
this.requireChat(chatId).provider.recordNotice(MOTHERSHIP_EVENT_TYPE, { text });
|
|
59888
59888
|
}
|
|
59889
59889
|
async interrupt(chatId) {
|
|
59890
59890
|
const chat = this.requireChat(chatId);
|
|
@@ -62361,7 +62361,7 @@ function createV1Routes(deps) {
|
|
|
62361
62361
|
app2.post("/chats/:chatId/multitask-events", async (c) => {
|
|
62362
62362
|
try {
|
|
62363
62363
|
const { text } = z4.object({ text: z4.string().min(1) }).parse(await c.req.json());
|
|
62364
|
-
deps.chatService.
|
|
62364
|
+
deps.chatService.recordMothershipEvents(c.req.param("chatId"), text);
|
|
62365
62365
|
return c.json({ success: true });
|
|
62366
62366
|
} catch (error) {
|
|
62367
62367
|
const details = error instanceof Error ? error.message : "Unknown error";
|
|
@@ -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-AM3WYV3T.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-VMGYO3JE.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