@agentvault/agentvault 0.17.4 → 0.17.5

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 (64) hide show
  1. package/dist/cli.js +19 -21
  2. package/dist/cli.js.map +4 -4
  3. package/dist/index.js +52 -54
  4. package/dist/index.js.map +4 -4
  5. package/dist/openclaw-entry.js +396 -16184
  6. package/dist/openclaw-entry.js.map +4 -4
  7. package/openclaw.plugin.json +1 -1
  8. package/package.json +1 -1
  9. package/dist/_cp.d.ts +0 -10
  10. package/dist/_cp.d.ts.map +0 -1
  11. package/dist/account-config.d.ts +0 -20
  12. package/dist/account-config.d.ts.map +0 -1
  13. package/dist/channel.d.ts +0 -358
  14. package/dist/channel.d.ts.map +0 -1
  15. package/dist/cli.d.ts +0 -2
  16. package/dist/cli.d.ts.map +0 -1
  17. package/dist/create-agent.d.ts +0 -28
  18. package/dist/create-agent.d.ts.map +0 -1
  19. package/dist/crypto-helpers.d.ts +0 -2
  20. package/dist/crypto-helpers.d.ts.map +0 -1
  21. package/dist/doctor.d.ts +0 -41
  22. package/dist/doctor.d.ts.map +0 -1
  23. package/dist/fetch-interceptor.d.ts +0 -32
  24. package/dist/fetch-interceptor.d.ts.map +0 -1
  25. package/dist/gateway-send.d.ts +0 -98
  26. package/dist/gateway-send.d.ts.map +0 -1
  27. package/dist/http-handlers.d.ts +0 -49
  28. package/dist/http-handlers.d.ts.map +0 -1
  29. package/dist/index.d.ts +0 -25
  30. package/dist/index.d.ts.map +0 -1
  31. package/dist/mcp-handlers.d.ts +0 -26
  32. package/dist/mcp-handlers.d.ts.map +0 -1
  33. package/dist/mcp-proxy-helpers.d.ts +0 -9
  34. package/dist/mcp-proxy-helpers.d.ts.map +0 -1
  35. package/dist/mcp-server.d.ts +0 -90
  36. package/dist/mcp-server.d.ts.map +0 -1
  37. package/dist/openclaw-compat.d.ts +0 -33
  38. package/dist/openclaw-compat.d.ts.map +0 -1
  39. package/dist/openclaw-entry.d.ts +0 -27
  40. package/dist/openclaw-entry.d.ts.map +0 -1
  41. package/dist/openclaw-plugin.d.ts +0 -102
  42. package/dist/openclaw-plugin.d.ts.map +0 -1
  43. package/dist/openclaw-types.d.ts +0 -155
  44. package/dist/openclaw-types.d.ts.map +0 -1
  45. package/dist/policy-enforcer.d.ts +0 -78
  46. package/dist/policy-enforcer.d.ts.map +0 -1
  47. package/dist/setup.d.ts +0 -27
  48. package/dist/setup.d.ts.map +0 -1
  49. package/dist/skill-invoker.d.ts +0 -30
  50. package/dist/skill-invoker.d.ts.map +0 -1
  51. package/dist/skill-manifest.d.ts +0 -25
  52. package/dist/skill-manifest.d.ts.map +0 -1
  53. package/dist/skill-telemetry.d.ts +0 -36
  54. package/dist/skill-telemetry.d.ts.map +0 -1
  55. package/dist/skills-publish.d.ts +0 -8
  56. package/dist/skills-publish.d.ts.map +0 -1
  57. package/dist/state.d.ts +0 -32
  58. package/dist/state.d.ts.map +0 -1
  59. package/dist/transport.d.ts +0 -24
  60. package/dist/transport.d.ts.map +0 -1
  61. package/dist/types.d.ts +0 -379
  62. package/dist/types.d.ts.map +0 -1
  63. package/dist/workspace-handlers.d.ts +0 -62
  64. package/dist/workspace-handlers.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -51007,6 +51007,20 @@ var init_fetch_interceptor = __esm({
51007
51007
  }
51008
51008
  });
51009
51009
 
51010
+ // src/openclaw-entry.ts
51011
+ var isUsingManagedRoutes;
51012
+ var init_openclaw_entry = __esm({
51013
+ "src/openclaw-entry.ts"() {
51014
+ "use strict";
51015
+ init_account_config();
51016
+ init_fetch_interceptor();
51017
+ init_http_handlers();
51018
+ init_openclaw_compat();
51019
+ init_types();
51020
+ isUsingManagedRoutes = false;
51021
+ }
51022
+ });
51023
+
51010
51024
  // ../../node_modules/zod/v3/helpers/util.js
