replicas-engine 0.1.948 → 0.1.950
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-2NKMJSLY.js → asp-host-3SHV7Q4E.js} +5 -5
- package/dist/src/{chunk-35P374LH.js → chunk-4W7QCOK3.js} +1 -1
- package/dist/src/{chunk-DPXVOAHJ.js → chunk-7EHG3T5K.js} +1 -1
- package/dist/src/{chunk-R6ILSFAC.js → chunk-CTJLUGT2.js} +8 -9
- package/dist/src/{chunk-5QC2ZH2E.js → chunk-IXZN2VGZ.js} +1 -1
- package/dist/src/{chunk-S5ZTMM4H.js → chunk-L4CL5EW7.js} +3 -3
- package/dist/src/{chunk-WR52AHTG.js → chunk-POXHHD3Q.js} +6 -6
- package/dist/src/{chunk-ETCLM4U2.js → chunk-QUT2FT6T.js} +1 -1
- package/dist/src/{chunk-GVXXHRWR.js → chunk-RCUQHNVE.js} +3 -3
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +3 -3
- package/dist/src/index.js +20 -23
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +2 -2
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
getCodexAspHost,
|
|
6
6
|
restartCodexAspHost,
|
|
7
7
|
restartCodexAspHostIfRunning
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-POXHHD3Q.js";
|
|
9
|
+
import "./chunk-IXZN2VGZ.js";
|
|
10
|
+
import "./chunk-L4CL5EW7.js";
|
|
11
|
+
import "./chunk-QUT2FT6T.js";
|
|
12
12
|
import "./chunk-UZSNFLDQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-CTJLUGT2.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
export {
|
|
16
16
|
getCodexAspHost,
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
RELAY_MCP_TOOL_NAMES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CTJLUGT2.js";
|
|
7
7
|
|
|
8
8
|
// src/managers/relay-mcp-config.ts
|
|
9
9
|
import { existsSync } from "fs";
|
|
@@ -3195,7 +3195,7 @@ Use subagents for broad, independent analysis when available, but read the files
|
|
|
3195
3195
|
|
|
3196
3196
|
The user may be watching the panel or may have walked away, so ask early and wait late:
|
|
3197
3197
|
|
|
3198
|
-
1. Right after step 1, request
|
|
3198
|
+
1. Right after step 1, request in one batch only the secrets you need to run the app and test its main flow (usually including sign-in) that you cannot replace locally. First check for a local stand-in the app supports, such as a local database, an auth emulator, or documented test credentials. Do not request values you can generate, values that duplicate another key, or values that are not secret, and list optional integrations in the proposal instead of requesting them. \`required\` means the app cannot start, or its main flow cannot be tested, without it.
|
|
3199
3199
|
|
|
3200
3200
|
\`\`\`bash
|
|
3201
3201
|
replicas environment-setup request-variables --file /tmp/variables.json
|
|
@@ -3204,24 +3204,23 @@ replicas environment-setup request-variables --file /tmp/variables.json
|
|
|
3204
3204
|
\`\`\`json
|
|
3205
3205
|
{
|
|
3206
3206
|
"variables": [
|
|
3207
|
-
{ "key": "
|
|
3208
|
-
{ "key": "STRIPE_SECRET_KEY", "description": "Stripe test-mode key; checkout cannot run without it", "required": true }
|
|
3207
|
+
{ "key": "FIREBASE_PRIVATE_KEY", "description": "Service account private key for a dev Firebase project; sign-in cannot be tested without it", "required": true }
|
|
3209
3208
|
]
|
|
3210
3209
|
}
|
|
3211
3210
|
\`\`\`
|
|
3212
3211
|
|
|
3213
3212
|
2. Keep working on everything that does not need the values. The request appears in the Environment panel next to the chat; the user types values there (stored encrypted on the environment, never in chat) or skips them.
|
|
3214
|
-
3. At the point you actually need a value, block on it:
|
|
3213
|
+
3. At the point you actually need a value, say in chat which keys you are waiting for and why, then block on it once:
|
|
3215
3214
|
|
|
3216
3215
|
\`\`\`bash
|
|
3217
|
-
replicas environment-setup wait-variables --timeout
|
|
3218
|
-
replicas environment-setup wait-variables --keys
|
|
3216
|
+
replicas environment-setup wait-variables --timeout 15m
|
|
3217
|
+
replicas environment-setup wait-variables --keys FIREBASE_PRIVATE_KEY --timeout 15m
|
|
3219
3218
|
\`\`\`
|
|
3220
3219
|
|
|
3221
3220
|
Without \`--keys\` it waits for every pending required key. It returns when the keys are provided or skipped, or when the time runs out, and prints which happened. Provided keys are exported for every new shell; restart anything you started with \`replicas service start\` before that point so it picks them up. Never print the values.
|
|
3222
|
-
4. For anything skipped or unanswered, use the safest local substitute (local database, mock, documented test value), say so in the verification rows, and list the key
|
|
3221
|
+
4. For anything skipped or still unanswered after that wait, use the safest local substitute (local database, mock, documented test value), say so in the verification rows, and list the key in the proposal, marked required only if the app cannot start or its main flow cannot be tested without it. A key the user skipped is not asked again; do not resend it.
|
|
3223
3222
|
5. Values the user provided are already saved on the environment. Still list those keys in the proposal so the review shows them as set.
|
|
3224
|
-
6. Requests are only accepted before you propose. Anything still missing after that goes into the proposal
|
|
3223
|
+
6. Requests are only accepted before you propose. Anything still missing after that goes into the proposal for the user to fill in at review.
|
|
3225
3224
|
|
|
3226
3225
|
## 2. Install and run
|
|
3227
3226
|
|
|
@@ -3234,7 +3233,7 @@ Work from the smallest failing layer, in this workspace:
|
|
|
3234
3233
|
|
|
3235
3234
|
Use the repository's pinned package manager and lockfile. Do not upgrade dependencies, rewrite lockfiles, or change application code to make setup pass; environment configuration and narrowly necessary fixes to setup scripts are in scope. Do not deploy, publish, or touch production resources.
|
|
3236
3235
|
|
|
3237
|
-
When something needs a secret you do not have, request it and run \`wait-variables\` at the point you need it (see "Asking for variables"). If it is skipped or unanswered, use the safest local substitute, keep going, and record the variable
|
|
3236
|
+
When something needs a secret you do not have, request it and run \`wait-variables\` at the point you need it (see "Asking for variables"). If it is skipped or unanswered, use the safest local substitute, keep going, and record the variable in the proposal with a clear description. Never invent or paste secret values anywhere.
|
|
3238
3237
|
|
|
3239
3238
|
## 3. Verify and record
|
|
3240
3239
|
|
|
@@ -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-QUT2FT6T.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CTJLUGT2.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.950";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IXZN2VGZ.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L4CL5EW7.js";
|
|
13
13
|
import {
|
|
14
14
|
SUBPROCESS_MAX_BUFFER,
|
|
15
15
|
execFileAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QUT2FT6T.js";
|
|
17
17
|
import {
|
|
18
18
|
isRecord
|
|
19
19
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
listOpenAICompatibleModels,
|
|
28
28
|
readOllamaAuthEnv,
|
|
29
29
|
resolveOpenAICompatibleModelsUrl
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CTJLUGT2.js";
|
|
31
31
|
|
|
32
32
|
// src/managers/codex-token-manager.ts
|
|
33
33
|
import { promises as fs } from "fs";
|
|
@@ -260,7 +260,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
260
260
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
261
261
|
await this.applyCredentialsResponse(data);
|
|
262
262
|
setAgentCredentialSnapshot("codex", data);
|
|
263
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
263
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-3SHV7Q4E.js");
|
|
264
264
|
await restartCodexAspHostIfRunning2();
|
|
265
265
|
});
|
|
266
266
|
await this.start(true);
|
|
@@ -280,7 +280,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
280
280
|
await this.applyCredentialUpdate(generation, async () => {
|
|
281
281
|
await this.applyCredentialsResponse(data);
|
|
282
282
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
283
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
283
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-3SHV7Q4E.js");
|
|
284
284
|
await restartCodexAspHostIfRunning2();
|
|
285
285
|
}
|
|
286
286
|
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-CTJLUGT2.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
monolithRequest
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IXZN2VGZ.js";
|
|
7
7
|
import {
|
|
8
8
|
SUBPROCESS_MAX_BUFFER,
|
|
9
9
|
execFileAsync
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QUT2FT6T.js";
|
|
11
11
|
import {
|
|
12
12
|
extractCommandProtectionCommandText,
|
|
13
13
|
findCommandProtectionGitLookups,
|
|
14
14
|
findGitCommitSignals,
|
|
15
15
|
findPrMergeSignals,
|
|
16
16
|
parseCommandProtectionRequest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CTJLUGT2.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-RCUQHNVE.js";
|
|
7
|
+
import "./chunk-IXZN2VGZ.js";
|
|
8
|
+
import "./chunk-QUT2FT6T.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CTJLUGT2.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AppServerProcess,
|
|
10
10
|
buildCodexAgentEnv
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-L4CL5EW7.js";
|
|
12
|
+
import "./chunk-QUT2FT6T.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT,
|
|
15
15
|
getMemoryOutputSafetyViolation,
|
|
16
16
|
headlessAgentRequestSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CTJLUGT2.js";
|
|
18
18
|
import "./chunk-VEQXQN22.js";
|
|
19
19
|
|
|
20
20
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
reportCommandProtectionBlock,
|
|
33
33
|
resolveDiffBase,
|
|
34
34
|
runGitCommand
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RCUQHNVE.js";
|
|
36
36
|
import {
|
|
37
37
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
38
38
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -57,12 +57,12 @@ import {
|
|
|
57
57
|
} from "./chunk-FLDA7BX3.js";
|
|
58
58
|
import {
|
|
59
59
|
publishedPullRequestUrls
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4W7QCOK3.js";
|
|
61
61
|
import {
|
|
62
62
|
RELAY_MCP_TOOL_TIMEOUT_MS,
|
|
63
63
|
relayCodexMcpConfig,
|
|
64
64
|
relayMcpProcessConfig
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-7EHG3T5K.js";
|
|
66
66
|
import {
|
|
67
67
|
BaseRefreshManager,
|
|
68
68
|
CodexAspAuthMethodChangedError,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
refreshDelayMs,
|
|
78
78
|
restartCodexAspHost,
|
|
79
79
|
routineRefreshExclusions
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-POXHHD3Q.js";
|
|
81
81
|
import {
|
|
82
82
|
ENGINE_ENV,
|
|
83
83
|
monolithRequest,
|
|
@@ -85,16 +85,16 @@ import {
|
|
|
85
85
|
readRuntimeEnvFile,
|
|
86
86
|
reloadEngineEnv,
|
|
87
87
|
setAgentCredentialSnapshot
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-IXZN2VGZ.js";
|
|
89
89
|
import {
|
|
90
90
|
AspClient,
|
|
91
91
|
getCodexModelProvider
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-L4CL5EW7.js";
|
|
93
93
|
import {
|
|
94
94
|
SUBPROCESS_MAX_BUFFER,
|
|
95
95
|
execAsync,
|
|
96
96
|
execFileAsync
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-QUT2FT6T.js";
|
|
98
98
|
import {
|
|
99
99
|
isRecord as isRecord2
|
|
100
100
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -326,7 +326,7 @@ import {
|
|
|
326
326
|
workspaceCredentialProviderSchema,
|
|
327
327
|
workspaceTokenRequestSchema,
|
|
328
328
|
workspaceTokenResponseSchema
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-CTJLUGT2.js";
|
|
330
330
|
import {
|
|
331
331
|
cloneMcpConfig,
|
|
332
332
|
ensureCompatibilityImports,
|
|
@@ -10127,6 +10127,7 @@ var EnvironmentDetailsService = class {
|
|
|
10127
10127
|
details.supportsChatForkMessage = true;
|
|
10128
10128
|
details.supportsDeferredChatForking = true;
|
|
10129
10129
|
details.supportsSideChats = true;
|
|
10130
|
+
details.supportsMultipleSideChats = true;
|
|
10130
10131
|
details.supportsCredentialSwitching = true;
|
|
10131
10132
|
details.supportsChatCredentials = true;
|
|
10132
10133
|
details.agentCredentials = { ...ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS };
|
|
@@ -10923,7 +10924,7 @@ import { join as join34 } from "path";
|
|
|
10923
10924
|
import { randomUUID as randomUUID11 } from "crypto";
|
|
10924
10925
|
|
|
10925
10926
|
// ../shared/src/workspace-chat.ts
|
|
10926
|
-
var WORKSPACE_CHATS_QUERY_SCHEMA_VERSION =
|
|
10927
|
+
var WORKSPACE_CHATS_QUERY_SCHEMA_VERSION = 9;
|
|
10927
10928
|
var WORKSPACE_CHATS_QUERY_ROOT = `workspace-chats:v${WORKSPACE_CHATS_QUERY_SCHEMA_VERSION}`;
|
|
10928
10929
|
function isAcceptedUserMessage(event) {
|
|
10929
10930
|
return getUserMessage(event) !== null && event.payload.source === ACCEPTED_USER_MESSAGE_SOURCE;
|
|
@@ -60613,8 +60614,8 @@ var ChatService = class {
|
|
|
60613
60614
|
hasActiveAgentWork(provider) {
|
|
60614
60615
|
return [...this.chats.values()].some((chat) => getChatExecutionProvider(chat.persisted) === provider && (chat.provider.isProcessing() || chat.acceptingMessages > 0 || chat.pendingMessageIds.length > 0));
|
|
60615
60616
|
}
|
|
60616
|
-
listDeletedChats() {
|
|
60617
|
-
return Array.from(this.chats.values()).filter((chat) => chat.persisted.deletedAt && chat.persisted.parentChatId === null).map((chat) => this.toSummary(chat)).sort((a, b) => (b.deletedAt ?? "").localeCompare(a.deletedAt ?? ""));
|
|
60617
|
+
listDeletedChats(includeChildren = false) {
|
|
60618
|
+
return Array.from(this.chats.values()).filter((chat) => chat.persisted.deletedAt && (includeChildren || chat.persisted.parentChatId === null)).map((chat) => this.toSummary(chat)).sort((a, b) => (b.deletedAt ?? "").localeCompare(a.deletedAt ?? ""));
|
|
60618
60619
|
}
|
|
60619
60620
|
listChildChats(parentChatId) {
|
|
60620
60621
|
return Array.from(this.chats.values()).filter((chat) => !chat.persisted.deletedAt && chat.persisted.parentChatId === parentChatId).map((chat) => this.toSummary(chat)).sort((a, b) => b.updatedAt.localeCompare(a.updatedAt));
|
|
@@ -60671,13 +60672,6 @@ var ChatService = class {
|
|
|
60671
60672
|
throw new ChatNotFoundError(parentChatId);
|
|
60672
60673
|
}
|
|
60673
60674
|
const source = request.forkSourceChatId ? this.requireChat(request.forkSourceChatId) : void 0;
|
|
60674
|
-
if (request.sideChat) {
|
|
60675
|
-
for (const previous of this.chats.values()) {
|
|
60676
|
-
if (previous.persisted.parentChatId === parentChatId && previous.persisted.fork?.trigger === "side" && !previous.persisted.deletedAt) {
|
|
60677
|
-
await this.deleteChat(previous.persisted.id);
|
|
60678
|
-
}
|
|
60679
|
-
}
|
|
60680
|
-
}
|
|
60681
60675
|
const persisted = {
|
|
60682
60676
|
id: request.id ?? randomUUID11(),
|
|
60683
60677
|
provider: request.provider,
|
|
@@ -60800,6 +60794,7 @@ var ChatService = class {
|
|
|
60800
60794
|
}
|
|
60801
60795
|
async sendMessage(chatId, request) {
|
|
60802
60796
|
const chat = this.requireChat(chatId);
|
|
60797
|
+
const typedMessage = request.message;
|
|
60803
60798
|
const idempotencyKey = request.idempotencyKey ?? request.messageId;
|
|
60804
60799
|
if (idempotencyKey) {
|
|
60805
60800
|
const accepted = chat.acceptedSendResponses.get(idempotencyKey);
|
|
@@ -60836,7 +60831,8 @@ var ChatService = class {
|
|
|
60836
60831
|
chat,
|
|
60837
60832
|
request,
|
|
60838
60833
|
acceptedMessage,
|
|
60839
|
-
result
|
|
60834
|
+
result,
|
|
60835
|
+
typedMessage
|
|
60840
60836
|
)
|
|
60841
60837
|
);
|
|
60842
60838
|
} catch (error) {
|
|
@@ -60858,7 +60854,7 @@ var ChatService = class {
|
|
|
60858
60854
|
}
|
|
60859
60855
|
}
|
|
60860
60856
|
}
|
|
60861
|
-
async handleMessageAccepted(chatId, chat, request, acceptedMessage, result) {
|
|
60857
|
+
async handleMessageAccepted(chatId, chat, request, acceptedMessage, result, typedMessage = request.message) {
|
|
60862
60858
|
const submittedAt = request.submittedAt ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
60863
60859
|
const { event: acceptedEvent, sender: recordedSender } = createTurnMetadata(
|
|
60864
60860
|
acceptedMessage,
|
|
@@ -60894,7 +60890,7 @@ var ChatService = class {
|
|
|
60894
60890
|
}
|
|
60895
60891
|
chat.acceptedUserEvents.set(result.messageId, acceptedEvent);
|
|
60896
60892
|
}
|
|
60897
|
-
chat.persisted.lastMessageText =
|
|
60893
|
+
chat.persisted.lastMessageText = typedMessage.trim().slice(0, LAST_MESSAGE_PREVIEW_MAX) || null;
|
|
60898
60894
|
chat.persisted.model = acceptedMessage.model ?? previousModel;
|
|
60899
60895
|
chat.persisted.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
60900
60896
|
if (chat.persisted.pendingForkHandoff && chat.persisted.fork) {
|
|
@@ -61182,10 +61178,11 @@ var ChatService = class {
|
|
|
61182
61178
|
if (isDefaultChat(chat.persisted) && Array.from(this.chats.values()).some((other) => other !== chat && !other.persisted.deletedAt && other.persisted.provider === chat.persisted.provider && other.persisted.title === chat.persisted.title)) {
|
|
61183
61179
|
chat.persisted.title = `${chat.persisted.title} (restored)`;
|
|
61184
61180
|
}
|
|
61181
|
+
const { deletedAt } = chat.persisted;
|
|
61185
61182
|
const restoredAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
61186
61183
|
for (const id of [chatId, ...this.collectDescendants(chatId)]) {
|
|
61187
61184
|
const target = this.chats.get(id);
|
|
61188
|
-
if (!target?.persisted.deletedAt) continue;
|
|
61185
|
+
if (!target?.persisted.deletedAt || target.persisted.deletedAt !== deletedAt) continue;
|
|
61189
61186
|
target.persisted.deletedAt = null;
|
|
61190
61187
|
target.persisted.updatedAt = restoredAt;
|
|
61191
61188
|
await this.publish({ type: "chat.created", payload: { chat: this.toSummary(target) } });
|
|
@@ -63066,7 +63063,7 @@ function createV1Routes(deps) {
|
|
|
63066
63063
|
const includeChildren = c.req.query("includeChildren") === "true";
|
|
63067
63064
|
const response = {
|
|
63068
63065
|
chats: deps.chatService.listChats(includeChildren),
|
|
63069
|
-
deletedChats: deps.chatService.listDeletedChats()
|
|
63066
|
+
deletedChats: deps.chatService.listDeletedChats(includeChildren)
|
|
63070
63067
|
};
|
|
63071
63068
|
return c.json(response);
|
|
63072
63069
|
});
|
|
@@ -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-4W7QCOK3.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-CTJLUGT2.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/relay-mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module';
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-7EHG3T5K.js";
|
|
5
5
|
import {
|
|
6
6
|
RELAY_MCP_SERVER_NAME,
|
|
7
7
|
RELAY_MCP_TOOLS,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
relaySubagentResponseSchema,
|
|
11
11
|
spawnRelaySubagentRequestSchema,
|
|
12
12
|
waitRelaySubagentRequestSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CTJLUGT2.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
|
|
16
16
|
// src/relay-mcp.ts
|