@openclaw/copilot 2026.10.1-beta.2 → 2026.10.2

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,4 +1,4 @@
1
- import { a as createCopilotByokProxy, i as createPromptError, n as resolveCopilotProvider, o as createCopilotByokAuth, s as resolveCopilotAuth } from "./harness-BeLT-JyA.mjs";
1
+ import { a as createCopilotByokProxy, i as createPromptError, n as resolveCopilotProvider, o as createCopilotByokAuth, s as resolveCopilotAuth } from "./harness-pIM2FFm8.mjs";
2
2
  import { n as normalizeCopilotUsage, r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge--rLPdCvV.mjs";
3
3
  import { asNonArrayRecord, asOptionalObjectRecord, asOptionalRecord, 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";
@@ -10,6 +10,7 @@ import { parseDateStringTimestampMs } from "openclaw/plugin-sdk/number-runtime";
10
10
  import { createAgentHarnessToolSurfaceRuntime, normalizeAcceptedSessionSpawnResult } from "openclaw/plugin-sdk/agent-harness-tool-runtime";
11
11
  import fsp from "node:fs/promises";
12
12
  import { resolveSessionAgentIdsStrict } from "openclaw/plugin-sdk/agent-scope-runtime";
13
+ import { AsyncLocalStorage } from "node:async_hooks";
13
14
  import { convertMcpCallToolResult } from "@github/copilot-sdk";
14
15
  import { textResult } from "openclaw/plugin-sdk/tool-results";
15
16
  import { isDeepStrictEqual } from "node:util";
@@ -1470,7 +1471,8 @@ async function createCopilotToolBridge(input) {
1470
1471
  sessionKey: attemptParams.sessionKey,
1471
1472
  scheduledToolPolicy: attemptParams.scheduledToolPolicy,
1472
1473
  sourceReplyDeliveryMode: attemptParams.sourceReplyDeliveryMode,
1473
- toolsAllow: attemptParams.toolsAllow
1474
+ toolsAllow: attemptParams.toolsAllow,
1475
+ trigger: attemptParams.trigger
1474
1476
  });
1475
1477
  const toolOptions = buildOpenClawCodingToolsOptions(input, {
1476
1478
  ...toolPlan,
@@ -1494,10 +1496,11 @@ async function createCopilotToolBridge(input) {
1494
1496
  const exposedTools = compactedTools.tools.map((tool) => newlyBoundTools.get(tool) ?? tool);
1495
1497
  const duplicateNames = findDuplicateToolNames(exposedTools);
1496
1498
  if (duplicateNames.length > 0) throw new Error(`[copilot-tool-bridge] duplicate tool names: ${duplicateNames.join(", ")}`);
1499
+ const runInAttemptContext = AsyncLocalStorage.snapshot();
1497
1500
  let sequentialBarrier = Promise.resolve();
1498
1501
  const pendingCalls = /* @__PURE__ */ new Set();
1499
1502
  const scheduleToolExecution = (executionMode, execute) => {
1500
- const run = (executionMode === "sequential" ? Promise.all(pendingCalls) : sequentialBarrier).then(execute);
1503
+ const run = (executionMode === "sequential" ? Promise.all(pendingCalls) : sequentialBarrier).then(() => runInAttemptContext(execute));
1501
1504
  const settled = run.then(() => void 0, () => void 0);
1502
1505
  pendingCalls.add(settled);
1503
1506
  settled.then(() => pendingCalls.delete(settled));
@@ -803,7 +803,7 @@ function createCopilotAgentHarness(options) {
803
803
  async function runHarnessAttempt(params, operation) {
804
804
  return trackOperation(async () => {
805
805
  if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
806
- const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-Dr9LPO0j.mjs");
806
+ const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-xgkehY1T.mjs");
807
807
  if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
808
808
  const pool = await getPool();
809
809
  if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
@@ -931,7 +931,7 @@ function createCopilotAgentHarness(options) {
931
931
  async function runIsolatedCompletionV2(params) {
932
932
  return trackOperation(async () => {
933
933
  if (disposed) throw new Error("[copilot] harness has been disposed; cannot start isolated completion");
934
- const { runCopilotIsolatedCompletion } = await import("./isolated-completion-B-WKqKY6.mjs");
934
+ const { runCopilotIsolatedCompletion } = await import("./isolated-completion-D0FvdmXD.mjs");
935
935
  if (disposed) throw new Error("[copilot] harness was disposed while starting isolated completion");
936
936
  return await runCopilotIsolatedCompletion(params, async () => {
937
937
  const pool = await getPool();
@@ -1029,7 +1029,7 @@ function createCopilotAgentHarness(options) {
1029
1029
  };
1030
1030
  const tracked = trackedSessions.get(openclawSessionId);
1031
1031
  const currentCompactKey = computeCompactRequestKey(params);
1032
- const { resolvePoolAcquire } = await import("./attempt-Dr9LPO0j.mjs");
1032
+ const { resolvePoolAcquire } = await import("./attempt-xgkehY1T.mjs");
1033
1033
  let resolvedPoolAcquire;
1034
1034
  try {
1035
1035
  resolvedPoolAcquire = resolvePoolAcquire(params);
@@ -1,4 +1,4 @@
1
- import { a as createCopilotByokProxy, c as tokenFingerprint, n as resolveCopilotProvider, r as createCopilotAbortError } from "./harness-BeLT-JyA.mjs";
1
+ import { a as createCopilotByokProxy, c as tokenFingerprint, n as resolveCopilotProvider, r as createCopilotAbortError } from "./harness-pIM2FFm8.mjs";
2
2
  import { r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge--rLPdCvV.mjs";
3
3
  import { asNonArrayRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { resolve } from "node:path";
package/dist/harness.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createCopilotAgentHarness } from "./.setup/harness-BeLT-JyA.mjs";
1
+ import { t as createCopilotAgentHarness } from "./.setup/harness-pIM2FFm8.mjs";
2
2
  export { createCopilotAgentHarness };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createCopilotAgentHarness } from "./.setup/harness-BeLT-JyA.mjs";
1
+ import { t as createCopilotAgentHarness } from "./.setup/harness-pIM2FFm8.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.10.1-beta.2",
3
+ "version": "2026.10.2",
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.10.1-beta.2"
27
+ "pluginApi": ">=2026.10.2"
28
28
  },
29
29
  "build": {
30
- "openclawVersion": "2026.10.1-beta.2",
30
+ "openclawVersion": "2026.10.2",
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.10.1-beta.2"
50
+ "openclaw": ">=2026.10.2"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "openclaw": {