replicas-cli 0.2.620 → 0.2.622
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 +29 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7369,7 +7369,7 @@ var import_chalk23 = __toESM(require("chalk"));
|
|
|
7369
7369
|
|
|
7370
7370
|
// src/commands/login.ts
|
|
7371
7371
|
var import_http = __toESM(require("http"));
|
|
7372
|
-
var
|
|
7372
|
+
var import_url3 = require("url");
|
|
7373
7373
|
var import_open2 = __toESM(require("open"));
|
|
7374
7374
|
var import_chalk2 = __toESM(require("chalk"));
|
|
7375
7375
|
|
|
@@ -22438,6 +22438,7 @@ var DEEPSEEK_V4_PRO_MODEL = "deepseek/deepseek-v4-pro-0813";
|
|
|
22438
22438
|
var DEEPSEEK_V4_FLASH_MODEL = "deepseek/deepseek-v4-flash-0731";
|
|
22439
22439
|
var DEFAULT_FX_MODEL = "zai/glm-5.2";
|
|
22440
22440
|
var DEFAULT_KIMI_MODEL = "moonshotai/kimi-k2.6";
|
|
22441
|
+
var MUSE_SPARK_1_3_MODEL = "muse-spark-1.3";
|
|
22441
22442
|
var DEFAULT_MUSE_MODEL = "muse-spark-1.2";
|
|
22442
22443
|
var OPENROUTER_MODELS = [
|
|
22443
22444
|
DEFAULT_OPENCODE_MODEL,
|
|
@@ -22448,6 +22449,7 @@ var OPENROUTER_MODELS = [
|
|
|
22448
22449
|
"minimax/minimax-m3",
|
|
22449
22450
|
"xiaomi/mimo-v2.5-pro",
|
|
22450
22451
|
"moonshotai/kimi-k2.6",
|
|
22452
|
+
"meta/muse-spark-1.3",
|
|
22451
22453
|
"google/gemini-3.8-flash"
|
|
22452
22454
|
];
|
|
22453
22455
|
function prioritizeDeepseekModels(models) {
|
|
@@ -22534,7 +22536,7 @@ var AGENT_MODELS = {
|
|
|
22534
22536
|
deepseek: prioritizeDeepseekModels(OPENROUTER_MODELS),
|
|
22535
22537
|
fx: [DEFAULT_FX_MODEL],
|
|
22536
22538
|
kimi: [DEFAULT_KIMI_MODEL],
|
|
22537
|
-
muse: [DEFAULT_MUSE_MODEL],
|
|
22539
|
+
muse: [MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
|
|
22538
22540
|
opencode: [...OPENROUTER_MODELS, ...ASTER_MODELS],
|
|
22539
22541
|
pi: [...OPENROUTER_MODELS, ...ASTER_MODELS],
|
|
22540
22542
|
relay: [CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
|
|
@@ -22581,7 +22583,9 @@ var MODEL_LABELS = {
|
|
|
22581
22583
|
"minimax/minimax-m3": "MiniMax M3 via OpenRouter",
|
|
22582
22584
|
"xiaomi/mimo-v2.5-pro": "MiMo V2.5 Pro via OpenRouter",
|
|
22583
22585
|
"moonshotai/kimi-k2.6": "Kimi K2.6 via OpenRouter",
|
|
22586
|
+
[MUSE_SPARK_1_3_MODEL]: "Muse Spark 1.3",
|
|
22584
22587
|
[DEFAULT_MUSE_MODEL]: "Muse Spark 1.2",
|
|
22588
|
+
"meta/muse-spark-1.3": "Muse Spark 1.3 via OpenRouter",
|
|
22585
22589
|
"google/gemini-3.8-flash": "Gemini 3.8 Flash via OpenRouter",
|
|
22586
22590
|
...ASTER_MODEL_LABELS,
|
|
22587
22591
|
"gpt-5.4": "GPT-5.4",
|
|
@@ -23402,6 +23406,8 @@ If authenticated, you can immediately use \`gh\` for all GitHub operations. No a
|
|
|
23402
23406
|
|
|
23403
23407
|
The GitHub CLI (\`gh\`) is the recommended way to interact with GitHub. It handles authentication, pagination, and API formatting automatically.
|
|
23404
23408
|
|
|
23409
|
+
In a workspace spanning GitHub owners, run \`gh\` inside the target checkout or pass \`--repo owner/repo\`. For \`gh api graphql\`, set \`GH_REPO=owner/repo\`; SDK GraphQL requests use the \`repository\` option to select the account. Each request uses one account.
|
|
23410
|
+
|
|
23405
23411
|
### Pull Requests
|
|
23406
23412
|
|
|
23407
23413
|
\`\`\`bash
|
|
@@ -23483,6 +23489,7 @@ await replicas.github.request('/repos/owner/repo/issues/123/comments', {
|
|
|
23483
23489
|
});
|
|
23484
23490
|
|
|
23485
23491
|
const result = await replicas.github.request('/graphql', {
|
|
23492
|
+
repository: 'owner/repo',
|
|
23486
23493
|
method: 'POST',
|
|
23487
23494
|
body: { query: '{ viewer { login } }' },
|
|
23488
23495
|
});
|
|
@@ -23592,7 +23599,7 @@ var REFERENCE5 = `# Linear Integration
|
|
|
23592
23599
|
|
|
23593
23600
|
Use \`@replicas/sdk\`; never request or handle a Linear OAuth token. Replicas refreshes the organization credential behind the gateway.
|
|
23594
23601
|
|
|
23595
|
-
In
|
|
23602
|
+
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.
|
|
23596
23603
|
|
|
23597
23604
|
Download protected attachments with \`await replicas.linear.download(url)\`; this returns a \`Response\` without exposing the provider token.
|
|
23598
23605
|
|
|
@@ -23662,9 +23669,9 @@ Search with \`containsIgnoreCase: $query\` filters, for example on both \`title\
|
|
|
23662
23669
|
If \`@replicas/sdk\` cannot be imported, use the same refresh-capable gateway with workspace authentication. Send the GraphQL JSON request on stdin:
|
|
23663
23670
|
|
|
23664
23671
|
\`\`\`bash
|
|
23665
|
-
curl -sS --fail-with-body -X POST "
|
|
23672
|
+
curl -sS --fail-with-body -X POST "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/engine/linear/graphql" \\
|
|
23666
23673
|
-H "Authorization: Bearer $REPLICAS_ENGINE_SECRET" \\
|
|
23667
|
-
-H "X-Workspace-Id:
|
|
23674
|
+
-H "X-Workspace-Id: \${REPLICAS_WORKSPACE_ID:-$WORKSPACE_ID}" \\
|
|
23668
23675
|
-H "Content-Type: application/json" \\
|
|
23669
23676
|
--data-binary @-
|
|
23670
23677
|
\`\`\`
|
|
@@ -24691,11 +24698,23 @@ const [messages, users] = await Promise.all([
|
|
|
24691
24698
|
\`\`\`
|
|
24692
24699
|
|
|
24693
24700
|
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.
|
|
24701
|
+
|
|
24702
|
+
## Older workspaces without the SDK
|
|
24703
|
+
|
|
24704
|
+
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"}}\`:
|
|
24705
|
+
|
|
24706
|
+
\`\`\`bash
|
|
24707
|
+
curl -sS --fail-with-body -X POST "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/engine/slack/api" \\
|
|
24708
|
+
-H "Authorization: Bearer $REPLICAS_ENGINE_SECRET" \\
|
|
24709
|
+
-H "X-Workspace-Id: \${REPLICAS_WORKSPACE_ID:-$WORKSPACE_ID}" \\
|
|
24710
|
+
-H "Content-Type: application/json" \\
|
|
24711
|
+
--data-binary @-
|
|
24712
|
+
\`\`\`
|
|
24694
24713
|
`;
|
|
24695
24714
|
var SLACK_ABILITY = {
|
|
24696
24715
|
label: "Slack",
|
|
24697
24716
|
description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
|
|
24698
|
-
bullet: "- Interacting with Slack (sending messages, reading threads,
|
|
24717
|
+
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.",
|
|
24699
24718
|
section: SECTION12,
|
|
24700
24719
|
referenceFile: { name: "SLACK.md", content: REFERENCE12 }
|
|
24701
24720
|
};
|
|
@@ -27203,7 +27222,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27203
27222
|
});
|
|
27204
27223
|
|
|
27205
27224
|
// ../shared/src/cli-version.ts
|
|
27206
|
-
var CLI_VERSION = "0.2.
|
|
27225
|
+
var CLI_VERSION = "0.2.622";
|
|
27207
27226
|
|
|
27208
27227
|
// ../shared/src/version.ts
|
|
27209
27228
|
function compareVersions(v1, v2) {
|
|
@@ -28123,7 +28142,7 @@ async function loginCommand() {
|
|
|
28123
28142
|
pendingResponses.clear();
|
|
28124
28143
|
}
|
|
28125
28144
|
const server = import_http.default.createServer(async (req, res) => {
|
|
28126
|
-
const url2 = new
|
|
28145
|
+
const url2 = new import_url3.URL(req.url || "", `http://${req.headers.host}`);
|
|
28127
28146
|
if (url2.pathname === "/callback") {
|
|
28128
28147
|
if (hasHandledCallback) {
|
|
28129
28148
|
if (!lastRedirectUrl) {
|
|
@@ -28857,7 +28876,7 @@ async function configListCommand() {
|
|
|
28857
28876
|
|
|
28858
28877
|
// src/lib/codex-oauth.ts
|
|
28859
28878
|
var import_http2 = __toESM(require("http"));
|
|
28860
|
-
var
|
|
28879
|
+
var import_url4 = require("url");
|
|
28861
28880
|
|
|
28862
28881
|
// src/lib/pkce.ts
|
|
28863
28882
|
var import_crypto = require("crypto");
|
|
@@ -28935,7 +28954,7 @@ function startCallbackServer(expectedState, codeVerifier) {
|
|
|
28935
28954
|
res.end("Bad Request");
|
|
28936
28955
|
return;
|
|
28937
28956
|
}
|
|
28938
|
-
const url2 = new
|
|
28957
|
+
const url2 = new import_url4.URL(req.url, `http://127.0.0.1:${CALLBACK_PORT}`);
|
|
28939
28958
|
if (url2.pathname === CALLBACK_PATH) {
|
|
28940
28959
|
const code = url2.searchParams.get("code");
|
|
28941
28960
|
const state = url2.searchParams.get("state");
|