@kya-os/create-mcpi-app 1.11.5 → 1.11.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.
- package/.turbo/turbo-build.log +7 -7
- package/README.md +2 -2
- package/dist/bundles/{mix-station.js → blank.4d148be5c7c1ecaa25b50c242fa4bb3ddb620b7ceb5de999f7cbf764421623ad.js} +4389 -1882
- package/dist/bundles/{ecommerce.js → ecommerce.8baed5d4532e4e2f43e34a438aa744982f5c3520a3e8ea7e2216b9b9a794ffb8.js} +4364 -1478
- package/dist/bundles/{hardware-world.js → hardware-world.4e98474b5209dd17ed6ec07eb7a9f5a648bb7f708b4361ca105fd0a1d6118344.js} +4370 -1484
- package/dist/bundles/manifest.json +16 -15
- package/dist/bundles/{blank.js → mix-station.72b1de21592cec8dfada13945a284d6bc6357b600cb3ee205995b3af75179ec3.js} +4770 -1503
- package/dist/cli-runner.js +7 -7
- package/dist/cli-runner.js.map +1 -1
- package/dist/helpers/config-builder.d.ts +1 -1
- package/dist/helpers/config-builder.d.ts.map +1 -1
- package/dist/helpers/config-builder.js +8 -7
- 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 +20 -30
- package/dist/helpers/fetch-cloudflare-mcpi-template.js.map +1 -1
- package/dist/helpers/generate-cloudflare-files.d.ts +7 -7
- package/dist/helpers/generate-cloudflare-files.d.ts.map +1 -1
- package/dist/helpers/generate-cloudflare-files.js +38 -78
- package/dist/helpers/generate-cloudflare-files.js.map +1 -1
- package/dist/helpers/generate-config.js +3 -3
- package/dist/helpers/identity-manager.js +1 -1
- package/dist/helpers/identity-manager.js.map +1 -1
- package/dist/helpers/native-oauth-deployment.d.ts +5 -0
- package/dist/helpers/native-oauth-deployment.d.ts.map +1 -0
- package/dist/helpers/native-oauth-deployment.js +13 -0
- package/dist/helpers/native-oauth-deployment.js.map +1 -0
- package/dist/helpers/wfp-bundle-options.d.ts +44 -0
- package/dist/helpers/wfp-bundle-options.d.ts.map +1 -0
- package/dist/helpers/wfp-bundle-options.js +94 -0
- package/dist/helpers/wfp-bundle-options.js.map +1 -0
- package/dist/utils/fetch-remote-config.d.ts +3 -3
- package/dist/utils/fetch-remote-config.js +3 -3
- package/package.json +4 -4
|
@@ -13,6 +13,7 @@ import crypto from "crypto";
|
|
|
13
13
|
import { generateIdentity, } from "./generate-identity.js";
|
|
14
14
|
import { getPackageVersions } from "./get-package-versions.js";
|
|
15
15
|
import { applyPinnedDependencyOverrides } from "./pinned-dependencies.js";
|
|
16
|
+
import { NATIVE_OAUTH_DURABLE_OBJECT_TOML, NATIVE_OAUTH_CLASS_EXPORT, } from "./native-oauth-deployment.js";
|
|
16
17
|
/**
|
|
17
18
|
* Unified KV binding name (matches env-mapper.ts UNIFIED_KV_BINDING_NAME)
|
|
18
19
|
*
|
|
@@ -32,7 +33,7 @@ const UNIFIED_KV_BINDING = "MCPI_KV";
|
|
|
32
33
|
* ```typescript
|
|
33
34
|
* const result = await generateCloudflareProjectFiles({
|
|
34
35
|
* projectName: "my-agent",
|
|
35
|
-
*
|
|
36
|
+
* checkpointProjectId: "my-project-abc123",
|
|
36
37
|
* });
|
|
37
38
|
*
|
|
38
39
|
* // Commit files to GitHub
|
|
@@ -53,7 +54,7 @@ const UNIFIED_KV_BINDING = "MCPI_KV";
|
|
|
53
54
|
* ```
|
|
54
55
|
*/
|
|
55
56
|
export async function generateCloudflareProjectFiles(options) {
|
|
56
|
-
const { projectName, template = "blank",
|
|
57
|
+
const { projectName, template = "blank", checkpointProjectId, checkpointApiUrl = "https://kya.vouched.id", checkpointApiKey, skipIdentity = false, serverUrl, } = options;
|
|
57
58
|
// Standard DO class name for all templates (no more per-project PascalCase names)
|
|
58
59
|
const doClassName = "MCPIAgent";
|
|
59
60
|
// Get package versions from scaffolder's package.json (single source of truth)
|
|
@@ -127,8 +128,8 @@ export async function generateCloudflareProjectFiles(options) {
|
|
|
127
128
|
doClassName,
|
|
128
129
|
agentDid: identity.did,
|
|
129
130
|
publicKey: identity.publicKey,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
checkpointProjectId,
|
|
132
|
+
checkpointApiUrl,
|
|
132
133
|
template,
|
|
133
134
|
serverUrl,
|
|
134
135
|
}),
|
|
@@ -153,10 +154,10 @@ KYA_OS_AUDIT_REFERENCE_SECRET="your-separate-random-32-byte-secret-here"
|
|
|
153
154
|
# Managed/self-hosted recorder credential (only when audit is enabled)
|
|
154
155
|
# KYA_OS_AUDIT_INGEST_KEY="your-ledger-scoped-ingest-key-here"
|
|
155
156
|
|
|
156
|
-
#
|
|
157
|
-
|
|
157
|
+
# Checkpoint API Key
|
|
158
|
+
CHECKPOINT_API_KEY="sk_your_api_key_here"
|
|
158
159
|
|
|
159
|
-
# Admin API Key (optional, falls back to
|
|
160
|
+
# Admin API Key (optional, falls back to CHECKPOINT_API_KEY)
|
|
160
161
|
# ADMIN_API_KEY="sk_your_admin_key_here"
|
|
161
162
|
`,
|
|
162
163
|
encoding: "utf-8",
|
|
@@ -237,7 +238,7 @@ dist/
|
|
|
237
238
|
// 12. README.md
|
|
238
239
|
files.push({
|
|
239
240
|
path: "README.md",
|
|
240
|
-
content: generateReadme(projectName,
|
|
241
|
+
content: generateReadme(projectName, checkpointProjectId),
|
|
241
242
|
encoding: "utf-8",
|
|
242
243
|
});
|
|
243
244
|
// Build secrets object - always include identity and OAuth secrets
|
|
@@ -247,9 +248,9 @@ dist/
|
|
|
247
248
|
KYA_OS_AUDIT_PRODUCER_INTERNAL_TOKEN: auditProducerInternalToken,
|
|
248
249
|
KYA_OS_AUDIT_REFERENCE_SECRET: auditReferenceSecret,
|
|
249
250
|
};
|
|
250
|
-
// Include
|
|
251
|
-
if (
|
|
252
|
-
secrets.
|
|
251
|
+
// Include Checkpoint API key if provided
|
|
252
|
+
if (checkpointApiKey) {
|
|
253
|
+
secrets.CHECKPOINT_API_KEY = checkpointApiKey;
|
|
253
254
|
}
|
|
254
255
|
return {
|
|
255
256
|
files,
|
|
@@ -265,7 +266,7 @@ dist/
|
|
|
265
266
|
// Helper Functions
|
|
266
267
|
// ============================================================================
|
|
267
268
|
function generateWranglerToml(opts) {
|
|
268
|
-
const { projectName, doClassName, agentDid, publicKey,
|
|
269
|
+
const { projectName, doClassName, agentDid, publicKey, checkpointProjectId, checkpointApiUrl, template, serverUrl, } = opts;
|
|
269
270
|
// Template-specific environment variables
|
|
270
271
|
let templateVars = "";
|
|
271
272
|
if (template === "hardware-world") {
|
|
@@ -307,6 +308,8 @@ new_sqlite_classes = ["${doClassName}"]
|
|
|
307
308
|
tag = "v2-audit-producer"
|
|
308
309
|
new_sqlite_classes = ["AuditProducer"]
|
|
309
310
|
|
|
311
|
+
${NATIVE_OAUTH_DURABLE_OBJECT_TOML}
|
|
312
|
+
|
|
310
313
|
# ═══════════════════════════════════════════════════════════════════════════════
|
|
311
314
|
# KV NAMESPACE - Unified single namespace, auto-provisioned by Wrangler v4.45+
|
|
312
315
|
# ═══════════════════════════════════════════════════════════════════════════════
|
|
@@ -332,12 +335,10 @@ ALLOWED_ORIGINS = "https://claude.ai,https://app.anthropic.com"
|
|
|
332
335
|
DO_ROUTING_STRATEGY = "singleton"
|
|
333
336
|
# DO_SHARD_COUNT = "10" # Only needed if using shard strategy
|
|
334
337
|
|
|
335
|
-
XMCP_I_TS_SKEW_SEC = "120"
|
|
336
|
-
XMCP_I_SESSION_TTL = "1800"
|
|
337
338
|
|
|
338
|
-
#
|
|
339
|
-
|
|
340
|
-
${
|
|
339
|
+
# Checkpoint Integration
|
|
340
|
+
CHECKPOINT_API_URL = "${checkpointApiUrl}"
|
|
341
|
+
${checkpointProjectId ? `CHECKPOINT_PROJECT_ID = "${checkpointProjectId}"` : '# CHECKPOINT_PROJECT_ID = "your-project-id"'}
|
|
341
342
|
|
|
342
343
|
MCPI_ENV = "development"
|
|
343
344
|
|
|
@@ -373,6 +374,7 @@ export default createMCPIApp({
|
|
|
373
374
|
export { ${doClassName} };
|
|
374
375
|
// Separate SQLite audit producer; it does not share authorization/session state.
|
|
375
376
|
export { AuditProducer } from "@kya-os/mcp-i-cloudflare";
|
|
377
|
+
${NATIVE_OAUTH_CLASS_EXPORT}
|
|
376
378
|
`;
|
|
377
379
|
}
|
|
378
380
|
function generateAgentTs(projectName, doClassName, template) {
|
|
@@ -396,29 +398,14 @@ import { getTools } from "./tools";
|
|
|
396
398
|
export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
397
399
|
const environment = (env.MCPI_ENV || env.ENVIRONMENT || "development") as "development" | "production";
|
|
398
400
|
|
|
399
|
-
const proofingConfig = env.AGENTSHIELD_API_KEY
|
|
400
|
-
? {
|
|
401
|
-
enabled: true,
|
|
402
|
-
batchQueue: {
|
|
403
|
-
destinations: [
|
|
404
|
-
{
|
|
405
|
-
type: "agentshield" as const,
|
|
406
|
-
apiKey: env.AGENTSHIELD_API_KEY,
|
|
407
|
-
apiUrl: env.AGENTSHIELD_API_URL || "https://kya.vouched.id",
|
|
408
|
-
},
|
|
409
|
-
],
|
|
410
|
-
},
|
|
411
|
-
}
|
|
412
|
-
: undefined;
|
|
413
401
|
|
|
414
402
|
return defineConfig({
|
|
415
403
|
environment,
|
|
416
|
-
proofing: proofingConfig,
|
|
417
404
|
vars: {
|
|
418
405
|
ENVIRONMENT: environment,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
406
|
+
CHECKPOINT_API_KEY: env.CHECKPOINT_API_KEY,
|
|
407
|
+
CHECKPOINT_API_URL: env.CHECKPOINT_API_URL,
|
|
408
|
+
CHECKPOINT_PROJECT_ID: env.CHECKPOINT_PROJECT_ID,
|
|
422
409
|
},
|
|
423
410
|
});
|
|
424
411
|
}
|
|
@@ -467,14 +454,14 @@ import { getTools } from "./tools";
|
|
|
467
454
|
*
|
|
468
455
|
* Defines tool protection, proofing, and other runtime settings.
|
|
469
456
|
* Uses inline config with correct scopes (no hyphens) to avoid
|
|
470
|
-
*
|
|
457
|
+
* Checkpoint's auto-generated scope validation issues.
|
|
471
458
|
*/
|
|
472
459
|
|
|
473
460
|
/**
|
|
474
461
|
* Tool Protection Configuration
|
|
475
462
|
*
|
|
476
463
|
* Using inline config because:
|
|
477
|
-
* 1.
|
|
464
|
+
* 1. Checkpoint auto-generates scopes like "ADD-TO-CART:EXECUTE" which fail validation
|
|
478
465
|
* 2. The scope regex /^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+$/ doesn't allow hyphens
|
|
479
466
|
* 3. Inline config uses correct scopes like "cart:write"
|
|
480
467
|
*/
|
|
@@ -527,21 +514,6 @@ export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
|
527
514
|
| "development"
|
|
528
515
|
| "production";
|
|
529
516
|
|
|
530
|
-
// Proofing config - sends execution proofs to AgentShield
|
|
531
|
-
const proofingConfig = env.AGENTSHIELD_API_KEY
|
|
532
|
-
? {
|
|
533
|
-
enabled: true,
|
|
534
|
-
batchQueue: {
|
|
535
|
-
destinations: [
|
|
536
|
-
{
|
|
537
|
-
type: "agentshield" as const,
|
|
538
|
-
apiKey: env.AGENTSHIELD_API_KEY,
|
|
539
|
-
apiUrl: env.AGENTSHIELD_API_URL || "https://kya.vouched.id",
|
|
540
|
-
},
|
|
541
|
-
],
|
|
542
|
-
},
|
|
543
|
-
}
|
|
544
|
-
: undefined;
|
|
545
517
|
|
|
546
518
|
// Tool protection - using inline config with correct scopes
|
|
547
519
|
const toolProtectionConfig = {
|
|
@@ -551,13 +523,12 @@ export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
|
551
523
|
|
|
552
524
|
return defineConfig({
|
|
553
525
|
environment,
|
|
554
|
-
proofing: proofingConfig,
|
|
555
526
|
toolProtection: toolProtectionConfig,
|
|
556
527
|
vars: {
|
|
557
528
|
ENVIRONMENT: environment,
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
529
|
+
CHECKPOINT_API_KEY: env.CHECKPOINT_API_KEY,
|
|
530
|
+
CHECKPOINT_API_URL: env.CHECKPOINT_API_URL,
|
|
531
|
+
CHECKPOINT_PROJECT_ID: env.CHECKPOINT_PROJECT_ID,
|
|
561
532
|
},
|
|
562
533
|
});
|
|
563
534
|
}
|
|
@@ -1516,31 +1487,20 @@ let cachedStationToken: string | undefined = undefined;
|
|
|
1516
1487
|
* Get runtime configuration for MCP-I Cloudflare Worker
|
|
1517
1488
|
*/
|
|
1518
1489
|
export function getRuntimeConfig(env: CloudflareEnv): CloudflareRuntimeConfig {
|
|
1519
|
-
cachedProjectId = env.
|
|
1490
|
+
cachedProjectId = env.CHECKPOINT_PROJECT_ID || null;
|
|
1520
1491
|
cachedMixerApiUrl = env.MIXER_API_URL || undefined;
|
|
1521
1492
|
cachedStationToken = env.MIXER_STATION_TOKEN || undefined;
|
|
1522
1493
|
|
|
1523
1494
|
const environment = (env.MCPI_ENV || env.ENVIRONMENT || "development") as "development" | "production";
|
|
1524
1495
|
|
|
1525
|
-
const proofingConfig = env.AGENTSHIELD_API_KEY ? {
|
|
1526
|
-
enabled: true,
|
|
1527
|
-
batchQueue: {
|
|
1528
|
-
destinations: [{
|
|
1529
|
-
type: "agentshield" as const,
|
|
1530
|
-
apiKey: env.AGENTSHIELD_API_KEY,
|
|
1531
|
-
apiUrl: env.AGENTSHIELD_API_URL || "https://kya.vouched.id",
|
|
1532
|
-
}],
|
|
1533
|
-
},
|
|
1534
|
-
} : undefined;
|
|
1535
1496
|
|
|
1536
1497
|
return defineConfig({
|
|
1537
1498
|
environment,
|
|
1538
|
-
proofing: proofingConfig,
|
|
1539
1499
|
vars: {
|
|
1540
1500
|
ENVIRONMENT: environment,
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1501
|
+
CHECKPOINT_API_KEY: env.CHECKPOINT_API_KEY,
|
|
1502
|
+
CHECKPOINT_API_URL: env.CHECKPOINT_API_URL,
|
|
1503
|
+
CHECKPOINT_PROJECT_ID: env.CHECKPOINT_PROJECT_ID,
|
|
1544
1504
|
},
|
|
1545
1505
|
});
|
|
1546
1506
|
}
|
|
@@ -2005,11 +1965,11 @@ jobs:
|
|
|
2005
1965
|
secrets: |
|
|
2006
1966
|
MCP_IDENTITY_PRIVATE_KEY
|
|
2007
1967
|
OAUTH_ENCRYPTION_SECRET
|
|
2008
|
-
|
|
1968
|
+
CHECKPOINT_API_KEY
|
|
2009
1969
|
env:
|
|
2010
1970
|
MCP_IDENTITY_PRIVATE_KEY: \${{ secrets.MCP_IDENTITY_PRIVATE_KEY }}
|
|
2011
1971
|
OAUTH_ENCRYPTION_SECRET: \${{ secrets.OAUTH_ENCRYPTION_SECRET }}
|
|
2012
|
-
|
|
1972
|
+
CHECKPOINT_API_KEY: \${{ secrets.CHECKPOINT_API_KEY }}
|
|
2013
1973
|
|
|
2014
1974
|
- name: Deploy to Cloudflare (audit enabled)
|
|
2015
1975
|
if: \${{ vars.KYA_OS_AUDIT_ENABLED == 'true' }}
|
|
@@ -2019,14 +1979,14 @@ jobs:
|
|
|
2019
1979
|
secrets: |
|
|
2020
1980
|
MCP_IDENTITY_PRIVATE_KEY
|
|
2021
1981
|
OAUTH_ENCRYPTION_SECRET
|
|
2022
|
-
|
|
1982
|
+
CHECKPOINT_API_KEY
|
|
2023
1983
|
KYA_OS_AUDIT_PRODUCER_INTERNAL_TOKEN
|
|
2024
1984
|
KYA_OS_AUDIT_REFERENCE_SECRET
|
|
2025
1985
|
KYA_OS_AUDIT_INGEST_KEY
|
|
2026
1986
|
env:
|
|
2027
1987
|
MCP_IDENTITY_PRIVATE_KEY: \${{ secrets.MCP_IDENTITY_PRIVATE_KEY }}
|
|
2028
1988
|
OAUTH_ENCRYPTION_SECRET: \${{ secrets.OAUTH_ENCRYPTION_SECRET }}
|
|
2029
|
-
|
|
1989
|
+
CHECKPOINT_API_KEY: \${{ secrets.CHECKPOINT_API_KEY }}
|
|
2030
1990
|
KYA_OS_AUDIT_PRODUCER_INTERNAL_TOKEN: \${{ secrets.KYA_OS_AUDIT_PRODUCER_INTERNAL_TOKEN }}
|
|
2031
1991
|
KYA_OS_AUDIT_REFERENCE_SECRET: \${{ secrets.KYA_OS_AUDIT_REFERENCE_SECRET }}
|
|
2032
1992
|
KYA_OS_AUDIT_INGEST_KEY: \${{ secrets.KYA_OS_AUDIT_INGEST_KEY }}
|
|
@@ -2038,7 +1998,7 @@ function generateReadme(projectName, projectId) {
|
|
|
2038
1998
|
: "https://kya.vouched.id/dashboard/bouncer";
|
|
2039
1999
|
return `# ${projectName}
|
|
2040
2000
|
|
|
2041
|
-
MCP-I Agent deployed on Cloudflare Workers with
|
|
2001
|
+
MCP-I Agent deployed on Cloudflare Workers with Checkpoint integration.
|
|
2042
2002
|
|
|
2043
2003
|
## Quick Start
|
|
2044
2004
|
|
|
@@ -2069,7 +2029,7 @@ MCP-I Agent deployed on Cloudflare Workers with AgentShield integration.
|
|
|
2069
2029
|
npm run deploy
|
|
2070
2030
|
\`\`\`
|
|
2071
2031
|
|
|
2072
|
-
##
|
|
2032
|
+
## Checkpoint Dashboard
|
|
2073
2033
|
|
|
2074
2034
|
Configure your agent at: ${dashboardUrl}
|
|
2075
2035
|
|
|
@@ -2083,7 +2043,7 @@ Configure your agent at: ${dashboardUrl}
|
|
|
2083
2043
|
|----------|-------------|----------|
|
|
2084
2044
|
| \`MCP_IDENTITY_PRIVATE_KEY\` | Agent's private key | Yes |
|
|
2085
2045
|
| \`OAUTH_ENCRYPTION_SECRET\` | OAuth state encryption | Yes |
|
|
2086
|
-
| \`
|
|
2046
|
+
| \`CHECKPOINT_API_KEY\` | Checkpoint API key | Yes |
|
|
2087
2047
|
| \`KYA_OS_AUDIT_PRODUCER_INTERNAL_TOKEN\` | Internal audit DO authentication | When audit is enabled |
|
|
2088
2048
|
| \`KYA_OS_AUDIT_REFERENCE_SECRET\` | HMAC key for privacy-safe audit references | When audit is enabled |
|
|
2089
2049
|
| \`KYA_OS_AUDIT_INGEST_KEY\` | Ledger-scoped credential for the configured audit recorder | When audit is enabled |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-cloudflare-files.js","sourceRoot":"","sources":["../../src/helpers/generate-cloudflare-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-cloudflare-files.js","sourceRoot":"","sources":["../../src/helpers/generate-cloudflare-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AAkDtC;;;;;;GAMG;AACH,MAAM,kBAAkB,GAAG,SAAkB,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,OAA6B;IAE7B,MAAM,EACJ,WAAW,EACX,QAAQ,GAAG,OAAO,EAClB,mBAAmB,EACnB,gBAAgB,GAAG,wBAAwB,EAC3C,gBAAgB,EAChB,YAAY,GAAG,KAAK,EACpB,SAAS,GACV,GAAG,OAAO,CAAC;IAEZ,kFAAkF;IAClF,MAAM,WAAW,GAAG,WAAW,CAAC;IAEhC,+EAA+E;IAC/E,mEAAmE;IACnE,MAAM,QAAQ,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAE5C,kEAAkE;IAClE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;;;;;;;CA2QR,CAAC;AACF,CAAC;AAED,SAAS,uBAAuB;IAC9B,OAAO;QACL,mBAAmB;QACnB;YACE,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGd;YACK,QAAQ,EAAE,OAAO;SAClB;KACF,CAAC;AACJ,CAAC;AAED,SAAS,sBAAsB;IAC7B,6EAA6E;IAC7E,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiER,CAAC;AACF,CAAC;AAED,SAAS,cAAc,CAAC,WAAmB,EAAE,SAAkB;IAC7D,MAAM,YAAY,GAAG,SAAS;QAC5B,CAAC,CAAC,4CAA4C,SAAS,EAAE;QACzD,CAAC,CAAC,0CAA0C,CAAC;IAE/C,OAAO,KAAK,WAAW;;;;;;;;gDAQuB,WAAW;QACnD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BQ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDtC,CAAC;AACF,CAAC"}
|
|
@@ -54,13 +54,13 @@ import { buildBaseConfig } from "@kya-os/create-mcpi-app/config-builder";
|
|
|
54
54
|
/**
|
|
55
55
|
* Runtime configuration for MCP-I server
|
|
56
56
|
*
|
|
57
|
-
* This file configures runtime features like proof submission to
|
|
57
|
+
* This file configures runtime features like proof submission to Checkpoint,
|
|
58
58
|
* delegation verification, and canonical audit trail bindings.
|
|
59
59
|
*
|
|
60
60
|
* Note: Environment variables are automatically injected by the MCP-I compiler
|
|
61
61
|
* from wrangler.toml (Cloudflare) or .env (Node.js). Configure them there:
|
|
62
|
-
* -
|
|
63
|
-
* -
|
|
62
|
+
* - CHECKPOINT_API_URL: Checkpoint API base URL
|
|
63
|
+
* - CHECKPOINT_API_KEY: Your Checkpoint project API key
|
|
64
64
|
* - MCPI_ENV: "development" or "production"
|
|
65
65
|
*
|
|
66
66
|
* This config uses the unified MCPIConfig architecture, ensuring the same
|
|
@@ -28,7 +28,7 @@ export function isCloudflareProject(projectPath) {
|
|
|
28
28
|
const content = fs.readFileSync(wranglerPath, 'utf8');
|
|
29
29
|
return (content.includes('MCP_IDENTITY_AGENT_DID') ||
|
|
30
30
|
content.includes('[[durable_objects.bindings]]') ||
|
|
31
|
-
content.includes('
|
|
31
|
+
content.includes('CHECKPOINT_API_KEY'));
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Reset identity by deleting existing identity files
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-manager.js","sourceRoot":"","sources":["../../src/helpers/identity-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC;IACtE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAC5D,OAAO,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAClE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAC7D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAA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AAC,CAAC,CAAC;YAClE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,6BAA6B,WAAW,EAAE,CAAC,CAAC,CAAC;YACnE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,mDAAmD,CAAC,CAAC,CAAC;QACjF,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC,CAAC;QAClF,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Shared by CLI and programmatic generation; keep class and migration aligned. */
|
|
2
|
+
export declare const NATIVE_OAUTH_STATE_CLASS_NAME = "NativeOAuthState";
|
|
3
|
+
export declare const NATIVE_OAUTH_DURABLE_OBJECT_TOML = "# Separate native OAuth storage owns its expiry alarm, independently of MCP.\n[[durable_objects.bindings]]\nname = \"NATIVE_OAUTH_STATE\"\nclass_name = \"NativeOAuthState\"\n\n# Additive migration; never rewrite an already-applied migration tag.\n[[migrations]]\ntag = \"v3-native-oauth-state\"\nnew_sqlite_classes = [\"NativeOAuthState\"]";
|
|
4
|
+
export declare const NATIVE_OAUTH_CLASS_EXPORT = "export { NativeOAuthState } from \"@kya-os/mcp-i-cloudflare\";";
|
|
5
|
+
//# sourceMappingURL=native-oauth-deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-oauth-deployment.d.ts","sourceRoot":"","sources":["../../src/helpers/native-oauth-deployment.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,qBAAqB,CAAC;AAEhE,eAAO,MAAM,gCAAgC,wVAQa,CAAC;AAE3D,eAAO,MAAM,yBAAyB,mEAAiF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Shared by CLI and programmatic generation; keep class and migration aligned. */
|
|
2
|
+
export const NATIVE_OAUTH_STATE_CLASS_NAME = "NativeOAuthState";
|
|
3
|
+
export const NATIVE_OAUTH_DURABLE_OBJECT_TOML = `# Separate native OAuth storage owns its expiry alarm, independently of MCP.
|
|
4
|
+
[[durable_objects.bindings]]
|
|
5
|
+
name = "NATIVE_OAUTH_STATE"
|
|
6
|
+
class_name = "${NATIVE_OAUTH_STATE_CLASS_NAME}"
|
|
7
|
+
|
|
8
|
+
# Additive migration; never rewrite an already-applied migration tag.
|
|
9
|
+
[[migrations]]
|
|
10
|
+
tag = "v3-native-oauth-state"
|
|
11
|
+
new_sqlite_classes = ["${NATIVE_OAUTH_STATE_CLASS_NAME}"]`;
|
|
12
|
+
export const NATIVE_OAUTH_CLASS_EXPORT = `export { ${NATIVE_OAUTH_STATE_CLASS_NAME} } from "@kya-os/mcp-i-cloudflare";`;
|
|
13
|
+
//# sourceMappingURL=native-oauth-deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-oauth-deployment.js","sourceRoot":"","sources":["../../src/helpers/native-oauth-deployment.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAEhE,MAAM,CAAC,MAAM,gCAAgC,GAAG;;;gBAGhC,6BAA6B;;;;;yBAKpB,6BAA6B,IAAI,CAAC;AAE3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,YAAY,6BAA6B,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* esbuild options for managed worker bundles (Workers for Platforms).
|
|
3
|
+
*
|
|
4
|
+
* scripts/build-bundles.ts builds the R2 template bundles with these options,
|
|
5
|
+
* and a custom managed bundle must build exactly the same way. The file lives
|
|
6
|
+
* under src/ so the deploy-bundles workflow republishes the templates when the
|
|
7
|
+
* options change.
|
|
8
|
+
*
|
|
9
|
+
* Only `import type` from esbuild: callers bring their own esbuild. This
|
|
10
|
+
* module is deliberately not exported from helpers/index.ts, so it is not
|
|
11
|
+
* part of the package's public API.
|
|
12
|
+
*
|
|
13
|
+
* @module helpers/wfp-bundle-options
|
|
14
|
+
*/
|
|
15
|
+
import type { BuildOptions } from "esbuild";
|
|
16
|
+
export interface WfpBundleInput {
|
|
17
|
+
/** Absolute path to the worker entry, e.g. `<dir>/src/index.ts`. */
|
|
18
|
+
entryPoint: string;
|
|
19
|
+
/** Absolute path to the tsconfig.json esbuild should honor. */
|
|
20
|
+
tsconfig: string;
|
|
21
|
+
}
|
|
22
|
+
/** The options always return in-memory output with a metafile. */
|
|
23
|
+
export type WfpBundleOptions = BuildOptions & {
|
|
24
|
+
write: false;
|
|
25
|
+
metafile: true;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Build the esbuild options for one managed worker bundle.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as esbuild from "esbuild";
|
|
33
|
+
*
|
|
34
|
+
* const result = await esbuild.build(
|
|
35
|
+
* wfpBundleOptions({
|
|
36
|
+
* entryPoint: path.join(dir, "src/index.ts"),
|
|
37
|
+
* tsconfig: path.join(dir, "tsconfig.json"),
|
|
38
|
+
* })
|
|
39
|
+
* );
|
|
40
|
+
* const code = result.outputFiles[0].text;
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function wfpBundleOptions({ entryPoint, tsconfig, }: WfpBundleInput): WfpBundleOptions;
|
|
44
|
+
//# sourceMappingURL=wfp-bundle-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wfp-bundle-options.d.ts","sourceRoot":"","sources":["../../src/helpers/wfp-bundle-options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,SAAS,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,kEAAkE;AAClE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,IAAI,CAAA;CAAE,CAAC;AAmD/E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,UAAU,EACV,QAAQ,GACT,EAAE,cAAc,GAAG,gBAAgB,CAenC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* esbuild options for managed worker bundles (Workers for Platforms).
|
|
3
|
+
*
|
|
4
|
+
* scripts/build-bundles.ts builds the R2 template bundles with these options,
|
|
5
|
+
* and a custom managed bundle must build exactly the same way. The file lives
|
|
6
|
+
* under src/ so the deploy-bundles workflow republishes the templates when the
|
|
7
|
+
* options change.
|
|
8
|
+
*
|
|
9
|
+
* Only `import type` from esbuild: callers bring their own esbuild. This
|
|
10
|
+
* module is deliberately not exported from helpers/index.ts, so it is not
|
|
11
|
+
* part of the package's public API.
|
|
12
|
+
*
|
|
13
|
+
* @module helpers/wfp-bundle-options
|
|
14
|
+
*/
|
|
15
|
+
// Resolved by the Workers runtime (and nodejs_compat) at run time. Both the
|
|
16
|
+
// node:-prefixed and bare forms are listed because CJS deps use bare requires.
|
|
17
|
+
// node:os is NOT here: dispatch namespace scripts do not support it even with
|
|
18
|
+
// nodejs_compat, so the node-shims plugin inlines it instead.
|
|
19
|
+
const WFP_EXTERNAL_MODULES = [
|
|
20
|
+
// Cloudflare-specific modules
|
|
21
|
+
"cloudflare:workers",
|
|
22
|
+
"cloudflare:sockets",
|
|
23
|
+
"cloudflare:email",
|
|
24
|
+
// Node.js built-ins
|
|
25
|
+
"node:async_hooks", "async_hooks",
|
|
26
|
+
"node:buffer", "buffer",
|
|
27
|
+
"node:crypto", "crypto",
|
|
28
|
+
"node:events", "events",
|
|
29
|
+
"node:net", "net",
|
|
30
|
+
"node:path", "path",
|
|
31
|
+
"node:process", "process",
|
|
32
|
+
"node:stream", "stream",
|
|
33
|
+
"node:stream/web",
|
|
34
|
+
"node:string_decoder", "string_decoder",
|
|
35
|
+
"node:tls", "tls",
|
|
36
|
+
"node:url", "url",
|
|
37
|
+
"node:util", "util",
|
|
38
|
+
"node:zlib", "zlib",
|
|
39
|
+
"node:assert", "assert",
|
|
40
|
+
"node:fs", "fs",
|
|
41
|
+
"node:http", "http",
|
|
42
|
+
"node:https", "https",
|
|
43
|
+
"node:querystring", "querystring",
|
|
44
|
+
];
|
|
45
|
+
// Only EOL is used from node:os, so inline it rather than rely on a module
|
|
46
|
+
// Workers for Platforms does not provide.
|
|
47
|
+
function nodeShimsPlugin() {
|
|
48
|
+
return {
|
|
49
|
+
name: "node-shims",
|
|
50
|
+
setup(build) {
|
|
51
|
+
build.onResolve({ filter: /^(node:os|os)$/ }, (args) => ({
|
|
52
|
+
path: args.path,
|
|
53
|
+
namespace: "node-os-shim",
|
|
54
|
+
}));
|
|
55
|
+
build.onLoad({ filter: /.*/, namespace: "node-os-shim" }, () => ({
|
|
56
|
+
contents: 'export const EOL = "\\n"; export default { EOL };',
|
|
57
|
+
loader: "js",
|
|
58
|
+
}));
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Build the esbuild options for one managed worker bundle.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as esbuild from "esbuild";
|
|
68
|
+
*
|
|
69
|
+
* const result = await esbuild.build(
|
|
70
|
+
* wfpBundleOptions({
|
|
71
|
+
* entryPoint: path.join(dir, "src/index.ts"),
|
|
72
|
+
* tsconfig: path.join(dir, "tsconfig.json"),
|
|
73
|
+
* })
|
|
74
|
+
* );
|
|
75
|
+
* const code = result.outputFiles[0].text;
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export function wfpBundleOptions({ entryPoint, tsconfig, }) {
|
|
79
|
+
return {
|
|
80
|
+
entryPoints: [entryPoint],
|
|
81
|
+
bundle: true,
|
|
82
|
+
format: "esm",
|
|
83
|
+
target: "es2022",
|
|
84
|
+
platform: "browser",
|
|
85
|
+
minify: false,
|
|
86
|
+
write: false,
|
|
87
|
+
metafile: true,
|
|
88
|
+
plugins: [nodeShimsPlugin()],
|
|
89
|
+
// A fresh array per call, so one caller's edits never leak into the next.
|
|
90
|
+
external: [...WFP_EXTERNAL_MODULES],
|
|
91
|
+
tsconfig,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=wfp-bundle-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wfp-bundle-options.js","sourceRoot":"","sources":["../../src/helpers/wfp-bundle-options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,8DAA8D;AAC9D,MAAM,oBAAoB,GAAsB;IAC9C,8BAA8B;IAC9B,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,oBAAoB;IACpB,kBAAkB,EAAE,aAAa;IACjC,aAAa,EAAE,QAAQ;IACvB,aAAa,EAAE,QAAQ;IACvB,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,MAAM;IACnB,cAAc,EAAE,SAAS;IACzB,aAAa,EAAE,QAAQ;IACvB,iBAAiB;IACjB,qBAAqB,EAAE,gBAAgB;IACvC,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,QAAQ;IACvB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,MAAM;IACnB,YAAY,EAAE,OAAO;IACrB,kBAAkB,EAAE,aAAa;CAClC,CAAC;AAEF,2EAA2E;AAC3E,0CAA0C;AAC1C,SAAS,eAAe;IACtB,OAAO;QACL,IAAI,EAAE,YAAY;QAClB,KAAK,CAAC,KAAK;YACT,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACvD,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,SAAS,EAAE,cAAc;aAC1B,CAAC,CAAC,CAAC;YACJ,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;gBAC/D,QAAQ,EAAE,mDAAmD;gBAC7D,MAAM,EAAE,IAAI;aACb,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC/B,UAAU,EACV,QAAQ,GACO;IACf,OAAO;QACL,WAAW,EAAE,CAAC,UAAU,CAAC;QACzB,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC,eAAe,EAAE,CAAC;QAC5B,0EAA0E;QAC1E,QAAQ,EAAE,CAAC,GAAG,oBAAoB,CAAC;QACnC,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Remote Configuration Fetching
|
|
3
3
|
*
|
|
4
|
-
* Service for fetching configuration from remote APIs (
|
|
4
|
+
* Service for fetching configuration from remote APIs (Checkpoint dashboard)
|
|
5
5
|
* with caching support for performance optimization.
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This implementation is extracted from @kya-os/mcp-i-core/src/config/remote-config.ts
|
|
@@ -61,9 +61,9 @@ export interface RemoteConfigCache {
|
|
|
61
61
|
set(key: string, value: string, ttl: number): Promise<void>;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Fetch configuration from remote API (
|
|
64
|
+
* Fetch configuration from remote API (Checkpoint dashboard)
|
|
65
65
|
*
|
|
66
|
-
* Attempts to fetch configuration from the
|
|
66
|
+
* Attempts to fetch configuration from the Checkpoint API with caching support.
|
|
67
67
|
* Falls back gracefully if remote fetch fails.
|
|
68
68
|
*
|
|
69
69
|
* @param options - Remote config options
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Remote Configuration Fetching
|
|
3
3
|
*
|
|
4
|
-
* Service for fetching configuration from remote APIs (
|
|
4
|
+
* Service for fetching configuration from remote APIs (Checkpoint dashboard)
|
|
5
5
|
* with caching support for performance optimization.
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This implementation is extracted from @kya-os/mcp-i-core/src/config/remote-config.ts
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* @module @kya-os/create-mcpi-app/utils/fetch-remote-config
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Fetch configuration from remote API (
|
|
15
|
+
* Fetch configuration from remote API (Checkpoint dashboard)
|
|
16
16
|
*
|
|
17
|
-
* Attempts to fetch configuration from the
|
|
17
|
+
* Attempts to fetch configuration from the Checkpoint API with caching support.
|
|
18
18
|
* Falls back gracefully if remote fetch fails.
|
|
19
19
|
*
|
|
20
20
|
* @param options - Remote config options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/create-mcpi-app",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.7",
|
|
4
4
|
"description": "Scaffold a new MCP-I application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/helpers/index.js",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@apidevtools/swagger-parser": "^10.1.1",
|
|
50
|
-
"@kya-os/cli": "^
|
|
50
|
+
"@kya-os/cli": "^2.0.2",
|
|
51
51
|
"@kya-os/cli-effects": "^1.0.19",
|
|
52
|
-
"@kya-os/contracts": "^1.12.
|
|
52
|
+
"@kya-os/contracts": "^1.12.4",
|
|
53
53
|
"@kya-os/mcp-i": "^1.12.2",
|
|
54
|
-
"@kya-os/mcp-i-cloudflare": "^1.14.
|
|
54
|
+
"@kya-os/mcp-i-cloudflare": "^1.14.8",
|
|
55
55
|
"base-x": "^5.0.0",
|
|
56
56
|
"chalk": "^4.1.2",
|
|
57
57
|
"commander": "^12.1.0",
|