linkque-cli-v2 1.3.5 → 1.3.7

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 (18) hide show
  1. package/linkquejs.js +14 -104
  2. package/package.json +1 -1
  3. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-NBYB7HSY.js → chunk-AACYYAZ6.js} +1 -1
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-HM7KNEG3.js → chunk-DNTEEBEH.js} +5 -0
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-EAODRPW4.js +518 -0
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LT6VSAY4.js → chunk-RHMVQTA7.js} +56 -144
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VVEDZWQ5.js → chunk-ZNU4GVF3.js} +15262 -378
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-bsd-H2ZLZRGB.js → getMachineId-bsd-JGCLGHFY.js} +1 -1
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-darwin-HUKYR46U.js → getMachineId-darwin-COHLFNXH.js} +1 -1
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-linux-M5ZADHBA.js → getMachineId-linux-XV3Z5FQG.js} +1 -1
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-unsupported-BM5RZZVM.js → getMachineId-unsupported-FCRKLIZL.js} +1 -1
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{getMachineId-win-BQPUF5TW.js → getMachineId-win-A4WRNVV6.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-TQA2MPJJ.js → mistral-conversations-5RZTVEO2.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-RXJWJ2TU.js → otel-WGS5CC2J.js} +250 -267
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +413 -625
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -3
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -3
  18. package/worker.js +430 -87
package/linkquejs.js CHANGED
@@ -20025,6 +20025,7 @@ var EArgsMappingValueType;
20025
20025
  (function(EArgsMappingValueType2) {
20026
20026
  EArgsMappingValueType2["DEFAULT"] = "DEFAULT";
20027
20027
  EArgsMappingValueType2["CONST"] = "CONST";
20028
+ EArgsMappingValueType2["SYSTEM_VARIABLE"] = "SYSTEM_VARIABLE";
20028
20029
  })(EArgsMappingValueType || (EArgsMappingValueType = {}));
20029
20030
  var EHookStage;
