linkque-cli-v2 1.6.14 → 1.6.15
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/dev/worker.js +4 -17
- package/linkquejs.js +25232 -25882
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-M5DHKJDG.js → chunk-64EZ7CTZ.js} +25 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GAYNLDWK.js → chunk-6POVPTQH.js} +6011 -2626
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-PSKPY5FI.js → chunk-AWYMLINQ.js} +5067 -1594
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-JMBJJF7P.js → chunk-B6GKDCHM.js} +7 -20
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-OLLACFP7.js → chunk-FI7ME5FS.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XUFLSZM4.js → chunk-GTEZTRCK.js} +35 -190
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-FC7MJHC3.js → chunk-Q5VTO4BZ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-DNTEEBEH.js → chunk-SICWMO5Y.js} +1 -0
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-bsd-JGCLGHFY.js → getMachineId-bsd-NYGVHXGN.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-darwin-COHLFNXH.js → getMachineId-darwin-OPTJOAYC.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-linux-XV3Z5FQG.js → getMachineId-linux-5SQRYTUJ.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-unsupported-FCRKLIZL.js → getMachineId-unsupported-OJE7WPEH.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-win-A4WRNVV6.js → getMachineId-win-SLTTCNXU.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-KD7MXONK.js → google-generative-ai-6CFHQGZ4.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-TREYA472.js → google-vertex-C3RF55I7.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-OEOTQWE5.js → mistral-conversations-XUDTCRDY.js} +4 -4
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-WGS5CC2J.js → otel-3OUODIOB.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +362 -291
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +5 -5
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +5 -5
- package/worker.js +14316 -7191
package/package.json
CHANGED
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-M5DHKJDG.js → chunk-64EZ7CTZ.js}
RENAMED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
RUNTIME_CONFIG_DEFAULTS,
|
|
23
23
|
RuntimeConfigProvider,
|
|
24
24
|
isDebugLoggingEnabled
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AWYMLINQ.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__require,
|
|
@@ -15663,6 +15663,7 @@ var API_KEY_HEADER = "x-appwrite-key";
|
|
|
15663
15663
|
var TRIGGER_HEADER = "x-appwrite-trigger";
|
|
15664
15664
|
var ENV_SELECTOR_HEADER = "x-linkque-env";
|
|
15665
15665
|
var TRACE_ID_HEADER = "x-trace-id";
|
|
15666
|
+
var OTEL_TRACE_ID_HEADER = "x-linkque-otel-trace-id";
|
|
15666
15667
|
var FRONTEND_APP_ID_HEADER = "x-linkque-alipay-app-id";
|
|
15667
15668
|
var ALIPAY_AUTH_CODE_HEADER = "x-alipay-authcode";
|
|
15668
15669
|
var AUTH_UNAVAILABLE_HEADER = "x-linkque-phone-auth-unavailable";
|
|
@@ -15742,6 +15743,28 @@ function readTraceId(headers) {
|
|
|
15742
15743
|
}
|
|
15743
15744
|
return void 0;
|
|
15744
15745
|
}
|
|
15746
|
+
function readOtelTraceId(headers) {
|
|
15747
|
+
if (!headers)
|
|
15748
|
+
return { kind: "missing" };
|
|
15749
|
+
let found = Object.prototype.hasOwnProperty.call(headers, OTEL_TRACE_ID_HEADER);
|
|
15750
|
+
let value = found ? headers[OTEL_TRACE_ID_HEADER] : void 0;
|
|
15751
|
+
if (!found) {
|
|
15752
|
+
for (const [key, candidate] of Object.entries(headers)) {
|
|
15753
|
+
if (key.toLowerCase() === OTEL_TRACE_ID_HEADER) {
|
|
15754
|
+
found = true;
|
|
15755
|
+
value = candidate;
|
|
15756
|
+
break;
|
|
15757
|
+
}
|
|
15758
|
+
}
|
|
15759
|
+
}
|
|
15760
|
+
if (!found)
|
|
15761
|
+
return { kind: "missing" };
|
|
15762
|
+
const raw = headValue(value);
|
|
15763
|
+
if (!raw)
|
|
15764
|
+
return { kind: "invalid" };
|
|
15765
|
+
const traceId = raw.toLowerCase();
|
|
15766
|
+
return /^[0-9a-f]{32}$/u.test(traceId) && traceId !== "00000000000000000000000000000000" ? { kind: "valid", traceId } : { kind: "invalid" };
|
|
15767
|
+
}
|
|
15745
15768
|
function readFrontendAppId(headers) {
|
|
15746
15769
|
if (!headers)
|
|
15747
15770
|
return void 0;
|
|
@@ -15916,6 +15939,7 @@ export {
|
|
|
15916
15939
|
mcpPhoneAuthorizationChallenge,
|
|
15917
15940
|
readEnvSelector,
|
|
15918
15941
|
readTraceId,
|
|
15942
|
+
readOtelTraceId,
|
|
15919
15943
|
readFrontendAppId,
|
|
15920
15944
|
readAuthenticatedUserId,
|
|
15921
15945
|
readAppwriteApiKey,
|