linkque-cli-v2 1.3.3 → 1.3.4
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 +106 -241
- package/package.json +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-BWCMNWG2.js → chunk-23PMJWOG.js} +18 -30
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-JXQYQ563.js → chunk-VSZ3UDC7.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-CM4N2PT3.js → chunk-YSRA6KFZ.js} +1736 -1839
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +101 -140
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +2 -2
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +2 -2
- package/vendor/linkque-agent-appwrite-integrate/package.json +1 -1
- package/worker.js +701 -502
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-5DOLTIGP.js → anthropic-messages-EL2IU4YU.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-HVAVRLTK.js → azure-openai-responses-A4XURCOX.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-UJBDG2KY.js → mistral-conversations-TQA2MPJJ.js} +10 -10
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-3KOC6KHN.js → openai-codex-responses-WLREQPZK.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-HG6OJRL5.js → openai-completions-U6LUBY4P.js} +3 -3
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-F6V2PG3Y.js → openai-responses-SFZAU5JA.js} +1 -1
- package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-DC4DVRAJ.js → pi-messages-QQA6ZGV2.js} +3 -3
package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-BWCMNWG2.js → chunk-23PMJWOG.js}
RENAMED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
RUNTIME_CONFIG_DEFAULTS,
|
|
20
20
|
RuntimeConfigProvider
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YSRA6KFZ.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__require,
|
|
@@ -11904,13 +11904,12 @@ function createPaymentInvocation(ownerId, request, now = /* @__PURE__ */ new Dat
|
|
|
11904
11904
|
ownerId,
|
|
11905
11905
|
agentId: request.agentId,
|
|
11906
11906
|
threadId: request.threadId,
|
|
11907
|
-
actionId: request.actionId,
|
|
11908
11907
|
cardRef: request.source.cardRef,
|
|
11909
11908
|
cardRevision: request.source.cardRevision,
|
|
11910
11909
|
cardInstanceId: request.source.cardInstanceId,
|
|
11911
11910
|
surfaceId: request.source.surfaceId,
|
|
11912
11911
|
componentId: request.source.componentId,
|
|
11913
|
-
|
|
11912
|
+
input: request.input,
|
|
11914
11913
|
status: "executing",
|
|
11915
11914
|
createdAt: now.toISOString(),
|
|
11916
11915
|
expiresAt: new Date(now.getTime() + PAYMENT_INVOCATION_TTL_MS).toISOString()
|
|
@@ -11922,17 +11921,19 @@ function createPaymentInvocationId(ownerId, request) {
|
|
|
11922
11921
|
agentId: request.agentId,
|
|
11923
11922
|
threadId: request.threadId,
|
|
11924
11923
|
cardInstanceId: request.source.cardInstanceId,
|
|
11925
|
-
|
|
11926
|
-
|
|
11924
|
+
cardRevision: request.source.cardRevision,
|
|
11925
|
+
surfaceId: request.source.surfaceId,
|
|
11926
|
+
componentId: request.source.componentId,
|
|
11927
|
+
input: request.input
|
|
11927
11928
|
});
|
|
11928
11929
|
return `pa_${createHash("sha256").update(material).digest("hex").slice(0, 32)}`;
|
|
11929
11930
|
}
|
|
11930
11931
|
function createPaymentActionStore(databases, databaseId, tableId) {
|
|
11931
11932
|
return {
|
|
11932
11933
|
async begin(invocation) {
|
|
11933
|
-
const { invocationId,
|
|
11934
|
+
const { invocationId, input, ...fields } = invocation;
|
|
11934
11935
|
try {
|
|
11935
|
-
const document = await databases.createDocument(databaseId, tableId, invocationId, { ...fields,
|
|
11936
|
+
const document = await databases.createDocument(databaseId, tableId, invocationId, { ...fields, input: JSON.stringify(input) }, []);
|
|
11936
11937
|
return {
|
|
11937
11938
|
kind: "created",
|
|
11938
11939
|
invocation: readInvocation2(document) ?? invocation
|
|
@@ -11957,10 +11958,6 @@ function createPaymentActionStore(databases, databaseId, tableId) {
|
|
|
11957
11958
|
},
|
|
11958
11959
|
async update(invocationId, patch) {
|
|
11959
11960
|
const data = { ...patch };
|
|
11960
|
-
if (patch.callback)
|
|
11961
|
-
data.callback = JSON.stringify(patch.callback);
|
|
11962
|
-
if (patch.verification)
|
|
11963
|
-
data.verification = JSON.stringify(patch.verification);
|
|
11964
11961
|
const document = await databases.updateDocument(databaseId, tableId, invocationId, data);
|
|
11965
11962
|
const invocation = readInvocation2(document);
|
|
11966
11963
|
if (!invocation)
|
|
@@ -11983,29 +11980,24 @@ function readInvocation2(value) {
|
|
|
11983
11980
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
11984
11981
|
return void 0;
|
|
11985
11982
|
const row = value;
|
|
11986
|
-
if (typeof row.$id !== "string" || typeof row.ownerId !== "string" || typeof row.agentId !== "string" || typeof row.threadId !== "string" || typeof row.
|
|
11983
|
+
if (typeof row.$id !== "string" || typeof row.ownerId !== "string" || typeof row.agentId !== "string" || typeof row.threadId !== "string" || typeof row.cardRef !== "string" || typeof row.cardRevision !== "string" || typeof row.cardInstanceId !== "string" || typeof row.surfaceId !== "string" || typeof row.componentId !== "string" || typeof row.input !== "string" || typeof row.status !== "string" || typeof row.createdAt !== "string" || typeof row.expiresAt !== "string")
|
|
11987
11984
|
return void 0;
|
|
11988
|
-
const
|
|
11989
|
-
if (!
|
|
11985
|
+
const input = parseJsonObject(row.input);
|
|
11986
|
+
if (!input)
|
|
11990
11987
|
return void 0;
|
|
11991
11988
|
return {
|
|
11992
11989
|
invocationId: row.$id,
|
|
11993
11990
|
ownerId: row.ownerId,
|
|
11994
11991
|
agentId: row.agentId,
|
|
11995
11992
|
threadId: row.threadId,
|
|
11996
|
-
actionId: row.actionId,
|
|
11997
11993
|
cardRef: row.cardRef,
|
|
11998
11994
|
cardRevision: row.cardRevision,
|
|
11999
11995
|
cardInstanceId: row.cardInstanceId,
|
|
12000
11996
|
surfaceId: row.surfaceId,
|
|
12001
11997
|
componentId: row.componentId,
|
|
12002
|
-
|
|
11998
|
+
input,
|
|
12003
11999
|
status: row.status,
|
|
12004
12000
|
...typeof row.tradeNO === "string" ? { tradeNO: row.tradeNO } : {},
|
|
12005
|
-
...typeof row.callback === "string" && parseJsonObject(row.callback) ? { callback: parseJsonObject(row.callback) } : {},
|
|
12006
|
-
...typeof row.verification === "string" && parseVerification(row.verification) ? {
|
|
12007
|
-
verification: parseVerification(row.verification)
|
|
12008
|
-
} : {},
|
|
12009
12001
|
createdAt: row.createdAt,
|
|
12010
12002
|
expiresAt: row.expiresAt
|
|
12011
12003
|
};
|
|
@@ -12018,10 +12010,6 @@ function parseJsonObject(value) {
|
|
|
12018
12010
|
return void 0;
|
|
12019
12011
|
}
|
|
12020
12012
|
}
|
|
12021
|
-
function parseVerification(value) {
|
|
12022
|
-
const parsed = parseJsonObject(value);
|
|
12023
|
-
return parsed && typeof parsed.paid === "boolean" ? parsed : void 0;
|
|
12024
|
-
}
|
|
12025
12013
|
function stableStringify(value) {
|
|
12026
12014
|
if (Array.isArray(value))
|
|
12027
12015
|
return `[${value.map(stableStringify).join(",")}]`;
|
|
@@ -12270,12 +12258,6 @@ function nonEmpty(value) {
|
|
|
12270
12258
|
export {
|
|
12271
12259
|
APPBASE_RUNTIME_CONFIG_DEFAULTS,
|
|
12272
12260
|
AppbaseRuntimeConfigProvider,
|
|
12273
|
-
Query,
|
|
12274
|
-
resolveRunStorage,
|
|
12275
|
-
createAppBaseClient,
|
|
12276
|
-
createA2UIInfoLog,
|
|
12277
|
-
isDebugLogLevel,
|
|
12278
|
-
describeRuntimeEnv,
|
|
12279
12261
|
LinkqueGatewayAuthError,
|
|
12280
12262
|
LinkqueGatewayAuthUnconfiguredError,
|
|
12281
12263
|
resolveLinkqueGatewayAuth,
|
|
@@ -12288,6 +12270,12 @@ export {
|
|
|
12288
12270
|
readTemporaryFrontendAppId,
|
|
12289
12271
|
readAuthenticatedUserId,
|
|
12290
12272
|
readAppwriteApiKey,
|
|
12273
|
+
Query,
|
|
12274
|
+
createA2UIInfoLog,
|
|
12275
|
+
isDebugLogLevel,
|
|
12276
|
+
describeRuntimeEnv,
|
|
12277
|
+
resolveRunStorage,
|
|
12278
|
+
createAppBaseClient,
|
|
12291
12279
|
createClientCapabilityStore,
|
|
12292
12280
|
parseStoredClientCapabilityResult,
|
|
12293
12281
|
createPaymentInvocation,
|