replicas-cli 0.3.484 → 0.3.486
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +94 -93
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21676,10 +21676,10 @@ var init_pixel_crew = __esm({
|
|
|
21676
21676
|
}
|
|
21677
21677
|
});
|
|
21678
21678
|
|
|
21679
|
-
// ../shared/src/routes/
|
|
21680
|
-
var avatarColorSchema,
|
|
21681
|
-
var
|
|
21682
|
-
"../shared/src/routes/
|
|
21679
|
+
// ../shared/src/routes/manager.ts
|
|
21680
|
+
var avatarColorSchema, MANAGER_AVATAR_BACKGROUNDS, MANAGER_AVATAR_PRIMARIES, managerPresetAvatarSchema, managerEmojiAvatarSchema, managerChosenAvatarSchema, setUpManagerTextingRequestSchema, linearRuleFields, withLabelIds, managerLinearRuleSchema, SUBAGENT_SERVICE_TIERS, managerSubagentSettingsSchema, QUEUE_SECTIONS, MANAGER_QUEUE_GROUPS, MANAGER_SHIPPING_LOOKBACK_MS;
|
|
21681
|
+
var init_manager = __esm({
|
|
21682
|
+
"../shared/src/routes/manager.ts"() {
|
|
21683
21683
|
"use strict";
|
|
21684
21684
|
init_zod();
|
|
21685
21685
|
init_agent();
|
|
@@ -21690,7 +21690,7 @@ var init_mothership = __esm({
|
|
|
21690
21690
|
init_pixel_crew();
|
|
21691
21691
|
init_urls();
|
|
21692
21692
|
avatarColorSchema = external_exports.union([external_exports.literal("theme"), external_exports.string().regex(/^#[0-9a-f]{6}$/i)]);
|
|
21693
|
-
|
|
21693
|
+
MANAGER_AVATAR_BACKGROUNDS = [
|
|
21694
21694
|
["Forest", PALETTE_COLORS.light.default.foreground],
|
|
21695
21695
|
["Black", PALETTE_COLORS.dark.default.background],
|
|
21696
21696
|
["Graphite", PALETTE_COLORS.dark.default.selected],
|
|
@@ -21702,7 +21702,7 @@ var init_mothership = __esm({
|
|
|
21702
21702
|
["Sage", PALETTE_COLORS.light.default.muted],
|
|
21703
21703
|
["White", DESIGN_COLORS.light.white]
|
|
21704
21704
|
];
|
|
21705
|
-
|
|
21705
|
+
MANAGER_AVATAR_PRIMARIES = [
|
|
21706
21706
|
["Green", ACCENT_COLORS.green.dark.primary],
|
|
21707
21707
|
["Blue", ACCENT_COLORS.blue.dark.primary],
|
|
21708
21708
|
["Purple", ACCENT_COLORS.purple.dark.primary],
|
|
@@ -21716,28 +21716,28 @@ var init_mothership = __esm({
|
|
|
21716
21716
|
["Deep pink", ACCENT_COLORS.pink.light.primaryText],
|
|
21717
21717
|
["Ink", PALETTE_COLORS.light.default.foreground]
|
|
21718
21718
|
];
|
|
21719
|
-
|
|
21719
|
+
managerPresetAvatarSchema = external_exports.object({
|
|
21720
21720
|
kind: external_exports.literal("preset"),
|
|
21721
21721
|
role: external_exports.enum(PIXEL_CREW_ROLE_NAMES),
|
|
21722
21722
|
primary: avatarColorSchema,
|
|
21723
21723
|
background: avatarColorSchema
|
|
21724
21724
|
});
|
|
21725
|
-
|
|
21725
|
+
managerEmojiAvatarSchema = external_exports.object({
|
|
21726
21726
|
kind: external_exports.literal("emoji"),
|
|
21727
21727
|
emoji: external_exports.string().trim().min(1).max(32),
|
|
21728
21728
|
background: avatarColorSchema
|
|
21729
21729
|
});
|
|
21730
|
-
|
|
21731
|
-
|
|
21730
|
+
managerChosenAvatarSchema = external_exports.discriminatedUnion("kind", [managerPresetAvatarSchema, managerEmojiAvatarSchema]);
|
|
21731
|
+
setUpManagerTextingRequestSchema = external_exports.object({ line: external_exports.string().optional() });
|
|
21732
21732
|
linearRuleFields = linearIssueFiltersSchema.extend({ team_id: external_exports.string().min(1) }).strict();
|
|
21733
21733
|
withLabelIds = (value) => {
|
|
21734
21734
|
if (!isRecord(value) || typeof value.label_id !== "string") return value;
|
|
21735
21735
|
const { label_id, ...rest } = value;
|
|
21736
21736
|
return { ...rest, label_ids: [label_id] };
|
|
21737
21737
|
};
|
|
21738
|
-
|
|
21738
|
+
managerLinearRuleSchema = external_exports.preprocess(withLabelIds, linearRuleFields);
|
|
21739
21739
|
SUBAGENT_SERVICE_TIERS = ["default", "fast", "ultrafast"];
|
|
21740
|
-
|
|
21740
|
+
managerSubagentSettingsSchema = external_exports.object({
|
|
21741
21741
|
coding_agent: external_exports.enum(VALID_AGENT_PROVIDERS),
|
|
21742
21742
|
model: external_exports.string().nullable(),
|
|
21743
21743
|
thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable(),
|
|
@@ -21750,8 +21750,8 @@ var init_mothership = __esm({
|
|
|
21750
21750
|
{ label: "Working", groups: ["working"] },
|
|
21751
21751
|
{ label: "Shipping", groups: ["shipping"] }
|
|
21752
21752
|
];
|
|
21753
|
-
|
|
21754
|
-
|
|
21753
|
+
MANAGER_QUEUE_GROUPS = QUEUE_SECTIONS.flatMap((section) => section.groups);
|
|
21754
|
+
MANAGER_SHIPPING_LOOKBACK_MS = 3 * 24 * 60 * 6e4;
|
|
21755
21755
|
}
|
|
21756
21756
|
});
|
|
21757
21757
|
|
|
@@ -21784,7 +21784,7 @@ var init_workspaces = __esm({
|
|
|
21784
21784
|
init_agent();
|
|
21785
21785
|
init_workspace_credentials();
|
|
21786
21786
|
init_pricing();
|
|
21787
|
-
|
|
21787
|
+
init_manager();
|
|
21788
21788
|
WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
|
|
21789
21789
|
SUPPORT_EMAIL = "founders@replicas.dev";
|
|
21790
21790
|
WORKSPACE_SANDBOX_LOST_MESSAGE = `This workspace can't be resumed because its sandbox was lost on our side. That shouldn't happen, and we're sorry. Please start a new workspace, and email ${SUPPORT_EMAIL} so we can look into it.`;
|
|
@@ -21837,7 +21837,7 @@ var init_workspace_search = __esm({
|
|
|
21837
21837
|
viewModes: [...WORKSPACE_SIDEBAR_VIEWS].sort().join(","),
|
|
21838
21838
|
archived: "include",
|
|
21839
21839
|
excludeScout: "true",
|
|
21840
|
-
|
|
21840
|
+
excludeManagerShips: "true",
|
|
21841
21841
|
excludeAutomationRuns: "true",
|
|
21842
21842
|
page: 1,
|
|
21843
21843
|
limit: 1e3
|
|
@@ -25541,7 +25541,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
25541
25541
|
| --- | --- |
|
|
25542
25542
|
| \`replicas whoami\` | Print the workspace + org identity |
|
|
25543
25543
|
| \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
|
|
25544
|
-
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only
|
|
25544
|
+
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only Managers |
|
|
25545
25545
|
| \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
|
|
25546
25546
|
| \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
|
|
25547
25547
|
| \`replicas identity aws-credentials --role-arn <arn> [--region <region>] [--source-identity]\` | Exchange the current token for AWS credential_process JSON (requires AWS CLI); \`--source-identity\` records the workspace ID in CloudTrail and needs \`sts:SetSourceIdentity\` in the role trust policy |
|
|
@@ -27159,11 +27159,11 @@ There is no settings page: people change how Replicas behaves by asking you, and
|
|
|
27159
27159
|
| Stay quiet in this thread, or come back | \`${REPLICAS_MCP_TOOLS.setThreadMuted}\` | Anyone in the thread |
|
|
27160
27160
|
| A recurring task ("every Monday, summarize open PRs in #eng") | \`${REPLICAS_MCP_TOOLS.createAutomation}\` (see Automations) | Members who can create automations |
|
|
27161
27161
|
|
|
27162
|
-
You also answer questions, start a workspace for a task (in a separate thread when asked), relay follow-ups to a thread's workspace, stop it, hand a thread to a
|
|
27162
|
+
You also answer questions, start a workspace for a task (in a separate thread when asked), relay follow-ups to a thread's workspace, stop it, hand a thread to a Manager by name, and file Linear tickets with \`replicas.linear.graphql\`. Spawn for a one-time reminder ("remind me tomorrow at 9"): workspaces can schedule one-time runs.
|
|
27163
27163
|
|
|
27164
27164
|
A person's own defaults (agent, model, environment) and the organization's general defaults are changed in the Replicas app, not by you; Slack tasks use them unless the Slack agent defaults above say otherwise.
|
|
27165
27165
|
|
|
27166
|
-
You can't add yourself to or remove yourself from a channel: people type \`/invite @Replicas\` or \`/remove @Replicas\` there, and an admin can pick channels under Integrations, Slack, Configure. To keep you in a channel but out of the way, lower it to Mentions only or put it in silent mode. A channel becomes a
|
|
27166
|
+
You can't add yourself to or remove yourself from a channel: people type \`/invite @Replicas\` or \`/remove @Replicas\` there, and an admin can pick channels under Integrations, Slack, Configure. To keep you in a channel but out of the way, lower it to Mentions only or put it in silent mode. A channel becomes a Manager's own channel from that Manager, not here; any channel's instructions can still send its messages to a Manager.
|
|
27167
27167
|
|
|
27168
27168
|
## Tools
|
|
27169
27169
|
Read presets, channel instructions, and levels with \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`. Change them with \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\`, \`${REPLICAS_MCP_TOOLS.saveChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.deleteChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.setOrganizationProactivity}\`, \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\`, or \`${REPLICAS_MCP_TOOLS.setSlackAgentDefaults}\`. Every change takes \`confirmation_*\` arguments naming who asked. For a Slack message, fill them with its envelope \`channel_id\`, \`thread_ts\`, \`message_ts\`, and \`user_id\`. A message from a person in the Replicas dashboard has no \`[Slack]\` envelope and carries a \`confirmation_dashboard_token\`: pass only that, never one from another message, and answer in the chat. The server checks that the person who asked is an organization member (and an admin where noted). If it refuses, say why briefly and change nothing.
|
|
@@ -27176,9 +27176,9 @@ Read presets, channel instructions, and levels with \`${REPLICAS_MCP_TOOLS.listC
|
|
|
27176
27176
|
- **Instructions and presets:** prefer changing the channel's own instructions; edit a shared preset only when asked, since every channel using it changes. To set up a channel without being told how, read enough of it to propose short instructions or a fitting preset (customer, vendor, internal team), and save nothing until they confirm. Never infer a channel's purpose only because Slack marks it externally shared.
|
|
27177
27177
|
- **Silent mode** is what people mean by muting you in a channel. A channel in silent mode still reaches you as its level allows, and you follow its instructions anywhere but there. For "watch #alerts and report to #team", an admin turns on \`silent\` for the watched channel, raises it to Balanced or High so untagged messages reach you, and its instructions name where to report. It is separate from a thread mute, which lasts hours and only quiets one thread.
|
|
27178
27178
|
- **Linear teams:** set \`monitored: true\` to start triaging a team (admin only) and \`monitored: false\` to stop. Teams take a preset or instructions like channels.
|
|
27179
|
-
- **Slack Connect** channels shared with another company follow the organization's shared-channel defaults (\`tagged\` with no preset unless an admin set them with \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\`) until they get their own settings, unless a
|
|
27179
|
+
- **Slack Connect** channels shared with another company follow the organization's shared-channel defaults (\`tagged\` with no preset unless an admin set them with \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\`) until they get their own settings, unless a Manager is linked to one. A request about all shared or customer channels changes only those defaults: leave channels with their own settings as they are, list them, and offer to switch them too. Asked why you stay quiet in one, say it's external and an admin can ask you to raise its level.
|
|
27180
27180
|
- **Slack agent defaults:** to change the agent, model, thinking level, goal mode, or fast mode for tasks started from Slack ("use Codex for Slack tasks"), call \`${REPLICAS_MCP_TOOLS.setSlackAgentDefaults}\` (admin only).
|
|
27181
|
-
- **"What can you do?"** Keep it short: one line on what you do (answer questions, start a workspace for a task, hand work to a
|
|
27181
|
+
- **"What can you do?"** Keep it short: one line on what you do (answer questions, start a workspace for a task, hand work to a Manager, file Linear tickets, set up recurring tasks), two or three example requests in backticks drawn from both work and behavior (like \`fix the flaky login test\`, \`only reply here when tagged\`, \`every Monday, summarize open PRs\`), then "Ask me what you can change here to see every setting." No settings list or current values.
|
|
27182
27182
|
- **"What can I change?"** Read the current settings, then reply in a few short lines from **What you can do**: what applies here with its current value (this channel's level, silent mode, instructions or preset), then what applies everywhere (the every-channel level, shared-channel defaults, Linear teams, Slack agent defaults), marking what needs an admin. Give one example phrasing, like "only reply here when tagged".
|
|
27183
27183
|
- After any change, say what changed and its scope ("every channel", or "#eng only"). Confirm only after the tool succeeded and only what it changed; say so when it failed or did less than asked.
|
|
27184
27184
|
|
|
@@ -27186,7 +27186,7 @@ Read presets, channel instructions, and levels with \`${REPLICAS_MCP_TOOLS.listC
|
|
|
27186
27186
|
When the envelope has \`offers\`, it lists the offers you may still make in this channel (${SCOUT_CHANNEL_SETTINGS_OFFERS.map((offer) => `\`${offer}\``).join(", ")}); \`offers=none\` means none. Offer only what it lists, at most one per message. Claim the offer with \`${REPLICAS_MCP_TOOLS.claimSettingsOffer}\` right before posting it, and post only when the claim succeeds. When someone declines ("no", "it's fine", "leave it"), record it with \`declined: true\`; never repeat an ignored offer. When they accept, apply it with the tools above using the accepting message as confirmation, then confirm in one short line.
|
|
27187
27187
|
- **Frustration.** When someone is clearly annoyed that you replied or acted unasked ("wtf why did replicas respond", "not you", "nobody asked", or a thumbs-down on a reply you posted unasked), claim \`proactivity\` and post one short apology offering to lower this channel exactly one step. From Balanced or High: "Sorry for jumping in. Want me to only reply here when someone mentions me by name?" From Low: "Sorry for jumping in. Want me to only reply here when someone @mentions me?" On a yes, set that level, nothing lower. Do nothing else in that thread. When the claim answers \`offer: organization\`, offer to set every channel's default to \`organization_target\` instead; when \`requester_is_admin\` is false, say an admin can change it for every channel and offer this channel. An explicit "stop replying in this thread" is still a thread mute.
|
|
27188
27188
|
- **Having to tag you.** After doing what an earlier untagged message asked, claim \`raise_proactivity\` and end your reply with one line offering one step up. From Mentions only: "Want me to pick up messages here that name me, without an @mention? @mention me with your answer." From Low: "Want me to pick up requests like that here without a tag next time? I can raise this channel to Balanced." From Balanced: "Want me to jump in on requests like that here without being asked? I can raise this channel to High." When the claim answers \`offer: organization\`, offer to raise every channel's default to \`organization_target\` instead, and say channels with their own level keep it. Mention an admin only when the claim answers \`needs_admin: true\`, then offer this channel instead. On a yes, raise to that level only.
|
|
27189
|
-
- **Channel instructions.** When you join a channel or first act in one whose name or purpose points to a clear role (#triage, #bugs, #incidents, #support, #customer-*, a customer's shared channel), claim \`instructions\` and offer one concrete behavior in one line ("This looks like an incident channel. Want me to triage new reports here, check for duplicates, and post findings in the thread?"). Make the same kind of offer when you keep handling messages here the same way, or the channel clearly belongs to a
|
|
27189
|
+
- **Channel instructions.** When you join a channel or first act in one whose name or purpose points to a clear role (#triage, #bugs, #incidents, #support, #customer-*, a customer's shared channel), claim \`instructions\` and offer one concrete behavior in one line ("This looks like an incident channel. Want me to triage new reports here, check for duplicates, and post findings in the thread?"). Make the same kind of offer when you keep handling messages here the same way, or the channel clearly belongs to a Manager (offer to send its actionable messages to it by name). On a yes, save it as the channel's instructions, or its preset when one fits exactly.
|
|
27190
27190
|
|
|
27191
27191
|
## Automations
|
|
27192
27192
|
When someone asks for a recurring task or accepts an offer to automate a repeated request, set it up here instead of spawning. Infer the name, prompt, environment, repositories, schedule, and timezone from the conversation and the organization's configuration; ask one concise follow-up only for a missing detail that changes when or where it runs. Create it with \`${REPLICAS_MCP_TOOLS.createAutomation}\`, filling \`confirmation_*\` from the envelope of the message that asked or accepted. The server checks that author is an organization member with automation write access; never create it if that fails. Post the result in the same thread.
|
|
@@ -27289,7 +27289,7 @@ function stripAgentInstructionBlocks(text4) {
|
|
|
27289
27289
|
else spans(prose, text4.length);
|
|
27290
27290
|
return stripInstructionBlocksOutside(text4, quoted);
|
|
27291
27291
|
}
|
|
27292
|
-
var REPLICAS_INSTRUCTIONS_TAG,
|
|
27292
|
+
var REPLICAS_INSTRUCTIONS_TAG, MANAGER_INSTRUCTIONS_TAG, fenceMarker, INSTRUCTIONS_OPEN, INSTRUCTIONS_CLOSE, MANAGER_EVENT_CHAT_NOTE, BOARD_ANSWER_NOTE, BOARD_RULES, MANAGER_INSTRUCTIONS_BLOCK, MANAGER_TICKET_MESSAGE_NOTE, MANAGER_TICKET_REPLY_NUDGE, T, SCOUT_LINEAR_RULES, SCOUT_MUTED_RULES, SCOUT_PRIOR_UNTAGGED_RULES, SCOUT_JOINED_RULES, SCOUT_REACTION_RULES;
|
|
27293
27293
|
var init_prompts = __esm({
|
|
27294
27294
|
"../shared/src/prompts.ts"() {
|
|
27295
27295
|
"use strict";
|
|
@@ -27306,17 +27306,17 @@ var init_prompts = __esm({
|
|
|
27306
27306
|
init_slack_response_style();
|
|
27307
27307
|
init_slack_response_style();
|
|
27308
27308
|
REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
|
|
27309
|
-
|
|
27309
|
+
MANAGER_INSTRUCTIONS_TAG = "multitask_instructions";
|
|
27310
27310
|
fenceMarker = (line, open4) => {
|
|
27311
27311
|
const marker = (open4 ? /^ {0,3}(`{3,}|~{3,})[ \t]*$/ : /^ {0,3}(`{3,}|~{3,})/).exec(line)?.[1];
|
|
27312
27312
|
return !open4 || marker?.[0] === open4[0] && marker.length >= open4.length ? marker : void 0;
|
|
27313
27313
|
};
|
|
27314
27314
|
INSTRUCTIONS_OPEN = `<${REPLICAS_INSTRUCTIONS_TAG}>`;
|
|
27315
27315
|
INSTRUCTIONS_CLOSE = `</${REPLICAS_INSTRUCTIONS_TAG}>`;
|
|
27316
|
-
|
|
27316
|
+
MANAGER_EVENT_CHAT_NOTE = `If a message the user typed in this turn is still unanswered, your final reply answers it and they see it. Otherwise they don't see text you write in this turn: if it brings something they asked for, or a blocker that needs them, send it with ${REPLICAS_MCP_TOOLS.sendToChat}; then update the board if its order, notes or overview changed, and end with a one-line note.`;
|
|
27317
27317
|
BOARD_ANSWER_NOTE = "The user answered on the board.";
|
|
27318
27318
|
BOARD_RULES = `- The board in the Ships pane beside this chat is the user's one view of the work. Each task the user asks for is one ticket, with only that task's pull requests. Spawning a ship creates its ticket from the \`title\` and \`task\` you pass. A ship works on one ticket at a time: when you give an existing ship a new, separate task with \`${REPLICAS_MCP_TOOLS.messageSubagent}\`, pass \`title\` so the task gets its own ticket. Pull requests are filed under the ticket their ship was on when it opened them; move one with \`pull_requests\` in \`${REPLICAS_MCP_TOOLS.updateBoard}\` only when that's wrong. Replicas files tickets under Needs you, Ready to review, Working or Done from the ship and the ticket's pull requests. Never restate what a ticket or pull request already shows.
|
|
27319
|
-
- A title says what the task is about, such as "Slack replies in
|
|
27319
|
+
- A title says what the task is about, such as "Slack replies in Manager channels get dropped", never a ship, branch or pull request name. Each ticket also has an issue summary (what was wrong or asked, with its evidence) and a fix summary (what was done, with pull requests as #number). Replicas writes all three from the task, the ship's reports and its pull requests, and ships add to them with \`${REPLICAS_MCP_TOOLS.updateTicket}\`. Correct one with \`${REPLICAS_MCP_TOOLS.updateBoard}\` only when it's wrong.
|
|
27320
27320
|
- You keep the board organized with \`${REPLICAS_MCP_TOOLS.updateBoard}\`: the order of tickets, most important first; one short note per ticket when it adds something the ticket doesn't say, such as "Merge after #12" or "Waiting on REP-40"; and one overview line at the top on where the work as a whole stands. Archive tickets the user no longer needs. When a ship continues another ship's task, pass that ticket's id as \`ticket\` to \`${REPLICAS_MCP_TOOLS.spawnSubagent}\` instead of making a new one.
|
|
27321
27321
|
- Ask the user only for decisions you truly can't make. Make routine calls yourself, such as retries, small scope choices or test cleanup. For a question of your own, create a ticket with it; the user's answer comes to you here, marked "${BOARD_ANSWER_NOTE}". Answers to a ship's questions go straight to that ship.
|
|
27322
27322
|
- A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or ask the user only if you can't decide.
|
|
@@ -27324,9 +27324,9 @@ var init_prompts = __esm({
|
|
|
27324
27324
|
- On every ship event and every answer the user gives on the board, act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board if its order, notes or overview changed. The user sees nothing you write in these turns, unless a message they typed is still unanswered because it arrived during the turn: then your final reply answers it, as in any turn they start. Otherwise the only way to reach them is \`${REPLICAS_MCP_TOOLS.sendToChat}\`. Call it only for what they would want right now: a deliverable they asked for, with its media, links or answer (the finished video, the requested numbers); a failure or blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged", "deploying", "it's on the board" or "I asked the ship to\u2026": the board and the chat's own rows show those. End the turn with a one-line note of what you did; only the activity log shows it.
|
|
27325
27325
|
- The chat is like texting an assistant. In a turn the user typed, they see the text you write between tool calls as it streams, your final reply, what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and your \`${REPLICAS_MCP_TOOLS.setStatus}\` line, never your tool calls. Unless you can answer right away, open with one line on what you'll do first and roughly how long it takes. Then call \`${REPLICAS_MCP_TOOLS.setStatus}\` with a few words on your current step, such as "Reading the billing webhook" or "Checking npm for outdated packages", and call it again each time you move to a new step. Before your final reply, write only what they'd want to know now: a finding that changes the answer, a ship you started, or a decision you need. Never narrate tool calls or say you're still working. When they message you mid-turn, reply to it in one line before anything else, then fold it into your work. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
|
|
27326
27326
|
`;
|
|
27327
|
-
|
|
27328
|
-
|
|
27329
|
-
|
|
27327
|
+
MANAGER_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MANAGER_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MANAGER_INSTRUCTIONS_TAG}>`);
|
|
27328
|
+
MANAGER_TICKET_MESSAGE_NOTE = `The user sent this from your ticket on the Manager's board and reads your answer there, not in this chat. Answer them with \`${REPLICAS_MCP_TOOLS.replyOnTicket}\`: briefly, with a link or screenshot if it helps, and a follow-up question only if you need one. Keep longer work and detail in this chat.`;
|
|
27329
|
+
MANAGER_TICKET_REPLY_NUDGE = `The user is still waiting for your answer on your ticket, and they only read the ticket. Answer them now with \`${REPLICAS_MCP_TOOLS.replyOnTicket}\`, briefly.`;
|
|
27330
27330
|
T = REPLICAS_MCP_TOOLS;
|
|
27331
27331
|
SCOUT_LINEAR_RULES = `Linear issue triage: team instructions define what is actionable. Use \`replicas.linear.graphql\` from \`@replicas/sdk\` for every Linear read and mutation, never a Replicas CLI command. Choose exactly one:
|
|
27332
27332
|
1. **Ignore** issues the team instructions leave to humans or that should not start work: do nothing and write nothing to Linear. If \`agent_session_id\` is set because you asked a question earlier, create a \`response\` Agent Activity on it with one short closing response.
|
|
@@ -27390,12 +27390,12 @@ var init_message_origin = __esm({
|
|
|
27390
27390
|
}
|
|
27391
27391
|
});
|
|
27392
27392
|
|
|
27393
|
-
// ../shared/src/
|
|
27394
|
-
function
|
|
27393
|
+
// ../shared/src/manager-events.ts
|
|
27394
|
+
function extractManagerEvents(text4) {
|
|
27395
27395
|
return [...text4.matchAll(BLOCK)].flatMap((match) => {
|
|
27396
27396
|
const attributes = Object.fromEntries([...match[1].matchAll(ATTRIBUTE)].map(([, key, value]) => [key, unescapeAttribute(value)]));
|
|
27397
27397
|
if (!attributes.kind || !attributes.id || !attributes.agent_id) return [];
|
|
27398
|
-
const kind =
|
|
27398
|
+
const kind = MANAGER_EVENT_KINDS.find((candidate) => candidate === attributes.kind) ?? UNKNOWN_EVENT_KIND;
|
|
27399
27399
|
const [summary, ...rest] = match[2].replaceAll(`<\\/${TAG}`, `</${TAG}`).split("\n\n");
|
|
27400
27400
|
const detail = stripAgentInstructionBlocks(rest.join("\n\n"));
|
|
27401
27401
|
return [{
|
|
@@ -27412,29 +27412,29 @@ function extractMothershipEvents(text4) {
|
|
|
27412
27412
|
}];
|
|
27413
27413
|
});
|
|
27414
27414
|
}
|
|
27415
|
-
function
|
|
27416
|
-
const events =
|
|
27415
|
+
function parseManagerEvents(text4) {
|
|
27416
|
+
const events = extractManagerEvents(text4);
|
|
27417
27417
|
return events.length > 0 && text4.replace(BLOCK, "").replaceAll(MERGED_MESSAGE_SEPARATOR.trim(), "").trim() === "" ? events : null;
|
|
27418
27418
|
}
|
|
27419
|
-
function
|
|
27419
|
+
function stripManagerEventNotes(content) {
|
|
27420
27420
|
return stripInstructionBlocksOutside(content, [...content.matchAll(BLOCK)].map((block) => [block.index, block.index + block[0].length]));
|
|
27421
27421
|
}
|
|
27422
|
-
var
|
|
27423
|
-
var
|
|
27424
|
-
"../shared/src/
|
|
27422
|
+
var MANAGER_EVENT_KINDS, UNKNOWN_EVENT_KIND, MANAGER_EVENT_TYPE, managerEventSchema, TAG, BLOCK, ATTRIBUTE, unescapeAttribute;
|
|
27423
|
+
var init_manager_events = __esm({
|
|
27424
|
+
"../shared/src/manager-events.ts"() {
|
|
27425
27425
|
"use strict";
|
|
27426
27426
|
init_zod();
|
|
27427
27427
|
init_v1();
|
|
27428
27428
|
init_prompts();
|
|
27429
27429
|
init_message_origin();
|
|
27430
27430
|
init_urls();
|
|
27431
|
-
|
|
27431
|
+
MANAGER_EVENT_KINDS = ["finished", "ready", "needs_attention", "approved", "merged", "closed", "archived", "replied"];
|
|
27432
27432
|
UNKNOWN_EVENT_KIND = "update";
|
|
27433
|
-
|
|
27434
|
-
|
|
27433
|
+
MANAGER_EVENT_TYPE = "multitask-event";
|
|
27434
|
+
managerEventSchema = external_exports.object({
|
|
27435
27435
|
id: external_exports.string(),
|
|
27436
27436
|
at: external_exports.string(),
|
|
27437
|
-
kind: external_exports.enum([...
|
|
27437
|
+
kind: external_exports.enum([...MANAGER_EVENT_KINDS, UNKNOWN_EVENT_KIND]),
|
|
27438
27438
|
agentId: external_exports.string(),
|
|
27439
27439
|
agentName: external_exports.string(),
|
|
27440
27440
|
summary: external_exports.string(),
|
|
@@ -35548,17 +35548,17 @@ var init_workspace_target = __esm({
|
|
|
35548
35548
|
}
|
|
35549
35549
|
});
|
|
35550
35550
|
|
|
35551
|
-
// ../shared/src/
|
|
35552
|
-
var
|
|
35553
|
-
var
|
|
35554
|
-
"../shared/src/
|
|
35551
|
+
// ../shared/src/manager-board.ts
|
|
35552
|
+
var MANAGER_TICKET_LIMITS, L, tooLong, text3, clearable, httpsUrl, inlineMarkdown, markdown, linearIdentifier, mediaSchema, questionSchema, managerTicketTitleSchema, managerTicketTaskSchema, managerTicketMediaSchema, managerTicketQuestionsSchema, issueSchema, fixSchema, updateManagerTicketRequestSchema, updateManagerBoardRequestSchema, answerManagerTicketRequestSchema, managerTicketAnswerRefSchema, replyOnManagerTicketRequestSchema, managerTicketReplyRefSchema, managerTicketThreadSchema, LINEAR_ISSUE_SUMMARIES_MAX, linearIssueSummariesRequestSchema;
|
|
35553
|
+
var init_manager_board = __esm({
|
|
35554
|
+
"../shared/src/manager-board.ts"() {
|
|
35555
35555
|
"use strict";
|
|
35556
35556
|
init_zod();
|
|
35557
|
-
|
|
35558
|
-
|
|
35557
|
+
init_manager();
|
|
35558
|
+
init_manager_events();
|
|
35559
35559
|
init_urls();
|
|
35560
35560
|
init_format();
|
|
35561
|
-
|
|
35561
|
+
MANAGER_TICKET_LIMITS = {
|
|
35562
35562
|
title: 80,
|
|
35563
35563
|
task: 1e3,
|
|
35564
35564
|
issue: 1e3,
|
|
@@ -35575,7 +35575,7 @@ var init_mothership_board = __esm({
|
|
|
35575
35575
|
answer: 2e3,
|
|
35576
35576
|
reply: 600
|
|
35577
35577
|
};
|
|
35578
|
-
L =
|
|
35578
|
+
L = MANAGER_TICKET_LIMITS;
|
|
35579
35579
|
tooLong = (max) => `At most ${max} characters. Keep it short; the user should take it in at a glance`;
|
|
35580
35580
|
text3 = (max) => external_exports.string().trim().min(1).max(max, tooLong(max));
|
|
35581
35581
|
clearable = (schema) => external_exports.union([schema, external_exports.literal("")]).optional();
|
|
@@ -35592,25 +35592,25 @@ var init_mothership_board = __esm({
|
|
|
35592
35592
|
question: text3(L.question).describe("One question, with the context needed to answer it."),
|
|
35593
35593
|
options: external_exports.array(text3(L.option)).max(L.options).optional().describe("Up to three answers to pick from, recommended first. The user can always write their own.")
|
|
35594
35594
|
});
|
|
35595
|
-
|
|
35596
|
-
|
|
35597
|
-
|
|
35598
|
-
|
|
35595
|
+
managerTicketTitleSchema = text3(L.title).describe(`What the task is about, in a few plain words, such as "Slack replies in Manager channels get dropped" or "Add CSV export to Analytics". Never a ship, branch or pull request name. At most ${L.title} characters.`);
|
|
35596
|
+
managerTicketTaskSchema = text3(L.task);
|
|
35597
|
+
managerTicketMediaSchema = external_exports.array(mediaSchema);
|
|
35598
|
+
managerTicketQuestionsSchema = external_exports.array(questionSchema.extend({ id: external_exports.string() }));
|
|
35599
35599
|
issueSchema = clearable(text3(L.issue)).describe(`What was wrong or what was asked, in a few plain sentences a busy reader understands: the problem, not the fix. Carry the evidence: Slack and Linear threads as links, customer quotes in quotation marks, and screenshots in \`media\`. ${markdown} At most ${L.issue} characters.`);
|
|
35600
35600
|
fixSchema = clearable(text3(L.fix)).describe(`What was done or is being done about it, with pull requests as #number. Keep it current as the work goes on, and say how it ended once the pull requests land. ${markdown} At most ${L.fix} characters.`);
|
|
35601
|
-
|
|
35602
|
-
title:
|
|
35601
|
+
updateManagerTicketRequestSchema = external_exports.object({
|
|
35602
|
+
title: managerTicketTitleSchema.optional(),
|
|
35603
35603
|
issue: issueSchema,
|
|
35604
35604
|
fix: fixSchema,
|
|
35605
35605
|
media: external_exports.array(mediaSchema).max(L.media).optional().describe(`Screenshots and recordings that show the result, uploaded with \`replicas media upload\`, at most ${L.media}. Replaces the ticket's media.`),
|
|
35606
35606
|
questions: external_exports.array(questionSchema).max(L.questions).optional().describe(`Questions only the user can answer, at most ${L.questions}. Replaces the open ones; pass [] once they are answered. Their answer comes back to you in this chat.`),
|
|
35607
35607
|
blocked: clearable(text3(L.blocked)).describe('Why you cannot go on without the user, such as missing access. "" once unblocked.')
|
|
35608
35608
|
});
|
|
35609
|
-
|
|
35609
|
+
updateManagerBoardRequestSchema = external_exports.object({
|
|
35610
35610
|
overview: clearable(text3(L.overview)).describe(`One line at the top of the board on where the work as a whole stands. "" removes it. At most ${L.overview} characters.`),
|
|
35611
35611
|
tickets: external_exports.array(external_exports.object({
|
|
35612
35612
|
id: external_exports.uuid(),
|
|
35613
|
-
title:
|
|
35613
|
+
title: managerTicketTitleSchema.optional(),
|
|
35614
35614
|
issue: issueSchema,
|
|
35615
35615
|
fix: fixSchema,
|
|
35616
35616
|
pull_requests: external_exports.array(httpsUrl).max(20).optional().describe("Pull request URLs that came out of this ticket's task. They move here from any other ticket. Each pull request is filed under the ticket its ship was working on when it opened it, so pass this only to correct that."),
|
|
@@ -35620,24 +35620,24 @@ var init_mothership_board = __esm({
|
|
|
35620
35620
|
})).max(50).optional().describe("Changes to existing tickets."),
|
|
35621
35621
|
order: external_exports.array(external_exports.uuid()).optional().describe("Ticket ids, most important first. Tickets left out keep their order after these."),
|
|
35622
35622
|
create: external_exports.array(external_exports.object({
|
|
35623
|
-
title:
|
|
35624
|
-
task:
|
|
35623
|
+
title: managerTicketTitleSchema,
|
|
35624
|
+
task: managerTicketTaskSchema.optional(),
|
|
35625
35625
|
issue: text3(L.issue).optional(),
|
|
35626
35626
|
questions: external_exports.array(questionSchema).max(L.questions).optional(),
|
|
35627
35627
|
note: text3(L.note).optional()
|
|
35628
35628
|
})).max(5).optional().describe("Tickets with no ship, for your own questions to the user or work no ship does. Their answers come to you.")
|
|
35629
35629
|
});
|
|
35630
|
-
|
|
35630
|
+
answerManagerTicketRequestSchema = external_exports.object({
|
|
35631
35631
|
questionId: external_exports.string().min(1),
|
|
35632
35632
|
answer: text3(L.answer)
|
|
35633
35633
|
});
|
|
35634
|
-
|
|
35635
|
-
|
|
35634
|
+
managerTicketAnswerRefSchema = external_exports.object({ managerId: external_exports.uuid(), ticketId: external_exports.uuid(), questionId: external_exports.string().min(1) });
|
|
35635
|
+
replyOnManagerTicketRequestSchema = external_exports.object({
|
|
35636
35636
|
reply: text3(L.reply).describe(`Your answer to the user's latest message on the ticket, in a few sentences. ${markdown} Link a screenshot or recording uploaded with \`replicas media upload\` if it helps. At most ${L.reply} characters; keep longer detail in your chat.`),
|
|
35637
35637
|
question: questionSchema.optional().describe("A follow-up question only if you need the user to decide something. It shows on the ticket with its options, and their answer comes back to you.")
|
|
35638
35638
|
});
|
|
35639
|
-
|
|
35640
|
-
|
|
35639
|
+
managerTicketReplyRefSchema = external_exports.object({ ticketId: external_exports.uuid(), text: text3(L.answer) });
|
|
35640
|
+
managerTicketThreadSchema = external_exports.array(external_exports.object({
|
|
35641
35641
|
id: external_exports.string(),
|
|
35642
35642
|
from: external_exports.enum(["user", "ship"]),
|
|
35643
35643
|
name: external_exports.string(),
|
|
@@ -35680,7 +35680,7 @@ var init_user_message_matching = __esm({
|
|
|
35680
35680
|
var init_turns = __esm({
|
|
35681
35681
|
"../shared/src/display-message/turns.ts"() {
|
|
35682
35682
|
"use strict";
|
|
35683
|
-
|
|
35683
|
+
init_manager_events();
|
|
35684
35684
|
init_shell_commands();
|
|
35685
35685
|
init_type_guards();
|
|
35686
35686
|
init_user_message_matching();
|
|
@@ -35690,12 +35690,12 @@ var init_turns = __esm({
|
|
|
35690
35690
|
});
|
|
35691
35691
|
|
|
35692
35692
|
// ../shared/src/display-message/steps.ts
|
|
35693
|
-
var SUBAGENT_STEPS,
|
|
35693
|
+
var SUBAGENT_STEPS, MANAGER_TOOL_ACTIONS, REPLICAS_API_STEPS;
|
|
35694
35694
|
var init_steps = __esm({
|
|
35695
35695
|
"../shared/src/display-message/steps.ts"() {
|
|
35696
35696
|
"use strict";
|
|
35697
35697
|
init_agent();
|
|
35698
|
-
|
|
35698
|
+
init_manager_events();
|
|
35699
35699
|
init_learned_skills();
|
|
35700
35700
|
init_replicas_mcp();
|
|
35701
35701
|
init_type_guards();
|
|
@@ -35709,7 +35709,7 @@ var init_steps = __esm({
|
|
|
35709
35709
|
init_utils();
|
|
35710
35710
|
init_subagent_tools();
|
|
35711
35711
|
init_tool_call();
|
|
35712
|
-
|
|
35712
|
+
init_manager_board();
|
|
35713
35713
|
init_turns();
|
|
35714
35714
|
SUBAGENT_STEPS = {
|
|
35715
35715
|
[SUBAGENT_MCP_TOOLS.messageAgent]: { icon: "message", live: "Messaging", done: "Messaged" },
|
|
@@ -35718,7 +35718,7 @@ var init_steps = __esm({
|
|
|
35718
35718
|
[SUBAGENT_MCP_TOOLS.deleteAgent]: { icon: "trash", live: "Deleting", done: "Deleted" },
|
|
35719
35719
|
[SUBAGENT_MCP_TOOLS.getProviders]: { icon: "list", live: "Listing available providers", done: "Listed available providers" }
|
|
35720
35720
|
};
|
|
35721
|
-
|
|
35721
|
+
MANAGER_TOOL_ACTIONS = {
|
|
35722
35722
|
[REPLICAS_MCP_TOOLS.spawnSubagent]: "spawn",
|
|
35723
35723
|
[REPLICAS_MCP_TOOLS.messageSubagent]: "send",
|
|
35724
35724
|
[REPLICAS_MCP_TOOLS.listSubagents]: "list",
|
|
@@ -35772,7 +35772,7 @@ var init_quiet = __esm({
|
|
|
35772
35772
|
init_urls();
|
|
35773
35773
|
init_workspace_target();
|
|
35774
35774
|
init_format2();
|
|
35775
|
-
|
|
35775
|
+
init_manager_events();
|
|
35776
35776
|
init_steps();
|
|
35777
35777
|
init_turns();
|
|
35778
35778
|
}
|
|
@@ -38526,8 +38526,8 @@ function applyInterruptions(messages, events) {
|
|
|
38526
38526
|
function applyEngineNotices(messages, events) {
|
|
38527
38527
|
const notices = [];
|
|
38528
38528
|
events.forEach((event, index) => {
|
|
38529
|
-
if (event.type ===
|
|
38530
|
-
const parsed = typeof event.payload.text === "string" ?
|
|
38529
|
+
if (event.type === MANAGER_EVENT_TYPE) {
|
|
38530
|
+
const parsed = typeof event.payload.text === "string" ? parseManagerEvents(event.payload.text) : null;
|
|
38531
38531
|
if (parsed) notices.push({ id: `multitask-event-${event.timestamp}-${index}`, type: "multitask_event", events: parsed, timestamp: event.timestamp });
|
|
38532
38532
|
return;
|
|
38533
38533
|
}
|
|
@@ -38579,7 +38579,7 @@ function filterDisplayMessages(messages, provider2) {
|
|
|
38579
38579
|
if (msg.type !== "user") return [msg];
|
|
38580
38580
|
let stripped = strippedUserContents.get(msg.content);
|
|
38581
38581
|
if (!stripped) {
|
|
38582
|
-
stripped = stripAttachmentNote(
|
|
38582
|
+
stripped = stripAttachmentNote(stripManagerEventNotes(msg.content));
|
|
38583
38583
|
if (strippedUserContents.size >= 5e3) strippedUserContents.clear();
|
|
38584
38584
|
strippedUserContents.set(msg.content, stripped);
|
|
38585
38585
|
}
|
|
@@ -38608,7 +38608,7 @@ var init_parsers = __esm({
|
|
|
38608
38608
|
"../shared/src/display-message/parsers/index.ts"() {
|
|
38609
38609
|
"use strict";
|
|
38610
38610
|
init_event();
|
|
38611
|
-
|
|
38611
|
+
init_manager_events();
|
|
38612
38612
|
init_prompts();
|
|
38613
38613
|
init_message_origin();
|
|
38614
38614
|
init_user_message_attachments();
|
|
@@ -38723,7 +38723,7 @@ var init_codex_history = __esm({
|
|
|
38723
38723
|
"../shared/src/codex-history.ts"() {
|
|
38724
38724
|
"use strict";
|
|
38725
38725
|
init_json();
|
|
38726
|
-
|
|
38726
|
+
init_manager_events();
|
|
38727
38727
|
init_event();
|
|
38728
38728
|
init_v1();
|
|
38729
38729
|
init_agent_event_utils();
|
|
@@ -38801,7 +38801,7 @@ var init_metadata_pills = __esm({
|
|
|
38801
38801
|
"../shared/src/user-message-parser/metadata-pills.ts"() {
|
|
38802
38802
|
"use strict";
|
|
38803
38803
|
init_agent();
|
|
38804
|
-
|
|
38804
|
+
init_manager_events();
|
|
38805
38805
|
init_message_origin();
|
|
38806
38806
|
init_prompts();
|
|
38807
38807
|
init_user_message_attachments();
|
|
@@ -38853,7 +38853,7 @@ var init_transcript_condense = __esm({
|
|
|
38853
38853
|
BENIGN_RE = new RegExp(`${NOT_BEFORE}0\\s+(?:fail${W}*|errors?)${NOT_AFTER}|${NOT_BEFORE}no errors?${NOT_AFTER}|${NOT_BEFORE}errors?:\\s*0${NOT_AFTER}|${NOT_BEFORE}fail(?:ed|ures)?:\\s*0${NOT_AFTER}|${NOT_BEFORE}0 failed${NOT_AFTER}`, "giu");
|
|
38854
38854
|
OPENERS_RE = new RegExp(`^(done|all done|all set|fixed|pushed|merged|complete|completed|finished|yes|no|sure|ok|okay|got it|great|perfect|thanks|thank you|sounds good|on it|here you go|here it is|updated|sorry|my mistake|good catch|you(?:'re| are| were) right)${NOT_AFTER}[^.!?]{0,24}[.!?:]?$`, "iu");
|
|
38855
38855
|
GENERIC_CHAT_TITLE = new RegExp(
|
|
38856
|
-
`^(?:forked from [^\\n]*|(?:claude code|claude|codex|relay|pi|opencode|cursor|gemini|amp|droid|mothership|agent|chat|new chat|new session|untitled(?: session| chat)?|session|slack|linear(?: \xB7 [^\\n]*)?|#[\\p{L}\\p{N}_.\\-]+|[^\\n]+ \\(dm\\)|pr #\\d+ fixes)(?: \\(${W}+\\))*(?: \\d+)?)$`,
|
|
38856
|
+
`^(?:forked from [^\\n]*|(?:claude code|claude|codex|relay|pi|opencode|cursor|gemini|amp|droid|manager|mothership|agent|chat|new chat|new session|untitled(?: session| chat)?|session|slack|linear(?: \xB7 [^\\n]*)?|#[\\p{L}\\p{N}_.\\-]+|[^\\n]+ \\(dm\\)|pr #\\d+ fixes)(?: \\(${W}+\\))*(?: \\d+)?)$`,
|
|
38857
38857
|
"iu"
|
|
38858
38858
|
);
|
|
38859
38859
|
}
|
|
@@ -39668,7 +39668,7 @@ var CLI_VERSION;
|
|
|
39668
39668
|
var init_cli_version = __esm({
|
|
39669
39669
|
"../shared/src/cli-version.ts"() {
|
|
39670
39670
|
"use strict";
|
|
39671
|
-
CLI_VERSION = "0.3.
|
|
39671
|
+
CLI_VERSION = "0.3.486";
|
|
39672
39672
|
}
|
|
39673
39673
|
});
|
|
39674
39674
|
|
|
@@ -40006,7 +40006,7 @@ var init_slack2 = __esm({
|
|
|
40006
40006
|
});
|
|
40007
40007
|
|
|
40008
40008
|
// ../shared/src/routes/scout.ts
|
|
40009
|
-
var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, scoutRouteLinearTicketRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackMessageReferenceSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutSlackStopWorkspaceRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSettingsConfirmationSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema,
|
|
40009
|
+
var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, scoutRouteLinearTicketRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackMessageReferenceSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutSlackStopWorkspaceRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSettingsConfirmationSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema, managerSlackChannelLevelToolInputSchema, scoutSetSlackConnectMutedToolInputSchema, scoutSetSlackConnectDefaultsToolInputSchema, scoutSetOrganizationProactivityToolInputSchema, scoutDeleteChannelPresetToolInputSchema, RESET_TO_DEFAULT, resettable, scoutSetSlackAgentDefaultsToolInputSchema, scoutClaimSettingsOfferToolInputSchema;
|
|
40010
40010
|
var init_scout2 = __esm({
|
|
40011
40011
|
"../shared/src/routes/scout.ts"() {
|
|
40012
40012
|
"use strict";
|
|
@@ -40028,8 +40028,9 @@ var init_scout2 = __esm({
|
|
|
40028
40028
|
scoutRouteLinearTicketRequestSchema = external_exports.object({
|
|
40029
40029
|
agent_session_id: external_exports.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
|
|
40030
40030
|
environment_id: external_exports.string().trim().min(1).optional().describe("Start the ticket in this environment."),
|
|
40031
|
-
|
|
40032
|
-
|
|
40031
|
+
manager_id: external_exports.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead."),
|
|
40032
|
+
mothership_id: external_exports.string().trim().min(1).optional().describe("Old name of `manager_id`.")
|
|
40033
|
+
}).refine((args) => !(args.environment_id && (args.manager_id || args.mothership_id)), "Pass environment_id or manager_id, not both.");
|
|
40033
40034
|
slackChannelIdSchema = external_exports.string().describe("Slack channel id from the envelope's `channel_id`.");
|
|
40034
40035
|
slackThreadTsSchema = external_exports.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
|
|
40035
40036
|
scoutSlackMessageReferenceSchema = external_exports.object({
|
|
@@ -40058,7 +40059,7 @@ var init_scout2 = __esm({
|
|
|
40058
40059
|
message: external_exports.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."),
|
|
40059
40060
|
user_id: external_exports.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`."),
|
|
40060
40061
|
queue: external_exports.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."),
|
|
40061
|
-
workspace_id: external_exports.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
|
|
40062
|
+
workspace_id: external_exports.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 Manager 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 Manager's channel, nothing is bound: the workspace or Manager 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.`),
|
|
40062
40063
|
message_ts: external_exports.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.")
|
|
40063
40064
|
});
|
|
40064
40065
|
scoutSlackSetThreadMutedRequestSchema = external_exports.object({
|
|
@@ -40074,7 +40075,7 @@ var init_scout2 = __esm({
|
|
|
40074
40075
|
thread_ts: slackThreadTsSchema,
|
|
40075
40076
|
message_ts: external_exports.string().describe("The envelope's `message_ts`. The server verifies this message and its author."),
|
|
40076
40077
|
user_id: external_exports.string().describe("Slack user id of that message's author (the envelope's `user_id`). Only workspaces they can see are listed."),
|
|
40077
|
-
query: external_exports.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and
|
|
40078
|
+
query: external_exports.string().trim().min(1).optional().describe("Case-insensitive text to match against workspace and Manager names and pull request URLs.")
|
|
40078
40079
|
});
|
|
40079
40080
|
scoutSlackConfirmationSchema = external_exports.object({
|
|
40080
40081
|
confirmation_channel_id: external_exports.string().describe("`channel_id` from the envelope of the Slack message that asked for or accepted this."),
|
|
@@ -40103,8 +40104,8 @@ var init_scout2 = __esm({
|
|
|
40103
40104
|
silent: external_exports.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.`),
|
|
40104
40105
|
muted: external_exports.enum(["on", "off", "default"]).optional().describe("Kept for older callers; prefer `silent`.")
|
|
40105
40106
|
});
|
|
40106
|
-
|
|
40107
|
-
proactivity: scoutUpdateChannelSettingsToolInputSchema.shape.proactivity.unwrap().describe("This channel's own level. `organization` makes it follow the organization's level again, which a
|
|
40107
|
+
managerSlackChannelLevelToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
40108
|
+
proactivity: scoutUpdateChannelSettingsToolInputSchema.shape.proactivity.unwrap().describe("This channel's own level. `organization` makes it follow the organization's level again, which a Manager's channel raises to at least `balanced`.")
|
|
40108
40109
|
});
|
|
40109
40110
|
scoutSetSlackConnectMutedToolInputSchema = scoutSettingsConfirmationSchema.extend({
|
|
40110
40111
|
muted: external_exports.boolean().describe("`true` puts every Slack Connect channel without its own setting in silent mode; `false` lets them follow their levels again.")
|
|
@@ -50300,14 +50301,14 @@ var init_desktop = __esm({
|
|
|
50300
50301
|
});
|
|
50301
50302
|
|
|
50302
50303
|
// ../shared/src/workspace-alerts.ts
|
|
50303
|
-
var
|
|
50304
|
+
var MANAGER_RELAY_WINDOW_MS;
|
|
50304
50305
|
var init_workspace_alerts = __esm({
|
|
50305
50306
|
"../shared/src/workspace-alerts.ts"() {
|
|
50306
50307
|
"use strict";
|
|
50307
|
-
|
|
50308
|
+
init_manager_events();
|
|
50308
50309
|
init_workspaces();
|
|
50309
50310
|
init_urls();
|
|
50310
|
-
|
|
50311
|
+
MANAGER_RELAY_WINDOW_MS = 5 * 6e4;
|
|
50311
50312
|
}
|
|
50312
50313
|
});
|
|
50313
50314
|
|
|
@@ -50362,7 +50363,7 @@ var init_workspace_sidebar_state = __esm({
|
|
|
50362
50363
|
};
|
|
50363
50364
|
QUIET_SETTLED_MS = 3 * 24 * 60 * 6e4;
|
|
50364
50365
|
WORKSPACE_LIST_SECTION_LABELS = {
|
|
50365
|
-
motherships: "
|
|
50366
|
+
motherships: "Managers",
|
|
50366
50367
|
needs: "Needs you",
|
|
50367
50368
|
pinned: "Pinned",
|
|
50368
50369
|
...WORKSPACE_STAGE_LABELS
|
|
@@ -50659,7 +50660,7 @@ var init_src = __esm({
|
|
|
50659
50660
|
init_slash_commands();
|
|
50660
50661
|
init_keyboard_shortcuts();
|
|
50661
50662
|
init_prompts();
|
|
50662
|
-
|
|
50663
|
+
init_manager_events();
|
|
50663
50664
|
init_message_origin();
|
|
50664
50665
|
init_user_message_attachments();
|
|
50665
50666
|
init_quote_match();
|
|
@@ -50737,7 +50738,7 @@ var init_src = __esm({
|
|
|
50737
50738
|
init_themes();
|
|
50738
50739
|
init_client_state();
|
|
50739
50740
|
init_workspaces();
|
|
50740
|
-
|
|
50741
|
+
init_manager();
|
|
50741
50742
|
init_pixel_crew();
|
|
50742
50743
|
init_workspace_events();
|
|
50743
50744
|
init_presence();
|
|
@@ -50802,7 +50803,7 @@ var init_src = __esm({
|
|
|
50802
50803
|
init_local_control_requests();
|
|
50803
50804
|
init_api_casing();
|
|
50804
50805
|
init_websocket_liveness();
|
|
50805
|
-
|
|
50806
|
+
init_manager_board();
|
|
50806
50807
|
init_workspace_target();
|
|
50807
50808
|
}
|
|
50808
50809
|
});
|