replicas-cli 0.3.472 → 0.3.474
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 +1067 -1046
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21775,7 +21775,7 @@ function workspaceConfigWithCapabilities(config3, capabilities = {}) {
|
|
|
21775
21775
|
function workspaceConfigWithPrFollowups(config3, prFollowups = config3?.capabilities?.pr_followups === true) {
|
|
21776
21776
|
return workspaceConfigWithCapabilities(config3, { pr_followups: prFollowups });
|
|
21777
21777
|
}
|
|
21778
|
-
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21778
|
+
var WORKSPACE_STATUSES, SUPPORT_EMAIL, WORKSPACE_SANDBOX_LOST_MESSAGE, STALE_PREPARING_MS, WORKSPACE_PAUSED_COPY, WORKSPACE_KINDS, WORKSPACE_SIDEBAR_VIEWS, WORKSPACE_STATUS_FILTERS, DEFAULT_STATUS_FILTERS, DEFAULT_WORKSPACE_FILTERS, ONE_DAY_MS, describeWorkspaceAccess, workspaceExecRequestSchema, terminalRtcCandidateSchema, terminalSocketServerMessageSchema;
|
|
21779
21779
|
var init_workspaces = __esm({
|
|
21780
21780
|
"../shared/src/routes/workspaces.ts"() {
|
|
21781
21781
|
"use strict";
|
|
@@ -21799,6 +21799,7 @@ var init_workspaces = __esm({
|
|
|
21799
21799
|
line: "This workspace was paused because your organization reached its usage limit for this period. An admin can raise or remove it in billing settings."
|
|
21800
21800
|
}
|
|
21801
21801
|
};
|
|
21802
|
+
WORKSPACE_KINDS = ["standard", "mothership", "scout"];
|
|
21802
21803
|
WORKSPACE_SIDEBAR_VIEWS = ["owned", "shared", "team", "automated"];
|
|
21803
21804
|
WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
|
|
21804
21805
|
DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
|
|
@@ -23420,816 +23421,70 @@ var init_environment = __esm({
|
|
|
23420
23421
|
}
|
|
23421
23422
|
});
|
|
23422
23423
|
|
|
23423
|
-
// ../shared/src/
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
return "Path is required.";
|
|
23428
|
-
}
|
|
23429
|
-
if (!trimmedPath.startsWith(HOME_PREFIX)) {
|
|
23430
|
-
return `Path must start with the home-directory prefix ~/ . ${ENVIRONMENT_FILE_PATH_GUIDANCE}`.replace("~/ .", "~/");
|
|
23431
|
-
}
|
|
23432
|
-
if (trimmedPath === HOME_PREFIX) {
|
|
23433
|
-
return "Path must include a file name after ~/.";
|
|
23434
|
-
}
|
|
23435
|
-
return null;
|
|
23436
|
-
}
|
|
23437
|
-
var HOME_PREFIX, ENVIRONMENT_FILE_PATH_GUIDANCE;
|
|
23438
|
-
var init_environment_files = __esm({
|
|
23439
|
-
"../shared/src/environment-files.ts"() {
|
|
23440
|
-
"use strict";
|
|
23441
|
-
HOME_PREFIX = "~/";
|
|
23442
|
-
ENVIRONMENT_FILE_PATH_GUIDANCE = "Use ~/... for home-directory files, or ~/workspaces/... for files that should live alongside your cloned repositories.";
|
|
23443
|
-
}
|
|
23444
|
-
});
|
|
23445
|
-
|
|
23446
|
-
// ../shared/src/routes/plugin-catalog.ts
|
|
23447
|
-
var EXPLICIT_PLUGIN_CATALOG, HOSTED_COMPOSIO_PLUGIN_DEFINITIONS, HOSTED_COMPOSIO_PLUGINS, READ_ONLY_SCOPES, PLUGIN_CATALOG;
|
|
23448
|
-
var init_plugin_catalog = __esm({
|
|
23449
|
-
"../shared/src/routes/plugin-catalog.ts"() {
|
|
23450
|
-
"use strict";
|
|
23451
|
-
EXPLICIT_PLUGIN_CATALOG = [
|
|
23452
|
-
{
|
|
23453
|
-
id: "attio",
|
|
23454
|
-
backend: "composio",
|
|
23455
|
-
toolkit: "attio",
|
|
23456
|
-
authType: "oauth",
|
|
23457
|
-
category: "business",
|
|
23458
|
-
name: "Attio",
|
|
23459
|
-
description: "Manage CRM records, people, companies, lists, and notes."
|
|
23460
|
-
},
|
|
23461
|
-
{
|
|
23462
|
-
id: "calendly",
|
|
23463
|
-
backend: "composio",
|
|
23464
|
-
toolkit: "calendly",
|
|
23465
|
-
authType: "oauth",
|
|
23466
|
-
category: "productivity",
|
|
23467
|
-
name: "Calendly",
|
|
23468
|
-
description: "Manage event types, scheduled events, invitees, and scheduling links."
|
|
23469
|
-
},
|
|
23470
|
-
{
|
|
23471
|
-
id: "clickhouse",
|
|
23472
|
-
backend: "composio",
|
|
23473
|
-
toolkit: "clickhouse",
|
|
23474
|
-
authType: "basic",
|
|
23475
|
-
category: "data",
|
|
23476
|
-
name: "ClickHouse",
|
|
23477
|
-
description: "Manage databases, tables, schemas, and queries."
|
|
23478
|
-
},
|
|
23479
|
-
{
|
|
23480
|
-
id: "cloudflare",
|
|
23481
|
-
backend: "composio",
|
|
23482
|
-
toolkit: "cloudflare_api_key",
|
|
23483
|
-
authType: "api_key",
|
|
23484
|
-
category: "data",
|
|
23485
|
-
name: "Cloudflare",
|
|
23486
|
-
description: "Manage zones, DNS records, analytics, and security settings."
|
|
23487
|
-
},
|
|
23488
|
-
{
|
|
23489
|
-
id: "e2b",
|
|
23490
|
-
toolkit: "e2b",
|
|
23491
|
-
backend: "native",
|
|
23492
|
-
authType: "api_key",
|
|
23493
|
-
category: "data",
|
|
23494
|
-
name: "E2B",
|
|
23495
|
-
description: "Create secure cloud sandboxes and run commands in them."
|
|
23496
|
-
},
|
|
23497
|
-
{
|
|
23498
|
-
id: "gmail",
|
|
23499
|
-
backend: "composio",
|
|
23500
|
-
toolkit: "gmail",
|
|
23501
|
-
authType: "oauth",
|
|
23502
|
-
category: "productivity",
|
|
23503
|
-
name: "Gmail",
|
|
23504
|
-
description: "Manage messages, threads, attachments, labels, and mailbox settings."
|
|
23505
|
-
},
|
|
23506
|
-
{
|
|
23507
|
-
id: "greptile",
|
|
23508
|
-
backend: "native",
|
|
23509
|
-
toolkit: "greptile",
|
|
23510
|
-
authType: "api_key",
|
|
23511
|
-
category: "data",
|
|
23512
|
-
name: "Greptile Knowledge Base",
|
|
23513
|
-
description: "Search and read self-updating codebase documentation, architecture, and flows."
|
|
23514
|
-
},
|
|
23515
|
-
{
|
|
23516
|
-
id: "googleads",
|
|
23517
|
-
backend: "composio",
|
|
23518
|
-
toolkit: "googleads",
|
|
23519
|
-
authType: "oauth",
|
|
23520
|
-
category: "data",
|
|
23521
|
-
name: "Google Ads",
|
|
23522
|
-
description: "Manage campaigns, customers, accounts, and reporting data."
|
|
23523
|
-
},
|
|
23524
|
-
{
|
|
23525
|
-
id: "googledocs",
|
|
23526
|
-
backend: "composio",
|
|
23527
|
-
toolkit: "googledocs",
|
|
23528
|
-
authType: "oauth",
|
|
23529
|
-
category: "productivity",
|
|
23530
|
-
name: "Google Docs",
|
|
23531
|
-
description: "Manage documents, structure, comments, and exported content."
|
|
23532
|
-
},
|
|
23533
|
-
{
|
|
23534
|
-
id: "googledrive",
|
|
23535
|
-
backend: "composio",
|
|
23536
|
-
toolkit: "googledrive",
|
|
23537
|
-
authType: "oauth",
|
|
23538
|
-
category: "productivity",
|
|
23539
|
-
name: "Google Drive",
|
|
23540
|
-
description: "Manage files, folders, metadata, permissions, and shared drives."
|
|
23541
|
-
},
|
|
23542
|
-
{
|
|
23543
|
-
id: "googlesearch",
|
|
23544
|
-
backend: "composio",
|
|
23545
|
-
toolkit: "google_search_console",
|
|
23546
|
-
authType: "oauth",
|
|
23547
|
-
category: "data",
|
|
23548
|
-
name: "Google Search",
|
|
23549
|
-
description: "Manage Search Console performance, indexing, sites, and sitemaps."
|
|
23550
|
-
},
|
|
23551
|
-
{
|
|
23552
|
-
id: "googlesheets",
|
|
23553
|
-
backend: "composio",
|
|
23554
|
-
toolkit: "googlesheets",
|
|
23555
|
-
authType: "oauth",
|
|
23556
|
-
category: "productivity",
|
|
23557
|
-
name: "Google Sheets",
|
|
23558
|
-
description: "Manage spreadsheets, worksheets, ranges, tables, and charts."
|
|
23559
|
-
},
|
|
23560
|
-
{
|
|
23561
|
-
id: "linkedin",
|
|
23562
|
-
backend: "composio",
|
|
23563
|
-
toolkit: "linkedin",
|
|
23564
|
-
authType: "oauth",
|
|
23565
|
-
category: "business",
|
|
23566
|
-
name: "LinkedIn",
|
|
23567
|
-
description: "Manage profiles, organizations, posts, and professional activity."
|
|
23568
|
-
},
|
|
23569
|
-
{
|
|
23570
|
-
id: "modal",
|
|
23571
|
-
backend: "native",
|
|
23572
|
-
toolkit: "modal",
|
|
23573
|
-
authType: "basic",
|
|
23574
|
-
category: "data",
|
|
23575
|
-
name: "Modal",
|
|
23576
|
-
description: "Invoke deployed functions through Modal compute."
|
|
23577
|
-
},
|
|
23578
|
-
{
|
|
23579
|
-
id: "posthog",
|
|
23580
|
-
backend: "composio",
|
|
23581
|
-
toolkit: "posthog",
|
|
23582
|
-
authType: "api_key",
|
|
23583
|
-
category: "data",
|
|
23584
|
-
name: "PostHog",
|
|
23585
|
-
description: "Manage projects, events, insights, dashboards, flags, and recordings."
|
|
23586
|
-
},
|
|
23587
|
-
{
|
|
23588
|
-
id: "planetscale",
|
|
23589
|
-
toolkit: "planetscale",
|
|
23590
|
-
backend: "native",
|
|
23591
|
-
authType: "oauth",
|
|
23592
|
-
category: "data",
|
|
23593
|
-
name: "PlanetScale",
|
|
23594
|
-
description: "Manage organizations, databases, branches, deploy requests, and Insights."
|
|
23595
|
-
},
|
|
23596
|
-
{
|
|
23597
|
-
id: "sazabi",
|
|
23598
|
-
backend: "native",
|
|
23599
|
-
toolkit: "sazabi",
|
|
23600
|
-
authType: "oauth",
|
|
23601
|
-
category: "data",
|
|
23602
|
-
name: "Sazabi",
|
|
23603
|
-
description: "Query logs, investigate issues, and run the Sazabi observability agent."
|
|
23604
|
-
},
|
|
23605
|
-
{
|
|
23606
|
-
id: "stripe",
|
|
23607
|
-
backend: "composio",
|
|
23608
|
-
toolkit: "stripe",
|
|
23609
|
-
authType: "oauth",
|
|
23610
|
-
category: "business",
|
|
23611
|
-
name: "Stripe",
|
|
23612
|
-
description: "Manage customers, payments, invoices, subscriptions, and balances."
|
|
23613
|
-
},
|
|
23614
|
-
{
|
|
23615
|
-
id: "kondo",
|
|
23616
|
-
backend: "native",
|
|
23617
|
-
toolkit: "kondo",
|
|
23618
|
-
authType: "oauth",
|
|
23619
|
-
category: "business",
|
|
23620
|
-
name: "Kondo",
|
|
23621
|
-
description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
|
|
23622
|
-
},
|
|
23623
|
-
{
|
|
23624
|
-
id: "lightfield",
|
|
23625
|
-
backend: "native",
|
|
23626
|
-
toolkit: "lightfield",
|
|
23627
|
-
authType: "api_key",
|
|
23628
|
-
category: "business",
|
|
23629
|
-
name: "Lightfield",
|
|
23630
|
-
description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
|
|
23631
|
-
},
|
|
23632
|
-
{
|
|
23633
|
-
id: "pangram",
|
|
23634
|
-
backend: "native",
|
|
23635
|
-
toolkit: "pangram",
|
|
23636
|
-
authType: "api_key",
|
|
23637
|
-
category: "data",
|
|
23638
|
-
name: "Pangram",
|
|
23639
|
-
description: "Analyze text for AI generation and plagiarism signals."
|
|
23640
|
-
},
|
|
23641
|
-
{
|
|
23642
|
-
id: "vercel",
|
|
23643
|
-
backend: "native",
|
|
23644
|
-
toolkit: "vercel",
|
|
23645
|
-
authType: "api_key",
|
|
23646
|
-
category: "data",
|
|
23647
|
-
name: "Vercel",
|
|
23648
|
-
description: "Manage projects, deployments, logs, domains, and infrastructure."
|
|
23649
|
-
},
|
|
23650
|
-
{
|
|
23651
|
-
id: "turbopuffer",
|
|
23652
|
-
backend: "native",
|
|
23653
|
-
toolkit: "turbopuffer",
|
|
23654
|
-
authType: "api_key",
|
|
23655
|
-
category: "data",
|
|
23656
|
-
name: "turbopuffer",
|
|
23657
|
-
description: "Query and manage turbopuffer namespaces."
|
|
23658
|
-
},
|
|
23659
|
-
{
|
|
23660
|
-
id: "vanta",
|
|
23661
|
-
backend: "native",
|
|
23662
|
-
toolkit: "vanta",
|
|
23663
|
-
authType: "credentials",
|
|
23664
|
-
category: "data",
|
|
23665
|
-
name: "Vanta",
|
|
23666
|
-
description: "Review and manage controls, tests, evidence, vendors, risks, and compliance data."
|
|
23667
|
-
}
|
|
23668
|
-
];
|
|
23669
|
-
HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
|
|
23670
|
-
["notion", "notion", "OAUTH2", true, "productivity", "Notion"],
|
|
23671
|
-
["jira", "jira", "OAUTH2", true, "productivity", "Jira"],
|
|
23672
|
-
["confluence", "confluence", "OAUTH2", true, "productivity", "Confluence"],
|
|
23673
|
-
["googlecalendar", "googlecalendar", "OAUTH2", true, "productivity", "Google Calendar"],
|
|
23674
|
-
["microsoftteams", "microsoft_teams", "OAUTH2", true, "productivity", "Microsoft Teams"],
|
|
23675
|
-
["outlook", "outlook", "OAUTH2", true, "productivity", "Outlook"],
|
|
23676
|
-
["bitbucket", "bitbucket", "OAUTH2", true, "data", "Bitbucket"],
|
|
23677
|
-
["datadog", "datadog", "API_KEY", false, "data", "Datadog"],
|
|
23678
|
-
["pagerduty", "pagerduty", "OAUTH2", true, "data", "PagerDuty"],
|
|
23679
|
-
["intercom", "intercom", "OAUTH2", true, "business", "Intercom"],
|
|
23680
|
-
["zendesk", "zendesk", "OAUTH2", true, "business", "Zendesk"],
|
|
23681
|
-
["hubspot", "hubspot", "OAUTH2", true, "business", "HubSpot"],
|
|
23682
|
-
["supabase", "supabase", "OAUTH2", true, "data", "Supabase"],
|
|
23683
|
-
["figma", "figma", "OAUTH2", true, "productivity", "Figma"],
|
|
23684
|
-
["launchdarkly", "launch_darkly", "API_KEY", false, "data", "LaunchDarkly"],
|
|
23685
|
-
["asana", "asana", "OAUTH2", true, "productivity", "Asana"],
|
|
23686
|
-
["clickup", "clickup", "OAUTH2", true, "productivity", "ClickUp"],
|
|
23687
|
-
["trello", "trello", "OAUTH1", true, "productivity", "Trello"],
|
|
23688
|
-
["todoist", "todoist", "OAUTH2", true, "productivity", "Todoist"],
|
|
23689
|
-
["airtable", "airtable", "OAUTH2", true, "productivity", "Airtable"],
|
|
23690
|
-
["coda", "coda", "API_KEY", false, "productivity", "Coda"],
|
|
23691
|
-
["miro", "miro", "OAUTH2", true, "productivity", "Miro"],
|
|
23692
|
-
["sharepoint", "share_point", "OAUTH2", true, "productivity", "SharePoint"],
|
|
23693
|
-
["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
|
|
23694
|
-
["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
|
|
23695
|
-
["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
|
|
23696
|
-
["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
|
|
23697
|
-
["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
|
|
23698
|
-
["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
|
|
23699
|
-
["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
|
|
23700
|
-
["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
|
|
23701
|
-
["box", "box", "OAUTH2", true, "productivity", "Box"],
|
|
23702
|
-
["discord", "discord", "OAUTH2", true, "productivity", "Discord"],
|
|
23703
|
-
["discordbot", "discordbot", "OAUTH2", true, "productivity", "Discord Bot"],
|
|
23704
|
-
["zoom", "zoom", "OAUTH2", true, "productivity", "Zoom"],
|
|
23705
|
-
["googlechat", "google_chat", "OAUTH2", false, "productivity", "Google Chat"],
|
|
23706
|
-
["newrelic", "new_relic", "API_KEY", false, "data", "New Relic"],
|
|
23707
|
-
["betterstack", "better_stack", "API_KEY", false, "data", "Better Stack"],
|
|
23708
|
-
["incidentio", "incident_io", "API_KEY", false, "data", "incident.io"],
|
|
23709
|
-
["grafana", "grafana", "BEARER_TOKEN", false, "data", "Grafana"],
|
|
23710
|
-
["honeycomb", "honeycomb_mcp", "DCR_OAUTH", false, "data", "Honeycomb MCP"],
|
|
23711
|
-
["neon", "neon_mcp", "DCR_OAUTH", false, "data", "Neon"],
|
|
23712
|
-
["glen", "glen_mcp", "DCR_OAUTH", false, "data", "Glen"],
|
|
23713
|
-
["bugsnag", "bugsnag", "API_KEY", false, "data", "Bugsnag"],
|
|
23714
|
-
["circleci", "circleci", "API_KEY", false, "data", "CircleCI"],
|
|
23715
|
-
["buildkite", "buildkite", "API_KEY", false, "data", "Buildkite"],
|
|
23716
|
-
["dockerhub", "docker_hub", "API_KEY", false, "data", "Docker Hub"],
|
|
23717
|
-
["digitalocean", "digital_ocean", "OAUTH2", true, "data", "DigitalOcean"],
|
|
23718
|
-
["railway", "railway", "API_KEY", false, "data", "Railway"],
|
|
23719
|
-
["render", "render", "API_KEY", false, "data", "Render"],
|
|
23720
|
-
["firebase", "firebase", "API_KEY", false, "data", "Firebase"],
|
|
23721
|
-
["cloudinary", "cloudinary", "API_KEY", false, "data", "Cloudinary"],
|
|
23722
|
-
["configcat", "configcat", "API_KEY", false, "data", "ConfigCat"],
|
|
23723
|
-
["contextdev", "context_dev", "API_KEY", false, "data", "Context.dev"],
|
|
23724
|
-
["googleanalytics", "google_analytics", "OAUTH2", true, "data", "Google Analytics"],
|
|
23725
|
-
["googlebigquery", "googlebigquery", "OAUTH2", true, "data", "Google BigQuery"],
|
|
23726
|
-
["amplitude", "amplitude", "API_KEY", false, "data", "Amplitude"],
|
|
23727
|
-
["mixpanel", "mixpanel", "BASIC", false, "data", "Mixpanel"],
|
|
23728
|
-
["segment", "segment", "API_KEY", false, "data", "Segment"],
|
|
23729
|
-
["supermemory", "supermemory", "API_KEY", false, "data", "Supermemory"],
|
|
23730
|
-
["databricks", "databricks", "API_KEY", false, "data", "Databricks"],
|
|
23731
|
-
["snowflake", "snowflake", "OAUTH2", false, "data", "Snowflake"],
|
|
23732
|
-
["algolia", "algolia", "API_KEY", false, "data", "Algolia"],
|
|
23733
|
-
["elasticsearch", "elasticsearch", "API_KEY", false, "data", "Elasticsearch"],
|
|
23734
|
-
["salesforce", "salesforce", "OAUTH2", true, "business", "Salesforce"],
|
|
23735
|
-
["pipedrive", "pipedrive", "API_KEY", false, "business", "Pipedrive"],
|
|
23736
|
-
["close", "close", "API_KEY", false, "business", "Close"],
|
|
23737
|
-
["apollo", "apollo", "API_KEY", false, "business", "Apollo"],
|
|
23738
|
-
["gong", "gong", "OAUTH2", true, "business", "Gong"],
|
|
23739
|
-
["freshdesk", "freshdesk", "API_KEY", false, "business", "Freshdesk"],
|
|
23740
|
-
["helpscout", "help_scout", "OAUTH2", false, "business", "Help Scout"],
|
|
23741
|
-
["servicenow", "servicenow", "BASIC", false, "business", "ServiceNow"],
|
|
23742
|
-
["mailchimp", "mailchimp", "OAUTH2", true, "business", "Mailchimp"],
|
|
23743
|
-
["customerio", "customerio", "API_KEY", false, "business", "Customer.io"],
|
|
23744
|
-
["klaviyo", "klaviyo", "API_KEY", false, "business", "Klaviyo"],
|
|
23745
|
-
["shopify", "shopify", "API_KEY", false, "business", "Shopify"],
|
|
23746
|
-
["quickbooks", "quickbooks", "OAUTH2", true, "business", "QuickBooks"],
|
|
23747
|
-
["xero", "xero", "OAUTH2", false, "business", "Xero"],
|
|
23748
|
-
["brex", "brex", "API_KEY", false, "business", "Brex"],
|
|
23749
|
-
["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
|
|
23750
|
-
["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
|
|
23751
|
-
["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
|
|
23752
|
-
["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
|
|
23753
|
-
["browserbase", "browserbase_tool", "API_KEY", false, "data", "Browserbase"],
|
|
23754
|
-
["exa", "exa", "API_KEY", false, "data", "Exa"],
|
|
23755
|
-
["youtube", "youtube", "OAUTH2", true, "business", "YouTube"],
|
|
23756
|
-
["twitter", "twitter", "OAUTH2", false, "business", "Twitter/X"],
|
|
23757
|
-
["instagram", "instagram", "OAUTH2", true, "business", "Instagram"],
|
|
23758
|
-
["facebook", "facebook", "OAUTH2", true, "business", "Facebook"]
|
|
23759
|
-
];
|
|
23760
|
-
HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
|
|
23761
|
-
([id, toolkit, authScheme, managedAuth, category, name]) => ({
|
|
23762
|
-
id,
|
|
23763
|
-
backend: "composio",
|
|
23764
|
-
toolkit,
|
|
23765
|
-
authType: "hosted",
|
|
23766
|
-
authScheme,
|
|
23767
|
-
managedAuth,
|
|
23768
|
-
category,
|
|
23769
|
-
name,
|
|
23770
|
-
description: `Use ${name} tools from workspace agents.`
|
|
23771
|
-
})
|
|
23772
|
-
);
|
|
23773
|
-
READ_ONLY_SCOPES = {
|
|
23774
|
-
gmail: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/contacts.readonly", "https://www.googleapis.com/auth/contacts.other.readonly", "https://www.googleapis.com/auth/gmail.readonly"],
|
|
23775
|
-
googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
|
|
23776
|
-
googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
|
|
23777
|
-
googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
|
|
23778
|
-
googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
|
|
23779
|
-
googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
|
|
23780
|
-
googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
|
|
23781
|
-
googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
|
|
23782
|
-
googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
|
|
23783
|
-
youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
|
|
23784
|
-
outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
|
|
23785
|
-
onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
|
|
23786
|
-
microsoftteams: ["User.Read", "Team.ReadBasic.All", "Channel.ReadBasic.All", "ChannelMessage.Read.All", "Chat.Read", "Chat.ReadBasic", "ChatMessage.Read", "People.Read.All", "TeamsActivity.Read", "offline_access"],
|
|
23787
|
-
jira: ["read:jira-work", "read:jira-user", "read:servicedesk-request", "read:servicemanagement-insight-objects", "read:sprint:jira-software", "read:board-scope:jira-software", "read:project:jira", "read:issue-type-scheme:jira", "offline_access"],
|
|
23788
|
-
confluence: ["read:space-details:confluence", "read:audit-log:confluence", "read:page:confluence", "read:blogpost:confluence", "read:whiteboard:confluence", "read:comment:confluence", "read:content.restriction:confluence", "read:content.metadata:confluence", "read:inlinetask:confluence", "read:task:confluence", "offline_access"],
|
|
23789
|
-
zendesk: ["read"],
|
|
23790
|
-
gong: ["api:calls:read:basic", "api:calls:read:extensive", "api:calls:read:transcript", "api:calls:read:media-url", "api:users:read", "api:stats:interaction", "api:stats:scorecards", "api:stats:user-actions", "api:stats:user-actions:detailed", "api:settings:scorecards:read", "api:settings:trackers:read", "api:library:read", "api:tasks:read", "api:flows:read", "api:workspaces:read", "api:crm:get-objects", "api:crm:schema", "api:crm:integrations:read", "api:call-outcomes:read", "api:permission-profile:read", "api:logs:read"],
|
|
23791
|
-
figma: ["current_user:read", "file_content:read", "file_comments:read", "file_metadata:read", "file_versions:read", "projects:read", "library_assets:read", "library_content:read", "team_library_content:read", "webhooks:read"],
|
|
23792
|
-
airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
|
|
23793
|
-
todoist: ["data:read"],
|
|
23794
|
-
dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
|
|
23795
|
-
canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
|
|
23796
|
-
facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
|
|
23797
|
-
instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
|
|
23798
|
-
};
|
|
23799
|
-
PLUGIN_CATALOG = [
|
|
23800
|
-
...EXPLICIT_PLUGIN_CATALOG,
|
|
23801
|
-
...HOSTED_COMPOSIO_PLUGINS
|
|
23802
|
-
].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
|
|
23803
|
-
}
|
|
23804
|
-
});
|
|
23805
|
-
|
|
23806
|
-
// ../shared/src/routes/plugins.ts
|
|
23807
|
-
function isPluginId(value) {
|
|
23808
|
-
return PLUGIN_CATALOG.some((plugin) => plugin.id === value);
|
|
23809
|
-
}
|
|
23810
|
-
var init_plugins = __esm({
|
|
23811
|
-
"../shared/src/routes/plugins.ts"() {
|
|
23424
|
+
// ../shared/src/workspace-attention.ts
|
|
23425
|
+
var WORKSPACE_ATTENTION_REASONS, CHAT_ATTENTION_REASONS;
|
|
23426
|
+
var init_workspace_attention = __esm({
|
|
23427
|
+
"../shared/src/workspace-attention.ts"() {
|
|
23812
23428
|
"use strict";
|
|
23813
|
-
|
|
23814
|
-
|
|
23429
|
+
WORKSPACE_ATTENTION_REASONS = ["question", "plan", "variables", "blocked", "setup", "deploy_failed"];
|
|
23430
|
+
CHAT_ATTENTION_REASONS = ["question", "blocked"];
|
|
23815
23431
|
}
|
|
23816
23432
|
});
|
|
23817
23433
|
|
|
23818
|
-
// ../shared/src/
|
|
23819
|
-
var
|
|
23820
|
-
var
|
|
23821
|
-
"../shared/src/
|
|
23434
|
+
// ../shared/src/routes/push.ts
|
|
23435
|
+
var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, chatRefSchema, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, PUSH_OPTION_LABEL_MAX, PUSH_OPTIONS_MAX, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, syncLiveActivitiesRequestSchema, setLiveActivityStartTokenRequestSchema;
|
|
23436
|
+
var init_push = __esm({
|
|
23437
|
+
"../shared/src/routes/push.ts"() {
|
|
23822
23438
|
"use strict";
|
|
23823
23439
|
init_zod();
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
external_exports.string(),
|
|
23832
|
-
environmentMcpVariableReferenceSchema
|
|
23833
|
-
]);
|
|
23834
|
-
mcpValuesSchema = external_exports.record(external_exports.string(), mcpValueSchema);
|
|
23835
|
-
httpConfigSchema = environmentMcpHttpConfigSchema.pick({ url: true, auth: true }).extend({
|
|
23836
|
-
headers: mcpValuesSchema.default({})
|
|
23837
|
-
}).strict();
|
|
23838
|
-
replicasMcpDefinitionSchema = external_exports.discriminatedUnion("transport", [
|
|
23839
|
-
external_exports.strictObject({
|
|
23840
|
-
transport: external_exports.literal("stdio"),
|
|
23841
|
-
config: environmentMcpStdioConfigSchema.pick({ command: true }).extend({
|
|
23842
|
-
args: environmentMcpStdioConfigSchema.shape.args.unwrap().default([]),
|
|
23843
|
-
env: external_exports.record(variableNameSchema, mcpValueSchema).default({})
|
|
23844
|
-
}).strict()
|
|
23440
|
+
init_workspace_attention();
|
|
23441
|
+
registerPushDeviceRequestSchema = external_exports.discriminatedUnion("platform", [
|
|
23442
|
+
external_exports.object({
|
|
23443
|
+
platform: external_exports.literal("ios"),
|
|
23444
|
+
token: external_exports.string().regex(/^[0-9a-f]{64,200}$/i),
|
|
23445
|
+
appId: external_exports.string().min(1).max(255),
|
|
23446
|
+
apnsEnvironment: external_exports.enum(["sandbox", "production"])
|
|
23845
23447
|
}),
|
|
23846
|
-
external_exports.
|
|
23847
|
-
|
|
23848
|
-
|
|
23849
|
-
|
|
23850
|
-
|
|
23851
|
-
|
|
23448
|
+
external_exports.object({
|
|
23449
|
+
platform: external_exports.literal("android"),
|
|
23450
|
+
token: external_exports.string().min(1).max(4096),
|
|
23451
|
+
appId: external_exports.string().min(1).max(255)
|
|
23452
|
+
})
|
|
23453
|
+
]);
|
|
23454
|
+
PUSH_HOLD_MINUTES = 5;
|
|
23455
|
+
chatRefSchema = external_exports.object({ workspaceId: external_exports.string().uuid(), chatId: external_exports.string().min(1).max(100) });
|
|
23456
|
+
recordPushActivityRequestSchema = external_exports.object({
|
|
23457
|
+
organizationId: external_exports.string().uuid(),
|
|
23458
|
+
/** Seconds since the last keyboard or mouse input on this computer. A phone leaves it out: it only reports what it has open. */
|
|
23459
|
+
idleSeconds: external_exports.number().min(0).optional(),
|
|
23460
|
+
seenWorkspaceIds: external_exports.array(external_exports.string().uuid()).max(20),
|
|
23461
|
+
seenChats: external_exports.array(chatRefSchema).max(20).optional()
|
|
23852
23462
|
});
|
|
23853
|
-
|
|
23854
|
-
|
|
23855
|
-
|
|
23856
|
-
|
|
23857
|
-
|
|
23858
|
-
|
|
23859
|
-
|
|
23860
|
-
|
|
23861
|
-
|
|
23862
|
-
|
|
23863
|
-
|
|
23864
|
-
|
|
23865
|
-
variables: external_exports.record(variableNameSchema, external_exports.string()).optional(),
|
|
23866
|
-
requiredSecrets: external_exports.array(variableNameSchema).optional(),
|
|
23867
|
-
mcps: external_exports.record(external_exports.string().regex(MCP_NAME_PATTERN, "must be 1\u201364 letters, digits, underscores or hyphens, starting with a letter or digit").refine((name) => !isReservedMcpName(name), "is reserved for Replicas"), replicasMcpDefinitionSchema).optional()
|
|
23868
|
-
}).superRefine((config3, context) => {
|
|
23869
|
-
const skillNames = Object.keys(config3.skills ?? {}).map((slug) => slug.toLowerCase());
|
|
23870
|
-
if (new Set(skillNames).size !== skillNames.length) context.addIssue({ code: "custom", path: ["skills"], message: "Skill slugs must be unique regardless of case" });
|
|
23871
|
-
const names = /* @__PURE__ */ new Set();
|
|
23872
|
-
for (const name of Object.keys(config3.mcps ?? {})) {
|
|
23873
|
-
const normalized = name.toLowerCase();
|
|
23874
|
-
if (names.has(normalized)) {
|
|
23875
|
-
context.addIssue({ code: "custom", path: ["mcps", name], message: "MCP names must be unique regardless of case" });
|
|
23876
|
-
}
|
|
23877
|
-
names.add(normalized);
|
|
23878
|
-
}
|
|
23879
|
-
for (const key of config3.requiredSecrets ?? []) {
|
|
23880
|
-
if (config3.variables && Object.hasOwn(config3.variables, key)) {
|
|
23881
|
-
context.addIssue({ code: "custom", path: ["requiredSecrets"], message: `"${key}" cannot also be declared as a non-secret variable` });
|
|
23882
|
-
}
|
|
23883
|
-
}
|
|
23463
|
+
PUSH_NOTIFICATION_KINDS = [...WORKSPACE_ATTENTION_REASONS, "finished"];
|
|
23464
|
+
PUSH_OPTION_LABEL_MAX = 60;
|
|
23465
|
+
PUSH_OPTIONS_MAX = 4;
|
|
23466
|
+
pushQuestionSchema = external_exports.object({ id: external_exports.string().max(64), allowCustom: external_exports.boolean().optional(), options: external_exports.array(external_exports.object({ id: external_exports.string().max(64), label: external_exports.string().min(1).max(PUSH_OPTION_LABEL_MAX) })).min(1).max(PUSH_OPTIONS_MAX) });
|
|
23467
|
+
pushNotificationDataSchema = external_exports.object({
|
|
23468
|
+
organizationId: external_exports.string(),
|
|
23469
|
+
workspaceId: external_exports.string(),
|
|
23470
|
+
chatId: external_exports.string().nullable(),
|
|
23471
|
+
kind: external_exports.enum(PUSH_NOTIFICATION_KINDS),
|
|
23472
|
+
completedAt: external_exports.string(),
|
|
23473
|
+
toolRequestId: external_exports.string().optional(),
|
|
23474
|
+
question: pushQuestionSchema.optional()
|
|
23884
23475
|
});
|
|
23885
|
-
|
|
23886
|
-
|
|
23887
|
-
|
|
23888
|
-
|
|
23889
|
-
|
|
23890
|
-
|
|
23891
|
-
|
|
23892
|
-
|
|
23893
|
-
|
|
23894
|
-
|
|
23895
|
-
|
|
23896
|
-
|
|
23897
|
-
kind: external_exports.literal("git").default("git"),
|
|
23898
|
-
entrypoint_filename: external_exports.string().optional(),
|
|
23899
|
-
repository_id: external_exports.string(),
|
|
23900
|
-
repository_name: external_exports.string(),
|
|
23901
|
-
filename: external_exports.string(),
|
|
23902
|
-
commit_sha: external_exports.string(),
|
|
23903
|
-
source_url: external_exports.string(),
|
|
23904
|
-
file_sha: external_exports.undefined().optional()
|
|
23905
|
-
}),
|
|
23906
|
-
external_exports.object({
|
|
23907
|
-
kind: external_exports.literal("file"),
|
|
23908
|
-
repository_id: external_exports.null(),
|
|
23909
|
-
repository_name: external_exports.null(),
|
|
23910
|
-
filename: external_exports.string(),
|
|
23911
|
-
commit_sha: external_exports.null(),
|
|
23912
|
-
source_url: external_exports.null(),
|
|
23913
|
-
file_sha: external_exports.string()
|
|
23914
|
-
})
|
|
23915
|
-
]);
|
|
23916
|
-
sourceInput = {
|
|
23917
|
-
repository_id: external_exports.string().min(1).optional(),
|
|
23918
|
-
file: external_exports.strictObject({ filename: external_exports.string().min(1).max(1024), environment: replicasEnvironmentConfigSchema }).optional()
|
|
23919
|
-
};
|
|
23920
|
-
previewEnvironmentConfigSourceRequestSchema = external_exports.strictObject(sourceInput).refine(
|
|
23921
|
-
(input2) => !input2.file || !input2.repository_id,
|
|
23922
|
-
{ message: "Choose either a repository or a file" }
|
|
23923
|
-
);
|
|
23924
|
-
applyEnvironmentConfigSourceRequestSchema = external_exports.strictObject({
|
|
23925
|
-
...sourceInput,
|
|
23926
|
-
commit_sha: external_exports.string().min(1).optional(),
|
|
23927
|
-
fingerprint: external_exports.string().min(1)
|
|
23928
|
-
}).refine((input2) => input2.file ? !input2.repository_id && !input2.commit_sha : !!input2.commit_sha, {
|
|
23929
|
-
message: "File configuration requires file contents; Git configuration requires a reviewed commit"
|
|
23930
|
-
});
|
|
23931
|
-
}
|
|
23932
|
-
});
|
|
23933
|
-
|
|
23934
|
-
// ../shared/src/replicas-mcp.ts
|
|
23935
|
-
var REPLICAS_MCP_TOOLS, automationToolInputSchema, credentialUserIdDescription, automationBackgroundSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, createEnvironmentDeviceToolInputSchema, previewEnvironmentConfigSourceToolInputSchema, applyEnvironmentConfigSourceToolInputSchema;
|
|
23936
|
-
var init_replicas_mcp = __esm({
|
|
23937
|
-
"../shared/src/replicas-mcp.ts"() {
|
|
23938
|
-
"use strict";
|
|
23939
|
-
init_zod();
|
|
23940
|
-
init_agent();
|
|
23941
|
-
init_linear2();
|
|
23942
|
-
init_trigger_schemas();
|
|
23943
|
-
init_types5();
|
|
23944
|
-
init_chat_fork();
|
|
23945
|
-
init_v1();
|
|
23946
|
-
init_environment();
|
|
23947
|
-
init_environment_config_source();
|
|
23948
|
-
init_workspaces();
|
|
23949
|
-
init_sandbox();
|
|
23950
|
-
REPLICAS_MCP_TOOLS = {
|
|
23951
|
-
listEnvironments: "list_environments",
|
|
23952
|
-
createAutomation: "create_automation",
|
|
23953
|
-
spawn: "spawn_workspace",
|
|
23954
|
-
spawnInNewThread: "spawn_workspace_in_new_thread",
|
|
23955
|
-
relay: "relay_to_workspace",
|
|
23956
|
-
listWorkspaces: "list_workspaces",
|
|
23957
|
-
linearStart: "start_linear_session",
|
|
23958
|
-
linearSessionIntent: "register_linear_session_intent",
|
|
23959
|
-
routeLinearTicket: "route_linear_ticket",
|
|
23960
|
-
listChannelSettings: "list_channel_settings",
|
|
23961
|
-
saveChannelPreset: "save_channel_preset",
|
|
23962
|
-
deleteChannelPreset: "delete_channel_preset",
|
|
23963
|
-
updateChannelSettings: "update_channel_settings",
|
|
23964
|
-
setOrganizationProactivity: "set_organization_proactivity",
|
|
23965
|
-
setSlackAgentDefaults: "set_slack_agent_defaults",
|
|
23966
|
-
claimSettingsOffer: "claim_settings_offer",
|
|
23967
|
-
setThreadMuted: "set_thread_muted",
|
|
23968
|
-
stopWorkspace: "stop_workspace",
|
|
23969
|
-
setSlackConnectMuted: "set_slack_connect_muted",
|
|
23970
|
-
setSlackConnectDefaults: "set_slack_connect_defaults",
|
|
23971
|
-
spawnSubagent: "spawn_subagent",
|
|
23972
|
-
messageSubagent: "message_subagent",
|
|
23973
|
-
listSubagents: "list_subagents",
|
|
23974
|
-
readSubagent: "read_subagent",
|
|
23975
|
-
archiveSubagent: "archive_subagent",
|
|
23976
|
-
mergeWhenReady: "merge_when_ready",
|
|
23977
|
-
waitForSubagents: "wait_for_subagents",
|
|
23978
|
-
getBoard: "get_board",
|
|
23979
|
-
updateBoard: "update_board",
|
|
23980
|
-
updateTicket: "update_ticket",
|
|
23981
|
-
replyOnTicket: "reply_on_ticket",
|
|
23982
|
-
sendToChat: "send_to_chat",
|
|
23983
|
-
setStatus: "set_status",
|
|
23984
|
-
getLinearRouting: "get_linear_routing",
|
|
23985
|
-
setLinearRouting: "set_linear_routing",
|
|
23986
|
-
clearLinearRouting: "clear_linear_routing",
|
|
23987
|
-
getSlackChannel: "get_slack_channel",
|
|
23988
|
-
linkSlackChannel: "link_slack_channel",
|
|
23989
|
-
createSlackChannel: "create_slack_channel",
|
|
23990
|
-
unlinkSlackChannel: "unlink_slack_channel",
|
|
23991
|
-
setSlackChannelLevel: "set_slack_channel_level",
|
|
23992
|
-
createReplica: "create_replica",
|
|
23993
|
-
listReplicas: "list_replicas",
|
|
23994
|
-
getReplica: "get_replica",
|
|
23995
|
-
deleteReplica: "delete_replica",
|
|
23996
|
-
wakeReplica: "wake_replica",
|
|
23997
|
-
sleepReplica: "sleep_replica",
|
|
23998
|
-
archiveReplica: "archive_replica",
|
|
23999
|
-
waitForReplica: "wait_for_replica",
|
|
24000
|
-
runCommand: "run_command",
|
|
24001
|
-
getReplicaHooks: "get_replica_hooks",
|
|
24002
|
-
whoami: "whoami",
|
|
24003
|
-
sendReplicaMessage: "send_replica_message",
|
|
24004
|
-
readReplicaHistory: "read_replica_history",
|
|
24005
|
-
listChats: "list_chats",
|
|
24006
|
-
createChat: "create_chat",
|
|
24007
|
-
deleteChat: "delete_chat",
|
|
24008
|
-
listRepositories: "list_repositories"
|
|
24009
|
-
};
|
|
24010
|
-
automationToolInputSchema = external_exports.object({
|
|
24011
|
-
name: external_exports.string().describe("Short automation name."),
|
|
24012
|
-
prompt: external_exports.string().describe("Prompt each automation run starts with."),
|
|
24013
|
-
environment_id: external_exports.string().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`.`),
|
|
24014
|
-
triggers: external_exports.array(automationTriggerSchema).min(1).describe(
|
|
24015
|
-
`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>"] } }\`. Linear: \`{ "type": "linear", "config": { "event": "${LINEAR_ISSUE_STATE_CHANGED_EVENT}", "state_types": ["completed"] } }\`.`
|
|
24016
|
-
),
|
|
24017
|
-
description: external_exports.string().optional().describe("One-line summary shown in the dashboard."),
|
|
24018
|
-
plan_mode: external_exports.boolean().optional(),
|
|
24019
|
-
goal_mode: external_exports.boolean().optional(),
|
|
24020
|
-
fast_mode: external_exports.boolean().optional(),
|
|
24021
|
-
workspace_lifecycle_policy: external_exports.enum(AUTOMATION_LIFECYCLE_POLICIES).optional().describe(
|
|
24022
|
-
"What happens to a run's workspace when the agent finishes. `delete_when_done` (default, except one-time runs, which default to `default`) when the output lives elsewhere (PR comments, checks, Slack posts); `sleep_when_done` when later runs reuse the workspace, like one per PR across pushes; `default` (keep alive) when people follow up in the workspace."
|
|
24023
|
-
)
|
|
24024
|
-
});
|
|
24025
|
-
credentialUserIdDescription = `Organization automations only: the user ID (see \`${REPLICAS_MCP_TOOLS.whoami}\`) of the member whose coding agent credentials, such as their Claude subscription, runs use before the organization's. Only your workspace's owner, or whoever's credentials this workspace runs on.`;
|
|
24026
|
-
automationBackgroundSchema = external_exports.boolean().optional().describe(
|
|
24027
|
-
"Marks this as an AI agent's own automation (a reminder, follow-up or recurring check-in for its task). Kept out of the main automations list."
|
|
24028
|
-
);
|
|
24029
|
-
automationCreateToolInputSchema = automationToolInputSchema.extend({
|
|
24030
|
-
credential_user_id: external_exports.string().optional().describe(`${credentialUserIdDescription} Omit to use the organization's.`),
|
|
24031
|
-
background: automationBackgroundSchema,
|
|
24032
|
-
scope: external_exports.enum(["org", "user"]).optional().describe("`org` (default) or `user` for a personal automation, which needs a personal API key.")
|
|
24033
|
-
});
|
|
24034
|
-
automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
|
|
24035
|
-
automation_id: external_exports.string().describe("Automation ID"),
|
|
24036
|
-
enabled: external_exports.boolean().optional(),
|
|
24037
|
-
agent_provider: external_exports.enum(ENGINE_AGENT_PROVIDERS).nullable().optional(),
|
|
24038
|
-
model: external_exports.string().nullable().optional(),
|
|
24039
|
-
thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
24040
|
-
workspace_size: external_exports.enum(WORKSPACE_SIZES).optional(),
|
|
24041
|
-
credential_user_id: external_exports.string().nullable().optional().describe(`${credentialUserIdDescription} Null switches back to the organization's.`),
|
|
24042
|
-
background: automationBackgroundSchema,
|
|
24043
|
-
scope: external_exports.literal("org").optional().describe("`org` moves a personal automation to the organization so teammates can see and edit it. It cannot be moved back.")
|
|
24044
|
-
});
|
|
24045
|
-
chatPath = { id: external_exports.string().describe("Workspace ID"), chat_id: external_exports.string().describe("Chat ID") };
|
|
24046
|
-
({ provider, model, thinkingLevel, title, message } = forkChatRequestSchema.shape);
|
|
24047
|
-
createChatToolInputSchema = external_exports.object({ id: chatPath.id, provider, title: createChatRequestSchema.shape.title });
|
|
24048
|
-
forkChatToolInputSchema = external_exports.object({ ...chatPath, provider, model, thinking_level: thinkingLevel, title, message });
|
|
24049
|
-
renameChatToolInputSchema = external_exports.object({ ...chatPath, display_name: updateChatDisplayNameRequestSchema.shape.displayName });
|
|
24050
|
-
runCommandToolInputSchema = external_exports.object({ id: chatPath.id, ...workspaceExecRequestSchema.shape });
|
|
24051
|
-
environmentMcpPath = { environment_id: external_exports.string().describe("Environment ID") };
|
|
24052
|
-
createEnvironmentMcpToolInputSchema = external_exports.object({ ...environmentMcpPath, ...createEnvironmentMcpRequestSchema.shape });
|
|
24053
|
-
updateEnvironmentMcpToolInputSchema = external_exports.object({
|
|
24054
|
-
...environmentMcpPath,
|
|
24055
|
-
mcp_id: external_exports.string().describe("MCP ID"),
|
|
24056
|
-
...updateEnvironmentMcpRequestSchema.shape
|
|
24057
|
-
});
|
|
24058
|
-
createEnvironmentDeviceToolInputSchema = external_exports.object({ ...environmentMcpPath, ...createEnvironmentDeviceRequestSchema.shape });
|
|
24059
|
-
previewEnvironmentConfigSourceToolInputSchema = previewEnvironmentConfigSourceRequestSchema.safeExtend(environmentMcpPath);
|
|
24060
|
-
applyEnvironmentConfigSourceToolInputSchema = applyEnvironmentConfigSourceRequestSchema.safeExtend(environmentMcpPath);
|
|
24061
|
-
}
|
|
24062
|
-
});
|
|
24063
|
-
|
|
24064
|
-
// ../shared/src/scout.ts
|
|
24065
|
-
var SCOUT_SOURCE_TYPES, SCOUT_PROACTIVITY_LEVELS, SCOUT_PRESET_NAME_MAX_LENGTH, SCOUT_CHANNEL_SETTINGS_OFFERS, SCOUT_SETTINGS_OFFERS, SCOUT_PRESET_ICONS;
|
|
24066
|
-
var init_scout = __esm({
|
|
24067
|
-
"../shared/src/scout.ts"() {
|
|
24068
|
-
"use strict";
|
|
24069
|
-
SCOUT_SOURCE_TYPES = ["slack", "linear"];
|
|
24070
|
-
SCOUT_PROACTIVITY_LEVELS = ["tagged", "conservative", "balanced", "proactive"];
|
|
24071
|
-
SCOUT_PRESET_NAME_MAX_LENGTH = 50;
|
|
24072
|
-
SCOUT_CHANNEL_SETTINGS_OFFERS = ["proactivity", "raise_proactivity", "instructions"];
|
|
24073
|
-
SCOUT_SETTINGS_OFFERS = [...SCOUT_CHANNEL_SETTINGS_OFFERS, "organization_proactivity", "raise_organization_proactivity"];
|
|
24074
|
-
SCOUT_PRESET_ICONS = [
|
|
24075
|
-
"users",
|
|
24076
|
-
"user",
|
|
24077
|
-
"inbox",
|
|
24078
|
-
"building",
|
|
24079
|
-
"bug",
|
|
24080
|
-
"message-circle",
|
|
24081
|
-
"headphones",
|
|
24082
|
-
"heart",
|
|
24083
|
-
"star",
|
|
24084
|
-
"flag",
|
|
24085
|
-
"zap",
|
|
24086
|
-
"shield",
|
|
24087
|
-
"code",
|
|
24088
|
-
"terminal",
|
|
24089
|
-
"rocket",
|
|
24090
|
-
"wrench",
|
|
24091
|
-
"briefcase",
|
|
24092
|
-
"globe",
|
|
24093
|
-
"book-open",
|
|
24094
|
-
"lightbulb",
|
|
24095
|
-
"target",
|
|
24096
|
-
"bell",
|
|
24097
|
-
"layers",
|
|
24098
|
-
"tag"
|
|
24099
|
-
];
|
|
24100
|
-
}
|
|
24101
|
-
});
|
|
24102
|
-
|
|
24103
|
-
// ../shared/src/default-skills/scout-settings.ts
|
|
24104
|
-
var SCOUT_SETTINGS_SKILL_NAME, CONTENT;
|
|
24105
|
-
var init_scout_settings = __esm({
|
|
24106
|
-
"../shared/src/default-skills/scout-settings.ts"() {
|
|
24107
|
-
"use strict";
|
|
24108
|
-
init_replicas_mcp();
|
|
24109
|
-
init_scout();
|
|
24110
|
-
SCOUT_SETTINGS_SKILL_NAME = "scout-settings";
|
|
24111
|
-
CONTENT = `---
|
|
24112
|
-
name: ${SCOUT_SETTINGS_SKILL_NAME}
|
|
24113
|
-
description: Use when someone asks what Replicas can do or what they can change ("what can you do?", "what can I change here?"), asks to change or explain how Replicas behaves in Slack or Linear (channel levels, "be quieter", "only reply when tagged", silent mode, mute, channel or team instructions, presets, monitored Linear teams, Slack Connect defaults, Slack agent defaults), when someone is annoyed that Scout replied unasked ("not you", "nobody asked", a thumbs-down), when making or answering a settings or automation offer, or when setting up an automation. Not for routing ordinary requests.
|
|
24114
|
-
---
|
|
24115
|
-
|
|
24116
|
-
# Scout settings
|
|
24117
|
-
|
|
24118
|
-
There is no settings page: people change how Replicas behaves by asking you, and you own every setting below. Handle requests here, never by spawning a workspace. People know you as Replicas, so never say Scout to them.
|
|
24119
|
-
|
|
24120
|
-
## What you can do
|
|
24121
|
-
| Ask | How | Who |
|
|
24122
|
-
| --- | --- | --- |
|
|
24123
|
-
| How much you speak up in a channel or group DM (Mentions only, Low, Balanced, High) | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`proactivity\` | Any member, except that raising one from Mentions only needs an admin |
|
|
24124
|
-
| How much you speak up in every channel | \`${REPLICAS_MCP_TOOLS.setOrganizationProactivity}\` | Admin |
|
|
24125
|
-
| Silent mode for a channel, also asked as muting you there (you still read it and follow its instructions, but never post there) | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`silent\` | Admin |
|
|
24126
|
-
| Instructions for a channel or Linear team, such as "file bugs in Linear and post them in #triage", "send actionable messages to App Support", or "mobile requests go to the mobile-ios environment" | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`instructions\` | Any member |
|
|
24127
|
-
| Create, edit, or delete a preset (reusable instructions), or assign one | \`${REPLICAS_MCP_TOOLS.saveChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.deleteChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`preset_id\` | Any member |
|
|
24128
|
-
| Defaults for every channel shared with another company: preset, instructions, level, silent mode | \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\` | Admin |
|
|
24129
|
-
| Triage new issues in a Linear team, or stop | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`source: linear\`, \`monitored\` | Admin starts; any member stops |
|
|
24130
|
-
| Agent, model, thinking level, goal mode, and fast mode for tasks started from Slack | \`${REPLICAS_MCP_TOOLS.setSlackAgentDefaults}\` | Admin |
|
|
24131
|
-
| Stay quiet in this thread, or come back | \`${REPLICAS_MCP_TOOLS.setThreadMuted}\` | Anyone in the thread |
|
|
24132
|
-
| A recurring task ("every Monday, summarize open PRs in #eng") | \`${REPLICAS_MCP_TOOLS.createAutomation}\` (see Automations) | Members who can create automations |
|
|
24133
|
-
|
|
24134
|
-
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 Mothership 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.
|
|
24135
|
-
|
|
24136
|
-
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.
|
|
24137
|
-
|
|
24138
|
-
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 Mothership's own channel from that Mothership, not here; any channel's instructions can still send its messages to a Mothership.
|
|
24139
|
-
|
|
24140
|
-
## Tools
|
|
24141
|
-
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.
|
|
24142
|
-
|
|
24143
|
-
## Changing settings
|
|
24144
|
-
- Settings also change outside your chat, often on purpose: read the current settings first, never trust earlier messages, and never re-apply an earlier request the current message doesn't ask for. Save only what the current message asks.
|
|
24145
|
-
- **Levels**, lowest to highest: \`tagged\` (only @Replicas pings reach you, not even messages naming Replicas), \`conservative\` (also messages naming Replicas or Scout, and follow-ups in threads with a workspace), \`balanced\` (the normal triage rules), \`proactive\` (also clear untagged questions and requests). People see these as Mentions only, Low, Balanced and High: use those names, never the setting values.
|
|
24146
|
-
- The organization has one level for its whole Slack workspace, which only an admin can set with \`${REPLICAS_MCP_TOOLS.setOrganizationProactivity}\`. A channel or group DM can override it with \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` and \`proactivity\`. 1:1 DMs are always addressed to you. Any member can lower a channel; raising one above \`tagged\` needs an admin.
|
|
24147
|
-
- A request that points at a channel ("here", "in #eng", "stop replying in #random") changes that channel only. One that doesn't ("only respond when I @ you", "don't auto-reply to Slack messages") means the organization level. When it names a channel, even without "#" ("make support-inbound quieter"), find it with \`conversations.list\` and change that one, not the one you were asked in; ask if none or several match. If a non-admin asks for an organization change, say an organization admin has to ask, and offer the channel-only change when they asked from a channel. Instructions don't substitute for a level.
|
|
24148
|
-
- **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.
|
|
24149
|
-
- **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.
|
|
24150
|
-
- **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.
|
|
24151
|
-
- **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 Mothership 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.
|
|
24152
|
-
- **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).
|
|
24153
|
-
- **"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 Mothership, 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.
|
|
24154
|
-
- **"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".
|
|
24155
|
-
- 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.
|
|
24156
|
-
|
|
24157
|
-
## Offers
|
|
24158
|
-
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.
|
|
24159
|
-
- **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.
|
|
24160
|
-
- **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.
|
|
24161
|
-
- **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 Mothership (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.
|
|
24162
|
-
|
|
24163
|
-
## Automations
|
|
24164
|
-
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.
|
|
24165
|
-
`;
|
|
24166
|
-
}
|
|
24167
|
-
});
|
|
24168
|
-
|
|
24169
|
-
// ../shared/src/workspace-attention.ts
|
|
24170
|
-
var WORKSPACE_ATTENTION_REASONS, CHAT_ATTENTION_REASONS;
|
|
24171
|
-
var init_workspace_attention = __esm({
|
|
24172
|
-
"../shared/src/workspace-attention.ts"() {
|
|
24173
|
-
"use strict";
|
|
24174
|
-
WORKSPACE_ATTENTION_REASONS = ["question", "plan", "variables", "blocked", "setup", "deploy_failed"];
|
|
24175
|
-
CHAT_ATTENTION_REASONS = ["question", "blocked"];
|
|
24176
|
-
}
|
|
24177
|
-
});
|
|
24178
|
-
|
|
24179
|
-
// ../shared/src/routes/push.ts
|
|
24180
|
-
var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, chatRefSchema, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, PUSH_OPTION_LABEL_MAX, PUSH_OPTIONS_MAX, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, syncLiveActivitiesRequestSchema, setLiveActivityStartTokenRequestSchema;
|
|
24181
|
-
var init_push = __esm({
|
|
24182
|
-
"../shared/src/routes/push.ts"() {
|
|
24183
|
-
"use strict";
|
|
24184
|
-
init_zod();
|
|
24185
|
-
init_workspace_attention();
|
|
24186
|
-
registerPushDeviceRequestSchema = external_exports.discriminatedUnion("platform", [
|
|
24187
|
-
external_exports.object({
|
|
24188
|
-
platform: external_exports.literal("ios"),
|
|
24189
|
-
token: external_exports.string().regex(/^[0-9a-f]{64,200}$/i),
|
|
24190
|
-
appId: external_exports.string().min(1).max(255),
|
|
24191
|
-
apnsEnvironment: external_exports.enum(["sandbox", "production"])
|
|
24192
|
-
}),
|
|
24193
|
-
external_exports.object({
|
|
24194
|
-
platform: external_exports.literal("android"),
|
|
24195
|
-
token: external_exports.string().min(1).max(4096),
|
|
24196
|
-
appId: external_exports.string().min(1).max(255)
|
|
24197
|
-
})
|
|
24198
|
-
]);
|
|
24199
|
-
PUSH_HOLD_MINUTES = 5;
|
|
24200
|
-
chatRefSchema = external_exports.object({ workspaceId: external_exports.string().uuid(), chatId: external_exports.string().min(1).max(100) });
|
|
24201
|
-
recordPushActivityRequestSchema = external_exports.object({
|
|
24202
|
-
organizationId: external_exports.string().uuid(),
|
|
24203
|
-
/** Seconds since the last keyboard or mouse input on this computer. A phone leaves it out: it only reports what it has open. */
|
|
24204
|
-
idleSeconds: external_exports.number().min(0).optional(),
|
|
24205
|
-
seenWorkspaceIds: external_exports.array(external_exports.string().uuid()).max(20),
|
|
24206
|
-
seenChats: external_exports.array(chatRefSchema).max(20).optional()
|
|
24207
|
-
});
|
|
24208
|
-
PUSH_NOTIFICATION_KINDS = [...WORKSPACE_ATTENTION_REASONS, "finished"];
|
|
24209
|
-
PUSH_OPTION_LABEL_MAX = 60;
|
|
24210
|
-
PUSH_OPTIONS_MAX = 4;
|
|
24211
|
-
pushQuestionSchema = external_exports.object({ id: external_exports.string().max(64), allowCustom: external_exports.boolean().optional(), options: external_exports.array(external_exports.object({ id: external_exports.string().max(64), label: external_exports.string().min(1).max(PUSH_OPTION_LABEL_MAX) })).min(1).max(PUSH_OPTIONS_MAX) });
|
|
24212
|
-
pushNotificationDataSchema = external_exports.object({
|
|
24213
|
-
organizationId: external_exports.string(),
|
|
24214
|
-
workspaceId: external_exports.string(),
|
|
24215
|
-
chatId: external_exports.string().nullable(),
|
|
24216
|
-
kind: external_exports.enum(PUSH_NOTIFICATION_KINDS),
|
|
24217
|
-
completedAt: external_exports.string(),
|
|
24218
|
-
toolRequestId: external_exports.string().optional(),
|
|
24219
|
-
question: pushQuestionSchema.optional()
|
|
24220
|
-
});
|
|
24221
|
-
workspaceSharedPushDataSchema = pushNotificationDataSchema.pick({ organizationId: true, workspaceId: true, chatId: true, completedAt: true }).extend({ kind: external_exports.literal("shared") });
|
|
24222
|
-
registerLiveActivityRequestSchema = chatRefSchema.extend({
|
|
24223
|
-
deviceId: external_exports.string().uuid(),
|
|
24224
|
-
/** The iOS activity's push token. Android leaves it out and gets FCM data messages on the device token. */
|
|
24225
|
-
pushToken: external_exports.string().regex(/^[0-9a-f]{64,400}$/i).optional(),
|
|
24226
|
-
/** iOS only: when the card's turn started, in seconds. Cards keep their order by it. */
|
|
24227
|
-
startedAt: external_exports.number().positive().optional()
|
|
24228
|
-
});
|
|
24229
|
-
syncLiveActivitiesRequestSchema = external_exports.object({
|
|
24230
|
-
activities: external_exports.array(chatRefSchema).max(100)
|
|
24231
|
-
});
|
|
24232
|
-
setLiveActivityStartTokenRequestSchema = external_exports.object({ token: external_exports.string().regex(/^[0-9a-f]{64,400}$/i) });
|
|
23476
|
+
workspaceSharedPushDataSchema = pushNotificationDataSchema.pick({ organizationId: true, workspaceId: true, chatId: true, completedAt: true }).extend({ kind: external_exports.literal("shared") });
|
|
23477
|
+
registerLiveActivityRequestSchema = chatRefSchema.extend({
|
|
23478
|
+
deviceId: external_exports.string().uuid(),
|
|
23479
|
+
/** The iOS activity's push token. Android leaves it out and gets FCM data messages on the device token. */
|
|
23480
|
+
pushToken: external_exports.string().regex(/^[0-9a-f]{64,400}$/i).optional(),
|
|
23481
|
+
/** iOS only: when the card's turn started, in seconds. Cards keep their order by it. */
|
|
23482
|
+
startedAt: external_exports.number().positive().optional()
|
|
23483
|
+
});
|
|
23484
|
+
syncLiveActivitiesRequestSchema = external_exports.object({
|
|
23485
|
+
activities: external_exports.array(chatRefSchema).max(100)
|
|
23486
|
+
});
|
|
23487
|
+
setLiveActivityStartTokenRequestSchema = external_exports.object({ token: external_exports.string().regex(/^[0-9a-f]{64,400}$/i) });
|
|
24233
23488
|
}
|
|
24234
23489
|
});
|
|
24235
23490
|
|
|
@@ -26013,7 +25268,7 @@ It is your responsibility to make previews work for outsiders as well as they wo
|
|
|
26013
25268
|
|
|
26014
25269
|
// ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
|
|
26015
25270
|
var SECTION12, REFERENCE12, PLUGINS_ABILITY;
|
|
26016
|
-
var
|
|
25271
|
+
var init_plugins = __esm({
|
|
26017
25272
|
"../shared/src/default-skills/replicas-agent/abilities/plugins.ts"() {
|
|
26018
25273
|
"use strict";
|
|
26019
25274
|
SECTION12 = `### Plugins
|
|
@@ -26296,7 +25551,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
|
|
|
26296
25551
|
| --- | --- |
|
|
26297
25552
|
| \`replicas whoami\` | Print the workspace + org identity |
|
|
26298
25553
|
| \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
|
|
26299
|
-
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces |
|
|
25554
|
+
| \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only Motherships |
|
|
26300
25555
|
| \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
|
|
26301
25556
|
| \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
|
|
26302
25557
|
| \`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 |
|
|
@@ -26935,263 +26190,1027 @@ var init_visuals = __esm({
|
|
|
26935
26190
|
anchor.setAttribute('target', '_blank');
|
|
26936
26191
|
anchor.setAttribute('rel', 'noopener');
|
|
26937
26192
|
}
|
|
26938
|
-
}, true);
|
|
26939
|
-
}
|
|
26940
|
-
if (!framed && !nativeView) return;
|
|
26941
|
-
window.addEventListener('click', (event) => {
|
|
26942
|
-
const image = event.composedPath()[0];
|
|
26943
|
-
if (!event.isTrusted || event.defaultPrevented || !(image instanceof HTMLImageElement) || image.closest('a[href], button')) return;
|
|
26944
|
-
let src = image.currentSrc || image.src;
|
|
26945
|
-
if (/^blob:/i.test(src) || (nativeView && /^data:image\\/svg|\\.svg(?:[?#]|$)/i.test(src))) {
|
|
26946
|
-
try {
|
|
26947
|
-
const canvas = document.createElement('canvas');
|
|
26948
|
-
canvas.width = (image.naturalWidth || image.width) * 2;
|
|
26949
|
-
canvas.height = (image.naturalHeight || image.height) * 2;
|
|
26950
|
-
canvas.getContext('2d').drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
26951
|
-
src = canvas.toDataURL('image/png');
|
|
26952
|
-
} catch {
|
|
26953
|
-
return;
|
|
26193
|
+
}, true);
|
|
26194
|
+
}
|
|
26195
|
+
if (!framed && !nativeView) return;
|
|
26196
|
+
window.addEventListener('click', (event) => {
|
|
26197
|
+
const image = event.composedPath()[0];
|
|
26198
|
+
if (!event.isTrusted || event.defaultPrevented || !(image instanceof HTMLImageElement) || image.closest('a[href], button')) return;
|
|
26199
|
+
let src = image.currentSrc || image.src;
|
|
26200
|
+
if (/^blob:/i.test(src) || (nativeView && /^data:image\\/svg|\\.svg(?:[?#]|$)/i.test(src))) {
|
|
26201
|
+
try {
|
|
26202
|
+
const canvas = document.createElement('canvas');
|
|
26203
|
+
canvas.width = (image.naturalWidth || image.width) * 2;
|
|
26204
|
+
canvas.height = (image.naturalHeight || image.height) * 2;
|
|
26205
|
+
canvas.getContext('2d').drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
26206
|
+
src = canvas.toDataURL('image/png');
|
|
26207
|
+
} catch {
|
|
26208
|
+
return;
|
|
26209
|
+
}
|
|
26210
|
+
}
|
|
26211
|
+
if (src) post({ jsonrpc: '2.0', method: '${OPEN_IMAGE_METHOD}', params: { src, name: image.alt } });
|
|
26212
|
+
});
|
|
26213
|
+
let reportedHeight;
|
|
26214
|
+
const reportHeight = () => {
|
|
26215
|
+
const height = ${VISUAL_CONTENT_HEIGHT_EXPRESSION};
|
|
26216
|
+
if (height === reportedHeight) return;
|
|
26217
|
+
reportedHeight = height;
|
|
26218
|
+
post({ jsonrpc: '2.0', method: '${SIZE_CHANGED_METHOD}', params: { height } });
|
|
26219
|
+
};
|
|
26220
|
+
window.addEventListener('message', (event) => {
|
|
26221
|
+
if (event.source !== window.parent || event.data?.method !== '${HOST_CONTEXT_CHANGED_METHOD}') return;
|
|
26222
|
+
const { theme, styles, fontUrl } = event.data.params;
|
|
26223
|
+
applyTheme({ appearance: theme, variables: styles.variables, fontUrl });
|
|
26224
|
+
reportedHeight = undefined;
|
|
26225
|
+
if (document.readyState !== 'loading') reportHeight();
|
|
26226
|
+
});
|
|
26227
|
+
const resizeObserver = new ResizeObserver(reportHeight);
|
|
26228
|
+
resizeObserver.observe(document.documentElement);
|
|
26229
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
26230
|
+
resizeObserver.observe(document.body);
|
|
26231
|
+
reportHeight();
|
|
26232
|
+
});
|
|
26233
|
+
window.addEventListener('load', reportHeight);
|
|
26234
|
+
})();
|
|
26235
|
+
`.trim().replace(/\s*\n\s*/g, " ");
|
|
26236
|
+
blankNonMarkup = (html) => html.replace(
|
|
26237
|
+
/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|xmp|iframe|noembed|noframes|noscript|template)\b[\s\S]*?(?:<\/\1\s*>|$)/gi,
|
|
26238
|
+
(match) => " ".repeat(match.length)
|
|
26239
|
+
);
|
|
26240
|
+
}
|
|
26241
|
+
});
|
|
26242
|
+
|
|
26243
|
+
// ../shared/src/default-skills/replicas-agent/abilities/visuals.ts
|
|
26244
|
+
var SECTION17, REFERENCE17, VISUALS_ABILITY;
|
|
26245
|
+
var init_visuals2 = __esm({
|
|
26246
|
+
"../shared/src/default-skills/replicas-agent/abilities/visuals.ts"() {
|
|
26247
|
+
"use strict";
|
|
26248
|
+
init_visuals();
|
|
26249
|
+
SECTION17 = `### Visuals
|
|
26250
|
+
Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas chat reply, in the chat's own font and colors.
|
|
26251
|
+
|
|
26252
|
+
**Reference:** \`references/VISUALS.md\`
|
|
26253
|
+
|
|
26254
|
+
Use this when:
|
|
26255
|
+
- Seeing it would explain faster than reading it: numbers over time, a flow or architecture, a before and after, options side by side
|
|
26256
|
+
- The user asks to see, chart, plot, compare, or visualize something`;
|
|
26257
|
+
REFERENCE17 = `# Visuals
|
|
26258
|
+
|
|
26259
|
+
A visual is a self-contained HTML page shown inline in your Replicas chat reply. It sits on the chat background in the chat's font and colors, grows to fit its content, and follows the user's light or dark theme live.
|
|
26260
|
+
|
|
26261
|
+
## When to make one
|
|
26262
|
+
|
|
26263
|
+
Make one when seeing beats reading: how parts of a system connect, how a request or data flows, numbers or options compared, a timeline, a before and after, or a UI mockup. Make one when the user asks to see, chart, compare, sketch, or visualize something. Never draw these as ASCII art or text diagrams.
|
|
26264
|
+
|
|
26265
|
+
Don't make one when:
|
|
26266
|
+
- A short answer or list covers it.
|
|
26267
|
+
- It is a plain table: write a Markdown table.
|
|
26268
|
+
- It is screenshots, or a before and after of them: upload them as images, which readers can open full screen and zoom. See "Before and after" in \`references/MEDIA.md\`.
|
|
26269
|
+
- The user wants a page, site, or component in their project: build that in the repo.
|
|
26270
|
+
|
|
26271
|
+
A long report or write-up goes in the Canvas, and its key charts and comparisons go in a visual in your reply. Never screenshot a report, chart, or diagram you made to show it: a long page shrunk to an image can't be read, and it ignores the reader's theme. Screenshots of app UI you changed are still right.
|
|
26272
|
+
|
|
26273
|
+
## Make it
|
|
26274
|
+
|
|
26275
|
+
1. Write the page, for example \`/tmp/visuals/<name>.html\`, following the page rules below.
|
|
26276
|
+
2. Run \`replicas visualize <page.html> --title "<short title>"\`. It checks the page in a headless browser, publishes it, and prints two screenshots (dark at desktop width, light at phone width) with any console errors and layout warnings.
|
|
26277
|
+
3. Open both screenshots and look. If anything is wrong, fix the page and publish again, then use the newest line. While iterating, \`replicas visualize <page.html> --check\` renders without publishing.
|
|
26278
|
+
4. Paste the printed \`\` line on its own line where the visual belongs in your final reply.
|
|
26279
|
+
|
|
26280
|
+
## Page rules
|
|
26281
|
+
|
|
26282
|
+
${VISUAL_PAGE_RULES}
|
|
26283
|
+
|
|
26284
|
+
## In your reply
|
|
26285
|
+
|
|
26286
|
+
- The user sees the visual itself. Don't introduce it ("Here's a chart", "Here's the diagram"), say where it is, or restate its data. Add only what it doesn't say, such as the takeaway or a caveat.
|
|
26287
|
+
- Paste the line in your final reply, not in a progress update. To change a visual, edit the page, publish it again, and paste the new line.
|
|
26288
|
+
- The line only renders in Replicas chat. When you post to pull requests, Slack, Linear, or anywhere else, link the printed Forge link instead. Leave the Forge link out of your chat reply.
|
|
26289
|
+
`;
|
|
26290
|
+
VISUALS_ABILITY = {
|
|
26291
|
+
label: "Visuals",
|
|
26292
|
+
description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
|
|
26293
|
+
// The visuals_instructions system prompt block is its trigger.
|
|
26294
|
+
bullet: "",
|
|
26295
|
+
section: SECTION17,
|
|
26296
|
+
referenceFile: { name: "VISUALS.md", content: REFERENCE17 }
|
|
26297
|
+
};
|
|
26298
|
+
}
|
|
26299
|
+
});
|
|
26300
|
+
|
|
26301
|
+
// ../shared/src/default-skills/replicas-agent/registry.ts
|
|
26302
|
+
var REPLICAS_AGENT_ABILITY_REGISTRY, REPLICAS_AGENT_ABILITIES;
|
|
26303
|
+
var init_registry = __esm({
|
|
26304
|
+
"../shared/src/default-skills/replicas-agent/registry.ts"() {
|
|
26305
|
+
"use strict";
|
|
26306
|
+
init_computer();
|
|
26307
|
+
init_docker();
|
|
26308
|
+
init_environment_setup();
|
|
26309
|
+
init_github2();
|
|
26310
|
+
init_gitlab();
|
|
26311
|
+
init_gpu();
|
|
26312
|
+
init_linear3();
|
|
26313
|
+
init_local_computer();
|
|
26314
|
+
init_macos();
|
|
26315
|
+
init_media();
|
|
26316
|
+
init_previews();
|
|
26317
|
+
init_plugins();
|
|
26318
|
+
init_replicas();
|
|
26319
|
+
init_sentry();
|
|
26320
|
+
init_session_history();
|
|
26321
|
+
init_slack();
|
|
26322
|
+
init_visuals2();
|
|
26323
|
+
REPLICAS_AGENT_ABILITY_REGISTRY = {
|
|
26324
|
+
replicas: REPLICAS_ABILITY,
|
|
26325
|
+
memory: SESSION_HISTORY_ABILITY,
|
|
26326
|
+
computer: COMPUTER_ABILITY,
|
|
26327
|
+
docker: DOCKER_ABILITY,
|
|
26328
|
+
environment_setup: ENVIRONMENT_SETUP_ABILITY,
|
|
26329
|
+
github: GITHUB_ABILITY,
|
|
26330
|
+
gitlab: GITLAB_ABILITY,
|
|
26331
|
+
gpu: GPU_ABILITY,
|
|
26332
|
+
linear: LINEAR_ABILITY,
|
|
26333
|
+
local_computer: LOCAL_COMPUTER_ABILITY,
|
|
26334
|
+
macos: MACOS_ABILITY,
|
|
26335
|
+
media: MEDIA_ABILITY,
|
|
26336
|
+
plugins: PLUGINS_ABILITY,
|
|
26337
|
+
previews: PREVIEWS_ABILITY,
|
|
26338
|
+
sentry: SENTRY_ABILITY,
|
|
26339
|
+
slack: SLACK_ABILITY,
|
|
26340
|
+
visuals: VISUALS_ABILITY
|
|
26341
|
+
};
|
|
26342
|
+
REPLICAS_AGENT_ABILITIES = Object.keys(
|
|
26343
|
+
REPLICAS_AGENT_ABILITY_REGISTRY
|
|
26344
|
+
);
|
|
26345
|
+
}
|
|
26346
|
+
});
|
|
26347
|
+
|
|
26348
|
+
// ../shared/src/routes/preferences.ts
|
|
26349
|
+
function defaultReplicasAgentAbilities() {
|
|
26350
|
+
const abilities = {};
|
|
26351
|
+
for (const key of REPLICAS_AGENT_ABILITIES) {
|
|
26352
|
+
abilities[key] = true;
|
|
26353
|
+
}
|
|
26354
|
+
if (hasAllReplicasAgentAbilities(abilities)) return abilities;
|
|
26355
|
+
throw new Error("Default Replicas agent ability flags are incomplete");
|
|
26356
|
+
}
|
|
26357
|
+
function hasAllReplicasAgentAbilities(abilities) {
|
|
26358
|
+
return REPLICAS_AGENT_ABILITIES.every((key) => typeof abilities[key] === "boolean");
|
|
26359
|
+
}
|
|
26360
|
+
var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, WALLPAPER_DITHERS, WALLPAPER_EFFECTS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS, defaultSkillsOverridesSchema, LINEAR_ROUTING_SKILL_MAX_LENGTH, linearRoutingSkillSchema;
|
|
26361
|
+
var init_preferences = __esm({
|
|
26362
|
+
"../shared/src/routes/preferences.ts"() {
|
|
26363
|
+
"use strict";
|
|
26364
|
+
init_zod();
|
|
26365
|
+
init_uuid();
|
|
26366
|
+
init_agent();
|
|
26367
|
+
init_push();
|
|
26368
|
+
init_registry();
|
|
26369
|
+
EMPTY_AGENT_DEFAULT_SETTINGS = {
|
|
26370
|
+
agent_provider: null,
|
|
26371
|
+
model: null,
|
|
26372
|
+
thinking_level: null,
|
|
26373
|
+
goal_mode: null,
|
|
26374
|
+
fast_mode: null
|
|
26375
|
+
};
|
|
26376
|
+
DEFAULT_SUBAGENT_MCP_PROVIDERS = [...ENGINE_AGENT_PROVIDERS];
|
|
26377
|
+
ALERT_SOUND_FAMILIES = {
|
|
26378
|
+
glass: ["glint", "tap", "ripple", "halo"],
|
|
26379
|
+
wood: ["ready", "pluck", "knock", "bloom", "steps"]
|
|
26380
|
+
};
|
|
26381
|
+
ALERT_SOUNDS = [...ALERT_SOUND_FAMILIES.glass, ...ALERT_SOUND_FAMILIES.wood];
|
|
26382
|
+
WALLPAPER_DITHERS = ["dither", "halftone", "modulation"];
|
|
26383
|
+
WALLPAPER_EFFECTS = ["soft", "grain", "duotone", ...WALLPAPER_DITHERS, "none"];
|
|
26384
|
+
PUSH_WHEN_ACTIVE_COPY = {
|
|
26385
|
+
wait: `Wait ${PUSH_HOLD_MINUTES} minutes`,
|
|
26386
|
+
skip: "Don\u2019t send",
|
|
26387
|
+
send: "Send right away"
|
|
26388
|
+
};
|
|
26389
|
+
DEFAULT_USER_PREFERENCES = {
|
|
26390
|
+
default_agent: null,
|
|
26391
|
+
default_model: null,
|
|
26392
|
+
claude_models: null,
|
|
26393
|
+
codex_models: null,
|
|
26394
|
+
cursor_models: null,
|
|
26395
|
+
claude_hidden_models: null,
|
|
26396
|
+
codex_hidden_models: null,
|
|
26397
|
+
cursor_hidden_models: null,
|
|
26398
|
+
openrouter_models: null,
|
|
26399
|
+
opencode_go_models: null,
|
|
26400
|
+
close_workspace_on_pr_close: false,
|
|
26401
|
+
close_workspace_on_pr_merge: false,
|
|
26402
|
+
default_environment_id: null,
|
|
26403
|
+
respond_to_ci_workflows: true,
|
|
26404
|
+
respond_to_ci_checks: true,
|
|
26405
|
+
respond_to_human_pr_reviews: false,
|
|
26406
|
+
pr_user_attribution: false,
|
|
26407
|
+
github_commit_name: null,
|
|
26408
|
+
github_commit_email: null,
|
|
26409
|
+
auto_draft_prs: false,
|
|
26410
|
+
open_prs_in_graphite: false,
|
|
26411
|
+
open_links_in_desktop_app: false,
|
|
26412
|
+
local_control: false,
|
|
26413
|
+
spotify_controls: false,
|
|
26414
|
+
appshot_shortcut: "command",
|
|
26415
|
+
appshot_destination: "automatic",
|
|
26416
|
+
appshot_sound: true,
|
|
26417
|
+
keyboard_shortcuts: {},
|
|
26418
|
+
mothership_tour_seen: false,
|
|
26419
|
+
slack_settings_moved_notice: false,
|
|
26420
|
+
mothership_board_opened: false,
|
|
26421
|
+
follow_up_mode: "steer",
|
|
26422
|
+
send_key: "enter",
|
|
26423
|
+
memory_enabled: null,
|
|
26424
|
+
subagent_mcp_enabled: null,
|
|
26425
|
+
default_fast_mode: false,
|
|
26426
|
+
auto_compact_tokens: null,
|
|
26427
|
+
agent_defaults: { ...EMPTY_AGENT_DEFAULT_SETTINGS },
|
|
26428
|
+
fallback_chains: null,
|
|
26429
|
+
alert_sound: null,
|
|
26430
|
+
workspace_alerts: {},
|
|
26431
|
+
automation_alerts: {},
|
|
26432
|
+
push_types: { needs_you: true, finished: true, automations: true, usage_limit: true },
|
|
26433
|
+
push_when_active: "wait",
|
|
26434
|
+
chat_text_size: "default",
|
|
26435
|
+
app_font: "inter",
|
|
26436
|
+
code_font: "geist-mono",
|
|
26437
|
+
wallpaper: null
|
|
26438
|
+
};
|
|
26439
|
+
DEFAULT_DEFAULT_SKILLS = {
|
|
26440
|
+
replicas_agent: {
|
|
26441
|
+
enabled: true,
|
|
26442
|
+
abilities: defaultReplicasAgentAbilities()
|
|
26443
|
+
}
|
|
26444
|
+
};
|
|
26445
|
+
defaultSkillsOverridesSchema = external_exports.strictObject({
|
|
26446
|
+
replicas_agent: external_exports.strictObject({
|
|
26447
|
+
enabled: external_exports.boolean().optional(),
|
|
26448
|
+
abilities: external_exports.partialRecord(external_exports.enum(REPLICAS_AGENT_ABILITIES), external_exports.boolean()).optional()
|
|
26449
|
+
}).optional()
|
|
26450
|
+
});
|
|
26451
|
+
LINEAR_ROUTING_SKILL_MAX_LENGTH = 5e4;
|
|
26452
|
+
linearRoutingSkillSchema = external_exports.union([
|
|
26453
|
+
external_exports.object({ name: external_exports.string().min(1), content: external_exports.string().trim().min(1).max(LINEAR_ROUTING_SKILL_MAX_LENGTH) }),
|
|
26454
|
+
external_exports.object({ name: external_exports.string().min(1), repository_id: external_exports.string().regex(UUID_RE), path: external_exports.string().min(1) })
|
|
26455
|
+
]);
|
|
26456
|
+
}
|
|
26457
|
+
});
|
|
26458
|
+
|
|
26459
|
+
// ../shared/src/environment-files.ts
|
|
26460
|
+
function validateEnvironmentFilePath(path11) {
|
|
26461
|
+
const trimmedPath = path11.trim();
|
|
26462
|
+
if (!trimmedPath) {
|
|
26463
|
+
return "Path is required.";
|
|
26464
|
+
}
|
|
26465
|
+
if (!trimmedPath.startsWith(HOME_PREFIX)) {
|
|
26466
|
+
return `Path must start with the home-directory prefix ~/ . ${ENVIRONMENT_FILE_PATH_GUIDANCE}`.replace("~/ .", "~/");
|
|
26467
|
+
}
|
|
26468
|
+
if (trimmedPath === HOME_PREFIX) {
|
|
26469
|
+
return "Path must include a file name after ~/.";
|
|
26470
|
+
}
|
|
26471
|
+
return null;
|
|
26472
|
+
}
|
|
26473
|
+
var HOME_PREFIX, ENVIRONMENT_FILE_PATH_GUIDANCE;
|
|
26474
|
+
var init_environment_files = __esm({
|
|
26475
|
+
"../shared/src/environment-files.ts"() {
|
|
26476
|
+
"use strict";
|
|
26477
|
+
HOME_PREFIX = "~/";
|
|
26478
|
+
ENVIRONMENT_FILE_PATH_GUIDANCE = "Use ~/... for home-directory files, or ~/workspaces/... for files that should live alongside your cloned repositories.";
|
|
26479
|
+
}
|
|
26480
|
+
});
|
|
26481
|
+
|
|
26482
|
+
// ../shared/src/routes/plugin-catalog.ts
|
|
26483
|
+
var EXPLICIT_PLUGIN_CATALOG, HOSTED_COMPOSIO_PLUGIN_DEFINITIONS, HOSTED_COMPOSIO_PLUGINS, READ_ONLY_SCOPES, PLUGIN_CATALOG;
|
|
26484
|
+
var init_plugin_catalog = __esm({
|
|
26485
|
+
"../shared/src/routes/plugin-catalog.ts"() {
|
|
26486
|
+
"use strict";
|
|
26487
|
+
EXPLICIT_PLUGIN_CATALOG = [
|
|
26488
|
+
{
|
|
26489
|
+
id: "attio",
|
|
26490
|
+
backend: "composio",
|
|
26491
|
+
toolkit: "attio",
|
|
26492
|
+
authType: "oauth",
|
|
26493
|
+
category: "business",
|
|
26494
|
+
name: "Attio",
|
|
26495
|
+
description: "Manage CRM records, people, companies, lists, and notes."
|
|
26496
|
+
},
|
|
26497
|
+
{
|
|
26498
|
+
id: "calendly",
|
|
26499
|
+
backend: "composio",
|
|
26500
|
+
toolkit: "calendly",
|
|
26501
|
+
authType: "oauth",
|
|
26502
|
+
category: "productivity",
|
|
26503
|
+
name: "Calendly",
|
|
26504
|
+
description: "Manage event types, scheduled events, invitees, and scheduling links."
|
|
26505
|
+
},
|
|
26506
|
+
{
|
|
26507
|
+
id: "clickhouse",
|
|
26508
|
+
backend: "composio",
|
|
26509
|
+
toolkit: "clickhouse",
|
|
26510
|
+
authType: "basic",
|
|
26511
|
+
category: "data",
|
|
26512
|
+
name: "ClickHouse",
|
|
26513
|
+
description: "Manage databases, tables, schemas, and queries."
|
|
26514
|
+
},
|
|
26515
|
+
{
|
|
26516
|
+
id: "cloudflare",
|
|
26517
|
+
backend: "composio",
|
|
26518
|
+
toolkit: "cloudflare_api_key",
|
|
26519
|
+
authType: "api_key",
|
|
26520
|
+
category: "data",
|
|
26521
|
+
name: "Cloudflare",
|
|
26522
|
+
description: "Manage zones, DNS records, analytics, and security settings."
|
|
26523
|
+
},
|
|
26524
|
+
{
|
|
26525
|
+
id: "e2b",
|
|
26526
|
+
toolkit: "e2b",
|
|
26527
|
+
backend: "native",
|
|
26528
|
+
authType: "api_key",
|
|
26529
|
+
category: "data",
|
|
26530
|
+
name: "E2B",
|
|
26531
|
+
description: "Create secure cloud sandboxes and run commands in them."
|
|
26532
|
+
},
|
|
26533
|
+
{
|
|
26534
|
+
id: "gmail",
|
|
26535
|
+
backend: "composio",
|
|
26536
|
+
toolkit: "gmail",
|
|
26537
|
+
authType: "oauth",
|
|
26538
|
+
category: "productivity",
|
|
26539
|
+
name: "Gmail",
|
|
26540
|
+
description: "Manage messages, threads, attachments, labels, and mailbox settings."
|
|
26541
|
+
},
|
|
26542
|
+
{
|
|
26543
|
+
id: "greptile",
|
|
26544
|
+
backend: "native",
|
|
26545
|
+
toolkit: "greptile",
|
|
26546
|
+
authType: "api_key",
|
|
26547
|
+
category: "data",
|
|
26548
|
+
name: "Greptile Knowledge Base",
|
|
26549
|
+
description: "Search and read self-updating codebase documentation, architecture, and flows."
|
|
26550
|
+
},
|
|
26551
|
+
{
|
|
26552
|
+
id: "googleads",
|
|
26553
|
+
backend: "composio",
|
|
26554
|
+
toolkit: "googleads",
|
|
26555
|
+
authType: "oauth",
|
|
26556
|
+
category: "data",
|
|
26557
|
+
name: "Google Ads",
|
|
26558
|
+
description: "Manage campaigns, customers, accounts, and reporting data."
|
|
26559
|
+
},
|
|
26560
|
+
{
|
|
26561
|
+
id: "googledocs",
|
|
26562
|
+
backend: "composio",
|
|
26563
|
+
toolkit: "googledocs",
|
|
26564
|
+
authType: "oauth",
|
|
26565
|
+
category: "productivity",
|
|
26566
|
+
name: "Google Docs",
|
|
26567
|
+
description: "Manage documents, structure, comments, and exported content."
|
|
26568
|
+
},
|
|
26569
|
+
{
|
|
26570
|
+
id: "googledrive",
|
|
26571
|
+
backend: "composio",
|
|
26572
|
+
toolkit: "googledrive",
|
|
26573
|
+
authType: "oauth",
|
|
26574
|
+
category: "productivity",
|
|
26575
|
+
name: "Google Drive",
|
|
26576
|
+
description: "Manage files, folders, metadata, permissions, and shared drives."
|
|
26577
|
+
},
|
|
26578
|
+
{
|
|
26579
|
+
id: "googlesearch",
|
|
26580
|
+
backend: "composio",
|
|
26581
|
+
toolkit: "google_search_console",
|
|
26582
|
+
authType: "oauth",
|
|
26583
|
+
category: "data",
|
|
26584
|
+
name: "Google Search",
|
|
26585
|
+
description: "Manage Search Console performance, indexing, sites, and sitemaps."
|
|
26586
|
+
},
|
|
26587
|
+
{
|
|
26588
|
+
id: "googlesheets",
|
|
26589
|
+
backend: "composio",
|
|
26590
|
+
toolkit: "googlesheets",
|
|
26591
|
+
authType: "oauth",
|
|
26592
|
+
category: "productivity",
|
|
26593
|
+
name: "Google Sheets",
|
|
26594
|
+
description: "Manage spreadsheets, worksheets, ranges, tables, and charts."
|
|
26595
|
+
},
|
|
26596
|
+
{
|
|
26597
|
+
id: "linkedin",
|
|
26598
|
+
backend: "composio",
|
|
26599
|
+
toolkit: "linkedin",
|
|
26600
|
+
authType: "oauth",
|
|
26601
|
+
category: "business",
|
|
26602
|
+
name: "LinkedIn",
|
|
26603
|
+
description: "Manage profiles, organizations, posts, and professional activity."
|
|
26604
|
+
},
|
|
26605
|
+
{
|
|
26606
|
+
id: "modal",
|
|
26607
|
+
backend: "native",
|
|
26608
|
+
toolkit: "modal",
|
|
26609
|
+
authType: "basic",
|
|
26610
|
+
category: "data",
|
|
26611
|
+
name: "Modal",
|
|
26612
|
+
description: "Invoke deployed functions through Modal compute."
|
|
26613
|
+
},
|
|
26614
|
+
{
|
|
26615
|
+
id: "posthog",
|
|
26616
|
+
backend: "composio",
|
|
26617
|
+
toolkit: "posthog",
|
|
26618
|
+
authType: "api_key",
|
|
26619
|
+
category: "data",
|
|
26620
|
+
name: "PostHog",
|
|
26621
|
+
description: "Manage projects, events, insights, dashboards, flags, and recordings."
|
|
26622
|
+
},
|
|
26623
|
+
{
|
|
26624
|
+
id: "planetscale",
|
|
26625
|
+
toolkit: "planetscale",
|
|
26626
|
+
backend: "native",
|
|
26627
|
+
authType: "oauth",
|
|
26628
|
+
category: "data",
|
|
26629
|
+
name: "PlanetScale",
|
|
26630
|
+
description: "Manage organizations, databases, branches, deploy requests, and Insights."
|
|
26631
|
+
},
|
|
26632
|
+
{
|
|
26633
|
+
id: "sazabi",
|
|
26634
|
+
backend: "native",
|
|
26635
|
+
toolkit: "sazabi",
|
|
26636
|
+
authType: "oauth",
|
|
26637
|
+
category: "data",
|
|
26638
|
+
name: "Sazabi",
|
|
26639
|
+
description: "Query logs, investigate issues, and run the Sazabi observability agent."
|
|
26640
|
+
},
|
|
26641
|
+
{
|
|
26642
|
+
id: "stripe",
|
|
26643
|
+
backend: "composio",
|
|
26644
|
+
toolkit: "stripe",
|
|
26645
|
+
authType: "oauth",
|
|
26646
|
+
category: "business",
|
|
26647
|
+
name: "Stripe",
|
|
26648
|
+
description: "Manage customers, payments, invoices, subscriptions, and balances."
|
|
26649
|
+
},
|
|
26650
|
+
{
|
|
26651
|
+
id: "kondo",
|
|
26652
|
+
backend: "native",
|
|
26653
|
+
toolkit: "kondo",
|
|
26654
|
+
authType: "oauth",
|
|
26655
|
+
category: "business",
|
|
26656
|
+
name: "Kondo",
|
|
26657
|
+
description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
|
|
26658
|
+
},
|
|
26659
|
+
{
|
|
26660
|
+
id: "lightfield",
|
|
26661
|
+
backend: "native",
|
|
26662
|
+
toolkit: "lightfield",
|
|
26663
|
+
authType: "api_key",
|
|
26664
|
+
category: "business",
|
|
26665
|
+
name: "Lightfield",
|
|
26666
|
+
description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
|
|
26667
|
+
},
|
|
26668
|
+
{
|
|
26669
|
+
id: "pangram",
|
|
26670
|
+
backend: "native",
|
|
26671
|
+
toolkit: "pangram",
|
|
26672
|
+
authType: "api_key",
|
|
26673
|
+
category: "data",
|
|
26674
|
+
name: "Pangram",
|
|
26675
|
+
description: "Analyze text for AI generation and plagiarism signals."
|
|
26676
|
+
},
|
|
26677
|
+
{
|
|
26678
|
+
id: "vercel",
|
|
26679
|
+
backend: "native",
|
|
26680
|
+
toolkit: "vercel",
|
|
26681
|
+
authType: "api_key",
|
|
26682
|
+
category: "data",
|
|
26683
|
+
name: "Vercel",
|
|
26684
|
+
description: "Manage projects, deployments, logs, domains, and infrastructure."
|
|
26685
|
+
},
|
|
26686
|
+
{
|
|
26687
|
+
id: "turbopuffer",
|
|
26688
|
+
backend: "native",
|
|
26689
|
+
toolkit: "turbopuffer",
|
|
26690
|
+
authType: "api_key",
|
|
26691
|
+
category: "data",
|
|
26692
|
+
name: "turbopuffer",
|
|
26693
|
+
description: "Query and manage turbopuffer namespaces."
|
|
26694
|
+
},
|
|
26695
|
+
{
|
|
26696
|
+
id: "vanta",
|
|
26697
|
+
backend: "native",
|
|
26698
|
+
toolkit: "vanta",
|
|
26699
|
+
authType: "credentials",
|
|
26700
|
+
category: "data",
|
|
26701
|
+
name: "Vanta",
|
|
26702
|
+
description: "Review and manage controls, tests, evidence, vendors, risks, and compliance data."
|
|
26703
|
+
}
|
|
26704
|
+
];
|
|
26705
|
+
HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
|
|
26706
|
+
["notion", "notion", "OAUTH2", true, "productivity", "Notion"],
|
|
26707
|
+
["jira", "jira", "OAUTH2", true, "productivity", "Jira"],
|
|
26708
|
+
["confluence", "confluence", "OAUTH2", true, "productivity", "Confluence"],
|
|
26709
|
+
["googlecalendar", "googlecalendar", "OAUTH2", true, "productivity", "Google Calendar"],
|
|
26710
|
+
["microsoftteams", "microsoft_teams", "OAUTH2", true, "productivity", "Microsoft Teams"],
|
|
26711
|
+
["outlook", "outlook", "OAUTH2", true, "productivity", "Outlook"],
|
|
26712
|
+
["bitbucket", "bitbucket", "OAUTH2", true, "data", "Bitbucket"],
|
|
26713
|
+
["datadog", "datadog", "API_KEY", false, "data", "Datadog"],
|
|
26714
|
+
["pagerduty", "pagerduty", "OAUTH2", true, "data", "PagerDuty"],
|
|
26715
|
+
["intercom", "intercom", "OAUTH2", true, "business", "Intercom"],
|
|
26716
|
+
["zendesk", "zendesk", "OAUTH2", true, "business", "Zendesk"],
|
|
26717
|
+
["hubspot", "hubspot", "OAUTH2", true, "business", "HubSpot"],
|
|
26718
|
+
["supabase", "supabase", "OAUTH2", true, "data", "Supabase"],
|
|
26719
|
+
["figma", "figma", "OAUTH2", true, "productivity", "Figma"],
|
|
26720
|
+
["launchdarkly", "launch_darkly", "API_KEY", false, "data", "LaunchDarkly"],
|
|
26721
|
+
["asana", "asana", "OAUTH2", true, "productivity", "Asana"],
|
|
26722
|
+
["clickup", "clickup", "OAUTH2", true, "productivity", "ClickUp"],
|
|
26723
|
+
["trello", "trello", "OAUTH1", true, "productivity", "Trello"],
|
|
26724
|
+
["todoist", "todoist", "OAUTH2", true, "productivity", "Todoist"],
|
|
26725
|
+
["airtable", "airtable", "OAUTH2", true, "productivity", "Airtable"],
|
|
26726
|
+
["coda", "coda", "API_KEY", false, "productivity", "Coda"],
|
|
26727
|
+
["miro", "miro", "OAUTH2", true, "productivity", "Miro"],
|
|
26728
|
+
["sharepoint", "share_point", "OAUTH2", true, "productivity", "SharePoint"],
|
|
26729
|
+
["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
|
|
26730
|
+
["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
|
|
26731
|
+
["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
|
|
26732
|
+
["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
|
|
26733
|
+
["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
|
|
26734
|
+
["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
|
|
26735
|
+
["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
|
|
26736
|
+
["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
|
|
26737
|
+
["box", "box", "OAUTH2", true, "productivity", "Box"],
|
|
26738
|
+
["discord", "discord", "OAUTH2", true, "productivity", "Discord"],
|
|
26739
|
+
["discordbot", "discordbot", "OAUTH2", true, "productivity", "Discord Bot"],
|
|
26740
|
+
["zoom", "zoom", "OAUTH2", true, "productivity", "Zoom"],
|
|
26741
|
+
["googlechat", "google_chat", "OAUTH2", false, "productivity", "Google Chat"],
|
|
26742
|
+
["newrelic", "new_relic", "API_KEY", false, "data", "New Relic"],
|
|
26743
|
+
["betterstack", "better_stack", "API_KEY", false, "data", "Better Stack"],
|
|
26744
|
+
["incidentio", "incident_io", "API_KEY", false, "data", "incident.io"],
|
|
26745
|
+
["grafana", "grafana", "BEARER_TOKEN", false, "data", "Grafana"],
|
|
26746
|
+
["honeycomb", "honeycomb_mcp", "DCR_OAUTH", false, "data", "Honeycomb MCP"],
|
|
26747
|
+
["neon", "neon_mcp", "DCR_OAUTH", false, "data", "Neon"],
|
|
26748
|
+
["glen", "glen_mcp", "DCR_OAUTH", false, "data", "Glen"],
|
|
26749
|
+
["bugsnag", "bugsnag", "API_KEY", false, "data", "Bugsnag"],
|
|
26750
|
+
["circleci", "circleci", "API_KEY", false, "data", "CircleCI"],
|
|
26751
|
+
["buildkite", "buildkite", "API_KEY", false, "data", "Buildkite"],
|
|
26752
|
+
["dockerhub", "docker_hub", "API_KEY", false, "data", "Docker Hub"],
|
|
26753
|
+
["digitalocean", "digital_ocean", "OAUTH2", true, "data", "DigitalOcean"],
|
|
26754
|
+
["railway", "railway", "API_KEY", false, "data", "Railway"],
|
|
26755
|
+
["render", "render", "API_KEY", false, "data", "Render"],
|
|
26756
|
+
["firebase", "firebase", "API_KEY", false, "data", "Firebase"],
|
|
26757
|
+
["cloudinary", "cloudinary", "API_KEY", false, "data", "Cloudinary"],
|
|
26758
|
+
["configcat", "configcat", "API_KEY", false, "data", "ConfigCat"],
|
|
26759
|
+
["contextdev", "context_dev", "API_KEY", false, "data", "Context.dev"],
|
|
26760
|
+
["googleanalytics", "google_analytics", "OAUTH2", true, "data", "Google Analytics"],
|
|
26761
|
+
["googlebigquery", "googlebigquery", "OAUTH2", true, "data", "Google BigQuery"],
|
|
26762
|
+
["amplitude", "amplitude", "API_KEY", false, "data", "Amplitude"],
|
|
26763
|
+
["mixpanel", "mixpanel", "BASIC", false, "data", "Mixpanel"],
|
|
26764
|
+
["segment", "segment", "API_KEY", false, "data", "Segment"],
|
|
26765
|
+
["supermemory", "supermemory", "API_KEY", false, "data", "Supermemory"],
|
|
26766
|
+
["databricks", "databricks", "API_KEY", false, "data", "Databricks"],
|
|
26767
|
+
["snowflake", "snowflake", "OAUTH2", false, "data", "Snowflake"],
|
|
26768
|
+
["algolia", "algolia", "API_KEY", false, "data", "Algolia"],
|
|
26769
|
+
["elasticsearch", "elasticsearch", "API_KEY", false, "data", "Elasticsearch"],
|
|
26770
|
+
["salesforce", "salesforce", "OAUTH2", true, "business", "Salesforce"],
|
|
26771
|
+
["pipedrive", "pipedrive", "API_KEY", false, "business", "Pipedrive"],
|
|
26772
|
+
["close", "close", "API_KEY", false, "business", "Close"],
|
|
26773
|
+
["apollo", "apollo", "API_KEY", false, "business", "Apollo"],
|
|
26774
|
+
["gong", "gong", "OAUTH2", true, "business", "Gong"],
|
|
26775
|
+
["freshdesk", "freshdesk", "API_KEY", false, "business", "Freshdesk"],
|
|
26776
|
+
["helpscout", "help_scout", "OAUTH2", false, "business", "Help Scout"],
|
|
26777
|
+
["servicenow", "servicenow", "BASIC", false, "business", "ServiceNow"],
|
|
26778
|
+
["mailchimp", "mailchimp", "OAUTH2", true, "business", "Mailchimp"],
|
|
26779
|
+
["customerio", "customerio", "API_KEY", false, "business", "Customer.io"],
|
|
26780
|
+
["klaviyo", "klaviyo", "API_KEY", false, "business", "Klaviyo"],
|
|
26781
|
+
["shopify", "shopify", "API_KEY", false, "business", "Shopify"],
|
|
26782
|
+
["quickbooks", "quickbooks", "OAUTH2", true, "business", "QuickBooks"],
|
|
26783
|
+
["xero", "xero", "OAUTH2", false, "business", "Xero"],
|
|
26784
|
+
["brex", "brex", "API_KEY", false, "business", "Brex"],
|
|
26785
|
+
["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
|
|
26786
|
+
["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
|
|
26787
|
+
["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
|
|
26788
|
+
["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
|
|
26789
|
+
["browserbase", "browserbase_tool", "API_KEY", false, "data", "Browserbase"],
|
|
26790
|
+
["exa", "exa", "API_KEY", false, "data", "Exa"],
|
|
26791
|
+
["youtube", "youtube", "OAUTH2", true, "business", "YouTube"],
|
|
26792
|
+
["twitter", "twitter", "OAUTH2", false, "business", "Twitter/X"],
|
|
26793
|
+
["instagram", "instagram", "OAUTH2", true, "business", "Instagram"],
|
|
26794
|
+
["facebook", "facebook", "OAUTH2", true, "business", "Facebook"]
|
|
26795
|
+
];
|
|
26796
|
+
HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
|
|
26797
|
+
([id, toolkit, authScheme, managedAuth, category, name]) => ({
|
|
26798
|
+
id,
|
|
26799
|
+
backend: "composio",
|
|
26800
|
+
toolkit,
|
|
26801
|
+
authType: "hosted",
|
|
26802
|
+
authScheme,
|
|
26803
|
+
managedAuth,
|
|
26804
|
+
category,
|
|
26805
|
+
name,
|
|
26806
|
+
description: `Use ${name} tools from workspace agents.`
|
|
26807
|
+
})
|
|
26808
|
+
);
|
|
26809
|
+
READ_ONLY_SCOPES = {
|
|
26810
|
+
gmail: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/contacts.readonly", "https://www.googleapis.com/auth/contacts.other.readonly", "https://www.googleapis.com/auth/gmail.readonly"],
|
|
26811
|
+
googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
|
|
26812
|
+
googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
|
|
26813
|
+
googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
|
|
26814
|
+
googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
|
|
26815
|
+
googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
|
|
26816
|
+
googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
|
|
26817
|
+
googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
|
|
26818
|
+
googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
|
|
26819
|
+
youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
|
|
26820
|
+
outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
|
|
26821
|
+
onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
|
|
26822
|
+
microsoftteams: ["User.Read", "Team.ReadBasic.All", "Channel.ReadBasic.All", "ChannelMessage.Read.All", "Chat.Read", "Chat.ReadBasic", "ChatMessage.Read", "People.Read.All", "TeamsActivity.Read", "offline_access"],
|
|
26823
|
+
jira: ["read:jira-work", "read:jira-user", "read:servicedesk-request", "read:servicemanagement-insight-objects", "read:sprint:jira-software", "read:board-scope:jira-software", "read:project:jira", "read:issue-type-scheme:jira", "offline_access"],
|
|
26824
|
+
confluence: ["read:space-details:confluence", "read:audit-log:confluence", "read:page:confluence", "read:blogpost:confluence", "read:whiteboard:confluence", "read:comment:confluence", "read:content.restriction:confluence", "read:content.metadata:confluence", "read:inlinetask:confluence", "read:task:confluence", "offline_access"],
|
|
26825
|
+
zendesk: ["read"],
|
|
26826
|
+
gong: ["api:calls:read:basic", "api:calls:read:extensive", "api:calls:read:transcript", "api:calls:read:media-url", "api:users:read", "api:stats:interaction", "api:stats:scorecards", "api:stats:user-actions", "api:stats:user-actions:detailed", "api:settings:scorecards:read", "api:settings:trackers:read", "api:library:read", "api:tasks:read", "api:flows:read", "api:workspaces:read", "api:crm:get-objects", "api:crm:schema", "api:crm:integrations:read", "api:call-outcomes:read", "api:permission-profile:read", "api:logs:read"],
|
|
26827
|
+
figma: ["current_user:read", "file_content:read", "file_comments:read", "file_metadata:read", "file_versions:read", "projects:read", "library_assets:read", "library_content:read", "team_library_content:read", "webhooks:read"],
|
|
26828
|
+
airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
|
|
26829
|
+
todoist: ["data:read"],
|
|
26830
|
+
dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
|
|
26831
|
+
canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
|
|
26832
|
+
facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
|
|
26833
|
+
instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
|
|
26834
|
+
};
|
|
26835
|
+
PLUGIN_CATALOG = [
|
|
26836
|
+
...EXPLICIT_PLUGIN_CATALOG,
|
|
26837
|
+
...HOSTED_COMPOSIO_PLUGINS
|
|
26838
|
+
].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
|
|
26839
|
+
}
|
|
26840
|
+
});
|
|
26841
|
+
|
|
26842
|
+
// ../shared/src/routes/plugins.ts
|
|
26843
|
+
function isPluginId(value) {
|
|
26844
|
+
return PLUGIN_CATALOG.some((plugin) => plugin.id === value);
|
|
26845
|
+
}
|
|
26846
|
+
var init_plugins2 = __esm({
|
|
26847
|
+
"../shared/src/routes/plugins.ts"() {
|
|
26848
|
+
"use strict";
|
|
26849
|
+
init_plugin_catalog();
|
|
26850
|
+
init_plugin_catalog();
|
|
26851
|
+
}
|
|
26852
|
+
});
|
|
26853
|
+
|
|
26854
|
+
// ../shared/src/environment-config.ts
|
|
26855
|
+
var variableNameSchema, mcpValueSchema, mcpValuesSchema, httpConfigSchema, replicasMcpDefinitionSchema, replicasEnvironmentConfigSchema;
|
|
26856
|
+
var init_environment_config = __esm({
|
|
26857
|
+
"../shared/src/environment-config.ts"() {
|
|
26858
|
+
"use strict";
|
|
26859
|
+
init_zod();
|
|
26860
|
+
init_preferences();
|
|
26861
|
+
init_registry();
|
|
26862
|
+
init_environment();
|
|
26863
|
+
init_sandbox();
|
|
26864
|
+
init_environment_files();
|
|
26865
|
+
init_plugins2();
|
|
26866
|
+
init_environment_setups();
|
|
26867
|
+
variableNameSchema = external_exports.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name");
|
|
26868
|
+
mcpValueSchema = external_exports.union([
|
|
26869
|
+
external_exports.string(),
|
|
26870
|
+
environmentMcpVariableReferenceSchema
|
|
26871
|
+
]);
|
|
26872
|
+
mcpValuesSchema = external_exports.record(external_exports.string(), mcpValueSchema);
|
|
26873
|
+
httpConfigSchema = environmentMcpHttpConfigSchema.pick({ url: true, auth: true }).extend({
|
|
26874
|
+
headers: mcpValuesSchema.default({})
|
|
26875
|
+
}).strict();
|
|
26876
|
+
replicasMcpDefinitionSchema = external_exports.discriminatedUnion("transport", [
|
|
26877
|
+
external_exports.strictObject({
|
|
26878
|
+
transport: external_exports.literal("stdio"),
|
|
26879
|
+
config: environmentMcpStdioConfigSchema.pick({ command: true }).extend({
|
|
26880
|
+
args: environmentMcpStdioConfigSchema.shape.args.unwrap().default([]),
|
|
26881
|
+
env: external_exports.record(variableNameSchema, mcpValueSchema).default({})
|
|
26882
|
+
}).strict()
|
|
26883
|
+
}),
|
|
26884
|
+
external_exports.strictObject({ transport: external_exports.literal("http"), config: httpConfigSchema }),
|
|
26885
|
+
external_exports.strictObject({ transport: external_exports.literal("sse"), config: httpConfigSchema })
|
|
26886
|
+
]).superRefine((definition, context) => {
|
|
26887
|
+
if (definition.transport === "stdio") return;
|
|
26888
|
+
const result = validateEnvironmentMcpAuthentication(definition.transport, definition.config);
|
|
26889
|
+
if (!result.ok) context.addIssue({ code: "custom", path: result.error.code === "transport" ? ["transport"] : ["config", result.error.code ?? "auth"], message: result.error.message });
|
|
26890
|
+
});
|
|
26891
|
+
replicasEnvironmentConfigSchema = external_exports.strictObject({
|
|
26892
|
+
inheritRepositories: external_exports.boolean().optional(),
|
|
26893
|
+
memory: external_exports.strictObject({ read: external_exports.boolean().optional(), write: external_exports.boolean().optional() }).nullable().optional(),
|
|
26894
|
+
gpu: external_exports.boolean().nullable().optional(),
|
|
26895
|
+
mobileTesting: external_exports.boolean().nullable().optional(),
|
|
26896
|
+
defaultSkills: defaultSkillsOverridesSchema.superRefine((skills2, context) => {
|
|
26897
|
+
for (const ability of REPLICAS_AGENT_ABILITIES) if (skills2.replicas_agent?.abilities?.[ability] === false && REPLICAS_AGENT_ABILITY_REGISTRY[ability].locked) context.addIssue({ code: "custom", path: ["replicas_agent", "abilities", ability], message: "This built-in ability cannot be disabled" });
|
|
26898
|
+
}).nullable().optional(),
|
|
26899
|
+
repositories: external_exports.array(external_exports.string().trim().min(1)).optional(),
|
|
26900
|
+
workspaceSize: external_exports.enum(WORKSPACE_SIZE_OPTIONS).optional(),
|
|
26901
|
+
files: external_exports.record(external_exports.string().trim().refine((path11) => !validateEnvironmentFilePath(path11), "must be a file path starting with ~/"), external_exports.strictObject({
|
|
26902
|
+
name: external_exports.string().trim().min(1).optional(),
|
|
26903
|
+
content: external_exports.string().max(65536)
|
|
26904
|
+
})).optional(),
|
|
26905
|
+
skills: external_exports.record(external_exports.string().trim().min(1), external_exports.strictObject({ source: external_exports.string().trim().min(1), name: external_exports.string().trim().min(1).optional() })).optional(),
|
|
26906
|
+
requiredPlugins: external_exports.array(external_exports.string().refine(isPluginId, "must be a supported plugin")).transform((plugins2) => [...new Set(plugins2)]).optional(),
|
|
26907
|
+
systemPrompt: external_exports.string().optional(),
|
|
26908
|
+
warmHook: external_exports.string().optional(),
|
|
26909
|
+
startHook: external_exports.string().optional(),
|
|
26910
|
+
variables: external_exports.record(variableNameSchema, external_exports.string()).optional(),
|
|
26911
|
+
requiredSecrets: external_exports.array(variableNameSchema).optional(),
|
|
26912
|
+
mcps: external_exports.record(external_exports.string().regex(MCP_NAME_PATTERN, "must be 1\u201364 letters, digits, underscores or hyphens, starting with a letter or digit").refine((name) => !isReservedMcpName(name), "is reserved for Replicas"), replicasMcpDefinitionSchema).optional()
|
|
26913
|
+
}).superRefine((config3, context) => {
|
|
26914
|
+
if (config3.inheritRepositories === true && config3.repositories !== void 0) context.addIssue({ code: "custom", path: ["repositories"], message: "Inherited repositories cannot also be declared explicitly" });
|
|
26915
|
+
const skillNames = Object.keys(config3.skills ?? {}).map((slug) => slug.toLowerCase());
|
|
26916
|
+
if (new Set(skillNames).size !== skillNames.length) context.addIssue({ code: "custom", path: ["skills"], message: "Skill slugs must be unique regardless of case" });
|
|
26917
|
+
const names = /* @__PURE__ */ new Set();
|
|
26918
|
+
for (const name of Object.keys(config3.mcps ?? {})) {
|
|
26919
|
+
const normalized = name.toLowerCase();
|
|
26920
|
+
if (names.has(normalized)) {
|
|
26921
|
+
context.addIssue({ code: "custom", path: ["mcps", name], message: "MCP names must be unique regardless of case" });
|
|
26922
|
+
}
|
|
26923
|
+
names.add(normalized);
|
|
26924
|
+
}
|
|
26925
|
+
for (const key of config3.requiredSecrets ?? []) {
|
|
26926
|
+
if (config3.variables && Object.hasOwn(config3.variables, key)) {
|
|
26927
|
+
context.addIssue({ code: "custom", path: ["requiredSecrets"], message: `"${key}" cannot also be declared as a non-secret variable` });
|
|
26928
|
+
}
|
|
26954
26929
|
}
|
|
26955
|
-
}
|
|
26956
|
-
if (src) post({ jsonrpc: '2.0', method: '${OPEN_IMAGE_METHOD}', params: { src, name: image.alt } });
|
|
26957
|
-
});
|
|
26958
|
-
let reportedHeight;
|
|
26959
|
-
const reportHeight = () => {
|
|
26960
|
-
const height = ${VISUAL_CONTENT_HEIGHT_EXPRESSION};
|
|
26961
|
-
if (height === reportedHeight) return;
|
|
26962
|
-
reportedHeight = height;
|
|
26963
|
-
post({ jsonrpc: '2.0', method: '${SIZE_CHANGED_METHOD}', params: { height } });
|
|
26964
|
-
};
|
|
26965
|
-
window.addEventListener('message', (event) => {
|
|
26966
|
-
if (event.source !== window.parent || event.data?.method !== '${HOST_CONTEXT_CHANGED_METHOD}') return;
|
|
26967
|
-
const { theme, styles, fontUrl } = event.data.params;
|
|
26968
|
-
applyTheme({ appearance: theme, variables: styles.variables, fontUrl });
|
|
26969
|
-
reportedHeight = undefined;
|
|
26970
|
-
if (document.readyState !== 'loading') reportHeight();
|
|
26971
|
-
});
|
|
26972
|
-
const resizeObserver = new ResizeObserver(reportHeight);
|
|
26973
|
-
resizeObserver.observe(document.documentElement);
|
|
26974
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
26975
|
-
resizeObserver.observe(document.body);
|
|
26976
|
-
reportHeight();
|
|
26977
|
-
});
|
|
26978
|
-
window.addEventListener('load', reportHeight);
|
|
26979
|
-
})();
|
|
26980
|
-
`.trim().replace(/\s*\n\s*/g, " ");
|
|
26981
|
-
blankNonMarkup = (html) => html.replace(
|
|
26982
|
-
/<!--[\s\S]*?(?:-->|$)|<(script|style|textarea|title|xmp|iframe|noembed|noframes|noscript|template)\b[\s\S]*?(?:<\/\1\s*>|$)/gi,
|
|
26983
|
-
(match) => " ".repeat(match.length)
|
|
26984
|
-
);
|
|
26930
|
+
});
|
|
26985
26931
|
}
|
|
26986
26932
|
});
|
|
26987
26933
|
|
|
26988
|
-
// ../shared/src/
|
|
26989
|
-
var
|
|
26990
|
-
var
|
|
26991
|
-
"../shared/src/
|
|
26934
|
+
// ../shared/src/routes/environment-config-source.ts
|
|
26935
|
+
var ENVIRONMENT_CONFIG_PREFERENCES, ENVIRONMENT_CONFIG_SETTING_FIELDS, environmentConfigLocationSchema, sourceInput, previewEnvironmentConfigSourceRequestSchema, applyEnvironmentConfigSourceRequestSchema;
|
|
26936
|
+
var init_environment_config_source = __esm({
|
|
26937
|
+
"../shared/src/routes/environment-config-source.ts"() {
|
|
26992
26938
|
"use strict";
|
|
26993
|
-
|
|
26994
|
-
|
|
26995
|
-
|
|
26939
|
+
init_zod();
|
|
26940
|
+
init_environment_config();
|
|
26941
|
+
ENVIRONMENT_CONFIG_PREFERENCES = [["memory", "memory"], ["gpu", "gpu"], ["mobileTesting", "mobile_testing"], ["defaultSkills", "default_skills"]];
|
|
26942
|
+
ENVIRONMENT_CONFIG_SETTING_FIELDS = ["repositories", "workspaceSize", "inheritRepositories", ...ENVIRONMENT_CONFIG_PREFERENCES.map(([field2]) => field2)];
|
|
26943
|
+
environmentConfigLocationSchema = external_exports.union([
|
|
26944
|
+
external_exports.object({
|
|
26945
|
+
kind: external_exports.literal("git").default("git"),
|
|
26946
|
+
entrypoint_filename: external_exports.string().optional(),
|
|
26947
|
+
repository_id: external_exports.string(),
|
|
26948
|
+
repository_name: external_exports.string(),
|
|
26949
|
+
filename: external_exports.string(),
|
|
26950
|
+
commit_sha: external_exports.string(),
|
|
26951
|
+
source_url: external_exports.string(),
|
|
26952
|
+
file_sha: external_exports.undefined().optional()
|
|
26953
|
+
}),
|
|
26954
|
+
external_exports.object({
|
|
26955
|
+
kind: external_exports.literal("file"),
|
|
26956
|
+
repository_id: external_exports.null(),
|
|
26957
|
+
repository_name: external_exports.null(),
|
|
26958
|
+
filename: external_exports.string(),
|
|
26959
|
+
commit_sha: external_exports.null(),
|
|
26960
|
+
source_url: external_exports.null(),
|
|
26961
|
+
file_sha: external_exports.string()
|
|
26962
|
+
})
|
|
26963
|
+
]);
|
|
26964
|
+
sourceInput = {
|
|
26965
|
+
repository_id: external_exports.string().min(1).optional(),
|
|
26966
|
+
file: external_exports.strictObject({ filename: external_exports.string().min(1).max(1024), environment: replicasEnvironmentConfigSchema }).optional()
|
|
26967
|
+
};
|
|
26968
|
+
previewEnvironmentConfigSourceRequestSchema = external_exports.strictObject(sourceInput).refine(
|
|
26969
|
+
(input2) => !input2.file || !input2.repository_id,
|
|
26970
|
+
{ message: "Choose either a repository or a file" }
|
|
26971
|
+
);
|
|
26972
|
+
applyEnvironmentConfigSourceRequestSchema = external_exports.strictObject({
|
|
26973
|
+
...sourceInput,
|
|
26974
|
+
commit_sha: external_exports.string().min(1).optional(),
|
|
26975
|
+
fingerprint: external_exports.string().min(1)
|
|
26976
|
+
}).refine((input2) => input2.file ? !input2.repository_id && !input2.commit_sha : !!input2.commit_sha, {
|
|
26977
|
+
message: "File configuration requires file contents; Git configuration requires a reviewed commit"
|
|
26978
|
+
});
|
|
26979
|
+
}
|
|
26980
|
+
});
|
|
26996
26981
|
|
|
26997
|
-
|
|
26982
|
+
// ../shared/src/replicas-mcp.ts
|
|
26983
|
+
var REPLICAS_MCP_TOOLS, automationToolInputSchema, credentialUserIdDescription, automationBackgroundSchema, automationCreateToolInputSchema, automationUpdateToolInputSchema, chatPath, provider, model, thinkingLevel, title, message, createChatToolInputSchema, forkChatToolInputSchema, renameChatToolInputSchema, runCommandToolInputSchema, environmentMcpPath, createEnvironmentMcpToolInputSchema, updateEnvironmentMcpToolInputSchema, createEnvironmentDeviceToolInputSchema, previewEnvironmentConfigSourceToolInputSchema, applyEnvironmentConfigSourceToolInputSchema;
|
|
26984
|
+
var init_replicas_mcp = __esm({
|
|
26985
|
+
"../shared/src/replicas-mcp.ts"() {
|
|
26986
|
+
"use strict";
|
|
26987
|
+
init_zod();
|
|
26988
|
+
init_agent();
|
|
26989
|
+
init_linear2();
|
|
26990
|
+
init_trigger_schemas();
|
|
26991
|
+
init_types5();
|
|
26992
|
+
init_chat_fork();
|
|
26993
|
+
init_v1();
|
|
26994
|
+
init_environment();
|
|
26995
|
+
init_environment_config_source();
|
|
26996
|
+
init_workspaces();
|
|
26997
|
+
init_sandbox();
|
|
26998
|
+
REPLICAS_MCP_TOOLS = {
|
|
26999
|
+
listEnvironments: "list_environments",
|
|
27000
|
+
createAutomation: "create_automation",
|
|
27001
|
+
spawn: "spawn_workspace",
|
|
27002
|
+
spawnInNewThread: "spawn_workspace_in_new_thread",
|
|
27003
|
+
relay: "relay_to_workspace",
|
|
27004
|
+
listWorkspaces: "list_workspaces",
|
|
27005
|
+
linearStart: "start_linear_session",
|
|
27006
|
+
linearSessionIntent: "register_linear_session_intent",
|
|
27007
|
+
routeLinearTicket: "route_linear_ticket",
|
|
27008
|
+
listChannelSettings: "list_channel_settings",
|
|
27009
|
+
saveChannelPreset: "save_channel_preset",
|
|
27010
|
+
deleteChannelPreset: "delete_channel_preset",
|
|
27011
|
+
updateChannelSettings: "update_channel_settings",
|
|
27012
|
+
setOrganizationProactivity: "set_organization_proactivity",
|
|
27013
|
+
setSlackAgentDefaults: "set_slack_agent_defaults",
|
|
27014
|
+
claimSettingsOffer: "claim_settings_offer",
|
|
27015
|
+
setThreadMuted: "set_thread_muted",
|
|
27016
|
+
stopWorkspace: "stop_workspace",
|
|
27017
|
+
setSlackConnectMuted: "set_slack_connect_muted",
|
|
27018
|
+
setSlackConnectDefaults: "set_slack_connect_defaults",
|
|
27019
|
+
spawnSubagent: "spawn_subagent",
|
|
27020
|
+
messageSubagent: "message_subagent",
|
|
27021
|
+
listSubagents: "list_subagents",
|
|
27022
|
+
readSubagent: "read_subagent",
|
|
27023
|
+
archiveSubagent: "archive_subagent",
|
|
27024
|
+
mergeWhenReady: "merge_when_ready",
|
|
27025
|
+
waitForSubagents: "wait_for_subagents",
|
|
27026
|
+
getBoard: "get_board",
|
|
27027
|
+
updateBoard: "update_board",
|
|
27028
|
+
updateTicket: "update_ticket",
|
|
27029
|
+
replyOnTicket: "reply_on_ticket",
|
|
27030
|
+
sendToChat: "send_to_chat",
|
|
27031
|
+
setStatus: "set_status",
|
|
27032
|
+
getLinearRouting: "get_linear_routing",
|
|
27033
|
+
setLinearRouting: "set_linear_routing",
|
|
27034
|
+
clearLinearRouting: "clear_linear_routing",
|
|
27035
|
+
getSlackChannel: "get_slack_channel",
|
|
27036
|
+
linkSlackChannel: "link_slack_channel",
|
|
27037
|
+
createSlackChannel: "create_slack_channel",
|
|
27038
|
+
unlinkSlackChannel: "unlink_slack_channel",
|
|
27039
|
+
setSlackChannelLevel: "set_slack_channel_level",
|
|
27040
|
+
createReplica: "create_replica",
|
|
27041
|
+
listReplicas: "list_replicas",
|
|
27042
|
+
getReplica: "get_replica",
|
|
27043
|
+
deleteReplica: "delete_replica",
|
|
27044
|
+
wakeReplica: "wake_replica",
|
|
27045
|
+
sleepReplica: "sleep_replica",
|
|
27046
|
+
archiveReplica: "archive_replica",
|
|
27047
|
+
waitForReplica: "wait_for_replica",
|
|
27048
|
+
runCommand: "run_command",
|
|
27049
|
+
getReplicaHooks: "get_replica_hooks",
|
|
27050
|
+
whoami: "whoami",
|
|
27051
|
+
sendReplicaMessage: "send_replica_message",
|
|
27052
|
+
readReplicaHistory: "read_replica_history",
|
|
27053
|
+
listChats: "list_chats",
|
|
27054
|
+
createChat: "create_chat",
|
|
27055
|
+
deleteChat: "delete_chat",
|
|
27056
|
+
listRepositories: "list_repositories"
|
|
27057
|
+
};
|
|
27058
|
+
automationToolInputSchema = external_exports.object({
|
|
27059
|
+
name: external_exports.string().describe("Short automation name."),
|
|
27060
|
+
prompt: external_exports.string().describe("Prompt each automation run starts with."),
|
|
27061
|
+
environment_id: external_exports.string().describe(`Environment id from \`${REPLICAS_MCP_TOOLS.listEnvironments}\`.`),
|
|
27062
|
+
triggers: external_exports.array(automationTriggerSchema).min(1).describe(
|
|
27063
|
+
`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>"] } }\`. Linear: \`{ "type": "linear", "config": { "event": "${LINEAR_ISSUE_STATE_CHANGED_EVENT}", "state_types": ["completed"] } }\`.`
|
|
27064
|
+
),
|
|
27065
|
+
description: external_exports.string().optional().describe("One-line summary shown in the dashboard."),
|
|
27066
|
+
plan_mode: external_exports.boolean().optional(),
|
|
27067
|
+
goal_mode: external_exports.boolean().optional(),
|
|
27068
|
+
fast_mode: external_exports.boolean().optional(),
|
|
27069
|
+
workspace_lifecycle_policy: external_exports.enum(AUTOMATION_LIFECYCLE_POLICIES).optional().describe(
|
|
27070
|
+
"What happens to a run's workspace when the agent finishes. `delete_when_done` (default, except one-time runs, which default to `default`) when the output lives elsewhere (PR comments, checks, Slack posts); `sleep_when_done` when later runs reuse the workspace, like one per PR across pushes; `default` (keep alive) when people follow up in the workspace."
|
|
27071
|
+
)
|
|
27072
|
+
});
|
|
27073
|
+
credentialUserIdDescription = `Organization automations only: the user ID (see \`${REPLICAS_MCP_TOOLS.whoami}\`) of the member whose coding agent credentials, such as their Claude subscription, runs use before the organization's. Only your workspace's owner, or whoever's credentials this workspace runs on.`;
|
|
27074
|
+
automationBackgroundSchema = external_exports.boolean().optional().describe(
|
|
27075
|
+
"Marks this as an AI agent's own automation (a reminder, follow-up or recurring check-in for its task). Kept out of the main automations list."
|
|
27076
|
+
);
|
|
27077
|
+
automationCreateToolInputSchema = automationToolInputSchema.extend({
|
|
27078
|
+
credential_user_id: external_exports.string().optional().describe(`${credentialUserIdDescription} Omit to use the organization's.`),
|
|
27079
|
+
background: automationBackgroundSchema,
|
|
27080
|
+
scope: external_exports.enum(["org", "user"]).optional().describe("`org` (default) or `user` for a personal automation, which needs a personal API key.")
|
|
27081
|
+
});
|
|
27082
|
+
automationUpdateToolInputSchema = automationToolInputSchema.partial().extend({
|
|
27083
|
+
automation_id: external_exports.string().describe("Automation ID"),
|
|
27084
|
+
enabled: external_exports.boolean().optional(),
|
|
27085
|
+
agent_provider: external_exports.enum(ENGINE_AGENT_PROVIDERS).nullable().optional(),
|
|
27086
|
+
model: external_exports.string().nullable().optional(),
|
|
27087
|
+
thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable().optional(),
|
|
27088
|
+
workspace_size: external_exports.enum(WORKSPACE_SIZES).optional(),
|
|
27089
|
+
credential_user_id: external_exports.string().nullable().optional().describe(`${credentialUserIdDescription} Null switches back to the organization's.`),
|
|
27090
|
+
background: automationBackgroundSchema,
|
|
27091
|
+
scope: external_exports.literal("org").optional().describe("`org` moves a personal automation to the organization so teammates can see and edit it. It cannot be moved back.")
|
|
27092
|
+
});
|
|
27093
|
+
chatPath = { id: external_exports.string().describe("Workspace ID"), chat_id: external_exports.string().describe("Chat ID") };
|
|
27094
|
+
({ provider, model, thinkingLevel, title, message } = forkChatRequestSchema.shape);
|
|
27095
|
+
createChatToolInputSchema = external_exports.object({ id: chatPath.id, provider, title: createChatRequestSchema.shape.title });
|
|
27096
|
+
forkChatToolInputSchema = external_exports.object({ ...chatPath, provider, model, thinking_level: thinkingLevel, title, message });
|
|
27097
|
+
renameChatToolInputSchema = external_exports.object({ ...chatPath, display_name: updateChatDisplayNameRequestSchema.shape.displayName });
|
|
27098
|
+
runCommandToolInputSchema = external_exports.object({ id: chatPath.id, ...workspaceExecRequestSchema.shape });
|
|
27099
|
+
environmentMcpPath = { environment_id: external_exports.string().describe("Environment ID") };
|
|
27100
|
+
createEnvironmentMcpToolInputSchema = external_exports.object({ ...environmentMcpPath, ...createEnvironmentMcpRequestSchema.shape });
|
|
27101
|
+
updateEnvironmentMcpToolInputSchema = external_exports.object({
|
|
27102
|
+
...environmentMcpPath,
|
|
27103
|
+
mcp_id: external_exports.string().describe("MCP ID"),
|
|
27104
|
+
...updateEnvironmentMcpRequestSchema.shape
|
|
27105
|
+
});
|
|
27106
|
+
createEnvironmentDeviceToolInputSchema = external_exports.object({ ...environmentMcpPath, ...createEnvironmentDeviceRequestSchema.shape });
|
|
27107
|
+
previewEnvironmentConfigSourceToolInputSchema = previewEnvironmentConfigSourceRequestSchema.safeExtend(environmentMcpPath);
|
|
27108
|
+
applyEnvironmentConfigSourceToolInputSchema = applyEnvironmentConfigSourceRequestSchema.safeExtend(environmentMcpPath);
|
|
27109
|
+
}
|
|
27110
|
+
});
|
|
26998
27111
|
|
|
26999
|
-
|
|
27000
|
-
|
|
27001
|
-
|
|
27002
|
-
|
|
27112
|
+
// ../shared/src/scout.ts
|
|
27113
|
+
var SCOUT_SOURCE_TYPES, SCOUT_PROACTIVITY_LEVELS, SCOUT_PRESET_NAME_MAX_LENGTH, SCOUT_CHANNEL_SETTINGS_OFFERS, SCOUT_SETTINGS_OFFERS, SCOUT_PRESET_ICONS;
|
|
27114
|
+
var init_scout = __esm({
|
|
27115
|
+
"../shared/src/scout.ts"() {
|
|
27116
|
+
"use strict";
|
|
27117
|
+
SCOUT_SOURCE_TYPES = ["slack", "linear"];
|
|
27118
|
+
SCOUT_PROACTIVITY_LEVELS = ["tagged", "conservative", "balanced", "proactive"];
|
|
27119
|
+
SCOUT_PRESET_NAME_MAX_LENGTH = 50;
|
|
27120
|
+
SCOUT_CHANNEL_SETTINGS_OFFERS = ["proactivity", "raise_proactivity", "instructions"];
|
|
27121
|
+
SCOUT_SETTINGS_OFFERS = [...SCOUT_CHANNEL_SETTINGS_OFFERS, "organization_proactivity", "raise_organization_proactivity"];
|
|
27122
|
+
SCOUT_PRESET_ICONS = [
|
|
27123
|
+
"users",
|
|
27124
|
+
"user",
|
|
27125
|
+
"inbox",
|
|
27126
|
+
"building",
|
|
27127
|
+
"bug",
|
|
27128
|
+
"message-circle",
|
|
27129
|
+
"headphones",
|
|
27130
|
+
"heart",
|
|
27131
|
+
"star",
|
|
27132
|
+
"flag",
|
|
27133
|
+
"zap",
|
|
27134
|
+
"shield",
|
|
27135
|
+
"code",
|
|
27136
|
+
"terminal",
|
|
27137
|
+
"rocket",
|
|
27138
|
+
"wrench",
|
|
27139
|
+
"briefcase",
|
|
27140
|
+
"globe",
|
|
27141
|
+
"book-open",
|
|
27142
|
+
"lightbulb",
|
|
27143
|
+
"target",
|
|
27144
|
+
"bell",
|
|
27145
|
+
"layers",
|
|
27146
|
+
"tag"
|
|
27147
|
+
];
|
|
27148
|
+
}
|
|
27149
|
+
});
|
|
27003
27150
|
|
|
27004
|
-
|
|
27151
|
+
// ../shared/src/default-skills/scout-settings.ts
|
|
27152
|
+
var SCOUT_SETTINGS_SKILL_NAME, CONTENT;
|
|
27153
|
+
var init_scout_settings = __esm({
|
|
27154
|
+
"../shared/src/default-skills/scout-settings.ts"() {
|
|
27155
|
+
"use strict";
|
|
27156
|
+
init_replicas_mcp();
|
|
27157
|
+
init_scout();
|
|
27158
|
+
SCOUT_SETTINGS_SKILL_NAME = "scout-settings";
|
|
27159
|
+
CONTENT = `---
|
|
27160
|
+
name: ${SCOUT_SETTINGS_SKILL_NAME}
|
|
27161
|
+
description: Use when someone asks what Replicas can do or what they can change ("what can you do?", "what can I change here?"), asks to change or explain how Replicas behaves in Slack or Linear (channel levels, "be quieter", "only reply when tagged", silent mode, mute, channel or team instructions, presets, monitored Linear teams, Slack Connect defaults, Slack agent defaults), when someone is annoyed that Scout replied unasked ("not you", "nobody asked", a thumbs-down), when making or answering a settings or automation offer, or when setting up an automation. Not for routing ordinary requests.
|
|
27162
|
+
---
|
|
27005
27163
|
|
|
27006
|
-
|
|
27164
|
+
# Scout settings
|
|
27007
27165
|
|
|
27008
|
-
|
|
27166
|
+
There is no settings page: people change how Replicas behaves by asking you, and you own every setting below. Handle requests here, never by spawning a workspace. People know you as Replicas, so never say Scout to them.
|
|
27009
27167
|
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
|
-
|
|
27013
|
-
|
|
27014
|
-
|
|
27168
|
+
## What you can do
|
|
27169
|
+
| Ask | How | Who |
|
|
27170
|
+
| --- | --- | --- |
|
|
27171
|
+
| How much you speak up in a channel or group DM (Mentions only, Low, Balanced, High) | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`proactivity\` | Any member, except that raising one from Mentions only needs an admin |
|
|
27172
|
+
| How much you speak up in every channel | \`${REPLICAS_MCP_TOOLS.setOrganizationProactivity}\` | Admin |
|
|
27173
|
+
| Silent mode for a channel, also asked as muting you there (you still read it and follow its instructions, but never post there) | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`silent\` | Admin |
|
|
27174
|
+
| Instructions for a channel or Linear team, such as "file bugs in Linear and post them in #triage", "send actionable messages to App Support", or "mobile requests go to the mobile-ios environment" | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`instructions\` | Any member |
|
|
27175
|
+
| Create, edit, or delete a preset (reusable instructions), or assign one | \`${REPLICAS_MCP_TOOLS.saveChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.deleteChannelPreset}\`, \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`preset_id\` | Any member |
|
|
27176
|
+
| Defaults for every channel shared with another company: preset, instructions, level, silent mode | \`${REPLICAS_MCP_TOOLS.setSlackConnectDefaults}\` | Admin |
|
|
27177
|
+
| Triage new issues in a Linear team, or stop | \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` \`source: linear\`, \`monitored\` | Admin starts; any member stops |
|
|
27178
|
+
| Agent, model, thinking level, goal mode, and fast mode for tasks started from Slack | \`${REPLICAS_MCP_TOOLS.setSlackAgentDefaults}\` | Admin |
|
|
27179
|
+
| Stay quiet in this thread, or come back | \`${REPLICAS_MCP_TOOLS.setThreadMuted}\` | Anyone in the thread |
|
|
27180
|
+
| A recurring task ("every Monday, summarize open PRs in #eng") | \`${REPLICAS_MCP_TOOLS.createAutomation}\` (see Automations) | Members who can create automations |
|
|
27015
27181
|
|
|
27016
|
-
|
|
27182
|
+
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 Mothership 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.
|
|
27017
27183
|
|
|
27018
|
-
|
|
27184
|
+
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.
|
|
27019
27185
|
|
|
27020
|
-
|
|
27021
|
-
2. Run \`replicas visualize <page.html> --title "<short title>"\`. It checks the page in a headless browser, publishes it, and prints two screenshots (dark at desktop width, light at phone width) with any console errors and layout warnings.
|
|
27022
|
-
3. Open both screenshots and look. If anything is wrong, fix the page and publish again, then use the newest line. While iterating, \`replicas visualize <page.html> --check\` renders without publishing.
|
|
27023
|
-
4. Paste the printed \`\` line on its own line where the visual belongs in your final reply.
|
|
27186
|
+
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 Mothership's own channel from that Mothership, not here; any channel's instructions can still send its messages to a Mothership.
|
|
27024
27187
|
|
|
27025
|
-
##
|
|
27188
|
+
## Tools
|
|
27189
|
+
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.
|
|
27026
27190
|
|
|
27027
|
-
|
|
27191
|
+
## Changing settings
|
|
27192
|
+
- Settings also change outside your chat, often on purpose: read the current settings first, never trust earlier messages, and never re-apply an earlier request the current message doesn't ask for. Save only what the current message asks.
|
|
27193
|
+
- **Levels**, lowest to highest: \`tagged\` (only @Replicas pings reach you, not even messages naming Replicas), \`conservative\` (also messages naming Replicas or Scout, and follow-ups in threads with a workspace), \`balanced\` (the normal triage rules), \`proactive\` (also clear untagged questions and requests). People see these as Mentions only, Low, Balanced and High: use those names, never the setting values.
|
|
27194
|
+
- The organization has one level for its whole Slack workspace, which only an admin can set with \`${REPLICAS_MCP_TOOLS.setOrganizationProactivity}\`. A channel or group DM can override it with \`${REPLICAS_MCP_TOOLS.updateChannelSettings}\` and \`proactivity\`. 1:1 DMs are always addressed to you. Any member can lower a channel; raising one above \`tagged\` needs an admin.
|
|
27195
|
+
- A request that points at a channel ("here", "in #eng", "stop replying in #random") changes that channel only. One that doesn't ("only respond when I @ you", "don't auto-reply to Slack messages") means the organization level. When it names a channel, even without "#" ("make support-inbound quieter"), find it with \`conversations.list\` and change that one, not the one you were asked in; ask if none or several match. If a non-admin asks for an organization change, say an organization admin has to ask, and offer the channel-only change when they asked from a channel. Instructions don't substitute for a level.
|
|
27196
|
+
- **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.
|
|
27197
|
+
- **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.
|
|
27198
|
+
- **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.
|
|
27199
|
+
- **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 Mothership 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.
|
|
27200
|
+
- **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).
|
|
27201
|
+
- **"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 Mothership, 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.
|
|
27202
|
+
- **"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".
|
|
27203
|
+
- 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.
|
|
27028
27204
|
|
|
27029
|
-
##
|
|
27205
|
+
## Offers
|
|
27206
|
+
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.
|
|
27207
|
+
- **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.
|
|
27208
|
+
- **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.
|
|
27209
|
+
- **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 Mothership (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.
|
|
27030
27210
|
|
|
27031
|
-
|
|
27032
|
-
|
|
27033
|
-
- The line only renders in Replicas chat. When you post to pull requests, Slack, Linear, or anywhere else, link the printed Forge link instead. Leave the Forge link out of your chat reply.
|
|
27211
|
+
## Automations
|
|
27212
|
+
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.
|
|
27034
27213
|
`;
|
|
27035
|
-
VISUALS_ABILITY = {
|
|
27036
|
-
label: "Visuals",
|
|
27037
|
-
description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
|
|
27038
|
-
// The visuals_instructions system prompt block is its trigger.
|
|
27039
|
-
bullet: "",
|
|
27040
|
-
section: SECTION17,
|
|
27041
|
-
referenceFile: { name: "VISUALS.md", content: REFERENCE17 }
|
|
27042
|
-
};
|
|
27043
|
-
}
|
|
27044
|
-
});
|
|
27045
|
-
|
|
27046
|
-
// ../shared/src/default-skills/replicas-agent/registry.ts
|
|
27047
|
-
var REPLICAS_AGENT_ABILITY_REGISTRY, REPLICAS_AGENT_ABILITIES;
|
|
27048
|
-
var init_registry = __esm({
|
|
27049
|
-
"../shared/src/default-skills/replicas-agent/registry.ts"() {
|
|
27050
|
-
"use strict";
|
|
27051
|
-
init_computer();
|
|
27052
|
-
init_docker();
|
|
27053
|
-
init_environment_setup();
|
|
27054
|
-
init_github2();
|
|
27055
|
-
init_gitlab();
|
|
27056
|
-
init_gpu();
|
|
27057
|
-
init_linear3();
|
|
27058
|
-
init_local_computer();
|
|
27059
|
-
init_macos();
|
|
27060
|
-
init_media();
|
|
27061
|
-
init_previews();
|
|
27062
|
-
init_plugins2();
|
|
27063
|
-
init_replicas();
|
|
27064
|
-
init_sentry();
|
|
27065
|
-
init_session_history();
|
|
27066
|
-
init_slack();
|
|
27067
|
-
init_visuals2();
|
|
27068
|
-
REPLICAS_AGENT_ABILITY_REGISTRY = {
|
|
27069
|
-
replicas: REPLICAS_ABILITY,
|
|
27070
|
-
memory: SESSION_HISTORY_ABILITY,
|
|
27071
|
-
computer: COMPUTER_ABILITY,
|
|
27072
|
-
docker: DOCKER_ABILITY,
|
|
27073
|
-
environment_setup: ENVIRONMENT_SETUP_ABILITY,
|
|
27074
|
-
github: GITHUB_ABILITY,
|
|
27075
|
-
gitlab: GITLAB_ABILITY,
|
|
27076
|
-
gpu: GPU_ABILITY,
|
|
27077
|
-
linear: LINEAR_ABILITY,
|
|
27078
|
-
local_computer: LOCAL_COMPUTER_ABILITY,
|
|
27079
|
-
macos: MACOS_ABILITY,
|
|
27080
|
-
media: MEDIA_ABILITY,
|
|
27081
|
-
plugins: PLUGINS_ABILITY,
|
|
27082
|
-
previews: PREVIEWS_ABILITY,
|
|
27083
|
-
sentry: SENTRY_ABILITY,
|
|
27084
|
-
slack: SLACK_ABILITY,
|
|
27085
|
-
visuals: VISUALS_ABILITY
|
|
27086
|
-
};
|
|
27087
|
-
REPLICAS_AGENT_ABILITIES = Object.keys(
|
|
27088
|
-
REPLICAS_AGENT_ABILITY_REGISTRY
|
|
27089
|
-
);
|
|
27090
|
-
}
|
|
27091
|
-
});
|
|
27092
|
-
|
|
27093
|
-
// ../shared/src/routes/preferences.ts
|
|
27094
|
-
function defaultReplicasAgentAbilities() {
|
|
27095
|
-
const abilities = {};
|
|
27096
|
-
for (const key of REPLICAS_AGENT_ABILITIES) {
|
|
27097
|
-
abilities[key] = true;
|
|
27098
|
-
}
|
|
27099
|
-
if (hasAllReplicasAgentAbilities(abilities)) return abilities;
|
|
27100
|
-
throw new Error("Default Replicas agent ability flags are incomplete");
|
|
27101
|
-
}
|
|
27102
|
-
function hasAllReplicasAgentAbilities(abilities) {
|
|
27103
|
-
return REPLICAS_AGENT_ABILITIES.every((key) => typeof abilities[key] === "boolean");
|
|
27104
|
-
}
|
|
27105
|
-
var EMPTY_AGENT_DEFAULT_SETTINGS, DEFAULT_SUBAGENT_MCP_PROVIDERS, ALERT_SOUND_FAMILIES, ALERT_SOUNDS, WALLPAPER_DITHERS, WALLPAPER_EFFECTS, PUSH_WHEN_ACTIVE_COPY, DEFAULT_USER_PREFERENCES, DEFAULT_DEFAULT_SKILLS, LINEAR_ROUTING_SKILL_MAX_LENGTH, linearRoutingSkillSchema;
|
|
27106
|
-
var init_preferences = __esm({
|
|
27107
|
-
"../shared/src/routes/preferences.ts"() {
|
|
27108
|
-
"use strict";
|
|
27109
|
-
init_zod();
|
|
27110
|
-
init_uuid();
|
|
27111
|
-
init_agent();
|
|
27112
|
-
init_push();
|
|
27113
|
-
init_registry();
|
|
27114
|
-
EMPTY_AGENT_DEFAULT_SETTINGS = {
|
|
27115
|
-
agent_provider: null,
|
|
27116
|
-
model: null,
|
|
27117
|
-
thinking_level: null,
|
|
27118
|
-
goal_mode: null,
|
|
27119
|
-
fast_mode: null
|
|
27120
|
-
};
|
|
27121
|
-
DEFAULT_SUBAGENT_MCP_PROVIDERS = [...ENGINE_AGENT_PROVIDERS];
|
|
27122
|
-
ALERT_SOUND_FAMILIES = {
|
|
27123
|
-
glass: ["glint", "tap", "ripple", "halo"],
|
|
27124
|
-
wood: ["ready", "pluck", "knock", "bloom", "steps"]
|
|
27125
|
-
};
|
|
27126
|
-
ALERT_SOUNDS = [...ALERT_SOUND_FAMILIES.glass, ...ALERT_SOUND_FAMILIES.wood];
|
|
27127
|
-
WALLPAPER_DITHERS = ["dither", "halftone", "modulation"];
|
|
27128
|
-
WALLPAPER_EFFECTS = ["soft", "grain", "duotone", ...WALLPAPER_DITHERS, "none"];
|
|
27129
|
-
PUSH_WHEN_ACTIVE_COPY = {
|
|
27130
|
-
wait: `Wait ${PUSH_HOLD_MINUTES} minutes`,
|
|
27131
|
-
skip: "Don\u2019t send",
|
|
27132
|
-
send: "Send right away"
|
|
27133
|
-
};
|
|
27134
|
-
DEFAULT_USER_PREFERENCES = {
|
|
27135
|
-
default_agent: null,
|
|
27136
|
-
default_model: null,
|
|
27137
|
-
claude_models: null,
|
|
27138
|
-
codex_models: null,
|
|
27139
|
-
cursor_models: null,
|
|
27140
|
-
claude_hidden_models: null,
|
|
27141
|
-
codex_hidden_models: null,
|
|
27142
|
-
cursor_hidden_models: null,
|
|
27143
|
-
openrouter_models: null,
|
|
27144
|
-
opencode_go_models: null,
|
|
27145
|
-
close_workspace_on_pr_close: false,
|
|
27146
|
-
close_workspace_on_pr_merge: false,
|
|
27147
|
-
default_environment_id: null,
|
|
27148
|
-
respond_to_ci_workflows: true,
|
|
27149
|
-
respond_to_ci_checks: true,
|
|
27150
|
-
respond_to_human_pr_reviews: false,
|
|
27151
|
-
pr_user_attribution: false,
|
|
27152
|
-
github_commit_name: null,
|
|
27153
|
-
github_commit_email: null,
|
|
27154
|
-
auto_draft_prs: false,
|
|
27155
|
-
open_prs_in_graphite: false,
|
|
27156
|
-
open_links_in_desktop_app: false,
|
|
27157
|
-
local_control: false,
|
|
27158
|
-
spotify_controls: false,
|
|
27159
|
-
appshot_shortcut: "command",
|
|
27160
|
-
appshot_destination: "automatic",
|
|
27161
|
-
appshot_sound: true,
|
|
27162
|
-
keyboard_shortcuts: {},
|
|
27163
|
-
mothership_tour_seen: false,
|
|
27164
|
-
slack_settings_moved_notice: false,
|
|
27165
|
-
mothership_board_opened: false,
|
|
27166
|
-
follow_up_mode: "steer",
|
|
27167
|
-
send_key: "enter",
|
|
27168
|
-
memory_enabled: null,
|
|
27169
|
-
subagent_mcp_enabled: null,
|
|
27170
|
-
default_fast_mode: false,
|
|
27171
|
-
auto_compact_tokens: null,
|
|
27172
|
-
agent_defaults: { ...EMPTY_AGENT_DEFAULT_SETTINGS },
|
|
27173
|
-
fallback_chains: null,
|
|
27174
|
-
alert_sound: null,
|
|
27175
|
-
workspace_alerts: {},
|
|
27176
|
-
automation_alerts: {},
|
|
27177
|
-
push_types: { needs_you: true, finished: true, automations: true, usage_limit: true },
|
|
27178
|
-
push_when_active: "wait",
|
|
27179
|
-
chat_text_size: "default",
|
|
27180
|
-
app_font: "inter",
|
|
27181
|
-
code_font: "geist-mono",
|
|
27182
|
-
wallpaper: null
|
|
27183
|
-
};
|
|
27184
|
-
DEFAULT_DEFAULT_SKILLS = {
|
|
27185
|
-
replicas_agent: {
|
|
27186
|
-
enabled: true,
|
|
27187
|
-
abilities: defaultReplicasAgentAbilities()
|
|
27188
|
-
}
|
|
27189
|
-
};
|
|
27190
|
-
LINEAR_ROUTING_SKILL_MAX_LENGTH = 5e4;
|
|
27191
|
-
linearRoutingSkillSchema = external_exports.union([
|
|
27192
|
-
external_exports.object({ name: external_exports.string().min(1), content: external_exports.string().trim().min(1).max(LINEAR_ROUTING_SKILL_MAX_LENGTH) }),
|
|
27193
|
-
external_exports.object({ name: external_exports.string().min(1), repository_id: external_exports.string().regex(UUID_RE), path: external_exports.string().min(1) })
|
|
27194
|
-
]);
|
|
27195
27214
|
}
|
|
27196
27215
|
});
|
|
27197
27216
|
|
|
@@ -39629,7 +39648,7 @@ var CLI_VERSION;
|
|
|
39629
39648
|
var init_cli_version = __esm({
|
|
39630
39649
|
"../shared/src/cli-version.ts"() {
|
|
39631
39650
|
"use strict";
|
|
39632
|
-
CLI_VERSION = "0.3.
|
|
39651
|
+
CLI_VERSION = "0.3.474";
|
|
39633
39652
|
}
|
|
39634
39653
|
});
|
|
39635
39654
|
|
|
@@ -50689,7 +50708,7 @@ var init_src = __esm({
|
|
|
50689
50708
|
init_linear();
|
|
50690
50709
|
init_slack2();
|
|
50691
50710
|
init_scout2();
|
|
50692
|
-
|
|
50711
|
+
init_plugins2();
|
|
50693
50712
|
init_sentry2();
|
|
50694
50713
|
init_infisical();
|
|
50695
50714
|
init_doppler();
|
|
@@ -54035,6 +54054,7 @@ async function replicaListCommand(options) {
|
|
|
54035
54054
|
const params = new URLSearchParams();
|
|
54036
54055
|
if (options.page) params.set("page", options.page);
|
|
54037
54056
|
if (options.limit) params.set("limit", options.limit);
|
|
54057
|
+
if (options.kind) params.set("kind", options.kind);
|
|
54038
54058
|
const query = params.toString();
|
|
54039
54059
|
const response = await orgAuthenticatedFetch(
|
|
54040
54060
|
`/v1/replica${query ? "?" + query : ""}`
|
|
@@ -54048,7 +54068,7 @@ async function replicaListCommand(options) {
|
|
|
54048
54068
|
Replicas (Page ${response2.page} of ${response2.total_pages}, Total: ${response2.total}):
|
|
54049
54069
|
`));
|
|
54050
54070
|
for (const replica of response2.replicas) {
|
|
54051
|
-
console.log(import_chalk22.default.white(` ${replica.name}`));
|
|
54071
|
+
console.log(import_chalk22.default.white(` ${replica.name}`) + (replica.kind === "standard" ? "" : import_chalk22.default.magenta(` [${replica.kind}]`)));
|
|
54052
54072
|
console.log(import_chalk22.default.gray(` ID: ${replica.id}`));
|
|
54053
54073
|
if (replica.repositories.length > 0) {
|
|
54054
54074
|
console.log(import_chalk22.default.gray(` Repositories: ${replica.repositories.map((repository) => repository.name).join(", ")}`));
|
|
@@ -54073,6 +54093,7 @@ async function replicaGetCommand(id) {
|
|
|
54073
54093
|
Replica: ${replica.name}
|
|
54074
54094
|
`));
|
|
54075
54095
|
console.log(import_chalk22.default.gray(` ID: ${replica.id}`));
|
|
54096
|
+
console.log(import_chalk22.default.gray(` Kind: ${replica.kind}`));
|
|
54076
54097
|
if (replica.repositories.length > 0) {
|
|
54077
54098
|
console.log(import_chalk22.default.gray(` Repositories: ${replica.repositories.map((repository) => repository.name).join(", ")}`));
|
|
54078
54099
|
}
|
|
@@ -57550,7 +57571,7 @@ var init_src2 = __esm({
|
|
|
57550
57571
|
config2.command("get <key>").description("Get a configuration value").action(run(configGetCommand));
|
|
57551
57572
|
config2.command("set <key> <value>").description("Set a configuration value").action(run(configSetCommand));
|
|
57552
57573
|
config2.command("list").description("List all configuration values").action(run(configListCommand));
|
|
57553
|
-
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").action(run(replicaListCommand));
|
|
57574
|
+
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").addOption(new import_commander.Option("-k, --kind <kind>", "Only list replicas of this kind").choices(WORKSPACE_KINDS)).action(run(replicaListCommand));
|
|
57554
57575
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
57555
57576
|
program.command("create [name]").description("Create a new replica (quote names with spaces)").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
57556
57577
|
program.command("send <id>").description("Send a message to a replica").option("-m, --message <message>", "Message to send").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").option("-c, --chat <chatId>", "Chat to send to (defaults to the main chat)").option("--model <model>", "Model to use for this message").addOption(new import_commander.Option("--thinking-level <level>", "Thinking/reasoning level").choices(VALID_THINKING_LEVELS)).option("--plan", "Run the message in plan mode").option("--goal", "Set the message as the chat goal").option("--fast", "Run the message in fast mode").action(run(replicaSendCommand));
|