@kya-os/mcp-i-cloudflare 1.6.30-canary.delegation-fix.1 → 1.6.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/mcp-i-cloudflare",
3
- "version": "1.6.30-canary.delegation-fix.1",
3
+ "version": "1.6.31",
4
4
  "description": "Cloudflare Workers adapter for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
18
18
  },
19
19
  "dependencies": {
20
- "@kya-os/contracts": "^1.6.6",
21
- "@kya-os/mcp-i-core": "^1.3.13",
20
+ "@kya-os/contracts": "^1.6.7",
21
+ "@kya-os/mcp-i-core": "^1.3.14",
22
22
  "@modelcontextprotocol/sdk": "^1.19.1",
23
23
  "agents": "^0.2.21",
24
24
  "base-x": "^5.0.0",
@@ -1,37 +0,0 @@
1
- /**
2
- * E2E Test Configuration
3
- *
4
- * This file contains configuration for end-to-end tests that use real AgentShield API.
5
- * Set these environment variables before running E2E tests:
6
- *
7
- * ```bash
8
- * export E2E_AGENTSHIELD_API_KEY="sk_test_..."
9
- * export E2E_AGENTSHIELD_PROJECT_ID="test-project-id"
10
- * export E2E_AGENTSHIELD_API_URL="https://kya.vouched.id" # Optional, defaults to production
11
- * ```
12
- *
13
- * Or create a `.env.e2e` file in the package root:
14
- * ```
15
- * E2E_AGENTSHIELD_API_KEY=sk_test_...
16
- * E2E_AGENTSHIELD_PROJECT_ID=test-project-id
17
- * ```
18
- */
19
- export interface E2ETestConfig {
20
- apiKey: string;
21
- projectId: string;
22
- apiUrl: string;
23
- enabled: boolean;
24
- }
25
- /**
26
- * Load E2E test configuration from environment variables
27
- */
28
- export declare function loadE2EConfig(): E2ETestConfig | null;
29
- /**
30
- * Check if E2E tests should run
31
- */
32
- export declare function shouldRunE2ETests(): boolean;
33
- /**
34
- * Get E2E test configuration or throw if not configured
35
- */
36
- export declare function getE2EConfig(): E2ETestConfig;
37
- //# sourceMappingURL=test-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-config.d.ts","sourceRoot":"","sources":["../../../src/__tests__/e2e/test-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAWH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,aAAa,GAAG,IAAI,CAyBpD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAG3C;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,aAAa,CAU5C"}
@@ -1,62 +0,0 @@
1
- /**
2
- * E2E Test Configuration
3
- *
4
- * This file contains configuration for end-to-end tests that use real AgentShield API.
5
- * Set these environment variables before running E2E tests:
6
- *
7
- * ```bash
8
- * export E2E_AGENTSHIELD_API_KEY="sk_test_..."
9
- * export E2E_AGENTSHIELD_PROJECT_ID="test-project-id"
10
- * export E2E_AGENTSHIELD_API_URL="https://kya.vouched.id" # Optional, defaults to production
11
- * ```
12
- *
13
- * Or create a `.env.e2e` file in the package root:
14
- * ```
15
- * E2E_AGENTSHIELD_API_KEY=sk_test_...
16
- * E2E_AGENTSHIELD_PROJECT_ID=test-project-id
17
- * ```
18
- */
19
- /**
20
- * Load E2E test configuration from environment variables
21
- */
22
- export function loadE2EConfig() {
23
- // Access environment variables - works in Node.js (vitest) environment
24
- const apiKey = typeof process !== "undefined" && process.env
25
- ? process.env.E2E_AGENTSHIELD_API_KEY
26
- : undefined;
27
- const projectId = typeof process !== "undefined" && process.env
28
- ? process.env.E2E_AGENTSHIELD_PROJECT_ID
29
- : undefined;
30
- const apiUrl = typeof process !== "undefined" && process.env
31
- ? process.env.E2E_AGENTSHIELD_API_URL || "https://kya.vouched.id"
32
- : "https://kya.vouched.id";
33
- if (!apiKey || !projectId) {
34
- return null;
35
- }
36
- return {
37
- apiKey,
38
- projectId,
39
- apiUrl,
40
- enabled: true,
41
- };
42
- }
43
- /**
44
- * Check if E2E tests should run
45
- */
46
- export function shouldRunE2ETests() {
47
- const config = loadE2EConfig();
48
- return config !== null && config.enabled;
49
- }
50
- /**
51
- * Get E2E test configuration or throw if not configured
52
- */
53
- export function getE2EConfig() {
54
- const config = loadE2EConfig();
55
- if (!config) {
56
- throw new Error("E2E tests require E2E_AGENTSHIELD_API_KEY and E2E_AGENTSHIELD_PROJECT_ID environment variables.\n" +
57
- "Set them in your environment or create a .env.e2e file.\n" +
58
- "See packages/mcp-i-cloudflare/src/__tests__/e2e/test-config.ts for details.");
59
- }
60
- return config;
61
- }
62
- //# sourceMappingURL=test-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-config.js","sourceRoot":"","sources":["../../../src/__tests__/e2e/test-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAkBH;;GAEG;AACH,MAAM,UAAU,aAAa;IAC3B,uEAAuE;IACvE,MAAM,MAAM,GACV,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG;QAC3C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB;QACrC,CAAC,CAAC,SAAS,CAAC;IAChB,MAAM,SAAS,GACb,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG;QAC3C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B;QACxC,CAAC,CAAC,SAAS,CAAC;IAChB,MAAM,MAAM,GACV,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG;QAC3C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,wBAAwB;QACjE,CAAC,CAAC,w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