20030
20031
  (function(EHookStage2) {
@@ -24183,7 +24184,8 @@ var RUNTIME_CONFIG_DEFAULTS = Object.freeze({
24183
24184
  LINKQUEGW_KNOWLEDGE_BASE_URL: LINKQUE_ENDPOINT_PROD,
24184
24185
  LINKQUEGW_WEB_SEARCH_BASE_URL: LINKQUE_ENDPOINT_PROD,
24185
24186
  LINKQUEGW_EVENT_BASE_URL: LINKQUE_ENDPOINT_PROD,
24186
- LINKQUEGW_MCP_SIGN_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/mcp/signature`
24187
+ LINKQUEGW_MCP_SIGN_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/mcp/signature`,
24188
+ LINKQUEGW_TOKEN_VERIFY_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/auth/verify`
24187
24189
  });
24188
24190
  var RuntimeConfigProvider = class {
24189
24191
  defaults;
@@ -33901,6 +33903,9 @@ var OAUTH_ERRORS = {
33901
33903
  [InvalidTargetError.errorCode]: InvalidTargetError
33902
33904
  };
33903
33905
 
33906
+ // ../linkque-agent-runtime/dist/esm/impl/mcp/alipay/argsMapper.js
33907
+ var USER_ID = Symbol("\u7CFB\u7EDF\u53D8\u91CF\u7528\u6237\u6807\u8BC6");
33908
+
33904
33909
  // ../linkque-agent-runtime/dist/esm/impl/knowledge/linkqueKnowledgeSearchPort.js
33905
33910
  var DEFAULT_LINKQUEGW_KNOWLEDGE_BASE_URL = RUNTIME_CONFIG_DEFAULTS.LINKQUEGW_KNOWLEDGE_BASE_URL;
33906
33911
 
@@ -34563,6 +34568,10 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
34563
34568
  LINKQUEGW_KNOWLEDGE_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
34564
34569
  LINKQUEGW_WEB_SEARCH_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
34565
34570
  LINKQUEGW_EVENT_BASE_URL_PRE: LINKQUE_ENDPOINT_PRE,
34571
+ LINKQUEGW_TELEMETRY_LOGS_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/telemetry/v1/logs`,
34572
+ LINKQUEGW_TELEMETRY_TRACES_ENDPOINT: `${LINKQUE_ENDPOINT_PROD}/api/telemetry/v1/traces`,
34573
+ LINKQUEGW_TELEMETRY_LOGS_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/telemetry/v1/logs`,
34574
+ LINKQUEGW_TELEMETRY_TRACES_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/telemetry/v1/traces`,
34566
34575
  LINKQUEGW_MCP_SIGN_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/mcp/signature`,
34567
34576
  LINKQUE_OPEN_MCP_BASE_URL: "https://opengw.alipay.com",
34568
34577
  LINKQUE_OPEN_MCP_BASE_URL_PRE: "https://opengw-pre.alipay.com",
@@ -34578,8 +34587,6 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
34578
34587
  SEARCH_TABLE_ID: "linkque_conversation_message_search",
34579
34588
  CLIENT_CAPABILITY_DATABASE_ID: "linkque",
34580
34589
  CLIENT_CAPABILITY_TABLE_ID: "linkque_client_cap_invocations",
34581
- A2UI_ACTION_DATABASE_ID: "linkque",
34582
- A2UI_ACTION_TABLE_ID: "linkque_a2ui_action_invocations",
34583
34590
  RUN_CHUNK_SIZE: "30",
34584
34591
  RUN_CANCEL_POLL_INTERVAL_MS: "500",
34585
34592
  LOG_LEVEL: "INFO"
@@ -34588,97 +34595,6 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
34588
34595
  // src/commands/agentbuild/configTemplate.ts
34589
34596
  var import_path7 = __toESM(require("path"));
34590
34597
  var APPWRITE_CONFIG_NAME = "appwrite.config.json";
34591
- var A2UI_ACTION_TABLE_COLUMNS = [
34592
- ...[
34593
- "ownerId",
34594
- "agentId",
34595
- "threadId",
34596
- "cardRef",
34597
- "cardRevision",
34598
- "surfaceId",
34599
- "componentId"
34600
- ].map((key) => ({
34601
- key,
34602
- type: "varchar",
34603
- required: true,
34604
- array: false,
34605
- size: 128,
34606
- default: null
34607
- })),
34608
- {
34609
- key: "cardInstanceId",
34610
- type: "varchar",
34611
- required: true,
34612
- array: false,
34613
- size: 256,
34614
- default: null
34615
- },
34616
- {
34617
- key: "status",
34618
- type: "varchar",
34619
- required: true,
34620
- array: false,
34621
- size: 32,
34622
- default: null
34623
- },
34624
- {
34625
- key: "input",
34626
- type: "text",
34627
- required: true,
34628
- array: false,
34629
- size: 0,
34630
- default: null
34631
- },
34632
- {
34633
- key: "tradeNO",
34634
- type: "varchar",
34635
- required: false,
34636
- array: false,
34637
- size: 64,
34638
- default: null
34639
- },
34640
- {
34641
- key: "callback",
34642
- type: "text",
34643
- required: false,
34644
- array: false,
34645
- size: 0,
34646
- default: null
34647
- },
34648
- {
34649
- key: "verification",
34650
- type: "text",
34651
- required: false,
34652
- array: false,
34653
- size: 0,
34654
- default: null
34655
- },
34656
- {
34657
- key: "createdAt",
34658
- type: "varchar",
34659
- required: true,
34660
- array: false,
34661
- size: 32,
34662
- default: null
34663
- },
34664
- {
34665
- key: "expiresAt",
34666
- type: "varchar",
34667
- required: true,
34668
- array: false,
34669
- size: 32,
34670
- default: null
34671
- }
34672
- ];
34673
- var A2UI_ACTION_TABLE_INDEXES = [
34674
- {
34675
- key: "thread_status",
34676
- type: "key",
34677
- columns: ["threadId", "status"],
34678
- orders: ["asc", "asc"]
34679
- },
34680
- { key: "expires_at", type: "key", columns: ["expiresAt"], orders: ["asc"] }
34681
- ];
34682
34598
  var CLIENT_CAPABILITY_TABLE_COLUMNS = [
34683
34599
  ...["ownerId", "agentId", "threadId", "runId", "toolCallId"].map((key) => ({
34684
34600
  key,
@@ -35342,16 +35258,6 @@ var TABLES = [
35342
35258
  permissions: [],
35343
35259
  columns: CLIENT_CAPABILITY_TABLE_COLUMNS,
35344
35260
  indexes: CLIENT_CAPABILITY_TABLE_INDEXES
35345
- },
35346
- {
35347
- $id: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_TABLE_ID,
35348
- databaseId: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_DATABASE_ID,
35349
- name: APPBASE_RUNTIME_CONFIG_DEFAULTS.A2UI_ACTION_TABLE_ID,
35350
- enabled: true,
35351
- rowSecurity: true,
35352
- permissions: [],
35353
- columns: A2UI_ACTION_TABLE_COLUMNS,
35354
- indexes: A2UI_ACTION_TABLE_INDEXES
35355
35261
  }
35356
35262
  ];
35357
35263
  var buildAppwriteConfigTemplate = (envOverrides = {}) => ({
@@ -42566,6 +42472,10 @@ var agentdevStart = {
42566
42472
  name: "LINKQUE_MCP_SIGN_ENDPOINT",
42567
42473
  description: "\u8FDC\u7AEF MCP \u7B7E\u540D\u7AEF\u70B9 URL (\u9ED8\u8BA4\u4E3A https://linkquegw.alipay.com/api/mcp/signature, \u53EF\u9009\u8986\u76D6)"
42568
42474
  },
42475
+ {
42476
+ name: "LINKQUEGW_TOKEN_VERIFY_ENDPOINT",
42477
+ description: "\u7528\u6237\u51ED\u636E\u6821\u9A8C\u7AEF\u70B9\uFF0C\u9ED8\u8BA4 https://linkquegw.alipay.com/api/auth/verify"
42478
+ },
42569
42479
  {
42570
42480
  name: "LINKQUE_BASE_URL",
42571
42481
  description: "Linkque \u6A21\u578B\u7F51\u5173 base URL(\u9ED8\u8BA4\u4E3A https://linkquegw.alipay.com/api/anthropic, \u53EF\u9009\u8986\u76D6)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkque-cli-v2",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Public Linkque CLI bundle for sandbox debugging",
5
5
  "bin": {
6
6
  "linkquejs": "linkquejs.js"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EModelProvider
3
- } from "./chunk-VVEDZWQ5.js";
3
+ } from "./chunk-ZNU4GVF3.js";
4
4
 
5
5
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js
6
6
  var baked;
@@ -1630,7 +1630,12 @@ var init_esm = __esm({
1630
1630
  });
1631
1631
 
1632
1632
  export {
1633
+ createContextKey,
1634
+ ROOT_CONTEXT,
1635
+ isSpanContextValid,
1636
+ SpanKind,
1633
1637
  SpanStatusCode,
1638
+ createTraceState,
1634
1639
  context,
1635
1640
  propagation,
1636
1641
  trace,