linkque-cli-v2 1.3.1 → 1.3.3
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/linkquejs.js +1176 -389
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-YOPI234A.js → anthropic-messages-5DOLTIGP.js} +6 -6
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-67YPFLZQ.js → azure-openai-responses-HVAVRLTK.js} +9 -9
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VS2QQHAK.js → chunk-2ESYSVXG.js} +3 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-OXGCUIKV.js → chunk-B5XRGKYX.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-KTFQX5XN.js → chunk-BWCMNWG2.js} +31 -10
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-P5YTVR76.js → chunk-CM4N2PT3.js} +1697 -128
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-2NGJGNYB.js → chunk-ETG6PNHQ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-7BQRUS4C.js → chunk-FC7MJHC3.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-G64JTU26.js +20 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-I64V3ICJ.js → chunk-GAYNLDWK.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-6WHNFJT4.js → chunk-GQ4TD3EQ.js} +6 -6
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-HM7KNEG3.js +1639 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-MKS245OU.js → chunk-IWOFD643.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-CITJWG2O.js → chunk-JXQYQ563.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-YDKZZ6EH.js → chunk-PXCGFBV5.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LSBJJGJC.js → chunk-Q2Y6LMNC.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-UEVQXSKG.js → chunk-RR2GJPNV.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-DYEQRE6N.js → chunk-WJHOHUET.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-QD3CV4KC.js → dist-TGBYXSBU.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-bsd-H2ZLZRGB.js +40 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-darwin-HUKYR46U.js +39 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-linux-M5ZADHBA.js +33 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-unsupported-BM5RZZVM.js +23 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/getMachineId-win-BQPUF5TW.js +42 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-R5DASQKW.js → google-generative-ai-ENBYCHYT.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-OLX2NFGJ.js → google-vertex-RIGAEYLC.js} +6 -6
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-L6T7EWC2.js → mistral-conversations-UJBDG2KY.js} +24 -24
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-AJMV6U6H.js → multipart-parser-BXFNUG5H.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-PULXGNYO.js → multipart-parser-TAD6XL3Q.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-2VJ7LVQD.js → multipart-parser-ZRVTGJCT.js} +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-7QJMWGY5.js → openai-codex-responses-3KOC6KHN.js} +14 -14
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-75YD6VJJ.js → openai-completions-HG6OJRL5.js} +10 -10
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-G6MVJCGC.js → openai-responses-F6V2PG3Y.js} +9 -9
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openrouter-images-LMBZZQ76.js → openrouter-images-VSKAO4O5.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-7GSG7QQO.js → otel-RXJWJ2TU.js} +277 -1206
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-ZX3KUWSZ.js → pi-messages-DC4DVRAJ.js} +7 -7
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +1376 -279
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +8 -7
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-NGZW4JXI.js → src-JSJTYJV5.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/package.json +1 -1
- package/worker.js +42670 -25026
package/package.json
CHANGED
|
@@ -17,20 +17,20 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
headersToRecord
|
|
19
19
|
} from "./chunk-Y6UTJIT4.js";
|
|
20
|
-
import {
|
|
21
|
-
calculateCost
|
|
22
|
-
} from "./chunk-Y3G4J3TB.js";
|
|
23
20
|
import {
|
|
24
21
|
getProviderEnvValue
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B5XRGKYX.js";
|
|
26
23
|
import {
|
|
27
24
|
parseJsonWithRepair,
|
|
28
25
|
parseStreamingJson
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WJHOHUET.js";
|
|
27
|
+
import {
|
|
28
|
+
calculateCost
|
|
29
|
+
} from "./chunk-Y3G4J3TB.js";
|
|
30
30
|
import {
|
|
31
31
|
AssistantMessageEventStream
|
|
32
32
|
} from "./chunk-46SEH6ER.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-2ESYSVXG.js";
|
|
34
34
|
|
|
35
35
|
// ../../node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
36
36
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
convertResponsesMessages,
|
|
3
3
|
convertResponsesTools,
|
|
4
4
|
processResponsesStream
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q2Y6LMNC.js";
|
|
6
6
|
import "./chunk-UFVAKOTZ.js";
|
|
7
|
-
import {
|
|
8
|
-
AzureOpenAI
|
|
9
|
-
} from "./chunk-7QWAKKTY.js";
|
|
10
7
|
import {
|
|
11
8
|
clampOpenAIPromptCacheKey
|
|
12
9
|
} from "./chunk-FHNQ6DPF.js";
|
|
10
|
+
import {
|
|
11
|
+
AzureOpenAI
|
|
12
|
+
} from "./chunk-7QWAKKTY.js";
|
|
13
13
|
import {
|
|
14
14
|
formatProviderError,
|
|
15
15
|
normalizeProviderError
|
|
@@ -21,17 +21,17 @@ import "./chunk-CT4G24PS.js";
|
|
|
21
21
|
import {
|
|
22
22
|
headersToRecord
|
|
23
23
|
} from "./chunk-Y6UTJIT4.js";
|
|
24
|
+
import {
|
|
25
|
+
getProviderEnvValue
|
|
26
|
+
} from "./chunk-B5XRGKYX.js";
|
|
27
|
+
import "./chunk-WJHOHUET.js";
|
|
24
28
|
import {
|
|
25
29
|
clampThinkingLevel
|
|
26
30
|
} from "./chunk-Y3G4J3TB.js";
|
|
27
|
-
import {
|
|
28
|
-
getProviderEnvValue
|
|
29
|
-
} from "./chunk-OXGCUIKV.js";
|
|
30
|
-
import "./chunk-DYEQRE6N.js";
|
|
31
31
|
import {
|
|
32
32
|
AssistantMessageEventStream
|
|
33
33
|
} from "./chunk-46SEH6ER.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-2ESYSVXG.js";
|
|
35
35
|
|
|
36
36
|
// ../../node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js
|
|
37
37
|
var DEFAULT_AZURE_API_VERSION = "v1";
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VS2QQHAK.js → chunk-2ESYSVXG.js}
RENAMED
|
@@ -36,11 +36,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
37
37
|
mod
|
|
38
38
|
));
|
|
39
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
40
|
|
|
40
41
|
export {
|
|
41
42
|
__require,
|
|
42
43
|
__esm,
|
|
43
44
|
__commonJS,
|
|
44
45
|
__export,
|
|
45
|
-
__toESM
|
|
46
|
+
__toESM,
|
|
47
|
+
__toCommonJS
|
|
46
48
|
};
|
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-KTFQX5XN.js → chunk-BWCMNWG2.js}
RENAMED
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
le,
|
|
8
8
|
ut,
|
|
9
9
|
ye
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IWOFD643.js";
|
|
11
11
|
import {
|
|
12
12
|
require_node,
|
|
13
13
|
require_node_fetch_native_with_agent_61758d11
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PXCGFBV5.js";
|
|
15
15
|
import {
|
|
16
16
|
require_json_bigint
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ETG6PNHQ.js";
|
|
18
18
|
import {
|
|
19
19
|
RUNTIME_CONFIG_DEFAULTS,
|
|
20
20
|
RuntimeConfigProvider
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CM4N2PT3.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__require,
|
|
25
25
|
__toESM
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2ESYSVXG.js";
|
|
27
27
|
|
|
28
28
|
// ../../node_modules/node-fetch-native-with-agent/dist/shared/node-fetch-native-with-agent.df7e6bd6.cjs
|
|
29
29
|
var require_node_fetch_native_with_agent_df7e6bd6 = __commonJS({
|
|
@@ -7341,8 +7341,11 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
|
|
|
7341
7341
|
AGENT_CONFIG_URL_PRE: `${LINKQUE_ENDPOINT_PRE}/api/agent/config`,
|
|
7342
7342
|
LINKQUE_BASE_URL_PRE: `${LINKQUE_ENDPOINT_PRE}/api/anthropic`,
|
|
7343
7343
|
LINKQUEGW_KNOWLEDGE_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
|
|
7344
|
+
LINKQUEGW_WEB_SEARCH_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
|
|
7344
7345
|
LINKQUEGW_EVENT_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
|
|
7345
7346
|
LINKQUEGW_MCP_SIGN_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/mcp/signature`,
|
|
7347
|
+
LINKQUE_OPEN_MCP_BASE_URL: "https://opengw.alipay.com",
|
|
7348
|
+
LINKQUE_OPEN_MCP_BASE_URL_PRE: "https://opengw-pre.alipay.com",
|
|
7346
7349
|
RUN_DATABASE_ID: "linkque",
|
|
7347
7350
|
RUN_TABLE_ID: "linkque_conversation_runs",
|
|
7348
7351
|
SESSION_DATABASE_ID: "linkque",
|
|
@@ -11789,6 +11792,23 @@ function isConflict(error) {
|
|
|
11789
11792
|
}
|
|
11790
11793
|
|
|
11791
11794
|
// ../linkque-agent-appwrite-integrate/dist/esm/runtime/diagnostics.js
|
|
11795
|
+
function createA2UIInfoLog(env, logCtx, traceId, getMcpTraceId) {
|
|
11796
|
+
const level = new AppbaseRuntimeConfigProvider(env).get("LOG_LEVEL").trim().toLowerCase();
|
|
11797
|
+
if (!logCtx?.log || !["info", "debug"].includes(level))
|
|
11798
|
+
return void 0;
|
|
11799
|
+
return (line, scope) => {
|
|
11800
|
+
try {
|
|
11801
|
+
logCtx.log?.("[a2ui-action][info]", JSON.stringify({
|
|
11802
|
+
...JSON.parse(line),
|
|
11803
|
+
level: "info",
|
|
11804
|
+
scope,
|
|
11805
|
+
traceId,
|
|
11806
|
+
mcpTraceId: getMcpTraceId?.()
|
|
11807
|
+
}));
|
|
11808
|
+
} catch {
|
|
11809
|
+
}
|
|
11810
|
+
};
|
|
11811
|
+
}
|
|
11792
11812
|
function maskSecret(raw) {
|
|
11793
11813
|
return raw ? "<set>" : "<unset>";
|
|
11794
11814
|
}
|
|
@@ -12250,6 +12270,12 @@ function nonEmpty(value) {
|
|
|
12250
12270
|
export {
|
|
12251
12271
|
APPBASE_RUNTIME_CONFIG_DEFAULTS,
|
|
12252
12272
|
AppbaseRuntimeConfigProvider,
|
|
12273
|
+
Query,
|
|
12274
|
+
resolveRunStorage,
|
|
12275
|
+
createAppBaseClient,
|
|
12276
|
+
createA2UIInfoLog,
|
|
12277
|
+
isDebugLogLevel,
|
|
12278
|
+
describeRuntimeEnv,
|
|
12253
12279
|
LinkqueGatewayAuthError,
|
|
12254
12280
|
LinkqueGatewayAuthUnconfiguredError,
|
|
12255
12281
|
resolveLinkqueGatewayAuth,
|
|
@@ -12262,11 +12288,6 @@ export {
|
|
|
12262
12288
|
readTemporaryFrontendAppId,
|
|
12263
12289
|
readAuthenticatedUserId,
|
|
12264
12290
|
readAppwriteApiKey,
|
|
12265
|
-
Query,
|
|
12266
|
-
isDebugLogLevel,
|
|
12267
|
-
describeRuntimeEnv,
|
|
12268
|
-
resolveRunStorage,
|
|
12269
|
-
createAppBaseClient,
|
|
12270
12291
|
createClientCapabilityStore,
|
|
12271
12292
|
parseStoredClientCapabilityResult,
|
|
12272
12293
|
createPaymentInvocation,
|