@openclaw/copilot 2026.9.7 → 2026.9.9
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-CRiSJYXq.mjs → attempt-BPwNAGgZ.mjs} +4 -2
- package/dist/.setup/{harness-BAWs53-w.mjs → harness-D22IdUJ_.mjs} +3 -3
- package/dist/.setup/{isolated-completion-ClBsnNg8.mjs → isolated-completion-Wdsi7n9K.mjs} +1 -1
- package/dist/harness.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
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-D22IdUJ_.mjs";
|
|
2
2
|
import { n as normalizeCopilotUsage, r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.mjs";
|
|
3
3
|
import { asNonArrayRecord, normalizeOptionalString, normalizeUniqueStringEntries, readNonBlankString, readNonEmptyStringPreservingWhitespace, readNonEmptyStringPreservingWhitespace as readNonEmptyString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
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";
|
|
@@ -8,6 +8,7 @@ import { parseDateStringTimestampMs } from "openclaw/plugin-sdk/number-runtime";
|
|
|
8
8
|
import { createAgentHarnessToolSurfaceRuntime, normalizeAcceptedSessionSpawnResult } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
import { resolveSessionAgentIdsStrict } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
11
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
12
|
import { convertMcpCallToolResult } from "@github/copilot-sdk";
|
|
12
13
|
import { isDeepStrictEqual } from "node:util";
|
|
13
14
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -1545,10 +1546,11 @@ async function createCopilotToolBridge(input) {
|
|
|
1545
1546
|
const exposedTools = compactedTools.tools.map((tool) => newlyBoundTools.get(tool) ?? tool);
|
|
1546
1547
|
const duplicateNames = findDuplicateToolNames(exposedTools);
|
|
1547
1548
|
if (duplicateNames.length > 0) throw new Error(`[copilot-tool-bridge] duplicate tool names: ${duplicateNames.join(", ")}`);
|
|
1549
|
+
const runInAttemptContext = AsyncLocalStorage.snapshot();
|
|
1548
1550
|
let sequentialBarrier = Promise.resolve();
|
|
1549
1551
|
const pendingCalls = /* @__PURE__ */ new Set();
|
|
1550
1552
|
const scheduleToolExecution = (executionMode, execute) => {
|
|
1551
|
-
const run = (executionMode === "sequential" ? Promise.all(pendingCalls) : sequentialBarrier).then(execute);
|
|
1553
|
+
const run = (executionMode === "sequential" ? Promise.all(pendingCalls) : sequentialBarrier).then(() => runInAttemptContext(execute));
|
|
1552
1554
|
const settled = run.then(() => void 0, () => void 0);
|
|
1553
1555
|
pendingCalls.add(settled);
|
|
1554
1556
|
settled.then(() => pendingCalls.delete(settled));
|
|
@@ -822,7 +822,7 @@ function createCopilotAgentHarness(options) {
|
|
|
822
822
|
async function runHarnessAttempt(params, operation) {
|
|
823
823
|
return trackOperation(async () => {
|
|
824
824
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
|
|
825
|
-
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-
|
|
825
|
+
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-BPwNAGgZ.mjs");
|
|
826
826
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
827
827
|
const pool = await getPool();
|
|
828
828
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
@@ -950,7 +950,7 @@ function createCopilotAgentHarness(options) {
|
|
|
950
950
|
async function runIsolatedCompletionV2(params) {
|
|
951
951
|
return trackOperation(async () => {
|
|
952
952
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start isolated completion");
|
|
953
|
-
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-
|
|
953
|
+
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-Wdsi7n9K.mjs");
|
|
954
954
|
if (disposed) throw new Error("[copilot] harness was disposed while starting isolated completion");
|
|
955
955
|
return await runCopilotIsolatedCompletion(params, async () => {
|
|
956
956
|
const pool = await getPool();
|
|
@@ -1048,7 +1048,7 @@ function createCopilotAgentHarness(options) {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
const tracked = trackedSessions.get(openclawSessionId);
|
|
1050
1050
|
const currentCompactKey = computeCompactRequestKey(params);
|
|
1051
|
-
const { resolvePoolAcquire } = await import("./attempt-
|
|
1051
|
+
const { resolvePoolAcquire } = await import("./attempt-BPwNAGgZ.mjs");
|
|
1052
1052
|
let resolvedPoolAcquire;
|
|
1053
1053
|
try {
|
|
1054
1054
|
resolvedPoolAcquire = resolvePoolAcquire(params);
|
|
@@ -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-D22IdUJ_.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-D22IdUJ_.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-D22IdUJ_.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.9",
|
|
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.9"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.9.
|
|
30
|
+
"openclawVersion": "2026.9.9",
|
|
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.9"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|