replicas-cli 0.2.493 → 0.2.495

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.mjs +39 -107
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -8735,79 +8735,12 @@ var GITLAB_ABILITY = {
8735
8735
  referenceFile: { name: "GITLAB.md", content: REFERENCE4 }
8736
8736
  };
8737
8737
 
8738
- // ../shared/src/default-skills/replicas-agent/abilities/google.ts
8739
- var SECTION5 = `### Google Workspace and Search Console
8740
- Create and edit Docs, Sheets, and Forms, manage Replicas-created Drive files, and read Search Console through the workspace-scoped TypeScript SDK.
8741
-
8742
- **Reference:** \`references/GOOGLE.md\`
8743
-
8744
- Use this when:
8745
- - You need to create or edit a Google Doc, Sheet, or Form
8746
- - You need to manage a file Replicas created
8747
- - You need Google Search Console data`;
8748
- var REFERENCE5 = `# Google Workspace and Search Console
8749
-
8750
- Use \`@replicas/sdk\`; the workspace never receives Google OAuth credentials. Personal credentials are preferred for the workspace owner, then Replicas falls back to the organization connection.
8751
-
8752
- \`\`\`ts
8753
- import { replicas } from '@replicas/sdk';
8754
-
8755
- const { native } = await replicas.integrations.list();
8756
- if (!native.google) throw new Error('Connect Google in Replicas integrations first.');
8757
- \`\`\`
8758
-
8759
- Google Drive uses \`drive.file\`: Replicas can access only files it created, not pre-existing files in the account.
8760
-
8761
- ## Docs
8762
-
8763
- \`\`\`ts
8764
- const doc = await replicas.google.request<{ documentId: string }>('docs', {
8765
- method: 'POST',
8766
- body: { title: 'Meeting notes' },
8767
- });
8768
- await replicas.google.request(\`docs/\${doc.documentId}/batchUpdate\`, {
8769
- method: 'POST',
8770
- body: { requests: [{ insertText: { location: { index: 1 }, text: 'Hello\\n' } }] },
8771
- });
8772
- \`\`\`
8773
-
8774
- ## Sheets
8775
-
8776
- \`\`\`ts
8777
- const sheet = await replicas.google.request<{ spreadsheetId: string }>('sheets', {
8778
- method: 'POST',
8779
- body: { title: 'Q2 metrics' },
8780
- });
8781
- await replicas.google.request(
8782
- \`sheets/\${sheet.spreadsheetId}/values/\${encodeURIComponent('Sheet1!A1:B2')}?valueInputOption=USER_ENTERED\`,
8783
- { method: 'PUT', body: { values: [['Name', 'Revenue'], ['Q1', 100]] } },
8784
- );
8785
- \`\`\`
8786
-
8787
- ## Forms, Drive, and Search Console
8788
-
8789
- The same method maps directly to the guarded \`/v1/gdrive/*\` routes:
8790
-
8791
- - \`forms\`, \`forms/:id\`, \`forms/:id/batchUpdate\`, \`forms/:id/responses\`
8792
- - \`files\`, \`files/:id\`, \`files/:id/permissions\`
8793
- - \`search-console/sites\`, \`search-console/search-analytics/query\`, \`search-console/sitemaps\`, \`search-console/url-inspection\`
8794
-
8795
- Batch independent reads with \`Promise.all\`; use each API's batch-update endpoint for dependent writes.
8796
- `;
8797
- var GOOGLE_ABILITY = {
8798
- label: "Google Workspace",
8799
- description: "Use Docs, Sheets, Forms, Drive, and Search Console through @replicas/sdk.",
8800
- bullet: "- Interacting with Google Workspace or Search Console",
8801
- section: SECTION5,
8802
- referenceFile: { name: "GOOGLE.md", content: REFERENCE5 }
8803
- };
8804
-
8805
8738
  // ../shared/src/default-skills/replicas-agent/abilities/learnings.ts
8806
- var SECTION6 = `### Learnings
8739
+ var SECTION5 = `### Learnings
8807
8740
  Propose additions, updates, or deletions to curated organization knowledge.
8808
8741
 
8809
8742
  **Reference:** \`references/LEARNINGS.md\``;
8810
- var REFERENCE6 = `# Learnings
8743
+ var REFERENCE5 = `# Learnings
8811
8744
 
8812
8745
  Learnings are curated, human-approved knowledge entries your organization maintains: conventions, gotchas, environment facts, and process rules.
8813
8746
 
