replicas-cli 0.3.256 → 0.3.257
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 +30 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17284,6 +17284,8 @@ var init_replicas_mcp = __esm({
|
|
|
17284
17284
|
deleteChannelPreset: "delete_channel_preset",
|
|
17285
17285
|
updateChannelSettings: "update_channel_settings",
|
|
17286
17286
|
setOrganizationProactivity: "set_organization_proactivity",
|
|
17287
|
+
setSlackAgentDefaults: "set_slack_agent_defaults",
|
|
17288
|
+
claimSettingsOffer: "claim_settings_offer",
|
|
17287
17289
|
setThreadMuted: "set_thread_muted",
|
|
17288
17290
|
spawnSubagent: "spawn_subagent",
|
|
17289
17291
|
messageSubagent: "message_subagent",
|
|
@@ -17354,13 +17356,14 @@ var init_replicas_mcp = __esm({
|
|
|
17354
17356
|
});
|
|
17355
17357
|
|
|
17356
17358
|
// ../shared/src/scout.ts
|
|
17357
|
-
var SCOUT_SOURCE_TYPES, SCOUT_PROACTIVITY_LEVELS, SCOUT_PRESET_NAME_MAX_LENGTH, SCOUT_PRESET_ICONS;
|
|
17359
|
+
var SCOUT_SOURCE_TYPES, SCOUT_PROACTIVITY_LEVELS, SCOUT_PRESET_NAME_MAX_LENGTH, SCOUT_SETTINGS_OFFERS, SCOUT_PRESET_ICONS;
|
|
17358
17360
|
var init_scout = __esm({
|
|
17359
17361
|
"../shared/src/scout.ts"() {
|
|
17360
17362
|
"use strict";
|
|
17361
17363
|
SCOUT_SOURCE_TYPES = ["slack", "linear"];
|
|
17362
17364
|
SCOUT_PROACTIVITY_LEVELS = ["tagged", "conservative", "balanced", "proactive"];
|
|
17363
17365
|
SCOUT_PRESET_NAME_MAX_LENGTH = 50;
|
|
17366
|
+
SCOUT_SETTINGS_OFFERS = ["proactivity", "instructions", "organization_proactivity"];
|
|
17364
17367
|
SCOUT_PRESET_ICONS = [
|
|
17365
17368
|
"users",
|
|
17366
17369
|
"user",
|
|
@@ -20425,7 +20428,7 @@ function removeTag(text3, tag) {
|
|
|
20425
20428
|
function stripReplicasInstructionBlock(text3) {
|
|
20426
20429
|
return removeTag(text3, REPLICAS_INSTRUCTIONS_TAG);
|
|
20427
20430
|
}
|
|
20428
|
-
var REPLICAS_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_BLOCK;
|
|
20431
|
+
var REPLICAS_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_TAG, MOTHERSHIP_INSTRUCTIONS_BLOCK, SCOUT_ADAPTIVE_SETTINGS_PROMPT;
|
|
20429
20432
|
var init_prompts = __esm({
|
|
20430
20433
|
"../shared/src/prompts.ts"() {
|
|
20431
20434
|
"use strict";
|
|
@@ -20442,6 +20445,13 @@ var init_prompts = __esm({
|
|
|
20442
20445
|
REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
|
|
20443
20446
|
MOTHERSHIP_INSTRUCTIONS_TAG = "multitask_instructions";
|
|
20444
20447
|
MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
|
|
20448
|
+
SCOUT_ADAPTIVE_SETTINGS_PROMPT = `### Adapting to each channel
|
|
20449
|
+
There is no settings page: people change how you behave by telling you, and you suggest a change when it would clearly help. The envelope carries the channel's \`proactivity\` and \`offers\`, the offers you may still make in this channel (\`proactivity\`, \`instructions\`); \`offers=none\` means make none. Offer only what \`offers\` lists, at most one per message. Claim an offer with \`${REPLICAS_MCP_TOOLS.claimSettingsOffer}\` right before posting it, and post it only when the claim succeeds. When someone declines ("no", "it's fine", "leave it"), record it with \`declined: true\` and drop it; never repeat an ignored offer. When they accept, apply it with the settings tools using the accepting message as confirmation, then confirm what changed in one short line.
|
|
20450
|
+
- **Frustration.** When someone is clearly annoyed that you replied or acted unasked ("wtf why did replicas respond", "stop", "not you", "nobody asked", or \`event=reaction:\u2026\`, a thumbs-down or similar on a reply you posted unasked), claim \`proactivity\` and post one short apology that offers to lower this channel exactly one step. From Balanced or High, offer Low: "Sorry for jumping in. Want me to only reply here when someone mentions me by name?" From Low, offer Mentions only: "Sorry for jumping in. Want me to only reply here when someone @mentions me?" On a yes, set the level you offered, nothing lower. Do nothing else in that thread. When the claim answers \`offer: organization\`, people were frustrated in several channels, so offer the same for every channel instead; when \`requester_is_admin\` is false, say an organization admin can change it for every channel and offer this channel. A thumbs-down on a reply someone asked for is about the answer, not about speaking up, so leave it. An explicit "stop replying in this thread" is still a thread mute.
|
|
20451
|
+
- **Channel instructions.** On \`event=joined\` (you were just added to the channel; reply in that envelope's thread), or when you act in a channel for the first time, and the channel's 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, such as "This looks like an incident channel. Want me to triage new reports here, check for duplicates, and post findings in the thread?" On \`event=joined\` without a clear role, do nothing at all. Make the same kind of offer when you notice you keep handling messages here the same way, or that the channel clearly belongs to a Mothership (offer to send its actionable messages to that Mothership by name). On a yes, save it as the channel's instructions, or as its preset when one fits exactly.
|
|
20452
|
+
- **Tip.** When the envelope has \`tip=true\`, this is the first time someone pinged you in this channel, so end the reply you post with one more line: "_Tip: tell me how you want me to act in this channel._" It is shown once per channel, so never add it otherwise.
|
|
20453
|
+
- **Slack agent defaults.** To change the agent, model, thinking level, goal mode or fast mode used for tasks started from Slack ("use Codex for Slack tasks"), call \`${REPLICAS_MCP_TOOLS.setSlackAgentDefaults}\`; only an organization admin can.
|
|
20454
|
+
- **What can I change?** Read the current settings, then answer with a short list of what applies: how much you speak up here or in every channel (Mentions only, Low, Balanced, High; raising a channel above Mentions only and the every-channel default need an admin), instructions or a preset for this channel, sending this channel's requests to a Mothership, which Linear teams you triage (an admin starts one), and the agent defaults for Slack tasks (admin). Say each one's current value.`;
|
|
20445
20455
|
}
|
|
20446
20456
|
});
|
|
20447
20457
|
|
|
@@ -31525,7 +31535,7 @@ var CLI_VERSION;
|
|
|
31525
31535
|
var init_cli_version = __esm({
|
|
31526
31536
|
"../shared/src/cli-version.ts"() {
|
|
31527
31537
|
"use strict";
|
|
31528
|
-
CLI_VERSION = "0.3.
|
|
31538
|
+
CLI_VERSION = "0.3.257";
|
|
31529
31539
|
}
|
|
31530
31540
|
});
|
|
31531
31541
|
|
|
@@ -31802,12 +31812,13 @@ var init_slack2 = __esm({
|
|
|
31802
31812
|
});
|
|
31803
31813
|
|
|
31804
31814
|
// ../shared/src/routes/scout.ts
|
|
31805
|
-
var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema, scoutSetOrganizationProactivityToolInputSchema, scoutDeleteChannelPresetToolInputSchema;
|
|
31815
|
+
var SCOUT_LINEAR_ACTIONS, scoutLinearSessionIntentRequestSchema, scoutLinearStartRequestSchema, slackChannelIdSchema, slackThreadTsSchema, scoutSlackSpawnRequestSchema, scoutSlackSpawnInNewThreadRequestSchema, scoutSlackRelayRequestSchema, scoutSlackSetThreadMutedRequestSchema, scoutListWorkspacesRequestSchema, scoutSlackConfirmationSchema, scoutAutomationToolInputSchema, scoutSaveChannelPresetToolInputSchema, scoutUpdateChannelSettingsToolInputSchema, scoutSetOrganizationProactivityToolInputSchema, scoutDeleteChannelPresetToolInputSchema, RESET_TO_DEFAULT, resettable, scoutSetSlackAgentDefaultsToolInputSchema, scoutClaimSettingsOfferToolInputSchema;
|
|
31806
31816
|
var init_scout2 = __esm({
|
|
31807
31817
|
"../shared/src/routes/scout.ts"() {
|
|
31808
31818
|
"use strict";
|
|
31809
31819
|
init_zod();
|
|
31810
31820
|
init_scout();
|
|
31821
|
+
init_agent();
|
|
31811
31822
|
init_replicas_mcp();
|
|
31812
31823
|
init_type_guards();
|
|
31813
31824
|
SCOUT_LINEAR_ACTIONS = ["ask", "start"];
|
|
@@ -31885,6 +31896,21 @@ var init_scout2 = __esm({
|
|
|
31885
31896
|
scoutDeleteChannelPresetToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
31886
31897
|
preset_id: external_exports.string().describe(`Id of the preset to delete, from \`${REPLICAS_MCP_TOOLS.listChannelSettings}\`.`)
|
|
31887
31898
|
});
|
|
31899
|
+
RESET_TO_DEFAULT = "default";
|
|
31900
|
+
resettable = (schema, description) => external_exports.union([schema, external_exports.literal(RESET_TO_DEFAULT)]).optional().describe(`${description} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
|
|
31901
|
+
scoutSetSlackAgentDefaultsToolInputSchema = scoutSlackConfirmationSchema.extend({
|
|
31902
|
+
agent_provider: resettable(external_exports.enum(AGENT), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
|
|
31903
|
+
model: resettable(external_exports.string(), "Model id for that agent; the default is the agent's own."),
|
|
31904
|
+
thinking_level: resettable(external_exports.enum(VALID_THINKING_LEVELS), "Thinking level."),
|
|
31905
|
+
goal_mode: resettable(external_exports.boolean(), "Goal mode."),
|
|
31906
|
+
fast_mode: resettable(external_exports.boolean(), "Fast mode.")
|
|
31907
|
+
});
|
|
31908
|
+
scoutClaimSettingsOfferToolInputSchema = external_exports.object({
|
|
31909
|
+
channel_id: slackChannelIdSchema,
|
|
31910
|
+
kind: external_exports.enum(SCOUT_SETTINGS_OFFERS).describe("`proactivity`: offering a lower level after frustration. `instructions`: offering channel instructions or a preset. `organization_proactivity`: offering to lower the workspace default; only decline it, the server claims it for you."),
|
|
31911
|
+
user_id: external_exports.string().optional().describe("The envelope's `user_id`. Required for `proactivity`, so the server can say whether they are an organization admin."),
|
|
31912
|
+
declined: external_exports.boolean().optional().describe("true when the person declined an offer you already made, so it is not made again.")
|
|
31913
|
+
});
|
|
31888
31914
|
}
|
|
31889
31915
|
});
|
|
31890
31916
|
|