51011
51025
  var util, objectUtil, ZodParsedType, getParsedType;
51012
51026
  var init_util = __esm({
@@ -76507,6 +76521,44 @@ var init_mcp_server2 = __esm({
76507
76521
  }
76508
76522
  });
76509
76523
 
76524
+ // src/mcp-handlers.ts
76525
+ function createMcpHandler(mcpServer, basePath = "/mcp") {
76526
+ return (req, res, next) => {
76527
+ const url2 = new URL(req.url ?? "/", `http://${req.headers.host ?? "localhost"}`);
76528
+ const pathname = url2.pathname;
76529
+ if (!pathname.startsWith(basePath)) {
76530
+ if (next) next();
76531
+ return;
76532
+ }
76533
+ if (!mcpServer) {
76534
+ res.writeHead(503, { "Content-Type": "application/json" });
76535
+ res.end(JSON.stringify({ error: "MCP server not initialized" }));
76536
+ return;
76537
+ }
76538
+ mcpServer.handleRequest(req, res).catch((err) => {
76539
+ console.error("[MCP] Request handling error:", err);
76540
+ if (!res.headersSent) {
76541
+ res.writeHead(500, { "Content-Type": "application/json" });
76542
+ res.end(JSON.stringify({ error: "Internal MCP error" }));
76543
+ }
76544
+ });
76545
+ };
76546
+ }
76547
+ function getMcpStatus(mcpServer) {
76548
+ if (!mcpServer) {
76549
+ return { mcp_enabled: false, mcp_skills_count: 0 };
76550
+ }
76551
+ return {
76552
+ mcp_enabled: true,
76553
+ mcp_skills_count: mcpServer.skillCount
76554
+ };
76555
+ }
76556
+ var init_mcp_handlers = __esm({
76557
+ "src/mcp-handlers.ts"() {
76558
+ "use strict";
76559
+ }
76560
+ });
76561
+
76510
76562
  // src/skill-manifest.ts
76511
76563
  import { readFileSync, existsSync, readdirSync } from "node:fs";
76512
76564
  import { resolve as resolve2, join as join4 } from "node:path";
@@ -76674,60 +76726,6 @@ var init_skill_manifest = __esm({
76674
76726
  }
76675
76727
  });
76676
76728
 
76677
- // src/openclaw-entry.ts
76678
- var isUsingManagedRoutes;
76679
- var init_openclaw_entry = __esm({
76680
- "src/openclaw-entry.ts"() {
76681
- "use strict";
76682
- init_account_config();
76683
- init_fetch_interceptor();
76684
- init_http_handlers();
76685
- init_openclaw_compat();
76686
- init_types();
76687
- init_mcp_server2();
76688
- init_skill_manifest();
76689
- isUsingManagedRoutes = false;
76690
- }
76691
- });
76692
-
76693
- // src/mcp-handlers.ts
76694
- function createMcpHandler(mcpServer, basePath = "/mcp") {
76695
- return (req, res, next) => {
76696
- const url2 = new URL(req.url ?? "/", `http://${req.headers.host ?? "localhost"}`);
76697
- const pathname = url2.pathname;
76698
- if (!pathname.startsWith(basePath)) {
76699
- if (next) next();
76700
- return;
76701
- }
76702
- if (!mcpServer) {
76703
- res.writeHead(503, { "Content-Type": "application/json" });
76704
- res.end(JSON.stringify({ error: "MCP server not initialized" }));
76705
- return;
76706
- }
76707
- mcpServer.handleRequest(req, res).catch((err) => {
76708
- console.error("[MCP] Request handling error:", err);
76709
- if (!res.headersSent) {
76710
- res.writeHead(500, { "Content-Type": "application/json" });
76711
- res.end(JSON.stringify({ error: "Internal MCP error" }));
76712
- }
76713
- });
76714
- };
76715
- }
76716
- function getMcpStatus(mcpServer) {
76717
- if (!mcpServer) {
76718
- return { mcp_enabled: false, mcp_skills_count: 0 };
76719
- }
76720
- return {
76721
- mcp_enabled: true,
76722
- mcp_skills_count: mcpServer.skillCount
76723
- };
76724
- }
76725
- var init_mcp_handlers = __esm({
76726
- "src/mcp-handlers.ts"() {
76727
- "use strict";
76728
- }
76729
- });
76730
-
76731
76729
  // src/skill-invoker.ts
76732
76730
  async function invokeSkill(opts, handler) {
76733
76731
  const start = Date.now();