@workclaw/openclaw-workclaw 1.0.345 → 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.
Files changed (42) hide show
  1. package/dist/{anthropic-DPIo8aZS.js → anthropic-iz9b7eTM.js} +1 -1
  2. package/dist/api.js +2 -2
  3. package/dist/{azure-openai-responses-DD2qWGIN.js → azure-openai-responses-BY4VCLhI.js} +2 -2
  4. package/dist/{channel-DRvDqBYj.js → channel-BSz5NViV.js} +885 -849
  5. package/dist/{channel-bootstrap.runtime-B0t3vnup-Czzea06A.js → channel-bootstrap.runtime-B0t3vnup-OrZCNcwN.js} +1 -1
  6. package/dist/channel-entry-api.js +3 -3
  7. package/dist/channel-plugin-api.js +1 -1
  8. package/dist/{cleanup-i9QIMqva-1f5yGy3c.js → cleanup-i9QIMqva-BflvVH5S.js} +1 -1
  9. package/dist/{config-B7WCpONg.js → config-DsT1JRO0.js} +1 -1
  10. package/dist/{google-CO2HXSN_.js → google-BJ705Vhr.js} +2 -2
  11. package/dist/{google-shared-BzJ3YIh8.js → google-shared-DOkMvbgI.js} +1 -1
  12. package/dist/{google-vertex-BD9-XVFI.js → google-vertex-DdruQhTJ.js} +2 -2
  13. package/dist/{host-hook-cleanup-BNlJQu7G-B6gPaEXw.js → host-hook-cleanup-BNlJQu7G-BIgPXmmV.js} +1 -1
  14. package/dist/{index-D9W7_ln2.js → index-CEXJFX3f.js} +1 -1
  15. package/dist/{index-DLeHpawu.js → index-C_RXZIe3.js} +1 -1
  16. package/dist/{index-DvlDhBhd.js → index-DXYf5cvH.js} +2 -2
  17. package/dist/{legacy-config-issues-Czu0_ffE-ktq5IpXk.js → legacy-config-issues-Czu0_ffE-CF_9nVpj.js} +2 -2
  18. package/dist/{message-oTt1u1XX-DOBlhTmr.js → message-oTt1u1XX-BNA1iCaV.js} +3 -3
  19. package/dist/message.config.runtime-BgZncy2p.js +4 -0
  20. package/dist/{message.gateway.runtime-DF-QRcSW.js → message.gateway.runtime-BSJCpWsl.js} +1 -1
  21. package/dist/{mistral-BIsV4aGY.js → mistral-CB_7K2QD.js} +1 -1
  22. package/dist/{models-config.runtime-C39G_JMq.js → models-config.runtime-D573bKUC.js} +1 -1
  23. package/dist/{openai-codex-responses-C6Z_AwQQ.js → openai-codex-responses-bQDvwjaM.js} +2 -2
  24. package/dist/{openai-completions-DZosJ4E4.js → openai-completions-B6nYcarp.js} +1 -1
  25. package/dist/{openai-responses-S_jH9SLK.js → openai-responses-BSzLx4jt.js} +2 -2
  26. package/dist/{openai-responses-shared-CFqFtFHI.js → openai-responses-shared-NccwYW-T.js} +1 -1
  27. package/dist/{openrouter-DmigfOuL.js → openrouter-C6vD-ZCW.js} +1 -1
  28. package/dist/{photon_rs-r_qXiR7O.js → photon_rs-DLMtqH7u.js} +1 -1
  29. package/dist/{plugins-C54ejDC8-DvOLwS0D.js → plugins-C54ejDC8-8qm7-b04.js} +2 -2
  30. package/dist/{provider-discovery.runtime-C7QlqKhh.js → provider-discovery.runtime-Ut_h1pRP.js} +1 -1
  31. package/dist/{session-archive.runtime-DlZRauFQ.js → session-archive.runtime-BMP_pofW.js} +1 -1
  32. package/dist/src/connection/workclaw-client.d.ts.map +1 -1
  33. package/dist/src/types/system.d.ts +1 -1
  34. package/dist/src/types/system.d.ts.map +1 -1
  35. package/dist/subsystem-W8wAQXn1-Cq-tO-kG.js +4 -0
  36. package/dist/tools-api.js +1 -1
  37. package/dist/{transcript.runtime-C6BHG-XW.js → transcript.runtime-Bi3y3q3h.js} +1 -1
  38. package/dist/{workclaw-client-CMjcFjJx.js → workclaw-client-C8l2Z0za.js} +14 -2
  39. package/openclaw.plugin.json +244 -244
  40. package/package.json +1 -1
  41. package/dist/message.config.runtime-C_TAuIcE.js +0 -4
  42. package/dist/subsystem-W8wAQXn1-BRIb6Mz-.js +0 -4
