atlarix 15.12.2 → 15.12.3
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.
|
@@ -29131,6 +29131,7 @@ function deterministicTitle(firstUserText) {
|
|
|
29131
29131
|
rest2 = next;
|
|
29132
29132
|
}
|
|
29133
29133
|
rest2 = rest2.replace(EMOJI_RE, "").trim();
|
|
29134
|
+
rest2 = rest2.replace(/^\s*[›>·•*—–-]+\s*/, "");
|
|
29134
29135
|
if (!rest2 || BARE_GREETING_RE.test(rest2)) return "Greeting";
|
|
29135
29136
|
const words = rest2.split(" ").slice(0, 8).join(" ");
|
|
29136
29137
|
const capped = capOnWord(words).replace(/[.,:;!?]+$/, "").trim();
|
|
@@ -31086,11 +31087,15 @@ async function receive(f5) {
|
|
|
31086
31087
|
const notify5 = f5.notify === true && queued.length > 0 && f5.from?.sessionId !== "unknown";
|
|
31087
31088
|
if (notify5) turnWatches.push({ chatId: target.chatId, sessionId: target.sessionId, ids: queued, from: f5.from });
|
|
31088
31089
|
const idle = (text5 || applied.startTurn) && !hostImpl.isBusy(target.chatId);
|
|
31089
|
-
|
|
31090
|
+
const startTurn = !!applied.startTurn;
|
|
31091
|
+
const wake = idle && (f5.notify === true || startTurn);
|
|
31092
|
+
if (wake) hostImpl.wake(target.chatId);
|
|
31090
31093
|
return {
|
|
31091
31094
|
ok: true,
|
|
31092
31095
|
...applied.notice ? { applied: applied.notice } : {},
|
|
31093
|
-
|
|
31096
|
+
// "waits": queued for the session's next real turn (not woken now), or an
|
|
31097
|
+
// editor that holds messages until its own prompt starts the turn.
|
|
31098
|
+
...idle && (idleMessagesWait() || !wake) ? { waits: true } : {},
|
|
31094
31099
|
...notify5 ? { notify: true } : {}
|
|
31095
31100
|
};
|
|
31096
31101
|
}
|
|
@@ -31158,7 +31163,11 @@ function listPeerSessions(exclude) {
|
|
|
31158
31163
|
pid: r3.pid,
|
|
31159
31164
|
...r3.surface !== "chrome" ? { mode: modes.get(r3.session_id) ?? "build" } : {},
|
|
31160
31165
|
...r3.model ? { model: r3.model } : {},
|
|
31161
|
-
...r3.has_approval ? { hasApproval: true, ...local.get(r3.session_id)?.pendingApprovals ? { pendingApprovals: local.get(r3.session_id).pendingApprovals } : {} } : {}
|
|
31166
|
+
...r3.has_approval ? { hasApproval: true, ...local.get(r3.session_id)?.pendingApprovals ? { pendingApprovals: local.get(r3.session_id).pendingApprovals } : {} } : {},
|
|
31167
|
+
// A session with no messages yet (an editor's New chat, a CLI before its
|
|
31168
|
+
// first message) is LISTED, and marked new so the sender knows it has no
|
|
31169
|
+
// history to read back (owner, 2026-10-31: fresh sessions must be visible).
|
|
31170
|
+
...blank.has(r3.session_id) ? { new: true } : {}
|
|
31162
31171
|
});
|
|
31163
31172
|
}
|
|
31164
31173
|
return out;
|
|
@@ -201571,6 +201580,26 @@ var init_oauth_loopback_server = __esm({
|
|
|
201571
201580
|
}
|
|
201572
201581
|
});
|
|
201573
201582
|
|
|
201583
|
+
// src/lib/mcp/oauth-error-message.ts
|
|
201584
|
+
function describeMcpOAuthError(error51, guideUrl = MCP_CONNECTOR_GUIDE_URL) {
|
|
201585
|
+
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
201586
|
+
if (NO_REGISTRATION.test(message)) {
|
|
201587
|
+
return `This server needs a pre-registered app. Set it up once on atlarix.dev: ${guideUrl}`;
|
|
201588
|
+
}
|
|
201589
|
+
return message;
|
|
201590
|
+
}
|
|
201591
|
+
function needsPreRegisteredClient(error51) {
|
|
201592
|
+
const message = error51 instanceof Error ? error51.message : String(error51);
|
|
201593
|
+
return NO_REGISTRATION.test(message);
|
|
201594
|
+
}
|
|
201595
|
+
var MCP_CONNECTOR_GUIDE_URL, NO_REGISTRATION;
|
|
201596
|
+
var init_oauth_error_message = __esm({
|
|
201597
|
+
"src/lib/mcp/oauth-error-message.ts"() {
|
|
201598
|
+
MCP_CONNECTOR_GUIDE_URL = "https://atlarix.dev/guides/slack-mcp";
|
|
201599
|
+
NO_REGISTRATION = /does not support dynamic client registration|dynamic_client_registration_not_supported|client_registration_required/i;
|
|
201600
|
+
}
|
|
201601
|
+
});
|
|
201602
|
+
|
|
201574
201603
|
// src/lib/mcp/open-for-user.ts
|
|
201575
201604
|
var open_for_user_exports = {};
|
|
201576
201605
|
__export(open_for_user_exports, {
|
|
@@ -201821,6 +201850,9 @@ async function startMcpOAuthFlow(serverId, opts) {
|
|
|
201821
201850
|
}
|
|
201822
201851
|
clearPendingMcpOAuthSession(serverId);
|
|
201823
201852
|
logger47.error("startMcpOAuthFlow failed", error51);
|
|
201853
|
+
if (needsPreRegisteredClient(error51)) {
|
|
201854
|
+
throw new McpOAuthError(describeMcpOAuthError(error51), "needs_registration");
|
|
201855
|
+
}
|
|
201824
201856
|
throw error51;
|
|
201825
201857
|
}
|
|
201826
201858
|
}
|
|
@@ -201842,12 +201874,13 @@ async function finishMcpOAuthCallback(code, state2) {
|
|
|
201842
201874
|
return { serverId: pending6.serverId, serverName: pending6.serverName };
|
|
201843
201875
|
} catch (error51) {
|
|
201844
201876
|
clearPendingMcpOAuthSession(pending6.serverId);
|
|
201845
|
-
const message =
|
|
201877
|
+
const message = describeMcpOAuthError(error51);
|
|
201846
201878
|
broadcastMcpOAuthEvent("mcp:oauth-error", {
|
|
201847
201879
|
serverId: pending6.serverId,
|
|
201848
201880
|
serverName: pending6.serverName,
|
|
201849
201881
|
error: message
|
|
201850
201882
|
});
|
|
201883
|
+
if (needsPreRegisteredClient(error51)) throw new McpOAuthError(message, "needs_registration");
|
|
201851
201884
|
throw error51;
|
|
201852
201885
|
}
|
|
201853
201886
|
}
|
|
@@ -201905,6 +201938,7 @@ var init_mcp_oauth_service = __esm({
|
|
|
201905
201938
|
init_schema();
|
|
201906
201939
|
init_atlarix_oauth_provider();
|
|
201907
201940
|
init_oauth_loopback_server();
|
|
201941
|
+
init_oauth_error_message();
|
|
201908
201942
|
init_oauth_session_store();
|
|
201909
201943
|
init_oauth_token_utils();
|
|
201910
201944
|
logger47 = import_electron_log50.default.scope("mcp-oauth");
|
|
@@ -346472,7 +346506,7 @@ var init_peers2 = __esm({
|
|
|
346472
346506
|
if (p2) toReview.set(r3.sessionId, p2.title ?? "Plan");
|
|
346473
346507
|
}
|
|
346474
346508
|
const lines = rows2.map(
|
|
346475
|
-
(r3) => r3.surface === "chrome" ? `- ${r3.name} (id ${r3.sessionId}, browser: the Atlarix extension's agent; it starts on a task when the user clicks the Atlarix icon)` : `- ${r3.name} (id ${r3.sessionId.startsWith("pending-") ? r3.sessionId : r3.sessionId.slice(0, 8)}, ${peerSurfaceLabel(r3.surface)}, ${r3.busy ? "busy" : "idle"}${settingsOf(r3)}${toReview.has(r3.sessionId) ? ` \xB7 plan to review: ${toReview.get(r3.sessionId)}` : ""}${r3.hasApproval ? approvalWaitingText(r3) : ""}) \u2014 ${r3.workspace || "no workspace"}`
|
|
346509
|
+
(r3) => r3.surface === "chrome" ? `- ${r3.name} (id ${r3.sessionId}, browser: the Atlarix extension's agent; it starts on a task when the user clicks the Atlarix icon)` : `- ${r3.name} (id ${r3.sessionId.startsWith("pending-") ? r3.sessionId : r3.sessionId.slice(0, 8)}, ${peerSurfaceLabel(r3.surface)}, ${r3.busy ? "busy" : r3.new ? "new" : "idle"}${settingsOf(r3)}${toReview.has(r3.sessionId) ? ` \xB7 plan to review: ${toReview.get(r3.sessionId)}` : ""}${r3.hasApproval ? approvalWaitingText(r3) : ""}) \u2014 ${r3.workspace || "no workspace"}`
|
|
346476
346510
|
);
|
|
346477
346511
|
let planText = "";
|
|
346478
346512
|
if (typeof plan_of === "string" && plan_of.trim()) {
|
|
@@ -346616,7 +346650,7 @@ Models you can set: ${shortModelList(models)}` : ""}${planText}${resultText}`
|
|
|
346616
346650
|
}
|
|
346617
346651
|
return {
|
|
346618
346652
|
success: true,
|
|
346619
|
-
text: `Sent to ${target.row.name} (${peerSurfaceLabel(target.row.surface)}, ${target.row.busy ? "busy: it reads it at its next step" : result2.waits ? "idle: it reads it
|
|
346653
|
+
text: `Sent to ${target.row.name} (${peerSurfaceLabel(target.row.surface)}, ${target.row.busy ? "busy: it reads it at its next step" : result2.waits ? "idle: it reads it at its next turn" : "idle: it starts a turn with it"}).${result2.applied ? ` ${result2.applied}` : ""}${noticeNote}${replyNote}`
|
|
346620
346654
|
};
|
|
346621
346655
|
}
|
|
346622
346656
|
});
|
|
@@ -361533,6 +361567,8 @@ function createTrajectoryWriter(filePath, meta3) {
|
|
|
361533
361567
|
type: "tool_use",
|
|
361534
361568
|
ts: p2.timestamp ?? Date.now(),
|
|
361535
361569
|
toolCallId: p2.toolCallId,
|
|
361570
|
+
...p2.toolCallId === void 0 && typeof p2.id === "string" ? { id: p2.id } : {},
|
|
361571
|
+
...typeof p2.parentDelegationId === "string" ? { parentDelegationId: p2.parentDelegationId } : {},
|
|
361536
361572
|
toolName: p2.toolName,
|
|
361537
361573
|
status: p2.status,
|
|
361538
361574
|
args: p2.toolArgs,
|
|
@@ -361840,7 +361876,7 @@ ${err2.stack}` : "";
|
|
|
361840
361876
|
}
|
|
361841
361877
|
|
|
361842
361878
|
// src/headless/atlarix-headless.mts
|
|
361843
|
-
var VERSION15 = false ? "dev" : "15.12.
|
|
361879
|
+
var VERSION15 = false ? "dev" : "15.12.3";
|
|
361844
361880
|
if (process.argv[2] === "run") process.argv.splice(2, 1);
|
|
361845
361881
|
var RUN_HELP = `atlarix run: one turn without the UI, for scripts and CI
|
|
361846
361882
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atlarix",
|
|
3
|
-
"version": "15.12.
|
|
3
|
+
"version": "15.12.3",
|
|
4
4
|
"description": "Atlarix CLI: an AI coding agent in your terminal. Works with any model (Atlarix Auto, your own API key, or a local model) and runs unattended with `atlarix run` for CI.",
|
|
5
5
|
"license": "PROPRIETARY",
|
|
6
6
|
"author": {
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"provenance": false
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"atlarix-darwin-arm64": "15.12.
|
|
69
|
-
"atlarix-darwin-x64": "15.12.
|
|
70
|
-
"atlarix-linux-x64": "15.12.
|
|
71
|
-
"atlarix-linux-arm64": "15.12.
|
|
72
|
-
"atlarix-linux-x64-musl": "15.12.
|
|
73
|
-
"atlarix-linux-arm64-musl": "15.12.
|
|
74
|
-
"atlarix-windows-x64": "15.12.
|
|
68
|
+
"atlarix-darwin-arm64": "15.12.3",
|
|
69
|
+
"atlarix-darwin-x64": "15.12.3",
|
|
70
|
+
"atlarix-linux-x64": "15.12.3",
|
|
71
|
+
"atlarix-linux-arm64": "15.12.3",
|
|
72
|
+
"atlarix-linux-x64-musl": "15.12.3",
|
|
73
|
+
"atlarix-linux-arm64-musl": "15.12.3",
|
|
74
|
+
"atlarix-windows-x64": "15.12.3"
|
|
75
75
|
}
|
|
76
76
|
}
|