@@ -8825,12 +8758,12 @@ var LEARNINGS_ABILITY = {
8825
8758
  label: "Learnings",
8826
8759
  description: "Propose changes to curated org knowledge for human review.",
8827
8760
  bullet: "- Proposing changes to organization Learnings (curated, human-approved knowledge)",
8828
- section: SECTION6,
8829
- referenceFile: { name: "LEARNINGS.md", content: REFERENCE6 }
8761
+ section: SECTION5,
8762
+ referenceFile: { name: "LEARNINGS.md", content: REFERENCE5 }
8830
8763
  };
8831
8764
 
8832
8765
  // ../shared/src/default-skills/replicas-agent/abilities/linear.ts
8833
- var SECTION7 = `### Linear
8766
+ var SECTION6 = `### Linear
8834
8767
  Fetch issues, update state, add comments, and search through the workspace-scoped TypeScript SDK.
8835
8768
 
8836
8769
  **Reference:** \`references/LINEAR.md\`
@@ -8839,7 +8772,7 @@ Use this when:
8839
8772
  - You encounter a Linear issue link and need to understand the task
8840
8773
  - You need to update an issue's state or add a comment
8841
8774
  - You need to search Linear issues`;
8842
- var REFERENCE7 = `# Linear Integration
8775
+ var REFERENCE6 = `# Linear Integration
8843
8776
 
8844
8777
  Use \`@replicas/sdk\`; never request or handle a Linear OAuth token. Replicas refreshes the organization credential behind the gateway.
8845
8778
 
@@ -8889,12 +8822,12 @@ var LINEAR_ABILITY = {
8889
8822
  label: "Linear",
8890
8823
  description: "Fetch issues, comment, and update state through @replicas/sdk.",
8891
8824
  bullet: "- Interacting with Linear (fetching issues, updating state, commenting, etc.)",
8892
- section: SECTION7,
8893
- referenceFile: { name: "LINEAR.md", content: REFERENCE7 }
8825
+ section: SECTION6,
8826
+ referenceFile: { name: "LINEAR.md", content: REFERENCE6 }
8894
8827
  };
8895
8828
 
8896
8829
  // ../shared/src/default-skills/replicas-agent/abilities/media.ts
8897
- var SECTION8 = `### Media
8830
+ var SECTION7 = `### Media
8898
8831
  Share screenshots, screen recordings, generated diagrams, audio clips, and self-contained HTML pages through Replicas and external messages.
8899
8832
 
8900
8833
  **Reference:** \`references/MEDIA.md\`
@@ -8904,7 +8837,7 @@ Use this when:
8904
8837
  - You produce a self-contained HTML report that should be linked from a pull request
8905
8838
  - You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
8906
8839
  - You need to embed media in a Slack/Linear/GitHub message AND keep a referenceable copy in the Replicas dashboard`;
8907
- var REFERENCE8 = `# Media (Screenshots, Recordings, Audio, HTML)
8840
+ var REFERENCE7 = `# Media (Screenshots, Recordings, Audio, HTML)
8908
8841
 
8909
8842
  This guide covers how to share screenshots, screen recordings, generated diagrams, audio clips, and self-contained HTML pages through Replicas and external surfaces (Slack, Linear, GitHub).
8910
8843
 
@@ -9210,12 +9143,12 @@ var MEDIA_ABILITY = {
9210
9143
  label: "Media",
9211
9144
  description: "Share screenshots, recordings, generated images, audio clips, and HTML pages.",
9212
9145
  bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips, or HTML recap pages \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms",
9213
- section: SECTION8,
9214
- referenceFile: { name: "MEDIA.md", content: REFERENCE8 }
9146
+ section: SECTION7,
9147
+ referenceFile: { name: "MEDIA.md", content: REFERENCE7 }
9215
9148
  };
9216
9149
 
9217
9150
  // ../shared/src/default-skills/replicas-agent/abilities/previews.ts
9218
- var SECTION9 = `### Previews
9151
+ var SECTION8 = `### Previews
9219
9152
  Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
9220
9153
 
9221
9154
  **Reference:** \`references/PREVIEWS.md\`
@@ -9224,7 +9157,7 @@ Use this when:
9224
9157
  - You need to start a service that a human should view or interact with
9225
9158
  - The task involves UI work that benefits from human review
9226
9159
  - You are verifying frontend/backend integrations visually`;
9227
- var REFERENCE9 = `# Preview URLs
9160
+ var REFERENCE8 = `# Preview URLs
9228
9161
 
9229
9162
  When you run services on ports \u2014 such as a web app, API server, or database \u2014 humans may want to interact with them directly. You can expose your locally running services as public preview URLs.
9230
9163
 
