openmeld 0.3.90 → 0.3.91
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/{add-me-membership-DjYnFevf.js → add-me-membership-D-NWZyMz.js} +2 -2
- package/dist/{add-me-membership-DjYnFevf.js.map → add-me-membership-D-NWZyMz.js.map} +1 -1
- package/dist/{command-DjZ6uBsa.js → command-ByA1L4nv.js} +114 -28
- package/dist/{command-DjZ6uBsa.js.map → command-ByA1L4nv.js.map} +1 -1
- package/dist/openmeld.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { r as runSpaceAddMembers } from "./command-
|
|
3
|
+
import { r as runSpaceAddMembers } from "./command-ByA1L4nv.js";
|
|
4
4
|
//#region src/space/add-me-membership.ts
|
|
5
5
|
async function runSpaceAddMeMembership(input) {
|
|
6
6
|
return await runSpaceAddMembers(input);
|
|
@@ -8,4 +8,4 @@ async function runSpaceAddMeMembership(input) {
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { runSpaceAddMeMembership };
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=add-me-membership-
|
|
11
|
+
//# sourceMappingURL=add-me-membership-D-NWZyMz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-me-membership-
|
|
1
|
+
{"version":3,"file":"add-me-membership-D-NWZyMz.js","names":[],"sources":["../src/space/add-me-membership.ts"],"sourcesContent":["import { runSpaceAddMembers } from \"./command\";\nimport type { SpaceCommandNavigationStatus } from \"./navigation-status\";\n\nexport type SpaceAddMeMembershipInput = Parameters<\n typeof runSpaceAddMembers\n>[0];\nexport type SpaceAddMeMembershipRunner = (\n input: SpaceAddMeMembershipInput\n) => Promise<SpaceCommandNavigationStatus>;\n\nexport async function runSpaceAddMeMembership(\n input: SpaceAddMeMembershipInput\n): Promise<SpaceCommandNavigationStatus> {\n return await runSpaceAddMembers(input);\n}\n"],"mappings":";;;;AAUA,eAAsB,wBACpB,OACuC;CACvC,OAAO,MAAM,mBAAmB,KAAK;AACvC"}
|
|
@@ -34,7 +34,7 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
|
|
|
34
34
|
var package_default = {
|
|
35
35
|
$schema: "https://www.schemastore.org/package.json",
|
|
36
36
|
name: "openmeld",
|
|
37
|
-
version: "0.3.
|
|
37
|
+
version: "0.3.91",
|
|
38
38
|
openMeldReleaseDate: "2026-08-24",
|
|
39
39
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
40
40
|
license: "MIT",
|
|
@@ -6215,6 +6215,11 @@ const createSharedDispatchShell = (input) => {
|
|
|
6215
6215
|
bridgeSpec,
|
|
6216
6216
|
request: dispatchInput
|
|
6217
6217
|
});
|
|
6218
|
+
const requiredRepairConversationId = resolveRequiredRepairConversationId({
|
|
6219
|
+
invokeRequest,
|
|
6220
|
+
policy: input.repairConversationPolicy,
|
|
6221
|
+
request: dispatchInput
|
|
6222
|
+
});
|
|
6218
6223
|
const result = await resolvedInvoke(invokeRequest);
|
|
6219
6224
|
const contextDelta = input.resolveSuccessContextDelta?.({
|
|
6220
6225
|
bridgeSpec,
|
|
@@ -6225,8 +6230,12 @@ const createSharedDispatchShell = (input) => {
|
|
|
6225
6230
|
bridgeSpec,
|
|
6226
6231
|
contextDelta: result.contextDelta
|
|
6227
6232
|
});
|
|
6233
|
+
const protectedContextDelta = requireCanonicalRepairConversation({
|
|
6234
|
+
canonicalConversationId: requiredRepairConversationId,
|
|
6235
|
+
contextDelta
|
|
6236
|
+
});
|
|
6228
6237
|
return {
|
|
6229
|
-
...
|
|
6238
|
+
...protectedContextDelta ? { contextDelta: protectedContextDelta } : {},
|
|
6230
6239
|
...result.diagnostics ? { diagnostics: result.diagnostics } : {},
|
|
6231
6240
|
output: result.output,
|
|
6232
6241
|
status: "success",
|
|
@@ -6237,6 +6246,34 @@ const createSharedDispatchShell = (input) => {
|
|
|
6237
6246
|
}
|
|
6238
6247
|
};
|
|
6239
6248
|
};
|
|
6249
|
+
var AdapterRepairConversationMissingError = class extends Error {
|
|
6250
|
+
code = "repair.conversation_missing";
|
|
6251
|
+
errorType = "adapter";
|
|
6252
|
+
constructor() {
|
|
6253
|
+
super("repair.conversation_missing: repair requires an existing Agent Controller conversation");
|
|
6254
|
+
this.name = "AdapterRepairConversationMissingError";
|
|
6255
|
+
}
|
|
6256
|
+
};
|
|
6257
|
+
var AdapterRepairConversationError = class extends Error {
|
|
6258
|
+
code = "repair.conversation_changed";
|
|
6259
|
+
errorType = "adapter";
|
|
6260
|
+
constructor() {
|
|
6261
|
+
super("repair.conversation_changed: repair could not preserve the existing Agent Controller conversation");
|
|
6262
|
+
this.name = "AdapterRepairConversationError";
|
|
6263
|
+
}
|
|
6264
|
+
};
|
|
6265
|
+
const resolveRequiredRepairConversationId = (input) => {
|
|
6266
|
+
if (input.policy !== "require_canonical" || input.request.executionMode !== "repair") return null;
|
|
6267
|
+
const canonicalConversationId = normalizeOptionalText$67(input.invokeRequest.agentControllerConversationId);
|
|
6268
|
+
if (!canonicalConversationId) throw new AdapterRepairConversationMissingError();
|
|
6269
|
+
return canonicalConversationId;
|
|
6270
|
+
};
|
|
6271
|
+
const requireCanonicalRepairConversation = (input) => {
|
|
6272
|
+
if (!input.canonicalConversationId) return input.contextDelta;
|
|
6273
|
+
const observedConversationId = normalizeOptionalText$67(input.contextDelta?.agentControllerConversationId);
|
|
6274
|
+
if (input.contextDelta?.refreshed === true || observedConversationId !== input.canonicalConversationId) throw new AdapterRepairConversationError();
|
|
6275
|
+
return input.contextDelta;
|
|
6276
|
+
};
|
|
6240
6277
|
const createSharedControlShell = (input) => ({
|
|
6241
6278
|
cancel: async (requestInput) => {
|
|
6242
6279
|
const request = buildAdapterCancelRequest(requestInput);
|
|
@@ -6311,6 +6348,7 @@ const invokeWithSingleContextHeal = async (input) => {
|
|
|
6311
6348
|
};
|
|
6312
6349
|
} catch (firstError) {
|
|
6313
6350
|
if (!(input.contextId && input.isContextLostError(firstError))) throw firstError;
|
|
6351
|
+
if (input.contextLossPolicy === "fail") throw firstError;
|
|
6314
6352
|
await input.onContextLost?.();
|
|
6315
6353
|
try {
|
|
6316
6354
|
const healed = await input.invokeOnce(null);
|
|
@@ -7420,6 +7458,7 @@ async function invokeClaudeCliTransport(input) {
|
|
|
7420
7458
|
launchContract: input.launchContract
|
|
7421
7459
|
});
|
|
7422
7460
|
const invokedAtMs = Date.now();
|
|
7461
|
+
const canonicalRepairSessionId = input.executionMode === "repair" ? normalizeOptionalText$62(input.sessionId) : null;
|
|
7423
7462
|
let latestOutput = "";
|
|
7424
7463
|
let latestResultIsError = false;
|
|
7425
7464
|
let resolvedSessionId = normalizeOptionalText$62(input.sessionId);
|
|
@@ -7511,7 +7550,7 @@ async function invokeClaudeCliTransport(input) {
|
|
|
7511
7550
|
});
|
|
7512
7551
|
return {
|
|
7513
7552
|
output,
|
|
7514
|
-
sessionId: normalizeOptionalText$62(resolvedSessionId),
|
|
7553
|
+
sessionId: canonicalRepairSessionId ?? normalizeOptionalText$62(resolvedSessionId),
|
|
7515
7554
|
telemetry: buildClaudeCliTelemetry({
|
|
7516
7555
|
driverResult,
|
|
7517
7556
|
firstOutputAtMs,
|
|
@@ -7544,7 +7583,10 @@ function buildClaudeCliTelemetry(input) {
|
|
|
7544
7583
|
}
|
|
7545
7584
|
const buildClaudeArgs = (input) => {
|
|
7546
7585
|
const args = [];
|
|
7547
|
-
if (input.sessionId)
|
|
7586
|
+
if (input.sessionId) {
|
|
7587
|
+
args.push("--resume", input.sessionId);
|
|
7588
|
+
if (input.executionMode === "repair") args.push("--fork-session");
|
|
7589
|
+
}
|
|
7548
7590
|
appendClaudeConversationPolicyArgs(args, input.conversationPolicy);
|
|
7549
7591
|
args.push("-p", input.prompt);
|
|
7550
7592
|
appendClaudeAgentControllerPermissionModeArgs(args, {
|
|
@@ -7802,6 +7844,10 @@ var ClaudeAgentSdkTransportError = class extends Error {
|
|
|
7802
7844
|
function isFailedResultMessage(resultMessage) {
|
|
7803
7845
|
return resultMessage.subtype !== "success" || resultMessage.is_error === true;
|
|
7804
7846
|
}
|
|
7847
|
+
function resolveCanonicalRepairSessionId(input) {
|
|
7848
|
+
if (input.executionMode !== "repair") return null;
|
|
7849
|
+
return normalizeOptionalText$61(input.sessionId);
|
|
7850
|
+
}
|
|
7805
7851
|
async function invokeClaudeAgentSdkTransport(input) {
|
|
7806
7852
|
const prompt = normalizeOptionalText$61(input.prompt);
|
|
7807
7853
|
if (!prompt) throw new ClaudeAgentSdkTransportError({
|
|
@@ -7810,6 +7856,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
7810
7856
|
message: "schema.invalid: prompt is required"
|
|
7811
7857
|
});
|
|
7812
7858
|
const resumedContext = normalizeOptionalText$61(input.sessionId) !== null;
|
|
7859
|
+
const canonicalRepairSessionId = resolveCanonicalRepairSessionId(input);
|
|
7813
7860
|
const streamingMode = input.streamingMode ?? "final";
|
|
7814
7861
|
const resources = await createClaudeAgentSdkInvocationResources({
|
|
7815
7862
|
launchContract: input.launchContract,
|
|
@@ -7893,10 +7940,10 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
7893
7940
|
latestPlanDocument = nextState.latestPlanDocument;
|
|
7894
7941
|
resultMessage = nextState.resultMessage;
|
|
7895
7942
|
resolvedSessionId = nextState.resolvedSessionId;
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7943
|
+
await emitClaudeProviderConversationObservation({
|
|
7944
|
+
canonicalRepairSessionId,
|
|
7945
|
+
observedConversationId: nextState.observedConversationId,
|
|
7946
|
+
onRuntimeEvent: input.onRuntimeEvent
|
|
7900
7947
|
});
|
|
7901
7948
|
}
|
|
7902
7949
|
} catch (error) {
|
|
@@ -7981,7 +8028,7 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
7981
8028
|
});
|
|
7982
8029
|
return {
|
|
7983
8030
|
output,
|
|
7984
|
-
sessionId: normalizeOptionalText$61(resolvedSessionId),
|
|
8031
|
+
sessionId: canonicalRepairSessionId ?? normalizeOptionalText$61(resolvedSessionId),
|
|
7985
8032
|
telemetry: buildClaudeAgentSdkTelemetry({
|
|
7986
8033
|
firstOutputAtMs,
|
|
7987
8034
|
firstStderrAtMs,
|
|
@@ -7993,6 +8040,14 @@ async function invokeClaudeAgentSdkTransport(input) {
|
|
|
7993
8040
|
})
|
|
7994
8041
|
};
|
|
7995
8042
|
}
|
|
8043
|
+
async function emitClaudeProviderConversationObservation(input) {
|
|
8044
|
+
if (!input.observedConversationId || input.canonicalRepairSessionId) return;
|
|
8045
|
+
await input.onRuntimeEvent?.({
|
|
8046
|
+
agentControllerConversationId: input.observedConversationId,
|
|
8047
|
+
phase: "provider_conversation_observed",
|
|
8048
|
+
tsMs: Date.now()
|
|
8049
|
+
});
|
|
8050
|
+
}
|
|
7996
8051
|
async function emitClaudeCodeUsageLimits(input) {
|
|
7997
8052
|
const observedAtMs = Date.now();
|
|
7998
8053
|
const usageLimits = projectClaudeCodeUsageLimits({
|
|
@@ -8129,7 +8184,10 @@ function buildClaudeAgentSdkOptions(input) {
|
|
|
8129
8184
|
} : {}
|
|
8130
8185
|
};
|
|
8131
8186
|
const sessionId = normalizeOptionalText$61(input.sessionId);
|
|
8132
|
-
if (sessionId)
|
|
8187
|
+
if (sessionId) {
|
|
8188
|
+
options.resume = sessionId;
|
|
8189
|
+
if (input.executionMode === "repair") options.forkSession = true;
|
|
8190
|
+
}
|
|
8133
8191
|
const conversationPolicyOptions = resolveClaudeConversationPolicyOptions(input.conversationPolicy);
|
|
8134
8192
|
const model = conversationPolicyOptions.model;
|
|
8135
8193
|
if (model) options.model = model;
|
|
@@ -8337,6 +8395,7 @@ var ClaudeRuntimeError = class extends Error {
|
|
|
8337
8395
|
async function invokeClaudeWithSingleContextHeal(input) {
|
|
8338
8396
|
const result = await invokeWithSingleContextHeal({
|
|
8339
8397
|
contextId: input.sessionId,
|
|
8398
|
+
contextLossPolicy: input.executionMode === "repair" ? "fail" : "rebuild",
|
|
8340
8399
|
createRebuildFailedError: (error) => {
|
|
8341
8400
|
const providerAccessEvidence = getClaudeProviderAccessEvidence(error);
|
|
8342
8401
|
const telemetry = getClaudeTelemetry(error);
|
|
@@ -8506,6 +8565,7 @@ const createClaudeCodeAdapter = (options) => {
|
|
|
8506
8565
|
bridgeSpec: CLAUDE_CODE_CONVERSATION_BRIDGE_SPEC,
|
|
8507
8566
|
invoke: options.invoke,
|
|
8508
8567
|
invokeByMode: options.invokeByMode,
|
|
8568
|
+
repairConversationPolicy: "require_canonical",
|
|
8509
8569
|
resolveDefaultInvoke: () => resolveDefaultClaudeCodeInvoke({
|
|
8510
8570
|
options,
|
|
8511
8571
|
registerAgentSdkQuery
|
|
@@ -11075,6 +11135,7 @@ var CodexRuntimeError = class extends Error {
|
|
|
11075
11135
|
async function invokeCodexWithSingleContextHeal(input) {
|
|
11076
11136
|
const result = await invokeWithSingleContextHeal({
|
|
11077
11137
|
contextId: input.threadId,
|
|
11138
|
+
contextLossPolicy: input.executionMode === "repair" ? "fail" : "rebuild",
|
|
11078
11139
|
createRebuildFailedError: (error) => new CodexRuntimeError({
|
|
11079
11140
|
code: "context.rebuild_failed",
|
|
11080
11141
|
errorType: "adapter",
|
|
@@ -11113,6 +11174,7 @@ async function invokeCodexWithSingleContextHeal(input) {
|
|
|
11113
11174
|
async function invokeCodexAppServer(input) {
|
|
11114
11175
|
const result = await invokeWithSingleContextHeal({
|
|
11115
11176
|
contextId: input.threadId,
|
|
11177
|
+
contextLossPolicy: input.executionMode === "repair" ? "fail" : "rebuild",
|
|
11116
11178
|
createRebuildFailedError: (error) => new CodexRuntimeError({
|
|
11117
11179
|
code: "context.rebuild_failed",
|
|
11118
11180
|
errorType: "adapter",
|
|
@@ -11354,6 +11416,7 @@ const createCodexAdapter = (options) => {
|
|
|
11354
11416
|
options,
|
|
11355
11417
|
registerAppServerTurn
|
|
11356
11418
|
}),
|
|
11419
|
+
repairConversationPolicy: "require_canonical",
|
|
11357
11420
|
resolveDefaultInvoke: () => resolveDefaultCodexInvoke(options),
|
|
11358
11421
|
runtimeOptions: options
|
|
11359
11422
|
});
|
|
@@ -12548,6 +12611,7 @@ function createGrokBuildAdapter(options) {
|
|
|
12548
12611
|
}),
|
|
12549
12612
|
...options.invokeByMode ?? {}
|
|
12550
12613
|
},
|
|
12614
|
+
repairConversationPolicy: "require_canonical",
|
|
12551
12615
|
resolveDefaultInvoke: () => null,
|
|
12552
12616
|
runtimeOptions: options
|
|
12553
12617
|
}),
|
|
@@ -12577,6 +12641,7 @@ function createDefaultGrokBuildInvoke(input) {
|
|
|
12577
12641
|
} : void 0;
|
|
12578
12642
|
const result = await invokeWithSingleContextHeal({
|
|
12579
12643
|
contextId: normalizeOptionalText$50(dispatchInput.agentControllerConversationId),
|
|
12644
|
+
contextLossPolicy: dispatchInput.executionMode === "repair" ? "fail" : "rebuild",
|
|
12580
12645
|
createRebuildFailedError: (error) => new GrokBuildAcpTransportError({
|
|
12581
12646
|
cause: error,
|
|
12582
12647
|
code: "context.rebuild_failed",
|
|
@@ -13469,23 +13534,31 @@ async function invokeOpenCodeServerTransport(input) {
|
|
|
13469
13534
|
...input,
|
|
13470
13535
|
deadlineMs
|
|
13471
13536
|
});
|
|
13537
|
+
const client = createOpencodeClient({
|
|
13538
|
+
baseUrl: serverUrl,
|
|
13539
|
+
directory: input.openCodeWorkdir,
|
|
13540
|
+
responseStyle: "data",
|
|
13541
|
+
throwOnError: true
|
|
13542
|
+
});
|
|
13543
|
+
const canonicalRepairSessionId = input.executionMode === "repair" ? normalizeOptionalText$46(input.sessionId) : null;
|
|
13472
13544
|
let result;
|
|
13473
13545
|
try {
|
|
13546
|
+
const executionSessionId = canonicalRepairSessionId ? await forkOpenCodeSessionWithClient({
|
|
13547
|
+
client,
|
|
13548
|
+
openCodeWorkdir: input.openCodeWorkdir,
|
|
13549
|
+
sourceSessionId: canonicalRepairSessionId
|
|
13550
|
+
}) : normalizeOptionalText$46(input.sessionId);
|
|
13474
13551
|
result = await runOpenCodeServerTurn({
|
|
13475
|
-
client
|
|
13476
|
-
baseUrl: serverUrl,
|
|
13477
|
-
directory: input.openCodeWorkdir,
|
|
13478
|
-
responseStyle: "data",
|
|
13479
|
-
throwOnError: true
|
|
13480
|
-
}),
|
|
13552
|
+
client,
|
|
13481
13553
|
conversationPolicy: input.conversationPolicy,
|
|
13482
13554
|
instructionPrompt: input.instructionPrompt,
|
|
13555
|
+
observedSessionId: canonicalRepairSessionId,
|
|
13483
13556
|
onInteractionRequest: input.onInteractionRequest,
|
|
13484
13557
|
onPreview: input.onPreview,
|
|
13485
13558
|
openCodeWorkdir: input.openCodeWorkdir,
|
|
13486
13559
|
prompt,
|
|
13487
13560
|
server,
|
|
13488
|
-
sessionId:
|
|
13561
|
+
sessionId: executionSessionId,
|
|
13489
13562
|
streamingMode: input.streamingMode ?? "final"
|
|
13490
13563
|
});
|
|
13491
13564
|
} catch (error) {
|
|
@@ -13500,7 +13573,7 @@ async function invokeOpenCodeServerTransport(input) {
|
|
|
13500
13573
|
});
|
|
13501
13574
|
return {
|
|
13502
13575
|
output: result.output,
|
|
13503
|
-
sessionId: result.sessionId,
|
|
13576
|
+
sessionId: canonicalRepairSessionId ?? result.sessionId,
|
|
13504
13577
|
telemetry: server.buildTelemetry({
|
|
13505
13578
|
invokedAtMs,
|
|
13506
13579
|
previewEmitted: result.previewEmitted,
|
|
@@ -13528,13 +13601,11 @@ async function forkOpenCodeServerSession(input) {
|
|
|
13528
13601
|
responseStyle: "data",
|
|
13529
13602
|
throwOnError: true
|
|
13530
13603
|
});
|
|
13531
|
-
const sessionId =
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
throwOnError: true
|
|
13537
|
-
}));
|
|
13604
|
+
const sessionId = await forkOpenCodeSessionWithClient({
|
|
13605
|
+
client,
|
|
13606
|
+
openCodeWorkdir: input.openCodeWorkdir,
|
|
13607
|
+
sourceSessionId
|
|
13608
|
+
});
|
|
13538
13609
|
const title = normalizeOptionalText$46(input.title);
|
|
13539
13610
|
if (title) try {
|
|
13540
13611
|
await client.session.update({
|
|
@@ -13558,6 +13629,15 @@ async function forkOpenCodeServerSession(input) {
|
|
|
13558
13629
|
await server.close();
|
|
13559
13630
|
}
|
|
13560
13631
|
}
|
|
13632
|
+
async function forkOpenCodeSessionWithClient(input) {
|
|
13633
|
+
return readOpenCodeSessionId(await input.client.session.fork({
|
|
13634
|
+
directory: input.openCodeWorkdir,
|
|
13635
|
+
sessionID: input.sourceSessionId
|
|
13636
|
+
}, {
|
|
13637
|
+
responseStyle: "data",
|
|
13638
|
+
throwOnError: true
|
|
13639
|
+
}));
|
|
13640
|
+
}
|
|
13561
13641
|
async function startHealthyOpenCodeServer(input) {
|
|
13562
13642
|
const startupTimeoutLimits = [SERVER_INITIAL_STARTUP_TIMEOUT_MS, SERVER_STARTUP_TIMEOUT_MS];
|
|
13563
13643
|
let lastError = null;
|
|
@@ -13675,7 +13755,7 @@ function readRemainingTimeoutMs(deadlineMs) {
|
|
|
13675
13755
|
}
|
|
13676
13756
|
async function runOpenCodeServerTurn(input) {
|
|
13677
13757
|
const sessionId = await resolveOpenCodeSessionId(input);
|
|
13678
|
-
input.server.emitProviderConversationObserved(sessionId);
|
|
13758
|
+
input.server.emitProviderConversationObserved(normalizeOptionalText$46(input.observedSessionId) ?? sessionId);
|
|
13679
13759
|
const interactionHandler = new OpenCodeInteractionHandler({
|
|
13680
13760
|
client: input.client,
|
|
13681
13761
|
directory: input.openCodeWorkdir,
|
|
@@ -14398,6 +14478,7 @@ var OpenCodeRuntimeError = class extends Error {
|
|
|
14398
14478
|
async function invokeOpenCodeWithSingleContextHeal(input) {
|
|
14399
14479
|
const result = await invokeWithSingleContextHeal({
|
|
14400
14480
|
contextId: input.sessionId,
|
|
14481
|
+
contextLossPolicy: input.executionMode === "repair" ? "fail" : "rebuild",
|
|
14401
14482
|
createRebuildFailedError: (error) => new OpenCodeRuntimeError({
|
|
14402
14483
|
code: "context.rebuild_failed",
|
|
14403
14484
|
errorType: "adapter",
|
|
@@ -14435,12 +14516,13 @@ async function invokeOpenCodeWithSingleContextHeal(input) {
|
|
|
14435
14516
|
}
|
|
14436
14517
|
async function invokeOpenCodeOnce(input) {
|
|
14437
14518
|
try {
|
|
14438
|
-
if (input.onInteractionRequest) return await invokeOpenCodeServerTransport({
|
|
14519
|
+
if (input.onInteractionRequest || input.executionMode === "repair" && input.sessionId) return await invokeOpenCodeServerTransport({
|
|
14439
14520
|
launchContract: input.launchContract,
|
|
14440
14521
|
openCodeTimeoutMs: input.openCodeTimeoutMs,
|
|
14441
14522
|
openCodeWorkdir: input.openCodeWorkdir,
|
|
14442
14523
|
conversationPolicy: input.conversationPolicy,
|
|
14443
14524
|
env: input.env,
|
|
14525
|
+
executionMode: input.executionMode,
|
|
14444
14526
|
instructionPrompt: input.instructionPrompt,
|
|
14445
14527
|
onInteractionRequest: input.onInteractionRequest,
|
|
14446
14528
|
...input.onPreview ? { onPreview: input.onPreview } : {},
|
|
@@ -14495,6 +14577,7 @@ const createOpenCodeAdapter = (options) => {
|
|
|
14495
14577
|
bridgeSpec: OPENCODE_CONVERSATION_BRIDGE_SPEC,
|
|
14496
14578
|
invoke: options.invoke,
|
|
14497
14579
|
invokeByMode: options.invokeByMode,
|
|
14580
|
+
repairConversationPolicy: "require_canonical",
|
|
14498
14581
|
resolveDefaultInvoke: () => resolveDefaultOpenCodeInvoke(options),
|
|
14499
14582
|
runtimeOptions: options
|
|
14500
14583
|
});
|
|
@@ -24322,6 +24405,7 @@ function createCursorAdapter(options) {
|
|
|
24322
24405
|
}),
|
|
24323
24406
|
...options.invokeByMode ?? {}
|
|
24324
24407
|
},
|
|
24408
|
+
repairConversationPolicy: "require_canonical",
|
|
24325
24409
|
resolveDefaultInvoke: () => null,
|
|
24326
24410
|
runtimeOptions: options
|
|
24327
24411
|
}),
|
|
@@ -24347,6 +24431,7 @@ function createDefaultCursorInvoke(input) {
|
|
|
24347
24431
|
} : void 0;
|
|
24348
24432
|
const result = await invokeWithSingleContextHeal({
|
|
24349
24433
|
contextId: normalizeOptionalText$40(dispatchInput.agentControllerConversationId),
|
|
24434
|
+
contextLossPolicy: dispatchInput.executionMode === "repair" ? "fail" : "rebuild",
|
|
24350
24435
|
createRebuildFailedError: (error) => error instanceof CursorAcpTransportError && error.code === "cursor.plan_upgrade_required" ? error : new CursorAcpTransportError({
|
|
24351
24436
|
cause: error,
|
|
24352
24437
|
code: "context.rebuild_failed",
|
|
@@ -25138,6 +25223,7 @@ var OpenClawRuntimeError = class extends Error {
|
|
|
25138
25223
|
async function invokeOpenClawWithSingleContextHeal(input) {
|
|
25139
25224
|
const result = await invokeWithSingleContextHeal({
|
|
25140
25225
|
contextId: input.sessionId,
|
|
25226
|
+
contextLossPolicy: "rebuild",
|
|
25141
25227
|
createRebuildFailedError: (error) => new OpenClawRuntimeError({
|
|
25142
25228
|
code: "context.rebuild_failed",
|
|
25143
25229
|
errorType: "adapter",
|
|
@@ -106408,4 +106494,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
106408
106494
|
//#endregion
|
|
106409
106495
|
export { runAgentsRepair as $, readAgentActivityIntegrationStatus as $a, performManagedInstall as $i, formatDaemonServiceDowngradeBlockedRecommendation as $n, resolveProfileWorkspaceRuntime as $r, readBundledOpenMeldCliSkillDocumentByPath as $t, assertFullSignalIdArgument as A, alignSelectedOpenMeldProfileStorage as Aa, getAgentControllerPermissionModeDisplayMetadata as Ai, inspectSpaceCacheFile as An, unbindProject as Ao, buildAgentOverviewFromContract as Ar, shouldEmitAgentOverview as At, persistAgentTransportSelection as B, getProfileDefaultView as Ba, getCurrentCommandCheckState as Bi, formatRemovedCcRelationMessage as Bn, outLine as Bo, runDaemonServiceFullAlignment as Br, parseJsonResponse$1 as Bt, toSpaceMetaUpsertInput as C, createOpenMeldAgentProfile as Ca, classifyDaemonServiceWakeability as Ci, submitProfileRuntimeAgentControllerReport as Cn, bindProject as Co, registerSpaceMemberSelectionOptions as Cr, runDaemonTeardownStrict as Ct, formatHumanReadTargetList as D, primeOpenMeldProfilesSessionCache as Da, resolveOpenMeldEnvironmentTarget as Di, resolveLocalAgentControllerBlockerReasonCodes as Dn, removeProjectConnection as Do, registerDaemonControlTargetOptions as Dr, reconcileCliVersionView as Dt, buildHumanReplyContextSummary as E, listOpenMeldProfiles as Ea, resolveDaemonDeviceId as Ei, collectLocalAgentControllerInventory as En, migrateProjectBindingStore as Eo, getCliVersionInfo as Er, buildProfileWorkspaceRows as Et, emitSpaceAgentOverview as F, buildHumanAuthenticationCard as Fa, resolveAgentExecutionStatus as Fi, buildSignalIndex as Fn, renderTextInfoCard as Fo, OPENMELD_AGENT_MENTAL_MODEL_LINES as Fr, fetchSpaceMeta as Ft, runAgentsCustomList as G, requestLocalAgentActivitySync as Ga, resolveVersionChangeDirection as Gi, assessCliUpdate as Gn, cliJsonSkillsShowEnvelopeSchema as Go, formatAgentReplyReadinessLabel as Gr, runDaemonStartDecisionPrompt as Gt, runAgents as H, LocalProjectConnectionError as Ha, resetCurrentCommandCheckState as Hi, promptSearchSelect as Hn, cliJsonOutputEnvelopeSchema as Ho, resolveServiceReadinessFromServiceStatus as Hr, writeInstalledLocalComponentsSnapshot as Ht, emitSpaceCliAgentOverview as I, createAuthenticationError as Ia, resolveAgentProfileEditCapabilities as Ii, buildSignalMessageReadProjection as In, sanitizeTerminalDisplayText as Io, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Ir, updateSpaceMeta as It, runAgentsDetect as J, resolveAgentActivityRouteForPath as Ja, getDaemonSystemServiceLogPath as Ji, readDispatchOwnedRuntimeGuard as Jn, revokeOrganizationJoinLinkResponseSchema as Jo, mapAgentReplyReadinessToLegacyAutoReply as Jr, runSkillsEnsure as Jt, runAgentsCustomRemove as K, isAgentActivityRouteRegistered as Ka, readCurrentDaemonRuntimeContext as Ki, isCliUpdateCheckApplicable as Kn, getOrganizationJoinLinkResponseSchema as Ko, formatDeviceReplyReadinessLabel as Kr, collectSkillsReadinessSnapshot as Kt, prepareLocalAgentReadiness as L, resolveAuthenticationGuidance as La, resolveEvidenceSyncHealth as Li, buildSpaceRoundReadProjection as Ln, emitCliJsonEnvelope as Lo, areAllowedActionsEquivalent as Lr, readGatewayJsonResponse as Lt, prepareAuthenticatedSpaceCommandContext as M, getSelectedOpenMeldProfileId as Ma, listAgentControllerPermissionModeOptions as Mi, assertNoRemovedCcSpaceAddressingSyntax as Mn, enqueueControllerTaskLifecycleEventWhileLocked as Mo, formatDualViewGuideForDisplay as Mr, readDaemonStartFailureLogTailLines as Mt, resolveOpenMeldProfileForSpaceCommand as N, setSelectedOpenMeldProfileId as Na, parseAgentControllerRef as Ni, buildDispatchResultMessageReadProjection as Nn, readControllerTaskLifecycleOutboxHealth as No, buildDualViewGuideMessage as Nr, fetchSpaceUpdates as Nt, parseEnvelope as O, resolveOpenMeldProfile as Oa, buildAgentControllerRef as Oi, resolveLocalAgentControllerLaunchability as On, runIfAgentActivityBindingGenerationIsCurrent as Oo, registerAuthLoginRequestOptions as Or, emitDaemonAgentOverview as Ot, resolveSpaceAccessLabel as P, buildAgentAuthenticationGuide as Pa, resolveAgentControllerPermissionModeForController as Pi, buildDispatchResultReplyWorkflowProjection as Pn, renderInfoCard as Po, formatAgentOverviewPayload as Pr, createCliSpaceApi as Pt, runAgentsManage as Q, installAgentActivityIntegrations as Qa, buildInstallSelfJsonPayload as Qi, resolveElapsedTimeMs as Qn, createModelCatalogReadSession as Qr, ensureLocalSkills as Qt, buildReplyReadinessGuidance as R, resolveAuthenticationGuidanceFromError as Ra, resolveNativeAgentControllerPermissionModeForController as Ri, buildUpdatesReplyWorkflowProjection as Rn, errLine as Ro, buildAgentFacingPublicationModeGuideLines as Rr, readGatewayTextResponse as Rt, loadSpaceSignalIndexOrNull as S, resolveOpenMeldProfileOrNull as Sa, classifyDaemonServiceRunStartability as Si, computeRetryDelayMs as Sn, removeProjectOutbox as So, getCommandHintsFromContract as Sr, runDaemonStop as St, buildFormalSignalReadPayload as T, deleteOpenMeldProfile as Ta, ensureDaemonRuntimePaths as Ti, submitRuntimeAgentControllerReports as Tn, listProjectConnectionsWithStatus as To, registerSkillsTargetSelectionOptions as Tr, buildProfileWorkspacePresentation as Tt, runAgentsConfig as U, validateLocalProjectConnectionPath as Ua, startCurrentCommandCheckScope as Ui, isReturnKeypress as Un, cliJsonSkillsListEnvelopeSchema as Uo, resolveDaemonServiceFreshnessWarning as Ur, resolveDaemonServiceParticipationStatus as Ut, resolveAgentProfileSetup as V, setProfileDefaultView as Va, isCurrentCommandCheckScopeActive as Vi, promptSearchMultiselect as Vn, cliBinaryDeltaPatchSchema as Vo, formatDaemonFailureContextText as Vr, resolveLocalComponentsStatus as Vt, runAgentsCustomAdd as W, LocalDaemonControlPlaneClientError as Wa, inspectDaemonServiceInventory as Wi, runInteractivePrompt as Wn, cliJsonSkillsLoadEnvelopeSchema as Wo, resolveCurrentReplyReadinessSnapshot as Wr, runDaemonServiceParticipationGate as Wt, runAgentsEnable as X, AGENT_ACTIVITY_INTEGRATION_OWNER as Xa, readDaemonServiceJobCrashExitCode as Xi, writeDispatchSpaceActionRecord as Xn, package_default as Xo, resolveOpenClawLocalDiagnosticsValue as Xr, runSkillsUninstall as Xt, runAgentsDisable as Y, unregisterAgentActivityRoute as Ya, isDaemonServiceJobNeverSpawned as Yi, readDispatchSpaceActionContextFromEnv as Yn, compareAgentControllerRefsForDisplay as Yo, resolveGatewayChainReadiness as Yr, runSkillsInstall as Yt, runAgentsList as Z, defaultManagedIntegrationPaths as Za, resolveDaemonServiceManager as Zi, formatElapsedTime as Zn, syncProfileWorkspaceState as Zr, runSkillsUpdate as Zt, runSpaceWriteWithPasswordRetry as _, parseCliViewMode as _a, buildDaemonRouteObservationPresentation as _i, promptTextEntry as _n, normalizeSharedSessionTitle as _o, createSpaceUpdatesGuideError as _r, runDaemonInterrupt as _t, runSpaceDelete as a, readVersionState as aa, setOpenMeldManagedProfileWorkspace as ai, ensureCommandAuthenticationOrCancel as an, formatOpenMeldCliLine as ao, createProfileMenuGuideError as ar, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, isSelectedOpenMeldProfileRequiredError as ba, buildDaemonServiceTargetSpec as bi, resolveServiceParticipationReadiness as bn, removeProjectInbox as bo, createUpgradeConfirmationGuideError as br, runDaemonSnapshot as bt, runSpaceLeave as c, resolveOpenMeldDistribution as ca, syncDeviceRuntimeStateProjection as ci, runAuthLogout as cn, resolveSetupFollowUpCliEntryCommand as co, createSpaceAliasTargetGuideError as cr, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, resolveCurrentDaemonExpectedVersion as da, listAgentTargetStates as di, buildAuthStatusRows as dn, readDaemonServiceContract as do, createSpaceMenuGuideError as dr, resolveSpaceSendText as dt, buildNextVersionState as ea, ensureOpenMeldManagedProfileWorkspace as ei, readRuntimeReportingHealthState as en, resolveAgentActivityDispatcherCommand as eo, formatDaemonServiceMissingRecommendation as er, runAgentsShow as et, runSpaceSend as f, buildHumanErrorCopy as fa, reconcileNewRunnableBuiltinAgentsForSetup as fi, buildAuthStatusSnapshot as fn, upsertDaemonServiceContract as fo, createSpacePublicationSetGuideError as fr, runDaemon as ft, runSpaceReadWithPasswordRetry as g, formatMessage as ga, PREPARE_SESSION_RECONNECT_GRACE_MS as gi, resolveCreateProfileName as gn, resolveObservedAgentActivityBinding as go, createSpaceTargetGuideError as gr, runDaemonInstall as gt, uploadPreparedSpaceFiles as h, createPresenter as ha, resolveLocalRegistryAgentIdFromAgentControllerRef as hi, resolveCreateProfileKind as hn, buildAgentActivityEvent as ho, createSpaceSubcommandTargetGuideError as hr, runDaemonCancel as ht, runSpaceCreate as i, fetchLatestPackageInfo as ia, setCustomProfileWorkspace as ii, buildCommandAuthenticationPromptMessage as in, formatOpenMeldCliCommands as io, createProfileCreateGuideError as ir, colorizeDisplayProfileLabel as it, assertValidSpaceIdTarget as j, clearSelectedOpenMeldProfileId as ja, getAgentControllerPermissionModeFieldLabel as ji, upsertSpaceConfig as jn, canonicalizeLocalProjectPath as jo, DualViewGuideError as jr, runDaemonStartupPreflight as jt, isSpaceCommandOutputHandledError as k, updateOpenMeldProfile as ka, createAgentExecutionStatusDisplayRows as ki, resolveLocalAgentControllerReportDecision as kn, setDefaultProjectConnection as ko, registerBuiltinAgentSelectionOptions as kr, createDelayedSpinner as kt, runSpaceList as l, resolveDaemonRuntimeContractCompatibility as la, createPrimaryBindingReadSession as li, runAuthMenu as ln, resolveUserFacingCliEntryCommand as lo, createSpaceContractSetGuideError as lr, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, renderHumanTextErrorCard as ma, notifyDaemonRouteCatalogChanged as mi, createProfileByKind as mn, removeAgentActivityContextCache as mo, createSpaceResultGuideError as mr, runDaemonBackgroundStartForDecision as mt, promptAndConfirmSpacePassword as n, ensureVersionStateReady as na, readProfileWorkspaceConfig as ni, connectWebSocket as nn, formatInlineOpenMeldCliCommands as no, createDoctorFailedGuideError as nr, postLocalParticipationMutationReconcile as nt, runSpaceHistory as o, writeVersionState as oa, validateCustomProfileWorkspacePath as oi, evaluateCommandAuthentication as on, formatOpenMeldCliTextBlock as oo, createResetConfirmationGuideError as or, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, renderHumanErrorCard as pa, listBuiltinAgentsRegistryEntries as pi, formatActiveOrganizationLabel as pn, readAgentActivityContextForPath as po, createSpaceRemoveMembersGuideError as pr, runDaemonAutostart as pt, runAgentsCustomUpdate as q, registerAgentActivityRoute as qa, readCurrentObservedDaemonRuntimeStatus as qi, assertDispatchOwnedRuntimePublicWriteAllowed as qn, organizationJoinLinkErrorResponseSchema as qo, formatHumanReplyReadinessReason as qr, runSkillsCheck as qt, runSpaceAddMembers as r, fetchLatestCliBinaryRelease as ra, resolveConfiguredProfileWorkspacePath as ri, assessServerRequiredVersion as rn, formatOpenMeldCliCommand as ro, createProfileActionGuideError as rr, colorizeAgentLabel as rt, runSpaceJoin as s, isBinaryDistribution as sa, describeProfileWorkspacePathValidationFailure as si, runAuthLogin as sn, formatProfileAwareOpenMeldCliCommands as so, createSpaceAddMembersGuideError as sr, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, compareSemver as ta, normalizeCustomProfileWorkspacePath as ti, readRecentDaemonDispatchJournalEvents as tn, uninstallAgentActivityIntegrations as to, canUseInteractivePrompts as tr, formatTransportModeDisplay as tt, runSpacePassword as u, toStartBackgroundHelperExecutionCompatibility as ua, resolveAgentProfilePrimaryAgentControllerReport as ui, runAuthStatus as un, syncLocalAgentActivity as uo, createSpaceLeaveGuideError as ur, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, resolveRuntimeContext as va, buildOnboardingPlan as vi, ensureAgentProfileRuntimeBinding as vn, readCodexSessionTitles as vo, createStartAgentIdentityGuideError as vr, runDaemonReinstall as vt, buildFormalDispatchResultReadPayload as w, createOpenMeldHumanProfile as wa, readRecentDaemonLifecycleEvents as wi, submitRuntimeAgentControllerReport as wn, listProjectBindings as wo, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as wr, runDaemonUninstall as wt, loadSpaceIdentityDirectoryOrNull as x, requireOpenMeldProfile as xa, resolveDaemonServiceAlignmentDecision as xi, assessActionParticipationCandidate as xn, readAgentActivityOutboxHealth as xo, getCommandEntryContract as xr, runDaemonStatusFlow as xt, emitHumanReadSignalsTextProjection as y, resolveViewProfileKey as ya, getSetupFlowCopy as yi, formatServiceParticipationReadinessLabel as yn, enqueueAgentActivityHookEvent as yo, createStartAuthenticationGuideError as yr, runDaemonRunAfterEntryChecks as yt, resolveHumanControllerDisplayName as z, resolveAuthenticationGuidanceFromMessage as za, finishCurrentCommandCheckScope as zi, createSpaceMemberIdentityIndex as zn, outJsonLine as zo, canonicalizeAllowedActions as zr, toStructuredGatewayFailure as zt };
|
|
106410
106496
|
|
|
106411
|
-
//# sourceMappingURL=command-
|
|
106497
|
+
//# sourceMappingURL=command-ByA1L4nv.js.map
|