@workclaw/openclaw-workclaw 1.0.341 → 1.0.342
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-Bt1B_WsO.js → anthropic-BX4T2YIB.js} +1 -1
- package/dist/{azure-openai-responses-D81GtdqK.js → azure-openai-responses-CRtsnQnD.js} +2 -2
- package/dist/{channel-bootstrap.runtime-B0t3vnup-BX5otLGK.js → channel-bootstrap.runtime-B0t3vnup-vflkdVI8.js} +1 -1
- package/dist/{cleanup-i9QIMqva-CZpto1_h.js → cleanup-i9QIMqva-CYcFSfZC.js} +1 -1
- package/dist/{config-BI_rUm3m.js → config-Cw8JPyMQ.js} +1 -1
- package/dist/{cron-tasks-handler-DjOfC6FY.js → cron-tasks-handler-BIpSoLIG.js} +1 -1
- package/dist/{google-CKjEYJYR.js → google-BhYq3yh7.js} +2 -2
- package/dist/{google-shared-TBL5Ujzo.js → google-shared-sAeUdThk.js} +1 -1
- package/dist/{google-vertex-DTDqpOmg.js → google-vertex-CFbea9mm.js} +2 -2
- package/dist/{host-hook-cleanup-BNlJQu7G-g4y3MSR1.js → host-hook-cleanup-BNlJQu7G-DZh9GtcC.js} +1 -1
- package/dist/{index-C7Fv9kzc.js → index-CXEk4j12.js} +1 -1
- package/dist/{index-C_m6K5Z1.js → index-ZWLWkJXc.js} +62 -49
- package/dist/index.js +1 -1
- package/dist/{legacy-config-issues-Czu0_ffE-cm2ZN8ak.js → legacy-config-issues-Czu0_ffE-BUj03gnH.js} +1 -1
- package/dist/{message-oTt1u1XX-BuYf6Fu6.js → message-oTt1u1XX-BHxJ4z66.js} +3 -3
- package/dist/message.config.runtime-DuzEAWuz.js +4 -0
- package/dist/{message.gateway.runtime-DiohkxSb.js → message.gateway.runtime-Ch5zdrYr.js} +1 -1
- package/dist/{mistral-DyNzEyef.js → mistral-DgMDMo1J.js} +1 -1
- package/dist/{models-config.runtime-sGvKSHCw.js → models-config.runtime-DLspRp8e.js} +1 -1
- package/dist/{openai-codex-responses-CHH485JI.js → openai-codex-responses-D6j-616z.js} +2 -2
- package/dist/{openai-completions-CTbGM1gS.js → openai-completions-BtT6C5eC.js} +1 -1
- package/dist/{openai-responses-DleF25NF.js → openai-responses-Dtuy4M7B.js} +2 -2
- package/dist/{openai-responses-shared-DqNDNKp5.js → openai-responses-shared-DZBSlU2d.js} +1 -1
- package/dist/{openrouter-B0Lp2P03.js → openrouter-DbsgRqzU.js} +1 -1
- package/dist/{photon_rs-DqKD7MvK.js → photon_rs-CbOi7Vp0.js} +1 -1
- package/dist/{plugins-C54ejDC8-D0LCEgM1.js → plugins-C54ejDC8-Df48OaX-.js} +2 -2
- package/dist/{provider-discovery.runtime-BBggQCMZ.js → provider-discovery.runtime-Dps3xmj0.js} +1 -1
- package/dist/{session-archive.runtime-sj1A3mPV.js → session-archive.runtime-BAljnZWW.js} +1 -1
- package/dist/src/connection/workclaw-client.d.ts.map +1 -1
- package/dist/subsystem-W8wAQXn1-Dh_4L9-w.js +4 -0
- package/dist/{transcript.runtime-BC2Gdpco.js → transcript.runtime-B6llle92.js} +1 -1
- package/package.json +1 -1
- package/dist/message.config.runtime-CclNEQHu.js +0 -4
- package/dist/subsystem-W8wAQXn1-DB82k4ox.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 "./index-
|
|
1
|
+
import { aL as getEnvApiKey, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson, b$ as parseJsonWithRepair } from "./index-ZWLWkJXc.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";
|
|
@@ -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 "./index-
|
|
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 "./index-ZWLWkJXc.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-DZBSlU2d.js";
|
|
5
5
|
import { b as buildBaseOptions } from "./transform-messages-CKtg-kNk.js";
|
|
6
6
|
class AzureOpenAI extends OpenAI {
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as isPathInside } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
2
|
-
import { aI as resolveTrajectoryPointerFilePath, aJ as resolveTrajectoryFilePath, aF as resolveSessionFilePath, aK as safeTrajectorySessionFileName } from "./index-
|
|
2
|
+
import { aI as resolveTrajectoryPointerFilePath, aJ as resolveTrajectoryFilePath, aF as resolveSessionFilePath, aK as safeTrajectorySessionFileName } from "./index-ZWLWkJXc.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, w, 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 } from "./index-
|
|
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, w, 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 } from "./index-ZWLWkJXc.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-zOQuKNoi.js";
|
|
3
3
|
export {
|
|
4
4
|
C as CONFIG_PATH,
|
|
@@ -3,7 +3,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { promisify } from "node:util";
|
|
6
|
-
import { at as logger } from "./index-
|
|
6
|
+
import { at as logger } from "./index-ZWLWkJXc.js";
|
|
7
7
|
const execAsync = promisify(exec);
|
|
8
8
|
function resolvePreferredCliPathEnv() {
|
|
9
9
|
const defaultAliasPath = join(homedir(), ".nvm", "alias", "default");
|
|
@@ -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 "./index-
|
|
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-sAeUdThk.js";
|
|
2
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./index-ZWLWkJXc.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 "./index-
|
|
1
|
+
import { aZ as getDefaultExportFromCjs } from "./index-ZWLWkJXc.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 "./index-
|
|
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-sAeUdThk.js";
|
|
2
|
+
import { aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost } from "./index-ZWLWkJXc.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-g4y3MSR1.js → host-hook-cleanup-BNlJQu7G-DZh9GtcC.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as normalizeLowercaseStringOrEmpty } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.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 "./index-
|
|
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 "./index-ZWLWkJXc.js";
|
|
3
3
|
import fs__default from "node:fs";
|
|
4
4
|
function shouldCleanPlugin(pluginId, filterPluginId) {
|
|
5
5
|
return !filterPluginId || pluginId === filterPluginId;
|
|
@@ -20376,7 +20376,7 @@ const MIME_BY_EXT = {
|
|
|
20376
20376
|
".htm": "text/html",
|
|
20377
20377
|
".xml": "text/xml"
|
|
20378
20378
|
};
|
|
20379
|
-
const fileTypeModuleLoader = createLazyImportLoader(() => import("./index-
|
|
20379
|
+
const fileTypeModuleLoader = createLazyImportLoader(() => import("./index-CXEk4j12.js"));
|
|
20380
20380
|
function normalizeMimeType(mime) {
|
|
20381
20381
|
if (!mime) return;
|
|
20382
20382
|
const cleaned = mime.split(";")[0]?.trim().toLowerCase();
|
|
@@ -21568,7 +21568,7 @@ function resolveDefaultAgentWorkspaceDir(env = process.env, homedir2 = os__defau
|
|
|
21568
21568
|
resolveDefaultAgentWorkspaceDir();
|
|
21569
21569
|
let defaultAgentWarned = false;
|
|
21570
21570
|
function warnMultipleDefaultAgents() {
|
|
21571
|
-
import("./subsystem-W8wAQXn1-
|
|
21571
|
+
import("./subsystem-W8wAQXn1-Dh_4L9-w.js").then(({ createSubsystemLogger: createSubsystemLogger2 }) => {
|
|
21572
21572
|
createSubsystemLogger2("agent-scope").warn("Multiple agents marked default=true; using the first entry as default.");
|
|
21573
21573
|
}).catch(() => void 0);
|
|
21574
21574
|
}
|
|
@@ -27497,7 +27497,7 @@ function isRegistryLive(registry2) {
|
|
|
27497
27497
|
return state$1.activeRegistry === registry2 || isRegistryPinned(registry2);
|
|
27498
27498
|
}
|
|
27499
27499
|
async function cleanupPreviousPluginHostRegistry(params) {
|
|
27500
|
-
const [{ getRuntimeConfig: getRuntimeConfig2 }, { cleanupReplacedPluginHostRegistry }] = await Promise.all([import("./config-
|
|
27500
|
+
const [{ getRuntimeConfig: getRuntimeConfig2 }, { cleanupReplacedPluginHostRegistry }] = await Promise.all([import("./config-Cw8JPyMQ.js"), import("./host-hook-cleanup-BNlJQu7G-DZh9GtcC.js")]);
|
|
27501
27501
|
const nextRegistry = asPluginRegistry(state$1.activeRegistry);
|
|
27502
27502
|
if (!nextRegistry || nextRegistry === params.previousRegistry) return;
|
|
27503
27503
|
const shouldCleanup = () => state$1.activeRegistry !== params.previousRegistry;
|
|
@@ -40399,7 +40399,7 @@ async function finalizeReadConfigSnapshotInternalResult(deps, result2) {
|
|
|
40399
40399
|
}
|
|
40400
40400
|
async function collectInvalidConfigLegacyIssues(raw, sourceRaw) {
|
|
40401
40401
|
if (!raw || typeof raw !== "object") return [];
|
|
40402
|
-
const { findDoctorLegacyConfigIssues } = await import("./legacy-config-issues-Czu0_ffE-
|
|
40402
|
+
const { findDoctorLegacyConfigIssues } = await import("./legacy-config-issues-Czu0_ffE-BUj03gnH.js");
|
|
40403
40403
|
return findDoctorLegacyConfigIssues(raw, sourceRaw);
|
|
40404
40404
|
}
|
|
40405
40405
|
function createConfigIO(overrides2 = {}) {
|
|
@@ -43976,11 +43976,11 @@ const log$a = createSubsystemLogger("sessions/store");
|
|
|
43976
43976
|
let sessionArchiveRuntimePromise = null;
|
|
43977
43977
|
let trajectoryCleanupRuntimePromise = null;
|
|
43978
43978
|
function loadSessionArchiveRuntime() {
|
|
43979
|
-
sessionArchiveRuntimePromise ??= import("./session-archive.runtime-
|
|
43979
|
+
sessionArchiveRuntimePromise ??= import("./session-archive.runtime-BAljnZWW.js");
|
|
43980
43980
|
return sessionArchiveRuntimePromise;
|
|
43981
43981
|
}
|
|
43982
43982
|
function loadTrajectoryCleanupRuntime() {
|
|
43983
|
-
trajectoryCleanupRuntimePromise ??= import("./cleanup-i9QIMqva-
|
|
43983
|
+
trajectoryCleanupRuntimePromise ??= import("./cleanup-i9QIMqva-CYcFSfZC.js");
|
|
43984
43984
|
return trajectoryCleanupRuntimePromise;
|
|
43985
43985
|
}
|
|
43986
43986
|
function updateSessionStoreWriteCaches(params) {
|
|
@@ -46365,12 +46365,12 @@ const attachmentProbeFs = { open: (...args) => fs$1$1.open(...args) };
|
|
|
46365
46365
|
const MAX_ATTACHMENT_FILES = 10;
|
|
46366
46366
|
let sendMessagePromise;
|
|
46367
46367
|
async function loadSendMessage() {
|
|
46368
|
-
sendMessagePromise ??= import("./message-oTt1u1XX-
|
|
46368
|
+
sendMessagePromise ??= import("./message-oTt1u1XX-BHxJ4z66.js").then((module) => module.sendMessage);
|
|
46369
46369
|
return sendMessagePromise;
|
|
46370
46370
|
}
|
|
46371
46371
|
let getChannelPluginPromise;
|
|
46372
46372
|
async function loadGetChannelPlugin() {
|
|
46373
|
-
getChannelPluginPromise ??= import("./plugins-C54ejDC8-
|
|
46373
|
+
getChannelPluginPromise ??= import("./plugins-C54ejDC8-Df48OaX-.js").then((module) => module.getChannelPlugin);
|
|
46374
46374
|
return getChannelPluginPromise;
|
|
46375
46375
|
}
|
|
46376
46376
|
function captionFormatToParseMode(captionFormat) {
|
|
@@ -55628,26 +55628,32 @@ function getRules() {
|
|
|
55628
55628
|
}
|
|
55629
55629
|
rules.getRules = getRules;
|
|
55630
55630
|
var applicability = {};
|
|
55631
|
-
|
|
55632
|
-
|
|
55633
|
-
|
|
55634
|
-
|
|
55635
|
-
|
|
55636
|
-
|
|
55637
|
-
|
|
55638
|
-
|
|
55639
|
-
|
|
55640
|
-
}
|
|
55641
|
-
applicability.
|
|
55642
|
-
function
|
|
55643
|
-
|
|
55644
|
-
|
|
55631
|
+
var hasRequiredApplicability;
|
|
55632
|
+
function requireApplicability() {
|
|
55633
|
+
if (hasRequiredApplicability) return applicability;
|
|
55634
|
+
hasRequiredApplicability = 1;
|
|
55635
|
+
Object.defineProperty(applicability, "__esModule", { value: true });
|
|
55636
|
+
applicability.shouldUseRule = applicability.shouldUseGroup = applicability.schemaHasRulesForType = void 0;
|
|
55637
|
+
function schemaHasRulesForType({ schema: schema2, self: self2 }, type2) {
|
|
55638
|
+
const group = self2.RULES.types[type2];
|
|
55639
|
+
return group && group !== true && shouldUseGroup(schema2, group);
|
|
55640
|
+
}
|
|
55641
|
+
applicability.schemaHasRulesForType = schemaHasRulesForType;
|
|
55642
|
+
function shouldUseGroup(schema2, group) {
|
|
55643
|
+
return group.rules.some((rule) => shouldUseRule(schema2, rule));
|
|
55644
|
+
}
|
|
55645
|
+
applicability.shouldUseGroup = shouldUseGroup;
|
|
55646
|
+
function shouldUseRule(schema2, rule) {
|
|
55647
|
+
var _a2;
|
|
55648
|
+
return schema2[rule.keyword] !== void 0 || ((_a2 = rule.definition.implements) === null || _a2 === void 0 ? void 0 : _a2.some((kwd) => schema2[kwd] !== void 0));
|
|
55649
|
+
}
|
|
55650
|
+
applicability.shouldUseRule = shouldUseRule;
|
|
55651
|
+
return applicability;
|
|
55645
55652
|
}
|
|
55646
|
-
applicability.shouldUseRule = shouldUseRule;
|
|
55647
55653
|
Object.defineProperty(dataType, "__esModule", { value: true });
|
|
55648
55654
|
dataType.reportTypeError = dataType.checkDataTypes = dataType.checkDataType = dataType.coerceAndCheckDataType = dataType.getJSONTypes = dataType.getSchemaTypes = dataType.DataType = void 0;
|
|
55649
55655
|
const rules_1 = rules;
|
|
55650
|
-
const applicability_1 =
|
|
55656
|
+
const applicability_1 = requireApplicability();
|
|
55651
55657
|
const errors_1 = errors;
|
|
55652
55658
|
const codegen_1$o = codegen;
|
|
55653
55659
|
const util_1$o = util$1;
|
|
@@ -56455,7 +56461,7 @@ function requireValidate() {
|
|
|
56455
56461
|
validate$1.getData = validate$1.KeywordCxt = validate$1.validateFunctionCode = void 0;
|
|
56456
56462
|
const boolSchema_1 = requireBoolSchema();
|
|
56457
56463
|
const dataType_12 = dataType;
|
|
56458
|
-
const applicability_12 =
|
|
56464
|
+
const applicability_12 = requireApplicability();
|
|
56459
56465
|
const dataType_2 = dataType;
|
|
56460
56466
|
const defaults_1 = requireDefaults();
|
|
56461
56467
|
const keyword_1 = requireKeyword();
|
|
@@ -68922,7 +68928,7 @@ const DANGEROUS_PROVIDER_KEYS = /* @__PURE__ */ new Set([
|
|
|
68922
68928
|
"prototype",
|
|
68923
68929
|
"constructor"
|
|
68924
68930
|
]);
|
|
68925
|
-
const providerRuntimeLoader = createLazyImportLoader(() => import("./provider-discovery.runtime-
|
|
68931
|
+
const providerRuntimeLoader = createLazyImportLoader(() => import("./provider-discovery.runtime-Dps3xmj0.js"));
|
|
68926
68932
|
function loadProviderRuntime() {
|
|
68927
68933
|
return providerRuntimeLoader.load();
|
|
68928
68934
|
}
|
|
@@ -70563,7 +70569,7 @@ const CONTEXT_WINDOW_RUNTIME_STATE_KEY = Symbol.for("openclaw.contextWindowRunti
|
|
|
70563
70569
|
configuredConfig: void 0,
|
|
70564
70570
|
configLoadFailures: 0,
|
|
70565
70571
|
nextConfigLoadAttemptAtMs: 0,
|
|
70566
|
-
modelsConfigRuntimeLoader: createLazyImportLoader(() => import("./models-config.runtime-
|
|
70572
|
+
modelsConfigRuntimeLoader: createLazyImportLoader(() => import("./models-config.runtime-DLspRp8e.js"))
|
|
70567
70573
|
};
|
|
70568
70574
|
return globalState[CONTEXT_WINDOW_RUNTIME_STATE_KEY];
|
|
70569
70575
|
})();
|
|
@@ -91484,12 +91490,12 @@ function planOutboundMediaMessageUnits(params) {
|
|
|
91484
91490
|
const log$3 = createSubsystemLogger("outbound/deliver");
|
|
91485
91491
|
let transcriptRuntimePromise;
|
|
91486
91492
|
async function loadTranscriptRuntime() {
|
|
91487
|
-
transcriptRuntimePromise ??= import("./transcript.runtime-
|
|
91493
|
+
transcriptRuntimePromise ??= import("./transcript.runtime-B6llle92.js");
|
|
91488
91494
|
return await transcriptRuntimePromise;
|
|
91489
91495
|
}
|
|
91490
91496
|
let channelBootstrapRuntimePromise;
|
|
91491
91497
|
async function loadChannelBootstrapRuntime() {
|
|
91492
|
-
channelBootstrapRuntimePromise ??= import("./channel-bootstrap.runtime-B0t3vnup-
|
|
91498
|
+
channelBootstrapRuntimePromise ??= import("./channel-bootstrap.runtime-B0t3vnup-vflkdVI8.js");
|
|
91493
91499
|
return await channelBootstrapRuntimePromise;
|
|
91494
91500
|
}
|
|
91495
91501
|
async function resolveChannelOutboundDirectiveOptions(params) {
|
|
@@ -94970,7 +94976,7 @@ function createLazyLoadErrorImages(model, error2) {
|
|
|
94970
94976
|
};
|
|
94971
94977
|
}
|
|
94972
94978
|
function loadOpenRouterImagesProviderModule() {
|
|
94973
|
-
openRouterImagesProviderModulePromise ||= import("./openrouter-
|
|
94979
|
+
openRouterImagesProviderModulePromise ||= import("./openrouter-DbsgRqzU.js").then((module) => module);
|
|
94974
94980
|
return openRouterImagesProviderModulePromise;
|
|
94975
94981
|
}
|
|
94976
94982
|
const generateImagesOpenRouter = async (model, context, options2) => {
|
|
@@ -95513,7 +95519,7 @@ function createLazySimpleStream(loadModule2) {
|
|
|
95513
95519
|
};
|
|
95514
95520
|
}
|
|
95515
95521
|
function loadAnthropicProviderModule() {
|
|
95516
|
-
anthropicProviderModulePromise ||= import("./anthropic-
|
|
95522
|
+
anthropicProviderModulePromise ||= import("./anthropic-BX4T2YIB.js").then((module) => {
|
|
95517
95523
|
const provider = module;
|
|
95518
95524
|
return {
|
|
95519
95525
|
stream: provider.streamAnthropic,
|
|
@@ -95523,7 +95529,7 @@ function loadAnthropicProviderModule() {
|
|
|
95523
95529
|
return anthropicProviderModulePromise;
|
|
95524
95530
|
}
|
|
95525
95531
|
function loadAzureOpenAIResponsesProviderModule() {
|
|
95526
|
-
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-
|
|
95532
|
+
azureOpenAIResponsesProviderModulePromise ||= import("./azure-openai-responses-CRtsnQnD.js").then((module) => {
|
|
95527
95533
|
const provider = module;
|
|
95528
95534
|
return {
|
|
95529
95535
|
stream: provider.streamAzureOpenAIResponses,
|
|
@@ -95533,7 +95539,7 @@ function loadAzureOpenAIResponsesProviderModule() {
|
|
|
95533
95539
|
return azureOpenAIResponsesProviderModulePromise;
|
|
95534
95540
|
}
|
|
95535
95541
|
function loadGoogleProviderModule() {
|
|
95536
|
-
googleProviderModulePromise ||= import("./google-
|
|
95542
|
+
googleProviderModulePromise ||= import("./google-BhYq3yh7.js").then((module) => {
|
|
95537
95543
|
const provider = module;
|
|
95538
95544
|
return {
|
|
95539
95545
|
stream: provider.streamGoogle,
|
|
@@ -95543,7 +95549,7 @@ function loadGoogleProviderModule() {
|
|
|
95543
95549
|
return googleProviderModulePromise;
|
|
95544
95550
|
}
|
|
95545
95551
|
function loadGoogleVertexProviderModule() {
|
|
95546
|
-
googleVertexProviderModulePromise ||= import("./google-vertex-
|
|
95552
|
+
googleVertexProviderModulePromise ||= import("./google-vertex-CFbea9mm.js").then((module) => {
|
|
95547
95553
|
const provider = module;
|
|
95548
95554
|
return {
|
|
95549
95555
|
stream: provider.streamGoogleVertex,
|
|
@@ -95553,7 +95559,7 @@ function loadGoogleVertexProviderModule() {
|
|
|
95553
95559
|
return googleVertexProviderModulePromise;
|
|
95554
95560
|
}
|
|
95555
95561
|
function loadMistralProviderModule() {
|
|
95556
|
-
mistralProviderModulePromise ||= import("./mistral-
|
|
95562
|
+
mistralProviderModulePromise ||= import("./mistral-DgMDMo1J.js").then((module) => {
|
|
95557
95563
|
const provider = module;
|
|
95558
95564
|
return {
|
|
95559
95565
|
stream: provider.streamMistral,
|
|
@@ -95563,7 +95569,7 @@ function loadMistralProviderModule() {
|
|
|
95563
95569
|
return mistralProviderModulePromise;
|
|
95564
95570
|
}
|
|
95565
95571
|
function loadOpenAICodexResponsesProviderModule() {
|
|
95566
|
-
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-
|
|
95572
|
+
openAICodexResponsesProviderModulePromise ||= import("./openai-codex-responses-D6j-616z.js").then((module) => {
|
|
95567
95573
|
const provider = module;
|
|
95568
95574
|
return {
|
|
95569
95575
|
stream: provider.streamOpenAICodexResponses,
|
|
@@ -95573,7 +95579,7 @@ function loadOpenAICodexResponsesProviderModule() {
|
|
|
95573
95579
|
return openAICodexResponsesProviderModulePromise;
|
|
95574
95580
|
}
|
|
95575
95581
|
function loadOpenAICompletionsProviderModule() {
|
|
95576
|
-
openAICompletionsProviderModulePromise ||= import("./openai-completions-
|
|
95582
|
+
openAICompletionsProviderModulePromise ||= import("./openai-completions-BtT6C5eC.js").then((module) => {
|
|
95577
95583
|
const provider = module;
|
|
95578
95584
|
return {
|
|
95579
95585
|
stream: provider.streamOpenAICompletions,
|
|
@@ -95583,7 +95589,7 @@ function loadOpenAICompletionsProviderModule() {
|
|
|
95583
95589
|
return openAICompletionsProviderModulePromise;
|
|
95584
95590
|
}
|
|
95585
95591
|
function loadOpenAIResponsesProviderModule() {
|
|
95586
|
-
openAIResponsesProviderModulePromise ||= import("./openai-responses-
|
|
95592
|
+
openAIResponsesProviderModulePromise ||= import("./openai-responses-Dtuy4M7B.js").then((module) => {
|
|
95587
95593
|
const provider = module;
|
|
95588
95594
|
return {
|
|
95589
95595
|
stream: provider.streamOpenAIResponses,
|
|
@@ -197871,7 +197877,7 @@ async function loadPhoton() {
|
|
|
197871
197877
|
loadPromise = (async () => {
|
|
197872
197878
|
const restoreReadFileSync = patchPhotonWasmRead();
|
|
197873
197879
|
try {
|
|
197874
|
-
photonModule = await import("./photon_rs-
|
|
197880
|
+
photonModule = await import("./photon_rs-CbOi7Vp0.js").then((n7) => n7.p);
|
|
197875
197881
|
return photonModule;
|
|
197876
197882
|
} catch {
|
|
197877
197883
|
photonModule = null;
|
|
@@ -254258,6 +254264,11 @@ async function doFetchJson(url2, init, allowInsecureTls, requestTimeout) {
|
|
|
254258
254264
|
const controller = new AbortController();
|
|
254259
254265
|
const timeoutMs = typeof requestTimeout === "number" && requestTimeout > 0 ? requestTimeout : 3e4;
|
|
254260
254266
|
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
254267
|
+
logger$1.info(`【智小途-HTTP】请求 method=${init.method || "GET"} url=${url2}`);
|
|
254268
|
+
logger$1.info(`【智小途-HTTP】请求头: ${JSON.stringify(init.headers || {})}`);
|
|
254269
|
+
if (init.body) {
|
|
254270
|
+
logger$1.info(`【智小途-HTTP】请求体: ${String(init.body)}`);
|
|
254271
|
+
}
|
|
254261
254272
|
let response;
|
|
254262
254273
|
let text = "";
|
|
254263
254274
|
try {
|
|
@@ -254270,6 +254281,8 @@ async function doFetchJson(url2, init, allowInsecureTls, requestTimeout) {
|
|
|
254270
254281
|
} finally {
|
|
254271
254282
|
clearTimeout(timeoutId);
|
|
254272
254283
|
}
|
|
254284
|
+
logger$1.info(`【智小途-HTTP】响应 status=${response?.status} url=${url2}`);
|
|
254285
|
+
logger$1.info(`【智小途-HTTP】响应体: ${text}`);
|
|
254273
254286
|
let data = {};
|
|
254274
254287
|
if (text) {
|
|
254275
254288
|
try {
|
|
@@ -254313,7 +254326,7 @@ async function fetchAccessTokenFromServer(requestUrl, config2) {
|
|
|
254313
254326
|
const expiresIn = Number(data.data.expiresIn || 0);
|
|
254314
254327
|
const expiresAt = Date.now() + (expiresIn > 0 ? expiresIn * 1e3 : 0);
|
|
254315
254328
|
logger$1.info(
|
|
254316
|
-
|
|
254329
|
+
`【智小途-连接】访问令牌获取成功 token长度=${token2.length} 有效期秒=${expiresIn} 过期时间=${new Date(expiresAt).toISOString()}`
|
|
254317
254330
|
);
|
|
254318
254331
|
return { token: token2, expiresAt };
|
|
254319
254332
|
}
|
|
@@ -256337,7 +256350,7 @@ async function handleCronTaskEvent(ctx, result2) {
|
|
|
256337
256350
|
if (!result2.eventData)
|
|
256338
256351
|
return;
|
|
256339
256352
|
try {
|
|
256340
|
-
const { handleCronTaskEvent: handleCronTaskEvent2 } = await import("./cron-tasks-handler-
|
|
256353
|
+
const { handleCronTaskEvent: handleCronTaskEvent2 } = await import("./cron-tasks-handler-BIpSoLIG.js");
|
|
256341
256354
|
const connConfig = {
|
|
256342
256355
|
baseUrl: baseConfig.baseUrl || "",
|
|
256343
256356
|
websocketUrl: baseConfig.websocketUrl,
|
|
@@ -258607,20 +258620,20 @@ function registerToolHooks(api) {
|
|
|
258607
258620
|
const { runId } = ctx || {};
|
|
258608
258621
|
if (runId) {
|
|
258609
258622
|
deleteToolContext(runId);
|
|
258610
|
-
logger$1.info(
|
|
258623
|
+
logger$1.info(`【智小途-工具钩子】agent_end runId=${runId} 已清理`);
|
|
258611
258624
|
}
|
|
258612
258625
|
return event;
|
|
258613
258626
|
});
|
|
258614
258627
|
api.on("before_tool_call", (event, _ctx) => {
|
|
258615
|
-
logger$1.info(
|
|
258628
|
+
logger$1.info(`【智小途-工具钩子】before_tool_call event=${JSON.stringify(event)}`);
|
|
258616
258629
|
const { runId, toolCallId } = event || {};
|
|
258617
258630
|
if (runId && toolCallId) {
|
|
258618
258631
|
setToolCallIdToRunIdMapping(toolCallId, runId);
|
|
258619
|
-
logger$1.info(
|
|
258632
|
+
logger$1.info(`【智小途-工具钩子】已映射 toolCallId=${toolCallId} -> runId=${runId} 准备执行`);
|
|
258620
258633
|
}
|
|
258621
258634
|
});
|
|
258622
258635
|
api.on("after_tool_call", (event, _ctx) => {
|
|
258623
|
-
logger$1.info(
|
|
258636
|
+
logger$1.info(`【智小途-工具钩子】after_tool_call event=${JSON.stringify(event)}`);
|
|
258624
258637
|
const { runId, toolCallId, toolName, params, result: result2 } = event || {};
|
|
258625
258638
|
const toolCtx = runId ? getToolContext(runId) : void 0;
|
|
258626
258639
|
if (toolCtx && result2) {
|
|
@@ -258646,11 +258659,11 @@ function registerToolHooks(api) {
|
|
|
258646
258659
|
last: false,
|
|
258647
258660
|
source: "after_tool_call"
|
|
258648
258661
|
}).catch((err2) => {
|
|
258649
|
-
logger$1.error(
|
|
258662
|
+
logger$1.error(`【智小途-工具钩子】after_tool_call 推送失败: ${err2}`);
|
|
258650
258663
|
});
|
|
258651
|
-
logger$1.info(
|
|
258664
|
+
logger$1.info(`【智小途-工具钩子】after_tool_call 已推送 toolName=${toolName}`);
|
|
258652
258665
|
} catch (err2) {
|
|
258653
|
-
logger$1.error(
|
|
258666
|
+
logger$1.error(`【智小途-工具钩子】after_tool_call 推送失败: ${err2}`);
|
|
258654
258667
|
}
|
|
258655
258668
|
}
|
|
258656
258669
|
}
|
|
@@ -258659,7 +258672,7 @@ function registerToolHooks(api) {
|
|
|
258659
258672
|
api.on("tool_result_persist", (event, _ctx) => {
|
|
258660
258673
|
return { message: event.message };
|
|
258661
258674
|
});
|
|
258662
|
-
logger$1.info("
|
|
258675
|
+
logger$1.info("【智小途-工具钩子】工具执行钩子已注册");
|
|
258663
258676
|
}
|
|
258664
258677
|
const templateNames = ["SOUL.md", "IDENTITY.md"];
|
|
258665
258678
|
const registeredRuntimeApis = /* @__PURE__ */ new WeakSet();
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "node:fs/promises";
|
|
|
2
2
|
import "node:path";
|
|
3
3
|
import "node:process";
|
|
4
4
|
import "node:url";
|
|
5
|
-
import { cn } from "./index-
|
|
5
|
+
import { cn } from "./index-ZWLWkJXc.js";
|
|
6
6
|
import "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
7
7
|
import "node:fs";
|
|
8
8
|
import "node:os";
|
package/dist/{legacy-config-issues-Czu0_ffE-cm2ZN8ak.js → legacy-config-issues-Czu0_ffE-BUj03gnH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a$ as asNullableRecord, b0 as loadPluginManifestRegistryForPluginRegistry, D as DEFAULT_GATEWAY_PORT, b1 as loadBundledPluginPublicArtifactModuleSync, b2 as isBlockedObjectKey, b3 as listLegacyRuntimeModelProviderAliases, b4 as getBootstrapChannelPlugin } from "./index-
|
|
1
|
+
import { a$ as asNullableRecord, b0 as loadPluginManifestRegistryForPluginRegistry, D as DEFAULT_GATEWAY_PORT, b1 as loadBundledPluginPublicArtifactModuleSync, b2 as isBlockedObjectKey, b3 as listLegacyRuntimeModelProviderAliases, b4 as getBootstrapChannelPlugin } from "./index-ZWLWkJXc.js";
|
|
2
2
|
import { x as getCachedPluginModuleLoader, y as createPluginModuleLoaderCache, z as isRecord, A as normalizeOptionalLowercaseString, i as isModelThinkingFormat, B as isSafeExecutableValue, C as normalizeProviderId } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import fs__default from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b5 as resolveAgentWorkspaceDir, b6 as resolveDefaultAgentId, b7 as listExplicitlyDisabledChannelIdsForConfig, b8 as listPotentialConfiguredChannelPresenceSignals, b9 as createPluginActivationSource, b0 as loadPluginManifestRegistryForPluginRegistry, ba as normalizePluginsConfig, bb as isBundledManifestOwner, bc as hasExplicitManifestOwnerTrust, bd as isActivatedManifestOwner, be as resolveEffectivePluginActivationState, bf as isPluginEnabledByDefaultForPlatform, bg as hasMeaningfulChannelConfig, bh as passesManifestOwnerBasePolicy, bi as resolveManifestOwnerBasePolicyBlock, bj as resolveSessionAgentId, bk as getOfficialExternalPluginCatalogEntry, bl as resolveOfficialExternalPluginInstall, bm as getOfficialExternalPluginCatalogManifest, bn as resolveOfficialExternalPluginId, bo as resolveOfficialExternalPluginLabel, bp as normalizeMessageChannel, bq as resolveOutboundChannelPlugin, ak as listChannelPlugins, br as isDeliverableMessageChannel, bs as listDeliverableMessageChannels, bt as formatErrorMessage, bu as defaultRuntime, bv as formatCliCommand, bw as normalizeMessageChannel$1, bx as getActivePluginChannelRegistryFromState, by as createOutboundPayloadPlan, bz as projectOutboundPayloadPlanForDelivery, bA as projectOutboundPayloadPlanForMirror, bB as sendDurableMessageBatch, bC as resolveOutboundDurableFinalDeliverySupport, bD as GATEWAY_CLIENT_MODES, bE as GATEWAY_CLIENT_NAMES } from "./index-
|
|
1
|
+
import { b5 as resolveAgentWorkspaceDir, b6 as resolveDefaultAgentId, b7 as listExplicitlyDisabledChannelIdsForConfig, b8 as listPotentialConfiguredChannelPresenceSignals, b9 as createPluginActivationSource, b0 as loadPluginManifestRegistryForPluginRegistry, ba as normalizePluginsConfig, bb as isBundledManifestOwner, bc as hasExplicitManifestOwnerTrust, bd as isActivatedManifestOwner, be as resolveEffectivePluginActivationState, bf as isPluginEnabledByDefaultForPlatform, bg as hasMeaningfulChannelConfig, bh as passesManifestOwnerBasePolicy, bi as resolveManifestOwnerBasePolicyBlock, bj as resolveSessionAgentId, bk as getOfficialExternalPluginCatalogEntry, bl as resolveOfficialExternalPluginInstall, bm as getOfficialExternalPluginCatalogManifest, bn as resolveOfficialExternalPluginId, bo as resolveOfficialExternalPluginLabel, bp as normalizeMessageChannel, bq as resolveOutboundChannelPlugin, ak as listChannelPlugins, br as isDeliverableMessageChannel, bs as listDeliverableMessageChannels, bt as formatErrorMessage, bu as defaultRuntime, bv as formatCliCommand, bw as normalizeMessageChannel$1, bx as getActivePluginChannelRegistryFromState, by as createOutboundPayloadPlan, bz as projectOutboundPayloadPlanForDelivery, bA as projectOutboundPayloadPlanForMirror, bB as sendDurableMessageBatch, bC as resolveOutboundDurableFinalDeliverySupport, bD as GATEWAY_CLIENT_MODES, bE as GATEWAY_CLIENT_NAMES } from "./index-ZWLWkJXc.js";
|
|
2
2
|
import { A as normalizeOptionalLowercaseString, F as normalizeOptionalString } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|
|
@@ -624,11 +624,11 @@ function resolveOutboundTarget(params) {
|
|
|
624
624
|
let messageConfigRuntimePromise = null;
|
|
625
625
|
let messageGatewayRuntimePromise = null;
|
|
626
626
|
function loadMessageConfigRuntime() {
|
|
627
|
-
messageConfigRuntimePromise ??= import("./message.config.runtime-
|
|
627
|
+
messageConfigRuntimePromise ??= import("./message.config.runtime-DuzEAWuz.js");
|
|
628
628
|
return messageConfigRuntimePromise;
|
|
629
629
|
}
|
|
630
630
|
function loadMessageGatewayRuntime() {
|
|
631
|
-
messageGatewayRuntimePromise ??= import("./message.gateway.runtime-
|
|
631
|
+
messageGatewayRuntimePromise ??= import("./message.gateway.runtime-Ch5zdrYr.js");
|
|
632
632
|
return messageGatewayRuntimePromise;
|
|
633
633
|
}
|
|
634
634
|
async function resolveRequiredChannel(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as normalizeOptionalString, r as resolveSecretInputRef, h as hasConfiguredSecretInput, G as secretRefKey, H as isValidExecSecretRefId, I as formatExecSecretRefIdValidationMessage, J as resolveDefaultSecretProviderAlias, S as SINGLE_VALUE_FILE_REF_ID, K as resolveUserPath, N as readSecureFile, z as isRecord, O as FsSafeError, o as isPathInside, P as inspectPathPermissions, Q as safeStat, g as normalizeSecretInputString } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
2
|
-
import { bF as containsEnvVarReference, bG as resolveSafeTimeoutDelayMs, bH as resolveConnectChallengeTimeoutMs, O as resolveConfigPath, X as resolveGatewayPort, bI as redactSensitiveUrlLikeString, bJ as isSecureWebSocketUrl, bt as formatErrorMessage, bK as isDynamicOperatorGatewayMethod, bL as WRITE_SCOPE, bM as ADMIN_SCOPE, bN as READ_SCOPE, bO as APPROVALS_SCOPE, bP as PAIRING_SCOPE, bQ as TALK_SECRETS_SCOPE, bR as resolveCoreOperatorGatewayMethodScope, bS as resolveReservedGatewayMethodScope, bT as getPluginRegistryState, bU as resolvePreauthHandshakeTimeoutMs, bV as loadGatewayTlsRuntime, a4 as resolveStateDir, bW as loadOrCreateDeviceIdentity, i as getRuntimeConfig, bX as GatewayClient, bD as GATEWAY_CLIENT_MODES, bY as VERSION, bE as GATEWAY_CLIENT_NAMES, bZ as isGatewayConnectAssemblyError, b_ as isLoopbackIpAddress } from "./index-
|
|
2
|
+
import { bF as containsEnvVarReference, bG as resolveSafeTimeoutDelayMs, bH as resolveConnectChallengeTimeoutMs, O as resolveConfigPath, X as resolveGatewayPort, bI as redactSensitiveUrlLikeString, bJ as isSecureWebSocketUrl, bt as formatErrorMessage, bK as isDynamicOperatorGatewayMethod, bL as WRITE_SCOPE, bM as ADMIN_SCOPE, bN as READ_SCOPE, bO as APPROVALS_SCOPE, bP as PAIRING_SCOPE, bQ as TALK_SECRETS_SCOPE, bR as resolveCoreOperatorGatewayMethodScope, bS as resolveReservedGatewayMethodScope, bT as getPluginRegistryState, bU as resolvePreauthHandshakeTimeoutMs, bV as loadGatewayTlsRuntime, a4 as resolveStateDir, bW as loadOrCreateDeviceIdentity, i as getRuntimeConfig, bX as GatewayClient, bD as GATEWAY_CLIENT_MODES, bY as VERSION, bE as GATEWAY_CLIENT_NAMES, bZ as isGatewayConnectAssemblyError, b_ as isLoopbackIpAddress } from "./index-ZWLWkJXc.js";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
import fs$1__default from "node:fs/promises";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c0 as custom, c1 as string, c2 as object, c3 as boolean, c4 as $ZodError, c5 as prettifyError, c6 as any, c7 as literal, c8 as nullable, c9 as int, ca as unknown, cb as array, cc as NEVER, cd as union, ce as boolean$1, cf as record, cg as number, ch as datetime, ci as date, cj as _enum, ck as lazy, cl as _void, cm as toJSONSchema, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson } from "./index-
|
|
1
|
+
import { c0 as custom, c1 as string, c2 as object, c3 as boolean, c4 as $ZodError, c5 as prettifyError, c6 as any, c7 as literal, c8 as nullable, c9 as int, ca as unknown, cb as array, cc as NEVER, cd as union, ce as boolean$1, cf as record, cg as number, ch as datetime, ci as date, cj as _enum, ck as lazy, cl as _void, cm as toJSONSchema, aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aP as calculateCost, aU as parseStreamingJson } from "./index-ZWLWkJXc.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 "./index-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aQ as appendAssistantMessageDiagnostic, aR as createAssistantMessageDiagnostic, aS as formatThrownValue, aT as registerSessionResourceCleanup } from "./index-ZWLWkJXc.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-DZBSlU2d.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 "./index-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aU as parseStreamingJson, aM as OpenAI, aP as calculateCost } from "./index-ZWLWkJXc.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 "./index-
|
|
1
|
+
import { aL as getEnvApiKey, aN as clampThinkingLevel, aO as AssistantMessageEventStream, aM as OpenAI } from "./index-ZWLWkJXc.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-DZBSlU2d.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 "./index-
|
|
1
|
+
import { aU as parseStreamingJson, aP as calculateCost } from "./index-ZWLWkJXc.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 "./index-
|
|
1
|
+
import { aL as getEnvApiKey, aM as OpenAI } from "./index-ZWLWkJXc.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 "./index-
|
|
1
|
+
import { aZ as getDefaultExportFromCjs, a_ as commonjsGlobal } from "./index-ZWLWkJXc.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 { ai as getChannelPlugin } from "./index-
|
|
2
|
-
import { aj, ak, al } from "./index-
|
|
1
|
+
import { ai as getChannelPlugin } from "./index-ZWLWkJXc.js";
|
|
2
|
+
import { aj, ak, al } from "./index-ZWLWkJXc.js";
|
|
3
3
|
export {
|
|
4
4
|
getChannelPlugin,
|
|
5
5
|
aj as getLoadedChannelPlugin,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as resolveRequiredHomeDir } from "./plugin-load-profile-DOnG9jJ5-zOQuKNoi.js";
|
|
2
|
-
import { aC as parseSessionArchiveTimestamp, aD as formatSessionArchiveTimestamp, aE as emitSessionTranscriptUpdate, aF as resolveSessionFilePath, aG as resolveSessionTranscriptPathInDir, aH as resolveSessionTranscriptPath } from "./index-
|
|
2
|
+
import { aC as parseSessionArchiveTimestamp, aD as formatSessionArchiveTimestamp, aE as emitSessionTranscriptUpdate, aF as resolveSessionFilePath, aG as resolveSessionTranscriptPathInDir, aH as resolveSessionTranscriptPath } from "./index-ZWLWkJXc.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":"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,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AA6CD,wBAAsB,sBAAsB,CAC1C,QAAQ,EA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