@@ -9300,21 +9233,22 @@ var PREVIEWS_ABILITY = {
9300
9233
  label: "Previews",
9301
9234
  description: "Expose locally running services on public preview URLs for humans.",
9302
9235
  bullet: "- Creating preview URLs for locally running services",
9303
- section: SECTION9,
9304
- referenceFile: { name: "PREVIEWS.md", content: REFERENCE9 }
9236
+ section: SECTION8,
9237
+ referenceFile: { name: "PREVIEWS.md", content: REFERENCE8 }
9305
9238
  };
9306
9239
 
9307
9240
  // ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
9308
- var SECTION10 = `### Plugins
9309
- Discover and execute installed Attio, Google Ads, and Stripe tools through the workspace-scoped TypeScript SDK.
9241
+ var SECTION9 = `### Plugins
9242
+ Discover and execute installed marketplace tools through the workspace-scoped TypeScript SDK.
9310
9243
 
9311
9244
  **Reference:** \`references/PLUGINS.md\`
9312
9245
 
9313
9246
  Use this when:
9314
9247
  - The user asks for CRM data from Attio
9315
- - The user asks for Google Ads campaigns or reporting
9248
+ - The user asks for Google Ads, Docs, Drive, Search Console, or Sheets data
9249
+ - The user asks for ClickHouse analytics or PostHog product data
9316
9250
  - The user asks for Stripe customers, payments, invoices, subscriptions, or balances`;
9317
- var REFERENCE10 = `# Plugins
9251
+ var REFERENCE9 = `# Plugins
9318
9252
 
9319
9253
  Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and selects only the owner\u2019s personal connection or the organization fallback. Composio credentials, sessions, and project keys are never exposed.
9320
9254
 
@@ -9369,14 +9303,14 @@ Never attempt to import Composio, create a session, manage a connection, or call
9369
9303
  `;
9370
9304
  var PLUGINS_ABILITY = {
9371
9305
  label: "Plugins",
9372
- description: "Use installed Attio, Google Ads, and Stripe tools through @replicas/sdk.",
9373
- bullet: "- Interacting with installed plugins such as Attio, Google Ads, or Stripe",
9374
- section: SECTION10,
9375
- referenceFile: { name: "PLUGINS.md", content: REFERENCE10 }
9306
+ description: "Use installed marketplace tools through @replicas/sdk.",
9307
+ bullet: "- Interacting with installed marketplace plugins through TypeScript",
9308
+ section: SECTION9,
9309
+ referenceFile: { name: "PLUGINS.md", content: REFERENCE9 }
9376
9310
  };
9377
9311
 
9378
9312
  // ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
9379
- var SECTION11 = `### Replicas (in-workspace CLI)
9313
+ var SECTION10 = `### Replicas (in-workspace CLI)
9380
9314
  Take action *with* Replicas itself \u2014 manage automations, environments (variables, files), repos, and \`replicas.json\` config \u2014 using the pre-installed, pre-authenticated \`replicas\` CLI.
9381
9315
 
9382
9316
  **Reference:** \`references/REPLICAS.md\`
@@ -9387,7 +9321,7 @@ Use this when:
9387
9321
  - The user asks "what envs / repos / automations do I have?"
9388
9322
  - The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
9389
9323
  - You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake`;
9390
- var REFERENCE11 = `# Replicas (in-workspace CLI)
9324
+ var REFERENCE10 = `# Replicas (in-workspace CLI)
9391
9325
 
9392
9326
  This guide covers how to take action *with* Replicas itself from inside a Replicas workspace \u2014 managing automations, environments (and their variables/files), repos, previews, and the user's \`replicas.json\` config \u2014 using the pre-installed \`replicas\` CLI.
9393
9327
 
@@ -9614,13 +9548,13 @@ var REPLICAS_ABILITY = {
9614
9548
  description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
9615
9549
  // No bullet — help_instructions covers the `replicas` CLI surface in detail.
9616
9550
  bullet: "",
9617
- section: SECTION11,
9618
- referenceFile: { name: "REPLICAS.md", content: REFERENCE11 },
9551
+ section: SECTION10,
9552
+ referenceFile: { name: "REPLICAS.md", content: REFERENCE10 },
9619
9553
  locked: true
9620
9554
  };
9621
9555
 
9622
9556
  // ../shared/src/default-skills/replicas-agent/abilities/sentry.ts
9623
- var SECTION12 = `### Sentry
9557
+ var SECTION11 = `### Sentry
9624
9558
  Read issues and project data through the workspace-scoped TypeScript SDK.
9625
9559
 
