@openclaw/copilot 2026.9.5 → 2026.9.6
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/.setup/{attempt-BZXPuTyZ.mjs → attempt-DKgdMTpc.mjs} +153 -164
- package/dist/.setup/{harness-Dj0L75Tk.mjs → harness-BH2_ctMF.mjs} +3 -3
- package/dist/.setup/{isolated-completion-54FP0qmC.mjs → isolated-completion-CpLMQyd3.mjs} +1 -1
- package/dist/harness.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-
|
|
1
|
+
import { a as resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-BH2_ctMF.mjs";
|
|
2
2
|
import { n as normalizeCopilotUsage, r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.mjs";
|
|
3
|
-
import { asNonArrayRecord,
|
|
4
|
-
import { SKILL_WORKSHOP_TOOL_NAME, applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects, buildAgentHookContextChannelFields, buildCredentialSafetyPrompt, buildDelegationGuidanceSection, buildEmbeddedAttemptToolRunContext, buildEmbeddedForegroundPromptContext, buildHarnessVisibleReplyGuidance, buildSkillWorkshopPromptSection, cancelPendingAgentQuestionForSession, claimPendingAgentQuestionAnswer, clearActiveEmbeddedRun, detectAndLoadAgentHarnessPromptImages, embeddedAgentLog, extractToolErrorMessage, getModelProviderRequestTransport, getPluginToolMeta, getPluginToolSideEffectOwnerKey, isHostScopedAgentToolActive, isSubagentSessionKey, isToolResultError, projectAgentHarnessTranscriptMessageForDisplay, resolveAgentDir, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveCompactionTimeoutMs, resolveEmbeddedAttemptToolConstructionPlan, resolveMainSessionDelegationMode, resolveModelAuthMode, resolveSandboxContext, resolveUserPath, restorePreparedUserTurnOperationalMetaForRuntime, runAgentEndSideEffects, runAgentHarnessAfterCompactionHook, runAgentHarnessAfterToolCallHook, runAgentHarnessBeforeCompactionHook, runAgentHarnessBeforeMessageWriteHook, runAgentHarnessGatewayQuestion, runAgentHarnessLlmInputHook, runAgentHarnessLlmOutputHook, sanitizeToolResult, setActiveEmbeddedRun } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
3
|
+
import { asNonArrayRecord, normalizeOptionalString, normalizeUniqueStringEntries, readNonBlankString, readNonEmptyStringPreservingWhitespace, readNonEmptyStringPreservingWhitespace as readNonEmptyString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
|
+
import { SKILL_WORKSHOP_TOOL_NAME, applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects, buildAgentHookContextChannelFields, buildCredentialSafetyPrompt, buildDelegationGuidanceSection, buildEmbeddedAttemptToolRunContext, buildEmbeddedForegroundPromptContext, buildHarnessVisibleReplyGuidance, buildSkillWorkshopPromptSection, cancelPendingAgentQuestionForSession, claimPendingAgentQuestionAnswer, clearActiveEmbeddedRun, detectAndLoadAgentHarnessPromptImages, embeddedAgentLog, emitAgentEvent, extractToolErrorMessage, getModelProviderRequestTransport, getPluginToolMeta, getPluginToolSideEffectOwnerKey, isHostScopedAgentToolActive, isSubagentSessionKey, isToolResultError, projectAgentHarnessTranscriptMessageForDisplay, projectAgentToolActivity, resolveAgentDir, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveCompactionTimeoutMs, resolveEmbeddedAttemptToolConstructionPlan, resolveMainSessionDelegationMode, resolveModelAuthMode, resolveSandboxContext, resolveUserPath, restorePreparedUserTurnOperationalMetaForRuntime, runAgentEndSideEffects, runAgentHarnessAfterCompactionHook, runAgentHarnessAfterToolCallHook, runAgentHarnessBeforeCompactionHook, runAgentHarnessBeforeMessageWriteHook, runAgentHarnessGatewayQuestion, runAgentHarnessLlmInputHook, runAgentHarnessLlmOutputHook, sanitizeToolResult, setActiveEmbeddedRun } from "openclaw/plugin-sdk/agent-harness-runtime";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { formatErrorMessage, toErrorObject, toStringifiedError, toStringifiedError as toCopilotError } from "openclaw/plugin-sdk/error-runtime";
|
|
7
7
|
import { parseDateStringTimestampMs } from "openclaw/plugin-sdk/number-runtime";
|
|
8
|
+
import { createAgentHarnessToolSurfaceRuntime, normalizeAcceptedSessionSpawnResult } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
|
|
8
9
|
import fsp from "node:fs/promises";
|
|
9
10
|
import { resolveSessionAgentIdsStrict } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
10
11
|
import { convertMcpCallToolResult } from "@github/copilot-sdk";
|
|
11
|
-
import { createAgentHarnessToolSurfaceRuntime } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
|
|
12
12
|
import { isDeepStrictEqual } from "node:util";
|
|
13
13
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
14
14
|
import { appendSessionTranscriptMessageByIdentityStrict, appendSessionTranscriptMessagesByIdentity, publishSessionTranscriptUpdateByIdentity, readVisibleSessionTranscriptMessageEntries } from "openclaw/plugin-sdk/session-transcript-runtime";
|
|
@@ -565,6 +565,69 @@ function buildAssistantMessage(params) {
|
|
|
565
565
|
})
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
+
function buildAssistantProjectionGroup(group, modelRef, resolveTimestamp, usageByApiCallId, latestUsage, forTranscript) {
|
|
569
|
+
const messages = group.chunks.flatMap((chunk) => {
|
|
570
|
+
const message = buildAssistantMessage({
|
|
571
|
+
event: chunk.event,
|
|
572
|
+
modelRef,
|
|
573
|
+
now: () => resolveTimestamp(chunk.event),
|
|
574
|
+
reasoningText: forTranscript ? chunk.transcriptReasoningText : chunk.reasoningText,
|
|
575
|
+
usage: resolveAssistantUsage(chunk.event, latestUsage, usageByApiCallId),
|
|
576
|
+
assistantTexts: forTranscript ? chunk.transcriptAssistantTexts : chunk.assistantTexts
|
|
577
|
+
});
|
|
578
|
+
return message ? [message] : [];
|
|
579
|
+
});
|
|
580
|
+
const replayIncomplete = group.chunks.some(({ event }) => hasUnprojectedAssistantReplayState(event));
|
|
581
|
+
const last = messages.at(-1);
|
|
582
|
+
if (!last) return {
|
|
583
|
+
message: void 0,
|
|
584
|
+
replayIncomplete,
|
|
585
|
+
toolCallIds: []
|
|
586
|
+
};
|
|
587
|
+
const narrative = [];
|
|
588
|
+
let terminalThinking;
|
|
589
|
+
const toolCallOrder = [];
|
|
590
|
+
const toolCallsById = /* @__PURE__ */ new Map();
|
|
591
|
+
for (const message of messages) for (const part of message.content) {
|
|
592
|
+
if (part.type === "toolCall") {
|
|
593
|
+
if (!toolCallsById.has(part.id)) toolCallOrder.push(part.id);
|
|
594
|
+
toolCallsById.set(part.id, part);
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
if (part.type === "thinking") {
|
|
598
|
+
terminalThinking = part;
|
|
599
|
+
continue;
|
|
600
|
+
}
|
|
601
|
+
const previous = narrative.at(-1);
|
|
602
|
+
if (part.type === "text" && previous?.type === "text") narrative[narrative.length - 1] = {
|
|
603
|
+
...previous,
|
|
604
|
+
text: previous.text + part.text
|
|
605
|
+
};
|
|
606
|
+
else narrative.push(part);
|
|
607
|
+
}
|
|
608
|
+
const toolCalls = toolCallOrder.flatMap((id) => {
|
|
609
|
+
const toolCall = toolCallsById.get(id);
|
|
610
|
+
return toolCall ? [toolCall] : [];
|
|
611
|
+
});
|
|
612
|
+
const content = [
|
|
613
|
+
...terminalThinking ? [terminalThinking] : [],
|
|
614
|
+
...narrative,
|
|
615
|
+
...toolCalls
|
|
616
|
+
];
|
|
617
|
+
const toolCallIds = [...toolCallOrder];
|
|
618
|
+
return {
|
|
619
|
+
message: {
|
|
620
|
+
...last,
|
|
621
|
+
content,
|
|
622
|
+
stopReason: toolCallIds.length > 0 ? "toolUse" : "stop"
|
|
623
|
+
},
|
|
624
|
+
replayIncomplete,
|
|
625
|
+
toolCallIds
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
function hasUnprojectedAssistantReplayState(event) {
|
|
629
|
+
return event.data.citations !== void 0 || event.data.serverTools !== void 0 || event.data.reasoningWireField !== void 0 || event.data.reasoningOpaque !== void 0 || event.data.encryptedContent !== void 0 || event.data.toolRequests?.some((request) => request.type === "custom") === true;
|
|
630
|
+
}
|
|
568
631
|
function resolveAssistantUsage(event, latest, byApiCallId) {
|
|
569
632
|
const apiCallId = readNonEmptyStringPreservingWhitespace(event?.data.apiCallId);
|
|
570
633
|
return apiCallId ? byApiCallId.get(apiCallId) ?? latest : latest;
|
|
@@ -644,6 +707,8 @@ function attachEventBridge(session, options) {
|
|
|
644
707
|
let streamError;
|
|
645
708
|
const toolMetas = [];
|
|
646
709
|
const toolMetaIndexByCallId = /* @__PURE__ */ new Map();
|
|
710
|
+
const toolCallsById = /* @__PURE__ */ new Map();
|
|
711
|
+
const preparedToolCompletions = /* @__PURE__ */ new Set();
|
|
647
712
|
const projectedToolNamesByCallId = /* @__PURE__ */ new Map();
|
|
648
713
|
const userRequestedToolCallIds = /* @__PURE__ */ new Set();
|
|
649
714
|
let startedCount = 0;
|
|
@@ -766,12 +831,38 @@ function attachEventBridge(session, options) {
|
|
|
766
831
|
if (isRootSessionEvent(event)) startedCount += 1;
|
|
767
832
|
toolMetaIndexByCallId.set(event.data.toolCallId, toolMetas.length);
|
|
768
833
|
toolMetas.push({ toolName: event.data.toolName });
|
|
834
|
+
toolCallsById.set(event.data.toolCallId, {
|
|
835
|
+
args: event.data.arguments,
|
|
836
|
+
root: isRootSessionEvent(event)
|
|
837
|
+
});
|
|
838
|
+
if (isRootSessionEvent(event)) enqueueAgentEvent({
|
|
839
|
+
stream: "item",
|
|
840
|
+
data: projectAgentToolActivity({
|
|
841
|
+
toolCallId: event.data.toolCallId,
|
|
842
|
+
name: event.data.toolName,
|
|
843
|
+
phase: "start",
|
|
844
|
+
args: event.data.arguments
|
|
845
|
+
})
|
|
846
|
+
});
|
|
769
847
|
});
|
|
770
848
|
registerListener(session, unsubscribeFns, "tool.execution_complete", (event) => {
|
|
771
849
|
flushPendingAssistantProjectionForToolCall(event.data.toolCallId);
|
|
772
850
|
if (isRootSessionEvent(event)) completedCount += 1;
|
|
773
851
|
const toolMetaIndex = toolMetaIndexByCallId.get(event.data.toolCallId);
|
|
774
852
|
const toolName = toolMetaIndex === void 0 ? void 0 : toolMetas[toolMetaIndex]?.toolName;
|
|
853
|
+
const args = toolCallsById.get(event.data.toolCallId)?.args;
|
|
854
|
+
toolCallsById.delete(event.data.toolCallId);
|
|
855
|
+
const completionPrepared = preparedToolCompletions.delete(event.data.toolCallId);
|
|
856
|
+
if (toolName && isRootSessionEvent(event) && !completionPrepared) enqueueAgentEvent({
|
|
857
|
+
stream: "item",
|
|
858
|
+
data: projectAgentToolActivity({
|
|
859
|
+
toolCallId: event.data.toolCallId,
|
|
860
|
+
name: toolName,
|
|
861
|
+
phase: "result",
|
|
862
|
+
args,
|
|
863
|
+
isError: !event.data.success
|
|
864
|
+
})
|
|
865
|
+
});
|
|
775
866
|
const meta = event.data.success ? event.data.result?.detailedContent ?? event.data.result?.content : event.data.error?.message;
|
|
776
867
|
if (toolName && toolMetaIndex !== void 0) toolMetas[toolMetaIndex] = {
|
|
777
868
|
...meta ? { meta } : {},
|
|
@@ -975,6 +1066,19 @@ function attachEventBridge(session, options) {
|
|
|
975
1066
|
finalizeAssistantTexts() {
|
|
976
1067
|
return finalizeAssistantTexts(messageOrder, messagesById, lastAssistantEvent);
|
|
977
1068
|
},
|
|
1069
|
+
completeTool(tool) {
|
|
1070
|
+
const owner = toolCallsById.get(tool.parentToolCallId ?? tool.toolCallId);
|
|
1071
|
+
if (detached || !owner?.root) return;
|
|
1072
|
+
if (!tool.parentToolCallId) preparedToolCompletions.add(tool.toolCallId);
|
|
1073
|
+
enqueueAgentEvent({
|
|
1074
|
+
stream: "item",
|
|
1075
|
+
data: projectAgentToolActivity({
|
|
1076
|
+
...tool,
|
|
1077
|
+
name: tool.toolName,
|
|
1078
|
+
phase: "result"
|
|
1079
|
+
})
|
|
1080
|
+
});
|
|
1081
|
+
},
|
|
978
1082
|
detach() {
|
|
979
1083
|
if (detached) return;
|
|
980
1084
|
detached = true;
|
|
@@ -1072,6 +1176,11 @@ function attachEventBridge(session, options) {
|
|
|
1072
1176
|
compactionChain = compactionChain.then(callback, callback).catch(() => void 0);
|
|
1073
1177
|
}
|
|
1074
1178
|
function enqueueAgentEvent(event) {
|
|
1179
|
+
if (options.runId) emitAgentEvent({
|
|
1180
|
+
runId: options.runId,
|
|
1181
|
+
sessionKey: options.sessionKey,
|
|
1182
|
+
...event
|
|
1183
|
+
});
|
|
1075
1184
|
const callback = options.onAgentEvent;
|
|
1076
1185
|
if (!callback) return;
|
|
1077
1186
|
const invoke = () => callback(event);
|
|
@@ -1114,69 +1223,6 @@ function finalizeAssistantTexts(messageOrder, messagesById, event) {
|
|
|
1114
1223
|
if (event?.data.content) return [event.data.content];
|
|
1115
1224
|
return [];
|
|
1116
1225
|
}
|
|
1117
|
-
function buildAssistantProjectionGroup(group, modelRef, resolveTimestamp, usageByApiCallId, latestUsage, forTranscript) {
|
|
1118
|
-
const messages = group.chunks.flatMap((chunk) => {
|
|
1119
|
-
const message = buildAssistantMessage({
|
|
1120
|
-
event: chunk.event,
|
|
1121
|
-
modelRef,
|
|
1122
|
-
now: () => resolveTimestamp(chunk.event),
|
|
1123
|
-
reasoningText: forTranscript ? chunk.transcriptReasoningText : chunk.reasoningText,
|
|
1124
|
-
usage: resolveAssistantUsage(chunk.event, latestUsage, usageByApiCallId),
|
|
1125
|
-
assistantTexts: forTranscript ? chunk.transcriptAssistantTexts : chunk.assistantTexts
|
|
1126
|
-
});
|
|
1127
|
-
return message ? [message] : [];
|
|
1128
|
-
});
|
|
1129
|
-
const replayIncomplete = group.chunks.some(({ event }) => hasUnprojectedAssistantReplayState(event));
|
|
1130
|
-
const last = messages.at(-1);
|
|
1131
|
-
if (!last) return {
|
|
1132
|
-
message: void 0,
|
|
1133
|
-
replayIncomplete,
|
|
1134
|
-
toolCallIds: []
|
|
1135
|
-
};
|
|
1136
|
-
const narrative = [];
|
|
1137
|
-
let terminalThinking;
|
|
1138
|
-
const toolCallOrder = [];
|
|
1139
|
-
const toolCallsById = /* @__PURE__ */ new Map();
|
|
1140
|
-
for (const message of messages) for (const part of message.content) {
|
|
1141
|
-
if (part.type === "toolCall") {
|
|
1142
|
-
if (!toolCallsById.has(part.id)) toolCallOrder.push(part.id);
|
|
1143
|
-
toolCallsById.set(part.id, part);
|
|
1144
|
-
continue;
|
|
1145
|
-
}
|
|
1146
|
-
if (part.type === "thinking") {
|
|
1147
|
-
terminalThinking = part;
|
|
1148
|
-
continue;
|
|
1149
|
-
}
|
|
1150
|
-
const previous = narrative.at(-1);
|
|
1151
|
-
if (part.type === "text" && previous?.type === "text") narrative[narrative.length - 1] = {
|
|
1152
|
-
...previous,
|
|
1153
|
-
text: previous.text + part.text
|
|
1154
|
-
};
|
|
1155
|
-
else narrative.push(part);
|
|
1156
|
-
}
|
|
1157
|
-
const toolCalls = toolCallOrder.flatMap((id) => {
|
|
1158
|
-
const toolCall = toolCallsById.get(id);
|
|
1159
|
-
return toolCall ? [toolCall] : [];
|
|
1160
|
-
});
|
|
1161
|
-
const content = [
|
|
1162
|
-
...terminalThinking ? [terminalThinking] : [],
|
|
1163
|
-
...narrative,
|
|
1164
|
-
...toolCalls
|
|
1165
|
-
];
|
|
1166
|
-
const toolCallIds = [...toolCallOrder];
|
|
1167
|
-
return {
|
|
1168
|
-
message: {
|
|
1169
|
-
...last,
|
|
1170
|
-
content,
|
|
1171
|
-
stopReason: toolCallIds.length > 0 ? "toolUse" : "stop"
|
|
1172
|
-
},
|
|
1173
|
-
replayIncomplete,
|
|
1174
|
-
toolCallIds
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
function hasUnprojectedAssistantReplayState(event) {
|
|
1178
|
-
return event.data.citations !== void 0 || event.data.serverTools !== void 0 || event.data.reasoningWireField !== void 0 || event.data.reasoningOpaque !== void 0 || event.data.encryptedContent !== void 0 || event.data.toolRequests?.some((request) => request.type === "custom") === true;
|
|
1179
|
-
}
|
|
1180
1226
|
function isAssistantMessageEvent(event) {
|
|
1181
1227
|
return event?.type === "assistant.message";
|
|
1182
1228
|
}
|
|
@@ -1552,16 +1598,6 @@ const EMPTY_PROMPT_TOOL_POLICY = { apply: () => ({
|
|
|
1552
1598
|
callableToolNames: []
|
|
1553
1599
|
}) };
|
|
1554
1600
|
const SUPPORTED_TOOL_PROVIDERS = /* @__PURE__ */ new Set(["github-copilot"]);
|
|
1555
|
-
const BASE_COPILOT_CODING_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
1556
|
-
"edit",
|
|
1557
|
-
"read",
|
|
1558
|
-
"write"
|
|
1559
|
-
]);
|
|
1560
|
-
const SHELL_COPILOT_CODING_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
1561
|
-
"apply_patch",
|
|
1562
|
-
"exec",
|
|
1563
|
-
"process"
|
|
1564
|
-
]);
|
|
1565
1601
|
async function createCopilotToolBridge(input) {
|
|
1566
1602
|
if (!input.allowModelTools && !SUPPORTED_TOOL_PROVIDERS.has(input.modelProvider)) return {
|
|
1567
1603
|
codeModeEngaged: false,
|
|
@@ -1584,7 +1620,7 @@ async function createCopilotToolBridge(input) {
|
|
|
1584
1620
|
sourceTools: []
|
|
1585
1621
|
};
|
|
1586
1622
|
const toolSurfaceRuntime = createAgentHarnessToolSurfaceRuntime({
|
|
1587
|
-
abortSignal:
|
|
1623
|
+
abortSignal: attemptParams.abortSignal,
|
|
1588
1624
|
agentId: attemptParams.sandboxAgentId ?? input.agentId,
|
|
1589
1625
|
config: attemptParams.config,
|
|
1590
1626
|
codeModeOverride: attemptParams.codeModeOverride,
|
|
@@ -1597,11 +1633,12 @@ async function createCopilotToolBridge(input) {
|
|
|
1597
1633
|
modelId: input.modelId,
|
|
1598
1634
|
modelProvider: input.modelProvider,
|
|
1599
1635
|
modelToolsEnabled: true,
|
|
1636
|
+
supportsDeferredToolCalls: false,
|
|
1600
1637
|
prompt: attemptParams.prompt,
|
|
1601
1638
|
runId: attemptParams.runId,
|
|
1602
1639
|
runtimeToolAllowlist: toolPlan.runtimeToolAllowlist,
|
|
1603
1640
|
sessionId: input.sessionId,
|
|
1604
|
-
sessionKey: attemptParams.sandboxSessionKey ?? attemptParams.sessionKey
|
|
1641
|
+
sessionKey: attemptParams.sandboxSessionKey ?? attemptParams.sessionKey,
|
|
1605
1642
|
scheduledToolPolicy: attemptParams.scheduledToolPolicy,
|
|
1606
1643
|
sourceReplyDeliveryMode: attemptParams.sourceReplyDeliveryMode,
|
|
1607
1644
|
toolsAllow: attemptParams.toolsAllow
|
|
@@ -1610,30 +1647,16 @@ async function createCopilotToolBridge(input) {
|
|
|
1610
1647
|
...toolPlan,
|
|
1611
1648
|
runtimeToolAllowlist: toolSurfaceRuntime.runtimeToolAllowlist
|
|
1612
1649
|
}, toolSurfaceRuntime);
|
|
1613
|
-
let sourceTools;
|
|
1614
|
-
const boundSourceTools = /* @__PURE__ */ new Set();
|
|
1615
1650
|
const hostCapabilities = attemptParams.hostCapabilities;
|
|
1616
1651
|
if (!hostCapabilities) throw new Error("Copilot attempt tools require host-bound capabilities.");
|
|
1617
1652
|
const bindingCwd = toolOptions.cwd ?? toolOptions.workspaceDir;
|
|
1618
1653
|
const bindingOptions = bindingCwd ? { cwd: bindingCwd } : void 0;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
} else {
|
|
1626
|
-
const createToolSurface = hostCapabilities.createToolSurface;
|
|
1627
|
-
if (!createToolSurface) throw new Error("Copilot tool construction requires a current host capability");
|
|
1628
|
-
boundTools = createToolSurface(toolOptions, bindingOptions);
|
|
1629
|
-
}
|
|
1630
|
-
sourceTools = boundTools;
|
|
1631
|
-
for (const tool of boundTools) boundSourceTools.add(tool);
|
|
1632
|
-
} catch (error) {
|
|
1633
|
-
throw createError(`[copilot-tool-bridge] createOpenClawCodingTools failed: ${toStringifiedError(error).message}`, error);
|
|
1634
|
-
}
|
|
1635
|
-
const plannedSourceTools = filterCopilotToolsForConstructionPlan(applyEmbeddedAttemptToolsAllow(sourceTools, toolSurfaceRuntime.runtimeToolAllowlist, { toolMeta: (tool) => getPluginToolMeta(tool) ?? readInlinePluginToolMeta(tool) }), toolPlan.codingToolConstructionPlan, { preserveToolNames: toolSurfaceRuntime.runtimeToolAllowlist });
|
|
1636
|
-
const compactedTools = toolSurfaceRuntime.compactTools(plannedSourceTools, { localModelLeanApplied: true });
|
|
1654
|
+
const createToolSurface = hostCapabilities.createToolSurface;
|
|
1655
|
+
if (!createToolSurface) throw new Error("Copilot tool construction requires a current host capability");
|
|
1656
|
+
const sourceTools = createToolSurface(toolOptions, bindingOptions);
|
|
1657
|
+
const boundSourceTools = new Set(sourceTools);
|
|
1658
|
+
const allowedSourceTools = applyEmbeddedAttemptToolsAllow(sourceTools, toolSurfaceRuntime.runtimeToolAllowlist, { toolMeta: getPluginToolMeta });
|
|
1659
|
+
const compactedTools = toolSurfaceRuntime.compactTools(allowedSourceTools, { localModelLeanApplied: true });
|
|
1637
1660
|
const newlyConstructedTools = compactedTools.tools.filter((tool) => !boundSourceTools.has(tool));
|
|
1638
1661
|
const boundNewlyConstructedTools = newlyConstructedTools.length > 0 ? hostCapabilities.bindToolSurface(newlyConstructedTools, bindingOptions) : newlyConstructedTools;
|
|
1639
1662
|
if (boundNewlyConstructedTools.length !== newlyConstructedTools.length) throw new Error("Copilot host capability changed the tool surface length.");
|
|
@@ -1670,7 +1693,8 @@ async function createCopilotToolBridge(input) {
|
|
|
1670
1693
|
const directToolNames = new Set(result.tools.map((tool) => tool.name));
|
|
1671
1694
|
return {
|
|
1672
1695
|
tools: sdkTools.filter((tool) => directToolNames.has(tool.name)),
|
|
1673
|
-
callableToolNames: result.callableToolNames
|
|
1696
|
+
callableToolNames: result.callableToolNames,
|
|
1697
|
+
toolSchemaDirectoryPrompt: result.toolSchemaDirectoryPrompt
|
|
1674
1698
|
};
|
|
1675
1699
|
}
|
|
1676
1700
|
},
|
|
@@ -1684,8 +1708,8 @@ async function createCopilotToolBridge(input) {
|
|
|
1684
1708
|
*/
|
|
1685
1709
|
function buildOpenClawCodingToolsOptions(input, toolPlan, toolSurfaceRuntime) {
|
|
1686
1710
|
const a = input.attemptParams;
|
|
1687
|
-
const sandboxSessionKey = a.sandboxSessionKey?.trim() || a.sessionKey?.trim() || input.
|
|
1688
|
-
const liveSessionKey = a.sessionKey
|
|
1711
|
+
const sandboxSessionKey = a.sandboxSessionKey?.trim() || a.sessionKey?.trim() || input.sessionId;
|
|
1712
|
+
const liveSessionKey = a.sessionKey;
|
|
1689
1713
|
const runSessionKey = liveSessionKey && liveSessionKey !== sandboxSessionKey ? liveSessionKey : void 0;
|
|
1690
1714
|
const workspaceDir = input.workspaceDir ?? a.workspaceDir;
|
|
1691
1715
|
const cwd = input.cwd ?? a.cwd;
|
|
@@ -1721,7 +1745,7 @@ function buildOpenClawCodingToolsOptions(input, toolPlan, toolSurfaceRuntime) {
|
|
|
1721
1745
|
spawnWorkspaceDir: input.spawnWorkspaceDir,
|
|
1722
1746
|
config: toolSurfaceRuntime?.config ?? a.config,
|
|
1723
1747
|
skillsSnapshot: a.skillsSnapshot,
|
|
1724
|
-
abortSignal:
|
|
1748
|
+
abortSignal: a.abortSignal,
|
|
1725
1749
|
modelProvider: input.modelProvider,
|
|
1726
1750
|
modelId: input.modelId,
|
|
1727
1751
|
includeCoreTools: toolPlan.includeCoreTools,
|
|
@@ -1782,7 +1806,7 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1782
1806
|
};
|
|
1783
1807
|
const failureResult = (executedArgs, invocation, startedAt, message, error, executionStarted) => {
|
|
1784
1808
|
const errorMessage = toStringifiedError(error).message;
|
|
1785
|
-
input.attemptParams.observeToolTerminal?.({
|
|
1809
|
+
const terminal = input.attemptParams.observeToolTerminal?.({
|
|
1786
1810
|
toolCallId: invocation.toolCallId,
|
|
1787
1811
|
toolName: sourceTool.name,
|
|
1788
1812
|
result: error,
|
|
@@ -1805,7 +1829,8 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1805
1829
|
notifyToolCompleted({
|
|
1806
1830
|
toolName: sourceTool.name,
|
|
1807
1831
|
toolCallId: invocation.toolCallId,
|
|
1808
|
-
args: toToolStartArgs(executedArgs),
|
|
1832
|
+
args: toToolStartArgs(terminal?.executedArguments ?? executedArgs),
|
|
1833
|
+
isError: true,
|
|
1809
1834
|
error: errorMessage,
|
|
1810
1835
|
startedAt
|
|
1811
1836
|
});
|
|
@@ -1813,21 +1838,10 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1813
1838
|
};
|
|
1814
1839
|
const executeOnce = async (args, invocation) => {
|
|
1815
1840
|
const startedAt = Date.now();
|
|
1816
|
-
if (input.abortSignal?.aborted) {
|
|
1841
|
+
if (input.attemptParams.abortSignal?.aborted) {
|
|
1817
1842
|
const error = /* @__PURE__ */ new Error("[copilot-tool-bridge] aborted before execution");
|
|
1818
1843
|
return failureResult(args, invocation, startedAt, error.message, error, false);
|
|
1819
1844
|
}
|
|
1820
|
-
try {
|
|
1821
|
-
await input.beforeExecute?.({
|
|
1822
|
-
args,
|
|
1823
|
-
invocation,
|
|
1824
|
-
sourceTool,
|
|
1825
|
-
toolCallId: invocation.toolCallId,
|
|
1826
|
-
toolName: sourceTool.name
|
|
1827
|
-
});
|
|
1828
|
-
} catch (error) {
|
|
1829
|
-
return failureResult(args, invocation, startedAt, `[copilot-tool-bridge] beforeExecute failed for tool '${sourceTool.name}': ${toStringifiedError(error).message}`, error, false);
|
|
1830
|
-
}
|
|
1831
1845
|
let preparedArgs;
|
|
1832
1846
|
try {
|
|
1833
1847
|
preparedArgs = sourceTool.prepareArguments ? sourceTool.prepareArguments(args) : args;
|
|
@@ -1836,7 +1850,7 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1836
1850
|
}
|
|
1837
1851
|
let result;
|
|
1838
1852
|
try {
|
|
1839
|
-
result = await sourceTool.execute(invocation.toolCallId, preparedArgs, input.abortSignal, void 0);
|
|
1853
|
+
result = await sourceTool.execute(invocation.toolCallId, preparedArgs, input.attemptParams.abortSignal, void 0);
|
|
1840
1854
|
} catch (error) {
|
|
1841
1855
|
return failureResult(preparedArgs, invocation, startedAt, `[copilot-tool-bridge] tool '${sourceTool.name}' failed: ${toStringifiedError(error).message}`, error, true);
|
|
1842
1856
|
}
|
|
@@ -1847,7 +1861,7 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1847
1861
|
isError: resultIsError
|
|
1848
1862
|
});
|
|
1849
1863
|
const resultError = resultIsError ? extractToolErrorMessage(sanitizedResult) : void 0;
|
|
1850
|
-
input.attemptParams.observeToolTerminal?.({
|
|
1864
|
+
const terminal = input.attemptParams.observeToolTerminal?.({
|
|
1851
1865
|
toolCallId: invocation.toolCallId,
|
|
1852
1866
|
toolName: sourceTool.name,
|
|
1853
1867
|
result,
|
|
@@ -1861,8 +1875,9 @@ function convertOpenClawToolToSdkTool(sourceTool, input, scheduleToolExecution)
|
|
|
1861
1875
|
notifyToolCompleted({
|
|
1862
1876
|
toolName: sourceTool.name,
|
|
1863
1877
|
toolCallId: invocation.toolCallId,
|
|
1864
|
-
args: toToolStartArgs(preparedArgs),
|
|
1878
|
+
args: toToolStartArgs(terminal?.executedArguments ?? preparedArgs),
|
|
1865
1879
|
result: sanitizedResult,
|
|
1880
|
+
isError: resultIsError,
|
|
1866
1881
|
...resultError ? { error: resultError } : {},
|
|
1867
1882
|
startedAt
|
|
1868
1883
|
});
|
|
@@ -1889,12 +1904,12 @@ async function executeCatalogTool(input, params) {
|
|
|
1889
1904
|
try {
|
|
1890
1905
|
preparedArgs = sourceTool.prepareArguments ? sourceTool.prepareArguments(params.input) : params.input;
|
|
1891
1906
|
executionStarted = true;
|
|
1892
|
-
const result = await sourceTool.execute(params.toolCallId, preparedArgs, params.signal ?? input.abortSignal, params.onUpdate);
|
|
1907
|
+
const result = await sourceTool.execute(params.toolCallId, preparedArgs, params.signal ?? input.attemptParams.abortSignal, params.onUpdate);
|
|
1893
1908
|
const sanitizedResult = sanitizeToolResult(result);
|
|
1894
1909
|
const isError = isToolResultError(sanitizedResult);
|
|
1895
1910
|
const error = isError ? extractToolErrorMessage(sanitizedResult) ?? "tool returned an error" : void 0;
|
|
1896
1911
|
terminalObserved = true;
|
|
1897
|
-
input.attemptParams?.observeToolTerminal?.({
|
|
1912
|
+
const terminal = input.attemptParams?.observeToolTerminal?.({
|
|
1898
1913
|
toolCallId: params.toolCallId,
|
|
1899
1914
|
toolName: params.toolName,
|
|
1900
1915
|
result,
|
|
@@ -1912,15 +1927,17 @@ async function executeCatalogTool(input, params) {
|
|
|
1912
1927
|
await input.onToolCompleted?.({
|
|
1913
1928
|
toolName: params.toolName,
|
|
1914
1929
|
toolCallId: params.toolCallId,
|
|
1915
|
-
|
|
1930
|
+
parentToolCallId: params.parentToolCallId,
|
|
1931
|
+
args: toToolStartArgs(terminal?.executedArguments ?? preparedArgs),
|
|
1916
1932
|
result: sanitizedResult,
|
|
1933
|
+
isError,
|
|
1917
1934
|
...error ? { error } : {},
|
|
1918
1935
|
startedAt
|
|
1919
1936
|
});
|
|
1920
1937
|
return result;
|
|
1921
1938
|
} catch (error) {
|
|
1922
1939
|
const message = toStringifiedError(error).message;
|
|
1923
|
-
if (!terminalObserved) input.attemptParams?.observeToolTerminal?.({
|
|
1940
|
+
if (!terminalObserved) preparedArgs = (input.attemptParams?.observeToolTerminal?.({
|
|
1924
1941
|
toolCallId: params.toolCallId,
|
|
1925
1942
|
toolName: params.toolName,
|
|
1926
1943
|
result: error,
|
|
@@ -1929,7 +1946,7 @@ async function executeCatalogTool(input, params) {
|
|
|
1929
1946
|
outcome: "failure",
|
|
1930
1947
|
failure: { error: message },
|
|
1931
1948
|
...ownerMutation ? { ownerMutation } : {}
|
|
1932
|
-
});
|
|
1949
|
+
}))?.executedArguments ?? preparedArgs;
|
|
1933
1950
|
const failure = sanitizeToolResult({
|
|
1934
1951
|
content: [{
|
|
1935
1952
|
type: "text",
|
|
@@ -1948,7 +1965,9 @@ async function executeCatalogTool(input, params) {
|
|
|
1948
1965
|
await input.onToolCompleted?.({
|
|
1949
1966
|
toolName: params.toolName,
|
|
1950
1967
|
toolCallId: params.toolCallId,
|
|
1968
|
+
parentToolCallId: params.parentToolCallId,
|
|
1951
1969
|
args: toToolStartArgs(preparedArgs),
|
|
1970
|
+
isError: true,
|
|
1952
1971
|
error: message,
|
|
1953
1972
|
startedAt
|
|
1954
1973
|
});
|
|
@@ -1965,38 +1984,10 @@ function createFailureResult(message, error) {
|
|
|
1965
1984
|
textResultForLlm: message
|
|
1966
1985
|
};
|
|
1967
1986
|
}
|
|
1968
|
-
function createError(message, cause) {
|
|
1969
|
-
const error = new Error(message);
|
|
1970
|
-
error.cause = cause;
|
|
1971
|
-
return error;
|
|
1972
|
-
}
|
|
1973
|
-
/**
|
|
1974
|
-
* Mirrors PI's `shouldForceMessageTool` semantics: a message tool is
|
|
1975
|
-
* forced when the caller asked for it explicitly or when the source
|
|
1976
|
-
* reply delivery mode is `message_tool_only`, but never when
|
|
1977
|
-
* `disableMessageTool` is set (the suppress flag always wins). Compare
|
|
1978
|
-
* `src/agents/pi-embedded-runner/run/attempt.ts:1361-1366` and the
|
|
1979
|
-
* codex equivalent at
|
|
1980
|
-
* `extensions/codex/src/app-server/run-attempt.ts:4253-4258`.
|
|
1981
|
-
*/
|
|
1982
1987
|
function shouldForceCopilotMessageTool(params) {
|
|
1983
1988
|
if (params.disableMessageTool === true) return false;
|
|
1984
1989
|
return params.forceMessageTool === true || params.sourceReplyDeliveryMode === "message_tool_only";
|
|
1985
1990
|
}
|
|
1986
|
-
function filterCopilotToolsForConstructionPlan(tools, plan, options = {}) {
|
|
1987
|
-
if (plan.includeBaseCodingTools && plan.includeShellTools) return tools;
|
|
1988
|
-
const preserveToolNames = new Set(options.preserveToolNames);
|
|
1989
|
-
return tools.filter((tool) => {
|
|
1990
|
-
if (preserveToolNames.has(tool.name)) return true;
|
|
1991
|
-
if (!plan.includeBaseCodingTools && BASE_COPILOT_CODING_TOOL_NAMES.has(tool.name)) return false;
|
|
1992
|
-
if (!plan.includeShellTools && SHELL_COPILOT_CODING_TOOL_NAMES.has(tool.name)) return false;
|
|
1993
|
-
return true;
|
|
1994
|
-
});
|
|
1995
|
-
}
|
|
1996
|
-
function readInlinePluginToolMeta(tool) {
|
|
1997
|
-
const pluginId = tool.pluginId;
|
|
1998
|
-
return typeof pluginId === "string" && pluginId.trim() ? { pluginId } : void 0;
|
|
1999
|
-
}
|
|
2000
1991
|
function findDuplicateToolNames(sourceTools) {
|
|
2001
1992
|
const counts = /* @__PURE__ */ new Map();
|
|
2002
1993
|
for (const sourceTool of sourceTools) {
|
|
@@ -2117,6 +2108,7 @@ function buildCopilotPromptGuidance(params) {
|
|
|
2117
2108
|
}).join("\n") : void 0;
|
|
2118
2109
|
return [
|
|
2119
2110
|
COPILOT_HARNESS_IDENTITY,
|
|
2111
|
+
params.toolSchemaDirectoryPrompt,
|
|
2120
2112
|
callableTools.has(SKILL_WORKSHOP_TOOL_NAME) ? buildSkillWorkshopPromptSection().join("\n") : void 0,
|
|
2121
2113
|
delegationGuidance,
|
|
2122
2114
|
buildHarnessVisibleReplyGuidance({
|
|
@@ -2400,6 +2392,7 @@ async function createCopilotSessionSetup(params) {
|
|
|
2400
2392
|
return buildCopilotPromptGuidance({
|
|
2401
2393
|
attempt: input,
|
|
2402
2394
|
callableToolNames: promptPolicyResult.callableToolNames,
|
|
2395
|
+
toolSchemaDirectoryPrompt: promptPolicyResult.toolSchemaDirectoryPrompt,
|
|
2403
2396
|
requireExplicitMessageTarget: promptToolPolicy.requireExplicitMessageTarget,
|
|
2404
2397
|
workspaceBootstrapInstructions: workspaceBootstrap.instructions
|
|
2405
2398
|
});
|
|
@@ -3173,13 +3166,11 @@ async function runCopilotExecution(context) {
|
|
|
3173
3166
|
modelId: modelRef.id,
|
|
3174
3167
|
agentId: readNonEmptyString(params.agentId) ?? "copilot",
|
|
3175
3168
|
sessionId: readNonEmptyString(input.sessionId) ?? "copilot-session",
|
|
3176
|
-
sessionKey: readNonEmptyString(input.sessionKey),
|
|
3177
3169
|
agentDir: readNonEmptyString(input.agentDir),
|
|
3178
3170
|
workspaceDir: effectiveWorkspaceDir,
|
|
3179
3171
|
cwd: effectiveCwd,
|
|
3180
3172
|
sandbox,
|
|
3181
3173
|
spawnWorkspaceDir: sandboxAwareSpawnWorkspaceDir,
|
|
3182
|
-
abortSignal: params.abortSignal,
|
|
3183
3174
|
attemptParams: observeToolTerminal ? {
|
|
3184
3175
|
...input,
|
|
3185
3176
|
observeToolTerminal
|
|
@@ -3190,15 +3181,11 @@ async function runCopilotExecution(context) {
|
|
|
3190
3181
|
yieldDetected = true;
|
|
3191
3182
|
yieldAcknowledgment = acknowledgment;
|
|
3192
3183
|
},
|
|
3193
|
-
onToolCompleted: async (
|
|
3194
|
-
|
|
3195
|
-
const
|
|
3196
|
-
const
|
|
3197
|
-
if (
|
|
3198
|
-
runId,
|
|
3199
|
-
childSessionKey,
|
|
3200
|
-
expectsCompletionMessage: acceptedSessionSpawnDetails.expectsCompletionMessage === true
|
|
3201
|
-
});
|
|
3184
|
+
onToolCompleted: async (completion) => {
|
|
3185
|
+
bridge?.completeTool(completion);
|
|
3186
|
+
const { args, error, result, startedAt, toolCallId, toolName } = completion;
|
|
3187
|
+
const acceptedSessionSpawn = toolName === "sessions_spawn" && !completion.isError ? normalizeAcceptedSessionSpawnResult(result) : null;
|
|
3188
|
+
if (acceptedSessionSpawn) acceptedSessionSpawns.push(acceptedSessionSpawn);
|
|
3202
3189
|
await runAgentHarnessAfterToolCallHook({
|
|
3203
3190
|
toolName,
|
|
3204
3191
|
toolCallId,
|
|
@@ -3293,6 +3280,8 @@ async function runCopilotExecution(context) {
|
|
|
3293
3280
|
sdkSessionId
|
|
3294
3281
|
});
|
|
3295
3282
|
bridge = attachEventBridge(session, {
|
|
3283
|
+
runId: input.runId,
|
|
3284
|
+
sessionKey: input.sessionKey,
|
|
3296
3285
|
onAssistantDelta: settledToolFinalization ? void 0 : input.onAssistantDelta,
|
|
3297
3286
|
onAgentEvent: settledToolFinalization ? void 0 : input.onAgentEvent,
|
|
3298
3287
|
onNativeSubagentEvent: (event) => nativeSubagentTaskMirror?.handleEvent(event),
|
|
@@ -899,7 +899,7 @@ function createCopilotAgentHarness(options) {
|
|
|
899
899
|
async function runHarnessAttempt(params, operation) {
|
|
900
900
|
const attemptPromise = (async () => {
|
|
901
901
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
|
|
902
|
-
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-
|
|
902
|
+
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-DKgdMTpc.mjs");
|
|
903
903
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
904
904
|
const pool = await getPool();
|
|
905
905
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
@@ -1036,7 +1036,7 @@ function createCopilotAgentHarness(options) {
|
|
|
1036
1036
|
async function runIsolatedCompletionV2(params) {
|
|
1037
1037
|
const completionPromise = (async () => {
|
|
1038
1038
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start isolated completion");
|
|
1039
|
-
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-
|
|
1039
|
+
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-CpLMQyd3.mjs");
|
|
1040
1040
|
if (disposed) throw new Error("[copilot] harness was disposed while starting isolated completion");
|
|
1041
1041
|
return await runCopilotIsolatedCompletion(params, async () => {
|
|
1042
1042
|
const pool = await getPool();
|
|
@@ -1137,7 +1137,7 @@ function createCopilotAgentHarness(options) {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
const tracked = trackedSessions.get(openclawSessionId);
|
|
1139
1139
|
const currentCompactKey = computeCompactRequestKey(params);
|
|
1140
|
-
const { resolvePoolAcquire } = await import("./attempt-
|
|
1140
|
+
const { resolvePoolAcquire } = await import("./attempt-DKgdMTpc.mjs");
|
|
1141
1141
|
let resolvedPoolAcquire;
|
|
1142
1142
|
let currentAuth;
|
|
1143
1143
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveCopilotProvider, o as tokenFingerprint, r as createCopilotByokProxy } from "./harness-
|
|
1
|
+
import { n as resolveCopilotProvider, o as tokenFingerprint, r as createCopilotByokProxy } from "./harness-BH2_ctMF.mjs";
|
|
2
2
|
import { r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.mjs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
//#region extensions/copilot/src/isolated-completion.ts
|
package/dist/harness.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createCopilotAgentHarness } from "./.setup/harness-
|
|
1
|
+
import { t as createCopilotAgentHarness } from "./.setup/harness-BH2_ctMF.mjs";
|
|
2
2
|
export { createCopilotAgentHarness };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createCopilotAgentHarness } from "./.setup/harness-
|
|
1
|
+
import { t as createCopilotAgentHarness } from "./.setup/harness-BH2_ctMF.mjs";
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/copilot",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.6",
|
|
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",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"minHostVersion": ">=2026.5.28"
|
|
25
25
|
},
|
|
26
26
|
"compat": {
|
|
27
|
-
"pluginApi": ">=2026.9.
|
|
27
|
+
"pluginApi": ">=2026.9.6"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.9.
|
|
30
|
+
"openclawVersion": "2026.9.6",
|
|
31
31
|
"bundledDist": false
|
|
32
32
|
},
|
|
33
33
|
"release": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"assets/activity.svg"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"openclaw": ">=2026.9.
|
|
50
|
+
"openclaw": ">=2026.9.6"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|