replicas-cli 0.2.619 → 0.2.621
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +20 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7785,6 +7785,7 @@ var CREDENTIAL_SCOPE_PRIORITY = [CREDENTIAL_SCOPE.USER, CREDENTIAL_SCOPE.ORG];
|
|
|
7785
7785
|
var CREDENTIAL_METHOD = {
|
|
7786
7786
|
OAUTH: "oauth",
|
|
7787
7787
|
API_KEY: "api_key",
|
|
7788
|
+
OPENAI_COMPATIBLE: "openai-compatible",
|
|
7788
7789
|
FOUNDRY: "foundry",
|
|
7789
7790
|
BEDROCK: "bedrock",
|
|
7790
7791
|
OPENCODE_GO: "opencode-go",
|
|
@@ -7800,6 +7801,7 @@ var CREDENTIAL_TYPE = {
|
|
|
7800
7801
|
CLAUDE_BEDROCK: "claude_bedrock",
|
|
7801
7802
|
CODEX_OAUTH: "codex",
|
|
7802
7803
|
OPENAI_API_KEY: "openai_api_key",
|
|
7804
|
+
OPENAI_COMPATIBLE: "openai_compatible",
|
|
7803
7805
|
CODEX_FOUNDRY: "codex_foundry",
|
|
7804
7806
|
CURSOR_API_KEY: "cursor_api_key",
|
|
7805
7807
|
OPENCODE_GO_API_KEY: "opencode_go_api_key",
|
|
@@ -7823,6 +7825,7 @@ var AGENT_CREDENTIAL_METHODS_IN_ORDER = {
|
|
|
7823
7825
|
[AGENT.CODEX]: [
|
|
7824
7826
|
{ method: CREDENTIAL_METHOD.OAUTH, credentialType: CREDENTIAL_TYPE.CODEX_OAUTH },
|
|
7825
7827
|
{ method: CREDENTIAL_METHOD.API_KEY, credentialType: CREDENTIAL_TYPE.OPENAI_API_KEY },
|
|
7828
|
+
{ method: CREDENTIAL_METHOD.OPENAI_COMPATIBLE, credentialType: CREDENTIAL_TYPE.OPENAI_COMPATIBLE },
|
|
7826
7829
|
{ method: CREDENTIAL_METHOD.FOUNDRY, credentialType: CREDENTIAL_TYPE.CODEX_FOUNDRY }
|
|
7827
7830
|
],
|
|
7828
7831
|
[AGENT.CURSOR]: [
|
|
@@ -23589,7 +23592,7 @@ var REFERENCE5 = `# Linear Integration
|
|
|
23589
23592
|
|
|
23590
23593
|
Use \`@replicas/sdk\`; never request or handle a Linear OAuth token. Replicas refreshes the organization credential behind the gateway.
|
|
23591
23594
|
|
|
23592
|
-
In
|
|
23595
|
+
In all new workspaces, Linear credentials stay on the Replicas server and the workspace receives only connection metadata. Older workspaces can still carry a legacy token snapshot, but should use the gateway when the SDK is available. A missing Linear MCP server does not prevent SDK access.
|
|
23593
23596
|
|
|
23594
23597
|
Download protected attachments with \`await replicas.linear.download(url)\`; this returns a \`Response\` without exposing the provider token.
|
|
23595
23598
|
|
|
@@ -23659,9 +23662,9 @@ Search with \`containsIgnoreCase: $query\` filters, for example on both \`title\
|
|
|
23659
23662
|
If \`@replicas/sdk\` cannot be imported, use the same refresh-capable gateway with workspace authentication. Send the GraphQL JSON request on stdin:
|
|
23660
23663
|
|
|
23661
23664
|
\`\`\`bash
|
|
23662
|
-
curl -sS --fail-with-body -X POST "
|
|
23665
|
+
curl -sS --fail-with-body -X POST "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/engine/linear/graphql" \\
|
|
23663
23666
|
-H "Authorization: Bearer $REPLICAS_ENGINE_SECRET" \\
|
|
23664
|
-
-H "X-Workspace-Id:
|
|
23667
|
+
-H "X-Workspace-Id: \${REPLICAS_WORKSPACE_ID:-$WORKSPACE_ID}" \\
|
|
23665
23668
|
-H "Content-Type: application/json" \\
|
|
23666
23669
|
--data-binary @-
|
|
23667
23670
|
\`\`\`
|
|
@@ -24688,11 +24691,23 @@ const [messages, users] = await Promise.all([
|
|
|
24688
24691
|
\`\`\`
|
|
24689
24692
|
|
|
24690
24693
|
Supported methods cover conversations, messages, search, users, reactions, and Slack's external file-upload flow. An unsupported method is rejected by Replicas before Slack is called.
|
|
24694
|
+
|
|
24695
|
+
## Older workspaces without the SDK
|
|
24696
|
+
|
|
24697
|
+
If \`@replicas/sdk\` cannot be imported, use the gateway with workspace authentication. Send JSON containing \`method\` and \`arguments\` on stdin, for example \`{"method":"conversations.list","arguments":{"limit":3,"types":"public_channel"}}\`:
|
|
24698
|
+
|
|
24699
|
+
\`\`\`bash
|
|
24700
|
+
curl -sS --fail-with-body -X POST "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/engine/slack/api" \\
|
|
24701
|
+
-H "Authorization: Bearer $REPLICAS_ENGINE_SECRET" \\
|
|
24702
|
+
-H "X-Workspace-Id: \${REPLICAS_WORKSPACE_ID:-$WORKSPACE_ID}" \\
|
|
24703
|
+
-H "Content-Type: application/json" \\
|
|
24704
|
+
--data-binary @-
|
|
24705
|
+
\`\`\`
|
|
24691
24706
|
`;
|
|
24692
24707
|
var SLACK_ABILITY = {
|
|
24693
24708
|
label: "Slack",
|
|
24694
24709
|
description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
|
|
24695
|
-
bullet: "- Interacting with Slack (sending messages, reading threads,
|
|
24710
|
+
bullet: "- Interacting with Slack (listing channels, sending messages, reading threads, or searching): use replicas.slack.call from @replicas/sdk. Read references/SLACK.md; no Slack MCP server or provider token in the VM is required.",
|
|
24696
24711
|
section: SECTION12,
|
|
24697
24712
|
referenceFile: { name: "SLACK.md", content: REFERENCE12 }
|
|
24698
24713
|
};
|
|
@@ -27200,7 +27215,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27200
27215
|
});
|
|
27201
27216
|
|
|
27202
27217
|
// ../shared/src/cli-version.ts
|
|
27203
|
-
var CLI_VERSION = "0.2.
|
|
27218
|
+
var CLI_VERSION = "0.2.621";
|
|
27204
27219
|
|
|
27205
27220
|
// ../shared/src/version.ts
|
|
27206
27221
|
function compareVersions(v1, v2) {
|