replicas-engine 0.1.1116 → 0.1.1118
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-AJOTSQ25.js → asp-host-NAVM3BKA.js} +5 -5
- package/dist/src/{chunk-DR4I5A5V.js → chunk-FPITB6MD.js} +2 -2
- package/dist/src/{chunk-4ONDEFXP.js → chunk-HVWDNPHT.js} +6 -6
- package/dist/src/{chunk-WNP6QDMH.js → chunk-KYXXP4IF.js} +1 -1
- package/dist/src/{chunk-PM24TJJL.js → chunk-MTP3S2LT.js} +66 -13
- package/dist/src/{chunk-YOPLBPQ5.js → chunk-P22VSOED.js} +2 -2
- package/dist/src/{chunk-KHCH6SUT.js → chunk-XL7SGQND.js} +3 -3
- package/dist/src/{chunk-LPKLR33P.js → chunk-Y47Q737L.js} +2 -2
- package/dist/src/{chunk-HKJM6J2N.js → chunk-Z5TOQDLX.js} +1 -1
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +8 -8
- 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
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HVWDNPHT.js";
|
|
12
|
+
import "./chunk-P22VSOED.js";
|
|
13
|
+
import "./chunk-XL7SGQND.js";
|
|
14
|
+
import "./chunk-KYXXP4IF.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-MTP3S2LT.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -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-XL7SGQND.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
codexReasoningEffortForThinkingLevel,
|
|
12
12
|
isRecord,
|
|
13
13
|
readOllamaAuthEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MTP3S2LT.js";
|
|
15
15
|
|
|
16
16
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
17
17
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
resolveDiffBase,
|
|
11
11
|
runGitCommand,
|
|
12
12
|
setAgentCredentialSnapshot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P22VSOED.js";
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XL7SGQND.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KYXXP4IF.js";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
24
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
resolveOpenAICompatibleModelsUrl,
|
|
56
56
|
splitMothershipInstructions,
|
|
57
57
|
withTimeout
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MTP3S2LT.js";
|
|
59
59
|
|
|
60
60
|
// src/managers/codex-token-manager.ts
|
|
61
61
|
import { promises as fs } from "fs";
|
|
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
291
291
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
292
292
|
await this.applyCredentialsResponse(data);
|
|
293
293
|
setAgentCredentialSnapshot("codex", data);
|
|
294
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
294
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NAVM3BKA.js");
|
|
295
295
|
await restartCodexAspHostIfRunning2();
|
|
296
296
|
});
|
|
297
297
|
await this.start(true);
|
|
@@ -312,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
312
312
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
313
313
|
await this.applyCredentialsResponse(data);
|
|
314
314
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
315
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
315
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-NAVM3BKA.js");
|
|
316
316
|
await restartCodexAspHostIfRunning2();
|
|
317
317
|
}
|
|
318
318
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -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-MTP3S2LT.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -3378,7 +3378,7 @@ Starts an ffmpeg screen recorder and returns only after ffmpeg has written the f
|
|
|
3378
3378
|
Only one recording at a time. Re-running \`start\` while one is active fails - call \`stop\` first.
|
|
3379
3379
|
|
|
3380
3380
|
### \`replicas computer record stop\`
|
|
3381
|
-
SIGINTs ffmpeg, verifies that the process has finalized the MP4, then prints the output path. A finalization timeout preserves the recording state so \`stop\` can be retried safely.
|
|
3381
|
+
SIGINTs ffmpeg, verifies that the process has finalized the MP4, then prints the output path. A finalization timeout preserves the recording state so \`stop\` can be retried safely. To show the interaction in a PR or message, turn it into a short looping GIF with \`replicas media gif <path>\`, then upload with \`replicas media upload <path> --name "<name>"\`.
|
|
3382
3382
|
|
|
3383
3383
|
## Patterns
|
|
3384
3384
|
|
|
@@ -3423,9 +3423,10 @@ For tasks the user wants proof of:
|
|
|
3423
3423
|
replicas computer record start /tmp/walkthrough.mp4
|
|
3424
3424
|
# ... your work ...
|
|
3425
3425
|
replicas computer record stop
|
|
3426
|
-
replicas media
|
|
3426
|
+
replicas media gif /tmp/walkthrough.mp4 --duration 8
|
|
3427
|
+
replicas media upload /tmp/walkthrough.gif /tmp/walkthrough.mp4 --name "Walkthrough" --name "Walkthrough recording"
|
|
3427
3428
|
\`\`\`
|
|
3428
|
-
Then embed the printed \`\`
|
|
3429
|
+
Then embed the printed \`\` lines in your chat reply and follow \`MEDIA.md\` for any external destination: the GIF goes inline in PRs, and a grid of extracted frames never does.
|
|
3429
3430
|
|
|
3430
3431
|
## Failure modes
|
|
3431
3432
|
|
|
@@ -4062,7 +4063,7 @@ gh pr review 123 --request-changes --body "Changes needed"
|
|
|
4062
4063
|
|
|
4063
4064
|
## Media in GitHub workflows
|
|
4064
4065
|
|
|
4065
|
-
Media delivery is owned by \`references/MEDIA.md\`. Read
|
|
4066
|
+
Media delivery is owned by \`references/MEDIA.md\`. Read it before adding screenshots, GIFs, recordings, diagrams, or HTML reports to a pull request, issue, review comment, or commit; it covers when to use a GIF instead of screenshots, the public links every image upload prints, recording previews, organization-only HTML links, and the required **View in Replicas** link.
|
|
4066
4067
|
`;
|
|
4067
4068
|
var GITHUB_ABILITY = {
|
|
4068
4069
|
label: "GitHub",
|
|
@@ -4245,24 +4246,74 @@ var LINEAR_ABILITY = {
|
|
|
4245
4246
|
|
|
4246
4247
|
// ../shared/src/default-skills/replicas-agent/abilities/media.ts
|
|
4247
4248
|
var SECTION7 = `### Media
|
|
4248
|
-
Deliver screenshots, screen recordings, generated diagrams, audio clips, and self-contained HTML pages to the Replicas dashboard and, when applicable, inline in the destination workflow.
|
|
4249
|
+
Deliver screenshots, GIFs, screen recordings, generated diagrams, audio clips, and self-contained HTML pages to the Replicas dashboard and, when applicable, inline in the destination workflow.
|
|
4249
4250
|
|
|
4250
4251
|
**Reference:** \`references/MEDIA.md\`
|
|
4251
4252
|
|
|
4252
4253
|
Use this when:
|
|
4253
4254
|
- You are about to run \`replicas media upload\`; this reference owns the complete Replicas-first, destination-second workflow
|
|
4254
4255
|
- You produce a screenshot, recording, generated image, or audio clip the user should see
|
|
4256
|
+
- You need to show motion or an interaction (an animation, a popup that moves, a flow) in a PR or message: make a short looping GIF with \`replicas media gif\`, never a grid of frames
|
|
4255
4257
|
- You produce a self-contained HTML report that should be linked from a pull request
|
|
4256
4258
|
- You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
|
|
4257
4259
|
- You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
|
|
4258
|
-
var REFERENCE7 = `# Media (Screenshots, Recordings, Audio, HTML)
|
|
4260
|
+
var REFERENCE7 = `# Media (Screenshots, GIFs, Recordings, Audio, HTML)
|
|
4259
4261
|
|
|
4260
|
-
This is the single source of truth for delivering screenshots, screen recordings, generated diagrams, audio clips, and self-contained HTML pages through Replicas and external surfaces (Slack, Linear, GitHub, GitLab).
|
|
4262
|
+
This is the single source of truth for delivering screenshots, GIFs, screen recordings, generated diagrams, audio clips, and self-contained HTML pages through Replicas and external surfaces (Slack, Linear, GitHub, GitLab).
|
|
4261
4263
|
|
|
4262
4264
|
## Prerequisites
|
|
4263
4265
|
|
|
4264
4266
|
The \`replicas\` CLI is pre-installed and authenticated in your workspace. No additional setup is needed.
|
|
4265
4267
|
|
|
4268
|
+
## Screenshot, GIF, or recording
|
|
4269
|
+
|
|
4270
|
+
Pick the format from what the reader has to see:
|
|
4271
|
+
|
|
4272
|
+
- **Static UI** (a layout, a new button, an error message): still screenshots.
|
|
4273
|
+
- **Motion or an interaction** (an animation, a popup that moves or flickers, a drag, a short multi-step flow): a short looping GIF. It plays inline in GitHub, Slack, Linear, GitLab, and Replicas chat, with no click and no sign-in.
|
|
4274
|
+
- **A long walkthrough, or anything with sound**: the MP4 recording, shown as a GIF or poster that links to it (see GitHub below).
|
|
4275
|
+
|
|
4276
|
+
Never paste a contact sheet or grid of frames extracted from a recording, and never paste a run of separate frame screenshots. At PR width each frame is a thumbnail, and the reader can't tell what moved. Make a GIF instead.
|
|
4277
|
+
|
|
4278
|
+
### Make a GIF from a recording
|
|
4279
|
+
|
|
4280
|
+
\`\`\`bash
|
|
4281
|
+
replicas computer record start /tmp/after.mp4 --fps 30
|
|
4282
|
+
# ... perform only the interaction ...
|
|
4283
|
+
replicas computer record stop
|
|
4284
|
+
replicas media gif /tmp/after.mp4 --start 1 --duration 6
|
|
4285
|
+
replicas media upload /tmp/after.gif --name "Language menu after fix"
|
|
4286
|
+
\`\`\`
|
|
4287
|
+
|
|
4288
|
+
\`replicas media gif <recording>\` takes any MP4, WebM, or MOV (desktop, Playwright, CDP screencast, or simulator recordings) and writes a looping GIF next to it (\`-o\` to choose the path). It starts at 12 fps and 960 px wide and lowers both until the file is under 5 MiB. GitHub's image proxy returns 404 for larger images, so a bigger GIF shows as a broken image in the PR.
|
|
4289
|
+
|
|
4290
|
+
- Keep it to the interaction, usually 3\u201310 seconds: \`--start\` and \`--duration\` (default 10, max 30).
|
|
4291
|
+
- When the change is small on a large screen, \`--crop w:h:x:y\` (recording pixels) to the area that changes so text stays readable. Use the same crop for the before and after GIFs.
|
|
4292
|
+
- If it reports the GIF is still too large, show less: a shorter \`--duration\` or a tighter \`--crop\`.
|
|
4293
|
+
- Upload the GIF like any image. Its printed \`\` line is public and renders inline everywhere.
|
|
4294
|
+
- Older workspaces may not have \`replicas media gif\` yet (\`replicas media gif --help\` fails). Use the same ffmpeg settings directly; keep \`-ss\` and \`-t\` before \`-i\` (palettegen waits for its input to end, so trimming after \`-i\` never finishes), and if the file is over 5 MiB, lower \`fps\` and the width and run it again:
|
|
4295
|
+
|
|
4296
|
+
\`\`\`bash
|
|
4297
|
+
ffmpeg -v error -y -ss 1 -t 6 -i /tmp/after.mp4 \\
|
|
4298
|
+
-vf "fps=12,scale='min(960,iw)':-1:flags=lanczos,split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" \\
|
|
4299
|
+
-loop 0 /tmp/after.gif
|
|
4300
|
+
\`\`\`
|
|
4301
|
+
|
|
4302
|
+
ffmpeg is baked into the workspace image. If it's missing, install it with \`sudo apt-get install -y ffmpeg\`.
|
|
4303
|
+
|
|
4304
|
+
### Before and after
|
|
4305
|
+
|
|
4306
|
+
Record both with the same steps, window size, and crop. Say in one line what to watch for, then put the GIFs side by side in a table, or in labeled sections when they are wide:
|
|
4307
|
+
|
|
4308
|
+
\`\`\`markdown
|
|
4309
|
+
The menu should open on its trigger. Before, it jumps about 95px up in half the openings.
|
|
4310
|
+
|
|
4311
|
+
| Before | After |
|
|
4312
|
+
| --- | --- |
|
|
4313
|
+
|  |  |
|
|
4314
|
+
| [View in Replicas](<before-dashboard-url>) | [View in Replicas](<after-dashboard-url>) |
|
|
4315
|
+
\`\`\`
|
|
4316
|
+
|
|
4266
4317
|
## When to upload
|
|
4267
4318
|
|
|
4268
4319
|
Upload to Replicas in these cases \u2014 and **only** these cases:
|
|
@@ -4289,7 +4340,7 @@ If none of these apply, don't upload.
|
|
|
4289
4340
|
| Slack | \`files.getUploadURLExternal\` \u2192 raw-byte POST \u2192 \`files.completeUploadExternal\` | Uploaded file in the channel or thread |
|
|
4290
4341
|
| Linear | \`fileUpload\` mutation \u2192 presigned upload \u2192 issue/comment mutation | Returned \`assetUrl\` in Markdown |
|
|
4291
4342
|
| GitLab | Project \`/uploads\` endpoint with the original bytes | Returned GitLab Markdown |
|
|
4292
|
-
| GitHub | Printed public embed for an image or recording poster | Printed embed, linked to the recording when needed |
|
|
4343
|
+
| GitHub | Printed public embed for an image, GIF, or recording poster | Printed embed, linked to the recording when needed |
|
|
4293
4344
|
|
|
4294
4345
|
The dashboard link is the subtitle and jump-back path. It is never a substitute for the destination embed.
|
|
4295
4346
|
|
|
@@ -4494,7 +4545,7 @@ jq -n \\
|
|
|
4494
4545
|
}' | linear_graphql
|
|
4495
4546
|
\`\`\`
|
|
4496
4547
|
|
|
4497
|
-
For a recording, upload the MP4 with its own MIME type, then upload a poster frame (\`ffmpeg -i /tmp/demo.mp4 -frames:v 1 /tmp/demo-poster.png\`) the same way as \`image/png\` and link it: \`[](<recording-asset-url>)\`.
|
|
4548
|
+
To show motion, upload the GIF from \`replicas media gif\` this way as \`image/gif\` and embed its \`assetUrl\` like a screenshot. For a full recording, upload the MP4 with its own MIME type, then upload a poster frame (\`ffmpeg -i /tmp/demo.mp4 -frames:v 1 /tmp/demo-poster.png\`) the same way as \`image/png\` and link it: \`[](<recording-asset-url>)\`.
|
|
4498
4549
|
|
|
4499
4550
|
The same flow works for issue bodies (use \`issueCreate\` / \`issueUpdate\` with the same markdown body).
|
|
4500
4551
|
|
|
@@ -4519,10 +4570,10 @@ gh pr edit 456 --body-file /tmp/pr-body.md
|
|
|
4519
4570
|
gh pr comment 456 --body-file /tmp/comment.md
|
|
4520
4571
|
\`\`\`
|
|
4521
4572
|
|
|
4522
|
-
|
|
4573
|
+
GitHub does not play external videos inline, so show motion with a GIF (see *Make a GIF from a recording* above); its printed embed animates inline like any image. Videos stay private. When the full recording is also worth watching, upload the MP4 too and link the GIF to the recording's **View in Replicas** URL. When a still is enough, use a poster instead (\`ffmpeg -i /tmp/demo.mp4 -frames:v 1 /tmp/demo-poster.png\`), uploaded like any image:
|
|
4523
4574
|
|
|
4524
4575
|
\`\`\`markdown
|
|
4525
|
-
[](<recording-dashboard-url>)
|
|
4526
4577
|
\`\`\`
|
|
4527
4578
|
|
|
4528
4579
|
Public links are unauthenticated bearer capabilities. Revoke with \`replicas media revoke <media-id>\` **only** when the user asks or the media should intentionally stop rendering; never as routine post-task cleanup, since revoking breaks every embed already posted on the PR.
|
|
@@ -4554,13 +4605,15 @@ const context = await browser.newContext({
|
|
|
4554
4605
|
|
|
4555
4606
|
For \`ffmpeg\` screen captures, pass \`-r 30\` (or \`-r 60\`) to set the frame rate.
|
|
4556
4607
|
|
|
4608
|
+
Start recording just before the interaction and stop right after it, so the GIF made from it stays short.
|
|
4609
|
+
|
|
4557
4610
|
## Supported formats
|
|
4558
4611
|
|
|
4559
4612
|
Auto-detected from the filename extension:
|
|
4560
4613
|
|
|
4561
4614
|
| Extension | Kind |
|
|
4562
4615
|
|---|---|
|
|
4563
|
-
| \`png\`, \`jpg\`, \`jpeg\`, \`webp\` | image |
|
|
4616
|
+
| \`png\`, \`jpg\`, \`jpeg\`, \`webp\`, \`gif\` | image |
|
|
4564
4617
|
| \`mp4\`, \`webm\` | video |
|
|
4565
4618
|
| \`mp3\`, \`wav\` | audio |
|
|
4566
4619
|
| \`html\`, \`htm\` | html |
|
|
@@ -4583,7 +4636,7 @@ replicas media upload chart-a.svg chart-b.svg --name "Latency chart" --name "Err
|
|
|
4583
4636
|
var MEDIA_ABILITY = {
|
|
4584
4637
|
label: "Media",
|
|
4585
4638
|
description: "Deliver media to Replicas and destination workflows with inline uploads.",
|
|
4586
|
-
bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips, or HTML recap pages \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms. Paste the printed `` embeds in your chat reply, never only dashboard links, and upload the file itself to Slack, Linear, or GitLab",
|
|
4639
|
+
bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, audio clips, or HTML recap pages \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms. Paste the printed `` embeds in your chat reply, never only dashboard links, and upload the file itself to Slack, Linear, or GitLab. To show motion, turn the recording into a short GIF with `replicas media gif` instead of a grid of frames",
|
|
4587
4640
|
section: SECTION7,
|
|
4588
4641
|
referenceFile: { name: "MEDIA.md", content: REFERENCE7 }
|
|
4589
4642
|
};
|
|
@@ -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-KYXXP4IF.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isValidAgentProvider,
|
|
19
19
|
parsePosixEnvFile,
|
|
20
20
|
readReplicasRuntimeEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MTP3S2LT.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-env-loader.ts
|
|
24
24
|
import { readFileSync } from "fs";
|
|
@@ -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-KYXXP4IF.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MTP3S2LT.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.1118";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getOriginDefaultBranch,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P22VSOED.js";
|
|
9
9
|
import {
|
|
10
10
|
extractCommandProtectionCommandText,
|
|
11
11
|
findCommandProtectionGitLookups,
|
|
12
12
|
findGitCommitSignals,
|
|
13
13
|
findPrMergeSignals,
|
|
14
14
|
parseCommandProtectionRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MTP3S2LT.js";
|
|
16
16
|
|
|
17
17
|
// src/services/command-protection-service.ts
|
|
18
18
|
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-Y47Q737L.js";
|
|
7
|
+
import "./chunk-P22VSOED.js";
|
|
8
|
+
import "./chunk-KYXXP4IF.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MTP3S2LT.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
recoverCompletedTurn,
|
|
14
14
|
spawnMuseMsp,
|
|
15
15
|
startMuseSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FPITB6MD.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-XL7SGQND.js";
|
|
21
|
+
import "./chunk-KYXXP4IF.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT,
|
|
24
24
|
OPENCODE_GO_PROVIDER,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
headlessAgentUsagePath,
|
|
29
29
|
isRecord,
|
|
30
30
|
withTimeout
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MTP3S2LT.js";
|
|
32
32
|
import "./chunk-VEQXQN22.js";
|
|
33
33
|
|
|
34
34
|
// 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-Y47Q737L.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
spawnMuseMsp,
|
|
65
65
|
startMuseSession,
|
|
66
66
|
uuidV7
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FPITB6MD.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-Z5TOQDLX.js";
|
|
71
71
|
import {
|
|
72
72
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
73
73
|
AsyncLock,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
timestampFromSeconds,
|
|
131
131
|
upsertCredentialFileLines,
|
|
132
132
|
writeSecureCredentialFile
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-HVWDNPHT.js";
|
|
134
134
|
import {
|
|
135
135
|
ENGINE_ENV,
|
|
136
136
|
monolithRequest,
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
reloadEngineEnv,
|
|
140
140
|
resolveDiffBase,
|
|
141
141
|
setAgentCredentialSnapshot
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-P22VSOED.js";
|
|
143
143
|
import {
|
|
144
144
|
getCodexModelProvider
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-XL7SGQND.js";
|
|
146
146
|
import {
|
|
147
147
|
SUBPROCESS_MAX_BUFFER,
|
|
148
148
|
execAsync,
|
|
149
149
|
execFileAsync
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-KYXXP4IF.js";
|
|
151
151
|
import {
|
|
152
152
|
isRecord as isRecord2
|
|
153
153
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -375,7 +375,7 @@ import {
|
|
|
375
375
|
workspaceTokenRequestSchema,
|
|
376
376
|
workspaceTokenResponseSchema,
|
|
377
377
|
wrapInTag
|
|
378
|
-
} from "./chunk-
|
|
378
|
+
} from "./chunk-MTP3S2LT.js";
|
|
379
379
|
import {
|
|
380
380
|
cloneMcpConfig,
|
|
381
381
|
ensureCompatibilityImports,
|
|
@@ -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-Z5TOQDLX.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-MTP3S2LT.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