@openclaw/copilot 2026.9.3 → 2026.9.4

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 resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-qA-Kb-ZC.js";
1
+ import { a as resolveCopilotAuth, i as createCopilotByokAuth, n as resolveCopilotProvider, r as createCopilotByokProxy } from "./harness-C_65tSNm.js";
2
2
  import { n as normalizeCopilotUsage, r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.js";
3
3
  import { asNonArrayRecord, 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, 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";
@@ -2019,6 +2019,7 @@ function prepareCopilotAttemptContext(params, deps) {
2019
2019
  modelProviderId: modelRef.provider,
2020
2020
  modelId: modelRef.id,
2021
2021
  trigger: input.trigger,
2022
+ inputProvenance: input.inputProvenance,
2022
2023
  foregroundPromptContext: buildEmbeddedForegroundPromptContext({
2023
2024
  ...input,
2024
2025
  agentId: sessionAgentId
@@ -2075,7 +2076,7 @@ function buildCopilotPromptGuidance(params) {
2075
2076
  messageToolAvailable: callableTools.has("message"),
2076
2077
  requireExplicitMessageTarget: params.requireExplicitMessageTarget
2077
2078
  }),
2078
- buildCredentialSafetyPrompt(params.attempt.disableTools !== true && callableTools.has("secrets") ? "secrets" : void 0),
2079
+ buildCredentialSafetyPrompt({ controlToolsAvailable: params.attempt.disableTools !== true && (callableTools.has("openclaw") || callableTools.has("gateway")) }),
2079
2080
  params.workspaceBootstrapInstructions?.trim(),
2080
2081
  extraSystemPrompt ? `${isMinimal ? "## Subagent Context" : "## Conversation Context"}\n${extraSystemPrompt}` : void 0
2081
2082
  ].filter((section) => section?.trim()).join("\n\n") || void 0;
@@ -2942,9 +2943,9 @@ var CopilotNativeSubagentTaskMirror = class {
2942
2943
  status: "cancelled",
2943
2944
  endedAt: eventAt,
2944
2945
  lastEventAt: eventAt,
2945
- error: "Copilot native subagent ended with its parent attempt.",
2946
- progressSummary: "Copilot native subagent cancelled with its parent attempt.",
2947
- terminalSummary: "Copilot native subagent cancelled."
2946
+ error: "Subagent ended with its parent attempt.",
2947
+ progressSummary: "Subagent cancelled with its parent attempt.",
2948
+ terminalSummary: "Subagent cancelled."
2948
2949
  });
2949
2950
  }
2950
2951
  this.activeRunIds.clear();
@@ -2954,19 +2955,19 @@ var CopilotNativeSubagentTaskMirror = class {
2954
2955
  if (agentId ? this.runIdByAgentId.get(agentId) : this.runIdByToolCallId.get(toolCallId)) return;
2955
2956
  const eventAt = this.now();
2956
2957
  const label = event.data.agentDisplayName.trim() || event.data.agentName.trim();
2957
- const task = event.data.agentDescription.trim() || `Copilot native subagent ${label}`;
2958
+ const task = event.data.agentDescription.trim() || `Subagent ${label}`;
2958
2959
  if (!this.runtime.tryCreateRunningTaskRun({
2959
2960
  sourceId: toolCallId,
2960
2961
  agentId: this.params.agentId,
2961
2962
  runId,
2962
- label: label || "Copilot subagent",
2963
+ label: label || "Subagent",
2963
2964
  task,
2964
2965
  notifyPolicy: "silent",
2965
2966
  deliveryStatus: "not_applicable",
2966
2967
  preferMetadata: true,
2967
2968
  startedAt: eventAt,
2968
2969
  lastEventAt: eventAt,
2969
- progressSummary: "Copilot native subagent started."
2970
+ progressSummary: "Subagent started."
2970
2971
  })) return;
2971
2972
  if (agentId) this.runIdByAgentId.set(agentId, runId);
2972
2973
  else this.runIdByToolCallId.set(toolCallId, runId);
@@ -2983,7 +2984,7 @@ var CopilotNativeSubagentTaskMirror = class {
2983
2984
  status: "succeeded",
2984
2985
  endedAt: eventAt,
2985
2986
  lastEventAt: eventAt,
2986
- progressSummary: "Copilot native subagent completed.",
2987
+ progressSummary: "Subagent completed.",
2987
2988
  terminalSummary: buildCompletionSummary(event)
2988
2989
  });
2989
2990
  }
