@kya-os/create-mcpi-app 1.7.38-canary.2 → 1.7.39-canary.0
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/.turbo/turbo-build.log +4 -0
- package/.turbo/turbo-test$colon$coverage.log +378 -0
- package/.turbo/turbo-test.log +164 -0
- package/dist/helpers/config-builder.d.ts +4 -10
- package/dist/helpers/config-builder.d.ts.map +1 -1
- package/dist/helpers/config-builder.js +7 -64
- package/dist/helpers/config-builder.js.map +1 -1
- package/dist/helpers/fetch-cloudflare-mcpi-template.d.ts.map +1 -1
- package/dist/helpers/fetch-cloudflare-mcpi-template.js +35 -914
- package/dist/helpers/fetch-cloudflare-mcpi-template.js.map +1 -1
- package/dist/utils/fetch-remote-config.d.ts.map +1 -1
- package/dist/utils/fetch-remote-config.js +2 -2
- package/dist/utils/fetch-remote-config.js.map +1 -1
- package/package/package.json +77 -0
- package/package.json +5 -3
- package/ARCHITECTURE_ANALYSIS.md +0 -392
- package/CHANGELOG.md +0 -372
- package/DEPRECATION_WARNINGS_ANALYSIS.md +0 -192
- package/IMPLEMENTATION_SUMMARY.md +0 -108
- package/REMEDIATION_PLAN.md +0 -99
- package/dist/.tsbuildinfo +0 -1
- package/scripts/prepare-pack.js +0 -47
- package/scripts/validate-no-workspace.js +0 -79
- package/src/__tests__/cloudflare-template.test.ts +0 -490
- package/src/__tests__/helpers/fetch-cloudflare-mcpi-template.test.ts +0 -337
- package/src/__tests__/helpers/generate-config.test.ts +0 -312
- package/src/__tests__/helpers/generate-identity.test.ts +0 -271
- package/src/__tests__/helpers/install.test.ts +0 -370
- package/src/__tests__/helpers/validate-project-structure.test.ts +0 -467
- package/src/__tests__.bak/regression.test.ts +0 -434
- package/src/effects/index.ts +0 -80
- package/src/helpers/__tests__/config-builder.spec.ts +0 -231
- package/src/helpers/apply-identity-preset.ts +0 -209
- package/src/helpers/config-builder.ts +0 -165
- package/src/helpers/copy-template.ts +0 -11
- package/src/helpers/create.ts +0 -239
- package/src/helpers/fetch-cloudflare-mcpi-template.ts +0 -2404
- package/src/helpers/fetch-cloudflare-template.ts +0 -361
- package/src/helpers/fetch-mcpi-template.ts +0 -236
- package/src/helpers/fetch-xmcp-template.ts +0 -153
- package/src/helpers/generate-config.ts +0 -118
- package/src/helpers/generate-identity.ts +0 -163
- package/src/helpers/identity-manager.ts +0 -186
- package/src/helpers/install.ts +0 -79
- package/src/helpers/rename.ts +0 -17
- package/src/helpers/validate-project-structure.ts +0 -127
- package/src/index.ts +0 -520
- package/src/utils/__tests__/fetch-remote-config.test.ts +0 -271
- package/src/utils/check-node.ts +0 -17
- package/src/utils/fetch-remote-config.ts +0 -179
- package/src/utils/is-folder-empty.ts +0 -60
- package/src/utils/validate-project-name.ts +0 -132
- package/test-cloudflare/README.md +0 -164
- package/test-cloudflare/package.json +0 -28
- package/test-cloudflare/src/index.ts +0 -341
- package/test-cloudflare/src/tools/greet.ts +0 -19
- package/test-cloudflare/tests/cache-invalidation.test.ts +0 -410
- package/test-cloudflare/tests/cors-security.test.ts +0 -349
- package/test-cloudflare/tests/delegation.test.ts +0 -335
- package/test-cloudflare/tests/do-routing.test.ts +0 -314
- package/test-cloudflare/tests/integration.test.ts +0 -205
- package/test-cloudflare/tests/session-management.test.ts +0 -359
- package/test-cloudflare/tsconfig.json +0 -16
- package/test-cloudflare/vitest.config.ts +0 -9
- package/test-cloudflare/wrangler.toml +0 -37
- package/test-node/README.md +0 -44
- package/test-node/package.json +0 -23
- package/test-node/src/tools/greet.ts +0 -25
- package/test-node/xmcp.config.ts +0 -20
- package/tsconfig.json +0 -26
- package/vitest.config.ts +0 -14
|
@@ -5,71 +5,14 @@
|
|
|
5
5
|
* all platforms (Node.js, Cloudflare Workers, etc.).
|
|
6
6
|
*
|
|
7
7
|
* @module @kya-os/create-mcpi-app/config-builder
|
|
8
|
-
*/
|
|
9
|
-
import { fetchRemoteConfig } from '../utils/fetch-remote-config.js';
|
|
10
|
-
/**
|
|
11
|
-
* Build base MCPIConfig that works across all platforms
|
|
12
|
-
*
|
|
13
|
-
* Creates a platform-agnostic configuration object with sensible defaults
|
|
14
|
-
* for identity, proofing, delegation, audit, and session management.
|
|
15
8
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
9
|
+
* NOTE: buildBaseConfig has been moved to @kya-os/contracts/config for shared use.
|
|
10
|
+
* This module re-exports it for backward compatibility and adds remote fetching support.
|
|
18
11
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
environment,
|
|
24
|
-
identity: {
|
|
25
|
-
enabled: true,
|
|
26
|
-
environment,
|
|
27
|
-
devIdentityPath: '.mcpi/identity.json'
|
|
28
|
-
},
|
|
29
|
-
proofing: {
|
|
30
|
-
enabled: true,
|
|
31
|
-
batchQueue: {
|
|
32
|
-
destinations: [
|
|
33
|
-
{
|
|
34
|
-
type: 'agentshield',
|
|
35
|
-
apiUrl: env.AGENTSHIELD_API_URL || 'https://kya.vouched.id',
|
|
36
|
-
apiKey: env.AGENTSHIELD_API_KEY || ''
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
maxBatchSize: 10,
|
|
40
|
-
flushIntervalMs: 5000,
|
|
41
|
-
maxRetries: 3,
|
|
42
|
-
debug: isDevelopment
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
delegation: {
|
|
46
|
-
enabled: true,
|
|
47
|
-
enforceDelegations: true,
|
|
48
|
-
verifier: {
|
|
49
|
-
type: 'agentshield',
|
|
50
|
-
apiUrl: env.AGENTSHIELD_API_URL || 'https://kya.vouched.id',
|
|
51
|
-
apiKey: env.AGENTSHIELD_API_KEY || '',
|
|
52
|
-
cacheTtl: 60000, // 1 minute cache
|
|
53
|
-
debug: isDevelopment
|
|
54
|
-
},
|
|
55
|
-
authorization: {
|
|
56
|
-
authorizationUrl: env.AUTHORIZATION_URL || `${env.AGENTSHIELD_API_URL || 'https://kya.vouched.id'}/authorize`,
|
|
57
|
-
resumeTokenTtl: 600000, // 10 minutes
|
|
58
|
-
minReputationScore: 76
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
audit: {
|
|
62
|
-
enabled: true,
|
|
63
|
-
includeProofHashes: false,
|
|
64
|
-
includePayloads: false
|
|
65
|
-
},
|
|
66
|
-
session: {
|
|
67
|
-
timestampSkewSeconds: 120,
|
|
68
|
-
ttlMinutes: 30
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
return baseConfig;
|
|
72
|
-
}
|
|
12
|
+
// Re-export buildBaseConfig from contracts (single source of truth)
|
|
13
|
+
export { buildBaseConfig } from '@kya-os/contracts/config';
|
|
14
|
+
import { buildBaseConfig } from '@kya-os/contracts/config';
|
|
15
|
+
import { fetchRemoteConfig } from '../utils/fetch-remote-config.js';
|
|
73
16
|
/**
|
|
74
17
|
* Build config with remote fetching support
|
|
75
18
|
*
|
|
@@ -96,7 +39,7 @@ export async function buildConfigWithRemote(options) {
|
|
|
96
39
|
return remote;
|
|
97
40
|
}
|
|
98
41
|
}
|
|
99
|
-
// Fallback to local env-based config
|
|
42
|
+
// Fallback to local env-based config (using buildBaseConfig from contracts)
|
|
100
43
|
return buildBaseConfig(env);
|
|
101
44
|
}
|
|
102
45
|
//# sourceMappingURL=config-builder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-builder.js","sourceRoot":"","sources":["../../src/helpers/config-builder.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config-builder.js","sourceRoot":"","sources":["../../src/helpers/config-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,oEAAoE;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAa3D,OAAO,EACL,iBAAiB,EAGlB,MAAM,iCAAiC,CAAC;AAgCzC;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,OAA6B;IAE7B,MAAM,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAExD,sEAAsE;IACtE,IAAI,GAAG,CAAC,mBAAmB,IAAI,aAAa,EAAE,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,iBAAiB,CACpC;YACE,MAAM,EAAE,GAAG,CAAC,mBAAmB,IAAI,wBAAwB;YAC3D,MAAM,EAAE,GAAG,CAAC,mBAAmB;YAC/B,SAAS,EAAE,GAAG,CAAC,sBAAsB;YACrC,QAAQ;YACR,QAAQ,EAAE,MAAM,EAAE,YAAY;YAC9B,aAAa;SACd,EACD,KAAK,CACN,CAAC;QAEF,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-cloudflare-mcpi-template.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch-cloudflare-mcpi-template.ts"],"names":[],"mappings":"AAKA,UAAU,6BAA6B;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"fetch-cloudflare-mcpi-template.d.ts","sourceRoot":"","sources":["../../src/helpers/fetch-cloudflare-mcpi-template.ts"],"names":[],"mappings":"AAKA,UAAU,6BAA6B;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,6BAAkC,GAC1C,OAAO,CAAC,IAAI,CAAC,CA09Cf"}
|