@@ -1,4 +1,4 @@
1
- import { aq, ar } from "./channel-DRvDqBYj.js";
1
+ import { aq, ar } from "./channel-BSz5NViV.js";
2
2
  export {
3
3
  aq as bootstrapOutboundChannelPlugin,
4
4
  ar as resetOutboundChannelBootstrapStateForTests
@@ -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-CMjcFjJx.js";
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-DvlDhBhd.js";
12
- import { r as registerAllOpenclawWorkclawCronTools } from "./index-DLeHpawu.js";
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,4 +1,4 @@
1
- import { w } from "./channel-DRvDqBYj.js";
1
+ import { w } from "./channel-BSz5NViV.js";
2
2
  export {
3
3
  w as workclawPlugin
4
4
  };
@@ -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-DRvDqBYj.js";
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-DRvDqBYj.js";
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-BzJ3YIh8.js";
2
- import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-DRvDqBYj.js";
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-DRvDqBYj.js";
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-BzJ3YIh8.js";
2
- import { aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./channel-DRvDqBYj.js";
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";
@@ -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-DRvDqBYj.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-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,4 +1,4 @@
1
- import { aZ as getDefaultExportFromCjs } from "./channel-DRvDqBYj.js";
1
+ import { aZ as getDefaultExportFromCjs } from "./channel-BSz5NViV.js";
2
2
  const WINDOWS_1252_EXTRA = {
3
3
  128: "€",
4
4
  130: "‚",
@@ -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-CMjcFjJx.js";
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-CMjcFjJx.js";
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";
@@ -8,7 +8,7 @@ import { l as logger, a as getWorkclawRuntime, s as setLastOutboundAt } from "./
8
8
  import { fileURLToPath } from "node:url";
9
9
  import { Agent, fetch } from "undici";
10
10
  const PLUGIN_ID = "openclaw-workclaw";
11
- const DEFAULT_PROVIDER = "mingto";
11
+ const DEFAULT_PROVIDER = "workclaw";
12
12
  const STATE_DIR = "workclaw/data";
13
13
  function fixOwner(dir) {
14
14
  if (process.platform === "win32")
@@ -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-DRvDqBYj.js";
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-CMjcFjJx.js";
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-DRvDqBYj.js";
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-C_TAuIcE.js");
628
+ messageConfigRuntimePromise ??= import("./message.config.runtime-BgZncy2p.js");
629
629
  return messageConfigRuntimePromise;
630
630
  }
631
631
  function loadMessageGatewayRuntime() {
632
- messageGatewayRuntimePromise ??= import("./message.gateway.runtime-DF-QRcSW.js");
632
+ messageGatewayRuntimePromise ??= import("./message.gateway.runtime-BSJCpWsl.js");
633
633
  return messageGatewayRuntimePromise;
634
634
  }
635
635
  async function resolveRequiredChannel(params) {
@@ -0,0 +1,4 @@
1
+ import { i } from "./channel-BSz5NViV.js";
2
+ export {
3
+ i as getRuntimeConfig
4
+ };
@@ -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-DRvDqBYj.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-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-DRvDqBYj.js";
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,4 +1,4 @@
1
- import { an } from "./channel-DRvDqBYj.js";
1
+ import { an } from "./channel-BSz5NViV.js";
2
2
  export {
3
3
  an as ensureOpenClawModelsJson
4
4
  };
@@ -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-DRvDqBYj.js";
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-CFqFtFHI.js";
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-DRvDqBYj.js";
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-DRvDqBYj.js";
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-CFqFtFHI.js";
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-DRvDqBYj.js";
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-DRvDqBYj.js";
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-DRvDqBYj.js";
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-DRvDqBYj.js";
2
- import { ak, al, am } from "./channel-DRvDqBYj.js";
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,4 +1,4 @@
1
- import { at } from "./channel-DRvDqBYj.js";
1
+ import { at } from "./channel-BSz5NViV.js";
2
2
  export {
3
3
  at as resolvePluginDiscoveryProvidersRuntime
4
4
  };
@@ -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-DRvDqBYj.js";
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,CA+Cd;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,c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AI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CActC;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAChC,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,GAAG,CAAC,CA4Bd;AAED;;;GAGG;AACH,wBAAsB,8BAA8B,CAClD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC;IACT,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf,CAAC,CAgCD;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,wBAAsB,mCAAmC,CACvD,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAChC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,GAAG,CAAC,CA2Bd"}
@@ -5,7 +5,7 @@ export declare const PLUGIN_ID = "openclaw-workclaw";
5
5
  /**
6
6
  * 默认模型 provider 名称
7
7
  */
8
- export declare const DEFAULT_PROVIDER = "mingto";
8
+ export declare const DEFAULT_PROVIDER = "workclaw";
9
9
  /**
10
10
  * 插件状态文件路径(相对于 .openclaw 目录)
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/types/system.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS,sBAAsB,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,gBAAgB,WAAW,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,SAAS,kBAAkB,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAA"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/types/system.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS,sBAAsB,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,gBAAgB,aAAa,CAAA;AAE1C;;GAEG;AACH,eAAO,MAAM,SAAS,kBAAkB,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { as as createSubsystemLogger } from "./channel-BSz5NViV.js";
2
+ export {
3
+ createSubsystemLogger
4
+ };
package/dist/tools-api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r } from "./index-DLeHpawu.js";
1
+ import { r } from "./index-C_RXZIe3.js";
2
2
  export {
3
3
  r as registerWorkclawTools
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ao, ap } from "./channel-DRvDqBYj.js";
1
+ import { ao, ap } from "./channel-BSz5NViV.js";
2
2
  export {
3
3
  ao as appendAssistantMessageToSessionTranscript,
4
4
  ap as appendExactAssistantMessageToSessionTranscript
@@ -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】请求 method=${init.method || "GET"} url=${url}`);
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
- logger.info(`【智小途-HTTP】响应 status=${response?.status} url=${url}`);
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) {