@@ -2998,8 +2999,8 @@ var CopilotNativeSubagentTaskMirror = class {
2998
2999
  endedAt: eventAt,
2999
3000
  lastEventAt: eventAt,
3000
3001
  error: event.data.error,
3001
- progressSummary: "Copilot native subagent failed.",
3002
- terminalSummary: "Copilot native subagent failed."
3002
+ progressSummary: "Subagent failed.",
3003
+ terminalSummary: "Subagent failed."
3003
3004
  });
3004
3005
  }
3005
3006
  resolveRunId(event) {
@@ -3016,7 +3017,7 @@ var CopilotNativeSubagentTaskMirror = class {
3016
3017
  };
3017
3018
  function buildCompletionSummary(event) {
3018
3019
  const details = [event.data.totalToolCalls !== void 0 ? `${event.data.totalToolCalls} tool calls` : void 0, event.data.totalTokens !== void 0 ? `${event.data.totalTokens} tokens` : void 0].filter((value) => value !== void 0);
3019
- return details.length > 0 ? `Copilot native subagent completed (${details.join(", ")}).` : "Copilot native subagent completed.";
3020
+ return details.length > 0 ? `Subagent completed (${details.join(", ")}).` : "Subagent completed.";
3020
3021
  }
3021
3022
  //#endregion
3022
3023
  //#region extensions/copilot/src/attempt-execution.ts
@@ -888,7 +888,7 @@ function createCopilotAgentHarness(options) {
888
888
  async function runHarnessAttempt(params, operation) {
889
889
  const attemptPromise = (async () => {
890
890
  if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
891
- const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-e3wCSh8h.js");
891
+ const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-EPgLnjoV.js");
892
892
  if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
893
893
  const pool = await getPool();
894
894
  if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
@@ -1019,7 +1019,7 @@ function createCopilotAgentHarness(options) {
1019
1019
  async function runIsolatedCompletionV2(params) {
1020
1020
  const completionPromise = (async () => {
1021
1021
  if (disposed) throw new Error("[copilot] harness has been disposed; cannot start isolated completion");
1022
- const { runCopilotIsolatedCompletion } = await import("./isolated-completion-D01XCEU3.js");
1022
+ const { runCopilotIsolatedCompletion } = await import("./isolated-completion-YG0Z8FkF.js");
1023
1023
  if (disposed) throw new Error("[copilot] harness was disposed while starting isolated completion");
1024
1024
  return await runCopilotIsolatedCompletion(params, async () => {
1025
1025
  const pool = await getPool();
@@ -1111,7 +1111,7 @@ function createCopilotAgentHarness(options) {
1111
1111
  };
1112
1112
  const tracked = trackedSessions.get(openclawSessionId);
1113
1113
  const currentCompactKey = computeCompactRequestKey(params);
1114
- const { resolvePoolAcquire } = await import("./attempt-e3wCSh8h.js");
1114
+ const { resolvePoolAcquire } = await import("./attempt-EPgLnjoV.js");
1115
1115
  let resolvedPoolAcquire;
1116
1116
  let currentAuth;
1117
1117
  try {
package/dist/harness.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createCopilotAgentHarness } from "./harness-qA-Kb-ZC.js";
1
+ import { t as createCopilotAgentHarness } from "./harness-C_65tSNm.js";
2
2
  export { createCopilotAgentHarness };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createCopilotAgentHarness } from "./harness-qA-Kb-ZC.js";
1
+ import { t as createCopilotAgentHarness } from "./harness-C_65tSNm.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
@@ -1,4 +1,4 @@
1
- import { n as resolveCopilotProvider, o as tokenFingerprint, r as createCopilotByokProxy } from "./harness-qA-Kb-ZC.js";
1
+ import { n as resolveCopilotProvider, o as tokenFingerprint, r as createCopilotByokProxy } from "./harness-C_65tSNm.js";
2
2
  import { r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.js";
3
3
  import { resolve } from "node:path";
4
4
  //#region extensions/copilot/src/isolated-completion.ts
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "id": "copilot",
3
+ "categories": ["runtime"],
3
4
  "doctorContract": {
4
5
  "configRepair": true
5
6
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/copilot",
3
- "version": "2026.9.3",
3
+ "version": "2026.9.4",
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.3"
27
+ "pluginApi": ">=2026.9.4"
28
28
  },
29
29
  "build": {
30
- "openclawVersion": "2026.9.3",
30
+ "openclawVersion": "2026.9.4",
31
31
  "bundledDist": false
32
32
  },
33
33
  "release": {
@@ -45,7 +45,7 @@
45
45
  "README.md"
46
46
  ],
47
47
  "peerDependencies": {
48
- "openclaw": ">=2026.9.3"
48
+ "openclaw": ">=2026.9.4"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "openclaw": {