replicas-cli 0.2.669 → 0.2.671

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 +12 -16
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -23670,14 +23670,16 @@ Download protected attachments with \`await replicas.linear.download(url)\`; thi
23670
23670
 
23671
23671
  ## Check access
23672
23672
 
23673
+ Call Linear directly; integration listing is optional. If \`replicas.integrations.list()\` returns a 5xx or \`Internal server error\`, skip it and continue through \`replicas.linear.graphql\`.
23674
+
23673
23675
  \`\`\`ts
23674
23676
  import { replicas } from '@replicas/sdk';
23675
23677
 
23676
- const { native } = await replicas.integrations.list();
23677
- if (!native.linear) throw new Error('Connect Linear in Replicas organization integrations first.');
23678
+ const result = await replicas.linear.graphql({ query: 'query { viewer { id } }' });
23679
+ if (result.errors?.length) throw new Error(JSON.stringify(result.errors));
23678
23680
  \`\`\`
23679
23681
 
23680
- \`native.linear\` checks whether an organization credential exists. To diagnose authentication, make a read-only request through \`replicas.linear.graphql({ query: 'query { viewer { id } }' })\`; the gateway refreshes expired credentials and retries authentication failures once.
23682
+ The gateway refreshes expired credentials and retries authentication failures once. Check the response's \`errors\` field before using \`data\`.
23681
23683
 
23682
23684
  Personal \u2192 Connections links a person's Linear identity for agent defaults and attribution. Its disconnected state does not mean the organization's Linear integration is disconnected, and connecting it does not refresh the organization's token. Only recommend reconnecting under Organization \u2192 Integrations when the gateway reports missing credentials or an unrecoverable OAuth failure. Report transient failures without asking the user to disconnect.
23683
23685
 
@@ -24268,7 +24270,7 @@ const plugins = await replicas.plugins.list();
24268
24270
  const installed = plugins.filter((plugin) => plugin.connected);
24269
24271
  \`\`\`
24270
24272
 
24271
- If a plugin is not connected, ask the user to connect it under personal Connections or the relevant environment's Plugins tab. A connection on Global reaches every workspace unless a more specific environment overrides it.
24273
+ If listing returns a 5xx or \`Internal server error\`, skip it and use the known plugin's search, describe, or direct SDK API. Listing failure does not mean the plugin is disconnected. Only ask the user to connect it when the direct gateway reports missing credentials or an unrecoverable authentication failure. A connection on Global reaches every workspace unless a more specific environment overrides it.
24272
24274
 
24273
24275
  ## Search, inspect, execute
24274
24276
 
@@ -24654,12 +24656,11 @@ var REFERENCE11 = `# Sentry Integration
24654
24656
 
24655
24657
  Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
24656
24658
 
24659
+ Call Sentry directly; integration listing is optional. If \`replicas.integrations.list()\` returns a 5xx or \`Internal server error\`, skip it and continue through \`replicas.sentry.request\`. Only recommend reconnecting when the direct gateway reports missing credentials or an unrecoverable authentication failure.
24660
+
24657
24661
  \`\`\`ts
24658
24662
  import { replicas } from '@replicas/sdk';
24659
24663
 
24660
- const { native } = await replicas.integrations.list();
24661
- if (!native.sentry) throw new Error('Connect Sentry in Replicas organization integrations first.');
24662
-
24663
24664
  const issues = await replicas.sentry.request('/organizations/acme/issues/?query=is:unresolved');
24664
24665
  \`\`\`
24665
24666
 
@@ -24694,20 +24695,15 @@ var REFERENCE12 = `# Slack Integration
24694
24695
 
24695
24696
  Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
24696
24697
 
24697
- ## Check access
24698
-
24699
- \`\`\`ts
24700
- import { replicas } from '@replicas/sdk';
24701
-
24702
- const { native } = await replicas.integrations.list();
24703
- if (!native.slack) throw new Error('Connect Slack in Replicas organization integrations first.');
24704
- \`\`\`
24698
+ Call Slack directly; integration listing is optional. If \`replicas.integrations.list()\` returns a 5xx or \`Internal server error\`, skip it and continue through \`replicas.slack.call\`. Only recommend reconnecting when the direct gateway reports missing credentials or an unrecoverable authentication failure.
24705
24699
 
24706
24700
  ## Read a thread
24707
24701
 
24708
24702
  For a link such as \`https://team.slack.com/archives/C0123ABC/p1234567890123456\`, the channel is \`C0123ABC\` and the timestamp is \`1234567890.123456\`.
24709
24703
 
24710
24704
  \`\`\`ts
24705
+ import { replicas } from '@replicas/sdk';
24706
+
24711
24707
  const thread = await replicas.slack.call('conversations.replies', {
24712
24708
  channel: 'C0123ABC',
24713
24709
  ts: '1234567890.123456',
@@ -27292,7 +27288,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
27292
27288
  });
27293
27289
 
27294
27290
  // ../shared/src/cli-version.ts
27295
- var CLI_VERSION = "0.2.669";
27291
+ var CLI_VERSION = "0.2.671";
27296
27292
 
27297
27293
  // ../shared/src/version.ts
27298
27294
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.669",
3
+ "version": "0.2.671",
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": {