replicas-cli 0.3.462 → 0.3.465

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.
Files changed (2) hide show
  1. package/dist/index.cjs +427 -384
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -23419,6 +23419,401 @@ var init_environment = __esm({
23419
23419
  }
23420
23420
  });
23421
23421
 
23422
+ // ../shared/src/environment-files.ts
23423
+ function validateEnvironmentFilePath(path11) {
23424
+ const trimmedPath = path11.trim();
23425
+ if (!trimmedPath) {
23426
+ return "Path is required.";
23427
+ }
23428
+ if (!trimmedPath.startsWith(HOME_PREFIX)) {
23429
+ return `Path must start with the home-directory prefix ~/ . ${ENVIRONMENT_FILE_PATH_GUIDANCE}`.replace("~/ .", "~/");
23430
+ }
23431
+ if (trimmedPath === HOME_PREFIX) {
23432
+ return "Path must include a file name after ~/.";
23433
+ }
23434
+ return null;
23435
+ }
23436
+ var HOME_PREFIX, ENVIRONMENT_FILE_PATH_GUIDANCE;
23437
+ var init_environment_files = __esm({
23438
+ "../shared/src/environment-files.ts"() {
23439
+ "use strict";
23440
+ HOME_PREFIX = "~/";
23441
+ ENVIRONMENT_FILE_PATH_GUIDANCE = "Use ~/... for home-directory files, or ~/workspaces/... for files that should live alongside your cloned repositories.";
23442
+ }
23443
+ });
23444
+
23445
+ // ../shared/src/routes/plugin-catalog.ts
23446
+ var EXPLICIT_PLUGIN_CATALOG, HOSTED_COMPOSIO_PLUGIN_DEFINITIONS, HOSTED_COMPOSIO_PLUGINS, READ_ONLY_SCOPES, PLUGIN_CATALOG;
23447
+ var init_plugin_catalog = __esm({
23448
+ "../shared/src/routes/plugin-catalog.ts"() {
23449
+ "use strict";
23450
+ EXPLICIT_PLUGIN_CATALOG = [
23451
+ {
23452
+ id: "attio",
23453
+ backend: "composio",
23454
+ toolkit: "attio",
23455
+ authType: "oauth",
23456
+ category: "business",
23457
+ name: "Attio",
23458
+ description: "Manage CRM records, people, companies, lists, and notes."
23459
+ },
23460
+ {
23461
+ id: "calendly",
23462
+ backend: "composio",
23463
+ toolkit: "calendly",
23464
+ authType: "oauth",
23465
+ category: "productivity",
23466
+ name: "Calendly",
23467
+ description: "Manage event types, scheduled events, invitees, and scheduling links."
23468
+ },
23469
+ {
23470
+ id: "clickhouse",
23471
+ backend: "composio",
23472
+ toolkit: "clickhouse",
23473
+ authType: "basic",
23474
+ category: "data",
23475
+ name: "ClickHouse",
23476
+ description: "Manage databases, tables, schemas, and queries."
23477
+ },
23478
+ {
23479
+ id: "cloudflare",
23480
+ backend: "composio",
23481
+ toolkit: "cloudflare_api_key",
23482
+ authType: "api_key",
23483
+ category: "data",
23484
+ name: "Cloudflare",
23485
+ description: "Manage zones, DNS records, analytics, and security settings."
23486
+ },
23487
+ {
23488
+ id: "e2b",
23489
+ toolkit: "e2b",
23490
+ backend: "native",
23491
+ authType: "api_key",
23492
+ category: "data",
23493
+ name: "E2B",
23494
+ description: "Create secure cloud sandboxes and run commands in them."
23495
+ },
23496
+ {
23497
+ id: "gmail",
23498
+ backend: "composio",
23499
+ toolkit: "gmail",
23500
+ authType: "oauth",
23501
+ category: "productivity",
23502
+ name: "Gmail",
23503
+ description: "Manage messages, threads, attachments, labels, and mailbox settings."
23504
+ },
23505
+ {
23506
+ id: "greptile",
23507
+ backend: "native",
23508
+ toolkit: "greptile",
23509
+ authType: "api_key",
23510
+ category: "data",
23511
+ name: "Greptile Knowledge Base",
23512
+ description: "Search and read self-updating codebase documentation, architecture, and flows."
23513
+ },
23514
+ {
23515
+ id: "googleads",
23516
+ backend: "composio",
23517
+ toolkit: "googleads",
23518
+ authType: "oauth",
23519
+ category: "data",
23520
+ name: "Google Ads",
23521
+ description: "Manage campaigns, customers, accounts, and reporting data."
23522
+ },
23523
+ {
23524
+ id: "googledocs",
23525
+ backend: "composio",
23526
+ toolkit: "googledocs",
23527
+ authType: "oauth",
23528
+ category: "productivity",
23529
+ name: "Google Docs",
23530
+ description: "Manage documents, structure, comments, and exported content."
23531
+ },
23532
+ {
23533
+ id: "googledrive",
23534
+ backend: "composio",
23535
+ toolkit: "googledrive",
23536
+ authType: "oauth",
23537
+ category: "productivity",
23538
+ name: "Google Drive",
23539
+ description: "Manage files, folders, metadata, permissions, and shared drives."
23540
+ },
23541
+ {
23542
+ id: "googlesearch",
23543
+ backend: "composio",
23544
+ toolkit: "google_search_console",
23545
+ authType: "oauth",
23546
+ category: "data",
23547
+ name: "Google Search",
23548
+ description: "Manage Search Console performance, indexing, sites, and sitemaps."
23549
+ },
23550
+ {
23551
+ id: "googlesheets",
23552
+ backend: "composio",
23553
+ toolkit: "googlesheets",
23554
+ authType: "oauth",
23555
+ category: "productivity",
23556
+ name: "Google Sheets",
23557
+ description: "Manage spreadsheets, worksheets, ranges, tables, and charts."
23558
+ },
23559
+ {
23560
+ id: "linkedin",
23561
+ backend: "composio",
23562
+ toolkit: "linkedin",
23563
+ authType: "oauth",
23564
+ category: "business",
23565
+ name: "LinkedIn",
23566
+ description: "Manage profiles, organizations, posts, and professional activity."
23567
+ },
23568
+ {
23569
+ id: "modal",
23570
+ backend: "native",
23571
+ toolkit: "modal",
23572
+ authType: "basic",
23573
+ category: "data",
23574
+ name: "Modal",
23575
+ description: "Invoke deployed functions through Modal compute."
23576
+ },
23577
+ {
23578
+ id: "posthog",
23579
+ backend: "composio",
23580
+ toolkit: "posthog",
23581
+ authType: "api_key",
23582
+ category: "data",
23583
+ name: "PostHog",
23584
+ description: "Manage projects, events, insights, dashboards, flags, and recordings."
23585
+ },
23586
+ {
23587
+ id: "planetscale",
23588
+ toolkit: "planetscale",
23589
+ backend: "native",
23590
+ authType: "oauth",
23591
+ category: "data",
23592
+ name: "PlanetScale",
23593
+ description: "Manage organizations, databases, branches, deploy requests, and Insights."
23594
+ },
23595
+ {
23596
+ id: "sazabi",
23597
+ backend: "native",
23598
+ toolkit: "sazabi",
23599
+ authType: "oauth",
23600
+ category: "data",
23601
+ name: "Sazabi",
23602
+ description: "Query logs, investigate issues, and run the Sazabi observability agent."
23603
+ },
23604
+ {
23605
+ id: "stripe",
23606
+ backend: "composio",
23607
+ toolkit: "stripe",
23608
+ authType: "oauth",
23609
+ category: "business",
23610
+ name: "Stripe",
23611
+ description: "Manage customers, payments, invoices, subscriptions, and balances."
23612
+ },
23613
+ {
23614
+ id: "kondo",
23615
+ backend: "native",
23616
+ toolkit: "kondo",
23617
+ authType: "oauth",
23618
+ category: "business",
23619
+ name: "Kondo",
23620
+ description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
23621
+ },
23622
+ {
23623
+ id: "lightfield",
23624
+ backend: "native",
23625
+ toolkit: "lightfield",
23626
+ authType: "api_key",
23627
+ category: "business",
23628
+ name: "Lightfield",
23629
+ description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
23630
+ },
23631
+ {
23632
+ id: "pangram",
23633
+ backend: "native",
23634
+ toolkit: "pangram",
23635
+ authType: "api_key",
23636
+ category: "data",
23637
+ name: "Pangram",
23638
+ description: "Analyze text for AI generation and plagiarism signals."
23639
+ },
23640
+ {
23641
+ id: "vercel",
23642
+ backend: "native",
23643
+ toolkit: "vercel",
23644
+ authType: "api_key",
23645
+ category: "data",
23646
+ name: "Vercel",
23647
+ description: "Manage projects, deployments, logs, domains, and infrastructure."
23648
+ },
23649
+ {
23650
+ id: "turbopuffer",
23651
+ backend: "native",
23652
+ toolkit: "turbopuffer",
23653
+ authType: "api_key",
23654
+ category: "data",
23655
+ name: "turbopuffer",
23656
+ description: "Query and manage turbopuffer namespaces."
23657
+ },
23658
+ {
23659
+ id: "vanta",
23660
+ backend: "native",
23661
+ toolkit: "vanta",
23662
+ authType: "credentials",
23663
+ category: "data",
23664
+ name: "Vanta",
23665
+ description: "Review and manage controls, tests, evidence, vendors, risks, and compliance data."
23666
+ }
23667
+ ];
23668
+ HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
23669
+ ["notion", "notion", "OAUTH2", true, "productivity", "Notion"],
23670
+ ["jira", "jira", "OAUTH2", true, "productivity", "Jira"],
23671
+ ["confluence", "confluence", "OAUTH2", true, "productivity", "Confluence"],
23672
+ ["googlecalendar", "googlecalendar", "OAUTH2", true, "productivity", "Google Calendar"],
23673
+ ["microsoftteams", "microsoft_teams", "OAUTH2", true, "productivity", "Microsoft Teams"],
23674
+ ["outlook", "outlook", "OAUTH2", true, "productivity", "Outlook"],
23675
+ ["bitbucket", "bitbucket", "OAUTH2", true, "data", "Bitbucket"],
23676
+ ["datadog", "datadog", "API_KEY", false, "data", "Datadog"],
23677
+ ["pagerduty", "pagerduty", "OAUTH2", true, "data", "PagerDuty"],
23678
+ ["intercom", "intercom", "OAUTH2", true, "business", "Intercom"],
23679
+ ["zendesk", "zendesk", "OAUTH2", true, "business", "Zendesk"],
23680
+ ["hubspot", "hubspot", "OAUTH2", true, "business", "HubSpot"],
23681
+ ["supabase", "supabase", "OAUTH2", true, "data", "Supabase"],
23682
+ ["figma", "figma", "OAUTH2", true, "productivity", "Figma"],
23683
+ ["launchdarkly", "launch_darkly", "API_KEY", false, "data", "LaunchDarkly"],
23684
+ ["asana", "asana", "OAUTH2", true, "productivity", "Asana"],
23685
+ ["clickup", "clickup", "OAUTH2", true, "productivity", "ClickUp"],
23686
+ ["trello", "trello", "OAUTH1", true, "productivity", "Trello"],
23687
+ ["todoist", "todoist", "OAUTH2", true, "productivity", "Todoist"],
23688
+ ["airtable", "airtable", "OAUTH2", true, "productivity", "Airtable"],
23689
+ ["coda", "coda", "API_KEY", false, "productivity", "Coda"],
23690
+ ["miro", "miro", "OAUTH2", true, "productivity", "Miro"],
23691
+ ["sharepoint", "share_point", "OAUTH2", true, "productivity", "SharePoint"],
23692
+ ["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
23693
+ ["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
23694
+ ["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
23695
+ ["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
23696
+ ["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
23697
+ ["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
23698
+ ["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
23699
+ ["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
23700
+ ["box", "box", "OAUTH2", true, "productivity", "Box"],
23701
+ ["discord", "discord", "OAUTH2", true, "productivity", "Discord"],
23702
+ ["discordbot", "discordbot", "OAUTH2", true, "productivity", "Discord Bot"],
23703
+ ["zoom", "zoom", "OAUTH2", true, "productivity", "Zoom"],
23704
+ ["googlechat", "google_chat", "OAUTH2", false, "productivity", "Google Chat"],
23705
+ ["newrelic", "new_relic", "API_KEY", false, "data", "New Relic"],
23706
+ ["betterstack", "better_stack", "API_KEY", false, "data", "Better Stack"],
23707
+ ["incidentio", "incident_io", "API_KEY", false, "data", "incident.io"],
23708
+ ["grafana", "grafana", "BEARER_TOKEN", false, "data", "Grafana"],
23709
+ ["honeycomb", "honeycomb_mcp", "DCR_OAUTH", false, "data", "Honeycomb MCP"],
23710
+ ["neon", "neon_mcp", "DCR_OAUTH", false, "data", "Neon"],
23711
+ ["glen", "glen_mcp", "DCR_OAUTH", false, "data", "Glen"],
23712
+ ["bugsnag", "bugsnag", "API_KEY", false, "data", "Bugsnag"],
23713
+ ["circleci", "circleci", "API_KEY", false, "data", "CircleCI"],
23714
+ ["buildkite", "buildkite", "API_KEY", false, "data", "Buildkite"],
23715
+ ["dockerhub", "docker_hub", "API_KEY", false, "data", "Docker Hub"],
23716
+ ["digitalocean", "digital_ocean", "OAUTH2", true, "data", "DigitalOcean"],
23717
+ ["railway", "railway", "API_KEY", false, "data", "Railway"],
23718
+ ["render", "render", "API_KEY", false, "data", "Render"],
23719
+ ["firebase", "firebase", "API_KEY", false, "data", "Firebase"],
23720
+ ["cloudinary", "cloudinary", "API_KEY", false, "data", "Cloudinary"],
23721
+ ["configcat", "configcat", "API_KEY", false, "data", "ConfigCat"],
23722
+ ["contextdev", "context_dev", "API_KEY", false, "data", "Context.dev"],
23723
+ ["googleanalytics", "google_analytics", "OAUTH2", true, "data", "Google Analytics"],
23724
+ ["googlebigquery", "googlebigquery", "OAUTH2", true, "data", "Google BigQuery"],
23725
+ ["amplitude", "amplitude", "API_KEY", false, "data", "Amplitude"],
23726
+ ["mixpanel", "mixpanel", "BASIC", false, "data", "Mixpanel"],
23727
+ ["segment", "segment", "API_KEY", false, "data", "Segment"],
23728
+ ["supermemory", "supermemory", "API_KEY", false, "data", "Supermemory"],
23729
+ ["databricks", "databricks", "API_KEY", false, "data", "Databricks"],
23730
+ ["snowflake", "snowflake", "OAUTH2", false, "data", "Snowflake"],
23731
+ ["algolia", "algolia", "API_KEY", false, "data", "Algolia"],
23732
+ ["elasticsearch", "elasticsearch", "API_KEY", false, "data", "Elasticsearch"],
23733
+ ["salesforce", "salesforce", "OAUTH2", true, "business", "Salesforce"],
23734
+ ["pipedrive", "pipedrive", "API_KEY", false, "business", "Pipedrive"],
23735
+ ["close", "close", "API_KEY", false, "business", "Close"],
23736
+ ["apollo", "apollo", "API_KEY", false, "business", "Apollo"],
23737
+ ["gong", "gong", "OAUTH2", true, "business", "Gong"],
23738
+ ["freshdesk", "freshdesk", "API_KEY", false, "business", "Freshdesk"],
23739
+ ["helpscout", "help_scout", "OAUTH2", false, "business", "Help Scout"],
23740
+ ["servicenow", "servicenow", "BASIC", false, "business", "ServiceNow"],
23741
+ ["mailchimp", "mailchimp", "OAUTH2", true, "business", "Mailchimp"],
23742
+ ["customerio", "customerio", "API_KEY", false, "business", "Customer.io"],
23743
+ ["klaviyo", "klaviyo", "API_KEY", false, "business", "Klaviyo"],
23744
+ ["shopify", "shopify", "API_KEY", false, "business", "Shopify"],
23745
+ ["quickbooks", "quickbooks", "OAUTH2", true, "business", "QuickBooks"],
23746
+ ["xero", "xero", "OAUTH2", false, "business", "Xero"],
23747
+ ["brex", "brex", "API_KEY", false, "business", "Brex"],
23748
+ ["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
23749
+ ["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
23750
+ ["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
23751
+ ["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
23752
+ ["browserbase", "browserbase_tool", "API_KEY", false, "data", "Browserbase"],
23753
+ ["exa", "exa", "API_KEY", false, "data", "Exa"],
23754
+ ["youtube", "youtube", "OAUTH2", true, "business", "YouTube"],
23755
+ ["twitter", "twitter", "OAUTH2", false, "business", "Twitter/X"],
23756
+ ["instagram", "instagram", "OAUTH2", true, "business", "Instagram"],
23757
+ ["facebook", "facebook", "OAUTH2", true, "business", "Facebook"]
23758
+ ];
23759
+ HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
23760
+ ([id, toolkit, authScheme, managedAuth, category, name]) => ({
23761
+ id,
23762
+ backend: "composio",
23763
+ toolkit,
23764
+ authType: "hosted",
23765
+ authScheme,
23766
+ managedAuth,
23767
+ category,
23768
+ name,
23769
+ description: `Use ${name} tools from workspace agents.`
23770
+ })
23771
+ );
23772
+ READ_ONLY_SCOPES = {
23773
+ 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"],
23774
+ googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
23775
+ googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
23776
+ googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
23777
+ googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
23778
+ googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
23779
+ googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
23780
+ googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
23781
+ googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
23782
+ youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
23783
+ outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
23784
+ onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
23785
+ 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"],
23786
+ 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"],
23787
+ 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"],
23788
+ zendesk: ["read"],
23789
+ 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"],
23790
+ 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"],
23791
+ airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
23792
+ todoist: ["data:read"],
23793
+ dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
23794
+ canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
23795
+ facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
23796
+ instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
23797
+ };
23798
+ PLUGIN_CATALOG = [
23799
+ ...EXPLICIT_PLUGIN_CATALOG,
23800
+ ...HOSTED_COMPOSIO_PLUGINS
23801
+ ].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
23802
+ }
23803
+ });
23804
+
23805
+ // ../shared/src/routes/plugins.ts
23806
+ function isPluginId(value) {
23807
+ return PLUGIN_CATALOG.some((plugin) => plugin.id === value);
23808
+ }
23809
+ var init_plugins = __esm({
23810
+ "../shared/src/routes/plugins.ts"() {
23811
+ "use strict";
23812
+ init_plugin_catalog();
23813
+ init_plugin_catalog();
23814
+ }
23815
+ });
23816
+
23422
23817
  // ../shared/src/environment-config.ts
23423
23818
  var variableNameSchema, mcpValueSchema, mcpValuesSchema, httpConfigSchema, replicasMcpDefinitionSchema, replicasEnvironmentConfigSchema;
23424
23819
  var init_environment_config = __esm({
@@ -23426,6 +23821,9 @@ var init_environment_config = __esm({
23426
23821
  "use strict";
23427
23822
  init_zod();
23428
23823
  init_environment();
23824
+ init_sandbox();
23825
+ init_environment_files();
23826
+ init_plugins();
23429
23827
  init_environment_setups();
23430
23828
  variableNameSchema = external_exports.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name");
23431
23829
  mcpValueSchema = external_exports.union([
@@ -23452,6 +23850,14 @@ var init_environment_config = __esm({
23452
23850
  if (!result.ok) context.addIssue({ code: "custom", path: result.error.code === "transport" ? ["transport"] : ["config", result.error.code ?? "auth"], message: result.error.message });
23453
23851
  });
23454
23852
  replicasEnvironmentConfigSchema = external_exports.strictObject({
23853
+ repositories: external_exports.array(external_exports.string().trim().min(1)).optional(),
23854
+ workspaceSize: external_exports.enum(WORKSPACE_SIZE_OPTIONS).optional(),
23855
+ files: external_exports.record(external_exports.string().trim().refine((path11) => !validateEnvironmentFilePath(path11), "must be a file path starting with ~/"), external_exports.strictObject({
23856
+ name: external_exports.string().trim().min(1).optional(),
23857
+ content: external_exports.string().max(65536)
23858
+ })).optional(),
23859
+ 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(),
23860
+ requiredPlugins: external_exports.array(external_exports.string().refine(isPluginId, "must be a supported plugin")).transform((plugins2) => [...new Set(plugins2)]).optional(),
23455
23861
  systemPrompt: external_exports.string().optional(),
23456
23862
  warmHook: external_exports.string().optional(),
23457
23863
  startHook: external_exports.string().optional(),
@@ -23459,6 +23865,8 @@ var init_environment_config = __esm({
23459
23865
  requiredSecrets: external_exports.array(variableNameSchema).optional(),
23460
23866
  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()
23461
23867
  }).superRefine((config3, context) => {
23868
+ const skillNames = Object.keys(config3.skills ?? {}).map((slug) => slug.toLowerCase());
23869
+ if (new Set(skillNames).size !== skillNames.length) context.addIssue({ code: "custom", path: ["skills"], message: "Skill slugs must be unique regardless of case" });
23462
23870
  const names = /* @__PURE__ */ new Set();
23463
23871
  for (const name of Object.keys(config3.mcps ?? {})) {
23464
23872
  const normalized = name.toLowerCase();
@@ -23571,6 +23979,7 @@ var init_replicas_mcp = __esm({
23571
23979
  updateTicket: "update_ticket",
23572
23980
  replyOnTicket: "reply_on_ticket",
23573
23981
  sendToChat: "send_to_chat",
23982
+ setStatus: "set_status",
23574
23983
  getLinearRouting: "get_linear_routing",
23575
23984
  setLinearRouting: "set_linear_routing",
23576
23985
  clearLinearRouting: "clear_linear_routing",
@@ -25549,7 +25958,7 @@ It is your responsibility to make previews work for outsiders as well as they wo
25549
25958
 
25550
25959
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
25551
25960
  var SECTION11, REFERENCE11, PLUGINS_ABILITY;
25552
- var init_plugins = __esm({
25961
+ var init_plugins2 = __esm({
25553
25962
  "../shared/src/default-skills/replicas-agent/abilities/plugins.ts"() {
25554
25963
  "use strict";
25555
25964
  SECTION11 = `### Plugins
@@ -26594,7 +27003,7 @@ var init_registry = __esm({
26594
27003
  init_local_computer();
26595
27004
  init_media();
26596
27005
  init_previews();
26597
- init_plugins();
27006
+ init_plugins2();
26598
27007
  init_replicas();
26599
27008
  init_sentry();
26600
27009
  init_session_history();
@@ -26857,7 +27266,7 @@ var init_prompts = __esm({
26857
27266
  - A ship with open pull requests is not done when it sends \`finished\`: Replicas fixes their CI failures and review comments automatically, then sends \`ready\` or \`needs_attention\`. On \`needs_attention\`, direct the ship, or ask the user only if you can't decide.
26858
27267
  - When a pull request should merge once it's approved and CI passes, call \`${REPLICAS_MCP_TOOLS.mergeWhenReady}\`: Replicas merges it and sends \`merged\`, or \`needs_attention\` saying why it can't. Never watch CI or pull requests with \`gh\`, sleep loops or wait scripts, and merge one yourself only when the user wants it merged right away.
26859
27268
  - On every ship event and every answer the user gives on the board, act with tools on the answer or on any work the event unblocks, such as starting the next task once a pull request merges, and update the board if its order, notes or overview changed. The user sees nothing you write in these turns, unless a message they typed is still unanswered because it arrived during the turn: then your final reply answers it, as in any turn they start. Otherwise the only way to reach them is \`${REPLICAS_MCP_TOOLS.sendToChat}\`. Call it only for what they would want right now: a deliverable they asked for, with its media, links or answer (the finished video, the requested numbers); a failure or blocker that needs them, also on the board; or a request of theirs being done. Never for status, such as "PR #12 merged", "deploying", "it's on the board" or "I asked the ship to\u2026": the board and the chat's own rows show those. End the turn with a one-line note of what you did; only the activity log shows it.
26860
- - The chat is like texting an assistant: the user sees only your final reply to each message they type, plus what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, never your tool calls or earlier text. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
27269
+ - The chat is like texting an assistant. In a turn the user typed, they see the text you write between tool calls as it streams, your final reply, what you send with \`${REPLICAS_MCP_TOOLS.sendToChat}\`, and your \`${REPLICAS_MCP_TOOLS.setStatus}\` line, never your tool calls. Unless you can answer right away, open with one line on what you'll do first and roughly how long it takes. Then call \`${REPLICAS_MCP_TOOLS.setStatus}\` with a few words on your current step, such as "Reading the billing webhook" or "Checking npm for outdated packages", and call it again each time you move to a new step. Before your final reply, write only what they'd want to know now: a finding that changes the answer, a ship you started, or a decision you need. Never narrate tool calls or say you're still working. When they message you mid-turn, reply to it in one line before anything else, then fold it into your work. Answer every message they type in chat, even one that arrives during a ship event or board answer, and never only on the board: if they ask something while you handle an event, answer that question, not just the event. Write in a line or two with links, and include any media inline. Never restate the board in chat: no status tables, per-ship lists or summaries of what ships did.
26861
27270
  `;
26862
27271
  MOTHERSHIP_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MOTHERSHIP_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MOTHERSHIP_INSTRUCTIONS_TAG}>`);
26863
27272
  MOTHERSHIP_TICKET_MESSAGE_NOTE = `The user sent this from your ticket on the Mothership's board and reads your answer there, not in this chat. Answer them with \`${REPLICAS_MCP_TOOLS.replyOnTicket}\`: briefly, with a link or screenshot if it helps, and a follow-up question only if you need one. Keep longer work and detail in this chat.`;
@@ -35294,6 +35703,7 @@ var init_steps = __esm({
35294
35703
  [REPLICAS_MCP_TOOLS.updateTicket]: { icon: "file-pen", live: "Updating ticket", done: "Updated ticket" },
35295
35704
  [REPLICAS_MCP_TOOLS.replyOnTicket]: { icon: "file-pen", live: "Replying on ticket", done: "Replied on ticket" },
35296
35705
  [REPLICAS_MCP_TOOLS.sendToChat]: { icon: "message", live: "Sending to chat", done: "Sent to chat" },
35706
+ [REPLICAS_MCP_TOOLS.setStatus]: { icon: "message", live: "Setting status", done: "Set status" },
35297
35707
  [REPLICAS_MCP_TOOLS.mergeWhenReady]: { icon: "target", live: "Setting merge when ready", done: "Set merge when ready" }
35298
35708
  };
35299
35709
  }
@@ -39035,7 +39445,11 @@ var init_types8 = __esm({
39035
39445
  /** Saved before its tool calls run. */
39036
39446
  external_exports.object({ type: external_exports.literal("assistant_message"), payload: external_exports.looseObject({ message: assistantMessageSchema }) }),
39037
39447
  external_exports.object({ type: external_exports.literal("tool_result"), payload: external_exports.looseObject({ message: toolResultMessageSchema }) }),
39038
- external_exports.object({ type: external_exports.literal("status"), payload: external_exports.looseObject({ status: external_exports.enum(HARNESS_THREAD_STATUSES) }) }),
39448
+ external_exports.object({
39449
+ type: external_exports.literal("status"),
39450
+ /** `cost`: what calls since the last status that saved no step of their own cost at API prices, in USD. */
39451
+ payload: external_exports.looseObject({ status: external_exports.enum(HARNESS_THREAD_STATUSES), cost: external_exports.number().optional() })
39452
+ }),
39039
39453
  external_exports.object({ type: external_exports.literal("error"), payload: external_exports.looseObject({ message: external_exports.string() }) }),
39040
39454
  /** The model's context is this summary followed by the events from `firstKeptSeq` on; nothing before it is deleted. */
39041
39455
  external_exports.object({
@@ -39045,7 +39459,9 @@ var init_types8 = __esm({
39045
39459
  firstKeptSeq: external_exports.number(),
39046
39460
  tokensBefore: external_exports.number(),
39047
39461
  readFiles: external_exports.array(external_exports.string()),
39048
- modifiedFiles: external_exports.array(external_exports.string())
39462
+ modifiedFiles: external_exports.array(external_exports.string()),
39463
+ /** The summary call's cost at API prices, in USD; absent on compactions saved before it was recorded. */
39464
+ cost: external_exports.number().optional()
39049
39465
  })
39050
39466
  })
39051
39467
  ]);
@@ -39153,7 +39569,7 @@ var CLI_VERSION;
39153
39569
  var init_cli_version = __esm({
39154
39570
  "../shared/src/cli-version.ts"() {
39155
39571
  "use strict";
39156
- CLI_VERSION = "0.3.462";
39572
+ CLI_VERSION = "0.3.465";
39157
39573
  }
39158
39574
  });
39159
39575
 
@@ -39175,13 +39591,6 @@ var init_version = __esm({
39175
39591
  }
39176
39592
  });
39177
39593
 
39178
- // ../shared/src/environment-files.ts
39179
- var init_environment_files = __esm({
39180
- "../shared/src/environment-files.ts"() {
39181
- "use strict";
39182
- }
39183
- });
39184
-
39185
39594
  // ../shared/src/engine/chat-tabs.ts
39186
39595
  var init_chat_tabs = __esm({
39187
39596
  "../shared/src/engine/chat-tabs.ts"() {
@@ -39632,375 +40041,6 @@ var init_scout2 = __esm({
39632
40041
  }
39633
40042
  });
39634
40043
 
39635
- // ../shared/src/routes/plugin-catalog.ts
39636
- var EXPLICIT_PLUGIN_CATALOG, HOSTED_COMPOSIO_PLUGIN_DEFINITIONS, HOSTED_COMPOSIO_PLUGINS, READ_ONLY_SCOPES, PLUGIN_CATALOG;
39637
- var init_plugin_catalog = __esm({
39638
- "../shared/src/routes/plugin-catalog.ts"() {
39639
- "use strict";
39640
- EXPLICIT_PLUGIN_CATALOG = [
39641
- {
39642
- id: "attio",
39643
- backend: "composio",
39644
- toolkit: "attio",
39645
- authType: "oauth",
39646
- category: "business",
39647
- name: "Attio",
39648
- description: "Manage CRM records, people, companies, lists, and notes."
39649
- },
39650
- {
39651
- id: "calendly",
39652
- backend: "composio",
39653
- toolkit: "calendly",
39654
- authType: "oauth",
39655
- category: "productivity",
39656
- name: "Calendly",
39657
- description: "Manage event types, scheduled events, invitees, and scheduling links."
39658
- },
39659
- {
39660
- id: "clickhouse",
39661
- backend: "composio",
39662
- toolkit: "clickhouse",
39663
- authType: "basic",
39664
- category: "data",
39665
- name: "ClickHouse",
39666
- description: "Manage databases, tables, schemas, and queries."
39667
- },
39668
- {
39669
- id: "cloudflare",
39670
- backend: "composio",
39671
- toolkit: "cloudflare_api_key",
39672
- authType: "api_key",
39673
- category: "data",
39674
- name: "Cloudflare",
39675
- description: "Manage zones, DNS records, analytics, and security settings."
39676
- },
39677
- {
39678
- id: "e2b",
39679
- toolkit: "e2b",
39680
- backend: "native",
39681
- authType: "api_key",
39682
- category: "data",
39683
- name: "E2B",
39684
- description: "Create secure cloud sandboxes and run commands in them."
39685
- },
39686
- {
39687
- id: "gmail",
39688
- backend: "composio",
39689
- toolkit: "gmail",
39690
- authType: "oauth",
39691
- category: "productivity",
39692
- name: "Gmail",
39693
- description: "Manage messages, threads, attachments, labels, and mailbox settings."
39694
- },
39695
- {
39696
- id: "greptile",
39697
- backend: "native",
39698
- toolkit: "greptile",
39699
- authType: "api_key",
39700
- category: "data",
39701
- name: "Greptile Knowledge Base",
39702
- description: "Search and read self-updating codebase documentation, architecture, and flows."
39703
- },
39704
- {
39705
- id: "googleads",
39706
- backend: "composio",
39707
- toolkit: "googleads",
39708
- authType: "oauth",
39709
- category: "data",
39710
- name: "Google Ads",
39711
- description: "Manage campaigns, customers, accounts, and reporting data."
39712
- },
39713
- {
39714
- id: "googledocs",
39715
- backend: "composio",
39716
- toolkit: "googledocs",
39717
- authType: "oauth",
39718
- category: "productivity",
39719
- name: "Google Docs",
39720
- description: "Manage documents, structure, comments, and exported content."
39721
- },
39722
- {
39723
- id: "googledrive",
39724
- backend: "composio",
39725
- toolkit: "googledrive",
39726
- authType: "oauth",
39727
- category: "productivity",
39728
- name: "Google Drive",
39729
- description: "Manage files, folders, metadata, permissions, and shared drives."
39730
- },
39731
- {
39732
- id: "googlesearch",
39733
- backend: "composio",
39734
- toolkit: "google_search_console",
39735
- authType: "oauth",
39736
- category: "data",
39737
- name: "Google Search",
39738
- description: "Manage Search Console performance, indexing, sites, and sitemaps."
39739
- },
39740
- {
39741
- id: "googlesheets",
39742
- backend: "composio",
39743
- toolkit: "googlesheets",
39744
- authType: "oauth",
39745
- category: "productivity",
39746
- name: "Google Sheets",
39747
- description: "Manage spreadsheets, worksheets, ranges, tables, and charts."
39748
- },
39749
- {
39750
- id: "linkedin",
39751
- backend: "composio",
39752
- toolkit: "linkedin",
39753
- authType: "oauth",
39754
- category: "business",
39755
- name: "LinkedIn",
39756
- description: "Manage profiles, organizations, posts, and professional activity."
39757
- },
39758
- {
39759
- id: "modal",
39760
- backend: "native",
39761
- toolkit: "modal",
39762
- authType: "basic",
39763
- category: "data",
39764
- name: "Modal",
39765
- description: "Invoke deployed functions through Modal compute."
39766
- },
39767
- {
39768
- id: "posthog",
39769
- backend: "composio",
39770
- toolkit: "posthog",
39771
- authType: "api_key",
39772
- category: "data",
39773
- name: "PostHog",
39774
- description: "Manage projects, events, insights, dashboards, flags, and recordings."
39775
- },
39776
- {
39777
- id: "planetscale",
39778
- toolkit: "planetscale",
39779
- backend: "native",
39780
- authType: "oauth",
39781
- category: "data",
39782
- name: "PlanetScale",
39783
- description: "Manage organizations, databases, branches, deploy requests, and Insights."
39784
- },
39785
- {
39786
- id: "sazabi",
39787
- backend: "native",
39788
- toolkit: "sazabi",
39789
- authType: "oauth",
39790
- category: "data",
39791
- name: "Sazabi",
39792
- description: "Query logs, investigate issues, and run the Sazabi observability agent."
39793
- },
39794
- {
39795
- id: "stripe",
39796
- backend: "composio",
39797
- toolkit: "stripe",
39798
- authType: "oauth",
39799
- category: "business",
39800
- name: "Stripe",
39801
- description: "Manage customers, payments, invoices, subscriptions, and balances."
39802
- },
39803
- {
39804
- id: "kondo",
39805
- backend: "native",
39806
- toolkit: "kondo",
39807
- authType: "oauth",
39808
- category: "business",
39809
- name: "Kondo",
39810
- description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
39811
- },
39812
- {
39813
- id: "lightfield",
39814
- backend: "native",
39815
- toolkit: "lightfield",
39816
- authType: "api_key",
39817
- category: "business",
39818
- name: "Lightfield",
39819
- description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
39820
- },
39821
- {
39822
- id: "pangram",
39823
- backend: "native",
39824
- toolkit: "pangram",
39825
- authType: "api_key",
39826
- category: "data",
39827
- name: "Pangram",
39828
- description: "Analyze text for AI generation and plagiarism signals."
39829
- },
39830
- {
39831
- id: "vercel",
39832
- backend: "native",
39833
- toolkit: "vercel",
39834
- authType: "api_key",
39835
- category: "data",
39836
- name: "Vercel",
39837
- description: "Manage projects, deployments, logs, domains, and infrastructure."
39838
- },
39839
- {
39840
- id: "turbopuffer",
39841
- backend: "native",
39842
- toolkit: "turbopuffer",
39843
- authType: "api_key",
39844
- category: "data",
39845
- name: "turbopuffer",
39846
- description: "Query and manage turbopuffer namespaces."
39847
- },
39848
- {
39849
- id: "vanta",
39850
- backend: "native",
39851
- toolkit: "vanta",
39852
- authType: "credentials",
39853
- category: "data",
39854
- name: "Vanta",
39855
- description: "Review and manage controls, tests, evidence, vendors, risks, and compliance data."
39856
- }
39857
- ];
39858
- HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
39859
- ["notion", "notion", "OAUTH2", true, "productivity", "Notion"],
39860
- ["jira", "jira", "OAUTH2", true, "productivity", "Jira"],
39861
- ["confluence", "confluence", "OAUTH2", true, "productivity", "Confluence"],
39862
- ["googlecalendar", "googlecalendar", "OAUTH2", true, "productivity", "Google Calendar"],
39863
- ["microsoftteams", "microsoft_teams", "OAUTH2", true, "productivity", "Microsoft Teams"],
39864
- ["outlook", "outlook", "OAUTH2", true, "productivity", "Outlook"],
39865
- ["bitbucket", "bitbucket", "OAUTH2", true, "data", "Bitbucket"],
39866
- ["datadog", "datadog", "API_KEY", false, "data", "Datadog"],
39867
- ["pagerduty", "pagerduty", "OAUTH2", true, "data", "PagerDuty"],
39868
- ["intercom", "intercom", "OAUTH2", true, "business", "Intercom"],
39869
- ["zendesk", "zendesk", "OAUTH2", true, "business", "Zendesk"],
39870
- ["hubspot", "hubspot", "OAUTH2", true, "business", "HubSpot"],
39871
- ["supabase", "supabase", "OAUTH2", true, "data", "Supabase"],
39872
- ["figma", "figma", "OAUTH2", true, "productivity", "Figma"],
39873
- ["launchdarkly", "launch_darkly", "API_KEY", false, "data", "LaunchDarkly"],
39874
- ["asana", "asana", "OAUTH2", true, "productivity", "Asana"],
39875
- ["clickup", "clickup", "OAUTH2", true, "productivity", "ClickUp"],
39876
- ["trello", "trello", "OAUTH1", true, "productivity", "Trello"],
39877
- ["todoist", "todoist", "OAUTH2", true, "productivity", "Todoist"],
39878
- ["airtable", "airtable", "OAUTH2", true, "productivity", "Airtable"],
39879
- ["coda", "coda", "API_KEY", false, "productivity", "Coda"],
39880
- ["miro", "miro", "OAUTH2", true, "productivity", "Miro"],
39881
- ["sharepoint", "share_point", "OAUTH2", true, "productivity", "SharePoint"],
39882
- ["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
39883
- ["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
39884
- ["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
39885
- ["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
39886
- ["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
39887
- ["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
39888
- ["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
39889
- ["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
39890
- ["box", "box", "OAUTH2", true, "productivity", "Box"],
39891
- ["discord", "discord", "OAUTH2", true, "productivity", "Discord"],
39892
- ["discordbot", "discordbot", "OAUTH2", true, "productivity", "Discord Bot"],
39893
- ["zoom", "zoom", "OAUTH2", true, "productivity", "Zoom"],
39894
- ["googlechat", "google_chat", "OAUTH2", false, "productivity", "Google Chat"],
39895
- ["newrelic", "new_relic", "API_KEY", false, "data", "New Relic"],
39896
- ["betterstack", "better_stack", "API_KEY", false, "data", "Better Stack"],
39897
- ["incidentio", "incident_io", "API_KEY", false, "data", "incident.io"],
39898
- ["grafana", "grafana", "BEARER_TOKEN", false, "data", "Grafana"],
39899
- ["honeycomb", "honeycomb_mcp", "DCR_OAUTH", false, "data", "Honeycomb MCP"],
39900
- ["neon", "neon_mcp", "DCR_OAUTH", false, "data", "Neon"],
39901
- ["glen", "glen_mcp", "DCR_OAUTH", false, "data", "Glen"],
39902
- ["bugsnag", "bugsnag", "API_KEY", false, "data", "Bugsnag"],
39903
- ["circleci", "circleci", "API_KEY", false, "data", "CircleCI"],
39904
- ["buildkite", "buildkite", "API_KEY", false, "data", "Buildkite"],
39905
- ["dockerhub", "docker_hub", "API_KEY", false, "data", "Docker Hub"],
39906
- ["digitalocean", "digital_ocean", "OAUTH2", true, "data", "DigitalOcean"],
39907
- ["railway", "railway", "API_KEY", false, "data", "Railway"],
39908
- ["render", "render", "API_KEY", false, "data", "Render"],
39909
- ["firebase", "firebase", "API_KEY", false, "data", "Firebase"],
39910
- ["cloudinary", "cloudinary", "API_KEY", false, "data", "Cloudinary"],
39911
- ["configcat", "configcat", "API_KEY", false, "data", "ConfigCat"],
39912
- ["contextdev", "context_dev", "API_KEY", false, "data", "Context.dev"],
39913
- ["googleanalytics", "google_analytics", "OAUTH2", true, "data", "Google Analytics"],
39914
- ["googlebigquery", "googlebigquery", "OAUTH2", true, "data", "Google BigQuery"],
39915
- ["amplitude", "amplitude", "API_KEY", false, "data", "Amplitude"],
39916
- ["mixpanel", "mixpanel", "BASIC", false, "data", "Mixpanel"],
39917
- ["segment", "segment", "API_KEY", false, "data", "Segment"],
39918
- ["supermemory", "supermemory", "API_KEY", false, "data", "Supermemory"],
39919
- ["databricks", "databricks", "API_KEY", false, "data", "Databricks"],
39920
- ["snowflake", "snowflake", "OAUTH2", false, "data", "Snowflake"],
39921
- ["algolia", "algolia", "API_KEY", false, "data", "Algolia"],
39922
- ["elasticsearch", "elasticsearch", "API_KEY", false, "data", "Elasticsearch"],
39923
- ["salesforce", "salesforce", "OAUTH2", true, "business", "Salesforce"],
39924
- ["pipedrive", "pipedrive", "API_KEY", false, "business", "Pipedrive"],
39925
- ["close", "close", "API_KEY", false, "business", "Close"],
39926
- ["apollo", "apollo", "API_KEY", false, "business", "Apollo"],
39927
- ["gong", "gong", "OAUTH2", true, "business", "Gong"],
39928
- ["freshdesk", "freshdesk", "API_KEY", false, "business", "Freshdesk"],
39929
- ["helpscout", "help_scout", "OAUTH2", false, "business", "Help Scout"],
39930
- ["servicenow", "servicenow", "BASIC", false, "business", "ServiceNow"],
39931
- ["mailchimp", "mailchimp", "OAUTH2", true, "business", "Mailchimp"],
39932
- ["customerio", "customerio", "API_KEY", false, "business", "Customer.io"],
39933
- ["klaviyo", "klaviyo", "API_KEY", false, "business", "Klaviyo"],
39934
- ["shopify", "shopify", "API_KEY", false, "business", "Shopify"],
39935
- ["quickbooks", "quickbooks", "OAUTH2", true, "business", "QuickBooks"],
39936
- ["xero", "xero", "OAUTH2", false, "business", "Xero"],
39937
- ["brex", "brex", "API_KEY", false, "business", "Brex"],
39938
- ["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
39939
- ["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
39940
- ["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
39941
- ["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
39942
- ["browserbase", "browserbase_tool", "API_KEY", false, "data", "Browserbase"],
39943
- ["exa", "exa", "API_KEY", false, "data", "Exa"],
39944
- ["youtube", "youtube", "OAUTH2", true, "business", "YouTube"],
39945
- ["twitter", "twitter", "OAUTH2", false, "business", "Twitter/X"],
39946
- ["instagram", "instagram", "OAUTH2", true, "business", "Instagram"],
39947
- ["facebook", "facebook", "OAUTH2", true, "business", "Facebook"]
39948
- ];
39949
- HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
39950
- ([id, toolkit, authScheme, managedAuth, category, name]) => ({
39951
- id,
39952
- backend: "composio",
39953
- toolkit,
39954
- authType: "hosted",
39955
- authScheme,
39956
- managedAuth,
39957
- category,
39958
- name,
39959
- description: `Use ${name} tools from workspace agents.`
39960
- })
39961
- );
39962
- READ_ONLY_SCOPES = {
39963
- 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"],
39964
- googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
39965
- googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
39966
- googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
39967
- googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
39968
- googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
39969
- googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
39970
- googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
39971
- googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
39972
- youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
39973
- outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
39974
- onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
39975
- 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"],
39976
- 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"],
39977
- 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"],
39978
- zendesk: ["read"],
39979
- 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"],
39980
- 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"],
39981
- airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
39982
- todoist: ["data:read"],
39983
- dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
39984
- canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
39985
- facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
39986
- instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
39987
- };
39988
- PLUGIN_CATALOG = [
39989
- ...EXPLICIT_PLUGIN_CATALOG,
39990
- ...HOSTED_COMPOSIO_PLUGINS
39991
- ].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
39992
- }
39993
- });
39994
-
39995
- // ../shared/src/routes/plugins.ts
39996
- var init_plugins2 = __esm({
39997
- "../shared/src/routes/plugins.ts"() {
39998
- "use strict";
39999
- init_plugin_catalog();
40000
- init_plugin_catalog();
40001
- }
40002
- });
40003
-
40004
40044
  // ../shared/src/routes/sentry.ts
40005
40045
  var sentrySelfHostedConnectRequestSchema;
40006
40046
  var init_sentry2 = __esm({
@@ -50589,7 +50629,7 @@ var init_src = __esm({
50589
50629
  init_linear();
50590
50630
  init_slack2();
50591
50631
  init_scout2();
50592
- init_plugins2();
50632
+ init_plugins();
50593
50633
  init_sentry2();
50594
50634
  init_infisical();
50595
50635
  init_doppler();
@@ -56635,6 +56675,9 @@ function printSource({ source }) {
56635
56675
  console.log(`Managed settings: ${source.managed.fields.join(", ") || "(none)"}`);
56636
56676
  console.log(`Managed variables: ${source.managed.variables.join(", ") || "(none)"}`);
56637
56677
  console.log(`Managed MCPs: ${source.managed.mcps.join(", ") || "(none)"}`);
56678
+ console.log(`Managed files: ${source.managed.files?.join(", ") || "(none)"}`);
56679
+ console.log(`Managed skills: ${source.managed.skills?.join(", ") || "(none)"}`);
56680
+ if (source.required_plugins?.length) console.log(`Required plugins: ${source.required_plugins.join(", ")}`);
56638
56681
  if (source.required_secrets.length) console.log(`Required secrets: ${source.required_secrets.join(", ")}`);
56639
56682
  if (source.pending_rebuild) console.log(import_chalk30.default.yellow("Configuration saved; environment rebuild pending."));
56640
56683
  if (source.last_error) console.log(import_chalk30.default.red(source.last_error));
@@ -56649,7 +56692,7 @@ function printPreview({ preview: preview2 }) {
56649
56692
  if (preview2.blockers.length || preview2.missing_secrets.length) console.log(import_chalk30.default.yellow("Cannot apply this configuration. No changes have been made."));
56650
56693
  if (!preview2.changes.length && !addedSecrets.length && !removedSecrets.length) console.log("No setting changes. Applying records this configuration.");
56651
56694
  else console.log("Proposed changes (not applied):");
56652
- for (const change of preview2.changes) console.log(` ${change.operation}: ${change.kind} ${change.key}`);
56695
+ for (const change of preview2.changes) console.log(` ${change.kind === "plugin" ? change.operation === "remove" ? "stop requiring" : "require" : change.operation}: ${change.kind} ${change.key}`);
56653
56696
  for (const key of addedSecrets) console.log(` require: secret ${key}`);
56654
56697
  for (const key of removedSecrets) console.log(` stop requiring: secret ${key}`);
56655
56698
  if (preview2.missing_secrets.length) console.log(import_chalk30.default.yellow(`Missing required secrets: ${preview2.missing_secrets.join(", ")}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.462",
3
+ "version": "0.3.465",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {