@openclaw/copilot 2026.7.2-beta.1 → 2026.7.2-beta.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-
|
|
2
|
-
import { applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects,
|
|
1
|
+
import { a as resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-C1V8xh6L.js";
|
|
2
|
+
import { applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects, buildAgentHookContextChannelFields, buildEmbeddedAttemptToolRunContext, callGatewayTool, cancelPendingAgentQuestionForSession, claimPendingAgentQuestionAnswer, clearActiveEmbeddedRun, detectAndLoadAgentHarnessPromptImages, embeddedAgentLog, extractToolErrorMessage, getModelProviderRequestTransport, getPluginToolMeta, isHostScopedAgentToolActive, isSubagentSessionKey, isToolResultError, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveCompactionTimeoutMs, resolveEmbeddedAttemptToolConstructionPlan, resolveModelAuthMode, resolveSandboxContext, resolveSessionAgentIds, resolveUserPath, runAgentEndSideEffects, runAgentHarnessAfterCompactionHook, runAgentHarnessAfterToolCallHook, runAgentHarnessBeforeCompactionHook, runAgentHarnessBeforeMessageWriteHook, runAgentHarnessGatewayQuestion, runAgentHarnessLlmInputHook, runAgentHarnessLlmOutputHook, sanitizeToolResult, setActiveEmbeddedRun } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fsp from "node:fs/promises";
|
|
@@ -299,7 +299,10 @@ function attachEventBridge(session, options) {
|
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
registerListener(session, unsubscribeFns, "exit_plan_mode.requested", (event) => {
|
|
302
|
-
const steps = splitPlanText(event.data.planContent)
|
|
302
|
+
const steps = splitPlanText(event.data.planContent).map((step) => ({
|
|
303
|
+
step,
|
|
304
|
+
status: "pending"
|
|
305
|
+
}));
|
|
303
306
|
enqueueAgentEvent({
|
|
304
307
|
stream: "plan",
|
|
305
308
|
data: {
|
|
@@ -1046,7 +1049,8 @@ async function createCopilotToolBridge(input) {
|
|
|
1046
1049
|
abortSignal: input.abortSignal,
|
|
1047
1050
|
beforeExecute: input.beforeExecute,
|
|
1048
1051
|
onAgentToolResult: input.attemptParams?.onAgentToolResult,
|
|
1049
|
-
onToolCompleted: input.onToolCompleted
|
|
1052
|
+
onToolCompleted: input.onToolCompleted,
|
|
1053
|
+
observeToolTerminal: input.attemptParams?.observeToolTerminal
|
|
1050
1054
|
})),
|
|
1051
1055
|
sourceTools: filteredTools
|
|
1052
1056
|
};
|
|
@@ -1141,6 +1145,7 @@ function buildOpenClawCodingToolsOptions(input, toolPlan, toolSurfaceRuntime) {
|
|
|
1141
1145
|
modelCompat,
|
|
1142
1146
|
modelApi: model?.api,
|
|
1143
1147
|
modelContextWindowTokens: model?.contextWindow,
|
|
1148
|
+
delegationCapability: a.delegationCapability,
|
|
1144
1149
|
modelAuthMode: resolveModelAuthMode(input.modelProvider, a.config, void 0, { workspaceDir }),
|
|
1145
1150
|
currentChannelId: a.currentChannelId,
|
|
1146
1151
|
currentMessagingTarget: a.currentMessagingTarget,
|
|
@@ -1192,8 +1197,16 @@ function convertOpenClawToolToSdkTool(sourceTool, ctx) {
|
|
|
1192
1197
|
console.warn("[copilot-tool-bridge] onToolCompleted handler threw; continuing", error);
|
|
1193
1198
|
}
|
|
1194
1199
|
};
|
|
1195
|
-
const failureResult = (executedArgs, invocation, startedAt, message, error) => {
|
|
1200
|
+
const failureResult = (executedArgs, invocation, startedAt, message, error, executionStarted) => {
|
|
1196
1201
|
const errorMessage = toError$1(error).message;
|
|
1202
|
+
ctx.observeToolTerminal?.({
|
|
1203
|
+
toolCallId: invocation.toolCallId,
|
|
1204
|
+
toolName: sourceTool.name,
|
|
1205
|
+
arguments: executedArgs,
|
|
1206
|
+
executionStarted,
|
|
1207
|
+
outcome: "failure",
|
|
1208
|
+
failure: { error: errorMessage }
|
|
1209
|
+
});
|
|
1197
1210
|
notifyToolResult(sanitizeToolResult({
|
|
1198
1211
|
content: [{
|
|
1199
1212
|
type: "text",
|
|
@@ -1217,7 +1230,7 @@ function convertOpenClawToolToSdkTool(sourceTool, ctx) {
|
|
|
1217
1230
|
const startedAt = Date.now();
|
|
1218
1231
|
if (ctx.abortSignal?.aborted) {
|
|
1219
1232
|
const error = /* @__PURE__ */ new Error("[copilot-tool-bridge] aborted before execution");
|
|
1220
|
-
return failureResult(args, invocation, startedAt, error.message, error);
|
|
1233
|
+
return failureResult(args, invocation, startedAt, error.message, error, false);
|
|
1221
1234
|
}
|
|
1222
1235
|
try {
|
|
1223
1236
|
await ctx.beforeExecute?.({
|
|
@@ -1228,24 +1241,32 @@ function convertOpenClawToolToSdkTool(sourceTool, ctx) {
|
|
|
1228
1241
|
toolName: sourceTool.name
|
|
1229
1242
|
});
|
|
1230
1243
|
} catch (error) {
|
|
1231
|
-
return failureResult(args, invocation, startedAt, `[copilot-tool-bridge] beforeExecute failed for tool '${sourceTool.name}': ${toError$1(error).message}`, error);
|
|
1244
|
+
return failureResult(args, invocation, startedAt, `[copilot-tool-bridge] beforeExecute failed for tool '${sourceTool.name}': ${toError$1(error).message}`, error, false);
|
|
1232
1245
|
}
|
|
1233
1246
|
let preparedArgs;
|
|
1234
1247
|
try {
|
|
1235
1248
|
preparedArgs = sourceTool.prepareArguments ? sourceTool.prepareArguments(args) : args;
|
|
1236
1249
|
} catch (error) {
|
|
1237
|
-
return failureResult(args, invocation, startedAt, `[copilot-tool-bridge] prepareArguments failed for tool '${sourceTool.name}': ${toError$1(error).message}`, error);
|
|
1250
|
+
return failureResult(args, invocation, startedAt, `[copilot-tool-bridge] prepareArguments failed for tool '${sourceTool.name}': ${toError$1(error).message}`, error, false);
|
|
1238
1251
|
}
|
|
1239
1252
|
let result;
|
|
1240
1253
|
try {
|
|
1241
1254
|
result = await sourceTool.execute(invocation.toolCallId, preparedArgs, ctx.abortSignal, void 0);
|
|
1242
1255
|
} catch (error) {
|
|
1243
|
-
return failureResult(preparedArgs, invocation, startedAt, `[copilot-tool-bridge] tool '${sourceTool.name}' failed: ${toError$1(error).message}`, error);
|
|
1256
|
+
return failureResult(preparedArgs, invocation, startedAt, `[copilot-tool-bridge] tool '${sourceTool.name}' failed: ${toError$1(error).message}`, error, true);
|
|
1244
1257
|
}
|
|
1245
1258
|
const sdkResult = convertMcpCallToolResult({ content: result.content });
|
|
1246
1259
|
const sanitizedResult = sanitizeToolResult(result);
|
|
1247
1260
|
const resultIsError = sdkResult.resultType === "failure" || isToolResultError(sanitizedResult);
|
|
1248
1261
|
const resultError = resultIsError ? extractToolErrorMessage(sanitizedResult) : void 0;
|
|
1262
|
+
ctx.observeToolTerminal?.({
|
|
1263
|
+
toolCallId: invocation.toolCallId,
|
|
1264
|
+
toolName: sourceTool.name,
|
|
1265
|
+
arguments: preparedArgs,
|
|
1266
|
+
executionStarted: true,
|
|
1267
|
+
outcome: resultIsError ? "failure" : "success",
|
|
1268
|
+
...resultIsError ? { failure: { error: resultError ?? "tool returned an error" } } : {}
|
|
1269
|
+
});
|
|
1249
1270
|
notifyToolResult(sanitizedResult, resultIsError);
|
|
1250
1271
|
notifyToolCompleted({
|
|
1251
1272
|
toolName: sourceTool.name,
|
|
@@ -1275,11 +1296,24 @@ async function executeCatalogTool(input, params) {
|
|
|
1275
1296
|
const sourceTool = params.tool;
|
|
1276
1297
|
const startedAt = Date.now();
|
|
1277
1298
|
let preparedArgs = params.input;
|
|
1299
|
+
let executionStarted = false;
|
|
1300
|
+
let terminalObserved = false;
|
|
1278
1301
|
try {
|
|
1279
1302
|
preparedArgs = sourceTool.prepareArguments ? sourceTool.prepareArguments(params.input) : params.input;
|
|
1303
|
+
executionStarted = true;
|
|
1280
1304
|
const result = await sourceTool.execute(params.toolCallId, preparedArgs, params.signal ?? input.abortSignal, params.onUpdate);
|
|
1281
1305
|
const sanitizedResult = sanitizeToolResult(result);
|
|
1282
1306
|
const isError = isToolResultError(sanitizedResult);
|
|
1307
|
+
const error = isError ? extractToolErrorMessage(sanitizedResult) ?? "tool returned an error" : void 0;
|
|
1308
|
+
terminalObserved = true;
|
|
1309
|
+
input.attemptParams?.observeToolTerminal?.({
|
|
1310
|
+
toolCallId: params.toolCallId,
|
|
1311
|
+
toolName: params.toolName,
|
|
1312
|
+
arguments: preparedArgs,
|
|
1313
|
+
executionStarted,
|
|
1314
|
+
outcome: isError ? "failure" : "success",
|
|
1315
|
+
...error ? { failure: { error } } : {}
|
|
1316
|
+
});
|
|
1283
1317
|
input.attemptParams?.onAgentToolResult?.({
|
|
1284
1318
|
toolName: params.toolName,
|
|
1285
1319
|
result: sanitizedResult,
|
|
@@ -1290,12 +1324,20 @@ async function executeCatalogTool(input, params) {
|
|
|
1290
1324
|
toolCallId: params.toolCallId,
|
|
1291
1325
|
args: toToolStartArgs(preparedArgs),
|
|
1292
1326
|
result: sanitizedResult,
|
|
1293
|
-
...
|
|
1327
|
+
...error ? { error } : {},
|
|
1294
1328
|
startedAt
|
|
1295
1329
|
});
|
|
1296
1330
|
return result;
|
|
1297
1331
|
} catch (error) {
|
|
1298
1332
|
const message = toError$1(error).message;
|
|
1333
|
+
if (!terminalObserved) input.attemptParams?.observeToolTerminal?.({
|
|
1334
|
+
toolCallId: params.toolCallId,
|
|
1335
|
+
toolName: params.toolName,
|
|
1336
|
+
arguments: preparedArgs,
|
|
1337
|
+
executionStarted,
|
|
1338
|
+
outcome: "failure",
|
|
1339
|
+
failure: { error: message }
|
|
1340
|
+
});
|
|
1299
1341
|
const failure = sanitizeToolResult({
|
|
1300
1342
|
content: [{
|
|
1301
1343
|
type: "text",
|
|
@@ -1403,68 +1445,62 @@ function toError$1(error) {
|
|
|
1403
1445
|
//#endregion
|
|
1404
1446
|
//#region extensions/copilot/src/user-input-bridge.ts
|
|
1405
1447
|
const COPILOT_USER_INPUT_QUESTION_ID = "answer";
|
|
1448
|
+
const DEFAULT_USER_INPUT_TIMEOUT_MS = 15 * 6e4;
|
|
1406
1449
|
function createCopilotUserInputBridge(params) {
|
|
1407
1450
|
let pending;
|
|
1408
|
-
const
|
|
1409
|
-
const current = pending;
|
|
1410
|
-
if (!current) return;
|
|
1411
|
-
pending = void 0;
|
|
1412
|
-
current.cleanup();
|
|
1413
|
-
current.resolve(value);
|
|
1414
|
-
};
|
|
1451
|
+
const gatewayCall = params.gatewayCall ?? callGatewayTool;
|
|
1415
1452
|
return {
|
|
1416
|
-
onUserInputRequest(request) {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1453
|
+
async onUserInputRequest(request) {
|
|
1454
|
+
pending?.abort(/* @__PURE__ */ new Error("Copilot user input request replaced"));
|
|
1455
|
+
const abort = new AbortController();
|
|
1456
|
+
pending = abort;
|
|
1457
|
+
const abortFromRun = () => abort.abort(params.signal?.reason);
|
|
1458
|
+
params.signal?.addEventListener("abort", abortFromRun, { once: true });
|
|
1459
|
+
if (params.signal?.aborted) abortFromRun();
|
|
1460
|
+
try {
|
|
1461
|
+
const question = toQuestion(request);
|
|
1462
|
+
const result = await runAgentHarnessGatewayQuestion({
|
|
1463
|
+
questions: [question],
|
|
1464
|
+
sessionKey: params.paramsForRun.sessionKey ?? params.paramsForRun.sessionId,
|
|
1465
|
+
agentId: params.paramsForRun.agentId,
|
|
1466
|
+
timeoutMs: params.paramsForRun.timeoutMs ?? DEFAULT_USER_INPUT_TIMEOUT_MS,
|
|
1467
|
+
gatewayCall,
|
|
1468
|
+
delivery: params.paramsForRun,
|
|
1469
|
+
promptOptions: {
|
|
1470
|
+
intro: "Copilot needs input:",
|
|
1471
|
+
formatText: formatCopilotDisplayText
|
|
1472
|
+
},
|
|
1473
|
+
signal: abort.signal
|
|
1437
1474
|
});
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1475
|
+
if (result.status !== "answered") return emptyCopilotUserInputResponse();
|
|
1476
|
+
const selected = result.answers.answers[COPILOT_USER_INPUT_QUESTION_ID]?.answers[0] ?? "";
|
|
1477
|
+
return {
|
|
1478
|
+
answer: selected,
|
|
1479
|
+
wasFreeform: !isChoiceAnswer(question, selected)
|
|
1480
|
+
};
|
|
1481
|
+
} catch (error) {
|
|
1482
|
+
embeddedAgentLog.warn("failed to bridge copilot user input through gateway", { error });
|
|
1483
|
+
return emptyCopilotUserInputResponse();
|
|
1484
|
+
} finally {
|
|
1485
|
+
params.signal?.removeEventListener("abort", abortFromRun);
|
|
1486
|
+
if (pending === abort) pending = void 0;
|
|
1487
|
+
}
|
|
1445
1488
|
},
|
|
1446
1489
|
cancelPending() {
|
|
1447
|
-
|
|
1490
|
+
pending?.abort(/* @__PURE__ */ new Error("Copilot user input request cancelled"));
|
|
1448
1491
|
}
|
|
1449
1492
|
};
|
|
1450
1493
|
}
|
|
1451
1494
|
function toQuestion(request) {
|
|
1452
1495
|
return {
|
|
1453
1496
|
id: COPILOT_USER_INPUT_QUESTION_ID,
|
|
1454
|
-
header: "Copilot
|
|
1497
|
+
header: "Copilot",
|
|
1455
1498
|
question: request.question,
|
|
1456
1499
|
isOther: request.allowFreeform !== false,
|
|
1457
1500
|
isSecret: false,
|
|
1458
1501
|
options: request.choices && request.choices.length > 0 ? request.choices.map((choice) => ({ label: choice })) : null
|
|
1459
1502
|
};
|
|
1460
1503
|
}
|
|
1461
|
-
function buildCopilotUserInputResponse(question, inputText) {
|
|
1462
|
-
const selected = buildAgentHarnessUserInputAnswers([question], inputText).answers[COPILOT_USER_INPUT_QUESTION_ID]?.answers[0] ?? "";
|
|
1463
|
-
return {
|
|
1464
|
-
answer: selected,
|
|
1465
|
-
wasFreeform: !isChoiceAnswer(question, selected)
|
|
1466
|
-
};
|
|
1467
|
-
}
|
|
1468
1504
|
function emptyCopilotUserInputResponse() {
|
|
1469
1505
|
return {
|
|
1470
1506
|
answer: "",
|
|
@@ -1825,6 +1861,13 @@ async function runCopilotAttempt(params, deps) {
|
|
|
1825
1861
|
let downgradedFromResume = false;
|
|
1826
1862
|
let resumeFailureRecovered = false;
|
|
1827
1863
|
let yieldDetected = false;
|
|
1864
|
+
let lastToolError;
|
|
1865
|
+
const hostObserveToolTerminal = input.observeToolTerminal;
|
|
1866
|
+
const observeToolTerminal = hostObserveToolTerminal ? (observation) => {
|
|
1867
|
+
const terminal = hostObserveToolTerminal(observation);
|
|
1868
|
+
lastToolError = terminal.lastToolError;
|
|
1869
|
+
return terminal;
|
|
1870
|
+
} : void 0;
|
|
1828
1871
|
const markExternalAbort = () => {
|
|
1829
1872
|
abortRequested = true;
|
|
1830
1873
|
externalAbort = true;
|
|
@@ -1925,7 +1968,10 @@ async function runCopilotAttempt(params, deps) {
|
|
|
1925
1968
|
sandbox,
|
|
1926
1969
|
spawnWorkspaceDir: sandboxAwareSpawnWorkspaceDir,
|
|
1927
1970
|
abortSignal: params.abortSignal,
|
|
1928
|
-
attemptParams:
|
|
1971
|
+
attemptParams: observeToolTerminal ? {
|
|
1972
|
+
...input,
|
|
1973
|
+
observeToolTerminal
|
|
1974
|
+
} : input,
|
|
1929
1975
|
computerContextEpoch,
|
|
1930
1976
|
sessionRef,
|
|
1931
1977
|
onYieldDetected: () => {
|
|
@@ -2066,20 +2112,33 @@ async function runCopilotAttempt(params, deps) {
|
|
|
2066
2112
|
getSdkSessionId: () => sdkSessionId,
|
|
2067
2113
|
isAborted: () => aborted
|
|
2068
2114
|
});
|
|
2115
|
+
const cancelGatewayQuestionBestEffort = (resolvedBy) => {
|
|
2116
|
+
cancelPendingAgentQuestionForSession({
|
|
2117
|
+
sessionKey: input.sessionKey ?? input.sessionId,
|
|
2118
|
+
resolvedBy
|
|
2119
|
+
}).catch((error) => {
|
|
2120
|
+
embeddedAgentLog.warn("failed to cancel copilot gateway question during shutdown", { error });
|
|
2121
|
+
});
|
|
2122
|
+
};
|
|
2069
2123
|
const activeRunHandle = {
|
|
2070
2124
|
kind: "embedded",
|
|
2071
|
-
queueMessage: async (text) => {
|
|
2072
|
-
if (
|
|
2125
|
+
queueMessage: async (text, options) => {
|
|
2126
|
+
if (options?.isInboundUserMessage === true && await claimPendingAgentQuestionAnswer({
|
|
2127
|
+
sessionKey: input.sessionKey ?? input.sessionId,
|
|
2128
|
+
text
|
|
2129
|
+
})) return;
|
|
2073
2130
|
throw new Error("Copilot runtime is not waiting for user input.");
|
|
2074
2131
|
},
|
|
2075
2132
|
isStreaming: () => !settled && !aborted,
|
|
2076
2133
|
isCompacting: () => bridge?.isCompacting() ?? false,
|
|
2077
2134
|
sourceReplyDeliveryMode: input.sourceReplyDeliveryMode,
|
|
2078
2135
|
cancel: () => {
|
|
2136
|
+
cancelGatewayQuestionBestEffort("run-cancel");
|
|
2079
2137
|
userInputBridge.cancelPending();
|
|
2080
2138
|
abortActiveSession();
|
|
2081
2139
|
},
|
|
2082
2140
|
abort: () => {
|
|
2141
|
+
cancelGatewayQuestionBestEffort("run-abort");
|
|
2083
2142
|
userInputBridge.cancelPending();
|
|
2084
2143
|
abortActiveSession();
|
|
2085
2144
|
}
|
|
@@ -2237,6 +2296,7 @@ async function runCopilotAttempt(params, deps) {
|
|
|
2237
2296
|
startedCount: snap?.startedCount ?? 0
|
|
2238
2297
|
},
|
|
2239
2298
|
lastAssistant,
|
|
2299
|
+
lastToolError,
|
|
2240
2300
|
messagesSnapshot,
|
|
2241
2301
|
now,
|
|
2242
2302
|
promptError,
|
|
@@ -2302,6 +2362,7 @@ function createResult(params, state) {
|
|
|
2302
2362
|
startedCount: 0
|
|
2303
2363
|
},
|
|
2304
2364
|
lastAssistant: state.lastAssistant,
|
|
2365
|
+
...state.lastToolError ? { lastToolError: state.lastToolError } : {},
|
|
2305
2366
|
messagesSnapshot: state.messagesSnapshot,
|
|
2306
2367
|
messagingToolSentMediaUrls: [],
|
|
2307
2368
|
messagingToolSentTargets: [],
|
|
@@ -857,6 +857,7 @@ function createCopilotAgentHarness(options) {
|
|
|
857
857
|
return {
|
|
858
858
|
id: options?.id ?? "copilot",
|
|
859
859
|
label: options?.label ?? "GitHub Copilot agent runtime",
|
|
860
|
+
autoSelection: { providerIds: [] },
|
|
860
861
|
supports(ctx) {
|
|
861
862
|
if (String(ctx.requestedRuntime ?? "").trim().toLowerCase() !== "copilot") return {
|
|
862
863
|
supported: false,
|
|
@@ -894,7 +895,7 @@ function createCopilotAgentHarness(options) {
|
|
|
894
895
|
async runAttempt(params) {
|
|
895
896
|
const attemptPromise = (async () => {
|
|
896
897
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
|
|
897
|
-
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-
|
|
898
|
+
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-5xlXVISm.js");
|
|
898
899
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
899
900
|
const pool = await getPool();
|
|
900
901
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
@@ -1010,7 +1011,7 @@ function createCopilotAgentHarness(options) {
|
|
|
1010
1011
|
};
|
|
1011
1012
|
const tracked = trackedSessions.get(openclawSessionId);
|
|
1012
1013
|
const currentCompactKey = computeSessionCompactKey(params);
|
|
1013
|
-
const { resolvePoolAcquire } = await import("./attempt-
|
|
1014
|
+
const { resolvePoolAcquire } = await import("./attempt-5xlXVISm.js");
|
|
1014
1015
|
let resolvedPoolAcquire;
|
|
1015
1016
|
let currentAuth;
|
|
1016
1017
|
try {
|
package/dist/harness.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createCopilotAgentHarness } from "./harness-
|
|
1
|
+
import { t as createCopilotAgentHarness } from "./harness-C1V8xh6L.js";
|
|
2
2
|
export { createCopilotAgentHarness };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createCopilotAgentHarness } from "./harness-
|
|
1
|
+
import { t as createCopilotAgentHarness } from "./harness-C1V8xh6L.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
//#region extensions/copilot/index.ts
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/copilot",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/copilot",
|
|
9
|
-
"version": "2026.7.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.3",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@github/copilot-sdk": "1.0.5"
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/copilot",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.3",
|
|
4
4
|
"description": "OpenClaw GitHub Copilot agent runtime plugin (registers a `github-copilot` AgentHarness backed by @github/copilot-sdk over JSON-RPC to the GitHub Copilot CLI)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"@github/copilot-sdk": "1.0.5"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@github/copilot": "1.0.68",
|
|
15
14
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
16
15
|
},
|
|
17
16
|
"openclaw": {
|
|
@@ -25,10 +24,10 @@
|
|
|
25
24
|
"minHostVersion": ">=2026.5.28"
|
|
26
25
|
},
|
|
27
26
|
"compat": {
|
|
28
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
27
|
+
"pluginApi": ">=2026.7.2-beta.3"
|
|
29
28
|
},
|
|
30
29
|
"build": {
|
|
31
|
-
"openclawVersion": "2026.7.2-beta.
|
|
30
|
+
"openclawVersion": "2026.7.2-beta.3",
|
|
32
31
|
"bundledDist": false
|
|
33
32
|
},
|
|
34
33
|
"release": {
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
"README.md"
|
|
48
47
|
],
|
|
49
48
|
"peerDependencies": {
|
|
50
|
-
"openclaw": ">=2026.7.2-beta.
|
|
49
|
+
"openclaw": ">=2026.7.2-beta.3"
|
|
51
50
|
},
|
|
52
51
|
"peerDependenciesMeta": {
|
|
53
52
|
"openclaw": {
|