replicas-cli 0.2.389 → 0.2.391
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.mjs +53 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -22399,6 +22399,7 @@ var MODEL_LABELS = {
|
|
|
22399
22399
|
"grok-4.3": "Grok 4.3",
|
|
22400
22400
|
"kimi-k2.5": "Kimi K2.5"
|
|
22401
22401
|
};
|
|
22402
|
+
var IMAGE_MEDIA_TYPES = ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
22402
22403
|
var MAX_CANVAS_FILE_BYTES = 5 * 1024 * 1024;
|
|
22403
22404
|
var CANVAS_KIND_BY_EXTENSION = {
|
|
22404
22405
|
".md": { kind: "markdown", mimeType: "text/markdown; charset=utf-8" },
|
|
@@ -22986,7 +22987,7 @@ GitHub does NOT have a public API for uploading images to PRs/issues. When you n
|
|
|
22986
22987
|
- Do NOT commit screenshots as files to the repository
|
|
22987
22988
|
- Run \`replicas media upload <image> --share\` and put the printed \`Forge embed\` Markdown in the PR body or comment
|
|
22988
22989
|
- For video, embed a shared poster image linked to the recording's **View in Replicas** URL; GitHub does not reliably render externally hosted video inline
|
|
22989
|
-
- Treat the public URL as an opt-in bearer capability
|
|
22990
|
+
- Treat the public URL as an opt-in bearer capability; revoke it with \`replicas media revoke <media-id>\` only when the user asks or the media should stop rendering \u2014 revoking breaks embeds already posted on the PR
|
|
22990
22991
|
- If you were triggered from Slack, also upload the image to the Slack thread so the user can see it directly
|
|
22991
22992
|
`;
|
|
22992
22993
|
var GITHUB_ABILITY = {
|
|
@@ -23765,7 +23766,7 @@ GitHub does not reliably render arbitrary external videos as inline players. For
|
|
|
23765
23766
|
[](<recording-dashboard-url>)
|
|
23766
23767
|
\`\`\`
|
|
23767
23768
|
|
|
23768
|
-
Public forge shares are bearer capabilities. For private repositories, create one only when the user asked for inline PR media
|
|
23769
|
+
Public forge shares are bearer capabilities. For private repositories, create one only when the user asked for inline PR media. Revoke with \`replicas media revoke <media-id>\` **only** when the user asks or the media should intentionally stop rendering \u2014 never as routine post-task cleanup, since revoking breaks every embed already posted on the PR.
|
|
23769
23770
|
|
|
23770
23771
|
Do **not** commit screenshots to the repo, use placeholder URLs, expose the authenticated \`/v1/media/<id>\` URL, or automate GitHub's undocumented browser upload flow.
|
|
23771
23772
|
|
|
@@ -24378,7 +24379,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
24378
24379
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
24379
24380
|
|
|
24380
24381
|
// ../shared/src/cli-version.ts
|
|
24381
|
-
var CLI_VERSION = "0.2.
|
|
24382
|
+
var CLI_VERSION = "0.2.391";
|
|
24382
24383
|
|
|
24383
24384
|
// ../shared/src/version.ts
|
|
24384
24385
|
function compareVersions(v1, v2) {
|
|
@@ -24413,6 +24414,44 @@ var createChatRequestSchema = external_exports.object({
|
|
|
24413
24414
|
parentChatId: external_exports.string().uuid().optional(),
|
|
24414
24415
|
clientRequestId: external_exports.string().min(1).max(128).optional()
|
|
24415
24416
|
});
|
|
24417
|
+
var sendChatMessageRequestSchema = external_exports.object({
|
|
24418
|
+
messageId: external_exports.string().optional(),
|
|
24419
|
+
submittedAt: external_exports.string().optional(),
|
|
24420
|
+
message: external_exports.string(),
|
|
24421
|
+
model: external_exports.string().optional(),
|
|
24422
|
+
customInstructions: external_exports.string().optional(),
|
|
24423
|
+
planMode: external_exports.boolean().optional(),
|
|
24424
|
+
images: external_exports.array(external_exports.object({
|
|
24425
|
+
type: external_exports.literal("image"),
|
|
24426
|
+
source: external_exports.discriminatedUnion("type", [
|
|
24427
|
+
external_exports.object({ type: external_exports.literal("base64"), media_type: external_exports.enum(IMAGE_MEDIA_TYPES), data: external_exports.string() }),
|
|
24428
|
+
external_exports.object({ type: external_exports.literal("url"), url: external_exports.string() })
|
|
24429
|
+
])
|
|
24430
|
+
})).optional(),
|
|
24431
|
+
thinkingLevel: external_exports.enum(VALID_THINKING_LEVELS).optional(),
|
|
24432
|
+
goalMode: external_exports.boolean().optional(),
|
|
24433
|
+
fastMode: external_exports.boolean().optional(),
|
|
24434
|
+
enableInteractiveTools: external_exports.boolean().optional(),
|
|
24435
|
+
type: external_exports.string().optional(),
|
|
24436
|
+
merge: external_exports.boolean().optional(),
|
|
24437
|
+
idempotencyKey: external_exports.string().optional(),
|
|
24438
|
+
senderUserId: external_exports.string().optional(),
|
|
24439
|
+
senderEmail: external_exports.string().optional(),
|
|
24440
|
+
senderDisplayName: external_exports.string().optional(),
|
|
24441
|
+
senderAvatarUrl: external_exports.string().optional(),
|
|
24442
|
+
errorNotificationTarget: external_exports.discriminatedUnion("type", [
|
|
24443
|
+
external_exports.object({ type: external_exports.literal("slack") }),
|
|
24444
|
+
external_exports.object({ type: external_exports.literal("linear"), sessionId: external_exports.string() }),
|
|
24445
|
+
external_exports.object({
|
|
24446
|
+
type: external_exports.literal("code_host"),
|
|
24447
|
+
provider: external_exports.enum(["github", "gitlab"]),
|
|
24448
|
+
resource: external_exports.enum(["issue", "pull_request"]),
|
|
24449
|
+
repositoryId: external_exports.string(),
|
|
24450
|
+
resourceNumber: external_exports.number()
|
|
24451
|
+
}),
|
|
24452
|
+
external_exports.object({ type: external_exports.literal("automation"), executionId: external_exports.string() })
|
|
24453
|
+
]).optional()
|
|
24454
|
+
}).passthrough();
|
|
24416
24455
|
function normalizeCodexAspTranscriptStatus(status, failed = false) {
|
|
24417
24456
|
if (failed || status === "failed" || status === "declined") return "failed";
|
|
24418
24457
|
if (status === "completed") return "completed";
|
|
@@ -24466,6 +24505,17 @@ var DEFAULT_WORKSPACE_FILTERS = {
|
|
|
24466
24505
|
};
|
|
24467
24506
|
var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
|
|
24468
24507
|
|
|
24508
|
+
// ../shared/src/routes/workspace-events.ts
|
|
24509
|
+
var workspaceChangedEventSchema = external_exports.discriminatedUnion("type", [
|
|
24510
|
+
external_exports.object({ type: external_exports.literal("workspace.changed"), workspaceId: external_exports.string(), ts: external_exports.string() }),
|
|
24511
|
+
external_exports.object({
|
|
24512
|
+
type: external_exports.literal("workspace.chat.changed"),
|
|
24513
|
+
workspaceId: external_exports.string(),
|
|
24514
|
+
chatId: external_exports.string(),
|
|
24515
|
+
ts: external_exports.string()
|
|
24516
|
+
})
|
|
24517
|
+
]);
|
|
24518
|
+
|
|
24469
24519
|
// ../shared/src/audit-log.ts
|
|
24470
24520
|
var AUDIT_LOG_ACTION = {
|
|
24471
24521
|
CREATE: "create",
|