9626
9560
  **Reference:** \`references/SENTRY.md\`
@@ -9628,7 +9562,7 @@ Read issues and project data through the workspace-scoped TypeScript SDK.
9628
9562
  Use this when:
9629
9563
  - You need to inspect Sentry projects or issues
9630
9564
  - A user asks for error-monitoring context outside a webhook-triggered task`;
9631
- var REFERENCE12 = `# Sentry Integration
9565
+ var REFERENCE11 = `# Sentry Integration
9632
9566
 
9633
9567
  Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
9634
9568
 
@@ -9647,12 +9581,12 @@ var SENTRY_ABILITY = {
9647
9581
  label: "Sentry",
9648
9582
  description: "Read Sentry projects and issues through @replicas/sdk.",
9649
9583
  bullet: "- Interacting with Sentry (reading projects, issues, and error context)",
9650
- section: SECTION12,
9651
- referenceFile: { name: "SENTRY.md", content: REFERENCE12 }
9584
+ section: SECTION11,
9585
+ referenceFile: { name: "SENTRY.md", content: REFERENCE11 }
9652
9586
  };
9653
9587
 
9654
9588
  // ../shared/src/default-skills/replicas-agent/abilities/slack.ts
9655
- var SECTION13 = `### Slack
9589
+ var SECTION12 = `### Slack
9656
9590
  Send messages, read threads, search conversations, and upload files through the workspace-scoped TypeScript SDK.
9657
9591
 
9658
9592
  **Reference:** \`references/SLACK.md\`
@@ -9661,7 +9595,7 @@ Use this when:
9661
9595
  - You need to send a message to a Slack channel or thread
9662
9596
  - You need to read or search Slack conversations
9663
9597
  - You encounter a Slack message link and need its full thread`;
9664
- var REFERENCE13 = `# Slack Integration
9598
+ var REFERENCE12 = `# Slack Integration
9665
9599
 
9666
9600
  Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
9667
9601
 
@@ -9713,8 +9647,8 @@ var SLACK_ABILITY = {
9713
9647
  label: "Slack",
9714
9648
  description: "Send messages, read threads, and search through @replicas/sdk.",
9715
9649
  bullet: "- Interacting with Slack (sending messages, reading threads, etc.)",
9716
- section: SECTION13,
9717
- referenceFile: { name: "SLACK.md", content: REFERENCE13 }
9650
+ section: SECTION12,
9651
+ referenceFile: { name: "SLACK.md", content: REFERENCE12 }
9718
9652
  };
9719
9653
 
9720
9654
  // ../shared/src/default-skills/replicas-agent/registry.ts
@@ -9724,7 +9658,6 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
9724
9658
  docker: DOCKER_ABILITY,
9725
9659
  github: GITHUB_ABILITY,
9726
9660
  gitlab: GITLAB_ABILITY,
9727
- google: GOOGLE_ABILITY,
9728
9661
  learnings: LEARNINGS_ABILITY,
9729
9662
  linear: LINEAR_ABILITY,
9730
9663
  media: MEDIA_ABILITY,
@@ -9829,7 +9762,7 @@ function formatTurnElapsed(ms) {
9829
9762
  }
9830
9763
 
9831
9764
  // ../shared/src/cli-version.ts
9832
- var CLI_VERSION = "0.2.493";
9765
+ var CLI_VERSION = "0.2.495";
9833
9766
 
9834
9767
  // ../shared/src/version.ts
9835
9768
  function compareVersions(v1, v2) {
@@ -33495,8 +33428,7 @@ function WorkspaceInfo({ status, workspaceName, workspaceId, focused, loading, a
33495
33428
  /* @__PURE__ */ jsx8(CardItem, { label: "GitHub", status: env.githubAccessConfigured }),
33496
33429
  /* @__PURE__ */ jsx8(CardItem, { label: "GitLab", status: env.gitlabAccessConfigured }),
33497
33430
  /* @__PURE__ */ jsx8(CardItem, { label: "Slack", status: env.slackAccessConfigured }),
33498
- /* @__PURE__ */ jsx8(CardItem, { label: "Linear", status: env.linearAccessConfigured }),
33499
- /* @__PURE__ */ jsx8(CardItem, { label: "Google Drive", status: env.googleAccessConfigured })
33431
+ /* @__PURE__ */ jsx8(CardItem, { label: "Linear", status: env.linearAccessConfigured })
33500
33432
  ] }),
33501
33433
  previews.length > 0 && /* @__PURE__ */ jsx8(Section, { title: "Previews", children: previews.map((preview2, i) => {
33502
33434
  const previewItem = findItem("preview", String(preview2.port));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.493",
3
+ "version": "0.2.495",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {