replicas-cli 0.3.461 → 0.3.463

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 -388
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -21737,7 +21737,7 @@ var init_mothership = __esm({
21737
21737
  mothershipLinearRuleSchema = external_exports.preprocess(withLabelIds, linearRuleFields);
21738
21738
  SUBAGENT_SERVICE_TIERS = ["default", "fast", "ultrafast"];
21739
21739
  mothershipSubagentSettingsSchema = external_exports.object({
21740
- coding_agent: external_exports.enum(ENGINE_AGENT_PROVIDERS),
21740
+ coding_agent: external_exports.enum(VALID_AGENT_PROVIDERS),
21741
21741
  model: external_exports.string().nullable(),
21742
21742
  thinking_level: external_exports.enum(VALID_THINKING_LEVELS).nullable(),
21743
21743
  service_tier: external_exports.enum(SUBAGENT_SERVICE_TIERS),
@@ -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();
@@ -25549,7 +25957,7 @@ It is your responsibility to make previews work for outsiders as well as they wo
25549
25957
 
25550
25958
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
25551
25959
  var SECTION11, REFERENCE11, PLUGINS_ABILITY;
25552
- var init_plugins = __esm({
25960
+ var init_plugins2 = __esm({
25553
25961
  "../shared/src/default-skills/replicas-agent/abilities/plugins.ts"() {
25554
25962
  "use strict";
25555
25963
  SECTION11 = `### Plugins
@@ -26594,7 +27002,7 @@ var init_registry = __esm({
26594
27002
  init_local_computer();
26595
27003
  init_media();
26596
27004
  init_previews();
26597
- init_plugins();
27005
+ init_plugins2();
26598
27006
  init_replicas();
26599
27007
  init_sentry();
26600
27008
  init_session_history();
@@ -38977,6 +39385,7 @@ var init_types8 = __esm({
38977
39385
  "use strict";
38978
39386
  init_zod();
38979
39387
  init_agent();
39388
+ init_v1();
38980
39389
  HARNESS_THREAD_STATUSES = ["idle", "working", "error"];
38981
39390
  textSchema = external_exports.looseObject({ type: external_exports.literal("text"), text: external_exports.string() });
38982
39391
  imageSchema = external_exports.looseObject({ type: external_exports.literal("image"), data: external_exports.string(), mimeType: external_exports.string() });
@@ -39022,8 +39431,10 @@ var init_types8 = __esm({
39022
39431
  model: external_exports.string().optional(),
39023
39432
  thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional(),
39024
39433
  instructionsHash: external_exports.string().optional(),
39434
+ queued: external_exports.boolean().optional(),
39025
39435
  /** Stored only on a message whose `instructionsHash` differs from the message before it; later ones find it by hash. */
39026
- instructions: external_exports.object({ environmentSystemPrompt: external_exports.string().optional(), customInstructions: external_exports.string().optional() }).optional()
39436
+ instructions: external_exports.object({ environmentSystemPrompt: external_exports.string().optional(), customInstructions: external_exports.string().optional() }).optional(),
39437
+ errorNotificationTarget: integrationErrorNotificationTargetSchema.optional()
39027
39438
  }),
39028
39439
  interrupt: external_exports.looseObject({ userId: external_exports.string().nullable() })
39029
39440
  };
@@ -39057,7 +39468,7 @@ var init_types8 = __esm({
39057
39468
  });
39058
39469
 
39059
39470
  // ../shared/src/harness/worker-routes.ts
39060
- var harnessWorkerEngineRequestSchema, harnessWorkerEngineResponseSchema, harnessWorkerCredentialRequestSchema, harnessWorkerCredentialResponseSchema;
39471
+ var harnessWorkerEngineRequestSchema, harnessWorkerEngineResponseSchema, harnessWorkerCredentialRequestSchema, harnessWorkerCredentialResponseSchema, harnessWorkerTurnCompleteRequestSchema;
39061
39472
  var init_worker_routes = __esm({
39062
39473
  "../shared/src/harness/worker-routes.ts"() {
39063
39474
  "use strict";
@@ -39082,6 +39493,7 @@ var init_worker_routes = __esm({
39082
39493
  external_exports.object({ method: external_exports.literal("oauth"), accessToken: external_exports.string(), expiresAt: external_exports.string(), credential: agentCredentialSnapshotSchema }),
39083
39494
  external_exports.object({ method: external_exports.literal("api_key"), apiKey: external_exports.string(), credential: agentCredentialSnapshotSchema })
39084
39495
  ]);
39496
+ harnessWorkerTurnCompleteRequestSchema = external_exports.object({ errors: external_exports.array(external_exports.string()) });
39085
39497
  }
39086
39498
  });
39087
39499
 
@@ -39149,7 +39561,7 @@ var CLI_VERSION;
39149
39561
  var init_cli_version = __esm({
39150
39562
  "../shared/src/cli-version.ts"() {
39151
39563
  "use strict";
39152
- CLI_VERSION = "0.3.461";
39564
+ CLI_VERSION = "0.3.463";
39153
39565
  }
39154
39566
  });
39155
39567
 
@@ -39171,13 +39583,6 @@ var init_version = __esm({
39171
39583
  }
39172
39584
  });
39173
39585
 
39174
- // ../shared/src/environment-files.ts
39175
- var init_environment_files = __esm({
39176
- "../shared/src/environment-files.ts"() {
39177
- "use strict";
39178
- }
39179
- });
39180
-
39181
39586
  // ../shared/src/engine/chat-tabs.ts
39182
39587
  var init_chat_tabs = __esm({
39183
39588
  "../shared/src/engine/chat-tabs.ts"() {
@@ -39613,7 +40018,7 @@ var init_scout2 = __esm({
39613
40018
  RESET_TO_DEFAULT = "default";
39614
40019
  resettable = (schema, description) => external_exports.union([schema, external_exports.literal(RESET_TO_DEFAULT)]).optional().describe(`${description} \`${RESET_TO_DEFAULT}\` falls back to the organization default. Omit to keep it.`);
39615
40020
  scoutSetSlackAgentDefaultsToolInputSchema = scoutSettingsConfirmationSchema.extend({
39616
- agent_provider: resettable(external_exports.enum(ENGINE_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
40021
+ agent_provider: resettable(external_exports.enum(VALID_AGENT_PROVIDERS), "Agent for Slack-triggered workspaces. Changing it without `model` resets the model to that agent's default."),
39617
40022
  model: resettable(external_exports.string(), "Model id for that agent; the default is the agent's own."),
39618
40023
  thinking_level: resettable(external_exports.enum(VALID_THINKING_LEVELS), "Thinking level."),
39619
40024
  goal_mode: resettable(external_exports.boolean(), "Goal mode."),
@@ -39628,375 +40033,6 @@ var init_scout2 = __esm({
39628
40033
  }
39629
40034
  });
39630
40035
 
39631
- // ../shared/src/routes/plugin-catalog.ts
39632
- var EXPLICIT_PLUGIN_CATALOG, HOSTED_COMPOSIO_PLUGIN_DEFINITIONS, HOSTED_COMPOSIO_PLUGINS, READ_ONLY_SCOPES, PLUGIN_CATALOG;
39633
- var init_plugin_catalog = __esm({
39634
- "../shared/src/routes/plugin-catalog.ts"() {
39635
- "use strict";
39636
- EXPLICIT_PLUGIN_CATALOG = [
39637
- {
39638
- id: "attio",
39639
- backend: "composio",
39640
- toolkit: "attio",
39641
- authType: "oauth",
39642
- category: "business",
39643
- name: "Attio",
39644
- description: "Manage CRM records, people, companies, lists, and notes."
39645
- },
39646
- {
39647
- id: "calendly",
39648
- backend: "composio",
39649
- toolkit: "calendly",
39650
- authType: "oauth",
39651
- category: "productivity",
39652
- name: "Calendly",
39653
- description: "Manage event types, scheduled events, invitees, and scheduling links."
39654
- },
39655
- {
39656
- id: "clickhouse",
39657
- backend: "composio",
39658
- toolkit: "clickhouse",
39659
- authType: "basic",
39660
- category: "data",
39661
- name: "ClickHouse",
39662
- description: "Manage databases, tables, schemas, and queries."
39663
- },
39664
- {
39665
- id: "cloudflare",
39666
- backend: "composio",
39667
- toolkit: "cloudflare_api_key",
39668
- authType: "api_key",
39669
- category: "data",
39670
- name: "Cloudflare",
39671
- description: "Manage zones, DNS records, analytics, and security settings."
39672
- },
39673
- {
39674
- id: "e2b",
39675
- toolkit: "e2b",
39676
- backend: "native",
39677
- authType: "api_key",
39678
- category: "data",
39679
- name: "E2B",
39680
- description: "Create secure cloud sandboxes and run commands in them."
39681
- },
39682
- {
39683
- id: "gmail",
39684
- backend: "composio",
39685
- toolkit: "gmail",
39686
- authType: "oauth",
39687
- category: "productivity",
39688
- name: "Gmail",
39689
- description: "Manage messages, threads, attachments, labels, and mailbox settings."
39690
- },
39691
- {
39692
- id: "greptile",
39693
- backend: "native",
39694
- toolkit: "greptile",
39695
- authType: "api_key",
39696
- category: "data",
39697
- name: "Greptile Knowledge Base",
39698
- description: "Search and read self-updating codebase documentation, architecture, and flows."
39699
- },
39700
- {
39701
- id: "googleads",
39702
- backend: "composio",
39703
- toolkit: "googleads",
39704
- authType: "oauth",
39705
- category: "data",
39706
- name: "Google Ads",
39707
- description: "Manage campaigns, customers, accounts, and reporting data."
39708
- },
39709
- {
39710
- id: "googledocs",
39711
- backend: "composio",
39712
- toolkit: "googledocs",
39713
- authType: "oauth",
39714
- category: "productivity",
39715
- name: "Google Docs",
39716
- description: "Manage documents, structure, comments, and exported content."
39717
- },
39718
- {
39719
- id: "googledrive",
39720
- backend: "composio",
39721
- toolkit: "googledrive",
39722
- authType: "oauth",
39723
- category: "productivity",
39724
- name: "Google Drive",
39725
- description: "Manage files, folders, metadata, permissions, and shared drives."
39726
- },
39727
- {
39728
- id: "googlesearch",
39729
- backend: "composio",
39730
- toolkit: "google_search_console",
39731
- authType: "oauth",
39732
- category: "data",
39733
- name: "Google Search",
39734
- description: "Manage Search Console performance, indexing, sites, and sitemaps."
39735
- },
39736
- {
39737
- id: "googlesheets",
39738
- backend: "composio",
39739
- toolkit: "googlesheets",
39740
- authType: "oauth",
39741
- category: "productivity",
39742
- name: "Google Sheets",
39743
- description: "Manage spreadsheets, worksheets, ranges, tables, and charts."
39744
- },
39745
- {
39746
- id: "linkedin",
39747
- backend: "composio",
39748
- toolkit: "linkedin",
39749
- authType: "oauth",
39750
- category: "business",
39751
- name: "LinkedIn",
39752
- description: "Manage profiles, organizations, posts, and professional activity."
39753
- },
39754
- {
39755
- id: "modal",
39756
- backend: "native",
39757
- toolkit: "modal",
39758
- authType: "basic",
39759
- category: "data",
39760
- name: "Modal",
39761
- description: "Invoke deployed functions through Modal compute."
39762
- },
39763
- {
39764
- id: "posthog",
39765
- backend: "composio",
39766
- toolkit: "posthog",
39767
- authType: "api_key",
39768
- category: "data",
39769
- name: "PostHog",
39770
- description: "Manage projects, events, insights, dashboards, flags, and recordings."
39771
- },
39772
- {
39773
- id: "planetscale",
39774
- toolkit: "planetscale",
39775
- backend: "native",
39776
- authType: "oauth",
39777
- category: "data",
39778
- name: "PlanetScale",
39779
- description: "Manage organizations, databases, branches, deploy requests, and Insights."
39780
- },
39781
- {
39782
- id: "sazabi",
39783
- backend: "native",
39784
- toolkit: "sazabi",
39785
- authType: "oauth",
39786
- category: "data",
39787
- name: "Sazabi",
39788
- description: "Query logs, investigate issues, and run the Sazabi observability agent."
39789
- },
39790
- {
39791
- id: "stripe",
39792
- backend: "composio",
39793
- toolkit: "stripe",
39794
- authType: "oauth",
39795
- category: "business",
39796
- name: "Stripe",
39797
- description: "Manage customers, payments, invoices, subscriptions, and balances."
39798
- },
39799
- {
39800
- id: "kondo",
39801
- backend: "native",
39802
- toolkit: "kondo",
39803
- authType: "oauth",
39804
- category: "business",
39805
- name: "Kondo",
39806
- description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
39807
- },
39808
- {
39809
- id: "lightfield",
39810
- backend: "native",
39811
- toolkit: "lightfield",
39812
- authType: "api_key",
39813
- category: "business",
39814
- name: "Lightfield",
39815
- description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
39816
- },
39817
- {
39818
- id: "pangram",
39819
- backend: "native",
39820
- toolkit: "pangram",
39821
- authType: "api_key",
39822
- category: "data",
39823
- name: "Pangram",
39824
- description: "Analyze text for AI generation and plagiarism signals."
39825
- },
39826
- {
39827
- id: "vercel",
39828
- backend: "native",
39829
- toolkit: "vercel",
39830
- authType: "api_key",
39831
- category: "data",
39832
- name: "Vercel",
39833
- description: "Manage projects, deployments, logs, domains, and infrastructure."
39834
- },
39835
- {
39836
- id: "turbopuffer",
39837
- backend: "native",
39838
- toolkit: "turbopuffer",
39839
- authType: "api_key",
39840
- category: "data",
39841
- name: "turbopuffer",
39842
- description: "Query and manage turbopuffer namespaces."
39843
- },
39844
- {
39845
- id: "vanta",
39846
- backend: "native",
39847
- toolkit: "vanta",
39848
- authType: "credentials",
39849
- category: "data",
39850
- name: "Vanta",
39851
- description: "Review and manage controls, tests, evidence, vendors, risks, and compliance data."
39852
- }
39853
- ];
39854
- HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
39855
- ["notion", "notion", "OAUTH2", true, "productivity", "Notion"],
39856
- ["jira", "jira", "OAUTH2", true, "productivity", "Jira"],
39857
- ["confluence", "confluence", "OAUTH2", true, "productivity", "Confluence"],
39858
- ["googlecalendar", "googlecalendar", "OAUTH2", true, "productivity", "Google Calendar"],
39859
- ["microsoftteams", "microsoft_teams", "OAUTH2", true, "productivity", "Microsoft Teams"],
39860
- ["outlook", "outlook", "OAUTH2", true, "productivity", "Outlook"],
39861
- ["bitbucket", "bitbucket", "OAUTH2", true, "data", "Bitbucket"],
39862
- ["datadog", "datadog", "API_KEY", false, "data", "Datadog"],
39863
- ["pagerduty", "pagerduty", "OAUTH2", true, "data", "PagerDuty"],
39864
- ["intercom", "intercom", "OAUTH2", true, "business", "Intercom"],
39865
- ["zendesk", "zendesk", "OAUTH2", true, "business", "Zendesk"],
39866
- ["hubspot", "hubspot", "OAUTH2", true, "business", "HubSpot"],
39867
- ["supabase", "supabase", "OAUTH2", true, "data", "Supabase"],
39868
- ["figma", "figma", "OAUTH2", true, "productivity", "Figma"],
39869
- ["launchdarkly", "launch_darkly", "API_KEY", false, "data", "LaunchDarkly"],
39870
- ["asana", "asana", "OAUTH2", true, "productivity", "Asana"],
39871
- ["clickup", "clickup", "OAUTH2", true, "productivity", "ClickUp"],
39872
- ["trello", "trello", "OAUTH1", true, "productivity", "Trello"],
39873
- ["todoist", "todoist", "OAUTH2", true, "productivity", "Todoist"],
39874
- ["airtable", "airtable", "OAUTH2", true, "productivity", "Airtable"],
39875
- ["coda", "coda", "API_KEY", false, "productivity", "Coda"],
39876
- ["miro", "miro", "OAUTH2", true, "productivity", "Miro"],
39877
- ["sharepoint", "share_point", "OAUTH2", true, "productivity", "SharePoint"],
39878
- ["onedrive", "one_drive", "OAUTH2", true, "productivity", "OneDrive"],
39879
- ["googleslides", "googleslides", "OAUTH2", true, "productivity", "Google Slides"],
39880
- ["googlemeet", "googlemeet", "OAUTH2", true, "productivity", "Google Meet"],
39881
- ["circleback", "circleback_mcp", "DCR_OAUTH", false, "productivity", "Circleback"],
39882
- ["granola", "granola_mcp", "DCR_OAUTH", false, "productivity", "Granola"],
39883
- ["mercury", "mercury_mcp", "DCR_OAUTH", false, "business", "Mercury"],
39884
- ["googletasks", "googletasks", "OAUTH2", true, "productivity", "Google Tasks"],
39885
- ["dropbox", "dropbox", "OAUTH2", true, "productivity", "Dropbox"],
39886
- ["box", "box", "OAUTH2", true, "productivity", "Box"],
39887
- ["discord", "discord", "OAUTH2", true, "productivity", "Discord"],
39888
- ["discordbot", "discordbot", "OAUTH2", true, "productivity", "Discord Bot"],
39889
- ["zoom", "zoom", "OAUTH2", true, "productivity", "Zoom"],
39890
- ["googlechat", "google_chat", "OAUTH2", false, "productivity", "Google Chat"],
39891
- ["newrelic", "new_relic", "API_KEY", false, "data", "New Relic"],
39892
- ["betterstack", "better_stack", "API_KEY", false, "data", "Better Stack"],
39893
- ["incidentio", "incident_io", "API_KEY", false, "data", "incident.io"],
39894
- ["grafana", "grafana", "BEARER_TOKEN", false, "data", "Grafana"],
39895
- ["honeycomb", "honeycomb_mcp", "DCR_OAUTH", false, "data", "Honeycomb MCP"],
39896
- ["neon", "neon_mcp", "DCR_OAUTH", false, "data", "Neon"],
39897
- ["glen", "glen_mcp", "DCR_OAUTH", false, "data", "Glen"],
39898
- ["bugsnag", "bugsnag", "API_KEY", false, "data", "Bugsnag"],
39899
- ["circleci", "circleci", "API_KEY", false, "data", "CircleCI"],
39900
- ["buildkite", "buildkite", "API_KEY", false, "data", "Buildkite"],
39901
- ["dockerhub", "docker_hub", "API_KEY", false, "data", "Docker Hub"],
39902
- ["digitalocean", "digital_ocean", "OAUTH2", true, "data", "DigitalOcean"],
39903
- ["railway", "railway", "API_KEY", false, "data", "Railway"],
39904
- ["render", "render", "API_KEY", false, "data", "Render"],
39905
- ["firebase", "firebase", "API_KEY", false, "data", "Firebase"],
39906
- ["cloudinary", "cloudinary", "API_KEY", false, "data", "Cloudinary"],
39907
- ["configcat", "configcat", "API_KEY", false, "data", "ConfigCat"],
39908
- ["contextdev", "context_dev", "API_KEY", false, "data", "Context.dev"],
39909
- ["googleanalytics", "google_analytics", "OAUTH2", true, "data", "Google Analytics"],
39910
- ["googlebigquery", "googlebigquery", "OAUTH2", true, "data", "Google BigQuery"],
39911
- ["amplitude", "amplitude", "API_KEY", false, "data", "Amplitude"],
39912
- ["mixpanel", "mixpanel", "BASIC", false, "data", "Mixpanel"],
39913
- ["segment", "segment", "API_KEY", false, "data", "Segment"],
39914
- ["supermemory", "supermemory", "API_KEY", false, "data", "Supermemory"],
39915
- ["databricks", "databricks", "API_KEY", false, "data", "Databricks"],
39916
- ["snowflake", "snowflake", "OAUTH2", false, "data", "Snowflake"],
39917
- ["algolia", "algolia", "API_KEY", false, "data", "Algolia"],
39918
- ["elasticsearch", "elasticsearch", "API_KEY", false, "data", "Elasticsearch"],
39919
- ["salesforce", "salesforce", "OAUTH2", true, "business", "Salesforce"],
39920
- ["pipedrive", "pipedrive", "API_KEY", false, "business", "Pipedrive"],
39921
- ["close", "close", "API_KEY", false, "business", "Close"],
39922
- ["apollo", "apollo", "API_KEY", false, "business", "Apollo"],
39923
- ["gong", "gong", "OAUTH2", true, "business", "Gong"],
39924
- ["freshdesk", "freshdesk", "API_KEY", false, "business", "Freshdesk"],
39925
- ["helpscout", "help_scout", "OAUTH2", false, "business", "Help Scout"],
39926
- ["servicenow", "servicenow", "BASIC", false, "business", "ServiceNow"],
39927
- ["mailchimp", "mailchimp", "OAUTH2", true, "business", "Mailchimp"],
39928
- ["customerio", "customerio", "API_KEY", false, "business", "Customer.io"],
39929
- ["klaviyo", "klaviyo", "API_KEY", false, "business", "Klaviyo"],
39930
- ["shopify", "shopify", "API_KEY", false, "business", "Shopify"],
39931
- ["quickbooks", "quickbooks", "OAUTH2", true, "business", "QuickBooks"],
39932
- ["xero", "xero", "OAUTH2", false, "business", "Xero"],
39933
- ["brex", "brex", "API_KEY", false, "business", "Brex"],
39934
- ["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
39935
- ["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
39936
- ["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
39937
- ["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
39938
- ["browserbase", "browserbase_tool", "API_KEY", false, "data", "Browserbase"],
39939
- ["exa", "exa", "API_KEY", false, "data", "Exa"],
39940
- ["youtube", "youtube", "OAUTH2", true, "business", "YouTube"],
39941
- ["twitter", "twitter", "OAUTH2", false, "business", "Twitter/X"],
39942
- ["instagram", "instagram", "OAUTH2", true, "business", "Instagram"],
39943
- ["facebook", "facebook", "OAUTH2", true, "business", "Facebook"]
39944
- ];
39945
- HOSTED_COMPOSIO_PLUGINS = HOSTED_COMPOSIO_PLUGIN_DEFINITIONS.map(
39946
- ([id, toolkit, authScheme, managedAuth, category, name]) => ({
39947
- id,
39948
- backend: "composio",
39949
- toolkit,
39950
- authType: "hosted",
39951
- authScheme,
39952
- managedAuth,
39953
- category,
39954
- name,
39955
- description: `Use ${name} tools from workspace agents.`
39956
- })
39957
- );
39958
- READ_ONLY_SCOPES = {
39959
- 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"],
39960
- googledocs: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/documents.readonly"],
39961
- googledrive: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly"],
39962
- googlesheets: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/spreadsheets.readonly"],
39963
- googleslides: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/presentations.readonly"],
39964
- googlecalendar: ["https://www.googleapis.com/auth/calendar.readonly"],
39965
- googletasks: ["https://www.googleapis.com/auth/tasks.readonly"],
39966
- googlesearch: ["https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/webmasters.readonly"],
39967
- googleanalytics: ["https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/analytics.readonly"],
39968
- youtube: ["https://www.googleapis.com/auth/youtube.readonly"],
39969
- outlook: ["User.Read", "Mail.Read", "MailboxSettings.Read", "Calendars.Read", "Contacts.Read", "offline_access"],
39970
- onedrive: ["Files.Read.All", "Sites.Read.All", "offline_access"],
39971
- 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"],
39972
- 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"],
39973
- 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"],
39974
- zendesk: ["read"],
39975
- 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"],
39976
- 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"],
39977
- airtable: ["data.records:read", "data.recordComments:read", "schema.bases:read", "user.email:read"],
39978
- todoist: ["data:read"],
39979
- dropbox: ["openid", "email", "profile", "account_info.read", "files.metadata.read", "files.content.read", "file_requests.read", "sharing.read", "contacts.read"],
39980
- canva: ["profile:read", "asset:read", "brandtemplate:content:read", "brandtemplate:meta:read", "comment:read", "design:content:read", "design:meta:read", "folder:read"],
39981
- facebook: ["public_profile", "email", "pages_show_list", "pages_read_engagement", "pages_read_user_content", "read_insights"],
39982
- instagram: ["instagram_business_basic", "instagram_business_manage_insights"]
39983
- };
39984
- PLUGIN_CATALOG = [
39985
- ...EXPLICIT_PLUGIN_CATALOG,
39986
- ...HOSTED_COMPOSIO_PLUGINS
39987
- ].map((plugin) => ({ ...plugin, readOnlyScopes: READ_ONLY_SCOPES[plugin.id] }));
39988
- }
39989
- });
39990
-
39991
- // ../shared/src/routes/plugins.ts
39992
- var init_plugins2 = __esm({
39993
- "../shared/src/routes/plugins.ts"() {
39994
- "use strict";
39995
- init_plugin_catalog();
39996
- init_plugin_catalog();
39997
- }
39998
- });
39999
-
40000
40036
  // ../shared/src/routes/sentry.ts
40001
40037
  var sentrySelfHostedConnectRequestSchema;
40002
40038
  var init_sentry2 = __esm({
@@ -40260,7 +40296,7 @@ var init_review_messages = __esm({
40260
40296
  }).shape,
40261
40297
  /** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
40262
40298
  newChat: external_exports.boolean().optional(),
40263
- provider: external_exports.enum(ENGINE_AGENT_PROVIDERS).optional()
40299
+ provider: external_exports.enum(VALID_AGENT_PROVIDERS).optional()
40264
40300
  });
40265
40301
  }
40266
40302
  });
@@ -40338,8 +40374,8 @@ var init_github_checks = __esm({
40338
40374
  function validateAgentSelection(body, existing, modelCatalogs = {}) {
40339
40375
  const agentProvider = body.agent_provider;
40340
40376
  if (agentProvider !== void 0 && agentProvider !== null) {
40341
- if (!isEngineAgentProvider(agentProvider)) {
40342
- return createErrorResult({ message: `Invalid agent_provider: must be one of ${ENGINE_AGENT_PROVIDERS.join(", ")}` });
40377
+ if (!isValidAgentProvider(agentProvider)) {
40378
+ return createErrorResult({ message: `Invalid agent_provider: must be one of ${VALID_AGENT_PROVIDERS.join(", ")}` });
40343
40379
  }
40344
40380
  }
40345
40381
  const executionAgent = agentProvider !== void 0 ? agentProvider : existing.agentProvider;
@@ -50585,7 +50621,7 @@ var init_src = __esm({
50585
50621
  init_linear();
50586
50622
  init_slack2();
50587
50623
  init_scout2();
50588
- init_plugins2();
50624
+ init_plugins();
50589
50625
  init_sentry2();
50590
50626
  init_infisical();
50591
50627
  init_doppler();
@@ -56631,6 +56667,9 @@ function printSource({ source }) {
56631
56667
  console.log(`Managed settings: ${source.managed.fields.join(", ") || "(none)"}`);
56632
56668
  console.log(`Managed variables: ${source.managed.variables.join(", ") || "(none)"}`);
56633
56669
  console.log(`Managed MCPs: ${source.managed.mcps.join(", ") || "(none)"}`);
56670
+ console.log(`Managed files: ${source.managed.files?.join(", ") || "(none)"}`);
56671
+ console.log(`Managed skills: ${source.managed.skills?.join(", ") || "(none)"}`);
56672
+ if (source.required_plugins?.length) console.log(`Required plugins: ${source.required_plugins.join(", ")}`);
56634
56673
  if (source.required_secrets.length) console.log(`Required secrets: ${source.required_secrets.join(", ")}`);
56635
56674
  if (source.pending_rebuild) console.log(import_chalk30.default.yellow("Configuration saved; environment rebuild pending."));
56636
56675
  if (source.last_error) console.log(import_chalk30.default.red(source.last_error));
@@ -56645,7 +56684,7 @@ function printPreview({ preview: preview2 }) {
56645
56684
  if (preview2.blockers.length || preview2.missing_secrets.length) console.log(import_chalk30.default.yellow("Cannot apply this configuration. No changes have been made."));
56646
56685
  if (!preview2.changes.length && !addedSecrets.length && !removedSecrets.length) console.log("No setting changes. Applying records this configuration.");
56647
56686
  else console.log("Proposed changes (not applied):");
56648
- for (const change of preview2.changes) console.log(` ${change.operation}: ${change.kind} ${change.key}`);
56687
+ for (const change of preview2.changes) console.log(` ${change.kind === "plugin" ? change.operation === "remove" ? "stop requiring" : "require" : change.operation}: ${change.kind} ${change.key}`);
56649
56688
  for (const key of addedSecrets) console.log(` require: secret ${key}`);
56650
56689
  for (const key of removedSecrets) console.log(` stop requiring: secret ${key}`);
56651
56690
  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.461",
3
+ "version": "0.3.463",
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": {