@workclaw/openclaw-workclaw 1.0.346 → 1.0.347
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/{anthropic-Sa15w5z4.js → anthropic-iz9b7eTM.js} +1 -1
- package/dist/api.js +2 -2
- package/dist/{azure-openai-responses-CPtWbf1C.js → azure-openai-responses-BY4VCLhI.js} +2 -2
- package/dist/{channel-DAmPopBf.js → channel-BSz5NViV.js} +24 -24
- package/dist/{channel-bootstrap.runtime-B0t3vnup-BAOsCuTr.js → channel-bootstrap.runtime-B0t3vnup-OrZCNcwN.js} +1 -1
- package/dist/channel-entry-api.js +3 -3
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{cleanup-i9QIMqva-6zIggooW.js → cleanup-i9QIMqva-BflvVH5S.js} +1 -1
- package/dist/{config-BYmtGm8e.js → config-DsT1JRO0.js} +1 -1
- package/dist/{google-BnRHrBN8.js → google-BJ705Vhr.js} +2 -2
- package/dist/{google-shared-CAR6IShv.js → google-shared-DOkMvbgI.js} +1 -1
- package/dist/{google-vertex-Hiq4fZCi.js → google-vertex-DdruQhTJ.js} +2 -2
- package/dist/{host-hook-cleanup-BNlJQu7G-BwHWtmzK.js → host-hook-cleanup-BNlJQu7G-BIgPXmmV.js} +1 -1
- package/dist/{index-BPHxMrth.js → index-CEXJFX3f.js} +1 -1
- package/dist/{index-DLeHpawu.js → index-C_RXZIe3.js} +1 -1
- package/dist/{index-DUxxZDuE.js → index-DXYf5cvH.js} +1 -1
- package/dist/{legacy-config-issues-Czu0_ffE-YYGt7Dsf.js → legacy-config-issues-Czu0_ffE-CF_9nVpj.js} +2 -2
- package/dist/{message-oTt1u1XX-xhdlS1dt.js → message-oTt1u1XX-BNA1iCaV.js} +3 -3
- package/dist/message.config.runtime-BgZncy2p.js +4 -0
- package/dist/{message.gateway.runtime-DB5W21Jl.js → message.gateway.runtime-BSJCpWsl.js} +1 -1
- package/dist/{mistral-hhgCrfG_.js → mistral-CB_7K2QD.js} +1 -1
- package/dist/{models-config.runtime-BnpSlXPo.js → models-config.runtime-D573bKUC.js} +1 -1
- package/dist/{openai-codex-responses-CBorkFRy.js → openai-codex-responses-bQDvwjaM.js} +2 -2
- package/dist/{openai-completions-Bd-A-Zxa.js → openai-completions-B6nYcarp.js} +1 -1
- package/dist/{openai-responses-8Q6No8u_.js → openai-responses-BSzLx4jt.js} +2 -2
- package/dist/{openai-responses-shared-C4up_jLa.js → openai-responses-shared-NccwYW-T.js} +1 -1
- package/dist/{openrouter-CjDOFscf.js → openrouter-C6vD-ZCW.js} +1 -1
- package/dist/{photon_rs-BsXu_h4Z.js → photon_rs-DLMtqH7u.js} +1 -1
- package/dist/{plugins-C54ejDC8-Cmv2tfRd.js → plugins-C54ejDC8-8qm7-b04.js} +2 -2
- package/dist/{provider-discovery.runtime-D_JTH7-C.js → provider-discovery.runtime-Ut_h1pRP.js} +1 -1
- package/dist/{session-archive.runtime-CDu25YlV.js → session-archive.runtime-BMP_pofW.js} +1 -1
- package/dist/src/connection/workclaw-client.d.ts.map +1 -1
- package/dist/subsystem-W8wAQXn1-Cq-tO-kG.js +4 -0
- package/dist/tools-api.js +1 -1
- package/dist/{transcript.runtime-BJj5V1X4.js → transcript.runtime-Bi3y3q3h.js} +1 -1
- package/dist/{workclaw-client-CMjcFjJx.js → workclaw-client-C8l2Z0za.js} +14 -2
- package/package.json +71 -71
- package/dist/message.config.runtime-BG74oiu7.js +0 -4
- package/dist/subsystem-W8wAQXn1-DEpdQ2rB.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aL as getEnvApiKey, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson, b_ as parseJsonWithRepair } from "./channel-
|
|
1
|
+
import { aL as getEnvApiKey, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson, b_ as parseJsonWithRepair } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { h as hasCopilotVisionInput, b as buildCopilotDynamicHeaders, r as resolveCloudflareBaseUrl } from "./github-copilot-headers-BfVSUvrX.js";
|
package/dist/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { w } from "./channel-
|
|
1
|
+
import { w } from "./channel-BSz5NViV.js";
|
|
2
2
|
import "node:path";
|
|
3
3
|
import "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
4
|
-
import { D as DEFAULT_ACCOUNT_ID, i as inspectWorkclawCredentials, r as resolveDefaultWorkclawAccountId, d as doFetchJson } from "./workclaw-client-
|
|
4
|
+
import { D as DEFAULT_ACCOUNT_ID, i as inspectWorkclawCredentials, r as resolveDefaultWorkclawAccountId, d as doFetchJson } from "./workclaw-client-C8l2Z0za.js";
|
|
5
5
|
import "node:fs/promises";
|
|
6
6
|
function formatTerminalLink(label, url, opts) {
|
|
7
7
|
const esc = "\x1B";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aM as OpenAI, aV as OpenAIError, aW as readEnv, aX as isObj, aY as buildHeaders, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream } from "./channel-
|
|
1
|
+
import { aM as OpenAI, aV as OpenAIError, aW as readEnv, aX as isObj, aY as buildHeaders, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { c as clampOpenAIPromptCacheKey } from "./openai-prompt-cache-COP8flKD.js";
|
|
4
|
-
import { p as processResponsesStream, c as convertResponsesMessages, a as convertResponsesTools } from "./openai-responses-shared-
|
|
4
|
+
import { p as processResponsesStream, c as convertResponsesMessages, a as convertResponsesTools } from "./openai-responses-shared-NccwYW-T.js";
|
|
5
5
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
6
6
|
class AzureOpenAI extends OpenAI {
|
|
7
7
|
/**
|
|
@@ -4,7 +4,7 @@ import * as os$2 from "node:os";
|
|
|
4
4
|
import os__default, { tmpdir, homedir as homedir$1 } from "node:os";
|
|
5
5
|
import * as path$8 from "node:path";
|
|
6
6
|
import path__default, { posix, dirname, join as join$2, delimiter, resolve as resolve$4, relative, sep as sep$2, isAbsolute as isAbsolute$1, basename as basename$1, win32 as win32$1, toNamespacedPath } from "node:path";
|
|
7
|
-
import { f as isBlockedObjectKey, j as normalizeOptionalAccountId, k as normalizeAccountId$1, e as resolveAccountByUserIdAndAgentId, l as refreshAccountCache, m as allocateWorkerAccountId, c as resolveWorkclawAccountWithCache, h as getWorkclawAccessToken, o as getWorkclawModelConfigByAppKey, p as clearWorkclawTokenCache, q as openWorkclawConnection, t as buildAccountMap, D as DEFAULT_ACCOUNT_ID, u as isWorkclawAccountConfigured, v as resolveWorkclawAccount, w as listWorkclawAccountIds } from "./workclaw-client-
|
|
7
|
+
import { f as isBlockedObjectKey, j as normalizeOptionalAccountId, k as normalizeAccountId$1, e as resolveAccountByUserIdAndAgentId, l as refreshAccountCache, m as allocateWorkerAccountId, c as resolveWorkclawAccountWithCache, h as getWorkclawAccessToken, o as getWorkclawModelConfigByAppKey, p as clearWorkclawTokenCache, q as openWorkclawConnection, t as buildAccountMap, D as DEFAULT_ACCOUNT_ID, u as isWorkclawAccountConfigured, v as resolveWorkclawAccount, w as listWorkclawAccountIds } from "./workclaw-client-C8l2Z0za.js";
|
|
8
8
|
import { Q as resolvePathViaExistingAncestorSync, R as union$1, T as string$3, U as object$1, V as array$1, W as number$3, X as boolean$3, Y as literal$2, Z as ZodIssueCode$1, _ as record$1, $ as SecretInputSchema$1, a0 as sensitive, a1 as preprocess$1, a2 as unknown$1, a3 as _enum$2, a4 as GroupChatSchema, a5 as IdentitySchema, a6 as TtsConfigSchema, a7 as HumanDelaySchema, a8 as ToolsLinksSchema, a9 as ToolsMediaSchema, aa as resolveHomeRelativePath, w as resolveRequiredHomeDir, ab as assertAsyncDirectoryGuard, ac as createAsyncDirectoryGuard, ad as runPinnedWriteHelper, ae as sameFileIdentity, N as FsSafeError, af as sanitizeForLog, ag as expandHomePrefix, ah as appendRegularFileSync, M as MODEL_APIS, A as isRecord$i, i as isModelThinkingFormat, q as openRootFileSync, ai as matchRootFileOpenFailure, aj as createPluginCacheKey, ak as PluginLruCache, al as readRootStructuredFileSync, am as resolveConfigDir, J as resolveUserPath$2, an as resolveOpenClawPackageRootSync, x as isPathInside, ao as resolveRootPathSync, ap as safeRealpathSync$2, aq as safeStatSync, ar as tryReadJsonSync, as as readRootJsonObjectSync, at as writeJsonSync, au as isPathInsideWithRealpath, C as normalizeProviderId, v as resolveLoaderPackageRoot, av as isJavaScriptModulePath, y as getCachedPluginModuleLoader, aw as stringifyJsonDocument, ax as root$1, ay as resolveSafeRelativePath, az as readRegularFile, aA as getFsSafeTestHooks, aB as createSyncDirectoryGuard, aC as isPathRelativeEscape, aD as assertSyncDirectoryGuard$1, aE as resolvePluginLoaderTryNative, z as createPluginModuleLoaderCache, aF as escapeRegExp$1, aG as isPlainObject$1, aH as canUseRootFileOpen, aI as sanitizeTerminalText, d as coerceSecretRef, aJ as TypingModeSchema, aK as BlockStreamingCoalesceSchema, aL as BlockStreamingChunkSchema, aM as CliBackendSchema, aN as lazy$1, aO as TranscribeAudioSchema, aP as ContextVisibilityModeSchema, aQ as GroupPolicySchema, aR as url$2, aS as createAllowDenyChannelRulesSchema, aT as InboundDebounceSchema, aU as QueueSchema, aV as VisibleRepliesSchema, aW as NativeCommandsSettingSchema, aX as discriminatedUnion$1, aY as ModelsConfigSchema$1, aZ as SecretsConfigSchema, a_ as HexColorSchema, a$ as NEVER$1, b0 as replaceFileAtomic, b1 as summarizeAllowedValues, b2 as appendAllowedValuesHint, b3 as isBuiltInModelProviderOverlayId, b4 as validateJsonSchemaValue, b5 as replaceFileAtomicSync, u as getCachedPluginSourceModuleLoader, b6 as writeTextAtomic, b7 as resolvePluginRuntimeModulePath, b8 as withProfile, t as toSafeImportPath, b9 as buildPluginLoaderAliasMap, ba as CONFIG_DIR, bb as pathExists, bc as ensureDir, bd as shortenHomeInString, be as SECRET_PROVIDER_ALIAS_PATTERN, E as ENV_SECRET_REF_ID_RE, S as SINGLE_VALUE_FILE_REF_ID, bf as FILE_SECRET_REF_ID_INVALID_ESCAPE_JSON_SCHEMA_PATTERN, bg as EXEC_SECRET_REF_ID_JSON_SCHEMA_PATTERN, bh as resolveConfigScopedRuntimeCacheValue, bi as normalizeProviderIdForAuth, r as resolveSecretInputRef, bj as findNormalizedProviderValue, g as normalizeSecretInputString, bk as replaceFileAtomic$1, bl as assertSafePathSegment, bm as safeFileURLToPath, bn as readLocalFileSafely, bo as shouldPreferNativeModuleLoad, bp as resolveRequiredOsHomeDir, bq as writeJson, br as resolveRootPath, bs as buildChannelConfigSchema } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
9
9
|
import { b as normalizeOptionalString, n as normalizeLowercaseStringOrEmpty, a as normalizeOptionalLowercaseString, h as hasNonEmptyString$1, r as readStringValue, c as normalizeStringifiedOptionalString, d as normalizeFastMode, e as normalizeOptionalThreadValue } from "./string-coerce-DyL154ka-BEV0SzzS.js";
|
|
10
10
|
import * as fs$1$1 from "node:fs/promises";
|
|
@@ -26,7 +26,7 @@ import { z } from "zod";
|
|
|
26
26
|
import { l as logger$1, a as getWorkclawRuntime, j as setToolContext, k as getWorkclawWsConnection, m as setWorkclawWsConnection, n as clearWorkclawWsConnection, o as getAppKeyByAccountId, u as unregisterAccountContext, p as getAllDispatchersByAppKey, q as getReconnectScheduler, r as clearReconnectScheduler, t as clearWorkclawConnectionConfig, v as registerAccountContext, w as tryStartConnecting, x as setReconnectScheduler, y as finishConnecting, z as setWorkclawConnectionConfig, A as getDispatcherByAppKeyAndAccountId, B as getLastInboundAt, C as getLastOutboundAt } from "./runtime-api-DU-e2Pen.js";
|
|
27
27
|
import http$1 from "node:http";
|
|
28
28
|
import https$1 from "node:https";
|
|
29
|
-
import { P as PLUGIN_ID, w as writeConfigFile$1, a as saveOpenConversationId, s as sendMessageWorkclaw, i as initWorkclawAgent } from "./index-
|
|
29
|
+
import { P as PLUGIN_ID, w as writeConfigFile$1, a as saveOpenConversationId, s as sendMessageWorkclaw, i as initWorkclawAgent } from "./index-DXYf5cvH.js";
|
|
30
30
|
import require$$15, { performance as performance$1 } from "node:perf_hooks";
|
|
31
31
|
import I$2, { readFileSync as readFileSync$1, existsSync as existsSync$1, accessSync, constants as constants$2, realpathSync, statSync, readdirSync, mkdirSync as mkdirSync$1, writeFileSync, appendFileSync, openSync, readSync, closeSync, renameSync, chmodSync as chmodSync$1, rmSync, createWriteStream as createWriteStream$1, readlinkSync, readdir as readdir$2, lstatSync, unwatchFile, watchFile, unlinkSync } from "fs";
|
|
32
32
|
import * as path$9 from "path";
|
|
@@ -21185,7 +21185,7 @@ const MIME_BY_EXT = {
|
|
|
21185
21185
|
".htm": "text/html",
|
|
21186
21186
|
".xml": "text/xml"
|
|
21187
21187
|
};
|
|
21188
|
-
const fileTypeModuleLoader = createLazyImportLoader(() => import("./index-
|
|
21188
|
+
const fileTypeModuleLoader = createLazyImportLoader(() => import("./index-CEXJFX3f.js"));
|
|
21189
21189
|
function normalizeMimeType(mime) {
|
|
21190
21190
|
if (!mime) return;
|
|
21191
21191
|
const cleaned = mime.split(";")[0]?.trim().toLowerCase();
|
|
@@ -22377,7 +22377,7 @@ function resolveDefaultAgentWorkspaceDir(env = process.env, homedir2 = os__defau
|
|
|
22377
22377
|
resolveDefaultAgentWorkspaceDir();
|
|
22378
22378
|
let defaultAgentWarned = false;
|
|
22379
22379
|
function warnMultipleDefaultAgents() {
|
|
22380
|
-
import("./subsystem-W8wAQXn1-
|
|
22380
|
+
import("./subsystem-W8wAQXn1-Cq-tO-kG.js").then(({ createSubsystemLogger: createSubsystemLogger2 }) => {
|
|
22381
22381
|
createSubsystemLogger2("agent-scope").warn("Multiple agents marked default=true; using the first entry as default.");
|
|
22382
22382
|
}).catch(() => void 0);
|
|
22383
22383
|
}
|
|
@@ -26521,7 +26521,7 @@ function isRegistryLive(registry2) {
|
|
|
26521
26521
|
return state$1.activeRegistry === registry2 || isRegistryPinned(registry2);
|
|
26522
26522
|
}
|
|
26523
26523
|
async function cleanupPreviousPluginHostRegistry(params) {
|
|
26524
|
-
const [{ getRuntimeConfig: getRuntimeConfig2 }, { cleanupReplacedPluginHostRegistry }] = await Promise.all([import("./config-
|
|
26524
|
+
const [{ getRuntimeConfig: getRuntimeConfig2 }, { cleanupReplacedPluginHostRegistry }] = await Promise.all([import("./config-DsT1JRO0.js"), import("./host-hook-cleanup-BNlJQu7G-BIgPXmmV.js")]);
|
|
26525
26525
|
const nextRegistry = asPluginRegistry(state$1.activeRegistry);
|
|
26526
26526
|
if (!nextRegistry || nextRegistry === params.previousRegistry) return;
|
|
26527
26527
|
const shouldCleanup = () => state$1.activeRegistry !== params.previousRegistry;
|
|
@@ -39423,7 +39423,7 @@ async function finalizeReadConfigSnapshotInternalResult(deps, result2) {
|
|
|
39423
39423
|
}
|
|
39424
39424
|
async function collectInvalidConfigLegacyIssues(raw, sourceRaw) {
|
|
39425
39425
|
if (!raw || typeof raw !== "object") return [];
|
|
39426
|
-
const { findDoctorLegacyConfigIssues } = await import("./legacy-config-issues-Czu0_ffE-
|
|
39426
|
+
const { findDoctorLegacyConfigIssues } = await import("./legacy-config-issues-Czu0_ffE-CF_9nVpj.js");
|
|
39427
39427
|
return findDoctorLegacyConfigIssues(raw, sourceRaw);
|
|
39428
39428
|
}
|
|
39429
39429
|
function createConfigIO(overrides2 = {}) {
|
|
@@ -43000,11 +43000,11 @@ const log$a = createSubsystemLogger("sessions/store");
|
|
|
43000
43000
|
let sessionArchiveRuntimePromise = null;
|
|
43001
43001
|
let trajectoryCleanupRuntimePromise = null;
|
|
43002
43002
|
function loadSessionArchiveRuntime() {
|
|
43003
|
-
sessionArchiveRuntimePromise ??= import("./session-archive.runtime-
|
|
43003
|
+
sessionArchiveRuntimePromise ??= import("./session-archive.runtime-BMP_pofW.js");
|
|
43004
43004
|
return sessionArchiveRuntimePromise;
|
|
43005
43005
|
}
|
|
43006
43006
|
function loadTrajectoryCleanupRuntime() {
|
|
43007
|
-
trajectoryCleanupRuntimePromise ??= import("./cleanup-i9QIMqva-
|
|
43007
|
+
trajectoryCleanupRuntimePromise ??= import("./cleanup-i9QIMqva-BflvVH5S.js");
|
|
43008
43008
|
return trajectoryCleanupRuntimePromise;
|
|
43009
43009
|
}
|
|
43010
43010
|
function updateSessionStoreWriteCaches(params) {
|
|
@@ -45389,12 +45389,12 @@ const attachmentProbeFs = { open: (...args) => fs$1$1.open(...args) };
|
|
|
45389
45389
|
const MAX_ATTACHMENT_FILES = 10;
|
|
45390
45390
|
let sendMessagePromise;
|
|
45391
45391
|
async function loadSendMessage() {
|
|
45392
|
-
sendMessagePromise ??= import("./message-oTt1u1XX-
|
|
45392
|
+
sendMessagePromise ??= import("./message-oTt1u1XX-BNA1iCaV.js").then((module) => module.sendMessage);
|
|
45393
45393
|
return sendMessagePromise;
|
|
45394
45394
|
}
|
|
45395
45395
|
let getChannelPluginPromise;
|
|
45396
45396
|
async function loadGetChannelPlugin() {
|
|
45397
|
-
getChannelPluginPromise ??= import("./plugins-C54ejDC8-
|
|
45397
|
+
getChannelPluginPromise ??= import("./plugins-C54ejDC8-8qm7-b04.js").then((module) => module.getChannelPlugin);
|
|
45398
45398
|
return getChannelPluginPromise;
|
|
45399
45399
|
}
|
|
45400
45400
|
function captionFormatToParseMode(captionFormat) {
|
|
@@ -67946,7 +67946,7 @@ const DANGEROUS_PROVIDER_KEYS = /* @__PURE__ */ new Set([
|
|
|
67946
67946
|
"prototype",
|
|
67947
67947
|
"constructor"
|
|
67948
67948
|
]);
|
|
67949
|
-
const providerRuntimeLoader = createLazyImportLoader(() => import("./provider-discovery.runtime-
|
|
67949
|
+
const providerRuntimeLoader = createLazyImportLoader(() => import("./provider-discovery.runtime-Ut_h1pRP.js"));
|
|
67950
67950
|
function loadProviderRuntime() {
|
|
67951
67951
|
return providerRuntimeLoader.load();
|
|
67952
67952
|
}
|
|
@@ -69587,7 +69587,7 @@ const CONTEXT_WINDOW_RUNTIME_STATE_KEY = Symbol.for("openclaw.contextWindowRunti
|
|
|
69587
69587
|
configuredConfig: void 0,
|
|
69588
69588
|
configLoadFailures: 0,
|
|
69589
69589
|
nextConfigLoadAttemptAtMs: 0,
|
|
69590
|
-
modelsConfigRuntimeLoader: createLazyImportLoader(() => import("./models-config.runtime-
|
|
69590
|
+
modelsConfigRuntimeLoader: createLazyImportLoader(() => import("./models-config.runtime-D573bKUC.js"))
|
|
69591
69591
|
};
|
|
69592
69592
|
return globalState[CONTEXT_WINDOW_RUNTIME_STATE_KEY];
|
|
69593
69593
|
})();
|
|
@@ -90508,12 +90508,12 @@ function planOutboundMediaMessageUnits(params) {
|
|
|
90508
90508
|
const log$3 = createSubsystemLogger("outbound/deliver");
|
|
90509
90509
|
let transcriptRuntimePromise;
|
|
90510
90510
|
async function loadTranscriptRuntime() {
|
|
90511
|
-
transcriptRuntimePromise ??= import("./transcript.runtime-
|
|
90511
|
+
transcriptRuntimePromise ??= import("./transcript.runtime-Bi3y3q3h.js");
|
|
90512
90512
|
return await transcriptRuntimePromise;
|
|
90513
90513
|
}
|
|
90514
90514
|
let channelBootstrapRuntimePromise;
|
|
90515
90515
|
async function loadChannelBootstrapRuntime() {
|
|
90516
|
-
channelBootstrapRuntimePromise ??= import("./channel-bootstrap.runtime-B0t3vnup-
|
|
90516
|
+
channelBootstrapRuntimePromise ??= import("./channel-bootstrap.runtime-B0t3vnup-OrZCNcwN.js");
|
|
90517
90517
|
return await channelBootstrapRuntimePromise;
|
|
90518
90518
|
}
|
|
90519
90519
|
async function resolveChannelOutboundDirectiveOptions(params) {
|
|
@@ -93994,7 +93994,7 @@ function createLazyLoadErrorImages(model, error2) {
|
|
|
93994
93994
|
};
|
|
93995
93995
|
}
|
|
93996
93996
|
function loadOpenRouterImagesProviderModule() {
|
|
93997
|
-
openRouterImagesProviderModulePromise ||= import("./openrouter-
|
|
93997
|
+
openRouterImagesProviderModulePromise ||= import("./openrouter-C6vD-ZCW.js").then((module) => module);
|
|
93998
93998
|
return openRouterImagesProviderModulePromise;
|
|
93999
93999
|
}
|
|
94000
94000
|
const generateImagesOpenRouter = async (model, context, options2) => {
|
|
@@ -94537,7 +94537,7 @@ function createLazySimpleStream(loadModule2) {
|
|
|
94537
94537
|
};
|
|
94538
94538
|
}
|
|
94539
94539
|
function loadAnthropicProviderModule() {
|
|
94540
|
-
anthropicProviderModulePromise ||= import("./anthropic-
|
|
94540
|
+
anthropicProviderModulePromise ||= import("./anthropic-iz9b7eTM.js").then((module) => {
|
|
94541
94541
|
const provider = module;
|
|
94542
94542
|
return {
|
|
94543
94543
|
stream: provider.streamAnthropic,
|
|
@@ -94547,7 +94547,7 @@ function loadAnthropicProviderModule() {
|
|
|
94547
94547
|
return anthropicProviderModulePromise;
|
|
94548
94548
|
}
|
|
94549
94549
|
function loadAzureOpenAIResponsesProviderModule() {
|
|
94550
|
-
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-
|
|
94550
|
+
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-BY4VCLhI.js").then((module) => {
|
|
94551
94551
|
const provider = module;
|
|
94552
94552
|
return {
|
|
94553
94553
|
stream: provider.streamAzureOpenAIResponses,
|
|
@@ -94557,7 +94557,7 @@ function loadAzureOpenAIResponsesProviderModule() {
|
|
|
94557
94557
|
return azureOpenAIResponsesProviderModulePromise;
|
|
94558
94558
|
}
|
|
94559
94559
|
function loadGoogleProviderModule() {
|
|
94560
|
-
googleProviderModulePromise ||= import("./google-
|
|
94560
|
+
googleProviderModulePromise ||= import("./google-BJ705Vhr.js").then((module) => {
|
|
94561
94561
|
const provider = module;
|
|
94562
94562
|
return {
|
|
94563
94563
|
stream: provider.streamGoogle,
|
|
@@ -94567,7 +94567,7 @@ function loadGoogleProviderModule() {
|
|
|
94567
94567
|
return googleProviderModulePromise;
|
|
94568
94568
|
}
|
|
94569
94569
|
function loadGoogleVertexProviderModule() {
|
|
94570
|
-
googleVertexProviderModulePromise ||= import("./google-vertex-
|
|
94570
|
+
googleVertexProviderModulePromise ||= import("./google-vertex-DdruQhTJ.js").then((module) => {
|
|
94571
94571
|
const provider = module;
|
|
94572
94572
|
return {
|
|
94573
94573
|
stream: provider.streamGoogleVertex,
|
|
@@ -94577,7 +94577,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
94577
94577
|
return googleVertexProviderModulePromise;
|
|
94578
94578
|
}
|
|
94579
94579
|
function loadMistralProviderModule() {
|
|
94580
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
94580
|
+
mistralProviderModulePromise ||= import("./mistral-CB_7K2QD.js").then((module) => {
|
|
94581
94581
|
const provider = module;
|
|
94582
94582
|
return {
|
|
94583
94583
|
stream: provider.streamMistral,
|
|
@@ -94587,7 +94587,7 @@ function loadMistralProviderModule() {
|
|
|
94587
94587
|
return mistralProviderModulePromise;
|
|
94588
94588
|
}
|
|
94589
94589
|
function loadOpenAICodexResponsesProviderModule() {
|
|
94590
|
-
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-
|
|
94590
|
+
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-bQDvwjaM.js").then((module) => {
|
|
94591
94591
|
const provider = module;
|
|
94592
94592
|
return {
|
|
94593
94593
|
stream: provider.streamOpenAICodexResponses,
|
|
@@ -94597,7 +94597,7 @@ function loadOpenAICodexResponsesProviderModule() {
|
|
|
94597
94597
|
return openAICodexResponsesProviderModulePromise;
|
|
94598
94598
|
}
|
|
94599
94599
|
function loadOpenAICompletionsProviderModule() {
|
|
94600
|
-
openAICompletionsProviderModulePromise ||= import("./openai-completions-
|
|
94600
|
+
openAICompletionsProviderModulePromise ||= import("./openai-completions-B6nYcarp.js").then((module) => {
|
|
94601
94601
|
const provider = module;
|
|
94602
94602
|
return {
|
|
94603
94603
|
stream: provider.streamOpenAICompletions,
|
|
@@ -94607,7 +94607,7 @@ function loadOpenAICompletionsProviderModule() {
|
|
|
94607
94607
|
return openAICompletionsProviderModulePromise;
|
|
94608
94608
|
}
|
|
94609
94609
|
function loadOpenAIResponsesProviderModule() {
|
|
94610
|
-
openAIResponsesProviderModulePromise ||= import("./openai-responses-
|
|
94610
|
+
openAIResponsesProviderModulePromise ||= import("./openai-responses-BSzLx4jt.js").then((module) => {
|
|
94611
94611
|
const provider = module;
|
|
94612
94612
|
return {
|
|
94613
94613
|
stream: provider.streamOpenAIResponses,
|
|
@@ -196895,7 +196895,7 @@ async function loadPhoton() {
|
|
|
196895
196895
|
loadPromise = (async () => {
|
|
196896
196896
|
const restoreReadFileSync = patchPhotonWasmRead();
|
|
196897
196897
|
try {
|
|
196898
|
-
photonModule = await import("./photon_rs-
|
|
196898
|
+
photonModule = await import("./photon_rs-DLMtqH7u.js").then((n7) => n7.p);
|
|
196899
196899
|
return photonModule;
|
|
196900
196900
|
} catch {
|
|
196901
196901
|
photonModule = null;
|
|
@@ -2,14 +2,14 @@ import { readFile, stat, mkdir, writeFile, unlink } from "node:fs/promises";
|
|
|
2
2
|
import path__default from "node:path";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { n as normalizeAccountId } from "./workclaw-client-
|
|
5
|
+
import { n as normalizeAccountId } from "./workclaw-client-C8l2Z0za.js";
|
|
6
6
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
7
7
|
import os__default from "node:os";
|
|
8
8
|
import { l as logger, a as getWorkclawRuntime, i as isLogLevel, b as setWorkclawRuntime, d as deleteToolContext, c as setToolCallIdToRunIdMapping, e as getToolContext, f as getToolResultHint } from "./runtime-api-DU-e2Pen.js";
|
|
9
9
|
import { exec } from "node:child_process";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
|
-
import { s as sendMessageWorkclaw } from "./index-
|
|
12
|
-
import { r as registerAllOpenclawWorkclawCronTools } from "./index-
|
|
11
|
+
import { s as sendMessageWorkclaw } from "./index-DXYf5cvH.js";
|
|
12
|
+
import { r as registerAllOpenclawWorkclawCronTools } from "./index-C_RXZIe3.js";
|
|
13
13
|
function sendJson$3(res, statusCode, payload) {
|
|
14
14
|
res.statusCode = statusCode;
|
|
15
15
|
res.setHeader("Content-Type", "application/json");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { x as isPathInside } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
2
|
-
import { aI as resolveTrajectoryPointerFilePath, aJ as resolveTrajectoryFilePath, aF as resolveSessionFilePath, aK as safeTrajectorySessionFileName } from "./channel-
|
|
2
|
+
import { aI as resolveTrajectoryPointerFilePath, aJ as resolveTrajectoryFilePath, aF as resolveSessionFilePath, aK as safeTrajectorySessionFileName } from "./channel-BSz5NViV.js";
|
|
3
3
|
import fs__default from "node:fs";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
function isRecord(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C, a, b, D, N, S, T, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, x, y, z, A, B, E, F, G, H, I, J, K, L, M, O, P, Q, R, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai } from "./channel-
|
|
1
|
+
import { C, a, b, D, N, S, T, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, x, y, z, A, B, E, F, G, H, I, J, K, L, M, O, P, Q, R, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { D as D2, E as E2, L as L2, a as a10, M as M2, b as b2, c as c2, d as d2, h as h2, i as i2, e as e2, f as f2, n as n2, g as g2, p as p2, j as j2, r as r2, k as k2 } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
3
3
|
export {
|
|
4
4
|
C as CONFIG_PATH,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isThinkingPart, r as retainThoughtSignature, m as mapStopReason, G as GoogleGenAI, c as convertMessages, a as convertTools, b as mapToolChoice } from "./google-shared-
|
|
2
|
-
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-
|
|
1
|
+
import { i as isThinkingPart, r as retainThoughtSignature, m as mapStopReason, G as GoogleGenAI, c as convertMessages, a as convertTools, b as mapToolChoice } from "./google-shared-DOkMvbgI.js";
|
|
2
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-BSz5NViV.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
5
5
|
let toolCallCounter = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aZ as getDefaultExportFromCjs } from "./channel-
|
|
1
|
+
import { aZ as getDefaultExportFromCjs } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
3
3
|
import { t as transformMessages } from "./transform-messages-CKtg-kNk.js";
|
|
4
4
|
var pRetry$2 = { exports: {} };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isThinkingPart, r as retainThoughtSignature, m as mapStopReason, G as GoogleGenAI, c as convertMessages, a as convertTools, b as mapToolChoice, T as ThinkingLevel, R as ResourceScope } from "./google-shared-
|
|
2
|
-
import { aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-
|
|
1
|
+
import { i as isThinkingPart, r as retainThoughtSignature, m as mapStopReason, G as GoogleGenAI, c as convertMessages, a as convertTools, b as mapToolChoice, T as ThinkingLevel, R as ResourceScope } from "./google-shared-DOkMvbgI.js";
|
|
2
|
+
import { aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-BSz5NViV.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
5
5
|
const API_VERSION = "v1";
|
package/dist/{host-hook-cleanup-BNlJQu7G-BwHWtmzK.js → host-hook-cleanup-BNlJQu7G-BIgPXmmV.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as normalizeLowercaseStringOrEmpty } from "./string-coerce-DyL154ka-BEV0SzzS.js";
|
|
2
|
-
import { au as getActivePluginRegistry, i as getRuntimeConfig, av as withPluginHostCleanupTimeout, aw as cleanupPluginSessionSchedulerJobs, ax as makePluginSessionSchedulerJobKey, ay as clearPluginRunContext, az as normalizeSessionEntrySlotKey, aA as resolveAllAgentSessionStoreTargetsSync, aB as updateSessionStore } from "./channel-
|
|
2
|
+
import { au as getActivePluginRegistry, i as getRuntimeConfig, av as withPluginHostCleanupTimeout, aw as cleanupPluginSessionSchedulerJobs, ax as makePluginSessionSchedulerJobKey, ay as clearPluginRunContext, az as normalizeSessionEntrySlotKey, aA as resolveAllAgentSessionStoreTargetsSync, aB as updateSessionStore } from "./channel-BSz5NViV.js";
|
|
3
3
|
import "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
4
4
|
import fs__default from "node:fs";
|
|
5
5
|
function shouldCleanPlugin(pluginId, filterPluginId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as getRunIdByToolCallId, e as getToolContext, a as getWorkclawRuntime, l as logger } from "./runtime-api-DU-e2Pen.js";
|
|
2
|
-
import { c as resolveWorkclawAccountWithCache, g as normalizeBaseUrl, h as getWorkclawAccessToken, d as doFetchJson } from "./workclaw-client-
|
|
2
|
+
import { c as resolveWorkclawAccountWithCache, g as normalizeBaseUrl, h as getWorkclawAccessToken, d as doFetchJson } from "./workclaw-client-C8l2Z0za.js";
|
|
3
3
|
function parseRelativeTime(timeStr) {
|
|
4
4
|
const s = timeStr.trim().toLowerCase();
|
|
5
5
|
if (/^\d+$/.test(s)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFile, mkdir, writeFile, rename, stat } from "node:fs/promises";
|
|
2
|
-
import { a as resolveWorkclawMessage, s as sendWorkclawReplyMessage, b as sendWorkclawMessage, c as resolveWorkclawAccountWithCache, e as resolveAccountByUserIdAndAgentId } from "./workclaw-client-
|
|
2
|
+
import { a as resolveWorkclawMessage, s as sendWorkclawReplyMessage, b as sendWorkclawMessage, c as resolveWorkclawAccountWithCache, e as resolveAccountByUserIdAndAgentId } from "./workclaw-client-C8l2Z0za.js";
|
|
3
3
|
import { execSync } from "node:child_process";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import os__default, { homedir } from "node:os";
|
package/dist/{legacy-config-issues-Czu0_ffE-YYGt7Dsf.js → legacy-config-issues-Czu0_ffE-CF_9nVpj.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a$ as asNullableRecord, b0 as loadPluginManifestRegistryForPluginRegistry, D as DEFAULT_GATEWAY_PORT, b1 as loadBundledPluginPublicArtifactModuleSync, b2 as listLegacyRuntimeModelProviderAliases, b3 as getBootstrapChannelPlugin } from "./channel-
|
|
1
|
+
import { a$ as asNullableRecord, b0 as loadPluginManifestRegistryForPluginRegistry, D as DEFAULT_GATEWAY_PORT, b1 as loadBundledPluginPublicArtifactModuleSync, b2 as listLegacyRuntimeModelProviderAliases, b3 as getBootstrapChannelPlugin } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { y as getCachedPluginModuleLoader, z as createPluginModuleLoaderCache, A as isRecord, i as isModelThinkingFormat, B as isSafeExecutableValue, C as normalizeProviderId } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import fs__default from "node:fs";
|
|
5
5
|
import path__default from "node:path";
|
|
6
6
|
import { a as normalizeOptionalLowercaseString } from "./string-coerce-DyL154ka-BEV0SzzS.js";
|
|
7
|
-
import { f as isBlockedObjectKey } from "./workclaw-client-
|
|
7
|
+
import { f as isBlockedObjectKey } from "./workclaw-client-C8l2Z0za.js";
|
|
8
8
|
const CLI_MCP_TYPE_TO_OPENCLAW_TRANSPORT = {
|
|
9
9
|
http: "streamable-http",
|
|
10
10
|
"streamable-http": "streamable-http",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b4 as resolveAgentWorkspaceDir, b5 as resolveDefaultAgentId, b6 as listExplicitlyDisabledChannelIdsForConfig, b7 as listPotentialConfiguredChannelPresenceSignals, b8 as createPluginActivationSource, b0 as loadPluginManifestRegistryForPluginRegistry, b9 as normalizePluginsConfig, ba as isBundledManifestOwner, bb as hasExplicitManifestOwnerTrust, bc as isActivatedManifestOwner, bd as resolveEffectivePluginActivationState, be as isPluginEnabledByDefaultForPlatform, bf as hasMeaningfulChannelConfig, bg as passesManifestOwnerBasePolicy, bh as resolveManifestOwnerBasePolicyBlock, bi as resolveSessionAgentId, bj as getOfficialExternalPluginCatalogEntry, bk as resolveOfficialExternalPluginInstall, bl as getOfficialExternalPluginCatalogManifest, bm as resolveOfficialExternalPluginId, bn as resolveOfficialExternalPluginLabel, bo as normalizeMessageChannel, bp as resolveOutboundChannelPlugin, al as listChannelPlugins, bq as isDeliverableMessageChannel, br as listDeliverableMessageChannels, bs as formatErrorMessage, bt as defaultRuntime, bu as formatCliCommand, bv as normalizeMessageChannel$1, bw as getActivePluginChannelRegistryFromState, bx as createOutboundPayloadPlan, by as projectOutboundPayloadPlanForDelivery, bz as projectOutboundPayloadPlanForMirror, bA as sendDurableMessageBatch, bB as resolveOutboundDurableFinalDeliverySupport, bC as GATEWAY_CLIENT_MODES, bD as GATEWAY_CLIENT_NAMES } from "./channel-
|
|
1
|
+
import { b4 as resolveAgentWorkspaceDir, b5 as resolveDefaultAgentId, b6 as listExplicitlyDisabledChannelIdsForConfig, b7 as listPotentialConfiguredChannelPresenceSignals, b8 as createPluginActivationSource, b0 as loadPluginManifestRegistryForPluginRegistry, b9 as normalizePluginsConfig, ba as isBundledManifestOwner, bb as hasExplicitManifestOwnerTrust, bc as isActivatedManifestOwner, bd as resolveEffectivePluginActivationState, be as isPluginEnabledByDefaultForPlatform, bf as hasMeaningfulChannelConfig, bg as passesManifestOwnerBasePolicy, bh as resolveManifestOwnerBasePolicyBlock, bi as resolveSessionAgentId, bj as getOfficialExternalPluginCatalogEntry, bk as resolveOfficialExternalPluginInstall, bl as getOfficialExternalPluginCatalogManifest, bm as resolveOfficialExternalPluginId, bn as resolveOfficialExternalPluginLabel, bo as normalizeMessageChannel, bp as resolveOutboundChannelPlugin, al as listChannelPlugins, bq as isDeliverableMessageChannel, br as listDeliverableMessageChannels, bs as formatErrorMessage, bt as defaultRuntime, bu as formatCliCommand, bv as normalizeMessageChannel$1, bw as getActivePluginChannelRegistryFromState, bx as createOutboundPayloadPlan, by as projectOutboundPayloadPlanForDelivery, bz as projectOutboundPayloadPlanForMirror, bA as sendDurableMessageBatch, bB as resolveOutboundDurableFinalDeliverySupport, bC as GATEWAY_CLIENT_MODES, bD as GATEWAY_CLIENT_NAMES } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { a as normalizeOptionalLowercaseString, b as normalizeOptionalString } from "./string-coerce-DyL154ka-BEV0SzzS.js";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|
|
@@ -625,11 +625,11 @@ function resolveOutboundTarget(params) {
|
|
|
625
625
|
let messageConfigRuntimePromise = null;
|
|
626
626
|
let messageGatewayRuntimePromise = null;
|
|
627
627
|
function loadMessageConfigRuntime() {
|
|
628
|
-
messageConfigRuntimePromise ??= import("./message.config.runtime-
|
|
628
|
+
messageConfigRuntimePromise ??= import("./message.config.runtime-BgZncy2p.js");
|
|
629
629
|
return messageConfigRuntimePromise;
|
|
630
630
|
}
|
|
631
631
|
function loadMessageGatewayRuntime() {
|
|
632
|
-
messageGatewayRuntimePromise ??= import("./message.gateway.runtime-
|
|
632
|
+
messageGatewayRuntimePromise ??= import("./message.gateway.runtime-BSJCpWsl.js");
|
|
633
633
|
return messageGatewayRuntimePromise;
|
|
634
634
|
}
|
|
635
635
|
async function resolveRequiredChannel(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as normalizeOptionalString } from "./string-coerce-DyL154ka-BEV0SzzS.js";
|
|
2
|
-
import { bE as containsEnvVarReference, bF as resolveSafeTimeoutDelayMs, bG as resolveConnectChallengeTimeoutMs, P as resolveConfigPath, Y as resolveGatewayPort, bH as redactSensitiveUrlLikeString, bI as isSecureWebSocketUrl, bs as formatErrorMessage, bJ as isDynamicOperatorGatewayMethod, bK as WRITE_SCOPE, bL as ADMIN_SCOPE, bM as READ_SCOPE, bN as APPROVALS_SCOPE, bO as PAIRING_SCOPE, bP as TALK_SECRETS_SCOPE, bQ as resolveCoreOperatorGatewayMethodScope, bR as resolveReservedGatewayMethodScope, bS as getPluginRegistryState, bT as resolvePreauthHandshakeTimeoutMs, bU as loadGatewayTlsRuntime, a5 as resolveStateDir, bV as loadOrCreateDeviceIdentity, i as getRuntimeConfig, bW as GatewayClient, bC as GATEWAY_CLIENT_MODES, bX as VERSION, bD as GATEWAY_CLIENT_NAMES, bY as isGatewayConnectAssemblyError, bZ as isLoopbackIpAddress } from "./channel-
|
|
2
|
+
import { bE as containsEnvVarReference, bF as resolveSafeTimeoutDelayMs, bG as resolveConnectChallengeTimeoutMs, P as resolveConfigPath, Y as resolveGatewayPort, bH as redactSensitiveUrlLikeString, bI as isSecureWebSocketUrl, bs as formatErrorMessage, bJ as isDynamicOperatorGatewayMethod, bK as WRITE_SCOPE, bL as ADMIN_SCOPE, bM as READ_SCOPE, bN as APPROVALS_SCOPE, bO as PAIRING_SCOPE, bP as TALK_SECRETS_SCOPE, bQ as resolveCoreOperatorGatewayMethodScope, bR as resolveReservedGatewayMethodScope, bS as getPluginRegistryState, bT as resolvePreauthHandshakeTimeoutMs, bU as loadGatewayTlsRuntime, a5 as resolveStateDir, bV as loadOrCreateDeviceIdentity, i as getRuntimeConfig, bW as GatewayClient, bC as GATEWAY_CLIENT_MODES, bX as VERSION, bD as GATEWAY_CLIENT_NAMES, bY as isGatewayConnectAssemblyError, bZ as isLoopbackIpAddress } from "./channel-BSz5NViV.js";
|
|
3
3
|
import { r as resolveSecretInputRef, h as hasConfiguredSecretInput, F as secretRefKey, G as isValidExecSecretRefId, H as formatExecSecretRefIdValidationMessage, I as resolveDefaultSecretProviderAlias, S as SINGLE_VALUE_FILE_REF_ID, J as resolveUserPath, K as readSecureFile, A as isRecord, N as FsSafeError, x as isPathInside, O as inspectPathPermissions, P as safeStat, g as normalizeSecretInputString } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import path__default from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b$ as custom, c0 as string, c1 as object, c2 as boolean, c3 as $ZodError, c4 as prettifyError, c5 as any, c6 as literal, c7 as nullable, c8 as int, c9 as unknown, ca as array, cb as NEVER, cc as union, cd as boolean$1, ce as record, cf as number, cg as datetime, ch as date, ci as _enum, cj as lazy, ck as _void, cl as toJSONSchema, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson } from "./channel-
|
|
1
|
+
import { b$ as custom, c0 as string, c1 as object, c2 as boolean, c3 as $ZodError, c4 as prettifyError, c5 as any, c6 as literal, c7 as nullable, c8 as int, c9 as unknown, ca as array, cb as NEVER, cc as union, cd as boolean$1, ce as record, cf as number, cg as datetime, ch as date, ci as _enum, cj as lazy, ck as _void, cl as toJSONSchema, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { s as shortHash } from "./hash-RwksDas4.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { b as buildBaseOptions, t as transformMessages } from "./transform-messages-CKtg-kNk.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aQ as appendAssistantMessageDiagnostic, aR as createAssistantMessageDiagnostic, aS as formatThrownValue, aT as registerSessionResourceCleanup } from "./channel-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aQ as appendAssistantMessageDiagnostic, aR as createAssistantMessageDiagnostic, aS as formatThrownValue, aT as registerSessionResourceCleanup } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { c as clampOpenAIPromptCacheKey } from "./openai-prompt-cache-COP8flKD.js";
|
|
4
|
-
import { c as convertResponsesMessages, a as convertResponsesTools, p as processResponsesStream } from "./openai-responses-shared-
|
|
4
|
+
import { c as convertResponsesMessages, a as convertResponsesTools, p as processResponsesStream } from "./openai-responses-shared-NccwYW-T.js";
|
|
5
5
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
6
6
|
var __rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
7
7
|
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aU as parseStreamingJson, aM as OpenAI, aP as calculateCost } from "./channel-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aU as parseStreamingJson, aM as OpenAI, aP as calculateCost } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { h as hasCopilotVisionInput, b as buildCopilotDynamicHeaders, i as isCloudflareProvider, r as resolveCloudflareBaseUrl } from "./github-copilot-headers-BfVSUvrX.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aM as OpenAI } from "./channel-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aM as OpenAI } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { h as hasCopilotVisionInput, b as buildCopilotDynamicHeaders, i as isCloudflareProvider, r as resolveCloudflareBaseUrl } from "./github-copilot-headers-BfVSUvrX.js";
|
|
4
4
|
import { c as clampOpenAIPromptCacheKey } from "./openai-prompt-cache-COP8flKD.js";
|
|
5
|
-
import { p as processResponsesStream, c as convertResponsesMessages, a as convertResponsesTools } from "./openai-responses-shared-
|
|
5
|
+
import { p as processResponsesStream, c as convertResponsesMessages, a as convertResponsesTools } from "./openai-responses-shared-NccwYW-T.js";
|
|
6
6
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
7
7
|
const OPENAI_TOOL_CALL_PROVIDERS = /* @__PURE__ */ new Set(["openai", "openai-codex", "opencode"]);
|
|
8
8
|
function resolveCacheRetention(cacheRetention) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aU as parseStreamingJson, aP as calculateCost } from "./channel-
|
|
1
|
+
import { aU as parseStreamingJson, aP as calculateCost } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { s as shortHash } from "./hash-RwksDas4.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
import { t as transformMessages } from "./transform-messages-CKtg-kNk.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aL as getEnvApiKey, aM as OpenAI } from "./channel-
|
|
1
|
+
import { aL as getEnvApiKey, aM as OpenAI } from "./channel-BSz5NViV.js";
|
|
2
2
|
import { h as headersToRecord } from "./headers-BIdF_N1r.js";
|
|
3
3
|
import { s as sanitizeSurrogates } from "./sanitize-unicode-BvtkLirb.js";
|
|
4
4
|
const generateImagesOpenRouter = async (model, context, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aZ as getDefaultExportFromCjs, a_ as commonjsGlobal } from "./channel-
|
|
1
|
+
import { aZ as getDefaultExportFromCjs, a_ as commonjsGlobal } from "./channel-BSz5NViV.js";
|
|
2
2
|
import require$$5 from "util";
|
|
3
3
|
import path__default from "path";
|
|
4
4
|
import I from "fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aj as getChannelPlugin } from "./channel-
|
|
2
|
-
import { ak, al, am } from "./channel-
|
|
1
|
+
import { aj as getChannelPlugin } from "./channel-BSz5NViV.js";
|
|
2
|
+
import { ak, al, am } from "./channel-BSz5NViV.js";
|
|
3
3
|
export {
|
|
4
4
|
getChannelPlugin,
|
|
5
5
|
ak as getLoadedChannelPlugin,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as resolveRequiredHomeDir } from "./plugin-load-profile-DOnG9jJ5-B0ymqOTX.js";
|
|
2
|
-
import { aC as parseSessionArchiveTimestamp, aD as formatSessionArchiveTimestamp, aE as emitSessionTranscriptUpdate, aF as resolveSessionFilePath, aG as resolveSessionTranscriptPathInDir, aH as resolveSessionTranscriptPath } from "./channel-
|
|
2
|
+
import { aC as parseSessionArchiveTimestamp, aD as formatSessionArchiveTimestamp, aE as emitSessionTranscriptUpdate, aF as resolveSessionFilePath, aG as resolveSessionTranscriptPathInDir, aH as resolveSessionTranscriptPath } from "./channel-BSz5NViV.js";
|
|
3
3
|
import fs__default from "node:fs";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
import os__default from "node:os";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workclaw-client.d.ts","sourceRoot":"","sources":["../../../src/connection/workclaw-client.ts"],"names":[],"mappings":"AAUA,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE9D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGlE;AAQD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,WAAW,EACjB,gBAAgB,CAAC,EAAE,OAAO,EAC1B,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"workclaw-client.d.ts","sourceRoot":"","sources":["../../../src/connection/workclaw-client.ts"],"names":[],"mappings":"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"}
|
package/dist/tools-api.js
CHANGED
|
@@ -251,8 +251,9 @@ async function doFetchJson(url, init, allowInsecureTls, requestTimeout) {
|
|
|
251
251
|
const fetcher = allowInsecureTls ? fetch : globalThis.fetch;
|
|
252
252
|
const controller = new AbortController();
|
|
253
253
|
const timeoutMs = typeof requestTimeout === "number" && requestTimeout > 0 ? requestTimeout : 3e4;
|
|
254
|
+
const startedAt = Date.now();
|
|
254
255
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
255
|
-
logger.info(`【智小途-HTTP
|
|
256
|
+
logger.info(`【智小途-HTTP】请求开始 method=${init.method || "GET"} url=${url} timeoutMs=${timeoutMs} allowInsecureTls=${!!allowInsecureTls} startedAt=${new Date(startedAt).toISOString()}`);
|
|
256
257
|
logger.info(`【智小途-HTTP】请求头: ${JSON.stringify(init.headers || {})}`);
|
|
257
258
|
if (init.body) {
|
|
258
259
|
logger.info(`【智小途-HTTP】请求体: ${String(init.body)}`);
|
|
@@ -266,10 +267,21 @@ async function doFetchJson(url, init, allowInsecureTls, requestTimeout) {
|
|
|
266
267
|
...dispatcher ? { dispatcher } : {}
|
|
267
268
|
});
|
|
268
269
|
text = await response.text().catch(() => "");
|
|
270
|
+
} catch (err) {
|
|
271
|
+
const elapsedMs2 = Date.now() - startedAt;
|
|
272
|
+
const errName = err?.name || "";
|
|
273
|
+
const errMsg = err?.message || String(err);
|
|
274
|
+
if (errName === "AbortError") {
|
|
275
|
+
logger.error(`【智小途-HTTP】请求中止 url=${url} elapsedMs=${elapsedMs2} timeoutMs=${timeoutMs} 原因=${errMsg}。可能原因: (1) 请求超时 timeoutMs 偏小; (2) event loop 被其它同步任务阻塞, 导致 setTimeout 无法在预期时间点 fire; (3) 对端/网络层中断连接。请检查上一次日志中的 eventLoopMax/同步阻塞时长。`);
|
|
276
|
+
} else {
|
|
277
|
+
logger.error(`【智小途-HTTP】请求异常 url=${url} elapsedMs=${elapsedMs2} 错误=${errMsg}`);
|
|
278
|
+
}
|
|
279
|
+
throw err;
|
|
269
280
|
} finally {
|
|
270
281
|
clearTimeout(timeoutId);
|
|
271
282
|
}
|
|
272
|
-
|
|
283
|
+
const elapsedMs = Date.now() - startedAt;
|
|
284
|
+
logger.info(`【智小途-HTTP】响应 status=${response?.status} url=${url} elapsedMs=${elapsedMs}`);
|
|
273
285
|
logger.info(`【智小途-HTTP】响应体: ${text}`);
|
|
274
286
|
let data = {};
|
|
275
287
|
if (text) {
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@workclaw/openclaw-workclaw",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"description": "智小途企业通讯平台 OpenClaw 渠道插件",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"workclaw",
|
|
9
|
-
"openclaw",
|
|
10
|
-
"plugin",
|
|
11
|
-
"channel",
|
|
12
|
-
"智小途"
|
|
13
|
-
],
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
},
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.js"
|
|
21
|
-
},
|
|
22
|
-
"./setup": {
|
|
23
|
-
"types": "./dist/setup-entry.d.ts",
|
|
24
|
-
"import": "./dist/setup-entry.js"
|
|
25
|
-
},
|
|
26
|
-
"./tools-api": {
|
|
27
|
-
"types": "./dist/tools-api.d.ts",
|
|
28
|
-
"import": "./dist/tools-api.js"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"main": "./dist/index.js",
|
|
32
|
-
"types": "./dist/index.d.ts",
|
|
33
|
-
"files": [
|
|
34
|
-
"dist",
|
|
35
|
-
"openclaw.plugin.json",
|
|
36
|
-
"skills",
|
|
37
|
-
"templates"
|
|
38
|
-
],
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=18.0.0"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "npm run typecheck && npm run lint && vite build",
|
|
44
|
-
"typecheck": "tsc --noEmit",
|
|
45
|
-
"lint": "eslint --fix"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"undici": "^7.26.0",
|
|
49
|
-
"ws": "^8.21.0",
|
|
50
|
-
"zod": "^4.4.3"
|
|
51
|
-
},
|
|
52
|
-
"openclaw": {
|
|
53
|
-
"extensions": [
|
|
54
|
-
"./dist/index.js"
|
|
55
|
-
],
|
|
56
|
-
"setupEntry": "./dist/setup-entry.js",
|
|
57
|
-
"compat": {
|
|
58
|
-
"pluginApi": ">=2026.6.2",
|
|
59
|
-
"minGatewayVersion": "2026.6.2"
|
|
60
|
-
},
|
|
61
|
-
"build": {
|
|
62
|
-
"openclawVersion": "2026.6.2",
|
|
63
|
-
"pluginSdkVersion": "2026.6.2"
|
|
64
|
-
},
|
|
65
|
-
"install": {
|
|
66
|
-
"npmSpec": "@workclaw/openclaw-workclaw",
|
|
67
|
-
"localPath": "extensions/openclaw-workclaw",
|
|
68
|
-
"defaultChoice": "npm"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@workclaw/openclaw-workclaw",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.347",
|
|
5
|
+
"description": "智小途企业通讯平台 OpenClaw 渠道插件",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"workclaw",
|
|
9
|
+
"openclaw",
|
|
10
|
+
"plugin",
|
|
11
|
+
"channel",
|
|
12
|
+
"智小途"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./setup": {
|
|
23
|
+
"types": "./dist/setup-entry.d.ts",
|
|
24
|
+
"import": "./dist/setup-entry.js"
|
|
25
|
+
},
|
|
26
|
+
"./tools-api": {
|
|
27
|
+
"types": "./dist/tools-api.d.ts",
|
|
28
|
+
"import": "./dist/tools-api.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"openclaw.plugin.json",
|
|
36
|
+
"skills",
|
|
37
|
+
"templates"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "npm run typecheck && npm run lint && vite build",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"lint": "eslint --fix"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"undici": "^7.26.0",
|
|
49
|
+
"ws": "^8.21.0",
|
|
50
|
+
"zod": "^4.4.3"
|
|
51
|
+
},
|
|
52
|
+
"openclaw": {
|
|
53
|
+
"extensions": [
|
|
54
|
+
"./dist/index.js"
|
|
55
|
+
],
|
|
56
|
+
"setupEntry": "./dist/setup-entry.js",
|
|
57
|
+
"compat": {
|
|
58
|
+
"pluginApi": ">=2026.6.2",
|
|
59
|
+
"minGatewayVersion": "2026.6.2"
|
|
60
|
+
},
|
|
61
|
+
"build": {
|
|
62
|
+
"openclawVersion": "2026.6.2",
|
|
63
|
+
"pluginSdkVersion": "2026.6.2"
|
|
64
|
+
},
|
|
65
|
+
"install": {
|
|
66
|
+
"npmSpec": "@workclaw/openclaw-workclaw",
|
|
67
|
+
"localPath": "extensions/openclaw-workclaw",
|
|
68
|
+
"defaultChoice": "npm"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|