@openclaw/copilot 2026.8.1-beta.3 → 2026.9.1-beta.1
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/{attempt-DsIndF6T.js → attempt-NJAPbYd4.js} +8 -5
- package/dist/{harness-BJ_IcIJk.js → harness-hh25oAuF.js} +4 -4
- package/dist/harness.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{isolated-completion-D9VIGPmy.js → isolated-completion-GNSNtOHz.js} +1 -1
- package/dist/{runtime-C2t8Iz5R.js → runtime-DvZQV_8v.js} +4 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
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-hh25oAuF.js";
|
|
2
2
|
import { n as normalizeCopilotUsage, r as createCopilotIsolatedSessionRestrictions, t as buildCopilotAssistantUsage } from "./usage-bridge-Cpa-ZYwL.js";
|
|
3
|
-
import { normalizeOptionalString, normalizeUniqueStringEntries, readNonBlankString, readNonEmptyStringPreservingWhitespace, readNonEmptyStringPreservingWhitespace as readNonEmptyString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
|
-
import { SKILL_WORKSHOP_TOOL_NAME, TRANSCRIPT_CREDENTIAL_SAFETY_PROMPT, applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects, buildAgentHookContextChannelFields, buildDelegationGuidanceSection, buildEmbeddedAttemptToolRunContext, buildHarnessVisibleReplyGuidance, buildSkillWorkshopPromptSection, callGatewayTool, cancelPendingAgentQuestionForSession, claimPendingAgentQuestionAnswer, clearActiveEmbeddedRun, detectAndLoadAgentHarnessPromptImages, embeddedAgentLog, extractToolErrorMessage, getModelProviderRequestTransport, getPluginToolMeta, getPluginToolSideEffectOwnerKey, isHostScopedAgentToolActive, isSubagentSessionKey, isToolResultError, projectAgentHarnessTranscriptMessageForDisplay, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveCompactionTimeoutMs, resolveEmbeddedAttemptToolConstructionPlan, resolveMainSessionDelegationMode, resolveModelAuthMode, resolveSandboxContext, resolveSessionAgentIds, resolveUserPath, 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, TRANSCRIPT_CREDENTIAL_SAFETY_PROMPT, applyEmbeddedAttemptToolsAllow, awaitAgentEndSideEffects, buildAgentHookContextChannelFields, buildDelegationGuidanceSection, buildEmbeddedAttemptToolRunContext, buildEmbeddedForegroundPromptContext, buildHarnessVisibleReplyGuidance, buildSkillWorkshopPromptSection, callGatewayTool, cancelPendingAgentQuestionForSession, claimPendingAgentQuestionAnswer, clearActiveEmbeddedRun, detectAndLoadAgentHarnessPromptImages, embeddedAgentLog, extractToolErrorMessage, getModelProviderRequestTransport, getPluginToolMeta, getPluginToolSideEffectOwnerKey, isHostScopedAgentToolActive, isSubagentSessionKey, isToolResultError, projectAgentHarnessTranscriptMessageForDisplay, resolveAgentDir, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveCompactionTimeoutMs, resolveEmbeddedAttemptToolConstructionPlan, resolveMainSessionDelegationMode, resolveModelAuthMode, resolveSandboxContext, resolveSessionAgentIds, resolveUserPath, 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";
|
|
@@ -542,7 +542,7 @@ function buildAssistantMessage(params) {
|
|
|
542
542
|
type: "text"
|
|
543
543
|
});
|
|
544
544
|
for (const request of toolRequests) content.push({
|
|
545
|
-
arguments: request.arguments
|
|
545
|
+
arguments: asNonArrayRecord(request.arguments),
|
|
546
546
|
id: request.toolCallId,
|
|
547
547
|
name: request.name,
|
|
548
548
|
type: "toolCall"
|
|
@@ -1560,7 +1560,6 @@ async function createCopilotToolBridge(input) {
|
|
|
1560
1560
|
sessionId: input.sessionId,
|
|
1561
1561
|
sessionKey: attemptParams.sandboxSessionKey ?? attemptParams.sessionKey ?? input.sessionKey,
|
|
1562
1562
|
scheduledToolPolicy: attemptParams.scheduledToolPolicy,
|
|
1563
|
-
skillWorkshopProposalOnly: attemptParams.skillWorkshopProposalOnly,
|
|
1564
1563
|
sourceReplyDeliveryMode: attemptParams.sourceReplyDeliveryMode,
|
|
1565
1564
|
toolsAllow: attemptParams.toolsAllow
|
|
1566
1565
|
});
|
|
@@ -2057,6 +2056,10 @@ function prepareCopilotAttemptContext(params, deps) {
|
|
|
2057
2056
|
modelProviderId: modelRef.provider,
|
|
2058
2057
|
modelId: modelRef.id,
|
|
2059
2058
|
trigger: input.trigger,
|
|
2059
|
+
foregroundPromptContext: buildEmbeddedForegroundPromptContext({
|
|
2060
|
+
...input,
|
|
2061
|
+
agentId: sessionAgentId
|
|
2062
|
+
}, input.agentDir ?? resolveAgentDir(input.config ?? {}, sessionAgentId)),
|
|
2060
2063
|
...input.config ? { config: input.config } : {},
|
|
2061
2064
|
...hookContextWindowFields,
|
|
2062
2065
|
...buildAgentHookContextChannelFields(input)
|
|
@@ -827,7 +827,7 @@ function createCopilotAgentHarness(options) {
|
|
|
827
827
|
async function getPool() {
|
|
828
828
|
if (options?.pool) return options.pool;
|
|
829
829
|
if (!poolPromise) poolPromise = (async () => {
|
|
830
|
-
const { createCopilotClientPool } = await import("./runtime-
|
|
830
|
+
const { createCopilotClientPool } = await import("./runtime-DvZQV_8v.js");
|
|
831
831
|
createdPool = createCopilotClientPool(options?.poolOptions);
|
|
832
832
|
return createdPool;
|
|
833
833
|
})();
|
|
@@ -864,7 +864,7 @@ function createCopilotAgentHarness(options) {
|
|
|
864
864
|
async function runHarnessAttempt(params, operation) {
|
|
865
865
|
const attemptPromise = (async () => {
|
|
866
866
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start new attempts");
|
|
867
|
-
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-
|
|
867
|
+
const { resolvePoolAcquire, runCopilotAttempt } = await import("./attempt-NJAPbYd4.js");
|
|
868
868
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
869
869
|
const pool = await getPool();
|
|
870
870
|
if (disposed) throw new Error("[copilot] harness was disposed while starting an attempt");
|
|
@@ -995,7 +995,7 @@ function createCopilotAgentHarness(options) {
|
|
|
995
995
|
async function runIsolatedCompletionV2(params) {
|
|
996
996
|
const completionPromise = (async () => {
|
|
997
997
|
if (disposed) throw new Error("[copilot] harness has been disposed; cannot start isolated completion");
|
|
998
|
-
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-
|
|
998
|
+
const { runCopilotIsolatedCompletion } = await import("./isolated-completion-GNSNtOHz.js");
|
|
999
999
|
if (disposed) throw new Error("[copilot] harness was disposed while starting isolated completion");
|
|
1000
1000
|
return await runCopilotIsolatedCompletion(params, async () => {
|
|
1001
1001
|
const pool = await getPool();
|
|
@@ -1086,7 +1086,7 @@ function createCopilotAgentHarness(options) {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
const tracked = trackedSessions.get(openclawSessionId);
|
|
1088
1088
|
const currentCompactKey = computeCompactRequestKey(params);
|
|
1089
|
-
const { resolvePoolAcquire } = await import("./attempt-
|
|
1089
|
+
const { resolvePoolAcquire } = await import("./attempt-NJAPbYd4.js");
|
|
1090
1090
|
let resolvedPoolAcquire;
|
|
1091
1091
|
let currentAuth;
|
|
1092
1092
|
try {
|
package/dist/harness.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createCopilotAgentHarness } from "./harness-
|
|
1
|
+
import { t as createCopilotAgentHarness } from "./harness-hh25oAuF.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-hh25oAuF.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-
|
|
1
|
+
import { n as resolveCopilotProvider, o as tokenFingerprint, r as createCopilotByokProxy } from "./harness-hh25oAuF.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
|
|
@@ -4,11 +4,14 @@ import { toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
|
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
|
|
7
|
+
//#region extensions/copilot/package.json
|
|
8
|
+
var dependencies = { "@github/copilot-sdk": "1.0.11" };
|
|
9
|
+
//#endregion
|
|
7
10
|
//#region extensions/copilot/src/sdk-loader.ts
|
|
8
11
|
function resolveCopilotSdkFallbackDir(env = process.env) {
|
|
9
12
|
return path.join(resolveStateDir(env), "npm-runtime", "copilot");
|
|
10
13
|
}
|
|
11
|
-
const COPILOT_SDK_SPEC = "@github/copilot-sdk
|
|
14
|
+
const COPILOT_SDK_SPEC = `@github/copilot-sdk@${dependencies["@github/copilot-sdk"]}`;
|
|
12
15
|
let cached;
|
|
13
16
|
async function loadCopilotSdk(options = {}) {
|
|
14
17
|
const useCache = options.cache !== false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/copilot",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.9.1-beta.1",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@github/copilot-sdk": "1.0.
|
|
11
|
+
"@github/copilot-sdk": "1.0.11"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"minHostVersion": ">=2026.5.28"
|
|
25
25
|
},
|
|
26
26
|
"compat": {
|
|
27
|
-
"pluginApi": ">=2026.
|
|
27
|
+
"pluginApi": ">=2026.9.1-beta.1"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.
|
|
30
|
+
"openclawVersion": "2026.9.1-beta.1",
|
|
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.
|
|
48
|
+
"openclaw": ">=2026.9.1-beta.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"openclaw": {
|