replicas-engine 0.1.1459 → 0.1.1461
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/src/{asp-host-FHDVNMBW.js → asp-host-5ST3X323.js} +5 -5
- package/dist/src/{chunk-FWHWOMEW.js → chunk-3NZWGHMB.js} +2 -2
- package/dist/src/{chunk-GGL262L5.js → chunk-5YFBI4MA.js} +2 -2
- package/dist/src/{chunk-3EQF5Z4J.js → chunk-7QYWZAEJ.js} +6 -6
- package/dist/src/{chunk-OZYA4FGV.js → chunk-EBJ4AXAY.js} +1 -1
- package/dist/src/{chunk-B7UZ2XCI.js → chunk-KP3UEGOX.js} +3 -3
- package/dist/src/{chunk-YYLKPZF6.js → chunk-OTZK2SDX.js} +22 -14
- package/dist/src/{chunk-M54NGFKW.js → chunk-TJ3WKYR5.js} +1 -1
- package/dist/src/{chunk-NA6M7VIW.js → chunk-UCYPQIVF.js} +2 -2
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +11 -10
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7QYWZAEJ.js";
|
|
12
|
+
import "./chunk-3NZWGHMB.js";
|
|
13
|
+
import "./chunk-KP3UEGOX.js";
|
|
14
|
+
import "./chunk-TJ3WKYR5.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-OTZK2SDX.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TJ3WKYR5.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
provisionedDeviceSchema,
|
|
22
22
|
readReplicasRuntimeEnv,
|
|
23
23
|
serializePosixEnvFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OTZK2SDX.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KP3UEGOX.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
readOllamaAuthEnv,
|
|
17
17
|
readOpenAICompatibleAuthEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OTZK2SDX.js";
|
|
19
19
|
|
|
20
20
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
21
21
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
resolveDiffBase,
|
|
12
12
|
runGitCommand,
|
|
13
13
|
setAgentCredentialSnapshot
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3NZWGHMB.js";
|
|
15
15
|
import {
|
|
16
16
|
AppServerProcess,
|
|
17
17
|
buildCodexAgentEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KP3UEGOX.js";
|
|
19
19
|
import {
|
|
20
20
|
SUBPROCESS_MAX_BUFFER,
|
|
21
21
|
execFileAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TJ3WKYR5.js";
|
|
23
23
|
import {
|
|
24
24
|
isRecord
|
|
25
25
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
resolveOpenAICompatibleModelsUrl,
|
|
58
58
|
splitMothershipInstructions,
|
|
59
59
|
withTimeout
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-OTZK2SDX.js";
|
|
61
61
|
|
|
62
62
|
// src/managers/codex-token-manager.ts
|
|
63
63
|
import { promises as fs } from "fs";
|
|
@@ -320,7 +320,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
320
320
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
321
321
|
await this.applyCredentialsResponse(data);
|
|
322
322
|
setAgentCredentialSnapshot("codex", data);
|
|
323
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
323
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-5ST3X323.js");
|
|
324
324
|
await restartCodexAspHostIfRunning2();
|
|
325
325
|
});
|
|
326
326
|
await this.start(true);
|
|
@@ -342,7 +342,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
342
342
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
343
343
|
await this.applyCredentialsResponse(data);
|
|
344
344
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
345
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
345
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-5ST3X323.js");
|
|
346
346
|
await restartCodexAspHostIfRunning2();
|
|
347
347
|
}
|
|
348
348
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TJ3WKYR5.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OTZK2SDX.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1461";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -13483,7 +13483,7 @@ If none of these apply, don't upload.
|
|
|
13483
13483
|
1. First, run \`replicas media upload\` with the original file. Do not begin any destination upload until the command succeeds. This creates the canonical dashboard copy and prints an embed plus a per-file dashboard link. Every image gets a public link, so its printed embed works in chat and on GitHub.
|
|
13484
13484
|
2. Include the printed embed line in the Replicas chat reply.
|
|
13485
13485
|
3. Identify every destination in the task and use its inline representation from the table below. Slack, Linear, and GitLab require an upload of the same original bytes; GitHub uses the image's printed public embed.
|
|
13486
|
-
4. On Slack
|
|
13486
|
+
4. On Slack, attach the **View in Replicas** dashboard link to the upload as a button (see the Slack flow below). On Linear, put it next to the destination embed as a secondary link. GitHub and GitLab need only the embed.
|
|
13487
13487
|
5. Check each destination response. If its upload or public link fails, say so explicitly and keep the dashboard link; never claim that a dashboard link is an inline embed.
|
|
13488
13488
|
|
|
13489
13489
|
| Destination | Required file delivery | Inline result |
|
|
@@ -13571,7 +13571,7 @@ The \`mode=media&media=<media-id>\` query params open that specific file in the
|
|
|
13571
13571
|
|
|
13572
13572
|
When you have a specific file in mind, never link the bare workspace URL without the \`media=<id>\` param.
|
|
13573
13573
|
|
|
13574
|
-
Always render as a
|
|
13574
|
+
Always render it as a hyperlink labeled **View in Replicas** (a URL button on Slack) \u2014 never paste a raw URL.
|
|
13575
13575
|
|
|
13576
13576
|
## In your Replicas chat reply
|
|
13577
13577
|
|
|
@@ -13613,13 +13613,21 @@ await replicas.slack.call('files.completeUploadExternal', {
|
|
|
13613
13613
|
files: [{ id: reservation.file_id, title: 'Screenshot' }],
|
|
13614
13614
|
channel_id: 'CHANNEL_ID',
|
|
13615
13615
|
thread_ts: 'THREAD_TS',
|
|
13616
|
-
|
|
13616
|
+
blocks: [{
|
|
13617
|
+
type: 'actions',
|
|
13618
|
+
elements: [{
|
|
13619
|
+
type: 'button',
|
|
13620
|
+
text: { type: 'plain_text', text: 'View in Replicas' },
|
|
13621
|
+
url: 'https://app.replicas.dev/workspaces/<workspace-id>?mode=media&media=<media-id>',
|
|
13622
|
+
action_id: 'view_media',
|
|
13623
|
+
}],
|
|
13624
|
+
}],
|
|
13617
13625
|
});
|
|
13618
13626
|
\`\`\`
|
|
13619
13627
|
|
|
13620
13628
|
Notes:
|
|
13621
13629
|
- All three steps are required; do not try to POST to \`https://slack.com/api/files.uploadV2\` \u2014 that endpoint does not exist on the Web API.
|
|
13622
|
-
- \`initial_comment
|
|
13630
|
+
- The **View in Replicas** link goes in a button, never as text. Leave out \`initial_comment\`: Slack ignores \`blocks\` when it is set.
|
|
13623
13631
|
- Omit \`thread_ts\` only when you genuinely want a top-level channel post.
|
|
13624
13632
|
- For multiple files in the same message, run steps 1\u20132 per file and pass all \`{id, title}\` objects in the \`files\` array of a single \`files.completeUploadExternal\` call \u2014 they share into the thread together.
|
|
13625
13633
|
- If you also need to post a separate text reply in the thread, send it with \`chat.postMessage\` after the upload \u2014 but the upload itself must carry the image.
|
|
@@ -14503,7 +14511,7 @@ var SESSION_HISTORY_ABILITY = {
|
|
|
14503
14511
|
var SLACK_CONCISE_REPLY_SHAPE = 'short and easy to read. Lead with a concise, easy-to-skim answer; add depth when asked. When the answer is several items compared on the same fields (a ranking, numbers per team or customer, a before and after), send them as a Slack `table` block with a header row, not a numbered or bulleted list. Each send is a deliberate message, not an automatic split of a long answer. Simple requests need only a short answer or, where the surrounding instructions allow it, a fitting reaction. Use common, everyday words, simple sentences, and contractions where they sound natural. Avoid jargon, corporate language, and formal words when a plain word works. Start with what happened or what works now, then add only the context, limits, or next step people need. Cut repetition and play-by-play, but keep anything important. Put long logs and file-by-file recaps in the pull request or workspace unless the user asks for them. Never use em dashes; use a comma, period, colon, or parentheses. Skip filler openers ("Great question", "Good catch", "Happy to help"), stock AI words ("delve", "leverage", "seamless", "robust"), closing offers ("Let me know if you need anything else"), and a closing line that restates the answer';
|
|
14504
14512
|
var SLACK_QUOTE_REPLY_GUIDANCE = "Use a short Slack blockquote (`> quoted text`) only when answering a specific earlier message or when the reply would otherwise have an unclear referent. Quote only the relevant line; do not quote the latest message by default, repeat the full request, or add a blockquote when the reply is already unambiguous. Escape the leading `<` in raw Slack mention and control markup such as `<@U\u2026>` and `<!channel>` as `<` before quoting so it cannot notify anyone.";
|
|
14505
14513
|
var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would make the message faster to scan or use. Before composing a structured message, read Slack's live [block catalog](https://docs.slack.dev/reference/block-kit/blocks) and the linked schema for each block you plan to use; do not rely on memory for which blocks exist or their fields. You have broad leeway to use display-only blocks and `actions` with URL buttons, but do not add controls that require an interaction callback. Keep simple replies as plain text, do not add decorative UI or repeat content across blocks, and always keep `text` as a concise, complete fallback for notifications and accessibility.";
|
|
14506
|
-
var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread (the message announcing you opened it), attach a button for it: send `blocks` alongside `text`, with a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. Later messages about a pull request you already linked in this thread
|
|
14514
|
+
var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread (the message announcing you opened it), attach a button for it: send `blocks` alongside `text`, with a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. The button replaces the link, so never put the raw URL in the section text. Later messages about a pull request you already linked in this thread get no button and refer to it with a short labeled link like `<pr url|#944>`, never a raw URL, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message plus the link, since Slack uses it for notifications and fallback.';
|
|
14507
14515
|
|
|
14508
14516
|
// ../shared/src/default-skills/replicas-agent/abilities/slack.ts
|
|
14509
14517
|
var SECTION14 = `### Slack
|
|
@@ -19064,17 +19072,17 @@ function compactChatHistoryEvent(event, record) {
|
|
|
19064
19072
|
const bytes = sizeOf(value);
|
|
19065
19073
|
if (bytes <= COMPACT_BODY_MAX_BYTES) return void 0;
|
|
19066
19074
|
compacted = true;
|
|
19067
|
-
return { record, bytes };
|
|
19075
|
+
return record ? { replicasOmitted: { record, bytes } } : {};
|
|
19068
19076
|
};
|
|
19069
19077
|
const compactImage = (image) => {
|
|
19070
19078
|
if (!isRecord(image)) return image;
|
|
19071
19079
|
if (isRecord(image.source) && typeof image.source.data === "string") {
|
|
19072
|
-
const
|
|
19073
|
-
return
|
|
19080
|
+
const omitted2 = omit(image.source.data);
|
|
19081
|
+
return omitted2 ? { ...image, source: { ...image.source, data: "" }, ...omitted2 } : image;
|
|
19074
19082
|
}
|
|
19075
19083
|
if (typeof image.data !== "string") return image;
|
|
19076
|
-
const
|
|
19077
|
-
return
|
|
19084
|
+
const omitted = omit(image.data);
|
|
19085
|
+
return omitted ? { ...image, data: "", ...omitted } : image;
|
|
19078
19086
|
};
|
|
19079
19087
|
const { payload } = event;
|
|
19080
19088
|
let next = payload;
|
|
@@ -19089,8 +19097,8 @@ function compactChatHistoryEvent(event, record) {
|
|
|
19089
19097
|
if (block2.type !== "tool_result") return block2;
|
|
19090
19098
|
const text4 = extractToolResultText(block2.content);
|
|
19091
19099
|
if (isStructuredToolOutput(text4)) return block2;
|
|
19092
|
-
const
|
|
19093
|
-
if (
|
|
19100
|
+
const omitted = omit(text4);
|
|
19101
|
+
if (omitted) return { ...block2, content: text4.slice(0, COMPACT_PREVIEW_CHARS), ...omitted };
|
|
19094
19102
|
if (!Array.isArray(block2.content) || !block2.content.some((part) => isRecord(part) && part.type === "image") || sizeOf(block2.content) <= COMPACT_BODY_MAX_BYTES) return block2;
|
|
19095
19103
|
compacted = true;
|
|
19096
19104
|
return { ...block2, content: text4 };
|
|
@@ -19101,12 +19109,12 @@ function compactChatHistoryEvent(event, record) {
|
|
|
19101
19109
|
next = { ...payload, images: payload.images.map(compactImage) };
|
|
19102
19110
|
} else if (isRecord(payload.item)) {
|
|
19103
19111
|
const { item } = payload;
|
|
19104
|
-
const
|
|
19112
|
+
const omitted = typeof item.output === "string" && !isStructuredToolOutput(item.output) ? omit(item.output) : void 0;
|
|
19105
19113
|
next = {
|
|
19106
19114
|
...payload,
|
|
19107
19115
|
item: {
|
|
19108
19116
|
...item,
|
|
19109
|
-
...
|
|
19117
|
+
...omitted ? { output: extractToolResultText(item.output).slice(0, COMPACT_PREVIEW_CHARS), ...omitted } : {},
|
|
19110
19118
|
...Array.isArray(item.images) ? { images: item.images.map(compactImage) } : {}
|
|
19111
19119
|
}
|
|
19112
19120
|
};
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OTZK2SDX.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOriginDefaultBranch,
|
|
7
7
|
monolithRequest,
|
|
8
8
|
runGitCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3NZWGHMB.js";
|
|
10
10
|
import {
|
|
11
11
|
extractCommandProtectionCommandText,
|
|
12
12
|
findCommandProtectionGitLookups,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
findPrMergeSignals,
|
|
15
15
|
findScoutRepoWriteSignals,
|
|
16
16
|
parseCommandProtectionRequest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OTZK2SDX.js";
|
|
18
18
|
|
|
19
19
|
// src/services/command-protection-service.ts
|
|
20
20
|
import { readFile, stat } from "fs/promises";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UCYPQIVF.js";
|
|
7
|
+
import "./chunk-3NZWGHMB.js";
|
|
8
|
+
import "./chunk-TJ3WKYR5.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OTZK2SDX.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
recoverCompletedTurn,
|
|
15
15
|
spawnMuseMsp,
|
|
16
16
|
startMuseSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5YFBI4MA.js";
|
|
18
18
|
import {
|
|
19
19
|
AppServerProcess,
|
|
20
20
|
buildCodexAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-KP3UEGOX.js";
|
|
22
|
+
import "./chunk-TJ3WKYR5.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT,
|
|
25
25
|
OPENCODE_GO_PROVIDER,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
headlessAgentUsagePath,
|
|
30
30
|
isRecord,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OTZK2SDX.js";
|
|
33
33
|
import "./chunk-VEQXQN22.js";
|
|
34
34
|
|
|
35
35
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UCYPQIVF.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
spawnMuseMsp,
|
|
66
66
|
startMuseSession,
|
|
67
67
|
uuidV7
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-5YFBI4MA.js";
|
|
69
69
|
import {
|
|
70
70
|
publishedPullRequestUrls
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EBJ4AXAY.js";
|
|
72
72
|
import {
|
|
73
73
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
74
74
|
AsyncLock,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
timestampFromSeconds,
|
|
144
144
|
upsertCredentialFileLines,
|
|
145
145
|
writeSecureCredentialFile
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-7QYWZAEJ.js";
|
|
147
147
|
import {
|
|
148
148
|
ENGINE_ENV,
|
|
149
149
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -154,15 +154,15 @@ import {
|
|
|
154
154
|
resolveDiffBase,
|
|
155
155
|
setAgentCredentialSnapshot,
|
|
156
156
|
setLinearSessionId
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-3NZWGHMB.js";
|
|
158
158
|
import {
|
|
159
159
|
getCodexModelProvider
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-KP3UEGOX.js";
|
|
161
161
|
import {
|
|
162
162
|
SUBPROCESS_MAX_BUFFER,
|
|
163
163
|
execAsync,
|
|
164
164
|
execFileAsync
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-TJ3WKYR5.js";
|
|
166
166
|
import {
|
|
167
167
|
isRecord as isRecord2
|
|
168
168
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -438,7 +438,7 @@ import {
|
|
|
438
438
|
workspaceTokenRequestSchema,
|
|
439
439
|
workspaceTokenResponseSchema,
|
|
440
440
|
wrapInTag
|
|
441
|
-
} from "./chunk-
|
|
441
|
+
} from "./chunk-OTZK2SDX.js";
|
|
442
442
|
import {
|
|
443
443
|
cloneMcpConfig,
|
|
444
444
|
ensureCompatibilityImports,
|
|
@@ -10744,7 +10744,7 @@ import { randomUUID as randomUUID9 } from "crypto";
|
|
|
10744
10744
|
import { z as z3 } from "zod";
|
|
10745
10745
|
|
|
10746
10746
|
// ../shared/src/workspace-chat.ts
|
|
10747
|
-
var WORKSPACE_CHATS_QUERY_SCHEMA_VERSION =
|
|
10747
|
+
var WORKSPACE_CHATS_QUERY_SCHEMA_VERSION = 18;
|
|
10748
10748
|
var WORKSPACE_CHATS_QUERY_ROOT = `workspace-chats:v${WORKSPACE_CHATS_QUERY_SCHEMA_VERSION}`;
|
|
10749
10749
|
function isAcceptedUserMessage(event) {
|
|
10750
10750
|
return getUserMessage(event) !== null && event.payload.source === ACCEPTED_USER_MESSAGE_SOURCE;
|
|
@@ -10855,6 +10855,7 @@ function findDuplicatePosition(index, event) {
|
|
|
10855
10855
|
}
|
|
10856
10856
|
return match;
|
|
10857
10857
|
}
|
|
10858
|
+
var CACHE_PLACEHOLDER_PAYLOAD_KEY = "replicasCachePlaceholder";
|
|
10858
10859
|
function mergeWorkspaceChatHistoryEvents(primary, supplemental, removedMessageIds = []) {
|
|
10859
10860
|
const [flush] = supplemental;
|
|
10860
10861
|
const flushStreamId = supplemental.length === 1 && removedMessageIds.length === 0 ? getEventStreamId(flush) : null;
|
|
@@ -10907,7 +10908,7 @@ function mergeWorkspaceChatHistoryEvents(primary, supplemental, removedMessageId
|
|
|
10907
10908
|
list[position] = null;
|
|
10908
10909
|
unindexEvent(listIndex, previous, position);
|
|
10909
10910
|
addEvent(event);
|
|
10910
|
-
} else if ((getEventStreamId(event) !== null || messageId !== null && messageId === getUserMessageId(previous)) && workspaceChatEventSignals(event).json !== workspaceChatEventSignals(previous).json) {
|
|
10911
|
+
} else if ((getEventStreamId(event) !== null || messageId !== null && messageId === getUserMessageId(previous) || previous.payload[CACHE_PLACEHOLDER_PAYLOAD_KEY] === true) && workspaceChatEventSignals(event).json !== workspaceChatEventSignals(previous).json) {
|
|
10911
10912
|
list[position] = event;
|
|
10912
10913
|
unindexEvent(listIndex, previous, position);
|
|
10913
10914
|
indexMergedEvent(listIndex, event, position);
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EBJ4AXAY.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OTZK2SDX.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED